/* ===== 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: radial-gradient(115% 90% at 50% 38%, #3c3c3c 0%, #1b1b1c 52%, #000000 100%); 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: radial-gradient(115% 90% at 50% 38%, #3c3c3c 0%, #1b1b1c 52%, #000000 100%); }
.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%; 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-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-tag); background: var(--n-800); border: 2px solid var(--accent-fill); color: #fff; font-weight: 900; font-size: var(--fs-small); flex: none; vertical-align: middle; }
.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); }
.hdr-links a.po-hot { font-weight: 800; }
/* 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 ---- */
/* crests sit directly on the surface — transparent artwork only, never a white box (Alex, 2026-11-09). */
.crest { border-radius: var(--r-control); object-fit: contain; 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); }
/* 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; restored 2026-11-08): plain text with a green SVG check
   or a muted dot — never a filled pill, so the card's one yellow button stands alone. A badge inside a
   status row is never forced yellow (the accent fill is reserved for the card's action). */
.evstatus .badge.plain { background: var(--n-800); color: #fff; }
.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: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; }
/* Product detail popup (Alex, 2026-11-12): a product picture in the merch
   rail or on the shop pages opens the shared modal; clickable pictures show
   a pointer and a focus ring, the big popup picture fills the card width,
   and a photo-less product's letter placeholder grows to popup size. */
.proddetail-img { width: 100%; height: auto; max-height: 340px; object-fit: contain; border-radius: var(--r-card); background: var(--n-100); display: block; }
.proddetail-ph { height: 220px; font-size: 64px; }
.imgbtn { cursor: pointer; }
.imgbtn:focus-visible { outline: 3px solid var(--accent-fill); outline-offset: 2px; }
.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); }
.cpick-current { 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(--ink); box-shadow: inset 0 0 0 2px var(--ink); border-radius: var(--r-card); background: var(--accent-tint); color: var(--ink); margin-bottom: var(--s-2); }
.cpick-current .crest { background: #0b0b0b; padding: 5px; }
.cpick-sel { margin-left: auto; background: #F9E211; color: #111; font-weight: 700; font-size: var(--fs-small); line-height: 1; padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.cpick-current-wrap:empty { display: none; }

/* ---- 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: pronounced by structure
   only (Alex 2026-11-10) — white ground, a strong 2px black border, a real shadow, and a
   bold black header strip. No yellow tint or glow anywhere in it. */
.price-summary .ps-soft { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r-card); padding: var(--s-4); margin-top: var(--s-4); box-shadow: var(--shadow); overflow: hidden; }
.price-summary .ps-soft .ps-tag { display: block; background: var(--ink); color: #fff; font-size: var(--fs-label); font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; padding: var(--s-2) var(--s-4); margin: calc(var(--s-4) * -1) calc(var(--s-4) * -1) var(--s-3); }
/* 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; }
/* One price covers…: the flashy box (Alex 2026-11-10). The prices above stay plain on
   purpose; what you get is the showpiece — a black panel with a real drop shadow, brand
   yellow heading and markers, white list text. */
.price-summary .ps-gets { background: var(--n-950); color: #fff; border-radius: var(--r-card); padding: var(--s-4) var(--s-5); margin-top: var(--s-4); box-shadow: var(--shadow-panel); }
.price-summary .ps-gets-title { color: #F9E211; font-size: var(--fs-h3); font-weight: 900; text-transform: uppercase; margin: 0 0 var(--s-3); }
.price-summary .ps-gets .getlist { margin: 0; }
.price-summary .ps-gets .getlist li { padding: 3px 0; color: #fff; }
.price-summary .ps-gets .getlist li::marker { color: #F9E211; }
/* 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; }
}

/* ===== 2026-11-03 nav/registration fixes ===== */
/* Less yellow: add-to-cart is black with yellow text; the one primary (checkout/continue) stays yellow. */
.btn.addcart { background: var(--ink); color: var(--accent-fill); box-shadow: none; }
.btn.addcart:hover { background: var(--n-800); }
/* Equal-height card rows; the action pins to the bottom of each card. */
.merchrail { align-items: stretch; }
.merchcard { display: flex; flex-direction: column; }
.merchcard > :last-child { margin-top: auto; }
.shop-item { align-items: stretch; }
.shop-item-body { display: flex; flex-direction: column; }
.shop-item-body > :last-child { margin-top: auto; }
/* Slide-out drawer: from the right on desktop, a full sheet on mobile. */
.drawer-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(3,3,3,.55); display: flex; justify-content: flex-end; }
.drawer-panel { background: var(--surface); color: var(--ink); width: min(560px, 100%); height: 100dvh; display: flex; flex-direction: column; box-shadow: var(--shadow-panel); animation: drawer-in var(--t-med) var(--ease); }
.drawer-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); }
.drawer-head h2 { margin: 0; font-size: var(--fs-h2); }
.drawer-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; }
.drawer-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: var(--s-4); flex: 1; }
.drawer-body .panel:last-child { margin-bottom: 0; }
@keyframes drawer-in { from { transform: translateX(32px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 640px) { .drawer-panel { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .drawer-panel { animation: none; } }
/* "One price covers the whole weekend": league black, yellow heading, check list. */
.weekend-included { background: var(--n-900); color: var(--on-dark); border-radius: var(--r-panel); padding: var(--s-5); margin-bottom: var(--s-4); box-shadow: var(--shadow-panel); }
.weekend-included h2 { color: var(--accent-on-dark); margin: 0 0 var(--s-3); }
.weekend-included .checklist { list-style: none; margin: 0; padding: 0; }
.weekend-included .checklist li { position: relative; padding: 6px 0 6px 30px; color: #fff; }
.weekend-included .checklist li::before { content: "\2713"; position: absolute; left: 0; top: 6px; color: var(--accent-on-dark); font-weight: 900; }
/* Price tiers: only today's tier is a card; the rest are quiet rows. */
.price-summary .tier-card { border: 2px solid var(--ink); background: var(--accent-tint); border-radius: var(--r-card); padding: var(--s-4); margin: var(--s-3) 0; }
.price-summary .tier-card .tier-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.price-summary .tier-card .tier-name { font-size: var(--fs-label); font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.price-summary .tier-card .tier-price { font-size: 40px; font-weight: 900; line-height: 1.05; margin-top: var(--s-1); }
.price-summary .tier-card .tier-when { color: var(--ink-2); margin-top: var(--s-1); }
.price-summary .tier-card .tier-total { font-weight: 800; margin-top: var(--s-1); }
.price-summary .tier-card .tier-note { color: var(--ink-2); font-size: var(--fs-small); margin-top: var(--s-1); }
.price-summary .tier-rows { list-style: none; margin: 0 0 var(--s-3); padding: 0; }
/* Price ladder as a table (Alex 2026-11-10, round 2): two fixed columns per row —
   tier name with the dates under it (left); price with the with-fee total under it
   (right), both right-aligned so all prices share one right edge and all totals
   share the same edge. Hairlines between rows, no tinted rows; today's tier is
   marked by a small black pill beside its name. */
.price-summary .tier-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-3); align-items: start; padding: var(--s-2) 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: var(--fs-small); }
.price-summary .tier-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.price-summary .tier-name-line { display: flex; align-items: center; gap: var(--s-2); }
.price-summary .tier-row-name { font-weight: 800; color: var(--ink-2); }
.price-summary .tier-row.now .tier-row-name { color: var(--ink); }
.price-summary .tier-today { display: inline-flex; align-items: center; padding: 3px 7px; font-size: 10px; font-weight: 800; line-height: 1; letter-spacing: 0.04em; border-radius: var(--r-tag); background: var(--ink); color: #fff; white-space: nowrap; }
/* Today's tier also carries the match-card winner triangle (same geometry as
   .mcard-arrow in the match-card design system) at the left of its name line,
   pointing at the tier name: you are here today. Current row only. */
.price-summary .tier-tri { width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid var(--ink); flex: none; }
.price-summary .tier-row .tier-when { color: var(--ink-2); margin-top: 0; }
.price-summary .tier-row .tier-note { color: var(--ink-2); margin-top: 0; }
.price-summary .tier-amt { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; text-align: right; }
.price-summary .tier-row-price { font-weight: 800; white-space: nowrap; }
.price-summary .tier-row .tier-total { font-weight: 600; color: var(--ink-2); white-space: nowrap; margin-top: 0; }
/* App download badges (registration confirmation). */
.appdl .row { flex-wrap: wrap; }
.app-badge { display: inline-flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 6px 18px; border-radius: var(--r-control); background: var(--n-900); color: #fff; text-decoration: none; border: 1px solid var(--n-900); }
.app-badge-small { font-size: 10px; line-height: 1.2; }
.app-badge-big { font-size: 18px; font-weight: 800; line-height: 1.2; }
.app-badge.soon { opacity: .6; cursor: default; }
.ordergroup h3 { margin: var(--s-3) 0 var(--s-1); }
.subnav { 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); }
/* Matches / PRO Score entry (bridge): a dark panel, so the yellow handoff button is an accent ON dark — never yellow on the light page */
#matches-entry { background: var(--surface-panel); color: #fff; border-radius: var(--r-panel); box-shadow: var(--shadow-panel); padding: var(--s-5); }
#matches-entry .sec-title { color: #fff; }
#matches-entry .sec-sub { color: var(--on-dark); }
#matches-entry .chip-ico { background: rgba(255,255,255,.1); box-shadow: none; }
#matches-entry .notice { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: #fff; }
/* PRO Score inside the Matches / PRO Score panel: the number is the panel's
   headline figure (white, KPI size — the panel's yellow lives in its button);
   the stats under it sit in a tidy grid of labeled cells, and the squad ·
   club line is a quiet context footer above the button. Indented to the
   section text line. */
#matches-entry .nspro { margin: 0 0 var(--s-3) calc(32px + var(--s-3)); }
#matches-entry .nspro-main { display: flex; align-items: baseline; gap: var(--s-3); }
#matches-entry .nspro-top { display: flex; align-items: center; gap: var(--s-3); }
#matches-entry .nspro-main { margin-left: auto; }
#matches-entry .nspro-ava { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; background: rgba(255,255,255,.08); }
#matches-entry .nspro-v { font-size: var(--fs-kpi); font-weight: 900; line-height: 1.05; color: #fff; font-variant-numeric: tabular-nums; }
#matches-entry .nspro-k { font-size: var(--fs-label); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: #fff; }
#matches-entry .nspro-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-2); margin-top: var(--s-3); }
@media (min-width: 640px) { #matches-entry .nspro-grid { grid-template-columns: repeat(4, 1fr); } }
#matches-entry .nspro-cell { background: rgba(255,255,255,.06); border-radius: var(--r-control); padding: var(--s-2) var(--s-3); }
#matches-entry .nspro-ck { display: block; font-size: var(--fs-label); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--on-dark); }
#matches-entry .nspro-cv { display: block; margin-top: 2px; font-size: var(--fs-h2); font-weight: 800; line-height: 1.15; color: #fff; font-variant-numeric: tabular-nums; }
#matches-entry .nspro-foot { margin: var(--s-3) 0 0; color: var(--on-dark); font-size: var(--fs-small); display: flex; align-items: center; gap: var(--s-2); }
#matches-entry .nspro-crest { width: 20px; height: 20px; object-fit: contain; flex: none; }
#matches-entry .nspro-empty { margin: 0 0 var(--s-3) calc(32px + var(--s-3)); color: var(--on-dark); font-size: var(--fs-small); }
/* League line (PRO Score / PER) on the dashboard card + My statistics */
.lgstats-link { display: block; color: inherit; text-decoration: none; border-radius: var(--r-control); }
.lgstats-link:hover .lgstats-v { text-decoration: underline; text-underline-offset: 3px; }
.lgstats-pro { display: flex; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-2); }
.lgstats-k { font-size: var(--fs-label); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.lgstats-v { font-size: var(--fs-kpi); font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums; }
/* PER / PRO label standard (Alex, 2026-11-09): PER is a proper noun —
   bold at full strength inside its label (asterisked on the stats
   page, which carries the definition line); the PRO Score is the
   career ladder and carries a small (career) sub-label. */
.facts dt .perK { color: var(--ink); font-weight: 800; }
.lgstats-k .proC { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.02em; text-transform: none; color: var(--ink-2); }
.lgstats-note { font-size: var(--fs-small); color: var(--ink-2); margin: var(--s-2) 0 0; }
#matches-entry .nspro-k .proC { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.02em; text-transform: none; color: var(--on-dark-2); }
#matches-entry .nspro-ck .perK { color: #fff; font-weight: 900; }
.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)) / 2.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; }
}

/* greeting panel on phones (Alex, 2026-11-08): the panel reads compact like the desktop bar — one row for
   photo + name/club, actions under it — instead of stacking at full desktop padding with a 96px tile. */
@media (max-width: 899px) {
  .dash .hero-home { padding: 0; margin-bottom: var(--s-4); }
  .dash .hero-home .hero-body { padding: var(--s-4); }
  .dash .hero-home .hero-id { flex-wrap: nowrap; gap: var(--s-3); margin-bottom: var(--s-3); }
  .dash .hero-home .hero-photo, .dash .hero-home .hero-media-ph { width: 64px; height: 64px; font-size: 24px; }
  .dash .hero-home h1 { font-size: 24px; margin-bottom: var(--s-1); }
  .dash .hero-home .hero-idtxt h1::after { margin-top: 6px; }
  .dash .hero-home .crest.lg { width: 36px; height: 36px; font-size: 17px; }
  .dash .hero-home .hero-clubline { gap: var(--s-2); }
  .dash .hero-home .hero-clubline p { max-width: none; }
  .dash .hero-home .hero-actions { gap: var(--s-2); margin-top: 0; }
}

/* ===== captain dashboard (CAPTAIN-DASHBOARD-JOB 2026-11-08): existing tokens only (Inter, radii 6/10/14/20/999, no new colours) ===== */
.cap { display: grid; gap: var(--s-4); }
.cap-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-4); box-shadow: var(--shadow-xs); }
.cap-h { margin: var(--s-4) 0 var(--s-1); }
.cap-list, .cap-rank, .cap-photos { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.cap-match { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); justify-content: space-between; padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-control); }
.cap-match-main { display: grid; gap: 2px; min-width: 0; flex: 1 1 220px; }
.cap-match-main .muted { font-size: var(--fs-small); }
.cap-match-main .badge { justify-self: start; }
.cap-rank-row { display: flex; align-items: center; gap: var(--s-3); min-height: var(--row-h); padding: 0 var(--s-3); border: 1px solid var(--line); border-radius: var(--r-control); }
.cap-rank-n { width: 28px; font-weight: 800; text-align: center; }
.cap-rank-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.cap-rank-ctl { display: flex; gap: var(--s-2); }
.cap-player { padding: var(--s-3) 0; border-top: 1px solid var(--line); display: grid; gap: var(--s-2); }
.cap-player-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); }
.cap-photos { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.cap-photo { display: grid; gap: var(--s-2); justify-items: start; align-content: start; padding: var(--s-2); border: 1px solid var(--line); border-radius: var(--r-control); }
.cap-photo img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-control); background: radial-gradient(115% 90% at 50% 38%, #3c3c3c 0%, #1b1b1c 52%, #000000 100%); }
.cap-photo-meta { display: flex; flex-wrap: wrap; gap: var(--s-1); align-items: center; font-size: var(--fs-small); }
.cap-add summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; }
.cap-fail { flex-basis: 100%; }

/* Owner Roster section (ROSTER-SECTION-JOB 2026-11-08). Existing tokens only. */
.rs-flags { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); align-items: center; margin: var(--s-3) 0; }
.rs-flag { display: inline-flex; gap: var(--s-1); align-items: baseline; padding: 6px 10px; border-radius: var(--r-tag); font-size: var(--fs-small); border: 1px solid var(--line); background: var(--surface); }
.rs-flag-a { border-color: var(--problem); background: var(--problem-bg); color: var(--problem); }
.rs-flag-b { border-color: var(--n-800); background: var(--info-bg); color: var(--ink); }
.rs-squad { margin-bottom: var(--s-4); display: grid; gap: var(--s-3); }
.rs-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.rs-head .sub { margin: 0; }
.rs-list, .rs-pool, .rs-results { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.rs-row, .rs-prow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); min-height: var(--row-h); padding: var(--s-2) var(--s-3); border: 1px solid var(--line); border-radius: var(--r-control); }
.rs-unreg, .rs-p-rostered_unregistered { border-left: 4px solid var(--problem); }
.rs-p-registered_unrostered { border-left: 4px solid var(--n-800); }
.rs-name { flex: 1 1 140px; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.rs-act, .rs-remind, .rs-all, .rs-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.rs-res { padding: var(--s-2) var(--s-3); border-radius: var(--r-control); background: var(--info-bg); font-size: var(--fs-small); }
.rs-sent { background: var(--done-bg); } .rs-failed { background: var(--problem-bg); }
.rs-edit summary { cursor: pointer; list-style: none; display: inline-flex; }
.termshort { border: 1px solid var(--line); border-radius: var(--r-control); padding: var(--s-3) var(--s-4); background: #fffbe6; margin-bottom: var(--s-3); }
.termshort h3 { margin: 0 0 var(--s-2); font-size: var(--fs-body); }
.termshort ul { margin: 0; padding-left: 1.2em; }
.termshort li { margin-bottom: var(--s-1); line-height: 1.5; }

/* ---- password show/hide eye (2026-11-09) ---- */
.ico-eye { --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=%27M1%2012s4-8%2011-8%2011%208%2011%208-4%208-11%208-11-8-11-8z%27/%3E%3Ccircle%20cx=%2712%27%20cy=%2712%27%20r=%273%27/%3E%3C/svg%3E"); }
.ico-eye-off { --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=%27M1%2012s4-8%2011-8%2011%208%2011%208-4%208-11%208-11-8-11-8z%27/%3E%3Ccircle%20cx=%2712%27%20cy=%2712%27%20r=%273%27/%3E%3Cpath%20d=%27M3%203l18%2018%27/%3E%3C/svg%3E"); }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 48px; }
.pw-eye { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); }

/* ---- success toast (2026-11-09) ---- */
.toast.success { background: var(--done); }

/* ===== Commissions package (Alex, 2026-11-11): MD notice, Veem line, playoff bonuses, My Club logo ===== */
.commission-notice { margin-top: var(--s-4); }
.veem-line { display: flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-4); }
.veem-check { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: var(--r-pill); background: var(--done); color: #fff; font-weight: 900; font-size: 13px; flex: none; }
.myclub-logo { height: 30px; width: auto; flex: none; margin-left: var(--s-2); }
.pb-card { display: flex; align-items: stretch; background: var(--surface-panel); color: #fff; border-radius: var(--r-panel); overflow: hidden; text-decoration: none; box-shadow: var(--shadow-panel); margin: 0 0 var(--s-4); }
.pb-card-img { width: 34%; max-width: 200px; min-height: 104px; object-fit: cover; display: block; }
.pb-card-body { padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); justify-content: center; min-width: 0; }
.pb-card-body h3 { margin: 0; color: #fff; }
.pb-card-body .sec-link { color: var(--accent-on-dark); }
.pb-hero { position: relative; border-radius: var(--r-panel); overflow: hidden; background: var(--n-950); box-shadow: var(--shadow-panel); }
.pb-hero-img { width: 100%; height: 230px; object-fit: cover; display: block; }
.pb-hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s-5); color: #fff; background: linear-gradient(180deg, transparent, rgba(0,0,0,.85)); }
.pb-hero-text h1 { margin: 0 0 var(--s-1); color: #fff; }
.pb-kicker { margin: 0 0 var(--s-1); color: var(--accent-on-dark); font-weight: 800; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.06em; }
.pb-sub { margin: 0; color: var(--on-dark); }
.pb-bar { display: flex; gap: 6px; margin: var(--s-3) 0; }
.pb-seg { flex: 1; height: 12px; border-radius: var(--r-pill); background: rgba(255,255,255,.18); }
.pb-seg.on { background: var(--accent-fill); }
.pb-big { font-size: var(--fs-lead); font-weight: 800; margin: var(--s-2) 0; }
.pb-missing { margin: var(--s-2) 0; padding-left: var(--s-5); }
.pb-fr { margin: var(--s-3) 0 0; }
.pb-squads { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-2); }
.pb-squad { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.pb-ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.pb-rung { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-control); }
.pb-rung.current { border-color: var(--accent-fill); background: rgba(250,225,22,.08); }
.pb-rung strong { font-size: var(--fs-lead); }
.pb-rules { margin: 0; padding-left: var(--s-5); display: grid; gap: var(--s-2); }
.rb-fullpop { background: var(--accent-tint); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-control); padding: var(--s-2) var(--s-3); margin: var(--s-2) 0; font-size: var(--fs-small); }

/* Roster builder + player task bar (promoted from the test door with the recap builder, 2026-11-11). */

.rb-squads { display: grid; gap: var(--s-3); margin-bottom: var(--s-4); }

.rb-squad { position: relative; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-sm); padding: var(--s-3); display: grid; gap: var(--s-3); }

.rb-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }

.rb-head .sub, .rb-sq-name { margin: 0; flex: 1 1 120px; min-width: 0; overflow-wrap: anywhere; }

.rb-meta { font-size: var(--fs-small); }

.rb-sq-move { display: inline-flex; gap: var(--s-1); }

.rb-sq-move .btn { padding: 0 var(--s-3); min-width: var(--control-h); }

.rb-grip { flex: none; display: inline-flex; align-items: center; justify-content: center; width: var(--control-h); min-height: var(--control-h); padding: 0; border: 0; background: none; color: var(--ink-2); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; border-radius: var(--r-control); }

.rb-grip:hover, .rb-grip:focus-visible { color: var(--ink); background: var(--n-100); }

.rb-grip:active { cursor: grabbing; }

.rb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
/* ROW GEOMETRY (REWORK 2026-11-11): the row has SIX children (grip, rank, avatar, who, stat, acts) and the template
   must name six columns. The old five-column template auto-placed the actions into a second row inside the 44px grip
   column, so Remind / Captain / Remove hung stacked off the card's left edge and every row ballooned. The unregistered
   accent is an inset shadow, never a wider border, so it can never shift a row's geometry or misalign between rows. */
.rb-row { display: grid; grid-template-columns: var(--control-h) 24px 36px minmax(0, 1fr) auto auto; align-items: center; gap: var(--s-1) var(--s-2); min-height: var(--row-h); padding: var(--s-1) var(--s-2) var(--s-1) 0; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--surface); }
.rb-row.rb-unreg { box-shadow: inset 4px 0 0 var(--problem); }
.rb-ava { width: 36px; height: 36px; border-radius: var(--r-pill); object-fit: cover; flex: none; }
.rb-ava.ph { display: inline-flex; align-items: center; justify-content: center; background: var(--n-100); color: var(--ink-2); font-weight: 800; font-size: var(--fs-small); }

.rb-row.rb-fresh { background: var(--done-bg); border-color: var(--done); transition: background 0.4s; }

.rb-row.rb-picked { box-shadow: 0 0 0 3px var(--accent-fill); }

.rb-frozen { grid-template-columns: minmax(0, 1fr) auto; padding-left: var(--s-3); }

.rb-rank { font-weight: 800; text-align: center; color: var(--ink-2); }

.rb-who { display: grid; min-width: 0; }

.rb-name { font-weight: 600; overflow-wrap: anywhere; }

.rb-sub { font-size: var(--fs-label); color: var(--ink-2); font-weight: 600; }

.rb-stat { justify-self: end; }

.rb-acts { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--s-1); }

.rb-move .ico, .rb-x .ico { width: 18px; height: 18px; }

.rb-move, .rb-x { gap: var(--s-1); padding: 0 var(--s-3); }

.rb-move.on { background: var(--accent-fill); color: var(--accent-fill-ink); border-color: var(--accent-fill); }

.rb-x.armed { background: var(--problem); color: #fff; border-color: var(--problem); }

.rb-none { padding: var(--s-4); text-align: center; border: 1px dashed var(--field-line); border-radius: var(--r-control); }

.rb-empty { min-height: var(--row-h); }

.rb-foot { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: center; }

.rb-all { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }

/* the player picker */
.rb-add { position: relative; flex: 1 1 280px; min-width: 0; }

.rb-addrow { display: flex; gap: var(--s-2); }

.rb-addrow .rb-input { flex: 1 1 auto; min-width: 0; }

.rb-pick { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); max-height: min(320px, 50vh); overflow: auto; margin: 0; padding: var(--s-1); list-style: none; background: var(--surface); border: 1px solid var(--ink); border-radius: var(--r-control); box-shadow: var(--shadow-panel); }

.rb-pick[hidden] { display: none; }

.rb-grp { padding: var(--s-2) var(--s-3) var(--s-1); font-size: var(--fs-label); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }

.rb-opt { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); min-height: var(--control-h); padding: var(--s-2) var(--s-3); border-radius: var(--r-tag); cursor: pointer; }

.rb-opt:hover, .rb-opt[aria-selected="true"] { background: var(--accent-tint); }

.rb-opt-name { font-weight: 600; overflow-wrap: anywhere; }

.rb-opt-note { font-size: var(--fs-small); color: var(--ink-2); text-align: right; }

/* add a squad */
.rb-new { display: grid; gap: var(--s-2); margin-bottom: var(--s-4); padding: var(--s-4); border: 1px dashed var(--field-line); border-radius: var(--r-card); }

.rb-new .sub, .rb-new p { margin: 0; }

.rb-divs { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.rb-adddiv { flex: 1 1 120px; }

.rb-plus { font-weight: 900; font-size: 1.2em; line-height: 1; }

.rb-pool { margin-bottom: var(--s-4); }

.rb-pool > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; margin-bottom: var(--s-3); }

.rb-pool > p { margin: 0 0 var(--s-3); }

/* tap-to-move */
.rb-moving { position: sticky; top: calc(var(--control-h) + var(--s-3)); z-index: 20; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-2) var(--s-3); padding: var(--s-3) var(--s-4); margin-bottom: var(--s-3); background: var(--ink); color: #fff; border-radius: var(--r-control); font-weight: 600; }

.rb-moving .btn.ghost { color: #fff; border-color: #fff; }

.rb-squad.rb-target { box-shadow: 0 0 0 3px var(--accent-fill); }

.rb-here { width: 100%; }

/* dragging */
.rb-row.rb-dragging, .rb-squad.rb-dragging { opacity: 0.35; }

.rb-ghost { position: fixed; z-index: 90; pointer-events: none; margin: 0; box-shadow: var(--shadow-panel); background: var(--surface); border-color: var(--ink); opacity: 0.95; }

.rb-squad.rb-ghost { display: block; max-height: 160px; overflow: hidden; }

.rb-drop-before { box-shadow: 0 -4px 0 0 var(--accent-fill); }

.rb-drop-end { box-shadow: 0 4px 0 0 var(--accent-fill); }

.rb-list.rb-drop-end { box-shadow: 0 4px 0 0 var(--accent-fill); }

.rb-squad.rb-drop-over { outline: 2px solid var(--accent-fill); outline-offset: 2px; }

.rb-squad.rb-drop-before { box-shadow: 0 -6px 0 0 var(--accent-fill); }

.rb-squad.rb-drop-end { box-shadow: 0 6px 0 0 var(--accent-fill); }
@media (max-width: 640px) {

  .rb-squad { padding: var(--s-2); }

  .rb-row { grid-template-columns: var(--control-h) 20px 32px minmax(0, 1fr); grid-template-areas: "grip rank ava who" "stat stat stat stat" "acts acts acts acts"; padding: var(--s-1) var(--s-2) var(--s-2) 0; row-gap: var(--s-1); }
  .rb-row .rb-grip { grid-area: grip; } .rb-row .rb-rank { grid-area: rank; } .rb-row .rb-who { grid-area: who; }
  .rb-row .rb-ava { grid-area: ava; width: 32px; height: 32px; }

  .rb-row .rb-stat { grid-area: stat; justify-self: start; padding-left: var(--s-3); }

  .rb-row .rb-acts { grid-area: acts; justify-content: flex-start; padding-left: var(--s-3); }

  .rb-frozen { grid-template-columns: 1fr; grid-template-areas: none; }

  .rb-frozen .rb-stat, .rb-frozen .rb-name { grid-area: auto; padding-left: 0; }

  .rb-add { flex-basis: 100%; }

  .rb-divs .btn { flex: 1 1 40%; }
}

/* ROSTER BUILDER FOLLOW-UP (2026-11-10): hold and boundary tags, the waiting panel, the pool drag grip. Neutral outlines only: the
   registered check stays the green event-card standard and nothing here is a yellow pill. */
.rb-tag { display: inline-flex; align-items: center; justify-self: start; margin-top: 2px; padding: 2px var(--s-2); border: 1px solid var(--ink-2); border-radius: var(--r-tag); background: var(--n-100); color: var(--ink); font-size: var(--fs-label); font-weight: 700; line-height: 1.3; }

.rb-tag-hold { border-style: dashed; }

.rb-tag-bad { border-color: var(--problem); color: var(--problem); background: var(--surface); }

.rb-flagnote { margin-top: 2px; font-weight: 500; }

.rb-wait { margin-bottom: var(--s-4); }

.rb-wait .sub, .rb-wait p { margin: 0 0 var(--s-2); }

.rs-prow .rb-grip { margin-left: calc(var(--s-3) * -1); }

.rs-prow.rb-picked { box-shadow: 0 0 0 3px var(--accent-fill); }

.rs-prow.rb-dragging { opacity: 0.35; }

.rs-prow.rb-ghost { display: flex; }

.rs-prow .rb-move, .rs-prow select { min-height: var(--control-h); }

.rb-ghost .rb-tag, .rb-ghost select { display: none; }

.rr-actions .rb-input { flex: 1 1 14rem; }


/* ============================================================================
   PLAYER TASK BAR (Alex, 2026-11-11) — the seven-step journey under a player
   (builder) or under their event (dashboard). States come from
   server/player-tasks.mjs; this block only paints them. Coming steps are
   hatched so they never read as failures; the optional certifications are
   dashed outlines after a divider and are never counted as missing.
   ============================================================================ */
.ptb-li { list-style: none; margin-top: calc(-1 * var(--s-1)); }

.ptb-strip { display: flex; align-items: center; gap: 3px; }

.ptb-seg { flex: 1 1 0; min-width: 0; height: 10px; border-radius: var(--r-pill); background: var(--n-300); }

.ptb-seg.is-done { background: var(--done); }

.ptb-seg.is-coming { height: 8px; background: repeating-linear-gradient(45deg, var(--n-200) 0 4px, var(--n-50) 4px 8px); border: 1px solid var(--line); }

.ptb-div { flex: 0 0 auto; width: 1px; height: 14px; background: var(--field-line); margin: 0 2px; }

.ptb-optcluster { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px; padding: 4px; margin: -4px; background: none; border: 0; border-radius: var(--r-tag); cursor: pointer; }

.ptb-optcluster .ptb-seg { flex: 0 0 22px; height: 8px; background: var(--surface); border: 1.5px dashed var(--n-400); }

.ptb-optcluster .ptb-seg.is-done { background: var(--done); border-style: solid; border-color: var(--done); }

/* Lookahead rows (Alex, 2026-11-11): the next three steps, always visible
   under the tally. Rows wrap instead of crushing at small widths, so a long
   label or a 'coming' note drops to its own line at 320px rather than
   squeezing unreadable or pushing the bar sideways. */
.ptb-next { margin-top: var(--s-1); }

.ptb-step { flex-wrap: wrap; }

.ptb-step .ptb-lb { min-width: 0; }

.ptb-line { margin: 0; font-size: var(--fs-small); color: var(--ink-2); }

.ptb-det > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 24px; font-size: var(--fs-label); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }

.ptb-det > summary::-webkit-details-marker { display: none; }

.ptb-steps { list-style: none; margin: var(--s-1) 0 0; padding: 0; display: grid; gap: 2px; }

.ptb-step { display: flex; align-items: center; gap: var(--s-2); min-height: 24px; font-size: var(--fs-small); }

.ptb-step.is-todo .ptb-lb { font-weight: 600; }

.ptb-step.is-coming { color: var(--ink-2); }

.ptb-ic { flex: 0 0 16px; text-align: center; }

.ptb-step.is-done .ptb-ic { color: var(--done); font-weight: 800; }

.ptb-note { color: var(--ink-2); font-size: var(--fs-label); }

.ptb-opthead { margin-top: var(--s-2); font-size: var(--fs-label); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }

.ptb-certbtn { display: inline-flex; align-items: center; gap: var(--s-2); padding: 2px 0; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }

/* the player's own copy of the bar, under their event card */
.ptb-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-3); display: grid; gap: var(--s-2); }

.ptb-wrap .ptb { background: none; border: 0; padding: 0; }

.ptb-head { margin: 0; }

.rb-fullpop { background: var(--accent-tint); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-control); padding: var(--s-2) var(--s-3); margin: var(--s-2) 0; font-size: var(--fs-small); }

/* Contest boards + jersey contest (promoted from the test door, Alex 2026-11-11) */
.promo-detail p { margin: 0 0 var(--s-3); }
.promo-board { margin-top: var(--s-4); border-top: 1px solid var(--line); padding-top: var(--s-3); }
.promo-board h3 { margin: 0 0 var(--s-2); }
.promo-board-total { font-weight: 700; }
.promo-board-you { font-weight: 700; }
.promo-board-list { list-style: none; margin: var(--s-2) 0 0; padding: 0; }
.promo-board-row { display: flex; align-items: baseline; gap: var(--s-2); padding: 7px 8px; border-radius: 8px; }
.promo-board-row.you { background: var(--n-100); box-shadow: inset 0 0 0 1px var(--accent-fill); }
.promo-board-rank { font-weight: 800; min-width: 2.2em; }
.hdr-links a.po-hot { font-weight: 800; }
.rec-list { list-style: none; margin: 0; padding: 0; }
.rec-row { display: flex; gap: var(--s-3); align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); }
.rec-row:last-child { border-bottom: 0; }
.rec-rank { flex: none; width: 1.9em; font-weight: 800; color: var(--n-500); }
.rec-main { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.rec-meta { font-weight: 600; }
.rec-team { width: 100%; font-size: var(--fs-small); }
.promo-rules { margin-top: var(--s-4); border-top: 1px solid var(--line); padding-top: var(--s-3); }
.promo-rules h3 { margin: 0 0 var(--s-2); }
.promo-rules ul { margin: 0; padding-left: 1.2em; }
.promo-rules li { margin: 0 0 6px; line-height: 1.4; }
.promo-board-youcard { display: flex; align-items: center; gap: var(--s-3); background: #101013; border-radius: var(--r-card); padding: 10px 12px; margin: var(--s-2) 0; }
.promo-board-youdisc { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-fill); color: #000; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.promo-board-youtext { color: #fff; font-weight: 800; }
.promo-board-list .promo-board-rank { flex: none; width: 30px; height: 30px; min-width: 30px; border-radius: 50%; background: var(--n-100); display: inline-flex; align-items: center; justify-content: center; font-size: var(--fs-small); }
.promo-board-row { align-items: center; }
.promo-board-row.podium-1 { background: #101013; }
.promo-board-row.podium-1 .promo-board-rank { background: var(--accent-fill); color: #000; width: 36px; height: 36px; min-width: 36px; font-size: var(--fs-body); }
.promo-board-row.podium-1 .promo-board-name, .promo-board-row.podium-1 .promo-board-tickets { color: #fff; }
.promo-board-row.podium-1 .promo-board-club { color: var(--on-dark); }
.promo-board-row.podium-2 .promo-board-rank, .promo-board-row.podium-3 .promo-board-rank { box-shadow: inset 0 0 0 2px var(--n-300); }
.promo-board-kinds { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.promo-board-kind { padding: 1px 7px; border-radius: 999px; background: var(--n-100); font-size: var(--fs-small); font-weight: 600; }
.promo-board-claimed { padding: 1px 7px; border-radius: 999px; background: var(--accent-fill); color: #000; font-size: var(--fs-small); font-weight: 700; }
.promo-board-unclaimed { padding: 1px 7px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--n-300); color: var(--n-500); font-size: var(--fs-small); font-weight: 600; }
.promo-board-row.podium-1 .promo-board-kind { background: #242428; color: var(--on-dark); }
.promo-board-empty { border: 1px dashed var(--n-300); border-radius: var(--r-card); padding: 12px; line-height: 1.45; }
.promo-board-name { flex: 1; min-width: 0; font-weight: 600; }
.promo-board-club { display: block; font-weight: 400; font-size: var(--fs-small); color: var(--n-600); }
.promo-board-youtag { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--accent-fill); color: #000; font-size: var(--fs-small); font-weight: 800; }
.promo-board-tickets { font-weight: 700; white-space: nowrap; }
/* ===== Jersey contest (Alex, 2026-11-11) ===== */
.jersey-entry-img { width: 100%; max-width: 520px; border-radius: var(--r-card); display: block; margin: 0 0 var(--s-3); }
.jersey-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--s-3); margin: var(--s-3) 0; }
.jersey-pick { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-2); background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-card); cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.jersey-pick img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-control); }
.jersey-pick[aria-pressed="true"] { border-color: var(--n-900); }
.jersey-pick-name { font-weight: 700; }
.jersey-pick-mark { font-size: 13px; color: var(--ink-2); }
.jersey-pick[aria-pressed="true"] .jersey-pick-mark { color: var(--ink); font-weight: 700; }
.jersey-thumb { width: 52px; height: 40px; object-fit: cover; border-radius: var(--r-tag); flex: none; }

/* ===== Test-door parity additions (audit, 2026-11-11): feature CSS that existed only on testreg ===== */
.hero .claimLine { margin: var(--s-4) 0 0; font-size: var(--fs-small); }
.hero .claimLine a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.hero .claimLine a:hover { color: #fff; }
.panel > h2 .btn.ghost { background: var(--accent-fill); color: #000; border: 1px solid transparent; box-shadow: none; }
.hdr-scrollwrap { grid-area: links; position: relative; min-width: 0; margin: 0 calc(var(--s-4) * -1); }
.hdr-scrollwrap > .hdr-links { margin: 0; }
.hdr-scrollwrap.has-r > .hdr-links { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 34px), transparent); }
.hdr-scrollwrap.has-l > .hdr-links { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 34px), transparent); }
.hdr-scrollwrap.has-l.has-r > .hdr-links { -webkit-mask-image: linear-gradient(to right, transparent, #000 34px, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(to right, transparent, #000 34px, #000 calc(100% - 34px), transparent); }
.hdr-chev { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 24px; height: 24px; border-radius: var(--r-pill); background: var(--accent-fill); box-shadow: var(--shadow-sm); opacity: 0; pointer-events: none; transition: opacity var(--t-fast) var(--ease); z-index: 2; }
.hdr-chev::before { content: ''; position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; border-top: 2px solid var(--n-900); border-right: 2px solid var(--n-900); transform: translate(-60%, -50%) rotate(45deg); }
.hdr-scrollwrap.has-r > .hdr-chev { opacity: 1; }
.merchcard:last-child { scroll-snap-align: end; }
.cpick .crest { background: #0b0b0b; padding: 5px; }
#matches-entry .btn.ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.divTgl { margin: var(--s-2) 0; }
.statTiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-2); margin: 0 0 var(--s-4); }
@media (min-width: 640px) { .statTiles { grid-template-columns: repeat(4, 1fr); } }
.statTile { background: var(--n-50); border: 1px solid var(--line); border-radius: var(--r-control); padding: var(--s-3); }
.statTk { display: block; font-size: var(--fs-label); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.statTk .proC { font-size: 10px; font-weight: 600; letter-spacing: 0.02em; text-transform: none; }
.statTv { display: block; margin-top: 2px; font-size: var(--fs-h2); font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.rung { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); background: var(--n-50); border: 1px solid var(--line); border-radius: var(--r-control); padding: var(--s-2) var(--s-3); min-height: 44px; }
.rungK { font-size: var(--fs-label); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.rungV { font-size: var(--fs-h2); font-weight: 800; font-variant-numeric: tabular-nums; }
.rungV.txt { font-size: var(--fs-body); font-weight: 700; }
.tilerow > :last-child { scroll-snap-align: end; }
.ico-grip { --ico: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%3E%3Cg%20fill=%27black%27%3E%3Ccircle%20cx=%279%27%20cy=%276%27%20r=%271.8%27/%3E%3Ccircle%20cx=%2715%27%20cy=%276%27%20r=%271.8%27/%3E%3Ccircle%20cx=%279%27%20cy=%2712%27%20r=%271.8%27/%3E%3Ccircle%20cx=%2715%27%20cy=%2712%27%20r=%271.8%27/%3E%3Ccircle%20cx=%279%27%20cy=%2718%27%20r=%271.8%27/%3E%3Ccircle%20cx=%2715%27%20cy=%2718%27%20r=%271.8%27/%3E%3C/g%3E%3C/svg%3E"); }
.ico-up { --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.4%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M6%2015l6-6%206%206%27/%3E%3C/svg%3E"); }
.ico-down { --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.4%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M6%209l6%206%206-6%27/%3E%3C/svg%3E"); }
.ico-phone { --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.4%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Crect%20x=%277%27%20y=%272%27%20width=%2710%27%20height=%2720%27%20rx=%272%27/%3E%3Cpath%20d=%27M12%2018h.01%27/%3E%3C/svg%3E"); }
.rr-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .6rem; }
.rr-row p { margin: .2rem 0; }
.rr-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .4rem; }
.clubswipe { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none; }
.clubswipe::-webkit-scrollbar { display: none; }
.clubpage { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; margin-bottom: 0; }
.clubfoot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-2); }
.clubdots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; flex: 1 1 auto; }
.cdot { width: 8px; height: 8px; border-radius: 999px; background: var(--line); }
.cdot.on { background: #111; }
.clubnav { min-width: 44px; min-height: 44px; font-size: 20px; line-height: 1; }
a.personlink { display: flex; gap: var(--s-3); align-items: center; flex: 1 1 auto; min-width: 0; min-height: 44px; color: inherit; text-decoration: none; }
ul.people .btn.small { min-height: 44px; display: inline-flex; align-items: center; }
.retreat-hero { width: 100%; max-height: 340px; object-fit: cover; object-position: 50% 22%; border-radius: var(--r-card); display: block; margin-bottom: var(--s-5); background: var(--n-900); }
.retreat-thumb { width: 100%; height: 190px; object-fit: cover; object-position: 50% 35%; border-radius: var(--r-card); display: block; margin-bottom: var(--s-4); background: var(--n-900); }
.retreat-photos { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.retreat-photos img { height: 300px; width: auto; border-radius: var(--r-card); flex: 0 0 auto; }
.evFilters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.evFilters select { flex: 1 1 150px; min-height: 44px; padding: 0 10px; border: 1px solid var(--field-line); border-radius: var(--r-control); background: var(--surface); font: 600 14px var(--font); color: var(--ink); }
.evg { margin: 0 0 18px; }
.evg:last-child { margin-bottom: 2px; }
.evg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 6px; }
.evg-head h3 { font-size: 15px; font-weight: 800; margin: 0; }
.evg-head .muted { font-size: 12.5px; }
.evm-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.evm-res { flex: 0 0 auto; width: 26px; height: 26px; border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center; font: 800 12px var(--font); background: var(--n-100); color: var(--ink-2); }
.evm-res.w { background: var(--done-bg); color: var(--done); }
.evm-res.l { background: var(--problem-bg); color: var(--problem); }
.evm-main { flex: 1 1 auto; min-width: 0; }
.evm-top { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evm-nets { font-size: 12.5px; margin-top: 1px; }
.evm-score { flex: 0 0 auto; font: 800 14px var(--font); color: var(--ink); }
.ptb { background: var(--n-50); border: 1px solid var(--line); border-radius: var(--r-control); padding: var(--s-2) var(--s-3); display: grid; gap: var(--s-1); }
.cert-cards { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cert-card { display: grid; gap: var(--s-1); align-content: start; width: 100%; min-height: var(--control-h); padding: var(--s-4); background: var(--n-50); border: 1.5px dashed var(--field-line); border-radius: var(--r-card); font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.cert-card h3 { margin: 0; display: flex; align-items: center; gap: var(--s-2); }
.cert-card p { margin: 0; }

.ladder { display: grid; gap: var(--s-2); margin: 0 0 var(--s-4); }

/* Cart line furniture (cart fix, 2026-11-11): thumbnails in the registration
   cart and quantity steppers in both carts. */
.cart-thumb { flex: 0 0 auto; width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.qtystep { display: inline-flex; align-items: center; gap: 8px; }
.innerline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
/* ROSTER BUILDER DENSITY PASS (Alex, 2026-11-11 23:50): one compact row per
   player at old-Roster-Manager density. The row carries grip, number, photo,
   name, captain chip and ONE registration indicator; the task bar, the account
   state in words, and the captain / credential / remind / remove tools live in
   the .rb-detail layer behind the row's overflow. The squad summary (players,
   registered count, the full-squad note) lives in the squad header. */
.rb .rb-who { display: flex; align-items: center; gap: var(--s-2); }
.rb .rb-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.rb-ind { width: 32px; height: 32px; border-radius: var(--r-control); background: var(--n-100); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); }
.rb-ind .ico { width: 18px; height: 18px; }
.rb-ind.ok { background: var(--done); color: #fff; }
.rb-ind.bad { background: var(--problem-bg); color: var(--problem); }
.rb-dot { width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--n-300); display: block; }
.rb-more { width: 40px; min-height: 40px; padding: 0; border: 0; background: none; border-radius: var(--r-control); color: var(--ink-2); font-size: 20px; line-height: 1; letter-spacing: 1px; cursor: pointer; }
.rb-more:hover, .rb-row.rb-open .rb-more { background: var(--n-100); color: var(--ink); }
.rb-detail { list-style: none; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--n-50); padding: var(--s-2) var(--s-3); display: grid; gap: var(--s-2); margin-top: calc(-1 * var(--s-1)); }
.rb-msgbox { list-style: none; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--n-50); padding: var(--s-2) var(--s-3); margin-top: calc(-1 * var(--s-1)); }
.rb-det-stat { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.rb-det-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); }
.rb-fullnote { margin: 0; font-size: var(--fs-small); color: var(--ink-2); }
/* STACKED HEADER (Alex, 2026-11-11 23:55): the squad header is one compact band
   so a full 7-player squad AND the next squad's header fit one phone screen. */
.rb .rb-squad { gap: var(--s-2); }
.rb .rb-head { flex-wrap: nowrap; }
.rb .rb-sq-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; flex: 1 1 auto; }
.rb .rb-sq-move { display: inline-flex; gap: var(--s-1); flex: none; }
.rb .rb-sq-move .btn { min-height: 36px; padding: 0 var(--s-2); }
.rb-subhead { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); font-size: var(--fs-small); color: var(--ink-2); }
.rb-subhead .rb-meta strong { color: var(--ink); }
.rb-subhead .rb-capline { display: inline-flex; align-items: center; gap: var(--s-1); }
.rb-foot .rb-rename { flex: 0 1 auto; }
.rb-foot .rb-rename .row { flex-wrap: wrap; margin-top: var(--s-2); max-width: 330px; }
/* PEEK FIT (Alex, 2026-11-11 23:55): tightened until a full squad plus the next
   squad's header share one phone screen — 50px rows, hairline list gaps. */
.rb .rb-row { min-height: 50px; }
.rb .rb-list { gap: 2px; }
.rb .rb-squad { gap: 6px; }
.rb-subhead { line-height: 1.3; row-gap: 2px; }


/* DENSITY PASS phone override (production append, 2026-11-12): the same rules
   the test door carries inside its 640px media block; grid-template-areas is
   reset because the old stacked-areas rule above would otherwise survive. */
@media (max-width: 640px) {
  .rb-row { grid-template-columns: 36px 18px 32px minmax(0, 1fr) auto 36px; grid-template-areas: none; padding: var(--s-1) var(--s-1) var(--s-1) 0; }
  .rb-row .rb-grip { width: 36px; min-height: 40px; }
  .rb-row .rb-ava { width: 32px; height: 32px; }
}

/* DENSITY PASS phone correction (production append, 2026-11-12): on the test
   door the pass replaced the old areas rules outright; here they are
   neutralized so the compact row auto-places exactly as it does there. */
@media (max-width: 640px) {
  .rb-row .rb-grip, .rb-row .rb-rank, .rb-row .rb-who, .rb-row .rb-ava, .rb-row .rb-stat, .rb-row .rb-acts { grid-area: auto; }
  .rb-frozen { grid-template-columns: minmax(0, 1fr) auto; }
}

/* BUILDER REFINEMENTS (Alex, 2026-11-12): black squad bands carrying the
   club's own crest and a yellow division chip; the registration marker moved
   in beside the name and labeled with its word at every width. */
.rb-band { background: var(--ink); color: #fff; border-radius: var(--r-card); padding: var(--s-2) var(--s-3); display: grid; gap: 2px; min-width: 0; }
.rb-band .rb-head { min-width: 0; }
.rb-band .rb-subhead { flex-wrap: wrap; min-width: 0; }
.rb-band .rb-head .sub, .rb-band .rb-sq-name { color: #fff; }
.rb-band .rb-div { background: var(--accent-fill); color: #111; border-radius: var(--r-tag); padding: 2px 8px; font-weight: 800; font-size: var(--fs-small); white-space: nowrap; }
.rb-band .rb-div.unset { background: transparent; color: #fff; border: 1px dashed #888; }
.rb-band .rb-meta, .rb-band .rb-meta-dim, .rb-band .rb-capline, .rb-band .rb-fullnote, .rb-band .rb-meta strong { color: #e8e8e8; }
.rb-band .rb-fullnote a { color: var(--accent-fill); }
.rb-band .rb-role { background: #333; color: #fff; border-radius: var(--r-tag); padding: 1px 6px; }
.rb-band .rb-role.co { background: #222; color: #ccc; }
.rb-band .btn.ghost { color: #fff; border-color: #555; }
.rb-band .rb-grip { color: #ccc; }
.rb-band .regstat.dim { color: var(--on-dark-2); }
.rb-band .regstat.ok .ico { color: #4ADE80; }
.rb-crest { width: 34px; height: 34px; object-fit: contain; border-radius: var(--r-tag); flex: none; }
.rb-row { grid-template-columns: var(--control-h) 24px 36px minmax(0, 1fr) auto; }
.rb-frozen { grid-template-columns: minmax(0, 1fr) auto; }
.rb-ind { width: auto; height: 32px; padding: 0 10px; gap: 6px; border-radius: 999px; font-size: 12px; font-weight: 700; flex: none; }
.rb-ind .ico { width: 15px; height: 15px; }
.rb-ind-t { white-space: nowrap; }
@media (max-width: 640px) {
  .rb-row { grid-template-columns: 36px 18px 32px minmax(0, 1fr) auto; }
  .rb-ind { height: 28px; padding: 0 8px; font-size: 11px; }
  .rb-band { padding: var(--s-2); }
  .rb-crest { width: 28px; height: 28px; }
}
/* Phone fit (2026-11-12): at 390 the captain chip leaves the row — the squad
   band already names the captain — so name + labeled marker keep their room. */
@media (max-width: 640px) {
  .rb-row .rb-role.co { display: none; }
}
/* Phone name room (2026-11-12): trim row chrome at 390 so the name keeps its
   full width beside the labeled marker; the whole row stays the tap target. */
@media (max-width: 640px) {
  .rb-row { grid-template-columns: 30px 14px 28px minmax(0, 1fr) auto; column-gap: 6px; }
  .rb-grip { width: 30px; min-width: 0; }
  .rb-ava, .rb-ava img, .rb-ava .rb-init { width: 28px; height: 28px; }
  .rb-more { width: 28px; height: 32px; }
  .rb-ind { padding: 0 7px; gap: 5px; font-size: 10.5px; }
  .rb-ind .rb-dot { display: none; }
  .rb .rb-who { gap: 6px; }
}

/* PROD LEGACY MEDIA CORRECTION (2026-11-12): the pre-density phone block
   that survived prod's audit merge still padded the row box and the acts
   cell; both are retired so prod rows match the test door exactly. */
@media (max-width: 640px) {
  .rb-row { padding: 0 var(--s-2); row-gap: 0; }
  .rb-row .rb-acts { padding-left: 0; }
}

@media (max-width: 640px) {
  .rb-row { padding: 0 4px 0 0; }
}

/* LADDER SPICE (Alex, 2026-11-12): the ladder starts at 2 squads (the $0 rung
   is never shown) and carries real presence: black tier badges with yellow
   numbers, the owner's next tier as a black band with a yellow amount chip. */
.pb-tier { flex: none; width: 38px; height: 38px; border-radius: var(--r-control); background: var(--ink); color: var(--accent-fill); font-weight: 800; font-size: var(--fs-lead); display: inline-flex; align-items: center; justify-content: center; }
.pb-rung-label { flex: 1; display: inline-flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; font-weight: 600; }
.pb-flag { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--n-200); color: var(--ink); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.pb-rung.current { background: rgba(250, 225, 22, .10); }
.pb-rung.next { background: var(--ink); border-color: var(--ink); color: #fff; }
.pb-rung.next .pb-tier { background: var(--accent-fill); color: #111; }
.pb-rung.next .pb-flag { background: var(--accent-fill); color: #111; }
.pb-rung.next .pb-amt { background: var(--accent-fill); color: #111; border-radius: var(--r-tag); padding: 2px 10px; }

/* ROSTER BUILDER PASS 2 (Alex, 2026-11-12): one-line prices (no pale-yellow box,
   no four-row ladder), event tabs across the top, squad tools and identity tools. */
.rb-sizenote { margin: var(--s-2) 0 0; }
.rb-prices { margin: var(--s-2) 0 0; color: var(--ink); }
.rb-tabs { display: flex; gap: var(--s-2); overflow-x: auto; padding: var(--s-2) 0 var(--s-1); scrollbar-width: none; }
.rb-tabs::-webkit-scrollbar { display: none; }
.rb-tab { flex: none; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--n-300, #c9c9c9); background: var(--panel); color: var(--ink); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.rb-tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.rb-tab-tag { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; opacity: .65; }
.rb-div.unset { cursor: pointer; font: inherit; }
.rb-sq-rm.armed { background: var(--problem); color: #fff; border-color: var(--problem); }
.rb-editname { display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; margin-top: var(--s-2); }
.rb-editname .rb-sub { flex-basis: 100%; margin: 0; }
.rb-file { display: none; }
.rb-det-edit { display: flex; gap: var(--s-2); align-items: flex-start; flex-wrap: wrap; margin-top: var(--s-2); }

/* Squad footer band (Alex, 2026-11-12): the full-squad playoff-bonus note closes the
   squad block in the same black band treatment as the header. */
.rb-footband { display: block; }
.rb-footline { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.rb-footline .rb-crest { width: 22px; height: 22px; }
.rb-foot-name { font-weight: 800; letter-spacing: .04em; font-size: 13px; text-transform: uppercase; }
/* Invitation Manager (Alex, 2026-11-12): Playoffs + Invitation Manager side by side on the club dashboard. */
.dash-duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); align-items: start; }
.dash-duo .sec-title { font-size: 21px; }
.inv-row { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-2) 0; border-bottom: 1px solid #e7e7e7; }
.inv-main { flex: 1; min-width: 0; }
.inv-main p { margin: 2px 0; }
.inv-url { font-size: 12px; color: #666; overflow-wrap: anywhere; }
.inv-btns { display: flex; gap: 6px; flex: none; align-items: center; }
.inv-film { padding: var(--s-2) 0; border-bottom: 1px solid #e7e7e7; }
.inv-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.inv-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.inv-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.inv-frame { width: 100%; height: 100%; border: 0; display: block; }
.inv-filmrow { display: flex; align-items: center; gap: var(--s-2); margin-top: 6px; }
.inv-filmrow strong { flex: 1; min-width: 0; }
@media (max-width: 560px) { .inv-row { flex-wrap: wrap; } }


/* Share card (Alex, 2026-11-12): the generated "I'm in" card preview on the
   success panel and the Contest page. */
.share-card-img { width: 100%; max-width: 320px; border-radius: 14px; display: block; }
.share-card-btns { margin-top: 10px; }

.share-opts { flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.share-custom { width: 100%; max-width: 420px; margin: 4px 0 10px; }
.share-claim { margin-top: 10px; }
.share-claim-input { flex: 1; min-width: 200px; }
.share-claim-row { gap: 8px; }

/* ROSTER UI BATCH (Alex, 2026-11-12): the section collapse chevron, the Events box with
   its side panel, the squad-size note inside the black band, and the per-player message
   chooser beside the registration marker. */
.ico-msg { --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%2011.5a8.38%208.38%200%200%201-.9%203.8%208.5%208.5%200%200%201-7.6%204.7%208.38%208.38%200%200%201-3.8-.9L3%2021l1.9-5.7a8.38%208.38%200%200%201-.9-3.8%208.5%208.5%200%200%201%204.7-7.6%208.38%208.38%200%200%201%203.8-.9h.5a8.48%208.48%200%200%201%208%208v.5z%27/%3E%3C/svg%3E"); }
.rb-foldbtn { flex: none; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-control); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.rb-foldbtn .ico { width: 18px; height: 18px; transform: rotate(90deg); transition: transform var(--t-fast) var(--ease); }
.rb-foldbtn[aria-expanded="false"] .ico { transform: rotate(0deg); }
.rb-events { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel); padding: var(--s-2) var(--s-3) var(--s-3); margin: 0 0 var(--s-3); }
.rb-events-head { display: flex; align-items: center; gap: var(--s-2); }
.rb-events-title { margin: 0; flex: 1; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.rb-evtbtn { flex: none; width: 40px; min-height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.rb-evtbtn .ico { width: 20px; height: 20px; }
.rb-events .rb-tabs { padding: var(--s-2) 0 0; }
.rb-sqnote { font-size: 11px; line-height: 1.25; color: #c9c9c9; white-space: nowrap; }
.rb-band .rb-sqnote a { color: var(--accent-fill); }
@media (max-width: 640px) {
  .rb .rb-head { flex-wrap: wrap; }
  .rb-sqnote { order: 9; flex-basis: 100%; white-space: normal; }
}
.rb-evtlinks { display: grid; gap: var(--s-2); margin-bottom: var(--s-4); }
.rb-evtlink { display: block; padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-control); background: var(--surface); color: var(--ink); font-weight: 700; text-decoration: none; }
.rb-evtlink:hover { border-color: var(--ink); }
.rb-evtprice-now { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin: 0 0 var(--s-2); }
.rb-evtprice-now strong { font-size: 28px; font-weight: 900; }
.rb-evtprice-next { margin: 0 0 var(--s-2); font-weight: 600; }
.rb-msg { display: inline-flex; align-items: center; gap: var(--s-1); flex: none; }
.rb-msgbtn { width: 32px; height: 32px; padding: 0; border: 0; background: none; border-radius: var(--r-control); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.rb-msgbtn:hover, .rb-msg.open .rb-msgbtn { background: var(--n-100); color: var(--ink); }
.rb-msgbtn .ico { width: 17px; height: 17px; }
.rb-msgmenu { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.rb-msgitem { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; min-height: 40px; }
.rb-msgitem.off { opacity: .45; }
.rb-msgpick { display: block; margin-top: 8px; }
.rb-rev-open { font-size: 12px; font-weight: 700; color: #555; align-self: center; }
.rb-rev-note { width: 100%; box-sizing: border-box; margin: 10px 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.rb-draft { display: block; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; margin-top: 6px; text-decoration: none; color: var(--ink); background: var(--surface); }
.rb-draft-h { display: block; font-weight: 800; font-size: 13px; }
.rb-draft-p { display: block; font-size: 12.5px; color: #555; margin-top: 2px; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .rb-msgbtn { width: 28px; height: 28px; }
}

/* ---- contest cards: banner photo, collapse, board paging (Alex, 2026-11-12) ---- */
.contest-head { cursor: pointer; }
.contest-chev { flex: none; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid #fff; transition: transform var(--t-fast) var(--ease); }
.contest-card.collapsed .contest-chev { transform: rotate(-90deg); }
.contest-card.collapsed .contest-banner, .contest-card.collapsed .contest-body { display: none; }
.contest-banner { display: block; width: 100%; height: 148px; object-fit: cover; object-position: center 42%; border-radius: var(--r-control); margin: 0 0 var(--s-4); }
.contest-banner.b-media { object-position: center 38%; }
.contest-banner.b-jersey { object-position: center 30%; }
.contest-banner.b-crowd { object-position: center 38%; }
.contest-banner.b-finals { object-position: center 46%; }
.promo-board-pager > .btn { margin-top: var(--s-3); }
@media (max-width: 640px) { .contest-banner { height: 118px; } }

/* Event panel polish + in-portal pop-up (Alex, 2026-11-12). */
.rb-evtprices { border-top: 1px solid var(--line); padding-top: 10px; }
.rb-evtprice-now { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rb-evtprice-now strong { font-size: 20px; }
.rb-evtsizes { border-top: 1px solid var(--line); padding-top: 10px; }
.rb-evtsizes p { line-height: 1.45; }
.rb-evttools { border-top: 1px solid var(--line); padding-top: 8px; }
.rb-evtgroup { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin: 2px 0 4px; }
.pop-overlay { position: fixed; inset: 0; background: rgba(10, 10, 10, 0.62); z-index: 120; display: flex; align-items: center; justify-content: center; padding: 10px; }
.pop-panel { background: var(--surface); border-radius: var(--r-card); width: min(1120px, 100%); height: min(94vh, 100%); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4); }
.pop-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.pop-head h2 { font-size: 17px; margin: 0; flex: 1; min-width: 0; }
.pop-frame { flex: 1; width: 100%; border: 0; background: #fff; }

/* Captain chip on the row + status icons (Alex, 2026-11-12). */
.ico-pen { --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%2020h9%27/%3E%3Cpath%20d=%27M16.5%203.5a2.121%202.121%200%200%201%203%203L7%2019l-4%201%201-4L16.5%203.5z%27/%3E%3C/svg%3E"); }
.rb-row .rb-role { background: var(--ink); color: #fff; border-radius: var(--r-tag); padding: 1px 6px; font-size: 11px; font-weight: 700; }
.rb-tics { display: flex; flex-wrap: wrap; gap: 8px 2px; padding: 8px 2px 2px; }
.rb-tic { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 62px; text-align: center; }
.rb-tic-ic { position: relative; display: inline-flex; }
.rb-tic .ico { width: 24px; height: 24px; color: #C9CDD4; }
.rb-tic.done .ico { color: var(--done); }
.rb-tic.sent .ico { color: var(--ink); }
.rb-tic.coming .ico { color: #DDE0E6; }
.rb-tic-badge { position: absolute; top: -3px; right: -5px; width: 10px; height: 10px; border-radius: 50%; background: #E5484D; border: 2px solid #fff; }
.rb-tic-lb { font-size: 10.5px; font-weight: 700; color: var(--ink); line-height: 1.15; }
.rb-tic-nt { font-size: 9.5px; color: var(--ink-2); line-height: 1.15; }
.rb-tics-cap { display: flex; align-items: flex-start; gap: 2px; border-left: 1px solid var(--line); padding-left: 8px; margin-left: 4px; }
.rb-tics-cap-lb { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); align-self: center; margin-right: 2px; }

/* Duplicate marker + pop-up, spectator count chip (Alex, 2026-11-12). */
.rb-dupe { display: inline-flex; align-items: center; gap: 4px; background: #FFF4D6; color: #7A5200; border: 1px solid #E8C766; border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 800; cursor: pointer; }
.rb-dupe .ico { width: 14px; height: 14px; }
.dupe-panel { width: min(860px, 100%); height: auto; max-height: 94vh; }
.dupe-body { padding: 14px; overflow: auto; }
.dupe-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
@media (max-width: 560px) { .dupe-cards { grid-template-columns: 1fr; } }
.dupe-card { border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px; }
.dupe-card h3 { margin: 8px 0 2px; font-size: 16px; }
.dupe-card img, .dupe-ph { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; font-size: 24px; }
.dupe-facts { margin: 8px 0 0; padding-left: 16px; line-height: 1.45; }
.dupe-q { font-weight: 700; margin: 14px 0 8px; }
.dupe-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rb-tic-count { position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: #E5484D; color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; }

/* ---- Owners Retreat design pass (Alex, 2026-11-12): crest club picker, faces and
   crests in Who's Coming, the black seats strip, the dashboard card club line.
   House tokens only; yellow appears as text on black (the seats strip) or as the
   existing yellow-fill badge, never as an element on white. ---- */
.rt-panel { box-shadow: var(--shadow); }
.rt-h2 { display: inline-flex; align-items: center; gap: var(--s-2); min-width: 0; }
.rt-h2 .crest { border-radius: var(--r-tag); }
.rt-pick { position: relative; }
.rt-pick-btn { display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 48px; padding: var(--s-2) var(--s-3); border: 1px solid var(--field-line); border-radius: var(--r-control); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.rt-pick-btn:hover { border-color: var(--ink); }
.rt-pick-name { flex: 1; min-width: 0; }
.rt-pick-chev { flex: none; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid var(--ink); }
.rt-pick-panel { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: var(--s-3); }
.rt-pick-panel[hidden] { display: none; }
.rt-pick-backdrop { position: fixed; inset: 0; z-index: 55; }
.rt-pick-list { max-height: 320px; }
.rt-seats { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); background: var(--n-900); color: #fff; border-radius: var(--r-control); padding: var(--s-3) var(--s-4); margin-bottom: var(--s-4); font-size: var(--fs-small); }
.rt-seats-n { color: var(--accent-on-dark); font-weight: 800; }
.rt-seats-dot { color: var(--on-dark-2); }
.rt-rsvps { display: flex; flex-direction: column; gap: var(--s-3); }
.rt-rsvps .rt-rsvp { display: flex; gap: var(--s-3); align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-3); }
.rt-rsvp .thumb { flex: none; }
.rt-rsvp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rt-rsvp-top { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.rt-rsvp-crest { flex: none; }
.rt-dash-club { display: flex; align-items: center; gap: var(--s-2); }
.rt-dash-club .crest { flex: none; }

/* FAQ POP-UPS (Alex, 2026-11-12): the exact-FAQ-language pop-up in the dashboard. */
.faq-pop-body { line-height: 1.55; }
.faq-pop-body p { margin: 0 0 10px; }
.faq-pop-body ul.qaList { margin: 0 0 10px; padding-left: 20px; }
.faq-pop-body ul.qaList li { margin: 3px 0; }
.faq-pop-body p.qaQuote { border-left: 3px solid #111; padding-left: 10px; font-weight: 600; }
.faq-pop-foot { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid #e5e5e5; }
.faq-pop-load { margin: 4px 0; }

/* Expanded detail opens with the player's full name, big (Alex, 2026-11-12:
   the compact row can truncate a name; the expanded box never does). */
.rb-det-name { font-size: 19px; font-weight: 800; line-height: 1.2; padding: 2px 0 4px; overflow-wrap: break-word; }

/* Role dashboard toggle (Alex, 2026-11-12): top of the dashboard body,
   one pill per role the signed-in person actually holds. */
.rolebar { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 16px; }
.rolebar button { min-height: 44px; padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.rolebar button.on { background: var(--ink); color: #fff; }

/* Task-bar step icons + phone fit (Alex, 2026-11-12): the bell glyph joins the
   one icon set (same 24px stroke style as every .ico- glyph). Step markers
   mirror the Roster Manager grid colors: silhouette #C9CDD4 while not done,
   #DDE0E6 for coming steps, green var(--done) when done. The fit rules let
   the bar's grid/flex children actually shrink: the certification button's
   single-line min-content was blowing the card wide on phones, pushing the
   progress strip and step rows past the card's right edge. */
.ico-bell { --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%208a6%206%200%200%201%2012%200c0%207%203%209%203%209H3s3-2%203-9%27/%3E%3Cpath%20d=%27M10.3%2021a1.94%201.94%200%200%200%203.4%200%27/%3E%3C/svg%3E"); }
.ptb-ic { flex: 0 0 22px; color: #C9CDD4; }
.ptb-ic .ico { width: 20px; height: 20px; vertical-align: -4px; }
.ptb-step.is-coming .ptb-ic { color: #DDE0E6; }
.ptb-wrap, .ptb, .ptb-step, .ptb-certbtn { min-width: 0; }
.ptb-certbtn { flex-wrap: wrap; }
.ptb-strip { max-width: 100%; }

/* Task-bar cert rows, deterministic layout (2026-11-12, second pass): a step
   row never wraps its icon onto its own line; the certification button takes
   the rest of the row and stacks its label over its note. */
.ptb-step { flex-wrap: nowrap; }
.ptb-lb { flex: 1 1 auto; }
.ptb-certbtn { flex: 1 1 auto; flex-direction: column; align-items: flex-start; gap: 0; }
.ptb-certbtn .ptb-note { margin-top: 1px; }

/* Dashboard Roster Manager, compressed rest state (Alex, 2026-11-12). */
.dash-roster-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.dash-roster-head h2 { margin: 0; }
.dash-roster-body:not(:empty) { margin-top: var(--s-3); }

/* Invitation Manager films: the homepage's own HLS films in place
   (Alex, 2026-11-12). Portrait stage like the homepage rail; the old 16:9
   YouTube stage rules above are superseded by these. */
.inv-filmtitle { margin: var(--s-2) 0 6px; font-size: var(--fs-body); }
.inv-watch { color: var(--muted); font-weight: 600; margin-right: 2px; }
.inv-stage { aspect-ratio: auto; width: min(248px, 72vw); margin: 0 auto; background: #000; }
.inv-vid { width: 100%; display: block; border-radius: 10px; background: #000; aspect-ratio: 9 / 16; object-fit: cover; }
.inv-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 10px; background: none; border: 0; cursor: pointer; color: #fff; }
.inv-chip { background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.inv-center { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.inv-teaser { font-weight: 700; font-size: 15px; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.inv-disc { width: 56px; height: 56px; border-radius: 50%; background: var(--brand, #F9E211); position: relative; flex: none; }
.inv-disc::after { content: ""; position: absolute; left: 22px; top: 17px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #000; }
.inv-credit { text-align: center; font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.inv-credit a { color: inherit; }

/* Playoffs | Invitation Manager duo as a matched set (Alex, 2026-11-12):
   equal-height cards, buttons aligned at the bottom of each panel. The
   invite button label is shortened to fit (two lines like its pair). */
.dash-duo { align-items: stretch; }
.dash-duo .dash-sec { display: flex; flex-direction: column; }
.dash-duo .duo-panel { flex: 1; display: flex; flex-direction: column; }
.dash-duo .duo-panel .row { margin-top: auto; padding-top: var(--s-2); }
.dash-duo .duo-panel .btn { line-height: 1.25; }

/* Pronounced fold + squad-move controls (Alex, 2026-11-12): the section fold
   is a labeled pill at full tap height, and the squad Up/Down buttons carry
   their action in words. */
.rb-foldbtn { width: auto; min-height: 44px; padding: 0 14px; gap: 8px; font-weight: 700; font-size: var(--fs-small); }
.rb-sq-move .btn { padding: 0 10px; gap: 4px; }

/* SPOT VISIBILITY (2026-11-12): the eye toggle on a roster spot, the hidden row state, the Hidden chip. */
.rb-eye { width: 40px; min-height: 40px; padding: 0; border: 0; background: none; border-radius: var(--r-control); color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.rb-eye .ico { width: 19px; height: 19px; }
.rb-eye.on { color: var(--ink); }
.rb-eye.off { color: var(--problem); }
.rb-eye:hover { background: var(--n-100); }
.rb-eye:disabled { cursor: default; opacity: .65; }
.rb-eye:disabled:hover { background: none; }
.rb-ind.warn { background: #FFF4D6; color: #7A5200; }
.rb-row.rb-hidden .rb-name, .rb-row.rb-hidden .rb-rank { opacity: .55; }

/* The one avatar treatment (Alex, 2026-11-12): a plain circle with the
   current-photo crop — no border tile, no shadow square. .thumb carried a
   rounded-square tag radius before; every .thumb is a person photo. */
.thumb { border-radius: var(--r-pill); border: 0; }
.thumb.ph { border-radius: var(--r-pill); }

/* IG contest board photos (Alex, 2026-11-12): the official photo in the one standard circle. */
.promo-board-ava { width: 30px; height: 30px; border-radius: var(--r-pill); object-fit: cover; flex: none; }
.promo-board-ava-none { background: #e7e7e7; }

/* Product pop-up on wide screens (Alex, 2026-11-12): a proper desktop dialog —
   wider card, photo and details side by side, the WHOLE product photo shown
   (fit, never a crop). Phones keep the stacked sheet. */
.modal-card:has(.proddetail) { width: min(980px, 100%); }
@media (min-width: 900px) {
  .proddetail { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: var(--s-4); align-items: start; }
  .proddetail .proddetail-img { max-height: 560px; }
  .proddetail .proddetail-ph { height: 320px; }
}

/* Cert rows: the icon sits on the LABEL line, not centred over label+note. */
.ptb-step:has(.ptb-certbtn) { align-items: flex-start; }
.ptb-step:has(.ptb-certbtn) .ptb-ic { margin-top: 1px; }
