/* ===== 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 (the league website's bar: league mark, primary tabs, account, ⋯ menu) ---- */
.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-3); padding: var(--s-2) var(--s-4); }
.brand { display: inline-flex; align-items: center; min-height: var(--control-h); flex: none; }
.brand-mark { height: 40px; width: auto; display: block; }
.nav { display: flex; gap: var(--s-1); align-items: center; flex: none; }
.nav a, .top-actions .act { color: var(--on-dark); font-weight: 800; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.04em; padding: 0 var(--s-2); min-height: var(--control-h); display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
.nav a:hover, .top-actions .act:hover { color: var(--accent-on-dark); }
.nav a[aria-current="page"], .top-actions .act[aria-current="page"] { color: var(--accent-on-dark); }
.nav a.wide-only { display: none; }
@media (min-width: 900px) { .nav a.wide-only { display: inline-flex; } }
.partner-head { display: none; }
@media (min-width: 1100px) { .partner-head { display: flex; align-items: center; gap: var(--s-2); flex: none; margin-left: var(--s-2); } }
.partner-head span { font-size: var(--fs-label); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--n-400); line-height: 1.3; text-align: right; }
.partner-head img { height: 23px; width: auto; display: block; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s-1); flex: none; }
.who { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--control-h); text-decoration: none; color: #fff; }
.who-init { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 var(--s-1); border-radius: var(--r-control); background: var(--n-800); border: 1px solid var(--on-dark-2); font-weight: 900; font-size: var(--fs-small); color: var(--accent-on-dark); }
.who-name { font-weight: 800; font-size: var(--fs-small); max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 639px) { .who-name { display: none; } }
.menu-wrap { position: relative; flex: none; }
.menubtn { width: var(--control-h); height: var(--control-h); display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; border-radius: var(--r-control); color: #fff; font-size: 20px; font-weight: 900; cursor: pointer; padding: 0; }
.menubtn:hover { background: var(--n-800); color: var(--accent-on-dark); }
.menu { position: absolute; right: 0; top: calc(100% + var(--s-2)); width: min(320px, calc(100vw - 24px)); max-height: calc(100vh - 96px); overflow-y: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: var(--s-2); z-index: 60; text-align: left; }
.menu-sec + .menu-sec { border-top: 1px solid var(--line); margin-top: var(--s-2); padding-top: var(--s-2); }
.menu-sec h3 { margin: 0; padding: var(--s-2) 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); }
.menu a, .menu .menu-out { display: flex; align-items: center; min-height: var(--control-h); padding: 0 var(--s-3); border-radius: var(--r-control); color: var(--ink); font-weight: 600; font-size: var(--fs-body); text-decoration: none; }
.menu a:hover, .menu .menu-out:hover { background: var(--accent-tint); }
.menu a[aria-current="page"] { background: var(--accent-tint); font-weight: 800; }
.menu .menu-out { width: 100%; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; margin-top: var(--s-2); border-top: 1px solid var(--line); border-radius: 0 0 var(--r-control) var(--r-control); }

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 (the league website's foot panel) ---- */
.sitefoot { max-width: var(--w-page); margin: 0 auto var(--s-6); padding: 0 var(--s-4); }
.foot-panel { position: relative; overflow: hidden; background: var(--surface-panel); color: #fff; border-radius: var(--r-panel); box-shadow: var(--shadow-panel); padding: var(--s-6) var(--s-6) var(--s-5); text-align: center; }
.foot-panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 38%; background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,0)); pointer-events: none; }
.foot-panel > * { position: relative; }
.foot-mark { height: 56px; width: auto; margin: 0 auto var(--s-2); display: block; }
.foot-nav { display: flex; gap: var(--s-1) var(--s-4); justify-content: center; flex-wrap: wrap; margin: var(--s-3) 0; }
.foot-nav a { color: var(--on-dark); text-decoration: none; font-weight: 800; font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.04em; min-height: var(--control-h); display: inline-flex; align-items: center; padding: 0 var(--s-1); }
.foot-nav a:hover { color: var(--accent-on-dark); }
.foot-partner { margin-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.18); padding-top: var(--s-4); }
.foot-partner .lbl { font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; font-size: var(--fs-label); color: var(--on-dark-2); }
.foot-partner img { height: 30px; width: auto; display: block; margin: var(--s-2) auto 0; }
.foot-line { color: var(--n-400); font-size: var(--fs-small); font-weight: 600; margin: var(--s-4) 0 0; }
.foot-legal { color: var(--n-400); font-size: var(--fs-label); font-weight: 600; margin: var(--s-1) 0 0; }

/* ---- 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; }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; gap: 0; } .facts dd { margin-bottom: var(--s-2); } }

/* ---- my registrations accordion: compact scannable headers, details on tap ---- */
.panel.reg-acc > h2 { padding: 0; }
.reg-head { display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 56px; padding: var(--s-3) var(--s-5); background: none; border: 0; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; }
.reg-title { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.reg-name { overflow-wrap: anywhere; }
.reg-dates { font-weight: 600; text-transform: none; letter-spacing: 0.02em; color: rgba(255,255,255,.75); }
.reg-chips { display: flex; gap: var(--s-2); align-items: center; flex: none; }
.reg-chev { flex: none; font-size: 13px; line-height: 1; transition: transform var(--t-fast) var(--ease); }
.reg-head[aria-expanded="true"] .reg-chev { transform: rotate(180deg); }
.reg-receipt { margin-bottom: var(--s-4); }
@media (max-width: 640px) { .reg-head { padding-left: var(--s-4); padding-right: var(--s-4); flex-wrap: wrap; row-gap: var(--s-2); } .reg-title { flex: 1 1 100%; } .reg-chev { margin-left: auto; } }
.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; }

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

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

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

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

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

@media (max-width: 640px) {
  .topbar-in { padding-left: var(--s-3); padding-right: var(--s-3); gap: var(--s-2); }
  .nav a, .top-actions .act { padding: 0 var(--s-1); }
  .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-mark { height: 34px; }
  .foot-panel { padding: var(--s-5) var(--s-4); }
}
