.speed-card {
  --chart-cyan:#73eee4; --chart-amber:#ffca78; --chart-muted:#b2c7d7;
  margin-top:24px; padding:clamp(18px,3vw,36px);
  color:#f1f8ff; background:radial-gradient(95% 160% at 100% 0%,#153647 0,transparent 55%),#0d1b29;
  border:1px solid #34576a; border-radius:12px;
  font:normal 15px/1.5 var(--body,"Segoe UI"),Arial,sans-serif;
  box-shadow:0 17px 50px -30px #010811;
}
.speed-card [hidden]{display:none!important}
.speed-head,.speed-foot,.speed-actions,.speed-legend,.speed-switch{display:flex;align-items:center}
.speed-head,.speed-foot{justify-content:space-between;gap:14px;flex-wrap:wrap}
.speed-head h3{font:700 clamp(30px,3.6vw,46px)/1 var(--display,"Segoe UI"),Arial,sans-serif;letter-spacing:-.025em;margin:0}
.speed-switch{background:#081521;border:1px solid #3a5266;padding:3px;border-radius:6px}
.speed-card button,.speed-card select{font:600 14px/1.3 var(--body,"Segoe UI"),Arial,sans-serif;cursor:pointer}
.speed-switch button{background:transparent;border:0;color:#bccfdd;padding:9px 13px;border-radius:4px}
.speed-switch button[aria-pressed=true]{background:#9cece3;color:#071a21}
.speed-card button:focus-visible,.speed-card select:focus-visible,.speed-card svg:focus-visible,.speed-card summary:focus-visible{outline:2px solid #a7eeff;outline-offset:3px}
.speed-picker{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:18px 0;color:var(--chart-muted);font-size:13px}
.speed-card select{max-width:100%;min-width:0;width:auto;background:#0c1d2c;color:#e5f4fb;border:1px solid #416174;border-radius:5px;padding:7px 10px;color-scheme:dark}
.speed-board{display:grid;grid-template-columns:minmax(172px,.33fr) minmax(0,1fr);border:1px solid #304d61;border-radius:8px;overflow:hidden;background:#0a1724}
.speed-inspector{display:flex;flex-direction:column;justify-content:center;padding:clamp(15px,2.25vw,29px);border-right:1px solid #284454;background:linear-gradient(135deg,#163849,#0e2231 72%)}
.speed-context,.speed-tiles>div>span{font:700 11px/1.4 var(--mono,monospace);text-transform:uppercase;letter-spacing:.105em;color:#bbd3e0}
.speed-context{color:#9be7e4}
.speed-number{margin:7px 0 22px;display:flex;align-items:baseline;gap:7px;white-space:nowrap}
.speed-number strong{font:700 clamp(44px,5.2vw,75px)/.94 var(--display,"Segoe UI"),Arial,sans-serif;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
.speed-number small,.speed-tiles small{font:700 10px var(--mono,monospace);letter-spacing:.035em;color:#b2c7d7}
.speed-number small{font-size:14px}
.speed-tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px;border-top:1px solid #375161;padding-top:14px}
.speed-tiles>div>span{font-size:10px;letter-spacing:.06em}
.speed-tiles b{font:700 clamp(20px,2.2vw,31px)/1 var(--display,"Segoe UI"),Arial,sans-serif;color:#a6deff;font-variant-numeric:tabular-nums}
.speed-tiles .tile-peak{color:var(--chart-amber)}
.speed-tiles small{font-size:9px;margin-left:3px}
.speed-graphic{min-width:0;padding:13px clamp(8px,1.6vw,21px) 12px;background:radial-gradient(100% 105% at 75% 0%,#122c3d 0,transparent 75%)}
.speed-legend{gap:15px;justify-content:flex-end;flex-wrap:wrap;color:#cddce7;font-size:12px;line-height:18px;margin-bottom:2px}
.speed-legend span{display:inline-flex;align-items:center;gap:6px}
.speed-legend span:before{content:"";width:15px;border-top:3px solid #6bd9ec}
.speed-legend .key-mean:before{border-color:#bcc9d5;border-top-style:dotted}
.speed-legend .key-peak:before{border:0;width:7px;height:7px;transform:rotate(45deg);background:var(--chart-amber)}
.speed-plot{display:block;width:100%;height:226px;cursor:crosshair;overflow:visible}
.speed-plot .axis{fill:#b1c6d4;font:11px var(--mono,monospace)}
.speed-plot .unit{font-weight:700;font-size:10px;letter-spacing:.06em}
.speed-plot .gridline{stroke:#334e5d;stroke-dasharray:2 5}
.speed-plot .baseline{stroke:#456273}.speed-plot .cursor{stroke:#a6d7e1;stroke-dasharray:2 4}
.speed-plot .mean-rule{stroke:#cbd8e2;stroke-dasharray:2 6;stroke-width:1.3}
.speed-plot .trace{fill:none;stroke-width:3;stroke-linejoin:round;stroke-linecap:round}
.speed-plot .trace.peak{stroke-width:2;stroke-dasharray:6 5}
.speed-plot .dot{fill:#9ee8f3;stroke:#173647;stroke-width:.9}
.speed-plot .diamond{fill:#ffc46f;stroke:#172a35;stroke-width:1.1}
.speed-plot .halo{fill:#7bf5e6;fill-opacity:.19;stroke:#7bf5e6;stroke-opacity:.5}
.speed-plot .chosen{fill:#e3fffb;stroke:#49cfc4;stroke-width:2.3}
.speed-plot .chosen-peak{fill:#152733;stroke:#ffc46f;stroke-width:2}
.speed-plot .index-badge{fill:#244551;stroke:#43717b}
.speed-plot .index-label{fill:#c7f8f2;font:700 10px var(--mono,monospace)}
.speed-foot{margin-top:12px;color:var(--chart-muted);font-size:14px;font-variant-numeric:tabular-nums}
.speed-actions{gap:6px}
.speed-actions button{background:#12293a;border:1px solid #416172;border-radius:4px;color:#e3f5ff;padding:5px 12px;min-height:34px}
.speed-actions button:disabled{opacity:.4;cursor:default}.speed-actions .speed-drill{color:var(--chart-cyan)}
.speed-table{margin-top:11px}.speed-table summary{cursor:pointer;color:#aec8d9;font-size:13px}
.speed-table>div{max-height:220px;overflow:auto}.speed-table table{border-collapse:collapse;width:100%;margin-top:8px;font-size:13px}
.speed-table th,.speed-table td{padding:5px 8px;border-bottom:1px solid #2c4354;text-align:left}.speed-empty{color:var(--chart-muted);margin:17px 0 0}
.replay-console{--shot-accent:#79def3;--shot-soft:#69c4e32c;border-radius:10px}
.replay-console[data-result=goal]{--shot-accent:#7af1c3;--shot-soft:#6cecb32c}
.replay-console[data-result=wide]{--shot-accent:#ffc679;--shot-soft:#ffc67932}
.replay-console .target-panel{background-image:radial-gradient(ellipse at 50% 64%,#1c41565c,transparent 68%),linear-gradient(#69a8c710 1px,transparent 1px),linear-gradient(90deg,#69a8c710 1px,transparent 1px);background-size:auto,26px 26px,26px 26px}
.replay-console .net{border-color:#b3d4e4;border-bottom-color:#7396a9;background-color:#0c1e2a}
.replay-console #result{color:var(--shot-accent)}
.replay-console .target[aria-pressed=true]:before{background:var(--shot-accent);box-shadow:0 0 0 5px var(--shot-soft),0 0 18px var(--shot-soft)}
#targets.dense .target:not([aria-pressed=true]){font-size:0;width:15px;height:15px}
#targets.dense .target:not([aria-pressed=true]):before{width:9px;height:9px;background:#558bab;border:1px solid #a3d5eb}
#targets.dense .target:focus-visible{z-index:3}
@media(max-width:730px){
  .speed-board{grid-template-columns:minmax(0,1fr)}
  .speed-inspector{display:grid;grid-template-columns:.8fr 1.3fr;column-gap:16px;align-items:center;padding:16px 18px;border:0;border-bottom:1px solid #304d61}
  .speed-number{grid-row:2;margin:3px 0 0}.speed-number strong{font-size:45px}.speed-number small{font-size:11px}
  .speed-tiles{grid-column:2;grid-row:1/3;border:0;border-left:1px solid #3b5664;padding:0 0 0 14px}
  .speed-legend{gap:12px}.speed-context{font-size:10px}
}
@media(max-width:410px){
  .speed-card{padding:14px}.speed-picker{display:grid}.speed-card select{width:100%}
  .speed-number strong{font-size:37px}.speed-inspector{padding:13px;column-gap:9px}.speed-tiles{gap:4px;padding-left:9px}
  .speed-head{gap:10px}.speed-switch button{padding:7px 10px}.speed-legend{font-size:11px}
}


.history-dates{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px 16px;margin:18px 0 8px}
.history-dates label{display:grid;gap:4px;min-width:0;color:var(--chart-muted);font-size:13px}
.history-dates input,.history-dates button{box-sizing:border-box;min-height:36px;border:1px solid #416174;border-radius:5px;background:#0c1d2c;color:#e5f4fb;padding:5px 10px;font:inherit;color-scheme:dark}
.history-dates input:focus-visible{outline:2px solid #a7eeff;outline-offset:2px}
.history-dates input[aria-invalid=true]{border-color:#ffc26c}
.history-dates button[aria-pressed=true]{color:#0a2028;background:#9cece3;border-color:#9cece3}
.range-count{align-self:center;color:var(--chart-muted);font-size:13px}
.replay-console[hidden]{display:none}
@media(max-width:510px){.history-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.history-dates input{width:100%;padding:5px}.history-dates button{justify-self:start}}
