:root {
  color-scheme: light;
  --ink: #17242b;
  --muted: #708087;
  --faint: #9aa7ab;
  --line: #e4e9e9;
  --surface: #fff;
  --canvas: #f4f6f6;
  --navy: #172c33;
  --navy-2: #23424a;
  --teal: #18a892;
  --teal-dark: #087e70;
  --teal-soft: #e6f6f2;
  --lime: #c9ee65;
  --amber: #e5a44b;
  --red: #dc6b67;
  --shadow: 0 12px 36px rgba(22, 49, 56, .06);
  font-family: 'Segoe UI', 'Yu Gothic UI', 'Noto Sans JP', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
 .app-shell { min-height: 0; }
main { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: 14px 0 22px; }
.eyebrow { color: #829298; font: 500 9px 'DM Mono', monospace; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow-dot { display: inline-block; width: 4px; height: 4px; background: var(--teal); border-radius: 50%; vertical-align: 2px; margin: 0 5px; }
.search-row { display: flex; margin-bottom: 9px; }
.search-box { position: relative; flex: 1; height: 35px; border: 1px solid #dce4e3; background: white; border-radius: 7px; display: flex; align-items: center; padding: 0 10px; gap: 8px; box-shadow: 0 2px 5px rgba(29, 52, 57, .02); }
.search-box:focus-within { border-color: #72b8a8; box-shadow: 0 0 0 3px rgba(24, 168, 146, .09); }.search-box svg { width: 18px; height: 18px; color: #819094; }
.search-box input { border: 0; outline: 0; flex: 1; min-width: 0; color: var(--ink); background: transparent; font-size: 12px; }.search-box input::placeholder { color: #9ba7a9; }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 8; background: white; border: 1px solid var(--line); border-radius: 8px; padding: 5px; box-shadow: var(--shadow); max-height: 250px; overflow: auto; }
.result-option { width: 100%; border: 0; background: white; text-align: left; padding: 10px; border-radius: 5px; display: flex; align-items: center; gap: 10px; cursor: pointer; }.result-option:hover { background: #f3f8f6; }.result-avatar { width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; color: white; font-size: 9px; }.result-option strong { font-size: 12px; }.result-option small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.athlete-card { background: var(--navy); color: white; border-radius: 9px; padding: 12px 16px; overflow: hidden; box-shadow: 0 6px 15px rgba(24, 46, 53, .07); }
.athlete-main { display: grid; grid-template-columns: minmax(255px, .9fr) minmax(0, 1.3fr); align-items: center; gap: 18px; }
.athlete-identity { min-width: 0; display: flex; align-items: center; gap: 12px; }
.athlete-portrait { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: linear-gradient(145deg, #b7d8ca, #7db4a3); color: #153e3c; font-size: 11px; font-weight: 700; border: 2px solid rgba(255,255,255,.15); }
.athlete-info { min-width: 0; }.athlete-kicker { color: #bfd1d1; font: 500 8px 'DM Mono', monospace; letter-spacing: .08em; display: flex; align-items: center; gap: 6px; white-space: nowrap; }.flag { font-size: 13px; }.separator { color: #789195; }
.sample-tag { color: #c9ee65; border: 1px solid rgba(201,238,101,.35); border-radius: 10px; padding: 2px 5px; font: 8px 'Segoe UI', 'Yu Gothic UI', sans-serif; letter-spacing: 0; }
.athlete-info h2 { font-size: 15px; font-weight: 600; letter-spacing: -.03em; margin: 4px 0 3px; line-height: 1.1; }
.athlete-facts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); align-items: center; border-left: 1px solid rgba(225,244,240,.2); padding-left: 18px; gap: 8px; min-width: 0; }
.athlete-fact { min-width: 0; }.athlete-fact > span { display: block; color: #a9bdbd; font-size: 8px; }.athlete-fact strong { display: block; margin-top: 4px; color: #f2f8f6; font-size: 10px; font-weight: 500; white-space: nowrap; }.athlete-fact strong b { font: 600 14px 'DM Mono', monospace; }
.section-tabs { height: 44px; display: flex; gap: 17px; align-items: stretch; border-bottom: 1px solid #dfe6e5; margin-top: 4px; }
.section-tab { border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; color: #77878a; display: inline-flex; align-items: center; gap: 7px; padding: 0 8px; font-size: 11px; cursor: pointer; white-space: nowrap; }.section-tab:hover { color: var(--teal-dark); }.section-tab.active { border-color: var(--teal); color: var(--navy); font-weight: 600; }.tab-icon { color: #7f9a99; font-size: 16px; line-height: 1; }.section-tab.active .tab-icon { color: var(--teal-dark); }
.panel-content { padding-top: 13px; outline: 0; animation: fadein .18s ease-out; }.panel-content[data-tab="probability"] { padding-top: 12px; }
@keyframes fadein { from { opacity: .65; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, .85fr); gap: 12px; align-items: stretch; }
.card { background: var(--surface); border: 1px solid #e7eceb; border-radius: 9px; box-shadow: 0 3px 12px rgba(30, 59, 62, .025); }
.card-pad { padding: 13px 14px; }.card-heading { display: flex; align-items: start; justify-content: space-between; gap: 8px; }.card-heading h3, .card h3 { margin: 0; font-size: 12px; font-weight: 600; color: var(--navy); }.card-subtitle { margin-top: 3px; color: #8b999a; font-size: 9px; }
.tiny-select, .select-control { color: #52666b; border: 1px solid #e1e8e6; background: white; border-radius: 5px; padding: 7px 26px 7px 9px; font-size: 10px; cursor: pointer; }.tiny-select { padding: 6px 24px 6px 8px; }
.chart-wrap { margin-top: 8px; }.rank-chart { display: block; width: 100%; height: auto; overflow: visible; }.rank-chart text { font-family: 'DM Mono', monospace; fill: #8b999b; font-size: 8px; }.rank-chart .gridline { stroke: #edf1ef; stroke-width: 1; }.rank-chart .race-line { fill: none; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }.rank-chart .race-point { stroke: #fff; stroke-width: 1.5; }.rank-chart .selected-guide { stroke: #9fc8bb; stroke-dasharray: 3 3; }.chart-legend { display: flex; gap: 12px; flex-wrap: wrap; color: #718286; font-size: 9px; margin-top: 3px; }.legend-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; }.checkpoint-row { display: flex; gap: 5px; overflow: auto; padding: 11px 1px 1px; scrollbar-width: none; }.checkpoint-row::-webkit-scrollbar { display: none; }.checkpoint-button { flex: 0 0 auto; border: 1px solid #e3e9e7; border-radius: 5px; background: #fff; color: #77878a; padding: 6px 8px; font: 9px 'DM Mono', monospace; cursor: pointer; }.checkpoint-button.active { border-color: #7fc4b2; color: #087e70; background: #eef8f5; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 13px; }.metric-box { border-radius: 6px; padding: 10px 11px; background: #f5f8f7; }.metric-label { color: #859396; font-size: 9px; }.metric-value { margin-top: 5px; font: 500 20px 'DM Mono', monospace; color: var(--navy); letter-spacing: -.05em; }.metric-value small { font: 10px 'Noto Sans JP', sans-serif; color: #78888b; letter-spacing: 0; margin-left: 2px; }.metric-trend { color: var(--teal-dark); font-size: 9px; margin-top: 2px; }
.memo-card { position: relative; overflow: hidden; }.memo-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--teal); }.memo-kicker { color: var(--teal-dark); font: 500 9px 'DM Mono', monospace; letter-spacing: .12em; display: flex; justify-content: space-between; }.memo-kicker span:last-child { color: #8c9a9b; letter-spacing: 0; font-family: 'Noto Sans JP', sans-serif; }.memo-text { font-size: 13px; line-height: 1.9; margin: 13px 0 12px; color: #344b51; }.memo-meta { border-top: 1px solid #eef1f0; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; color: #899798; font-size: 9px; }.text-link { background: transparent; border: 0; color: var(--teal-dark); cursor: pointer; font-size: 10px; padding: 4px 0; }.text-link:hover { text-decoration: underline; }
.insight-list { display: grid; gap: 8px; margin-top: 13px; }.insight-row { display: flex; gap: 9px; padding: 9px 10px; background: #f7f9f8; border-radius: 6px; color: #607377; font-size: 10px; line-height: 1.55; }.insight-icon { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; flex: 0 0 auto; background: #e5f5ef; color: #178b76; font-size: 12px; }.insight-row strong { color: #385257; font-weight: 600; }
.section-intro { display: flex; align-items: end; justify-content: space-between; margin-bottom: 13px; }.section-intro h2 { margin: 3px 0 0; font-size: 17px; letter-spacing: -.03em; color: var(--navy); }.section-intro p { margin: 4px 0 0; color: #7e8e90; font-size: 10px; }.intro-actions { display: flex; gap: 7px; }
.chart-card { padding: 17px 19px 15px; }.rank-summary { display: flex; gap: 20px; margin-top: 14px; padding: 12px 13px; background: #f6f8f7; border-radius: 6px; }.summary-cell { min-width: 90px; }.summary-label { font-size: 9px; color: #879597; }.summary-value { margin-top: 4px; font: 500 16px 'DM Mono', monospace; color: var(--navy); }.summary-note { align-self: center; margin-left: auto; max-width: 290px; color: #718185; font-size: 10px; line-height: 1.6; }.large-chart .rank-chart { max-height: 275px; }.legend-stack { display: flex; gap: 15px; flex-wrap: wrap; }.legend-entry { color: #748487; font-size: 10px; }.chart-note { display: flex; gap: 7px; align-items: flex-start; margin-top: 13px; padding-top: 11px; border-top: 1px solid #eef1f0; color: #879496; font-size: 9px; line-height: 1.6; }.chart-note b { color: #60787a; font-weight: 500; }
.probability-shell { display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 14px; align-items: start; }.prob-main { min-width: 0; }.prob-sidebar { display: grid; gap: 12px; }.prob-card { background: white; border: 1px solid #e5ebe9; border-radius: 9px; padding: 16px 17px; }.mode-switch { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 4px; background: #edf1ef; padding: 4px; border-radius: 7px; margin: 12px 0 15px; }.mode-button { min-width: 0; border: 0; border-radius: 5px; background: transparent; padding: 8px 5px; color: #758588; cursor: pointer; text-align: center; }.mode-button span { display: block; font-size: 10px; font-weight: 600; }.mode-button small { display: block; margin-top: 3px; font-size: 8px; white-space: nowrap; }.mode-button.active { background: white; color: var(--teal-dark); box-shadow: 0 1px 4px rgba(23,51,52,.09); }
.scope-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0 13px; border-bottom: 1px solid #edf1ef; }.scope-copy strong { display: block; font-size: 10px; font-weight: 600; color: #435a5f; }.scope-copy small { display: block; margin-top: 3px; font-size: 9px; color: #8a999b; }.segmented { display: inline-flex; background: #f1f4f2; border-radius: 6px; padding: 3px; }.segmented button { border: 0; border-radius: 4px; background: transparent; color: #778689; font-size: 9px; padding: 6px 10px; cursor: pointer; }.segmented button.active { background: white; color: var(--teal-dark); box-shadow: 0 1px 3px rgba(25,49,51,.1); font-weight: 600; }
.condition-area { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 12px 0; }.condition-label { color: #7e8d90; font-size: 9px; margin-right: 2px; }.condition-chip { border: 1px solid #e2e9e6; background: white; border-radius: 5px; color: #64777b; font-size: 9px; padding: 6px 9px; cursor: pointer; }.condition-chip.active { border-color: #84c4b4; color: #0c8272; background: #eff9f5; font-weight: 600; }
.answer-banner { background: #f0f8f5; border: 1px solid #dfefea; border-radius: 7px; padding: 12px 13px; margin-bottom: 14px; }.answer-overline { font: 500 8px 'DM Mono', monospace; color: #528679; letter-spacing: .12em; }.answer-title { margin-top: 4px; font-size: 11px; color: #37565a; font-weight: 600; }.answer-title strong { color: #087e70; }.answer-context { color: #809293; font-size: 9px; margin-top: 4px; }
.outcome-list { display: grid; gap: 12px; }.outcome-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; }.outcome-label { font-size: 10px; color: #536a6e; }.outcome-value { font: 500 12px 'DM Mono', monospace; color: var(--navy); }.bar-track { height: 7px; border-radius: 9px; background: #edf1ef; overflow: hidden; }.bar-fill { height: 100%; border-radius: inherit; background: var(--teal); }.bar-fill.second { background: #91cabe; }.bar-fill.top2 { background: #355b60; }.bar-fill.other { background: #d4dedd; }.bar-fill.rank1 { background: #19aa90; }.bar-fill.rank2 { background: #69c0a9; }.bar-fill.rank3 { background: #91bcb0; }.bar-fill.rank4 { background: #bccbc6; }.outcome-sub { color: #94a0a1; font-size: 8px; margin-top: 3px; }
.prob-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 15px; padding-top: 11px; border-top: 1px solid #edf1ef; color: #879596; font-size: 9px; }.prob-foot strong { color: #5c7377; font-weight: 500; }.evidence-button { color: var(--teal-dark); border: 0; padding: 5px 0; background: transparent; cursor: pointer; font-size: 9px; white-space: nowrap; }
.prob-sidebar .card { padding: 15px; }.sidebar-title { font-size: 10px; color: #4c666b; font-weight: 600; }.compare-stat { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #eef2f1; color: #7a898b; font-size: 9px; }.compare-stat:last-child { border-bottom: 0; padding-bottom: 0; }.compare-stat strong { color: #3a555b; font: 500 11px 'DM Mono', monospace; }.compare-stat .your-side { color: var(--teal-dark); }.comparison-bar { height: 5px; display: flex; background: #e9eeeb; border-radius: 5px; overflow: hidden; margin: 7px 0 9px; }.comparison-bar span:first-child { background: var(--teal); }.comparison-bar span:last-child { background: #afc4bd; }.compare-legend { display: flex; justify-content: space-between; color: #8c999a; font-size: 8px; }.definition-copy { color: #768689; font-size: 9px; line-height: 1.7; margin: 9px 0 0; }.definition-copy strong { color: #52696d; font-weight: 600; }.small-warning { border-left: 2px solid #e1b35a; padding: 8px 9px; background: #fffaf0; color: #847452; font-size: 9px; line-height: 1.6; margin-top: 12px; }
.distribution-list { display: grid; gap: 9px; }.distribution-row { display: grid; grid-template-columns: 45px 1fr 78px; align-items: center; gap: 8px; cursor: pointer; }.distribution-row:hover .distribution-rank { color: var(--teal-dark); }.distribution-rank { font-size: 10px; color: #607579; }.distribution-row .bar-track { height: 8px; }.distribution-value { text-align: right; font: 500 10px 'DM Mono', monospace; color: #455c61; }.distribution-value small { color: #909c9d; font: 9px 'Noto Sans JP', sans-serif; margin-left: 3px; }.time-range { margin: 12px 0; padding: 13px; border-radius: 7px; background: #f5f8f7; }.time-range-label { display: flex; justify-content: space-between; color: #859294; font-size: 9px; }.range-line { height: 16px; margin: 8px 4px 2px; position: relative; border-radius: 9px; background: linear-gradient(90deg, #dbeee8, #61c1a9, #dbeee8); }.range-line::before, .range-line::after { content: ''; position: absolute; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: #698b86; }.range-line::before { left: 4%; }.range-line::after { right: 4%; }.median-marker { position: absolute; top: -2px; left: 52%; width: 3px; height: 20px; border-radius: 3px; background: var(--navy); }.range-values { display: flex; justify-content: space-between; font: 9px 'DM Mono', monospace; color: #7d8c8e; }
.races-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(275px, .8fr); gap: 14px; align-items: start; }.race-list { overflow: hidden; }.race-item { display: grid; grid-template-columns: 40px minmax(0,1fr) auto 22px; gap: 11px; align-items: center; padding: 13px 15px; border-bottom: 1px solid #eef1f0; cursor: pointer; transition: background .12s; }.race-item:last-child { border-bottom: 0; }.race-item:hover { background: #f7faf8; }.race-round { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 7px; background: #eff6f3; color: #3f756a; font: 500 9px 'DM Mono', monospace; }.race-name { color: #40585d; font-weight: 600; font-size: 11px; }.race-detail { margin-top: 4px; color: #8a9899; font-size: 9px; }.race-result { text-align: right; color: var(--navy); font: 500 13px 'DM Mono', monospace; }.race-result small { display: block; color: #93a0a0; font: 8px 'Noto Sans JP', sans-serif; margin-top: 3px; }.race-arrow { color: #a4b0b0; font-size: 16px; }.status-badge { display: inline-block; margin-left: 5px; border-radius: 9px; padding: 2px 5px; color: #4c8271; background: #eaf5ef; font-size: 8px; font-weight: 500; }
.side-note-card { padding: 16px; }.evidence-link-row { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid #edf1ef; color: #77878a; font-size: 9px; }.evidence-link-row:last-child { border: 0; }.evidence-link-row strong { color: #435d62; font-weight: 600; }.evidence-link-row button { border: 0; background: none; color: var(--teal-dark); font-size: 9px; cursor: pointer; }
.dialog { border: 0; width: min(520px, calc(100% - 24px)); max-height: min(82vh, 720px); border-radius: 13px; padding: 20px; box-shadow: 0 20px 80px rgba(20, 40, 43, .2); color: var(--ink); }.dialog::backdrop { background: rgba(14, 34, 37, .44); backdrop-filter: blur(2px); }.dialog-grabber { display: none; }.dialog-header { display: flex; align-items: start; justify-content: space-between; margin-bottom: 17px; }.dialog-header h2 { margin: 5px 0 0; color: var(--navy); font-size: 20px; }.dialog-close { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: #f2f5f3; color: #728184; font-size: 21px; line-height: 1; }.dialog-summary { padding: 11px 12px; background: #f0f7f4; border-radius: 7px; color: #4f6c69; font-size: 10px; line-height: 1.7; margin-bottom: 12px; }.evidence-list { border: 1px solid #e9eeec; border-radius: 7px; overflow: hidden; }.evidence-row { display: flex; justify-content: space-between; gap: 10px; padding: 11px; border-bottom: 1px solid #edf1ef; }.evidence-row:last-child { border-bottom: 0; }.evidence-row strong { display: block; font-size: 10px; color: #405a5e; }.evidence-row small { display: block; margin-top: 4px; color: #8a9999; font-size: 9px; }.evidence-position { color: #52796f; font: 500 10px 'DM Mono', monospace; text-align: right; white-space: nowrap; }.dialog-footnote { color: #909b9c; font-size: 9px; line-height: 1.7; margin-top: 12px; }.form-label { display: block; color: #53696e; font-size: 11px; margin-bottom: 7px; }.dialog textarea { width: 100%; resize: vertical; border: 1px solid #dce5e2; border-radius: 7px; padding: 10px; outline: 0; color: var(--ink); font-size: 12px; line-height: 1.7; }.dialog textarea:focus { border-color: #72b8a8; box-shadow: 0 0 0 3px rgba(24, 168, 146, .09); }.form-hint { margin: 6px 0 15px; color: #8a9899; font-size: 9px; }.primary-button { border: 0; background: var(--teal-dark); color: white; padding: 11px 15px; border-radius: 6px; font-size: 11px; font-weight: 600; cursor: pointer; }.primary-button:hover { background: #086e63; }.full-width { width: 100%; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 26px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; border-radius: 22px; padding: 10px 15px; color: white; background: #203c42; font-size: 11px; box-shadow: var(--shadow); transition: all .2s; white-space: nowrap; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
.site-footer { width: min(920px, calc(100% - 40px)); border-top: 1px solid #e2e8e6; margin: 22px auto 0; padding: 12px 0 16px; display: flex; justify-content: space-between; color: #899697; font-size: 9px; }.footer-mark { font-size: 9px; border-radius: 4px; background: #e4eeea; color: #4f7770; padding: 3px 4px; font-weight: 700; margin-right: 5px; }.footer-divider { margin: 0 5px; color: #c2cbca; }.site-footer b { color: #708386; font: 500 9px 'DM Mono', monospace; }
.mobile-nav { display: none; }

@media (max-width: 760px) {
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .topbar { height: 48px; padding: 0 12px; }.brand { font-size: 10px; gap: 7px; }.brand-mark { width: 22px; height: 22px; }.topbar-right { gap: 5px; }.demo-pill { font-size: 8px; padding: 4px 6px; }.icon-button { width: 29px; height: 29px; }.avatar-button { width: 26px; height: 26px; font-size: 8px; }
  main { width: calc(100% - 22px); padding-bottom: 18px; }.page-heading { align-items: start; padding: 13px 0 9px; }.eyebrow { font-size: 8px; }.page-heading h1 { font-size: 16px; margin-top: 4px; }.page-heading p { font-size: 9px; line-height: 1.35; max-width: 230px; }.filter-button { height: 29px; gap: 4px; padding: 0 7px; font-size: 8px; white-space: nowrap; margin-top: 14px; }.filter-button svg { width: 12px; }.chevron { display: none; }
  .search-row { gap: 6px; margin-bottom: 8px; }.search-box { height: 34px; padding: 0 8px; gap: 6px; }.search-box input { font-size: 10px; }.search-box kbd { display: none; }.search-box svg { width: 15px; }.compare-button { min-width: 84px; padding: 0 7px; font-size: 8px; }.compare-button span { font-size: 13px; }
  .athlete-card { border-radius: 8px; padding: 10px 11px 0; }.athlete-main { gap: 9px; }.athlete-portrait { width: 39px; height: 39px; font-size: 10px; }.athlete-kicker { font-size: 7px; gap: 4px; }.flag { font-size: 11px; }.athlete-info h2 { font-size: 16px; margin: 2px 0 4px; }.athlete-meta { font-size: 8px; gap: 5px; }.athlete-card-bottom { margin: 8px -11px 0; padding: 0 11px; min-height: 25px; font-size: 8px; }.scope-note { font-size: 7px; }.athlete-card::after { right: -24%; top: -187px; }
  .section-tabs { height: 39px; gap: 2px; overflow: auto; scrollbar-width: none; margin-top: 3px; }.section-tabs::-webkit-scrollbar { display: none; }.section-tab { flex: 1 0 auto; justify-content: center; gap: 4px; padding: 0 6px; font-size: 9px; }.tab-icon { font-size: 13px; }
  .panel-content { padding-top: 10px; }.overview-grid, .probability-shell, .races-layout { grid-template-columns: 1fr; gap: 8px; }.card-pad { padding: 11px; }.card-heading h3, .card h3 { font-size: 11px; }.card-subtitle { font-size: 8px; }.tiny-select { font-size: 8px; }.rank-chart text { font-size: 7px; }.metric-row { gap: 5px; margin-top: 7px; }.metric-box { padding: 7px; }.metric-label { font-size: 7px; }.metric-value { font-size: 15px; }.metric-value small { font-size: 8px; }.metric-trend { font-size: 7px; }.memo-text { font-size: 11px; line-height: 1.7; margin: 8px 0; }.insight-list { gap: 5px; margin-top: 8px; }.insight-row { font-size: 8px; padding: 7px; }
  .section-intro { margin-bottom: 10px; }.section-intro h2 { font-size: 15px; }.section-intro p { font-size: 9px; }.section-intro .filter-button { margin: 0; }.chart-card { padding: 13px; }.large-chart .rank-chart { max-height: 225px; }.rank-summary { gap: 11px; padding: 10px; flex-wrap: wrap; }.summary-cell { min-width: 73px; }.summary-value { font-size: 14px; }.summary-note { width: 100%; max-width: none; margin-left: 0; font-size: 9px; }.chart-note { font-size: 8px; }
  .probability-shell { gap: 9px; }.prob-sidebar { grid-template-columns: 1fr 1fr; gap: 8px; }.prob-sidebar .card { padding: 12px; }.prob-main .section-intro { align-items: start; }.mode-switch { margin: 10px 0 12px; gap: 2px; padding: 3px; }.mode-button { padding: 7px 2px; }.mode-button span { font-size: 9px; }.mode-button small { font-size: 7px; }.prob-card { padding: 13px; }.scope-row { gap: 5px; }.scope-copy strong { font-size: 9px; }.scope-copy small { font-size: 8px; }.segmented button { padding: 6px 7px; font-size: 8px; }.condition-area { gap: 5px; padding: 10px 0; }.condition-chip { padding: 6px 7px; font-size: 8px; }.condition-label { font-size: 8px; }.answer-banner { padding: 10px; margin-bottom: 12px; }.answer-title { font-size: 10px; }.outcome-label { font-size: 9px; }.outcome-value { font-size: 11px; }.prob-foot { font-size: 8px; }.evidence-button { font-size: 8px; }.compare-stat { font-size: 8px; padding: 7px 0; }.compare-stat strong { font-size: 9px; }.definition-copy { font-size: 8px; }.small-warning { font-size: 8px; padding: 7px; }
  .race-item { grid-template-columns: 34px minmax(0,1fr) auto 14px; gap: 8px; padding: 11px; }.race-round { width: 33px; height: 34px; font-size: 8px; }.race-name { font-size: 10px; }.race-detail { font-size: 8px; }.race-result { font-size: 11px; }.race-result small { font-size: 7px; }.side-note-card { padding: 13px; }
  .site-footer { width: calc(100% - 22px); margin-top: 10px; padding: 10px 0; font-size: 8px; }.mobile-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(4,1fr); padding: 5px 7px calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid #e1e8e6; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }.mobile-nav-item { display: flex; flex-direction: column; align-items: center; gap: 1px; border: 0; background: none; color: #859395; padding: 3px; font-size: 8px; cursor: pointer; }.mobile-nav-item span { font-size: 15px; line-height: 1.1; }.mobile-nav-item.active { color: var(--teal-dark); font-weight: 600; }
  .dialog { position: fixed; inset: auto 0 0; width: 100%; max-width: none; max-height: 84vh; border-radius: 16px 16px 0 0; padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); margin: 0; }.dialog-grabber { display: block; width: 34px; height: 4px; border-radius: 4px; background: #d9e1de; margin: 1px auto 15px; }.dialog-header h2 { font-size: 18px; }.dialog-close { width: 28px; height: 28px; }.toast { bottom: calc(74px + env(safe-area-inset-bottom)); font-size: 10px; }
}

@media (max-width: 380px) {
  main { width: calc(100% - 22px); }.page-heading h1 { font-size: 17px; }.page-heading p { font-size: 9px; }.filter-button { font-size: 8px; }.athlete-meta { font-size: 8px; }.section-tab { padding: 0 6px; font-size: 9px; }.scope-note strong { font-size: 8px; }.prob-sidebar { grid-template-columns: 1fr; }
}

@media (min-width: 761px) and (max-width: 980px) {
  main, .site-footer { width: calc(100% - 42px); }.overview-grid { grid-template-columns: minmax(0, 1.3fr) minmax(260px, .8fr); }.probability-shell { grid-template-columns: minmax(0,1fr) 245px; }.prob-sidebar .card { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Compact profile-first layout: the analysis tabs are the only navigation. */
.site-footer, .mobile-nav { display: none !important; }
@media (max-width: 760px) {
  body { padding-bottom: env(safe-area-inset-bottom); }
  main { width: calc(100% - 22px); padding-top: 9px; padding-bottom: 14px; }
  .search-row { margin-bottom: 7px; }
  .athlete-card { padding: 9px 10px; }
  .athlete-main { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .athlete-identity { gap: 9px; }
  .athlete-portrait { width: 34px; height: 34px; font-size: 9px; }
  .athlete-kicker { font-size: 7px; }
  .athlete-info h2 { font-size: 14px; margin: 2px 0; }
  .athlete-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; border-left: 0; border-top: 1px solid rgba(225,244,240,.2); padding: 7px 0 0; }
  .athlete-fact > span { font-size: 7px; }
  .athlete-fact strong { margin-top: 2px; font-size: 8px; }
  .athlete-fact strong b { font-size: 10px; }
  .section-tabs { height: 36px; margin-top: 2px; gap: 0; }
  .section-tab { flex: 1 1 0; gap: 3px; padding: 0 2px; font-size: 9px; }
  .tab-icon { font-size: 12px; }
  .panel-content { padding-top: 8px; }
  .toast { bottom: calc(12px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .section-tab { font-size: 8px; gap: 2px; }
  .tab-icon { font-size: 11px; }
  .sample-tag { font-size: 7px; padding: 1px 4px; }
}

/* Mobile reading and touch targets: keep labels legible at phone width. */
@media (max-width: 760px) {
  main { padding-top: 10px; }
  .search-box { height: 42px; padding: 0 11px; gap: 9px; }
  .search-box svg { width: 18px; height: 18px; }
  .search-box input { font-size: 16px; }
  .athlete-card { padding: 11px 12px; }
  .athlete-main { gap: 10px; }
  .athlete-portrait { width: 38px; height: 38px; font-size: 10px; }
  .athlete-kicker { font-size: 9px; gap: 5px; letter-spacing: .04em; }
  .flag { font-size: 13px; }
  .sample-tag { font-size: 9px; padding: 3px 6px; }
  .athlete-info h2 { font-size: 17px; margin: 3px 0; }
  .athlete-facts { gap: 6px; padding-top: 9px; }
  .athlete-fact > span { font-size: 10px; }
  .athlete-fact strong { margin-top: 3px; font-size: 12px; }
  .athlete-fact strong b { font-size: 14px; }
  .section-tabs { height: 48px; margin-top: 4px; }
  .section-tab { min-height: 44px; gap: 4px; padding: 0 3px; font-size: 11px; }
  .tab-icon { font-size: 15px; }
  .panel-content { padding-top: 10px; }
  .card-pad { padding: 14px; }
  .card-heading h3, .card h3 { font-size: 14px; }
  .card-subtitle { font-size: 10px; }
  .rank-chart text { font-size: 16px; }
  .chart-legend { gap: 8px; font-size: 11px; }
  .checkpoint-row { gap: 6px; padding-top: 12px; }
  .checkpoint-button { min-height: 40px; padding: 8px 10px; font-size: 11px; }
  .metric-row { gap: 6px; margin-top: 10px; }
  .metric-box { padding: 9px; }
  .metric-label { font-size: 10px; }
  .metric-value { font-size: 18px; }
  .metric-value small, .metric-trend { font-size: 10px; }
  .memo-kicker, .memo-kicker span:last-child { font-size: 10px; }
  .memo-text { font-size: 15px; line-height: 1.65; margin: 10px 0; }
  .memo-meta { gap: 8px; font-size: 10px; }
  .text-link { min-height: 38px; font-size: 11px; }
  .insight-list { gap: 7px; margin-top: 10px; }
  .insight-row { gap: 9px; padding: 10px; font-size: 12px; }
  .insight-icon { width: 24px; height: 24px; font-size: 14px; }
  .section-intro { margin-bottom: 12px; }
  .section-intro h2 { font-size: 17px; }
  .section-intro p { font-size: 11px; }
  .chart-card { padding: 14px; }
  .summary-label, .chart-note { font-size: 10px; }
  .summary-value { font-size: 16px; }
  .summary-note { font-size: 10px; }
  .mode-button { min-height: 42px; padding: 8px 3px; }
  .mode-button span { font-size: 11px; }
  .mode-button small { font-size: 9px; }
  .scope-copy strong { font-size: 11px; }
  .scope-copy small, .condition-label { font-size: 10px; }
  .segmented button, .condition-chip { min-height: 38px; font-size: 10px; }
  .answer-overline, .answer-context { font-size: 10px; }
  .answer-title { font-size: 13px; }
  .outcome-label { font-size: 11px; }
  .outcome-value { font-size: 13px; }
  .outcome-sub, .prob-foot { font-size: 10px; }
  .evidence-button { min-height: 38px; font-size: 11px; }
  .sidebar-title { font-size: 12px; }
  .compare-stat { font-size: 10px; }
  .compare-stat strong { font-size: 12px; }
  .compare-legend, .definition-copy, .small-warning { font-size: 10px; }
  .distribution-rank, .distribution-value { font-size: 11px; }
  .distribution-value small, .time-range-label, .range-values { font-size: 10px; }
  .race-item { min-height: 68px; padding: 12px; }
  .race-round { width: 38px; height: 38px; font-size: 10px; }
  .race-name { font-size: 12px; }
  .race-detail, .race-result small, .evidence-link-row { font-size: 10px; }
  .race-result { font-size: 13px; }
  .dialog { font-size: 14px; }
  .dialog-summary, .evidence-row strong, .form-label { font-size: 12px; }
  .evidence-row small, .dialog-footnote, .form-hint { font-size: 10px; }
  .dialog textarea { font-size: 16px; }
}
@media (max-width: 380px) {
  .section-tab { font-size: 10px; gap: 3px; padding: 0 2px; }
  .tab-icon { font-size: 14px; }
  .athlete-fact > span { font-size: 9px; }
  .athlete-fact strong { font-size: 11px; }
  .chart-legend { font-size: 10px; }
}
