/* LebanonStats — hardwood, chalk lines and arena navy */
:root {
  --navy: #13233A;
  --navy-2: #1B3253;
  --navy-3: #29466E;
  --maple: #D6A469;
  --maple-2: #C99559;
  --maple-3: #E2B57F;
  --orange: #E8611A;
  --orange-dark: #C24E10;
  --bg: #ECEFF3;
  --surface: #FFFFFF;
  --ink: #15202F;
  --muted: #5B6A7D;
  --line: #D9DFE7;
  --line-soft: #E9EDF2;
  --win: #18915A;
  --win-bg: #E3F4EB;
  --loss: #C2392F;
  --loss-bg: #FBE7E5;
  --display: 'Saira Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --body: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --shadow: 0 1px 0 rgba(19, 35, 58, .06), 0 6px 20px -12px rgba(19, 35, 58, .35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 var(--body); color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--navy-3); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--orange-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: .005em; }
h1 { font-size: 2.4rem; font-weight: 800; }
h2 { font-size: 1.55rem; font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.muted-inv { color: #8FA3BF; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 99; background: #fff; padding: 8px 12px; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--navy); color: #DCE5F2; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 18px;
  background-image: radial-gradient(circle at 50% 108%, transparent 118px, rgba(255,255,255,.07) 119px, rgba(255,255,255,.07) 121px, transparent 122px);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; padding: 4px 6px; }
.brand strong { display: block; font: 800 1.45rem/1 var(--display); letter-spacing: .01em; }
.brand small { display: block; color: #8FA3BF; font-size: .74rem; margin-top: 2px; }
.brand:hover { color: #fff; }
.season-switch { padding: 0 6px; }
.season-switch label { display: block; font-size: .75rem; color: #8FA3BF; margin-bottom: 4px; }
.season-switch select { width: 100%; background: var(--navy-2); color: #fff; border: 1px solid var(--navy-3); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; color: #C9D5E6; text-decoration: none; border-radius: var(--r-sm); font-weight: 500; }
.nav a svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav a:hover { background: var(--navy-2); color: #fff; }
.nav a.is-active { background: var(--orange); color: #fff; }
.nav-admin { margin-top: auto; border-top: 1px solid var(--navy-2); padding-top: 12px; }
.main-wrap { min-width: 0; display: flex; flex-direction: column; }
.main { padding: 28px clamp(16px, 3vw, 40px) 40px; max-width: 1280px; width: 100%; }
.foot { margin-top: auto; padding: 18px 40px; color: var(--muted); font-size: .8rem; }
.topbar { display: none; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 268px; z-index: 50; transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(10, 18, 30, .45); }
  .topbar { display: flex; align-items: center; gap: 12px; background: var(--navy); color: #fff; padding: 10px 14px; position: sticky; top: 0; z-index: 40; }
  .topbar-title { font: 800 1.25rem var(--display); }
  .topbar-season { margin-left: auto; font-size: .85rem; color: #C9D5E6; }
  .nav-toggle { background: none; border: 0; color: #fff; padding: 4px; cursor: pointer; }
  .nav-toggle svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 2; fill: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- page header ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.page-head .sub { color: var(--muted); margin: 6px 0 0; max-width: 70ch; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); }
.panel-pad { padding: 20px 22px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 20px 12px; border-bottom: 1px solid var(--line-soft); }
.panel-head a { font-size: .88rem; }
.panel-body { padding: 16px 20px; }
.grid { display: grid; gap: 20px; align-items: start; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .grid-main, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 20px; }

/* ---------- the hardwood ---------- */
.court {
  position: relative; border-radius: var(--r-lg); overflow: hidden; color: var(--navy);
  background:
    url('../img/court.svg') center / cover no-repeat,
    repeating-linear-gradient(90deg, rgba(120, 70, 20, .07) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, var(--maple) 0 58px, var(--maple-2) 58px 112px, var(--maple-3) 112px 171px, var(--maple) 171px 230px);
  box-shadow: inset 0 0 0 1px rgba(80, 45, 10, .25), var(--shadow);
}
.court-inner { position: relative; padding: 26px clamp(16px, 4vw, 44px) 28px; }
.court-label { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-weight: 600; font-size: .9rem; color: #4A2E10; text-align: center; }
.court-label a { color: inherit; }

.scoreboard {
  margin: 14px auto 0; max-width: 760px; background: var(--navy); color: #fff; border-radius: 14px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 18px clamp(12px, 3vw, 28px);
  box-shadow: 0 14px 30px -14px rgba(19, 35, 58, .8), inset 0 0 0 2px var(--navy-3);
}
.sb-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: #fff; text-decoration: none; min-width: 0; }
.sb-team .nm { font: 700 clamp(1.05rem, 2.6vw, 1.5rem)/1.05 var(--display); }
.sb-team .co { font-size: .78rem; color: #9DB0CA; }
.sb-team:hover { color: #fff; }
.sb-team:hover .nm { text-decoration: underline; text-underline-offset: 3px; }
.sb-score { display: flex; align-items: center; gap: clamp(8px, 2vw, 20px); font: 800 clamp(3rem, 9vw, 5.6rem)/.9 var(--display); font-variant-numeric: tabular-nums; }
.sb-score span { color: #6F84A3; min-width: 1.6ch; text-align: center; }
.sb-score span.w { color: #fff; text-shadow: 0 0 22px rgba(232, 97, 26, .55); }
.sb-score i { font-style: normal; color: var(--orange); font-size: .45em; }
.sb-score.pending span { color: #9DB0CA; font-size: .5em; }
.sb-foot { text-align: center; margin-top: 12px; font-weight: 600; color: #4A2E10; }
.sb-foot strong { color: var(--navy); }

/* ---------- badges & avatars ---------- */
.badge {
  --team: #888; display: inline-grid; place-items: center; flex: none; border-radius: 50%;
  background: var(--team); color: #fff; font: 700 .72rem/1 var(--display); letter-spacing: .02em;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.35), 0 0 0 1px rgba(0,0,0,.08);
}
.badge-xs { width: 22px; height: 22px; font-size: .6rem; }
.badge-sm { width: 30px; height: 30px; }
.badge-md { width: 44px; height: 44px; font-size: .92rem; }
.badge-lg { width: 72px; height: 72px; font-size: 1.4rem; }
.badge-xl { width: 112px; height: 112px; font-size: 2.1rem; }
.badge-logo { background: #fff; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.badge-logo img { width: 86%; height: 86%; object-fit: contain; }
.scoreboard .badge-logo { box-shadow: none; }
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: var(--navy-2); color: #fff; font: 700 .9rem var(--display); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 30px; height: 30px; font-size: .75rem; }
.avatar-md { width: 44px; height: 44px; }
.avatar-lg { width: 96px; height: 96px; font-size: 2rem; }
.team-link { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 600; min-width: 0; }
.team-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-link:hover span { color: var(--orange-dark); text-decoration: underline; }

/* ---------- pills & tags ---------- */
.pill { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; font: 700 .78rem/1 var(--display); }
.pill-w { background: var(--win); color: #fff; }
.pill-l { background: var(--loss); color: #fff; }
.pill-n { background: var(--line); color: var(--muted); }
.form { display: inline-flex; gap: 3px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; vertical-align: middle; white-space: nowrap; }
.tag-up { background: var(--win-bg); color: var(--win); }
.tag-down { background: var(--loss-bg); color: var(--loss); }
.tag-new { background: #E6EEFB; color: var(--navy-3); }
.tag-champ { background: #FDF0D5; color: #8A5A00; box-shadow: inset 0 0 0 1px #EBC77A; }
.tag-silver { background: #EEF1F5; color: #4B5A6E; box-shadow: inset 0 0 0 1px #C9D1DC; }

/* ---------- game rows ---------- */
.games { list-style: none; margin: 0; padding: 0; }
.game {
  position: relative; display: grid; align-items: center; gap: 4px 12px;
  grid-template-columns: 52px minmax(0, 1fr) 118px minmax(0, 1fr) minmax(150px, .9fr);
  padding: 10px 14px; border-bottom: 1px solid var(--line-soft);
}
.games.with-res .game { grid-template-columns: 52px minmax(0, 1fr) 118px minmax(0, 1fr) minmax(150px, .9fr) 26px; }
.game:last-child { border-bottom: 0; }
.game:hover { background: #F6F8FB; }
.game-hit { position: absolute; inset: 0; z-index: 1; }
.game-hit:focus-visible { outline-offset: -3px; }
.game-date { display: grid; justify-items: center; line-height: 1; color: var(--muted); }
.game-date .d { font: 700 1.35rem var(--display); color: var(--ink); }
.game-date .m { font-size: .72rem; font-weight: 600; }
.game-date .y { font-size: .66rem; }
.game-side { display: flex; align-items: center; gap: 9px; min-width: 0; font-weight: 500; color: var(--muted); }
.game-side .tn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-side.home { justify-content: flex-end; text-align: right; }
.game-side.won { color: var(--ink); font-weight: 700; }
.game-score { display: flex; justify-content: center; align-items: center; gap: 6px; font: 700 1.55rem/1 var(--display); font-variant-numeric: tabular-nums; color: #8592A4; }
.game-score span { min-width: 2.1ch; text-align: center; }
.game-score span.w { color: var(--ink); }
.game-score i { font-style: normal; color: var(--orange); font-size: 1rem; }
.game-score.pending span { font-size: 1rem; color: var(--muted); }
.game-pending { background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(19,35,58,.025) 10px 20px); }
.game-meta { display: flex; flex-direction: column; font-size: .8rem; color: var(--muted); line-height: 1.35; min-width: 0; }
.game-meta .venue::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--maple); margin-right: 6px; vertical-align: 1px; }
.game-res { position: relative; z-index: 2; }
.panel, .main { container-type: inline-size; }
@container (max-width: 720px) {
  .game, .games.with-res .game { grid-template-columns: 44px minmax(0, 1fr) 96px minmax(0, 1fr); row-gap: 2px; }
  .games.with-res .game { grid-template-columns: 44px minmax(0, 1fr) 96px minmax(0, 1fr) 24px; }
  .game-meta { grid-column: 2 / 5; grid-row: 2; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 2px 12px; font-size: .76rem; }
  .game-res { grid-column: 5; grid-row: 1; }
  .game-score { font-size: 1.35rem; }
}
@container (max-width: 480px) {
  .game, .games.with-res .game { grid-template-columns: 36px minmax(0, 1fr) 78px minmax(0, 1fr); }
  .game-res { display: none; }
  .game-side { flex-direction: column; gap: 3px; text-align: center; font-size: .82rem; }
  .game-side.home { flex-direction: column-reverse; justify-content: center; text-align: center; }
  .game-side .tn { white-space: normal; line-height: 1.2; }
  .game-score { font-size: 1.2rem; }
}

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { padding: 9px 10px; text-align: right; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
table.data th { font-size: .78rem; font-weight: 600; color: var(--muted); background: #F7F9FB; position: sticky; top: 0; }
table.data th.l, table.data td.l { text-align: left; }
table.data th.c, table.data td.c { text-align: center; }
table.data td.num { font-size: 1.02rem; }
table.data tbody tr:hover { background: #F7F9FB; }
table.data .pos { font: 700 1.1rem var(--display); color: var(--muted); width: 36px; text-align: center; }
table.data .strong { font-weight: 700; color: var(--ink); }
table.data tr.cut-playoff td { border-bottom: 2px dashed var(--orange); }
table.data tr.cut-relegation td { border-bottom: 2px dashed var(--loss); }
.pos-chip { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 700 1rem var(--display); color: var(--muted); }
.pos-chip.top { background: var(--navy); color: #fff; }
.pos-chip.bottom { background: var(--loss-bg); color: var(--loss); }
.diff-pos { color: var(--win); }
.diff-neg { color: var(--loss); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .82rem; color: var(--muted); padding: 12px 20px; border-top: 1px solid var(--line-soft); }
.legend i { display: inline-block; width: 22px; border-top: 2px dashed; margin-right: 6px; vertical-align: middle; }

/* ---------- stat figures ---------- */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line-soft); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.figure { background: var(--surface); padding: 14px 16px; }
.figure .v { font: 700 1.9rem/1 var(--display); font-variant-numeric: tabular-nums; }
.figure .k { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.figure .x { font-size: .78rem; color: var(--muted); }

.leaders { list-style: none; margin: 0; padding: 0; }
.leaders li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.leaders li:last-child { border-bottom: 0; }
.leaders .what { font-size: .8rem; color: var(--muted); }
.leaders .val { font: 700 1.35rem var(--display); }

/* ---------- comparison ---------- */
.versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.versus .side { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.versus .side h2 a { color: inherit; text-decoration: none; }
.versus .big { font: 800 clamp(3rem, 8vw, 5rem)/.9 var(--display); color: var(--navy); font-variant-numeric: tabular-nums; }
.versus .big i { color: var(--orange); font-style: normal; margin: 0 .15em; font-size: .6em; vertical-align: .2em; }
.cmp-rows { margin-top: 18px; }
.cmp-row { display: grid; grid-template-columns: 70px 1fr minmax(110px, auto) 1fr 70px; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.cmp-row .lbl { text-align: center; font-size: .84rem; color: var(--muted); }
.cmp-row .va { text-align: right; font: 700 1.15rem var(--display); }
.cmp-row .vb { text-align: left; font: 700 1.15rem var(--display); }
.bar { height: 8px; border-radius: 4px; background: var(--line-soft); overflow: hidden; display: flex; }
.bar.rev { justify-content: flex-end; }
.bar b { display: block; background: var(--navy-3); border-radius: 4px; }
.bar.best b { background: var(--orange); }

/* ---------- playoffs ---------- */
.bracket { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 22px; overflow-x: auto; padding-bottom: 6px; }
.round h3 { margin-bottom: 10px; }
.round-col { display: flex; flex-direction: column; justify-content: space-around; gap: 14px; height: calc(100% - 34px); }
.series { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); overflow: hidden; }
.series-team { display: grid; grid-template-columns: minmax(0, 1fr) 34px; align-items: center; padding: 9px 12px; gap: 10px; }
.series-team + .series-team { border-top: 1px solid var(--line-soft); }
.series-team .w { font: 800 1.4rem/1 var(--display); text-align: center; color: var(--muted); }
.series-team.lead { background: #FFF6EF; }
.series-team.lead .w { color: var(--orange-dark); }
.series-games { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 12px; background: #F7F9FB; border-top: 1px solid var(--line-soft); font-size: .76rem; }
.series-games a { text-decoration: none; padding: 2px 7px; border-radius: 4px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-variant-numeric: tabular-nums; }
.series-games a:hover { border-color: var(--orange); }
.series-label { font-size: .76rem; color: var(--muted); padding: 6px 12px 0; }

/* ---------- forms & buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .9rem var(--body); text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--navy-3); color: var(--navy); }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.btn-primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }
.btn-dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); color: #fff; }
.btn-danger { color: var(--loss); }
.btn-danger:hover { background: var(--loss); border-color: var(--loss); color: #fff; }
.btn-sm { padding: 5px 10px; font-size: .82rem; }
.btn-link { background: none; border: 0; padding: 0; color: var(--navy-3); text-decoration: underline; cursor: pointer; font: inherit; }
.btn-link.danger { color: var(--loss); }

label { font-weight: 600; font-size: .86rem; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  font: inherit; color: var(--ink); background: #fff; border: 1px solid #C5CED9; border-radius: var(--r-sm); padding: 8px 10px; min-height: 40px; width: 100%;
}
input[type=color] { width: 56px; height: 40px; padding: 2px; border: 1px solid #C5CED9; border-radius: var(--r-sm); background: #fff; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(232, 97, 26, .35); border-color: var(--orange); }
.field { display: flex; flex-direction: column; gap: 5px; }
.field .hint { font-size: .78rem; color: var(--muted); font-weight: 400; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 20px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--orange); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); }
.filters .field { min-width: 150px; flex: 1; max-width: 230px; }
.errors { background: var(--loss-bg); color: #7E1F18; border: 1px solid #F1B8B2; border-radius: var(--r-sm); padding: 10px 14px; margin-bottom: 16px; }
.errors ul { margin: 4px 0 0; padding-left: 18px; }

/* score entry */
.score-entry { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; }
.score-entry .team-pick { background: #F7F9FB; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; display: flex; flex-direction: column; gap: 12px; transition: background .15s, border-color .15s; }
.score-entry .team-pick.is-winner { background: #FFF6EF; border-color: var(--orange); }
.score-entry .team-pick .who { font-size: .8rem; color: var(--muted); font-weight: 600; }
.score-entry input.score { font: 800 3rem/1 var(--display); text-align: center; min-height: 76px; font-variant-numeric: tabular-nums; }
.score-entry .mid { display: grid; place-items: center; font: 800 1.5rem var(--display); color: var(--orange); }
.winner-callout { margin-top: 14px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--navy); color: #fff; font-weight: 600; display: flex; align-items: center; gap: 10px; min-height: 48px; }
.winner-callout.is-empty { background: #EEF1F5; color: var(--muted); font-weight: 500; }
.winner-callout.is-error { background: var(--loss-bg); color: #7E1F18; }
.winner-callout img { width: 22px; height: 22px; }
.coach-hint { font-size: .8rem; color: var(--muted); min-height: 1.2em; }
@media (max-width: 760px) { .score-entry { grid-template-columns: 1fr; } .score-entry .mid { display: none; } }

/* quick score rows */
.quick { list-style: none; margin: 0; padding: 0; }
.quick li { display: grid; grid-template-columns: 70px minmax(0, 1fr) 64px 14px 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--line-soft); }
.quick li:last-child { border-bottom: 0; }
.quick input { text-align: center; font: 700 1.2rem var(--display); padding: 4px; }
.quick .q-home { justify-content: flex-end; text-align: right; }
.quick .q-date { font-size: .8rem; color: var(--muted); }
@media (max-width: 760px) { .quick li { grid-template-columns: 1fr 60px 10px 60px 1fr; } .quick .q-date { grid-column: 1 / -1; } .quick .btn { grid-column: 1 / -1; } }

/* ---------- misc ---------- */
.flash { padding: 11px 16px; border-radius: var(--r-sm); margin-bottom: 16px; font-weight: 500; border: 1px solid; }
.flash-success { background: var(--win-bg); border-color: #A9DCC1; color: #0E5C38; }
.flash-error { background: var(--loss-bg); border-color: #F1B8B2; color: #7E1F18; }
.flash-info { background: #E9F0FA; border-color: #BCD0EC; color: var(--navy-2); }
.empty { padding: 26px 20px; color: var(--muted); text-align: center; }
.empty .btn { margin-top: 10px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs a { padding: 9px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-color: var(--orange); }
.profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; padding: 24px; }
.profile-head .info { flex: 1; min-width: 220px; }
.profile-head h1 { font-size: 2.8rem; }
.profile-head .facts { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .9rem; margin-top: 6px; }
.color-band { height: 6px; background: var(--team, var(--orange)); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card-link { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.card-link:hover { border-color: var(--orange); color: var(--ink); }
.card-link .t { font-weight: 700; line-height: 1.2; }
.card-link .s { font-size: .8rem; color: var(--muted); }
.strip { width: 100%; height: 80px; display: block; margin-top: 10px; }
.strip-axis { stroke: var(--line); stroke-width: 1; }
.strip-w { fill: var(--win); }
.strip-l { fill: var(--loss); }
.inline-form { display: inline; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: .86rem; }
.kv dd { margin: 0; font-weight: 600; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border-radius: 99px; background: #F1F4F8; border: 1px solid var(--line); font-size: .86rem; text-decoration: none; color: var(--ink); }
.chip:hover { border-color: var(--orange); }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: 100%; max-width: 420px; }
.login-card .court-inner { padding: 30px; }
.login-card .panel { margin-top: -16px; position: relative; }
.note { font-size: .84rem; color: var(--muted); }
details.help summary { cursor: pointer; font-weight: 600; }
