:root {
  color-scheme: light;
  --bg:#f6f6fa; --paper:#fff; --ink:#1c1931; --muted:#67657a;
  --border:#e9e8f0; --purple:#613dd6; --purple-dark:#4e2eb7; --lavender:#eee8ff;
  --green:#087a56; --rose:#bd2751; --shadow:0 1px 2px #1f173608,0 3px 8px #1f173604;
  --side:224px;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  font-synthesis: none;
}
*,*::before,*::after {box-sizing:border-box}
body {margin:0;background:var(--bg);color:var(--ink);min-height:100vh}
button,input,select,textarea {font:inherit}
button,a { -webkit-tap-highlight-color:transparent }
button {cursor:pointer}
a {color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible {outline:3px solid #a58cff;outline-offset:3px}
[hidden] {display:none!important}
img {display:block;max-width:100%}
h1,h2,h3,p {margin:0}
.sr-only,.skip:not(:focus) {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip:focus {position:fixed;z-index:12;top:10px;left:10px;padding:10px 15px;background:var(--paper);border-radius:8px}
.muted {color:var(--muted)}

.sidebar {position:fixed;inset:0 auto 0 0;width:var(--side);display:flex;flex-direction:column;background:var(--paper);border-right:1px solid var(--border);z-index:4}
.brand {display:flex;align-items:center;gap:11px;min-height:79px;padding:0 17px;border-bottom:1px solid var(--border)}
.brand img,.mobile-brand img {object-fit:contain;background:#fbf9ef;border-radius:11px;flex:none}
.brand strong,.brand small {display:block}
.brand strong {font-size:15px;letter-spacing:-.035em;font-weight:800;line-height:1.3}
.brand small {margin-top:3px;font-size:10.5px;color:var(--muted);white-space:nowrap}
.sidebar-body {padding:27px 13px 17px;display:flex;flex-direction:column;flex:1}
.nav-label {font-size:10px;letter-spacing:.15em;font-weight:750;color:#767287;margin:0 12px 13px}
.sidebar nav {display:grid;gap:5px}
.side-link {display:flex;align-items:center;gap:12px;padding:12px 11px;min-height:44px;border-radius:9px;font-weight:600;color:#5c596e;transition:background .18s,color .18s}
.side-link:hover,.side-link.active {background:var(--lavender);color:var(--purple-dark)}
.side-link.active {font-weight:750}
.sidebar-bottom {margin-top:auto;padding-top:18px}
.ops-link {display:flex;align-items:center;gap:9px;border:1px solid var(--border);background:#faf9fe;border-radius:11px;padding:11px 9px;color:var(--purple-dark)}
.ops-link:hover,.ops-link.active {background:var(--lavender)}
.ops-link>span {flex:1}
.ops-link strong,.ops-link small {display:block}
.ops-link strong {font-size:11.5px;color:var(--ink);white-space:nowrap}
.ops-link small {font-size:10px;color:var(--muted);margin-top:3px}
.ops-link svg:last-child {color:#777085}
.mobile-brand,.mobile-nav {display:none}
.workspace {margin-left:var(--side);min-height:100vh;display:flex;flex-direction:column}
.topbar {height:79px;display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fff;border-bottom:1px solid var(--border);padding:0 34px}
.breadcrumb,.top-actions {display:flex;align-items:center;gap:12px}
.breadcrumb {font-size:13px;color:var(--muted)}
.breadcrumb strong {color:var(--ink);font-weight:700}
.breadcrumb svg {color:#837d97}
.edition {font-size:11px;font-weight:650;color:#5f5b71;padding:7px 10px;background:#f6f5fa;border:1px solid var(--border);border-radius:7px}
.public-mode {display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:650;color:#4d4a61}
.live-dot {width:7px;height:7px;border-radius:50%;background:currentColor;display:inline-block;flex:none}
.public-mode .live-dot {color:#0f9a65;box-shadow:0 0 0 3px #ddf6eb}
.shell {width:100%;max-width:1450px;margin:0 auto;padding:26px 34px 25px;flex:1;outline:none}
.footer {display:flex;justify-content:space-between;gap:15px;border-top:1px solid var(--border);color:var(--muted);font-size:11px;padding:19px 34px;background:#fff}

.hero {min-height:282px;position:relative;overflow:hidden;isolation:isolate;border-radius:18px;background:#211849 url('assets/quadra.webp') center 52%/cover no-repeat;color:#fff}
.hero-glow,.hero-mesh {position:absolute;inset:0;z-index:-1}
.hero-glow {background:linear-gradient(90deg,#24164c 0%,#26194bec 32%,#2d19595c 61%,#1b123a0d 100%),linear-gradient(0deg,#1812317a,transparent 40%)}
.hero-mesh {background:radial-gradient(ellipse at 17% 105%,#6c45d061,transparent 41%)}
.hero-inner {padding:32px 36px;position:relative;z-index:1}
.hero-tag {display:inline-flex;align-items:center;gap:7px;color:#f6edff;background:#a58cfb26;border:1px solid #b4a1fa50;padding:6px 10px;border-radius:6px;font-size:10px;letter-spacing:.105em;font-weight:750}
.hero-tag svg {color:#e0cbff}
.hero h1 {max-width:570px;margin:11px 0 9px;font-size:clamp(48px,5.2vw,83px);line-height:.88;letter-spacing:-.075em;font-weight:850;text-shadow:0 3px 16px #10092447}
.hero h1 em {font-style:normal;color:#d9c9ff;display:block}
.hero p {color:#f1eafb;max-width:440px;font-size:13px;line-height:1.55;margin-top:16px}
.hero-meta {display:flex;gap:21px;align-items:center;margin-top:17px;color:#ece4fc;font-size:11px;font-weight:600}
.hero-meta span {display:inline-flex;align-items:center;gap:6px}
.hero-meta svg {color:#d5c1ff}

.filter-line,.page-filters {display:flex;justify-content:space-between;align-items:center;gap:14px;margin:20px 0 21px}
.sport-filters,.ops-tabs {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.sport-filter {border:1px solid var(--border);background:#fff;color:#514d64;min-height:40px;border-radius:8px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:12px;font-weight:675;white-space:nowrap;transition:background .18s,border-color .18s,color .18s}
.sport-filter:hover {border-color:#cbbafa;color:var(--purple-dark)}
.sport-filter.active {background:var(--purple);border-color:var(--purple);color:#fff;box-shadow:0 2px 4px #5634bd28}
.sync-note {display:inline-flex;align-items:center;gap:7px;color:#615c75;font-size:11px;white-space:nowrap}
.sync-note svg {color:var(--purple)}
.dashboard-section {margin-bottom:19px}
.section-head {display:flex;justify-content:space-between;align-items:center;gap:12px}
.dashboard-section>.section-head {margin-bottom:11px}
.section-main {display:flex;align-items:center;gap:10px;min-width:0}
.section-head h2,.op-list h2,.op-details h2,.op-form-panel h2 {font-size:19px;line-height:1.35;font-weight:790;letter-spacing:-.038em}
.dashboard-section h2 {font-size:22px}
.section-count {display:inline-flex;align-items:center;gap:6px;white-space:nowrap;border:1px solid #ffe1e9;border-radius:20px;background:#ffedf2;color:#a92348;font-size:10px;font-weight:750;padding:4px 8px}
.section-count .live-dot,.status-badge .live-dot {width:6px;height:6px}
.text-button {display:inline-flex;align-items:center;justify-content:center;gap:7px;color:var(--purple-dark);font-size:12px;font-weight:750;white-space:nowrap;border-radius:4px}
.text-button:hover {color:#351986;text-decoration:underline;text-underline-offset:3px}
.live-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.live-card,.panel {background:var(--paper);border:1px solid var(--border);border-radius:13px;box-shadow:var(--shadow)}
.live-card {min-width:0}
.card-top,.card-bottom {display:flex;align-items:center;justify-content:space-between;gap:9px;padding:12px 15px}
.card-top {border-bottom:1px solid #f0eef5}
.card-bottom {border-top:1px solid #f0eef5}
.sport-inline {display:flex;align-items:center;gap:7px;font-size:11px;min-width:0}
.sport-inline strong {font-size:12px;font-weight:760}
.card-phase {color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sport-badge {border-radius:8px;min-width:29px;min-height:29px;padding:0 7px;display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;font-size:11px;font-weight:750}
.sport-badge.mint {color:#08765d;background:#e1f6ee}
.sport-badge.lilac {color:#6241c7;background:#eee8ff}
.sport-badge.peach {color:#ae5325;background:#ffede0}
.status-badge {font-size:10px;font-weight:740;display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:20px;white-space:nowrap}
.status-badge.live {background:#ffecf2;color:#a92348}
.status-badge.scheduled {background:#eee9ff;color:#5735b5}
.status-badge.final {background:#eef1f5;color:#535e72}
.matchup {display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,.85fr) minmax(0,1fr);align-items:center;justify-content:center;gap:9px;padding:15px 10px 14px}
.card-team {display:flex;flex-direction:column;align-items:center;gap:7px;min-width:0;text-align:center;color:var(--ink);font-size:12px;font-weight:730;line-height:1.3}
.card-team strong {overflow-wrap:anywhere}
.crest {display:inline-flex;width:44px;height:45px;align-items:center;justify-content:center;flex:none;position:relative;isolation:isolate;color:#fff}
.crest::before {content:"";position:absolute;inset:0;z-index:-1;clip-path:polygon(50% 0%,96% 16%,93% 67%,73% 88%,50% 100%,27% 88%,7% 67%,4% 16%);background:linear-gradient(142deg,var(--color1),var(--color2))}
.crest::after {content:"";position:absolute;inset:4px 5px 7px;z-index:-1;clip-path:polygon(50% 0%,96% 16%,93% 67%,73% 88%,50% 100%,27% 88%,7% 67%,4% 16%);background:linear-gradient(130deg,#fff3,#fff1 48%,transparent 49%)}
.crest.violet {--color1:#8b65f4;--color2:#4d2cba}
.crest.blue {--color1:#35a3f5;--color2:#1854b8}
.crest.green {--color1:#21ae85;--color2:#077258}
.crest.plum {--color1:#b862d5;--color2:#7833ab}
.crest.coral {--color1:#fc8959;--color2:#c13d37}
.crest.mini {width:24px;height:25px;font-size:8px}
.crest.mini::after {inset:2px 3px 4px}
.crest.mini svg {width:12px;height:12px}
.match-center {text-align:center;display:grid;gap:6px;justify-items:center;min-width:0}
.score {display:flex;align-items:center;justify-content:center;gap:10px;font-size:39px;font-weight:850;letter-spacing:-.06em;line-height:1;font-variant-numeric:tabular-nums}
.score span {min-width:27px}
.score i {width:9px;height:2px;background:#b7acc8;border-radius:5px}
.period {white-space:nowrap;font-size:10px;color:#6545b9;background:#f1ecff;border-radius:5px;padding:4px 6px;font-weight:690;font-variant-numeric:tabular-nums}
.period b {font-weight:500}
.card-bottom>span {display:inline-flex;align-items:center;gap:5px;color:#6b657d;font-size:11px;font-weight:600}
.card-bottom>span svg {color:#7966a5}
.bottom-grid {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:15px}
.lower-panel {padding:13px 15px 11px;min-width:0}
.lower-panel>.section-head {margin-bottom:9px}
.section-icon {width:31px;height:31px;display:inline-grid;place-items:center;color:var(--purple);background:#f0ebff;border-radius:8px;flex:none}
.square-link,.icon-button {width:31px;height:31px;display:inline-grid;place-items:center;color:#665a86;background:#fff;border:1px solid var(--border);border-radius:7px;flex:none}
.square-link:hover,.icon-button:hover {background:var(--lavender);color:var(--purple-dark)}
.upcoming-game {min-height:49px;display:grid;grid-template-columns:30px minmax(0,1fr) auto 13px;gap:9px;align-items:center;border-top:1px solid #f0eef5}
.upcoming-game:hover {color:var(--purple-dark)}
.upcoming-match {display:grid;gap:3px;min-width:0}
.upcoming-match strong {font-size:11px;line-height:1.3;overflow-wrap:anywhere}
.upcoming-match i {font-weight:550;font-style:normal;color:#79708d}
.upcoming-match small {font-size:10px;color:var(--muted)}
.upcoming-game time {font-size:11px;font-weight:750;font-variant-numeric:tabular-nums}
.upcoming-game>svg {color:#7e748e}
.mini-select {position:relative;display:flex;align-items:center;color:#5c486f}
.mini-select select {font-size:10px;appearance:none;background:#f8f6fe;border:1px solid var(--border);border-radius:7px;padding:6px 24px 6px 8px;color:inherit;font-weight:650;max-width:143px}
.mini-select svg {position:absolute;right:6px;pointer-events:none}
.table-wrap {overflow-x:auto}
.rank-table {border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums;font-size:13px}
.rank-table abbr {text-decoration:none}
.rank-table thead {color:#665e77;background:#f7f6fb;font-size:11px}
.rank-table th,.rank-table td {padding:11px 9px;text-align:center;white-space:nowrap}
.rank-table tbody tr {border-bottom:1px solid #f0eef5}
.rank-table th:nth-child(2),.rank-table th[scope="row"] {text-align:left;white-space:normal}
.rank-table th[scope="row"] {width:100%;font-weight:700}
.rank-table.compact {font-size:11px}
.rank-table.compact th,.rank-table.compact td {padding:4px 6px}
.rank-table.compact thead {font-size:9px}
.table-team {display:flex;align-items:center;gap:6px;min-width:105px}
.rank-pos {display:inline-grid;place-items:center;width:19px;height:19px;border-radius:5px;font-weight:700;color:#675e79}
.rank-pos.first {background:#eee8ff;color:#5936bc}
.points {font-weight:850;color:#4d2cba}
.table-more {margin-top:11px}
.empty {min-height:138px;padding:24px 12px;text-align:center;display:grid;place-content:center;justify-items:center;gap:6px}
.empty>span {color:var(--purple);background:var(--lavender);padding:6px;border-radius:8px;display:grid;place-items:center}
.empty strong {font-size:14px}
.empty p {font-size:12px;color:var(--muted)}

.page-title {display:flex;justify-content:space-between;align-items:center;gap:14px;margin:4px 0 23px}
.page-title h1 {font-size:clamp(34px,3.8vw,49px);line-height:1.1;letter-spacing:-.06em;font-weight:840}
.page-title p {color:var(--muted);font-size:14px;margin-top:8px;line-height:1.5}
.page-filters {margin-bottom:16px}
.labeled-select {display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;font-weight:650}
.labeled-select select,.op-form input,.op-form select,.event-form input,.event-form select,.op-form textarea,.sheet-form input,.sheet-form textarea,.login-panel input,.clock-form input {
  width:100%;min-height:39px;min-width:0;border:1px solid #e1deea;border-radius:7px;background:#fff;padding:7px 10px;color:var(--ink)
}
.labeled-select select {width:auto}
.button {display:inline-flex;justify-content:center;align-items:center;gap:7px;padding:8px 11px;min-height:38px;border-radius:8px;white-space:nowrap;font-size:12px;font-weight:750;border:1px solid transparent}
.button:hover:not(:disabled) {filter:brightness(.95)}
.button:disabled {opacity:.45;cursor:default}
.button.primary {background:var(--purple);color:#fff}
.button.outline {background:#fff;border-color:#e2dded;color:#5d41ae}
.button.subtle {background:#f7f5fc;color:#594b72}
.button.danger {background:#fff1f3;color:#9e2243;border-color:#f8d8e0}
.agenda-panel {padding:0 13px;margin-bottom:13px}
.agenda-panel h2 {padding:15px 5px;text-transform:capitalize;display:flex;align-items:center;gap:8px;font-size:15px;letter-spacing:-.015em}
.agenda-panel h2 svg {color:var(--purple)}
.game-row {display:grid;grid-template-columns:minmax(110px,.58fr) minmax(0,1.72fr) minmax(102px,.52fr);align-items:center;gap:12px;border-top:1px solid #efedf4;padding:10px 4px;min-height:55px}
.game-row:hover {background:#faf8ff;border-radius:6px}
.game-meta,.game-state {display:flex;align-items:center;gap:8px}
.game-meta>span:last-child {display:grid;gap:3px}
.game-meta strong,.game-pair {font-size:12px}
.game-meta small {font-size:10px;color:var(--muted)}
.game-pair {display:grid;grid-template-columns:1fr auto 1fr;gap:9px;align-items:center;font-weight:650}
.game-pair>span {display:flex;align-items:center;gap:5px;overflow-wrap:anywhere}
.game-pair>span:first-child {justify-content:flex-end;text-align:right;flex-direction:row-reverse}
.game-pair>strong {background:#f2edf9;border-radius:4px;min-width:28px;padding:4px;text-align:center;font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums}
.game-state {justify-content:flex-end;color:#766b8b}
.full-table .section-head {padding:14px 16px}
.full-table .table-wrap {padding:0 12px}
.projection {display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:12px;font-weight:620}
.projection input {accent-color:var(--purple)}
.table-note {color:var(--muted);padding:14px 16px;font-size:11px;line-height:1.5}
.team-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.team-card {display:flex;align-items:center;gap:12px;padding:16px}
.team-card h2 {font-size:15px;letter-spacing:-.025em;overflow-wrap:anywhere}
.team-card p {color:var(--muted);margin-top:5px;font-size:11px}

dialog {border:1px solid #e6e1f0;border-radius:15px;color:var(--ink);width:min(590px,calc(100% - 28px));max-height:calc(100dvh - 30px);padding:0;box-shadow:0 26px 80px #1711273d;overscroll-behavior:contain}
dialog::backdrop {background:#18112b91;backdrop-filter:blur(3px)}
.dialog-head,.dialog-foot {display:flex;justify-content:space-between;align-items:center;gap:10px;padding:15px 18px}
.dialog-head {border-bottom:1px solid var(--border);position:sticky;top:0;z-index:2;background:#fff}
.dialog-head h2 {font-size:23px;letter-spacing:-.05em}
.dialog-head p {font-size:11px;color:var(--muted);margin-bottom:3px}
.sheet-summary {padding:15px;text-align:center;background:#f9f7fe;border-bottom:1px solid var(--border)}
.sheet-summary .matchup {max-width:470px;margin:auto}
.sheet-meta {display:flex;justify-content:center;gap:13px;color:var(--muted);font-size:11px}
.sheet-meta span,.op-venue {display:inline-flex;align-items:center;gap:5px}
.sheet-meta svg,.op-venue svg {color:#6c52ad}
.sheet-official,.sheet-events {padding:13px 18px;color:var(--muted);font-size:12px;line-height:1.5;border-bottom:1px solid var(--border)}
.sheet-events h3,.sheet-official strong {color:var(--ink)}
.sheet-events h3 {font-size:15px}
.notes-text {white-space:pre-wrap;overflow-wrap:anywhere}
.dialog-foot {justify-content:flex-end;flex-wrap:wrap}
.timeline {list-style:none;margin:8px 0 0;padding:0}
.timeline li {display:grid;grid-template-columns:9px minmax(0,1fr) auto;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid #f0edf6;font-size:12px;overflow-wrap:anywhere}
.timeline li:last-child {border-bottom:0}
.timeline strong {color:var(--ink)}
.timeline small {display:block;font-size:10px;margin-top:3px;color:var(--muted)}
.timeline-mark {width:7px;height:7px;border-radius:50%;background:var(--purple)}
.timeline li>span:last-child {font-weight:720;color:#69548e;white-space:nowrap}
.empty-inline {padding:9px 0;font-size:12px}
.sets-table {display:flex;align-items:center;justify-content:center;gap:10px;padding:8px 0;font-size:11px;color:var(--muted);flex-wrap:wrap}
.sets-table>div {display:flex;gap:6px;flex-wrap:wrap}
.sets-table>div>span {display:grid;padding:4px 9px;border:1px solid #ebe5f7;background:#fff;border-radius:6px;text-align:center}
.sets-table small {font-size:9px}
.sets-table strong {color:#5936b4}
.toast {position:fixed;z-index:8;right:18px;bottom:18px;max-width:min(440px,calc(100vw - 36px));background:#231844;color:#fff;border:1px solid #473766;border-radius:9px;padding:11px 14px;box-shadow:0 9px 30px #251b4933;display:flex;align-items:center;gap:8px;font-size:12px;font-weight:650}
.toast svg {flex:none;color:#b8f1d1}
.toast.error {background:#701d32;border-color:#9f3350}
.toast.error svg {color:#fff}
.login-panel {max-width:430px;padding:25px;margin:0 auto;text-align:center}
.login-icon {display:inline-grid;place-items:center;background:var(--lavender);color:var(--purple-dark);border-radius:12px;width:49px;height:49px;margin-bottom:10px}
.login-panel h2 {font-size:22px;letter-spacing:-.045em}
.login-panel p {color:var(--muted);font-size:13px;line-height:1.5;margin-top:6px}
.login-panel form {display:grid;gap:11px;margin-top:15px;text-align:left}
.login-panel label,.event-form label,.sheet-form label,.op-form label {display:grid;gap:5px;color:#4b445c;font-size:11px;font-weight:710}
.demo-button {width:100%;margin-top:8px}
.login-panel .form-error {color:#a72246}
.ops-tabs {margin-bottom:14px}
.ops-grid {display:grid;grid-template-columns:minmax(186px,.55fr) minmax(0,1.45fr);align-items:start;gap:14px}
.op-list {padding:11px;max-height:690px;overflow:auto}
.op-list h2 {display:flex;justify-content:space-between;align-items:center;padding:2px 4px 8px}
.op-list h2 span {font-size:11px;color:var(--purple);border-radius:5px;background:var(--lavender);padding:2px 6px}
.op-list>div {display:grid;gap:5px}
.op-match {display:flex;align-items:center;justify-content:space-between;gap:3px;background:#fff;border:1px solid var(--border);border-radius:7px;padding:5px;color:var(--ink);text-align:left;min-height:44px}
.op-match:hover,.op-match.active {background:#f6f2ff;border-color:#cdbdfa}
.op-match>span:first-child {display:flex;gap:5px;align-items:center}
.op-match>span:first-child>span:last-child {display:grid;gap:2px}
.op-match strong {font-size:11px}
.op-match small {font-size:9px;color:var(--muted);white-space:nowrap}
.op-board,.op-details,.op-form-panel {padding:14px}
.op-content {display:grid;gap:12px;min-width:0}
.op-venue {font-size:11px;color:var(--muted);margin-top:8px}
.op-score {display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px;text-align:center;align-items:center;margin-top:9px;background:#f9f7fe;border:1px solid #eeeaf7;border-radius:10px;padding:13px 7px}
.op-team {display:grid;justify-items:center;gap:4px;min-width:0}
.op-team>strong {font-size:12px;overflow-wrap:anywhere}
.op-team>b {font-size:36px;line-height:1.13;letter-spacing:-.055em;font-variant-numeric:tabular-nums}
.op-mid {display:grid;gap:3px;color:#5d4792;font-weight:750;font-size:11px;font-variant-numeric:tabular-nums}
.op-mid strong {font-size:20px}
.op-mid small {font-size:9px}
.score-buttons,.op-controls,.clock-form {display:flex;justify-content:center;flex-wrap:wrap;gap:4px}
.score-buttons .button {min-height:34px;padding:4px 7px}
.op-controls {margin-top:11px;gap:6px;justify-content:flex-start}
.clock-form {flex-wrap:nowrap}
.clock-form input {max-width:64px;min-height:38px;font-size:11px;padding:5px}
.op-details h2,.op-form-panel h2 {margin-bottom:10px}
.event-form,.op-form {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:9px}
.event-form {grid-template-columns:repeat(3,minmax(0,1fr)) auto}
.event-note {grid-column:1/-1}
.sheet-form {margin-top:11px;border-top:1px solid var(--border);padding-top:11px;display:grid;gap:8px}
.sheet-form button {justify-self:start}
.op-form-panel {max-width:680px}
.op-form .span-form,.op-form .form-actions {grid-column:1/-1}
.op-form label small {color:var(--muted);font-weight:500}
textarea {resize:vertical}

@media (min-width:1200px) {
  .hero-inner {padding:33px 43px}
  .hero {min-height:305px}
  .live-card .matchup {padding:18px 10px}
  .live-card .card-top,.live-card .card-bottom {padding-inline:18px}
  .lower-panel {padding-inline:17px}
}
@media (max-width:1050px) {
  :root {--side:196px}
  .topbar,.shell,.footer {padding-inline:22px}
  .brand {padding-inline:12px;gap:8px}
  .brand img {width:44px;height:44px}
  .live-grid,.bottom-grid {gap:11px}
  .card-phase {display:none}
  .game-pair {gap:5px}
  .game-pair .crest {display:none}
  .event-form {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:785px) {
  .sidebar,.breadcrumb,.edition {display:none}
  .mobile-brand {display:flex;align-items:center;gap:8px;font-size:15px;letter-spacing:-.035em}
  .workspace {margin:0;padding-bottom:70px}
  .topbar {height:60px}
  .mobile-nav {display:grid;grid-template-columns:repeat(5,1fr);position:fixed;inset:auto 0 0;z-index:5;background:#fff;border-top:1px solid var(--border);padding:3px 9px max(5px,env(safe-area-inset-bottom))}
  .mobile-nav a {display:grid;place-content:center;justify-items:center;gap:3px;min-height:49px;font-size:10px;color:#625b75;font-weight:650;border-radius:7px}
  .mobile-nav a.active {color:#5732c6;background:#f0ebff}
  .shell {padding-top:16px}
  .hero-inner {padding:27px}
  .toast {bottom:74px}
}
@media (max-width:585px) {
  .topbar,.shell,.footer {padding-inline:13px}
  .footer {padding-block:13px}
  .hero {min-height:251px;border-radius:14px;background-position:61% center}
  .hero-glow {background:linear-gradient(90deg,#24164c 0%,#26194bce 42%,#24164b6e 73%,#26184a2e),linear-gradient(0deg,#241639a5,transparent 47%)}
  .hero-inner {padding:19px 15px 18px}
  .hero h1 {font-size:clamp(48px,11.5vw,65px);margin-top:10px}
  .hero p {max-width:240px;font-size:12px;margin-top:12px}
  .hero-meta {gap:9px;margin-top:14px;flex-wrap:wrap;font-size:10px}
  .hero-meta svg {width:14px;height:14px}
  .filter-line {display:grid;gap:8px;margin:12px 0 15px}
  .sport-filters {gap:4px;flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px}
  .sport-filter {font-size:11px;gap:4px;padding:0 7px;min-height:39px}
  .sport-filter svg {width:15px;height:15px}
  .filter-line .sport-filters {justify-content:space-between}
  .filter-line .sport-filter {flex:1}
  .sync-note {font-size:10px}
  .sync-note svg {width:14px;height:14px}
  .dashboard-section {margin-bottom:13px}
  .dashboard-section>.section-head {margin-bottom:8px}
  .dashboard-section h2 {font-size:18px}
  .section-main {gap:6px}
  .section-count {padding:3px 6px;font-size:9px}
  .text-button {font-size:11px;gap:4px}
  .live-grid,.bottom-grid {grid-template-columns:1fr;gap:10px}
  .live-card .card-phase {display:block}
  .live-card .matchup {padding-block:13px}
  .card-top,.card-bottom {padding:9px 11px}
  .page-title {margin:3px 0 15px}
  .page-title p {font-size:12px}
  .page-filters {flex-wrap:wrap;gap:8px;margin-top:14px}
  .labeled-select select {min-height:34px}
  .team-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .team-card {padding:10px;gap:7px}
  .team-card .crest {width:34px;height:35px}
  .team-card .crest svg {width:18px;height:18px}
  .team-card h2 {font-size:12px}
  .team-card p {font-size:10px}
  .game-row {grid-template-columns:1fr auto;gap:6px}
  .game-meta {grid-column:1;grid-row:1}
  .game-state {grid-column:2;grid-row:1}
  .game-pair {grid-column:1/-1;grid-row:2}
  .game-pair .crest {display:inline-flex}
  .game-pair>span:first-child {flex-direction:row}
  .full-table .section-head {align-items:flex-start;flex-direction:column;padding:10px}
  .full-table .table-wrap {padding:0 5px}
  .rank-table:not(.compact) th,.rank-table:not(.compact) td {padding:8px 5px;font-size:11px}
  .table-note {padding:10px}
  .ops-grid {grid-template-columns:1fr;gap:9px}
  .op-list {padding:8px}
  .op-list h2,.op-details h2,.op-form-panel h2 {font-size:17px}
  .op-list>div {display:flex;overflow-x:auto;gap:5px;padding-bottom:4px}
  .op-match {flex:0 0 auto;gap:6px}
  .op-board,.op-details,.op-form-panel {padding:10px}
  .ops-tabs {gap:5px}
  .page-title>.button {padding-inline:7px;font-size:10px}
  .op-score {grid-template-columns:repeat(2,minmax(0,1fr))}
  .op-mid {grid-column:1/-1;grid-row:1;display:flex;justify-content:center;align-items:baseline;gap:7px}
  .score-buttons .button {padding-inline:5px;min-height:34px}
  .sheet-meta {gap:8px}
  input,select,textarea {font-size:16px}
  .clock-form input {font-size:13px}
}
@media (max-width:350px) {
  .sport-filter {padding-inline:5px;font-size:10px}
  .public-mode {font-size:10px}
  .mobile-brand {font-size:13px}
  .ops-tabs .sport-filter {padding-inline:6px}
  .team-grid {grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after {transition-duration:.01ms!important;scroll-behavior:auto!important}
}
@media print {
  body:has(dialog[open])>*:not(dialog) {display:none!important}
  dialog[open] {position:static;display:block;max-height:none;width:100%;max-width:none;border:0;box-shadow:none;margin:0;overflow:visible}
  dialog::backdrop,.dialog-foot,.dialog-head button {display:none!important}
  .dialog-head {position:static}
  .sheet-events,.sheet-summary,.timeline li {break-inside:avoid}
}
