/* ===== core.css (identical on every site) ===== */
:root {
  --font: Inter, system-ui, sans-serif;          /* weights 400 600 800 900 only */
  --n-0:#FFFFFF; --n-50:#F7F7F7; --n-100:#F5F5F5; --n-200:#E5E5E5; --n-300:#D4D4D4;
  --n-400:#A3A3A3; --n-600:#444444; --n-800:#262626; --n-900:#111111; --n-950:#030303;
  --ink: var(--n-900); --ink-2: var(--n-600); --line: var(--n-200); --field-line: var(--n-400);
  --on-dark: var(--n-200); --on-dark-2: var(--n-300);
  --surface: var(--n-0);
  --done:#15803D; --done-bg:#F0FDF4; --problem:#B91C1C; --problem-bg:#FEF2F2; --info-bg: var(--n-100);
  --surface-panel: linear-gradient(105deg,#030303 0%,#111111 42%,#262626 78%,#3D3D3D 100%);
  --surface-page:  linear-gradient(180deg,#E7E7E7 0,#F7F7F7 220px,#FFFFFF 560px);
  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px; --s-5:24px; --s-6:32px; --s-7:48px; --s-8:64px;
  --r-tag:6px; --r-control:10px; --r-card:14px; --r-panel:20px; --r-pill:999px;
  --shadow-xs: 0 8px 18px rgba(0,0,0,.06);
  --shadow-sm: 0 8px 18px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.08);
  --shadow:    0 14px 30px rgba(0,0,0,.14), 0 3px 8px rgba(0,0,0,.10);
  --shadow-panel: 0 22px 44px rgba(0,0,0,.30), 0 6px 14px rgba(0,0,0,.22);
  --control-h: 44px; --row-h: 56px; --w-page: 1060px; --w-text: 760px;
  --ease: cubic-bezier(.2,.7,.2,1); --t-fast: 150ms; --t-med: 300ms;
}
/* two type scales */
.site { --fs-h1: clamp(38px,6vw,56px); --fs-h2: clamp(26px,3.4vw,32px); --fs-h3: 20px;
        --fs-lead: 18px; --fs-body: 17px; --fs-small: 14px; --fs-label: 12px; }
.app  { --fs-h1: 28px; --fs-h2: 20px; --fs-h3: 16px;
        --fs-lead: 16px; --fs-body: 15px; --fs-small: 13px; --fs-label: 12px; --fs-kpi: 36px; }
body { font-family: var(--font); color: var(--ink); background: var(--surface-page); }
button, input, select, textarea { font: inherit; }
h1, h2 { text-transform: uppercase; font-weight: 900; line-height: 1.08; }
/* letter-spacing: only these five values, anywhere */
h1 { letter-spacing: -0.02em; }   h2, h3 { letter-spacing: -0.01em; }
.eyebrow { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; }
.chip, .tag, th { letter-spacing: 0.04em; }
body, p, li, .btn, nav a, input { letter-spacing: 0; word-spacing: normal; }
.num { font-variant-numeric: tabular-nums; }
.chip { font: 800 var(--fs-label)/1 var(--font); padding: 5px 9px; border-radius: var(--r-tag); }
.chip-todo { background: var(--accent-fill); color: var(--accent-fill-ink); }
.chip-done { background: var(--done-bg); color: var(--done); }
.chip-problem { background: var(--problem-bg); color: var(--problem); }
.chip-info { background: var(--info-bg); color: var(--ink-2); }
.btn { min-height: var(--control-h); padding: 0 var(--s-5); border-radius: var(--r-control);
       background: var(--accent-gradient); color: var(--accent-fill-ink); font: 800 16px/1 var(--font);
       box-shadow: var(--shadow-cta); display: inline-flex; align-items: center;
       transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: none; }
.btn-line { background: none; color: var(--ink); border: 1px solid var(--field-line); box-shadow: none; }
.panel { background: var(--surface-panel); color: #fff; border-radius: var(--r-panel); box-shadow: var(--shadow-panel); }
.panel .o { color: var(--accent-on-dark); }
.o { color: var(--accent-on-light); }
:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
/* ===== brand-pro.css (league site + Roster Manager) ===== */
:root { --accent-on-dark:#FAE116; --accent-on-light:var(--ink); --accent-text:var(--ink);
  --accent-fill:#FAE116; --accent-fill-ink:#111111; --accent-tint:#FEFCE8;
  --accent-gradient: linear-gradient(180deg,#FEF08A 0%,#FAE116 50%,#EAB308 100%);
  --shadow-cta: 0 10px 20px rgba(234,179,8,.35), inset 0 1px 0 rgba(255,255,255,.6);
  --accent-ring: rgba(234,179,8,.55); }
.o:not(.panel .o) { background: #FAE116; color: #111111; padding: 0 .2em; border-radius: 6px; box-decoration-break: clone; }


/* ===== app layer: Pro League Registration on the shared system =====
   core.css + brand-pro.css above are the shared system, verbatim — do not edit them here.
   This layer maps the app's existing classes onto the system tokens.
   App conventions in this layer:
   - .panel is the app's light content CARD (every view renders sections as .panel);
     the dark system panel treatment lives on .hero, .stat, .topbar and the footer.
   - .badge carries the core .chip metrics (12px / 800 / radius 6 / 0.04em). */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-size: var(--fs-body); line-height: 1.5; }
img { max-width: 100%; }
b, strong { font-weight: 600; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 800; }
a { color: inherit; }
:focus-visible { border-radius: var(--r-tag); }
.noscript-msg { padding: var(--s-5); font-weight: 600; }

/* ---- header (scorebug bar, league family) ---- */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--surface-panel); color: #fff; border-bottom: 3px solid var(--accent-fill); box-shadow: var(--shadow-sm); }
.topbar-in { max-width: var(--w-page); margin: 0 auto; display: flex; align-items: center; gap: var(--s-2) var(--s-4); padding: var(--s-2) var(--s-4); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: var(--s-2); text-decoration: none; font-weight: 900; text-transform: uppercase; font-size: var(--fs-h3); min-height: var(--control-h); }
.brand .tag { background: var(--accent-fill); color: var(--accent-fill-ink); padding: 6px 10px; border-radius: var(--r-tag); letter-spacing: 0.04em; }
.brand .name { color: #fff; padding: 6px 10px; border: 1px solid var(--on-dark-2); border-radius: var(--r-tag); }
.nav { display: flex; gap: var(--s-1); flex-wrap: wrap; margin-left: auto; align-items: center; }
.nav a, .nav button { color: var(--on-dark); background: none; border: 0; border-bottom: 3px solid transparent; font: inherit; font-weight: 800; font-size: var(--fs-small); text-transform: uppercase; padding: 0 var(--s-2); min-height: var(--control-h); display: inline-flex; align-items: center; text-decoration: none; cursor: pointer; }
.nav a:hover, .nav button:hover { color: var(--accent-on-dark); }
.nav a[aria-current="page"] { color: var(--accent-on-dark); border-bottom-color: var(--accent-fill); }

main { max-width: var(--w-page); margin: 0 auto; padding: var(--s-5) var(--s-4) var(--s-8); }
.narrow { max-width: 520px; margin: 0 auto; }
footer { max-width: var(--w-page); margin: 0 auto var(--s-6); padding: var(--s-5) var(--s-4); background: var(--surface-panel); color: var(--on-dark); border-radius: var(--r-panel); box-shadow: var(--shadow-panel); text-align: center; font-size: var(--fs-small); }

/* ---- hero + light cards ---- */
.hero { background: var(--surface-panel); color: #fff; border-radius: var(--r-panel); box-shadow: var(--shadow-panel); padding: var(--s-6); margin-bottom: var(--s-5); }
.hero h1 { margin: 0 0 var(--s-3); color: #fff; }
.hero p { margin: 0 0 var(--s-5); color: var(--on-dark); max-width: 56ch; font-size: var(--fs-lead); }
.hero .btn.ghost { background: none; color: #fff; border: 1px solid var(--on-dark-2); box-shadow: none; }
.hero .btn.dark { background: #fff; color: var(--ink); }
.panel { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-sm); padding: var(--s-5); margin-bottom: var(--s-5); overflow: hidden; }
.panel > h2 { margin: calc(var(--s-5) * -1) calc(var(--s-5) * -1) var(--s-4); padding: var(--s-3) var(--s-5); min-height: var(--control-h); background: var(--surface-panel); color: #fff; font-size: var(--fs-label); font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); }
.panel > h2 .badge { flex: none; }
.page-title { margin: var(--s-1) 0 var(--s-4); }
.crumbs { font-size: var(--fs-small); color: var(--ink-2); margin-bottom: var(--s-1); }
.crumbs a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 2px; display: inline-flex; align-items: center; min-height: var(--control-h); }
.help a, .facts a, p a { padding-top: 3px; padding-bottom: 3px; }
td a { display: inline-flex; align-items: center; min-height: var(--control-h); }
.muted { color: var(--ink-2); }
.row { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; }
.cards { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: var(--s-5); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-xs); padding: var(--s-5); text-decoration: none; display: block; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
a.card:hover, button.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { margin: 0 0 var(--s-1); }
.card p { margin: 0; font-size: var(--fs-small); color: var(--ink-2); }
.cardtag { margin-top: var(--s-2) !important; }
.card.static:hover { transform: none; box-shadow: var(--shadow-xs); }
button.card { font: inherit; text-align: left; cursor: pointer; width: 100%; color: inherit; }
button.card:disabled { opacity: .5; cursor: wait; transform: none; }

/* ---- buttons ---- */
.btn { justify-content: center; text-align: center; cursor: pointer; text-decoration: none; border: 0; }
.btn.dark { background: var(--ink); color: #fff; box-shadow: none; }
.btn.dark:hover { transform: translateY(-2px); }
.btn.ghost { background: none; color: var(--ink); border: 1px solid var(--field-line); box-shadow: none; }
.btn.ghost:hover { transform: translateY(-2px); }
.btn.small { min-height: var(--control-h); padding: 0 var(--s-4); font-size: var(--fs-small); }
.btn.danger { background: var(--surface); color: var(--problem); border: 1px solid var(--problem); box-shadow: none; }
.btn.danger:hover { background: var(--problem-bg); transform: translateY(-2px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.block { display: flex; width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 2px; cursor: pointer; min-height: var(--control-h); display: inline-flex; align-items: center; }

/* ---- forms ---- */
.field { margin-bottom: var(--s-4); }
.field label { display: block; font-weight: 800; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--s-1); }
.field .req { color: var(--problem); }
input, select, textarea { width: 100%; font-size: 16px; padding: 11px 12px; border: 1px solid var(--field-line); background: var(--surface); color: var(--ink); border-radius: var(--r-control); min-height: 48px; }
input[readonly] { background: var(--n-100); }
input[type="checkbox"] { width: 22px; height: 22px; min-height: 0; padding: 0; accent-color: var(--ink); flex: none; }
input[type="range"] { padding: 0; border: 0; min-height: var(--control-h); accent-color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-ring); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--problem); }
.err { color: var(--problem); font-size: var(--fs-small); font-weight: 600; margin: var(--s-1) 0 0; }
.err:empty { margin: 0; }
.help { color: var(--ink-2); font-size: var(--fs-small); margin: var(--s-1) 0 0; }
.grid2 { display: grid; gap: 0 var(--s-4); }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: var(--s-3); align-items: flex-start; margin-bottom: var(--s-4); font-weight: 600; min-height: var(--control-h); }
.check input { margin-top: 2px; }
.field label.check { text-transform: none; letter-spacing: 0; font-size: var(--fs-body); font-weight: 600; align-items: center; }
textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.locked { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); padding: 11px 12px; border: 1px solid var(--field-line); border-radius: var(--r-control); background: var(--n-100); min-height: 48px; }

/* ---- tables / badges ---- */
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-body); font-variant-numeric: tabular-nums; }
th { background: none; color: var(--ink-2); text-align: left; padding: var(--s-2) var(--s-3); font-size: var(--fs-label); font-weight: 800; text-transform: uppercase; white-space: nowrap; border-bottom: 1px solid var(--line); }
td { padding: var(--s-3); border-bottom: 1px solid var(--line); vertical-align: middle; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--accent-tint); }
td select, td input { min-height: var(--control-h); padding: 6px 8px; font-size: 16px; }
td input[type="number"] { width: 90px; }
td select { min-width: 120px; }
.badge { display: inline-flex; align-items: center; padding: 5px 9px; font-size: var(--fs-label); font-weight: 800; line-height: 1; text-transform: uppercase; letter-spacing: 0.04em; border-radius: var(--r-tag); background: var(--info-bg); color: var(--ink-2); white-space: nowrap; }
.badge.y { background: var(--accent-fill); color: var(--accent-fill-ink); }
.badge.k { background: var(--ink); color: #fff; }
.badge.bad { background: var(--problem-bg); color: var(--problem); }

/* ---- checklist / steps / notices ---- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); min-height: var(--row-h); }
.checklist li:last-child { border-bottom: 0; }
.tick { width: 26px; height: 26px; border: 1px solid var(--field-line); border-radius: var(--r-tag); display: grid; place-items: center; font-weight: 900; flex: none; color: var(--ink-2); }
.tick.done { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--accent-fill-ink); }
.notice { background: var(--accent-tint); border: 1px solid var(--line); border-radius: var(--r-control); padding: var(--s-3) var(--s-4); margin: 0 0 var(--s-4); font-size: var(--fs-body); }
.notice .btn { margin-left: var(--s-2); }
.steps { list-style: none; display: flex; gap: 0; padding: 0; margin: 0 0 var(--s-4); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-xs); }
.steps li { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--s-2) var(--s-1); min-height: 48px; font-size: var(--fs-label); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; border-right: 1px solid var(--line); color: var(--ink-2); }
.steps li:last-child { border-right: 0; }
.steps li.on { background: var(--accent-fill); color: var(--accent-fill-ink); }
.steps li.done { background: var(--ink); color: #fff; }
.sub { font-size: var(--fs-label); font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); margin: 0 0 var(--s-2); }
.pre { white-space: pre-wrap; }
ul.plain { list-style: none; padding: 0; margin: 0 0 var(--s-2); }
ul.plain li { padding: var(--s-2) 0; border-bottom: 1px solid var(--line); }
.row.tight { gap: var(--s-2); flex-wrap: nowrap; }
.row.apply { align-items: flex-end; }
.row.apply .field { flex: 1 1 200px; margin-bottom: 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-2) var(--s-4); margin: 0 0 var(--s-4); }
.facts dt { font-size: var(--fs-label); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); padding-top: 2px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
.facts .clubline { display: inline-flex; align-items: center; gap: var(--s-2); }
.facts .clubline .crest { margin: 0; }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; gap: 0; } .facts dd { margin-bottom: var(--s-2); } }
.panel-in h3 { margin: 0 0 var(--s-3); }
.terms { max-height: 55vh; min-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-control); padding: var(--s-3) var(--s-4); background: var(--n-50); font-size: var(--fs-body); }
.terms h3 { margin: var(--s-4) 0 var(--s-1); }
.terms h3:first-child { margin-top: 0; }
pre.terms { font-family: inherit; }

/* ---- legal sections as boxes: summary up front, full text on click (Alex, 2026-11-03) ---- */
.termbox { border: 1px solid var(--line); border-radius: var(--r-control); padding: var(--s-3) var(--s-4); background: var(--n-50); margin-bottom: var(--s-3); }
.termbox h3 { margin: 0 0 var(--s-1); font-size: var(--fs-body); }
.termbox p { margin: 0 0 var(--s-2); line-height: 1.55; }
.termbox p:last-child { margin-bottom: 0; }
.termtoggle { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; cursor: pointer; }

/* ---- events / players / photos ---- */
.clubgroup h3 { margin: var(--s-4) 0 var(--s-2); border-bottom: 1px solid var(--line); padding-bottom: var(--s-1); }
.players { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--s-3); }
.player { margin: 0; }
.player img, .player .nophoto { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; background: var(--n-900); border: 1px solid var(--line); border-radius: var(--r-control); }
.player figcaption { font-size: var(--fs-small); line-height: 1.25; margin-top: var(--s-1); }
.player figcaption span { display: block; color: var(--ink-2); font-size: var(--fs-label); }
.photo-pair { display: flex; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-4); }
.photo-pair figure { margin: 0; }
.photo-pair img { width: 150px; height: 150px; object-fit: cover; border: 1px solid var(--line); border-radius: var(--r-control); display: block; background: var(--n-900); }
.photo-pair figcaption { font-size: var(--fs-label); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; margin-top: var(--s-1); }
.thumb { width: 40px; height: 40px; object-fit: cover; border: 1px solid var(--line); border-radius: var(--r-tag); vertical-align: middle; background: var(--n-200); }
.crop-stage { position: relative; margin: 0 auto var(--s-3); background: var(--n-950); overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-card); }
.crop-stage canvas { display: block; touch-action: none; cursor: grab; }
.crop-stage canvas:active { cursor: grabbing; }
.oval { position: absolute; left: 20%; top: 8%; width: 60%; height: 76%; border: 3px dashed var(--accent-fill); border-radius: 50%; box-shadow: 0 0 0 999px rgba(0, 0, 0, .5); pointer-events: none; }
.tips { margin: 0 0 var(--s-4); padding-left: 18px; font-size: var(--fs-body); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.card-box { border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-4); background: var(--surface); margin-top: var(--s-4); }

/* ---- stats ---- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: var(--s-3); margin-bottom: var(--s-4); }
.stat { background: var(--surface-panel); color: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-sm); padding: var(--s-4); }
.stat strong { display: block; font-size: var(--fs-kpi); font-weight: 900; line-height: 1; color: #fff; }
.stat span { display: block; margin-top: var(--s-1); font-size: var(--fs-label); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--on-dark-2); }
table.matrix { table-layout: fixed; min-width: 520px; }
table.matrix th:not(:first-child), table.matrix td:not(:first-child) { width: 84px; text-align: center; }
table.matrix td.yes { background: var(--accent-fill); color: var(--accent-fill-ink); font-weight: 800; text-align: center; }
table.matrix td.no { color: var(--ink-2); text-align: center; }

/* ---- toast / loading ---- */
.toast { position: fixed; left: 50%; bottom: var(--s-5); top: auto; transform: translateX(-50%); width: max-content; max-width: 90vw; z-index: 50; background: var(--n-950); color: #fff; padding: var(--s-3) var(--s-4); border-radius: var(--r-control); box-shadow: var(--shadow); font-weight: 600; font-size: var(--fs-body); pointer-events: none; }
.toast.error { background: var(--problem); }
@media (max-width: 640px) { .toast { left: var(--s-3); right: var(--s-3); transform: none; width: auto; max-width: none; } }
.loading { padding: var(--s-7) 0; text-align: center; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--fs-small); color: var(--ink-2); }

/* ---- broadcast composer ---- */
.bc-grid { display: grid; gap: var(--s-5); }
@media (min-width: 1000px) { .bc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: start; } .bc-sticky { position: sticky; top: var(--s-3); } }
.bc-block { display: flex; gap: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-3); margin-bottom: var(--s-3); background: var(--n-50); }
.bc-blockbody { flex: 1 1 auto; min-width: 0; display: grid; gap: var(--s-2); align-content: start; }
.bc-blockbody > .badge { justify-self: start; }
.bc-ctrl { display: flex; flex-direction: column; gap: var(--s-2); }
.bc-ctrl .btn { padding: 0 var(--s-3); }
.bc-toolbar { margin-bottom: var(--s-1); }
.bc-linkform { margin: var(--s-2) 0; }
.bc-linkform input { flex: 1 1 140px; min-height: var(--control-h); }
.bc-thumb { max-width: 160px; height: auto; border: 1px solid var(--line); border-radius: var(--r-control); display: block; }
.aud-counts { background: var(--info-bg); border-radius: var(--r-control); padding: var(--s-3) var(--s-4); margin-bottom: var(--s-4); font-weight: 600; }
.bc-big { font-size: var(--fs-lead); margin: 0 0 var(--s-2); }
.bc-big strong { font-size: var(--fs-kpi); font-weight: 900; margin-right: var(--s-2); }
.bc-lint li { display: flex; gap: var(--s-2); align-items: baseline; }
.bc-aiout { margin-top: var(--s-3); }
progress { width: 100%; height: 12px; appearance: none; -webkit-appearance: none; border: 0; border-radius: var(--r-pill); background: var(--n-100); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--n-100); }
progress::-webkit-progress-value { background: var(--accent-gradient); }
progress::-moz-progress-bar { background: var(--accent-fill); }

/* ---- email preview (approximates the branded email template) ---- */
.em-inbox { border: 1px solid var(--line); border-radius: var(--r-control); background: var(--surface); padding: var(--s-2) var(--s-3); margin: var(--s-2) 0; font-size: var(--fs-small); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-frame { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; max-width: 600px; }
.em-bar { height: 6px; background: var(--accent-gradient); }
.em-head { padding: var(--s-4) var(--s-5) var(--s-1); font-weight: 800; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.06em; }
.em-pro { background: var(--n-950); color: var(--accent-on-dark); padding: 3px 7px; border-radius: var(--r-tag); margin-right: var(--s-1); }
.em-kick { font-weight: 600; color: var(--ink-2); text-transform: uppercase; font-size: var(--fs-label); }
.em-body { padding: var(--s-3) var(--s-5) var(--s-2); }
.em-h { margin: var(--s-2) 0 var(--s-3); font-size: var(--fs-h2); line-height: 1.2; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; }
h3.em-h { font-size: var(--fs-h3); }
.em-p { margin: 0 0 var(--s-4); line-height: 1.55; font-size: var(--fs-body); color: var(--ink); overflow-wrap: anywhere; }
.em-p a, .em-h a { color: var(--ink); font-weight: 800; }
.em-btn { display: inline-block; background: var(--accent-gradient); color: var(--accent-fill-ink); border-radius: var(--r-control); padding: 12px 24px; font-weight: 800; font-size: var(--fs-body); text-decoration: none; box-shadow: var(--shadow-cta); }
.em-hr { border: 0; border-top: 2px solid var(--ink); margin: var(--s-2) 0 var(--s-5); }
.em-img { display: block; max-width: 100%; height: auto; margin: 0 0 var(--s-4); border-radius: var(--r-control); }
.em-foot { padding: var(--s-4) var(--s-5) var(--s-5); border-top: 1px solid var(--line); font-size: var(--fs-label); color: var(--ink-2); line-height: 1.5; }
.em-unsub { color: var(--ink); text-decoration: underline; }
.em-text { white-space: pre-wrap; background: var(--n-50); border: 1px solid var(--line); border-radius: var(--r-control); padding: var(--s-3); font-size: var(--fs-small); overflow-wrap: anywhere; max-height: 520px; overflow: auto; }
[hidden] { display: none !important; }

@media (max-width: 640px) {
  .hero { padding: var(--s-5); }
  .panel { padding: var(--s-4); }
  .panel > h2 { margin: calc(var(--s-4) * -1) calc(var(--s-4) * -1) var(--s-4); padding: var(--s-3) var(--s-4); }
  .brand .name { display: none; }
}

/* ---- Milestone 7: dashboards (app layer only; the core/brand layers above are untouched) ---- */
.brand-logo { height: 44px; width: auto; display: block; }
.subnav { margin: 0 0 var(--s-4); }
.row.tight { gap: var(--s-2); }
.btn.small { min-height: 36px; padding: 0 var(--s-3); font-size: var(--fs-small); }
.btn.danger { background: none; color: var(--danger, #b3261e); border: 1px solid currentColor; box-shadow: none; }
.clubhead { display: flex; gap: var(--s-4); align-items: center; margin-bottom: var(--s-3); }
.clubhead p { margin: 0 0 var(--s-1); }
.crest, .asset { max-width: 100%; height: auto; border-radius: var(--r-control); }
.crest { width: 64px; height: 64px; object-fit: contain; }
.asset { display: block; max-height: 140px; object-fit: contain; margin-bottom: var(--s-3); }
.asset.pdf { display: grid; place-items: center; height: 90px; background: var(--n-50); border: 1px solid var(--line); font-weight: 800; }
ul.plain, ul.squads, ul.agenda, ul.people { list-style: none; margin: 0 0 var(--s-3); padding: 0; }
ul.plain li, ul.agenda li, ul.people li { padding: var(--s-2) 0; border-bottom: 1px solid var(--line); }
ul.squads li { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-1) 0; }
ul.squads li.ok span:first-child { font-weight: 800; }
ul.people li { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.thumb.ph { display: inline-block; width: 40px; height: 40px; border-radius: 50%; background: var(--n-100); }
.agenda-d { margin: var(--s-1) 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.doc { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.banner { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-4) var(--s-5); margin-bottom: var(--s-5); border-radius: var(--r-card); border: 2px solid var(--ink); text-decoration: none; color: var(--ink); background: var(--surface); }
.msg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-4); margin: var(--s-3) 0; }
.msg.unread { border-color: var(--ink); box-shadow: var(--shadow-xs); }
.tab { min-height: 36px; padding: 0 var(--s-4); border-radius: var(--r-control); border: 1px solid var(--field-line); background: none; cursor: pointer; font: inherit; }
.tab.on { background: var(--ink); color: #fff; }
.msgbox { width: 100%; font: inherit; padding: var(--s-3); border: 1px solid var(--field-line); border-radius: var(--r-control); margin: var(--s-2) 0; }
textarea { width: 100%; font: inherit; padding: var(--s-3); border: 1px solid var(--field-line); border-radius: var(--r-control); }
iframe.embed { width: 100%; min-height: 480px; border: 1px solid var(--line); border-radius: var(--r-control); margin-bottom: var(--s-3); }
td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---- Portal program, Phase 1: free agency (appended; the core / brand layers above are untouched) ---- */
.md { line-height: 1.55; overflow-wrap: anywhere; }
.md h2, .md h3, .md h4 { margin: var(--s-5) 0 var(--s-2); }
.md ul, .md ol { padding-left: var(--s-5); margin: var(--s-2) 0; }
.md li { margin: var(--s-1) 0; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-4) 0; }
.stack { display: flex; flex-direction: column; gap: var(--s-3); }
.panel.inner { margin: 0; }
.verdict { border-left: 8px solid var(--line); }
.verdict.ok { border-left-color: #1f8f4e; }
.verdict.bad { border-left-color: #c0392b; }
.verdict.warn { border-left-color: #d6a100; }
.check-block { margin: var(--s-3) 0; padding-left: var(--s-3); border-left: 4px solid var(--line); }
.check-block.pass { border-left-color: #1f8f4e; }
.check-block.fail { border-left-color: #c0392b; }
.check-block.unknown, .check-block.approval { border-left-color: #d6a100; }
.check-block ul { padding-left: var(--s-5); }
label.check { display: flex; gap: var(--s-2); align-items: flex-start; margin: var(--s-2) 0; }

/* Store (Phase 2) */
.shop-item { display: flex; gap: var(--s-4); align-items: flex-start; }
.shop-item-body { flex: 1; min-width: 0; }
.shop-thumb { flex: 0 0 auto; width: 84px; height: 84px; }
.shop-big { display: grid; place-items: center; margin: var(--s-3) 0; }
.shop-photo { object-fit: cover; border-radius: 10px; max-width: 100%; }
.mockup { max-width: 100%; height: auto; }
.mock-missing { outline: 2px dashed #c0392b; }
h2.sec { margin: var(--s-5) 0 var(--s-3); }
.badge.bad { background: #c0392b; color: #fff; }
.badge.k { background: var(--n-50); border: 1px solid var(--line); }

/* Phase 5: club pages */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.panel.inner { margin: .75rem 0; }
.club-page .leader { margin: 1rem 0; }
.club-page figure { margin: 1rem 0; }
.club-page figure img { max-width: 100%; height: auto; }
fieldset.fronts { border: 0; padding: 0; margin: .5rem 0; }

/* ---- League Updates: announcement banners, pinned banners, FAQ (appended; earlier layers untouched) ---- */
.banner-stack { display: flex; flex-direction: column; gap: var(--s-3); margin-bottom: var(--s-5); }
.banner-card { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4) var(--s-5); border-radius: var(--r-card); border: 2px solid var(--ink); background: var(--surface); color: var(--ink); }
.banner-card.pinned { background: var(--accent-fill); color: var(--accent-fill-ink); }
.banner-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); justify-content: space-between; }
.banner-title { overflow-wrap: anywhere; }
.banner-line { margin: 0; overflow-wrap: anywhere; }
.banner-actions { flex-wrap: wrap; }
.banner-more { text-decoration: none; font-size: var(--fs-small); }
.faq-entry { border-top: 1px solid var(--line); padding: var(--s-3) 0; }
.faq-entry summary { cursor: pointer; }
.faq-answer { padding-top: var(--s-2); }
.faq-admin-entry { border: 1px solid var(--line); border-radius: var(--r-control); padding: var(--s-3); margin: var(--s-2) 0; background: var(--surface); }
.faq-admin-entry summary { cursor: pointer; font-weight: 700; }
.banner-card.pinned .badge { background: var(--ink); color: #fff; }

/* Phase 6: Veem payouts. Vertical, stacked, one item per line. */
.payout-list { display: block; }
.payout-row { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.payout-row:last-child { border-bottom: 0; }
.payout-row.pick { display: block; cursor: pointer; }
.payout-row.pick input { margin-right: var(--s-2); }
.payout-row .num { font-variant-numeric: tabular-nums; }
.payout-row details { margin-top: var(--s-2); }
.payout-row .claim-link { word-break: break-all; }
.payee-form { max-width: 520px; }
.hidden { display: none; }

/* ===================================================================================================================
   UX OVERHAUL (2026-10-30) — app layer only. Core + brand layers above are untouched.
   Rules kept here: Inter only; radii 6/10/14/20/999 via tokens; yellow #FAE116 is a FILL, or text only on black; tap targets >= 44px;
   data shows as vertical lists; no emoji (icons are the CSS masks below).
   =================================================================================================================== */
.ico { display: inline-block; width: 22px; height: 22px; flex: none; background-color: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.ico-menu { --ico: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M4%207h16M4%2012h16M4%2017h16%27/%3E%3C/svg%3E"); }
.ico-close { --ico: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M6%206l12%2012M18%206L6%2018%27/%3E%3C/svg%3E"); }
.ico-back { --ico: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M15%205l-7%207%207%207%27/%3E%3C/svg%3E"); }
.ico-chev { --ico: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M9%205l7%207-7%207%27/%3E%3C/svg%3E"); }
.ico-check { --ico: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M5%2012.5l4.5%204.5L19%207.5%27/%3E%3C/svg%3E"); }
.ico-events { --ico: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Crect%20x=%273.5%27%20y=%275%27%20width=%2717%27%20height=%2715%27%20rx=%272.5%27/%3E%3Cpath%20d=%27M3.5%2010h17M8%203v4M16%203v4%27/%3E%3C/svg%3E"); }
.ico-ticket { --ico: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M4%208a2%202%200%200%200%200%204v0a2%202%200%200%201%200%204h0v2h16v-2a2%202%200%200%201%200-4V8a2%202%200%200%201%200-4H4z%27%20transform=%27translate(0%201)%27/%3E%3Cpath%20d=%27M14%206v12%27%20stroke-dasharray=%272%202%27/%3E%3C/svg%3E"); }
.ico-person { --ico: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Ccircle%20cx=%2712%27%20cy=%278%27%20r=%274%27/%3E%3Cpath%20d=%27M4.5%2020c1-4%204-6%207.500-6s6.500%202%207.500%206%27/%3E%3C/svg%3E"); }
.ico-users { --ico: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Ccircle%20cx=%279%27%20cy=%279%27%20r=%273.5%27/%3E%3Cpath%20d=%27M2.500%2019.500c.8-3.300%203.300-5%206.500-5s5.700%201.700%206.500%205%27/%3E%3Ccircle%20cx=%2717.500%27%20cy=%278%27%20r=%272.800%27/%3E%3Cpath%20d=%27M17%2013.800c2.500.2%204.200%201.700%204.800%204.200%27/%3E%3C/svg%3E"); }
.ico-shield { --ico: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M12%203l7.500%203v5.500c0%204.500-3%207.500-7.500%209.500-4.500-2-7.500-5-7.500-9.500V6z%27/%3E%3C/svg%3E"); }
.ico-inbox { --ico: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Crect%20x=%273%27%20y=%275.500%27%20width=%2718%27%20height=%2713%27%20rx=%272.500%27/%3E%3Cpath%20d=%27M3.500%207.500l8.500%206%208.500-6%27/%3E%3C/svg%3E"); }
.ico-store { --ico: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M5%208h14l-1%2012H6z%27/%3E%3Cpath%20d=%27M9%208V6.500a3%203%200%200%201%206%200V8%27/%3E%3C/svg%3E"); }
.ico-help { --ico: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Ccircle%20cx=%2712%27%20cy=%2712%27%20r=%279%27/%3E%3Cpath%20d=%27M9.500%209.500a2.600%202.600%200%201%201%203.700%202.300c-.8.400-1.200%201-1.200%201.900M12%2017h.01%27/%3E%3C/svg%3E"); }
.ico-trophy { --ico: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M8%204h8v5a4%204%200%200%201-8%200zM8%206H4.500a3%203%200%200%200%203.500%204M16%206h3.500a3%203%200%200%201-3.500%204M12%2013v4M8.500%2020h7%27/%3E%3C/svg%3E"); }
.ico-tools { --ico: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M14.500%206.500a4%204%200%200%200-5.200%205.200L4%2017l3%203%205.300-5.300a4%204%200%200%200%205.200-5.200l-2.500%202.500-2.300-.7-.7-2.300z%27/%3E%3C/svg%3E"); }
.ico-book { --ico: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M5%204.500h10a3%203%200%200%201%203%203V20H8a3%203%200%200%201-3-3z%27/%3E%3Cpath%20d=%27M5%2017a3%203%200%200%201%203-3h10%27/%3E%3C/svg%3E"); }
.ico-swap { --ico: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M4%208h13l-3-3M20%2016H7l3%203%27/%3E%3C/svg%3E"); }
.ico-gear { --ico: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Ccircle%20cx=%2712%27%20cy=%2712%27%20r=%273%27/%3E%3Cpath%20d=%27M12%203v3M12%2018v3M3%2012h3M18%2012h3M5.600%205.600l2.100%202.100M16.300%2016.300l2.100%202.100M5.600%2018.400l2.100-2.100M16.300%207.700l2.100-2.100%27/%3E%3C/svg%3E"); }
.ico-whistle { --ico: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Ccircle%20cx=%279%27%20cy=%2714%27%20r=%275%27/%3E%3Cpath%20d=%27M14%2011l7-3v5l-4%201.500M9%2014h.01%27/%3E%3C/svg%3E"); }
.ico-chart { --ico: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M4%2020V10M10%2020V4M16%2020v-7M22%2020H2%27/%3E%3C/svg%3E"); }
.ico-card { --ico: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Crect%20x=%273%27%20y=%275.500%27%20width=%2718%27%20height=%2713%27%20rx=%272.500%27/%3E%3Cpath%20d=%27M3%2010h18M7%2015h4%27/%3E%3C/svg%3E"); }
.ico-logout { --ico: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M10%204H5.500A1.500%201.500%200%200%200%204%205.500v13A1.500%201.500%200%200%200%205.500%2020H10M15%208l4%204-4%204M19%2012H9%27/%3E%3C/svg%3E"); }

/* ---- header: brand + profile box + hamburger on row one; main links on row two (mobile first) ---- */
.topbar-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand me menu" "links links links"; gap: 0 var(--s-3); align-items: center; padding: var(--s-1) var(--s-4) 0; }
.topbar .brand { grid-area: brand; }
.topbar .brand .name { display: none; }
.hdr-me { grid-area: me; justify-self: end; display: flex; align-items: center; gap: var(--s-2); min-width: 0; max-width: 100%; overflow: hidden; min-height: var(--control-h); text-decoration: none; color: #fff; border-radius: var(--r-control); padding: 0 var(--s-1); }
.hdr-me:hover { background: rgba(255, 255, 255, .08); }
.hdr-me .avatar { width: 36px; height: 36px; border-radius: var(--r-pill); object-fit: cover; background: var(--n-800); border: 2px solid var(--accent-fill); flex: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; color: #fff; font-size: var(--fs-small); }
/* The name/role column must SHRINK and truncate, never overflow: on a small phone a long
   role line ("League admin · Owner · Player · Boise Bandits") slid left under the logo
   because flex items refuse to shrink below content width without min-width: 0 (2026-11-03). */
.hdr-me .who { display: flex; flex-direction: column; align-items: flex-end; text-align: right; min-width: 0; max-width: 100%; overflow: hidden; line-height: 1.2; }
.hdr-me .who strong { font-weight: 800; font-size: var(--fs-small); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; max-width: 100%; }
.hdr-me .who span { font-size: var(--fs-label); color: var(--accent-on-dark); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; max-width: 100%; }
@media (max-width: 560px) { .hdr-me .who span { font-size: 10px; } .hdr-me .who strong { font-size: 12px; } }
.hdr-menu { grid-area: menu; position: relative; justify-self: end; }
.hdr-menu > button { min-width: var(--control-h); min-height: var(--control-h); border-radius: var(--r-control); background: none; border: 1px solid var(--on-dark-2); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); padding: 0 var(--s-3); cursor: pointer; font: inherit; font-weight: 800; font-size: var(--fs-small); text-transform: uppercase; }
.hdr-menu > button:hover, .hdr-menu > button[aria-expanded="true"] { background: rgba(255, 255, 255, .1); }
.hdr-menu > button .lbl { display: none; }
.hdr-drop { position: absolute; right: 0; top: calc(100% + var(--s-2)); width: min(320px, calc(100vw - 2 * var(--s-4))); max-height: calc(100vh - 90px); overflow-y: auto; background: var(--surface); color: var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow); border: 1px solid var(--line); padding: var(--s-2); z-index: 60; }
.hdr-drop h4 { margin: var(--s-3) var(--s-3) var(--s-1); font-size: var(--fs-label); font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.hdr-drop a, .hdr-drop button { display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: var(--control-h); padding: 0 var(--s-3); border-radius: var(--r-control); color: var(--ink); text-decoration: none; background: none; border: 0; font: inherit; font-weight: 600; font-size: var(--fs-body); cursor: pointer; text-align: left; }
.hdr-drop a:hover, .hdr-drop button:hover { background: var(--info-bg); }
.hdr-drop a[aria-current="page"] { background: var(--accent-fill); color: var(--accent-fill-ink); font-weight: 800; }
.hdr-links { grid-area: links; display: flex; gap: var(--s-1); overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--s-4) * -1); padding: 0 var(--s-4); }
.hdr-links::-webkit-scrollbar { display: none; }
.hdr-links a { flex: none; color: var(--on-dark); font-weight: 800; font-size: var(--fs-small); text-transform: uppercase; text-decoration: none; min-height: var(--control-h); padding: 0 var(--s-3); display: inline-flex; align-items: center; gap: var(--s-2); border-bottom: 3px solid transparent; }
.hdr-links a:hover { color: var(--accent-on-dark); }
.hdr-links a[aria-current="page"] { color: var(--accent-on-dark); border-bottom-color: var(--accent-fill); }
/* links out to the league website: quieter than the app's own links, with a small out-arrow */
.hdr-links a.ext { color: var(--on-dark-2); }
.hdr-links a.ext::after { content: "↗"; font-size: 11px; color: var(--accent-on-dark); }
.hdr-links a.ext:hover { color: #fff; }
@media (min-width: 900px) {
  /* Desktop keeps the SAME two-row header as mobile (Alex, 2026-11-03): the old one-row
     desktop grid ("brand links me menu", links overflow:visible) piled the links, the
     profile box and the menu button on top of each other whenever the link row ran out
     of room. Two rows at every width: row two can scroll sideways if it ever has to,
     and nothing can overlap. */
  .hdr-menu > button .lbl { display: inline; }
  .topbar .brand .name { display: inline; }
}

/* ---- back link under the header, on every page except home ---- */
.backbar { max-width: var(--w-page); margin: 0 auto; padding: var(--s-2) var(--s-4) 0; }
.backlink { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--control-h); padding: 0 var(--s-3) 0 var(--s-2); border-radius: var(--r-control); font-weight: 800; font-size: var(--fs-small); text-transform: uppercase; text-decoration: none; color: var(--ink); }
.backlink:hover { background: var(--info-bg); }
.backbar + main { padding-top: var(--s-2); }

/* ---- tap targets ---- */
.btn.small, .tab, .linkbtn, .badge.link, a.badge { min-height: var(--control-h); }
.btn.small { padding: 0 var(--s-4); }
.linkbtn { display: inline-flex; align-items: center; padding: 0 var(--s-2); }
.panel > h2 a.badge { display: inline-flex; align-items: center; min-height: var(--control-h); }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; }
.check { display: flex; align-items: flex-start; gap: var(--s-3); min-height: var(--control-h); padding: var(--s-2) 0; }
.check.big { padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-card); margin-bottom: var(--s-2); background: var(--surface); }
.check.big span { display: flex; flex-direction: column; gap: 2px; }
.payopts { border: 0; padding: 0; margin: 0 0 var(--s-3); }
.payopts legend { font-weight: 800; margin-bottom: var(--s-2); }

/* ---- crests (club logos) + icons on tiles ---- */
.crest { border-radius: var(--r-control); object-fit: contain; background: #fff; border: 1px solid var(--line); flex: none; }
.crest.md { width: 40px; height: 40px; } .crest.sm { width: 28px; height: 28px; border-radius: var(--r-tag); } .crest.lg { width: 56px; height: 56px; border-radius: var(--r-card); }
.crest.ph { display: inline-flex; align-items: center; justify-content: center; background: var(--surface-panel); color: #fff; font-weight: 900; border: 0; }
.crest.sm.ph { font-size: var(--fs-small); } .crest.lg.ph { font-size: 24px; }
.card .ico { width: 28px; height: 28px; margin-bottom: var(--s-2); color: var(--ink); }
.tile { display: flex; flex-direction: column; }
.hero .heroline { display: flex; align-items: center; gap: var(--s-3); }
/* crests on dark surfaces sit directly on the panel — transparent, no white box
   (Alex, 2026-11-04; the website clubs treatment). Light surfaces keep the tile. */
.hero .crest, .evclubs .crest, .evbox .crest { background: transparent; border-color: transparent; }
/* slim home identity strip (Alex, 2026-11-04: the full hero panel was "too clunky") */
.hero-home { padding: var(--s-4) var(--s-5); }
.hero-home .hero-id { margin-bottom: 0; gap: var(--s-3); flex-wrap: nowrap; }
.hero-home .hero-photo, .hero-home .hero-media-ph { width: 44px; height: 44px; border-radius: 50%; }
.hero-home .hero-media-ph { font-size: 16px; }
.hero-home .hero-idtxt h1 { font-size: 22px; margin: 0 0 2px; }
.hero-home .hero-clubline { gap: var(--s-2); }
.hero-home .hero-clubline p { font-size: var(--fs-small); }
/* player home hero (Alex, 2026-11-03): the club-page captain treatment — a modest square
   photo beside the name and role line inside the dark panel, not a full-bleed banner.
   (.hero-media is gone with the round-2 banner layout.) */
.hero-id { display: flex; gap: var(--s-4); align-items: center; flex-wrap: wrap; margin-bottom: var(--s-5); }
.hero-idtxt { min-width: 0; }
.hero-idtxt h1 { margin: 0 0 var(--s-2); }
.hero-photo { width: 96px; height: 96px; object-fit: cover; border-radius: var(--r-control); flex: none; display: block; }
.hero-media-ph { width: 96px; height: 96px; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 34px; color: #fff; background: var(--n-800); border-radius: var(--r-control); }
.hero-body { padding: var(--s-6); }
.hero-id .hero-clubline { margin-bottom: 0; }
.hero-clubline { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-5); }
.hero-clubline p { margin: 0; }
.hero-clubline .crest { margin: 0; }
@media (max-width: 480px) { .hero-body { padding: var(--s-5); } }

/* ---- event boxes: floating black cards, image on top, white title, yellow date ---- */
.evlist { display: grid; gap: var(--s-5); grid-template-columns: 1fr; margin-bottom: var(--s-5); }
@media (min-width: 720px) { .evlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.evbox { display: block; background: #0b0b0b; color: #fff; border-radius: var(--r-panel); overflow: hidden; text-decoration: none; box-shadow: var(--shadow-panel); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.evbox:hover { transform: translateY(-4px); box-shadow: 0 28px 54px rgba(0, 0, 0, .38), 0 8px 18px rgba(0, 0, 0, .28); }
.evimg { aspect-ratio: 16 / 8.4; background: var(--n-800); overflow: hidden; }
.evimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.evbody { padding: var(--s-4) var(--s-5) var(--s-5); }
.evbody h3 { margin: 0 0 var(--s-2); color: #fff; font-size: var(--fs-h2); text-transform: uppercase; line-height: 1.1; }
.evbody p { margin: 0 0 var(--s-1); }
.evwhen { color: var(--accent-on-dark); font-weight: 800; }
.evwhere { color: #fff; font-weight: 600; }
.evclubs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-top: var(--s-3); color: #fff; font-weight: 600; font-size: var(--fs-small); }
.evclubs .crest { border-color: var(--n-600); }
.evstatus { margin-top: var(--s-3); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); font-size: var(--fs-small); font-weight: 600; }
/* Registration status line (Alex, 2026-11-05): plain text with a green SVG check
   or a muted dot — never a filled pill, so the card's one button stands alone. */
.regstat { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); font-weight: 600; line-height: 1.25; white-space: nowrap; }
.regstat .ico { width: 16px; height: 16px; }
.regstat.ok .ico { color: var(--done); }
.regstat.dim { color: var(--ink-2); }
.regstat.bad { color: var(--problem); }
.regdot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .55; flex: none; }
.panel .regstat.dim, .evbox .regstat.dim { color: var(--on-dark-2); }
.panel .regstat.ok .ico, .evbox .regstat.ok .ico { color: #4ADE80; }
.panel .regstat.bad, .evbox .regstat.bad { color: #FCA5A5; }
.evcta { display: inline-flex; align-items: center; min-height: var(--control-h); margin-top: var(--s-3); padding: 0 var(--s-5); border-radius: var(--r-control); background: var(--accent-fill); color: var(--accent-fill-ink); font-weight: 800; }
.evhero { border-radius: var(--r-panel); overflow: hidden; margin-bottom: var(--s-5); box-shadow: var(--shadow-panel); }
.evhero img { width: 100%; height: auto; display: block; }
.hypevid { display: block; width: 100%; max-width: 330px; height: auto; margin: 0 auto; aspect-ratio: 9 / 16; border-radius: var(--r-card); background: var(--n-900); border: 1px solid var(--n-900); box-shadow: var(--shadow); }
/* chooser media block: hype video + About in one shared panel — stacked video-first
   on narrow screens, side by side (video left ~330px, About right) on wide ones */
.mediagrid { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
.mediagrid .mediahead { font-size: var(--fs-label); font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 var(--s-3); }
.mediagrid .hypevid { margin: 0 auto; }
@media (min-width: 860px) {
  .mediagrid { grid-template-columns: 330px 1fr; align-items: start; }
  .mediagrid .hypevid { margin: 0; }
}

/* ---- event page: role switcher + per-role views + compact pass rows ---- */
/* The tabs borrow the league website's treatment: near-black panels, 900-weight
   uppercase labels, squared 10px corners, and the league yellow (#FAE116) on the
   active tab. They sit under the hero in every state and swap the whole page below
   them via ?role=player|coach|spectator — the other roles' sections never render. */
.roleswitch { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: var(--s-5); }
.roletab { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 60px; padding: var(--s-3) var(--s-5); background: var(--surface-panel); color: #fff; border: 1px solid var(--n-800); border-radius: var(--r-control); text-decoration: none; box-shadow: var(--shadow-sm); }
.roletab strong { font-size: var(--fs-h3); font-weight: 900; text-transform: uppercase; letter-spacing: 0.02em; color: #fff; }
.roletab span { color: var(--on-dark); font-weight: 800; font-variant-numeric: tabular-nums; }
.roletab .tabdue { font-size: 12.5px; font-weight: 700; opacity: .72; }
.roletab:hover { border-color: var(--n-600); }
.roletab.on { background: var(--accent-fill); border-color: var(--accent-fill); }
.roletab.on strong { color: var(--accent-fill-ink); }
.roletab.on span { color: var(--accent-fill-ink); }
/* the league-styled header band that opens each role view */
.roleband { background: var(--surface-panel); color: #fff; border-radius: var(--r-panel); box-shadow: var(--shadow-panel); padding: var(--s-5); margin-bottom: var(--s-5); border-bottom: 3px solid var(--accent-fill); }
.roleband-kicker { margin: 0 0 var(--s-1); font-size: var(--fs-label); font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-on-dark); }
.roleband h2 { margin: 0 0 var(--s-2); color: #fff; text-transform: uppercase; }
.roleband-sub { margin: 0; color: var(--on-dark); max-width: 60ch; }
/* coach view: the pass as one hero offer */
.coachoffer .coachname { font-size: var(--fs-h3); margin: 0 0 var(--s-1); }
.coachoffer .coachprice { font-size: 40px; font-weight: 900; letter-spacing: -0.01em; line-height: 1.05; margin: 0 0 var(--s-2); font-variant-numeric: tabular-nums; }
.passlist { display: flex; flex-direction: column; gap: var(--s-4); }
.passgroup .sub { margin-bottom: 0; }
.passrow { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.passgroup .passrow:last-of-type { border-bottom: 0; padding-bottom: var(--s-1); }
.passinfo { flex: 1 1 auto; min-width: 0; }
.passinfo .badge { margin-left: var(--s-2); }
.passinfo .help { margin-top: 2px; }
.passbuy { display: flex; align-items: center; gap: var(--s-3); flex: none; }
.passprice { font-size: var(--fs-lead); font-weight: 900; font-variant-numeric: tabular-nums; }
.row.presel { background: var(--accent-tint); border-radius: var(--r-control); box-shadow: 0 0 0 2px var(--accent-fill); }
/* spectator view: the per-pass pitch line (the pass's own stored description, lifted
   out of help-text grey) + the Finals-night header above the pass list */
.passinfo .passpitch { margin-top: 2px; color: var(--ink); font-weight: 600; font-size: var(--fs-small); }

/* ---- kids-free note + spectator cart (Alex, 2026-11-03) ---- */
.passfree { font-weight: 700; background: var(--accent-tint); border: 1px solid var(--accent-fill); border-radius: var(--r-control); padding: var(--s-2) var(--s-3); margin: var(--s-3) 0 0; }
.cartrow { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.cartrow:last-of-type { border-bottom: 0; }
.cartrow .passinfo { flex: 1 1 auto; min-width: 0; }
.cartrow .passinfo .badge { margin-left: var(--s-2); }
.stepper { display: flex; align-items: center; gap: var(--s-2); flex: none; }
.stepbtn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 20px; font-weight: 800; line-height: 1; cursor: pointer; }
.stepbtn:disabled { opacity: .35; cursor: default; }
.stepqty { min-width: 28px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.cartline { min-width: 76px; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; flex: none; }
.cartline-row { display: flex; justify-content: space-between; gap: var(--s-3); }
.cartrow.presel { background: var(--accent-tint); border-radius: var(--r-control); box-shadow: 0 0 0 2px var(--accent-fill); }

/* ---- the league-app requirement: phone-frame example (Alex, 2026-11-03) ---- */
.appreq { display: flex; gap: var(--s-4); align-items: center; margin-bottom: var(--s-3); }
.phoneframe { flex: none; width: 118px; border: 7px solid #111; border-radius: 20px; overflow: hidden; background: #111; line-height: 0; }
.phoneframe img { width: 100%; height: auto; }

/* ---- spectator gate + order QR ---- */
.qrimg { width: 176px; height: 176px; }
.qrbox { text-align: center; margin: var(--s-3) 0; }
.qrbox .help { margin-top: var(--s-2); }

/* ---- discount code on checkout: a subtle expandable row (Alex, 2026-11-03) ---- */
.disc { margin-top: var(--s-3); }
.disc p { margin: 0; }
.disctoggle { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; font-size: var(--fs-small); color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.discarrow { width: 8px; height: 8px; flex: none; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform var(--t-fast) var(--ease); }
.discarrow.open { transform: rotate(225deg); }
.disc .row.apply { margin-top: var(--s-2); }

/* ---- league merch rail: checkout + player dashboard (Alex, 2026-11-03) ---- */
.merchrail { display: flex; gap: var(--s-3); overflow-x: auto; padding: var(--s-1) 0 var(--s-2); scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.merchcard { flex: 0 0 176px; scroll-snap-align: start; border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-3); background: var(--n-50); }
.merchimg { width: 100%; height: 104px; object-fit: cover; border-radius: var(--r-control); background: var(--n-100); display: block; }
.merchph { display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 900; color: var(--n-400); }
.merchname { font-weight: 700; margin: var(--s-2) 0 0; line-height: 1.3; }
.merchpick { width: 100%; min-height: 44px; margin-top: var(--s-2); border: 1px solid var(--field-line); border-radius: var(--r-control); background: var(--surface); padding: 0 var(--s-2); font: inherit; }
.gatecode { font-size: 22px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.finalshype { border-left: 4px solid var(--accent-fill); background: var(--accent-tint); border-radius: var(--r-control); padding: var(--s-3) var(--s-4); margin-bottom: var(--s-4); }
.finalshype strong { display: block; font-size: var(--fs-lead); line-height: 1.15; margin-bottom: 2px; }
.finalshype p { margin: 0; color: var(--ink-2); }
/* coach view: what-you-get bullets (ul.plain strips markers, so scope them here) */
.coachget .getlist { list-style: disc; padding-left: 22px; margin: 0 0 var(--s-3); }
.coachget .getlist li { padding: 3px 0; }
.coachwhy p { line-height: 1.55; }
/* player view: "How the weekend runs" — a dark league panel, two day columns */
.weekend { background: var(--surface-panel); color: #fff; border-bottom: 3px solid var(--accent-fill); }
.weekend h2 { color: #fff; text-transform: uppercase; }
.weekend .wkintro { color: var(--on-dark); margin: 0 0 var(--s-4); max-width: 62ch; }
.wkgrid { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 860px) { .wkgrid { grid-template-columns: 1fr 1fr; } }
.wkday h3 { margin: 0 0 var(--s-2); color: #fff; text-transform: uppercase; font-size: var(--fs-h3); line-height: 1.15; }
.wkday h3 span { display: block; font-size: var(--fs-label); font-weight: 900; letter-spacing: 0.08em; color: var(--accent-on-dark); margin-bottom: 2px; }
.wkrow { display: flex; gap: var(--s-3); padding: var(--s-2) 0; border-top: 1px solid var(--n-800); }
.wktime { flex: none; width: 84px; font-weight: 900; color: var(--accent-on-dark); font-variant-numeric: tabular-nums; }
.wkrow p { margin: 0; }
.weekend .wkformat { margin: var(--s-4) 0 0; color: var(--on-dark); border-top: 1px solid var(--n-800); padding-top: var(--s-3); }

/* ---- calendar cards ---- */
.calcards { display: grid; gap: var(--s-3); margin-bottom: var(--s-4); }
.calcard { display: flex; gap: var(--s-4); align-items: center; padding: var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-xs); text-decoration: none; min-height: 72px; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.calcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.calcard .caldate { flex: none; width: 56px; text-align: center; background: var(--surface-panel); color: #fff; border-radius: var(--r-control); padding: var(--s-2) 0; line-height: 1.1; }
.calcard .caldate b { display: block; font-size: 22px; font-weight: 900; } .calcard .caldate span { font-size: var(--fs-label); font-weight: 800; text-transform: uppercase; color: var(--accent-on-dark); }
.calcard .calbody { min-width: 0; flex: 1; } .calcard .calbody strong { display: block; } .calcard .calbody span { color: var(--ink-2); font-size: var(--fs-small); }
.calcard .ico { color: var(--ink-2); }

/* ---- club picker with logos ---- */
.cpick-search { width: 100%; min-height: var(--control-h); border: 1px solid var(--field-line); border-radius: var(--r-control); padding: 0 var(--s-3); margin-bottom: var(--s-2); background: var(--surface); }
.cpick-list { display: flex; flex-direction: column; gap: var(--s-2); max-height: 360px; overflow-y: auto; padding: 2px; }
.cpick { display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 56px; padding: var(--s-2) var(--s-3); border: 1px solid var(--field-line); border-radius: var(--r-card); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.cpick:hover { background: var(--info-bg); }
.cpick.on { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); background: var(--accent-tint); }
.cpick-text { display: flex; flex-direction: column; min-width: 0; flex: 1; } .cpick-text span { color: var(--ink-2); font-size: var(--fs-small); }

/* ---- coach pass ---- */
.rolechoice { display: grid; gap: var(--s-3); margin-bottom: var(--s-4); }
.coachwarn { border: 2px solid var(--ink); border-radius: var(--r-card); background: var(--accent-tint); padding: var(--s-4); margin: var(--s-3) 0; }
.coachwarn h3 { margin: 0 0 var(--s-2); text-transform: uppercase; }
.coachwarn p { margin: 0 0 var(--s-2); font-weight: 600; }

/* ---- price ladder + wallet ---- */
.ladder { list-style: none; padding: 0; margin: 0 0 var(--s-3); }
.ladder li { padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-control); margin-bottom: var(--s-2); }
.ladder li.now { border-color: var(--ink); background: var(--accent-tint); }
/* price summary tiers: name, then the big price, then dates, then the total with the fee (scoped so it beats the ul.plain li padding) */
.price-summary .ps-lede { font-weight: 600; }
.price-summary .ladder li { padding: var(--s-4); }
.price-summary .ladder li.now { border: 2px solid var(--ink); }
.price-summary .tier-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.price-summary .tier-name { font-size: var(--fs-label); font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; }
.price-summary .tier-price { font-size: 32px; font-weight: 900; letter-spacing: -0.01em; line-height: 1.05; margin-top: var(--s-1); }
.price-summary .tier-when { color: var(--ink-2); margin-top: var(--s-1); }
.price-summary .tier-total { font-weight: 800; margin-top: var(--s-1); }
.price-summary .tier-note { color: var(--ink-2); font-size: var(--fs-small); margin-top: var(--s-1); }
/* Soft Register is its own sub-section inside the Prices card: soft white callout, thin border, yellow accent edge, quiet gold label — elegant, not a warning */
.price-summary .ps-soft { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent-fill); border-radius: var(--r-card); padding: var(--s-4); margin-top: var(--s-4); box-shadow: var(--shadow-xs); }
.price-summary .ps-soft .ps-tag { display: block; background: none; color: #8C6D00; font-size: var(--fs-label); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; padding: 0; margin-bottom: var(--s-2); }
/* what-you-get list: real bullet markers (ul.plain strips them) */
.price-summary .getlist { list-style: disc; padding-left: 22px; margin: 0 0 var(--s-2); }
.price-summary .getlist li { padding: 2px 0; }
/* About card: paragraphed description with bold section headings (events.js aboutBlocks) */
.desc p { margin: 0 0 var(--s-3); line-height: 1.55; }
.desc p:last-child { margin-bottom: 0; }
.desc .about-h { font-size: 17px; font-weight: 900; letter-spacing: 0.02em; margin: var(--s-4) 0 var(--s-2); }
.desc .about-h:first-child { margin-top: 0; }
.picks { list-style: none; padding: 0; margin: var(--s-3) 0; }
.pick { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-control); margin-bottom: var(--s-2); }
.pick.off { opacity: .65; }

/* ---- My events: big boxes ---- */
.myev { display: grid; gap: var(--s-4); grid-template-columns: 1fr; margin-bottom: var(--s-4); }
@media (min-width: 720px) { .myev { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rolebtn { display: flex; flex-direction: column; gap: 2px; width: 100%; min-height: 56px; padding: var(--s-3) var(--s-4); border: 1px solid var(--field-line); border-radius: var(--r-card); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.rolebtn span { color: var(--ink-2); font-size: var(--fs-small); }
.rolebtn.on { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); background: var(--accent-tint); }
.muted-on-dark { color: #E5E5E5; font-size: var(--fs-small); }
.evwrap { display: flex; flex-direction: column; gap: var(--s-2); align-items: stretch; }
.hero .crest { margin-bottom: var(--s-2); }
.evthumb { max-width: 100%; height: auto; border-radius: var(--r-card); display: block; margin-bottom: var(--s-3); }

/* ---- Club contact (public lead form) ---- */
.cc-club { display: flex; align-items: center; gap: var(--s-3); }
.cc-club .help { margin: 2px 0 0; }
.cc-club .crest { margin: 0; }

/* ---- Modal pop-up (full-screen sheet on small screens) ---- */
.modal-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(3,3,3,.55); display: flex; align-items: center; justify-content: center; padding: var(--s-4); }
.modal-card { background: var(--surface); color: var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow); width: min(680px, 100%); max-height: calc(100dvh - 2 * var(--s-4)); display: flex; flex-direction: column; overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-2) var(--s-4); border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: var(--fs-h2); }
.modal-x { flex: none; width: 44px; height: 44px; border: 0; border-radius: var(--r-control); background: var(--n-100); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
.modal-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: var(--s-4); }
.modal-body .panel:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .modal-overlay { padding: 0; }
  .modal-card { width: 100%; height: 100dvh; max-height: none; border-radius: 0; }
}

/* ---- My Club two tabs (2026-11-05): Roster Manager + Directory ---- */
.mc-hide { display: none; }
.mc-tabs { margin-bottom: var(--s-4); }
.mc-clubrow { margin-bottom: var(--s-3); }
.mc-sel { width: auto; min-width: 230px; max-width: 100%; }
.mc-evlabel { display: flex; align-items: center; gap: var(--s-3); font-weight: 700; }
.mc-evlabel .mc-sel { flex: 1; }
/* Dashboard My Club panel: Roster Manager action + squad-at-a-glance expansion. */
.mc-actions { margin-top: var(--s-3); }
.mc-glance { margin-top: var(--s-3); }
.mc-glance p { margin: 0 0 var(--s-2); }
.mc-glance .grow { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); padding: 3px 0; font-weight: 600; }
.mc-glance .gcounts { color: var(--ink-2); font-size: var(--fs-small); font-weight: 600; white-space: nowrap; }
/* Avatars: photo when the account has one, silhouette otherwise (never a blank circle). */
img.thumb.sil { object-fit: contain; background: var(--n-100); padding: 3px; }
/* The photo is the button that opens the player's league-record line. */
.avbtn { background: none; border: 0; padding: 2px; margin: -2px; cursor: pointer; border-radius: var(--r-tag); min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.avbtn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.statline { display: none; flex-basis: 100%; color: var(--ink-2); font-size: var(--fs-small); font-weight: 600; padding-top: 2px; }
.statline.open { display: block; }
/* Owner player notes. */
.notebody { margin-top: 2px; }
.notebody .notetext { margin: 0 0 var(--s-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.notebody .muted { margin: 0 0 var(--s-2); }
textarea.noteedit { min-height: 88px; margin-bottom: var(--s-2); }
/* League Health: KPI cards, and the retention goal meter (20 segments of 5% on a dark track; the white
   tick sits at 80% = the return goal, a league constant). Yellow sits on dark only. */
.lh-k { display: block; font-size: var(--fs-label); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2); margin-bottom: var(--s-2); }
.lh-v { display: block; font-size: var(--fs-kpi); font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums; }
.lh-goalbox { background: var(--n-900); color: #fff; border-radius: var(--r-card); padding: var(--s-4); margin-top: var(--s-4); }
.lh-goalbox .lh-k { color: var(--on-dark-2); }
.lh-meter { position: relative; display: grid; grid-template-columns: repeat(20, 1fr); gap: 2px; margin: var(--s-2) 0 var(--s-3); }
.lh-seg { height: 14px; border-radius: var(--r-tag); background: var(--n-600); }
.lh-seg.on { background: var(--accent-fill); }
.lh-tick { position: absolute; left: 80%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; }
.lh-goalrow { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; }

/* ===================================================================================================================
   DASHBOARD DESIGN PASS (2026-11-07) — app layer only; core + brand layers untouched.
   Warm the dark panels with restrained yellow INSIDE them (icon chips, accent rules, calendar-tile month bands) — never yellow
   on white. Section headers are plain titles, not boxes. Calendar entries and promotions are tiles in horizontal scroll-snap rows.
   =================================================================================================================== */
.ico-plane { --ico: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M21%203L3%2010.5l7%202.5%202.5%207L21%203z%27/%3E%3Cpath%20d=%27M10%2013L21%203%27/%3E%3C/svg%3E"); }
.ico-camera { --ico: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M4%208h3l1.5-2h7L17%208h3a1%201%200%200%201%201%201v10a1%201%200%200%201-1%201H4a1%201%200%200%201-1-1V9a1%201%200%200%201%201-1z%27/%3E%3Ccircle%20cx=%2712%27%20cy=%2713.5%27%20r=%273.5%27/%3E%3C/svg%3E"); }

/* icon chip: a small yellow icon on a dark chip, beside a section title */
.chip-ico { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: var(--r-control); background: var(--surface-panel); color: var(--accent-on-dark); box-shadow: var(--shadow-xs); }
.chip-ico .ico { width: 18px; height: 18px; margin: 0; }
.dash .panel > h2 .h2-main { display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
.dash .panel > h2 .chip-ico { width: 28px; height: 28px; background: rgba(255, 255, 255, .1); box-shadow: none; }
.dash .panel > h2 .chip-ico .ico { width: 16px; height: 16px; }

/* section titles are titles, not boxes */
.dash-sec { margin: 0 0 var(--s-5); }
.sechead { margin: 0 0 var(--s-3); }
.sechead-row { display: flex; align-items: center; gap: var(--s-3); }
h2.sec-title { flex: 1; min-width: 0; margin: 0; font-size: 24px; line-height: 1.1; overflow-wrap: anywhere; }
.sec-sub { margin: var(--s-2) 0 0 calc(32px + var(--s-3)); color: var(--ink-2); font-size: var(--fs-small); }
.sec-link { flex: none; display: inline-flex; align-items: center; min-height: var(--control-h); font-weight: 800; font-size: var(--fs-small); color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* horizontal tile rows: scroll-snap; exactly two tiles visible on a phone, the rest swipe */
.tilerow { display: flex; gap: var(--s-3); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: var(--s-1) 0 var(--s-4); margin: 0; }
.tilerow > * { flex: 0 0 calc((100% - var(--s-3)) / 2); min-width: 0; scroll-snap-align: start; }
@media (min-width: 640px) { .tilerow > * { flex-basis: 184px; } }
.tilegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-3); margin-bottom: var(--s-3); }

/* calendar-page tile: dark month band (yellow on dark), the date big, the title under it */
.caltile { display: flex; flex-direction: column; min-height: 168px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-xs); overflow: hidden; text-decoration: none; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.caltile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.caltile-band { background: var(--surface-panel); color: var(--accent-on-dark); padding: var(--s-2) var(--s-2); text-align: center; font-size: var(--fs-label); font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.caltile-day { display: block; padding: var(--s-3) var(--s-2) var(--s-1); text-align: center; font-size: 44px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.caltile-day.span { font-size: 32px; padding-top: calc(var(--s-3) + 6px); }
.caltile-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; padding: 0 var(--s-3); text-align: center; font-size: var(--fs-small); font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.caltile-time { margin-top: auto; padding: var(--s-1) var(--s-3) var(--s-3); text-align: center; color: var(--ink-2); font-size: var(--fs-label); }

/* promotion tile: dark gradient, a yellow accent rule and chip inside it, teaser, "Details" */
.promotile { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); min-height: 168px; padding: var(--s-4); border: 0; border-top: 3px solid var(--accent-fill); border-radius: var(--r-card); background: var(--surface-panel); color: #fff; box-shadow: var(--shadow-sm); font: inherit; text-align: left; cursor: pointer; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.promotile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.promotile .chip-ico { background: rgba(255, 255, 255, .1); box-shadow: none; }
.promotile strong { font-weight: 800; font-size: var(--fs-body); line-height: 1.2; color: #fff; }
.promotile-teaser { color: var(--on-dark); font-size: var(--fs-small); line-height: 1.35; }
.promotile-more { margin-top: auto; display: inline-flex; align-items: center; gap: 2px; color: var(--accent-on-dark); font-weight: 800; font-size: var(--fs-small); }
.promotile-more .ico { width: 16px; height: 16px; }
.promo-detail p { margin: 0 0 var(--s-3); }
.promo-detail .row { margin-top: var(--s-4); }

/* greeting panel: league event hero behind a dark gradient; a short yellow rule under the name (inside the dark panel) */
.hero-home { position: relative; overflow: hidden; isolation: isolate; }
.hero-home .hero-body { position: relative; z-index: 2; }
.hero-bgimg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
.hero-home.has-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(3, 3, 3, .8) 0%, rgba(3, 3, 3, .94) 100%); }
.hero-home .hero-idtxt h1::after { content: ""; display: block; width: 44px; height: 3px; margin-top: var(--s-2); border-radius: var(--r-pill); background: var(--accent-fill); }

/* desktop density: the dashboard reads about half as big at 1280px (Alex, 2026-11-07); phone proportions stay as they were */
@media (min-width: 900px) {
  .dash .hero-home { padding: 0; margin-bottom: var(--s-4); }
  .hero-home.has-photo::before { background: linear-gradient(90deg, rgba(3, 3, 3, .96) 0%, rgba(3, 3, 3, .86) 40%, rgba(3, 3, 3, .35) 100%); }
  .dash .hero-home .hero-body { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) var(--s-5); }
  .dash .hero-home .hero-id { flex-wrap: nowrap; gap: var(--s-3); margin-bottom: 0; }
  .dash .hero-home .hero-photo, .dash .hero-home .hero-media-ph { width: 56px; height: 56px; font-size: 20px; }
  .dash .hero-home h1 { font-size: 22px; margin-bottom: var(--s-1); }
  .dash .hero-home .hero-idtxt h1::after { margin-top: 6px; }
  .dash .hero-home .crest.lg { width: 32px; height: 32px; font-size: 16px; }
  .dash .hero-home .hero-clubline { gap: var(--s-2); }
  .dash .hero-home .hero-clubline p { font-size: var(--fs-small); max-width: none; }
  .dash .hero-home .hero-actions { flex: none; flex-wrap: nowrap; gap: var(--s-2); }
  .dash .panel { padding: var(--s-4); margin-bottom: var(--s-4); }
  .dash .panel > h2 { margin: calc(var(--s-4) * -1) calc(var(--s-4) * -1) var(--s-3); padding: var(--s-2) var(--s-4); min-height: 40px; }
  .dash .evlist { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin-bottom: var(--s-4); }
  .dash .evbody { padding: var(--s-3) var(--s-4) var(--s-4); }
  .dash .evbody h3 { font-size: var(--fs-h3); }
  .dash .cards { gap: var(--s-3); margin-bottom: var(--s-4); }
  .dash .card { padding: var(--s-4); }
  .dash-sec { margin-bottom: var(--s-4); }
  h2.sec-title { font-size: 20px; }
}
