.market-graph { min-width:0; margin-inline:0; }
.profile-plot { min-width:0; --detail-chart-secondary:#386d5b; }
:root[data-theme=dark] .profile-plot { --detail-chart-secondary:#8dcab0; }
.profile-plot .market-graph { margin-block:16px 14px; position:relative; }
.profile-plot .market-graph .graph-frame { display:grid; grid-template-columns:minmax(0,1fr); gap:9px 0; padding:6px 3px 0; }
.profile-plot .graph-axis-y,.profile-plot .graph-plot { grid-column:1; grid-row:1; }
.profile-plot .graph-axis-y { z-index:1; pointer-events:none; text-align:left; align-items:flex-start; }
.profile-plot .graph-axis-y span { padding-left:1px; text-shadow:0 0 2px var(--surface),1px 1px 1px var(--surface); transform:translateY(-6px); }
.profile-plot .return-overlay .graph-axis-y { display:block; }
.profile-plot .return-overlay .graph-axis-y span { position:absolute; left:0; }
.profile-plot .graph-axis-x { grid-column:1; }
.profile-plot .graph-axis-y,.profile-plot .graph-axis-x { font-size:10px; font-weight:500; }
.profile-plot .market-graph .graph-legend { margin-bottom:20px; }
.profile-plot .graph-legend i { width:14px; }
.profile-plot .graph-legend b { color:var(--ink); font-weight:650; }
.detail-workspace .profile-plot .graph-plot { height:clamp(214px,24vw,338px); }
.detail-workspace .profile-plot .graph-series polyline { stroke-width:1.9; }
.detail-workspace .profile-plot .graph-series.secondary polyline { stroke-width:1.45; }
.detail-workspace .profile-plot .coincident-flat .graph-series.secondary polyline { stroke-dasharray:4 4; }
.profile-plot .graph-grid .graph-baseline { stroke:var(--muted); stroke-opacity:.55; stroke-dasharray:none; }
.profile-plot .graph-grid line:not(.graph-baseline) { stroke-opacity:.68; }
.profile-plot .graph-plot>.graph-dot { width:6px; height:6px; }
.profile-plot .graph-series,.profile-plot .graph-plot>.graph-dot { animation:none; }
.detail-workspace .profile-plot .graph-scrubber,.detail-workspace .live-tracking .graph-scrubber { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); margin:0; }
.profile-plot .market-graph:has(input:focus-visible) .graph-plot,.live-tracking .market-graph:has(input:focus-visible) .graph-plot { outline:2px solid var(--positive); outline-offset:3px; }
.profile-plot .graph-rule { border-left:1px solid var(--line-strong); }
.profile-plot .market-graph .graph-tooltip { z-index:2; border-radius:10px; padding:9px 11px; box-shadow:0 2px 10px #06150c0a; }
.graph-tooltip-row b { margin-left:auto; font-variant-numeric:tabular-nums; }
.market-graph .graph-tooltip .graph-tooltip-row { display:grid; align-items:center; grid-template-columns:6px auto 1fr; gap:4px; }
.graph-tooltip-key { width:6px; height:6px; border-radius:50%; background:var(--ink); }
.graph-tooltip-key.secondary { background:var(--detail-chart-secondary,var(--accent)); }
.graph-tooltip small { color:var(--muted); }
@media (max-width:550px) {
  .detail-workspace .profile-plot .graph-plot { height:clamp(196px,58vw,250px); }
}
.return-cash-note { margin:5px 0 1px; color:var(--ink); font:550 11px/1.5 var(--sans); }
.share-availability { display:flex; gap:8px; align-items:baseline; margin:6px 0 8px; border-top:1px solid var(--line); padding-top:9px; color:var(--muted); font:500 11px/1.5 var(--sans); }
.share-availability > i { width:12px; flex:none; align-self:flex-start; margin-top:7px; border-top:2px dotted var(--detail-chart-secondary); }
.share-availability strong { color:var(--ink); font-weight:600; margin-inline-end:3px; }
.share-availability a { display:inline-block; margin-inline-start:4px; color:var(--positive); text-underline-offset:2px; }
.live-market-quotes { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px 10px; }
.live-trader-quote,.live-share-quote { display:grid; align-content:start; gap:4px; color:var(--muted); font:500 11px/1.35 var(--sans); }
.live-market-quotes b { color:var(--ink); font:500 clamp(18px,2vw,24px)/1.15 var(--serif); letter-spacing:-.025em; font-variant-numeric:tabular-nums; }
.live-market-quotes small { color:var(--muted); font:500 10px/1.45 var(--sans); }
.live-pnl-summary { display:flex; gap:5px clamp(16px,4vw,48px); flex-wrap:wrap; color:var(--muted); font:500 11px/1.5 var(--sans); }
.live-pnl-summary b { display:block; font-size:14px; font-weight:550; font-variant-numeric:tabular-nums; }
.live-price-source,.chart-evidence { color:var(--muted); font:500 11px/1.45 var(--sans); }
.live-price-source { display:block; margin:8px 0 3px; }
.chart-evidence { margin-block:7px 0; }
.chart-evidence summary { cursor:pointer; width:max-content; text-underline-offset:3px; }
.chart-evidence p { max-width:70ch; margin:4px 0 0; }
.chart-evidence summary:hover { text-decoration:underline; }
[data-live-profile] .pump-stat-summary { grid-template-columns:repeat(5,minmax(0,1fr)); margin:12px 0 0; }
[data-live-profile][data-unpriced] .detail-feed-column>[data-pump-performance] { order:1; }
@media (max-width:640px) {
  [data-live-profile] .pump-stat-summary { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .live-market-quotes { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.detail-workspace .live-tracking .graph-plot { height:100px; }
.live-correlation-score { font:500 31px/1.4 var(--serif); color:var(--ink); }
.detail-workspace .market-graph .graph-series.secondary polyline { stroke-dasharray:none; stroke-width:1.35; }
.detail-workspace .market-graph .graph-series.secondary polygon { fill:none; }
.market-graph .graph-legend { gap:4px 16px; margin-bottom:12px; }
.graph-legend b { color:var(--text); font-variant-numeric:tabular-nums; }
.graph-frame { display:grid; grid-template-columns:max-content minmax(0,1fr); gap:7px 9px; align-items:stretch; padding-right:4px; }
.graph-axis-y,.graph-axis-x { color:var(--muted); font:600 11px/1.15 var(--sans); font-variant-numeric:tabular-nums; }
.graph-axis-y { position:relative; display:flex; flex-direction:column; justify-content:space-between; text-align:right; }
.graph-axis-y span { line-height:0; }
.graph-axis-x { grid-column:2; display:grid; grid-template-columns:1fr auto 1fr; }
.graph-axis-x span { white-space:nowrap; }
.graph-axis-x span:last-child { text-align:right; }
.graph-axis-x.utc-ticks { display:block; position:relative; min-height:1.3em; }
.utc-ticks span { position:absolute; transform:translateX(-50%); }
.utc-ticks span:first-child { transform:none; }
.utc-ticks span:last-child { transform:translateX(-100%); }
.market-graph .graph-plot { height:clamp(184px,28vw,304px); }
.market-graph .graph-plot > svg { height:100%; min-height:0; overflow:visible; }
.graph-grid line { vector-effect:non-scaling-stroke; }
.graph-dot { position:absolute; width:7px; height:7px; border-radius:50%; background:var(--ink); transform:translate(-50%,-50%); pointer-events:none; }
.graph-dot.secondary { background:var(--accent); }
.graph-plot>.graph-dot.graph-sample { width:5px; height:5px; box-shadow:0 0 0 1px var(--surface); }
.graph-plot > .graph-dot { animation:graph-endpoint .15s .40s both; }
@keyframes graph-endpoint { from { opacity:0; } to { opacity:1; } }
.graph-focus { position:absolute; inset:0; pointer-events:none; }
.graph-focus .graph-dot { width:10px; height:10px; border:1.5px solid var(--surface); }
.graph-rule { position:absolute; top:0; bottom:0; border-left:1px dashed var(--muted); }
.market-graph .graph-tooltip { top:5px; max-width:calc(100% - 6px); max-height:calc(100% - 10px); overflow:auto; overflow-wrap:anywhere; }
.market-graph .graph-tooltip span { min-width:0; flex-wrap:wrap; }
.market-graph .graph-scrubber { margin-block:10px; }
.graph-scrubber input { appearance:none; height:20px; background:transparent; cursor:ew-resize; }
.graph-scrubber input::-webkit-slider-runnable-track { height:3px; background:var(--line-strong); border-radius:4px; }
.graph-scrubber input::-moz-range-track { height:3px; background:var(--line-strong); border-radius:4px; }
.graph-scrubber input::-webkit-slider-thumb { appearance:none; width:11px; height:11px; margin-top:-4px; background:var(--primary); border:1px solid var(--surface); border-radius:50%; }
.graph-scrubber input::-moz-range-thumb { width:10px; height:10px; background:var(--primary); border:1px solid var(--surface); border-radius:50%; }
.market-graph .graph-stats { grid-template-columns:repeat(4,minmax(0,1fr)); }
.market-graph .graph-stats b { overflow-wrap:anywhere; }
.market-graph { container-type:inline-size; }
@container (max-width:375px) {
  .graph-frame { column-gap:5px; }
  .graph-axis-y,.graph-axis-x { font-size:10px; }
  .market-graph .graph-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
