:root {
  color-scheme: dark;
  --bg: #050605;
  --bg-2: #0c100e;
  --surface: rgba(10, 16, 12, 0.88);
  --surface-2: #141c17;
  --ink: #f3fff6;
  --muted: #c9dccf;
  --faint: #93aa9b;
  --line: rgba(8, 238, 70, 0.2);
  --accent: #08ee46;
  --accent-ink: #041208;
  --hit: #3dff78;
  --hit-ink: #04210f;
  --miss: #ff8d7a;
  --miss-ink: #2a0d08;
  --near: #ffb15a;
  --near-ink: #2a1d05;
  --info: #8ecbff;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --sidebar: 248px;
  --nav-h: 64px;
  --font: Outfit, "Segoe UI", system-ui, sans-serif;
  --display: Fraunces, Georgia, serif;
  --num: "Segoe UI", Outfit, system-ui, sans-serif;
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #eef2f7;
  --bg-2: #f7f9fc;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-2: #ffffff;
  --ink: #142033;
  --muted: #3d4b63;
  --faint: #5c6b82;
  --line: rgba(12, 90, 40, 0.16);
  --accent: #0b8a38;
  --accent-ink: #f4fff8;
  --hit: #0e9f62;
  --hit-ink: #f3fff8;
  --miss: #c24132;
  --miss-ink: #fff6f4;
  --near: #a15c00;
  --near-ink: #fff8ee;
  --info: #1d5fe0;
  --shadow: 0 16px 40px rgba(16, 60, 32, 0.12);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; max-width: 100%; }
body {
  overflow-x: clip;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  background:
    radial-gradient(880px 420px at -8% -18%, rgba(8, 238, 70, 0.18), transparent 58%),
    radial-gradient(640px 340px at 108% -6%, rgba(8, 238, 70, 0.08), transparent 52%),
    var(--bg);
}
html[data-theme="light"] body {
  background:
    radial-gradient(920px 440px at -10% -18%, rgba(8, 238, 70, 0.2), transparent 56%),
    radial-gradient(680px 360px at 110% -8%, rgba(11, 138, 56, 0.12), transparent 52%),
    radial-gradient(480px 240px at 50% 110%, rgba(8, 238, 70, 0.08), transparent 60%),
    var(--bg);
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.num, .odds, .kpi b, .stat b, .price { font-variant-numeric: tabular-nums; font-family: var(--num); }

.shell { min-height: 100vh; }
.shell > div { min-width: 0; max-width: 100%; }
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(18.5rem, 88vw);
  padding: 0.85rem 0.7rem calc(0.85rem + env(safe-area-inset-bottom));
  overflow: auto;
  transform: translateX(-105%);
  visibility: hidden;
  transition: transform 200ms ease;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(2, 8, 4, 0.22) 0%, rgba(2, 8, 4, 0.48) 48%, rgba(2, 8, 4, 0.78) 100%),
    url("sidebar-bg.jpg") center 32% / cover no-repeat;
}
.shell.nav-open .sidebar { transform: translateX(0); visibility: visible; }
.shell.nav-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(4, 8, 6, 0.62);
}
body.nav-open { overflow: hidden; }
.nav-close { align-self: flex-end; color: #f4fff7; font-size: 1.4rem; line-height: 1; }
.sidebar .brand { justify-content: center; padding: 0.15rem 0 0.45rem; }
.sidebar .brand img { width: min(11.2rem, 100%); height: auto; aspect-ratio: 1; }
.sidebar .spacer { flex: 1; }
.sports { display: grid; gap: 0.35rem; }
.sport summary {
  list-style: none;
  justify-content: space-between;
}
.sport summary::-webkit-details-marker { display: none; }
.sport summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.2rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-0.1rem);
  flex: 0 0 auto;
}
.sport[open] summary::after { transform: rotate(225deg) translateY(-0.1rem); }
.sport.on > summary { border-color: color-mix(in srgb, var(--accent) 70%, transparent); }
.sport:not([open]) .sport-links { display: none; }
.sport[open] .sport-links { display: grid; gap: 0.25rem; margin: 0.25rem 0 0.15rem; padding-left: 0.55rem; }
.sidebar a:not(.brand), .sidebar button.nav-link, .sidebar .install, .sidebar .sport summary {
  display: flex; align-items: center; gap: 0.55rem;
  min-height: 44px; padding: 0.35rem 0.7rem; border-radius: 12px;
  color: #f4fff7; text-decoration: none; font-weight: 700;
  border: 1px solid rgba(8, 238, 70, 0.18);
  background: rgba(3, 8, 5, 0.62);
  backdrop-filter: blur(8px);
  cursor: pointer; text-align: left;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.sidebar a.on, .sidebar a[aria-current="page"] {
  color: var(--accent-ink); background: var(--accent); text-shadow: none;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 0 22px color-mix(in srgb, var(--accent) 45%, transparent);
}
.sidebar .install[hidden] { display: none; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  min-height: 60px;
  padding: 0.45rem 0.8rem;
  padding-top: calc(0.45rem + env(safe-area-inset-top));
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.brand img {
  width: 4.4rem; height: 4.4rem; border-radius: 50%; object-fit: cover; display: block;
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 55%, transparent);
}
.auth-logo {
  width: 9.5rem; height: 9.5rem; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 0.4rem;
  box-shadow: 0 0 36px color-mix(in srgb, var(--accent) 50%, transparent);
}
.topbar-title { min-width: 0; }
.topbar-title strong { display: block; overflow-wrap: anywhere; }
.topbar-title p { margin: 0; color: var(--faint); font-size: 0.82rem; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 0.4rem; }
.icon-btn, .menu-btn {
  min-width: 44px; min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.sidebar-toggle { display: inline-flex; }
.main {
  width: min(1120px, calc(100% - 1.2rem));
  margin: 0 auto;
  min-width: 0;
  max-width: 100%;
  padding: 0.9rem 0 calc(1.4rem + env(safe-area-inset-bottom));
}
h1, h2, h3 { font-family: var(--display); font-weight: 560; letter-spacing: -0.03em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0.15rem 0 0.35rem; line-height: 1.05; }
h2 { font-size: 1.25rem; margin: 0 0 0.35rem; }
.quiet, .source, .help { color: var(--muted); }
.help { margin: 0.25rem 0 0; font-size: 0.86rem; }
.source { font-size: 0.8rem; margin: 0.55rem 0 0; }

.btn, button.btn, .ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  min-height: 44px; padding: 0.55rem 0.95rem;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink);
  text-decoration: none; font-weight: 650; cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.btn:hover, .ghost:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary, button.primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 80%, white), var(--accent));
  color: var(--accent-ink); border-color: transparent;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn.secondary { background: transparent; }
.btn.danger, button.danger {
  color: var(--miss); background: transparent; border-color: color-mix(in srgb, var(--miss) 45%, var(--line));
}
.btn.sm, button.btn.sm {
  min-height: 36px; padding: 0.35rem 0.7rem; font-size: 0.85rem; border-radius: 10px;
}
.btn:disabled, button:disabled { opacity: 0.55; cursor: wait; transform: none; }
.btn.loading { position: relative; color: transparent; }
.btn.loading::after {
  content: ""; position: absolute; width: 1rem; height: 1rem; border-radius: 50%;
  border: 2px solid var(--accent-ink); border-right-color: transparent; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.chip, .tag {
  display: inline-flex; align-items: center; gap: 0.25rem;
  min-height: 1.7rem; padding: 0.1rem 0.55rem; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  color: var(--ink); font-size: 0.78rem; font-weight: 700; text-decoration: none;
}
.chip.mint, .tag.won { background: var(--hit); color: var(--hit-ink); }
.chip.amber, .tag.pending { background: var(--near); color: var(--near-ink); }
.chip.danger, .tag.lost { background: var(--miss); color: var(--miss-ink); }
.chip.flat, .tag.push { background: color-mix(in srgb, var(--faint) 25%, transparent); }
.chip.info { background: color-mix(in srgb, var(--info) 22%, transparent); color: var(--ink); }
.kicker { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; color: var(--muted); font-size: 0.86rem; }

.hero, .sheet, .card, .side-card, .pick, .pick-card, .stat, .kpi, .panel, .auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 color-mix(in srgb, var(--accent) 28%, transparent);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
html[data-theme="light"] .hero,
html[data-theme="light"] .sheet,
html[data-theme="light"] .card,
html[data-theme="light"] .pick,
html[data-theme="light"] .pick-card,
html[data-theme="light"] .kpi,
html[data-theme="light"] .auth-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84));
  box-shadow: inset 0 1px 0 #fff, 0 16px 36px rgba(16, 60, 32, 0.1);
}
html[data-theme="light"] .pick:hover,
html[data-theme="light"] .kpi:hover,
html[data-theme="light"] .card:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 #fff, 0 20px 40px rgba(11, 138, 56, 0.16);
}
.hero, .sheet, .card { padding: 1rem; margin: 0 0 0.8rem; }
.hero.glass {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 16%, transparent), transparent 42%),
    var(--surface);
}
.kpis, .summary, .meters { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin: 0.7rem 0; }
.kpi, .stat, .meter { padding: 0.75rem 0.8rem; }
.kpi b, .stat b, .meter b { display: block; font-size: 1.45rem; letter-spacing: -0.03em; }
.kpi span, .stat span, .meter small { display: block; color: var(--muted); font-size: 0.78rem; }
.plus { color: var(--hit); }
.minus { color: var(--miss); }

.status {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--hit); font-weight: 700; font-size: 0.86rem;
}
.status i, .status.wait i, .status.bad i, .status.part i {
  width: 0.55rem; height: 0.55rem; border-radius: 50%; background: currentColor;
}
.status.wait { color: var(--faint); }
.status.bad { color: var(--miss); }
.status.part { color: var(--near); }

.tabs, .day-filters, .filter-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.7rem; }
.tab, .day-filters button, .filter-chips a {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 44px; padding: 0.35rem 0.8rem; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  text-decoration: none; font-weight: 700; white-space: nowrap; cursor: pointer;
}
.tab b { min-width: 1.4rem; text-align: center; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); font-size: 0.8rem; }
.tab.on, .tab[aria-current="page"], .day-filters button[aria-pressed="true"] {
  background: var(--accent); color: var(--accent-ink); border-color: transparent;
}
.tab.on b, .tab[aria-current="page"] b { background: color-mix(in srgb, var(--accent-ink) 16%, transparent); color: var(--accent-ink); }

.pick-list, .cards { display: grid; gap: 0.7rem; }
.pick-card, .pick { padding: 0.85rem; color: inherit; }
.pick { display: block; text-decoration: none; }
.pick-main { display: block; color: inherit; text-decoration: none; }
.pick-top { display: flex; justify-content: space-between; gap: 0.6rem; align-items: flex-start; }
.odds { font-size: 1.35rem; font-weight: 750; color: var(--accent); text-shadow: 0 0 14px color-mix(in srgb, var(--accent) 40%, transparent); }
html[data-theme="light"] .odds { text-shadow: none; }
.match { font-weight: 750; margin: 0.25rem 0; overflow-wrap: anywhere; }
.side { font-weight: 800; }
.side.over, .mark-hit { color: var(--hit); }
.side.under, .mark-miss { color: var(--miss); }
.side.result { color: var(--info); }
.dots { display: inline-flex; gap: 0.28rem; }
.dots i { width: 0.62rem; height: 0.62rem; border-radius: 50%; background: var(--faint); }
.dots i.hit { background: var(--hit); }
.dots i.miss { background: var(--miss); }
.track { display: block; height: 0.4rem; border-radius: 999px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; margin-top: 0.35rem; }
.track i { display: block; height: 100%; background: var(--accent); }
.track.near i { background: var(--near); }
.track.hit i { background: var(--hit); }
.more { margin-top: 0.45rem; }
.more summary {
  min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; color: var(--muted); font-weight: 700;
}
.pick-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin-top: 0.55rem;
}
.pick-actions .more { margin-top: 0; }
.ai-cell { display: grid; gap: 0.35rem; justify-items: start; min-width: 11rem; }
.ai-cell details > summary { cursor: pointer; color: var(--accent); font-weight: 700; font-size: 0.85rem; }
.ai-brief {
  margin-top: 0.4rem; padding: 0.55rem 0.65rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-2); font-size: 0.86rem;
}
.ai-brief p { margin: 0 0 0.4rem; }
.ai-brief p:last-child { margin-bottom: 0; }
.ai-brief ul { margin: 0.25rem 0 0.4rem; padding-left: 1.15rem; }
.drop {
  min-height: 44px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--miss) 40%, var(--line));
  background: transparent; color: var(--miss); font-weight: 700; cursor: pointer; padding: 0.4rem 0.8rem;
}

.filters { display: grid; gap: 0.55rem; margin: 0 0 0.8rem; }
.filters label, .field { display: grid; gap: 0.25rem; color: var(--muted); font-size: 0.86rem; }
select, input[type="number"], input[type="text"], input[type="password"], input[type="search"] {
  width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg-2); padding: 0.45rem 0.7rem;
}
.field.dirty > span::after, .check.dirty > span::after {
  content: ""; display: inline-block; width: 0.45rem; height: 0.45rem; margin-left: 0.35rem;
  border-radius: 50%; background: var(--near); vertical-align: middle;
}
.stepper { display: flex; gap: 0.35rem; align-items: center; }
.stepper input { flex: 1; }
.stepper .step { min-width: 44px; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; }
.check {
  display: flex; align-items: center; gap: 0.7rem; min-height: 44px; color: var(--ink); font-weight: 650;
}
.check input {
  appearance: none; width: 2.7rem; height: 1.55rem; border-radius: 999px; margin: 0;
  background: color-mix(in srgb, var(--faint) 35%, transparent); position: relative; cursor: pointer; flex: 0 0 auto;
}
.check input::after {
  content: ""; position: absolute; top: 0.16rem; left: 0.16rem; width: 1.2rem; height: 1.2rem;
  border-radius: 50%; background: white; transition: transform 180ms ease;
}
.check input:checked { background: var(--accent); }
.check input:checked::after { transform: translateX(1.12rem); }
.checks { display: flex; flex-wrap: wrap; gap: 0.35rem 0.8rem; }
.grid { display: grid; gap: 0.7rem; }
.fold { margin: 0 0 0.7rem; }
.fold > summary {
  cursor: pointer; list-style: none; min-height: 44px; display: flex; align-items: center;
  font-family: var(--display); font-size: 1.15rem;
}
.fold > summary::-webkit-details-marker { display: none; }
.settings-bar, .runbar {
  display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center;
  padding: 0.55rem; margin: 0 0 0.8rem; border-radius: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line); z-index: 8;
}
.settings-bar {
  position: sticky;
  top: calc(3.75rem + env(safe-area-inset-top));
  z-index: 15;
  margin: 0 0 0.8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow);
}
.settings-bar .btn { white-space: normal; line-height: 1.2; text-align: center; }
.settings-bar .btn.primary { grid-column: 1 / -1; }
.banner, .alert, .note, .error {
  border-radius: 14px; padding: 0.75rem 0.85rem; margin: 0 0 0.7rem; border: 1px solid var(--line);
}
.alert, .error { background: color-mix(in srgb, var(--miss) 14%, var(--surface)); color: var(--ink); }
.note, .alert.ok { background: color-mix(in srgb, var(--hit) 14%, var(--surface)); }
.empty {
  padding: 1.4rem 1rem; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty svg { width: 2rem; height: 2rem; color: var(--faint); }
.funnel { display: grid; gap: 0.45rem; }
.funnel a, .funnel .row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.4rem; align-items: center;
  color: inherit; text-decoration: none; min-height: 44px;
}
.funnel .bar { height: 0.55rem; border-radius: 999px; background: color-mix(in srgb, var(--miss) 70%, var(--near)); }
.funnel .bar.pass { background: var(--hit); }

dialog {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0;
  width: min(24rem, calc(100% - 1.2rem)); border: 1px solid var(--line); border-radius: 16px;
  background: var(--bg-2); color: var(--ink); padding: 0.8rem;
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(4, 8, 16, 0.62); }
dialog menu { display: grid; gap: 0.35rem; margin: 0.4rem 0 0; padding: 0; }
.sheet-panel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  max-height: 86vh; overflow: auto;
  padding: 0.8rem 0.8rem calc(0.8rem + env(safe-area-inset-bottom));
  background: var(--bg-2); border-radius: 18px 18px 0 0; border: 1px solid var(--line);
  transform: translateY(110%); transition: transform 200ms ease;
}
.sheet-panel.open { transform: translateY(0); }
.filter-open { display: inline-flex; }

.auth {
  min-height: 100vh; display: grid; place-items: center; padding: 1.2rem;
}
.auth-card { width: min(26rem, 100%); padding: 1.4rem; }
.auth-card .btn { width: 100%; margin-top: 0.8rem; }
.auth-card h1 { margin-top: 0.4rem; }

.game { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) auto; gap: 0.45rem; align-items: center; padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.game > span:nth-child(2) { min-width: 0; }
.result { white-space: nowrap; }
.bars { position: relative; display: flex; align-items: flex-end; gap: 0.35rem; height: 7.2rem; margin: 0.6rem 0; }
.bars i { flex: 1; border-radius: 8px 8px 3px 3px; display: flex; align-items: flex-end; justify-content: center; color: #062216; font-size: 0.75rem; font-weight: 800; }
.bars i.hit { background: var(--hit); }
.bars i.miss { background: var(--miss); color: #2a0d08; }
.bars .line { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed var(--accent); }
.teams { display: grid; gap: 0.7rem; align-items: start; }
.layout { display: grid; gap: 0.7rem; min-width: 0; }
.layout .panel { background: transparent; border: 0; box-shadow: none; min-width: 0; padding: 0; }
.side-card { padding: 0.95rem 1rem; min-width: 0; }
.side-card h2 { margin-top: 0; }
.side-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.match-split { display: contents; }
.panel { display: none; }
.panel.on { display: block; }
.stat-sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem 0.7rem; margin-top: 0.4rem; }
.stat-sheet div { display: flex; justify-content: space-between; gap: 0.4rem; border-bottom: 1px solid var(--line); padding: 0.2rem 0; }
.table-wrap, .scroller { overflow-x: auto; max-width: 100%; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.45rem 0.3rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--faint); font-size: 0.78rem; }
.rank-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 0 0 0.75rem; }
.rank-pill { min-width: 0; padding: 0.55rem 0.7rem; border-radius: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.rank-pill b { color: var(--accent); font-size: 1.2rem; margin-right: 0.15rem; }
.rank-pill span { display: block; }
.standings th, .standings td { white-space: nowrap; vertical-align: middle; }
.standings .club { white-space: normal; width: 99%; }
.club-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem; font-weight: 700; }
.form { display: inline-flex; flex-wrap: wrap; gap: 0.12rem; margin: 0.15rem 0; }
.fm { font-style: normal; font-size: 0.72rem; font-weight: 800; }
.fm-w { color: var(--hit); }
.fm-d { color: var(--near); }
.fm-l { color: var(--miss); }
.standings .wide { display: none; }
.rec { display: none; color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
tr.own { background: color-mix(in srgb, var(--accent) 12%, transparent); }
tr.own .club-name { color: var(--accent); }
tr.gap-row td { color: var(--faint); letter-spacing: 0.22em; text-align: center; }
.full-table { margin-top: 0.55rem; }
.full-table > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; }
.absence-grid, .season-grid { display: grid; gap: 0.9rem; align-items: start; }
.absences { list-style: none; margin: 0; padding: 0; }
.absences li { display: flex; justify-content: space-between; gap: 0.75rem; align-items: baseline; padding: 0.42rem 0; border-bottom: 1px solid var(--line); }
.absences li span { color: var(--muted); text-align: right; }
.minute { display: flex; align-items: flex-end; gap: 0.35rem; height: 5.6rem; margin-top: 0.55rem; }
.minute span { flex: 1 1 0; min-width: 0; height: var(--h, 0%); background: var(--accent); border-radius: 5px 5px 2px 2px; }
.minute span.zero { height: 3px; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.minute-labels { display: flex; gap: 0.35rem; }
.minute-labels small { flex: 1 1 0; min-width: 0; text-align: center; color: var(--faint); font-size: 0.68rem; line-height: 1.15; }
.install { width: 100%; }
.install[hidden] { display: none; }
.skip {
  position: absolute; left: 0.5rem; top: 0.5rem; transform: translateY(-150%);
  background: var(--accent); color: var(--accent-ink); padding: 0.4rem 0.7rem; border-radius: 8px; z-index: 50;
}
.skip:focus { transform: none; }

@media (max-width: 759px) {
  .rec { display: block; }
  body.sheet-on::before {
    content: ""; position: fixed; inset: 0; z-index: 35; background: rgba(6, 10, 18, 0.55);
  }
  .filters.sheeted.open {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    max-height: 86vh; overflow: auto; margin: 0;
    padding: 0.9rem 0.8rem calc(0.9rem + env(safe-area-inset-bottom));
    background: var(--bg-2); border-radius: 18px 18px 0 0;
    border: 1px solid var(--line); box-shadow: var(--shadow);
  }
}
@media (max-width: 899px) {
  .topbar-actions { width: 100%; }
  .topbar-actions .btn.primary { flex: 1; }
  .filters.sheeted { display: none; }
  .filters.sheeted.open { display: grid; }
  .scroller table, .scroller thead, .scroller tbody, .scroller tr, .scroller td { display: block; width: 100%; }
  .scroller thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .scroller tr { margin: 0 0 0.7rem; padding: 0.7rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
  .scroller td { border: 0; display: flex; justify-content: space-between; gap: 0.6rem; }
  .scroller td::before { content: attr(data-label); color: var(--faint); font-size: 0.78rem; }
}

@media (min-width: 760px) {
  .kpis, .summary, .meters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pick-list, .cards { grid-template-columns: 1fr 1fr; }
  .teams, .absence-grid, .season-grid { grid-template-columns: 1fr 1fr; }
  .absence-grid { column-gap: 1.5rem; }
  .absence-grid > div + div { border-left: 1px solid var(--line); padding-left: 1.2rem; }
  .standings .wide { display: table-cell; }
  .filters.inline { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid.two { grid-template-columns: 1fr 1fr; }
  .filter-open { display: none; }
  .filters.sheeted { display: grid; }
}
@media (min-width: 900px) {
  .nav-close { display: none; }
  .shell.nav-open::before { content: none; }
  .shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
  .sidebar {
    position: sticky;
    transform: none;
    visibility: visible;
    width: auto;
    height: 100vh;
    z-index: auto;
  }
  .shell.thin { grid-template-columns: 84px minmax(0, 1fr); }
  .shell.thin .sidebar .brand img { width: 3.2rem; height: 3.2rem; }
  .shell.thin .sidebar span.label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .shell.thin .sport-links, .shell.thin .sport summary::after { display: none; }
  .main { width: min(1180px, calc(100% - 2rem)); padding-bottom: 2rem; }
  .panel { display: block; }
  .match-tabs { display: none; }
  .layout.desk { display: flex; flex-direction: column; gap: 0.7rem; }
  .settings-bar {
    top: calc(3.75rem + env(safe-area-inset-top));
    display: flex; grid-template-columns: none; box-shadow: none;
  }
  .settings-bar .btn.primary { grid-column: auto; }
  body:has(.settings-bar) .main { padding-bottom: 2rem; }
}
@media (min-width: 1100px) {
  .match-split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 0.7rem;
    align-items: start;
  }
}
@media (min-width: 1400px) {
  .pick-list { grid-template-columns: 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
