@font-face { font-family: "Geist Mono"; src: url(fonts/geist-mono-latin-ext.woff2) format("woff2"); font-weight: 100 900; font-display: swap;
  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"; src: url(fonts/geist-mono-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #07080a; --bg2: #0c0d10;
  --panel: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  --panel-solid: #111216; --panel2: rgba(255,255,255,.07);
  --rule: rgba(255,255,255,.08); --rule2: rgba(255,255,255,.15);
  --text: #f3f4f6; --dim: #9a9fa9; --faint: #5f646d;
  --hot: #ff8a2a; --hot2: #ffc24f; --hot-dim: rgba(255,138,42,.14);
  --c0: #6f7fe8; --c1: #1ea392; --c2: #c0822a; --c3: #d36f93;
  --r: 14px; --r2: 20px; --gut: clamp(16px, 3vw, 32px);
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; color: var(--text);
  background:
    radial-gradient(1000px 520px at 12% -8%, color-mix(in srgb, var(--c0) 16%, transparent), transparent 70%),
    radial-gradient(800px 480px at 92% -6%, color-mix(in srgb, var(--c1) 12%, transparent), transparent 70%),
    var(--bg);
  font: 14px/1.5 var(--sans);
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
}
.dim { color: var(--dim); }
.small { font-size: 12px; }
.mono, .kmh, .clock, .verdict .num, td, .hud .dist, .spec, .tip, .plot text, kbd { font-family: var(--mono); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 2px; }
kbd { font-size: 11px; padding: 1px 6px; border-radius: 6px; background: var(--panel2); border: 1px solid var(--rule); color: var(--text); }

/* panel: wspólna „szklana” karta */
.card { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 20px 50px -30px rgba(0,0,0,.8); }

/* nagłówek */
.top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 20px var(--gut) 8px; max-width: 1280px; margin: 0 auto; }
.brand { font-size: 19px; letter-spacing: -.02em; display: flex; align-items: center; gap: 2px; }
.brand b { font-weight: 700; }
.logo { width: 16px; height: 16px; margin-right: 9px; border-radius: 4px; align-self: center;
  background: linear-gradient(90deg, var(--c0) 0 50%, var(--c1) 50% 100%); transform: skewX(-18deg);
  box-shadow: 0 0 18px color-mix(in srgb, var(--c0) 50%, transparent); }
.tag { margin: 0; color: var(--dim); font-size: 13px; }
.share { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--panel2); color: var(--dim); cursor: pointer; font-size: 12.5px;
  transition: color .15s, border-color .15s, background .15s; }
.share:hover { color: var(--text); border-color: var(--rule2); }
.share.ok { color: #2fe07a; border-color: rgba(47,224,122,.35); }
.share svg { width: 14px; height: 14px; }
main { max-width: 1280px; margin: 0 auto; padding: 0 var(--gut) 48px; }

/* wybór aut */
.setup { padding: 12px 0 16px; }
.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.slot { position: relative; border: 1px solid var(--rule); border-radius: var(--r); padding: 11px 12px 11px 18px; min-width: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, transparent), color-mix(in srgb, var(--c) 3%, transparent)), var(--panel-solid);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05); transition: border-color .15s, transform .25s var(--ease); }
.slot:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--rule)); }
.slot::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c);
  box-shadow: 0 0 10px color-mix(in srgb, var(--c) 70%, transparent); }
.slot select { width: 100%; background: transparent; border: 0; padding: 2px 24px 2px 0; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em;
  appearance: none; -webkit-appearance: none; cursor: pointer; text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%);
  background-position: calc(100% - 9px) 55%, calc(100% - 4px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.slot select option, .slot select optgroup { background: var(--panel-solid); color: var(--text); }
.slot .spec { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; font-size: 11px; color: var(--dim); }
.slot .spec span { padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.06); white-space: nowrap; }
.slot .spec span:first-child { color: var(--text); }
.slot .x { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border: 0; background: none; color: var(--faint); cursor: pointer; border-radius: 8px; display: none; }
.slot.removable .x { display: block; }
.slot.removable select { padding-right: 48px; background-position: calc(100% - 35px) 55%, calc(100% - 30px) 55%; }
.slot .x:hover { color: var(--text); background: var(--panel2); }
.add { border: 1px dashed var(--rule2); background: none; border-radius: var(--r); color: var(--dim); cursor: pointer; min-height: 70px;
  transition: color .15s, border-color .15s, background .15s; }
@media (max-width: 760px) { .add { min-height: 40px; } }
.add:hover { color: var(--text); border-color: var(--dim); background: rgba(255,255,255,.03); }

.target { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-top: 14px; }
.target .lbl { color: var(--dim); font-size: 13px; }
.seg { display: inline-flex; background: rgba(255,255,255,.04); border: 1px solid var(--rule); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 5px 13px; border-radius: 999px; cursor: pointer; color: var(--dim); white-space: nowrap;
  font-weight: 500; transition: color .15s, background .2s var(--ease), box-shadow .2s; }
.seg button:hover { color: var(--text); }
.seg button[aria-checked="true"] { background: rgba(255,255,255,.1); color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 8px rgba(0,0,0,.35); }
.seg.small button { padding: 4px 10px; font-size: 12.5px; }

/* scena */
.stage { background: var(--panel), var(--panel-solid); border: 1px solid var(--rule); border-radius: var(--r2); overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 30px 60px -30px rgba(0,0,0,.9); }
/* tor: HUD z lewej, każdy wiersz na wysokości pasa swojego auta (pasy w canvasie: 8 px od góry, 28 px od dołu na linijkę) */
.track { --hudw: 216px; position: relative; padding-left: var(--hudw); }
.hud { position: absolute; left: 0; top: 0; bottom: 0; width: var(--hudw); display: flex; flex-direction: column;
  padding: 8px 0 28px; border-right: 1px solid var(--rule); background: rgba(0,0,0,.18); }
.hud .car { flex: 1 1 0; min-height: 0; overflow: hidden; padding: 6px 14px; display: flex; flex-direction: column; justify-content: center;
  border-top: 1px solid var(--rule); position: relative;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 9%, transparent), transparent 85%); }
.hud .car:first-child { border-top: 0; }
.hud .car::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 0 3px 3px 0; background: var(--c);
  box-shadow: 0 0 10px color-mix(in srgb, var(--c) 70%, transparent); }
.hud .nm { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 7px; }
.hud .nm i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; box-shadow: 0 0 8px var(--c); }
.hud .big { display: flex; align-items: baseline; gap: 5px; margin-top: 1px; }
.hud .kmh { font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; }
.hud .u { color: var(--dim); font-size: 11.5px; }
.hud .gear { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--dim); border: 1px solid var(--rule2); border-radius: 7px; padding: 1px 7px;
  transition: color .15s, border-color .15s, background .15s; }
.hud .gear.shift { color: var(--bg); background: var(--c); border-color: var(--c); box-shadow: 0 0 12px var(--c); }
.hud .sub { font-size: 11.5px; color: var(--dim); display: flex; gap: 2px 8px; flex-wrap: wrap; }
.hud .sub b { color: var(--text); font-weight: 500; }
.hud .meter { height: 3px; background: rgba(255,255,255,.07); border-radius: 2px; margin-top: 6px; overflow: hidden; flex: none; }
.hud .meter i { display: block; height: 100%; width: 0; border-radius: 2px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 70%, black), var(--c), color-mix(in srgb, var(--c) 60%, white)); box-shadow: 0 0 10px var(--c); }
.hud .car.hit .nm::after, .hud .car.miss .nm::after { margin-left: auto; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 999px; flex: none; }
.hud .car.hit .nm::after { content: "✓"; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.hud .car.miss .nm::after { content: "nie osiąga"; color: var(--faint); background: rgba(255,255,255,.05); }

.road-wrap { position: relative; }
#road { display: block; width: 100%; height: max(clamp(190px, 30vw, 320px), calc(var(--n, 2) * 84px + 36px)); touch-action: pan-y; cursor: grab; }
#road:active { cursor: grabbing; }
.clock { position: absolute; top: 10px; right: 12px; font-size: 22px; font-weight: 600; letter-spacing: -.03em;
  background: rgba(7,8,10,.6); border: 1px solid var(--rule); padding: 3px 12px; border-radius: 999px; backdrop-filter: blur(8px); pointer-events: none; }
.clock small { font-size: 12px; color: var(--dim); margin-left: 3px; font-weight: 400; }
.scale-note { position: absolute; left: 12px; top: 10px; font-size: 11px; color: var(--dim); pointer-events: none;
  background: rgba(7,8,10,.6); border: 1px solid var(--rule); padding: 3px 10px; border-radius: 999px; backdrop-filter: blur(8px); }
.lights { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(7,8,10,.78), rgba(7,8,10,0)); }
.lights[hidden] { display: none; }
.lights i { width: 26px; height: 26px; border-radius: 50%; background: #2a1414; box-shadow: inset 0 0 0 2px #3a1d1d; transition: background .08s, box-shadow .08s; }
.lights i.on { background: #ff3b30; box-shadow: 0 0 22px #ff3b30, inset 0 0 0 2px #ff6b62; }
.lights i.go { background: #10261a; box-shadow: inset 0 0 0 2px #1c3a28; }
.lights i.go.on { background: #2fe07a; box-shadow: 0 0 26px #2fe07a, inset 0 0 0 2px #7cf0ad; }

.controls { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--rule); background: rgba(255,255,255,.02); }
.btn { border: 1px solid var(--rule2); background: var(--panel2); border-radius: 999px; height: 36px; min-width: 36px; padding: 0 14px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: border-color .15s, background .15s, transform .15s var(--ease); }
.btn:hover { border-color: var(--dim); background: rgba(255,255,255,.1); }
.btn:active { transform: scale(.96); }
.btn.primary { background: linear-gradient(135deg, var(--hot), var(--hot2)); color: #1a0c00; border-color: transparent;
  box-shadow: 0 0 0 1px rgba(255,138,42,.3), 0 6px 18px -6px rgba(255,138,42,.7); }
.btn.primary:hover { filter: brightness(1.08); }
.ico-play { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.ico-pause { width: 11px; height: 13px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
#scrub { flex: 1; min-width: 60px; accent-color: var(--hot); height: 28px; }

.verdict { border-top: 1px solid var(--rule); padding: 18px 20px 20px; min-height: 96px; display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; align-items: center; }
.verdict .num { font-size: clamp(40px, 7vw, 68px); font-weight: 600; letter-spacing: -.05em; line-height: 1; color: var(--dim); transition: color .3s; white-space: nowrap; }
.verdict .num small { font-size: .38em; margin-left: 6px; letter-spacing: 0; font-weight: 500; }
.verdict.done .num { background: linear-gradient(135deg, var(--hot), var(--hot2)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(255,138,42,.35)); }
.verdict .txt { font-size: 14px; color: var(--dim); max-width: 70ch; }
.verdict .txt b { color: var(--text); font-weight: 600; }
.verdict .txt .cn { font-weight: 600; color: var(--c); }
.verdict .txt p { margin: 0 0 4px; }
.verdict.flash { animation: flash 1.2s ease-out; }
@keyframes flash { 0% { background: var(--hot-dim); } 100% { background: transparent; } }

/* wykresy */
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.chart { margin: 0; padding: 14px 16px 10px; min-width: 0; }
.chart figcaption { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.chart figcaption .dim { font-weight: 400; margin-left: 6px; }
.plot { position: relative; height: 230px; touch-action: pan-y; }
.plot svg { display: block; width: 100%; height: 100%; overflow: visible; cursor: crosshair; }
.plot .grid line { stroke: var(--rule); stroke-width: 1; }
.plot .axis text { fill: var(--faint); font-size: 11px; }
.plot .series path { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.plot .ghost path { fill: none; stroke-width: 1.5; opacity: .14; }
.plot .ref { stroke: var(--faint); stroke-dasharray: 3 4; }
.plot .key { stroke: var(--hot); stroke-width: 1; stroke-dasharray: 2 3; }
.plot .keylbl { fill: var(--hot); font-size: 11px; }
.plot .head { stroke: var(--text); stroke-opacity: .45; stroke-width: 1; }
.plot .dot { stroke: var(--panel-solid); stroke-width: 2; }
.plot .end text { font-size: 11px; font-weight: 600; paint-order: stroke; stroke: var(--panel-solid); stroke-width: 4px; }

.tip { position: fixed; z-index: 10; pointer-events: none; background: rgba(17,18,22,.85); backdrop-filter: blur(10px); border: 1px solid var(--rule2); border-radius: 10px;
  padding: 8px 11px; font-size: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.55); min-width: 150px; }
.tip .h { color: var(--dim); margin-bottom: 3px; }
.tip .r { display: flex; align-items: center; gap: 8px; }
.tip .r i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.tip .r b { margin-left: auto; font-weight: 600; padding-left: 12px; }

/* podsumowanie etapów (nad sceną) */
.summary { margin-bottom: 12px; padding: 16px; }
.sum-head { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.summary h2 { font-size: 13px; margin: 0; }
.summary h2 .dim { font-weight: 400; margin-left: 6px; }
.cmp { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.cmp .lbl { color: var(--dim); font-size: 12px; }
.cmp .seg button { display: inline-flex; align-items: center; gap: 6px; }
.cmp .seg button i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.cmp .seg button[aria-checked="true"] { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent); }
.stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 960px) { .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stages { grid-template-columns: 1fr; } }
.stg { border: 1px solid var(--rule); border-radius: var(--r); padding: 12px 14px; background: rgba(255,255,255,.025); min-width: 0; }
.stg h3 { margin: 0 0 8px; font-size: 12.5px; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.stg h3 b { color: var(--c); font-weight: 600; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stg .rows { display: flex; flex-direction: column; }
.stg:not(.pending) .row { order: var(--o); }
.stg { transition: opacity .35s var(--ease), border-color .35s; }
.stg.pending { opacity: .42; border-style: dashed; }
.stg.pending .t, .stg.pending h3 b, .stg.pending .gap, .stg.pending .bar i { visibility: hidden; }
.stg .wait { display: none; font-style: normal; font-weight: 400; font-size: 11px; color: var(--faint); }
.stg.pending .wait { display: inline; }
.stg:not(.pending) .bar i { animation: grow .5s var(--ease); }
@keyframes grow { from { width: 0; } }
.stg .row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 3px 8px; align-items: center; font-size: 12.5px; margin: 6px 0; }
.stg .row i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.stg .row .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--dim); }
.stg .row .t { font-family: var(--mono); font-weight: 600; }
.stg .row .t.na { color: var(--faint); font-weight: 400; }
.stg .row .d { font-family: var(--mono); font-size: 10.5px; font-weight: 500; text-align: right; line-height: 1; }
.stg .row .d.neg { color: #2fe07a; }
.stg .row .d.pos { color: #ff6b62; }
.stg.pending .row .d { visibility: hidden; }
.stg .row.best .t { color: var(--c); }
.stg .row.best .nm { color: var(--text); }
.stg .row.ref .nm { color: var(--text); }
.stg .bar { grid-column: 2; height: 4px; background: rgba(255,255,255,.07); border-radius: 2px; overflow: hidden; }
.stg .bar i { display: block; width: var(--w); height: 100%; border-radius: 2px; background: var(--c); box-shadow: 0 0 8px var(--c); }
.stg .gap { font-size: 11.5px; color: var(--dim); margin: 10px 0 0; padding-top: 8px; border-top: 1px solid var(--rule); }
.stg .gap b { color: var(--text); font-weight: 600; }
.stg .gap .cn { color: var(--c); font-weight: 600; }

/* tabela (zwijana) */
.splits { margin-top: 12px; padding: 0 16px; }
.splits summary { list-style: none; cursor: pointer; padding: 14px 0; display: flex; align-items: center; gap: 10px; }
.splits summary::-webkit-details-marker { display: none; }
.splits summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 1.5px solid var(--dim); border-bottom: 1.5px solid var(--dim);
  transform: rotate(-45deg); transition: transform .2s var(--ease); }
.splits[open] summary::after { transform: rotate(45deg); }
.splits summary:hover h2 { color: var(--text); }
.splits h2 { font-size: 13px; margin: 0; color: var(--dim); transition: color .15s; }
.splits[open] h2 { color: var(--text); }
.splits h2 .dim { font-weight: 400; margin-left: 6px; }
.tbl-wrap { overflow-x: auto; padding-bottom: 8px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { padding: 8px 10px; text-align: right; border-top: 1px solid var(--rule); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; color: var(--dim); font-weight: 400; font-family: var(--sans); }
thead th { border-top: 0; font-weight: 600; font-size: 12px; }
thead th span { display: inline-flex; align-items: center; gap: 6px; }
thead th i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
td.best { color: var(--c); font-weight: 650; }
td.best::after { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--c); margin-left: 7px; vertical-align: 2px; }
td.na { color: var(--faint); }
tr.src td { color: var(--faint); font-size: 12px; }
tr.src td.meas { color: #2fe07a; }

.note { margin-top: 20px; font-size: 12.5px; color: var(--dim); max-width: 90ch; }
.note b { color: var(--text); font-weight: 600; }
.note p { margin: 0 0 8px; }
.note .keys { display: flex; gap: 10px 16px; flex-wrap: wrap; align-items: center; }

/* dialog */
dialog { background: var(--panel-solid); color: var(--text); border: 1px solid var(--rule2); border-radius: var(--r2); padding: 20px; width: min(460px, calc(100vw - 32px));
  box-shadow: 0 30px 80px rgba(0,0,0,.7); }
dialog[open] { animation: pop .22s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
dialog::backdrop { background: rgba(0,0,0,.55); backdrop-filter: blur(6px); }
dialog h2 { margin: 0 0 14px; font-size: 16px; letter-spacing: -.01em; }
dialog label { display: block; font-size: 12px; color: var(--dim); margin-bottom: 10px; }
dialog input, dialog select { display: block; width: 100%; margin-top: 4px; background: var(--bg2); border: 1px solid var(--rule2); border-radius: 10px; padding: 8px 10px; color: var(--text);
  transition: border-color .15s, box-shadow .15s; }
dialog input:focus, dialog select:focus { outline: 0; border-color: var(--hot); box-shadow: 0 0 0 3px var(--hot-dim); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

@media (max-width: 760px) {
  .cmp { margin-left: 0; }
  .charts { grid-template-columns: 1fr; }
  .plot { height: 200px; }
  .track { --hudw: 128px; }
  .hud .car { padding: 4px 9px 4px 11px; }
  .hud .kmh { font-size: 22px; }
  .hud .u { display: none; }
  .hud .sub { font-size: 10.5px; }
  .hud .sub .hit { display: none; }
  .verdict { grid-template-columns: 1fr; padding: 14px; }
  .controls { flex-wrap: wrap; padding: 10px; }
  #scrub { order: 5; flex-basis: 100%; }
  .clock { font-size: 18px; top: 8px; right: 10px; }
  .scale-note { display: none; }
  .share span { display: none; }
  .share { padding: 0 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .verdict.flash { animation: none; }
  dialog[open] { animation: none; }
  * { transition: none !important; }
}
