:root {
  color-scheme: dark;
  font-family: Inter, 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  background: #0b1118;
  color: #e9f0f5;
  --body: #0b1118;
  --panel: #111b25;
  --border: #253542;
  --border-quiet: #20303c;
  --muted: #95a9b8;
  --quiet: #8196a6;
  --teal: #62e7c3;
  --teal-strong: #61e9c3;
  --mono: 'Cascadia Mono', 'SFMono-Regular', Consolas, ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; background: radial-gradient(ellipse at 34% -18%, #122630 0%, transparent 41rem), var(--body); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.accent { color: var(--teal); }
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.site-header { background: #0c141ccf; border-bottom: 1px solid var(--border-quiet); }
.site-inner, .dashboard { max-width: 1536px; margin: 0 auto; padding-inline: clamp(18px, 3.1vw, 48px); }
.site-inner { min-height: 64px; display: flex; align-items: center; gap: 19px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; text-decoration: none; font-size: 21px; font-weight: 750; letter-spacing: -0.9px; }
.brand-pulse { color: var(--teal-strong); }
.brand-icon { display: grid; place-content: center; width: 34px; height: 34px; gap: 2px; padding-bottom: 2px; border: 1px solid #3a9f8955; border-radius: 9px; background: linear-gradient(145deg, #204539, #142a2b); box-shadow: inset 0 1px #6ed6b213; }
.brand-icon i { display: block; height: 3px; border-radius: 4px; background: var(--teal-strong); transform: rotate(-26deg); width: 17px; }
.brand-icon i:nth-child(2) { width: 13px; margin-left: 4px; }
.brand-icon i:nth-child(3) { width: 8px; margin-left: 8px; }
.header-divider { height: 22px; border-left: 1px solid var(--border); }
.header-section { color: var(--muted); font-size: .83rem; }
.feed-status { display: flex; align-items: center; gap: 13px; margin-left: auto; }
.feed-badge { padding: 4px 7px; border: 1px solid #405163; border-radius: 4px; color: #abbac8; background: #192632; white-space: nowrap; font: 650 .66rem/1.3 var(--mono); letter-spacing: .055em; }
.feed-badge.connected { border-color: #30765e; color: var(--teal); background: #15342d; }
.feed-clock { color: #c6d5de; font-size: .76rem; white-space: nowrap; }

.dashboard { padding-top: 26px; }
.race-overview { display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(390px, 1fr); align-items: center; gap: 30px; }
.race-kicker { color: #95b5c0; font: 650 .73rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.race-heading { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 7px 0 10px; }
h1, h2, p, dd { margin: 0; }
h1 { max-width: 100%; color: #f0f5f8; font-size: clamp(1.8rem, 3.05vw, 2.75rem); font-weight: 720; letter-spacing: -.045em; line-height: 1.06; overflow-wrap: anywhere; }
.race-status { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; border: 1px solid #51606b; background: #26313a; color: #d3dde5; padding: 5px 9px; border-radius: 6px; letter-spacing: .085em; font: 700 .72rem/1.2 var(--mono); }
.race-status::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.race-status.live { border-color: #2e755e; background: #173d33; color: #75f5c9; }
.race-status.live::before { box-shadow: 0 0 9px #6ef0bcaa; }
.race-status.scheduled { color: #f0c47f; border-color: #6d5531; background: #382c1d; }
.race-details { display: flex; gap: 8px 15px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.race-route { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 7px; color: #d3dfe7; font-weight: 590; }
.route-pin { color: var(--teal); font-size: .90rem; }
.route-arrow { color: var(--quiet); padding-inline: 1px; }
.race-release { border-left: 1px solid var(--border); padding-left: 13px; }
.race-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; margin: 0; border: 1px solid var(--border); border-radius: 10px; background: linear-gradient(120deg, #14212b, #111a24); }
.race-stat { min-width: 0; padding: 13px 16px 12px; }
.race-stat + .race-stat { border-left: 1px solid var(--border); }
.race-stat dt, .strip-label { color: var(--muted); font-size: .75rem; line-height: 1.3; }
.race-stat .stat-value { display: block; font-weight: 700; font-size: clamp(1.28rem, 2.15vw, 1.86rem); letter-spacing: -.045em; white-space: nowrap; margin-block: 4px; }
.race-stat .stat-note { display: block; color: var(--quiet); font-size: .72rem; white-space: nowrap; }
.race-stat .rate-track { height: 4px; width: 80%; background: #2a3c48; border-radius: 6px; margin-block: 9px 8px; }
.rate-track i, .team-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #36a78c, #67e5be); transition: width .23s ease; }

.filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 23px 0 17px; }
.search-control, .select-control { display: flex; align-items: center; position: relative; min-height: 42px; padding-inline: 13px; border: 1px solid var(--border); border-radius: 7px; background: #111c26; color: var(--muted); gap: 9px; }
.search-control { flex: 1 1 190px; width: min(100%, 350px); max-width: 350px; }
.search-control:focus-within, .select-control:focus-within { border-color: #58c8ad; box-shadow: 0 0 0 2px #53d7b621; }
.search-control input, .select-control select { border: 0; outline: 0; color: #dbe6ed; background: transparent; width: 100%; height: 39px; font-size: .85rem; }
.search-control input { min-width: 0; }
.search-control input::placeholder { color: #9aafbd; opacity: 1; }
.search-control input::-webkit-search-cancel-button { cursor: pointer; }
.search-control kbd { font: .76rem/1.05 var(--mono); border: 1px solid #364855; color: #b2c2cc; padding: 2px 5px; border-radius: 4px; }
.select-control { width: min(100%, 219px); }
.race-picker { width: min(100%, 270px); }
.race-picker[data-status=LIVE] { border-color: #3a6c60; }
.race-picker[data-status=LIVE] > .icon { color: var(--teal); }
.race-picker > .icon-route::before { inset: 9px auto auto 0; }
.race-picker > .icon-route::after { inset: 6px auto auto 4px; }
.select-control select { appearance: none; cursor: pointer; padding-right: 13px; text-overflow: ellipsis; }
.select-control option { background: #14222d; color: #e7f0f5; }
.select-control .chevron { position: absolute; right: 13px; pointer-events: none; }
.feed-note { margin-left: auto; color: var(--muted); font-size: .8rem; }
.feed-note:empty { display: none; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.46fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.panel { min-width: 0; background: var(--panel); border: 1px solid var(--border); border-radius: 11px; box-shadow: 0 5px 18px #060b1029; }
.map-panel, .leaderboard-panel { height: 100%; display: flex; flex-direction: column; }
.panel-header { min-height: 65px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-heading { display: flex; align-items: center; gap: 11px; min-width: 0; }
.panel-heading > div { min-width: 0; }
.panel-heading h2 { color: #edf3f7; font-size: 1rem; line-height: 1.24; font-weight: 700; letter-spacing: -.012em; }
.panel-heading p { color: var(--muted); font-size: .76rem; line-height: 1.4; margin-top: 3px; }
.panel-icon { width: 32px !important; height: 32px !important; background: #1a3438; color: #73d8c8; border: 1px solid #2a4d53; border-radius: 7px; }
.tag { flex: none; padding: 4px 7px; border-radius: 4px; border: 1px solid #314650; font: 650 .66rem/1.35 var(--mono); white-space: nowrap; }
.model-tag { color: #8ee8d2; background: #172e32; border-color: #30514f; letter-spacing: .07em; }
.chart-total { color: #b5cfd9; background: #182734; }

.map-surface { height: 296px; min-height: 292px; flex: 1; position: relative; background: #0d1a25; isolation: isolate; border-block: 1px solid #2b404b; }
.map-surface canvas { display: block; width: 100%; height: 100%; position: absolute; inset: 0; }
.map-tools { display: flex; flex-direction: column; position: absolute; top: 12px; right: 12px; border: 1px solid #3d5460; border-radius: 7px; background: #111e2bea; }
.map-tools .icon-button { background: transparent; border: 0; border-radius: 0; width: 32px; height: 30px; font: 550 1.15rem/1 var(--mono); }
.map-tools .icon-button + .icon-button { border-top: 1px solid #334956; }
.map-tools .icon-button:hover { background: #253943; }
.wind-toggle { display: inline-flex; gap: 6px; align-items: center; background: #111f2cee; color: #b5c8d1; border: 1px solid #3b555f; border-radius: 6px; padding: 6px 9px; font-size: .73rem; white-space: nowrap; position: absolute; top: 12px; left: 13px; }
.wind-toggle[aria-pressed=true] { color: #85e0d0; border-color: #41706c; }
.wind-toggle:hover { background: #1c3540; }
.wind-symbol { line-height: 1; font-size: .95rem; transform: rotate(var(--wind-rotation, 0deg)); }
.map-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 13px; border: 1px solid #364d59; border-radius: 6px; background: #101e2bed; padding: 6px 8px; position: absolute; bottom: 11px; left: 13px; color: #bdcbd3; font-size: .66rem; }
.map-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.map-legend i { width: 13px; height: 8px; align-self: center; }
.map-legend .legend-line { height: 0; border-top: 1px dashed #d1edec; }
.legend-area { border: 1px solid #4edbb6; background: #41b89b55; border-radius: 2px; }
.map-legend .legend-wave { height: 3px; width: 9px; border-radius: 2px; background: #bafce6; box-shadow: 0 0 6px #7df6ce; }
.map-credit { position: absolute; bottom: 9px; right: 14px; color: #8fa6b2; font-size: .63rem; }
.weather-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #13202b; }
.weather-strip > div { min-width: 0; display: grid; gap: 5px; padding: 10px 13px; border-right: 1px solid var(--border-quiet); }
.weather-strip > div:last-child { border: 0; }
.weather-strip strong { font-size: .89rem; line-height: 1; white-space: nowrap; }
.map-method { border-top: 1px solid var(--border-quiet); padding: 8px 13px; color: var(--muted); font-size: .73rem; border-radius: 0 0 11px 11px; }

.table-wrap { flex: 1; border-top: 1px solid var(--border-quiet); }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
thead { background: #16232e; color: #a3b6c4; }
thead th { text-align: left; font-size: .71rem; font-weight: 580; height: 34px; padding: 0 5px; white-space: nowrap; }
thead th:first-child { width: 10.5%; padding-left: 9px; padding-right: 2px; }
thead th:nth-child(2) { width: 35.5%; }
thead th:nth-child(3) { width: 14%; }
thead th:nth-child(4) { width: 19%; }
thead th:last-child { width: 21%; text-align: right; padding-right: 13px; }
tbody td { border-bottom: 1px solid var(--border-quiet); padding: 0 5px; height: 52px; font-size: .80rem; }
tbody td:first-child { padding-left: 9px; }
tbody td:last-child { padding-right: 13px; }
tbody tr[data-key] { cursor: pointer; transition: background .14s ease; }
tbody tr[data-key]:hover, tbody tr[data-key]:focus-within { background: #1a2c36; }
tbody tr.fresh-row { background: #14312e; }
tbody tr.fresh-row:hover { background: #1b3c37; }
tbody tr.fresh-row td:first-child { box-shadow: inset 2px 0 #5de9ba; }
.rank { display: inline-grid; place-items: center; min-width: 25px; min-height: 23px; padding: 2px; border-radius: 5px; color: #b2c2cc; font-size: .78rem; font-weight: 630; }
.rank-1 { background: #3f3322; color: #f8c880; }
.rank-2 { background: #2b3e4e; color: #cbdce8; }
.rank-3 { background: #402d28; color: #eab096; }
.row-open { border: 0; padding: 3px 0; background: transparent; color: inherit; text-align: left; max-width: 100%; font-size: .81rem; }
.row-open:focus-visible { outline-offset: 2px; border-radius: 3px; }
.owner-name, .ring { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.owner-name { font-weight: 640; }
.ring-line { margin-top: 3px; display: flex; align-items: center; min-width: 0; gap: 4px; }
.ring { font-size: .70rem; color: #a0b2bd; }
.new-badge { color: #79ebc9; background: #1e5547; border-radius: 3px; font: 700 .59rem/1.2 var(--mono); padding: 2px 3px; }
.country-label { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; color: #bdcdd6; white-space: nowrap; }
.flag { flex: none; display: inline-block; width: 16px; height: 11px; border-radius: 2px; background: linear-gradient(150deg, #6995a1, #253c51); box-shadow: 0 0 0 1px #c1e1f11f; vertical-align: middle; }
.flag-be { background: linear-gradient(90deg, #222932 33.33%, #f2c744 33.33% 66.66%, #e55a5c 66.66%); }
.flag-nl { background: linear-gradient(#da5a5c 33.33%, #e4edf2 33.33% 66.66%, #436fb1 66.66%); }
.flag-de { background: linear-gradient(#242a31 33.33%, #d95b59 33.33% 66.66%, #f5c849 66.66%); }
.flag-fr { background: linear-gradient(90deg, #4a73bc 33.33%, #e7edf1 33.33% 66.66%, #e56a70 66.66%); }
.flag-gb { background: linear-gradient(90deg, transparent 41%, #e56972 41% 59%, transparent 59%), linear-gradient(0deg, transparent 35%, #e56972 35% 65%, transparent 65%), linear-gradient(90deg, transparent 32%, #f2f4f7 32% 68%, transparent 68%), linear-gradient(0deg, transparent 25%, #f2f4f7 25% 75%, transparent 75%), linear-gradient(35deg, transparent 43%, #f2f4f7 43% 57%, transparent 57%), linear-gradient(-35deg, transparent 43%, #f2f4f7 43% 57%, transparent 57%), #41639e; }
.flag-pl { background: linear-gradient(#e8edf2 50%, #d85d73 50%); }
.arrival-cell { color: #c3d0d8; white-space: nowrap; }
.speed-cell { text-align: right; font-weight: 640; white-space: nowrap; }
.empty-table { text-align: center; height: 120px; color: var(--muted); }
.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 49px; padding: 7px 13px; color: var(--muted); font-size: .75rem; }
.pagination { display: flex; gap: 9px; align-items: center; }
.pagination .icon-button { width: 28px; height: 26px; }
.pagination .mono { min-width: 43px; text-align: center; }
.new-list { border: 1px solid #3a4c58; border-radius: 6px; background: #1a2934; color: #bfd0d9; font-size: .73rem; font-weight: 620; white-space: nowrap; padding: 6px 8px; }
.new-list.has-fresh, .new-list[aria-pressed=true] { background: #153b34; border-color: #32655a; color: #84e9cc; }
.new-list:hover { filter: brightness(1.18); }

.waves-panel, .teams-panel { min-height: 246px; }
.waves, .teams-list { padding: 0 16px 14px; }
.wave-chart { padding: 8px 1px 0 24px; }
.wave-plot { height: 128px; display: grid; grid-template-columns: repeat(var(--bin-count), minmax(0, 1fr)); position: relative; isolation: isolate; }
.wave-grid { display: flex; justify-content: space-between; flex-direction: column; width: 100%; height: 100%; position: absolute; inset: 0; z-index: -1; }
.grid-line { width: 100%; height: 1px; background: #2a3b47; position: relative; }
.grid-line span { position: absolute; right: calc(100% + 7px); top: 0; transform: translateY(-50%); color: var(--quiet); font-size: .65rem; }
.wave-slot { display: flex; justify-content: center; align-items: end; min-width: 0; }
.wave-bar { width: min(65%, 36px); min-height: 3px; position: relative; border: 1px solid #47bb9a; border-bottom: 0; border-radius: 4px 4px 0 0; background: linear-gradient(0deg, #1d5149, #48b397); transition: filter .16s ease; }
.wave-bar.peak { border-color: #7ff3d2; background: linear-gradient(0deg, #267d6b, #6ee9c7); }
.wave-bar:hover, .wave-bar:focus-visible { filter: brightness(1.24); z-index: 1; }
.wave-tooltip { opacity: 0; pointer-events: none; position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); border: 1px solid #49788a; border-radius: 4px; background: #15232c; color: #f0f7fa; padding: 4px 6px; font-size: .66rem; white-space: nowrap; }
.wave-bar:hover .wave-tooltip, .wave-bar:focus-visible .wave-tooltip { opacity: 1; }
.wave-slot:nth-child(2) .wave-tooltip { left: 0; transform: none; }
.wave-slot:last-child .wave-tooltip { left: auto; right: 0; transform: none; }
.wave-axis { display: grid; grid-template-columns: repeat(var(--bin-count), minmax(0, 1fr)); text-align: center; gap: 0; margin-top: 8px; color: #9aafbd; font-size: .65rem; white-space: nowrap; }
.teams-list { display: grid; gap: 5px; }
.team-card { width: 100%; min-height: 34px; border: 1px solid #263946; border-radius: 6px; background: #14212d; color: #dce7ed; padding: 6px 9px; display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) minmax(38px, 85px) 32px; gap: 9px; text-align: left; }
.team-card:hover, .team-card[aria-pressed=true] { border-color: #407a70; background: #183331; }
.team-name { min-width: 0; display: flex; gap: 8px; align-items: center; font-weight: 580; font-size: .79rem; }
.team-name > :last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-track { height: 4px; border-radius: 2px; background: #2c404c; }
.team-count { text-align: right; color: #bdebdc; font-size: .83rem; }
.empty-chart { color: var(--muted); padding: 22px 8px; font-size: .85rem; }
.site-footer { display: flex; justify-content: space-between; color: #8b9faf; padding-block: 18px; font-size: .75rem; }

.icon-button { display: inline-grid; place-items: center; background: #15222d; color: #bfd1dc; border: 1px solid #344653; border-radius: 6px; width: 33px; height: 32px; padding: 0; flex: none; }
.icon-button:enabled:hover { background: #203442; color: #eff9fa; }
.icon-button:disabled { opacity: .45; }
.text-button { border: 0; background: transparent; padding: 5px 2px; color: #83dec9; font-weight: 620; white-space: nowrap; font-size: .78rem; }
.text-button:hover { color: #bcf9e7; }
.chevron { display: inline-block; width: 6px; height: 6px; border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.chevron-prev { transform: rotate(135deg); }
.chevron-next { transform: rotate(-45deg); }

.icon { width: 16px; height: 16px; position: relative; flex: none; display: inline-block; }
.icon::before, .icon::after { content: ''; position: absolute; display: block; }
.icon-search::before { width: 10px; height: 10px; border: 1.6px solid currentColor; border-radius: 50%; left: 1px; top: 1px; }
.icon-search::after { width: 6px; height: 1.6px; border-radius: 2px; background: currentColor; left: 9px; top: 10px; transform: rotate(45deg); transform-origin: left; }
.icon-globe::before { inset: 1px; border: 1.3px solid currentColor; border-radius: 50%; background: linear-gradient(transparent 45%, currentColor 45% 55%, transparent 55%); }
.icon-globe::after { width: 6px; inset-block: 1px; left: calc(50% - 3px); border: 1px solid currentColor; border-radius: 50%; }
.panel-icon.icon-globe::before { inset: 7px; }
.panel-icon.icon-globe::after { inset-block: 7px; }
.icon-refresh::before { inset: 2px; border: 1.4px solid currentColor; border-right-color: transparent; transform: rotate(21deg); border-radius: 50%; }
.icon-refresh::after { width: 5px; height: 5px; top: 2px; right: 0; border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor; }
.icon-route::before { width: 6px; height: 6px; inset: 16px auto auto 7px; border: 1.2px solid currentColor; border-radius: 50%; box-shadow: 10px -8px 0 -1px #74dac8; }
.icon-route::after { width: 11px; border-top: 1px dashed currentColor; inset: 13px auto auto 11px; transform: rotate(-38deg); }
.icon-bars::before { width: 3px; height: 9px; border-radius: 1px; background: currentColor; left: 8px; bottom: 8px; }
.icon-bars::after { width: 3px; height: 15px; border-radius: 1px; background: currentColor; left: 14px; bottom: 8px; box-shadow: 6px 4px 0 -0.3px currentColor; clip-path: inset(0 -8px 0 0); }
.icon-waves::before { width: 15px; height: 12px; inset: 9px auto auto 7px; border-left: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.icon-waves::after { width: 13px; height: 9px; inset: 9px auto auto 10px; background: currentColor; clip-path: polygon(0 100%, 0 65%, 25% 34%, 53% 53%, 100% 0, 100% 30%, 54% 87%, 25% 67%); }
.icon-fit::before { inset: 2px; border: 1px dashed currentColor; border-radius: 3px; }
.icon-fit::after { inset: 6px; border-radius: 50%; background: currentColor; }
.icon-close::before, .icon-close::after { left: 2px; right: 2px; top: 7px; height: 1.5px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.icon-close::after { transform: rotate(-45deg); }

.report-dialog { width: min(94vw, 655px); max-height: 94dvh; color: #eaf3f8; background: #121e28; border: 1px solid #3a5560; border-radius: 12px; padding: 15px; box-shadow: 0 24px 100px #020710bd; }
.report-dialog::backdrop { background: #060b14bd; backdrop-filter: blur(4px); }
.report-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.report-header h2 { font-size: 1.12rem; }
.report-header p { color: var(--muted); font-size: .82rem; margin-top: 3px; }
.report-dialog canvas { display: block; width: 100%; height: auto; border: 1px solid #3a505b; border-radius: 7px; }
.report-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 13px; }
.report-feedback { margin-right: auto; color: var(--teal); font-size: .79rem; }
.report-feedback:empty { display: none; }
.primary-button, .secondary-button { color: #0b231d; border: 1px solid #58c8a9; background: #68e4be; border-radius: 6px; padding: 8px 11px; font-size: .81rem; font-weight: 700; }
.secondary-button { color: #d9e7ec; border-color: #38505d; background: #1b2c37; }
.primary-button:hover, .secondary-button:hover { filter: brightness(1.12); }
.clipboard-buffer { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 1120px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); }
  .race-overview { gap: 20px; }
  .weather-strip > div { padding-inline: 10px; }
}

@media (max-width: 940px) {
  .race-overview { grid-template-columns: minmax(0, 1fr) minmax(276px, .9fr); }
  .race-stat { padding-inline: 10px; }
  .race-release { border: 0; padding-left: 0; }
  .race-picker { width: min(100%, 245px); }
}

@media (max-width: 810px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .map-surface { height: 338px; flex: auto; }
  .waves-panel, .teams-panel { min-height: 0; }
  .waves { padding-bottom: 18px; }
  .table-wrap { min-height: auto; }
  thead th:first-child { width: 10%; }
  thead th:nth-child(2) { width: 38%; }
  thead th:nth-child(3) { width: 16%; }
  thead th:nth-child(4) { width: 18%; }
  thead th:last-child { width: 18%; }
}

@media (max-width: 620px) {
  .site-inner { min-height: 56px; gap: 9px; }
  .header-section, .header-divider { display: none; }
  .brand { font-size: 17px; gap: 7px; }
  .brand-icon { width: 29px; height: 29px; border-radius: 7px; }
  .feed-status { gap: 7px; }
  .feed-clock { display: none; }
  .dashboard { padding-top: 17px; }
  .race-overview { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .race-heading { gap: 9px; }
  .race-details { gap: 6px 8px; font-size: .82rem; }
  .race-stat { padding: 9px 10px; }
  .race-stat .stat-value { margin-block: 3px; }
  .race-stat .rate-track { margin-block: 8px 7px; }
  .filter-bar { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); margin-block: 13px; gap: 7px; }
  .search-control, .select-control { padding-inline: 8px; gap: 6px; width: 100%; }
  .search-control { max-width: none; }
  .race-picker { grid-column: 1 / -1; }
  .search-control input, .select-control select { font-size: 16px; letter-spacing: -.035em; }
  .search-control input::placeholder { font-size: .76rem; letter-spacing: 0; }
  .select-control select { font-size: .76rem; letter-spacing: 0; }
  .search-control kbd { display: none; }
  .select-control .chevron { right: 8px; }
  .filter-bar .text-button, .feed-note { justify-self: start; margin-left: 0; }
  .dashboard-grid { gap: 12px; }
  .panel-header { min-height: 59px; padding: 10px 11px; }
  .panel-heading { gap: 7px; }
  .map-surface { height: 280px; min-height: 0; }
  .map-legend { left: 8px; bottom: 8px; padding-inline: 5px; gap: 5px 7px; font-size: .61rem; }
  .map-credit { bottom: 8px; right: 8px; }
  .weather-strip > div { padding: 8px 6px; }
  .weather-strip strong { font-size: .74rem; }
  .strip-label { font-size: .65rem; }
  .map-method { padding-inline: 8px; font-size: .67rem; }
  thead th { font-size: .66rem; }
  tbody td, .row-open { font-size: .73rem; }
  thead th, tbody td { padding-inline: 3px; }
  thead th:first-child, tbody td:first-child { padding-left: 6px; width: 10%; }
  thead th:nth-child(2) { width: 33%; }
  thead th:nth-child(3) { width: 16%; }
  thead th:nth-child(4) { width: 20%; }
  thead th:last-child, tbody td:last-child { padding-right: 6px; }
  .ring { font-size: .63rem; }
  .rank { font-size: .71rem; min-width: 20px; }
  .country-label { font-size: .65rem; gap: 3px; }
  .country-label .flag { width: 13px; height: 9px; }
  .waves, .teams-list { padding-inline: 11px; }
  .wave-axis { font-size: .58rem; }
}

@media (max-width: 360px) {
  .site-inner, .dashboard { padding-inline: 10px; }
  .weather-strip strong { font-size: .70rem; }
  .feed-badge { font-size: .61rem; }
  .map-credit { font-size: .57rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
