/* ==========================================================================
   Dashboard theme "face" — design 3a "Physical face" (handoff 13 Oct 2026).
   A visual reskin only: same DOM, same zones, same data and behaviour as every
   other theme; everything here is scoped to .dash[data-theme='face'] and loaded
   after overlay.css, so the other themes are untouched.

   The handoff is drawn at 2x (1440x810); every value here is NATIVE (720x405,
   the dashboard at 100 %), i.e. the handoff's px / 2, except hairline detail
   (grooves, lips, emboss) which is held at 1 px so it survives at 100 %.

   Depth model, back to front — and the one rule for every state the handoff
   didn't draw ("consistent with what we have today", Marcus 13 Oct):
     FACE      the board, showing as the 3 px gaps between wells
     WELL      every zone and every fuel cell (inner top shadow, lit lower lip)
     RAISED    traffic keys only
     GEAR      a chrome digit with a soft glow (3a's pod box dropped, Marcus 13 Oct)
     GLASS     a faint top sheen over everything, drawn last (no diagonal)
   A state that is a SOLID fill today stays a solid fill (the well keeps its
   inner shadow; flashes keep their exact cadence). A state that is a dark TINT
   today becomes BACKLIT: its colour rises from the bottom of the well with a
   1 px inner edge. A status INK gets a faint backlight; white figures get the
   emboss only. Light comes from above.
   ========================================================================== */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/geist-latin-wght-normal.woff2') format('woff2-variations');
  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: 'Geist';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/geist-latin-ext-wght-normal.woff2') format('woff2-variations');
  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: 'Geist Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/geist-mono-latin-wght-normal.woff2') format('woff2-variations');
  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;
}

/* ---- tokens: the dashboard's own names, 3a values ------------------------ */
.dash[data-theme='face'] {
  --bg: #0a0c12;            /* well mid-tone: what color-mixes resolve against */
  --frame: transparent;
  --hairline: transparent;
  --text: #eef0f8;
  --text2: #dfe2ee;
  --muted: #7c839f;         /* 3a --label */
  --dim: #5d6480;
  --sub: #9aa1bd;
  --green: #2ee08a;
  --amber: #ffb020;
  --amber-label: #ffb020;
  --red: #ff5a5f;
  --purple: #c6bcff;        /* 3a --pb */
  --accent: #a99bff;        /* 3a --trend */
  --accent-muted: #6f7694;
  --pit-bg: transparent;    /* PIT/LAPS cells are backlit below, not tinted */
  --fuel-crit-bg: transparent;
  --fuel-crit-ink: #ff8a8d;
  --traffic-bg: transparent;
  --traffic-border: #1a1d28;
  --led-off: #07080c;
  --led-off-red: #07080c;
}

/* ---- the shared material: any card stamped with the face theme ------------
   (applyTheme stamps data-theme on every widget's <main>). Depth recipes only
   — no font, no layout: each widget switches to Geist and the materials in
   its own section below, once its fixed slots are re-measured, so a widget
   not yet done keeps rendering exactly as Nocturne. */
[data-theme='face'] {
  /* The board, with its edge light (a 1 px lit top lip, a soft dark bottom
     edge) painted IN the background, not as an inset box-shadow: on a rounded
     card the shadow leaked a trace of light one pixel outside each corner's
     tangent points, which built up with every repaint on the transparent
     overlay into white dots (Marcus 14 Oct). The background is clipped to the
     card's own corners, so nothing lands outside it. */
  --face:
    linear-gradient(rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.14)) top / 100% 1px no-repeat,
    linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3) 1px, rgba(0, 0, 0, 0) 3px) bottom / 100% 3px no-repeat,
    linear-gradient(180deg, #252a3a 0%, #171a26 40%, #0f111a 100%);
  --well: linear-gradient(180deg, #06070b, #0d1018);
  --well-sh: inset 0 2px 5px rgba(0, 0, 0, 0.85), 0 1px 0 rgba(255, 255, 255, 0.05);
  --raised: linear-gradient(180deg, #262b3c, #161a27);
  --raised-sh: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 0 #05060a, 0 2.5px 5px rgba(0, 0, 0, 0.6);
  --groove: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 50%, rgba(255, 255, 255, 0.06) 50%);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 18%);
  --emboss: 0 1px 1px rgba(0, 0, 0, 0.8);
  --emboss-lg: 0 1.5px 1.5px rgba(0, 0, 0, 0.8);
  --emboss-light: 0 1px 0 rgba(255, 255, 255, 0.35); /* dark ink on a light fill */
}

/* ---- face ------------------------------------------------------------------ */
.dash[data-theme='face'] {
  gap: 3px;
  padding: 4px;
  border: none;
  border-radius: 8px;
  background: var(--face);
  font-family: Geist, Inter, 'Segoe UI', system-ui, sans-serif;
  text-shadow: var(--emboss); /* inherited: every glyph sits embossed in its well */
}

/* Glass: a faint sheen down from the top edge, over the whole face, drawn
   last. (3a's diagonal reflection, with its hard edge, is gone — Marcus 13 Oct,
   after driving with it: the line read as a mark across the dash.) */
.dash[data-theme='face']::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 50;
  border-radius: 8px;
  pointer-events: none;
  background: var(--glass);
}

/* No link dot on this face (Marcus 13 Oct: not needed for now; a lost feed
   still greys the whole card via .dash.disconnected). */
.dash[data-theme='face'] .status { display: none; }

/* ---- wells: every zone ----------------------------------------------------- */
.dash[data-theme='face'] :is(.dash-leds, .dash-liftrail, .dash-traffic, .dash-quali, .bnr,
  .dash-laptime, .dash-center, .dash-battle, .dash-info, .f-cell,
  .dash-finish, .dash-standings, .dash-finfoot) {
  border: none;
  border-radius: 5px;
  background: var(--well);
  box-shadow: var(--well-sh);
}

/* Engraved groove instead of a drawn hairline: 1 px shadow over 1 px light. */
.dash[data-theme='face'] .hairline {
  height: 2px;
  background: var(--groove);
}

/* BACKLIT: the state colour (--lit) rises from the bottom of the well, a 1 px
   inner edge in the same colour. The tinted states of every other theme. */
.dash[data-theme='face'] :is(
  .bnr-on, .bnr-exit, .bnr-clear, .bnr-faster, .bnr-green, .bnr-slow,
  .dash-info[data-flag='green'], .dash-info[data-flag='debris'], .dash-info[data-flag='fcy'], .dash-info[data-flag='blue'],
  .pitcell.save, .pitcell.needed, .lapscell.crit,
  .dash-info[data-adjusts='announcing'], .dash-info[data-adjusts='done'],
  .c-limoff, .c-start[data-start='go'], .c-race[data-flag='dq'], .c-saver, .dash-info[data-saver]) {
  background:
    radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--lit) 24%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--lit) 4%, #06070b), color-mix(in srgb, var(--lit) 9%, #0d1018));
  box-shadow: var(--well-sh), inset 0 0 0 1px color-mix(in srgb, var(--lit) 28%, transparent);
}
.dash[data-theme='face'].fcy .pitcell {
  --lit: var(--amber);
  background:
    radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--lit) 24%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--lit) 4%, #06070b), color-mix(in srgb, var(--lit) 9%, #0d1018));
  box-shadow: var(--well-sh), inset 0 0 0 1px color-mix(in srgb, var(--lit) 28%, transparent);
}

/* SOLID: the filled states of every other theme keep their fill (and their
   flash); the well's inner shadow stays on top so they still sit in the face.
   Dark ink on a light fill takes a light emboss instead of a dark one. */
.dash[data-theme='face'] :is(.bnr-off, .bnr-track, .bnr-slow[data-near='y'],
  .dash-info[data-flag='yellow'], .dash-info[data-flag='final']) {
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.05);
}
/* Restated: the well rule above outranks the other themes' fills. */
.dash[data-theme='face'] .bnr-off { background: var(--pit-warn-bg); }
.dash[data-theme='face'] .bnr-track { background: var(--pit-lim-bg); }
.dash[data-theme='face'] .bnr-slow[data-near='y'] { background: var(--flag-yellow); }
.dash[data-theme='face'] .bnr-slow[data-kind='stopped'][data-near='y'] { background: var(--flag-red); }
.dash[data-theme='face'] .dash-info[data-flag='yellow'] { background: var(--flag-yellow); }
.dash[data-theme='face'] .dash-info[data-flag='final'] { background: var(--flag-white); }
.dash[data-theme='face'] :is(.bnr-slow[data-near='y']:not([data-kind='stopped']),
  .dash-info[data-flag='yellow'], .dash-info[data-flag='final']),
.dash[data-theme='face'] :is(.bnr-slow[data-near='y']:not([data-kind='stopped']),
  .dash-info[data-flag='yellow'], .dash-info[data-flag='final']) * {
  text-shadow: var(--emboss-light);
}

/* ---- status inks: a faint backlight under coloured figures ---------------- */
.dash[data-theme='face'] :is(.delta-neg, .delta-pos, .lt-pb, .ls-val, .bt-gap, .bt-vsdelta,
  .gained-up, .gained-down, .info-ir.gain, .info-ir.loss, #d-air, #d-trk, .w-wet, .w-rain,
  .lapscell.warn .f-hero, .lapscell.crit .f-hero, .pitcell .f-hero, .pit-conf,
  .bnr-title-on, .bnr-green-word, .bnr-title-clear, .bnr-title-exit, .bnr-title-faster,
  .lo-speed, .st-word, .rc-word, .qp-delta) {
  text-shadow: 0 0 6px color-mix(in srgb, currentColor 24%, transparent), var(--emboss);
}
/* …except the iRating change on a flag-coloured info bar: dark ink there (by id:
   the list above carries #d-air, so only an id outranks it) */
.dash[data-theme='face'] #d-info:is([data-flag='yellow'], [data-flag='final']) #d-ir:is(.gain, .loss) {
  text-shadow: var(--emboss-light);
}

/* ==========================================================================
   1 · shift lights: lens segments
   ========================================================================== */
/* Whole-pixel lenses at 100 %, the same 3 px margin on all four sides of the
   well (Marcus 13 Oct: no wider side padding). The well is 712 × 23, so the
   lenses fill 706 × 17: 32 × 20 px with 2 px between, 4 px where the zone
   changes colour = 640 + 29 × 2 + 2 × 4 = 706. (36 lenses can't fill 706 on
   whole pixels with even spacing; hence 32 — 16 / 8 / 8 — in every theme.) */
.dash[data-theme='face'] :is(.dash-leds, .dash-liftrail) {
  height: 23px;
  padding: 3px;
  background: linear-gradient(180deg, #05060a, #0c0e15);
}
.dash[data-theme='face'] .dash-leds {
  gap: 2px;
  align-items: stretch;
}
.dash[data-theme='face'] .dash-leds .led { flex: none; width: 20px; }
.dash[data-theme='face'] .dash-leds .led.z-green + .led.z-amber,
.dash[data-theme='face'] .dash-leds .led.z-amber + .led.z-red { margin-left: 2px; }

.dash[data-theme='face'] .dash-leds .led.z-green { --c: #22d07a; --d: #0a5e35; --l: #a6f5cd; }
.dash[data-theme='face'] .dash-leds .led.z-amber { --c: #ffb020; --d: #7a4d00; --l: #ffe0a0; }
.dash[data-theme='face'] .dash-leds .led.z-red { --c: #ff4b4b; --d: #7a1717; --l: #ffb0b0; }
/* Lift rail lenses: tones derived from the lit colour (blue cue, traffic
   green, red at the lift point). */
.dash[data-theme='face'] .dash-liftrail .lr-led {
  --c: var(--sel-blue);
  --d: color-mix(in srgb, var(--c) 40%, #000);
  --l: color-mix(in srgb, var(--c) 45%, #fff);
}
.dash[data-theme='face'] .dash-liftrail.traffic .lr-led { --c: var(--tl-green); }
.dash[data-theme='face'] .dash-liftrail.lift .lr-led { --c: var(--red); }
/* Full-course yellow: every lens lit yellow (as every other theme). */
.dash[data-theme='face'].fcy .dash-leds .led { --c: #ffd21e; --d: #7a6300; --l: #fff1a8; }

/* Unlit: the zone's dark tone, still readable at 0 rpm. */
.dash[data-theme='face'] :is(.dash-leds .led, .dash-liftrail .lr-led) {
  border-radius: 3px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--d) 40%, transparent) 0%,
    color-mix(in srgb, var(--d) 20%, transparent) 45%, #07080c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), inset 0 -1px 2px rgba(0, 0, 0, 0.6), 0 0 0 1px #04050a;
}
/* Lit: a domed lens. */
.dash[data-theme='face'] :is(.dash-leds .led.lit, .dash-liftrail .lr-led.lit),
.dash[data-theme='face'].fcy .dash-leds .led {
  background: linear-gradient(180deg, var(--l) 0%, var(--c) 38%, var(--c) 62%, var(--d) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1.5px 2.5px rgba(0, 0, 0, 0.3),
    0 0 0 1px #04050a, 0 0 5px color-mix(in srgb, var(--c) 33%, transparent);
}
/* Shift blink and the lift flash: the same cadence as every theme, between
   the lit and the unlit lens. */
.dash[data-theme='face'] .dash-leds.blink .led.lit {
  animation-name: face-lens-blink;
}
.dash[data-theme='face'] .dash-liftrail.lift .lr-led {
  animation-name: face-lens-blink;
}
@keyframes face-lens-blink {
  0%, 54% {
    background: linear-gradient(180deg, var(--l) 0%, var(--c) 38%, var(--c) 62%, var(--d) 100%);
  }
  55%, 100% {
    background: linear-gradient(180deg, color-mix(in srgb, var(--d) 40%, transparent) 0%,
      color-mix(in srgb, var(--d) 20%, transparent) 45%, #07080c 100%);
  }
}
.dash[data-theme='face'] .dash-liftrail .lr-side { gap: 2px; flex: none; }
/* Lift rail, the same 706 × 17: 16 × 18 px + 15 × 2 = 318 a side, the LIFT
   word 54 with 8 px either side. */
.dash[data-theme='face'] .dash-liftrail .lr-led { flex: none; width: 18px; height: 17px; }
.dash[data-theme='face'] .dash-liftrail .lr-word { width: 54px; }
.dash[data-theme='face'] .dash-liftrail .lr-word { color: #2a2e3d; text-shadow: none; }
.dash[data-theme='face'] .dash-liftrail.lift .lr-word { color: var(--red); }
.dash[data-theme='face'] .dash-liftrail.traffic:not(.lift) .lr-word { color: var(--tl-green); }

/* ==========================================================================
   2 · top band: one 37 px slot for the traffic strip, the quali stripe and
   every banner (the strip slot contract, at this theme's height)
   ========================================================================== */
.dash[data-theme='face'] :is(.dash-traffic, .dash-quali, .dash-banner) {
  margin-top: 0;
}
.dash[data-theme='face'] :is(.dash-traffic, .dash-quali, .bnr) {
  height: 37px;
}
.dash[data-theme='face'] .dash-traffic {
  padding: 0 14px;
}
.dash[data-theme='face'] .dash-traffic-label {
  font-family: 'Geist Mono', Geist, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: #6f7694;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9);
}

/* Traffic chips become raised keys. The 2 px border is kept (transparent) so
   the zone plate still changes colour only; the negative margins the flat
   chips use to hide their box are dropped — a key's box is the thing you see. */
.dash[data-theme='face'] .dash-traffic-chips {
  gap: 7px;
  margin-left: 9px;
}
.dash[data-theme='face'] .dash-traffic .chip {
  gap: 5px;
  margin: 0;
  padding: 2px 6px 2px 5px;
  border-radius: 4.5px;
  background: var(--raised);
  box-shadow: var(--raised-sh);
  font-size: 15px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
}
.dash[data-theme='face'] .dash-traffic .chip .sw {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background-image: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), transparent 60%),
    linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.35));
  box-shadow: 0 0 3px color-mix(in srgb, currentColor 0%, transparent);
}
/* Loss line: a little LED strip under the number. */
.dash[data-theme='face'] .dash-traffic .chip .loss {
  height: 2px;
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.35);
}
/* Zone plate: a solid lit key (it is a solid plate in every theme). */
.dash[data-theme='face'] .dash-traffic .chip.zone {
  background: #6e2118;
  border-color: #ff7b6b;
  box-shadow: 0 1px 0 #05060a, 0 0 6px rgba(255, 123, 107, 0.25);
}
.dash[data-theme='face'] .dash-traffic .chip-gap i {
  border-top-color: var(--dim);
}

/* Banners: their own colours (below), the band's height, no drawn borders. */
.dash[data-theme='face'] .bnr { border-top: none; border-bottom: none; padding: 0 14px; }
.dash[data-theme='face'] .qs-rail { padding-left: 14px; padding-right: 14px; }
.dash[data-theme='face'] .bnr-on { --lit: var(--green); }
.dash[data-theme='face'] .bnr-exit { --lit: var(--pit-exit-text); }
.dash[data-theme='face'] .bnr-clear { --lit: var(--green); }
.dash[data-theme='face'] .bnr-faster { --lit: var(--flag-blue); }
.dash[data-theme='face'] .bnr-green { --lit: var(--green); }
.dash[data-theme='face'] .bnr-green[data-flag='fcy'] { --lit: var(--flag-yellow); }
.dash[data-theme='face'] .bnr-slow { --lit: var(--flag-yellow); }
.dash[data-theme='face'] .bnr-slow[data-kind='stopped'] { --lit: var(--flag-red); }
.dash[data-theme='face'] .bnr-rail { border-radius: 0 0 0 5px; box-shadow: 0 0 4px currentColor; }

/* Qualifying sector stripe: lens bars. */
.dash[data-theme='face'] .qs-bar {
  height: 5px;
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 1px rgba(0, 0, 0, 0.3), 0 0 0 1px #04050a;
}
.dash[data-theme='face'] .qs-seg[data-s='unreached'] .qs-bar {
  height: 2px;
  margin-bottom: 1.5px;
  background: linear-gradient(180deg, #000, #1a1d28);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   3 · main row: three wells
   ========================================================================== */
.dash[data-theme='face'] .dash-main {
  gap: 3px;
  grid-template-columns: 200px minmax(0, 1fr) 200px;
}
.dash[data-theme='face'] :is(.dash-laptime, .dash-center, .dash-battle) {
  overflow: hidden;
}

/* 22a cap line, re-measured for Geist (in-page ink, like the original): the
   first row of every main well caps 15 px below the well top — BST, speed,
   the top corners and the battle P all on one line. */
/* ---- vertical rhythm of the three main wells (pixel pass, Marcus 13 Oct) ----
   Well coordinates 0–218. Every well: first line's caps 15 px below the top,
   last line's baseline 10 px above the bottom (208). Between, the spacing is
   set by numbers, not shared out by flexbox: each group / divider below is
   placed so the free space at the standard 218 px is zero (a taller well, e.g.
   the DDU without its shift strip, shares the extra between them as before).
   Measured in-page (Geist, 2x): group box heights, caps and baselines.

   Lap times: deltas 70, times 49, settings 48. The ink gaps either side of
   the two grooves (LST → groove → PB, LST time → groove → BB) as even as
   whole-pixel grooves allow (y 88, 155):
   10.5 | 70 | 7.5 G 8.75 | 49 | 7.25 G 8 | 48 | 5 = 218.
   Measured: 12 / 11.75 / 11.75 / 12. */
.dash[data-theme='face'] .dash-laptime { padding: 10.5px 14px 5px; }
.dash[data-theme='face'] .lt-deltas + .hairline { margin: 7.5px 0 8.75px; }
.dash[data-theme='face'] .lt-times + .hairline { margin: 7.25px 0 8px; }
/* Centre: speed cap on the line (pad 10), the gear digit's ink centred
   between the speed's baseline and the SAVE / RPM line's caps (measured 21
   above / 22 below: the 43 px between them is odd, so whole-pixel glyphs
   can't split it evenly) — and that line's baseline on 208:
   10 | speed 40 | 2 | gear slot 131 | line 32.5 | 2.5 = 218. */
.dash[data-theme='face'] #c-default { padding: 10px 0 2.5px; }
.dash[data-theme='face'] #c-default .c-gear { margin-top: 2px; }
.dash[data-theme='face'] :is(.cn-tl, .cn-tr) { top: 13.1px; }
.dash[data-theme='face'] :is(.cn-tl, .cn-bl) { left: 14px; }
.dash[data-theme='face'] :is(.cn-tr, .cn-br) { right: 14px; }
/* Bottom corners re-measured on this face's line (baseline 10 px off the
   bottom): one row → its baseline on the SAVE / RPM baseline (the empty second
   row keeps its box, below); two rows → the second row's baseline on it. */
.dash[data-theme='face'] :is(.cn-bl, .cn-br) { bottom: 7px; }
.dash[data-theme='face'] :is(.cn-bl, .cn-br).csingle { bottom: -6.5px; }

/* Lap times + settings */
.dash[data-theme='face'] :is(.lt-lbl, .lt-lbl-pb) {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 0 #000;
}
.dash[data-theme='face'] .lt-trow.pb .lt-lbl-pb { color: var(--purple); }
.dash[data-theme='face'] .lt-bst { font-weight: 600; }
.dash[data-theme='face'] .lt-lastlap { color: var(--text2); }
.dash[data-theme='face'] .lt-slbl {
  font-size: 12px;
  font-weight: 400;
  text-shadow: none;
}
/* Settings (Marcus 13 Oct): like every row above — labels left, values
   right — as two cells, BB / TC and MIG / ARB, pinned to the panel's 14 px
   content edges, with an engraved groove between the cells so a right-aligned
   value can't read as belonging to the label beside it (MIG next to 42.0).
   Columns (172), measured in Geist, values 17 px:
     cell 1   23.9 label | 51.1 value   = 75 (BB 17.7 · widest value 10/12 = 51.1)
     groove   14 (6 + 2 + 6)
     cell 2   31.9 label | 51.1 value   = 83 (ARB 26.2)
   Value 1 ends on x 75, value 2 on the lap times' right edge; at the widest
   (10/12 in both) a label keeps 6.2 / 5.7 px to its value. */
.dash[data-theme='face'] .lt-setrow { grid-template-columns: 23.9px 51.1px 14px 31.9px 51.1px; }
.dash[data-theme='face'] .lt-set .lt-sval { text-align: right; font-size: 17px; }
.dash[data-theme='face'] .lt-set:first-child .lt-slbl { grid-column: 1; }
.dash[data-theme='face'] .lt-set:first-child .lt-sval { grid-column: 2; }
.dash[data-theme='face'] .lt-set + .lt-set .lt-slbl { grid-column: 4; padding-left: 0; }
.dash[data-theme='face'] .lt-set + .lt-set .lt-sval { grid-column: 5; }
/* The groove: x 81–83 of the content box, from the first row's caps to the
   second row's baseline (the group box is 48: caps at +5, baseline at −5). */
.dash[data-theme='face'] .lt-settings {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)) 81px 5px / 1px 38px no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06)) 82px 5px / 1px 38px no-repeat;
}

/* Centre: speed, the gear, the RPM / SAVE line */
.dash[data-theme='face'] .c-speed { font-size: 40px; font-weight: 600; text-shadow: var(--emboss-lg); }
.dash[data-theme='face'] .c-rpm { color: var(--sub); }
/* The gear slot: 3a's pod size, but no box (Marcus 13 Oct) — only a soft,
   edgeless glow behind the chrome digit. */
.dash[data-theme='face'] .c-gear {
  position: relative;
  width: 150px;
  height: 131px;
  flex-shrink: 0; /* the tower is ~2 px over-full: without this the slot gives
                     way when a narrower readout swaps in, and the line below
                     jumps (measured 9 px) */
  font-size: 140px;
  font-weight: 600;
  line-height: 1;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(60, 70, 150, 0.22), transparent 72%);
}
.dash[data-theme='face'] .c-gear-glyph {
  display: inline-block;
  background: linear-gradient(180deg, #fff 12%, #d5daf2 52%, #7f88ae 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 7px rgba(150, 160, 255, 0.16));
}
/* Metres to a slow / stopped car take the gear slot in a chrome of their own
   colour, without the gear's glow. Nothing moves: the slot keeps its box. */
.dash[data-theme='face'] .c-gear.c-contact {
  background: transparent;
  font-size: 92px;
  font-weight: 700;
}
.dash[data-theme='face'] .c-gear.c-contact .c-contact-num {
  background: linear-gradient(180deg, #fff1a8 10%, #ffd21e 55%, #a8840a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 7px rgba(255, 210, 30, 0.2));
}
.dash[data-theme='face'] .c-gear.c-contact.stopped .c-contact-num {
  background-image: linear-gradient(180deg, #ffb0b0 10%, #ff5a5f 55%, #b3262b 100%);
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 7px rgba(255, 90, 95, 0.22));
}
/* The unit hangs outside the number's box (zero width, so the number stays
   centred), where the clipped chrome can't reach: it takes the flat ink. */
.dash[data-theme='face'] .c-gear.c-contact .c-contact-unit { color: var(--hazard-slow-ink); }
.dash[data-theme='face'] .c-gear.c-contact.stopped .c-contact-unit { color: var(--hazard-stop-ink); }
/* The mode echo takes the SAVE / RPM line's height on this face too (32.5,
   measured in Geist), so the swap moves nothing. */
.dash[data-theme='face'] .c-lapsave .ls-lbl { font-size: 12px; letter-spacing: 0.14em; }
.dash[data-theme='face'] .c-lapsave .ls-val { font-weight: 600; }
.dash[data-theme='face'] .c-lapsave .ls-quota { font-size: 14px; }
.dash[data-theme='face'] .c-corner .cr1 { font-weight: 600; }

/* Centre takeovers fill the well, so they carry the well's shadow themselves. */
.dash[data-theme='face'] .c-state { border-radius: 5px; }
/* Fuel saver on the hero panel (docs/design/saver-hero-1016): backlit in the
   saver's blue at the pit limiter's strength (Marcus: A); the title on a lit
   band; the highlight a raised row. Ink offsets measured in Geist. */
.dash[data-theme='face'] .c-saver {
  --sv-head-top: 11.685px;
  --sv-name-dy: 0px;
  --sv-fig-dy: 0.48px;
  --sv-big-dy: -0.59px;
  --sv-conf-dy: -2.59px;
  --sv-conf-long-dy: -0.8px;
  --sv-learn-dy: -1.5px;
}
.dash[data-theme='face'] .c-saver .sv-band {
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--lit) 24%, #0d1018), color-mix(in srgb, var(--lit) 14%, #0a0c12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.65), 0 1px 0 rgba(255, 255, 255, 0.05);
}
.dash[data-theme='face'] .c-saver .sv-row.hl { background: var(--raised); box-shadow: var(--raised-sh); }
.dash[data-theme='face'] .c-saver .sv-row.hl :is(.sv-name, .sv-v) { color: #fff; }
.dash[data-theme='face'] .c-saver .sv-row.live::before { box-shadow: 0 0 6px rgba(255, 255, 255, 0.5); }
.dash[data-theme='face'] .c-saver .sv-drain { box-shadow: 0 0 6px var(--sel-blue); }
.dash[data-theme='face'] .c-saver .svc-name { color: #fff; text-shadow: var(--emboss-lg), 0 0 18px color-mix(in srgb, var(--lit) 55%, transparent); }
.dash[data-theme='face'] .c-saver .svc-line.act { color: #fff; text-shadow: var(--emboss), 0 0 12px color-mix(in srgb, var(--lit) 70%, transparent); }
.dash[data-theme='face'] .c-saver .svl-trk { stroke: rgba(255, 255, 255, 0.08); }
.dash[data-theme='face'] .c-saver .svl-arc { filter: drop-shadow(0 0 4px color-mix(in srgb, var(--sel-blue) 60%, transparent)); }
.dash[data-theme='face'] .c-saver :is(.svl-pct, .svl-name) { color: #fff; }
.dash[data-theme='face'] .dash-info[data-saver] { --lit: var(--sel-blue); }
.dash[data-theme='face'] .c-limoff { --lit: var(--red); }
.dash[data-theme='face'] .c-limoff.ontrack { --lit: var(--amber); }
.dash[data-theme='face'] .c-limoff.go { --lit: var(--green); }
.dash[data-theme='face'] .c-start[data-start='go'] { --lit: var(--green); }
.dash[data-theme='face'] .c-race[data-flag='dq'] { --lit: var(--red); }
/* Start lights: round lenses in the shift lights' recipe — unlit stays a dark
   amber lens you can still see (SET shows its third light), lit is domed. */
.dash[data-theme='face'] .c-start .st-light { --c: #ffb020; --d: #7a4d00; --l: #ffe0a0;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--d) 45%, transparent), #07080c 75%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), inset 0 -2px 3px rgba(0, 0, 0, 0.6), 0 0 0 1px #04050a; }
.dash[data-theme='face'] .c-start[data-start='go'] .st-light { --c: #22d07a; --d: #0a5e35; --l: #a6f5cd; }
.dash[data-theme='face'] .c-start[data-start='ready'] .st-light:nth-child(1),
.dash[data-theme='face'] .c-start[data-start='set'] .st-light:nth-child(-n + 2),
.dash[data-theme='face'] .c-start[data-start='go'] .st-light {
  background: radial-gradient(circle at 50% 30%, var(--l) 0%, var(--c) 45%, var(--d) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -2px 3px rgba(0, 0, 0, 0.3), 0 0 0 1px #04050a,
    0 0 9px color-mix(in srgb, var(--c) 30%, transparent); }
.dash[data-theme='face'] .rc-head { border-bottom: none; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.8), 0 2px 0 rgba(255, 255, 255, 0.06); }
.dash[data-theme='face'] .st-foot { border-top: none; box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.8), inset 0 2px 0 rgba(255, 255, 255, 0.06); }

/* Pit box countdown: the progress bar is a slot cut into the well. */
.dash[data-theme='face'] .bx-bar {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #000, #1a1d28);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.dash[data-theme='face'] .bx-fill {
  top: 1px;
  bottom: 1px;
  border-radius: 1px;
  box-shadow: 0 0 5px color-mix(in srgb, var(--green) 40%, transparent);
}
.dash[data-theme='face'] .bx-dist span:first-child { font-weight: 700; text-shadow: var(--emboss-lg); }

/* Battle: the well is 9 px shorter than the flat themes' panel, so the card
   rows tighten (gap 4 → 3, gap row 32 → 30) to keep the four rows and the
   groove between the cars clear of each other. */
/* Battle: each card is its content (22 + 30 + 18 + 18 + 3 × 3 = 97), the
   first P's caps on 15, the second card's last baseline on 208, the groove
   between them on a whole pixel (110) — 6.5 px of ink clearance above it,
   7.5 below (the half pixel can't split evenly):
   10.5 | 97 | 2.5 G 3 | 97 | 6 = 218. */
.dash[data-theme='face'] .dash-battle { padding: 10.5px 14px 6px; }
.dash[data-theme='face'] #b-battle { justify-content: space-between; }
.dash[data-theme='face'] #b-battle > .hairline { margin: 2.5px 0 3px; }
.dash[data-theme='face'] .bt-entry { gap: 3px; flex: none; }
/* A flagged rival's wash still bleeds to the well's edges and stops at the
   groove — re-cut for the spacing above (no left border on this face). */
.dash[data-theme='face'] .bt-entry[data-flag]::before { left: -14px; right: -14px; }
.dash[data-theme='face'] #b-battle > .bt-entry:first-child[data-flag]::before { top: -10.5px; bottom: -2.5px; }
.dash[data-theme='face'] #b-battle > .bt-entry:last-child[data-flag]::before { top: -3px; bottom: -6px; }
.dash[data-theme='face'] .bt-gaprow { height: 30px; }
.dash[data-theme='face'] :is(.bt-p, .bt-name) { font-size: 16px; font-weight: 600; }
.dash[data-theme='face'] .bt-gap { font-size: 30px; line-height: 30px; font-weight: 600; }
.dash[data-theme='face'] .bt-lbl { font-size: 11px; letter-spacing: 0.1em; text-shadow: 0 1px 0 #000; }
.dash[data-theme='face'] :is(.bt-last) { font-size: 16px; color: var(--text); }
.dash[data-theme='face'] .bt-st { color: var(--sub); }
/* The gap trend keeps its live shape (3a drew it flat); it is lit, not drawn. */
.dash[data-theme='face'] .bt-spark polyline { stroke: var(--accent); filter: drop-shadow(0 0 2px color-mix(in srgb, var(--accent) 50%, transparent)); }

/* Service checklist (right well in the lane): it takes the battle cards'
   place, so it takes their lines — first caps on 15, last baseline on 208 —
   with its groups spread between (it was spread evenly from the middle). */
/* Measured from the battle well's own padding (10.5 / 6): +1.5 at the top,
   2 px lower at the bottom. */
.dash[data-theme='face'] #b-service { justify-content: space-between; padding-top: 1.5px; height: calc(100% + 2px); flex-shrink: 0; }
/* The qualifying panel, same lines (measured +1.5 / 2.5 px lower). */
.dash[data-theme='face'] #b-quali { padding-top: 1.5px; flex: none; height: calc(100% + 2.5px); }
/* Service checklist (right well in the lane) */
.dash[data-theme='face'] .svc-bar { box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.06); }

/* ==========================================================================
   4 · info strip
   ========================================================================== */
.dash[data-theme='face'] .dash-info {
  height: 36px;
  padding: 0 14px;
}
.dash[data-theme='face'] .info-session { font-size: 17px; font-weight: 700; text-shadow: var(--emboss); }
.dash[data-theme='face'] .info-weather { color: #a2a8c2; }
.dash[data-theme='face'] .info-sub { color: var(--muted); }
.dash[data-theme='face'] .dash-info[data-flag='green'] { --lit: var(--green); }
.dash[data-theme='face'] .dash-info[data-flag='debris'] { --lit: var(--flag-caution-text); }
.dash[data-theme='face'] .dash-info[data-flag='fcy'] { --lit: var(--flag-yellow); }
.dash[data-theme='face'] .dash-info[data-flag='blue'] { --lit: var(--flag-blue); }
.dash[data-theme='face'] .dash-info[data-adjusts='announcing'] { --lit: var(--pit-exit-text); }
.dash[data-theme='face'] .dash-info[data-adjusts='done'] { --lit: var(--green); }

/* ==========================================================================
   5 · fuel strip: every cell its own well
   ========================================================================== */
/* Columns are 3a's (the flat themes' less the four 3 px gaps, taken from the
   fixed cells so PIT keeps its width). Re-measured in Geist (DOM, tabular):
   LAP 999.9 at 26 px = 70.8 + / 999 = 38 → 72 + 4 + 40 + 16 pad = 132 ≤ 133;
   TO GO 70.8 + 16 ≤ 97; LAPS OF FUEL label 96 + 16 ≤ 125; AVG 72 + 4 + 52
   + 16 = 144 ≤ 147; PIT 198, its hero +99.9 L ×9 and its line under 999.9 |
   assumed on 6 px pads. Every other slot holds a narrower Geist reading
   than the Inter one it was sized for. */
.dash[data-theme='face'] .dash-fuel {
  gap: 3px;
  height: 71px;
  border-top: none;
  grid-template-columns: 133px 97px 125px 147px minmax(0, 1fr);
}
.dash[data-theme='face'] .f-pair.lap { --pa: 72px; }
.dash[data-theme='face'] .f-pair.avg { --pa: 72px; }
.dash[data-theme='face'] .pitcell { padding: 0 6px; }
.dash[data-theme='face'] .f-cell { border-right: none; }
.dash[data-theme='face'] .f-lbl {
  font-size: 11px;
  letter-spacing: 0.16em;
  padding-left: 0.16em; /* balances the tracking after the last letter, so a
                           centred label is centred on its letters */
  text-shadow: 0 1px 0 #000;
}
/* PIT and its confidence word centre as one group (Marcus 13 Oct): PIT alone
   is centred; PIT CONFIDENT is centred as a pair. The chip joins the flow
   (every other theme hangs it off PIT's right edge, out of flow). */
.dash[data-theme='face'] .pit-lbl { display: inline-flex; align-items: baseline; justify-content: center; padding-left: 0; }
/* PIT's own trailing tracking is cancelled instead, so PIT alone and PIT +
   chip both centre on their letters (measured 0.0 / 0.0 px). */
.dash[data-theme='face'] #d-pitlbl { margin-right: -0.16em; }
.dash[data-theme='face'] .pit-conf { position: static; margin-left: 0; font-size: 10px; }
.dash[data-theme='face'] .pit-conf:not(:empty) { margin-left: 6px; }
.dash[data-theme='face'] .f-hero { font-size: 26px; font-weight: 600; }
.dash[data-theme='face'] .f-sub { color: var(--sub); }
.dash[data-theme='face'] .f-suf { font-weight: 400; }
.dash[data-theme='face'] :is(.pitcell.save, .pitcell.needed) { --lit: var(--amber); }
.dash[data-theme='face'] :is(.pitcell.save, .pitcell.needed) .pit-lbl { color: var(--amber); }
.dash[data-theme='face'] :is(.pitcell.save, .pitcell.needed) .f-sub { color: #c9c3b4; }
.dash[data-theme='face'] :is(.pitcell.save, .pitcell.needed) .f-sub .n { color: #fff; }
.dash[data-theme='face'] .lapscell.crit { --lit: var(--red); }
.dash[data-theme='face'] .lapscell.crit .f-lbl { color: var(--red); }

/* ==========================================================================
   Boards that take over the whole main row (debrief, quali / race results)
   ========================================================================== */
.dash[data-theme='face'] :is(.qst-title, .qst-colhdr, .qst-row, .qst-foot) {
  border-bottom: none;
  border-top: none;
}
.dash[data-theme='face'] .qst-row,
.dash[data-theme='face'] .qst-colhdr,
.dash[data-theme='face'] .qst-title {
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05), 0 1px 0 rgba(0, 0, 0, 0.8);
}
.dash[data-theme='face'] .qst-row[data-state='pole'] {
  background: radial-gradient(120% 140% at 50% 100%, color-mix(in srgb, var(--q-pole) 14%, transparent), transparent 75%);
  box-shadow: inset 2px 0 0 var(--q-pole), 0 1px 0 rgba(0, 0, 0, 0.8);
}
.dash[data-theme='face'] .qst-divider {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 50%, rgba(255, 255, 255, 0.06) 50%);
  box-shadow: none;
}
.dash[data-theme='face'] .qst-foot { background: transparent; box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.8), inset 0 2px 0 rgba(255, 255, 255, 0.05); }
.dash[data-theme='face'] .fin-pos { font-weight: 600; text-shadow: var(--emboss-lg); }

/* ==========================================================================
   RELATIVE (rollout 1, Marcus 13 Oct). Same card geometry as every theme:
   the script draws the card 8 px taller than its rows and anchors the player
   row 4 px inside the top — the face's 4 px padding (no border) is exactly the
   old 3 px padding + 1 px border, so nothing in the script changes and the
   player row still never moves. The rows area fades its top and bottom edges
   with a mask, which would fade a well's own background too, so the well is a
   layer of its own BEHIND the rows (::before) and the rows stay unmasked
   paint over it. Content keeps every theme's columns; the name column (1fr)
   gives up the 6 px the face's side padding takes.
   ========================================================================== */
.relcard[data-theme='face'] {
  --rel-ground: #0a0c12;   /* the well's mid-tone: tints and fades mix against it */
  --rel-hair1: #1a1d28;
  --rel-hair2: #2a2f40;
  --rel-text: #eef0f8;
  --rel-muted: #7c839f;
  --rel-dim: #5d6480;
  --rel-pos: #2ee08a;
  --rel-red: #ff5a5f;
  padding: 4px;
  border: none;
  background: var(--face);
  font-family: Geist, Inter, 'Segoe UI', system-ui, sans-serif;
  text-shadow: var(--emboss);
}
.relcard[data-theme='face']::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 5px;
  background: var(--well);
  box-shadow: var(--well-sh);
  pointer-events: none;
}
.relcard[data-theme='face']::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: 8px;
  background: var(--glass);
  pointer-events: none;
}
.relcard[data-theme='face'] .rel-rows { z-index: 1; border-radius: 5px; }

/* The player row: a tint in every theme, so here it is backlit — the blue
   rising from the bottom of the row, a 1 px inner edge. */
.relcard[data-theme='face'] .rel-row.player {
  --lit: var(--rel-blue);
  background:
    radial-gradient(120% 140% at 50% 100%, color-mix(in srgb, var(--lit) 22%, transparent), transparent 75%),
    linear-gradient(180deg, color-mix(in srgb, var(--lit) 5%, #06070b), color-mix(in srgb, var(--lit) 10%, #0d1018));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lit) 30%, transparent);
}
/* A row sliding over another mid-swap: the well's own ground under it. */
.relcard[data-theme='face'] .rel-row.liftz { background: #0a0c12; }

/* Car number: a small raised key (the traffic keys' recipe). */
.relcard[data-theme='face'] .rr-num {
  border: none;
  border-radius: 3px;
  background: var(--raised);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 0 #05060a, 0 1.5px 3px rgba(0, 0, 0, 0.6);
  color: var(--rel-muted);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
}
.relcard[data-theme='face'] .rel-row.player .rr-num { color: var(--rel-text); }

/* FUEL / OUTL / LANE / BOX and the lap-time flash chips are tints in every
   theme: backlit here, in their own ink. */
.relcard[data-theme='face'] .rr-chip,
.relcard[data-theme='face'] .rr-flash {
  border-radius: 3px;
  background:
    radial-gradient(120% 120% at 50% 100%, color-mix(in srgb, var(--chip) 30%, transparent), transparent 80%),
    color-mix(in srgb, var(--chip) 8%, #06070b);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--chip) 32%, transparent);
  text-shadow: 0 0 5px color-mix(in srgb, var(--chip) 30%, transparent), var(--emboss);
}
.relcard[data-theme='face'] .rr-flash[data-tier='recent'] { --chip: var(--rel-yellow); }
.relcard[data-theme='face'] .rr-flash[data-tier='pb'] { --chip: var(--rel-pos); }
.relcard[data-theme='face'] .rr-flash[data-tier='classBest'] { --chip: var(--rel-purple); }

/* Licence plates stay solid (they are solid in every theme): a lit top edge
   and dark ink with a light emboss, so they sit like the zone plate. */
.relcard[data-theme='face'] .rr-ir {
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}
.relcard[data-theme='face'] .rr-ir[data-lic='AI'] { box-shadow: inset 0 0 0 1px var(--rel-text); text-shadow: var(--emboss); }

/* Figures: 3a's weight (600) and the status-ink backlight on coloured ones. */
.relcard[data-theme='face'] :is(.rr-cpos, .rr-gap) { font-weight: 600; }
.relcard[data-theme='face'] :is(.rel-row[data-lap='ahead'], .rel-row[data-lap='behind'], .rel-row[data-flag]) :is(.rr-gap, .rr-name),
.relcard[data-theme='face'] :is(.rr-pace.up, .rr-pace.down) {
  text-shadow: 0 0 6px color-mix(in srgb, currentColor 24%, transparent), var(--emboss);
}

/* Pack separator: engraved grooves, not drawn lines. */
.relcard[data-theme='face'] .rel-sep :is(.rs-l, .rs-r) { height: 2px; background: var(--groove); }

/* ==========================================================================
   STANDINGS (rollout 2, Marcus 13 Oct). The relative's treatment: the card is
   the machined face (4 px padding replaces the 1 px border), the header and
   the board are two wells 3 px apart, every internal padding is kept, so all
   content sits 3 px further in each side and the DRIVER column (the one 1fr)
   gives the wells 6 px — the trade Marcus accepted for the relative. The card
   hangs from its top edge as in every theme; it grows 7 px taller (the two
   well paddings and the gap, less the old border and header rule).
   ========================================================================== */
.sbcard[data-theme='face'] {
  --sb-ground: #0a0c12;
  --sb-hair: #1a1d28;
  --sb-hair2: #2a2f40;
  --sb-text: #eef0f8;
  --sb-muted: #7c839f;
  --sb-dim: #5d6480;
  --sb-green: #2ee08a;
  --sb-red: #ff5a5f;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px;
  border: none;
  background: var(--face);
  font-family: Geist, Inter, 'Segoe UI', system-ui, sans-serif;
  text-shadow: var(--emboss);
  position: relative;
}
.sbcard[data-theme='face']::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: 8px;
  background: var(--glass);
  pointer-events: none;
}
.sbcard[data-theme='face'] :is(.sb-header, .sb-board) {
  border: none;
  border-radius: 5px;
  background: var(--well);
  box-shadow: var(--well-sh);
}
.sbcard[data-theme='face'] .sb-board { overflow: hidden; }

/* Your row: backlit blue, the relative's player row. */
.sbcard[data-theme='face'] .sb-row.me {
  --lit: var(--sb-blue);
  background:
    radial-gradient(120% 140% at 50% 100%, color-mix(in srgb, var(--lit) 22%, transparent), transparent 75%),
    linear-gradient(180deg, color-mix(in srgb, var(--lit) 5%, #06070b), color-mix(in srgb, var(--lit) 10%, #0d1018));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lit) 30%, transparent);
}

/* The YOU column: a channel cut into the well, its rails engraved. */
.sbcard[data-theme='face'] .sb-chan {
  border: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.22));
  box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.8), inset 2px 0 0 rgba(255, 255, 255, 0.05),
    inset -1px 0 0 rgba(255, 255, 255, 0.05), inset -2px 0 0 rgba(0, 0, 0, 0.8);
}

/* Separator rules: engraved grooves. */
.sbcard[data-theme='face'] .sb-sep .sb-seprule::before,
.sbcard[data-theme='face'] .sb-sep .sb-seprule::after { height: 2px; background: var(--groove); }

/* Car number: a raised key. Yours stays the solid inverted plate and the
   pit-lane plate stays solid amber (solid in every theme), each with a lit
   top edge so they sit on the face like the licence plates. */
.sbcard[data-theme='face'] .sb-plate {
  border: none;
  border-radius: 3px;
  line-height: 20px;
  background: var(--raised);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 0 #05060a, 0 1.5px 3px rgba(0, 0, 0, 0.6);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
}
.sbcard[data-theme='face'] .sb-row.me .sb-plate,
.sbcard[data-theme='face'] .sb-plate[data-pit] {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}
.sbcard[data-theme='face'] .sb-row.me .sb-plate { background: var(--sb-text); }
.sbcard[data-theme='face'] .sb-plate[data-pit] { background: var(--sb-amber); }

/* Licence plates: solid, a lit top edge (the relative's). */
.sbcard[data-theme='face'] .sb-ir {
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}
.sbcard[data-theme='face'] .sb-ir[data-lic='AI'] { box-shadow: inset 0 0 0 1px var(--sb-text); text-shadow: var(--emboss); }

/* PRJ: its outline box becomes a small slot cut into the well. */
.sbcard[data-theme='face'] .sb-prjbox {
  border: none;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.85), 0 1px 0 rgba(255, 255, 255, 0.05);
}
.sbcard[data-theme='face'] .sb-prjrail { bottom: 0; border-radius: 0 0 0 3px; }

/* Class chip in the header: a small raised key. */
.sbcard[data-theme='face'] .sb-class {
  border: none;
  border-radius: 3px;
  padding: 0 5px;
  background: var(--raised);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 0 #05060a;
}

/* Figures: 3a's weight, and the glow on coloured ones. */
.sbcard[data-theme='face'] :is(.sb-clock, .sb-you) { font-weight: 600; }
.sbcard[data-theme='face'] :is(.sb-chg[data-d='up'], .sb-chg[data-d='dn'], .sb-pace[data-vs], .sb-range[data-soon], .sb-you[style*='color']) {
  text-shadow: 0 0 6px color-mix(in srgb, currentColor 24%, transparent), var(--emboss);
}

/* The YOU column is the board's reason to exist (Marcus 13 Oct: "glance at
   the widget and be drawn to this entire column"). Instead of a dim channel it
   is a lit strip running the full board, head to last row: a cool backlight
   rising from below in every cell (the same cell on every row, so the column
   reads as one bar), lit inner rails, and its figures in full white with a
   faint glow. The YOU head is lit in the same tone. */
.sbcard[data-theme='face'] .sb-chan {
  --you-lit: #9fb0ff;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--you-lit) 9%, transparent), color-mix(in srgb, var(--you-lit) 14%, transparent));
  box-shadow: inset 1px 0 0 color-mix(in srgb, var(--you-lit) 40%, transparent),
    inset -1px 0 0 color-mix(in srgb, var(--you-lit) 40%, transparent);
}
.sbcard[data-theme='face'] .sb-row.me .sb-chan { background: color-mix(in srgb, var(--you-lit) 18%, transparent); }
.sbcard[data-theme='face'] .sb-you {
  color: #fff;
  text-shadow: 0 0 8px rgba(159, 176, 255, 0.28), var(--emboss);
}
.sbcard[data-theme='face'] .sb-colhead .sb-you-lab { color: #c9d2ff; text-shadow: 0 0 6px rgba(159, 176, 255, 0.35), var(--emboss); }

/* ==========================================================================
   PIT STRATEGY (rollout 3, Marcus 13 Oct). One well, like the relative. The
   card's 4 px padding replaces the 1 px border and the content padding grows
   by that same 1 px each side, so every line stays exactly where it is today.
   ========================================================================== */
.pscard[data-theme='face'] {
  --ps-ground: #0a0c12;
  --ps-hair1: #1a1d28;
  --ps-hair2: #2a2f40;
  --ps-text: #eef0f8;
  --ps-muted: #7c839f;
  --ps-dim: #5d6480;
  --ps-pos: #2ee08a;
  --ps-amber: #ffb020;
  position: relative;
  border: none;
  padding: 12px 13px 11px;
  background: var(--face);
  font-family: Geist, Inter, 'Segoe UI', system-ui, sans-serif;
  text-shadow: var(--emboss);
}
.pscard[data-theme='face']::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 5px;
  background: var(--well);
  box-shadow: var(--well-sh);
  pointer-events: none;
}
.pscard[data-theme='face']::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: var(--glass);
  pointer-events: none;
}
.pscard[data-theme='face'] > * { position: relative; }
.pscard[data-theme='face'] .ps-divider,
.pscard[data-theme='face'] .ps-flrule { height: 2px; background: var(--groove); }
/* 7 + 1 + 6 = 14 between the verdict and the ladder today; 6 + 2 + 6 here. */
.pscard[data-theme='face'] .ps-divider { margin: 6px 0; }
/* The bars become slots cut into the well. */
.pscard[data-theme='face'] .ps-bar {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #000, #1a1d28);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.pscard[data-theme='face'] .ps-fill { top: 1px; bottom: 1px; }
/* Crowned (green) and deadline (amber) rows: tints in every theme, backlit. */
.pscard[data-theme='face'] :is(.ps-row.crown, .ps-row.deadline) {
  background:
    radial-gradient(120% 160% at 50% 100%, color-mix(in srgb, var(--lit) 24%, transparent), transparent 75%),
    color-mix(in srgb, var(--lit) 6%, #06070b);
  box-shadow: inset 2px 0 0 var(--lit), inset 0 0 0 1px color-mix(in srgb, var(--lit) 28%, transparent);
}
.pscard[data-theme='face'] .ps-row.crown { --lit: var(--ps-pos); }
.pscard[data-theme='face'] .ps-row.deadline { --lit: var(--ps-amber); }
.pscard[data-theme='face'] :is(.ps-row.crown, .ps-row.deadline) .ps-fill { box-shadow: 0 0 4px var(--lit); }
.pscard[data-theme='face'] :is(.ps-vhero, .ps-cars) { font-weight: 600; }
.pscard[data-theme='face'] :is(.ps-verdict.best, .ps-verdict.even, .ps-verdict.forced, .ps-row.crown, .ps-row.deadline) :is(.ps-vhero, .ps-vsuffix, .ps-lap, .ps-cars, .ps-loss) {
  text-shadow: 0 0 6px color-mix(in srgb, currentColor 24%, transparent), var(--emboss);
}

/* ==========================================================================
   FUEL CALCULATOR (rollout 3). Its three blocks (what is true now / when can
   I act / what if) become three wells on the face; they were split by
   hairlines. Internal paddings kept: content sits 3 px further in each side,
   and the card (variable height) grows 7 px. The lap-chip strip is a canvas
   that reads its inks from these tokens, so it re-colours by itself; its chips
   stay flat (lens chips on a canvas would be a separate piece of work).
   ========================================================================== */
.fuelmatrix[data-theme='face'] {
  --fm-ground: #0a0c12;
  --fm-hair1: #1a1d28;
  --fm-hair2: #2a2f40;
  --fm-text: #eef0f8;
  --fm-dim: #7c839f;
  --fm-green: #2ee08a;
  --fm-amber: #ffb020;
  --fm-red: #ff5a5f;
  gap: 3px;
  padding: 4px;
  border: none;
  background: var(--face);
  font-family: Geist, Inter, 'Segoe UI', system-ui, sans-serif;
  text-shadow: var(--emboss);
}
.fuelmatrix[data-theme='face']::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: var(--glass);
  pointer-events: none;
}
.fuelmatrix[data-theme='face'] :is(.fm-hdr, .fm-range, .fm-tbl) {
  border: none;
  border-radius: 5px;
  background: var(--well);
  box-shadow: var(--well-sh);
}
.fuelmatrix[data-theme='face'] :is(.fm-big, .fm-fig) { font-weight: 600; }
/* Table rules: engraved grooves. */
.fuelmatrix[data-theme='face'] .fm-trow:not(.fm-thead) {
  border-top: none;
  background: var(--groove) top / 100% 2px no-repeat;
}
.fuelmatrix[data-theme='face'] .fm-trow.fm-avg { background: none; }
/* PITS, the number that decides the race: a lit channel the table's height
   (the standings' YOU column recipe); a disagreeing basis backlit amber. */
.fuelmatrix[data-theme='face'] .fm-chan {
  --chan-lit: #9fb0ff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--chan-lit) 8%, transparent), color-mix(in srgb, var(--chan-lit) 12%, transparent));
  box-shadow: inset 1px 0 0 color-mix(in srgb, var(--chan-lit) 35%, transparent),
    inset -1px 0 0 color-mix(in srgb, var(--chan-lit) 35%, transparent);
}
.fuelmatrix[data-theme='face'] .fm-chan.fm-disagree {
  background:
    radial-gradient(120% 140% at 50% 100%, color-mix(in srgb, var(--fm-amber) 26%, transparent), transparent 80%),
    color-mix(in srgb, var(--fm-amber) 6%, #06070b);
  text-shadow: 0 0 6px color-mix(in srgb, var(--fm-amber) 30%, transparent), var(--emboss);
}
/* Lamps: small domed lenses when lit; with no state they stay invisible,
   as in every theme. */
.fuelmatrix[data-theme='face'] :is(.fm-lamp.ok, .fm-lamp.close, .fm-lamp.short) {
  background: radial-gradient(circle at 40% 30%, color-mix(in srgb, var(--c) 45%, #fff), var(--c) 50%, color-mix(in srgb, var(--c) 55%, #000));
  box-shadow: 0 0 0 1px #04050a, 0 0 5px color-mix(in srgb, var(--c) 35%, transparent);
}
.fuelmatrix[data-theme='face'] .fm-lamp.ok { --c: var(--fm-green); }
.fuelmatrix[data-theme='face'] .fm-lamp.close { --c: var(--fm-amber); }
.fuelmatrix[data-theme='face'] .fm-lamp.short { --c: var(--fm-red); }
/* PIT WINDOW chip: a tint with a hairline border in every theme, backlit.
   140 px, not 138: its widest word, IN 12.4 LAPS (any two-digit count), is
   108.2 px in Geist against 108 of room; the strip beside it gives 2 px. */
.fuelmatrix[data-theme='face'] .fm-pit {
  width: 140px;
  border: none;
  border-radius: 4px;
  background:
    radial-gradient(120% 120% at 50% 100%, color-mix(in srgb, var(--fm-ink) 24%, transparent), transparent 75%),
    color-mix(in srgb, var(--fm-ink) 6%, #06070b);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fm-ink) 28%, transparent);
}
.fuelmatrix[data-theme='face'] .fm-pitbar { box-shadow: 0 0 5px color-mix(in srgb, var(--fm-ink) 50%, transparent); }
.fuelmatrix[data-theme='face'] .fm-pitword { text-shadow: 0 0 6px color-mix(in srgb, var(--fm-ink) 26%, transparent), var(--emboss); }
/* SHORT flag under SET FILL: today it hangs over the header hairline on the
   ground colour; here it hangs into the gap under the header well, backlit. */
.fuelmatrix[data-theme='face'] .fm-shortflag {
  background: color-mix(in srgb, var(--fm-amber) 10%, #06070b);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fm-amber) 32%, transparent);
  z-index: 1;
}
.fuelmatrix[data-theme='face'] :is(.fm-big.fm-shortfill, .fm-fig.fm-short, .fm-pfx) {
  text-shadow: 0 0 6px color-mix(in srgb, currentColor 26%, transparent), var(--emboss);
}

/* ==========================================================================
   STRATEGY CONSOLE + LITE (rollout 4, Marcus 13 Oct). Both share the .stratcard
   tokens. The stripes are canvases that read these tokens and, in this theme,
   shade every chip as a lens (kit/canvas.ts lensChip) — the fuel strip too.
   ========================================================================== */
.stratcard[data-theme='face'] {
  --sc-ground: #0a0c12;
  --sc-line: #1a1d28;
  --sc-line2: #2a2f40;
  --sc-text: #eef0f8;
  --sc-muted: #7c839f;
  --sc-dim: #5d6480;
  --sc-green: #2ee08a;
  --sc-red: #ff5a5f;
  --sc-edge: #dfe2ee;
  position: relative;
  background: var(--face);
  font-family: Geist, Inter, 'Segoe UI', system-ui, sans-serif;
  text-shadow: var(--emboss);
}
.stratcard[data-theme='face']::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  background: var(--glass);
  pointer-events: none;
}

/* ---- console: every cell a well (they were raised panels on the ground);
   the 10 px card padding and 8 px gaps are the face showing between them. -- */
.stratcard[data-theme='face'] :is(.sc-chip, .sc-planrow, .sc-offlabel, .sc-offbasis, .sc-stripebody, .sc-learn) {
  background: var(--well);
  box-shadow: var(--well-sh);
}
.stratcard[data-theme='face'] :is(.sc-ptag, .sc-pdel) { text-shadow: var(--emboss-light); } /* dark ink on a lit tag */
.stratcard[data-theme='face'] .sc-offbasis { box-shadow: var(--well-sh), inset 2px 0 0 color-mix(in srgb, var(--sc-muted) 65%, transparent); }
.stratcard[data-theme='face'] .sc-offbasis[data-b='max'] { box-shadow: var(--well-sh), inset 2px 0 0 color-mix(in srgb, var(--sc-basis-max) 75%, transparent); }
.stratcard[data-theme='face'] .sc-offbasis[data-b='last'] { box-shadow: var(--well-sh), inset 2px 0 0 color-mix(in srgb, var(--sc-basis-last) 75%, transparent); }
/* State cells, and the committed / committing plan: tints in every theme,
   backlit here in their ink. */
.stratcard[data-theme='face'] :is(.sc-chip[data-tone='red'], .sc-chip[data-tone='blue'], .sc-chip[data-tone='amber'], .sc-chip[data-tone='green'],
  .sc-planrow[data-state='active'], .sc-offlabel[data-state='active'], .sc-planrow[data-state='pending'], .sc-offlabel[data-state='pending']) {
  background:
    radial-gradient(120% 120% at 50% 100%, color-mix(in srgb, var(--lit) 20%, transparent), transparent 75%),
    linear-gradient(180deg, color-mix(in srgb, var(--lit) 4%, #06070b), color-mix(in srgb, var(--lit) 8%, #0d1018));
  box-shadow: var(--well-sh), inset 0 0 0 1px color-mix(in srgb, var(--lit) 32%, transparent);
}
.stratcard[data-theme='face'] .sc-chip[data-tone='red'] { --lit: var(--sc-red); }
.stratcard[data-theme='face'] .sc-chip[data-tone='blue'] { --lit: var(--sc-blue); }
.stratcard[data-theme='face'] .sc-chip[data-tone='amber'] { --lit: var(--sc-amber); }
.stratcard[data-theme='face'] .sc-chip[data-tone='green'] { --lit: var(--sc-green); }
.stratcard[data-theme='face'] :is(.sc-planrow, .sc-offlabel)[data-state='active'] { --lit: var(--sc-edge); }
.stratcard[data-theme='face'] :is(.sc-planrow, .sc-offlabel)[data-state='pending'] { --lit: var(--sc-blue); }
.stratcard[data-theme='face'] .sc-chip[data-tone] .sc-chipbig {
  text-shadow: 0 0 7px color-mix(in srgb, currentColor 24%, transparent), var(--emboss);
}
.stratcard[data-theme='face'] :is(.sc-chipbig, .sc-rangefig, .sc-offburn) { font-weight: 600; }
/* The learning bar: a slot cut into the well, its fill lit. */
.stratcard[data-theme='face'] .sc-learnbar {
  background: linear-gradient(180deg, #000, #1a1d28);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
/* Selection dots: small lenses once filled. */
.stratcard[data-theme='face'] :is(.sc-planrow, .sc-offlabel)[data-state] .sc-dot {
  box-shadow: inset 0 0 0 2px #0a0c12, 0 0 5px color-mix(in srgb, var(--lit) 40%, transparent);
}

/* ---- lite: a fixed 560 x 261 card with no spare height, so ONE well (its
   sections already butt together) — the face's 4 px frame replaces the 1 px
   border, and the 6 px it takes vertically comes out of the stats row (63 →
   60: 3 px of its 12 px bottom slack) and the footer (44 → 41, content
   centred). Section rules become engraved grooves. ------------------------- */
.stratcard.stratlite[data-theme='face'] {
  border: none;
  padding: 4px;
}
.stratcard.stratlite[data-theme='face'] .sl-root {
  position: relative;
  border-radius: 5px;
  background: var(--well);
  box-shadow: var(--well-sh);
  overflow: hidden;
}
.stratcard.stratlite[data-theme='face'] .sl-stats { height: 60px; }
.stratcard.stratlite[data-theme='face'] .sl-foot { height: 41px; }
/* Horizontal rules: dark line then lit line, at each section's bottom edge
   (border-box heights, so the 1 px a border took is content again). */
.stratcard.stratlite[data-theme='face'] :is(.sl-stats, .sl-stripsec, .sl-row) {
  border-bottom: none;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05), inset 0 -2px 0 rgba(0, 0, 0, 0.8);
}
/* Vertical rules inside the stats row and the footer. */
.stratcard.stratlite[data-theme='face'] :is(.sl-stat, .sl-footname, .sl-footcell) {
  border-right: none;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.05), inset -2px 0 0 rgba(0, 0, 0, 0.8);
}
.stratcard.stratlite[data-theme='face'] :is(.sl-stat, .sl-footcell):last-child { box-shadow: none; }
/* The SAVER OFF footer reads as a footer: a shade deeper, its top a groove. */
.stratcard.stratlite[data-theme='face'] .sl-foot {
  border-top: none;
  background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.8), inset 0 2px 0 rgba(255, 255, 255, 0.05);
}
/* Committed / committing rows: backlit, keeping the row's bottom groove. */
.stratcard.stratlite[data-theme='face'] :is(.sl-row[data-state='active'], .sl-row[data-state='pending'],
  .sl-foot[data-state='active'] .sl-footname, .sl-foot[data-state='pending'] .sl-footname) {
  background:
    radial-gradient(120% 140% at 50% 100%, color-mix(in srgb, var(--lit) 30%, transparent), transparent 80%),
    color-mix(in srgb, var(--lit) 10%, transparent);
}
.stratcard.stratlite[data-theme='face'] :is(.sl-row[data-state='active'], .sl-foot[data-state='active'] .sl-footname) { --lit: var(--sc-basis-max); }
.stratcard.stratlite[data-theme='face'] :is(.sl-row[data-state='pending'], .sl-foot[data-state='pending'] .sl-footname) { --lit: var(--sc-blue); }
.stratcard.stratlite[data-theme='face'] .sl-bign { font-weight: 600; }
.stratcard.stratlite[data-theme='face'] .sl-big[data-tone]:not([data-tone='dim']) {
  text-shadow: 0 0 6px color-mix(in srgb, currentColor 24%, transparent), var(--emboss);
}
.stratcard.stratlite[data-theme='face'] .sl-learnbar {
  background: linear-gradient(180deg, #000, #1a1d28);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   SMALL WIDGETS (rollout 5, Marcus 13 Oct): fuel saver table, stint timer,
   settings trainer, fuel saver lights. Each is one well on the face; the
   face's 4 px frame replaces the 1 px border.
   ========================================================================== */

/* ---- fuel saver table: 344 wide with four FIXED columns that filled its
   342 px inside exactly, so the frame's 6 px comes out of the columns
   (measured in Geist, see the numbers on the review page). ---------------- */
.fstable[data-theme='face'] {
  --fst-ground: #0a0c12;
  --fst-hair1: #1a1d28;
  --fst-hair2: #2a2f40;
  --fst-text: #eef0f8;
  --fst-text2: #dfe2ee;
  --fst-muted: #7c839f;
  --fst-dim: #5d6480;
  --fst-green: #2ee08a;
  border: none;
  padding: 4px;
  background: var(--face);
  font-family: Geist, Inter, 'Segoe UI', system-ui, sans-serif;
  text-shadow: var(--emboss);
}
.fstable[data-theme='face']::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 5px;
  background: var(--well);
  box-shadow: var(--well-sh);
  pointer-events: none;
}
.fstable[data-theme='face']::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: var(--glass);
  pointer-events: none;
}
.fstable[data-theme='face'] > * { position: relative; }
.fstable[data-theme='face'] :is(.fst-head, .fst-row) { grid-template-columns: var(--fst-cols, 89px 105px 76px 66px); }
/* The header band: a shade deeper than the well, a groove under it. */
.fstable[data-theme='face'] .fst-head {
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05), inset 0 -2px 0 rgba(0, 0, 0, 0.8);
}
.fstable[data-theme='face'] :is(.fst-row, .fst-gmh) {
  border-bottom: none;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05), inset 0 -2px 0 rgba(0, 0, 0, 0.8);
}
.fstable[data-theme='face'] .fst-row:last-of-type { box-shadow: none; }
/* The selected mode: a tint in every theme, backlit here; locked keeps its
   left bar, lit. */
.fstable[data-theme='face'] :is(.fst-row.sel, .fst-gmh.sel) {
  --lit: #c6ccef;
  background:
    radial-gradient(120% 140% at 50% 100%, color-mix(in srgb, var(--lit) 16%, transparent), transparent 78%),
    color-mix(in srgb, var(--lit) 6%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lit) 22%, transparent);
}
.fstable[data-theme='face'] :is(.fst-row.sel.locked, .fst-gmh.sel.locked) {
  box-shadow: inset 3px 0 0 var(--fst-text2), inset 0 0 0 1px color-mix(in srgb, var(--lit) 22%, transparent);
}
.fstable[data-theme='face'] .fst-row.sel .fst-rem { font-weight: 600; }
.fstable[data-theme='face'] .fst-gmh-name { font-weight: 600; }
.fstable[data-theme='face'] .fst-gmh.sel .fst-gmh-sub { text-shadow: 0 0 6px color-mix(in srgb, var(--fst-green) 30%, transparent), var(--emboss); }
.fstable[data-theme='face'] .fst-cost :is(.zero, .dear) { text-shadow: 0 0 6px color-mix(in srgb, currentColor 24%, transparent), var(--emboss); }
.fstable[data-theme='face'] .fst-calib-bar {
  background: linear-gradient(180deg, #000, #1a1d28);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ---- stint timer: it borrows the fuel matrix's tokens (and so its face
   frame); here it gets its well. A fixed 320 x 112 box: the well sits inside
   the 4 px frame and the rows keep today's 11 / 14 px content padding from
   the card edge, so every figure stays put. ------------------------------- */
.stintcard[data-theme='face'] {
  position: relative;
  padding: 11px 14px;
}
.stintcard[data-theme='face']::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 5px;
  background: var(--well);
  box-shadow: var(--well-sh);
  pointer-events: none;
}
.stintcard[data-theme='face'] > * { position: relative; }
.stintcard[data-theme='face'] .st-row + .st-row {
  border-top: none;
  background: var(--groove) top / 100% 2px no-repeat;
}

/* ---- settings trainer: one well; the lap bar a slot cut into it, the lock
   ticks lit, the lock flash backlit green (it is a glow in every theme). -- */
#w-trainer .tr-card[data-theme='face'] {
  --tr-ground: #0a0c12;
  --tr-hair: #1a1d28;
  --tr-frame: #2a2f40;
  --tr-text: #eef0f8;
  --tr-dim: #7c839f;
  --tr-green: #2ee08a;
  position: relative;
  border: none;
  padding: 12px 13px;
  background: var(--face);
  font-family: Geist, Inter, 'Segoe UI', system-ui, sans-serif;
  text-shadow: var(--emboss);
}
#w-trainer .tr-card[data-theme='face']::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 5px;
  background: var(--well);
  box-shadow: var(--well-sh);
  pointer-events: none;
}
#w-trainer .tr-card[data-theme='face'] > * { position: relative; }
#w-trainer .tr-card[data-theme='face'] .tr-bar::before {
  background: linear-gradient(180deg, #000, #1a1d28);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
#w-trainer .tr-card[data-theme='face'] .tr-log {
  border-top: none;
  background: var(--groove) top / 100% 2px no-repeat;
}
#w-trainer .tr-card[data-theme='face'].flash { animation-name: face-tr-flash; }
@keyframes face-tr-flash {
  from { box-shadow: 0 0 14px rgba(46, 224, 138, 0.22), inset 0 0 0 1px rgba(46, 224, 138, 0.45); }
  to { box-shadow: none; }
}
#w-trainer .tr-card[data-theme='face'] .flash .tr-lrow.newest,
#w-trainer .tr-card[data-theme='face'].flash .tr-lrow.newest {
  background: radial-gradient(120% 160% at 50% 100%, rgba(46, 224, 138, 0.22), transparent 78%);
}
#w-trainer .tr-card[data-theme='face'] .tr-val { font-weight: 600; }

/* ---- fuel saver lights: the dashboard's lift rail on its own, so the
   dashboard rail's lenses (same 720 px, same 16 + 16 x 18 px around a 54 px
   word). It still sits on the game with no card, as in every theme. Its box
   is 720 (the dashboard's well is 712), so the 706 px of lenses get an even
   7 px either side. ------------------------------------------------------- */
.slrail[data-theme='face'] .dash-liftrail { padding: 0 7px; }
.slrail[data-theme='face'] .lr-side { flex: none; gap: 2px; }
.slrail[data-theme='face'] .lr-led {
  --c: var(--sel-blue);
  --d: color-mix(in srgb, var(--c) 40%, #000);
  --l: color-mix(in srgb, var(--c) 45%, #fff);
  flex: none;
  width: 18px;
  height: 17px;
  border-radius: 3px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--d) 40%, transparent) 0%,
    color-mix(in srgb, var(--d) 20%, transparent) 45%, #07080c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), inset 0 -1px 2px rgba(0, 0, 0, 0.6), 0 0 0 1px #04050a;
}
.slrail[data-theme='face'] .dash-liftrail.traffic .lr-led { --c: var(--tl-green); }
.slrail[data-theme='face'] .dash-liftrail.lift .lr-led { --c: var(--red); animation-name: face-lens-blink; }
.slrail[data-theme='face'] .lr-led.lit {
  background: linear-gradient(180deg, var(--l) 0%, var(--c) 38%, var(--c) 62%, var(--d) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1.5px 2.5px rgba(0, 0, 0, 0.3),
    0 0 0 1px #04050a, 0 0 5px color-mix(in srgb, var(--c) 33%, transparent);
}
.slrail[data-theme='face'] .lr-word { width: 54px; font-family: Geist, Inter, sans-serif; }

/* ==========================================================================
   PIT WALL (rollout 7, Marcus 13 Oct). Its own page (pitwall.html loads this
   sheet for the shared material and Geist); pitwall.ts stamps the theme on
   <html>. The 1920 x 1080 stage becomes the machined face and every panel a
   well in its slot; panels KEEP their 1 px border, made transparent, so every
   panel's content stays exactly where it is. Rules inside are the house's
   hairlines in darker inks (engraved), "your" rows are backlit blue, the
   header's class selectors are raised keys.
   ========================================================================== */
:root[data-theme='face'] {
  --pw-bg: #0a0c12;
  --pw-rule: #05060a;
  --pw-frame: #2a2f40;
  --pw-sel: #141826;
  --pw-ghost: #161a24;
  --pw-text: #eef0f8;
  --pw-muted: #8a91ad;
  --pw-dim: #6a7190;
  --pw-green: #2ee08a;
  --pw-red: #ff5a5f;
  --fi: Geist, Inter, system-ui, sans-serif;
  --fc: Geist, Inter, sans-serif;
}
:root[data-theme='face'] .stage {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0) 12%),
    linear-gradient(180deg, #252a3a 0%, #171a26 45%, #0f111a 100%);
}
:root[data-theme='face'] :is(.hdr, .pnl) {
  border-color: transparent;
  background: var(--well);
  box-shadow: var(--well-sh);
}
:root[data-theme='face'] body { text-shadow: var(--emboss); }
/* dark ink on the wall's licence plates (the timing wall, its relative box): a
   light edge, not the dark emboss; the AI plate is outlined, light ink */
:root[data-theme='face'] :is(.tw-ir, .relcard.wall .rr-ir) { text-shadow: var(--emboss-light); }
:root[data-theme='face'] :is(.tw-ir, .relcard.wall .rr-ir)[data-lic='AI'] { text-shadow: var(--emboss); }

/* Type that was the condensed face. Geist is ~37 % wider at the same size,
   so (measured on the wall, 13 Oct):
   - panel titles 15 → 13 px, tracking .08 → .06em: FUEL OVERRIDE is 110.9 px
     (132 at 15 px) in a bar with 110 px beside SET / CLEAR — its bar's gaps
     give 2 px (8 → 6), so it stays on one line;
   - the track name 24 → 20 px: at 24 px Geist ran 42 % wider than Barlow, so
     a name with its layout was cut short far sooner; at 20 px it is ~17 %,
     and its 1 px descender clip is gone. */
:root[data-theme='face'] :is(.ttl, .rank) { font-size: 13px; letter-spacing: 0.06em; white-space: nowrap; }
:root[data-theme='face'] .pnl[data-slot='override'] .pt { gap: 6px; }
:root[data-theme='face'] .hd-title { font-size: 20px; letter-spacing: 0.01em; }

/* Panel title bars: an engraved groove under them. */
:root[data-theme='face'] .pt {
  border-bottom-color: #000;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}
:root[data-theme='face'] .hd-rule {
  background: #000;
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.05);
}

/* Header class selectors and the session chip: raised keys; the selected
   class key backlit (it was a tinted fill with a bright border). */
:root[data-theme='face'] .hd-chips .chip {
  border-color: transparent;
  background: var(--raised);
  box-shadow: var(--raised-sh);
}
:root[data-theme='face'] .hd-chips .chip.sel {
  --lit: #c6ccef;
  border-color: transparent;
  background:
    radial-gradient(120% 140% at 50% 100%, color-mix(in srgb, var(--lit) 20%, transparent), transparent 78%),
    linear-gradient(180deg, #1a1e2c, #10131c);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lit) 45%, transparent), 0 1px 0 #05060a;
}
:root[data-theme='face'] .hd-chip {
  border-color: transparent;
  background: var(--raised);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 0 #05060a;
}
:root[data-theme='face'] .hd-chip.empty { background: transparent; box-shadow: inset 0 0 0 1px var(--pw-frame); }

/* "Your" rows — timing wall, pit traffic band, events: backlit blue. Their
   own fill is the bottom layer of a stacked background (class bar and column
   bands above it), so the backlight rides in through --pw-sel. */
:root[data-theme='face'] :is(.tw-row.me, .ptr-band.live, .ev-row.me) {
  --pw-sel: radial-gradient(120% 160% at 50% 100%, rgba(86, 184, 255, 0.2), transparent 75%), linear-gradient(180deg, #0b1220, #0d1626);
  box-shadow: inset 0 1px 0 rgba(86, 184, 255, 0.3), inset 0 -1px 0 rgba(86, 184, 255, 0.3);
}

/* Entry controls (fuel override, planned stop): buttons are raised keys, the
   fields small slots cut into the well; SET stays solid amber. */
:root[data-theme='face'] :is(.en-btn, .en-tb) {
  border-color: transparent;
  background: var(--raised);
  box-shadow: var(--raised-sh);
}
:root[data-theme='face'] .en-btn.go { background: var(--pw-amber); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 0 #05060a; text-shadow: none; }
:root[data-theme='face'] .en-btn:disabled { background: transparent; box-shadow: inset 0 0 0 1px var(--pw-frame); }
:root[data-theme='face'] :is(.en-tb.edit, .en-tb.live) { box-shadow: var(--raised-sh), inset 0 0 0 1px currentColor; }
:root[data-theme='face'] .en-in {
  border-color: transparent;
  background: #05060a;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.05);
}
:root[data-theme='face'] :is(.en-in:focus, .en-in.edit) { box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9), inset 0 0 0 1px var(--pw-muted); }
:root[data-theme='face'] .en-in.live { box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9), inset 0 0 0 1px var(--pw-amber); }
:root[data-theme='face'] .bad .en-in { box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9), inset 0 0 0 1px var(--pw-red); }

/* The wall's relative uses the relative's own sheet (relbox.css): its inks
   and the player row follow the face here, inside the panel's well. */
:root[data-theme='face'] .relcard.wall {
  --rel-ground: #0a0c12;
  --rel-hair1: #1a1d28;
  --rel-hair2: #2a2f40;
  --rel-text: #eef0f8;
  --rel-muted: #7c839f;
  --rel-dim: #5d6480;
  --rel-pos: #2ee08a;
  --rel-red: #ff5a5f;
  background: transparent;
}
:root[data-theme='face'] .relcard.wall .rel-row.player {
  background: radial-gradient(120% 140% at 50% 100%, rgba(86, 184, 255, 0.22), transparent 75%), linear-gradient(180deg, #0b1220, #0d1626);
  box-shadow: inset 0 0 0 1px rgba(86, 184, 255, 0.3);
}
:root[data-theme='face'] .relcard.wall .rr-num {
  border: none;
  background: var(--raised);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 0 #05060a;
}

/* ---- fuel burn (Marcus 15 Oct) ----------------------------------------------
   The face's materials on the shared geometry: board, wells, glow, and the
   Geist offsets (measured: header items centred on their own ink, litres caps
   on 15, names baseline 72, burns 85 — the same lines as Inter's). */
.fbcard[data-theme='face'] {
  --fb-box: var(--well);
  --fb-box-sh: var(--well-sh);
  --fb-brk-ground: #0b0d15;
  --fb-text: #eef0f8;
  --fb-text2: #dfe2ee;
  --fb-muted: #7c839f;
  --fb-sub: #9aa1bd;
  --fb-tick: #9aa1bd;
  --fb-track: #151926;
  --fb-track-sh: inset 0 1px 2px rgba(0, 0, 0, 0.85);
  --fb-ok: #2ee08a;
  --fb-warn: #ffb020;
  --fb-short: #ff5a5f;
  --fb-neutral: #eef0f8;
  --fb-glow: 0 0 7px color-mix(in srgb, currentColor 30%, transparent), var(--emboss);
  --fb-knob-sh: 0 0 8px currentColor, inset 0 1px 0 rgba(255, 255, 255, 0.4);
  --fb-avg-sh: 0 0 6px rgba(255, 255, 255, 0.45);
  --fb-fill-glow: 0 0 8px color-mix(in srgb, currentColor 40%, transparent);
  --fb-chq-a: #fff;
  --fb-chq-b: #151926;
  --fb-lb-mt: 10.77px;
  --fb-xn-mt: 8.24px;
  --fb-vl-mt: 6.2px;
  --fb-need-top: -25.5px;
  --fb-mk-top: 24px;
  border: none;
  background: var(--face);
  font-family: Geist, Inter, 'Segoe UI', system-ui, sans-serif;
  text-shadow: var(--emboss);
}
.fbcard[data-theme='face']::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: var(--glass);
  pointer-events: none;
}

/* ---- when to pit: Geist offset (measured: seconds caps on 13) ---- */
.wpcard[data-theme='face'] { --wp-sec-top: 11.5px; }
/* The card grows (text box, + strip, + traffic): its shading is Fuel burn's,
   measured from the top in px, not stretched over whatever height it has —
   stretched, the text-box-only card's rim went dark 16 px down and its bottom
   read incomplete (Marcus 17 Oct). Below 139 px the board's own end colour. */
.wpcard[data-theme='face'] {
  background-size: 100% 1px, 100% 3px, 100% 139px;
  background-repeat: no-repeat;
  background-color: #0f111a;
}
.wpcard[data-theme='face']::after { background-size: 100% 139px; background-repeat: no-repeat; }
