
.vo2-statistics-page { --stats-ink: #233448; --stats-muted: #65758a; --stats-accent: #217c80; max-width: 1480px; margin: auto; padding: 42px 26px 110px; color: var(--stats-ink); }
.vo2-statistics-page * { box-sizing: border-box; }
.statistics-header { margin-bottom: 38px; }
.statistics-eyebrow { color: var(--stats-accent); font-size: 12px; font-weight: 700; }
.statistics-heading-row { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin: 16px 0 24px; }
.vo2-statistics-page h1 { font-size: clamp(23px, 2.6vw, 34px); line-height: 1.6; font-weight: 800; margin: 0 0 8px; }
.statistics-heading-row p { margin: 0; color: var(--stats-muted); line-height: 1.9; font-size: 14px; }
.statistics-season { display: flex; gap: 8px; align-items: center; flex-shrink: 0; font-size: 12px; }
.vo2-statistics-page select, .vo2-statistics-page input { font: inherit; min-height: 42px; padding: 8px 12px; border: 1px solid #d8e0e9; border-radius: 10px; background: #fff; color: var(--stats-ink); min-width: 0; }
.statistics-button { border: 1px solid #d9e2e9; background: #fff; border-radius: 9px; padding: 8px 12px; color: var(--stats-ink); font: inherit; font-size: 12px; min-height: 40px; cursor: pointer; white-space: nowrap; }
.statistics-button:hover { background: #edf5f5; border-color: #88b7b9; color: #16595c; }
.statistics-button:disabled { opacity: .4; cursor: default; }
.statistics-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.statistics-kpis > div { border: 1px solid #dfe6ec; border-radius: 15px; padding: 20px 24px; background: rgba(255,255,255,.66); }
.statistics-kpis span { display: block; font-size: 12px; color: var(--stats-muted); }
.statistics-kpis strong { display: block; font-size: 30px; color: var(--stats-accent); margin-top: 8px; }
.statistics-method { font-size: 12px; line-height: 2; color: var(--stats-muted); margin: 18px 0; max-width: 1000px; }
.statistics-jump { display: flex; gap: 10px; flex-wrap: wrap; }
.statistics-jump a { background: #e1eeee; border-radius: 20px; color: #20676b; padding: 9px 16px; font-size: 12px; }
.statistics-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 16px; }
.statistics-section-title h2 { font-size: 20px; font-weight: 800; margin: 0; }
.statistics-section-title span, .statistics-section-title p { font-size: 11px; color: var(--stats-muted); margin: 6px 0 0; }
.statistics-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; align-items: start; }
.statistics-card { background: #fff; border: 1px solid #e0e6ed; border-radius: 20px; padding: 22px; min-width: 0; box-shadow: 0 5px 20px rgba(27,44,66,.035); overflow: hidden; scroll-margin-top: 90px; }
.statistics-card-kicker { color: #217c80; font-size: 11px; font-weight: 700; letter-spacing: .1px; }
.vo2-statistics-page .statistics-card h3 { font-size: 18px; line-height: 1.7; margin: 7px 0; font-weight: 750; color: var(--stats-ink); }
.statistics-card-header p { font-size: 12px; line-height: 1.95; color: var(--stats-muted); margin: 0; min-height: 48px; }
.statistics-card-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 18px 0; padding-bottom: 16px; border-bottom: 1px solid #edf0f4; }
.statistics-view-switch { display: flex; background: #f0f4f7; border-radius: 10px; padding: 3px; margin-left: auto; }
.statistics-view-switch .statistics-button { border: 0; background: transparent; min-height: 34px; padding: 6px 12px; }
.statistics-view-switch .statistics-button[aria-pressed=true] { background: #fff; color: var(--stats-accent); box-shadow: 0 2px 6px #24364915; font-weight: 700; }
.statistics-chart-plot { position: relative; width: 100%; min-width: 0; }
.statistics-chart-hint { font-size: 11px; line-height: 1.9; color: var(--stats-muted); margin: 14px 0 0; }
.statistics-control { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; font-size: 12px; }
.statistics-control select { flex: 1; }
.statistics-rider-select { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; margin-bottom: 18px; }
.statistics-rider-select select { flex: 1; max-width: 100%; }
.statistics-rider-select input { flex-basis: 100%; width: 100%; }
.statistics-dialog { border: 1px solid #dfe6ec; border-radius: 20px; width: min(1100px,95vw); max-height: 90vh; padding: 24px; direction: rtl; color: #233448; }
.statistics-dialog::backdrop { background: rgba(25,39,55,.5); }
.statistics-dialog h3 { font-size: 18px; line-height: 1.8; margin: 15px 0; }
.statistics-dialog > button { float: left; }
.statistics-table-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.statistics-table-tools input { flex: 1; width: 100%; font-size: 12px; background: #f7f9fb; }
.statistics-table-count { white-space: nowrap; font-size: 11px; color: var(--stats-muted); }
.statistics-table-scroll, .statistics-matrix-scroll { overflow: auto; max-height: 460px; border: 1px solid #e2e8ef; border-radius: 12px; }
.statistics-data-panel table, .statistics-matrix { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.statistics-data-panel td, .statistics-data-panel th { padding: 12px 10px; border-bottom: 1px solid #edf1f5; text-align: right; vertical-align: middle; min-width: 85px; }
.statistics-data-panel thead th { position: sticky; top: 0; background: #eef4f7; z-index: 1; }
.statistics-data-panel tbody th { font-weight: 500; min-width: 140px; }
.statistics-data-panel tr > :first-child { position: sticky; right: 0; background: #f5f8fa; z-index: 1; }
.statistics-data-panel thead tr > :first-child { z-index: 2; background: #eef4f7; }
.statistics-data-panel tbody tr:nth-child(even) { background: #f8fafc; }
.statistics-data-panel tbody tr:hover { background: #eff7f7; }
.statistics-sort { font: inherit; font-weight: 700; color: #456; cursor: pointer; border: 0; background: transparent; padding: 0; text-align: right; }
.statistics-data-panel th[aria-sort=ascending] .statistics-sort, .statistics-data-panel th[aria-sort=descending] .statistics-sort { color: #16777c; }
.statistics-table-footer { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 14px; font-size: 12px; }
.statistics-matrix th, .statistics-matrix td { padding: 12px 9px; text-align: center; min-width: 65px; border: 2px solid #fff; border-radius: 6px; }
.statistics-matrix th { font-size: 10px; background: #f5f8fa; }
.statistics-map svg { width: 100%; height: 310px; display: block; }
.statistics-map path { stroke: #fff; stroke-width: .8; transition: fill .15s; }
.statistics-map path[role=button] { cursor: pointer; }
.statistics-map path:hover, .statistics-map path.is-selected, .statistics-map path:focus { stroke: #b82765; stroke-width: 2; outline: none; }
.statistics-map-detail { background: #eef6f6; color: #236367; font-size: 12px; line-height: 2; padding: 10px 12px; border-radius: 10px; margin-top: 12px; }
.statistics-map-source { font-size: 10px; color: #68798c; display: inline-block; margin-top: 8px; }
.statistics-empty { padding: 50px 16px; text-align: center; color: var(--stats-muted); font-size: 13px; line-height: 2; }
.statistics-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.vo2-statistics-page [hidden] { display: none !important; }
.vo2-statistics-page :focus-visible { outline: 3px solid #a3d2d4; outline-offset: 3px; }
@media (max-width: 1050px) { .statistics-heading-row { flex-wrap: wrap; } .statistics-grid { gap: 14px; } .statistics-card { padding: 16px; } }
@media (max-width: 767px) {
 .vo2-statistics-page { padding: 85px 12px 105px; }
 .statistics-grid { grid-template-columns: minmax(0,1fr); }
 .statistics-heading-row { gap: 16px; margin-top: 10px; }
 .statistics-heading-row p { font-size: 12px; }
 .statistics-season { width: 100%; } .statistics-season select { flex: 1; }
 .statistics-kpis { gap: 6px; } .statistics-kpis > div { padding: 12px 7px; border-radius: 12px; }
 .statistics-kpis span { font-size: 10px; } .statistics-kpis strong { font-size: 23px; }
 .statistics-card { padding: 15px 12px; border-radius: 16px; }
 .vo2-statistics-page .statistics-card h3 { font-size: 17px; }
 .statistics-card-header p { min-height: 0; }
 .statistics-card-tools { gap: 4px; }
 .statistics-card-tools > .statistics-button { padding: 6px 8px; font-size: 10px; }
 .statistics-view-switch .statistics-button { padding: 6px 8px; font-size: 11px; }
 .statistics-section-title > span { display: none; }
 .statistics-table-tools { gap: 6px; }
 .statistics-map svg { height: 275px; }
}
