/* A market workspace: selected sell asset on the left, execution on the right. */
#app[data-view=swap]{width:min(1280px,calc(100% - 80px));max-width:1280px;padding:40px 0;display:block}
.swap-workspace{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:56px;align-items:start}
#app[data-view=swap] .swap-shell{width:100%;margin:0;padding:24px;box-shadow:0 8px 36px #101c3c04}
.swap-workspace .swap-tabs h1{font-size:25px}.swap-workspace .trade-box{padding:18px}.swap-workspace .trade-entry input,.swap-workspace .trade-entry output{font-size:36px}.swap-workspace .swap-caption{font-size:10px;margin:14px 0 0}
.swap-mobile-tabs{display:none}
.asset-market{min-width:0;padding:6px 0}
.asset-market-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}
.asset-identity{display:flex;align-items:center;gap:13px;min-width:0}.asset-identity>div{min-width:0}
#asset-market-mark{display:grid;place-items:center;width:46px;height:46px;flex:none;border-radius:50%;background:#e8edf0;color:var(--ink-soft);font-size:21px;font-weight:500}#asset-market-mark.native{background:#edf4ea;padding:10px}#asset-market-mark .brand-glyph{height:100%;width:100%}
#asset-market-name{font-size:25px;line-height:30px;overflow-wrap:anywhere}#asset-market-symbol{font-size:12px;line-height:20px;color:var(--muted);margin-top:2px}
.asset-quote-controls{display:flex;gap:3px;flex:none;background:#eef1f3;padding:3px;border-radius:10px}.asset-quote-controls button{border:0;background:none;border-radius:7px;padding:6px 9px;font-size:11px;color:var(--muted)}.asset-quote-controls button[aria-pressed=true]{background:var(--white);color:var(--ink);box-shadow:0 1px 3px #17212b08}.asset-quote-controls button:disabled{opacity:1;cursor:default}
.asset-price-heading{margin-top:26px;min-height:84px}.asset-price-row{display:flex;align-items:baseline;gap:10px}.asset-price-row strong{font-size:46px;line-height:1.15;letter-spacing:-.035em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.asset-price-row>span{font-size:15px;color:var(--muted)}
.asset-price-context{display:flex;align-items:baseline;gap:12px;margin-top:10px;min-height:20px;font-size:12px;color:var(--muted)}#asset-change{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:500}#asset-change[data-direction=up]{color:var(--accent-text)}#asset-change[data-direction=down]{color:var(--oxide)}#asset-price-time{font-size:11px;line-height:18px;overflow-wrap:anywhere}
.asset-chart{height:clamp(200px,32dvh,310px);margin-top:14px;position:relative;min-width:0;outline-offset:5px;border-radius:12px}
.asset-chart-svg{display:block;width:100%;height:100%;overflow:visible;fill:none;stroke:none;stroke-width:1;touch-action:pan-y}.asset-chart-svg text{fill:var(--muted);stroke:none;font-size:10px;font-family:inherit;font-variant-numeric:tabular-nums}.asset-grid{stroke:var(--line);stroke-dasharray:2 6;opacity:.7}.asset-line{stroke:var(--accent-deep);stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}.asset-area{fill:url(#asset-area-fill);stroke:none}.asset-last-halo{fill:var(--accent);opacity:.2;stroke:none}.asset-last-dot{fill:var(--accent-deep);stroke:var(--paper);stroke-width:2}.asset-crosshair{stroke:var(--mute-soft);stroke-dasharray:3 4}
.asset-chart-empty{height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;border:1px dashed var(--line);border-radius:16px;background:radial-gradient(circle at 1px 1px,#dce2e860 1px,transparent 0) 0 0/24px 24px;padding:20px;color:var(--muted)}.asset-chart-empty>span{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--rule);border-radius:14px;background:var(--white);margin-bottom:14px;color:var(--accent-deep)}.asset-chart-empty .ui-icon{width:22px;height:22px}.asset-chart-empty strong{font-size:17px;color:var(--ink-soft)}.asset-chart-empty p{font-size:12px;line-height:1.6;margin:7px 0 0;max-width:320px}.asset-chart-empty a{display:inline-flex;align-items:center;gap:4px;margin-top:14px;font-size:12px;color:var(--accent-text)}.asset-chart-empty a .ui-icon{width:14px;height:14px}
.asset-chart-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:20px}.asset-ranges{display:flex;align-items:center;gap:4px}.asset-ranges button,.asset-chart-modes button{border:0;border-radius:9px;background:transparent;color:var(--muted);font-size:12px;font-weight:500;height:34px;min-width:36px;padding:0 10px}.asset-ranges button:hover,.asset-chart-modes button:hover{background:var(--paper-2);color:var(--ink)}.asset-ranges button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent-text)}.asset-chart-modes{display:flex;border:1px solid var(--line);padding:3px;border-radius:12px;gap:2px;background:var(--white)}.asset-chart-modes button{display:grid;place-items:center;height:28px;min-width:32px;padding:0 8px;border-radius:8px}.asset-chart-modes button[aria-pressed=true]{background:var(--paper-2);color:var(--ink)}.asset-chart-modes .ui-icon{width:17px;height:17px}
.asset-market-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:20px;margin-top:18px;font-size:11px;color:var(--muted)}#asset-pool-link{display:inline-flex;align-items:center;gap:5px;color:var(--ink-soft)}#asset-pool-link[hidden]{display:none}#asset-pool-link>span{color:var(--muted)}#asset-pool-link .ui-icon{width:13px;height:13px}#asset-market-status{font-size:10px}
@media(max-width:1180px){#app[data-view=swap]{width:calc(100% - 48px)}.swap-workspace{grid-template-columns:minmax(0,1fr) 380px;gap:32px}.swap-workspace .swap-token{font-size:14px}}
@media(min-width:981px) and (max-height:740px){#app[data-view=swap]{padding:24px 0}.asset-market{padding-top:0}.asset-price-heading{margin-top:18px;min-height:72px}.asset-price-row strong{font-size:40px}.asset-chart{height:clamp(180px,30dvh,220px);margin-top:8px}.asset-chart-toolbar{margin-top:14px}.asset-market-footer{margin-top:12px}#app[data-view=swap] .swap-shell{padding:20px}.swap-workspace .trade-box{padding:16px}.swap-workspace .swap-caption{margin-top:12px}}
@media(max-width:980px){#app[data-view=swap]{width:min(520px,calc(100% - 32px));padding:22px 0}.swap-workspace{grid-template-columns:minmax(0,1fr);gap:12px}.swap-mobile-tabs{display:flex;justify-content:center;gap:4px;padding:3px;background:var(--accent-soft);border-radius:12px;width:max-content;margin:0 auto}.swap-mobile-tabs button{background:transparent;border:0;border-radius:9px;color:var(--muted);height:32px;min-width:104px;padding:0 16px;font-size:13px;font-weight:500}.swap-mobile-tabs button[aria-pressed=true]{background:white;color:var(--ink);box-shadow:0 1px 4px #101c3c0a}.swap-workspace[data-mobile-panel=swap] .asset-market,.swap-workspace[data-mobile-panel=chart] .swap-shell{display:none}.asset-market{padding:12px 4px}.asset-market-heading{gap:12px}#asset-market-name{font-size:23px}.asset-price-heading{margin-top:26px}.asset-price-row strong{font-size:42px}.asset-chart{height:clamp(190px,30dvh,300px)}.asset-ranges{gap:2px}.asset-ranges button{padding:0 9px;min-width:33px}.asset-chart-toolbar{gap:8px}.asset-market-footer{align-items:flex-start;flex-wrap:wrap}.asset-price-context{gap:8px}#app[data-view=swap] .swap-shell{padding:18px}.swap-workspace .trade-box{padding:18px 14px}.swap-workspace .trade-entry input,.swap-workspace .trade-entry output{font-size:30px}.swap-workspace .swap-token{font-size:13px}.swap-workspace .swap-caption{margin-top:12px}}
@media(max-width:980px) and (max-height:740px){#app[data-view=swap]{padding:12px 0}.swap-workspace{gap:8px}.swap-mobile-tabs button{height:30px}#app[data-view=swap] .swap-shell{padding:14px}.swap-workspace .trade-box{padding:12px}.swap-workspace .trade-entry input,.swap-workspace .trade-entry output{font-size:28px}.swap-workspace .swap-caption{font-size:10px;margin-top:12px}.asset-market{padding-top:4px}.asset-price-heading{margin-top:18px;min-height:70px}.asset-chart{height:180px;margin-top:8px}.asset-chart-toolbar{margin-top:12px}.asset-market-footer{margin-top:10px}}
/* Inspecting long OHLC values must not move the plot or the trade form. */
.asset-price-context{min-width:0}#asset-price-time{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

@media(max-width:980px) and (max-height:680px){.swap-workspace .trade-box{padding:10px}.swap-workspace .swap-caption{font-size:9px;line-height:1.5;margin-top:10px}.swap-workspace .trade-box>label{margin-bottom:10px}}

/* Financial text stays exact, with room for long amounts and asset symbols. */
.swap-workspace .swap-caption{font-size:12px;line-height:1.65}
.swap-workspace .trade-bottom{font-size:12px;gap:12px}
.trade-bottom #pay-hint{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.trade-bottom .text-button{flex:none;min-height:32px;font-size:12px}
.swap-workspace .swap-token{max-width:56%;min-height:44px;font-size:14px}
.swap-workspace .swap-token>span:nth-child(2){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.swap-workspace .trade-entry output{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.swap-workspace .trade-entry :is(input,output)[data-size=medium]{font-size:28px}
.swap-workspace .trade-entry :is(input,output)[data-size=long]{font-size:22px;letter-spacing:-.02em}
.swap-workspace .trade-box{background:#f5f6f8}
.swap-workspace .trade-box:focus-within{background:#f8f9ff;border-color:#a8b8ff}
.swap-workspace .swap-details{font-size:13px;line-height:1.6}
.swap-workspace .swap-details summary{font-size:12px;min-height:36px}
.swap-workspace .swap-details p{font-size:12px;line-height:1.7}
.swap-workspace .swap-details small{font-size:11px}
#asset-market-symbol,.asset-price-context,#asset-price-time{font-size:12px}
#asset-change[data-direction=up]{color:var(--green)}
.asset-chart-svg text{font-size:11px}
.asset-chart-empty{background:#fafbfc;border:1px solid var(--rule)}
.asset-chart-empty p,.asset-chart-empty a{font-size:13px;line-height:1.7}
.asset-chart-toolbar :is(.asset-ranges button,.asset-chart-modes button){transition:background-color .18s,color .18s,box-shadow .18s}
.asset-quote-controls button{font-size:12px;min-height:30px}
.asset-market-footer,#asset-market-status{font-size:12px;line-height:1.6}


.asset-chart[data-enter=true] .asset-chart-svg{animation:chart-arrive .2s ease-out}
@keyframes chart-fetch{0%{transform:translateX(0);opacity:.3}50%{opacity:1}100%{transform:translateX(230%);opacity:.3}}
@keyframes chart-pulse{50%{opacity:.45}}
@keyframes chart-arrive{from{opacity:.45}to{opacity:1}}
@media(max-width:980px){
  .swap-workspace .trade-entry :is(input,output)[data-size=medium]{font-size:26px}
  .swap-workspace .trade-entry :is(input,output)[data-size=long]{font-size:21px}
  .swap-workspace .swap-token{font-size:13px}
  .swap-mobile-tabs button{min-height:38px}
  .asset-ranges button{height:40px;min-width:36px;font-size:12px}
  .asset-chart-modes button{height:34px;min-width:36px}
  .asset-quote-controls button{min-height:36px}
  .swap-workspace .swap-caption{font-size:12px}
  #app[data-view=swap]{padding:20px 0}
}
@media(max-width:980px) and (max-height:740px){
  #app[data-view=swap]{padding:12px 0}
  .swap-mobile-tabs button{min-height:34px}
  .swap-workspace .swap-caption{font-size:11px;margin-top:10px}
}
@media(max-width:980px) and (max-height:680px){#app[data-view=swap]{padding:12px 0 4px}}
@media(prefers-reduced-motion:reduce){.asset-chart:after,.asset-chart-empty>span,.asset-chart-svg{animation:none!important}}

/* Market overview: open canvas, restrained axes and a clear inspection state. */
.asset-market{--chart-line:var(--chart-neutral);--chart-neutral:#87929f;--chart-grid:#e1e5ed;--chart-up:#228965;--chart-down:#c94a5c}
.asset-price-heading{margin-top:32px;min-height:96px}
.asset-price-row{gap:12px}.asset-price-row strong{font-size:52px;font-weight:550;line-height:1.12;letter-spacing:-.045em;color:#151a26}
.asset-price-row>span{font-size:14px;color:#9198a6;font-weight:500}
.asset-price-context{margin-top:12px;gap:14px;font-size:14px;align-items:center;min-height:24px}
#asset-change{display:inline-flex;align-items:center;gap:7px;font-size:14px;font-weight:500}
#asset-change[data-direction=up]:before,#asset-change[data-direction=down]:before{content:"";border-left:4px solid transparent;border-right:4px solid transparent}
#asset-change[data-direction=up]:before{border-bottom:6px solid currentColor}#asset-change[data-direction=down]:before{border-top:6px solid currentColor}
#asset-price-time{font-size:13px;color:#89909f;font-variant-numeric:tabular-nums}
.asset-chart{height:clamp(260px,39dvh,380px);margin-top:16px;border-radius:0}
.asset-chart:focus{outline:none}.asset-chart:focus-visible{outline:2px solid #a8b8ee;outline-offset:6px;border-radius:8px}
.asset-chart-svg{overflow:visible;touch-action:pan-y}
.asset-chart-svg text{font-family:Manrope,Arial,sans-serif;font-size:12px;fill:#9aa1af;font-weight:400;letter-spacing:0}
.asset-chart-svg .asset-axis-time{fill:#8b929e;font-size:12px}
.asset-line,.asset-line-future{fill:none;stroke:var(--chart-line);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.asset-line-future{opacity:.28}.asset-area{fill:url(#asset-area-fill);stroke:none}
.asset-last-halo{fill:var(--chart-line);opacity:.14}.asset-last-dot{fill:var(--chart-line);stroke:white;stroke-width:2.5}
.asset-crosshair{stroke:#d6dbe5;stroke-width:1;stroke-dasharray:none}
.asset-price-guide{stroke:#dfe3ec;stroke-width:1;stroke-dasharray:3 5}
.asset-hover-halo{fill:color-mix(in srgb,var(--chart-line) 17%,white);stroke:white;stroke-width:1.5}
#asset-axis-label rect{fill:#f1f3f8}#asset-axis-label text{fill:#646f86;font-size:11px}
.asset-chart-toolbar{margin-top:20px;gap:16px;align-items:center}
.asset-ranges,.asset-chart-modes{border:1px solid #eceef3;border-radius:24px;padding:4px;background:#fff;gap:3px}
.asset-ranges button{min-width:38px;height:34px;font-size:13px;color:#858c99;border-radius:20px;font-weight:600;padding:0 10px}
.asset-chart-modes button{height:34px;min-width:38px;border-radius:20px;color:#7c8494}
.asset-chart-modes .ui-icon{width:22px;height:22px;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;fill:none}
.asset-chart-modes .ui-icon :is(circle,rect){fill:currentColor;stroke:none}
.asset-ranges button[aria-pressed=true],.asset-chart-modes button[aria-pressed=true]{color:var(--accent-text)}
.asset-ranges .segment-indicator,.asset-chart-modes .segment-indicator{border-radius:20px}
.asset-market-footer{margin-top:22px;color:#9299a7;font-size:11px}#asset-market-status{font-size:11px;color:#9299a7}#asset-pool-link{font-size:11px;color:#848c9c}
.asset-chart-empty{border:0;background:transparent;border-radius:0;position:relative}
.asset-chart-empty:before{content:"";position:absolute;inset:20px 0 38px;z-index:-1;background:radial-gradient(circle,#e1e5ed 1px,transparent 1px) 0 0/24px 24px;opacity:.6}
.asset-chart-empty>span{border:0;background:#f3f5fb;color:#8999c5;border-radius:16px;width:46px;height:46px}
.asset-chart-empty strong{font-weight:550;font-size:16px;color:#616c82}.asset-chart-empty p{color:#9299a7;font-size:12px;max-width:310px}
.asset-chart[data-loading=true] .asset-chart-svg{opacity:1;animation:none}

.asset-chart[data-enter=true] .asset-chart-svg{animation:none}
@media(min-width:981px) and (max-height:740px){.asset-chart{height:clamp(185px,29dvh,220px)}.asset-price-heading{margin-top:22px;min-height:76px}.asset-price-row strong{font-size:44px}.asset-price-context{margin-top:8px}.asset-chart-toolbar{margin-top:12px}.asset-market-footer{margin-top:14px}}
@media(max-width:1180px) and (min-width:981px){.asset-price-context{gap:8px}#asset-price-time{font-size:11px}#asset-change{font-size:12px}.asset-ranges button{min-width:33px;padding:0 8px}}
@media(max-width:980px){.asset-price-heading{margin-top:30px;min-height:98px}.asset-price-row strong{font-size:46px}.asset-price-context{flex-wrap:wrap;gap:6px 12px}#asset-price-time{font-size:12px}#asset-change{font-size:13px}.asset-chart{height:clamp(250px,35dvh,340px);margin-top:12px}.asset-chart-toolbar{gap:8px;margin-top:14px}.asset-ranges{gap:0;padding:3px}.asset-ranges button{min-width:32px;padding:0 8px;height:34px;font-size:12px}.asset-chart-modes{gap:0;padding:3px}.asset-chart-modes button{min-width:32px;height:34px;padding:0 7px}.asset-chart-svg text{font-size:11px}.asset-market-footer{margin-top:18px}}
@media(max-width:980px) and (max-height:740px){.asset-price-heading{margin-top:18px;min-height:92px}.asset-price-row strong{font-size:40px}.asset-chart{height:220px}}

/* Individual fills remain visible even when several share one OHLC bucket. */
.asset-chart-toolbar{flex-wrap:wrap}
.asset-chart-options{display:flex;align-items:center;gap:8px;margin-left:auto}
.asset-scale{height:44px;min-width:46px;border:1px solid #eceef3;border-radius:24px;background:white;color:#858c99;font:600 12px Manrope,Arial,sans-serif;cursor:pointer}
.asset-scale[aria-pressed=true]{background:var(--accent-soft);border-color:#dfe5ff;color:var(--accent-text)}
.asset-scale:disabled,.asset-ranges button:disabled{opacity:.45;cursor:default}
.asset-trade-dot{stroke:white;stroke-width:1.4;fill:var(--chart-line)}.asset-trade-dot.buy{fill:var(--chart-up)}.asset-trade-dot.sell{fill:var(--chart-down)}
.asset-recent-trades{margin-top:16px}.asset-recent-trades[hidden]{display:none}
.asset-trades-heading{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#9299a7;margin-bottom:7px}
.asset-trade-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.asset-trade-card{position:relative;display:grid;grid-template-columns:auto 1fr;gap:6px 10px;text-align:left;min-width:0;padding:10px 13px;border:1px solid #edf0f5;border-radius:12px;background:white;font-family:inherit;cursor:pointer;transition:border-color .18s,background .18s}
.asset-trade-card:hover{border-color:#cbd6fc;background:#fafbff}.asset-trade-card:focus-visible{outline:2px solid #a8b8ee;outline-offset:2px}
.asset-trade-side{font-size:11px;font-weight:600}.asset-trade-side.buy{color:var(--chart-up)}.asset-trade-side.sell{color:var(--chart-down)}
.asset-trade-card time{text-align:right;font-size:10px;color:#9299a7;font-variant-numeric:tabular-nums;white-space:nowrap}
.asset-trade-card strong{grid-column:1/-1;font-size:13px;font-weight:550;color:#303a50;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums}
.asset-trade-card small{font-size:10px;font-weight:400;color:#9299a7;margin-left:3px}
.asset-trade-card>.ui-icon{position:absolute;right:13px;bottom:12px;width:13px;height:13px;color:#9299a7}
.asset-market:has(.asset-recent-trades:not([hidden])) .asset-chart{height:clamp(230px,34dvh,330px)}
.asset-market:has(.asset-recent-trades:not([hidden])) .asset-market-footer{margin-top:12px}
@media(min-width:981px) and (max-height:740px){.asset-market:has(.asset-recent-trades:not([hidden])) .asset-chart{height:clamp(150px,23dvh,180px)}.asset-trades-heading{display:none}.asset-trade-card{padding:7px 11px;gap:3px 8px}.asset-recent-trades{margin-top:12px}}
@media(max-width:980px){.asset-chart-toolbar{gap:8px}.asset-chart-options{gap:5px}.asset-scale{height:40px;min-width:39px;font-size:11px}.asset-ranges button{min-width:29px;padding:0 6px;font-size:11px}.asset-chart-modes button{min-width:29px;padding:0 6px}.asset-trade-cards{gap:8px}.asset-trade-card{padding:10px}.asset-trade-card time{font-size:9px}.asset-trade-card strong{font-size:12px;padding-right:12px}.asset-trade-card small{font-size:9px}.asset-trade-card>.ui-icon{right:8px;width:11px}.asset-market:has(.asset-recent-trades:not([hidden])) .asset-chart{height:270px}}

.asset-chart-empty.with-timeline{position:absolute;inset:0 0 40px;height:auto}
.asset-empty-timeline{display:block;width:100%;height:100%;stroke:none;fill:var(--muted);font-size:11px}

#asset-market-status[data-stream]::before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:#a6aebc;margin-right:6px;vertical-align:middle;transition:background-color .2s ease}
#asset-market-status[data-stream=live]::before{background:#2f9973}
#asset-market-status[data-stream=reconnecting]::before,#asset-market-status[data-stream=delayed]::before{background:#c59343}
.asset-chart[data-loading=true]{transition:opacity .18s ease .12s}
.chart-transition{will-change:opacity}

/* Loading uses the chart's own grid; its geometry never moves. */
.chart-loading{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.chart-loading svg{display:block;width:100%;height:100%;fill:#9eafd8;stroke:none}
.chart-loading g{opacity:.25;animation:chart-dot-breathe 2.8s ease-in-out infinite}
@keyframes chart-dot-breathe{0%,100%{opacity:.18}50%{opacity:.72}}
@media(prefers-reduced-motion:reduce){.chart-loading g{animation:none;opacity:.4}}
.asset-time-controls{min-width:0;display:flex;flex-direction:column;gap:7px}
.asset-time-label{font-size:10px;color:#949baa;letter-spacing:.025em;padding-left:13px;line-height:12px}
.asset-time-controls [hidden]{display:none!important}
.asset-chart-toolbar{align-items:flex-end}
#asset-candle-intervals{gap:0}
#asset-candle-intervals button{padding:0 8px;min-width:34px}
@media(max-width:1180px){#asset-candle-intervals button{padding:0 6px;min-width:31px;font-size:12px}}
@media(max-width:980px){.asset-time-controls{max-width:100%}#asset-candle-intervals button{padding:0 7px;min-width:32px;font-size:12px}.asset-chart-toolbar{row-gap:10px}}

/* Price portal: dotted depth stays quiet; only the observed series moves. */
.asset-area{fill:url(#asset-area-dots)}
.asset-line,.asset-line-future{stroke-width:2}
.asset-crosshair{stroke:#b6bece;stroke-width:1;stroke-dasharray:none}
.asset-price-row strong{font-variant-numeric:tabular-nums}
.asset-last-halo{transform-box:fill-box;transform-origin:center;animation:chart-endpoint 2.8s ease-out infinite}
@keyframes chart-endpoint{0%,100%{transform:scale(.85);opacity:.14}65%{transform:scale(1.55);opacity:0}}
.chart-departure{position:absolute;inset:0;pointer-events:none}
.chart-departure>svg{display:block;width:100%;height:100%}
@media(prefers-reduced-motion:reduce){.asset-last-halo{animation:none}}

/* Scrubbing keeps the complete dotted area, with the future region subdued. */
.asset-line-future,.asset-dot-muted{opacity:1;transition:opacity .16s ease-out}
.asset-chart[data-inspect=true] :is(.asset-line-future,.asset-dot-muted){opacity:.25}
@media(prefers-reduced-motion:reduce){.asset-line-future,.asset-dot-muted{transition:none}}

/* The selected range owns the line palette; inspection only mutes its right side. */
.asset-market[data-trend=up]{--chart-line:var(--chart-up)}
.asset-market[data-trend=down]{--chart-line:var(--chart-down)}
#asset-change[data-direction=up]{color:var(--chart-up)}
#asset-change[data-direction=down]{color:var(--chart-down)}
#asset-change[data-direction=flat],#asset-change[data-direction=none]{color:var(--chart-neutral)}
.asset-line{transition:stroke 240ms ease}
.asset-line-future{transition:stroke 240ms ease,opacity 160ms ease-out}
.asset-last-dot,.asset-last-halo,.asset-hover-halo,#asset-area-dots circle{transition:fill 240ms ease}
#asset-area-fill stop{transition:stop-color 240ms ease}
#asset-change{transition:color 180ms ease}
.asset-market .chart-loading svg{fill:var(--chart-neutral)}
@media(prefers-reduced-motion:reduce){
  .asset-line,.asset-line-future,.asset-last-dot,.asset-last-halo,.asset-hover-halo,#asset-area-dots circle,#asset-area-fill stop,#asset-change{transition:none}
}
.asset-usd-estimate{min-height:24px;margin:4px 0 10px;color:var(--text-secondary,#7b8395);font-size:15px;font-variant-numeric:tabular-nums}
.asset-quote-label{color:var(--text-secondary,#7b8395);font-size:13px;letter-spacing:.02em}

/* Keep decimal prices on one line, sizing the number to the available width. */
.asset-price-row{container-type:inline-size;--price-font:52px}
#asset-price{font-size:clamp(18px,calc((100cqw - 54px) / (var(--price-length,1) * .62)),var(--price-font));white-space:nowrap;min-width:0}
.asset-price-row>span{flex-shrink:0}
@media(min-width:981px) and (max-height:740px){.asset-price-row{--price-font:44px}}
@media(max-width:980px){.asset-price-row{--price-font:46px}}
@media(max-width:980px) and (max-height:740px){.asset-price-row{--price-font:40px}}
