:root {
  color-scheme: light;
  --ink: #152641;
  --quiet: #52677f;
  --blue: #174eca;
  --blue-dark: #10398d;
  --paper: #f4f7fc;
  --white: #fff;
  --line: #dae3ef;
  --hero: #e9f1ff;
  --wash: #f4f8ff;
  --radius: 18px;
  font: 15px/1.55 "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, select, input { color: inherit; font: inherit; }
button, select, summary { cursor: pointer; }
button, input, select { min-height: 40px; }
:focus-visible { outline: 3px solid #4786ff; outline-offset: 3px; }
.wrap { width: min(1220px, calc(100% - 64px)); margin-inline: auto; }
.top { background: #fcfdff; border-bottom: 1px solid var(--line); }
.header-inner, .header-inner nav { display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.header-inner { min-height: 68px; }
.brand { font-size: 26px; font-weight: 780; letter-spacing: -.065em; line-height: 1; }
.brand span { width: 8px; height: 8px; display: inline-block; margin-left: 5px; border-radius: 2px; background: var(--blue); }
.header-inner nav { justify-content: flex-end; font-size: .86rem; font-weight: 620; gap: clamp(12px, 3vw, 30px); }
.header-inner nav a[aria-current], .header-inner nav a:hover { color: var(--blue); }
.nav-exit { border: 0; padding: 0; background: transparent; color: var(--quiet); }
.mast { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 35px 0 26px; }
h1,h2,p { margin: 0; }
h1 { font-size: clamp(2.35rem, 5.4vw, 4.15rem); letter-spacing: -.085em; line-height: 1.13; font-weight: 760; }
.mast p { margin-top: .8rem; color: var(--quiet); }
.field { display: grid; gap: 5px; color: var(--quiet); font-size: .82rem; font-weight: 600; }
.field select, .login input {
  min-width: 170px; padding: 0 12px; background: var(--white); color: var(--ink);
  border: 1px solid #c6d3e4; border-radius: 8px;
}
.controls {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px;
  padding: 8px 12px 8px 8px; background: #e9f0fb; border: 1px solid #d7e4f7; border-radius: 13px;
}
.compact { display: flex; align-items: center; gap: 10px; }
.compact select { min-width: 126px; min-height: 37px; }
.seg { display: flex; width: min(100%, 440px); gap: 6px; }
.seg a { flex: 1; display: flex; justify-content: center; align-items: baseline; gap: 9px; padding: 9px; border-radius: 8px; white-space: nowrap; color: var(--blue-dark); }
.seg strong { font-size: 1.05rem; letter-spacing: -.02em; }
.seg span { font-size: .82rem; }
.seg a:not([aria-current]):hover { background: #dce8fa; }
.seg a[aria-current] { color: var(--white); background: var(--blue); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.section-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 22px 24px 18px; }
.panel-actions { display: flex; align-items: center; gap: 12px; }
h2 { font-size: 1.26rem; letter-spacing: -.046em; font-weight: 730; }
.section-head p { color: var(--quiet); font-size: .85rem; margin-top: 4px; }
.slim, .slash { color: #7891b3; font-weight: 400; margin-inline: .23em; }
.tag { font-size: .76rem; font-weight: 650; border-radius: 20px; padding: 4px 10px; white-space: nowrap; color: #2a4a6f; background: #ebf2fb; }
.tag.settled { background: #e7f5ec; color: #2b6549; }
.tag.void { background: #fff0e1; color: #835018; }
.scroll { overflow-x:auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
thead { background: #f2f6fc; color: #445a75; font-size: .76rem; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #e7edf5; }
thead th { white-space: nowrap; padding-block: 10px; }
th[scope=row] { font-weight: 670; font-size: .93rem; min-width: 230px; }
small { display: block; color: var(--quiet); font-size: .74rem; font-weight: 420; margin: 2px 0 0; }
tr:last-child td, tr:last-child th { border-bottom: 0; }
.rank { width: 74px; text-align: center; color: var(--blue-dark); white-space: nowrap; }
.number { text-align: right; white-space: nowrap; }
.metric { font-weight: 680; letter-spacing: .012em; }
.coverage { padding-right: 25px; font-size: .9rem; }
.coverage progress { display: block; margin: 3px 0 0 auto; width: 57px; }
.cohort { display: inline-block; margin-left: 8px; font-size: .69rem; font-weight: 650; color: #53667d; }
.cohort.op { color: #52359b; }
.cohort.trained { color: #17646e; }
.tracked { background: #f8faff; }
.group-label th { color: var(--blue-dark); background: #ebf2fc; font-size: .76rem; font-weight: 660; padding: 6px 14px 6px 25px; }
.muted, .subtle { color: var(--quiet); }
.muted { font-size: .84em; font-weight: 500; }
.footnote { padding: 14px 24px; border-top: 1px solid var(--line); color: var(--quiet); font-size: .78rem; }
.banner, .empty { margin: 0 24px 14px; padding: 10px 14px; background: #edf4ff; color: #234975; border-radius: 7px; font-size: .86rem; }
.fixture-list { margin-top: 26px; }
.fixture-list .section-head { padding-inline: 0; }
.fixture-list ul { list-style: none; padding: 0; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.fixture-list li a { padding: 12px 18px; display: grid; gap: 16px; grid-template-columns: minmax(92px, .23fr) 1fr auto; align-items: center; }
.match-link { color: var(--blue); font-size: .87rem; font-weight: 650; padding-block: 7px; }
.fixture-list li + li { border-top: 1px solid var(--line); }
.fixture-list a:hover { background: #eaf2ff; }
.fixture-date, .right { font-size: .84rem; white-space: nowrap; color: var(--quiet); font-variant-numeric: tabular-nums; }
.right .arrow { margin-left: 7px; color: var(--blue); font-size: 1.22em; }
.back { display: inline-flex; align-items: center; min-height: 42px; color: var(--blue); font-weight: 650; margin-bottom: 7px; }
.match { padding: clamp(18px, 3.6vw, 36px); background: var(--hero); border: 1px solid #d2e1f8; border-radius: var(--radius); margin-bottom: 18px; }
.match-meta { color: var(--blue-dark); font-size: .86rem; }
.scoreline { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; font-size: clamp(1.35rem, 3.4vw, 3rem); gap: clamp(12px, 3vw, 42px); padding: 14px 0 18px; line-height: 1.12; letter-spacing: -.055em; }
.scoreline strong:first-child { text-align: right; }
.scoreline span { color: var(--blue); font-weight: 770; white-space: nowrap; font-variant-numeric: tabular-nums; }
.match dl { display: flex; flex-wrap: wrap; margin: 0; gap: 12px 36px; border-top: 1px solid #c8d9f2; padding-top: 10px; }
.match dt { color: var(--quiet); font-size: .75rem; }
.match dd { margin: 1px 0 0; font-weight: 640; }
.checkbox { display: flex; align-items: center; gap: 6px; color: var(--quiet); font-size: .78rem; }
.checkbox input { accent-color: var(--blue); min-height: auto; }
.detail { min-width: 810px; }
.detail td, .detail th { vertical-align: top; }
.detail th:first-child { padding-left: 24px; }
.detail td:last-child, .detail th:last-child { padding-right: 24px; }
.detail details { font-size: .75rem; color: var(--quiet); margin-top: 5px; }
.detail details code { display: block; font-size: .70rem; overflow-wrap:anywhere; max-width: 240px; }
.probabilities { list-style: none; margin: 0; padding: 0; min-width: 140px; font-size: .77rem; }
.probabilities li { display: grid; grid-template-columns: minmax(60px,1fr) 46px 35px; align-items: center; gap: 6px; margin-bottom: 3px; }
.probabilities b { text-align: right; }
.observed { color: var(--blue); font-weight: 680; }
progress { width: 100%; height: 5px; border: 0; border-radius: 4px; background: #e3ecfa; }
progress::-webkit-progress-bar { background: #e3ecfa; border-radius: 4px; }
progress::-webkit-progress-value { background: #4a79db; border-radius: 4px; }
progress::-moz-progress-bar { background: #4a79db; border-radius: 4px; }
.losses { margin: 0; min-width: 112px; }
.losses div { display: flex; justify-content: space-between; gap: 10px; }
.losses dt { color: var(--quiet); font-size: .73rem; }
.losses dd { margin: 0; font-size: .84rem; font-weight: 680; }
footer { padding: 22px 0 28px; font-size: .8rem; color: var(--quiet); }
.login { width: min(430px, calc(100% - 30px)); padding-top: min(12vh, 82px); }
.login .panel { display: grid; gap: 13px; padding: 30px; }
.login h1 { font-size: 2.2rem; margin-bottom: 3px; letter-spacing: -.065em; }
.login label { font-size: .84rem; }
.login input { width: 100%; }
.primary { color: var(--white); background: var(--blue); border: 0; border-radius: 8px; font-weight: 650; }
.primary:hover { background: var(--blue-dark); }
.error { color: #8b2424; padding: 10px; background: #fff0ed; border-radius: 8px; }
.loading { margin-top: 24px; color: var(--quiet); }
@media (max-width: 680px) {
  .wrap { width: calc(100% - 26px); }
  .header-inner { min-height: 56px; }
  .header-inner nav { font-size: .76rem; }
  .mast { align-items: flex-start; flex-direction: column; padding: 22px 0 18px; gap: 12px; }
  .mast p { margin-top: 6px; font-size: .81rem; }
  .field select { min-width: 140px; }
  .controls { gap: 7px; flex-wrap: wrap; padding: 6px; }
  .seg { width: 100%; }
  .seg a { padding: 7px; }
  .compact { margin: 4px; }
  .section-head { flex-wrap: wrap; padding: 14px 12px; }
  .footnote { padding: 11px 12px; }
  .fixture-list li a { padding: 10px; column-gap: 8px; grid-template-columns: minmax(64px, auto) 1fr auto; }
  .fixture-list a strong { font-size: .83rem; }
  .fixture-date, .right { font-size: .72rem; }
  .fixture-date small { max-width: 69px; white-space: normal; overflow-wrap: anywhere; }
  .scoreline { font-size: clamp(1rem, 5vw, 1.7rem); }
}
