@font-face{font-family:RaceDisplay;src:url('font-racing-display.ttf') format('truetype');font-weight:700;font-style:italic;font-display:swap}@font-face{font-family:RaceNumbers;src:url('font-racing-numbers.ttf') format('truetype');font-weight:600;font-display:swap}
:root{--mint:#ff3945;--muted:#8d8d97;--border:#2b2b31;--panel:#101013;background:#060607;color:#f2f2f4;font-family:'Segoe UI',sans-serif}body{background:#060607}::selection{background:#ad2632;color:white}.app-header,.live-view .app-header{background:#09090b;border-bottom:1px solid #303036;box-shadow:0 2px 0 #b8243018}.app-header>strong{font-family:RaceDisplay,'Arial Narrow',sans-serif;font-style:italic;font-size:28px;letter-spacing:1.5px}.app-header>strong span{color:#ff3945}#title,h1,h2,h3{font-family:RaceDisplay,'Arial Narrow',sans-serif;font-style:italic;font-weight:700;letter-spacing:.7px}#title{font-size:20px}.eyebrow{color:#ff5a64;letter-spacing:2px}.session-heading .eyebrow{font-family:RaceNumbers,sans-serif;font-weight:600}.session-title-line .picker-chevron{color:#919198}.app-header .session-switcher .session-heading{border-color:#343439}.app-header .session-heading:hover,.session-heading[aria-expanded=true]{background:#ff39450c!important}#status{color:#777780!important}.app-header .session-heading #session-info{font-family:RaceNumbers,sans-serif;font-size:12px}.car-badge{border-radius:1px}.badge-pi{background:#28282e;color:#ececf0}.badge-year{background:#282025;color:#ffb1b7}.app-header .session-heading #title{font-size:20px}
button,.button,select,input{border-radius:3px;border-color:#34343d;background:#19191e;color:#eeeeef;transition:background .18s,border-color .18s,color .18s,box-shadow .18s,transform .18s}button:hover,.button:hover{background:#292024;border-color:#ff3945;box-shadow:0 0 16px #ff394510}button:active,.button:active{transform:translateY(1px)}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:2px solid #ff6a74;outline-offset:3px}input{background:#08080b}.icon-button{border-radius:3px}button svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:square;stroke-linejoin:miter;flex-shrink:0}button:disabled{transform:none}
article,.telemetry-column,.instant-dashboard{border-radius:4px;background:#101013;border-color:#2c2c32}.panel-heading,.instant-heading,.map-footer{border-color:#2b2b32}.panel-heading h2,.instant-heading h2{color:#d8d8df;font-size:14px;letter-spacing:1px}.panel-tag,.hint,small{color:#93939d}.map-footer{color:#93939d;background:#0c0c0f}.telemetry-heading{background:#101013}.right-column .telemetry-heading h2{font-size:15px}.metric-card{border-color:#2a2a30}.metric-name{color:#c9c9d1;font-family:RaceNumbers,sans-serif;font-style:normal;font-weight:600;font-size:13px!important}.metric-number,.timeline-times,.car-badge,.lap-tab small,.g-values b,.tire-info>output,.rpm-block>output,.speed-readout>output,.gear-block output{font-family:RaceNumbers,Consolas,monospace;font-weight:600;font-variant-numeric:tabular-nums}.right-column .metric-number{font-size:23px;letter-spacing:0}.metric-unit{color:#909098}.chart-zoom-tools{background:#17171c;border-color:#2b2b32}.chart-zoom-tools>span{color:#9999a4}.chart-zoom-tools output{color:#ff6772}#chart-pan::-webkit-slider-runnable-track{background:#2a272d;border-radius:1px}#chart-pan::-webkit-slider-thumb{border-radius:1px;background:#8c2631;border-color:#f55a66;box-shadow:inset 0 0 0 2px #ff869122}#chart-pan:active::-webkit-slider-thumb{background:#cc3543}#chart-pan::-moz-range-track{background:#2a272d}#chart-pan::-moz-range-thumb{background:#8c2631;border-color:#f55a66;border-radius:1px}
#analysis-nav button{color:#92929e;background:transparent}#analysis-nav button:hover{background:#ff394510;color:white}#analysis-nav button[aria-pressed=true]{background:#ff39450a;color:white}#analysis-nav button::after{height:3px}#analysis-nav button[aria-pressed=true]::after{box-shadow:0 -3px 14px #ff394520}.lap-tab{min-width:115px}.lap-tab>span{display:flex;align-items:center;gap:7px;font-family:RaceNumbers,sans-serif;font-size:15px;font-weight:600}.lap-tab small{font-size:11px;color:#92929c}.fastest-badge{display:inline-flex;align-items:center;gap:2px;font-family:RaceNumbers,sans-serif;font-style:normal;font-size:9px;letter-spacing:.6px;color:#deb5ff;white-space:nowrap}.fastest-badge svg{width:13px;height:13px;stroke:currentColor;stroke-width:1.2}.fastest-lap{--best:#be89ff}.fastest-lap>span{color:#dab7ff}#analysis-nav .fastest-lap[aria-pressed=true]{background:#8a46c315}#analysis-nav .fastest-lap[aria-pressed=true]::after{background:#be89ff}
#session-picker{border-radius:4px;border-color:#36363d;background:#111114f7;box-shadow:0 25px 60px #000c}#picker-live{background:linear-gradient(110deg,#3c141b,#1a1115);color:#ffe5e8;padding:20px}#picker-live:hover{background:linear-gradient(110deg,#571c26,#261217)}#picker-live[aria-current=page]{box-shadow:inset 3px 0 #ff3945}.picker-live-icon{color:#ff5360}#picker-live small{color:#c39199}#picker-live b{font-family:RaceDisplay,sans-serif;font-size:20px;font-style:italic;letter-spacing:2px}#picker-live-status{color:#96919a}.picker-list-heading{font-family:RaceNumbers,sans-serif;font-size:11px;color:#9999a3}.picker-session{border-radius:2px}.picker-session:hover{background:#242025}.picker-session[aria-current=page]{background:#35181f;box-shadow:inset 2px 0 #ff3945}.picker-session-icon{border-radius:2px;background:#292329;color:#ee8e99}.picker-session b{font-family:RaceNumbers,sans-serif;font-size:16px}.picker-session small{color:#91919c}#picker-sessions{scrollbar-color:#6b303b transparent}.live-view[data-live-connected=true] #live-dot{background:#62df9a;box-shadow:0 0 10px #62df9a66}.live-intro .eyebrow{color:#ff5966}#live-car{font-family:RaceDisplay,sans-serif;font-style:italic;font-size:22px;letter-spacing:1px;color:#f1f1f4}#live-connection{color:#9898a1}.live-workspace{background:radial-gradient(ellipse at 50% 12%,#51151b25,transparent 65%),#070708}.live-view .instrument{border-radius:4px;border-color:#303037;background:#101013}.live-view .rev-instrument,.live-view[data-live-connected=false] .rev-instrument{background:linear-gradient(150deg,#19191d,#0a0a0d);box-shadow:0 10px 60px #0005;border-top:2px solid #97313b}.instrument h3,.live-view .instrument h3{color:#a0a0ac;font-size:11px;letter-spacing:2px}.live-view .instrument h3{font-size:13px}.rev-instrument .gear-block output{color:#f2fff9}.rev-instrument .rpm-block>output{color:#b4f1db}.rev-instrument .speed-readout>output{color:#fff}.rev-instrument .speed-readout>small{color:#a4b5af}.live-view #rpm-scale{color:#7f8c88}.wheel-guide{stroke:#37373f}.wheel-reference{stroke:#9a5e68}.wheel-display output,.live-view .wheel-display output{color:#e5b6be}.wheel-grip{stroke:#25252c}.input-meter>div{background:#2b292f}.input-meter i{background:#dedee6}.brake-input i{background:#ff4657}.g-ring{stroke:#3c353f}.g-axis{stroke:#302a33}.g-display text{fill:#8d788c}.g-display>output{color:#f0b0b9}.g-values span{color:#97919c}.g-values b{color:#ded9e4}.tire-tile{background:#151519;border-color:#33333c;border-radius:3px}.tire-info>span{color:#aaa2ae}.tire-info>small{color:#96909e}.tire-instrument .section-head small{color:#99909d}.tire-body{fill:#09090c;stroke:currentColor;stroke-width:1.5}.tire-shoulder{fill:none;stroke:#5a5a64;stroke-width:1.2}.tire-groove{fill:none;stroke:#41414c;stroke-width:1.5}.tire-tread{stroke:currentColor;stroke-width:1.4;opacity:.85}.tire-sipes{stroke:#62626d;stroke-width:1.2;fill:none}.live-view .tire-tile>svg{width:31px;height:60px}.tire-tile[data-slipping=true]{background:#281816;border-color:#b54f3f}.slip-meter{background:#302b32}.slip-meter i{background:#c2bec9}.tire-key{color:#948c98}
.transport{border-radius:4px;background:#121215ed;border-color:#484048;box-shadow:0 15px 50px #000a;gap:10px}.transport button{width:36px;height:34px;display:inline-flex;align-items:center;justify-content:center;padding:7px;flex-shrink:0;background:#1b1a20;border-color:#3f3942}.transport .play-button{width:44px;min-width:44px;background:#d82e3d;border-color:#ff4e5f;color:#fff}.transport .play-button:hover{background:#f23e50;box-shadow:0 0 20px #ff394535}.transport .play-button svg,.transport .skip-button svg{fill:currentColor;stroke:none}.transport .play-button svg{width:22px;height:22px}.transport #mute{width:32px}.timeline-times{font-size:12px;color:#9993a2}#clock{color:#e9dde4}#rate{background:#1a191f;border-color:#39333c;border-radius:2px}#time,#volume{accent-color:#ff4657}#video-options-button,#video-options{background:#151418ed;border-color:#49404a;border-radius:3px}#video-options label{color:#b9aebd}.video-label{background:#0b090cce;color:#e6dbe5;border-radius:2px}.video-warning{background:#171016ee;color:#f0b9a0;border-radius:2px}#message{background:#251319;border-color:#853342;border-radius:3px;color:#ffd6dd}
/* LIVE-only capture controls and an anchored settings drop-down. */
#manual-controls{display:flex;align-items:center;gap:8px;min-width:0}.record-name-wrap,.settings-wrap{position:relative}#record-name-trigger{display:flex;align-items:center;gap:8px;background:#17171c;max-width:200px;padding:8px 10px;height:36px}#record-name-trigger svg{width:15px;height:15px;color:#ff7a85}#record-name-label{font-family:RaceNumbers,sans-serif;font-weight:600;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.record-button{display:flex;align-items:center;justify-content:center;gap:8px;height:36px;padding:7px 13px;background:#a91f30;border-color:#e0394d;color:#fff;font-family:RaceNumbers,sans-serif;font-weight:600;font-size:15px;letter-spacing:1px}.record-button:hover{background:#dc3044;box-shadow:0 0 22px #ff39452b}.record-button>i{width:9px;height:9px;background:#fff;border-radius:50%}.record-button.recording{background:#3a151d}.record-button.recording svg{fill:#ff5768;stroke:none;width:15px;height:15px}.record-button.recording{animation:rec-edge 2s ease-in-out infinite}@keyframes rec-edge{50%{border-color:#ff8994;box-shadow:0 0 12px #ff394525}}#capture-state{font-family:RaceNumbers,sans-serif;color:#ef8b98;white-space:nowrap;font-size:12px;min-width:0}#capture-state:empty{display:none}.settings-wrap{flex-shrink:0;margin-left:4px}#settings-toggle{height:36px;width:38px;background:transparent;border-color:#4b3b42}#settings-toggle svg{width:23px;height:23px;transition:transform .45s cubic-bezier(.2,.8,.2,1),color .2s}#settings-toggle:hover svg{transform:rotate(60deg);color:#ff6977}#settings-toggle[aria-expanded=true]{background:#461923;border-color:#ff4657}#settings-toggle[aria-expanded=true] svg{transform:rotate(90deg);color:#ff8d98}.header-drop{position:absolute;top:calc(100% + 16px);right:0;z-index:36;width:340px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 110px);overflow:auto;padding:18px;background:#141216f5;backdrop-filter:blur(20px);border:1px solid #58333f;border-top:2px solid #e23648;border-radius:3px;box-shadow:0 20px 55px #000b;opacity:0;transform:translateY(-10px);transform-origin:top right;transition:opacity .18s,transform .2s cubic-bezier(.2,.8,.2,1);scrollbar-width:thin}.header-drop.is-open{opacity:1;transform:translateY(0)}.settings-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px;font-family:RaceDisplay,sans-serif;font-style:italic;font-size:21px;letter-spacing:1px}.settings-title button{border:0;background:transparent;padding:2px 5px;color:#ba8690}.header-drop .switch{font-size:12px;line-height:1.5}.header-drop .obs-settings{margin-top:18px;padding-top:18px;border-top:1px solid #433039;border-bottom:0;padding-bottom:0}.header-drop h3{font-size:16px;margin-bottom:10px;color:#c7b4c0}.header-drop p{font-size:11px;color:#a28b98;line-height:1.5}.header-drop label:not(.switch){display:block;font-size:11px;color:#c5b3c0;margin-top:12px}.header-drop input:not([type=checkbox]){display:block;width:100%;margin-top:5px}.header-drop .settings-actions{display:flex;gap:7px;margin-top:12px}.header-drop .settings-actions button{font-size:10px;padding:8px}.header-drop small{display:block;font-size:10px;color:#8f7b88;margin-top:10px}.header-drop input[type=checkbox]{accent-color:#ed3c51}.header-drop#record-name-menu{left:0;right:auto;width:300px}#record-name-menu label{font-family:RaceNumbers,sans-serif;font-size:13px;margin-top:0}#name-done{margin-top:10px;background:#a32334;border-color:#dc4053;width:100%}.live-view #status{flex:0 1 180px;max-width:22%;margin-left:auto}.live-view .app-header{gap:14px}#session-picker,.header-drop{animation:none}
@media(min-width:601px) and (max-width:1100px){#capture-state{display:none}.live-view #status{flex-basis:80px;max-width:12%}#record-name-trigger{max-width:150px}.live-view .app-header{gap:10px}.session-switcher{min-width:135px}#title{font-size:18px}.live-view .app-header>strong{font-size:24px}}
@media(max-width:600px){.app-header>strong{grid-column:1/3;grid-row:1}.live-view .app-header{height:146px;grid-template-columns:1fr auto auto;grid-template-rows:26px 45px 36px;gap:5px 10px}.live-view .session-switcher{grid-column:1/-1;grid-row:2}.live-view #status{grid-column:2;grid-row:1;max-width:100%;width:110px;font-size:7px}.settings-wrap{grid-column:3;grid-row:1;margin:0}.live-view #manual-controls{grid-column:1/-1;grid-row:3;justify-content:flex-start}#record-name-trigger{max-width:190px;height:32px}.record-button{height:32px}#capture-state{font-size:10px}.live-workspace{height:calc(100dvh - 146px)}#settings-toggle{height:28px;width:30px}.header-drop{position:fixed;top:58px;right:12px;width:min(340px,calc(100vw - 24px));max-height:calc(100dvh - 80px)}.header-drop#record-name-menu{position:absolute;top:calc(100% + 8px);left:0;right:auto;width:min(300px,calc(100vw - 24px))}.transport .skip-button{display:inline-flex;width:28px;height:30px;padding:5px}.transport{gap:6px}.transport .play-button{width:34px;min-width:34px;height:32px}.transport #mute{width:26px;height:30px}.timeline-times{font-size:10px}.timeline-control{min-width:55px}#rate{width:50px;padding:5px;font-size:10px}.app-header .session-heading #title{font-size:18px}}
@media(prefers-reduced-motion:reduce){button,.header-drop,#settings-toggle svg{transition:none!important}.record-button.recording{animation:none}}
#record{background:#bd2739;border-color:#f04b5d;color:#fff}#record:hover{background:#e43b4f;box-shadow:0 0 22px #ff394535}#stop{background:#3a151d;border-color:#df4054;color:#fff}
.rev-instrument{background:linear-gradient(150deg,#18181c,#0a0a0d)}.metric-number{line-height:1}.live-view .instrument .gear-block small{color:#8a9691}
/* Quiet headers and an exactly centered LIVE capture group. */
.header-identity{display:flex;align-items:center;gap:15px;min-width:0;flex:0 1 350px}.header-identity>strong{font-family:RaceDisplay,'Arial Narrow',sans-serif;font-style:italic;font-size:28px;letter-spacing:1.5px;flex-shrink:0}.header-identity>strong span{color:#ff3945}.header-identity .session-switcher{min-width:125px;flex:1}.live-view .app-header{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:18px}.live-view .header-identity{grid-column:1;min-width:0}.live-view #manual-controls{grid-column:2;justify-self:center}.live-view .settings-wrap{grid-column:3;justify-self:end;margin:0}.udp-diagnostics{margin-top:18px;padding-top:18px;border-top:1px solid #45303a}.udp-diagnostics h3{margin-bottom:8px}#settings-panel #status{display:block;max-width:none;width:auto;margin:0;flex:none;font-family:RaceNumbers,sans-serif;font-size:14px!important;line-height:1.5;color:#c4b9c1!important;white-space:normal;overflow:visible;text-overflow:clip}.header-drop label:not(.switch),.header-drop .switch{font-size:13px}.header-drop p,.header-drop small{font-size:12px}.header-drop .settings-actions button{font-size:12px}.settings-title{font-size:23px}.timeline-times{font-size:13px}#video-options label{font-size:13px}#video-selection-note{font-size:12px}.live-intro .eyebrow{font-size:10px}#live-connection{font-size:13px}.panel-tag{font-size:10px}.metric-unit{font-size:11px}
/* Second-lap thumbnails and local manufacturer logos. */
#session-picker{width:480px;max-width:calc(100vw - 32px)}.picker-session{display:grid;grid-template-columns:92px 42px minmax(0,1fr);gap:12px;padding:12px 10px;min-height:90px}.picker-route{display:grid;place-items:center;width:92px;height:64px;background:#0b0b0e;border:1px solid #39252d;overflow:hidden;border-radius:2px}.picker-route svg{display:block;width:100%;height:100%}.picker-route path{fill:none;stroke:#f45164;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.picker-session:hover .picker-route{border-color:#93414f;background:#140d12}.picker-session[aria-current=page] .picker-route path{stroke:#ffc1c9}.picker-route.empty-route{font-family:RaceNumbers,sans-serif;font-size:12px;color:#96818d;letter-spacing:.3px}.picker-brand{display:flex;align-items:center;justify-content:center;width:42px;height:42px;color:#88717d;font-size:15px}.picker-brand img{width:38px;height:32px;object-fit:contain;filter:grayscale(1) brightness(0) invert(.9);opacity:.9;transition:opacity .2s,transform .2s}.picker-session:hover .picker-brand img{opacity:1;transform:scale(1.06)}.picker-brand.brand-text{font-family:RaceNumbers,sans-serif;font-size:10px;text-align:center}.picker-session .picker-session-text{display:flex;flex-direction:column;gap:5px;min-width:0}.picker-session b{font-size:18px;line-height:1.2;white-space:normal;color:#eee8ef}.picker-session small{font-family:RaceNumbers,sans-serif;font-weight:600;font-size:13.5px;line-height:1.3;color:#c5b6c2;letter-spacing:.15px}.picker-custom-name{font-family:RaceNumbers,sans-serif;font-size:14px;color:#efa2b1;line-height:1.2}.picker-list-heading{font-size:12px}.picker-list-heading small{font-size:12px}#picker-live small{font-size:12px}#picker-live-status{font-size:11px}.live-view .wheel-display svg{filter:drop-shadow(0 5px 10px #0008)}.wheel-display svg{filter:drop-shadow(0 3px 5px #0009)}.wheel-guide{stroke:#3a2a32;stroke-dasharray:2 4}.wheel-reference{stroke:#8f3d4b}
@media(min-width:601px) and (max-width:1100px){.header-identity{flex:1}.header-identity>strong{font-size:25px}.header-identity .session-switcher{min-width:120px}.live-view .app-header{gap:12px}.live-view .header-identity{gap:10px}.live-view #record-name-trigger{max-width:170px}.live-view #capture-state{display:none}}
@media(max-width:600px){.app-header{display:grid;height:128px;grid-template-columns:minmax(0,1fr);grid-template-rows:55px 56px;padding:8px 12px;gap:0}.app-header .header-identity{grid-column:1;grid-row:1;width:100%;gap:14px}.header-identity>strong{font-size:25px}.header-identity .session-switcher{grid-column:auto;grid-row:auto;width:auto;min-width:0}.app-header #analysis-nav{grid-column:1;grid-row:2;width:100%;height:56px}.live-view .app-header{height:118px;grid-template-columns:minmax(0,1fr) 34px;grid-template-rows:52px 38px;gap:6px 12px;padding:8px 12px}.live-view .header-identity{grid-column:1;grid-row:1}.live-view .settings-wrap{grid-column:2;grid-row:1}.live-view #manual-controls{grid-column:1/-1;grid-row:2;justify-self:center;justify-content:center}.live-view .live-workspace{height:calc(100dvh - 118px)}.live-view #record-name-trigger{max-width:190px}.live-view #capture-state{display:none}.header-drop{top:65px}.picker-session{grid-template-columns:76px 32px minmax(0,1fr);gap:9px;padding:12px 5px}.picker-route{width:76px;height:62px}.picker-brand{width:32px;height:36px}.picker-brand img{width:30px;height:28px}.picker-session b{font-size:17px}.picker-session small{font-size:13px}.picker-custom-name{font-size:13px}#session-picker{width:calc(100vw - 24px);max-width:calc(100vw - 24px);left:auto;right:0}.picker-session .picker-session-text{gap:4px}.timeline-times{font-size:11px}.header-identity #session-info{font-size:12px!important}}
@media(max-width:600px){#session-picker{position:fixed;left:12px;right:12px;top:65px;width:auto;max-width:none;max-height:calc(100dvh - 80px)}#picker-sessions{max-height:calc(100dvh - 225px)}}
@media(max-width:600px){.session-switcher #session-picker{position:fixed;left:12px;right:12px;top:65px;width:auto;max-width:none;max-height:calc(100dvh - 80px)}}
.picker-brand img.brand-vector{width:44px;height:44px;max-width:none;filter:none;opacity:1}.picker-brand:has(.brand-vector){width:44px}.picker-session{grid-template-columns:92px 46px minmax(0,1fr)}@media(max-width:600px){.picker-session{grid-template-columns:76px 36px minmax(0,1fr)}.picker-brand img.brand-vector{width:38px;height:42px}.picker-brand:has(.brand-vector){width:36px}}
/* Analysis controls, cursor inspection and exact two-row paging. */
.session-action{display:flex;align-items:center;gap:12px;width:100%;padding:13px 11px;text-align:left;background:transparent;border:0;border-bottom:1px solid #3a2933;border-radius:0;font-family:RaceNumbers,sans-serif;font-size:16px;transition:background .18s,color .18s,padding-left .18s}.session-action:hover{background:#3d1c29;padding-left:16px;box-shadow:none}.session-action .feature-icon{width:22px;font-size:25px;line-height:1;color:#d8b571}.session-action[aria-pressed=true]{color:#f6d486}.session-action[aria-pressed=true] .feature-icon{color:#ffd36c;text-shadow:0 0 14px #eebc4f40}.session-star{display:inline-block;margin-left:7px;color:#ffd16a;font-size:17px;text-shadow:0 0 10px #e7b34530;vertical-align:baseline}.danger-action{color:#ff8b9c;border-color:#984052}.danger-action:hover{background:#5a1b2b;border-color:#ff536d;color:#ffe7eb}.session-action svg{width:21px;height:21px}.session-action:disabled{padding-left:11px}.analysis-hover{position:fixed;z-index:34;pointer-events:none;display:block;max-width:calc(100vw - 16px);padding:9px 12px;background:#1b1019f5;border:1px solid #ad455c;border-left:3px solid #ff536d;border-radius:2px;box-shadow:0 8px 22px #0007;color:#ffe4ec;font-family:RaceNumbers,sans-serif;font-size:14px;line-height:1.4;animation:inspect-in .14s ease-out;backdrop-filter:blur(8px)}@keyframes inspect-in{from{opacity:0;translate:0 5px}to{opacity:1;translate:0 0}}.metric-name{margin:0;min-width:0}.metric-expand{display:flex;align-items:center;gap:7px;border:0;border-radius:0;padding:0;background:transparent;font:inherit;color:inherit;cursor:pointer;transition:color .18s,letter-spacing .18s}.metric-expand:hover{background:transparent;border:0;box-shadow:none;color:#ff8999;letter-spacing:.35px}.metric-expand svg{width:14px;height:14px;opacity:0;stroke:#ff7289;transition:opacity .18s,transform .2s}.metric-expand:hover svg,.metric-expand:focus-visible svg,.metric-expand[aria-expanded=true] svg{opacity:1}.metric-expand[aria-expanded=true]{color:#ff9faf}.metric-expand[aria-expanded=true] svg{transform:rotate(180deg)}.metric-expand:active{transform:none}.metric-card.is-expanded{animation:chart-expand .22s ease-out;background:linear-gradient(130deg,#21131d40,#101013)}@keyframes chart-expand{from{opacity:.5;translate:0 6px}to{opacity:1;translate:0 0}}.metric-card canvas{transition:opacity .16s}.right-column .metric-card{grid-template-rows:26px minmax(0,1fr)}.right-column .metric-number{font-size:25px}#telemetry-scroll{scroll-snap-type:y mandatory;scroll-behavior:smooth;overscroll-behavior:contain}.metric-card{scroll-snap-align:start;scroll-snap-stop:always}.map-tools{gap:6px}.map-tools #map-zoom-label{font-family:RaceNumbers,sans-serif;font-size:12px;color:#f3b1bf;min-width:29px;text-align:center}.map-tools #map-zoom-in,.map-tools #map-zoom-out{padding:3px 7px;font-size:14px}.map-panel #map{cursor:crosshair}#delete-dialog{color:#efdee6;background:linear-gradient(140deg,#21131b,#100c10);border:1px solid #a33b51;border-top:3px solid #ff4763;border-radius:3px;max-width:min(480px,calc(100vw - 28px));padding:26px;box-shadow:0 20px 80px #000b}#delete-dialog[open]{animation:dialog-in .2s ease-out}#delete-dialog::backdrop{background:#050307b8;backdrop-filter:blur(5px);animation:inspect-in .2s ease-out}#delete-title{font-size:27px;color:#ffe0e7;margin-bottom:16px}#delete-description{font-family:RaceNumbers,sans-serif;font-size:17px;line-height:1.5;overflow-wrap:anywhere}.delete-warning{font-size:13px;line-height:1.7;color:#c6a1b0;margin-top:14px}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:25px}.dialog-actions button{font-family:RaceNumbers,sans-serif;font-size:15px;padding:9px 14px}.dialog-actions .danger-action{background:#7c2037;color:#ffe3ec;border-color:#cf3c59}@keyframes dialog-in{from{opacity:0;scale:.97;translate:0 -8px}to{opacity:1;scale:1;translate:0 0}}@media(prefers-reduced-motion:reduce){.analysis-hover,.metric-card.is-expanded,#delete-dialog[open],#delete-dialog::backdrop{animation:none}#telemetry-scroll{scroll-behavior:auto}.metric-expand,.metric-expand svg,.session-action{transition:none}}
/* Vehicle identity stays readable at a glance. */
.app-header .session-heading #title{font-size:24px;line-height:1.12;letter-spacing:.35px;color:#fff;text-shadow:none;-webkit-font-smoothing:antialiased}.app-header .session-heading .eyebrow{font-size:10px;letter-spacing:1.5px;margin-bottom:3px;color:#ff8998}.app-header .session-heading #session-info{font-size:14px;line-height:1.2;margin-top:4px;color:#f1e5eb}.app-header .session-heading .car-badge{font-family:RaceNumbers,Consolas,monospace;font-size:13px;font-weight:600;line-height:1.1;padding:3px 6px;margin-right:5px;letter-spacing:.2px;border:1px solid #ffffff16}.badge-pi{color:#fff;background:#36333d}.badge-year{color:#ffe2e9;background:#492631}.header-identity{flex-basis:380px}.header-identity .session-switcher{min-width:155px}.app-header .session-switcher .session-heading{padding-top:4px;padding-bottom:4px}@media(min-width:601px) and (max-width:1100px){.header-identity{flex-basis:350px}.app-header .session-heading #title{font-size:22px}.app-header .session-heading .car-badge{font-size:12px;padding:2px 5px}.app-header .session-heading .eyebrow{font-size:9px}.header-identity .session-switcher{min-width:145px}}@media(max-width:600px){.header-identity .session-switcher{min-width:0}.app-header .session-heading #title{font-size:21px;line-height:1.1}.app-header .session-heading .car-badge{font-size:12px;padding:2px 5px}.app-header .session-heading #session-info{font-size:14px!important;margin-top:3px}.app-header .session-switcher .session-heading{padding-top:0;padding-bottom:0}}
#lap-legend [role=button]{cursor:pointer;transition:color .16s,background .16s;padding:2px 4px;border-radius:2px}#lap-legend [role=button]:hover,#lap-legend [role=button]:focus-visible{color:#ffe0e7;background:#56223266}.analysis-hover{width:max-content;white-space:normal}
.analysis-hover{max-width:min(340px,calc(100vw - 16px))}

/* Keep badge lettering intact, trim only the vertical padding. */
.app-header .session-heading .car-badge{padding-top:1px;padding-bottom:1px}
.rev-lights i.lit{opacity:calc(.2 + .8 * var(--led-strength,1));transition:opacity 90ms linear,background 70ms linear,box-shadow 70ms linear}
.rev-lights.shift-alert i.lit{opacity:1}
body:not(.live-view) .instrument-grid{grid-template-columns:minmax(0,.9fr) minmax(0,.9fr) minmax(0,1.1fr) minmax(0,1.1fr) minmax(0,.7fr)}
body:not(.live-view) .instrument{padding-left:8px;padding-right:8px}
body:not(.live-view) .rev-instrument{padding-left:13px;padding-right:13px}
body:not(.live-view) .g-display{flex-direction:column;gap:0}body:not(.live-view) .g-display svg{height:85px;width:85px}body:not(.live-view) .g-values{gap:7px}body:not(.live-view) .tire-tile{gap:4px;padding:4px}body:not(.live-view) .tire-tile>svg{width:17px}body:not(.live-view) .tire-instrument .section-head small{display:none}
.live-view .instrument-grid{grid-template-columns:minmax(0,.9fr) minmax(0,.85fr) minmax(0,1.35fr) minmax(0,.9fr);grid-template-rows:minmax(260px,1.1fr) minmax(240px,1fr)}.live-view .rev-instrument{grid-column:1/-1;grid-row:1}.live-view .steering-instrument,.live-view .g-instrument,.live-view .tire-instrument,.live-view .lap-summary-instrument{grid-row:2}
@media(max-width:600px){body:not(.live-view) .instrument-grid{grid-template-columns:1fr 1fr;grid-template-rows:180px 210px 220px}.visual-column{grid-template-rows:minmax(220px,56vw) auto}.instant-dashboard{min-height:650px}body:not(.live-view) .rev-instrument{grid-column:1/-1;grid-row:2}.live-view .instrument-grid{grid-template-columns:1fr;grid-template-rows:260px repeat(4,280px)}.live-view .rev-instrument{grid-row:1}.live-view .steering-instrument{grid-row:2}.live-view .g-instrument{grid-row:3}.live-view .tire-instrument{grid-row:4}.live-view .lap-summary-instrument{grid-row:5}}
@media(prefers-reduced-motion:reduce){.rev-lights i.lit{transition:none}}

/* Informational lap timing: no click targets, no changes to playback. */
.lap-summary-instrument{display:flex;flex-direction:column;gap:6px;min-height:0}.lap-summary-caption{font-family:RaceNumbers,sans-serif;font-size:11px;color:#a69ba7;line-height:1.1;margin:0}.lap-summary-instrument #lap-summary{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#70505a transparent;margin:0;padding:0 3px 0 0;list-style:none}.lap-summary-item{padding:9px 5px;border-bottom:1px solid #393039;border-left:2px solid transparent;background:#171318;display:flex;flex-direction:column;gap:2px;transition:background .18s,border-color .18s,translate .18s;cursor:default}.lap-summary-item:hover{background:#30212a;border-left-color:#ff6478;translate:2px 0}.lap-summary-label{font-family:RaceNumbers,sans-serif;font-size:14px;color:#d2bbc7;font-weight:600}.lap-summary-item strong{font-family:RaceNumbers,Consolas,monospace;font-size:clamp(20px,1.4vw,27px);font-weight:600;line-height:1;font-variant-numeric:tabular-nums;white-space:nowrap;color:#fff}.lap-summary-item small{font-family:RaceNumbers,sans-serif;font-size:13px;line-height:1.2;color:#dba6b7}.lap-summary-item.is-best{background:#11251c;border-left-color:#61e49a}.lap-summary-item.is-best strong,.lap-summary-item.is-best small{color:#73f1ab}.lap-summary-item.is-best:hover{background:#193c2b;border-left-color:#a5ffd0}.lap-summary-empty{font-family:RaceNumbers,sans-serif;font-size:15px;line-height:1.4;color:#ad9ca8;padding:10px 0}.live-view .lap-summary-item{padding:12px 10px;gap:4px}.live-view .lap-summary-item strong{font-size:30px}.live-view .lap-summary-label{font-size:18px}.live-view .lap-summary-item small,.live-view .lap-summary-caption{font-size:14px}
/* Use the whole tyre tile, with slip below the larger tyre and temperature. */
body:not(.live-view) .tire-tile{display:grid;grid-template-columns:28px minmax(0,1fr);grid-template-rows:1fr auto;gap:3px 5px;padding:6px 4px}body:not(.live-view) .tire-tile>svg{width:28px;height:52px;grid-column:1;grid-row:1;justify-self:center}body:not(.live-view) .tire-info{display:contents}body:not(.live-view) .tire-info>span{grid-column:2;grid-row:1;align-self:start;font-size:10px;line-height:1.1}body:not(.live-view) .tire-info>output{grid-column:2;grid-row:1;align-self:center;font-size:clamp(18px,1.4vw,26px);font-weight:600;white-space:nowrap}body:not(.live-view) .tire-info>small{grid-column:1/-1;grid-row:2;font-family:RaceNumbers,sans-serif;font-size:13px;font-weight:600;color:#e0ced8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body:not(.live-view) .slip-meter{grid-column:1/-1;grid-row:3;height:5px;margin-top:0}.tire-tile[data-slipping=true] .tire-info>small{color:#ff9b78}.tire-key{font-size:10px}.live-view .tire-tile>svg{width:40px;height:76px}.live-view .tire-info>span{font-size:12px}.live-view .tire-info>output{font-size:30px}.live-view .tire-info>small{font-size:14px;color:#dfcbd7}.live-view .slip-meter{height:7px}
@media(max-width:1100px){body:not(.live-view) .tire-info>span{font-size:0}body:not(.live-view) .tire-info>span::after{content:attr(data-short);font-size:11px}body:not(.live-view) .tire-info>small{font-size:12px}}
@media(prefers-reduced-motion:reduce){.lap-summary-item{transition:none}.lap-summary-item:hover{translate:none}}

@media(min-width:601px){body:not(.live-view) .visual-column{grid-template-rows:minmax(0,2.5fr) minmax(290px,1fr)}}
.lap-summary-instrument #lap-summary{overflow-x:hidden}

body:not(.live-view) .tire-info>span{font-size:0}body:not(.live-view) .tire-info>span::after{content:attr(data-short);font-size:11px}

/* Compact driving instruments leave the largest possible uncropped video. */
@media(min-width:601px){
 body:not(.live-view) .visual-column{grid-template-rows:minmax(0,1fr) 230px;gap:12px}
 body:not(.live-view) .instrument-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.5fr) minmax(0,2fr);grid-template-rows:minmax(0,1fr)}
 body:not(.live-view) .steering-instrument{grid-column:1;grid-row:1}
 body:not(.live-view) .g-instrument{grid-column:2;grid-row:1}
 body:not(.live-view) .rev-instrument{grid-column:3;grid-row:1}
 body:not(.live-view) .tire-instrument{grid-column:4;grid-row:1}
}
.route-and-laps{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);min-width:0;min-height:0;gap:0;background:#101013;border:1px solid #2c2c32;border-radius:4px;overflow:hidden}
.route-and-laps .map-panel{min-width:0;min-height:0;border:0;border-radius:0;background:transparent}.route-and-laps .lap-summary-instrument{min-width:0;min-height:0;border:0;border-left:1px solid #332a31;border-radius:0;padding:12px 10px;background:#100e12}.route-and-laps .map-panel .panel-heading{flex-wrap:wrap;gap:6px;padding:9px 11px}.route-and-laps .map-tools{flex-wrap:wrap;gap:4px}.route-and-laps #metrics{font-size:10px;letter-spacing:.2px}.route-and-laps .map-footer{padding:7px 10px;font-size:10px;gap:5px;flex-wrap:wrap}.route-and-laps .map-footer>span{white-space:normal}.route-and-laps #lap-legend{gap:4px 8px;max-height:50px;overflow:auto}.route-and-laps .lap-summary-item{padding:7px 7px;gap:1px}.route-and-laps .lap-summary-item strong{font-size:23px}.route-and-laps .lap-summary-label{font-size:14px}.route-and-laps .lap-summary-item small{font-size:12px}
body:not(.live-view) .instant-heading{padding:7px 12px;gap:10px}#instant-source{font-family:RaceNumbers,sans-serif;font-size:14px;font-weight:600;letter-spacing:.3px;color:#ffdce3;background:#351922;border:1px solid #7a3444;border-radius:3px;padding:4px 9px;line-height:1.1;font-variant-numeric:tabular-nums;white-space:nowrap}
body:not(.live-view) .instrument{font-family:RaceNumbers,sans-serif;padding:8px 9px}body:not(.live-view) .instrument h3{font-family:RaceDisplay,sans-serif;font-size:12px;letter-spacing:1.3px;line-height:1.1;margin:0;color:#beb6c2}body:not(.live-view) .rev-instrument{padding:8px 13px;background:linear-gradient(150deg,#24171c,#0a0a0d);border-left:1px solid #66313e;border-right:1px solid #66313e}
body:not(.live-view) .steering-instrument,body:not(.live-view) .g-instrument{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:4px;align-content:stretch}
body:not(.live-view) .wheel-display{display:grid;grid-template-rows:minmax(0,1fr) 20px;align-items:center;justify-items:center;gap:2px;min-height:0}body:not(.live-view) .wheel-display svg{width:84px;height:84px;max-height:100%}body:not(.live-view) .wheel-display output{font-family:RaceNumbers,sans-serif;font-size:14px;line-height:20px;color:#ecd7df;white-space:nowrap;height:20px;min-width:0}
body:not(.live-view) .input-meter{font-family:RaceNumbers,sans-serif;font-size:11px;margin-top:0;gap:5px}body:not(.live-view) .input-meter>span{width:34px}body:not(.live-view) .input-meter output{font-family:RaceNumbers,sans-serif;font-size:12px;min-width:30px}body:not(.live-view) .input-meter>div{height:5px}
body:not(.live-view) .g-display{display:grid;grid-template-rows:minmax(0,1fr) 22px;align-items:center;justify-items:center;gap:0;min-height:0}body:not(.live-view) .g-display svg{width:94px;height:94px;max-height:100%}body:not(.live-view) .g-display>output{font-family:RaceNumbers,sans-serif;font-size:20px;font-weight:600;line-height:22px;color:#f1dce4}body:not(.live-view) .g-values{grid-row:3/5;display:flex;justify-content:center;gap:8px;margin:0}body:not(.live-view) .g-values span{font-size:11px;gap:2px}body:not(.live-view) .g-values b{font-family:RaceNumbers,sans-serif;font-size:13px;font-weight:600;white-space:nowrap}
body:not(.live-view) .gear-block output{font-size:64px}body:not(.live-view) .rpm-block>output{font-size:26px}body:not(.live-view) .speed-readout>output{font-size:36px}body:not(.live-view) .gear-block small,body:not(.live-view) .rpm-block>small{font-family:RaceNumbers,sans-serif;font-size:10px}body:not(.live-view) #rpm-scale{font-family:RaceNumbers,sans-serif;font-size:10px;line-height:1.1}
body:not(.live-view) .tire-tile{grid-template-columns:28px minmax(0,1fr);grid-template-rows:12px minmax(20px,1fr) 14px 4px;gap:0 6px;padding:3px 5px}body:not(.live-view) .tire-tile>svg{grid-row:1/4;width:28px;height:52px;align-self:center}body:not(.live-view) .tire-info>span{grid-row:1;align-self:center}body:not(.live-view) .tire-info>output{grid-row:2;align-self:center;font-size:24px}body:not(.live-view) .tire-info>small{grid-column:2;grid-row:3;font-size:13px;line-height:14px;align-self:center}body:not(.live-view) .slip-meter{grid-row:4;height:4px;margin:0}body:not(.live-view) .tire-key{font-family:RaceNumbers,sans-serif;font-size:11px;white-space:normal;line-height:1.1}
.live-view .instrument-grid{grid-template-columns:1fr 1fr 1.4fr;grid-template-rows:minmax(260px,1.1fr) minmax(240px,1fr)}
@media(min-width:601px) and (max-width:1200px){body:not(.live-view) .wheel-display svg{width:70px;height:70px}body:not(.live-view) .g-display svg{width:80px;height:80px}body:not(.live-view) .wheel-display output{font-size:12px}body:not(.live-view) .g-values{gap:4px}body:not(.live-view) .g-values b{font-size:12px}body:not(.live-view) .instrument{padding-left:6px;padding-right:6px}body:not(.live-view) .input-meter>span{width:28px;font-size:10px}body:not(.live-view) .tire-info>output{font-size:21px}.route-and-laps .lap-summary-item strong{font-size:20px}}
@media(max-width:600px){body:not(.live-view) .visual-column{grid-template-rows:minmax(220px,56vw) auto}body:not(.live-view) .instant-dashboard{min-height:470px}body:not(.live-view) .instrument-grid{grid-template-columns:1fr 1fr;grid-template-rows:220px 210px}body:not(.live-view) .rev-instrument{grid-column:1;grid-row:2}body:not(.live-view) .tire-instrument{grid-column:2;grid-row:2}.route-and-laps{min-height:380px}.route-and-laps .lap-summary-instrument{padding:10px 6px}.route-and-laps .lap-summary-item strong{font-size:20px}.route-and-laps .lap-summary-caption{font-size:11px}.live-view .instrument-grid{grid-template-columns:1fr;grid-template-rows:260px 280px 280px 300px}.live-view .tire-instrument{grid-row:4}}

/* Shared reading badges and the analysis reference live with the instruments. */
#instant-source,.reading-badge{font-family:RaceNumbers,sans-serif;font-size:14px;font-weight:600;letter-spacing:.3px;color:#ffdce3;background:#351922;border:1px solid #7a3444;border-radius:3px;padding:4px 9px;line-height:1.1;font-variant-numeric:tabular-nums;white-space:nowrap}.map-readings{display:flex;align-items:center;gap:5px}.route-and-laps #metrics{font-size:14px;letter-spacing:.3px}.driving-lap-picker{display:flex;align-items:center;gap:8px;margin-left:auto;font-family:RaceNumbers,sans-serif;font-size:13px;color:#d9b8c4;white-space:nowrap}.driving-lap-picker select{font-family:RaceNumbers,sans-serif;font-size:14px;font-weight:600;min-width:105px;max-width:150px;height:29px;padding:3px 25px 3px 9px;background:#21151b;color:#ffe6ec;border:1px solid #75404d;border-radius:3px;transition:border-color .18s,background .18s}.driving-lap-picker select:hover,.driving-lap-picker select:focus-visible{border-color:#fa6c82;background:#351d28}.live-view .driving-lap-picker{display:none}#instant-note{margin-left:auto}.instant-heading:has(.driving-lap-picker) #instant-note{margin-left:auto}.driving-lap-picker{margin-left:6px}
@media(min-width:601px){body:not(.live-view) .workspace{padding-bottom:80px}}
@media(min-width:601px) and (max-width:1100px){.instant-heading #instant-note{display:none}.driving-lap-picker{margin-left:auto}.driving-lap-picker>select{min-width:95px}.route-and-laps .map-tools{gap:4px}}
@media(max-width:600px){.instant-heading{flex-wrap:wrap}.driving-lap-picker{margin-left:auto}.driving-lap-picker select{min-width:90px;max-width:115px}#instant-source,.reading-badge{font-size:13px;padding:4px 7px}}

#instant-source,.reading-badge{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:28px;line-height:18px;padding:4px 9px;flex-shrink:0}
@media(min-width:601px){body:not(.live-view) .instant-dashboard{grid-template-rows:44px minmax(0,1fr)}body:not(.live-view) .instant-heading{height:44px;box-sizing:border-box}}

/* Lap colours are shared by the map, full-session traces and transport. */
.timeline-track-wrap{position:relative;min-width:0;height:18px;display:flex;align-items:center}#time{position:relative;z-index:1;margin:0;cursor:pointer}#time.lap-colored{appearance:none;-webkit-appearance:none;height:18px;padding:0;border:0;border-radius:0;background:transparent}#time.lap-colored::-webkit-slider-runnable-track{height:6px;border-radius:2px;background:var(--lap-track,#343039)}#time.lap-colored::-moz-range-track{height:6px;border-radius:2px;background:var(--lap-track,#343039)}#time.lap-colored::-moz-range-progress{background:transparent}#time.lap-colored::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:12px;height:16px;margin-top:-5px;border-radius:2px;border:2px solid #fff2f5;background:#e6475f;box-shadow:0 0 8px #000b;transition:box-shadow .15s,background .15s}#time.lap-colored::-moz-range-thumb{width:9px;height:13px;border-radius:2px;border:2px solid #fff2f5;background:#e6475f}#time.lap-colored:hover::-webkit-slider-thumb{background:#ff8094;box-shadow:0 0 9px #ff5c7788}#time.lap-colored:focus-visible{outline:1px solid #ff98ac;outline-offset:3px}#timeline-laps{position:absolute;pointer-events:none;left:6px;right:6px;top:6px;height:6px}#timeline-laps span{position:absolute;height:100%;border-left:1px solid #0a070bab;transition:box-shadow .16s,background .16s,transform .16s}#timeline-laps span.is-hovered{background:var(--lap-color);box-shadow:0 0 9px var(--lap-color);transform:scaleY(1.6)}#timeline-lap-hover{position:absolute;bottom:26px;z-index:4;pointer-events:none;box-sizing:border-box;width:220px;max-width:calc(100vw - 32px);padding:8px 10px;background:#181218f5;border:1px solid var(--lap-color,#a74358);border-top:3px solid var(--lap-color,#ff536b);border-radius:3px;color:#fbe4ec;box-shadow:0 8px 22px #0009;font-family:RaceNumbers,sans-serif;font-size:14px;font-weight:600;line-height:1.3;animation:inspect-in .12s ease-out}@media(prefers-reduced-motion:reduce){#timeline-lap-hover{animation:none}#timeline-laps span{transition:none}}

.header-brand{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;flex:0 0 30px;margin-right:7px}.header-brand img{display:block;width:30px;height:30px;object-fit:contain;filter:grayscale(1) brightness(0) invert(.9)}.header-brand img.brand-vector{filter:none}.live-view .header-brand{display:none}@media(max-width:600px){.header-brand{width:25px;height:25px;flex-basis:25px;margin-right:5px}.header-brand img{width:25px;height:25px}}

/* Give long vehicle names a comfortable share of the analysis header. */
@media(min-width:1101px){body:not(.live-view) .header-identity{flex:0 0 clamp(540px,36vw,720px);max-width:60vw}body:not(.live-view) .header-identity .session-switcher{min-width:0;flex:1}}
@media(min-width:601px) and (max-width:1100px){body:not(.live-view) .header-identity{flex:1 1 520px;max-width:none}body:not(.live-view) .header-identity .session-switcher{min-width:0;flex:1}}

/* A prominent manufacturer mark, preserving the vehicle name's font size. */
.header-brand{width:40px;height:40px;flex-basis:40px;margin-right:9px}.header-brand img{width:40px;height:40px}@media(max-width:600px){.header-brand{width:32px;height:32px;flex-basis:32px;margin-right:6px}.header-brand img{width:32px;height:32px}}
/* Indeterminate session loading; no simulated percentages. */
.session-loading{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;background:#05030792;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);opacity:0;transition:opacity .2s ease;outline:none}.session-loading.is-visible{opacity:1}.session-loading-card{display:flex;align-items:center;flex-direction:column;gap:10px;transform:translateY(16px) scale(.94);opacity:0;transition:transform .24s cubic-bezier(.2,.8,.2,1),opacity .2s}.is-visible .session-loading-card{transform:translateY(0) scale(1);opacity:1}.session-loading-wheel{width:136px;height:136px;filter:drop-shadow(0 0 22px #ff37444a);margin-bottom:12px}.session-loading-wheel svg{display:block;width:100%;height:100%;fill:none}
.loading-wheel-rotor,.loading-chase{transform-origin:center;transform-box:view-box;animation:session-wheel-turn 1.25s linear infinite}
.loading-outer-track{stroke:#ff607331;stroke-width:1}
.loading-chase{stroke:#ff4662;stroke-width:2.5;stroke-linecap:round;stroke-dasharray:70 12 15 330;animation-duration:2.1s;animation-direction:reverse}
.session-loading-card p{font-family:RaceDisplay,sans-serif;font-size:34px;letter-spacing:1.5px;color:#fff0f5;margin:0}.session-loading-card>span{font-family:RaceNumbers,sans-serif;font-size:17px;color:#d2abbc;letter-spacing:.6px}@keyframes session-wheel-turn{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.session-loading,.session-loading-card{transition:none}.loading-wheel-rotor,.loading-chase{animation:none}}

/* Keep horizontal lap navigation; hide only the scrollbar chrome. */
#lap-tabs{scrollbar-width:none;-ms-overflow-style:none}#lap-tabs::-webkit-scrollbar{display:none;width:0;height:0}
#analysis-nav button::after{transition:background .18s,transform .18s,opacity .18s;transform:scaleX(.65);opacity:0;transform-origin:center}#analysis-nav button[aria-pressed=true]::after,#analysis-nav button:hover::after,#analysis-nav button:focus-visible::after{transform:scaleX(1);opacity:1}#analysis-nav button:hover::after,#analysis-nav button:focus-visible::after{background:var(--lap-color,#ff4657)}
@media(min-width:1101px){body:not(.live-view) .header-identity{flex-basis:calc(clamp(540px,36vw,720px) - 15px)}}

/* A separate logo column keeps all three identity rows inside the header. */
body:not(.live-view) .app-header .session-switcher .session-heading{display:grid;grid-template-columns:44px minmax(0,1fr);grid-template-rows:11px 28px 18px;gap:2px 7px;height:68px;box-sizing:border-box;padding:3px 0;align-content:center;min-width:0}
body:not(.live-view) #header-brand{grid-column:1;grid-row:1/4;align-self:center;margin:0;width:40px;height:40px}body:not(.live-view) #view-eyebrow{grid-column:2;grid-row:1;margin:0;line-height:11px;white-space:nowrap}body:not(.live-view) .session-title-line{grid-column:2;grid-row:2;min-height:0;min-width:0}body:not(.live-view) .app-header .session-heading #session-info{grid-column:2;grid-row:3;display:flex;align-items:center;gap:5px;margin:0;line-height:1;min-width:0}body:not(.live-view) .app-header .session-heading .car-badge{margin:0}body:not(.live-view) #session-trigger:has(#header-brand[hidden]){grid-template-columns:0 minmax(0,1fr);column-gap:0}
#analysis-nav{margin-right:20px}#analysis-nav #lap-scroll-next{flex:0 0 34px;width:34px;min-width:34px;padding:6px;background:linear-gradient(90deg,#28131c,#54202d);border-left:1px solid #8b3649;box-shadow:-8px 0 18px #090609aa;color:#ffb3c0;display:flex;align-items:center;justify-content:center}#lap-scroll-next svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s}#analysis-nav #lap-scroll-next:hover{background:#6b283a;color:#fff0f4}#lap-scroll-next:hover svg{transform:translateX(3px)}#analysis-nav #lap-scroll-next::after{display:none}@media(prefers-reduced-motion:reduce){#lap-scroll-next svg{transition:none}}
@media(max-width:600px){body:not(.live-view) .app-header .session-switcher .session-heading{height:55px;grid-template-columns:32px minmax(0,1fr);grid-template-rows:25px 18px;gap:2px 6px;padding:3px 0}body:not(.live-view) #header-brand{grid-row:1/3;width:32px;height:32px}body:not(.live-view) .session-title-line{grid-row:1}body:not(.live-view) .app-header .session-heading #session-info{grid-row:2}#analysis-nav{margin-right:20px}}

.portable-import{display:flex;align-items:center;gap:10px;width:100%;padding:12px 15px;border:0;border-bottom:1px solid #4b2936;border-radius:0;background:#24141c;font-family:RaceNumbers,sans-serif;font-size:16px;color:#ffc4d2;text-align:left}.portable-import:hover{background:#49202f}.portable-import svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7}.header-identity>strong{letter-spacing:1px;font-size:26px}#export-session>span:first-child{font-size:25px;color:#ff9daf}

.rev-lights.is-sweeping i,.rev-lights.is-sweeping i.lit{transition:background 25ms linear,opacity 25ms linear,box-shadow 25ms linear}@media(prefers-reduced-motion:reduce){.rev-lights.is-sweeping i,.rev-lights.is-sweeping i.lit{transition:none}}

.browser-viewer[data-session-open=false] .settings-wrap{visibility:hidden}.browser-viewer #video-empty{max-width:90%;padding:20px;pointer-events:auto}.browser-viewer #video-empty p{font-family:RaceDisplay,sans-serif;font-size:clamp(23px,3vw,38px);color:#ffe7ee}.browser-viewer #video-empty small{display:block;max-width:460px;line-height:1.6;font-family:RaceNumbers,sans-serif;font-size:16px;color:#bba9b5}.viewer-open{margin-top:22px;padding:13px 22px;font-family:RaceNumbers,sans-serif;font-size:19px;background:#ab263d;border-color:#f25270;color:#fff}.viewer-open:hover{background:#d43550;box-shadow:0 0 25px #ff3e5733}#loading-cancel{margin-top:15px;font-family:RaceNumbers,sans-serif;font-size:16px;border-color:#a35066;background:#371923;color:#ffe2ec}.browser-viewer .session-title-line{overflow:hidden}@media(max-width:600px){.browser-viewer .route-and-laps .map-tools{justify-content:flex-start}.browser-viewer .map-readings{flex-wrap:wrap}.browser-viewer #instant-source{font-size:12px}.browser-viewer .instant-heading{gap:6px}.browser-viewer .transport{bottom:max(10px,env(safe-area-inset-bottom))}.browser-viewer .session-loading-wheel{width:112px;height:112px}.browser-viewer #video-empty small{font-size:14px}}

@media(max-width:600px){body.browser-viewer:not(.live-view) .instant-dashboard{min-height:660px}body.browser-viewer:not(.live-view) .instrument-grid{grid-template-columns:1fr 1fr;grid-template-rows:210px 170px 220px}body.browser-viewer:not(.live-view) .rev-instrument{grid-column:1/-1;grid-row:2}body.browser-viewer:not(.live-view) .tire-instrument{grid-column:1/-1;grid-row:3}.browser-viewer .app-header #analysis-nav{width:calc(100% - 20px)}}
/* Persistent video and device library controls. */
.library-settings-button{margin-left:auto;font-size:25px;color:#ffc0cc}.browser-viewer #library-settings{max-width:min(530px,94vw);padding:24px;background:#171215;color:#f8e8ee;border:1px solid #6e3042;line-height:1.6}.browser-viewer #library-settings p{margin:12px 0;font-size:16px}.browser-viewer #library-settings label{font-size:17px;display:flex;gap:12px}.browser-viewer #library-location{display:block;padding:14px;background:#291922;margin:15px 0;font-size:18px}.browser-viewer #library-storage-status{color:#eaa8b8}.browser-viewer #library-settings::backdrop{background:#000a;backdrop-filter:blur(7px)}
@media(max-width:600px){body.browser-viewer:not(.live-view) #workspace>.video-panel{position:sticky;top:var(--viewer-header-height,100px);z-index:20;height:clamp(150px,56vw,32dvh);min-height:150px;flex-shrink:0;box-shadow:0 10px 24px #000b;background:#08070a}body.browser-viewer:not(.live-view) #workspace{display:flex;flex-direction:column;gap:12px}body.browser-viewer:not(.live-view) .visual-column{display:block}body.browser-viewer:not(.live-view) .app-header{z-index:30}body.browser-viewer:not(.live-view) .analysis-layout{display:flex;flex-direction:column;gap:12px}.library-settings-button{position:absolute;right:10px;top:10px}}
@media(max-width:600px){body.browser-viewer:not(.live-view) .app-header{position:sticky;top:0}}
/* One settings entry, sharing the existing animated gear. */
.library-settings-button{position:static;right:auto;top:auto}
.browser-viewer[data-session-open=false] .settings-wrap{visibility:visible}
.mobile-focus-veil,.mobile-focus-close{display:none}
@media(max-width:600px){
 html,body{touch-action:pan-x pan-y}
 body:not(.live-view) .transport,body.browser-viewer:not(.live-view) .transport{bottom:calc(env(safe-area-inset-bottom,0px) + 40px)}
 body:not(.live-view) #workspace{padding-bottom:160px}
 .app-header .header-identity{padding-right:38px}
 body:not(.live-view) .settings-wrap{position:absolute;right:12px;top:12px;grid-column:auto;grid-row:auto}
 .metric-card canvas{touch-action:pan-y}
 .metric-card.is-expanded canvas{touch-action:none}
 .map-panel:not(.mobile-focused) #map{touch-action:pan-y}
 .route-and-laps .map-panel,.map-panel.mobile-focused{display:grid;grid-template-rows:auto minmax(150px,1fr) auto;overflow:hidden}
 .route-and-laps .map-panel{min-height:340px}
 .map-panel #map{height:100%;min-height:0;position:relative}
 .map-panel .map-footer{position:relative;max-height:100px;overflow:auto;background:#141014}
 .mobile-focus-veil:not([hidden]){display:block;position:fixed;inset:var(--focus-top) 0 0;z-index:40;background:#08060bad;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);animation:focus-veil-in .22s ease}
 .mobile-focus-close:not([hidden]){display:block;position:fixed;right:14px;top:calc(var(--focus-top) + 8px);z-index:43;padding:10px 18px;background:#7b243a;border-color:#ff637b}
 .mobile-focused{position:fixed!important;inset:calc(var(--focus-top) + 58px) 10px calc(env(safe-area-inset-bottom,0px) + 128px)!important;width:auto!important;height:auto!important;min-height:0!important;max-width:none!important;transform:none!important;z-index:42!important;background:#161219!important;border:1px solid #a44960!important;border-radius:12px!important;box-shadow:0 12px 40px #0009;animation:focus-panel-in .24s ease}
 .telemetry-column.mobile-focused{display:grid;grid-template-rows:auto auto minmax(0,1fr)}
 .mobile-focused #telemetry-scroll{scroll-snap-type:none;touch-action:pan-y}
 .mobile-focused .metric-card{scroll-snap-align:none}
 .transport.mobile-focused{inset:auto 12px calc(env(safe-area-inset-bottom,0px) + 60px)!important;display:flex;flex-wrap:wrap;padding:18px!important;gap:12px}
 .transport.mobile-focused .timeline-control{flex:1 0 100%;order:-1}
 .transport.mobile-focused #time{height:52px;touch-action:none}
 .transport.mobile-focused .timeline-times{font-size:16px}
 .transport.mobile-focused .timeline-track-wrap{transition:filter .18s,transform .18s}
 .transport.is-scrubbing .timeline-track-wrap{filter:drop-shadow(0 0 9px #ff597d99);transform:scaleY(1.1)}
 .transport.is-scrubbing #clock{color:#ff91ac;text-shadow:0 0 12px #ff597d88}
 .mobile-analysis-focus{overflow:hidden}
 .mobile-analysis-focus #analysis-hover{display:none}
}
@keyframes focus-panel-in{from{opacity:0;translate:0 12px;scale:.97}to{opacity:1;translate:0 0;scale:1}}
@keyframes focus-veil-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.mobile-focused,.mobile-focus-veil{animation:none!important}.transport.mobile-focused .timeline-track-wrap{transition:none}}
@media(max-width:600px){
 .telemetry-column.mobile-focused .metric-card{height:var(--metric-height,130px);padding:5px 10px;display:grid;grid-template-rows:26px minmax(0,1fr);gap:1px}
 .telemetry-column.mobile-focused .metric-heading{margin-bottom:0}
 .telemetry-column.mobile-focused .metric-card canvas{height:100%;min-height:0}
 .mobile-focused.focus-leaving,.mobile-focus-veil.focus-leaving{animation:focus-veil-out .18s ease forwards}
}
@keyframes focus-veil-out{to{opacity:0;translate:0 6px}}
@media(max-width:600px){
 #lap-tabs{overflow-x:auto;overflow-y:hidden;touch-action:pan-x;overscroll-behavior-x:contain;overscroll-behavior-y:none;align-items:stretch}
 #lap-tabs>*{flex-shrink:0}
}
/* Library uses the original session action and header-drop motion. */
#settings-panel .library-settings-button{position:static;margin:12px 0 0;padding:17px 11px 13px;border-top:1px solid #ffffff18;border-bottom:0;font-size:16px;color:#e7cbd6}
#settings-panel .library-settings-button:hover{padding-left:16px;color:#fff0f5}
#settings-panel .library-settings-button svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.browser-viewer[data-session-open=false] #settings-panel .library-settings-button{margin-top:0;border-top:0;padding-top:13px}
.browser-viewer #library-settings{width:min(600px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 48px);padding:28px;border:1px solid #704052;border-top:2px solid #ed4b69;border-radius:12px;background:linear-gradient(145deg,#23171f,#131015);box-shadow:0 24px 90px #000a;font-family:RaceNumbers,sans-serif;line-height:1.5;color:#f7e8ef;overflow:auto}
#library-settings[open]{animation:library-enter .23s cubic-bezier(.2,.8,.2,1)}
#library-settings[open]::backdrop{animation:library-backdrop-in .23s ease;background:#070509b8;backdrop-filter:blur(9px)}
#library-settings[open].is-closing{animation:library-leave .18s ease forwards}
#library-settings[open].is-closing::backdrop{animation:library-backdrop-out .18s ease forwards}
#library-settings svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round;flex-shrink:0}
.library-dialog-heading{display:flex;align-items:center;gap:14px}
.library-dialog-icon{width:48px;height:48px;display:grid;place-items:center;background:#482132;border:1px solid #814052;border-radius:10px;color:#ff96ad}
#library-settings .library-dialog-icon svg{width:27px;height:27px}
#library-settings h2{font-family:RaceDisplay,sans-serif;font-size:32px;line-height:1.1;margin:4px 0 0;letter-spacing:1px}
.library-eyebrow{font-size:12px;letter-spacing:1.2px;color:#d39aaa}
#library-dismiss{margin-left:auto;background:transparent;border:0;padding:8px;color:#d9b5c4}
#library-settings .library-intro{font-size:17px;color:#d5bec9;margin:20px 0}
.library-section{border-top:1px solid #ffffff14;padding:20px 0 0;margin-top:20px}
#library-settings h3{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:600;margin:0 0 14px;color:#ffe2ed}
#library-settings h3 svg{color:#ed7e9c}
#library-settings .library-option{display:flex;align-items:flex-start;gap:12px;margin:15px 0;font-size:18px;line-height:1.4;cursor:pointer}
#library-settings input[type=checkbox]{width:19px;height:19px;margin-top:4px;flex-shrink:0;accent-color:#ee4d70}
#library-settings .library-option small{display:block;font-size:15px;color:#baa2ae;line-height:1.5;margin-top:4px}
#library-settings #library-location{font-size:16px;padding:12px 14px;border:1px solid #ffffff12;border-radius:7px;overflow-wrap:anywhere}
#library-settings .dialog-actions{justify-content:flex-start;flex-wrap:wrap;margin-top:12px}
#library-settings button:not(.icon-button){display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:11px 14px;font:inherit;font-size:16px;border-radius:7px;background:#30202a;border-color:#674052;color:#f3dbe6}
#library-settings button:not(.icon-button):hover{background:#492535;border-color:#c45d7a}
#library-settings #library-help,#library-settings .library-note{font-size:15px;color:#bba4af;line-height:1.6}
#library-settings #library-storage-status{font-size:16px;color:#e6b5c7;overflow-wrap:anywhere}
.library-dialog-footer{display:flex;justify-content:flex-end;border-top:1px solid #ffffff14;padding-top:18px;margin-top:20px}
#library-settings #library-close{background:#a52d4d;border-color:#ed607e;min-width:100px}
@keyframes library-enter{from{opacity:0;transform:translateY(14px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes library-leave{to{opacity:0;transform:translateY(10px) scale(.98)}}
@keyframes library-backdrop-in{from{opacity:0}to{opacity:1}}
@keyframes library-backdrop-out{to{opacity:0}}
@media(max-width:600px){.browser-viewer #library-settings{padding:20px;max-height:calc(100dvh - 28px)}#library-settings .library-option{font-size:17px}#library-settings #library-persist{width:100%}}
@media(prefers-reduced-motion:reduce){#library-settings[open],#library-settings[open]::backdrop{animation:none!important}}
/* The focused transport moves into the free area beneath the video. */
@media(max-width:600px){
 .transport.mobile-focused{inset:var(--player-focus-top,var(--focus-top)) 12px auto!important;animation:none!important;transform-origin:top left;max-height:calc(100dvh - var(--focus-top) - 32px);overflow:auto}
 .transport{transform-origin:top left}
 .transport-focus .mobile-focus-close{display:none!important}
 .transport-focus .mobile-focus-veil{background:#050409e8}
 .transport-focus .mobile-focus-veil.focus-leaving{animation-duration:.32s}
 .transport .timeline-control{touch-action:none;-webkit-user-select:none;user-select:none}
 .transport.mobile-focused .timeline-control{padding:8px 0}
 .transport.mobile-focused #time{cursor:ew-resize}
}
@media(max-width:600px){.transport-focus #timeline-lap-hover{display:none!important}}
