/* Watch the agents. Derived from the eval-journey craft bar: near-black ground, off-white ink,
   Supreme for words, Martian Mono for numbers, blue = leans up, orange = leans down. */

@font-face { font-family: 'Supreme'; src: url('/fonts/supreme-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Supreme'; src: url('/fonts/supreme-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Supreme'; src: url('/fonts/supreme-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Martian Mono'; src: url('/fonts/martian-mono-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Martian Mono'; src: url('/fonts/martian-mono-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ground: #05090D;
  --raise: #0A1016;
  --raise-2: #0F161D;
  --ink: #EAF0F4;
  --ink-80: rgb(234 240 244 / .8);
  --muted: #8D9AA5;
  --line: rgb(234 240 244 / .12);
  --line-2: rgb(234 240 244 / .2);
  --up: #2AA7EC;
  --down: #FC734D;
  --flat: #B9C3CB;
  --none: rgb(141 154 165 / .28);
  --f: 'Supreme', 'Helvetica Neue', Arial, sans-serif;
  --m: 'Martian Mono', Menlo, Consolas, monospace;
  --pad: clamp(20px, 4vw, 56px);
  --max: 1720px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --t-h1: clamp(34px, 4.1vw, 66px);
  --t-h2: clamp(30px, 3.6vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { background: var(--ground); color: var(--ink); -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 140px; }
body { font: 400 17px/1.55 var(--f); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
::selection { background: rgb(42 167 236 / .35); }
a { color: inherit; }
i, em { font-style: normal; }
ol, ul { list-style: none; }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--up); outline-offset: 3px; border-radius: 4px; }
.num { font-family: var(--m); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 12px; z-index: 30; background: var(--ink); color: var(--ground); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
h1, h2, h3 { font-weight: 500; color: var(--ink); text-wrap: balance; }
h2 { font-size: var(--t-h2); line-height: 1; letter-spacing: -.03em; }
h3 { font-size: 20px; letter-spacing: -.01em; }
.fine { font-size: 14px; color: var(--muted); max-width: 46rem; }

/* header */
.top { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px var(--pad); background: rgb(5 9 13 / .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; text-decoration: none; min-height: 44px; }
.mark-glyph { width: 22px; height: 16px; fill: var(--ink); overflow: visible; }
.mark-glyph rect { transform-origin: left; transition: transform .3s var(--ease); }
.mark-glyph rect:nth-child(2) { fill: var(--up); }
.mark-glyph rect:nth-child(3) { fill: var(--down); }
.top nav { display: flex; gap: clamp(2px, 1.4vw, 20px); }
.top nav a { position: relative; font-size: 14px; color: var(--ink-80); text-decoration: none; padding: 12px 6px; transition: color .2s ease; }
.top nav a::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: 8px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
@media (hover: hover) { .top nav a:hover { color: var(--ink); } .top nav a:hover::after { transform: scaleX(1); } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; font-size: 15px; font-weight: 500; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, opacity .2s ease, transform .15s var(--ease); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; }
.btn-primary { background: var(--ink); color: var(--ground); }
.btn-primary::before { transition: transform .2s var(--ease); content: ''; width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.btn-live::before { content: none; }
.btn-ghost { background: transparent; border: 1px solid var(--line-2); color: var(--ink); }
@media (hover: hover) {
  .btn-ghost:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: var(--ground); }
  .btn-primary:hover:not(:disabled) { background: #fff; box-shadow: 0 0 0 4px rgb(234 240 244 / .14); }
  .btn-primary:hover:not(:disabled)::before { transform: translateX(2px); }
  .ctl-play:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); }
  .ctl-play:hover:not(:disabled) svg { fill: var(--ground); }
  .speed select:hover:not(:disabled) { border-color: var(--ink-80); }
  .row:hover::before { opacity: 1; }
  .row:hover .row-icon { border-color: var(--ink); background: var(--raise-2); }
  .panel-close:hover { background: var(--ink); }
  .panel-close:hover svg { stroke: var(--ground); }
  .p-tick:hover .num { text-decoration: underline; text-underline-offset: 3px; }
  .lead-ticker button:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
  .mark:hover .mark-glyph rect:nth-child(2) { transform: scaleX(1.4); }
  .mark:hover .mark-glyph rect:nth-child(3) { transform: scaleX(2.2); }
}

/* intro: proportionate, the board starts in the first screen */
.intro { max-width: var(--max); margin: 0 auto; padding: clamp(28px, 3.6vw, 56px) var(--pad) clamp(22px, 2.6vw, 36px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.intro .funnel { margin-top: 34px; }
.intro h1 { font-size: var(--t-h1); line-height: 1; letter-spacing: -.032em; max-width: 21ch; }
.lede { margin-top: 14px; font-size: clamp(17px, 1rem + .3vw, 20px); color: var(--muted); max-width: 36rem; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.live-status { margin-top: 14px; font-size: 14px; color: var(--muted); max-width: 40rem; min-height: 1.5em; }
.live-status:empty { display: none; }
[data-report-evidence] select { margin-inline-start: .75rem; min-height: 44px; padding: 0 .75rem; color: var(--ink); background: var(--ground); border: 1px solid var(--line-2); border-radius: 6px; }
.report-agent { border-bottom: 1px solid var(--line-2); }
.report-agent summary { min-height: 44px; padding: .75rem 0; cursor: pointer; overflow-wrap: anywhere; }
.report-agent[open] { padding-bottom: .75rem; }
.funnel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.funnel div { padding: 18px 18px 0 0; }
.funnel div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.funnel dt { font-size: 13px; color: var(--muted); line-height: 1.35; min-height: 2.7em; }
.funnel dd { font-size: clamp(30px, 3.4vw, 56px); line-height: 1; margin-top: 10px; letter-spacing: -.04em; }

/* controls */
.controls { position: sticky; top: 65px; min-width: 0; z-index: 15; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: auto minmax(150px, 220px) 1fr auto auto; align-items: center; gap: 16px; padding: 10px var(--pad); background: rgb(5 9 13 / .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ctl-play svg { transition: fill .15s ease; }
.ctl-play { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; display: grid; place-items: center; cursor: pointer; transition: border-color .2s ease, transform .15s var(--ease); }
.ctl-play:active:not(:disabled) { transform: scale(.94); }
.ctl-play:disabled { opacity: .45; cursor: default; }
.ctl-play svg { width: 16px; height: 16px; fill: var(--ink); }
.ctl-play .i-pause { display: none; }
.ctl-play[aria-pressed="true"] .i-play { display: none; }
.ctl-play[aria-pressed="true"] .i-pause { display: inline; }
.stage-now { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scrub input { width: 100%; height: 44px; accent-color: var(--ink); background: transparent; cursor: pointer; }
.clock { font-size: 13px; color: var(--muted); white-space: nowrap; }
.speed select { min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--ground); font-size: 13px; font-family: var(--m); cursor: pointer; }

/* board */
.board { max-width: var(--max); margin: 0 auto; padding: 24px var(--pad) clamp(40px, 5vw, 72px); --cols: 40; --gap: 3px; --label: clamp(250px, 22vw, 360px); --count: 92px; }
.stages { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.stages li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; row-gap: 2px; align-items: center; color: var(--muted); transition: color .3s ease; }
.stages b { font-weight: 500; font-size: 15px; }
.stages .dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: background-color .3s ease, border-color .3s ease, transform .3s var(--ease); }
.stage-count { grid-column: 2; font-size: 12px; }
.stages li.is-active { color: var(--ink); }
.stages li.is-active .dot { border-color: var(--ink); transform: scale(1.2); }
.stages li.is-done { color: var(--ink-80); }
.stages li.is-done .dot { background: var(--ink); border-color: var(--ink); }
.stage-track { position: relative; height: 1px; margin: 16px 0 22px; background: var(--line); overflow: hidden; }
.stage-fill { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw-up { background: var(--up); }
.sw-down { background: var(--down); }
.sw-flat { background: var(--flat); }
.sw-none { background: transparent; box-shadow: inset 0 0 0 1.5px var(--none); }

.group + .handoff, .handoff + .group { margin-top: 0; }
[data-rows="numbers"]:empty, [data-rows="reading"]:empty { min-height: 294px; }
[data-rows="risk"]:empty { min-height: 98px; }
.group-title { display: flex; gap: 10px; align-items: baseline; font-size: 13px; font-weight: 500; color: var(--ink-80); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.group-title span { color: var(--muted); font-weight: 400; }
.group-risk { margin-top: 26px; border-top: 1px solid var(--line-2); }

.row::before { content: ''; position: absolute; inset: 0 calc(-1 * min(var(--pad), 20px)); background: var(--raise); border-radius: 10px; opacity: 0; transition: opacity .2s ease; z-index: -1; }
.row { isolation: isolate; display: grid; grid-template-columns: var(--label) minmax(0, 1fr) var(--count); align-items: center; gap: 0 clamp(16px, 2vw, 32px); padding: 14px 0; border-bottom: 1px solid var(--line); position: relative; }
.row-head { display: grid; grid-template-columns: 32px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: start; text-align: left; background: none; border: 0; padding: 6px 8px 6px 0; border-radius: 8px; cursor: pointer; min-height: 44px; }
.row-icon { grid-row: 1 / span 2; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line-2); display: grid; place-items: center; transition: border-color .3s ease, background-color .3s ease; }
.row-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.row-name { font-size: 17px; font-weight: 500; line-height: 1.2; }
.row-job { font-size: 13px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
@media (hover: hover) { .row-head:hover .row-name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; } }
.row.is-working .row-icon { border-color: var(--ink); }

.row-main { min-width: 0; }
.cells { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); }
.cell { aspect-ratio: 1 / 1.5; max-height: 34px; border-radius: 3px; background: transparent; box-shadow: inset 0 0 0 1px var(--line); border: 0; padding: 0; cursor: pointer; transition: background-color .25s ease, box-shadow .25s ease; position: relative; }
.cell[data-s="running"] { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cell[data-s="none"] { box-shadow: inset 0 0 0 1.5px var(--none); background: transparent; }
.cell[data-s="error"] { box-shadow: inset 0 0 0 1.5px var(--down); background: repeating-linear-gradient(135deg, transparent 0 3px, rgb(252 115 77 / .35) 3px 4.5px); }
.cell[data-s="found"][data-dir="up"] { background: var(--up); box-shadow: none; }
.cell[data-s="found"][data-dir="down"] { background: var(--down); box-shadow: none; }
.cell[data-s="found"][data-dir="flat"] { background: var(--flat); box-shadow: none; }
.cell[data-s="held"] { box-shadow: inset 0 0 0 1px rgb(234 240 244 / .5); background: repeating-linear-gradient(135deg, rgb(234 240 244 / .5) 0 1.5px, transparent 1.5px 4.5px); }
.cell[data-s="passed"] { background: var(--ink); box-shadow: none; }
.cell.is-focus::after { content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; border-radius: 1px; background: var(--ink); }
.cell.is-col { outline: 1.5px solid var(--ink); outline-offset: 1.5px; }
.cell::before { content: ''; position: absolute; inset: -3px -1.5px; }

.row-line { display: flex; gap: 10px; align-items: baseline; margin-top: 12px; min-height: 22px; font-size: 14px; color: var(--ink-80); overflow: hidden; }
.row-line .num { color: var(--muted); font-size: 12px; flex: none; }
.agent-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.agent-viz { flex: none; width: 112px; height: 22px; margin-left: auto; }
.agent-viz polyline { fill: none; stroke: var(--ink-80); stroke-width: 1.25; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.row-count { text-align: right; }
.row-count b { display: block; font-family: var(--m); font-weight: 400; font-size: 22px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.row-count span { font-size: 12px; color: var(--muted); }

.handoff { display: grid; grid-template-columns: var(--label) minmax(0, 1fr) var(--count); gap: 0 clamp(16px, 2vw, 32px); align-items: center; padding: 18px 0; font-size: 13px; color: var(--muted); }
.handoff > span:nth-child(2) { grid-column: 1; grid-row: 1; }
.handoff-line { grid-column: 2; grid-row: 1; height: 18px; position: relative; background: linear-gradient(var(--line-2), var(--line-2)) center / 100% 1px no-repeat; }
.handoff .num { grid-column: 3; text-align: right; font-size: 12px; }
.drop { position: absolute; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--ink); pointer-events: none; }

.board-state { margin-top: 18px; font-size: 14px; color: var(--muted); }
.board-state:empty { display: none; }

/* report */
.report, .method { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 7vw, 96px) var(--pad); border-top: 1px solid var(--line); }
.report-wait { margin-top: 18px; color: var(--muted); }
.verdict { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 88px); margin-top: clamp(28px, 4vw, 56px); align-items: start; }
.verdict-line { font-size: clamp(44px, 6vw, 96px); line-height: .95; letter-spacing: -.04em; font-weight: 500; }
.verdict-sub { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 30rem; }
.reasons { display: grid; gap: 0; border-top: 1px solid var(--line); }
.reasons li { display: grid; grid-template-columns: 5.5ch 1fr; gap: 18px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.reasons .num { font-size: clamp(28px, 3vw, 44px); line-height: 1; letter-spacing: -.04em; }
.reasons p { font-size: 17px; }
.leads-title { margin-top: clamp(56px, 7vw, 96px); }
.leads-intro { margin-top: 12px; color: var(--muted); max-width: 44rem; }
.leads { margin-top: 28px; border-top: 1px solid var(--line); }
.lead { display: grid; grid-template-columns: 9ch minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px clamp(20px, 3vw, 48px); padding: 24px 0; border-bottom: 1px solid var(--line); }
.lead-ticker { font-family: var(--m); font-size: 22px; letter-spacing: -.02em; display: flex; flex-direction: column; gap: 6px; }
.lead-ticker button { all: unset; cursor: pointer; border-radius: 4px; }
.lead-ticker button:focus-visible { outline: 2px solid var(--up); outline-offset: 3px; }
.lead-stance { font-family: var(--f); font-size: 13px; color: var(--down); }
.lead-stance[data-stance="favorable"] { color: var(--up); }
.lead-headline { font-size: 18px; line-height: 1.4; }
.lead-caveat { margin-top: 10px; font-size: 14px; color: var(--muted); }
.lead-reasons li { display: grid; grid-template-columns: 11ch 1fr; gap: 12px; font-size: 14px; padding: 4px 0; color: var(--ink-80); }
.lead-reasons b { font-weight: 500; color: var(--muted); }
.lead[data-shown="false"] { opacity: .22; }

/* picks */
.verdict-note { margin-top: 14px; font-size: 16px; color: var(--ink-80); max-width: 30rem; }
.picks { margin-top: 28px; border-top: 1px solid var(--line); }
.pick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "head levels levels" "now now now" "when when when" "why why risk"; gap: 16px clamp(20px, 3vw, 48px); padding: 26px 0; border-bottom: 1px solid var(--line); }
.pick-head { grid-area: head; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.pick-ticker { all: unset; cursor: pointer; font-family: var(--m); font-size: clamp(26px, 2.4vw, 36px); letter-spacing: -.03em; border-radius: 4px; }
.pick-ticker:focus-visible { outline: 2px solid var(--up); outline-offset: 3px; }
.pick-side { font-size: 15px; font-weight: 500; color: var(--up); }
.pick[data-dir="short"] .pick-side { color: var(--down); }
.pick-name { flex-basis: 100%; font-size: 14px; color: var(--muted); }
.pick-levels { grid-area: levels; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); align-self: start; }
.pick-levels div { padding: 10px 12px 0 0; }
.pick-levels div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.pick-levels dt { font-size: 12px; color: var(--muted); }
.pick-levels dd { font-size: clamp(18px, 1.6vw, 24px); margin-top: 4px; letter-spacing: -.03em; }
.pick-now { grid-area: now; font-size: 15px; color: var(--ink-80); min-height: 1.5em; }
.pick-now:empty { display: none; }
.pick-now b { font-weight: 500; color: var(--ink); font-size: 17px; }
.pick-now strong { font-weight: 500; color: var(--up); }
.pick-now[data-state="stop"] strong { color: var(--down); }
.live-prices { margin-top: 10px; font-size: 13px; color: var(--muted); }
.live-prices:empty { display: none; }
.pick-when { grid-area: when; font-size: 14px; color: var(--ink-80); }
.pick-why { grid-area: why; }
.pick-risk { grid-area: risk; }
.pick h4 { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.pick-why li { display: grid; grid-template-columns: 11ch 1fr; gap: 12px; padding: 4px 0; font-size: 15px; }
.pick-why b { font-weight: 500; }
.pick-why li.against span { color: var(--down); }
.pick-risk li { font-size: 14px; color: var(--ink-80); padding: 4px 0 4px 18px; position: relative; }
.pick-risk li::before { content: ''; position: absolute; left: 0; top: 1em; width: 8px; height: 1px; background: var(--muted); }
@media (hover: hover) { .pick-ticker:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; } }
@media (max-width: 1023px) { .pick { grid-template-columns: 1fr; grid-template-areas: "head" "levels" "now" "when" "why" "risk"; } }
@media (max-width: 560px) { .pick-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; } .pick-levels div:nth-child(3) { padding-left: 0; border-left: 0; } }

/* method */
.method-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin: clamp(28px, 4vw, 56px) 0 clamp(40px, 5vw, 72px); }
.method-limits { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.method-steps li { border-top: 1px solid var(--line-2); padding-top: 18px; }
.method-steps .num { font-size: 13px; color: var(--muted); }
.method-steps h3 { margin-top: 10px; }
.method-steps p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.limits { margin: 18px 0 28px; display: grid; gap: 10px; max-width: 52rem; }
.limits li { padding-left: 22px; position: relative; color: var(--ink-80); }
.limits li::before { content: ''; position: absolute; left: 0; top: .75em; width: 10px; height: 1px; background: var(--muted); }

/* footer */
.finale { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 8vw, 112px) var(--pad) 48px; border-top: 1px solid var(--line); }
.finale-line { font-size: clamp(32px, 4.4vw, 68px); line-height: 1; letter-spacing: -.035em; font-weight: 500; max-width: 18ch; }
.finale { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px clamp(28px, 5vw, 88px); align-items: end; }
.finale-meta { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.finale-meta a { color: var(--ink-80); text-underline-offset: 3px; }
@media (max-width: 1023px) { .finale { grid-template-columns: 1fr; } }

/* panel */
.panel { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(560px, 100vw); max-width: 100vw; border: 0; border-left: 1px solid var(--line-2); background: var(--raise); color: var(--ink); padding: 0; overflow: hidden; }
.panel[open] { display: flex; flex-direction: column; }
.panel::backdrop { background: rgb(0 0 0 / .5); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px 14px 28px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }
.panel-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; display: grid; place-items: center; cursor: pointer; flex: none; }
.panel-close svg { width: 14px; height: 14px; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.panel-body { overflow-y: auto; overscroll-behavior: contain; padding: 22px 28px 40px; display: grid; gap: 26px; align-content: start; }
.p-meta { color: var(--muted); font-size: 14px; }
.p-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.p-facts div { padding: 12px 12px 0 0; }
.p-facts div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.p-facts dt { font-size: 12px; color: var(--muted); }
.p-facts dd { font-family: var(--m); font-size: 22px; margin-top: 6px; letter-spacing: -.03em; }
.p-section h3 { font-size: 15px; font-weight: 500; margin-bottom: 10px; color: var(--ink-80); }
.p-list > li { padding: 12px 0; border-top: 1px solid var(--line); }
.p-list > li:last-child { border-bottom: 1px solid var(--line); }
.p-agent { display: grid; grid-template-columns: 12ch 1fr; gap: 12px; align-items: baseline; }
.p-agent b { font-weight: 500; }
.p-agent .p-status { font-size: 13px; color: var(--muted); }
.p-agent .p-status[data-dir="up"] { color: var(--up); }
.p-agent .p-status[data-dir="down"] { color: var(--down); }
.p-agent p { grid-column: 2; font-size: 14px; color: var(--ink-80); }
.p-ev a { text-decoration: none; display: block; }
.p-ev a span { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
@media (hover: hover) { .p-ev a:hover span { text-decoration-color: var(--ink); } }
.p-ev small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.p-tick { display: grid; grid-template-columns: 7ch 1fr; gap: 12px; width: 100%; text-align: left; background: none; border: 0; padding: 10px 0; cursor: pointer; font-size: 14px; color: var(--ink-80); min-height: 44px; align-items: baseline; }
.p-tick .num { color: var(--ink); }
.p-tick i { color: var(--muted); }
.p-tick[data-dir="up"] .num { color: var(--up); }
.p-tick[data-dir="down"] .num { color: var(--down); }
.p-spark { width: 100%; height: 64px; }
.p-spark polyline { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.p-empty { color: var(--muted); font-size: 14px; }

.noscript { padding: 40px var(--pad); color: var(--muted); }

/* wide monitors: bigger cells, wider label column */
@media (min-width: 2200px) {
  .board { --label: 400px; --count: 120px; --gap: 4px; }
  .row-count b { font-size: 26px; }
}

/* tablet and phone: one column, cells wrap 20 per line */
@media (max-width: 1023px) {
  .intro { grid-template-columns: 1fr; align-items: start; }
  .controls { grid-template-columns: auto 1fr auto; row-gap: 0; column-gap: 12px; }
  .clock-real { display: none; }
  .method-limits { grid-template-columns: 1fr; }
  .controls .scrub { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
  .controls .speed { grid-column: 3; grid-row: 1; }
  .clock { grid-column: 2; grid-row: 1; justify-self: end; }
  .stage-now { display: none; }
  .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .board { --cols: 20; }
  .row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 12px; }
  .row-head { grid-column: 1; }
  .row-count { grid-column: 2; grid-row: 1; }
  .row-main { grid-column: 1 / -1; }
  .handoff { grid-template-columns: minmax(0, 1fr) auto; }
  .handoff-line { grid-column: 1 / -1; grid-row: 2; }
  .handoff .num { grid-column: 2; }
  .verdict { grid-template-columns: 1fr; }
  .lead { grid-template-columns: 8ch minmax(0, 1fr); }
  .lead-reasons-wrap { grid-column: 1 / -1; }
  .method-steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .top { position: static; }
  .controls { top: 0; padding-top: 6px; padding-bottom: 4px; }
  .scrub input { height: 32px; }
  .mark { font-size: 14px; gap: 8px; }
  .mark-long { display: none; }
  .top nav a { padding: 12px 5px; font-size: 13px; }
  .funnel div { padding-right: 10px; }
  .funnel div + div { padding-left: 10px; }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-viz { display: none; }
  .lead { grid-template-columns: 1fr; }
  .panel { margin: auto 0 0; width: 100vw; height: auto; max-height: 85dvh; border-left: 0; border-top: 1px solid var(--line-2); border-radius: 16px 16px 0 0; }
  .p-facts dd { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
.board.is-scrubbing .cell, .board.is-scrubbing .stages *, .board.is-scrubbing .row-icon { transition: none; }
