/* Northern Lights AI × Hexis: one visual system for every screen.
   Two voices: Archivo (sans) states facts, labels and numbers; Newsreader (serif) is prose that
   explains. If it is set in the serif, it is narrative, never a computed value. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 14px/1.45 var(--sans); font-variation-settings: 'wdth' 100; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
button, select, input { font: inherit; color: inherit; }
code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .92em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
small { font-size: .8em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--surface); padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }
.muted { color: var(--ink-3); }
.voice { font-family: var(--serif); font-variant-numeric: lining-nums; }
.is-neg { color: var(--neg); } .is-pos { color: var(--pos); } .is-warn { color: var(--warn); }
.pnl.is-neg, .pnl-big.is-neg, .tile-v.money.is-neg { color: var(--crit); }      /* money lost is a status, not a spread direction */
.pnl.is-pos, .pnl-big.is-pos { color: var(--good); }
.tile-v.money.is-pos { color: var(--good); }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: var(--s5) var(--s4) var(--s4) var(--s5); border-right: 1px solid var(--line); background: var(--page); z-index: 5; }
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; margin-bottom: var(--s6); }
.brand-mark { width: 34px; height: 34px; flex: none; color: var(--ink); }
.brand-name { font-weight: 700; font-size: 15px; line-height: 1.15; font-variation-settings: 'wdth' 108; letter-spacing: -.005em; }
.brand-x { display: block; font-weight: 500; color: var(--ink-3); font-variation-settings: 'wdth' 100; }
/* the navigation is a transit line: screens are its stations */
.line { position: relative; display: grid; gap: 2px; }
.line::before { content: ''; position: absolute; left: 6px; top: 16px; bottom: 16px; width: 2px; background: var(--line-strong); border-radius: 2px; }
.line a { position: relative; display: grid; grid-template-columns: 14px 1fr; column-gap: 12px; padding: 7px 8px 7px 0; text-decoration: none; border-radius: var(--radius-s); }
.line .stn { grid-row: 1 / 3; width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--page); position: relative; z-index: 1; }
.nav-l { font-weight: 550; font-size: 14px; color: var(--ink-2); }
.nav-s { font-size: 12px; color: var(--ink-3); font-variation-settings: 'wdth' 88; }
.line a:hover .nav-l { color: var(--ink); } .line a:hover .stn { border-color: var(--ink); }
.line a[aria-current] .stn { border-color: var(--ink); background: var(--ink); box-shadow: 0 0 0 3px var(--page), 0 0 0 5px var(--ink); }
.line a[aria-current] .nav-l { color: var(--ink); font-weight: 700; }
.rail-foot { margin-top: auto; display: grid; gap: var(--s3); }
.ghost-btn { justify-self: start; background: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 12px; cursor: pointer; font-size: 12.5px; color: var(--ink-2); }
.ghost-btn:hover { border-color: var(--ink); color: var(--ink); }
.fine { font-size: 11.5px; color: var(--ink-3); line-height: 1.35; }
.stage { min-width: 0; }

/* ---------- top bar: the market clock ---------- */
.topbar { position: sticky; top: 0; z-index: 4; display: grid; grid-template-columns: auto minmax(180px, 1fr) auto auto; gap: var(--s6); align-items: center; padding: 10px var(--s6); background: color-mix(in srgb, var(--page) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.now { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.now-day { color: var(--ink-2); font-weight: 500; }
.now-time { font-size: 22px; font-weight: 700; font-variation-settings: 'wdth' 92; letter-spacing: -.01em; }
.now-time small, .ro-time small { font-size: 11px; font-weight: 600; color: var(--ink-3); margin-left: 4px; letter-spacing: .02em; }
.now-he { font-size: 12px; font-weight: 600; padding: 1px 7px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-2); cursor: help; }
.dayline { min-width: 0; }
.dl-track { position: relative; height: 6px; background: var(--line); border-radius: 3px; margin: 14px 0 4px; }
.dl-past { position: absolute; inset: 0 auto 0 0; background: var(--ink-3); border-radius: 3px; opacity: .55; }
.dl-mark { position: absolute; top: -5px; width: 2px; height: 16px; background: var(--ink); transform: translateX(-1px); cursor: help; }
.dl-mark span { position: absolute; bottom: 17px; left: 50%; transform: translateX(-50%); font-size: 10.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; font-variation-settings: 'wdth' 85; }
.dl-cutoff { background: var(--ink-3); } .dl-cutoff span { display: none; }
.dl-results { background: var(--ink-3); }
.dl-now { position: absolute; top: -4px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 3px solid var(--page); transform: translateX(-7px); }
.dl-ends { display: flex; justify-content: space-between; font-size: 10px; color: var(--ink-3); }
.count { display: grid; text-align: right; line-height: 1.2; }
.count strong { font-size: 15px; font-weight: 700; }
.count span { font-size: 11.5px; color: var(--ink-3); max-width: 230px; }
.count.urgent strong, .cdn.urgent strong, .hero-count.urgent strong { color: var(--crit); }
.asof { display: grid; gap: 2px; }
.asof label { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.asof-ctl { display: flex; gap: 8px; align-items: center; }
select { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-s); padding: 5px 26px 5px 9px; max-width: 250px; cursor: pointer; }
.link-btn { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 600; white-space: nowrap; }
body.tm .topbar { background: color-mix(in srgb, var(--tm-bg) 94%, transparent); border-bottom-color: var(--tm); }
body.tm .asof label { color: var(--tm); } body.tm .asof select { border-color: var(--tm); }
body.tm .dl-now { background: var(--tm); border-color: var(--tm-bg); }
.ban { display: flex; gap: 10px; align-items: flex-start; padding: 9px var(--s6); font-size: 13px; border-bottom: 1px solid var(--line); }
.ban .pg { width: 14px; height: 14px; flex: none; margin-top: 3px; }
.ban p { max-width: 110ch; }
.ban-tm { background: var(--tm-bg); color: var(--ink); } .ban-tm .pg { color: var(--tm); }
.ban-sim { background: var(--sim-bg); } .ban-sim .pg { color: var(--pos); }

main.screen { padding: var(--s6) var(--s6) var(--s8); max-width: 1480px; display: grid; gap: var(--s6); align-content: start; }
main:focus { outline: none; }

/* ---------- type and shared pieces ---------- */
h1 { font-size: 30px; line-height: 1.1; font-weight: 700; font-variation-settings: 'wdth' 106; letter-spacing: -.015em; }
h2 { font-size: 18px; line-height: 1.2; font-weight: 700; font-variation-settings: 'wdth' 104; letter-spacing: -.005em; margin-bottom: var(--s3); }
h3 { font-size: 14.5px; font-weight: 700; }
section > h2:not(:first-child), .col-side > h2:not(:first-child), .col-main > h2:not(:first-child) { margin-top: var(--s6); }
.shead { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s5); flex-wrap: wrap; }
.shead-r { display: flex; gap: var(--s4); align-items: flex-end; flex-wrap: wrap; }
.lede { color: var(--ink-2); max-width: 72ch; margin-top: 6px; font-size: 14.5px; }
.kicker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: var(--s3); }
.aside { font-size: 12.5px; color: var(--ink-3); margin-top: var(--s2); max-width: 78ch; }
.hint { font-size: 12px; color: var(--ink-3); padding: 0 var(--s4) var(--s3); }
.tag { font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-2); white-space: nowrap; }
.count-n { font-size: 12.5px; font-weight: 600; color: var(--ink-3); margin-left: 6px; letter-spacing: 0; }
.regime { font-weight: 700; color: var(--surface); background: var(--ink); padding: 2px 10px; border-radius: 999px; font-size: 12.5px; }
.cdn { margin-left: auto; font-weight: 500; color: var(--ink-3); } .cdn strong { color: var(--ink); }
.cols { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); gap: var(--s7); align-items: start; }
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--surface); border: 1px solid var(--ink); border-radius: var(--radius-s); padding: 7px 14px; font-weight: 600; font-size: 13.5px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.quiet:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .35; cursor: default; }
.ctl { display: grid; gap: 3px; }
.ctl-l { font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.ctl-v { font-weight: 600; padding: 5px 0; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-s); overflow: hidden; background: var(--surface); }
.seg button { background: none; border: 0; border-right: 1px solid var(--line); padding: 5px 11px; cursor: pointer; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.seg button:last-child { border-right: 0; }
.seg button[aria-selected="true"] { background: var(--ink); color: var(--surface); font-weight: 600; }
.seg button[disabled] { color: var(--ink-3); opacity: .55; cursor: help; text-decoration: line-through; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; font-weight: 500; padding: 5px 0; white-space: nowrap; }
.switch input { appearance: none; width: 30px; height: 18px; border-radius: 9px; background: var(--line-strong); position: relative; cursor: pointer; margin: 0; transition: background .15s; }
.switch input::after { content: ''; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); transition: transform .15s; }
.switch input:checked { background: var(--ink); } .switch input:checked::after { transform: translateX(12px); }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border: 1px solid var(--line-strong); border-left: 3px solid var(--tm); border-radius: var(--radius-s); background: var(--surface); font-size: 13.5px; max-width: 108ch; }
.notice .pg { width: 14px; height: 14px; flex: none; margin-top: 3px; color: var(--tm); }
.empty { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius-s); color: var(--ink-2); font-size: 13px; background: repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in srgb, var(--line) 45%, transparent) 7px 8px); }
.empty .pg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--ink-3); }
.empty strong { display: block; color: var(--ink); } .empty p { max-width: 70ch; }

/* provenance chips: a glyph with a word; details on hover or focus */
.chip { display: inline-flex; align-items: center; gap: 4px; vertical-align: 1px; font: 550 11.5px/1 var(--sans); font-variation-settings: 'wdth' 90; color: var(--ink-2); padding: 3px 8px 3px 6px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); cursor: help; white-space: nowrap; }
.chip .pg { width: 11px; height: 11px; }
.chip.quiet { border: 0; padding: 2px; background: none; color: var(--ink-3); vertical-align: -2px; }
.chip.quiet .pg { width: 12px; height: 12px; }
.chip-forecast, .chip-forecast.quiet { color: var(--plan); }
.chip-simulated { border-style: dashed; border-color: var(--pos); color: var(--pos); background: var(--sim-bg); }
.chip-simulated.quiet { color: var(--pos); background: none; }
.chip-not_loaded { border-style: dashed; color: var(--ink-3); }
.chip-ai { font-family: var(--serif); font-style: italic; font-size: 12.5px; }
.side { display: inline-block; font-weight: 700; font-size: 11.5px; padding: 1px 6px; border-radius: 4px; border: 1.5px solid currentColor; cursor: help; font-variation-settings: 'wdth' 92; }
.side-inc { color: var(--neg); } .side-dec { color: var(--pos); }
.tip { position: absolute; left: 0; top: 0; z-index: 60; max-width: 340px; background: var(--ink); color: var(--page); padding: 9px 12px; border-radius: 8px; font-size: 12.5px; line-height: 1.4; pointer-events: none; box-shadow: 0 6px 24px rgb(0 0 0 / .22); }
.tip p + p { margin-top: 3px; opacity: .86; } .tip .lead { font-weight: 600; }

/* keys and legends */
.fig-foot, .legend { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.fig-foot { padding: var(--s3) var(--s4) var(--s4); }
.key { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; background: var(--div-mid); }
.sw.neg { background: var(--neg); } .sw.pos { background: var(--pos); }
.sw.ghost { background: none; border: 2px solid var(--ghost); border-radius: 50%; }
.sw.na, td.na { background: repeating-linear-gradient(135deg, var(--surface-2) 0 3px, var(--line) 3px 4px); }
.ln { width: 20px; height: 0; border-top: 2.5px solid var(--c, var(--ink)); display: inline-block; }
.ln.dash { border-top-style: dashed; } .ln.plan { --c: var(--plan); } .ln.ink { --c: var(--ink); } .ln.ghost { --c: var(--ghost); }
.tri { width: 0; height: 0; border: 6px solid transparent; border-top: 9px solid var(--ink); border-bottom: 0; }
.scale-note { color: var(--ink-3); }
.dlegend { display: inline-flex; align-items: center; gap: 8px; }
.dl-steps { display: inline-flex; gap: 2px; } .dl-steps i { width: 18px; height: 12px; border-radius: 2px; cursor: help; }
.dlegend em { font-style: normal; color: var(--ink-3); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--c, transparent); margin-right: 6px; vertical-align: 0; }
.meter { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 5px 0 3px; max-width: 160px; }
.meter i { display: block; height: 100%; background: var(--ink); border-radius: 3px; }
.bignum { font-size: 32px; font-weight: 700; line-height: 1.05; font-variation-settings: 'wdth' 92; letter-spacing: -.02em; }
.bignum small { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-top: 4px; font-variation-settings: 'wdth' 100; }

/* figures: the only things that sit on a surface */
.hero-fig, .panel, .tape-main, .net-map, .deck-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
figcaption { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s4); padding: var(--s4) var(--s4) var(--s2); flex-wrap: wrap; }
figcaption strong { display: block; font-size: 14.5px; }
figcaption span { color: var(--ink-3); font-size: 12.5px; }
figcaption select { padding: 2px 24px 2px 6px; font-weight: 700; margin-left: 4px; }
.panel .chart { margin: 0 var(--s2); } .panel .legend { padding: 0 var(--s4) var(--s3); }
.chart { width: 100%; }

/* tables */
.tablewrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl thead th { font-size: 11.5px; font-weight: 600; color: var(--ink-3); border-bottom-color: var(--line-strong); white-space: nowrap; font-variation-settings: 'wdth' 90; }
.tbl tbody th { font-weight: 600; white-space: nowrap; }
.tbl tbody th small { display: block; font-weight: 400; color: var(--ink-3); font-size: 11.5px; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl tr.cur > * { background: var(--surface); box-shadow: inset 0 1px 0 var(--ink), inset 0 -1px 0 var(--ink); }
.tbl tr.grp th { font-size: 12px; color: var(--ink-2); padding-top: 14px; background: none; }
.rules, .plain, .drivers { display: grid; gap: 0; }
.rules li, .plain li { display: grid; gap: 1px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rules li span, .plain li span { color: var(--ink-2); font-size: 13px; }
.drivers li { padding: 8px 0 8px 14px; border-bottom: 1px solid var(--line); position: relative; }
.drivers li::before { content: ''; position: absolute; left: 0; top: 15px; width: 6px; height: 2px; background: var(--ink-3); }
.lineage { display: grid; gap: 0; }
.lineage > div { display: grid; grid-template-columns: 130px 1fr; gap: var(--s3); padding: 8px 0; border-bottom: 1px solid var(--line); }
.lineage dt { color: var(--ink-3); font-size: 12.5px; font-weight: 600; } .lineage dd .muted { display: block; font-size: 12px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
.facts > div { border-top: 2px solid var(--ink); padding-top: 8px; }
.facts dt { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.facts dd { font-size: 24px; font-weight: 700; font-variation-settings: 'wdth' 92; letter-spacing: -.015em; line-height: 1.15; }
.facts dd small { font-size: 12.5px; font-weight: 500; color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
.facts span { font-size: 12px; color: var(--ink-3); }
.facts.tight { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s5); } .facts.tight dd { font-size: 19px; }
.facts.two { grid-template-columns: 1fr 1fr; }

/* ---------- the hour curtain ---------- */
.curtain { display: block; width: 100%; height: auto; padding: 0 var(--s4); overflow: visible; }
.curtain text { font-family: var(--sans); fill: var(--ink-3); font-size: 11px; }
.cu-grid { stroke: var(--line); stroke-width: 1; } .cu-grid.zero { stroke: var(--ink-3); }
.cu-he { font-weight: 600; font-size: 11.5px !important; fill: var(--ink-2) !important; } .cu-he.now { fill: var(--ink) !important; font-weight: 800; }
.cu-now { fill: var(--ink); opacity: .06; }
.cu-obs.neg, .cu-mid.neg { fill: var(--neg); } .cu-obs.pos, .cu-mid.pos { fill: var(--pos); }
.cu-band.neg { fill: var(--neg); opacity: .22; } .cu-band.pos { fill: var(--pos); opacity: .22; }
.cu-clip { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cu-ghost { fill: var(--surface); stroke: var(--ghost); stroke-width: 2.5; }
.cu-gap { stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 2 4; stroke-linecap: round; }
.cu-hit { fill: transparent; cursor: help; } .cu-hit:hover, .cu-hit:focus-visible { fill: var(--ink); fill-opacity: .06; outline: none; }
.cu-br { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; } .cu-br.inc { stroke: var(--neg); } .cu-br.dec { stroke: var(--pos); }
.cu-brl { font-weight: 700; font-size: 12px !important; fill: var(--ink) !important; }
.curtain.compact { padding: 0; min-width: 220px; height: 30px; }
:root[data-theme="dark"] .curtain:not(.compact) :is(.cu-obs, .cu-mid) { filter: drop-shadow(0 0 5px color-mix(in srgb, currentColor 0%, var(--glow, transparent))); }
:root[data-theme="dark"] .curtain:not(.compact) .neg:is(.cu-obs, .cu-mid) { filter: drop-shadow(0 0 6px rgb(26 166 124 / .55)); }
:root[data-theme="dark"] .curtain:not(.compact) .pos:is(.cu-obs, .cu-mid) { filter: drop-shadow(0 0 6px rgb(152 105 238 / .6)); }
.spark { display: block; } .spark-line { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; } .spark-dot { fill: var(--ink); } .spark-zero { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 2 3; }

/* ---------- Today ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); align-items: start; }
.hero h1.voice { font-size: clamp(30px, 3.1vw, 46px); line-height: 1.06; font-weight: 500; letter-spacing: -.02em; text-wrap: balance; font-variation-settings: normal; }
.voice.sub { font-size: 18px; line-height: 1.4; color: var(--ink-2); margin-top: var(--s4); max-width: 46ch; text-wrap: pretty; }
.hero .notice { margin-top: var(--s5); }
.hero-count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line-strong); }
.hero-count strong { font-size: 22px; font-weight: 700; font-variation-settings: 'wdth' 92; } .hero-count span { color: var(--ink-3); flex: 1 1 200px; font-size: 13px; } .hero-count .btn { align-self: center; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 var(--good); animation: live 2.4s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line-strong); }
.tile { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 2px; padding: var(--s3) var(--s4) var(--s3); text-decoration: none; border-right: 1px solid var(--line); min-width: 0; }
.tile:first-child { padding-left: 0; } .tile:last-child { border-right: 0; }
.tile:hover .tile-l { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.tile-l { font-size: 12px; font-weight: 600; color: var(--ink-3); font-variation-settings: 'wdth' 90; }
.tile-v { font-size: 25px; font-weight: 700; font-variation-settings: 'wdth' 90; letter-spacing: -.02em; line-height: 1.15; white-space: nowrap; }
.tile-v small { font-size: 11.5px; font-weight: 500; color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
.tile-s { font-size: 12px; color: var(--ink-2); min-height: 2.6em; }
.tile-c { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.tile .spark { margin-top: 2px; max-width: 100%; }
.mixbar { display: flex; gap: 2px; height: 10px; margin-top: 10px; } .mixbar i { border-radius: 2px; background: var(--ink-3); min-width: 3px; }
.mixbar .mx-gas { background: var(--ghost); } .mixbar .mx-nuclear { background: var(--plan); } .mixbar .mx-coal { background: var(--ink-2); } .mixbar .mx-solar { background: var(--solar); } .mixbar .mx-wind { background: var(--neg); }
.changes li { display: grid; grid-template-columns: 74px 92px minmax(0, 1fr) auto; gap: var(--s3); align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); }
.changes time { font-weight: 700; } .changes time small { display: block; font-weight: 400; color: var(--ink-3); font-size: 11.5px; }
.ch-kind { font-size: 12px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ch-kind::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.ch-alert .ch-kind::before { background: var(--crit); border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); } .ch-gas .ch-kind::before { background: var(--warn); border-radius: 0; transform: rotate(45deg); } .ch-outage .ch-kind::before { border-radius: 1px; background: var(--ink-2); }
.changes a { text-decoration: none; overflow-wrap: anywhere; } .changes a:hover { text-decoration: underline; }
.prio-mini li a { display: grid; grid-template-columns: 28px 1fr; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.prio-mini li a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.pn { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.prio-mini .voice { font-size: 15.5px; line-height: 1.35; color: var(--ink-2); margin: 3px 0; }
.meta { font-size: 12px; color: var(--ink-3); }

/* ---------- Morning report ---------- */
.report { display: grid; gap: var(--s7); }
.lead { max-width: 1040px; }
.headline { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.05; font-weight: 500; letter-spacing: -.02em; text-wrap: balance; margin-bottom: var(--s4); }
.reviewer { font-size: 19px; line-height: 1.45; color: var(--ink-2); max-width: 64ch; margin-bottom: var(--s6); text-wrap: pretty; }
.prios { display: grid; gap: var(--s5); }
.prio { border-top: 2px solid var(--ink); padding-top: var(--s4); display: grid; gap: var(--s4); }
.prio-h { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: var(--s4); align-items: start; }
.prio-h h3 { font-size: 18px; letter-spacing: -.005em; } .prio-h h3 .side { font-size: 13px; vertical-align: 2px; }
.prio-h .voice { font-size: 17.5px; line-height: 1.4; color: var(--ink-2); margin-top: 4px; max-width: 62ch; }
.prio-n { display: flex; gap: var(--s5); text-align: right; } .prio-n dt { font-size: 11.5px; color: var(--ink-3); font-weight: 600; white-space: nowrap; } .prio-n dd { font-size: 20px; font-weight: 700; font-variation-settings: 'wdth' 92; white-space: nowrap; } .prio-n dd small { font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.locs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-left: 46px; }
.loc { font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-strong); text-decoration: none; background: var(--surface); } .loc:hover { border-color: var(--ink); } .loc.lead { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.locs .muted { font-size: 12px; margin-left: 6px; }
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); padding-left: 46px; }
.why h4 { font-size: 12px; font-weight: 700; color: var(--ink-2); padding-bottom: 6px; border-bottom: 1px solid var(--line-strong); margin-bottom: 6px; }
.why li { padding: 5px 0; font-size: 13.5px; } .why .none { color: var(--ink-3); font-size: 13px; }
.prio-f { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding-left: 46px; flex-wrap: wrap; }
.fb { display: inline-flex; gap: 6px; } .fb button { background: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 12px; font-size: 12.5px; cursor: pointer; color: var(--ink-2); } .fb button:hover { border-color: var(--ink); color: var(--ink); } .fb button[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.locs-tbl .c-cur { width: 34%; min-width: 230px; padding-top: 3px; padding-bottom: 3px; }
.gaps { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); margin-top: var(--s4); }
.devlayer { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: var(--s5); }
.mr-head h1 { margin-top: 2px; }
.deck { display: grid; gap: var(--s5); justify-items: center; }
.deck-line { display: flex; width: min(100%, 880px); justify-content: space-between; position: relative; }
.deck-line::before { content: ''; position: absolute; left: 4%; right: 4%; top: 7px; height: 2px; background: var(--line-strong); }
.deck-line li { flex: 1; display: grid; justify-items: center; }
.deck-line button { background: none; border: 0; display: grid; justify-items: center; gap: 6px; cursor: pointer; font-size: 11.5px; color: var(--ink-3); padding: 0 2px; font-variation-settings: 'wdth' 85; position: relative; }
.deck-line .stn { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--page); }
.deck-line .done .stn { background: var(--ink-3); border-color: var(--ink-3); } .deck-line .cur .stn { background: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 3px var(--page), 0 0 0 5px var(--ink); } .deck-line .cur button { color: var(--ink); font-weight: 700; }
.deck-card { width: min(100%, 520px); min-height: 420px; padding: var(--s6); display: grid; gap: var(--s4); align-content: start; box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgb(14 27 42 / .35); }
.deck-card:focus { outline: none; }
.deck-n { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.deck-card h2 { font-size: 22px; margin: 0; } .deck-card h2.voice { font-size: 27px; line-height: 1.12; font-weight: 500; letter-spacing: -.015em; text-wrap: balance; }
.deck-card p.voice { font-size: 17px; line-height: 1.42; color: var(--ink-2); } .deck-card .hello { color: var(--ink); }
.deck-card .cdn { margin: 0; } .deck-card .btn { justify-self: start; } .deck-card .spark { width: 100%; height: auto; }
.deck-nav { display: flex; gap: var(--s3); align-items: center; }
.kv li { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--s3); padding: 9px 0; border-bottom: 1px solid var(--line); } .kv strong { font-size: 17px; } .kv em { grid-column: 1 / -1; font-style: normal; font-size: 12px; color: var(--ink-3); }
.fbrow { display: grid; gap: 6px; padding: 9px 0; border-bottom: 1px solid var(--line); }

/* ---------- Market ---------- */
.tape { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: var(--s5); align-items: start; }
.tape-main { padding-top: var(--s2); min-width: 0; } .tape-main .empty { margin: 0 var(--s4) var(--s4); }
.readout { position: sticky; top: 76px; display: grid; gap: var(--s3); font-size: 13px; max-height: calc(100vh - 92px); overflow: auto; padding-right: 2px; }
.ro-time { display: grid; gap: 1px; padding-bottom: var(--s3); border-bottom: 2px solid var(--ink); }
.ro-time strong { font-size: 30px; font-weight: 700; font-variation-settings: 'wdth' 92; letter-spacing: -.02em; line-height: 1; }
.ro-time span { font-size: 12.5px; color: var(--ink-2); } .ro-time .muted { color: var(--ink-3); font-size: 11.5px; }
.ro-future { color: var(--tm) !important; font-weight: 600; margin-top: 4px; }
.ro-panel h3 { font-size: 12px; color: var(--ink-3); font-weight: 600; margin-bottom: 2px; }
.ro-panel li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto 16px; gap: 6px; align-items: center; padding: 3px 0; }
.ro-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ro-v { font-weight: 700; font-size: 14px; } .ro-v em { font-style: normal; font-weight: 400; color: var(--ink-3); font-size: 12px; }
.ro-u { font-size: 11px; color: var(--ink-3); } .ro-panel { padding-bottom: var(--s2); border-bottom: 1px solid var(--line); }
.ro-panel li.later .ro-n { color: var(--ghost); }
.ro-ev li { grid-template-columns: 14px 1fr; align-items: start; font-size: 12px; }
.ro-key { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--ink-3); }
.ev { width: 9px; height: 9px; display: inline-block; flex: none; margin-top: 3px; }
.ev-alert { background: var(--crit); clip-path: polygon(50% 0, 100% 100%, 0 100%); } .ev-gas { background: var(--warn); transform: rotate(45deg) scale(.8); } .ev-outage { background: var(--ink-2); border-radius: 1px; }
.heat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s4); margin-bottom: var(--s3); flex-wrap: wrap; } .heat-head h2 { margin: 0; }
.heatmap { border-collapse: separate; border-spacing: 2px; width: 100%; font-size: 12px; }
.heatmap thead th { font-weight: 600; color: var(--ink-3); font-size: 11px; padding: 2px 0; text-align: center; }
.heatmap tbody th { text-align: right; padding-right: 8px; white-space: nowrap; font-weight: 600; width: 1%; }
.heatmap tbody th button { background: none; border: 0; padding: 2px 0; cursor: pointer; font-weight: 600; } .heatmap tbody th button:hover { text-decoration: underline; }
.heatmap td { height: 20px; min-width: 20px; border-radius: 3px; cursor: pointer; } .heatmap td:hover { outline: 2px solid var(--ink); outline-offset: 0; }
.heatmap td.na { cursor: help; } .heatmap td.avg { background: none; text-align: right; padding-left: 10px; white-space: nowrap; cursor: default; font-weight: 600; width: 1%; } .heatmap th.avg { text-align: right; white-space: nowrap; padding-left: 10px; }
.heatmap tr.grp th { text-align: left; font-size: 11.5px; color: var(--ink-3); padding-top: 8px; } .heatmap tr.cur tbody, .heatmap tr.cur th button { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.heat .fig-foot { padding-left: 0; }

/* ---------- Network ---------- */
.net { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: var(--s5); align-items: start; }
.net-svg { padding: var(--s3) var(--s3) 0; }
.metro { width: 100%; height: auto; display: block; }
.metro text { font-family: var(--sans); }
.track-bg { fill: none; stroke: var(--surface); stroke-width: 18; stroke-linecap: round; stroke-linejoin: round; }
.track { fill: none; stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.tie-ln { stroke: var(--line-strong); stroke-width: 5; stroke-dasharray: 2 8; stroke-linecap: round; }
.st-shape { stroke: var(--ink); stroke-width: 3; transition: fill .45s ease; } .kg .st-shape { fill: var(--div-mid); stroke-width: 2; }
.st-halo { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; }
.st-l { font-size: 18px; font-weight: 700; fill: var(--ink); font-stretch: 85%; font-variation-settings: 'wdth' 85; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.st-v { font-size: 15.5px; font-weight: 500; fill: var(--ink-2); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.stn-g, .iface, .tie { cursor: pointer; outline: none; } .iface, .tie { cursor: help; }
.stn-g:hover .st-shape, .stn-g:focus-visible .st-shape { stroke-width: 5; }
.stn-g.sel .st-shape { stroke-width: 5.5; } .stn-g.sel .st-l { text-decoration: underline; text-decoration-thickness: 2px; }
.stn-g:focus-visible .st-l, .iface:focus-visible .if-l { fill: var(--focus); }
.ord-ring, .ord-shape { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 3; }
.pulse { fill: none; stroke: var(--ink); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulse 0.75s ease-out 1 both; }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
.iface path { fill: var(--surface); stroke: var(--ink-2); stroke-width: 2; } .kg .if-shape { fill: var(--surface); stroke: var(--ink-2); stroke-width: 2; }
.if-watch path { fill: var(--warn); stroke: var(--ink); } .if-binding path { fill: var(--crit); stroke: var(--ink); } .iface .if-bar { stroke: #fff; stroke-width: 2.5; fill: none; }
.if-l { font-size: 14px; font-weight: 600; fill: var(--ink-3); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.tie circle { fill: var(--surface); stroke: var(--ink-3); stroke-width: 2; stroke-dasharray: 3 2; } .tie .st-l { fill: var(--ink-2); }
.out-b path, .out-shape { fill: var(--ink); } .out-b text { fill: var(--surface); font-size: 10.5px; font-weight: 700; }
.hatch-bg { fill: var(--surface-2); } .hatch-ln { stroke: var(--line-strong); stroke-width: 2; }
.kg { width: 15px; height: 15px; }
.scrub { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border-top: 1px solid var(--line); }
.scrub input[type=range] { flex: 1; accent-color: var(--ink); } .scrub output { font-weight: 700; min-width: 76px; text-align: right; }
.net-map .aside { padding: 0 var(--s4) var(--s4); margin: 0; }
.net-side { display: grid; gap: var(--s3); align-content: start; position: sticky; top: 76px; } .net-side h2 { margin: 0; font-size: 22px; } .net-side h3 { margin-top: var(--s3); } .net-side .kicker { margin: 0; }
.net-side .mini .curtain { padding: 0; } .net-side .btn { justify-self: start; margin-top: var(--s2); }
:root[data-theme="dark"] .track { filter: drop-shadow(0 0 5px rgb(120 160 220 / .25)); }

/* ---------- Trades ---------- */
.pnl-big { font-size: clamp(40px, 5vw, 68px); font-weight: 750; line-height: 1; font-variation-settings: 'wdth' 88; letter-spacing: -.03em; }
.tally { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: var(--s5); } .tally li { display: inline-flex; gap: 7px; align-items: center; } .tally strong { font-size: 16px; }
.out { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.out::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); flex: none; }
.out-won::before { background: var(--good); } .out-lost::before { background: var(--crit); border-radius: 1px; }
.out-missed::before { background: none; border: 2px solid var(--warn); } .out-did-not-clear::before { background: none; border: 2px solid var(--ink-3); }
.out-sat-out::before { background: none; border: 2px dashed var(--ink-3); } .out-locked::before { background: var(--ink); border-radius: 2px; }
.ledger tbody tr { cursor: pointer; } .ledger tbody tr:hover > * { background: var(--surface); }
.sum { padding: var(--s2) var(--s4) var(--s4); font-size: 13.5px; color: var(--ink-2); max-width: 78ch; } .sum strong { color: var(--ink); }
.trades-hero .voice.sub { margin-top: var(--s3); }

/* ---------- News ---------- */
.gantt { display: grid; font-size: 12.5px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; padding: var(--s3) var(--s4); }
.g-head, .g-row { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: var(--s3); align-items: center; }
.g-row { border-top: 1px solid var(--line); min-height: 30px; }
.g-lab { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; white-space: nowrap; overflow: hidden; }
.g-lab span { overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); } .g-lab em { font-style: normal; color: var(--ink-3); font-size: 11.5px; }
.g-track { position: relative; height: 30px; } .g-head .g-track { height: 22px; }
.g-day { position: absolute; top: 2px; font-size: 11px; color: var(--ink-3); padding-left: 4px; white-space: nowrap; font-variation-settings: 'wdth' 85; } .g-day.we { color: var(--ink-3); opacity: .7; }
.g-grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.g-now { position: absolute; top: -1px; bottom: -1px; width: 2px; background: var(--tm); z-index: 2; }
.g-bar { position: absolute; top: 9px; height: 12px; border-radius: 4px; background: var(--ink-3); cursor: help; z-index: 1; min-width: 5px; }
.g-bar.kv765, .gk.kv765 { background: var(--ink); } .g-bar.kv500, .gk.kv500 { background: var(--ink-2); } .g-bar.kv345, .gk.kv345 { background: color-mix(in srgb, var(--ink-3) 70%, var(--surface)); }
.g-bar.open-l { border-top-left-radius: 0; border-bottom-left-radius: 0; } .g-bar.open-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.g-bar:hover, .g-bar:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.gk { width: 18px; height: 9px; border-radius: 3px; display: inline-block; } .gk.now { width: 2px; height: 14px; background: var(--tm); border-radius: 0; }
.panel-sec .fig-foot { background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.lanes { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .85fr); gap: var(--s6); align-items: start; }
.lane h2 { margin-bottom: 2px; } .lane-s { font-size: 12.5px; color: var(--ink-3); margin-bottom: var(--s3); }
.story { padding: var(--s3) 0 var(--s3) var(--s4); border-top: 1px solid var(--line); border-left: 3px solid var(--line-strong); margin-bottom: var(--s2); }
.story.on { border-left-color: var(--crit); }
.story-h { display: flex; justify-content: space-between; gap: var(--s3); font-size: 12px; color: var(--ink-3); margin-bottom: 3px; }
.sev { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--ink-2); } .sev svg { width: 11px; height: 11px; }
.sev-warning { color: var(--crit); } .sev-alert { color: var(--warn); }
.story p { font-size: 13px; color: var(--ink-2); margin-top: 3px; overflow-wrap: anywhere; } .story-f { display: flex; gap: 6px; align-items: center; font-weight: 600; font-size: 12px !important; }
.gaslist li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: var(--s3); padding: 9px 0; border-top: 1px solid var(--line); }
.gaslist time { font-weight: 600; font-size: 12.5px; } .gaslist time small { display: block; font-weight: 400; color: var(--ink-3); }
.gaslist strong { margin-right: 8px; } .gaslist p { font-size: 13px; color: var(--ink-2); margin-top: 3px; overflow-wrap: anywhere; }
.lane.press { background: var(--surface-2); border-radius: var(--radius); padding: var(--s4) var(--s5) var(--s5); border: 1px dashed var(--line-strong); }
.heads li { padding: 10px 0; border-top: 1px solid var(--line); } .heads .voice { font-size: 17px; line-height: 1.3; } .heads span { font-size: 12px; color: var(--ink-3); }

/* ---------- Data and development ---------- */
.health { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--s7); align-items: start; }
.health-sum { display: grid; grid-template-columns: repeat(3, auto); gap: var(--s4) var(--s5); justify-content: start; } .health-sum .voice { grid-column: 1 / -1; font-size: 16px; margin: 0; }
.health .aside { grid-column: 2; }
.state { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12.5px; } .state i { width: 9px; height: 9px; border-radius: 50%; }
.st-live i { background: var(--good); } .st-delayed i { background: none; border: 2px solid var(--warn); } .st-paused i { background: var(--warn); border-radius: 1px; } .st-paused { color: var(--warn); }
.feeds code { background: none; padding: 0; color: var(--ink-3); }
.flow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; counter-reset: f; }
.flow li { position: relative; padding: var(--s3) var(--s4) var(--s3) 0; border-top: 3px solid var(--ink); display: grid; gap: 3px; align-content: start; margin-right: var(--s3); }
.flow li::after { content: ''; position: absolute; right: -9px; top: -8px; border: 6.5px solid transparent; border-left-color: var(--ink); }
.flow li:last-child::after { display: none; }
.flow li span { font-size: 12px; color: var(--ink-2); } .flow li.gate { border-top-color: var(--tm); } .flow li.gate strong { color: var(--tm); }
.flow-ai { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin-top: var(--s4); padding: var(--s3) var(--s4); border: 1px dashed var(--line-strong); border-radius: var(--radius-s); font-size: 13px; } .flow-ai > span:not(.chip) { color: var(--ink-2); flex: 1 1 400px; } .flow-ai .chip { flex: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .hero, .cols, .tape, .net, .health { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .readout, .net-side { position: static; max-height: none; }
  .readout { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } .ro-time, .ro-key { grid-column: 1 / -1; }
  .lanes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .lane.press { grid-column: 1 / -1; }
  .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: var(--s4); } .health .aside { grid-column: 1; }
  .topbar { grid-template-columns: auto 1fr auto; } .dayline { display: none; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .rail { position: fixed; inset: auto 0 0 0; height: auto; flex-direction: row; padding: 0; border-right: 0; border-top: 1px solid var(--line-strong); background: var(--surface); z-index: 20; }
  .brand, .rail-foot, .nav-s, .line::before { display: none; }
  .line { display: flex; width: 100%; overflow-x: auto; gap: 0; scrollbar-width: none; }
  .line li { flex: 1 0 auto; } .line a { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 3px; padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); }
  .line .stn { grid-row: auto; margin: 0; width: 10px; height: 10px; } .nav-l { font-size: 11.5px; white-space: nowrap; } .line a[aria-current] .stn { box-shadow: none; }
  .topbar { grid-template-columns: 1fr auto; gap: var(--s3); padding: 8px 16px; } .count { display: none; } .now-day { display: none; }
  .ban { padding: 8px 16px; }
  main.screen { padding: var(--s4) 16px 96px; gap: var(--s5); }
  h1 { font-size: 24px; } .hero h1.voice, .headline { font-size: 30px; } .voice.sub, .reviewer { font-size: 16.5px; }
  .strip { grid-template-columns: 1fr 1fr; } .tile { padding: var(--s3) var(--s3) var(--s3) 0; border-bottom: 1px solid var(--line); } .tile:nth-child(even) { border-right: 0; padding-left: var(--s3); }
  .facts, .facts.tight, .why, .gaps, .lanes { grid-template-columns: minmax(0, 1fr); } .facts { grid-template-columns: 1fr 1fr; }
  .prio-h { grid-template-columns: 30px minmax(0, 1fr); } .prio-n { grid-column: 2; text-align: left; } .locs, .why, .prio-f { padding-left: 0; }
  .changes li { grid-template-columns: 62px minmax(0, 1fr) auto; } .ch-kind { grid-column: 2; } .changes a { grid-column: 2; }
  .hero-fig, .tape-main, .net-map { overflow-x: auto; } .curtain:not(.compact) { min-width: 640px; } .metro { min-width: 760px; }
  .deck-line span { display: none; } .deck-card { padding: var(--s5); min-height: 0; }
  .g-head, .g-row { grid-template-columns: 150px minmax(0, 1fr); } .g-lab { grid-template-columns: 48px 1fr; } .g-lab em { display: none; }
  .flow { grid-template-columns: 1fr 1fr; } .shead-r { gap: var(--s3); } select { max-width: 200px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (forced-colors: active) { .cu-band, .cu-obs, .cu-mid, .st-shape, .g-bar, .heatmap td { forced-color-adjust: none; } }
