/*
 * Star Stream — telemetry overlay STYLES (universal-overlay.html ?style=…)
 *
 *   style=race       Race (default in the apps): broadcast lower third
 *   style=minimal    Minimal: no boxes, big numbers at the frame edges
 *   style=holograph  Holograph: neon tick gauges with needles
 *
 * Variants (?layout=): horizontal = Full, vertical = side column
 * (?align=left|right; Race + Holograph only), compact = Small.
 *
 * Every size is in `u` = (frame width / 1920) × ?scale: the looks are drawn
 * for a 1920-wide browser source and a 1280-wide source gets the same design
 * two-thirds the size, in the same place (the classic look scales with a
 * transform instead). Shared knobs:
 *   --accent    ?accent=hex  highlight colour (gear box, edge, redline, glow)
 *   --bg-alpha  ?bg=0-100    panel / backdrop opacity (per-style default)
 *   ?logo=false              hides the Star Stream logo (shown by default)
 *   ?font=                   overrides every value + label font, as before
 *   ?color=                  overrides the value / label text colour, as before
 */

:root {
    --scale: 1;
    /* the design is drawn for 1920×1080; a window that is not 16:9 gets the
       whole design scaled to fit inside it (min of the two axes) */
    --u: calc(min(100vw / 1920, 100vh / 1080) * var(--scale));
    --accent: #E10600;
    --bg-alpha: 0;
    --grey: #9aa0a6;
    --green: #00FF00;
    --amber: #ffb300;
}

/* ---- base reset for the styled page (the classic rules stay for the classic look) ---- */
main.ov {
    display: block;
    padding: 0;
    width: auto;
    gap: 0;
    position: fixed;
    inset: 0;
    pointer-events: none;
    transform: none;
}
.ov .metric,
.ov .throttle-container,
.ov .brake-indicator,
.ov .data-display,
.ov .heart-rate-display {
    display: block;
    width: auto;
    min-width: 0;
    gap: 0;
    flex-direction: row;
    align-items: stretch;
}
/* the classic sheet sizes/colours these by class; the styles below own them */
.ov .heart-rate-display .metric-value,
.ov .data-display .metric-value { font-size: inherit; color: #fff; }
.ov .metric-value {
    font-size: inherit;
    font-weight: inherit;
    width: auto;
    line-height: 1;
    text-align: inherit;
    text-shadow: none;
    color: #fff;
    fill: currentColor;
}
.ov .metric-label {
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: uppercase;
    text-shadow: none;
    color: var(--grey);
}
.ov .throttle-bar-wrapper, .ov .rpm-bar-wrapper {
    width: auto; height: auto; background: none; border: 0; border-radius: 0; margin: 0; overflow: visible;
}
.ov .throttle-bar {
    height: 100%; width: 0; background: var(--green); border-radius: 0; transition: width .08s linear;
}
.ov .throttle-bar.high, .ov .throttle-bar.full { background: var(--green); }
.ov .brake-light {
    width: 0; height: 100%; border-radius: 0; border: 0; background: var(--accent); box-shadow: none; transition: width .08s linear;
}
.ov .brake-light.active { background: var(--accent); border: 0; box-shadow: 0 0 calc(10 * var(--u)) var(--accent); }
.ov .heart-icon {
    display: inline-block; color: var(--accent); animation: heartbeat 1s ease-in-out infinite;
}
.ov .slot { display: contents; }
/* Blocks never move with the numbers: tabular digits, a fixed digit budget
   before the unit, and labels that clip instead of widening their block. */
.ov .metric-value, .ov .ov-num { font-variant-numeric: tabular-nums; }
.ov .vrow .metric-value { display: inline-block; min-width: 3ch; text-align: right; }
.ov .metric-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ov .ov-logo img { display: block; }
.ov .ov-unit { color: var(--grey); font-weight: 700; }
.ov-h .only-v, .ov-c .only-v { display: none !important; }

/* =====================================================================
 * RACE — broadcast lower third
 * ===================================================================== */
.ov-race { font-family: 'Montserrat', 'Inter', sans-serif; color: #fff; }
.ov-race .metric-value { font-family: 'Montserrat', 'Inter', sans-serif; font-weight: 900; }
.ov-race .metric-label { font-family: 'Montserrat', 'Inter', sans-serif; font-weight: 700; letter-spacing: .18em; }

.race-bar {
    position: absolute;
    display: flex;
    align-items: center;
    background: rgba(8, 8, 10, var(--bg-alpha));
}
.race-edge { flex: none; background: var(--accent); align-self: stretch; }
.race-logo { flex: none; display: flex; align-items: center; justify-content: center; background: #000; }
.race-cells { display: flex; align-items: center; min-width: 0; }
.race-bar .cell {
    flex: none;
    display: flex; flex-direction: column; justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, .14);
}
.race-bar .cell .metric-label { margin-top: calc(6 * var(--u)); font-size: calc(16 * var(--u)); }
.race-bar .cell .vrow { display: flex; align-items: baseline; }
.race-bar .cell .ov-unit { margin-left: calc(8 * var(--u)); font-size: calc(18 * var(--u)); }
.race-bar .cell-speed .metric-value { font-size: calc(92 * var(--u)); letter-spacing: -.02em; }
.race-bar .cell-speed .ov-unit { font-size: calc(22 * var(--u)); }
.race-bar .cell-gear { align-items: center; }
.race-bar .cell-gear .gear-box {
    display: flex; align-items: center; justify-content: center;
    background: var(--accent); border-radius: calc(6 * var(--u));
    width: calc(78 * var(--u)); height: calc(78 * var(--u));
}
.race-bar .cell-gear .metric-value { font-size: calc(58 * var(--u)); }
.race-bar .cell-rpm { min-width: calc(430 * var(--u)); }
.race-bar .cell-rpm .top { display: flex; justify-content: space-between; align-items: baseline; }
.race-bar .cell-rpm .top .metric-label { margin: 0; }
.race-bar .cell-rpm .metric-value { font-size: calc(46 * var(--u)); font-weight: 800; }
.race-bar .segs { display: flex; gap: calc(4 * var(--u)); margin-top: calc(10 * var(--u)); }
.race-bar .segs i { flex: 1; height: calc(22 * var(--u)); background: rgba(255, 255, 255, .14); border-radius: calc(2 * var(--u)); }
.race-bar .segs i.on { background: var(--green); }
.race-bar .segs i.on.mid { background: var(--amber); }
.race-bar .segs i.on.hi { background: var(--accent); }
.ov .race-bar .cell-small .metric-value { font-size: calc(40 * var(--u)); font-weight: 800; }
.race-bar .cell-small .ov-unit { font-size: calc(16 * var(--u)); margin-left: calc(4 * var(--u)); }
.race-bar .track {
    width: calc(110 * var(--u)); height: calc(10 * var(--u)); margin-top: calc(8 * var(--u));
    background: rgba(255, 255, 255, .14); border-radius: calc(5 * var(--u)); overflow: hidden;
}
.race-bar .heart-icon { font-size: calc(30 * var(--u)); margin-right: calc(6 * var(--u)); }
/* throttle / brake: bars only. Full + Small stand the bar up (the track is
   rotated, so the page's width-fill still drives it); Vertical lays it flat. */
.race-bar .cell-pedal { align-items: center; }
.race-bar .cell-pedal .metric-label { font-size: calc(13 * var(--u)); }
.race-bar .vtrack { position: relative; }
.ov-race.ov-h .cell-pedal, .ov-race.ov-c .cell-pedal { justify-content: flex-end; }
.ov-race.ov-h .vtrack { width: calc(22 * var(--u)); height: calc(90 * var(--u)); }
.ov-race.ov-h .vtrack .track, .ov-race.ov-c .vtrack .track {
    position: absolute; left: 50%; top: 50%; margin: 0;
    transform: translate(-50%, -50%) rotate(-90deg);
}
.ov-race.ov-h .vtrack .track { width: calc(90 * var(--u)); height: calc(22 * var(--u)); }
.ov-race.ov-c .vtrack { width: calc(16 * var(--u)); height: calc(60 * var(--u)); }
.ov-race.ov-c .vtrack .track { width: calc(60 * var(--u)); height: calc(16 * var(--u)); }
.ov-race.ov-v .vtrack { width: 100%; }

.race-bar .cell-rpm .metric-value { min-width: 4ch; }
.race-bar .cell-speed { align-items: center; text-align: center; }   /* MPH centred under the number */
.race-bar .cell-gear .metric-value { min-width: 0; }

/* Full: bar across the bottom of the frame */
.ov-race.ov-h .race-bar { left: 0; right: 0; bottom: 0; height: calc(150 * var(--u)); }
.ov-race.ov-h .cell-speed { width: calc(260 * var(--u)); }
.ov-race.ov-h .cell-gear { width: calc(150 * var(--u)); }
.ov-race.ov-h .cell-rpm { width: calc(430 * var(--u)); min-width: 0; }
.ov-race.ov-h .cell-small { width: calc(200 * var(--u)); }
.ov-race.ov-h .cell.cell-pedal { width: calc(120 * var(--u)); padding: 0 calc(10 * var(--u)); }
.ov-race.ov-h .cell-pedal .metric-label { font-size: calc(12 * var(--u)); letter-spacing: .12em; }
.ov-race.ov-h .race-hr { width: calc(250 * var(--u)); }
.ov-race.ov-h .race-edge { width: calc(14 * var(--u)); }
.ov-race.ov-h .race-logo { width: calc(150 * var(--u)); height: calc(150 * var(--u)); }
.ov-race.ov-h .race-logo img { width: calc(84 * var(--u)); }
.ov-race.ov-h .race-cells { height: calc(150 * var(--u)); flex-wrap: nowrap; overflow: hidden; }
.ov-race.ov-h .cell { padding: 0 calc(34 * var(--u)); height: auto; }
.ov-race.ov-h .cell-gear { padding: 0 calc(28 * var(--u)); }

/* Small: a short bar in the bottom-left corner */
.ov-race.ov-c .race-bar { left: 0; bottom: 0; height: calc(96 * var(--u)); }
.ov-race.ov-c .cell-speed { width: calc(170 * var(--u)); }
.ov-race.ov-c .cell-gear { width: calc(96 * var(--u)); }
.ov-race.ov-c .cell-rpm { width: calc(250 * var(--u)); min-width: 0; }
.ov-race.ov-c .cell-small { width: calc(130 * var(--u)); }
.ov-race.ov-c .cell.cell-pedal { width: calc(84 * var(--u)); padding: 0 calc(6 * var(--u)); }
.ov-race.ov-c .cell-pedal .metric-label { font-size: calc(9 * var(--u)); letter-spacing: .1em; }
.ov-race.ov-c .race-hr { width: calc(160 * var(--u)); }
.ov-race.ov-c .race-edge { width: calc(10 * var(--u)); }
.ov-race.ov-c .race-logo { width: calc(96 * var(--u)); height: calc(96 * var(--u)); }
.ov-race.ov-c .race-logo img { width: calc(54 * var(--u)); }
.ov-race.ov-c .cell { padding: 0 calc(20 * var(--u)); height: auto; }
.ov-race.ov-c .cell .metric-label { font-size: calc(11 * var(--u)); margin-top: calc(4 * var(--u)); }
.ov-race.ov-c .cell-speed .metric-value { font-size: calc(56 * var(--u)); }
.ov-race.ov-c .cell-speed .ov-unit { font-size: calc(14 * var(--u)); }
.ov-race.ov-c .cell-gear .gear-box { width: calc(50 * var(--u)); height: calc(50 * var(--u)); }
.ov-race.ov-c .cell-gear .metric-value { font-size: calc(36 * var(--u)); }
.ov-race.ov-c .cell-rpm { min-width: calc(250 * var(--u)); }
.ov-race.ov-c .cell-rpm .metric-value { font-size: calc(30 * var(--u)); }
.ov-race.ov-c .segs { gap: calc(3 * var(--u)); margin-top: calc(6 * var(--u)); }
.ov-race.ov-c .segs i { height: calc(12 * var(--u)); }
.ov-race.ov-c .cell-small .metric-value { font-size: calc(26 * var(--u)); }
.ov-race.ov-c .cell-small .ov-unit { font-size: calc(12 * var(--u)); }
.ov-race.ov-c .track { width: calc(80 * var(--u)); height: calc(7 * var(--u)); margin-top: calc(5 * var(--u)); }
.ov-race.ov-c .heart-icon { font-size: calc(20 * var(--u)); }

/* Vertical: a tight, centred column down the left or right edge (George,
   2026-10-02: stacked and contained, not wide — smaller elements are fine) */
.ov-race.ov-v .race-bar {
    top: 0; bottom: 0; width: calc(150 * var(--u));
    flex-direction: column; align-items: stretch;
}
.ov-race.ov-v.align-left .race-bar { left: 0; border-left: calc(10 * var(--u)) solid var(--accent); }
.ov-race.ov-v.align-right .race-bar { right: 0; border-right: calc(10 * var(--u)) solid var(--accent); }
.ov-race.ov-v .race-edge { display: none; }
.ov-race.ov-v .race-logo { height: calc(84 * var(--u)); }
.ov-race.ov-v .race-logo img { width: calc(48 * var(--u)); }
.ov-race.ov-v .race-cells { flex-direction: column; align-items: stretch; overflow: hidden; }
.ov-race.ov-v .cell {
    width: 100%; height: auto;
    border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14);
    padding: calc(9 * var(--u)) calc(10 * var(--u));
    align-items: center; text-align: center;
}
.ov-race.ov-v .cell .vrow { justify-content: center; }
.ov-race.ov-v .cell .metric-label { font-size: calc(10 * var(--u)); margin-top: calc(4 * var(--u)); letter-spacing: .12em; }
.ov-race.ov-v .cell .ov-unit { font-size: calc(11 * var(--u)); margin-left: calc(4 * var(--u)); }
.ov-race.ov-v .cell-speed .metric-value { font-size: calc(42 * var(--u)); }
.ov-race.ov-v .cell-gear .gear-box { width: calc(44 * var(--u)); height: calc(44 * var(--u)); }
.ov-race.ov-v .cell-gear .metric-value { font-size: calc(32 * var(--u)); }
.ov-race.ov-v .cell-rpm { min-width: 0; }
/* RPM stacked like the other cells: value, "RPM" under it, then the segments */
.ov-race.ov-v .cell-rpm .top { flex-direction: column; align-items: center; justify-content: center; gap: 0; }
.ov-race.ov-v .cell-rpm .top .metric-label { margin-top: calc(4 * var(--u)); }
.ov-race.ov-v .cell-rpm .metric-value { font-size: calc(26 * var(--u)); min-width: 0; }
.ov-race.ov-v .segs { gap: calc(2 * var(--u)); margin-top: calc(6 * var(--u)); width: 100%; }
.ov-race.ov-v .segs i { height: calc(8 * var(--u)); border-radius: 1px; }
.ov-race.ov-v .cell-small .metric-value { font-size: calc(22 * var(--u)); }
.ov-race.ov-v .cell-small .ov-unit { font-size: calc(10 * var(--u)); margin-left: calc(4 * var(--u)); }
.ov-race.ov-v .track { width: 100%; height: calc(8 * var(--u)); margin-top: calc(6 * var(--u)); }
.ov-race.ov-v .heart-icon { font-size: calc(16 * var(--u)); margin-right: calc(4 * var(--u)); }

/* =====================================================================
 * MINIMAL — no boxes, big numbers at the edges
 * ===================================================================== */
.ov-minimal { font-family: 'Montserrat', 'Inter', sans-serif; color: #fff; }
.ov-minimal .metric-value,
.ov-minimal .metric-label,
.ov-minimal .ov-unit,
.ov-minimal .ov-num { text-shadow: 0 calc(2 * var(--u)) calc(14 * var(--u)) rgba(0, 0, 0, .75), 0 0 calc(2 * var(--u)) rgba(0, 0, 0, .9); }
.ov-minimal .metric-value { font-family: 'Montserrat', 'Inter', sans-serif; font-weight: 300; }
.ov-minimal .metric-label { font-family: 'Montserrat', 'Inter', sans-serif; font-weight: 700; letter-spacing: .24em; color: rgba(255, 255, 255, .72); }
.ov-minimal .ov-unit { color: rgba(255, 255, 255, .72); letter-spacing: .2em; }
.ov-minimal.ov-h, .ov-minimal.ov-c { background: rgba(0, 0, 0, var(--bg-alpha)); }
.ov-minimal .ov-logo { display: flex; align-items: center; justify-content: center; }

.min-speed .vrow { display: flex; align-items: baseline; }
.min-speed .metric-value { font-size: calc(190 * var(--u)); line-height: .85; letter-spacing: -.04em; }
.min-speed .ov-unit { font-size: calc(30 * var(--u)); font-weight: 700; margin-left: calc(18 * var(--u)); }
.min-speed .metric-label { display: block; font-size: calc(24 * var(--u)); letter-spacing: .3em; margin-top: calc(10 * var(--u)); }
.min-gear { text-align: center; }
.min-gear .metric-value { font-size: calc(190 * var(--u)); line-height: .85; }
.min-gear .metric-label { font-size: calc(22 * var(--u)); letter-spacing: .3em; margin-top: calc(10 * var(--u)); }
.min-rpm .vrow { display: flex; align-items: baseline; }
.min-rpm .metric-value { font-size: calc(30 * var(--u)); font-weight: 700; letter-spacing: .1em; min-width: 4ch; }
.min-rpm .ov-unit { font-size: calc(20 * var(--u)); margin-left: calc(8 * var(--u)); }
.min-rpm .metric-label { display: none; }
.ov-minimal .rpmline { position: absolute; left: 0; right: 0; bottom: 0; height: calc(12 * var(--u)); background: rgba(255, 255, 255, .18); margin: 0; }
.rpmline .fill { height: 100%; width: 0; background: linear-gradient(90deg, #fff 0 70%, var(--amber) 85%, var(--accent)); transition: width .08s linear; }
.rpmline .tick { position: absolute; top: calc(-14 * var(--u)); width: calc(3 * var(--u)); height: calc(40 * var(--u)); background: var(--accent); left: 90%; opacity: .9; }
.min-pedal { width: calc(260 * var(--u)); }
.min-pedal .l { display: flex; justify-content: space-between; margin-bottom: calc(10 * var(--u)); }
.min-pedal .metric-label { font-size: calc(18 * var(--u)); }
.min-pedal .ov-num { font-size: calc(18 * var(--u)); font-weight: 700; letter-spacing: .1em; }
.min-pedal .track { height: calc(7 * var(--u)); background: rgba(255, 255, 255, .22); border-radius: calc(4 * var(--u)); overflow: hidden; }
.ov-minimal .throttle-bar { background: #fff; }
.ov-minimal .throttle-bar.high, .ov-minimal .throttle-bar.full { background: #fff; }
.ov-minimal .min-hr { display: flex; flex-direction: row; align-items: center; gap: calc(14 * var(--u)); }
.min-hr .heart-icon { font-size: calc(40 * var(--u)); }
.ov .min-hr .metric-value { font-size: calc(58 * var(--u)); font-weight: 700; }
.min-hr .metric-label { font-size: calc(18 * var(--u)); letter-spacing: .2em; }
.min-data { font-size: calc(22 * var(--u)); font-weight: 500; color: rgba(255, 255, 255, .72); line-height: 1.6; }
.min-data .metric-label { font-size: calc(22 * var(--u)); letter-spacing: .08em; font-weight: 500; color: rgba(255, 255, 255, .72); }
.ov .min-data .metric-value { display: inline-block; min-width: 3ch; text-align: right; font-size: calc(22 * var(--u)); font-weight: 700; }
.min-data .ov-unit { font-size: calc(18 * var(--u)); letter-spacing: 0; margin-left: calc(4 * var(--u)); }

/* speed + RPM share one left edge: digits grow to the right, the unit sits
   after the digit budget; the RPM line runs along the whole bottom edge */
.ov-minimal .vrow .metric-value { text-align: left; }

/* Full: corners of the frame */
.ov-minimal.ov-h .min-logo { position: absolute; top: calc(70 * var(--u)); left: calc(72 * var(--u)); width: calc(72 * var(--u)); height: calc(72 * var(--u)); }
.ov-minimal.ov-h .min-logo img { width: calc(48 * var(--u)); }
.ov-minimal.ov-h .min-topleft { position: absolute; top: calc(70 * var(--u)); left: calc(72 * var(--u)); display: flex; flex-direction: column; gap: calc(22 * var(--u)); }
.ov-minimal.ov-h.has-logo .min-topleft { left: calc(170 * var(--u)); }
.ov-minimal.ov-h .min-top { display: flex; gap: calc(70 * var(--u)); }
.ov-minimal.ov-h .min-topdata { display: flex; flex-wrap: wrap; gap: calc(12 * var(--u)) calc(40 * var(--u)); max-width: calc(600 * var(--u)); }
.ov-minimal.ov-h .min-tr { position: absolute; top: calc(70 * var(--u)); right: calc(88 * var(--u)); display: flex; flex-direction: column; align-items: flex-end; gap: calc(16 * var(--u)); }
.ov-minimal.ov-h .min-speed { position: absolute; left: calc(72 * var(--u)); bottom: calc(120 * var(--u)); }
.ov-minimal.ov-h .min-gear { position: absolute; right: calc(88 * var(--u)); bottom: calc(124 * var(--u)); }
.ov-minimal.ov-h .min-rpm { position: absolute; left: calc(72 * var(--u)); bottom: calc(70 * var(--u)); }
.ov-minimal.ov-h .rpmline { position: fixed; left: 0; right: 0; bottom: 0; }

/* Small: one fixed-width cluster in the bottom-left corner */
.ov-minimal.ov-c .min-cluster { position: absolute; left: calc(40 * var(--u)); bottom: calc(40 * var(--u)); width: calc(440 * var(--u)); display: flex; flex-direction: column; gap: calc(14 * var(--u)); }
/* Small: the gear sits level with the top of the speed number, in a smaller
   size, so its GEAR label lines up with MPH (George, 2026-10-02) */
.ov-minimal.ov-c .min-row { display: flex; align-items: flex-start; gap: calc(28 * var(--u)); }
.ov-minimal.ov-c .min-gear { width: calc(90 * var(--u)); text-align: left; }
.ov-minimal.ov-c .min-gear .metric-value { font-size: calc(72 * var(--u)); line-height: .85; }
.ov-minimal.ov-c .min-gear .metric-label { font-size: calc(14 * var(--u)); margin-top: calc(6 * var(--u)); }
.ov-minimal.ov-c .min-logo { width: calc(56 * var(--u)); height: calc(56 * var(--u)); align-self: center; }
.ov-minimal.ov-c .min-logo img { width: calc(36 * var(--u)); }
.ov-minimal.ov-c .min-speed .metric-value { font-size: calc(110 * var(--u)); }
.ov-minimal.ov-c .min-speed .metric-label { font-size: calc(14 * var(--u)); margin-top: calc(6 * var(--u)); }

/* RPM (left) and the other signals (right) share one row; the RPM line runs
   under the whole row */
.ov-minimal.ov-c .min-rpmrow { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: calc(20 * var(--u)); padding-bottom: calc(14 * var(--u)); }
.ov-minimal.ov-c .min-datarow { display: flex; align-items: flex-end; gap: calc(20 * var(--u)); flex-wrap: wrap; justify-content: flex-end; }
.ov-minimal.ov-c .min-rpm .metric-value { font-size: calc(22 * var(--u)); }
.ov-minimal.ov-c .min-rpm .ov-unit { font-size: calc(14 * var(--u)); }
.ov-minimal.ov-c .rpmline { position: absolute; left: 0; right: 0; bottom: 0; height: calc(8 * var(--u)); width: auto; }
.ov-minimal.ov-c .rpmline .tick { top: calc(-6 * var(--u)); height: calc(20 * var(--u)); width: calc(2 * var(--u)); }
.ov-minimal.ov-c .min-row2 { display: flex; align-items: center; gap: calc(28 * var(--u)); }
.ov-minimal.ov-c .min-row2 .slot { display: block; flex: 1; }
.ov-minimal.ov-c .min-pedal { width: 100%; }
.ov-minimal.ov-c .min-row3 { display: flex; align-items: center; gap: calc(28 * var(--u)); }
.ov-minimal.ov-c .min-pedal .metric-label, .ov-minimal.ov-c .min-pedal .ov-num { font-size: calc(12 * var(--u)); }
.ov-minimal.ov-c .min-pedal .l { margin-bottom: calc(5 * var(--u)); }
.ov-minimal.ov-c .min-pedal .track { height: calc(5 * var(--u)); }
.ov-minimal.ov-c .min-hr .heart-icon { font-size: calc(22 * var(--u)); }
.ov.ov-minimal.ov-c .min-hr .metric-value { font-size: calc(30 * var(--u)); }
.ov-minimal.ov-c .min-hr .metric-label { font-size: calc(11 * var(--u)); }
.ov-minimal.ov-c .min-data, .ov-minimal.ov-c .min-data .metric-label, .ov.ov-minimal.ov-c .min-data .metric-value { font-size: calc(16 * var(--u)); }
.ov-minimal.ov-c .min-data .ov-unit { font-size: calc(12 * var(--u)); }

/* =====================================================================
 * HOLOGRAPH — neon tick gauges with needles
 * ===================================================================== */
.ov-holo {
    --dim: color-mix(in srgb, var(--accent) 28%, transparent);
    --glow: drop-shadow(0 0 calc(6 * var(--u)) color-mix(in srgb, var(--accent) 90%, transparent))
            drop-shadow(0 0 calc(18 * var(--u)) color-mix(in srgb, var(--accent) 45%, transparent));
    font-family: 'Share Tech Mono', 'Orbitron', monospace;
    color: #eaffff;
}
.ov-holo.ov-h, .ov-holo.ov-c, .ov-holo.ov-v { background: rgba(0, 0, 0, var(--bg-alpha)); }
.ov-holo .metric-value { font-family: 'Orbitron', 'Share Tech Mono', monospace; font-weight: 900; }
.ov-holo .metric-label { font-family: 'Share Tech Mono', 'Orbitron', monospace; font-weight: 400; letter-spacing: .3em; color: var(--accent); opacity: .85; }
.ov-holo .ov-unit { font-family: 'Share Tech Mono', monospace; color: var(--accent); letter-spacing: .3em; font-weight: 400; }
.ov-holo svg { overflow: visible; display: block; }
.ov-holo .g { filter: var(--glow); }
/* the logo: a small badge on the speed gauge's face, under the top number */
.ov-holo .holo-speed .holo-logo { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); width: 7%; }
.ov-holo .holo-logo img { display: block; width: 100%; }

/* gauges: the svg is drawn in a 520×330 (rpm) / 700×430 (speed) box */
.holo-gauge { position: relative; }
.holo-gauge svg { width: 100%; height: auto; }
.holo-gauge .gauge-arc { fill: none; stroke: var(--dim); }
.holo-gauge .gauge-tick { stroke: var(--accent); }
.holo-gauge .gauge-tick.red { stroke: #ff2d3d; }
.holo-gauge .gauge-num { fill: #fff; font-family: 'Orbitron', monospace; font-weight: 700; }
.holo-gauge .gauge-needle { fill: #ff2d3d; }
.holo-gauge .gauge-hub { fill: #0b1420; stroke: var(--accent); }
.holo-gauge .metric-value { fill: currentColor; color: #fff; }
.holo-gauge .metric-label { fill: currentColor; color: var(--accent); }
.holo-gauge .gauge-bracket { fill: none; stroke: var(--accent); }

/* gear: plain text, bigger than the other data items */
.ov .holo-gear .metric-value { font-size: calc(64 * var(--u)); min-width: 0; }
.ov .holo-gear .metric-label { font-size: calc(16 * var(--u)); }

/* pedal bars (segmented) */
.holo-pedals { display: flex; flex-direction: column; gap: calc(14 * var(--u)); }
.holo-pedal .l { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: calc(6 * var(--u)); }
.holo-pedal .metric-label { font-size: calc(13 * var(--u)); }
.holo-pedal .ov-num { font-family: 'Orbitron', monospace; font-weight: 700; font-size: calc(16 * var(--u)); color: #fff; }
.holo-pedal .track {
    width: calc(220 * var(--u)); height: calc(14 * var(--u)); background: var(--dim);
    -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(8 * var(--u)), transparent calc(8 * var(--u)) calc(11 * var(--u)));
    mask: repeating-linear-gradient(90deg, #000 0 calc(8 * var(--u)), transparent calc(8 * var(--u)) calc(11 * var(--u)));
}
.ov-holo .throttle-bar { background: var(--accent); }
.ov-holo .throttle-bar.high, .ov-holo .throttle-bar.full { background: var(--accent); }
.ov-holo .brake-light, .ov-holo .brake-light.active { background: #ff2d3d; box-shadow: none; }

/* every other signal: plain text items */
.holo-panel { position: relative; }
.holo-panel .panel-items { display: flex; gap: calc(40 * var(--u)); align-items: flex-end; justify-content: center; flex-wrap: wrap; }
.holo-data { text-align: center; width: calc(170 * var(--u)); flex: none; }
.holo-data .vrow { display: flex; align-items: baseline; justify-content: center; }
.ov .holo-data .metric-value { font-size: calc(40 * var(--u)); }
.holo-data .ov-unit { font-size: calc(18 * var(--u)); margin-left: calc(6 * var(--u)); }
.holo-data .metric-label { font-size: calc(16 * var(--u)); margin-top: calc(8 * var(--u)); display: block; }

/* heart-rate rings */
.holo-rings { display: flex; flex-direction: column; gap: calc(14 * var(--u)); }
.holo-ring { position: relative; width: calc(96 * var(--u)); height: calc(96 * var(--u)); }
.holo-ring svg { width: 100%; height: 100%; }
.holo-ring .ring-bg { fill: none; stroke: var(--dim); stroke-width: 5; }
.holo-ring .ring-fill { fill: none; stroke: #ff2d3d; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 264; stroke-dashoffset: 264; transition: stroke-dashoffset .2s linear; }
.holo-ring .t { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ov .holo-ring .metric-value { font-size: calc(28 * var(--u)); line-height: 1; }
.holo-ring .metric-label { font-size: calc(11 * var(--u)); letter-spacing: .2em; margin-top: calc(2 * var(--u)); }
.holo-ring .heart-icon { display: none; }

/* Full: the bottom third of the frame */
/* left→right on a 1920 frame: pedals 40–240 · rpm 250–710 · speed 640–1280 ·
   panel 1330–1770 · rings 1794–1890 — no two blocks share x once the arcs
   (not the svg boxes) are what you see */
.ov-holo.ov-h .holo-left {
    position: absolute; left: calc(40 * var(--u)); bottom: calc(160 * var(--u)); width: calc(200 * var(--u));
    display: flex; flex-direction: column; align-items: flex-start; gap: calc(22 * var(--u));
}
.ov-holo.ov-h .holo-rings { flex-direction: row; gap: calc(16 * var(--u)); }
.ov-holo.ov-h .holo-ring { width: calc(84 * var(--u)); height: calc(84 * var(--u)); }
.ov.ov-holo.ov-h .holo-ring .metric-value { font-size: calc(24 * var(--u)); }
.ov-holo.ov-h .holo-ring .metric-label { font-size: calc(10 * var(--u)); }
.ov-holo.ov-h .holo-panel { width: 100%; }
.ov-holo.ov-h .holo-panel .panel-items { justify-content: flex-start; gap: calc(16 * var(--u)) calc(28 * var(--u)); }
.ov-holo.ov-h .holo-data { width: auto; text-align: left; }
.ov-holo.ov-h .holo-data .vrow { justify-content: flex-start; }
.ov.ov-holo.ov-h .holo-data .metric-value { font-size: calc(34 * var(--u)); min-width: 0; }
.ov-holo.ov-h .holo-data .ov-unit { font-size: calc(14 * var(--u)); }
.ov-holo.ov-h .holo-data .metric-label { font-size: calc(12 * var(--u)); margin-top: calc(4 * var(--u)); }
.ov-holo.ov-h .holo-pedal .track { width: calc(200 * var(--u)); }
.ov-holo.ov-h .holo-rpm { position: absolute; left: calc(250 * var(--u)); bottom: calc(140 * var(--u)); width: calc(460 * var(--u)); }
.ov-holo.ov-h .holo-speed { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(120 * var(--u)); width: calc(640 * var(--u)); }
/* gear centred in the gap between the RPM arc (ends ~630) and the speed arc (starts ~750) */
.ov-holo.ov-h .holo-gear { position: absolute; left: calc(676 * var(--u)); transform: translateX(-50%); bottom: calc(300 * var(--u)); }

/* Vertical: a column down the left or right edge */
.ov-holo.ov-v .holo-col {
    position: absolute; top: calc(40 * var(--u)); bottom: calc(40 * var(--u)); width: calc(336 * var(--u));
    display: flex; flex-direction: column; align-items: center; gap: calc(16 * var(--u));
}
.ov-holo.ov-v.align-left .holo-col { left: calc(40 * var(--u)); }
.ov-holo.ov-v.align-right .holo-col { right: calc(40 * var(--u)); }
.ov-holo.ov-v .holo-speed { width: calc(336 * var(--u)); }
.ov-holo.ov-v .holo-rpm { width: calc(272 * var(--u)); }
.ov-holo.ov-v .holo-gear { width: auto; }
/* throttle over brake, one column (George, 2026-10-02) */
.ov-holo.ov-v .holo-pedals { flex-direction: column; gap: calc(10 * var(--u)); }
.ov-holo.ov-v .holo-pedal .track { width: calc(240 * var(--u)); }
.ov-holo.ov-v .holo-panel { width: calc(336 * var(--u)); }
.ov-holo.ov-v .holo-rings { flex-direction: row; }

/* Small: the two gauges on top, everything else in one spaced row underneath
   (George, 2026-10-02) */
.ov-holo.ov-c .holo-cluster {
    position: absolute; left: calc(40 * var(--u)); bottom: calc(40 * var(--u)); width: auto;
    display: inline-flex; flex-direction: column; gap: calc(12 * var(--u)); align-items: center;
}
/* gauges pulled in towards each other, the gear in the gap */
.ov-holo.ov-c .holo-row-gauges { display: flex; align-items: flex-end; justify-content: center; gap: calc(8 * var(--u)); }
.ov-holo.ov-c .holo-speed { width: calc(300 * var(--u)); }
.ov-holo.ov-c .holo-rpm { width: calc(240 * var(--u)); }
/* the data row: gear · heart rates · other signals · bars, evenly spaced, bottoms aligned */
/* the data row: compact and centred under the gauges */
.ov-holo.ov-c .holo-row-data { display: flex; align-items: flex-end; justify-content: center; gap: calc(36 * var(--u)); padding: 0; }
.ov-holo.ov-c .holo-gear { width: auto; align-self: center; margin: 0 calc(8 * var(--u)) calc(20 * var(--u)); }
.ov.ov-holo.ov-c .holo-gear .metric-value { font-size: calc(44 * var(--u)); }
.ov-holo.ov-c .holo-gear .metric-label { font-size: calc(12 * var(--u)); }
.ov-holo.ov-c .holo-rings { flex-direction: row; gap: calc(12 * var(--u)); }
.ov-holo.ov-c .holo-ring { width: calc(66 * var(--u)); height: calc(66 * var(--u)); }
.ov.ov-holo.ov-c .holo-ring .metric-value { font-size: calc(19 * var(--u)); }
.ov-holo.ov-c .holo-ring .metric-label { font-size: calc(8 * var(--u)); }
.ov-holo.ov-c .holo-panel { width: auto; }
.ov-holo.ov-c .holo-panel .panel-items { gap: calc(20 * var(--u)); justify-content: flex-start; align-items: flex-end; }
.ov-holo.ov-c .holo-data { width: auto; }
.ov.ov-holo.ov-c .holo-data .metric-value { font-size: calc(28 * var(--u)); min-width: 0; }
.ov-holo.ov-c .holo-data .ov-unit { font-size: calc(12 * var(--u)); }
.ov-holo.ov-c .holo-data .metric-label { font-size: calc(11 * var(--u)); margin-top: calc(5 * var(--u)); }
.ov-holo.ov-c .holo-pedals { flex-direction: column; gap: calc(8 * var(--u)); }
.ov-holo.ov-c .holo-pedal .l { margin-bottom: calc(3 * var(--u)); }
.ov-holo.ov-c .holo-pedal .metric-label { font-size: calc(10 * var(--u)); }
.ov-holo.ov-c .holo-pedal .track { width: calc(130 * var(--u)); height: calc(9 * var(--u)); }

/* =====================================================================
 * CLUSTER — chrome-bezel tach dial, speed in the hub, gear window
 * (George's "option 4B", 2026-10-02)
 * ===================================================================== */
.ov-cluster { font-family: 'Montserrat', 'Inter', sans-serif; color: #fff; }
.ov-cluster .metric-value { font-family: 'Montserrat', 'Inter', sans-serif; font-weight: 900; }
.ov-cluster .metric-label { font-family: 'Montserrat', 'Inter', sans-serif; font-weight: 700; letter-spacing: .2em; font-size: calc(11 * var(--u)); color: var(--grey); margin-top: calc(6 * var(--u)); text-align: center; }
.cl-band { position: absolute; background: rgba(0, 0, 0, var(--bg-alpha)); }
.cl-dial-wrap { position: relative; }
.cl-dial svg { width: 100%; height: auto; display: block; overflow: visible; }
.cl-dial .dial-red { fill: none; stroke: var(--accent); }
.cl-dial .dial-needle { fill: var(--accent); filter: drop-shadow(0 0 calc(4 * var(--u)) color-mix(in srgb, var(--accent) 80%, transparent)); }
.cl-dial .dial-num { fill: #fff; font-family: 'Montserrat', sans-serif; font-weight: 800; }
.cl-dial .dial-rpm { display: none; }
/* speed in the hub, gear in a window set into the dial's bottom */
.cl-speed { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -46%); text-align: center; }
.cl-speed .metric-value { font-size: calc(64 * var(--u)); line-height: 1; min-width: 0; }
.cl-speed .metric-label { margin-top: calc(2 * var(--u)); }
.ov .cl-gear {
    position: absolute; left: 50%; top: 72%; transform: translateX(-50%);
    width: calc(96 * var(--u)); height: calc(96 * var(--u)); border-radius: calc(14 * var(--u));
    border: calc(4 * var(--u)) solid #fff; box-shadow: 0 0 0 calc(3 * var(--u)) #000, 0 0 0 calc(6 * var(--u)) #666;
    background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ov .cl-gear .metric-value { font-size: calc(42 * var(--u)); line-height: 1; width: 100%; min-width: 0; text-align: center; }
.ov .cl-gear .metric-label { font-size: calc(9 * var(--u)); margin-top: calc(4 * var(--u)); width: 100%; text-align: center; }
/* tube gauges: a rotated track so the page's width fill still drives them */
.cl-tubes, .cl-right { display: flex; align-items: flex-end; gap: calc(22 * var(--u)); }
.ov .cl-tube { display: flex; flex-direction: column; align-items: center; }   /* label centred under the tube */
.cl-tube .vtrack { position: relative; width: calc(28 * var(--u)); height: calc(170 * var(--u)); }
.cl-tube .vtrack .track {
    position: absolute; left: 50%; top: 50%; width: calc(170 * var(--u)); height: calc(28 * var(--u)); margin: 0;
    transform: translate(-50%, -50%) rotate(-90deg);
    border: calc(3 * var(--u)) solid #777; border-radius: calc(14 * var(--u)); background: #111;
    box-shadow: inset 0 0 calc(10 * var(--u)) #000; overflow: hidden;
}
.ov-cluster .throttle-bar, .ov-cluster .brake-light, .ov-cluster .hr-fill { height: 100%; border-radius: calc(11 * var(--u)); box-shadow: 0 0 calc(12 * var(--u)) currentColor; }
.ov-cluster .throttle-bar { background: var(--green); color: var(--green); }
.ov-cluster .brake-light, .ov-cluster .brake-light.active { background: var(--accent); color: var(--accent); }
.ov-cluster .hr-fill { width: 0; background: var(--amber); color: var(--amber); transition: width .2s linear; }
.cl-tube .readout { margin-top: calc(8 * var(--u)); }
/* bezelled readouts */
.ov-cluster .readout {
    display: flex; align-items: baseline; justify-content: center; gap: calc(4 * var(--u));
    background: #0b0b0b; border: calc(2 * var(--u)) solid #666; border-radius: calc(8 * var(--u));
    padding: calc(3 * var(--u)) calc(12 * var(--u)); min-width: calc(96 * var(--u));
}
.ov .cl-readout .metric-value, .ov .cl-hr .metric-value { font-size: calc(26 * var(--u)); line-height: 1.1; font-weight: 800; }
.ov-cluster .readout .ov-unit { font-size: calc(12 * var(--u)); color: var(--grey); letter-spacing: 0; }
.ov-cluster .heart-icon { font-size: calc(18 * var(--u)); margin-right: calc(2 * var(--u)); align-self: center; }
.cl-readout { display: flex; flex-direction: column; align-items: center; }
.cl-readouts { display: flex; align-items: flex-end; gap: calc(16 * var(--u)); flex-wrap: wrap; }
.cl-dial-wrap .cl-logo { position: absolute; left: 50%; top: 18%; transform: translate(-50%, -50%); width: 9%; }
.cl-logo img { display: block; width: 100%; }

/* Full: a band across the bottom, dial in the middle, tubes left, heart rate + readouts right */
.ov-cluster.ov-h .cl-band { left: 0; right: 0; bottom: 0; height: calc(430 * var(--u)); }
.ov-cluster.ov-h .cl-dial-wrap { position: absolute; left: 50%; transform: translateX(-50%); top: calc(10 * var(--u)); width: calc(310 * var(--u)); }
/* throttle left of the dial, brake right of it (George, 2026-10-02) */
.ov-cluster.ov-h .cl-tubes { display: contents; }
.ov-cluster.ov-h .cl-tubes .slot { display: block; position: absolute; bottom: calc(118 * var(--u)); }
.ov-cluster.ov-h .cl-tubes .slot:nth-child(1) { right: calc(50% + 172 * var(--u)); }
.ov-cluster.ov-h .cl-tubes .slot:nth-child(2) { left: calc(50% + 172 * var(--u)); }
/* heart rates and the other readouts: one centred row under the dial (George, 2026-10-02) */
.ov-cluster.ov-h .cl-right { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(22 * var(--u)); justify-content: center; gap: calc(16 * var(--u)); white-space: nowrap; }
.ov-cluster.ov-h .cl-right .slot { display: contents; }
.ov-cluster.ov-h .cl-hr .vtrack { display: none; }
.ov-cluster.ov-h .cl-hr .readout { margin-top: 0; }
.ov-cluster.ov-h .cl-readouts { flex-wrap: nowrap; }

/* Vertical: one column, dial on top, flat tubes and readouts stacked below */
.ov-cluster.ov-v .cl-band {
    top: 0; bottom: 0; width: calc(320 * var(--u));
    display: flex; flex-direction: column; align-items: center; gap: calc(18 * var(--u)); padding: calc(24 * var(--u)) calc(20 * var(--u));
}
.ov-cluster.ov-v.align-left .cl-band { left: 0; }
.ov-cluster.ov-v.align-right .cl-band { right: 0; }
.ov-cluster.ov-v .cl-dial-wrap { order: 1; }
.ov-cluster.ov-v .cl-tubes { order: 2; }
.ov-cluster.ov-v .cl-right { order: 3; }
.ov-cluster.ov-v .cl-dial-wrap { width: calc(260 * var(--u)); margin-bottom: calc(24 * var(--u)); }
.ov-cluster.ov-v .cl-speed .metric-value { font-size: calc(50 * var(--u)); }
.ov.ov-cluster.ov-v .cl-gear { width: calc(76 * var(--u)); height: calc(76 * var(--u)); }
.ov-cluster.ov-v .cl-gear .metric-value { font-size: calc(40 * var(--u)); }
/* bars and readouts as wide as the dial; the two heart rates side by side, equal width */
.ov-cluster.ov-v .cl-tubes, .ov-cluster.ov-v .cl-right { flex-direction: column; align-items: stretch; width: calc(260 * var(--u)); gap: calc(14 * var(--u)); }
.ov-cluster.ov-v .cl-right .slot { display: flex; gap: calc(12 * var(--u)); width: 100%; }
.ov-cluster.ov-v .cl-hr { flex: 1 1 0; min-width: 0; }
.ov-cluster.ov-v .cl-hr .readout { width: 100%; min-width: 0; }
.ov-cluster.ov-v .cl-tube { align-items: stretch; }
.ov-cluster.ov-v .cl-tube .vtrack { width: 100%; height: calc(22 * var(--u)); }
.ov-cluster.ov-v .cl-tube .vtrack .track { position: static; width: 100%; height: calc(22 * var(--u)); transform: none; }
.ov-cluster.ov-v .cl-tube .readout { align-self: center; }
.ov-cluster.ov-v .cl-readouts { flex-direction: row; justify-content: center; }

/* Small: tubes + dial in a row, heart rates + readouts centred under them
   (same arrangement as Full — George, 2026-10-02) */
.ov-cluster.ov-c .cl-band {
    left: calc(40 * var(--u)); bottom: calc(40 * var(--u));
    display: grid; grid-template-columns: auto auto auto; grid-template-areas: "thr dial brk" "right right right";
    align-items: end; column-gap: calc(18 * var(--u)); row-gap: calc(12 * var(--u));
    padding: calc(18 * var(--u)) calc(24 * var(--u)); border-radius: calc(20 * var(--u));
}
.ov-cluster.ov-c .cl-tubes { display: contents; }
.ov-cluster.ov-c .cl-tubes .slot { display: block; align-self: end; }
.ov-cluster.ov-c .cl-tubes .slot:nth-child(1) { grid-area: thr; }
.ov-cluster.ov-c .cl-tubes .slot:nth-child(2) { grid-area: brk; }
.ov-cluster.ov-c .cl-dial-wrap { grid-area: dial; width: calc(210 * var(--u)); }
.ov-cluster.ov-c .cl-speed .metric-value { font-size: calc(40 * var(--u)); }
.ov-cluster.ov-c .cl-speed .metric-label { font-size: calc(8 * var(--u)); }
.ov.ov-cluster.ov-c .cl-gear { width: calc(60 * var(--u)); height: calc(60 * var(--u)); border-width: calc(3 * var(--u)); }
.ov.ov-cluster.ov-c .cl-gear .metric-value { font-size: calc(28 * var(--u)); }
.ov.ov-cluster.ov-c .cl-gear .metric-label { font-size: calc(7 * var(--u)); }
.ov-cluster.ov-c .cl-right { grid-area: right; justify-content: center; gap: calc(12 * var(--u)); white-space: nowrap; }
.ov-cluster.ov-c .cl-right .slot { display: contents; }
.ov-cluster.ov-c .cl-hr .vtrack { display: none; }
.ov-cluster.ov-c .cl-hr .readout { margin-top: 0; }
.ov-cluster.ov-c .cl-readouts { flex-wrap: nowrap; gap: calc(12 * var(--u)); }
.ov-cluster.ov-c .cl-tube .vtrack { width: calc(22 * var(--u)); height: calc(120 * var(--u)); }
.ov-cluster.ov-c .cl-tube .vtrack .track { width: calc(120 * var(--u)); height: calc(22 * var(--u)); }
.ov-cluster.ov-c .metric-label { font-size: calc(9 * var(--u)); }
.ov.ov-cluster.ov-c .cl-readout .metric-value, .ov.ov-cluster.ov-c .cl-hr .metric-value { font-size: calc(20 * var(--u)); }
.ov-cluster.ov-c .readout { min-width: calc(72 * var(--u)); padding: calc(2 * var(--u)) calc(8 * var(--u)); }

/* A cluster gauge the overlay list leaves out, or the vehicle doesn't send:
   it keeps its place in the design, dimmed, value cleared (George 2026-10-20). */
.ov .ov-dead { opacity: 0.35; }

/* No data for 5 s: every gauge at rest and dimmed until the next message
   (universal-dynamic-dashboard.js setOverlayStale; classic look too). */
main.ov-stale [data-overlay-key] { opacity: 0.35; transition: opacity 0.4s ease; }


/* =====================================================================
 * ROBUST RE-FLOW (George, 2026-10-20) — overlay-styles.js reflow():
 *   main.no-<kind> (speed rpm gear throttle brake hr data pedals), hr-one;
 *   .ov-data-area[data-dl] 0 = design size · 1 = smaller · 2 = wrapped;
 *   .ov-cap = did not fit the area, not drawn.
 * Every extra data box has a FIXED width: long names clip, huge or odd
 * values clip with an ellipsis, nothing pushes the layout.
 * ===================================================================== */
.ov .ov-cap { display: none !important; }
.ov .ov-data-area.ov-measure { align-content: flex-start !important; justify-content: flex-start !important; }
.ov .metric-value { white-space: nowrap; }
.ov [data-kind="data"] { overflow: hidden; flex: none; }
.ov [data-kind="data"] .vrow { min-width: 0; max-width: 100%; overflow: hidden; }
.ov [data-kind="data"] .metric-value { overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 100%; flex: 0 1 auto; }
.ov [data-kind="data"] .ov-unit { flex: none; white-space: nowrap; }
.ov [data-kind="hr"] .metric-value { overflow: hidden; }

/* ---------------- RACE ---------------- */
/* Full + Small: the cells close up left to right; the extra boxes have one
   area between the pedals and the heart rates, inside the bar's height */
.ov-race .race-cells .ov-data-area { display: flex; flex-wrap: wrap; align-content: center; align-items: center; min-width: 0; min-height: 0; }
.ov-race.ov-h .race-cells { flex: 1 1 auto; }
.ov-race.ov-h .ov-data-area, .ov-race.ov-c .ov-data-area { flex: 0 1 auto; align-self: stretch; }
.ov-race.ov-h .ov-data-area { height: calc(150 * var(--u)); }
.ov-race.ov-c .ov-data-area { height: calc(96 * var(--u)); max-width: calc(560 * var(--u)); }
.ov-race.ov-h .ov-data-area .cell, .ov-race.ov-c .ov-data-area .cell { align-self: center; }
.ov-race.ov-h .ov-data-area[data-dl="1"] .cell-small, .ov-race.ov-h .ov-data-area[data-dl="2"] .cell-small { width: calc(150 * var(--u)); padding: 0 calc(18 * var(--u)); }
.ov.ov-race.ov-h .ov-data-area[data-dl="1"] .cell-small .metric-value, .ov.ov-race.ov-h .ov-data-area[data-dl="2"] .cell-small .metric-value { font-size: calc(28 * var(--u)); }
.ov-race.ov-h .ov-data-area[data-dl="1"] .cell .metric-label, .ov-race.ov-h .ov-data-area[data-dl="2"] .cell .metric-label { font-size: calc(12 * var(--u)); margin-top: calc(4 * var(--u)); }
.ov-race.ov-h .ov-data-area[data-dl="2"] .cell-small { height: calc(64 * var(--u)); }
.ov-race.ov-h .ov-data-area[data-dl="2"] { row-gap: calc(6 * var(--u)); }
.ov-race.ov-c .ov-data-area[data-dl="1"] .cell-small, .ov-race.ov-c .ov-data-area[data-dl="2"] .cell-small { width: calc(104 * var(--u)); padding: 0 calc(12 * var(--u)); }
.ov.ov-race.ov-c .ov-data-area[data-dl="1"] .cell-small .metric-value, .ov.ov-race.ov-c .ov-data-area[data-dl="2"] .cell-small .metric-value { font-size: calc(20 * var(--u)); }
.ov-race.ov-c .ov-data-area[data-dl="1"] .cell .metric-label, .ov-race.ov-c .ov-data-area[data-dl="2"] .cell .metric-label { font-size: calc(9 * var(--u)); margin-top: calc(3 * var(--u)); }
.ov-race.ov-c .ov-data-area[data-dl="2"] .cell-small { height: calc(42 * var(--u)); }
.ov-race.ov-c .ov-data-area[data-dl="2"] { row-gap: calc(4 * var(--u)); }
/* Vertical: one area between the pedals and the heart rates; boxes get
   smaller, then sit two abreast */
.ov-race.ov-v .race-cells { flex: 1 1 auto; min-height: 0; }
.ov-race.ov-v .ov-data-area { flex: 0 1 auto; flex-direction: row; align-content: flex-start; }
.ov-race.ov-v .ov-data-area .cell-small { width: 100%; }
.ov-race.ov-v .ov-data-area[data-dl="1"] .cell-small, .ov-race.ov-v .ov-data-area[data-dl="2"] .cell-small { padding: calc(5 * var(--u)) calc(8 * var(--u)); }
.ov.ov-race.ov-v .ov-data-area[data-dl="1"] .cell-small .metric-value { font-size: calc(18 * var(--u)); }
.ov-race.ov-v .ov-data-area[data-dl="1"] .cell .metric-label, .ov-race.ov-v .ov-data-area[data-dl="2"] .cell .metric-label { font-size: calc(9 * var(--u)); margin-top: calc(2 * var(--u)); }
.ov-race.ov-v .ov-data-area[data-dl="2"] .cell-small { width: 50%; }
.ov.ov-race.ov-v .ov-data-area[data-dl="2"] .cell-small .metric-value { font-size: calc(16 * var(--u)); }
.ov-race.ov-v .ov-data-area[data-dl="2"] .cell-small:nth-child(2n) { border-left: 1px solid rgba(255, 255, 255, .14); }
.ov-race.ov-v .race-hr { flex: none; }

/* ---------------- CLUSTER ---------------- */
/* the dial is the frame: with RPM unticked it is a plain bezel, speed still in
   the hub and gear in its window; an unticked speed / gear leaves its spot clean */
.cl-bezel { display: none; }
.cl-bezel svg { width: 100%; height: auto; display: block; overflow: visible; }
.ov-cluster.no-rpm .cl-bezel { display: block; }
.ov-cluster .cl-readout { width: calc(118 * var(--u)); }
.ov-cluster .cl-readout .readout { width: 100%; min-width: 0; padding-left: calc(6 * var(--u)); padding-right: calc(6 * var(--u)); }
.ov-cluster .ov-data-area[data-dl="1"] .cl-readout, .ov-cluster .ov-data-area[data-dl="2"] .cl-readout { width: calc(92 * var(--u)); }
.ov.ov-cluster .ov-data-area[data-dl="1"] .cl-readout .metric-value, .ov.ov-cluster .ov-data-area[data-dl="2"] .cl-readout .metric-value { font-size: calc(20 * var(--u)); }
.ov-cluster .ov-data-area[data-dl="1"] .metric-label, .ov-cluster .ov-data-area[data-dl="2"] .metric-label { font-size: calc(9 * var(--u)); margin-top: calc(4 * var(--u)); }
.ov-cluster .cl-hr .readout { min-width: calc(96 * var(--u)); }
/* Full: heart rates + readouts share one area under the dial, the full width
   of the frame; they shrink, then take a second row (still under the gear window) */
.ov-cluster.ov-h .cl-right.ov-data-area {
    left: calc(40 * var(--u)); right: calc(40 * var(--u)); transform: none; bottom: 0; height: calc(92 * var(--u));
    display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-end; align-items: flex-end;
    gap: calc(6 * var(--u)) calc(16 * var(--u)); padding-bottom: calc(22 * var(--u)); white-space: nowrap;
}
.ov-cluster.ov-h .cl-right.ov-data-area[data-dl="2"] { padding-bottom: calc(4 * var(--u)); }
.ov-cluster.ov-h .cl-readouts, .ov-cluster.ov-c .cl-readouts { display: contents; }
.ov-cluster.ov-h .cl-right .cl-hr, .ov-cluster.ov-c .cl-right .cl-hr { width: calc(118 * var(--u)); }
.ov-cluster.ov-h .cl-right .cl-hr .readout, .ov-cluster.ov-c .cl-right .cl-hr .readout { width: 100%; }
/* Small: tubes flank the dial whatever is under them; one area under them */
.ov-cluster.ov-c .cl-band { grid-template-columns: 1fr auto 1fr; }
.ov-cluster.ov-c .cl-tubes .slot:nth-child(1) { justify-self: end; }
.ov-cluster.ov-c .cl-tubes .slot:nth-child(2) { justify-self: start; }
.ov-cluster.ov-c .cl-right.ov-data-area {
    display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-end; align-items: flex-end;
    max-width: calc(560 * var(--u)); max-height: calc(150 * var(--u)); gap: calc(6 * var(--u)) calc(12 * var(--u)); justify-self: center;
}
.ov-cluster.ov-c .cl-readout, .ov-cluster.ov-c .cl-right .cl-hr { width: calc(86 * var(--u)); }
.ov-cluster.ov-c .ov-data-area[data-dl="1"] .cl-readout, .ov-cluster.ov-c .ov-data-area[data-dl="2"] .cl-readout { width: calc(72 * var(--u)); }
.ov.ov-cluster.ov-c .ov-data-area[data-dl="1"] .cl-readout .metric-value, .ov.ov-cluster.ov-c .ov-data-area[data-dl="2"] .cl-readout .metric-value { font-size: calc(16 * var(--u)); }
.ov-cluster.ov-c .ov-data-area[data-dl="1"] .metric-label, .ov-cluster.ov-c .ov-data-area[data-dl="2"] .metric-label { font-size: calc(8 * var(--u)); }
.ov-cluster.ov-c.no-data.no-hr .cl-right { display: none; }
/* Vertical: the area is the rest of the column under the bars */
.ov-cluster.ov-v .cl-dial-wrap, .ov-cluster.ov-v .cl-tubes { flex: none; }
.ov-cluster.ov-v .cl-right.ov-data-area { flex: 0 1 auto; min-height: 0; flex-direction: row; flex-wrap: wrap; justify-content: center; align-content: flex-start; gap: calc(12 * var(--u)); }
.ov-cluster.ov-v .cl-right .slot { flex: none; }
.ov-cluster.ov-v .cl-readouts { display: contents; }
.ov-cluster.ov-v .cl-readout { width: calc(124 * var(--u)); }
.ov-cluster.ov-v .ov-data-area[data-dl="1"] .cl-readout, .ov-cluster.ov-v .ov-data-area[data-dl="2"] .cl-readout { width: calc(78 * var(--u)); }
.ov.ov-cluster.ov-v .ov-data-area[data-dl="1"] .cl-readout .metric-value, .ov.ov-cluster.ov-v .ov-data-area[data-dl="2"] .cl-readout .metric-value { font-size: calc(17 * var(--u)); }
.ov-cluster.ov-v.no-pedals .cl-tubes { display: none; }

/* ---------------- HOLOGRAPH ---------------- */
.ov-holo .holo-data[data-kind="data"] { overflow: hidden; }
/* Full: the left stack is a fixed column (frame top → above the bottom
   margin); the extra items fill it upward from the pedal bars, then sit two
   abreast in a smaller size */
.ov-holo.ov-h .holo-left { top: calc(40 * var(--u)); justify-content: flex-end; }
.ov-holo.ov-h .holo-left > * { flex: none; }
.ov-holo.ov-h .holo-panel.ov-data-area { flex: 0 1 auto; min-height: 0; }
.ov-holo.ov-h .holo-data[data-kind="data"] { width: calc(200 * var(--u)); }
.ov-holo.ov-h .ov-data-area[data-dl="1"] .holo-data, .ov-holo.ov-h .ov-data-area[data-dl="2"] .holo-data { width: calc(92 * var(--u)); }
.ov.ov-holo.ov-h .ov-data-area[data-dl="1"] .holo-data .metric-value, .ov.ov-holo.ov-h .ov-data-area[data-dl="2"] .holo-data .metric-value { font-size: calc(22 * var(--u)); }
.ov-holo.ov-h .ov-data-area[data-dl="1"] .panel-items, .ov-holo.ov-h .ov-data-area[data-dl="2"] .panel-items { gap: calc(12 * var(--u)) calc(16 * var(--u)); }
.ov-holo.ov-h .ov-data-area[data-dl="1"] .holo-data .metric-label, .ov-holo.ov-h .ov-data-area[data-dl="2"] .holo-data .metric-label { font-size: calc(10 * var(--u)); letter-spacing: .15em; }
.ov-holo.ov-h .ov-data-area[data-dl="1"] .holo-data .ov-unit, .ov-holo.ov-h .ov-data-area[data-dl="2"] .holo-data .ov-unit { font-size: calc(11 * var(--u)); letter-spacing: .1em; margin-left: calc(3 * var(--u)); }
/* one gauge unticked: the dial left slides into the RPM's place next to the
   left stack, the gear just right of it (George 2026-10-20: "slide left") */
.ov-holo.ov-h.no-rpm .holo-speed { left: calc(540 * var(--u)); }
.ov-holo.ov-h.no-rpm .holo-gear { left: calc(796 * var(--u)); }
.ov-holo.ov-h.no-rpm.no-speed .holo-gear { left: calc(480 * var(--u)); bottom: calc(180 * var(--u)); }
/* Vertical: the column closes up; the extra items take the rest of it */
.ov-holo.ov-v .holo-col > * { flex: none; }
.ov.ov-holo.ov-v .holo-data[data-kind="data"] { width: calc(170 * var(--u)); }
.ov-holo.ov-v .holo-panel.ov-data-area { flex: 0 1 auto; min-height: 0; }
.ov.ov-holo.ov-v .ov-data-area[data-dl="1"] .holo-data[data-kind="data"], .ov.ov-holo.ov-v .ov-data-area[data-dl="2"] .holo-data[data-kind="data"] { width: calc(148 * var(--u)); }
.ov.ov-holo.ov-v .ov-data-area[data-dl="1"] .holo-data .metric-value, .ov.ov-holo.ov-v .ov-data-area[data-dl="2"] .holo-data .metric-value { font-size: calc(26 * var(--u)); }
.ov-holo.ov-v .ov-data-area[data-dl="1"] .holo-data .metric-label, .ov-holo.ov-v .ov-data-area[data-dl="2"] .holo-data .metric-label { font-size: calc(11 * var(--u)); margin-top: calc(4 * var(--u)); }
.ov-holo.ov-v .ov-data-area[data-dl="1"] .panel-items, .ov-holo.ov-v .ov-data-area[data-dl="2"] .panel-items { gap: calc(12 * var(--u)) calc(20 * var(--u)); }
/* Small: the items between the rings and the bars, in a fixed box */
.ov-holo.ov-c .holo-panel.ov-data-area { max-width: calc(420 * var(--u)); max-height: calc(120 * var(--u)); }
.ov-holo.ov-c .holo-panel .panel-items { justify-content: center; }
.ov-holo.ov-c .holo-data[data-kind="data"] { width: calc(96 * var(--u)); }
.ov-holo.ov-c .ov-data-area[data-dl="1"] .holo-data, .ov-holo.ov-c .ov-data-area[data-dl="2"] .holo-data { width: calc(74 * var(--u)); }
.ov.ov-holo.ov-c .ov-data-area[data-dl="1"] .holo-data .metric-value, .ov.ov-holo.ov-c .ov-data-area[data-dl="2"] .holo-data .metric-value { font-size: calc(19 * var(--u)); }
.ov-holo.ov-c .ov-data-area[data-dl="1"] .holo-data .metric-label, .ov-holo.ov-c .ov-data-area[data-dl="2"] .holo-data .metric-label { font-size: calc(9 * var(--u)); }
.ov-holo.ov-c .ov-data-area[data-dl="1"] .panel-items, .ov-holo.ov-c .ov-data-area[data-dl="2"] .panel-items { gap: calc(8 * var(--u)) calc(12 * var(--u)); }

/* ---------------- MINIMAL ---------------- */
/* Full: the top-left corner is a fixed column (bars, then the extra items)
   that ends above the speed; the items are fixed-width, two abreast, then
   smaller and three abreast */
.ov-minimal.ov-h .min-topleft { bottom: calc(400 * var(--u)); }
.ov-minimal.ov-h .min-top { flex: none; }
.ov-minimal.ov-h .min-topdata.ov-data-area { flex: 0 1 auto; min-height: 0; max-width: none; width: calc(600 * var(--u)); align-content: flex-start; gap: calc(10 * var(--u)) calc(20 * var(--u)); }
.ov-minimal.ov-h .min-data { width: calc(290 * var(--u)); white-space: nowrap; display: flex; align-items: baseline; }
.ov-minimal .min-data .metric-label { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; margin-right: calc(10 * var(--u)); }
.ov-minimal .min-data .metric-value { flex: none; }
.ov.ov-minimal .min-data .metric-value { max-width: 7ch; }
.ov-minimal.ov-h .ov-data-area[data-dl="1"] .min-data, .ov-minimal.ov-h .ov-data-area[data-dl="2"] .min-data { width: calc(186 * var(--u)); }
.ov-minimal.ov-h .ov-data-area[data-dl="1"] .min-data, .ov-minimal.ov-h .ov-data-area[data-dl="2"] .min-data,
.ov-minimal.ov-h .ov-data-area[data-dl="1"] .min-data .metric-label, .ov-minimal.ov-h .ov-data-area[data-dl="2"] .min-data .metric-label,
.ov.ov-minimal.ov-h .ov-data-area[data-dl="1"] .min-data .metric-value, .ov.ov-minimal.ov-h .ov-data-area[data-dl="2"] .min-data .metric-value { font-size: calc(17 * var(--u)); }
.ov-minimal.ov-h .ov-data-area[data-dl="1"] .min-data .ov-unit, .ov-minimal.ov-h .ov-data-area[data-dl="2"] .min-data .ov-unit { font-size: calc(13 * var(--u)); }
/* Small: the items share the RPM row, right of the RPM figure */
.ov-minimal.ov-c .min-datarow.ov-data-area { flex: 0 1 auto; min-width: 0; max-height: calc(96 * var(--u)); align-content: flex-end; gap: calc(4 * var(--u)) calc(14 * var(--u)); }
.ov-minimal.ov-c .min-data { width: calc(128 * var(--u)); white-space: nowrap; display: flex; align-items: baseline; justify-content: flex-end; }
.ov-minimal.ov-c .ov-data-area[data-dl="1"] .min-data, .ov-minimal.ov-c .ov-data-area[data-dl="2"] .min-data { width: calc(92 * var(--u)); }
.ov-minimal.ov-c .ov-data-area[data-dl="1"] .min-data, .ov-minimal.ov-c .ov-data-area[data-dl="2"] .min-data,
.ov-minimal.ov-c .ov-data-area[data-dl="1"] .min-data .metric-label, .ov-minimal.ov-c .ov-data-area[data-dl="2"] .min-data .metric-label,
.ov.ov-minimal.ov-c .ov-data-area[data-dl="1"] .min-data .metric-value, .ov.ov-minimal.ov-c .ov-data-area[data-dl="2"] .min-data .metric-value { font-size: calc(13 * var(--u)); }
.ov-minimal.ov-c .min-rpm { flex: none; width: calc(150 * var(--u)); }
.ov-minimal.ov-c.no-rpm .min-rpmrow { justify-content: flex-start; padding-bottom: 0; }
.ov-minimal.ov-c.no-rpm .min-datarow { justify-content: flex-start; }
.ov-minimal.ov-c.no-rpm.no-data .min-rpmrow, .ov-minimal.ov-c.no-pedals .min-row2, .ov-minimal.ov-c.no-hr .min-row3 { display: none; }
.ov-minimal.ov-c.no-speed.no-gear .min-row { display: none; }

/* Race Full, second tier (George 2026-10-20: "second thin tier"): when the
   extras don't fit in the bar they all move up to one thinner row directly on
   top of it — same panel, accent edge, separators and fonts. With few extras
   it is not there and the bar looks exactly as before. */
.race-tier { display: none; }
.ov-race.ov-h.race-two-tier .race-tier {
    position: absolute; left: 0; right: 0; bottom: calc(150 * var(--u)); height: calc(64 * var(--u));
    display: flex; align-items: stretch; background: rgba(8, 8, 10, var(--bg-alpha));
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.ov-race .race-tier .race-edge { width: calc(14 * var(--u)); }
.ov.ov-race.ov-h .race-tier-cells { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; height: 100%; }
.ov.ov-race.ov-h .race-tier .cell-small {
    flex: none; display: flex; flex-direction: column; justify-content: center; align-self: auto;
    width: calc(140 * var(--u)); height: calc(64 * var(--u)); padding: 0 calc(16 * var(--u));
    border-left: 1px solid rgba(255, 255, 255, .14);
}
.ov.ov-race.ov-h .race-tier .cell-small:first-child { border-left: 0; }
.ov.ov-race.ov-h .race-tier .cell-small .metric-value { font-size: calc(26 * var(--u)); }
.ov.ov-race.ov-h .race-tier .cell-small .ov-unit { font-size: calc(12 * var(--u)); margin-left: calc(4 * var(--u)); }
.ov.ov-race.ov-h .race-tier .cell .metric-label { font-size: calc(11 * var(--u)); margin-top: calc(3 * var(--u)); }
