/* Additive homepage card: all colours follow the platform's four theme tokens. */
body.ui-polished .home-perpetual-card,.home-perpetual-card{box-sizing:border-box;margin:0 0 16px;padding:12px 14px 0;border:1px solid var(--forge-line,var(--border));border-radius:20px;background:var(--forge-panel,var(--surface));color:var(--text);box-shadow:var(--forge-shadow,var(--ui-shadow));overflow:hidden;font-variant-numeric:tabular-nums}
.home-perpetual-card *{box-sizing:border-box}
.home-perpetual-card .hpc-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px}
.home-perpetual-card h2{display:flex;align-items:center;gap:8px;margin:0;font-size:13px;line-height:20px;font-weight:650;letter-spacing:.01em;color:var(--text)}
.home-perpetual-card h2>span{font-size:9px;line-height:15px;font-weight:400;color:var(--muted);letter-spacing:0}
.home-perpetual-card .hpc-status{display:flex;align-items:center;gap:4px;flex:0 0 auto;font-size:9px;line-height:15px;color:var(--muted)}
.home-perpetual-card .hpc-status::before{content:"";width:4px;height:4px;border-radius:50%;background:var(--accent);opacity:.7}
.home-perpetual-card .hpc-status.is-delayed::before{background:var(--muted);opacity:.5}
.home-perpetual-card .hpc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px;row-gap:0}
body.ui-polished .home-perpetual-card .hpc-quote,.home-perpetual-card .hpc-quote{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;gap:5px 7px;min-height:52px;min-width:0;margin:0;padding:7px 1px 8px;border:0;border-radius:7px;background:transparent;color:var(--text);font:inherit;text-align:left;box-shadow:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.home-perpetual-card .hpc-quote:nth-child(n+3){border-top:1px solid var(--forge-line,var(--border));border-radius:0}
.home-perpetual-card .hpc-quote-identity{display:flex;align-items:center;gap:5px;min-width:0}
.home-perpetual-card .hpc-quote-identity img{display:block;flex-shrink:0;width:17px;height:17px;object-fit:contain;border-radius:50%}
.home-perpetual-card .hpc-quote-identity b{font-size:11px;line-height:17px;font-weight:650;white-space:nowrap}
.home-perpetual-card .hpc-quote-identity small{font-size:8px;font-weight:400;color:var(--muted);margin-left:3px}
.home-perpetual-card .hpc-change{font-size:10px;font-weight:550;line-height:16px;text-align:right;white-space:nowrap;color:var(--muted)}
.home-perpetual-card .hpc-change.is-up{color:var(--positive,#53caa1)}
.home-perpetual-card .hpc-change.is-down{color:var(--danger,#ee7990)}
.home-perpetual-card .hpc-price{font-size:17px;line-height:20px;letter-spacing:-.35px;font-weight:650;color:var(--text);white-space:nowrap;min-width:0}
.home-perpetual-card .hpc-quote-name{font-size:8px;line-height:14px;color:var(--muted);text-align:right;white-space:nowrap}
body.ui-polished .home-perpetual-card .hpc-trade-link,.home-perpetual-card .hpc-trade-link{display:flex;align-items:center;justify-content:space-between;gap:12px;width:calc(100% + 28px);min-height:35px;margin:6px -14px 0;padding:9px 15px;border:0;border-top:1px solid var(--forge-line,var(--border));border-radius:0;background:var(--accent-soft);color:var(--accent);font-family:inherit;font-size:11px;font-weight:600;line-height:16px;box-shadow:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.home-perpetual-card .hpc-trade-link>span{font-size:11px;font-weight:600;line-height:16px}
.home-perpetual-card .hpc-trade-link svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.home-perpetual-card button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
@media(hover:hover){.home-perpetual-card .hpc-quote:hover{background:var(--accent-soft)}.home-perpetual-card .hpc-trade-link:hover{filter:brightness(1.04)}}
@media(min-width:700px){body.ui-polished .home-perpetual-card{padding:14px 18px 0}.home-perpetual-card .hpc-grid{column-gap:30px}.home-perpetual-card .hpc-quote{min-height:54px}.home-perpetual-card .hpc-price{font-size:19px}.home-perpetual-card .hpc-quote-identity b{font-size:12px}.home-perpetual-card .hpc-change{font-size:11px}body.ui-polished .home-perpetual-card .hpc-trade-link{width:calc(100% + 36px);margin-left:-18px;margin-right:-18px;padding-left:19px;padding-right:19px}}
@media(max-width:350px){body.ui-polished .home-perpetual-card{padding-left:11px;padding-right:11px}.home-perpetual-card .hpc-grid{column-gap:13px}.home-perpetual-card .hpc-quote-identity small{display:none}.home-perpetual-card h2>span{font-size:8px}.home-perpetual-card .hpc-price{font-size:15px}.home-perpetual-card .hpc-change{font-size:9px}body.ui-polished .home-perpetual-card .hpc-trade-link{width:calc(100% + 22px);margin-left:-11px;margin-right:-11px;padding-left:12px;padding-right:12px}}
