:root {
  color-scheme: dark;
  --canvas: #0a1020;
  --panel: #121d32;
  --card: #16263a;
  --stripe: #17263e;
  --head: #20364f;
  --line: #2c4055;
  --ink: #f1f6ff;
  --muted: #b6c6dd;
  --mint: #5eead4;
  --blue: #60a5fa;
  --red: #f87171;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--canvas);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
a { color: inherit; }
button, select { font: inherit; color: inherit; }
button, select, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, select:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--mint); outline-offset: 3px;
}
.skip { position: fixed; inset: 8px auto auto 8px; transform: translateY(-150%); z-index: 5; padding: 10px; background: var(--panel); }
.skip:focus { transform: none; }
.shell { max-width: 1480px; margin-inline: auto; padding-inline: clamp(16px, 3vw, 44px); }
.header { background: #0e1728; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand-divider { color: var(--mint); padding-inline: 3px; }
.brand-secondary { font-weight: 600; }
.mark { width: 31px; height: 31px; border-radius: 7px; background: #173f44; color: var(--mint); display: flex; align-items: end; justify-content: center; gap: 3px; padding-bottom: 8px; }
.mark i { width: 3px; height: 7px; background: currentColor; border-radius: 1px; }
.mark i:nth-child(2) { height: 11px; }
.mark i:nth-child(3) { height: 15px; }
.nav { display: flex; gap: 5px; margin-left: auto; }
.nav a { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); padding: 10px 14px; border-radius: 7px; }
.nav a:hover { background: var(--head); color: var(--ink); }
.nav [aria-current="page"] { color: #092725; background: var(--mint); }
.nav [aria-current="page"]:hover { color: #092725; background: #87f4e1; }
.demo-label { font-size: 12px; color: var(--muted); white-space: nowrap; padding-left: 15px; border-left: 1px solid var(--line); }
.quiet { border: 0; background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; font-size: 13px; }
.report { padding-top: 36px; }
.page-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 14px 26px; margin-bottom: 24px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(30px, 3vw, 42px); letter-spacing: -.035em; line-height: 1.12; }
.page-heading p, .gate p { color: var(--muted); margin-top: 8px; font-size: 14px; }
.selector { display: flex; gap: 8px; align-items: center; max-width: 100%; }
.selector label { color: var(--muted); font-size: 13px; font-weight: 600; }
.selector select, .selector button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--card); min-height: 42px; }
.selector select { min-width: min(200px, 40vw); max-width: min(360px, 52vw); }
.selector button { color: var(--mint); cursor: pointer; }
.selector button:hover { background: var(--head); }
.kpis, .charts { display: grid; gap: 14px; margin-bottom: 16px; }
.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi, .panel { border: 1px solid var(--line); border-radius: 10px; }
.kpi { background: var(--card); padding: 18px 18px 15px; }
.kpi h2 { font-size: 14px; font-weight: 600; color: #e2e8f0; }
.kpi p { font-size: clamp(28px, 3vw, 40px); font-weight: 650; font-variant-numeric: tabular-nums; color: var(--mint); line-height: 1.15; margin-top: 7px; }
.panel { background: var(--panel); min-width: 0; }
.panel h2 { font-size: 17px; font-weight: 650; padding: 16px 18px; }
.row-count { margin-left: 9px; color: var(--muted); font-size: 12px; font-weight: 500; }
.charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chart-body { padding: 0 18px 17px; }
.chart-row { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 10px; padding-block: 9px; border-top: 1px solid var(--line); }
.chart-row > span, .bar span { color: var(--muted); font-size: 12px; }
.series-stack { display: grid; gap: 2px; }
.bar { display: grid; grid-template-columns: 1fr 58px; align-items: center; gap: 8px; }
.bar span { text-align: right; font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; list-style: none; margin: 0 18px 13px; padding: 0; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.legend li::before { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--series); content: ""; margin-right: 6px; }
.series-1 { --series: var(--mint); }
.series-2 { --series: #a5b4fc; }
.series-3 { --series: #f9a8d4; }
meter { appearance: none; width: 100%; height: 10px; background: #1a2b43; border-radius: 4px; border: 0; }
meter::-webkit-meter-bar { background: #1a2b43; border: 0; height: 10px; }
meter::-webkit-meter-optimum-value { background: var(--series); border-radius: 4px; }
meter::-moz-meter-bar { background: var(--series); border-radius: 4px; }
.table-panel { margin-bottom: 16px; overflow: hidden; }
.table-scroll { overflow: auto; scrollbar-color: var(--line) var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead { text-align: left; background: var(--head); }
th, td { white-space: nowrap; padding: 12px 13px; }
th:first-child, td:first-child { padding-left: 18px; }
th:last-child, td:last-child { padding-right: 18px; }
th { padding-block: 0; font-weight: 650; color: #e2e8f0; }
th button { width: 100%; padding: 11px 0; text-align: left; background: none; border: 0; cursor: pointer; font-size: 12px; font-weight: 650; }
th button:hover { color: var(--mint); }
th[aria-sort="ascending"] button::after { content: " ↑"; }
th[aria-sort="descending"] button::after { content: " ↓"; }
td { border-bottom: 1px solid #22344c; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: var(--stripe); }
tbody tr:hover { background: #1d3049; }
td:first-child { font-weight: 600; }
.number { font-variant-numeric: tabular-nums; }
.team, .result { font-weight: 650; }
.team.blue { color: var(--blue); }
.team.red, .result.loss { color: var(--red); }
.result.win { color: var(--mint); }
.empty { color: var(--muted); margin: 0 18px 20px; font-size: 14px; }
.report-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; padding: 5px 0 24px; }
.update i { display: inline-block; width: 6px; height: 6px; background: var(--mint); border-radius: 50%; margin-right: 5px; vertical-align: 2px; }
.gate { padding-top: clamp(36px, 12vh, 110px); }
.gate .panel { max-width: 570px; margin-inline: auto; padding: 30px; }
.gate .primary { display: inline-block; padding: 11px 15px; border-radius: 7px; font-weight: 650; background: var(--mint); color: #092725; text-decoration: none; margin-top: 20px; }
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: 12px; padding-top: 12px; padding-bottom: 10px; }
  .nav { order: 3; margin-left: 0; width: 100%; overflow-x: auto; }
  .demo-label, .signout { margin-left: auto; }
  .report { padding-top: 24px; }
}
@media (max-width: 640px) {
  .nav a { font-size: 12px; padding: 8px 10px; }
  .kpis, .kpis.five { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .kpi { padding: 13px 12px; }
  .kpi h2 { font-size: 12px; }
  .charts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .page-heading { margin-bottom: 16px; }
  .report-footer { font-size: 11px; }
}
