/* Focused workspace structure; appearance uses the shared light/dark tokens. */
:root{--subtle:#eeefe6;--tint:#e8edda;--accent-ink:#536c32;--readable-muted:#66735d}
:root[data-theme="dark"]{--subtle:#222b24;--tint:#293825;--accent-ink:#d4ed6c;--readable-muted:#afbea3}
.workspace{grid-template-columns:250px minmax(0,1fr)}
main{padding:24px 32px;min-width:0}
.sidebar{padding:28px 22px;align-self:start;position:sticky;top:0;min-height:calc(100vh - 86px)}
.sidebar-title{margin-bottom:12px}.sidebar-help{font-size:11px;line-height:1.75;color:var(--readable-muted);margin:0 0 24px}
.sidebar .latest-button{width:100%;text-align:left;margin:4px 0 15px;background:var(--white)}
.sidebar .source-status{padding-top:2px;min-height:0}.sidebar .quick-section{margin-top:23px;padding-top:20px;display:block}
.quick-section summary{cursor:pointer}.sidebar-guide{padding:18px 0 0;margin-top:22px;border-top:1px solid var(--line);font-size:11px;line-height:1.75;color:var(--readable-muted)}.sidebar-guide strong{color:var(--ink);font-weight:500}.sidebar-guide p{margin:7px 0}
.session-bar{border-top:0;padding:0 0 20px;margin:0}.session-bar h1{font:500 clamp(21px,2.2vw,30px)/1.3 var(--display);letter-spacing:-.8px;margin:5px 0 0}.session-info{justify-content:flex-end}
.page-tabs{position:sticky;top:0;z-index:10;background:var(--paper);gap:5px;border-color:var(--line);margin:0 0 11px;flex-wrap:wrap}.page-tabs>button{font-size:12px;padding:14px 13px;color:var(--readable-muted)}.page-tabs>button.active{color:var(--ink);border-bottom-color:var(--accent-ink)}
.view-description{font-size:11px;line-height:1.7;color:var(--readable-muted);margin:0 0 25px;max-width:840px}
.workspace-loading{display:flex;align-items:center;gap:13px;padding:28px;border:1px solid var(--line);border-radius:9px;background:var(--white);font-size:12px;color:var(--readable-muted)}.workspace-loading .loading-ring{width:23px;height:23px;flex:none}
.overview-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 22px;min-height:123px}.overview-heading h2{font:500 clamp(26px,3vw,37px)/1.2 var(--display);letter-spacing:-1.2px;margin:9px 0}.overview-heading p{font-size:12px;color:var(--readable-muted);margin:8px 0}.overview-heading .tire{width:103px;height:103px}.overview-heading .tire-core{inset:27px;border-width:6px}.overview-heading .tire span{top:11px;left:39px;font-size:13px}
.session-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}.metric-card{padding:19px 18px;border:1px solid var(--line);border-radius:8px;background:var(--white)}.metric-card>span{font-size:11px;color:var(--readable-muted);display:block}.metric-card strong{font:500 29px var(--display);display:block;margin:8px 0}.metric-card small{font-size:10px;color:var(--readable-muted);line-height:1.6;display:block}
.overview-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:18px}.info-card{padding:23px;border:1px solid var(--line);border-radius:8px;background:var(--white)}h3{font:500 17px var(--display);letter-spacing:-.3px;margin:0}.info-card .section-heading{margin-bottom:17px}.data-badge{font:9px var(--mono);line-height:1.4;padding:6px 8px;border:1px solid var(--line);border-radius:4px;white-space:nowrap;color:var(--accent-ink);background:var(--subtle)}.data-badge.estimated{color:#9b6d2d;background:#f5ecd8;border-color:#e5d5b2}:root[data-theme="dark"] .data-badge.estimated{color:#e7c388;background:#392f20;border-color:#5e4d30}
.coverage-bar{display:flex;height:12px;border-radius:3px;overflow:hidden;margin:6px 0 17px;background:var(--subtle)}.coverage-bar span{min-width:0}.coverage-clean{background:#8ba85b}.coverage-tagged{background:#dfaa57}.coverage-missing{background:#9c9c98}.coverage-key{display:flex;justify-content:space-between;gap:14px;font-size:11px;padding:5px 0;color:var(--readable-muted)}.coverage-key i{display:inline-block;width:8px;height:8px;margin-right:8px;border-radius:2px}.coverage-key strong{font:11px var(--mono);color:var(--ink)}.interpretation{font-size:11px;line-height:1.8;color:var(--readable-muted);margin:15px 0}.context-list{margin:0;display:grid;gap:12px}.context-list>div{display:grid;grid-template-columns:100px 1fr;gap:10px;font-size:11px;line-height:1.7}.context-list dt{color:var(--readable-muted)}.context-list dd{margin:0}.coverage-warnings{color:var(--readable-muted);font-size:11px;line-height:1.7;padding:12px;background:var(--subtle);border-radius:4px;margin-top:15px}
.workflow-heading{margin:29px 0 16px}.workflow-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.workflow-card{border:1px solid var(--line);border-radius:8px;background:var(--white);text-align:left;padding:20px 22px;display:grid;grid-template-columns:30px 1fr;gap:8px 12px;align-content:start}.workflow-icon{grid-row:1/4;font-size:24px;color:var(--accent-ink);line-height:1.2}.workflow-card strong{font:500 16px var(--display)}.workflow-card>span:not(.workflow-icon){font-size:11px;line-height:1.75;color:var(--readable-muted)}.workflow-card small{font:9px var(--mono);color:var(--accent-ink);margin-top:4px}.glossary{margin-top:22px}.glossary summary{font-size:12px;cursor:pointer}.glossary dl{display:grid;grid-template-columns:115px 1fr;gap:13px;font-size:11px;line-height:1.8;margin:20px 0 0}.glossary dt{font-weight:600}.glossary dd{margin:0;color:var(--readable-muted)}
.view-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:23px 0}.view-heading h2{font:500 27px var(--display);letter-spacing:-.8px;margin:7px 0}.view-heading p{font-size:12px;color:var(--readable-muted);line-height:1.7;margin:8px 0 0;max-width:680px}.view-heading .eyebrow{font-size:9px}
.filter-card{padding:18px 21px;border:1px solid var(--line);border-radius:8px;background:var(--white);margin-bottom:20px}.scope-note{font:10px/1.85 var(--mono);color:var(--readable-muted);margin:13px 0 0;padding-top:12px;border-top:1px solid var(--line)}.filter-card .analysis-toolbar{margin:0 0 15px;align-items:end}.filter-card .pace-driver-chips{margin:0}.analysis-toolbar label{font-size:11px}.analysis-toolbar select{font-size:12px}.analysis-toolbar label:has(input){padding:9px 0}.analysis-toolbar button{margin-left:auto}
.subnav{display:flex;gap:4px;margin:0 0 18px;background:var(--subtle);padding:4px;border-radius:6px;width:fit-content;max-width:100%;flex-wrap:wrap}.subnav button{border:0;border-radius:4px;font-size:11px;padding:9px 14px;background:transparent;color:var(--readable-muted)}.subnav button.active{background:var(--white);color:var(--ink);box-shadow:0 1px 3px #0001}.chart-reading{font-size:11px;line-height:1.8;color:var(--readable-muted);padding:13px 24px;border-top:1px solid var(--line);margin-top:12px;background:var(--subtle)}.chart-notice{margin-top:13px}.analysis-chart .chart-heading{padding:2px 12px 15px}.analysis-note{color:var(--readable-muted);font-size:11px}.analysis-chart .chart-reading{padding:12px 15px;margin-top:10px;border-radius:5px}.strategy-card h3{margin:0}.pace-panel{padding:0}
.tire-filters .section-label{margin-bottom:13px}.section-label>strong{font-size:11px;font-weight:500}.driver-picker{margin-top:16px;padding-top:15px;border-top:1px solid var(--line)}.driver-picker summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;font-size:11px;gap:15px}.driver-picker summary>span{font:10px var(--mono);color:var(--readable-muted)}.driver-picker-top{display:flex;align-items:center;justify-content:space-between;margin:8px 0}.driver-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;max-height:270px;padding:3px 3px 3px 0}.driver-name{font-size:11px}.driver-team{font-size:9px}.driver-option{padding:9px 8px}.slope-guide{font-size:11px;line-height:1.8;color:var(--readable-muted);margin:0 0 14px}.slope-guide strong{color:var(--ink);font-weight:500}.below-chart{grid-template-columns:minmax(0,1fr) 260px}.trend-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.trend-value{font-size:25px}.trend-section .section-heading{flex-wrap:wrap}.detail-card{border:1px solid var(--line);border-radius:7px;background:var(--white);padding:17px 21px;margin:16px 0;font-size:11px}.detail-card>summary{cursor:pointer;display:flex;justify-content:space-between;gap:16px;line-height:1.7;font-size:12px}.detail-card>summary>span{color:var(--readable-muted);font-size:10px}.detail-card[open]>summary{margin-bottom:17px}.detail-card .switch-label{margin:0 0 16px}.selected-ledger{padding:0;border:0;background:transparent}.selected-ledger .section-heading{margin-bottom:12px}.selected-ledger .section-heading p{margin:0}.method.detail-card{color:var(--readable-muted)}.method.detail-card summary{color:var(--ink)}.trend-note{font-size:11px;color:var(--readable-muted)}
.quali-top-controls{margin-top:0;padding:17px 21px}.estimate-note{display:flex;gap:14px;align-items:center;margin:0 0 20px;padding:12px 16px;background:var(--subtle);border-radius:6px}.estimate-note p{font-size:11px;line-height:1.8;color:var(--readable-muted);margin:0}.h2h-controls{margin-top:0}.h2h-result{grid-template-columns:minmax(0,1fr) 260px}.track-map-card .chart-legend{padding:0;margin-bottom:12px}.delta-card .section-heading{margin-bottom:12px}
.radio-panel{padding:0}.radio-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:18px;margin-top:19px}.radio-layout .radio-drivers{grid-template-columns:1fr;margin:0;max-height:630px;overflow:auto;align-content:start;padding-right:5px}.radio-driver{padding:14px;min-height:87px}.radio-driver-clips{margin-top:9px}.radio-layout .radio-transmissions{min-width:0;align-self:start}.radio-clip{grid-template-columns:90px minmax(0,1fr);gap:13px}
.explorer-filters{display:flex;flex-wrap:wrap;gap:14px;align-items:end}.explorer-filters label{display:flex;flex-direction:column;gap:7px;font-size:11px;min-width:130px;color:var(--readable-muted)}.explorer-filters select,.explorer-filters input{padding:9px 11px;font-size:11px;border:1px solid var(--line);border-radius:5px;background:var(--subtle);color:var(--ink);width:100%}.explorer-filters .search-field{flex:1;min-width:190px}.explorer-filters button{padding:10px 0}.data-explorer-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:18px;align-items:start}.data-explorer-layout .laps-card{padding:15px 17px}.data-explorer-layout .inspector{position:sticky;top:70px}.data-explorer-layout .inspect-time{font-size:28px}.sector-list{margin:16px 0;border-top:1px solid var(--line);padding-top:13px;font:10px/1.9 var(--mono)}.sector-list div{display:flex;justify-content:space-between}.data-explorer-layout tr[data-data-row]{cursor:pointer}.data-explorer-layout tr[data-data-row]:hover,.data-explorer-layout tr.selected-row{background:var(--tint)}.context-cell{white-space:normal;min-width:165px}.compound-pill{font:9px var(--mono);border-left:3px solid var(--compound);padding:4px 7px;background:var(--subtle);border-radius:3px}.inspector .interpretation{font-size:10px}footer{color:var(--readable-muted)}
@media(min-width:1450px){main{padding:28px 45px}.workspace{grid-template-columns:265px minmax(0,1fr)}}
@media(max-width:1150px){.workspace{grid-template-columns:220px minmax(0,1fr)}main{padding:23px}.sidebar{padding:26px 18px}.session-info{gap:8px}.driver-list{grid-template-columns:repeat(3,minmax(0,1fr))}.session-metrics{gap:8px}.metric-card{padding:16px 13px}.metric-card strong{font-size:26px}.data-explorer-layout{grid-template-columns:1fr}.data-explorer-layout .inspector{position:static}.overview-grid{grid-template-columns:1fr 1fr}.radio-layout{grid-template-columns:210px minmax(0,1fr)}.h2h-result{grid-template-columns:minmax(0,1fr) 220px}.below-chart{grid-template-columns:minmax(0,1fr) 220px}.trend-cards{grid-template-columns:1fr}}
@media(max-width:900px){.session-bar{align-items:flex-start;flex-direction:column;gap:10px}.session-info{justify-content:flex-start}.overview-grid{grid-template-columns:1fr}.session-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.workflow-grid{grid-template-columns:1fr}.radio-layout{grid-template-columns:1fr}.radio-layout .radio-drivers{grid-template-columns:repeat(3,minmax(0,1fr));max-height:280px}.below-chart,.h2h-result{grid-template-columns:1fr}.trend-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.driver-list{grid-template-columns:repeat(2,minmax(0,1fr))}.analysis-toolbar button{margin-left:0}.page-tabs>button{padding:13px 10px;font-size:11px}.glossary dl{grid-template-columns:100px 1fr}}
@media(max-width:760px){.workspace{display:block}.sidebar{position:static;min-height:0;padding:18px 20px;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 12px}.sidebar-title{grid-column:1/-1;margin-bottom:8px}.sidebar-help{grid-column:1/-1;margin:0 0 15px;font-size:10px}.sidebar .latest-button{grid-column:1/-1;max-width:190px;margin:10px 0}.sidebar .source-status{grid-column:1/-1}.sidebar .quick-section{grid-column:1/-1;margin-top:13px;padding-top:13px}.sidebar-guide{display:none}main{padding:20px 18px}.view-description{margin-bottom:18px}.page-tabs{gap:1px}.page-tabs>button{font-size:10px;padding:12px 9px}.view-heading{margin:17px 0;align-items:flex-start;flex-wrap:wrap}.view-heading h2{font-size:24px}.view-heading p{font-size:11px}.overview-heading{min-height:105px}.overview-heading h2{font-size:28px}.overview-heading .tire{width:76px;height:76px}.overview-heading .tire-core{inset:19px;border-width:4px}.overview-heading .tire span{left:26px;top:8px;font-size:10px}.metric-card{padding:15px}.metric-card strong{font-size:26px}.metric-card>span{font-size:10px}.metric-card small{font-size:9px}.info-card,.filter-card{padding:18px 16px}.workflow-card{padding:18px}.view-heading .data-badge{font-size:8px}.subnav button{padding:9px 12px;font-size:10px}.chart-reading{padding:12px 16px;font-size:10px}.scope-note{font-size:9px}.analysis-toolbar select{font-size:11px}.detail-card{padding:16px}.detail-card>summary{font-size:11px}.detail-card>summary>span{font-size:9px}.estimate-note{align-items:flex-start;flex-direction:column;gap:8px}.radio-layout .radio-drivers{grid-template-columns:repeat(2,minmax(0,1fr))}.radio-driver{min-height:95px}.explorer-filters{gap:12px}.explorer-filters label{min-width:0;flex:1 1 calc(50% - 12px)}.explorer-filters .search-field{flex-basis:100%}.data-explorer-layout .laps-card{padding:12px}.glossary dl{grid-template-columns:1fr;gap:5px}.glossary dd{margin-bottom:10px}.context-list>div{grid-template-columns:90px 1fr}.session-bar h1{font-size:24px;line-height:1.3}.sidebar .field select{min-width:0}.session-metrics{margin-bottom:14px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.workspace-loading.unavailable .loading-ring{display:none}

/* Keep every driver choice beside the teammate it belongs to. */
.team-driver-group{min-width:0}.team-group-title{display:flex;align-items:center;gap:7px;font:500 10px var(--body);color:var(--readable-muted);margin:0 0 8px}.team-group-title i{width:3px;height:14px;border-radius:2px;flex:none}.team-driver-members{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
#pace-driver-chips{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px 14px}.pace-team .team-driver-members{display:flex;gap:6px;flex-wrap:wrap}.pace-team .pace-driver-chip{flex:1;justify-content:center;padding:7px 9px}.pace-team .team-group-title{margin-bottom:6px}
#drivers{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 18px;max-height:410px}.tire-team .driver-option{min-width:0}.tire-team .driver-name{overflow-wrap:anywhere}.picker-summary-end{display:flex;gap:12px;align-items:center}.driver-picker .picker-chevron{font:24px/1 var(--body);color:var(--ink);transition:transform .15s}.driver-picker[open] .picker-chevron{transform:rotate(180deg)}.chart-empty .outline-button{margin-top:13px}
#radio-panel .radio-layout{display:block}#radio-panel .radio-drivers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:none;overflow:visible;padding:0;margin:20px 0 26px;gap:22px 18px}#radio-panel .radio-transmissions{width:100%;margin-top:24px}.radio-selection-hint{padding:14px 17px;background:var(--subtle);border-radius:6px;font-size:12px;line-height:1.7;color:var(--readable-muted);margin:17px 0 0}.radio-selected-heading{display:flex;align-items:start;justify-content:space-between;gap:15px}.radio-selected-heading .radio-sub{margin-bottom:20px}
@media(max-width:1100px){#pace-driver-chips{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){#pace-driver-chips{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}#radio-panel .radio-drivers{grid-template-columns:1fr}#drivers{grid-template-columns:1fr;max-height:400px}.radio-selected-heading{flex-wrap:wrap}.radio-selected-heading .outline-button{margin-bottom:16px}}
.event-results-section{margin:0 0 27px}.event-outcomes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.outcome-card{padding:20px;border:1px solid var(--line);border-radius:8px;background:var(--white)}.outcome-card.current{border-color:var(--accent-ink)}.outcome-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.outcome-heading h3{font-size:16px}.outcome-top{list-style:none;padding:0;margin:0}.outcome-top li{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--line)}.outcome-position{font:11px var(--mono);color:var(--readable-muted)}.outcome-top li>div{border-left:3px solid var(--driver);padding-left:9px;flex:1;min-width:0}.outcome-top strong{font-size:11px;font-weight:500;display:block;overflow-wrap:anywhere}.outcome-top small{font-size:9px;color:var(--readable-muted);display:block;margin-top:4px}.outcome-time{font:10px var(--mono);white-space:nowrap}.outcome-fastest{padding:14px 0;display:grid;gap:6px}.outcome-fastest>span{font:8px var(--mono);letter-spacing:.6px;color:var(--accent-ink)}.outcome-fastest strong{font:500 12px var(--body)}.outcome-fastest small{font:10px var(--mono);color:var(--readable-muted);line-height:1.6}.outcome-card>.text-button{margin-top:5px}.event-results-section>.interpretation{font-size:10px}
@media(max-width:900px){.event-outcomes{grid-template-columns:1fr}.outcome-card{padding:18px}}

/* Compact outcomes and aligned disclosure controls. */
#event-outcomes{grid-template-columns:minmax(0,1fr)}
.other-outcome-details{margin-top:16px;padding:16px 18px;border:1px solid var(--line);border-radius:7px;background:var(--white)}
.other-outcome-details>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;cursor:pointer;font-size:12px;line-height:20px;list-style:none}
.other-outcome-details>summary::-webkit-details-marker,.driver-picker>summary::-webkit-details-marker{display:none}
.other-outcome-details>summary strong{font-weight:500}.other-outcome-details>summary .picker-summary-end{font:10px/20px var(--mono);color:var(--readable-muted)}
.other-outcome-details[open]>summary{margin-bottom:18px}
.picker-summary-end{display:inline-flex;align-items:center;justify-content:flex-end;gap:10px;line-height:20px}
#tire-selection-count{display:inline-block;line-height:20px}
.driver-picker .picker-chevron,.other-outcome-details .picker-chevron{display:block;width:16px;height:16px;flex:0 0 16px;transform-origin:center;color:var(--ink);transition:transform .15s}
.other-outcome-details[open] .picker-chevron{transform:rotate(180deg)}

.classification-list.expanded{max-height:340px;overflow-y:auto;overscroll-behavior:contain;padding-right:7px;scrollbar-gutter:stable;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.classification-toggle{margin:14px 0 3px}.classification-note{font-size:10px;color:var(--readable-muted);line-height:1.7;margin:9px 0}
.classification-list.expanded .outcome-position{min-width:28px}.classification-list.expanded .outcome-top li:last-child{border-bottom:0}
/* Separate disclosure from navigation instead of adjacent inline buttons. */
.outcome-actions{display:flex;align-items:center;padding-top:16px;margin-top:14px;border-top:1px solid var(--line)}.outcome-actions .text-button{padding:4px 0;line-height:1.6}.outcome-more:empty{display:none}.outcome-more .classification-toggle{margin-bottom:0}
.telemetry-card,.history-card{padding:22px 20px}.telemetry-card .section-heading,.history-card .section-heading{align-items:flex-start;flex-wrap:wrap}.telemetry-card svg,.history-card svg{display:block;width:100%;height:auto}.telemetry-card .chart-legend{padding:0;margin-bottom:14px}.telemetry-position-control{display:flex;align-items:center;gap:12px;font-size:11px;color:var(--readable-muted);margin:20px 0 12px}.telemetry-position-control input{flex:1;min-width:80px;accent-color:var(--accent-ink)}.telemetry-position-control output{font:10px var(--mono);min-width:45px}.telemetry-inspector{font:10px/1.85 var(--mono);color:var(--readable-muted);padding:14px;background:var(--subtle);border-radius:6px}.history-card .analysis-toolbar{margin:18px 0}.history-card input[type=number]{max-width:130px;border:1px solid var(--line);background:var(--subtle);color:var(--ink);border-radius:5px;padding:9px 10px;font-size:11px}.telemetry-card .chart-reading,.history-card .chart-reading{font-size:10px;padding:13px 15px;border-radius:5px}
@media(max-width:760px){.telemetry-card,.history-card{padding:18px 13px}.telemetry-position-control{font-size:10px;gap:8px;flex-wrap:wrap}.telemetry-inspector{font-size:9px}.telemetry-card .section-heading h3,.history-card .section-heading h3{font-size:16px}.outcome-actions{padding-top:14px;margin-top:14px}}

.site-footer{display:flex;flex-direction:column;align-items:stretch;gap:18px}.footer-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.footer-disclaimer{border-top:1px solid var(--line);padding-top:16px;font:11px/1.8 var(--body);color:var(--readable-muted)}.footer-disclaimer p{margin:0 0 10px;max-width:1100px}.footer-disclaimer a{text-decoration:underline;text-underline-offset:3px}.footer-disclaimer .footer-copyright{margin:14px 0 0;font-size:10px}

/* Keep the footer below short/loading views without overlaying content. */
.workspace{min-height:calc(100vh - 86px)}.workspace>main{display:flex;flex-direction:column;min-width:0}.site-footer{margin-top:auto}.footer-disclaimer{text-align:center}.footer-disclaimer p{margin-left:auto;margin-right:auto}

/* Explicit disclosure affordance and consistent footer clearance in every view. */
#tire-strategy>summary{align-items:center;list-style:none}#tire-strategy>summary::-webkit-details-marker{display:none}.strategy-disclosure-end{display:flex;align-items:center;gap:12px;min-width:0}.strategy-disclosure-end .picker-chevron{flex:none;transition:transform .15s}#tire-strategy[open]>summary .picker-chevron{transform:rotate(180deg)}
.site-footer{padding-top:32px}.footer-meta{align-items:center;line-height:1.8}.footer-meta>span{min-width:0}
@media(max-width:760px){.footer-meta{flex-direction:column;align-items:center;gap:8px;text-align:center}.site-footer{padding-top:28px}.strategy-disclosure-end{gap:8px}}

.source-conflict-notice{margin-top:18px;padding:16px;border:1px solid var(--line);border-left:3px solid var(--orange);border-radius:6px;background:var(--subtle);font-size:11px;line-height:1.8}.source-conflict-notice p{margin:8px 0}.source-conflict-notice ul{margin:10px 0;padding-left:20px}.source-conflict-notice li+li{margin-top:8px}

/* Native selects must shrink within comparison columns rather than use option width. */
.h2h-controls,.h2h-driver,.h2h-controls label{min-width:0}.h2h-driver select{width:100%;min-width:0;max-width:100%;text-overflow:ellipsis}.h2h-action{min-width:0}
@media(max-width:760px){.h2h-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.h2h-controls>*{min-width:0}}
@media(max-width:480px){.h2h-controls{grid-template-columns:minmax(0,1fr)}.h2h-action{flex-wrap:wrap;gap:16px}.h2h-action button{max-width:100%}}

#telemetry-legend{display:flex;flex-wrap:wrap;gap:10px}.telemetry-card #telemetry-legend .telemetry-pill{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--line);border-radius:999px;background:var(--subtle);font-size:11px;line-height:1.3;max-width:100%}.telemetry-card #telemetry-legend svg{display:block;width:26px;height:10px;flex:0 0 26px}.telemetry-pill-side{font:10px var(--mono);color:var(--readable-muted)}.telemetry-pill-lap{font:10px var(--mono);color:var(--readable-muted);padding-left:8px;border-left:1px solid var(--line)}

/* Give chart guidance, coverage and limitations distinct reading blocks. */
.analysis-note,.interpretation,.trend-note,.method.detail-card>div{white-space:pre-line;line-height:1.85;max-width:90ch}
.chart-reading,.chart-notice{white-space:pre-line;line-height:1.85}
.analysis-note,.interpretation,.trend-note{margin-top:16px;margin-bottom:16px}
#telemetry-status{white-space:pre-line;line-height:1.85;max-width:90ch}
.source-conflict-notice p{line-height:1.85}.source-conflict-notice li+li{margin-top:12px}

.championship-controls{display:flex;flex-wrap:wrap;gap:20px}.championship-controls label{display:flex;flex-direction:column;gap:7px;font-size:11px;min-width:0}.championship-controls label:last-child{flex:1}.championship-controls select{min-width:0;width:100%;border:1px solid var(--line);background:var(--subtle);color:var(--ink);padding:11px;border-radius:5px}.championship-tables{display:grid;grid-template-columns:1.2fr 1fr;gap:18px}.championship-tables .laps-card{padding:20px;min-width:0}.championship-tables .table-scroll{max-height:460px;overflow:auto}.champ-team{display:block;padding-left:14px;font-size:10px;color:var(--readable-muted);margin-top:4px}.championship-chart-card{padding:22px 20px}.championship-chart-card svg{display:block;width:100%;height:auto}.championship-chart-card .driver-picker{margin-bottom:20px}#championship-status{margin:0 0 18px;padding:0;border:0}
@media(max-width:1000px){.championship-tables{grid-template-columns:1fr}.championship-controls{gap:14px}.championship-controls label:last-child{flex-basis:100%}}

.championship-tables th{position:sticky;top:0;z-index:1;background:var(--white)}.championship-controls select{max-width:100%}.championship-chart-card .section-heading{flex-wrap:wrap;gap:12px}.championship-chart-card .driver-picker summary{align-items:center}

.workspace-mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border:1px solid var(--line);border-radius:7px;background:var(--subtle);margin:0 0 20px}.workspace-mode-switch button{border:0;border-radius:4px;background:transparent;padding:10px 7px;font-size:11px;color:var(--readable-muted)}.workspace-mode-switch button.active{background:var(--white);color:var(--ink);box-shadow:0 1px 3px #0001}.championship-tables{grid-template-columns:1fr}.championship-entity-tabs{margin-top:8px}
@media(max-width:760px){.workspace-mode-switch{grid-column:1/-1;min-width:0;margin-bottom:16px}#sidebar-session-field.hidden{display:none!important}}

.championship-matrix-card{padding:22px 20px;min-width:0}.championship-matrix-scroll{max-height:560px;overflow:auto;border:1px solid var(--line);border-radius:6px}.championship-matrix{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0}.championship-matrix th,.championship-matrix td{padding:13px 16px;white-space:nowrap;text-align:right;border-bottom:1px solid var(--line)}.championship-matrix thead th{position:sticky;top:0;z-index:2;background:var(--white);font-size:10px;font-weight:500}.championship-matrix thead small{display:block;color:var(--readable-muted);font:9px var(--mono);margin-bottom:5px}.championship-matrix tr>:first-child{position:sticky;left:0;background:var(--white);text-align:left;z-index:1;min-width:170px;border-right:1px solid var(--line)}.championship-matrix thead tr>:first-child{z-index:3}.championship-matrix tbody th{font-size:11px;font-weight:500}.championship-matrix .points-zero,.championship-matrix .points-missing{color:var(--readable-muted)}.championship-matrix .points-total{font-weight:600;background:var(--subtle)}.championship-matrix-card .analysis-note{font-size:11px;margin-bottom:0}.championship-matrix-scroll:focus-visible{outline:2px solid var(--accent-ink);outline-offset:3px}
@media(max-width:760px){.championship-matrix-card{padding:18px 13px}.championship-matrix th,.championship-matrix td{padding:12px}.championship-matrix tr>:first-child{min-width:140px;max-width:160px;white-space:normal}.championship-matrix .table-name{line-height:1.5}}

.champ-movement{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;font:11px var(--mono)}.champ-movement.gained{color:#21733c}.champ-movement.lost{color:#b83232}.champ-movement.unchanged{color:var(--readable-muted)}

:root[data-theme="dark"] .champ-movement.gained{color:#88d49b}:root[data-theme="dark"] .champ-movement.lost{color:#ff9797}

/* Stack labels consistently; number fields must not inherit checkbox layout. */
.history-card .history-controls{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1.35fr) minmax(120px,.85fr) auto;gap:16px;align-items:end}.history-card .history-controls label.history-field{display:flex;flex-direction:column;align-items:stretch;gap:7px;padding:0;min-width:0;font-size:11px;line-height:1.5}.history-card .history-controls :is(select,input[type=number]){box-sizing:border-box;width:100%;max-width:none;min-width:0;height:40px;margin:0;padding:9px 11px;font-size:11px;border:1px solid var(--line);border-radius:5px;background:var(--subtle);color:var(--ink)}.history-card .history-controls label.history-full-field{display:flex;flex-direction:row;align-items:center;gap:8px;padding:0;min-height:40px;white-space:nowrap}.history-full-field input{margin:0}.history-card .history-controls.leader-mode{grid-template-columns:minmax(0,300px) auto;justify-content:start}
@media(max-width:1100px){.history-card .history-controls{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.history-card .history-controls,.history-card .history-controls.leader-mode{grid-template-columns:minmax(0,1fr);gap:14px}}

.pace-chart-wrap{position:relative}.pace-tooltip{position:absolute;z-index:5;max-width:min(280px,100%);padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--white);color:var(--ink);box-shadow:0 6px 24px #0002;pointer-events:none;font-size:12px;line-height:1.6}.pace-tooltip strong{font-size:12px}.pace-tooltip small{color:var(--muted)}

.filter-card .pace-comparison-toolbar{display:flex;flex-wrap:wrap;align-items:end;justify-content:flex-start;gap:12px 16px}.filter-card .pace-comparison-toolbar button{margin-left:0;min-height:40px;white-space:nowrap}.pace-comparison-toolbar #pace-selection-control{display:flex;flex-direction:column;gap:7px;min-width:200px;order:0}.pace-comparison-toolbar #pace-selection-control select{height:40px;box-sizing:border-box}.pace-comparison-toolbar #pace-range-control{order:1;min-height:40px;display:flex;align-items:center;padding:0}.pace-comparison-toolbar #pace-select-all{order:2}.pace-comparison-toolbar #pace-clear-focus{order:3}.lap-table-hint{padding:0 20px 18px;font-size:12px;line-height:1.7}.lap-table-hint a{color:var(--ink);text-underline-offset:3px}.comparison-actions{display:flex;gap:12px;align-items:center;margin:18px 0}.comparison-table-scroll{max-height:580px;overflow:auto;margin-top:18px}.comparison-table-scroll th{position:sticky;top:0;background:var(--white);z-index:1}.comparison-table-scroll tr>:first-child{position:sticky;left:0;background:var(--white);z-index:2}.comparison-table-scroll thead th:first-child{z-index:3}.comparison-table-scroll td,.comparison-table-scroll th{white-space:nowrap;min-width:100px}

.lap-table-hint{text-align:center}.chart-export-tools{display:flex;justify-content:flex-end;align-items:center;gap:10px;flex-wrap:wrap;padding:6px 18px 12px}.chart-export-tools button{font-size:11px}.chart-export-tools [role=status]{font-size:10px;color:var(--muted)}.comparison-actions{flex-wrap:wrap}

.has-chart-download{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.has-chart-download>:first-child{flex:1;min-width:0}.has-chart-download .chart-export-tools{flex:0 0 auto;margin-left:auto;padding:0;gap:0;position:relative}.chart-download-button{white-space:nowrap;font-size:11px;min-height:36px}.has-chart-download .chart-export-tools [role=status]{position:absolute;right:0;top:100%;padding-top:3px;white-space:nowrap;font-size:9px}.has-chart-download .chart-export-tools [role=status]:empty{display:none}

.mini-tie-control{display:flex;align-items:center;gap:8px;margin:10px 0 18px;font-size:12px;color:var(--ink)}.mini-tie-control input{accent-color:var(--accent-ink)}.mini-estimation-note{font-size:11px;line-height:1.7;color:var(--readable-muted);margin:14px 0}

.map-segment.selected-minisector{stroke-width:11;filter:drop-shadow(0 0 2px var(--ink))}

.pit-team{display:block;margin:4px 0 0 15px;font-size:10px;color:var(--readable-muted)}.pit-explanation{margin-top:20px;font-size:12px;line-height:1.8}.pit-explanation p+p{margin-top:16px}


/* Support checkout */
.support-button{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));z-index:40;display:flex;align-items:center;gap:10px;padding:12px 16px;border-radius:8px;background:#536c32;color:#fff;text-decoration:none;font:600 14px var(--body);box-shadow:0 3px 12px #0002}
:root[data-theme="dark"] .support-button{background:#d4ed6c;color:#252a26}
.support-button:hover{filter:brightness(1.08)}
.support-dialog{position:fixed;inset:0 0 0 auto;width:min(560px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;border-left:1px solid var(--line);border-radius:0;background:var(--paper);color:var(--ink);box-sizing:border-box;overflow:hidden;box-shadow:-12px 0 40px #0002}
.support-dialog[open]{display:flex;flex-direction:column;animation:support-drawer-enter 220ms cubic-bezier(.22,1,.36,1) both}
.support-dialog::backdrop{background:#08100d44}
.support-content{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;padding:24px;padding-bottom:max(24px,env(safe-area-inset-bottom));scrollbar-gutter:stable}
@keyframes support-drawer-enter{from{transform:translateX(100%);opacity:.7}to{transform:translateX(0);opacity:1}}
@media(prefers-reduced-motion:reduce){.support-dialog[open]{animation:none}}
body.support-open{overflow:hidden}
.support-heading{display:flex;align-items:flex-start;gap:24px;margin:0;padding:24px;border-bottom:1px solid var(--line);flex-shrink:0}.support-heading h2{margin:0 0 8px;font:700 24px var(--display)}.support-heading p{margin:0;line-height:1.6;color:var(--muted)}
#support-close{margin-left:auto;flex-shrink:0;border:0;background:transparent;font-size:28px;line-height:1;width:36px;height:36px;border-radius:6px;color:var(--ink)}
#support-form{max-width:420px;margin:auto}#support-form fieldset{margin:0;padding:0;border:0}#support-form legend{padding:0;margin-bottom:12px;font-weight:600}.support-presets{display:flex;gap:10px;margin-bottom:20px}.support-presets button{flex:1;padding:12px;border:1px solid var(--line);background:var(--white);border-radius:8px;font-weight:600}.support-presets button[aria-pressed="true"]{background:var(--lime);color:#252a26;border-color:#8ca94e}#support-form label{display:block;margin-bottom:8px;font-size:12px}.support-amount-field{display:flex;gap:8px;align-items:center;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:var(--white);font-size:24px}.support-amount-field input{min-width:0;width:100%;border:0;background:transparent;color:var(--ink);font-size:24px;outline-offset:4px}.support-primary{width:100%;padding:14px;margin-top:18px;border:0;border-radius:8px;background:#536c32;color:#fff;font-weight:600}:root[data-theme="dark"] .support-primary{background:var(--lime);color:#252a26}
#support-status{line-height:1.6;margin:16px 0;white-space:pre-line}#support-status:empty{display:none}#support-back{margin-bottom:16px}#support-checkout:empty{display:none}.support-footer{font-size:11px;line-height:1.8;text-align:center;color:var(--muted);margin:20px 0 0}.support-footer a{text-underline-offset:3px}.workspace main{padding-bottom:90px}
@media(max-width:760px){.support-button{width:44px;height:44px;padding:0;justify-content:center;border-radius:50%;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom))}.support-button span{display:none}.support-dialog{width:100vw;border-left:0}.support-content{padding:18px;padding-bottom:max(18px,env(safe-area-inset-bottom))}.support-heading{gap:10px;padding:18px}.support-heading h2{font-size:21px}}

.support-amount-note{margin:14px 0 0;font-size:12px;line-height:1.7;color:var(--readable-muted)}.support-amount-note.is-error{color:var(--ink);border-left:2px solid var(--orange);padding-left:10px}

/* Keep titles readable when chart actions exceed a phone's available width. */
@media(max-width:600px){
 .has-chart-download{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 8px;align-items:start}
 .has-chart-download>:first-child{grid-column:1/-1;width:100%;min-width:0}
 .has-chart-download>.outline-button,.has-chart-download>.text-button{width:100%;min-width:0;min-height:40px;white-space:normal;line-height:1.4}
 .has-chart-download .chart-export-tools{width:100%;min-width:0;margin-left:0;display:flex;flex-direction:column;align-items:stretch;gap:5px}
 .has-chart-download .chart-download-button{width:100%;min-height:40px;white-space:normal;line-height:1.4}
 .has-chart-download .chart-export-tools:nth-child(2){grid-column:1/-1;justify-self:end;width:auto;min-width:140px;max-width:100%}
 .has-chart-download .chart-export-tools [role=status]{position:static;white-space:normal;padding-top:0;line-height:1.5;overflow-wrap:anywhere}
 .has-chart-download>.data-badge{justify-self:start;max-width:100%;white-space:normal}
 .view-heading{flex-wrap:wrap;gap:14px;align-items:flex-start}
 .view-heading>div:first-child{flex:1 0 100%;min-width:0}
 .view-heading>button{max-width:100%;min-height:40px;white-space:normal}
}

/* Sites experiment: event-specific markers; annotations never imply whole-field status. */
.event-sc{--event-color:#e7aa26}.event-vsc{--event-color:#a78bfa}.event-yellow{--event-color:#e7d238}.event-red{--event-color:#e16b66}.event-green{--event-color:#78af65}.event-blue{--event-color:#6ba8df}.event-finish,.event-warning{--event-color:var(--readable-muted)}
.event-row{display:grid;grid-template-columns:66px 46px minmax(0,1fr) auto;gap:12px;padding:13px 12px;border-left:3px solid transparent}.event-row[class*="event-"]{border-left-color:var(--event-color,transparent);background:color-mix(in srgb,var(--event-color,transparent) 6%,transparent)}
.event-row>span{min-width:0;overflow-wrap:anywhere;color:var(--ink)}.event-row strong{min-width:0;line-height:1.8}.event-type{grid-column:4;grid-row:1;justify-self:end;align-self:center;display:block;font:600 9px/1.6 var(--mono);width:fit-content;max-width:100px;text-align:center;padding:2px 5px;margin:0;border:1px solid color-mix(in srgb,var(--event-color) 65%,transparent);border-radius:4px;color:var(--ink)}
.race-control-legend{display:flex;flex-wrap:wrap;gap:8px 16px;margin:16px 0;font:10px/1.7 var(--mono);color:var(--readable-muted)}.race-control-legend span{display:inline-flex;align-items:center;gap:6px}.race-control-legend span:before{content:"";width:3px;height:12px;background:var(--event-color);border-radius:2px}
@media(max-width:600px){.event-row{grid-template-columns:54px minmax(0,1fr) auto;gap:5px 8px;padding:12px 9px}.event-row time{grid-column:1;grid-row:1/3;min-width:0;line-height:1.7}.event-row strong{grid-column:2;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.event-row .event-type{grid-column:3;grid-row:1/3;max-width:78px;margin:0}.event-row>span{grid-column:2}}

.support-presets button{min-width:0;min-height:48px;font:600 18px/1.4 var(--display)}

/* Keep the launcher icon centered without inline baseline spacing. */
.support-button svg{display:block;flex:0 0 22px}
/* The pump body has more visual weight than its hose; compensate in icon-only mode. */
@media(max-width:760px){.support-button svg{transform:translateX(1.5px)}}
