/* Terminal co_ticker_strip.py: silver session panel and full-width petrol quote tape. */
#home-market-tape { position: relative; min-height: 36px; }
:is(#home-market-tape #co-tape, #co-tape.market-tape-glass) {
  height: 36px; padding: 4px; gap: 10px; overflow: visible;
  background: linear-gradient(110deg, #204b5b, #0a303f 46%, #08232f);
  border-top: 1px solid #739ba9; border-bottom: 1px solid #577e8c;
  color: #d2ecee; font-family: var(--font-display);
}
.home-session { display: flex; align-items: center; flex: 0 0 185px; height: 26px; gap: 10px; padding: 0 10px; border: 0; border-top: 1px solid #e6f8fc; border-radius: 0; background: linear-gradient(115deg,#d9eff3,#acced9 52%,#749daf); color: #062b39; font: 400 11px/1 var(--font-display); white-space: nowrap; cursor: pointer; }
.home-session svg { width: 15px; height: 15px; flex-shrink: 0; }
.home-session-state { border-left: 1px solid #507e8e80; padding-left: 10px; font-variant-numeric: tabular-nums; }
:is(#home-market-tape #co-tape, #co-tape.market-tape-glass) .co-tape-scroll { min-width: 0; mask-image: linear-gradient(90deg,transparent,#000 9px,#000 calc(100% - 9px),transparent); }
:is(#home-market-tape #co-tape, #co-tape.market-tape-glass) .co-tape-track { animation: none; will-change: transform; }
:is(#home-market-tape #co-tape, #co-tape.market-tape-glass) .co-tape-q { box-sizing: border-box; flex: 0 0 208px; width: 208px; margin: 0; padding: 0 10px; gap: 8px; align-items: center; font: 400 12px/1 var(--font-mono); border-right: 1px solid #345c6d; }
:is(#home-market-tape #co-tape, #co-tape.market-tape-glass) .co-tape-q .sym { color: #d2ecee; font: 400 13px/1 var(--font-display); min-width: 30px; }
:is(#home-market-tape #co-tape, #co-tape.market-tape-glass) .co-tape-q .px { color: #d2ecee; margin-left: auto; animation: none; }
:is(#home-market-tape #co-tape, #co-tape.market-tape-glass) .co-tape-q .up { color: #00e6a0; min-width: 52px; text-align: right; }
:is(#home-market-tape #co-tape, #co-tape.market-tape-glass) .co-tape-q .dn { color: #ff334b; min-width: 52px; text-align: right; }
.home-fund-logo { box-sizing: border-box; width: 22px; height: 22px; padding: 2px; object-fit: contain; background: #fff; flex-shrink: 0; }
.home-fund-logo[src$=".png"] { padding: 0; }
:is(#home-market-tape #co-tape, #co-tape.market-tape-glass) button:focus-visible { outline: 1px solid #d2ecee; outline-offset: -2px; }
.home-tape-detail { position: absolute; bottom: calc(100% + 10px); right: 12px; width: min(370px,calc(100% - 24px)); z-index: 5; padding: 20px; border: 1px solid #83a9b8; background: linear-gradient(130deg,#1d3b4b,#081c28); box-shadow: inset 0 0 0 1px #d2ecee20,0 12px 40px #0006; }
.home-tape-detail[hidden] { display: none; }
.home-tape-detail h2 { margin: 0 24px 12px 0; font: 400 18px/1.3 var(--font-display); text-transform: none; }
.home-tape-detail p { margin: 10px 0 0; font: 400 13px/1.6 var(--font-body); color: #b5ccd6; }
.home-tape-close { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border: 0; background: transparent; color: #d2ecee; cursor: pointer; font-size: 20px; }
.home-tape-pause { margin-top: 15px; padding: 8px 13px; border: 1px solid #739ba9; background: #d2ecee12; color: #d2ecee; font: 400 12px/1 var(--font-display); cursor: pointer; }
@media(min-width:1600px) { #home-market-tape,:is(#home-market-tape #co-tape, #co-tape.market-tape-glass) { min-height: 44px; height: 44px; } .home-session { height: 34px; } }
@media(max-width:700px) { .home-session { flex-basis: 170px; font-size: 10px; gap: 7px; padding-inline: 7px; } :is(#home-market-tape #co-tape, #co-tape.market-tape-glass) { gap: 6px; } }
@media(prefers-reduced-motion:reduce) { :is(#home-market-tape #co-tape, #co-tape.market-tape-glass) .co-tape-track { will-change: auto; } }

/* Fixed digit windows keep quote updates from shifting adjacent symbols. */
:is(#home-market-tape #co-tape, #co-tape.market-tape-glass) .co-tape-q .px { min-width: 6ch; text-align: right; }
.home-slot-value { display: inline-flex; height: 1.2em; line-height: 1.2; white-space: pre; vertical-align: middle; font-variant-numeric: tabular-nums; }
.home-slot-digit { display: inline-block; width: 1ch; height: 1.2em; overflow: hidden; }
.home-slot-reel { display: block; }
.home-slot-reel > span { display: block; height: 1.2em; }
.home-slot-spoken { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The account ticker stays below the navbar and opens its details downward. */
html.has-tape{--tape-h:36px}
html.has-tape #co-tape>.home-tape-detail{top:calc(100% + 10px);bottom:auto;left:4px;right:auto;z-index:1}
@media(min-width:1600px){html.has-tape{--tape-h:44px}}

/* Signed-in Terminal strip: co_ticker_strip.HEIGHT and its 4px panel insets. */
html.has-workspace-nav.has-tape { --tape-h:30px; }
html.has-workspace-nav #home-market-tape { height:30px; min-height:30px; }
html.has-workspace-nav :is(#home-market-tape #co-tape,#co-tape.market-tape-glass) { height:30px; min-height:30px; padding:3px 4px; }
html.has-workspace-nav .home-session { height:22px; }
html.has-workspace-nav #co-tape .home-fund-logo { width:18px; height:18px; }
.terminal-tape-empty { padding:0 10px; color:#92b3c0; font:400 11px/22px var(--font-display); white-space:nowrap; }
