*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background:
    radial-gradient(1000px 480px at 10% -8%, var(--wash-warm), transparent 55%),
    radial-gradient(900px 420px at 92% 0%, var(--wash-cool), transparent 50%),
    var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
}

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

:focus-visible {
  outline: 2px solid var(--accent-cool);
  outline-offset: 2px;
}

/* Header: slim, and it scrolls away (Ronald, 2026-10-06). Only the safety
   strip can stay pinned, and only while it carries a fault or warn. */
.site-header {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 36px;
  padding: 0.2rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
/* The logo follows the theme (2026-09-28): its black-drawn parts vanish on a
   dark header, so dark mode shows the on-dark copy (white default fill). */
.brand-logo--on-dark { display: none; }
html[data-theme="dark"] .brand-logo--on-light { display: none; }
html[data-theme="dark"] .brand-logo--on-dark { display: inline-block; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]):not([data-theme="dark"]) .brand-logo--on-light { display: none; }
  html:not([data-theme="light"]):not([data-theme="dark"]) .brand-logo--on-dark { display: inline-block; }
}
.brand-link, .brand-256 { display: inline-flex; align-items: center; line-height: 0; }
.brand-256 { margin-left: 0.25rem; }
.brand-256-logo { height: 20px; width: auto; }
.brand-link:focus-visible, .brand-256:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.brand-logo {
  height: 26px;
  width: 26px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
}
.brand-mark {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.4rem;
  min-width: 0;
}
.brand-wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.1;
}
.brand-model {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.freshness-pill {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.28rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
}
/* The REPLAY badge (source-badge.js): the hosting server marked the data as
   recorded earlier data. Informational like the run-state chip: --st-info, never
   fault / warn / stale / unknown; a dashed outline so colour is not the only
   cue. Static: no animation, no transition. */
.source-badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px dashed var(--st-info);
  background: var(--surface);
  color: var(--st-info-text);
  white-space: nowrap;
}
.source-badge[hidden] { display: none; }
/* The one-reply note after the served unit changed (render/source-badge.js renderUnitNote): neutral text, no
   status colour, no animation, no transition. */
.unit-note {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.28rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.unit-note[hidden] { display: none; }

/* On fresh replayed data the REPLAY badge is the one word and the pill is hidden (render/freshness-pill.js). */
.freshness-pill[hidden] { display: none; }
/* #119: informational only — never fault/warn/unknown styling (AGENTS.md:
   faults keep their own parity; this chip never competes with them). Shrinks
   and truncates with an ellipsis before it can push the header off one line
   (#29's 400 px constraint: the header/safety strip must not dominate the
   viewport). */
.run-state-chip {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.28rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--st-info);
  background: var(--surface);
  color: var(--st-info-text);
  flex-shrink: 1;
  min-width: 0;
  max-width: 40vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.run-state-chip[hidden] { display: none; }
@media (max-width: 480px) {
  .run-state-chip { max-width: 30vw; }
}
/* #88: the header block height. Informational, like the run-state chip: never
   fault/warn/stale/unknown styling. Shrinks and truncates before it can grow
   the header (#29). A changed block glints through the effect system. */
.block-height {
  position: relative;
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.28rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 1;
  min-width: 0;
  max-width: 40vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.block-height[hidden] { display: none; }
/* #159 review: the glint's canvas (render/fx-block.js) lies over the chip and
   never sizes it: out of flow, the chip's own box, no pointer. The text is in
   its own span (block-height.js) so the per-second age update keeps it. */
.block-height > canvas.fx-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.flush-note { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); margin: 0 0 0.4rem; }
.flush-note[hidden] { display: none; }
/* #16: at phone width the chips wrap onto their own row (the head row wraps) rather than truncate to "best shar…". */
@media (max-width: 480px) {
  .block-height { max-width: 100%; }
}
/* #88: the latest found block and the best share, beside the height. Plain
   informational chips like it (no status colour; the words say it), and they
   shrink and truncate before they can grow the header (#29). Below 480 px the
   two collapse into their tooltips' chip width. */
.found-block, .best-share {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.28rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  flex-shrink: 1;
  min-width: 0;
  max-width: 34vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.found-block[hidden], .best-share[hidden] { display: none; }
.found-block-hash { color: inherit; text-decoration: underline; }
@media (max-width: 480px) {
  .found-block, .best-share { max-width: 100%; }
}
.setting-label { font-size: 0.8em; color: var(--muted); }
.mempool-setting { display: inline-flex; gap: 0.35rem; align-items: center; font-size: 0.8em; }
.mempool-setting input { font-family: var(--mono); font-size: 0.9em; width: 18rem; max-width: 60vw; }
.mempool-setting input[aria-invalid="true"] { outline: 2px dashed currentColor; outline-offset: 1px; }
.freshness-pill[data-state="connecting"] { color: var(--muted); border-color: var(--line-strong); }
.freshness-pill[data-state="live"] { color: var(--st-live-text); border-color: var(--st-live); }
.freshness-pill[data-state="stale"] { color: var(--st-stale-text); border-color: var(--st-stale); }
.freshness-pill[data-state="lost"] {
  color: var(--st-unknown-text);
  border-color: var(--st-unknown);
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 2px, var(--st-lost-stripe) 2px, var(--st-lost-stripe) 3px);
}

.theme-toggle {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  padding: 0.12rem;
}
.theme-toggle button {
  font-family: var(--font);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.28rem 0.5rem;
  cursor: pointer;
}
.theme-toggle button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--hover-fill);
}

/* Safety strip: one compact row when nothing is wrong. renderSafety sets
   data-pinned="true" while it carries a fault or warn, and only then does it
   stay at the top of the page (AGENTS.md: faults are always visible). */
.safety-strip {
  z-index: 35;
  background: var(--bg-elevated);
  border-bottom: 2px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.safety-strip[data-pinned="true"] {
  position: sticky;
  top: 0;
}
.safety-strip .inner {
  padding: 0.35rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.safety-headline {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.safety-headline[data-sev="fault"] { color: var(--st-fault-text); }
/* #47 review: a ticking relative age beside the headline, outside the
   aria-live region (aria-hidden), so it never re-announces the headline. */
.safety-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
}
.safety-age {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}
.safety-age[hidden] { display: none; }
.safety-headline[data-sev="warn"] { color: var(--st-warn-text); }
.safety-headline[data-sev="neutral"] { color: var(--muted); }
.safety-chips:empty { display: none; }
.safety-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chip {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.28rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-soft);
}
.chip[data-sev="fault"] { border-color: var(--st-fault); color: var(--st-fault-text); }
.chip[data-sev="warn"] { border-color: var(--st-warn); color: var(--st-warn-text); }
.chip[data-sev="unknown"] {
  border-color: var(--st-unknown);
  color: var(--st-unknown-text);
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 3px,
    rgba(154, 148, 138, 0.12) 3px,
    rgba(154, 148, 138, 0.12) 6px
  );
}

/* The annunciator (render/verdict.js) belongs to the Survey Bridge shell: css/bridge.css shows and styles it under
   [data-shell="bridge"]. In Classic it is not drawn, so the strip is exactly what it was. */
.verdict { display: none; }
.instruments { display: none; } /* Bridge look: the instrument station (render/instruments.js) is the bridge's; Classic keeps the J/TH chart. */

/* U-UX2: the supply rail readout (render/rail.js), both shells: a few terse mono lines, 12 px floor, wrapping rather than overflowing. */
.rail[hidden] { display: none; }
.rail .section-eyebrow { font-size: var(--brand-type-label); }
.rail-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0; padding: 0; }
.rail-line { font-size: var(--brand-type-label); line-height: 1rem; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.rail-line[data-state="unknown"] { color: var(--muted); }

/* U-UX3: the autotune view (render/autotune.js), both shells. Colours: role and brand tokens only. Verdict marks: up =
   --brand-series-2, down = --brand-series-4, hold/settled = the muted ink; every one with a glyph and a word. 12 px floor.
   Layout follows the section's own width (container query), not the viewport. Static: nothing animates. */
.autotune[hidden] { display: none; }
.autotune { container: autotune / inline-size; --at-up: var(--brand-series-2); --at-down: var(--brand-series-4); --at-hold: var(--role-ink-muted); }
.autotune h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: var(--brand-type-label); color: var(--role-ink-muted); margin: 0 0 var(--brand-space-xs); }
.autotune .section-eyebrow { font-size: var(--brand-type-label); margin: 0; }
.at-head { display: flex; flex-wrap: wrap; gap: var(--brand-space-sm) var(--brand-space-lg); align-items: center; margin-bottom: var(--brand-space-sm); }
.at-pick { display: flex; flex-wrap: wrap; gap: var(--brand-space-sm) var(--brand-space-md); margin-left: auto; font-size: var(--brand-type-label); color: var(--role-ink-muted); }
.at-pick label { display: flex; gap: var(--brand-space-xs); align-items: center; }
.at-age { font-size: var(--brand-type-label); color: var(--role-ink-muted); }
.at-age:empty { display: none; }
.at-pick label[hidden], .at-pick[hidden], .at-annun[hidden] { display: none; }
.autotune select, .autotune button { font: inherit; font-size: var(--brand-type-label); color: var(--role-ink); min-height: var(--target-min); background: var(--role-surface); border: var(--rule-w) solid var(--role-line); border-radius: var(--brand-radius-small); padding: 0 var(--brand-space-sm); }
.autotune button { cursor: pointer; min-width: var(--target-min); }
.autotune button:disabled { cursor: default; color: var(--role-ink-muted); }
.autotune :focus-visible { outline: var(--brand-focus-w) solid var(--role-focus); outline-offset: var(--brand-focus-offset, 2px); }
.at-off { margin: 0; padding: var(--brand-space-sm) var(--brand-space-md); border: var(--rule-w) dashed var(--role-line); border-radius: var(--brand-radius-small); font-size: var(--brand-type-label); color: var(--role-ink-muted); }
.at-off[hidden], .at-ui[hidden], .at-scrub[hidden] { display: none; }

.at-annun { margin: 0; display: inline-flex; flex-wrap: wrap; gap: var(--brand-space-xs) var(--brand-space-sm); align-items: baseline; position: relative; min-width: 0;
  padding: var(--brand-space-xs) var(--brand-space-md) var(--brand-space-xs) calc(var(--rail-w) + var(--brand-space-sm));
  background: var(--role-surface); border: var(--rule-w) solid var(--role-line); border-radius: var(--brand-radius-small); font-size: var(--brand-type-label); color: var(--role-ink-muted); }
.at-annun::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--rail-w); background: var(--role-ink-muted); border-radius: var(--brand-radius-small) 0 0 var(--brand-radius-small); }
.at-annun b { font-family: var(--display); font-size: var(--brand-type-small); letter-spacing: 0.14em; color: var(--role-ink); }
.at-annun[data-level="advisory"]::before { background: var(--status-advisory); }
.at-annun[data-level="advisory"] b { color: var(--status-advisory); }
.at-annun[data-level="unknown"] { border-style: dashed; }
.at-annun[data-level="unknown"]::before { background: var(--status-unknown); }

.at-grid { display: grid; gap: var(--station-gap); grid-template-columns: minmax(0, 1fr); }
.at-station { position: relative; min-width: 0; background: var(--role-surface); border: var(--rule-w) solid var(--role-line); border-radius: var(--station-radius);
  padding: var(--brand-space-md) var(--brand-space-md) var(--brand-space-md) calc(var(--rail-w) + var(--brand-space-md)); }
.at-station::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--rail-w); background: var(--role-ink-muted); border-radius: var(--station-radius) 0 0 var(--station-radius); }
.at-station[data-absent] { border-style: dashed; }
.at-station[data-absent]::before { background: var(--status-unknown); }
@container autotune (min-width: 900px) {
  .at-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .at-inner { grid-column: 1 / -1; }
  .at-inner-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}
.at-line { margin: 0 0 var(--brand-space-xs); font-size: var(--brand-type-label); color: var(--role-ink-muted); overflow-wrap: anywhere; }
.at-line .v { color: var(--role-ink); }
.at-line, .at-num, .at-spread, .autotune output, .at-table td, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.at-readout { margin: 0; display: flex; align-items: baseline; gap: var(--brand-space-xs); }
.at-num { font-size: var(--brand-type-readout); line-height: var(--brand-leading-readout); font-weight: 500; color: var(--role-ink); }
.at-unit { font-size: var(--brand-type-small); color: var(--role-ink-muted); }
.at-unit[hidden] { display: none; }
.at-absent { color: var(--status-unknown); }
.at-chart { width: 100%; min-width: 0; }
.at-chart svg { display: block; max-width: 100%; height: auto; overflow: visible; }
.autotune svg text { font-family: var(--mono); font-size: var(--brand-type-label); fill: var(--role-ink-muted); }
.autotune svg .at-ink { fill: var(--role-ink); }
.autotune svg .at-axis { stroke: var(--role-line); stroke-width: var(--rule-w); }
.autotune svg .at-bar { fill: var(--role-accent); }
.autotune svg .at-ghost { fill: none; stroke: var(--role-ink-muted); stroke-width: 1.5; stroke-dasharray: 4 3; }
.autotune svg .at-range { stroke: var(--role-ink); stroke-width: 2; }
.autotune svg .at-med { stroke: var(--role-ink); stroke-width: 2; }
.autotune svg .at-step { fill: none; stroke: var(--role-ink); stroke-width: 2; }
.autotune svg .at-selband { fill: var(--role-surface-raised); }
.autotune svg .at-seg-up { fill: var(--at-up); }
.autotune svg .at-seg-down { fill: var(--at-down); }
.autotune svg .at-seg-hold { fill: var(--at-hold); }
.autotune svg .at-hit { fill: transparent; }
.autotune svg .at-hit:hover { fill: var(--role-surface-raised); }
.autotune svg text.at-g-up, .at-g-up { fill: var(--at-up); color: var(--at-up); }
.autotune svg text.at-g-down, .at-g-down { fill: var(--at-down); color: var(--at-down); }
.autotune svg text.at-g-hold, .at-g-hold, .at-g-dith, .at-g-masked { fill: var(--at-hold); color: var(--at-hold); }

.at-scrub { display: flex; gap: var(--brand-space-sm); align-items: center; margin-top: var(--brand-space-sm); }
.at-scrub input { flex: 1; min-width: 0; min-height: var(--target-min); accent-color: var(--role-accent); }
.at-scrub output { font-size: var(--brand-type-label); white-space: nowrap; color: var(--role-ink-muted); }
.at-inner-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--brand-space-lg); align-items: start; }
.at-legend { display: flex; flex-wrap: wrap; gap: var(--brand-space-xs) var(--brand-space-md); font-size: var(--brand-type-label); color: var(--role-ink-muted); margin: var(--brand-space-xs) 0 0; }
.at-legend .at-g { font-family: var(--mono); font-weight: 500; }
.at-maps { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: var(--brand-space-md); min-width: 0; }
.at-map { min-width: 0; }
.at-map.at-few { max-width: 16rem; }
.at-map h3 { margin: 0 0 var(--brand-space-2xs); font: var(--brand-type-label)/1.3 var(--mono); color: var(--role-ink-muted); overflow-wrap: anywhere; }
.at-terms { margin: 0 0 var(--brand-space-xs); font: var(--brand-type-label)/1.3 var(--mono); color: var(--role-ink-muted); overflow-wrap: anywhere; }
.at-cells { display: grid; gap: 1px; background: var(--role-line); border: var(--rule-w) solid var(--role-line); }
.at-cell { aspect-ratio: 1; display: grid; place-items: center; background: var(--role-surface); font: 500 var(--brand-type-label)/1 var(--mono); min-width: 0; overflow: hidden; }
.at-cell[data-settled] { background: var(--role-surface-raised); }
.at-cell[data-terminal="censored"] { outline: 1px dashed var(--role-ink); outline-offset: -3px; }
.at-cell[data-terminal="bracketed"] { outline: 1px solid var(--role-ink); outline-offset: -3px; }
.at-cell[data-terminal="parked"] { outline: 1px dotted var(--role-ink); outline-offset: -3px; }
.at-cell[data-terminal="level-bound"] { outline: 3px double var(--role-ink); outline-offset: -4px; }
.at-cell[data-terminal="exhausted"] { outline: 2px groove var(--role-ink); outline-offset: -3px; }
.at-details { margin-top: var(--station-gap); }
.at-details summary { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: var(--brand-type-label); color: var(--role-ink-muted); min-height: var(--target-min); display: flex; align-items: center; cursor: pointer; }
.at-tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); gap: var(--brand-space-lg); }
.at-scroll { max-height: 22rem; overflow: auto; }
.at-table { border-collapse: collapse; width: 100%; font-size: var(--brand-type-label); }
.at-table caption { text-align: left; color: var(--role-ink-muted); padding-bottom: var(--brand-space-xs); }
.at-table th, .at-table td { text-align: right; padding: var(--brand-space-2xs) var(--brand-space-sm); border-bottom: var(--rule-w) solid var(--role-line); }
.at-table th { font-weight: 700; color: var(--role-ink-muted); }

main { padding: 1rem 0 2.5rem; display: flex; flex-direction: column; gap: 1rem; }

.section-eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

/* KPI: the compact strip (Ronald, 2026-11-05: "the top 6 cards ... like 10% of
   their current height"). One line per card: a small label, the value and the
   card's details button; the notes, the found window, the pool's lines, its
   message and its event-log link sit in .kpi-detail, closed on load. Every
   line box is a whole 16px (1rem) and every padding a whole pixel, so the
   boards below stay on whole pixels (the tilted heatmap maps cells from
   offsetTop, PR #220). Above 640 px the six share one row; the pool card,
   whose verdict is the longest, takes the slack and wraps inside itself. */
.kpi-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.25rem;
}
.kpi-card {
  flex: 0 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.25rem 0.375rem;
  box-shadow: var(--shadow);
}
/* The pool card is sized to its text (Ronald, 2026-11-11), capped, so the efficiency card stays on the same line at 1280 px; if the cap is too much for the row it still wraps to a row of its own (a value of one character per line helped nobody). */
.kpi-card-pool { flex: 0 1 auto; width: fit-content; min-width: 14rem; max-width: min(26rem, 100%); }
/* A down pool carries a long explanatory note: let it take the row as before (kpi-compact budget). */
.kpi-card-pool:has([data-pool-state="down"]) { flex: 1 1 14rem; width: auto; max-width: none; }
.kpi-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem; min-width: 0; line-height: 1rem; }
.kpi-label {
  flex: 0 0 auto;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: var(--muted);
}
.kpi-value {
  min-width: 0;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.85rem;
  line-height: 1rem;
  color: var(--ink);
  white-space: nowrap;
}
/* Only the pool verdict is words long enough to wrap; a figure never breaks inside itself. */
/* nowrap line: a long value shrinks and wraps its own text; the toggle never drops to a second line. */
html:not([data-shell="bridge"]) .kpi-card-pool .kpi-line { flex-wrap: nowrap; } /* the bridge shell lays the label on its own row */
.kpi-card-pool .kpi-value { flex: 0 1 auto; white-space: normal; overflow-wrap: anywhere; }
html:not([data-shell="bridge"]) .kpi-card-pool .kpi-value { min-width: 0; }
/* A stale field's age and the harness reading's qualifier stay on the line, in words, never only in the closed note. */
.kpi-value[data-stale]::after, .kpi-value[data-kpi-flag]::after { font-size: 0.68rem; color: var(--muted); }
.kpi-value[data-stale]::after { content: " · " attr(data-stale); }
.kpi-value[data-kpi-flag]::after { content: " · " attr(data-kpi-flag); }
.kpi-new { flex: 0 0 auto; align-self: center; font-size: 0.68rem; color: var(--ink); white-space: nowrap; }
.kpi-new[hidden] { display: none; }
/* The button is at least 24 px square (#14); the glyph stays small. */
.kpi-more {
  flex: 0 0 auto; align-self: center; margin: -0.25rem 0 -0.25rem auto; /* a 24 px target that does not make the line taller */
  width: 1.5rem; height: 1.5rem; padding: 0; line-height: 1.5rem; font-size: 0.7rem;
  border: 1px solid var(--border); border-radius: 0.25rem; background: transparent; color: var(--muted); cursor: pointer;
}
.kpi-more:hover { color: var(--ink); }
.kpi-more:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.kpi-more > span { display: inline-block; transition: transform 150ms ease; }
.kpi-more[aria-expanded="true"] > span { transform: scaleY(-1); }
/* A new pool message is named on the closed button (its label says it too). */
.kpi-more[data-new] { color: var(--ink); border-color: var(--ink); }
.kpi-more[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .kpi-more, .kpi-more > span { transition: none; } }
/* width 0 + min-width 100%: the open details never widen the card, so its neighbours keep their place. */
.kpi-detail { width: 0; min-width: 100%; margin-top: 0.25rem; }
.kpi-detail[hidden] { display: none; }
.kpi-note { font-size: 0.68rem; color: var(--faint); }
.kpi-found { font-size: 0.72rem; color: var(--muted); overflow-wrap: anywhere; }
/* Pool card (Ronald, 2026-09-28): long hosts and names wrap, never overflow. */
.kpi-card { min-width: 0; }
/* #109 slice 4: the page-wide effect layer (a share's trail into the
   Accepted tile; the count's flash is the digits' own, counter-flash.js). Fixed over the viewport, under the sticky
   header and safety strip, never taking a pointer event. */
canvas.fx-page { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 3; pointer-events: none; }
/* #178: the Accepted / rejected digits swell (counter-flash.js) on their own span, so the tile never reflows. */
[data-kpi="accept"] [data-count] { display: inline-block; transform-origin: center; }
[data-kpi="pool"], [data-kpi-note="pool"] { overflow-wrap: anywhere; }
[data-kpi="pool"][data-pool-state="ok"] { color: var(--st-live-text); }
[data-kpi="pool"][data-pool-state="warn"] { color: var(--st-warn-text); }
/* #152: a served disconnect. This red is the theme's pool-down token, not
   fault red, a value per theme so the words stay >= 4.5:1 in dark too.
   The outline is static, including under reduced motion. The pulse is the
   registered pool-fail effect, not a stylesheet animation. */
[data-kpi="pool"][data-pool-state="down"] { color: var(--st-pool-down-text); }
.kpi-card:has([data-pool-state="down"]) { outline: 2px solid var(--st-pool-down); outline-offset: 2px; }
.pool-backup { color: var(--ink); }
[data-kpi-note="pool"] > div { line-height: 1.5; }
/* #144 Job line: a whole-pixel line box (1rem = 16px at the default root), so the
   row adds an integer height however many lines the id wraps to. At 1.5 x 0.68rem
   each line is 16.3125px and moves the boards below off whole pixels; the
   tilted heatmap maps cells from offsetTop (whole pixels), so its hit-testing
   and the share arc then land up to a pixel off the cell (PR #220). */
[data-kpi-note="pool"] > .pool-job { line-height: 1rem; }
.pool-mono { display: inline-block; min-width: 1.6em; margin-right: 0.35em; padding: 0 0.2em; border: 1px solid var(--border);
  border-radius: 0.3em; font-family: var(--mono); font-size: 0.62rem; font-weight: 600; text-align: center; color: var(--ink); }
.pool-mono[data-tone="0"] { color: var(--pool-mono-0); border-color: var(--pool-mono-0); }
.pool-mono[data-tone="1"] { color: var(--pool-mono-1); border-color: var(--pool-mono-1); }
.pool-mono[data-tone="2"] { color: var(--pool-mono-2); border-color: var(--pool-mono-2); }
.pool-mono[data-tone="3"] { color: var(--pool-mono-3); border-color: var(--pool-mono-3); }
.pool-mono[data-tone="4"] { color: var(--pool-mono-4); border-color: var(--pool-mono-4); }
.pool-mono[data-tone="5"] { color: var(--pool-mono-5); border-color: var(--pool-mono-5); }
.pool-logo { display: inline-block; width: 1.1em; height: 1.1em; margin-right: 0.35em; vertical-align: -0.15em;
  padding: 1px; border: 1px solid var(--border); border-radius: 3px; object-fit: contain;
  filter: var(--pool-logo-filter); background: var(--pool-logo-plate); }
.pool-mono[hidden] { display: none; }
/* The pool's mark in the headline value (kpi.js headlineMark): the logo, or the monogram drawn from data-mono, sized to the text. */
.pool-headmark { display: inline-block; margin-right: 0.35em; vertical-align: -0.2em; line-height: 1; font-size: inherit; }
/* The logo is sized to the value's text height (1.1em, never under 16px) on its own light plate; the filter darkens it to
   hold 3:1 against that plate in both themes (dev/test/pool-headmark-chrome.test.mjs measures both). */
.pool-headmark[data-has-logo] { width: max(1.1em, 16px); height: max(1.1em, 16px); padding: 1px; box-sizing: border-box;
  background: var(--pool-logo-plate); border: 1px solid var(--border); border-radius: 3px; }
.pool-headmark:not([data-has-logo])::before { content: attr(data-mono); display: inline-block; min-width: 1.6em; font-size: 0.85em; padding: 0 0.2em; box-sizing: border-box; border: 1px solid var(--border);
  border-radius: 0.3em; font-family: var(--mono); font-weight: 600; text-align: center; color: var(--ink); }
.pool-headmark .pool-logo { display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: none; filter: var(--pool-headlogo-filter); }
.pool-headmark[data-tone="0"]:not([data-has-logo])::before { color: var(--pool-mono-0); border-color: var(--pool-mono-0); }
.pool-headmark[data-tone="1"]:not([data-has-logo])::before { color: var(--pool-mono-1); border-color: var(--pool-mono-1); }
.pool-headmark[data-tone="2"]:not([data-has-logo])::before { color: var(--pool-mono-2); border-color: var(--pool-mono-2); }
.pool-headmark[data-tone="3"]:not([data-has-logo])::before { color: var(--pool-mono-3); border-color: var(--pool-mono-3); }
.pool-headmark[data-tone="4"]:not([data-has-logo])::before { color: var(--pool-mono-4); border-color: var(--pool-mono-4); }
.pool-headmark[data-tone="5"]:not([data-has-logo])::before { color: var(--pool-mono-5); border-color: var(--pool-mono-5); }

/* Boards */
.boards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  /* #167: an unrolled card grows alone; its collapsed neighbours keep their height. */
  align-items: start;
}
@media (max-width: 960px) {
  .boards-grid { grid-template-columns: 1fr; }
}
/* #161 (Ronald, 2026-10-06): "Board view: Angled | Flat" beside the heading. */
.boards-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.boards-head .section-eyebrow { margin-bottom: 0; }
/* #161: the angled, stacked row. Each board's heatmap turns its right edge
   towards the viewer (Ronald, 2026-10-06: the 20 degree angle stays), and the
   cards slide a little under the one before them, so the row is narrower than
   the page. Earlier boards sit on top (renderBoards sets --board-stack).
   Only the .heatmap-wrap carries the transform (and with it the canvas, the
   effect layer and the ASIC tip, which stay registered with the cells, and
   canvasToViewport's one transformed ancestor); the card and every line of
   text in it stay flat. The overlap is paid for by padding, so no text sits in
   the covered strip, and no cell is covered either
   (dev/test/board-tilt.test.mjs). Every value is a --tilt-* token (theme.css).
   The flat grid applies below 721 px whatever the setting. */
@media (min-width: 721px) {
  .boards-grid[data-board-view="angled"] {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    isolation: isolate;
  }
  .boards-grid[data-board-view="angled"] > .board-card {
    flex: 0 1 var(--tilt-card);
    min-width: 0;
    position: relative;
    z-index: var(--board-stack);
    padding-inline: calc(0.85rem + var(--tilt-overlap));
    box-shadow: var(--shadow), var(--tilt-shadow);
  }
  .boards-grid[data-board-view="angled"] > .board-card + .board-card {
    margin-left: calc(-1 * var(--tilt-overlap));
  }
  .boards-grid[data-board-view="angled"] > .board-card .heatmap-wrap {
    --board-tilt: var(--tilt-angle);
    transform: perspective(var(--tilt-perspective)) rotateY(var(--board-tilt));
    transition: transform var(--tilt-lift-time) var(--ease);
  }
  /* Hover or keyboard focus brings a board forward and to the top of the stack, so its tip is never under a neighbour; so does being selected. */
  .boards-grid[data-board-view="angled"] > .board-card:hover,
  .boards-grid[data-board-view="angled"] > .board-card:focus-within,
  .boards-grid[data-board-view="angled"] > .board-card[data-selected] {
    z-index: calc(var(--board-count) + 1);
  }
  .boards-grid[data-board-view="angled"] > .board-card:hover .heatmap-wrap,
  .boards-grid[data-board-view="angled"] > .board-card:focus-within .heatmap-wrap {
    transform: perspective(var(--tilt-perspective)) translateZ(var(--tilt-lift)) rotateY(var(--board-tilt));
  }
}
@media (min-width: 721px) and (prefers-reduced-motion: reduce) {
  .boards-grid[data-board-view="angled"] > .board-card .heatmap-wrap { transition: none; }
}
/* #165 (Ronald, 2026-10-06): "as the user scrolls the page, the hashboards can
   tilt as the page feeds past." --board-tilt is the angle the rules above
   rotate by; it rests at --tilt-angle. Where the browser has scroll timelines,
   motion is allowed and the view is Angled at the angled breakpoint, each
   heatmap wrap animates it on its OWN view timeline: at the ends (the heatmap
   entering at the bottom, leaving at the top) it is --tilt-angle minus
   --fx-tilt-swing, at the viewport's centre --tilt-angle, eased by
   --fx-ease-tilt on each half (the tokens: fx-tokens.js). Outside the timeline
   (fill: none) it is the rest angle again. CSS only: no script reads the
   scroll, and the transform only composites (no layout). Registered as an
   <angle> so it interpolates; the 0deg initial value only applies if no rule
   sets it (an unregistered browser substitutes var(--tilt-angle) as text).
   Before fx-tokens.js has installed --fx-tilt-swing, the swing falls back to
   0deg: the rest angle. Faults: the tilt does not stop while one is shown, and
   every cell stays legible across the range
   (board-no-overlap-chrome.test.mjs, board-tilt.test.mjs). The card and its
   text stay flat; nothing in the DOM moves or changes. */
@property --board-tilt { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes board-tilt-scroll {
  0%, 100% { --board-tilt: calc(var(--tilt-angle) - var(--fx-tilt-swing, 0deg)); }
  50% { --board-tilt: var(--tilt-angle); }
}
@supports (animation-timeline: view()) {
  @media (min-width: 721px) and (prefers-reduced-motion: no-preference) {
    .boards-grid[data-board-view="angled"] > .board-card .heatmap-wrap {
      animation: board-tilt-scroll auto linear none;
      animation-timing-function: var(--fx-ease-tilt);
      animation-timeline: view();
    }
  }
}
@media (max-width: 720px) {
  .boards-head .board-view-toggle { display: none; }
}
.boards-head .board-view-toggle[hidden] { display: none; }
/* Hex scope (Ronald, 2026-11-10; levels and whole-hex phones 2026-11-11; render/hex-scope.js): every ASIC of
   every board in one hexagon, the default board view. Colours are role tokens and --fx-mark-* inks; every size
   is a --hex-* token (non-scaling strokes). Boards are told apart by spokes, outlines and rail labels, never by a
   hue; level outlines, the series line and board outlines differ by weight and dash, so none needs colour.
   Static: nothing here animates, and nothing tips with scroll (the only motion is the share pulse, fx-hex.js). */
.hex-scope { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.hex-scope[hidden] { display: none; }
.hex-stage { position: relative; max-width: 100%; min-width: min(100%, 20rem); padding-block: 1.75rem; }
.hex-svg { display: block; max-width: 100%; height: auto; margin-inline: auto; overflow: hidden; }
.hex-svg:focus { outline: none; }
.hex-svg:focus-visible { outline: var(--hex-focus-w) solid var(--role-focus); outline-offset: var(--hex-focus-offset); }
.hex-tile { fill: var(--role-surface-raised); }
/* A level's four tiles share one rim tone, and a muted-ink line outlines each level (3:1 on the rim, so it works in greyscale): the 2 x 2
   blocks read as blocks by shape and spacing, not by hue. */
.hex-tile[data-tone="0"], .hex-tile[data-tone="1"] { fill: var(--role-line); }
.hex-tile[data-tone="x"] { fill: url(#hex-hatch-domain); }
/* Fallback (hex-fallback.js): one tile per board when per-chip data is not served. The tile is the board, outlined in ink;
   'none' (no share counter either) is hatched. Nothing per-chip is drawn, so the per-chip scale and table are not shown. */
.hex-meta-tile { fill: var(--role-line); }
.hex-meta-cell[data-kind="meta"] { fill: var(--role-surface-raised); stroke: var(--role-ink); stroke-width: var(--hex-line-w); vector-effect: non-scaling-stroke; }
.hex-meta-cell[data-kind="none"] { stroke: var(--role-ink-muted); stroke-width: var(--rule-w); stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.hex-scope[data-hex-level="meta"] [data-heat-scale], .hex-scope[data-hex-level="none"] [data-heat-scale] { display: none; }
.hex-halo { fill: url(#hex-hatch-domain); pointer-events: none; }
.hex-lines, .hex-marks, .hex-faults, .hex-over { pointer-events: none; }
.hex-level-line { fill: none; stroke: var(--role-ink); stroke-width: var(--hex-level-w); stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hex-series { fill: none; stroke: var(--role-ink); stroke-width: var(--hex-series-w); stroke-dasharray: var(--hex-series-dash);
  stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hex-series-start { fill: var(--role-ink); stroke: var(--role-surface-raised); stroke-width: var(--rule-w); vector-effect: non-scaling-stroke; }
.hex-board-line { fill: none; stroke: var(--role-ink); stroke-width: var(--hex-line-w); vector-effect: non-scaling-stroke; }
.hex-board-line[data-state="fault"] { stroke: var(--status-alert); }
.hex-spoke { stroke: var(--role-ink-muted); stroke-width: var(--rule-w); vector-effect: non-scaling-stroke; }
.hex-hub { fill: var(--role-ink-muted); }
.hex-hover { fill: none; stroke: var(--fx-mark-light); stroke-width: var(--hex-focus-w); vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 var(--hex-glow-r) var(--fx-mark-glow)); }
.hex-focus { fill: none; stroke: var(--role-ink); stroke-width: var(--hex-focus-w); vector-effect: non-scaling-stroke; }
/* The 3D layer's canvas (fx-hex3d.js), over the stage like the pulse's; it never takes the pointer. The toggle
   is a plain button (aria-pressed), its own row above the stage, at least the 24 px target. */
.hex-stage > canvas.fx-hex3d { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hex3d-toggle { align-self: flex-end; min-height: 24px; min-width: 2.75rem; padding: 0.15rem 0.6rem; font: inherit; font-family: var(--mono); font-size: var(--brand-type-label); color: var(--role-ink); background: var(--role-surface-raised); border: var(--rule-w) solid var(--role-line); border-radius: var(--brand-radius-small); cursor: pointer; }
.hex3d-toggle[aria-pressed="true"] { border-color: var(--role-ink); background: var(--role-ink); color: var(--role-surface); font-weight: 700; }
/* On or off is the word ("3D on" / "3D off"), the fill and the weight: never the colour alone. */
.hex3d-toggle[aria-pressed="false"] { font-weight: 400; }
.hex3d-toggle:disabled { color: var(--role-ink-muted); cursor: not-allowed; }
.hex3d-toggle:focus-visible { outline: var(--hex-focus-w) solid var(--role-focus); outline-offset: 2px; }
/* The share pulse's canvas (fx-hex.js), laid over the stage; it never takes the pointer. */
.hex-stage > canvas.fx-hex { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hex-rail { position: absolute; max-width: 48%; font-family: var(--mono); font-size: 0.72rem; line-height: 1.2; color: var(--role-ink-muted); }
.hex-rail[hidden] { display: none; }
.hex-rail[data-corner="tl"] { top: 0; left: 0; }
.hex-rail[data-corner="tr"] { top: 0; right: 0; text-align: right; }
.hex-rail[data-corner="br"] { bottom: 0; right: 0; text-align: right; }
.hex-rail[data-corner="bl"] { bottom: 0; left: 0; }
.hex-rail[data-corner="top"] { top: 0; left: 0; right: 0; max-width: none; text-align: center; }
.hex-rail[data-corner="none"] { position: static; max-width: none; }
.hex-rail[data-state="fault"] { color: var(--status-alert); font-weight: 600; }
.hex-rail[data-state="unknown"] { color: var(--status-unknown); }
.hex-note { margin: 0; max-width: 64ch; font-size: 0.75rem; text-align: center; color: var(--role-ink-muted); }
.hex-note[hidden] { display: none; }
.hex-supply { color: var(--role-ink); }
/* Flat hex layer (2026-11-16; render/hex-scope.js, share-log.js): static, the same under reduced motion. */
.hex-cell[data-imprint="none"] { fill: var(--role-surface); stroke: var(--hex-imprint-none); stroke-width: var(--rule-w); vector-effect: non-scaling-stroke; }
.hex-cell[data-imprint="few"] { fill: url(#hex-hatch); }
.hex-cell[data-imprint="low"] { fill: var(--hex-imprint-low); }
.hex-cell[data-imprint="mid"] { fill: var(--hex-imprint-mid); }
.hex-cell[data-imprint="high"] { fill: var(--hex-imprint-high); }
.hex-cell[data-imprint="top"] { fill: var(--hex-imprint-top); }
.hex-imprint-mark { fill: var(--hex-imprint-mark); stroke: none; }
.hex-imprint-bar { fill: none; stroke: var(--hex-imprint-mark); stroke-width: var(--hex-line-w); stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hex-supply-rail path { fill: none; stroke: var(--role-ink); stroke-width: var(--hex-rail-w); stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hex-supply-rail path.hex-rail-halo { stroke: var(--role-surface); stroke-width: var(--hex-rail-halo-w); }
.hex-supply-rail .hex-rail-inner:not(.hex-rail-halo) { stroke-dasharray: var(--hex-rail-hidden-dash); }
.hex-supply-rail[data-reported="false"] path:not(.hex-rail-halo) { stroke: var(--role-ink-muted); stroke-width: var(--rule-w); stroke-dasharray: var(--hex-rail-dash); }
.hex-imprint { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; font-family: var(--mono); font-size: var(--brand-type-label); color: var(--role-ink-muted); }
.hex-imprint[hidden] { display: none; }
.hex-imprint-line { margin: 0; color: var(--role-ink); }
.hex-imprint-bins { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 0.75rem; margin: 0; padding: 0; list-style: none; }
.hex-imprint-item { display: inline-flex; align-items: center; gap: 0.3rem; }
.hex-imprint-swatch { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: var(--brand-radius-small); border: var(--rule-w) solid var(--role-line); box-sizing: border-box; }
.hex-imprint-swatch[data-imprint="none"] { background: var(--role-surface); border-color: var(--hex-imprint-none); }
.hex-imprint-swatch[data-imprint="few"] { background: repeating-linear-gradient(45deg, transparent 0 0.125rem, var(--fx-mark-hatch) 0.125rem 0.1875rem); }
.hex-imprint-swatch[data-imprint="low"] { background: var(--hex-imprint-low); }
.hex-imprint-swatch[data-imprint="mid"] { background: var(--hex-imprint-mid); }
.hex-imprint-swatch[data-imprint="high"] { background: var(--hex-imprint-high); }
.hex-imprint-swatch[data-imprint="top"] { background: radial-gradient(circle at center, var(--hex-imprint-mark) 0 22%, transparent 24%), var(--hex-imprint-top); }
.hex-flat { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.25rem 1rem; font-family: var(--mono); font-size: var(--brand-type-label); color: var(--role-ink-muted); }
.hex-flat[hidden] { display: none; }
.hex-gauge { margin: 0; color: var(--role-ink); }
.hex-gauge[data-reported="false"] { color: var(--role-ink-muted); }
.hex-strip { display: inline-flex; align-items: center; gap: 0.5rem; }
.hex-strip[hidden] { display: none; }
.hex-strip-svg { width: var(--hex-strip-w); max-width: 40vw; height: var(--hex-strip-h); }
.hex-strip-base { fill: none; stroke: var(--role-ink-muted); stroke-width: var(--rule-w); vector-effect: non-scaling-stroke; }
.hex-strip-time { fill: none; stroke: var(--role-ink-muted); stroke-width: var(--rule-w); vector-effect: non-scaling-stroke; }
.hex-strip-tick { fill: none; stroke: var(--role-ink); stroke-width: var(--hex-line-w); vector-effect: non-scaling-stroke; }
.hex-table { align-self: stretch; }
.hex-scope .heat-scale { align-self: center; }
/* Under the hex scope the legacy cards keep their tabs, details, tables and inspector; their maps and
   per-board scales give way to the one scope above them. */
.boards-grid[data-board-view="hex"] .heatmap-wrap,
.boards-grid[data-board-view="hex"] [data-heat-scale] { display: none; }

.board-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.board-card[hidden] { display: none; }
/* #161: the board whose breakdown is open: a heavier ring (weight, not just colour), from the --select-* tokens. */
.board-card[data-selected] {
  outline: var(--select-width) var(--select-style) var(--select-color);
  outline-offset: calc(-1 * var(--select-width));
}
/* The folder-tab handle (Ronald, 2026-10-06): as wide as its text, narrower than
   the map, sitting on a rule that runs the card's width, so it reads as a tab
   of the details that unroll below it at full width. A fault tab takes the
   fault tokens and stays visible collapsed; unknown is dashed, never 0. */
.board-fold {
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: flex-start;
  margin-top: 0.1rem;
}
.board-tab {
  appearance: none;
  margin: 0 0 -1px 0.6rem;
  padding: 0.25rem 0.7rem;
  max-width: calc(100% - 1.2rem);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.3;
  cursor: pointer;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  text-align: left;
  flex-wrap: wrap;
  min-width: 0;
}
/* Words wrap at spaces, never a letter per line: the text column keeps a floor and a long token breaks only when it must. */
.board-tab-text { min-width: 12ch; flex: 1 1 12ch; overflow-wrap: break-word; }
.board-tab-age { flex: 0 0 auto; white-space: nowrap; }
.board-tab-glyph { display: none; }
.board-tab::after { content: "\25B8"; color: var(--ink-soft); font-size: 0.7rem; flex: none; }
.board-tab[aria-expanded="true"]::after { content: "\25BE"; color: var(--ink); }
.board-tab[aria-expanded="true"] { border-color: var(--ink-soft); }
.board-tab[data-state="fault"] {
  color: var(--st-fault-text);
  border: 2px solid var(--st-fault);
  border-top: 0;
  font-weight: 600;
}
.board-tab[data-state="fault"]::after { color: var(--st-fault-text); }
.board-tab[data-state="unknown"] { color: var(--st-unknown-text); border-style: dashed; }
.board-tab[data-state="unknown"]::after { color: var(--st-unknown-text); }
.board-tab[data-state="notoffered"] { color: var(--role-ink-muted); border-style: solid; }
.board-tab[data-state="notoffered"]::after { color: var(--role-ink-muted); }
/* The not-offered glyph of the annunciator tiles (bridge.css): a ring with a slash through it, drawn here from tokens. */
.board-tab[data-state="notoffered"] .board-tab-glyph {
  display: inline-block; flex: none; width: 0.9em; height: 0.9em; align-self: center; box-sizing: border-box;
  border: 2px solid currentColor; border-radius: 50%;
  background: linear-gradient(to top right, transparent calc(50% - 1px), currentColor calc(50% - 1px), currentColor calc(50% + 1px), transparent calc(50% + 1px));
}
.board-tab-age { color: var(--st-stale-text); }
.board-tab-age:empty { display: none; }
.board-tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.board-flags { display: flex; flex-direction: column; gap: 0.25rem; font-family: var(--mono); font-size: 0.68rem; color: var(--ink-soft); }
.board-detail { display: flex; flex-direction: column; gap: 0.55rem; }
.board-detail[hidden] { display: none; }
.board-inspector { font-family: var(--mono); font-size: 0.68rem; }
.board-inspector summary { cursor: pointer; color: var(--muted); }
.board-inspector[open] { max-height: 16rem; overflow: auto; }
.board-inspector [data-inspector-row] { display: flex; gap: 0.75rem; content-visibility: auto; contain-intrinsic-size: auto 1.1rem; }
.board-inspector [data-inspector-path] { color: var(--muted); }
/* The dim skips the heatmap, whose own wash marks it stale and whose fault
   outlines are never dimmed (AGENTS.md). */
/* #90: no opacity on text, which would drop it under 4.5:1; the hatch and
   the "stale N s" / "—" text carry the state. */
.board-card.stale > :not(.heatmap-wrap):not(.board-fold) {
  filter: saturate(0.55);
}
.board-card.stale {
  background: repeating-linear-gradient(
    -45deg,
    var(--surface),
    var(--surface) 6px,
    rgba(154, 148, 138, 0.08) 6px,
    rgba(154, 148, 138, 0.08) 12px
  );
}
/* #8: scheduler fields stale (uptime frozen) - desaturated and hatched. */
.kpi-value.stale {
  filter: saturate(0.55);
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 6px,
    rgba(154, 148, 138, 0.12) 6px,
    rgba(154, 148, 138, 0.12) 12px
  );
}
/* #14: lost values (hard rule 6) read "—" in the unknown colour. The last
   value and its browser receipt time are only in the tooltip (title), so
   the cursor and a dotted underline say a tooltip is there. Lost is not a
   fault, so it never uses the fault colour here. */
/* #90: a lost value is focusable; focus shows its last value and time. */
[data-lost]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  position: relative;
}
[data-lost]:focus-visible::after {
  content: attr(title);
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  z-index: 5;
  padding: 0.3rem 0.45rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  white-space: nowrap;
}
[data-lost] {
  color: var(--st-unknown-text);
  cursor: help;
  text-decoration: underline dotted;
  text-underline-offset: 0.2em;
}
.kpi-value.lost {
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 6px,
    rgba(154, 148, 138, 0.12) 6px,
    rgba(154, 148, 138, 0.12) 12px
  );
}
.board-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.25rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-soft);
}
.bus-quiet[hidden] { display: none; }
/* #9: quiet-under-live-thread is a warn condition, never fault red. */
.bus-quiet.chip[data-sev="warn"] {
  align-self: flex-start;
  border-color: var(--st-warn);
  color: var(--st-warn-text);
}
.heatmap-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-height: 220px;
}
.heatmap-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}
.heatmap-wrap canvas:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* #102: one ASIC's readings on hover, tap or keyboard focus. #169 (Ronald:
   "Its background a little darker"; "4-6 lines at most"): a darker, nearly opaque
   box from --tip-bg (theme.css), and the line a mark refers to wears the mark's
   colour (--tip-*, readable on the box in both themes) beside a bar in the
   mark's own colour (--fx-mark-*, fx-tokens.js). The words carry the meaning too. */
.asic-tip {
  position: absolute; z-index: 5; width: 360px; max-width: calc(100vw - 32px);
  background: color-mix(in srgb, var(--tip-bg) 94%, transparent); -webkit-backdrop-filter: blur(1.5px); backdrop-filter: blur(1.5px);
  color: var(--tip-ink); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: 0.45rem 0.55rem; font-family: var(--mono); font-size: 0.68rem; line-height: 1.45;
  overflow-wrap: anywhere; pointer-events: none;
}
.asic-tip [data-mark] { border-left: 3px solid transparent; padding-left: 0.35rem; margin-left: -0.35rem; }
.asic-tip [data-mark="hottest"] { color: var(--tip-hottest); border-left-color: var(--fx-mark-hot); }
.asic-tip [data-mark="coldest"] { color: var(--tip-coldest); border-left-color: var(--fx-mark-cold); }
.asic-tip [data-mark="fault"] { color: var(--tip-fault); border-left-color: var(--fx-mark-fault); }
.asic-tip [data-mark="accepted"] { color: var(--tip-accepted); border-left-color: var(--fx-glint); }
.asic-tip [data-mark="rejected"] { color: var(--tip-rejected); border-left-color: var(--fx-reject); }
.chart-dot {
  position: absolute; z-index: 4; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: currentColor; border: 2px solid var(--surface); pointer-events: none;
  box-shadow: 0 0 0 2px currentColor, 0 0 10px 3px currentColor; transform: scale(1.15); transition: left 60ms linear, top 60ms linear;
}
.chart-dot[hidden] { display: none; }
.chart-legend { font-size: 0.64rem; color: var(--faint); margin-top: 0.3rem; }
/* #115 B: the run-state bands' key, above the chart grid; nothing until a state was seen. */
.run-band-legend { margin: 0 0 0.5rem; }
.run-band-legend:empty { display: none; }
.chart-table { margin-top: 0.35rem; font-size: 0.68rem; }
.chart-table summary { cursor: pointer; color: var(--muted); }
.chart-extremes { color: var(--muted); }
.data-table { width: 100%; border-collapse: collapse; font-family: var(--mono); margin-top: 0.25rem; }
.data-table th, .data-table td { text-align: left; padding: 0.2rem 0.35rem; border-bottom: 1px solid var(--border-subtle); font-variant-numeric: tabular-nums; }
.data-table th { color: var(--muted); font-weight: 500; }
.chart-table[open] { max-height: 18rem; overflow-y: auto; }
@media (prefers-reduced-motion: reduce) { .chart-dot { transition: none; } }
.asic-tip[hidden] { display: none; }
.asic-tip-title { font-weight: 600; margin-bottom: 0.2rem; }
.asic-tip-foot { color: var(--tip-muted); margin-top: 0.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.heatmap-legend {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
}
/* #170: the numeric scale under the Temperature and Frequency maps: the scale's own ends either side of a bar
   read from the ramp's tokens (--temp-*, --freq-*), then for Temperature the target and the over-target band. */
.heat-scale { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.35rem; font-family: var(--mono); font-size: 0.62rem; color: var(--muted); }
.heat-scale-bar { flex: 0 1 7rem; min-width: 3rem; height: 0.5rem; border-radius: 2px; }
.heat-scale[data-scale-kind="temperature"] .heat-scale-bar { background: linear-gradient(90deg, var(--temp-0), var(--temp-1), var(--temp-2), var(--temp-3), var(--temp-4), var(--temp-5), var(--temp-6)); }
.heat-scale[data-scale-kind="frequency"] .heat-scale-bar { background: linear-gradient(90deg, var(--freq-0), var(--freq-1), var(--freq-2), var(--freq-3)); }
.heat-scale-over { display: inline-block; width: 1.1rem; height: 0.5rem; border-radius: 2px; }
.heat-scale-over[data-step="1"] { background: var(--temp-over-1); }
.heat-scale-over[data-step="2"] { background: var(--temp-over-2); }
/* A null trip_c: "not protected", warn styling (words and a border, never colour alone). */
.heat-scale-warn { color: var(--st-warn-text); border: 1px solid var(--st-warn); border-radius: 3px; padding: 0 0.35rem; font-weight: 500; }
.thread-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.65rem;
}
.thread-table th, .thread-table td {
  text-align: left;
  padding: 0.2rem 0.35rem;
  border-bottom: 1px solid var(--border-subtle);
}
.thread-table th { color: var(--muted); font-weight: 500; }
/* #81: the heatmap's "sort as table" alternative (state is in the caption's words, not colour). */
.heat-table { margin-top: 0.35rem; font-size: 0.65rem; }
.heat-table summary { cursor: pointer; color: var(--muted); }
.heat-table[open] { max-height: 22rem; overflow-y: auto; }
.heat-table-sort { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.35rem 0; }
.heat-table-sort [aria-pressed="true"] { border-color: var(--ink-soft); color: var(--ink); font-weight: 600; }
.heat-table table { width: 100%; border-collapse: collapse; font-family: var(--mono); }
.heat-table caption { text-align: left; color: var(--muted); padding-bottom: 0.25rem; }
.heat-table th, .heat-table td { text-align: left; vertical-align: top; padding: 0.2rem 0.35rem; border-bottom: 1px solid var(--border-subtle); font-variant-numeric: tabular-nums; }
.heat-table thead th { color: var(--muted); font-weight: 500; }
.heat-table tr.fault th, .heat-table tr.fault td:nth-child(3) { color: var(--st-fault-text); font-weight: 600; }

/* Fans */
.fans-line { font-size: 0.68rem; color: var(--muted); margin: 0.2rem 0; }
.fans-line[hidden] { display: none; }
.fans-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem;
  box-shadow: var(--shadow);
  overflow-x: auto;
}
.fans-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.72rem;
}
.fans-table th, .fans-table td {
  text-align: left;
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}
.fans-table th { color: var(--muted); font-weight: 500; }

/* Charts */
.charts-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.window-toggle {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  padding: 0.12rem;
}
.window-toggle button {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.28rem 0.55rem;
  cursor: pointer;
}
.window-toggle button { min-height: 24px; min-width: 2.75rem; }
@media (pointer: coarse) { .window-toggle button { min-height: 44px; } }
/* #14: every disclosure summary is at least a 24 px target. */
.chart-table summary, .heat-table summary, .board-inspector summary { min-height: 24px; padding-block: 0.25rem; box-sizing: border-box; }
.window-toggle button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--hover-fill);
}
/* Ronald, 2026-11-09: three rows of two chart cards. minmax(0, 1fr) lets a card
   shrink to its column (a wide canvas or table cannot widen it); one column on a
   phone, below 600 px of viewport. */
.charts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}
@media (min-width: 600px) {
  .charts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* A foldable's inner screen (about 600-720 px) gives each card 280-340 px: tighter padding and gap. */
/* A tooltip never outgrows its chart's wrapper (a half-width card is 280-340 px; the tip is 360 px elsewhere). */
.chart-canvas-wrap .asic-tip { max-width: 100%; box-sizing: border-box; }
/* The six KPI cards no longer fit one nowrap row below about 960 px (932 px of content at 700 px wide): wrap them. */
@media (max-width: 960px) {
  .kpi-row { flex-wrap: wrap; }
}
@media (min-width: 600px) and (max-width: 767px) {
  .charts-grid { gap: 0.5rem; }
  .charts-grid .chart-card { padding: 0.5rem; }
}
.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.chart-title {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.chart-summary {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-soft);
}
.chart-canvas-wrap {
  width: 100%;
  height: 140px;
  position: relative;
}
.chart-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: var(--radius-sm);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0 1.5rem;
  font-size: 0.72rem;
  color: var(--muted);
}
.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}
.cost-meter { font-family: var(--mono); }
.build-stamp { font-family: var(--mono); flex-basis: 100%; }
.build-stamp:empty { display: none; }
.credit a { color: var(--accent-cool); text-decoration: none; }
.credit a:not([href]), .credit:not(:has(a[href])) { color: var(--muted); }

@media (max-width: 640px) {
  .brand-model { display: none; }
  .brand-wordmark { font-size: 0.85rem; }
  .brand-256 { margin-left: 0; }
  .brand-256-logo { height: 15px; }
  .brand-link, .brand-256 { flex-shrink: 0; }
  .site-header .inner { gap: 0.5rem; flex-wrap: wrap; } /* the REPLAY badge may drop the actions to a second row */
  .header-actions { flex-wrap: wrap; flex-shrink: 1; min-width: 0; max-width: 100%; justify-content: flex-end; margin-left: auto; }
  .brand { gap: 0.5rem; }
  .kpi-row { flex-wrap: wrap; }
  .kpi-card { flex: 1 1 40%; }
  /* The pool verdict gets a row of its own, last, so it wraps to at most two lines. */
  .kpi-card-pool { flex: 1 1 100%; order: 1; width: auto; max-width: none; }
  /* #29: the chip row is one sideways-scrolling line, capped at a quarter of
     the viewport, so a phone can reach the chips past the first. Fault chips
     come first. The count sits outside that scroller. The headline stays
     outside the cap. The header stays unpinned; the strip pins only while
     data-pinned. */
  .safety-chips-row { display: flex; align-items: flex-start; gap: 0.4rem; min-width: 0; }
  .safety-chips { flex: 1 1 auto; flex-wrap: nowrap; min-width: 0; max-height: 25vh; overflow-x: auto; }
  .safety-chips .chip { flex-shrink: 0; }
  .safety-chips .chip[data-sev="fault"] { order: -1; }
  .safety-more { flex-shrink: 0; }
  .safety-headline { font-size: 1.05rem; }
}
.chart-hint { font-size: 0.72rem; }
.window-toggle:empty { display: none; } /* #27: no window served yet, no empty pill */
/* #109: the effect layer over each heatmap (effects.js). It never takes the
   pointer from the heatmap, sits under the ASIC tip, and is aria-hidden. */
.heatmap-wrap canvas.fx-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-color: transparent;
  pointer-events: none;
}

/* BEGIN #166 ASIC state map (map-mode.js, asic-lifecycle.js). The two
   toggles sit together at the right of the Boards heading; the State legend
   is one swatch per state with its words (colour is never the only cue). */
.boards-head > .boards-title { margin-right: auto; position: relative; display: inline-flex; align-items: center; gap: 0.4rem; }
.legend-btn {
  width: 1.3rem; height: 1.3rem; padding: 0; border-radius: 999px; line-height: 1;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted);
  font-family: var(--mono); font-size: 0.72rem; cursor: pointer;
}
.legend-btn:hover, .legend-btn[aria-expanded="true"] { color: var(--ink); border-color: var(--ink); }
.legend-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* The one legend, a popover under the heading: above the angled boards' stacking (their z-index is at most --board-count + 1). */
.legend-pop {
  position: absolute; left: 0; top: calc(100% + 0.4rem); z-index: 50;
  width: max-content; max-width: min(30rem, calc(100vw - 2rem));
  display: flex; flex-direction: column; gap: 0.3rem;
  padding: 0.6rem 0.75rem; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow);
}
.legend-pop[hidden] { display: none; }
.state-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.6rem; font-family: var(--mono); font-size: 0.62rem; color: var(--muted); }
.state-legend[hidden] { display: none; }
.state-legend-item { display: inline-flex; align-items: center; gap: 0.25rem; }
.state-swatch { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 2px; border: 1px solid var(--line-strong); }
.state-swatch[data-life="discovered"] { background: var(--life-discovered); }
.state-swatch[data-life="calibrating"] { background: var(--life-calibrating); }
.state-swatch[data-life="hashing"] { background: var(--life-hashing); }
.state-swatch[data-life="quiet"] { background: radial-gradient(circle at center, var(--life-quiet-dot) 0 1.5px, transparent 1.6px), var(--life-quiet); }
.state-swatch[data-life="unknown"] { background: repeating-linear-gradient(45deg, transparent 0 2px, var(--faint) 2px 3px); }
/* #169: the marks legend. Swatches read the same fx tokens the canvas draws with; no colour is typed here. */
.marks-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.6rem; margin-top: 0.2rem; font-family: var(--mono); font-size: 0.62rem; color: var(--muted); }
.marks-legend[hidden] { display: none; }
.mark-legend-item { display: inline-flex; align-items: center; gap: 0.25rem; }
.mark-swatch { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 2px; border: 1px solid var(--line-strong); box-sizing: border-box; }
.mark-swatch[data-mark="hottest"] { border: 2px solid var(--fx-mark-hot); background: transparent; }
.mark-swatch[data-mark="coldest"] { border: 2px solid var(--fx-mark-cold); background: transparent; }
.mark-swatch[data-mark="fault"] { border: 2px solid var(--fx-mark-fault); background: transparent; }
.mark-swatch[data-mark="accepted"] { background: var(--fx-glint); }
.mark-swatch[data-mark="rejected"] { background: var(--fx-reject); }
.mark-swatch[data-mark="unknown"] { background: repeating-linear-gradient(45deg, transparent 0 2px, var(--fx-mark-hatch) 2px 3px); }
.mark-swatch[data-mark="novalue"] { background: linear-gradient(var(--fx-mark-novalue), var(--fx-mark-novalue)) center / 60% 1px no-repeat, repeating-linear-gradient(45deg, transparent 0 2px, var(--fx-mark-hatch) 2px 3px); }
.mark-swatch[data-mark="neverseen"] { border: 1px dashed var(--fx-mark-hatch); background: transparent; }
.mark-swatch[data-mark="stale"] { background: repeating-linear-gradient(45deg, var(--fx-mark-hatch-stale) 0 1px, transparent 1px 3px); }
.heat-scale[hidden] { display: none; }
/* END #166 ASIC state map */

/* BEGIN #115 run-state path (run-state-path.js). The rich view's state path:
   a compact card above the charts. Colours are theme.css --run-path-* tokens
   only; the marker's one move reads the fx timing (--fx-run-path-move) and
   easing (--fx-ease-burst). It sits in <main>, below the safety strip, so it
   never moves the strip or changes its geometry. */
.run-path[hidden] { display: none; }
.run-path-card {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.35rem 1.1rem;
  padding: 0.55rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 0.68rem;
}
.run-path-track { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; align-items: flex-start; }
.run-path-group { display: flex; align-items: flex-start; gap: 0.9rem; list-style: none; }
.run-path-group[data-group="off"], .run-path-group[data-group="unknown"] { padding-left: 0.9rem; border-left: 1px dashed var(--border); }
.run-path-node { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; color: var(--run-path-node-ink); }
.run-path-node > .run-path-label { padding: 0.12rem 0.45rem; border: 1px solid transparent; border-radius: var(--radius-pill); }
/* The connector to the next node on the same path. */
.run-path-node + .run-path-node::before {
  content: "";
  position: absolute;
  left: -1.05rem;
  top: calc(0.2rem + 12px); /* the middle of the 24 px sprite */
  width: 1rem;
  border-top: 1px solid var(--run-path-line);
}
.run-path-node[data-lit="true"] > .run-path-label { color: var(--run-path-lit-ink); font-weight: 500; border-color: var(--run-path-lit); }
.run-path-node[data-previous="true"] > .run-path-label { border: 1px dashed var(--run-path-trail); }
/* An unknown token keeps the shared unknown style (#35): hatched, never a state colour. */
.run-path-node[data-unknown="true"] > .run-path-label { color: var(--st-unknown-text); border-color: var(--st-unknown); border-style: dashed; }
/* The sprites (run-state-sprites.js): 12 x 12 cells at 24 px, crisp. The picture is the ::before cell's
   box-shadow list, handed over as --px (CSSOM), coloured by the theme tokens named there. */
.run-sprite { position: relative; display: block; flex: none; width: 24px; height: 24px; margin-left: 0.45rem; image-rendering: pixelated; }
.run-sprite::before { content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 2px; box-shadow: var(--px); }
/* The CURRENT node is gold, as an accepted share is: a static ring of the counter flash's per-theme gold
   (3:1 on the light page too; --fx-glint, the share sparkle's white-gold, where that is not installed).
   That ring is the whole of it under prefers-reduced-motion. A transition adds the share sparkle's glow
   on top (render/fx-run-state.js: --fx-glint at --fx-win-peak, decaying over --fx-win-decay, in the
   effect system); a poll adds nothing. */
.run-path-node { padding: 0.2rem; border-radius: var(--radius-sm); }
.run-path-node[data-lit="true"] { box-shadow: 0 0 0 2px var(--count-flash-glow, var(--fx-glint)); }
.run-path-card > canvas.fx-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.run-path-note { flex-basis: 100%; color: var(--run-path-node-ink); }
.run-path-note:empty { display: none; }
/* The you-are-here marker: a ring laid over the lit node's label. */
.run-path-marker {
  position: absolute;
  left: 0;
  top: 0;
  border: 2px solid var(--run-path-lit);
  border-radius: var(--radius-pill);
  pointer-events: none;
}
.run-path-marker[data-move="eased"] { transition: transform var(--fx-run-path-move) var(--fx-ease-burst), width var(--fx-run-path-move) var(--fx-ease-burst); }
.run-path-marker[data-move="instant"] { transition: none; }
@media (prefers-reduced-motion: reduce) { .run-path-marker { transition: none; } }
/* At 640 px and below the graphic is not shown: the header chip carries the state, since_s and next as text. */
@media (max-width: 640px) {
  .run-path { display: none; }
}
/* END #115 run-state path */

/* #156 slice 1: the pool event log. A bounded scroll box; rows are text with a glyph and a
   word, so no row depends on colour. Gap and unreadable rows borrow no status colour. */
.event-log-list {
  list-style: none; margin: 0; padding: 0.25rem 0; max-height: 24rem; overflow-y: auto;
  font-family: var(--mono); font-size: 0.8rem; border: 1px solid var(--border);
  border-radius: 6px;
}
.event-log-list:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
/* #156: every row is CONFIG.eventLogRowPx (20px) tall, so only the rows in view are drawn; the full text is in the row's fields. */
.event-row { box-sizing: border-box; height: 20px; line-height: 20px; padding: 0 0.6rem; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.event-gap, .event-skipped { font-style: italic; border-top: 1px dashed currentColor; border-bottom: 1px dashed currentColor; }
.event-log-folded { margin: 0.25rem 0; }

/* #156 debug page */
.kpi-link, .footer-link { color: inherit; text-decoration: underline; font-size: 0.85em; }
.event-log-controls { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0.5rem 0; }
.event-log-list { overflow-anchor: none; } /* the list keeps the reader's row itself (#156) */
.debug-table { border-collapse: collapse; width: 100%; font-size: 0.9em; }
.debug-table th, .debug-table td { text-align: left; padding: 0.25rem 0.5rem; border-bottom: 1px solid var(--line, rgba(127,127,127,0.25)); }
.event-log-filters { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin: 0.5rem 0; font-size: 0.9em; }
.event-log-new { position: sticky; top: 0; z-index: 1; margin: 0.25rem 0; }
.event-row { cursor: pointer; }
.event-row[aria-selected="true"] { outline: 1px solid var(--ink, currentColor); }
.event-log-detail dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.1rem 0.75rem; font-size: 0.85em; overflow-wrap: anywhere; }
.event-log-detail dt { font-weight: 600; }
.event-log-detail dd { margin: 0; white-space: pre-wrap; }

/* #145 difficulty gauge: needle solid, ghost faint, suggestion a hollow triangle, pending dashed */
.diff-gauge { position: relative; height: 14px; margin-top: 0.25rem; border-bottom: 1px solid var(--line, rgba(127, 127, 127, 0.4)); }
.diff-mark { position: absolute; bottom: 0; transform: translateX(-50%); }
.diff-needle { width: 2px; height: 12px; background: var(--ink, currentColor); }
.diff-ghost { width: 2px; height: 12px; background: var(--ink, currentColor); opacity: 0.3; }
.diff-pending { width: 0; height: 12px; border-left: 2px dashed var(--ink, currentColor); }
.diff-suggest { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 8px solid var(--ink, currentColor); }
.diff-suggest::after { content: ''; position: absolute; left: -3px; top: 3px; border-left: 3px solid transparent; border-right: 3px solid transparent; border-bottom: 4px solid var(--surface, Canvas); }

/* #149 pool message: a quoted frame, never a status colour */
.pool-message { margin-top: 0.35rem; font-size: 0.85em; }
.pool-message-summary { cursor: pointer; }
.pool-message-new { font-weight: 700; }
.pool-message-quote { margin: 0.25rem 0; padding: 0.25rem 0.5rem; border-left: 3px double var(--ink, currentColor); white-space: pre-wrap; overflow-wrap: anywhere; font-style: italic; unicode-bidi: isolate; }
/* #154 pool connection lane under the hashrate chart */
.pool-band { margin-top: 0.25rem; }
.pool-band canvas { display: block; width: 100%; }

/* #148 a redirect to another host: outlined, neutral (not a fault colour); the words say it */
.pool-redirect { outline: 1px solid var(--ink, currentColor); outline-offset: 1px; }

/* #146 version-mask strip: filled, hollow, blank cells (shape, not colour alone) */
.vmask { margin-top: 0.25rem; }
.vmask-row { display: flex; gap: 1px; }
.vmask-row + .vmask-row { margin-top: 2px; }
.vmask-cell { width: 5px; height: 10px; box-sizing: border-box; border: 1px solid transparent; }
.vmask-granted { background: var(--ink, currentColor); border-color: var(--ink, currentColor); }
.vmask-hollow { border-color: var(--ink, currentColor); }
.vmask-blank { border-color: var(--line, rgba(127, 127, 127, 0.3)); border-style: dotted; }
.vmask-bip320 { box-shadow: 0 2px 0 0 var(--muted, rgba(127, 127, 127, 0.6)); }
.vmask-ghost { opacity: 0.4; }
.vmask-hex { font-size: 0.8em; }

/* #127: spot illustrations (ui/js/spot.js). Decoration only: no content, one
   token ink through a per-kind mask; hidden on narrow layouts. */
[data-spot]::after { content: ''; display: block; width: 56px; height: 38px; margin: 0.5em auto 0; pointer-events: none;
  background: var(--spot-ink); opacity: 0.8; -webkit-mask: var(--spot-img) center / contain no-repeat; mask: var(--spot-img) center / contain no-repeat; }
.chart-canvas-wrap[data-spot]::after { position: absolute; top: 8px; right: 8px; width: 40px; height: 27px; margin: 0; }
[data-spot="api-down"] { --spot-img: url("../img/spot/api-down.svg"); }
[data-spot="not-hashing"] { --spot-img: url("../img/spot/not-hashing.svg"); }
[data-spot="window-pending"] { --spot-img: url("../img/spot/window-pending.svg"); }
[data-spot="no-history"] { --spot-img: url("../img/spot/no-history.svg"); }
@media (max-width: 480px) { [data-spot]::after { display: none; } }
