/* The Parallax console. It keeps the look of the Sessions page of the console before it, which is the reference the owner named:
 * a white ground, navy ink, Inter Tight with light numerals, near-black night panels for figures, hairline rows and square cells.
 * Colour is state only, one meaning each: blue is live, green succeeded, red failed, grey everything else, a hairline outline is
 * something not reached. No radius but the pill, no shadow but the header's hairline, no cards. Every value is a token below.
 * Pages that update themselves (public/live.js) are drawn by the same rules: nothing moves but a live mark's slow pulse. */

@font-face { font-family: "Inter Tight"; src: url("/fonts/InterTight.woff2") format("woff2"); font-weight: 200 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/JetBrainsMono.woff2") format("woff2"); font-weight: 300 500; font-display: swap; }

:root {
  color-scheme: light;
  --ground: #fff;
  --ink: oklch(0.24 0.055 262);
  --ink-2: oklch(0.46 0.03 262);
  --line: oklch(0.24 0.055 262 / 0.16);
  --line-strong: oklch(0.24 0.055 262 / 0.5);
  --hover: oklch(0.24 0.055 262 / 0.05);
  --night: #07090f;
  --on-night: #fff;
  --on-night-2: oklch(1 0 0 / 0.72);
  --night-line: oklch(1 0 0 / 0.14);
  --cell: oklch(0.62 0.012 250);
  --cell-top: oklch(0.74 0.012 250);
  --cell-base: oklch(0.50 0.012 250);
  --live: oklch(0.50 0.12 234);
  --live-text: oklch(0.47 0.10 236);
  --live-night: oklch(0.72 0.13 234);
  --fail: oklch(0.54 0.15 28);
  --fail-night: oklch(0.68 0.17 28);
  --ok: oklch(0.64 0.115 168);
  --ok-text: oklch(0.52 0.11 168);
  --ok-night: oklch(0.78 0.115 168);
  --font: "Inter Tight", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --fs-total: clamp(2.5rem, 4vw, 3.5rem);
  --fs-fact: 1.625rem;
  --fs-statement: clamp(1.375rem, 2vw, 2rem);
  --fs-caption: 15px;
  --fs-body: 14px;
  --fs-meta: 13px;
  --fs-small: 12px;
  --fs-rail: 11px;
  --fs-wordmark: 21px;
  --head-h: 44px;
  --rail: 64px;
  --content: 1440px;
  --gutter: clamp(16px, 3vw, 32px);
  --row-1: 36px;
  --row-2: 48px;
  --tap: 44px;
  --cell-size: 8px;
  --cell-gap: 2px;
  --end: 9rem;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --panel-pad: clamp(1.25rem, 2.2vw, 2rem);
  --band-gap: clamp(1.5rem, 4vw, 3.5rem);
  --band-h: clamp(17rem, 35vh, 22rem);
  --facts-w: 19rem;
  --measure: 46rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); }
body { margin: 0; min-height: 100dvh; font-family: var(--font); font-size: var(--fs-body); line-height: 1.45; letter-spacing: 0.006em;
  color: var(--ink); background: var(--ground); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--s2); top: var(--s2); z-index: 40; padding: var(--s2) var(--s3); background: var(--ground);
  box-shadow: 0 0 0 1px var(--line); translate: 0 -200%; }
.skip:focus-visible { translate: none; }
/* ids, paths and commands print as typed */
.mono { font-family: var(--mono); font-size: var(--fs-small); font-feature-settings: "calt" 0; }
.as-typed { font-feature-settings: "calt" 0; }

/* ── frame: header, rail, main ─────────────────────────────────────────── */
.frame { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); min-height: 100dvh; }
.head { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--s3); height: var(--head-h); padding: 0 var(--gutter);
  background: var(--ground); box-shadow: 0 1px 0 var(--line); position: relative; z-index: 2; }
.brand { display: inline-flex; align-items: center; gap: var(--s2); }
.brand img { display: block; width: 28px; height: 28px; }
.brand-rule { width: 1px; height: 19px; background: currentColor; opacity: 0.45; }
.brand-word { font-size: var(--fs-wordmark); font-weight: 200; letter-spacing: -0.02em; line-height: 0.9; }
.head-product { font-size: var(--fs-wordmark); font-weight: 400; letter-spacing: -0.02em; }
.head-end { margin-left: auto; display: flex; align-items: center; gap: var(--s4); min-width: 0; font-size: var(--fs-meta); color: var(--ink-2); }
.head-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.head-end .text-button { display: inline-flex; align-items: center; min-height: var(--tap); white-space: nowrap; }
/* how old what is on screen is; written by the page's script, so with no script there is nothing here to show */
.live-state { display: inline-flex; align-items: center; gap: var(--s2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.live-state:empty { display: none; }
.live-state::before { content: ""; width: var(--cell-size); height: var(--cell-size); background: var(--live); animation: shimmer 1600ms linear infinite; }
.live-state[data-tone="live"] { color: var(--live-text); }
.live-state[data-tone="held"]::before { background: transparent; box-shadow: inset 0 0 0 1px var(--ink-2); animation: none; }
.live-state[data-tone="fail"] { color: var(--fail); font-weight: 600; }
.live-state[data-tone="fail"]::before { background: var(--fail); animation: none; }
@media (max-width: 767px) { .head-who { display: none; } }

.rail { grid-column: 1; grid-row: 2; border-right: 1px solid var(--line); }
.rail nav { position: sticky; top: 0; display: flex; flex-direction: column; padding: var(--s2) 0; }
.rail a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s1); min-height: 56px;
  color: var(--ink-2); transition: color 120ms ease; }
.rail a:hover, .rail a[aria-current="page"] { color: var(--ink); }
.rail a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: var(--s2); bottom: var(--s2); width: 2px; background: var(--ink); }
.rail svg { width: 20px; height: 20px; }
.rail-icon { position: relative; display: inline-flex; }
.rail-label { font-size: var(--fs-rail); font-weight: 500; line-height: 1.1; letter-spacing: 0.01em; text-align: center; }
.rail a[aria-current="page"] .rail-label { font-weight: 600; }
.rail-badge { position: absolute; left: 100%; top: -2px; margin-left: 1px; font-size: var(--fs-rail); font-weight: 600; line-height: 1;
  color: var(--ink); font-variant-numeric: tabular-nums; }

.main { grid-column: 2; grid-row: 2; width: 100%; max-width: var(--content); padding: var(--s4) var(--gutter) var(--s6); min-width: 0; }
.main:focus { outline: none; }
.stack { display: flex; flex-direction: column; gap: var(--s4); }

@media (max-width: 767px) {
  html { scroll-padding-bottom: calc(var(--tap) + env(safe-area-inset-bottom) + var(--s2)); }
  .frame { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
  .main { grid-column: 1; }
  .rail { grid-column: 1; grid-row: 3; position: sticky; bottom: 0; z-index: 3; border-right: 0; border-top: 1px solid var(--line); background: var(--ground);
    padding-bottom: env(safe-area-inset-bottom); }
  .rail nav { position: static; flex-direction: row; padding: 0; }
  .rail a { flex: 1 1 auto; min-height: var(--tap); padding: var(--s1); }
  .rail a[aria-current="page"]::before { left: var(--s2); right: var(--s2); top: 0; bottom: auto; width: auto; height: 2px; }
}

/* ── status marks: a square and its word ───────────────────────────────── */
.mark { flex: 0 0 auto; display: inline-block; width: var(--cell-size); height: var(--cell-size); background: var(--cell); }
.mark[data-tone="live"] { background: var(--live); }
.mark[data-tone="fail"] { background: var(--fail); }
.mark[data-tone="ok"] { background: var(--ok); }
.mark[data-tone="ink"] { background: var(--ink); }
.mark[data-tone="line"] { background: transparent; box-shadow: inset 0 0 0 1px var(--ink-2); }
.mark[data-tone="none"] { background: transparent; }
.status { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--fs-meta); color: var(--ink); }
.status[data-tone="live"] { color: var(--live-text); }
.status[data-weight="strong"] { font-weight: 600; }

/* ── rows: [mark] [title and what is under it] [end] ───────────────────── */
.rows { min-width: 0; }
.row { position: relative; display: grid; grid-template-columns: var(--cell-size) minmax(0, 1fr) auto; align-items: center; column-gap: var(--s4);
  min-height: var(--row-2); padding: var(--s1) var(--s2); border-bottom: 1px solid var(--line); line-height: 1.3; transition: background-color 120ms ease; }
.row:hover, .row:focus-within { background: var(--hover); }
.row--plain { grid-template-columns: minmax(0, 1fr) auto; min-height: var(--row-1); }
.row--plain:hover { background: none; }
.row-left { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.row-line1 { display: flex; align-items: baseline; gap: var(--s2); min-width: 0; }
.row-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.row-title::after { content: ""; position: absolute; inset: 0; }
.row-title:focus-visible { outline: none; }
.row:has(.row-title:focus-visible) { outline: 2px solid var(--ink); outline-offset: -2px; }
.row-secondary { flex: 0 0 auto; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-meta); color: var(--ink-2);
  font-feature-settings: "calt" 0; }
.row-line2 { display: flex; align-items: center; flex-wrap: wrap; gap: 0 var(--s3); min-width: 0; font-size: var(--fs-meta); color: var(--ink-2); }
.row-end { display: flex; align-items: center; justify-content: flex-end; gap: var(--s3); font-size: var(--fs-meta); color: var(--ink-2);
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.row[data-picked] { box-shadow: inset 2px 0 0 var(--ink); background: var(--hover); }
.row[data-picked] .row-title { font-weight: 600; }
@media (pointer: coarse) { .row { min-height: var(--tap); } }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: var(--tap); padding: 0 var(--s2);
  border-bottom: 1px solid var(--line); font-size: var(--fs-meta); font-weight: 600; }
.section-head h2 { font: inherit; margin-right: auto; }
.section-count { margin-left: var(--s1); font-weight: 400; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.section-note { font-weight: 400; color: var(--ink-2); }

/* a sentence where a value would stand: nothing here yet, or a service that did not answer */
.state { padding: var(--s4) var(--s2); font-size: var(--fs-meta); color: var(--ink-2); max-width: var(--measure); }
.state strong { font-weight: 600; color: var(--ink); }
.unknown { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: var(--s2); padding: var(--s3) var(--s2);
  border-bottom: 1px solid var(--line); font-size: var(--fs-meta); color: var(--ink); max-width: none; }
.unknown .mark { margin-top: 0.35em; }
.unknown span:last-child { color: var(--ink-2); }

/* ── the two buttons: one filled pill for a page's main action, a text action for the rest ── */
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 0 var(--s5); border-radius: 999px; background: var(--ink);
  color: var(--ground); font-size: var(--fs-body); font-weight: 500; white-space: nowrap; transition: background-color 120ms linear; }
.pill:hover { background: color-mix(in oklch, var(--ink) 86%, var(--ground)); }
.text-button, .link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: 0.2em;
  font-size: var(--fs-meta); }
.text-button:hover, .link:hover { text-decoration-color: currentColor; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); font-size: var(--fs-meta); }
.chip[aria-current="true"] { display: inline-flex; align-items: center; min-height: var(--s5); padding: 0 var(--s3); border-radius: 999px; background: var(--ink);
  color: var(--ground); font-size: var(--fs-small); }
.chip { color: var(--ink-2); }
.chip:hover { color: var(--ink); }

/* ── night panels and their numerals ───────────────────────────────────── */
.night { background: var(--night); color: var(--on-night); padding: var(--s5) var(--panel-pad); }
.night :focus-visible { outline-color: var(--on-night); }
.numeral { font-size: var(--fs-total); font-weight: 300; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.numeral small { margin-left: var(--s2); font-size: var(--fs-meta); font-weight: 400; letter-spacing: 0; color: var(--on-night-2); }
.caption { font-size: var(--fs-caption); line-height: 1.4; color: var(--on-night-2); }
.band { display: grid; grid-template-columns: minmax(0, var(--facts-w)) minmax(0, 1fr); align-items: stretch; gap: var(--s5) var(--band-gap); }
/* where sessions are right now: one stage a column, in the order a session moves, a hairline between stages */
.band-pipe { grid-column: 1 / -1; display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.pipe { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stage { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; padding: 0 var(--s4) var(--s1) 0; }
.stage + .stage { border-left: 1px solid var(--night-line); padding-left: var(--s4); }
.stage-name { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--fs-small); color: var(--on-night-2); }
.stage-name::before { content: ""; flex: 0 0 auto; width: var(--cell-size); height: var(--cell-size); background: var(--cell-base); }
.stage[data-tone="live"] .stage-name { color: var(--on-night); }
.stage[data-tone="live"] .stage-name::before { background: var(--live-night); animation: shimmer 1600ms linear infinite; }
.stage[data-tone="ok"] .stage-name::before { background: var(--ok-night); }
.stage[data-tone="fail"] .stage-name::before { background: var(--fail-night); }
.stage-fig { font-size: var(--fs-fact); font-weight: 300; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stage-note { font-size: var(--fs-small); line-height: 1.4; color: var(--on-night-2); overflow-wrap: anywhere; }
.night .link { color: var(--on-night); text-decoration-color: var(--night-line); font-size: inherit; }
.pipe-foot { padding-top: var(--s3); border-top: 1px solid var(--night-line); font-size: var(--fs-small); line-height: 1.4; color: var(--on-night-2); }
@media (max-width: 1100px) {
  .pipe { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s4); }
  .stage:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
}
@media (max-width: 560px) {
  .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage:nth-child(3n + 1) { border-left: 1px solid var(--night-line); padding-left: var(--s4); }
  .stage:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
}
.band-who { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }
.band-total { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); }
.band-fig { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.foot { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: var(--s1) var(--s4); margin-top: auto; font-size: var(--fs-small);
  line-height: 1.5; color: var(--on-night-2); }
@media (min-width: 901px) { .band { min-height: var(--band-h); } }
@media (max-width: 1180px) { :root { --facts-w: 15rem; } }
@media (max-width: 900px) { .band { grid-template-columns: minmax(0, 1fr); } }

/* ── the day field: a column a day, a cell a session, newest at the right ── */
.field { display: flex; flex-direction: column; gap: var(--s2); flex: 1 1 auto; min-height: 0; }
.field-stage { flex: 1 1 auto; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: end; min-height: 9.5rem;
  border-bottom: 1px solid var(--night-line); padding-bottom: var(--cell-gap);
  /* the lattice stands before a session does, so the panel is never a blank slab */
  background-image: radial-gradient(circle, var(--night-line) 0.6px, transparent 0.9px); background-size: 10px 10px; background-position: center bottom; }
.field-col { display: flex; flex-direction: column-reverse; align-items: center; gap: var(--cell-gap); min-width: 0; }
.cell { flex: 0 0 auto; width: var(--cell-size); height: var(--cell-size); background: var(--cell-base); }
.cell[data-row="1"] { background: color-mix(in oklch, var(--cell-top) 12%, var(--cell-base)); }
.cell[data-row="2"] { background: color-mix(in oklch, var(--cell-top) 24%, var(--cell-base)); }
.cell[data-row="3"] { background: color-mix(in oklch, var(--cell-top) 36%, var(--cell-base)); }
.cell[data-row="4"] { background: color-mix(in oklch, var(--cell-top) 48%, var(--cell-base)); }
.cell[data-row="5"] { background: color-mix(in oklch, var(--cell-top) 60%, var(--cell-base)); }
.cell[data-row="6"] { background: color-mix(in oklch, var(--cell-top) 72%, var(--cell-base)); }
.cell[data-row="7"] { background: color-mix(in oklch, var(--cell-top) 84%, var(--cell-base)); }
.cell[data-row="8"], .cell[data-row="9"], .cell[data-row="10"], .cell[data-row="11"], .cell[data-row="12"], .cell[data-row="13"] { background: var(--cell-top); }
.cell[data-state="live"] { background: var(--live-night); animation: shimmer 1600ms linear infinite; }
.cell[data-state="ok"] { background: var(--ok-night); }
.cell[data-state="fail"] { background: var(--fail-night); }
.cell[data-state="todo"] { background: transparent; box-shadow: inset 0 0 0 1px var(--on-night-2); }
@keyframes shimmer { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
.field-axis { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); font-size: var(--fs-rail); color: var(--on-night-2); font-variant-numeric: tabular-nums; }
.field-axis span { text-align: center; white-space: nowrap; overflow: visible; }

/* ── Sessions: the band, then equal halves ─────────────────────────────── */
.halves { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
.half { min-width: 0; }
@media (max-width: 900px) { .halves { grid-template-columns: minmax(0, 1fr); } }
.more { padding: var(--s3) var(--s2); }
.findings-navigation, .findings-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s5); font-size: var(--fs-meta); }
.findings-navigation { justify-content: space-between; color: var(--ink-2); }
.findings-navigation > p, .findings-pages { padding: 0 var(--s2); }
.findings-pages a { display: inline-flex; align-items: center; min-height: var(--tap); }
.capture-setup { max-width: var(--measure); padding: var(--s4) var(--s2); font-size: var(--fs-body); line-height: 1.55; }
.capture-setup h3 { font-size: var(--fs-body); font-weight: 600; }
.capture-setup p { margin-top: var(--s2); color: var(--ink-2); }
.capture-setup ol { list-style: decimal; padding-left: var(--s5); }
.capture-setup li { margin-top: var(--s3); }
.capture-setup code { font-family: var(--mono); font-size: var(--fs-small); white-space: nowrap; }

/* ── a session's page ──────────────────────────────────────────────────── */
.back { display: flex; align-items: center; min-height: var(--tap); font-size: var(--fs-meta); color: var(--ink-2); }
.session-band { display: grid; grid-template-columns: minmax(0, calc(var(--facts-w) * 1.4)) minmax(0, 1fr); gap: var(--s4) var(--band-gap); }
@media (max-width: 900px) { .session-band { grid-template-columns: minmax(0, 1fr); } }
.session-who { display: flex; flex-direction: column; justify-content: space-between; gap: var(--s5); min-width: 0; }
.session-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: var(--fs-statement); font-weight: 300;
  line-height: 1.2; letter-spacing: -0.024em; overflow-wrap: anywhere; }
.session-facts { display: flex; flex-direction: column; gap: var(--s2); font-size: var(--fs-meta); color: var(--on-night-2); }
.session-facts li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3); min-width: 0; }
.session-facts b { font-weight: 400; color: var(--on-night); }
.night .mark[data-tone="live"] { background: var(--live-night); }
.night .mark[data-tone="ink"] { background: var(--on-night); }
.night .mark[data-tone="line"] { box-shadow: inset 0 0 0 1px var(--on-night-2); }
.night .mark[data-tone="ok"] { background: var(--ok-night); }
.episodes { display: grid; align-content: end; gap: var(--s3); min-width: 0; }
.episode-track { max-height: 18rem; overflow-y: auto; }
.episode-track li { display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s2) 0; border-top: 1px solid var(--cell-base); font-size: var(--fs-small); }
.episode-track a { text-decoration: underline; text-underline-offset: .2em; }

/* ── findings ──────────────────────────────────────────────────────────── */
.finding { display: grid; grid-template-columns: var(--cell-size) minmax(0, 1fr); column-gap: var(--s4); padding: var(--s4) var(--s2); border-bottom: 1px solid var(--line); }
.finding > .mark { margin-top: 0.45em; }
.finding-body { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; max-width: var(--measure); }
.finding-claim { font-size: var(--fs-caption); line-height: 1.4; color: var(--ink); }
.finding-meta { display: flex; flex-wrap: wrap; gap: 0 var(--s3); font-size: var(--fs-meta); color: var(--ink-2); }
.finding-meta b { font-weight: 600; color: var(--ink); }
.finding-consequence { color: var(--ink-2); }
/* the proof: the session's own words, quoted where they stand */
.cite { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); column-gap: var(--s3); padding: var(--s2) 0 var(--s2) var(--s3); border-left: 2px solid var(--line-strong); }
.cite + .cite { margin-top: var(--s1); }
.cite dt { font-size: var(--fs-small); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cite dd { font-family: var(--mono); font-size: var(--fs-small); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink);
  font-feature-settings: "calt" 0; }
.checked { font-size: var(--fs-small); color: var(--ink-2); }
.facts-line { display: flex; flex-wrap: wrap; gap: 0 var(--s4); font-size: var(--fs-small); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.facts-line b { font-weight: 400; color: var(--ink); }
details > summary { cursor: pointer; font-size: var(--fs-meta); color: var(--ink); list-style: none; display: inline-flex; align-items: center; min-height: var(--row-1);
  text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 0.2em; }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary { text-decoration-color: currentColor; }

/* ── facts in pairs, for a session's capture and a review's coverage ───── */
.pairs { display: grid; grid-template-columns: minmax(8rem, 14rem) minmax(0, 1fr); }
.pairs > dt, .pairs > dd { min-height: var(--row-1); padding: var(--s2); border-bottom: 1px solid var(--line); font-size: var(--fs-meta); }
.pairs > dt { color: var(--ink-2); }
.pairs > dd { color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 480px) { .pairs { grid-template-columns: minmax(0, 1fr); } .pairs > dt { border-bottom: 0; min-height: 0; padding-bottom: 0; } }

.prose { max-width: var(--measure); padding: var(--s3) var(--s2); font-size: var(--fs-body); line-height: 1.55; color: var(--ink); }
.prose + .prose { padding-top: 0; }
.prose code, .command { font-family: var(--mono); font-size: var(--fs-small); font-feature-settings: "calt" 0; }
.command { display: block; padding: var(--s3) var(--s4); background: var(--night); color: var(--on-night); overflow-x: auto; white-space: pre; }

/* Account preferences and the reporting worker's read-only status. */
.settings-page { width: 100%; max-width: 70rem; margin: var(--s4) auto 0; }
.settings-heading { border-bottom: 1px solid var(--line); padding-bottom: var(--s5); }
.settings-heading h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -0.04em; font-weight: 400; }
.settings-heading p { margin-top: var(--s2); color: var(--ink-2); overflow-wrap: anywhere; }
.settings-notice { border-bottom: 1px solid var(--line); padding: var(--s3) 0; font-weight: 500; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(2rem, 6vw, 6rem); margin-top: var(--s6); }
.settings-layout h2 { font-size: 1.375rem; font-weight: 500; letter-spacing: -0.025em; }
.setting { display: grid; justify-items: start; gap: var(--s2); padding: var(--s5) 0; border-bottom: 1px solid var(--line); }
.setting:last-child { border-bottom: none; }
.settings-layout h3, .setting label { font-size: 1rem; font-weight: 550; }
.setting-title { display: flex; align-items: baseline; gap: var(--s4); }
.setting-about, .plan p { color: var(--ink-2); line-height: 1.5; }
.setting .pill, .setting form { margin-top: var(--s2); }
.setting-action { border: 1px solid var(--line-strong); border-radius: 999px; padding: 0 var(--s4); min-height: var(--tap); }
.setting-action:hover { background: var(--hover); }
.setting textarea { width: 100%; max-width: 100%; min-height: 5.5rem; margin-top: var(--s1); resize: vertical; padding: var(--s3);
  border: 1px solid var(--line-strong); background: var(--ground); color: var(--ink); font: 0.8125rem/1.55 var(--mono); border-radius: 0; }
.setting textarea[aria-invalid] { border-color: var(--fail); }
.field-error { color: var(--fail); }
.settings-reports { border-left: 1px solid var(--line); padding-left: clamp(1.5rem, 3vw, 3rem); }
.settings-reports > .setting-about { margin-top: var(--s3); }
.settings-reports > h3 { border-top: 1px solid var(--line); margin-top: var(--s5); padding-top: var(--s5); }
.plan { padding: var(--s4) 0; overflow-wrap: anywhere; }
.plan + .plan { border-top: 1px solid var(--line); }
.plan-report { display: flex; align-items: baseline; gap: var(--s2); margin-top: var(--s2); }
@media (max-width: 800px) {
  .settings-layout { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .settings-reports { border-left: 0; border-top: 1px solid var(--line); padding: var(--s5) 0 0; }
}
@media (max-width: 767px) {
  .settings-page { margin-top: var(--s2); }
  .settings-layout { margin-top: var(--s5); }
  .setting textarea { font-size: 1rem; }
}

/* ── sign-in: two halves, words beside night ───────────────────────────── */
.signin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100dvh; }
.signin-words { display: flex; flex-direction: column; justify-content: center; gap: var(--s5); padding: var(--s6) clamp(1.5rem, 6vw, 5rem); max-width: 40rem; }
.signin-title { font-size: var(--fs-statement); font-weight: 300; line-height: 1.15; letter-spacing: -0.024em; }
.signin-night { display: flex; flex-direction: column; justify-content: flex-end; gap: var(--s4); padding: clamp(1.5rem, 6vw, 5rem); }
.signin-night ol { display: flex; flex-direction: column; gap: var(--s4); counter-reset: step; }
.signin-night li { display: grid; grid-template-columns: var(--cell-size) minmax(0, 1fr); column-gap: var(--s4); font-size: var(--fs-caption); line-height: 1.4;
  color: var(--on-night-2); }
.signin-night li::before { content: ""; width: var(--cell-size); height: var(--cell-size); margin-top: 0.45em; background: var(--cell-top); }
.signin-night li b { font-weight: 400; color: var(--on-night); }
@media (max-width: 900px) { .signin { grid-template-columns: minmax(0, 1fr); } .signin-night { order: -1; min-height: 14rem; } }

@media (prefers-reduced-motion: reduce) {
  .cell[data-state="live"], .live-state::before, .stage[data-tone="live"] .stage-name::before { animation: none; }
  .row, .rail a, .pill { transition: none; }
}
