/* Optional precision map: unchanged telemetry geometry, quieter surfaces, directional cursors. */
.map-wrap[data-map-style="precision"]{--map-sheet:#f1f3f5;--map-edge:#c8ced5;--map-road:#e4e8ed;--map-a:#327fd5;--map-b:#e4555c;background:radial-gradient(ellipse at 65% 45%,#fff8,transparent 65%),var(--map-sheet);border:1px solid var(--line);border-radius:12px}
[data-theme="dark"] .map-wrap[data-map-style="precision"]{--map-sheet:#25282d;--map-edge:#4c525c;--map-road:#363c44;--map-a:#70b3ff;--map-b:#ff858b;background:radial-gradient(ellipse at 65% 45%,#46505f30,transparent 65%),var(--map-sheet)}
.map-wrap[data-map-style="precision"].layer-none{background:var(--surface)}
[data-map-style="precision"] .track-edge{stroke:var(--map-edge);stroke-width:6;filter:none}
[data-map-style="precision"] #track-road{stroke:var(--map-road);stroke-width:4.7}
[data-map-style="precision"] .line-halo{stroke:var(--map-sheet);stroke-width:4;stroke-opacity:.75}
[data-map-style="precision"] #track-line-a{stroke:var(--map-a);stroke-width:2.15}
[data-map-style="precision"] #track-line-b{stroke:var(--map-b);stroke-width:2.15;stroke-dasharray:7 3}
[data-map-style="precision"] .circuit-grid{opacity:.45}
[data-map-style="precision"] .position-marker{--position:var(--map-a);filter:none!important}
[data-map-style="precision"] .position-b{--position:var(--map-b)}
[data-map-style="precision"] .position-ring{fill:var(--map-sheet);stroke:var(--position);stroke-width:1.2}
[data-map-style="precision"] .position-core{fill:var(--position);stroke:none}
[data-map-style="precision"] .position-heading{fill:none;stroke:#fff;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
[data-theme="dark"] [data-map-style="precision"] .position-heading{stroke:#202630}
[data-map-style="precision"] .driving-event{filter:none;stroke-width:1.2}
[data-map-style="precision"] .sector-leader{stroke-dasharray:1 4;opacity:.28}
[data-map-style="precision"] .map-sector-label rect{fill:var(--map-sheet);stroke:var(--map-edge);rx:7}
[data-map-style="precision"] .map-sector-label text{font-weight:550;letter-spacing:.3px}
html[data-accent-style] [data-map-style="precision"] :is(.map-telemetry,.lap-chip,.map-option-toggles){background:color-mix(in srgb,var(--surface) 94%,transparent);border:1px solid var(--line);box-shadow:0 3px 12px #0000000a;border-radius:9px;color:var(--ink)}
html[data-accent-style] [data-map-style="precision"] .map-telemetry .map-a{color:var(--map-a)}
html[data-accent-style] [data-map-style="precision"] .map-telemetry .map-b{color:var(--map-b)}
html[data-accent-style] [data-map-style="precision"] .map-data-label{color:var(--muted)}
[data-map-style="precision"] .map-data-row strong{font-weight:550;letter-spacing:-.5px}
[data-map-style="precision"] .map-controls{gap:3px;padding:5px;background:var(--surface);border:1px solid var(--line);border-radius:10px}
[data-map-style="precision"] .map-controls .map-small{border-color:transparent;background:transparent;box-shadow:none}
[data-map-style="precision"] .map-controls .map-small:hover{background:var(--surface-alt)}
[data-map-style="precision"] .event-legend{border-radius:9px;background:var(--surface);border-color:var(--line);box-shadow:0 2px 8px #00000008}
[data-map-style="precision"] .map-range-highlight{stroke:var(--map-a);stroke-width:8;opacity:.16}
/* Readable, aligned repeat action; original card layout retained. */
html[data-accent-style] .opportunity-v15 .opportunity-footer .opportunity-play{font-size:14px;line-height:1.35;font-weight:600;min-height:46px;margin:0;gap:10px}
html[data-accent-style] .opportunity-v15 .opportunity-play .opportunity-action{font:inherit;align-self:center;margin:0;line-height:inherit;white-space:normal}
html[data-accent-style] .opportunity-v15 .opportunity-play svg{display:block;width:20px;height:20px;flex:0 0 20px;align-self:center}
html[data-accent-style] .opportunity-v15 .opportunity-footer [data-compare-corner]{font-size:12px;min-height:36px}
[data-select-corner]{cursor:pointer}
.corner-table-scroll{max-width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:10px;background:var(--surface);scrollbar-width:thin}
.corner-table{width:100%;min-width:860px;border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums;text-align:left}
.corner-table caption{text-align:left;padding:11px 14px;color:var(--muted);font-size:12px;background:var(--surface-alt)}
.corner-table thead{background:var(--surface-alt)}
.corner-table thead th{font-size:12px;font-weight:550;color:var(--muted);padding:11px 12px;border-bottom:1px solid var(--line);white-space:nowrap}
.corner-table thead small{font-weight:400;font-size:10px;margin-left:3px}
.corner-table tbody td,.corner-table tbody th{padding:10px 12px;border-bottom:1px solid var(--line);font-weight:400}
.corner-table tbody:last-child>tr:last-child td,.corner-table tbody:last-child>tr:first-child th{border-bottom:0}
.corner-table-group>tr:first-child:hover{background:color-mix(in srgb,var(--surface-alt) 60%,transparent)}
.corner-table-group.active>tr:first-child{background:color-mix(in srgb,var(--red) 7%,var(--surface))}
.corner-table-group.active>tr:first-child>th{box-shadow:inset 3px 0 var(--red)}
.corner-table th[scope="row"]{min-width:205px;padding:5px 10px;position:sticky;left:0;background:var(--surface);z-index:1}
.corner-table-group.active th[scope="row"]{background:color-mix(in srgb,var(--red) 7%,var(--surface))}
.corner-table th button{justify-content:flex-start;text-align:left;gap:10px;width:100%;min-height:47px;padding:0;background:none}
.corner-table .corner-preview{width:40px;height:38px;flex:0 0 40px}
.corner-table th b{display:block;font-size:13px;font-weight:600}
.corner-table th small,.corner-table td>small{display:block;font-size:11px;color:var(--muted);margin-top:4px;white-space:nowrap}
.corner-table td>strong{display:block;font-weight:550;font-size:14px;white-space:nowrap}
.corner-table .table-lap-b{color:var(--compare);font-size:12px}
.corner-table i{font-style:normal;font-size:10px;margin-right:6px}
.corner-table .table-lap-a{color:var(--blue)}
.corner-table .table-best{color:var(--gain)}
.corner-table .table-measurements-button{font-size:12px;padding:7px 9px;background:var(--surface-alt);border:1px solid var(--line);border-radius:6px;white-space:nowrap}
.table-measurements-button[aria-expanded="true"] span{transform:rotate(180deg)}
.corner-table-detail>td{background:var(--surface-alt);padding:16px 20px!important}
.corner-table-detail dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 28px;margin:0}
.corner-table-detail dl div{display:flex;flex-direction:column;gap:5px}
.corner-table-detail dt{font-size:11px;color:var(--muted)}
.corner-table-detail dd{margin:0;font-size:13px;font-weight:550}
.corner-table-detail dd span{display:block;margin-top:4px}
.csv-mapping{margin-top:14px}
@media(max-width:650px){.corner-table{min-width:790px}.corner-table th[scope="row"]{min-width:170px}.corner-table th button{gap:5px}.corner-table .corner-preview{width:30px;flex-basis:30px}.corner-table-detail dl{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Expanding a panel must not anchor the viewport to the footer beneath it. */
#product-workspace{overflow-anchor:none}

/* Precision racing trace: a satin edge and fine illuminated core. */
.precision-line-core{display:none;fill:none;pointer-events:none;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}
[data-map-style="precision"] .line-halo{stroke:var(--map-a);stroke-width:5.2;stroke-opacity:.14}
[data-map-style="precision"] #track-halo-b{stroke:var(--map-b)}
[data-map-style="precision"] #track-line-a,[data-map-style="precision"] #track-line-b{stroke-width:3.1;stroke-dasharray:none}
[data-map-style="precision"].is-comparing #track-line-a,[data-map-style="precision"].is-comparing #track-line-b{stroke-width:2.5}
[data-map-style="precision"] .precision-line-core{display:block;stroke:#eef7ff;stroke-opacity:.62;stroke-width:.7}
[data-map-style="precision"] #track-core-b{stroke:#ffedeb;stroke-dasharray:6 4;stroke-opacity:.8}
[data-theme="dark"] [data-map-style="precision"] .line-halo{stroke-opacity:.18}
[data-map-style="precision"] .track-edge{stroke-width:5;opacity:.7}
[data-map-style="precision"] #track-road{stroke-width:3.8}
