/* Vertex Sectors. Colours are tokens so light and dark share every rule. */
:root {
  --forest: #102d25;
  --lime: #b7df58;
  --on-lime: #102d25;
  --alloc: #e8590c;
  --done: #2f9e44;
  --part: #f08c00;
  --info: #1c7ed6;
  --danger: #c92a2a;

  --bg: #f0f4e9;
  --card: #ffffff;
  --raised: #f4f7ee;
  --field: #ffffff;
  --line: #d8e0cf;
  --ink: #17362b;
  --muted: #5d7066;
  --bar: #102d25;
  --on-bar: #ffffff;
  --tabs: #e3e9d9;
  --alloc-soft: #fff4ec;
  --done-soft: #e9f7ec;
  --part-soft: #fff4dd;
  --halo: #ffffff;
  --shadow: 0 6px 24px rgba(16, 45, 37, 0.14);
  --shadow-sm: 0 1px 3px rgba(16, 45, 37, 0.10);

  --radius: 14px;
  --topbar: 56px;
  --ui: 1;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b1814;
  --card: #12241d;
  --raised: #193026;
  --field: #0e1d17;
  --line: #27433a;
  --ink: #eaf2e4;
  --muted: #9bb3a6;
  --bar: #08120f;
  --on-bar: #eaf2e4;
  --tabs: #0e1d17;
  --alloc-soft: #33210f;
  --done-soft: #12301c;
  --part-soft: #33270c;
  --halo: #0b1814;
  --danger: #ff8787;
  --info: #74c0fc;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); }
body { overflow: hidden; -webkit-font-smoothing: antialiased; color: var(--ink); }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.error { color: var(--danger); margin: 0; font-size: 14px; }
svg.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* The text-size setting scales everything except the map itself */
.topbar, .panel, .tabs, .legend, .controls, .search, .toast, .hint { zoom: var(--ui); }

/* ---------- buttons ---------- */
.btn {
  border: 1px solid var(--line); background: var(--card); border-radius: 11px; display: inline-flex; align-items: center;
  justify-content: center; gap: 7px; padding: 10px 14px; font-weight: 600; cursor: pointer; min-height: 44px;
  transition: transform 0.08s, background 0.15s, border-color 0.15s;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.btn.dark { background: var(--forest); border-color: var(--forest); color: #fff; }
:root[data-theme="dark"] .btn.dark { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.btn.danger { color: var(--danger); }
.btn.small { min-height: 34px; padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.btn:disabled { opacity: 0.55; cursor: default; }
.icon-btn {
  border: 0; background: transparent; cursor: pointer; font-size: 22px; line-height: 1; display: inline-grid; place-items: center;
  min-width: 40px; min-height: 40px; border-radius: 11px;
}
.icon-btn.round { background: var(--card); box-shadow: var(--shadow); border-radius: 50%; width: 44px; height: 44px; color: var(--ink); }
.icon-btn.round.active { background: var(--forest); color: var(--lime); }
.chip {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px;
  font-size: 13px; font-weight: 600; cursor: pointer; min-height: 34px; white-space: nowrap; color: var(--muted);
}
.chip[aria-pressed="true"] { background: var(--forest); color: var(--lime); border-color: var(--forest); }

/* ---------- forms ---------- */
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
input, select, textarea {
  border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; background: var(--field); min-height: 44px;
  font-weight: 400; color: var(--ink);
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.8; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--lime); outline-offset: 1px; }
textarea { min-height: 110px; resize: vertical; }
input[type="range"] { padding: 0; min-height: 28px; accent-color: var(--lime); border: 0; background: transparent; }

/* ---------- login ---------- */
.login {
  min-height: 100dvh; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(1200px 600px at 20% -10%, #1d4a3c 0%, #102d25 55%, #0a1c17 100%);
}
.login-card {
  width: min(390px, 100%); background: var(--card); border-radius: 22px; padding: 30px 26px;
  display: grid; gap: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.login-card p { margin: 0; }
.brand-mark { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand-mark .dot { width: 14px; height: 14px; border-radius: 4px; background: var(--lime); transform: rotate(45deg); flex: none; }

/* ---------- app shell ---------- */
.app { height: 100dvh; display: flex; flex-direction: column; }
.topbar {
  min-height: calc(var(--topbar) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 8px 0 16px;
  background: var(--bar); color: var(--on-bar); display: flex; align-items: center; gap: 6px; position: relative; z-index: 1005;
}
.topbar .icon-btn { color: var(--on-bar); }
.topbar .icon-btn:hover { background: rgba(255, 255, 255, 0.1); }
.current-list {
  margin-left: auto; border: 0; border-radius: 11px; background: rgba(255, 255, 255, 0.09); color: #fff; font-weight: 600;
  font-size: 14px; padding: 8px 12px; cursor: pointer; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.current-list.on { color: var(--lime); }
.menu {
  position: absolute; right: 8px; top: calc(100% + 6px); background: var(--card); color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow); min-width: 250px; padding: 6px; display: grid; border: 1px solid var(--line);
}
.menu button {
  border: 0; background: none; text-align: left; padding: 11px 12px; border-radius: 9px; cursor: pointer; font-weight: 500;
  display: flex; align-items: center; gap: 12px;
}
.menu button svg.ic { color: var(--muted); }
.menu button:hover { background: var(--raised); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 6px; }
.menu-user { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.menu-user small { display: block; color: var(--muted); font-weight: 400; }
body:not(.is-admin) .admin-only { display: none !important; }

.map-wrap { position: relative; flex: 1; min-height: 0; }
#map { position: absolute; inset: 0; background: var(--bg); }
.floating { position: absolute; z-index: 1000; }
.top-left { top: 12px; left: 12px; }
.top-right { top: 12px; right: 12px; }
.bottom-left { bottom: 24px; left: 12px; }
.controls { display: flex; gap: 8px; align-items: center; }
.select-wrap select {
  box-shadow: var(--shadow); border-radius: 999px; font-size: 13px; font-weight: 600; min-height: 40px; max-width: 210px;
  background: var(--card); border-color: transparent;
}
.segmented { display: flex; background: var(--card); border-radius: 999px; box-shadow: var(--shadow); padding: 3px; }
.segmented button {
  border: 0; background: transparent; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap; min-height: 34px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px;
}
.segmented button[aria-pressed="true"] { background: var(--forest); color: var(--lime); }
.segmented.flat { box-shadow: none; background: var(--raised); width: 100%; }
.segmented.flat button { flex: 1; justify-content: center; }

.search { position: relative; width: min(300px, calc(100vw - 24px)); }
.search input { width: 100%; box-shadow: var(--shadow); border-radius: 999px; padding-left: 16px; background: var(--card); border-color: transparent; }
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; max-height: 50vh; overflow-y: auto; border: 1px solid var(--line);
}
.search-results button {
  display: flex; justify-content: space-between; gap: 8px; width: 100%; border: 0; background: none; padding: 12px 14px;
  cursor: pointer; text-align: left; border-bottom: 1px solid var(--line); font-weight: 600;
}
.search-results button:hover { background: var(--raised); }
.search-results small { color: var(--muted); font-weight: 400; }

.legend {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 12px; font-size: 12px;
  max-width: 230px; border: 1px solid var(--line);
}
.legend h4 { margin: 0 0 6px; font-size: 12px; }
.legend-row { display: flex; align-items: center; gap: 8px; margin: 3px 0; }
.swatch { width: 16px; height: 12px; border-radius: 3px; border: 1px solid rgba(0, 0, 0, 0.12); flex: none; }
.swatch.alloc { background: transparent; border: 2.5px solid var(--alloc); }
.swatch.preview { background: rgba(28, 126, 214, 0.18); border: 2px dashed #1c7ed6; }
.swatch.line { height: 4px; border: 0; border-radius: 2px; }

.toast {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1004; background: var(--forest);
  color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow); max-width: calc(100% - 32px);
  animation: rise 0.18s ease-out;
}
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } }
.hint {
  position: absolute; left: 50%; top: 68px; transform: translateX(-50%); z-index: 1000; background: var(--card); color: var(--ink);
  padding: 7px 14px; border-radius: 999px; font-size: 13px; box-shadow: var(--shadow); white-space: nowrap; pointer-events: none;
}
.loading {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 999; font-weight: 600;
  background: color-mix(in srgb, var(--bg) 75%, transparent);
}

.sector-label {
  font-size: 11px; font-weight: 700; color: var(--ink); white-space: nowrap; text-align: center; pointer-events: none;
  text-shadow: 0 0 3px var(--halo), 0 0 3px var(--halo), 0 0 3px var(--halo);
}
.sector-label.alloc { color: var(--alloc); font-size: 12px; }
.sector-label.area { font-size: 13px; }
.pc-marker { background: var(--alloc); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); }
.pc-dot { background: var(--forest); border: 1.5px solid #fff; border-radius: 50%; }
.me-dot { background: #1c7ed6; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 6px rgba(28, 126, 214, 0.25); }

/* map look (Settings) */
.map-soft .leaflet-tile-pane { filter: grayscale(0.8) brightness(1.04) contrast(0.95); }
.map-dark .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.92) contrast(0.88) saturate(0.6); }
.map-dark #map { background: #0b1814; }
.leaflet-container { font-family: inherit; }
.leaflet-control-attribution { font-size: 10px; }
.leaflet-tooltip { background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-radius: 9px; }
.leaflet-tooltip-top::before { border-top-color: var(--card); }
.leaflet-bar a { background: var(--card); color: var(--ink); border-bottom-color: var(--line); }
.leaflet-bar a:hover { background: var(--raised); color: var(--ink); }
:root[data-theme="dark"] .leaflet-control-attribution { background: rgba(11, 24, 20, 0.75); color: var(--muted); }
:root[data-theme="dark"] .leaflet-control-attribution a { color: var(--ink); }

/* ---------- saved lists: tabs along the bottom, like sheets in Excel ---------- */
.tabs {
  display: flex; gap: 2px; align-items: stretch; background: var(--tabs); border-top: 1px solid var(--line);
  padding: 0 8px calc(env(safe-area-inset-bottom)); overflow-x: auto; flex: none; scrollbar-width: thin; z-index: 1000;
}
.tab {
  border: 0; border-radius: 0 0 11px 11px; background: transparent; padding: 7px 14px 8px; cursor: pointer; white-space: nowrap;
  display: grid; align-content: center; text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); min-height: 46px;
  border-top: 3px solid transparent; flex: none; transition: background 0.15s;
}
.tab b { font-weight: 600; }
.tab small { font-weight: 400; font-size: 11px; }
.tab:hover { background: color-mix(in srgb, var(--card) 60%, transparent); }
.tab.active { background: var(--card); color: var(--ink); border-top-color: var(--alloc); box-shadow: var(--shadow-sm); }
.tab.add { color: var(--ink); }

/* ---------- panel ---------- */
.panel {
  position: fixed; z-index: 1001; background: var(--card); box-shadow: var(--shadow); border-left: 1px solid var(--line);
  right: 0; top: calc(var(--topbar) + env(safe-area-inset-top)); bottom: 47px; width: 420px; display: flex; flex-direction: column;
}
.panel-top { flex: none; height: 46px; position: relative; }
.panel-close { position: absolute; right: 10px; top: 6px; background: var(--raised); font-size: 24px; color: var(--ink); min-width: 36px; min-height: 36px; }
.panel-body { overflow-y: auto; padding: 0 18px calc(28px + env(safe-area-inset-bottom)); flex: 1; -webkit-overflow-scrolling: touch; }
.panel h2 { margin: 0 0 2px; font-size: 26px; letter-spacing: -0.02em; }
.panel h3 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin: 24px 0 10px;
  display: flex; align-items: center; gap: 8px;
}
.panel h3 .count { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; }
.panel .sub { color: var(--muted); font-size: 14px; margin: 0 0 12px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--raised); border-radius: 12px; padding: 10px; }
.stat b { display: block; font-size: 18px; letter-spacing: -0.01em; }
.stat span { font-size: 12px; color: var(--muted); }

.bars { display: grid; gap: 6px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 44px; gap: 8px; align-items: center; font-size: 13px; }
.bar-row .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 8px; background: var(--raised); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--ink); border-radius: 99px; }
.bar-row .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }

.alloc-box { border: 2px solid var(--alloc); border-radius: var(--radius); padding: 12px; margin: 8px 0 12px; background: var(--alloc-soft); }
.alloc-box.none { border: 1px dashed var(--line); background: none; color: var(--muted); }
.alloc-box p { margin: 4px 0; font-size: 14px; }
.tag { display: inline-block; background: var(--raised); border-radius: 999px; padding: 3px 9px; font-size: 12px; margin: 2px 4px 2px 0; color: var(--ink); }
.tag.me { background: var(--lime); color: var(--on-lime); font-weight: 600; }
button.tag.link { border: 0; cursor: pointer; font: inherit; font-size: 12px; }
button.tag.link:hover { background: var(--lime); color: var(--on-lime); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.stack { display: grid; gap: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.list { display: grid; gap: 8px; }
.item { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; background: var(--card); }
.item.click { cursor: pointer; transition: border-color 0.15s, transform 0.08s; }
.item.click:hover { border-color: var(--muted); }
.item.click:active { transform: scale(0.99); }
.item.current { border-color: var(--alloc); border-width: 2px; }
.item-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.item-head b { font-size: 15px; }
.item small { color: var(--muted); }
.item p { margin: 6px 0 0; }
.item a[data-act] { color: var(--ink); text-decoration: none; }
.item a[data-act]:hover { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; }
.pc-list { display: flex; flex-wrap: wrap; gap: 4px; }
.pc-list button { border: 1px solid var(--line); background: var(--field); border-radius: 7px; font-size: 12px; padding: 4px 6px; cursor: pointer; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; max-height: 180px; overflow-y: auto; font-weight: 400; }
.checks label { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.checks input { min-height: auto; }
.notice { background: var(--raised); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.small-print { font-size: 12px; color: var(--muted); line-height: 1.5; }
textarea.paste { min-height: 150px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; white-space: pre; }
.check-result { margin-top: -4px; }
.check-result b { color: var(--ink); }
.boxed { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin: 0 0 12px; background: var(--raised); }

/* ---------- roads: cross off what's done ---------- */
.progress { height: 10px; background: var(--raised); border-radius: 99px; overflow: hidden; display: flex; }
.progress i { display: block; height: 100%; }
.progress .p-done { background: var(--done); }
.progress .p-part { background: var(--part); }
.progress .p-worked { background: var(--info); opacity: 0.75; }
.roads-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); margin: 6px 0 10px; flex-wrap: wrap; }
.roads-meta b { color: var(--ink); }
.roads-tools { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.roads-tools input { flex: 1; min-height: 36px; padding: 6px 12px; border-radius: 999px; font-size: 13px; min-width: 0; }
.road {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 8px 7px 6px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
}
.road.done { background: var(--done-soft); border-color: color-mix(in srgb, var(--done) 45%, var(--line)); }
.road.part { background: var(--part-soft); border-color: color-mix(in srgb, var(--part) 45%, var(--line)); }
.road.worked { border-color: color-mix(in srgb, var(--info) 55%, var(--line)); border-style: dashed; }
.road-check {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); background: var(--field); cursor: pointer;
  display: grid; place-items: center; color: transparent; transition: transform 0.08s;
}
.road-check:active { transform: scale(0.9); }
.road.done .road-check { background: var(--done); border-color: var(--done); color: #fff; }
.road.part .road-check { background: var(--part); border-color: var(--part); color: #fff; }
.road-main { min-width: 0; cursor: pointer; }
.road-main b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.road.done .road-main b { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--done) 70%, transparent); }
.road-main small { display: block; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.road-main small.oiq { color: var(--info); }
.road-part { border: 1px solid var(--line); background: var(--field); border-radius: 999px; font-size: 11.5px; font-weight: 600; padding: 5px 9px; cursor: pointer; color: var(--muted); }
.road.part .road-part { background: var(--part); border-color: var(--part); color: #fff; }
.road-x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 18px; padding: 4px 6px; }

/* ---------- team history ---------- */
.kpis { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.kpi { background: var(--raised); border-radius: 9px; padding: 5px 9px; font-size: 12px; color: var(--muted); }
.kpi b { color: var(--ink); font-size: 14px; margin-right: 3px; }
.team-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.source { font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--info); background: color-mix(in srgb, var(--info) 14%, transparent); border-radius: 6px; padding: 2px 6px; }

/* ---------- settings ---------- */
.setting { display: grid; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.setting:last-of-type { border-bottom: 0; }
.setting-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.setting-head b { font-size: 15px; }
.setting p { margin: 0; font-size: 13px; color: var(--muted); }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; min-height: 0; width: 100%; height: 100%; z-index: 1; }
.switch i { position: absolute; inset: 0; background: var(--line); border-radius: 99px; transition: background 0.15s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform 0.15s; }
.switch input:checked + i { background: var(--done); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 2px solid var(--lime); outline-offset: 2px; }

@media (min-width: 721px) {
  body.panel-open .top-right { right: 432px; }
  body.panel-open .leaflet-bottom.leaflet-right { right: 420px; }
  body.panel-open .hint { left: calc(50% - 210px); }
}

/* ---------- phones ---------- */
@media (max-width: 720px) {
  .brand-text { display: none; }
  .topbar { padding-left: 12px; }
  .current-list { max-width: 60vw; }
  .top-left { right: 12px; }
  .search { width: 100%; }
  .top-right { top: 64px; left: 12px; right: 12px; justify-content: flex-start; }
  .select-wrap select { max-width: 150px; }
  .segmented button { padding: 7px 10px; }
  #locate { margin-left: auto; }
  .hint { top: 118px; font-size: 12px; }
  .legend { bottom: calc(16px + env(safe-area-inset-bottom)); font-size: 11px; padding: 8px 10px; }
  .panel {
    left: 0; right: 0; width: auto; top: auto; bottom: 0; height: 62dvh; border-radius: 20px 20px 0 0; transition: height 0.2s;
    z-index: 1002; border-left: 0;
  }
  .panel.expanded { height: calc(100dvh - var(--topbar) - env(safe-area-inset-top) - 8px); }
  .panel-top { cursor: pointer; }
  .panel-top::after {
    content: ""; position: absolute; left: 50%; top: 9px; width: 44px; height: 5px; border-radius: 9px;
    background: var(--line); transform: translateX(-50%);
  }
  .panel h2 { font-size: 22px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .team-sum { grid-template-columns: repeat(2, 1fr); }
  .checks { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
