/* Ghostline. Type (all Velvetyne, OFL): Grotesk Gras for headlines, Lack for text, Sligoil for data. */
@font-face { font-family: "Grotesk"; src: url("../fonts/Grotesk-Gras.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Lack"; src: url("../fonts/Lack-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Sligoil"; src: url("../fonts/Sligoil-Micro.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Sligoil"; src: url("../fonts/Sligoil-MicroBold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0b0a0f; --bg2: #15131c; --fg: #efecf4; --mute: #8a8597; --line: rgba(239, 236, 244, .10); --line2: rgba(239, 236, 244, .2);
  --acc: #9d6bff; --ghost: #3ef0ff; --gain: #42f5c8; --loss: #ff4f81;
  --disp: "Grotesk", "Lack", sans-serif; --sans: "Lack", system-ui, sans-serif; --num: "Sligoil", ui-monospace, monospace;
  --pad: clamp(16px, 3.4vw, 48px);
  --cut: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
body { background: transparent; color: var(--fg); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; cursor: none; min-height: 100vh; }
a, button, select, input { color: inherit; font: inherit; cursor: none; }
button { background: none; border: 0; }
::selection { background: var(--acc); color: var(--bg); }
@media (pointer: coarse) { body, a, button, select, input { cursor: auto; } .cursor { display: none; } }

/* telemetry graph paper: the only background texture, static */
.bg { position: fixed; inset: 0; z-index: -2; pointer-events: none; background-color: var(--bg);
  background-image: linear-gradient(rgba(239,236,244,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(239,236,244,.05) 1px, transparent 1px),
                    linear-gradient(rgba(239,236,244,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(239,236,244,.022) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  -webkit-mask-image: linear-gradient(#000, rgba(0,0,0,.35) 70%); mask-image: linear-gradient(#000, rgba(0,0,0,.35) 70%); }

/* ---------- type ---------- */
.mega, .big, .wide { font-family: var(--disp); font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; line-height: .92; }
.mega { font-size: clamp(56px, 11.5vw, 210px); }
.big { font-size: clamp(40px, 6.4vw, 112px); }
.mega em, .big em { font-style: normal; color: var(--ghost); }
.tall { font-family: var(--disp); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.eyebrow, .mono { font: 400 12px/1.4 var(--num); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.eyebrow b { color: var(--fg); font-weight: 700; }
.num { font-family: var(--num); font-weight: 700; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .12em .06em .06em; margin: -.12em -.06em -.06em; }
.c { display: inline-block; will-change: transform; }
.gain { color: var(--gain); } .loss { color: var(--loss); } .ok { color: var(--gain); } .warn { color: var(--loss); }
.spin { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- chrome ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 100; mix-blend-mode: difference; }
.cursor-dot, .cursor-ring { position: absolute; left: 0; top: 0; }
.cursor-dot { width: 6px; height: 6px; margin: -3px; background: #fff; border-radius: 50%; }
.cursor-ring { width: 36px; height: 36px; margin: -18px; border: 1px solid #fff; border-radius: 50%; display: grid; place-items: center; transition: width .3s, height .3s, margin .3s, background .3s, border-radius .3s; }
.cursor.hover .cursor-ring { width: 92px; height: 34px; margin: -17px -46px; border-radius: 0; background: #fff; }
.cursor.link .cursor-ring { width: 14px; height: 14px; margin: -7px; }
.cursor-label { font: 700 10px var(--num); letter-spacing: .1em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .2s; }
.cursor.hover .cursor-label { opacity: 1; }

.wipe { position: fixed; inset: 0; z-index: 80; background: var(--acc); transform: scaleY(1); transform-origin: bottom; display: grid; align-items: end; padding: var(--pad); pointer-events: none; }
.wipe-title { color: var(--bg); font-size: clamp(40px, 10vw, 190px); }

.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: max(14px, env(safe-area-inset-top)) var(--pad) 14px; background: linear-gradient(var(--bg) 30%, rgba(11,10,15,0)); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px var(--disp); letter-spacing: -.02em; text-transform: uppercase; }
.logo svg { width: 28px; height: 28px; }
.nav nav { display: flex; gap: clamp(14px, 2.6vw, 36px); }
.roll { display: inline-block; overflow: hidden; height: 1.25em; line-height: 1.25em; font: 700 12px var(--num); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.roll span { display: block; transition: transform .45s cubic-bezier(.7,0,.2,1); }
.roll:hover span, .roll.on span { transform: translateY(-100%); }
.roll span:last-child { color: var(--ghost); }

/* status: a small telemetry readout, square, ring = lap progress */
.sig { display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; text-decoration: none; border: 1px solid var(--line2); background: var(--bg); transition: border-color .3s; }
.sig.pit { border-color: var(--acc); } .sig.on { border-color: var(--ghost); }
.sig-ring { width: 30px; height: 30px; transform: rotate(-90deg); }
.sig-ring circle { fill: none; stroke-width: 3; }
.sig-ring .trk { stroke: var(--line2); }
.sig-ring .prog { stroke: var(--ghost); stroke-dasharray: 94.25; stroke-dashoffset: 94.25; transition: stroke-dashoffset .3s linear; }
.sig-ring .core { fill: var(--mute); stroke: none; }
.sig.pit .core { fill: var(--acc); } .sig.on .core { fill: var(--ghost); animation: pulse 1.2s infinite; }
.sig-txt { display: flex; flex-direction: column; line-height: 1.2; }
.sig-txt small { font: 400 9px var(--num); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.sig-txt b { font: 700 13px var(--num); }

main { padding: 0 var(--pad); }
section { padding: 120px 0 56px; }
.toast { position: fixed; left: var(--pad); bottom: 24px; z-index: 70; background: var(--fg); color: var(--bg); padding: 12px 18px; font: 700 12px var(--num); letter-spacing: .05em; text-transform: uppercase; transform: translateY(250%); clip-path: var(--cut); }   /* fully below the edge: it sits 24 px up */

/* ---------- controls: chamfered blocks, text links, square tags ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 0; font: 700 13px var(--num); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; position: relative; }
.btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor; transform: scaleX(.3); transform-origin: left; transition: transform .45s cubic-bezier(.7,0,.2,1); }
.btn:hover::after { transform: scaleX(1); }
.btn > span::after { content: " \2192"; }
.btn.solid { padding: 18px 26px; background: var(--fg); color: var(--bg); clip-path: var(--cut); transition: background .3s; }
.btn.solid::after { display: none; }
.btn.solid:hover { background: var(--ghost); }
.chips, .actions, .setup, .status { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; padding: 8px 12px; border: 1px solid var(--line2); font: 700 11px var(--num); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; transition: background .25s, color .25s, border-color .25s; }
.chip.on, .chip:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.actions { margin-top: 30px; }

/* ---------- laps list ---------- */
.hero { min-height: 92vh; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 32px; }
.hero .eyebrow { margin-bottom: 20px; }
.stats { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line2); margin-top: 44px; }
.stat { padding: 18px 40px 0 0; }
.stat .v { font: 700 clamp(24px, 2.6vw, 40px) var(--num); letter-spacing: -.02em; margin-top: 6px; }
.stat:first-child .v { color: var(--ghost); }
.laps-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; margin-bottom: 36px; }
.rows { list-style: none; border-top: 1px solid var(--line2); }
.row { position: relative; display: grid; grid-template-columns: 52px 1.2fr 1fr 1fr 84px 28px; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); isolation: isolate; }
.row::before { content: ""; position: absolute; inset: 0; background: var(--fg); transform: scaleY(0); transform-origin: bottom; transition: transform .4s cubic-bezier(.7,0,.2,1); z-index: -1; }
.row:hover::before { transform: scaleY(1); }
.row:hover, .row:hover .eyebrow, .row:hover .mono { color: var(--bg); }
.row .time { font: 700 clamp(22px, 2.6vw, 36px) var(--num); letter-spacing: -.02em; }
.row .tag { font: 700 10px var(--num); padding: 4px 7px; background: var(--acc); color: var(--bg); justify-self: start; text-transform: uppercase; }
.row .tag.dim { background: transparent; outline: 1px solid currentColor; color: inherit; opacity: .6; }
.row .del { opacity: 0; font-size: 20px; transition: opacity .3s; }
.row:hover .del { opacity: .6; } .row .del:hover { opacity: 1; color: var(--loss); }
.preview { position: fixed; left: 0; top: 0; width: 240px; height: 190px; z-index: 40; pointer-events: none; background: var(--acc); display: grid; place-items: center; transform: scale(0); clip-path: var(--cut); }
.preview svg { width: 84%; height: 84%; }
.empty { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.empty p { max-width: 540px; color: var(--mute); }
.nav .roll.get { color: var(--ghost); }
.get-hero { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.get-hero .lead { max-width: 620px; font-size: 19px; color: #cbc6d6; } .get-hero .need { max-width: 620px; }
.files { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--mute); } .files .hl { color: var(--ghost); } .files.pairs { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; }
.console { margin: 0; font: 400 12px/1.65 var(--num); color: #cbc6d6; white-space: pre-wrap; overflow-wrap: anywhere; } .console b { color: var(--ghost); font-weight: 700; }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin-top: 48px; }
.timeline { list-style: none; margin-top: 48px; border-top: 1px solid var(--line2); }
.timeline li { display: grid; grid-template-columns: 130px 90px minmax(0, 1fr); gap: 6px 32px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line); }
.timeline .ver { font: 700 28px/1 var(--num); color: var(--acc); } .timeline .ver a { text-decoration: none; }
.timeline li.now .ver, .timeline li.now .when { color: var(--ghost); }
.timeline h3 { font-size: clamp(24px, 2.6vw, 36px); margin-bottom: 8px; } .timeline p { color: #cbc6d6; max-width: 720px; }
@media (max-width: 760px) { .timeline li { grid-template-columns: 1fr; gap: 10px; } }
.faq > div { padding: 26px 0; border-top: 1px solid var(--line); } .faq h3 { font-size: 24px; margin-bottom: 8px; } .faq p { color: #cbc6d6; }
@media (max-width: 760px) { .faq { grid-template-columns: 1fr; } .get-hero .lead { font-size: 17px; } }
.cutnote { margin: 10px 0 0; max-width: 420px; color: var(--loss); text-transform: none; letter-spacing: .02em; } .cutnote a { color: var(--fg); }
.appopts { display: grid; gap: 12px; margin: 0 0 72px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.appopts label { display: flex; gap: 12px; align-items: baseline; color: #cbc6d6; max-width: 760px; } .appopts input { accent-color: var(--ghost); }
.sample-note { margin: 96px var(--pad) -72px; padding: 10px 14px; border: 1px solid var(--line2); color: var(--fg); font-size: 11px; position: relative; z-index: 2; }

/* ---------- landing ---------- */
.hero2 { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 88px; overflow-x: clip; }
.htrack { position: absolute; z-index: -1; right: -3vw; top: 48%; transform: translateY(-50%); width: min(60vw, 860px); height: auto; overflow: visible; pointer-events: none; }
.ht-base { fill: none; stroke: rgba(239,236,244,.06); stroke-width: 30; stroke-linejoin: round; }
.ht-line { fill: none; stroke: rgba(239,236,244,.3); stroke-width: 2; stroke-linejoin: round; }
.ht-trail { fill: none; stroke: var(--ghost); stroke-width: 6; stroke-linecap: butt; stroke-linejoin: round; opacity: .5; }
.ht-ghost { fill: var(--ghost); } .ht-you { fill: var(--fg); stroke: var(--bg); stroke-width: 3; }
.ht-lab { font: 700 17px var(--num); letter-spacing: .08em; }
.lede { max-width: 440px; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.5; color: #cbc6d6; margin: 24px 0 30px; }
.ctas { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.hud { position: absolute; right: var(--pad); bottom: 88px; display: flex; gap: 32px; }
.hud small { display: block; font: 400 10px var(--num); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.hud b { font: 700 clamp(20px, 2.1vw, 30px) var(--num); }
.hud .ghost { color: var(--ghost); }
.cue { position: absolute; left: var(--pad); bottom: 28px; font: 400 10px var(--num); letter-spacing: .14em; color: var(--mute); text-transform: uppercase; }
.pill-live { display: inline-flex; align-items: center; gap: 8px; }
.pill-live i { width: 8px; height: 8px; background: var(--mute); }
.pill-live.on i { background: var(--ghost); animation: pulse 1.2s infinite; }
/* how it works: a starting grid, each row offset like grid slots */
.steps { list-style: none; margin-top: 48px; }
.step { display: grid; grid-template-columns: 110px minmax(0, 400px) minmax(0, 1fr); gap: 20px 56px; align-items: start; padding: 40px 0; border-top: 1px solid var(--line); }
.viz { border: 1px solid var(--line); background: rgba(21, 19, 28, .7); padding: 18px 18px 12px; min-width: 0; }
.viz svg { display: block; width: 100%; height: auto; }
.viz-cap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11px; }
.empty-viz { display: grid; place-items: center; min-height: 150px; text-align: center; }
.viz-board { width: 100%; border-collapse: collapse; }
.viz-board td { padding: 9px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; } .viz-board td:nth-child(2) { width: 100%; max-width: 0; overflow: hidden; text-overflow: ellipsis; }   /* long names shorten, the times never move */
.viz-board td.num { text-align: right; font-family: var(--num); } .viz-board tr.me td { color: var(--ghost); }
.viz-bars > div { display: grid; grid-template-columns: minmax(0, 170px) 1fr 64px; gap: 14px; align-items: center; padding: 6px 0; }
.viz-bars span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; } .viz-bars .num { text-align: right; font-family: var(--num); font-size: 13px; }
.viz-bars i { height: 8px; background: var(--line); } .viz-bars i b { display: block; height: 100%; } .viz-bars b.l { background: var(--loss); } .viz-bars b.g { background: var(--gain); }
.viz-tracks { display: flex; flex-wrap: wrap; gap: 8px 22px; font: 400 15px/1.6 var(--num); text-transform: uppercase; letter-spacing: .04em; color: var(--mute); opacity: .75; }
.viz-tracks .on { color: var(--ghost); opacity: 1; } .viz-tracks .on b { color: var(--fg); } .viz-tracks small { font-size: 11px; }
.step .no { font: 700 64px/1 var(--num); color: var(--acc); }
.step h3 { font-size: 30px; margin-bottom: 8px; }
.step p { color: #cbc6d6; }
@media (max-width: 1100px) { .step { grid-template-columns: 110px minmax(0, 1fr); } .step .viz { grid-column: 2 / -1; } }
.outro { min-height: 60vh; display: flex; align-items: center; }
.outro-link { text-decoration: none; display: block; transition: color .3s; }
.outro-link:hover { color: var(--ghost); }

/* ---------- compare ---------- */
.duel { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 28px; margin-top: 36px; }
.side label { display: block; margin-bottom: 8px; }
.side .t { font: 700 clamp(30px, 4.6vw, 72px) var(--num); letter-spacing: -.03em; line-height: 1; }
.side .sub { margin-top: 8px; }
.side.b { text-align: right; } .side.b .t { color: var(--ghost); }
.gapnum { font-family: var(--disp); font-weight: 700; font-size: clamp(56px, 9vw, 160px); letter-spacing: -.04em; line-height: .85; }
.refpick { margin-top: 10px; background: var(--bg); border: 1px solid var(--line2); padding: 9px 12px; font: 700 11px var(--num); text-transform: uppercase; max-width: 100%; color: var(--fg); }
/* ranked fixes: #1 is the headline, the rest follow */
.fix { list-style: none; margin-top: 40px; border-top: 1px solid var(--line2); }
.fix li { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 6px 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); transition: background .3s; }
.fix li:hover { background: rgba(157,107,255,.06); }
.fix .n { font: 700 13px var(--num); color: var(--acc); }
.fix h3 { font-size: clamp(26px, 3vw, 44px); }
.fix li:first-child h3 { font-size: clamp(38px, 5vw, 76px); }
.fix .l { font: 700 clamp(18px, 2vw, 28px) var(--num); }
.fix p { grid-column: 2 / -1; color: #cbc6d6; max-width: 720px; }
.analysis { display: grid; grid-template-columns: minmax(260px, 34%) 1fr; gap: 32px; align-items: start; }
.mapbox { position: sticky; top: 86px; }
.mapbox svg { width: 100%; height: auto; max-height: 70vh; overflow: visible; }
.legend, .keys { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font: 400 11px var(--num); text-transform: uppercase; color: var(--mute); }
.keys { margin: 0 0 8px; }
.legend i, .keys i { display: inline-block; width: 18px; height: 3px; vertical-align: middle; margin-right: 6px; }
.chartbox { position: relative; }
#chart { width: 100%; height: 860px; }
.vline { position: absolute; top: 26px; bottom: 30px; left: 0; width: 1px; background: var(--fg); opacity: 0; pointer-events: none; }
.hs { display: flex; overflow-x: auto; border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); margin-top: 36px; scrollbar-width: thin; }
.card { flex: 0 0 290px; padding: 22px; border-right: 1px solid var(--line); transition: background .3s; }
.card:hover { background: var(--bg2); }
.card h4 { font-size: 28px; margin: 6px 0 2px; }
.card .l { font: 700 18px var(--num); margin-bottom: 16px; }
.card table { width: 100%; border-collapse: collapse; font: 400 12px var(--num); }
.card td { padding: 6px 0; border-top: 1px solid var(--line); }
.card td:not(:first-child) { text-align: right; }
.card td:first-child { color: var(--mute); text-transform: uppercase; }
.segs line, .ovl polyline, .base { vector-effect: non-scaling-stroke; }
.ov-a { fill: none; stroke: var(--fg); stroke-width: 3; stroke-linejoin: round; }
.ov-b { fill: none; stroke: var(--ghost); stroke-width: 3; stroke-dasharray: 7 5; stroke-linejoin: round; }
.zoomed .lab { visibility: hidden; } .zoomed .segs { opacity: .3 !important; }
.zreset { margin-top: 10px; }
.setup { margin-top: 12px; } .setup .chip { font-size: 10px; padding: 6px 10px; }
.setupform { margin-top: 14px; max-width: 520px; }

/* ---------- forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.form input { background: transparent; border: 0; border-bottom: 1px solid var(--line2); padding: 10px 0; font: 400 14px var(--num); outline: none; color: var(--fg); }
.form input:focus { border-color: var(--ghost); }
.form .btn { grid-column: 1 / -1; justify-self: start; }

/* ---------- live ---------- */
.live { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.clock { font: 700 clamp(44px, 12vw, 210px) var(--num); letter-spacing: -.04em; line-height: .95; }
.dbar { position: relative; height: 64px; border: 1px solid var(--line2); }
.dbar .fill { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; background: var(--gain); }
.dbar .mid { position: absolute; left: 50%; top: -8px; bottom: -8px; width: 1px; background: var(--fg); }
.dbar span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 700 26px var(--num); }
.lgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.gauges { display: grid; grid-template-columns: 1fr 1fr 56px 56px; gap: 18px; align-items: end; }
.gauges .v { font: 700 clamp(40px, 6vw, 92px) var(--num); line-height: 1; }
.pedal { height: 170px; border: 1px solid var(--line2); position: relative; }
.pedal div { position: absolute; left: 0; right: 0; bottom: 0; height: 0; }
#lmap { width: 100%; max-height: 50vh; overflow: visible; }

/* ---------- references: stacked rows, not cards ---------- */
.panels { margin: 44px 0 80px; border-top: 1px solid var(--line2); }
.panel { display: grid; grid-template-columns: 64px minmax(0, 300px) minmax(0, 1fr); gap: 12px 32px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.panel > *:not(.mono):not(h3) { grid-column: 3; }
.panel > h3 { grid-column: 2; grid-row: 1 / span 6; font-size: 34px; }
.panel > .mono:first-child { grid-column: 1; grid-row: 1; color: var(--acc); font-weight: 700; }
.panel p { color: #cbc6d6; max-width: 640px; }
.panel code { font: 400 11px var(--num); color: var(--mute); word-break: break-all; }

/* ---------- stats / session ---------- */
.board { overflow-x: auto; border-top: 1px solid var(--line2); margin-top: 36px; }
.board table { width: 100%; border-collapse: collapse; min-width: 640px; }
.board th { text-align: left; font: 400 10px var(--num); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.board td { padding: 15px 14px 15px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.board tr[data-go]:hover td { background-color: rgba(157,107,255,.08); }
.board .pb { color: var(--acc); }
.board td b { font: 700 15px var(--disp); letter-spacing: .02em; }
.k-ideal b { color: var(--acc); } .k-ghost b { color: var(--ghost); }
.heat tr.cut td { opacity: .5; }
#prog, #sspeed { width: 100%; height: 420px; margin-top: 36px; }
.sess { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line2); margin-top: 28px; }
.scard { flex: 1 1 260px; padding: 20px 20px 20px 0; display: flex; flex-direction: column; gap: 6px; text-decoration: none; border-bottom: 1px solid var(--line); transition: color .3s; }
.scard:hover { color: var(--ghost); } .scard b { font-size: 30px; }
.vary { margin-top: 36px; border-top: 1px solid var(--line2); }
.vrow { display: grid; grid-template-columns: 220px 1fr 120px 130px; gap: 16px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.vrow .wide { font-size: 22px; }
.vbar { height: 8px; background: var(--bg2); }
.vbar i { display: block; height: 100%; background: var(--acc); }
.vrow:first-child .vbar i { background: var(--loss); }

/* ---------- footer ---------- */
.foot { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 16px 32px; padding: 36px var(--pad) max(36px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line2); margin-top: 40px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot a { text-decoration: none; transition: color .3s; } .foot a:hover { color: var(--ghost); }
.foot .wide { font-size: 20px; margin-right: 14px; }
.foot .note { display: block; margin-top: 8px; text-transform: none; letter-spacing: .02em; }

body.public .admin-only, [hidden] { display: none !important; }

@media (max-width: 860px) {
  .row { grid-template-columns: 30px 1fr auto 24px; gap: 10px; padding: 16px 0; } .row .hide-s { display: none; } .row .del { opacity: .5; }
  section { padding: 96px 0 40px; }
  .duel { grid-template-columns: 1fr; } .side.b { text-align: left; }
  .analysis, .lgrid { grid-template-columns: 1fr; } .mapbox { position: static; }
  #chart { height: 720px; } #prog, #sspeed { height: 320px; }
  .form { grid-template-columns: 1fr; }
  .fix li { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .card { flex-basis: 80vw; }
  .gauges { grid-template-columns: 1fr 1fr 44px 44px; gap: 12px; } .pedal { height: 120px; }
  .dbar { height: 52px; } .dbar span { font-size: 20px; }
  .htrack { right: 50%; transform: translate(50%, -62%); width: 125vw; opacity: .5; }
  .hud { position: static; margin-top: 36px; gap: 22px; flex-wrap: wrap; }
  .step { grid-template-columns: 64px minmax(0, 1fr); gap: 18px 16px; padding: 30px 0; } .step .viz { grid-column: 1 / -1; } .step .no { font-size: 40px; } .viz-bars > div { grid-template-columns: minmax(0, 110px) 1fr 56px; gap: 10px; }
  .panel { grid-template-columns: 40px minmax(0, 1fr); } .panel > h3 { grid-row: auto; } .panel > *:not(.mono):not(h3) { grid-column: 2; }
  .vrow { grid-template-columns: 1fr auto; } .vrow .vbar { grid-column: 1 / -1; order: 3; } .vrow .mono { display: none; }
}
@media (max-width: 560px) {
  .nav { padding-inline: 16px; } .nav nav { gap: 12px; } .roll { letter-spacing: .02em; font-size: 11px; }
  .nav .roll.cmp { display: none; }   /* no room; every lap opens Compare */
  .logo span { display: none; } .sig { padding: 4px; } .sig-txt { display: none; }
  main { padding: 0 16px; }
  .big { font-size: clamp(30px, 9.4vw, 112px); } .mega { font-size: clamp(44px, 14.5vw, 210px); }
  .stat { padding-right: 28px; } .stat .v { font-size: 22px; }
  .side .t { font-size: 34px; } .row .time { font-size: 22px; }
  .cue { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (max-width: 560px) {
  .fix li { grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; } .fix .n { white-space: nowrap; }
  .fix .l { grid-column: 2; }
  .fix h3, .fix li:first-child h3 { font-size: clamp(26px, 8.4vw, 40px); overflow-wrap: anywhere; }
  .fix p { grid-column: 2; }
}

/* ---------- live: second-monitor dash ---------- */
.lv { min-height: 100vh; padding: 76px 0 24px; display: flex; flex-direction: column; gap: 14px; }
.lv-top { display: flex; flex-wrap: wrap; gap: 6px; }
.tag2 { padding: 6px 10px; border: 1px solid var(--line2); font: 700 11px var(--num); text-transform: uppercase; letter-spacing: .06em; }
.tag2.hi { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.tag2.good { border-color: var(--gain); color: var(--gain); } .tag2.bad { background: var(--loss); color: var(--bg); border-color: var(--loss); }
.tag2.warn { border-color: var(--acc); color: var(--acc); } .tag2.dim { color: var(--mute); }
.flag-yellow { background: #ffd23f; color: #000; border-color: #ffd23f; } .flag-blue { background: #2f6bff; color: #fff; border-color: #2f6bff; }
.flag-black, .flag-penalty, .flag-white { background: #fff; color: #000; border-color: #fff; }
.flag-chequered { background: repeating-conic-gradient(#000 0 25%, #fff 0 50%) 0 0 / 10px 10px; color: #000; }
.rpm { display: grid; grid-template-columns: repeat(18, 1fr); gap: 4px; height: 10px; }
.rpm i { background: var(--bg2); } .rpm i.g { background: var(--gain); } .rpm i.a { background: var(--acc); } .rpm i.r { background: var(--loss); }
.rpm.flash i { animation: pulse .16s infinite; }
.lv-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .9fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.lv .clock { font-size: clamp(44px, 6vw, 118px); } .clock.bad { color: var(--loss); }
.trio { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 22px; margin: 10px 0 14px; }
.trio small, .blk small { display: block; font: 400 10px var(--num); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.trio b { font: 700 clamp(16px, 1.5vw, 24px) var(--num); }
.dlabel { margin: 10px 0 4px; } .lv .dbar { height: 42px; } .lv .dbar span { font-size: 22px; }
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; border-top: 1px solid var(--line2); }
.sec { padding: 10px 10px 10px 0; } .sec b { display: block; font: 700 24px var(--num); } .sec span { font-size: 10px; }
.sec.pb b { color: var(--acc); } .sec.ok b { color: var(--gain); } .sec.slow b { color: var(--loss); }
.cflash { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line2); }
.cflash > b { font: 700 24px var(--disp); text-transform: uppercase; } .cflash span b { font: 700 18px var(--num); }
.lv-b svg { width: 100%; height: auto; max-height: 56vh; overflow: visible; }
.stand { margin-top: 8px; max-height: 58vh; overflow-y: auto; }
.stand table { min-width: 0; } .stand td, .stand th { padding: 8px 10px 8px 0; font-size: 13px; }
.stand tr.me td { background: rgba(157,107,255,.2); }
.lv-bot { display: grid; grid-template-columns: 1fr 1.4fr 1fr .9fr 1.1fr .9fr; gap: 24px; border-top: 1px solid var(--line2); padding-top: 14px; }
.big-n { display: block; font: 700 clamp(24px, 2.4vw, 42px) var(--num); line-height: 1.05; margin-bottom: 4px; }
.pedals { display: flex; gap: 8px; margin-top: 6px; } .lv .pedal { height: 64px; width: 22px; }
.tyres { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.ty { border: 1px solid var(--line); padding: 6px 8px; } .ty b { display: block; font: 700 22px var(--num); } .ty span { font: 400 11px var(--num); color: var(--mute); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin-top: 6px; font: 400 12px var(--num); }
.kv span { color: var(--mute); text-transform: uppercase; } .kv b { font-weight: 700; }
.mini { list-style: none; margin-top: 6px; font: 400 12px var(--num); } .mini a { text-decoration: none; } .mini a:hover { color: var(--ghost); }
@media (max-width: 1200px) { .lv-grid { grid-template-columns: 1fr 1fr; } .lv-c { grid-column: 1 / -1; } .lv-bot { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .lv-grid, .lv-bot { grid-template-columns: 1fr; } .trio { grid-template-columns: 1fr 1fr; } }
