/* Mujina BZM2 Device UI — one light + one dark token block (no duplicated dark).
 * Accents match mujina stone/charcoal + orange #E86A2B / teal #1FA6A0.
 * Green never means safety. localStorage key: mujina-theme.
 */

/* Fonts follow the Reckless Systems brand book (brand-v2.1; Ronald, 2026-11-10: three families only),
 * served from this box: Ubuntu Regular for reading text, Ubuntu Bold for headings, Orbitron Bold for
 * display, and JetBrains Mono, the one monospace face, for every value, the Bitcoin sign (U+20BF, in the
 * latin-ext file) and the hold marker (U+2016, in the symbols files). Source hashes, recipes and licences
 * are pinned in ../fonts/MANIFEST.json (tools/brand-fonts-sync.py, dev/test/brand-fonts.test.mjs).
 * JetBrains Mono's subsets carry Fontsource 5.3.0's unicode-ranges; latin also claims U+2000-206F, so the
 * symbols face is declared LAST: overlapping faces are tried last-declared first (CSS Fonts 4).
 * Weights 500/600 fall to the nearest face (Ubuntu 400/700, Orbitron 700). */
@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ubuntu-brand-400-normal.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+0394, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+221A, U+2248, U+2260, U+2265, U+25BE, U+25CF;
}
@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/ubuntu-brand-700-normal.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+0394, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+221A, U+2248, U+2260, U+2265, U+25BE, U+25CF;
}
@font-face {
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/orbitron-brand-700-normal.woff2") format("woff2");
  unicode-range: U+0000-FFFF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-greek-400-normal.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-greek-500-normal.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-symbols-400-normal.woff2") format("woff2");
  unicode-range: U+2016;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-symbols-500-normal.woff2") format("woff2");
  unicode-range: U+2016;
}

:root {
  /* Light — editorial stone */
  --bg: #f4f1ec;
  --bg-elevated: #faf8f5;
  --surface: #ffffff;
  --ink: #1a1917;
  --ink-soft: #3d3a36;
  /* #232: text tokens are ≥ 4.5:1 (WCAG AA) on --bg, --bg-elevated and --surface; muted stays a step above faint. */
  --muted: #645f58;
  --faint: #726c62;
  --line: rgba(26, 25, 23, 0.08);
  --line-strong: rgba(26, 25, 23, 0.14);
  --border: #d9d4cb;
  --border-subtle: #e8e4dc;
  --shadow: 0 1px 2px rgba(26, 25, 23, 0.04), 0 8px 24px rgba(26, 25, 23, 0.06);

  --accent-warm: #E86A2B;
  --accent-warm-soft: rgba(232, 106, 43, 0.12);
  --accent-cool: #1FA6A0;
  --accent-cool-soft: rgba(31, 166, 160, 0.12);
  --accent-cool-mid: rgba(31, 166, 160, 0.22);
  --wash-warm: rgba(232, 106, 43, 0.07);
  --wash-cool: rgba(31, 166, 160, 0.07);
  --nav-bg: rgba(244, 241, 236, 0.9);
  --hover-fill: rgba(26, 25, 23, 0.06);

  /* #169: the ASIC tooltip (Ronald: "background a little darker"). --tip-bg is
     darker than --surface; the text colours are each at least 4.5:1 on it, also
     over the worst thing it is 6% see-through to (dev/test/tooltip-decay.test.mjs).
     The marks' own colours (--fx-mark-*) sit beside the line as a bar. */
  --tip-bg: #ebe6dc;
  --tip-ink: #1a1917;
  --tip-muted: #4f4a43;
  --tip-hottest: #a33c06;
  --tip-coldest: #1e4fc4;
  --tip-fault: #b01c1c;
  --tip-accepted: #6e5200;
  --tip-rejected: #8c2c36;

  --st-fault: #dc2626;
  --st-fault-text: #b91c1c;
  --st-warn: #d97706;
  --st-warn-text: #b45309;
  /* Stale is orange, apart from amber warn and from the accepted-share glint
     (--fx-glint, white-gold): Ronald, 2026-10-06. Text #c2410c is 4.6:1 on
     --bg; the border/dot #ea580c is a non-text mark (3:1). */
  --st-stale: #ea580c;
  --st-stale-text: #c2410c;
  --st-live: #3b82f6;
  --st-live-text: #1d4ed8;
  --st-hashing: #16a34a;
  --st-hashing-text: #15803d;
  --st-unknown: #9a948a;
  --st-unknown-text: #6b665e;
  /* #202: the lost pill's 1px stripe; its text holds 4.5:1 on it (dev/test/map-marks-202.test.mjs). */
  --st-lost-stripe: #e9e5de;
  /* #119: the run-state chip is informational, never fault/warn/unknown
     styling. Teal, distinct from fault red, warn/stale amber and unknown
     grey (ΔE > 25 each, dev/test/run-state.test.mjs). */
  --st-info: #1fa6a0;
  --st-info-text: #0f766e;
  /* #115: the rich view's run-state path (run-state-path.js). The lit node and
     marker (--run-path-lit, a 3:1 mark on --surface; its words --run-path-lit-ink,
     4.5:1), the faded trail of `previous` (dashed, with the words in the note),
     idle nodes' words (--run-path-node-ink: navy, NOT grey, so an idle node never
     reads as unknown) and the connector. Each ΔE > 25 from this block's fault,
     warn, stale and unknown tokens (dev/test/run-state.test.mjs). */
  --run-path-lit: #16958f;
  --run-path-lit-ink: #0f766e;
  --run-path-trail: #86d0c9;
  --run-path-node-ink: #24324a;
  --run-path-line: #a9dcd6;
  /* #115 B: the run-state bands behind the charts (render/run-bands.js): the
     band fill, drawn at low alpha, and its words and start rules (--run-band-ink,
     4.5:1 on the chart). Slate blue: ΔE > 25 from this block's fault, warn,
     stale and unknown tokens (dev/test/run-state.test.mjs). */
  --run-band: #3b4f9a;
  --run-band-ink: #2f3f80;
  /* #152: a served pool disconnect, not a fault (not --st-fault). The card's
     words (--st-pool-down-text, >= 4.5:1 on --surface) and its outline
     (--st-pool-down, >= 3:1), a value per theme:
     dev/test/pool-down-contrast.test.mjs. */
  --st-pool-down: #9f1239;
  --st-pool-down-text: #9f1239;
  /* #127: spot illustrations' ink, quiet and ΔE > 25 from fault, stale, warn and
     unknown (dev/test/spot-illustrations.test.mjs). */
  --spot-ink: #6366c4;
  /* #124 (Ronald, 2026-10-14): pool monogram tones, one per pool by hash
     (pools.js poolTone), >= 4.5:1 on --surface and ΔE > 25 from fault, stale,
     warn, unknown and pool-down (dev/test/pool-mono-tones.test.mjs). Logos render
     monochrome on a light plate in both themes, so a mark never reads as status. */
  --pool-mono-0: #6d28d9;
  --pool-mono-1: #4338ca;
  --pool-mono-2: #0e7490;
  --pool-mono-3: #86198f;
  --pool-mono-4: #3f6212;
  --pool-mono-5: #1e40af;
  --pool-logo-plate: #f4f1ec;
  --pool-logo-filter: grayscale(1) contrast(1.15);
  --pool-headlogo-filter: grayscale(1) contrast(1.6) brightness(0.45); /* the plate is light in both themes */

  /* #170: the Temperature view's ramp (Ronald, 2026-10-07: "blue to red ... pinned
     reddest and bluest"), a diverging cool-warm ramp after Moreland (2009),
     coldest die (--temp-0) to the red end (--temp-6) through a neutral
     midpoint, blended linearly in between by map-scale.js. The red end is
     softer than the fault red (#dc2626): a fault is an outline and a x, never a
     fill. --temp-over-1 and --temp-over-2 are the dark red-black steps for a die
     at or above the fan law's target, and above the served ceiling; each holds
     3:1 against the fault outline (dev/test/views-scale.test.mjs). The same in
     both themes. Where the scale's ends are comes from the rows (map-scale.js),
     never from here. */
  --temp-0: #3b4cc0;
  --temp-1: #6788ee;
  --temp-2: #9abbff;
  --temp-3: #dddddd;
  --temp-4: #f2b59b;
  --temp-5: #dd7a62;
  --temp-6: #c4553f;
  --temp-over-1: #4a0f14;
  --temp-over-2: #1c0508;

  /* #170: the Frequency view's ramp, the sequential orchid-to-plum ramp #28
     chose for the die temperature (now the temperature view is blue to red):
     one hue, lightness falling monotonically, also under simulated protanopia
     and deuteranopia, and every step dE > 25 from every --st-* token and from
     the heatmap's marks (dev/test/heatmap-scale.test.mjs). Lowest frequency
     (--freq-0) to highest; the span is the board's own, pinned (map-scale.js). */
  --freq-0: #d9b3dc;
  --freq-1: #bf7ebf;
  --freq-2: #8f4499;
  --freq-3: #52186a;

  --font: "Ubuntu", "JetBrains Mono", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --display: "Orbitron", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --max: 1600px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* #161 (Ronald, 2026-10-06): the angled, stacked board row. One home for
     its look, the same in both themes; app.css only uses these, behind its
     one min-width breakpoint (flat below it), and dev/test/board-tilt.test.mjs
     checks from them that no ASIC cell is covered by a neighbouring board.
     --tilt-angle        rotateY of each board. Negative brings the right
                         edge nearer and larger. -20deg reads clearly as 3D
                         (the foreshortening comes mostly from the
                         perspective below).
     --tilt-perspective  each board's own perspective (so all three boards
                         have the same shape wherever they sit in the row).
                         640px (Ronald, 2026-11-09: stronger, sci-fi): the
                         far-left cells come out about three quarters of the
                         near-right ones, trapezoids rather than squares
                         (dev/test/board-foreshorten-chrome.test.mjs holds
                         them to 80 %). It cannot go lower, nor the overlap
                         higher, at 721 px: board-tilt.test.mjs keeps the far
                         cells at least 12 px wide across the scroll swing.
     --tilt-card         a board's width in the row (it shrinks to fit).
     --tilt-overlap      how far each board slides under the one before it
                         (a negative margin). Only card padding is covered:
                         the test's margin to the nearest cell is about 4 px.
     --tilt-shadow       the extra shadow each board casts on the next.
     --tilt-lift         how far a hovered or focused board comes forward.
     --tilt-lift-time    how long the lift takes (on --ease; none under
                         prefers-reduced-motion). */
  --tilt-angle: -20deg;
  --tilt-perspective: 640px;
  --tilt-card: 21rem;
  --tilt-overlap: 1.5rem;
  --tilt-shadow: 10px 12px 24px -12px rgba(0, 0, 0, 0.35);
  --tilt-lift: 6px;
  --tilt-lift-time: 160ms;

  /* #161 (Ronald, 2026-10-06): the board whose breakdown is open. A ring that
     is heavier than the resting 1px card border (weight, so it never relies
     on colour alone) in the informational teal, which is DeltaE > 25 from the
     fault red, the warn/stale amber and the unknown grey in both themes
     (dev/test/board-select.test.mjs). app.css only uses these.
     --select-width  the ring's weight (the card's own border is 1px).
     --select-style  the ring's line style.
     --select-color  the ring's colour; follows the theme's --accent-cool. */
  --select-width: 3px;
  --select-style: solid;
  --select-color: var(--accent-cool);
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1114;
  --bg-elevated: #1c2329;
  --surface: #151a1f;
  --ink: #d6dde3;
  --ink-soft: #b8c2ca;
  --muted: #909ba4;
  --faint: #7e8c97;
  --line: rgba(214, 221, 227, 0.1);
  --line-strong: rgba(214, 221, 227, 0.16);
  --border: #2a343c;
  --border-subtle: #222a31;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.45);
  --tip-bg: #0a0d10;
  --tip-ink: #e4eaee;
  --tip-muted: #9aa6b0;
  --tip-hottest: #f0824a;
  --tip-coldest: #6ba3f8;
  --tip-fault: #f47272;
  --tip-accepted: #e8d76a;
  --tip-rejected: #e8858f;

  --accent-warm: #E86A2B;
  --accent-warm-soft: rgba(232, 106, 43, 0.18);
  --accent-cool: #2dd4bf;
  --accent-cool-soft: rgba(45, 212, 191, 0.14);
  --accent-cool-mid: rgba(45, 212, 191, 0.28);
  --wash-warm: rgba(232, 106, 43, 0.09);
  --wash-cool: rgba(45, 212, 191, 0.08);
  --nav-bg: rgba(14, 17, 20, 0.9);
  --hover-fill: rgba(214, 221, 227, 0.08);

  --st-fault: #f87171;
  --st-fault-text: #f87171;
  --st-warn: #fbbf24;
  --st-warn-text: #fbbf24;
  --st-stale: #fb923c;
  --st-stale-text: #fb923c;
  --st-live: #60a5fa;
  --st-live-text: #60a5fa;
  --st-hashing: #4ade80;
  --st-hashing-text: #4ade80;
  --st-unknown: #8b95a0;
  --st-unknown-text: #8b95a0;
  --st-lost-stripe: #262e35;
  --st-info: #2dd4bf;
  --st-info-text: #2dd4bf;
  /* #115: the run-state path, dark (see the light block). */
  --run-path-lit: #2dd4bf;
  --run-path-lit-ink: #5eead4;
  --run-path-trail: #1a8a80;
  --run-path-node-ink: #dbe7f0;
  --run-path-line: #0f5a54;
  --run-band: #818cf8;
  --run-band-ink: #a5b4fc;
  --st-pool-down: #e879a0;
  --st-pool-down-text: #e879a0;
  --pool-mono-0: #a78bfa;
  --pool-mono-1: #818cf8;
  --pool-mono-2: #22d3ee;
  --pool-mono-3: #e879f9;
  --pool-mono-4: #a3e635;
  --pool-mono-5: #93c5fd;
  --pool-logo-plate: #e8e4dc;
  --pool-logo-filter: grayscale(1) contrast(1.15);
  --spot-ink: #8b8ff0;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]):not([data-theme="dark"]) {
    color-scheme: dark;
    --bg: #0e1114;
    --bg-elevated: #1c2329;
    --surface: #151a1f;
    --ink: #d6dde3;
    --ink-soft: #b8c2ca;
    --muted: #909ba4;
    --faint: #7e8c97;
    --line: rgba(214, 221, 227, 0.1);
    --line-strong: rgba(214, 221, 227, 0.16);
    --border: #2a343c;
    --border-subtle: #222a31;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.45);
  --tip-bg: #0a0d10;
  --tip-ink: #e4eaee;
  --tip-muted: #9aa6b0;
  --tip-hottest: #f0824a;
  --tip-coldest: #6ba3f8;
  --tip-fault: #f47272;
  --tip-accepted: #e8d76a;
  --tip-rejected: #e8858f;
    --accent-warm: #E86A2B;
    --accent-warm-soft: rgba(232, 106, 43, 0.18);
    --accent-cool: #2dd4bf;
    --accent-cool-soft: rgba(45, 212, 191, 0.14);
    --accent-cool-mid: rgba(45, 212, 191, 0.28);
    --wash-warm: rgba(232, 106, 43, 0.09);
    --wash-cool: rgba(45, 212, 191, 0.08);
    --nav-bg: rgba(14, 17, 20, 0.9);
    --hover-fill: rgba(214, 221, 227, 0.08);
    --st-fault: #f87171;
    --st-fault-text: #f87171;
    --st-warn: #fbbf24;
    --st-warn-text: #fbbf24;
  --st-stale: #fb923c;
  --st-stale-text: #fb923c;
    --st-live: #60a5fa;
    --st-live-text: #60a5fa;
    --st-hashing: #4ade80;
    --st-hashing-text: #4ade80;
    --st-unknown: #8b95a0;
    --st-unknown-text: #8b95a0;
    --st-lost-stripe: #262e35;
    --st-info: #2dd4bf;
    --st-info-text: #2dd4bf;
    /* #115: the run-state path, dark (see the light block). */
    --run-path-lit: #2dd4bf;
    --run-path-lit-ink: #5eead4;
    --run-path-trail: #1a8a80;
    --run-path-node-ink: #dbe7f0;
    --run-path-line: #0f5a54;
    --run-band: #818cf8;
    --run-band-ink: #a5b4fc;
    --st-pool-down: #e879a0;
    --st-pool-down-text: #e879a0;
    --pool-mono-0: #a78bfa;
    --pool-mono-1: #818cf8;
    --pool-mono-2: #22d3ee;
    --pool-mono-3: #e879f9;
    --pool-mono-4: #a3e635;
    --pool-mono-5: #93c5fd;
    --pool-logo-plate: #e8e4dc;
    --pool-logo-filter: grayscale(1) contrast(1.15);
    --spot-ink: #8b8ff0;
  }
}

/* BEGIN #166 ASIC lifecycle tokens (Ronald, 2026-10-06: grey through PnP,
   grey-green while calibrating, solid green while hashing). The ASIC state
   map's fills (ui/js/asic-lifecycle.js has the rule; heatmap.js reads these).
   Hashing-state colours on the map, NOT a safety verdict: green here means
   "hashing", never "OK". Each step ΔE > 15 from the others (also under
   simulated protanopia and deuteranopia, > 10), and ΔE > 25 from the fault
   outline and the winner glint (dev/test/asic-lifecycle.test.mjs). Unknown
   is the hatch, never a colour. The two dark blocks hold the same values.
     --life-discovered   grey: seen (PnP), not yet tuning.
     --life-calibrating  grey-green: in tuning, no throughput yet.
     --life-hashing      green: accepted results arriving (#173).
     --life-quiet        the hashing hue desaturated and darkened, drawn with a
                         centre dot (--life-quiet-dot): had accepted results,
                         none for 5 min. Not a fault. ΔE >= 15 from every other
                         state fill, > 25 from the accepted gold and the rejected tint. */
:root {
  --life-discovered: #c4c0b8;
  --life-calibrating: #86a683;
  --life-hashing: #2e9b4f;
  --life-quiet: #5d7a66;
  --life-quiet-dot: #f4f1ea;
}
html[data-theme="dark"] {
  --life-discovered: #59616a;
  --life-calibrating: #5f8466;
  --life-hashing: #34c26a;
  --life-quiet: #47604f;
  --life-quiet-dot: #dfe5e0;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]):not([data-theme="dark"]) {
    --life-discovered: #59616a;
    --life-calibrating: #5f8466;
    --life-hashing: #34c26a;
    --life-quiet: #47604f;
    --life-quiet-dot: #dfe5e0;
  }
}
/* END #166 ASIC lifecycle tokens */

/* BEGIN #170 counter flash (Ronald, 2026-10-07: the Accepted / rejected counter
   "brightens ... from bright gold text back to gray"; "rejected should not be
   gold"). The flash's peak colour per theme (counter-flash.js animates from it to
   --ink over --fx-count-flash). Accepted: a bright gold on the dark theme, a
   deep gold on the light page (bright gold text would not read on white; the
   glint glow behind the digits is the shine). Rejected: the rejected colour,
   never gold. Both hold 3:1 against the page at the peak (decorative), and the
   end state is --ink (4.5:1). --count-flash-glow is the gold shine behind the
   accepted digits (a shadow, not text). dev/test/counter-flash.test.mjs. */
:root {
  --count-flash-accepted: #8a6100;
  --count-flash-glow: #e6a800;
  --count-flash-rejected: #b3243a;
}
html[data-theme="dark"] {
  --count-flash-accepted: #ffe14d;
  --count-flash-glow: #ffd426;
  --count-flash-rejected: #ff7a8a;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]):not([data-theme="dark"]) {
    --count-flash-accepted: #ffe14d;
    --count-flash-rejected: #ff7a8a;
  }
}
/* END #170 counter flash */

/* BEGIN Survey Bridge role tokens. Names by role over the brand book's tokens (brand-tokens.css, GENERATED
   from brand-v2.1 tokens.json by tools/brand-tokens-sync.mjs; Bridge look D, 2026-11-16): no colour is typed
   here. Each role is declared once, as an alias, so the light and the dark theme each resolve it from the
   book's own colourway. The bridge shell (bridge.css) and the hex scope use roles only; Classic keeps its
   legacy palette (the WAIVERS table in the build log lists what is still off-book).
     --role-ground          the page behind the console: the book's surface.
     --role-surface         a station's panel: the book's surface-raised.
     --role-surface-raised  an instrument face or an annunciator tile on a station: the book's surface again
                            (the book: pale teal is "the raised surface on white"; on dark it reads as an inset).
     --role-ink, -ink-muted reading text and its quieter label.
     --role-line            a hairline between parts.
     --role-accent          the console's one brand mark (a fill): the book's accent.
     --role-focus           the focus ring: the book's focus role (3:1 on every surface; the old teal ring was 2.66:1
                            in the light theme).
     --status-*             advisory, caution, alert: the book's status roles; unknown has no status colour in the
                            book, so it is the muted ink with the dashed edge and "?" glyph (the book's never-seen
                            encoding uses ink-muted). Always paired with a glyph and a word. Each holds 4.5:1 on the
                            station surfaces in both themes (dev/test/role-tokens.test.mjs).
     --rail-w, --station-radius, --station-gap  the console's rail and panel shape (the book's layout).
     --target-min           the smallest pointer target (WCAG 2.2 AA; the book's focus.target_min).
     --rule-w               a hairline's width (the book's border hairline). */
:root {
  --role-ground: var(--brand-surface);
  --role-surface: var(--brand-surface-raised);
  --role-surface-raised: var(--brand-surface);
  --role-ink: var(--brand-ink);
  --role-ink-muted: var(--brand-ink-muted);
  --role-line: var(--brand-line);
  --role-accent: var(--brand-accent);
  --role-focus: var(--brand-focus);
  --status-advisory: var(--brand-status-advisory);
  --status-caution: var(--brand-status-caution);
  --status-alert: var(--brand-status-alert);
  --status-unknown: var(--brand-ink-muted);
  --rail-w: var(--brand-rail-w);
  --station-radius: var(--brand-panel-radius);
  --station-gap: var(--brand-station-gap);
  --target-min: var(--brand-target-min);
  /* Hex scope (render/hex-scope.js): the widest it is drawn, the most CSS px per cell radius (so one ASIC is
     not a poster), and its line widths. Colours are the roles above and the --fx-mark-* inks. */
  --hex-max-w: 640px;
  --hex-max-h: 720px;
  --hex-unit-max: 40px;
  --hex-line-w: 1.5px;
  --hex-focus-w: 2px;
  --hex-focus-offset: 4px;
  --hex-glow-r: 3px;
  /* the series line through a board's levels (2026-11-11): thinner than a board outline and dashed, so it
     reads as a path, not as an edge, without colour */
  --hex-series-w: 1px;
  /* the outline of a series level: an ink hairline (the book's muted ink is 2.91:1 on the dark rim), 3:1 against the tile rim in both themes (hex-level-contrast.test.mjs) */
  --hex-level-w: 1.5px;
  --hex-series-dash: 3 2;
  /* Flat hex layer (2026-11-16): the per-chip imprint, one hue: the book's accent toward the book's ink, five
     steps (none is the hollow cell, too-few the hatch). Mixes of two book roles, not book swatches: listed in the
     build log's WAIVERS. Every fill holds 3:1 against the tile rim it sits on (--role-line), both themes
     (flat-hex-contrast.test.mjs); the steps are told apart by shape and words too (dot, bar, legend, table). */
  --hex-imprint-low: color-mix(in srgb, var(--brand-accent) 90%, var(--brand-ink));
  --hex-imprint-mid: color-mix(in srgb, var(--brand-accent) 60%, var(--brand-ink));
  --hex-imprint-high: color-mix(in srgb, var(--brand-accent) 30%, var(--brand-ink));
  --hex-imprint-top: var(--brand-ink);
  --hex-imprint-mark: var(--brand-surface-raised);
  --hex-imprint-none: var(--brand-ink-muted);
  /* The supply rail: ink when a reading is served, the muted ink dim and dashed when not; a halo in the station
     surface keeps it 3:1 where it crosses the tiles. */
  --hex-rail-w: 3px;
  --hex-rail-halo-w: 6px;
  --hex-rail-dash: 4 3;
  --hex-rail-hidden-dash: 1 3;
  --hex-strip-h: 1.25rem;
  --hex-strip-w: 12rem;
  --rule-w: var(--brand-border-hairline);
}
/* END Survey Bridge role tokens */
