/* ShootScoring — mobile-first styles. */
:root {
    --navy: #111827;
    --blue: #dc2626;
    --blue-600: #b91c1c;
    --sky: #dc2626;
    --green: #f59e0b;
    --grad: linear-gradient(90deg, var(--sky), var(--green));
    --bg: #f4f5f7;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --line: #e2e8f0;
    --danger: #d93a3a;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(17, 24, 39, .06), 0 4px 16px rgba(17, 24, 39, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; font-weight: 800; }
h2 { font-size: 1.4rem; font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 .75rem; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.section { padding: 32px 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.eyebrow {
    display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--blue); margin-bottom: .5rem;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Top bar ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; flex-wrap: wrap; }
.brand img { display: block; height: 32px; width: auto; }
.nav-toggle {
    display: inline-flex; flex-direction: column; gap: 4px; background: none; border: 0;
    padding: 10px; cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }
.nav {
    display: none; width: 100%; flex-direction: column; gap: 4px; padding: 8px 0 16px;
}
.nav.open { display: flex; }
.nav a, .nav .link-btn { padding: 10px 4px; color: var(--navy); font-weight: 600; }
.nav .btn { text-align: center; color: #fff; }
.nav-form { margin: 0; }
.link-btn { background: none; border: 0; font: inherit; cursor: pointer; padding: 0; text-align: left; }
.nav-user { display: inline-flex; align-items: center; gap: 8px; padding: 6px 4px; font-weight: 600; order: -1; }
.avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.avatar-initial { display: inline-grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; font-size: .9rem; }

@media (min-width: 768px) {
    .nav-toggle { display: none; }
    .nav { display: flex; width: auto; flex-direction: row; align-items: center; gap: 18px; padding: 0; }
    .nav a, .nav .link-btn { padding: 0; }
    .nav-user { order: 0; }
    .brand img { height: 36px; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 46px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
    font: inherit; font-weight: 700; cursor: pointer; text-decoration: none !important;
    transition: background .15s, box-shadow .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); }
.btn-google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.btn-google:hover { background: #f8faff; }
.is-disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Cards, alerts, badges ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.flashes { padding-top: 16px; display: grid; gap: 8px; }
.alert { padding: 12px 16px; border-radius: 10px; border: 1px solid; font-weight: 500; }
.alert-success { background: #e9f9f0; border-color: #b6ebcd; color: #0d6b3b; }
.alert-error   { background: #fdecec; border-color: #f5c2c2; color: #9b1c1c; }
.alert-info    { background: #eaf3fe; border-color: #bfdaf9; color: #0a4a99; margin-bottom: 16px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #eef2f7; color: var(--muted); }
.badge-paid { background: #e3f8ec; color: #0d7a43; }
.badge-pending_payment, .badge-pending_review { background: #fff4dc; color: #8a5a00; }
.badge-rejected, .badge-cancelled { background: #fdecec; color: #9b1c1c; }
.bib { font-weight: 800; font-size: 1.25rem; color: var(--navy); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form small { font-weight: 400; color: var(--muted); }
input[type=text], input[type=search], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=datetime-local], input[type=url],
input[type=date], input[type=time], select, textarea {
    width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px;
    font: inherit; font-size: 16px; font-weight: 400; /* 16px stops iOS zoom on focus */
    background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(10, 102, 214, .2); border-color: var(--blue); }

/* ---------- Auth pages ---------- */
.auth { padding: 24px 16px 48px; display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 420px; padding: 24px; }
.auth-card h1 { font-size: 1.5rem; }
.auth-switch { margin: 18px 0 0; text-align: center; color: var(--muted); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Home ---------- */
.hero { background: radial-gradient(1200px 400px at 80% -10%, rgba(22, 196, 106, .14), transparent),
                    radial-gradient(900px 400px at 0% 0%, rgba(21, 146, 240, .14), transparent), #fff;
        border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; gap: 24px; padding: 40px 16px; align-items: center; }
.hero h1 { font-size: 2rem; }
.hero p { font-size: 1.05rem; color: var(--muted); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.hero-actions .btn { flex: 1 1 160px; }
.hero-art { display: none; }

.race-grid { display: grid; gap: 14px; }
.race-card { display: flex; gap: 16px; color: inherit; text-decoration: none !important; transition: border-color .15s; }
.race-card:hover { border-color: var(--blue); }
.race-date { flex: 0 0 58px; height: 64px; border-radius: 12px; background: var(--navy); color: #fff;
             display: grid; place-items: center; align-content: center; line-height: 1.1; }
.race-date .m { font-size: .75rem; font-weight: 700; text-transform: uppercase; color: #8fd3ff; }
.race-date .d { font-size: 1.4rem; font-weight: 800; }
.race-card h3 { margin-bottom: 2px; }
.race-card p { margin: 0; }
.chips { font-size: .85rem; color: var(--blue); font-weight: 600; margin-top: 4px !important; }
.price { font-weight: 700; margin-top: 4px !important; }

.two-up { display: grid; gap: 16px; }
.feature h3 { font-size: 1.25rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
                    background: var(--grad); -webkit-mask: radial-gradient(circle, #000 60%, transparent 61%); }

.empty { text-align: center; padding: 32px 20px; }

/* ---------- Dashboard ---------- */
.page-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.page-head p { margin: 0; }
.list { display: grid; gap: 12px; margin-bottom: 20px; }
.list-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.list-row h3, .list-row p { margin: 0; }
.list-right { display: grid; justify-items: end; gap: 6px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.stat { padding: 14px; display: grid; gap: 2px; text-align: center; }
.stat-num { font-size: 1.6rem; font-weight: 800; }
.stat .muted { font-size: .8rem; line-height: 1.3; }
.cta-organizer { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 20px;
                 background: linear-gradient(135deg, #f0f7ff, #effcf5); }
.cta-organizer h3, .cta-organizer p { margin: 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: #fff; margin-top: 40px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 20px 16px;
                color: var(--muted); font-size: .9rem; }

/* ---------- Larger screens ---------- */
@media (min-width: 768px) {
    h1 { font-size: 2rem; }
    .section { padding: 48px 16px; }
    .hero-inner { grid-template-columns: 1.3fr 1fr; padding: 64px 16px; }
    .hero h1 { font-size: 2.75rem; }
    .hero-actions .btn { flex: 0 0 auto; }
    .hero-art { display: block; justify-self: center; width: 100%; max-width: 360px; }
    .race-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-num { font-size: 2rem; }
    .stat .muted { font-size: .9rem; }
}
@media (min-width: 1024px) {
    .race-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Install wizard ---------- */
.install-body { background: linear-gradient(160deg, #eef6ff, #effcf5); }
.install { width: 100%; max-width: 520px; margin: 0 auto; padding: 28px 16px 48px; display: grid; gap: 14px; }
.install-logo { height: 44px; width: auto; justify-self: center; margin-bottom: 4px; }
.install-card { padding: 24px; }
.install-card h1 { font-size: 1.5rem; }
.steps { list-style: none; padding: 0; margin: 0; display: flex; justify-content: space-between; gap: 6px; font-size: .8rem; color: var(--muted); }
.steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.steps li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-weight: 700; }
.steps li.current { color: var(--navy); font-weight: 700; }
.steps li.current span { border-color: var(--blue); color: var(--blue); }
.steps li.done span { background: var(--green); border-color: var(--green); color: #fff; }
.checks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 2px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 0 8px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: center; }
.checks li:last-child { border-bottom: 0; }
.check-icon { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; color: #fff; }
.checks .ok .check-icon { background: var(--green); }
.checks .fail .check-icon { background: var(--danger); }
.checks .warn .check-icon { background: #e5a100; }
.check-label { font-weight: 600; }
.check-detail { grid-column: 2; font-size: .85rem; color: var(--muted); }
a.check-detail { color: var(--blue); }
.form-row { display: grid; grid-template-columns: 1fr 96px; gap: 10px; }
.btn-back { text-align: center; color: var(--muted); font-size: .9rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; width: 100%; }
textarea.code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .88em; background: #eef2f7; padding: 1px 5px; border-radius: 5px; word-break: break-all; }

/* ---------- Admin ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 8px 0 20px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 10px 14px; white-space: nowrap; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; text-decoration: none; }
.tabs a.active { color: var(--blue); border-bottom-color: var(--blue); }
.stats-6 { grid-template-columns: repeat(2, 1fr); }
.stat-link { color: inherit; display: grid; text-decoration: none !important; }
.filters, .pager { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pill { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 600; font-size: .9rem; text-decoration: none !important; }
.pill.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.mini-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.badge-approved { background: #e3f8ec; color: #0d7a43; }
.badge-pending { background: #fff4dc; color: #8a5a00; }
.badge-suspended, .badge-failed { background: #fdecec; color: #9b1c1c; }
.search-bar { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 8px; }
.search-bar input[type=search] { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; font-size: 16px; }
.inline-form { margin: 0; }
.inline-form select { min-height: 38px; padding: 6px 10px; width: auto; }
.settings-card { max-width: 720px; }
.toggle { display: flex !important; grid-template-columns: none; flex-direction: row; align-items: center; gap: 12px; font-weight: 500 !important; cursor: pointer; }
.toggle input { width: 22px; height: 22px; accent-color: var(--blue); flex: 0 0 auto; }
.inline-check { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; font-size: .85rem; color: var(--muted); }
.test-email { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }

/* Tables become stacked cards on phones */
.table-wrap { padding: 0; overflow: hidden; }
.table { width: 100%; border-collapse: collapse; }
.table th { display: none; }
.table tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.table tr:last-child { border-bottom: 0; }
.table td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; text-align: right; }
.table td::before { content: attr(data-label); color: var(--muted); font-size: .85rem; text-align: left; flex: 0 0 auto; }
.table td.actions { justify-content: flex-end; gap: 8px; padding-top: 8px; }
.table td.actions::before { content: none; }
.table td.actions form { margin: 0; }

@media (min-width: 768px) {
    .stats-6 { grid-template-columns: repeat(3, 1fr); }
    .search-bar { grid-template-columns: 1fr 180px 180px auto; }
    .table th { display: table-cell; text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 16px; background: #f8fafc; border-bottom: 1px solid var(--line); }
    .table tr { display: table-row; padding: 0; }
    .table td { display: table-cell; text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
    .table tr:last-child td { border-bottom: 0; }
    .table td::before { content: none; }
    .table td.actions { white-space: nowrap; text-align: right; }
    .table td.actions form { display: inline-block; margin-left: 6px; }
}
@media (min-width: 1024px) {
    .stats-6 { grid-template-columns: repeat(6, 1fr); }
}
.settings-card .form > .btn { justify-self: start; }

/* ---------- Organizer area ---------- */
.narrow-page { max-width: 820px; }
.crumb { display: inline-block; margin-bottom: 10px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.h-sub { font-size: 1.15rem; margin: 26px 0 12px; }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.head-actions form { margin: 0; }
.race-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.race-head h1 { margin-bottom: 4px; }
.race-head p { margin: 0; }
.race-row { display: flex; gap: 14px; align-items: center; color: inherit; text-decoration: none !important; }
.race-row:hover { border-color: var(--blue); }
.race-row-main { flex: 1; min-width: 0; }
.race-row-main h3, .race-row-main p { margin: 0; }
.badge-race-published { background: #e3f8ec; color: #0d7a43; }
.badge-race-draft { background: #eef2f7; color: var(--muted); }
.badge-race-closed { background: #fff4dc; color: #8a5a00; }
.text-warn { color: #8a5a00; font-weight: 600; }
.text-danger { color: var(--danger) !important; }
.grid-2, .grid-3 { display: grid; gap: 14px; }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }
.banner-preview { border-radius: 10px; max-height: 180px; width: 100%; object-fit: cover; }
.qr-preview { width: 180px; height: 180px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.danger-zone { margin-top: 20px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cat-card summary { list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; cursor: pointer; }
.cat-card summary::-webkit-details-marker { display: none; }
.cat-card summary h3, .cat-card summary p { margin: 0; }
.cat-card[open] summary { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.price-tag { font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.cat-delete { margin-top: 12px; }
.choice-list { display: grid; gap: 10px; }
.choice { display: flex !important; flex-direction: row; gap: 12px; align-items: flex-start; padding: 14px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 400 !important; }
.choice.selected { border-color: var(--blue); background: #f4f9ff; }
.choice input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--blue); flex: 0 0 auto; }
.choice > span { display: grid; gap: 2px; }
.manual-fields { display: grid; gap: 14px; }
.manual-fields[hidden] { display: none; }
.reg-card { display: grid; gap: 12px; }
.reg-main { display: flex; justify-content: space-between; gap: 12px; }
.reg-main h3, .reg-main p { margin: 0; }
.proof-link { display: flex; align-items: center; gap: 10px; }
.proof-link img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.reg-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); }
.reg-actions form { margin: 0; }
.reject-form { display: flex; gap: 8px; flex: 1 1 260px; }
.reject-form input { min-height: 38px; padding: 6px 10px; }

@media (min-width: 640px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.list-right { align-content: start; } .list-right .badge, .race-row > .badge { align-self: start; height: auto; }

/* ---------- Step 3: public race page, registration, ticket, walk-ins ---------- */
.race-hero { background: var(--navy); }
.race-hero:not(.has-banner) { height: 90px; background: linear-gradient(120deg, var(--navy), var(--blue)); }
.race-hero-img { display: block; width: 100%; max-height: 380px; object-fit: cover; }
.race-page { display: grid; gap: 24px; }
.race-main { min-width: 0; }
.race-side { min-width: 0; }
.facts { list-style: none; padding: 0; margin: 12px 0 20px; display: grid; gap: 10px; }
.facts li { display: grid; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.facts li span { color: var(--muted); font-size: .9rem; }
.mine { margin-bottom: 20px; border: 2px solid var(--green); }
.mine-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); color: var(--text); }
.mine-row:hover { text-decoration: none; color: var(--blue); }
.cat-list { display: grid; gap: 10px; margin-bottom: 16px; }
.cat-option { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.cat-option h3, .cat-option p { margin: 0; }
.cat-option.is-full { opacity: .6; }
.cat-buy { display: grid; gap: 6px; justify-items: end; }
.big-price { font-size: 2rem; font-weight: 800; margin: 0 0 12px; }
.sticky-card hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.pay-note { margin: 10px 0 0; }
.prose { margin-bottom: 16px; }
.h-sub { margin-top: 24px; }
.text-warn { color: #a05a00; }
@media (min-width: 900px) {
    .race-page { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
    .sticky-card { position: sticky; top: 84px; }
}

.choice-row { display: grid; gap: 10px; }
.choice.is-full { opacity: .55; cursor: not-allowed; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.reg-tools { margin-bottom: 14px; }
.btn-lg { min-height: 54px; font-size: 1.05rem; }
.link-card { color: var(--text); }
.link-card:hover { text-decoration: none; border-color: var(--blue); }
.field-help { display: block; margin-top: -8px; }

.tag { display: inline-block; vertical-align: middle; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 6px; letter-spacing: .01em; }
.tag-organizer { background: #e8f1ff; color: var(--blue-600); }
.tag-walk_in { background: #efe9ff; color: #5b34c4; }

.ticket { border-top: 6px solid var(--line); }
.ticket.is-paid { border-top-color: var(--green); }
.ticket-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding-bottom: 14px; border-bottom: 2px dashed var(--line); }
.ticket-top h1 { font-size: 1.4rem; }
.ticket-bib { display: grid; justify-items: end; text-align: right; }
.bib-big { font-size: 2.2rem; font-weight: 900; line-height: 1; color: var(--navy); letter-spacing: -.02em; }
.ticket-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 14px 0 0; }
.ticket-meta dt { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ticket-meta dd { margin: 0; font-weight: 600; }
.pay-grid { display: grid; gap: 16px; margin-bottom: 18px; }
.qr-big { width: 100%; max-width: 260px; aspect-ratio: 1; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.instructions { white-space: normal; background: var(--bg); border-radius: 10px; padding: 12px; }
@media (min-width: 640px) { .pay-grid { grid-template-columns: 260px 1fr; align-items: start; } .ticket-meta { grid-template-columns: repeat(3, 1fr); } }

.walkin { max-width: 720px; }
.walkin-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.walkin-done { display: grid; justify-items: center; text-align: center; gap: 4px; margin-bottom: 16px; border: 2px solid var(--green); background: #f2fcf6; }
.walkin-done .bib-big { font-size: 3rem; }
.cat-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.cat-chip { position: relative; cursor: pointer; font-weight: 400 !important; }
.cat-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cat-chip > span { display: grid; gap: 2px; padding: 14px; border: 2px solid var(--line); border-radius: 12px; text-align: center; background: #fff; }
.cat-chip input:checked + span { border-color: var(--blue); background: #f4f9ff; box-shadow: 0 0 0 3px rgba(10, 102, 214, .15); }
.cat-chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.cat-chip.is-full { opacity: .5; cursor: not-allowed; }
.walkin-head .pill { white-space: nowrap; }
.ticket-top { flex-direction: column; }
.ticket-bib { justify-items: start; text-align: left; }
@media (min-width: 640px) { .ticket-top { flex-direction: row; } .ticket-bib { justify-items: end; text-align: right; } }

/* ---------- Step 3b: add-ons, summary, share, organizer pages ---------- */
.stats-3 { grid-template-columns: 1fr; margin-bottom: 16px; }
@media (min-width: 640px) { .stats-3 { grid-template-columns: repeat(3, 1fr); } }

.addons { display: grid; gap: 10px; }
.addons h3 { margin: 4px 0 0; }
.included-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.included-list.card { padding: 6px 16px; margin-bottom: 8px; }
.included-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.included-list li:last-child { border-bottom: 0; }
.check-dot { flex: 0 0 26px; height: 26px; border-radius: 50%; background: #e3f8ec; color: #0d7a43; display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.check-dot.plus { background: #e8f1ff; color: var(--blue-600); }
.addon-name { flex: 1; display: grid; gap: 1px; }
.addon-name small { font-weight: 400; }
.addon-price { white-space: nowrap; }
.addon-list { display: grid; gap: 8px; }
.addon-paid { display: grid; gap: 8px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; }
.addon-paid.picked { border-color: var(--blue); background: #f4f9ff; }
.addon-paid.is-full { opacity: .55; }
.addon-pick { display: flex !important; flex-direction: row; align-items: center; gap: 12px; cursor: pointer; font-weight: 400 !important; margin: 0; }
.addon-pick input { width: 20px; height: 20px; accent-color: var(--blue); flex: 0 0 auto; }
.addon-size { max-width: 140px; min-height: 40px; padding: 6px 10px; }
.included-list .addon-size { margin-left: auto; }
[data-addons] [hidden] { display: none !important; }
.summary { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.summary-lines { display: grid; gap: 6px; }
.summary-lines > div { display: flex; justify-content: space-between; gap: 12px; }
.summary-lines .total { font-weight: 800; font-size: 1.15rem; border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 2px; }
.walkin .summary { border: 0; padding: 12px; background: var(--bg); border-radius: 10px; }
.ticket-items { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: .95rem; }
.ticket-items > div { display: flex; justify-content: space-between; gap: 12px; }
.cat-checks { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.cat-checks legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.tag-included { background: #e3f8ec; color: #0d7a43; }
.tag-addon { background: #e8f1ff; color: var(--blue-600); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 16px; }
.share-label { font-size: .85rem; color: var(--muted); font-weight: 600; margin-right: 2px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.share-btn:hover { text-decoration: none; border-color: var(--blue); }
.share-btn svg { width: 18px; height: 18px; }
.share-fb { background: #1877f2; border-color: #1877f2; color: #fff; }
.share-fb:hover { background: #0f64d2; color: #fff; }
.share-msgr svg { color: #0a7cff; }
.share-btn[hidden] { display: none; }

.org-chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.org-chip img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); background: #fff; }
.org-hero { background: linear-gradient(120deg, var(--navy), var(--blue)); }
.org-hero:not(.has-banner) { height: 140px; }
.org-hero-img { display: block; width: 100%; max-height: 340px; object-fit: cover; }
.org-head { display: flex; align-items: flex-end; gap: 16px; margin-top: -44px; position: relative; }
.org-logo { width: 104px; height: 104px; flex: 0 0 auto; border-radius: 22px; background: #fff; border: 4px solid #fff; box-shadow: var(--shadow); display: grid; place-items: center; overflow: hidden; }
.org-logo img { width: 100%; height: 100%; object-fit: cover; }
.org-logo span { font-size: 2.6rem; font-weight: 900; color: var(--blue); }
.org-title { padding-bottom: 4px; min-width: 0; }
.org-title h1 { margin: 0; overflow-wrap: anywhere; }
.org-title p { margin: 0; }
.org-page { display: grid; gap: 24px; padding-top: 16px; }
.org-main, .org-side { min-width: 0; }
.org-side hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.org-races .race-card { display: grid; padding: 0; overflow: hidden; }
.race-card-img { width: 100%; aspect-ratio: 16 / 6; object-fit: cover; display: block; }
.race-card-body { display: flex; gap: 14px; padding: 16px; }
.race-card.is-past { opacity: .75; }
@media (min-width: 900px) {
    .org-page { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
    .org-head { margin-top: -56px; }
    .org-logo { width: 128px; height: 128px; }
}
.prefix-input { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.prefix-input > span { display: flex; align-items: center; padding: 0 10px; background: var(--bg); color: var(--muted); font-weight: 500; white-space: nowrap; font-size: .9rem; border-right: 1px solid var(--line); }
.prefix-input input { border: 0 !important; border-radius: 0 !important; min-width: 0; flex: 1; }
.logo-preview { width: 96px; height: 96px; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); }
.how { display: grid; gap: 14px; }
.how-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.how-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 10px; }
@media (min-width: 800px) { .how { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 639px) {
    .org-head { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ---------- Find races ---------- */
.race-filters { display: grid; gap: 10px; margin-bottom: 8px; }
.race-filters input, .race-filters select { min-height: 44px; }
.clear-filters { align-self: center; }
.home-search h2 { margin-bottom: 12px; }
.home-search-row { display: grid; gap: 10px; }
.home-search-row input, .home-search-row select { min-height: 48px; }
.org-line { color: var(--blue); font-weight: 600; margin: 0 0 2px !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 800px) {
    .race-filters { grid-template-columns: 2fr 1fr 1fr auto auto; align-items: center; }
    .race-filters:has(select[name=city]) { grid-template-columns: 2fr 1fr 1fr 1fr auto auto; }
    .home-search-row { grid-template-columns: 2fr 1fr 1fr auto; }
}
.race-filters input[type=search], .home-search-row input[type=search] { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; font-size: 16px; background: #fff; }
.rf-q { display: block; margin: 0; }

/* Payouts */
.stats-4 { grid-template-columns: repeat(2, 1fr); margin-bottom: 10px; }
@media (min-width: 760px) { .stats-4 { grid-template-columns: repeat(4, 1fr); } }
.stat-hero { background: #0b1f3f; color: #fff; }
.stat-hero .muted { color: #c9d6ea; }
.payout-grid { margin: 16px 0 8px; align-items: start; }
.payout-grid .card h3 { margin-top: 0; }
.steps-list { padding-left: 18px; margin: 0; }
.steps-list li { margin-bottom: 6px; }
.payout-dest { background: #f3f7fc; border-radius: 8px; padding: 8px 12px; margin: 8px 0 0; word-break: break-word; }
.payout-request h3 { margin: 0 0 4px; }
.payout-pay { margin-top: 12px; }
.decline summary { cursor: pointer; color: #5b6b82; margin-top: 8px; }
.decline form { margin-top: 8px; }
.payout-inline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.payout-inline input[type=text] { width: 150px; min-height: 34px; padding: 4px 8px; }
.payout-inline input[type=file] { max-width: 200px; font-size: 12px; }
[hidden] { display: none !important; }
.grid-2.align-start { align-items: start; }
.payout-record { margin-top: 14px; }
.payout-breakdown { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; margin: 10px 0; }
.payout-breakdown div { display: flex; flex-direction: column; }
.payout-breakdown strong { font-size: 17px; }
.payout-breakdown .total strong { color: #0a66d6; }
@media (min-width: 760px) { .payout-breakdown { grid-template-columns: repeat(5, 1fr); } }

/* Race day */
.raceday { display: grid; gap: 16px; }
@media (min-width: 900px) { .raceday { grid-template-columns: 1fr 320px; align-items: start; } }
.raceday-search h3, .raceday-side h3 { margin-top: 0; }
.search-row { display: flex; gap: 8px; }
.search-row input { flex: 1; min-width: 0; font-size: 18px; }
.scanner { margin-top: 12px; text-align: center; }
.scanner video { width: 100%; max-width: 420px; border-radius: 12px; background: #000; aspect-ratio: 4 / 3; object-fit: cover; }
.runner-card { border-left: 5px solid var(--line); }
.runner-card.is-in { border-left-color: var(--green); }
.runner-top { display: flex; gap: 14px; align-items: flex-start; }
.runner-top > div:nth-child(2) { flex: 1; min-width: 0; }
.runner-bib { font-size: 26px; font-weight: 800; min-width: 84px; color: var(--navy); line-height: 1.1; }
.runner-name { font-size: 18px; }
.runner-kit { margin: 8px 0 0; background: #f3f7fc; border-radius: 8px; padding: 6px 10px; }
.runner-actions { display: grid; gap: 10px; margin-top: 12px; }
.runner-step { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.runner-step input { flex: 1; min-width: 180px; }
.runner-step .btn { min-height: 46px; }
.runner-step .done { color: #0f8a4f; font-weight: 600; }
.table.compact th, .table.compact td { padding: 6px 8px; font-size: 14px; }
.raceday-side .card { margin-bottom: 14px; }
.table.compact th { display: table-cell; text-align: left; font-size: .75rem; text-transform: uppercase; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.table.compact tr { display: table-row; padding: 0; }
.table.compact td { display: table-cell; text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.table.compact td::before { content: none; }
.runner-step .link-btn { color: var(--muted); text-decoration: underline; font-size: .85rem; }

/* Ticket QR + results */
.ticket-qr { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.ticket-qr h3 { margin: 0 0 4px; }
.ticket-qr > div:last-child { flex: 1; min-width: 200px; }
.qr-box { width: 170px; height: 170px; flex: none; background: #fff; border-radius: 10px; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.result-mini { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.result-time { font-size: 34px; font-weight: 800; color: var(--navy); line-height: 1.15; }
.result-time.big { font-size: 56px; margin: 8px 0 12px; }
.result-card h1 { margin: 4px 0 2px; }
.cert-img { width: 100%; border: 1px solid var(--line); border-radius: 8px; margin: 6px 0 12px; display: block; }
.results-cta { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; text-decoration: none; color: var(--text); border: 2px solid var(--green); }
.results-cta strong { color: #0f8a4f; font-size: 18px; }
.results-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.results-filter input[type=search] { flex: 1; min-width: 180px; }
.results-filter select { width: auto; }
.tabs-sub { margin-top: 16px; }
.results-status { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.results-status h3 { margin: 0; }
.results-status p { margin: 2px 0 0; }
.text-ok { color: #0f8a4f; }
.settings-fold { margin: 14px 0; }
.settings-fold summary { cursor: pointer; }
.settings-fold form { margin-top: 12px; }
.right { display: flex; justify-content: flex-end; margin-top: 10px; }

/* Registration form extras, changes */
h2.h3 { font-size: 1.1rem; margin: 1.6rem 0 .6rem; }
.waiver-box { max-height: 220px; overflow-y: auto; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; font-size: .9rem; line-height: 1.55; }
.waiver-details summary { cursor: pointer; color: var(--blue); }
.waiver-details .waiver-box { margin-top: 8px; }
.guardian { display: grid; gap: 12px; padding: 14px; border-radius: 12px; background: #fff8eb; border: 1px solid #f5d9a3; }
.guardian[hidden] { display: none !important; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn-row form { margin: 0; }
.change-box { border-left: 4px solid var(--blue); }
.change-review { border-left: 4px solid #f59e0b; margin-bottom: 1rem; }
.change-row { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.change-row .reg-actions { border-top: 0; padding-top: 0; }

/* Step 6: early bird, promo, groups, refunds, waitlist */
.tag-early { background: #fff4d6; color: #8a5a00; }
.price-col { display: grid; justify-items: start; gap: 2px; }
.promo-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.text-ok { color: #0d7a43; }
.group-box { border-left: 4px solid #16a36e; }
.group-row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); }
.group-row form.inline { display: inline; margin-left: 8px; }
.refund-box { border-left: 4px solid #f59e0b; }
.refund-form { display: grid; grid-template-columns: 110px 1fr 1fr auto; gap: 8px; align-items: center; }
.refund-form input, .refund-form select { min-height: 38px; padding: 6px 10px; }
@media (max-width: 640px) { .refund-form { grid-template-columns: 1fr 1fr; } }

/* ---- Step 7: race overview, reports, emails, activity ---- */
.todo-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.todo { background: #fff6e5; color: #7a4b00; border: 1px solid #f3d9a4; border-radius: 999px; padding: 6px 14px; font-size: .9rem; text-decoration: none !important; }
.todo:hover { background: #ffefcf; }
.overview-grid { display: grid; gap: 14px; margin-bottom: 14px; }
.overview-grid > .card { margin: 0; }
@media (min-width: 900px) { .overview-grid { grid-template-columns: 3fr 2fr; } .overview-grid + .overview-grid { grid-template-columns: 1fr 1fr; } }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.card-head h3, .card-head h2 { margin: 0 0 10px; }
.h-mini { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 14px 0 6px; }
.table-card { margin-bottom: 14px; overflow-x: auto; }
.table-card .table.compact { min-width: 520px; }
.table.compact tfoot td { font-weight: 700; border-bottom: 0; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.plain-list li:last-child { border-bottom: 0; }
.sum-list { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0 0 8px; }
.sum-list dt, .sum-list dd { margin: 0; }
.sum-list dd { text-align: right; font-variant-numeric: tabular-nums; }
.sum-list .sum-total { font-weight: 800; border-top: 1px solid var(--line); padding-top: 6px; }
.chart-card { position: relative; }
.bars { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 140px; border-bottom: 1px solid var(--line); padding-top: 18px; }
.bars-max { position: absolute; top: 0; left: 0; }
.bars::before { content: ""; position: absolute; left: 0; right: 0; top: 18px; border-top: 1px dashed var(--line); }
.bar-slot { flex: 1; height: 100%; display: flex; align-items: flex-end; position: relative; cursor: default; }
.bar { width: 100%; background: var(--blue); border-radius: 4px 4px 0 0; min-height: 0; }
.bar-slot:hover .bar { background: var(--blue-600); }
.bar-slot:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; font-size: .75rem; padding: 3px 8px; border-radius: 6px; white-space: nowrap; z-index: 2; pointer-events: none; }
.bar-slot:first-child:hover::after { left: 0; transform: none; }
.bar-slot:last-child:hover::after { left: auto; right: 0; transform: none; }
.bars-axis { display: flex; justify-content: space-between; margin-top: 4px; }
.activity-list { list-style: none; margin: 0; padding: 0; }
.activity-list li { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.activity-list li:last-child { border-bottom: 0; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.fchip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 12px; font-size: .85rem; color: var(--text); text-decoration: none !important; }
.fchip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 14px; }
.blast-body { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; font-size: .95rem; }
.inline-form { margin: 0; }
.inline-form select { min-width: 130px; }
.stats-4 .stat-num { font-size: clamp(1.1rem, 4.5vw, 1.5rem); overflow-wrap: anywhere; }

/* ---- Step 8: legal pages, consent, delete account ---- */
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a { color: var(--muted); }
.legal-page { max-width: 820px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.legal-nav a { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 14px; font-size: .9rem; color: var(--text); text-decoration: none; }
.legal-nav a.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.legal-body { padding: 20px; line-height: 1.65; overflow-wrap: anywhere; }
@media (min-width: 640px) { .legal-body { padding: 32px 40px; } }
.legal-body h1 { margin-top: 0; }
.legal-body h2 { font-size: 1.15rem; margin: 28px 0 8px; }
.legal-body ul { padding-left: 20px; }
.legal-body li { margin-bottom: 4px; }
.plain-bullets { padding-left: 20px; margin: 0 0 16px; }
.plain-bullets li { margin-bottom: 6px; }
.consent-check span { font-weight: 400; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #b92f2f; }
.delete-account { margin-top: 20px; }
.delete-account summary { cursor: pointer; list-style: none; }
.delete-account summary::-webkit-details-marker { display: none; }
.delete-account summary h3 { margin: 0; color: var(--danger); }
.delete-account[open] summary { margin-bottom: 10px; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }

/* ---------- Compact phone layout ---------- */
@media (max-width: 767px) {
    .table.rows tr { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 1px; padding: 9px 14px; }
    .table.rows td { display: block; padding: 0; text-align: left; }
    .table.rows td::before { content: none; }
    .table.rows td[data-short]::before { content: attr(data-short); color: var(--muted); font-size: inherit; }
    .table.rows .c-lead { order: 1; flex: 0 0 auto; min-width: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
    .table.rows .c-lead .muted, .table.rows .c-lead .badge { font-size: .72rem; }
    .table.rows .c-main { order: 2; flex: 1 1 0; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .table.rows .c-end { order: 3; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
    .table.rows tr::after { content: ""; order: 4; flex-basis: 100%; height: 0; }
    .table.rows .c-meta { order: 5; font-size: .8rem; color: var(--muted); }
    .table.rows .c-meta.first { margin-left: 34px; }
    .table.rows .c-meta:not(.first)::before { content: "· "; }
    .table.rows .c-meta.c-act::before { content: ""; }
    .table.rows .c-meta.c-act { margin-left: 4px; }
    .table.rows .c-end2 { order: 6; margin-left: auto; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
    .table.rows .c-end2[data-short]::before { content: attr(data-short); }
    .table.rows .c-meta .small { font-size: inherit; }
}
@media (max-width: 639px) {
    .section { padding: 18px 14px 28px; }
    .container { padding-left: 14px; padding-right: 14px; }
    h1 { font-size: 1.45rem; }
    h2 { font-size: 1.2rem; }
    .card { padding: 14px; }
    .card.table-wrap { padding: 0; }
    .list { gap: 8px; }
    .tabs a { padding: 8px 11px; font-size: .92rem; }
    .page-head { margin-bottom: 12px; gap: 10px; }
    .table tr { padding: 8px 12px; }
    .table td { padding: 2px 0; font-size: .92rem; }
    .table td::before { font-size: .8rem; }
    .alert { padding: 10px 12px; font-size: .92rem; }
    .crumb { margin-bottom: 6px; }
    .btn { min-height: 42px; padding: 0 16px; }
}
.reg-links { margin: 2px 0 0; }
.reg-card p { margin: 0 0 2px; }
@media (max-width: 639px) {
    .reg-card { gap: 8px; }
    .reg-card h3 { font-size: 1rem; margin-bottom: 2px; }
    .proof-link img { width: 48px; height: 48px; }
}
.txt-phone { display: none; }
.grid-2.align-start > details { margin: 0; }
@media (max-width: 767px) {
    .table.rows .c-act { order: 3; flex: 0 0 auto; }
    .table.rows .c-act .link-btn { color: var(--muted); padding: 0 2px 0 6px; }
    .txt-wide { display: none; }
    .txt-phone { display: inline; }
    .results-filter { flex-wrap: nowrap; }
    .results-filter input[type=search] { min-width: 0; }
    .results-filter .btn { flex: 0 0 auto; padding: 0 12px; }
}
@media (max-width: 767px) {
    .table.rows.nolead .c-meta.first { margin-left: 0; }
    .table.rows .c-main { white-space: normal; }
    .table.rows .c-main .small { font-weight: 400; }
    .table.rows .c-meta br { display: none; }
    .table.rows .c-meta .small { font-size: inherit; }
    .table.rows .c-meta .small::before { content: " "; }
    .table.rows .c-end select { min-height: 34px; padding: 4px 8px; width: auto; font-size: .88rem; }
    .table.rows td.actions { order: 7; flex-basis: 100%; display: flex; justify-content: flex-end; gap: 8px; padding-top: 6px; }
    .table.rows .badge { font-size: .72rem; padding: 2px 8px; }
    .table.kv tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; padding: 10px 14px; }
    .table.kv td { display: block; text-align: left; padding: 0; }
    .table.kv td::before { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .03em; }
    .table.kv td:first-child, .table.kv td:not([data-label]) { grid-column: 1 / -1; }
    .table.kv td:not([data-label])::before { content: none; }
}
.badge { white-space: nowrap; }
@media (max-width: 767px) {
    .search-bar:has(select[name=source]) { grid-template-columns: 1fr 1fr auto; }
    .search-bar:has(select[name=source]) input[type=search] { grid-column: 1 / -1; }
    .search-bar:has(select[name=source]) select { min-width: 0; }
    .search-bar:has(select[name=source]) .btn { padding: 0 14px; min-height: 42px; }
    .search-bar select { min-height: 42px; }
    .reg-actions { padding-top: 8px; }
    .reg-card .proof-link img { width: 40px; height: 40px; }
}
@media (max-width: 639px) {
    .facts { gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin: 10px 0 16px; }
    .facts li { border: 0; border-radius: 0; background: none; padding: 9px 14px; }
    .facts li + li { border-top: 1px solid var(--line); }
    .cat-list { gap: 8px; }
    .cat-option { align-items: flex-start; }
    .cat-option > :first-child { flex: 1 1 auto; min-width: 0; }
    .cat-buy { flex: 0 0 auto; text-align: right; }
    .cat-buy > .small { display: grid; justify-items: end; gap: 2px; }
    .h-sub { margin-top: 18px; }
}
@media (max-width: 639px) {
    .how { gap: 8px; }
    .how-step { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; padding: 14px; }
    .how-step .how-num { grid-row: 1 / 3; margin: 0; }
    .how-step h3 { margin: 4px 0 2px; }
    .how-step p { margin: 0; }
    .home-search-row { grid-template-columns: 1fr 1fr; }
    .home-search-row input, .home-search-row .btn { grid-column: 1 / -1; }
    .home-search-row select { min-width: 0; }
    .race-filters { grid-template-columns: 1fr 1fr; }
    .race-filters .rf-q, .race-filters .btn, .race-filters .clear-filters { grid-column: 1 / -1; }
    .race-filters select { min-width: 0; }
}

/* =================== ShootScoring =================== */
.lead { font-size: 1.15rem; color: #cbd5e1; max-width: 640px; }
.hero-dark { background: radial-gradient(1200px 400px at 80% -10%, #3b0d0d, transparent), #0b0f17; color: #fff; padding: 56px 0; }
.hero-dark .eyebrow { color: #f87171; }
.hero-dark h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); max-width: 760px; }
.hero-inner { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.4fr 1fr; } }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1.05rem; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { border-color: #fff; }
.btn-danger { background: #dc2626; color: #fff; }
.hero-board { display: grid; gap: 10px; }
.hb-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 16px 18px; border-radius: 14px; background: #111827; border: 1px solid #1f2937; }
.hb-row span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; font-weight: 800; grid-column: 1 / -1; }
.hb-row strong { font-size: 1.35rem; }
.hb-row em { font-style: normal; color: #fde047; font-weight: 700; align-self: center; }
.hb-now { border-color: #dc2626; background: linear-gradient(160deg, #3b0d0d, #111827); }
.hb-now strong { font-size: 1.7rem; }
.live-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #dc2626; animation: livepulse 1.2s infinite; vertical-align: middle; }
@keyframes livepulse { 50% { opacity: .3; } }
.match-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.match-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); box-shadow: var(--shadow); text-decoration: none !important; transition: transform .1s; }
.match-card:hover { transform: translateY(-2px); }
.match-card-img { position: relative; height: 130px; background: linear-gradient(135deg, #111827, #3b0d0d) center/cover; }
.match-card-img .disc-badge { position: absolute; left: 12px; top: 12px; }
.match-card-img .level-badge { position: absolute; right: 12px; top: 12px; }
.match-card-body { padding: 14px 16px; display: grid; gap: 4px; flex: 1; }
.match-card-body h3 { margin: 0; }
.match-date { font-size: .8rem; font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: .04em; }
.match-card-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.disc-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #dc2626; color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .03em; }
.level-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: #111827; font-size: .72rem; font-weight: 800; }
.feature-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.link-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.link-card { display: grid; gap: 4px; color: var(--text); text-decoration: none !important; }
.empty { text-align: center; padding: 32px 20px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.head-actions form { margin: 0; }
.search-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.search-bar input[type=search] { flex: 1 1 240px; }
.search-bar select { width: auto; flex: 0 1 200px; }
.match-hero { background: linear-gradient(135deg, #111827, #3b0d0d) center/cover; color: #fff; padding: 48px 0 36px; }
.match-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-top: 10px; }
.hero-meta { color: #e5e7eb; margin: 4px 0; }
.hero-meta a { color: #fff; text-decoration: underline; }
.match-page { display: grid; gap: 20px; }
@media (min-width: 900px) { .match-page { grid-template-columns: 1fr 340px; align-items: start; } }
.match-main { display: grid; gap: 16px; min-width: 0; }
.sticky-card { position: sticky; top: 76px; display: grid; gap: 10px; }
.sticky-card hr, .card hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; width: 100%; }
.big-price { font-size: 1.9rem; font-weight: 800; }
.stage-list { display: grid; gap: 10px; }
.stage-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.stage-item:first-child { border-top: 0; }
.stage-no { flex: 0 0 40px; height: 40px; border-radius: 10px; background: #111827; color: #fff; display: grid; place-items: center; font-weight: 800; }
.grow { flex: 1; min-width: 0; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row-actions form { margin: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.squad-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.squad-list { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.choice-list { display: grid; gap: 8px; }
.choice { display: flex !important; flex-direction: row !important; align-items: center; gap: 12px !important; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 500 !important; }
.choice:has(input:checked) { border-color: var(--blue); background: #fef2f2; }
.choice input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--blue); }
.choice span { display: grid; }
.choice small { color: var(--muted); }
.squads-pick { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; border-radius: 12px; background: #111827; color: #fff; }
.summary-total strong { font-size: 1.5rem; }
.waiver-box { max-height: 180px; overflow: auto; padding: 12px; background: #f9fafb; border: 1px solid var(--line); border-radius: 10px; }
.role-strip { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 24px; }
.role-card { display: grid; gap: 6px; align-content: start; }
.reg-list { display: grid; gap: 10px; margin-bottom: 24px; }
.reg-row { display: flex; gap: 14px; align-items: center; color: var(--text); text-decoration: none !important; }
.reg-date { flex: 0 0 54px; text-align: center; border-radius: 10px; background: #111827; color: #fff; padding: 6px 0; display: grid; }
.reg-date span { font-size: .7rem; text-transform: uppercase; color: #f87171; font-weight: 800; }
.reg-date strong { font-size: 1.4rem; line-height: 1; }
.reg-main { flex: 1; min-width: 0; }
.badge-confirmed { background: #e3f8ec; color: #0d7a43; }
.badge-m-draft { background: #eef2f7; color: #475569; }
.badge-m-published { background: #e3f8ec; color: #0d7a43; }
.badge-m-closed { background: #fff4dc; color: #8a5a00; }
.badge-m-completed { background: #e0e7ff; color: #3730a3; }
.badge-m-cancelled { background: #fdecec; color: #9b1c1c; }
.badge-live { background: #fdecec; color: #b91c1c; }
.ticket-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.comp-no { text-align: center; }
.comp-no span { display: block; font-size: .72rem; text-transform: uppercase; color: var(--muted); font-weight: 800; letter-spacing: .08em; }
.comp-no strong { font-size: 2.6rem; font-weight: 900; color: var(--blue); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 16px 0 0; }
.facts dt { font-size: .75rem; text-transform: uppercase; color: var(--muted); font-weight: 700; letter-spacing: .05em; }
.facts dd { margin: 2px 0 0; font-weight: 600; word-break: break-word; }
.instructions { white-space: pre-line; padding: 12px; background: #f9fafb; border-radius: 10px; margin-bottom: 12px; }
.qr-big { max-width: 260px; display: block; margin: 0 auto 12px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-row form { margin: 0; }
.mt { margin-top: 12px; }
.text-ok { color: #0d7a43; } .text-warn { color: #a16207; } .text-danger { color: #b91c1c; }
.manage-head { background: #fff; border-bottom: 1px solid var(--line); padding-top: 16px; }
.manage-head h1 { font-size: 1.5rem; }
.manage-head .tabs { margin-bottom: 0; border-bottom: 0; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 20px; -webkit-overflow-scrolling: touch; }
.tabs a { padding: 10px 14px; white-space: nowrap; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; text-decoration: none !important; }
.tabs a.active { color: var(--text); border-bottom-color: var(--blue); }
.two-up { display: grid; gap: 16px; margin-bottom: 16px; }
@media (min-width: 900px) { .two-up { grid-template-columns: 1fr 1fr; align-items: start; } .two-up-wide { grid-template-columns: 1.4fr 1fr; } }
.two-up > * { min-width: 0; }
.card + .card { margin-top: 16px; }
.two-up > .card + .card { margin-top: 0; }
.stats { display: grid; gap: 12px; margin-bottom: 16px; }
.stats-3 { grid-template-columns: repeat(3, 1fr); }
.stats-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .stats-4 { grid-template-columns: repeat(4, 1fr); } }
.stat { display: grid; gap: 2px; text-align: center; color: var(--text); text-decoration: none !important; }
.stat-num { font-size: 1.8rem; font-weight: 800; }
.checks { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: center; }
.check-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.checks li.ok .check-dot { background: #16a34a; border-color: #16a34a; color: #fff; }
.progress-row { display: grid; grid-template-columns: 70px 1fr 60px 30px; gap: 10px; align-items: center; margin-bottom: 8px; }
.bar { height: 10px; background: #eef2f7; border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--blue); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.table .right, .right { text-align: right; }
.table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-card { padding: 0; overflow: hidden; }
.table-card .pad, .pad { padding: 16px 16px 0; }
.table-wrap { overflow-x: auto; }
.row-dq td { background: #fef2f2; }
.tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: #eef2f7; font-size: .72rem; font-weight: 700; color: #475569; }
.tag-dq { background: #fee2e2; color: #b91c1c; }
.tag-ok { background: #dcfce7; color: #166534; }
.div-table input, .div-table select { min-height: 40px; }
.squad-board { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin-bottom: 20px; }
.squad-col { padding: 14px; }
.squad-none { border-style: dashed; }
.squad-drop { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; min-height: 48px; border-radius: 10px; }
.squad-drop.drop-hover { background: #fef2f2; outline: 2px dashed var(--blue); }
.squad-drop li { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: grab; font-size: .92rem; }
.squad-drop li.dragging { opacity: .4; }
.squad-drop li.is-unpaid { border-style: dashed; }
.grip { color: #cbd5e1; font-weight: 800; letter-spacing: -2px; }
.squad-move { width: auto !important; min-height: 34px !important; padding: 2px 6px !important; font-size: .82rem !important; }
.zone-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.hit-chip { display: inline-block; padding: 1px 6px; margin: 0 3px 3px 0; border-radius: 6px; background: #eef2f7; font-weight: 700; font-size: .8rem; }
.hit-A { background: #dcfce7; color: #166534; } .hit-B { background: #ecfccb; color: #3f6212; } .hit-C { background: #fef9c3; color: #854d0e; } .hit-D { background: #ffedd5; color: #9a3412; }
.hit-M, .hit-NS, .hit-P { background: #fee2e2; color: #991b1b; }
.results-table .podium.p1 td:first-child strong { color: #ca8a04; }
.stage-col { min-width: 64px; }
.sig-img { max-width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.qr-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.qr-box { width: 150px; height: 150px; background: #fff; padding: 4px; border-radius: 8px; border: 1px solid var(--line); }
.qr-box svg { width: 100%; height: 100%; }
.ro-pin { font-size: 1.2rem; }
.ro-pin strong { font-size: 1.8rem; letter-spacing: .12em; color: var(--blue); }
code.copy { cursor: pointer; background: #f1f5f9; padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.tv-links li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form input[type=text], .inline-form input[type=email] { flex: 1 1 200px; width: auto; }
.inline-form select { width: auto; }
.h-mini { font-size: .95rem; margin-top: 8px; }
.logo-preview, .qr-preview { max-width: 140px; margin-top: 8px; }
.banner-preview { max-width: 100%; max-height: 160px; margin-top: 8px; border-radius: 10px; }
.prefix-input { display: flex; align-items: center; border: 1px solid #cbd5e1; border-radius: 10px; overflow: hidden; }
.prefix-input span { padding: 0 10px; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.prefix-input input { border: 0 !important; }
.steps-list { padding-left: 20px; }
.prose { white-space: normal; }

/* Stage target list */
.targets-editor { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 4px 0 14px; }
.targets-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; justify-content: space-between; }
.targets-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.targets-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px 4px; border-bottom: 1px solid var(--line); }
.targets-table td { padding: 4px; border-bottom: 1px solid var(--line); }
.targets-table select, .targets-table input { width: 100%; min-width: 0; padding: 6px 8px; }
.targets-table td:first-child { width: 56px; }

/* Paper score sheet grid (stats entry and print) */
.sheet-wrap { overflow-x: auto; }
.score-sheet { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.score-sheet th, .score-sheet td { border: 1px solid #111; text-align: center; padding: 3px; }
.score-sheet thead th, .score-sheet tbody th { background: #111; color: #fff; font-size: .8rem; }
.score-sheet th small { display: block; font-size: .68rem; opacity: .75; font-weight: 600; }
.score-sheet thead th.pen { color: #fca5a5; }
.score-sheet td input { width: 100%; min-width: 44px; padding: 6px 2px; text-align: center; border: 0; background: transparent; font-size: 1.05rem; }
.score-sheet tr.tot td { font-weight: 800; background: #f3f4f6; }

/* Match QR code on My registration */
.checkin-qr { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; border-top: 1px dashed var(--line); padding-top: 16px; margin-top: 12px; }
.checkin-qr > div:last-child { flex: 1 1 220px; }
.qr-box { width: 180px; height: 180px; background: #fff; border-radius: 10px; flex: 0 0 auto; }
.qr-box svg { width: 100%; height: 100%; display: block; }

/* Admin › Disciplines */
.page-head-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.page-head-row > p { flex: 1 1 420px; margin: 0; }
.badge-std { background: #eaf3fe; color: #0a4a99; }
.badge-custom { background: #f3e8ff; color: #6b21a8; }
.is-hidden-row td { opacity: .6; }
.is-hidden-row td.actions { opacity: 1; }
.disc-form > .card, .disc-form > .two-up { margin-bottom: 16px; }
.disc-form .two-up > .card { margin: 0; }
.disc-copy { margin-bottom: 16px; }
.zone-table input[type=text], .zone-table input[type=number], .div-table input[type=text] { width: 100%; min-width: 0; }
.zone-table .code-in { width: 5.5em; text-transform: uppercase; }
.zone-table input[type=number] { max-width: 7em; }

/* Live match centre */
.live-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
.live-head h1 { margin: 2px 0 4px; }
.live-head p { margin: 0; }
.live-badge { font-weight: 800; letter-spacing: .08em; color: var(--blue); font-size: .85rem; display: flex; align-items: center; gap: 8px; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgba(220, 38, 38, .6); animation: livepulse 1.6s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .55); } 70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); } 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.live-h { font-size: 1.15rem; margin: 24px 0 10px; }
.live-progress { padding: 14px 16px; }
.live-progress p { margin: 8px 0 0; }
.live-progress-bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.live-progress-bar span { display: block; height: 100%; background: var(--grad); border-radius: 999px; transition: width .6s; }
.live-stages, .live-mystages { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.live-stages > .card, .live-mystages > .card { padding: 12px 14px; margin: 0 !important; min-width: 0; }
.live-stage-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.live-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-now { margin: 8px 0 4px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: #eef0f3; color: #374151; white-space: nowrap; }
.chip-up { background: #dc2626; color: #fff; }
.chip-deck { background: #f59e0b; color: #111827; }
.chip-hole { background: #fde68a; color: #78350f; }
.chip-wait { background: #e0e7ff; color: #3730a3; }
.chip-done { background: #dcfce7; color: #166534; }
.badge-live { background: #fee2e2; color: #b91c1c; font-weight: 800; }
.live-mystage.is-up { border: 2px solid #dc2626; }
.live-mystage .small { margin-top: 4px; }
.live-board-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-top: 24px; }
.live-board-head .live-h { margin: 0; }
.live-find { max-width: 260px; width: 100%; }
.live-page .filters { margin: 10px 0; }
.live-page .filters .pill { cursor: pointer; }
.live-table td { vertical-align: middle; }
.live-place { font-weight: 800; font-size: 1.1rem; width: 2.5em; }
.live-table tr.moved-up td { animation: liveup 2.5s; }
.live-table tr.moved-down td { animation: livedown 2.5s; }
@keyframes liveup { from { background: #dcfce7; } to { background: transparent; } }
@keyframes livedown { from { background: #fee2e2; } to { background: transparent; } }
.live-feed { list-style: none; padding: 6px 16px; margin: 0; }
.live-feed li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.live-feed li:last-child { border-bottom: 0; }
.live-hero { margin-bottom: 16px; }
.hero-card { border-radius: var(--radius); padding: 18px 20px; background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line); }
.hero-card p { margin: 0; }
.hero-k { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hero-t { font-size: 1.6rem; font-weight: 800; line-height: 1.2; margin: 4px 0 6px !important; }
.hero-up { background: #2a1216; color: #fff; border: 2px solid #dc2626; }
.hero-up .hero-k { color: #fecaca; }
.hero-deck { background: #fffbeb; border: 2px solid #f59e0b; }
.hero-deck .hero-k { color: #92400e; }
.hero-wait .hero-k { color: #3730a3; }
.hero-done { background: #f0fdf4; border-color: #86efac; }
.hero-dq { background: #fef2f2; border-color: #fca5a5; }
.live-grid { display: grid; gap: 16px; }
.live-grid > .card { margin: 0; }
@media (min-width: 760px) { .live-grid { grid-template-columns: 1fr 1fr; } }
.live-big { font-size: 2.2rem; font-weight: 800; margin: 0; line-height: 1.1; }
.live-big .muted { font-size: 1.1rem; font-weight: 600; }
.live-alerts .btn-row { margin-top: 8px; }
.live-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(420px, calc(100% - 32px)); background: #111827; color: #fff; padding: 14px 16px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 1000; cursor: pointer; }
.live-cta { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa; }
.live-cta p { margin: 4px 0 0; }
.live-cta > div { flex: 1 1 260px; }
/* The live leaderboard stays a real table on phones (compact). */
.table.live-table { display: table; width: 100%; }
.table.live-table thead { display: table-header-group; }
.table.live-table tbody { display: table-row-group; }
.table.live-table tr { display: table-row; padding: 0; }
.table.live-table th, .table.live-table td { display: table-cell; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.table.live-table td::before { content: none; }
@media (max-width: 639px) {
    .table.live-table th, .table.live-table td { padding: 8px 6px; font-size: .9rem; }
    .table.live-table th:first-child, .table.live-table td:first-child { padding-left: 12px; }
    .live-place { width: 1.8em; }
}

/* Disputes */
.dispute-card.is-open { border-left: 4px solid #f59e0b; }
.dispute-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.dispute-top h3 { margin: 0; }
.dispute-top p { margin: 2px 0 0; }
.dispute-body { display: grid; gap: 16px; margin-top: 12px; }
@media (min-width: 860px) { .dispute-body { grid-template-columns: 1fr 1fr; } }
.dispute-msg { margin: 6px 0 10px; padding: 8px 12px; background: #f9fafb; border-left: 3px solid var(--line); border-radius: 6px; }
.dispute-form { margin: 0; }
.radio-stack { border: 0; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.radio-stack legend { font-weight: 600; margin-bottom: 4px; }
.radio-stack label { display: flex; gap: 8px; align-items: baseline; font-weight: 500; }
.dispute-result { background: #f9fafb; border-radius: 10px; padding: 10px 14px; }
.dispute-result p { margin: 0 0 4px; }
.chip-review { background: #fef3c7; color: #92400e; }
.live-dispute { margin-top: 8px; }
.live-dispute select, .live-dispute textarea { width: 100%; margin: 6px 0; }
.live-dispute .btn-row { margin-top: 4px; }
.link-btn.small-link { font-size: .85rem; color: var(--blue); font-weight: 600; margin-top: 6px; }
.input-short { width: 6em !important; display: inline-block; margin: 0 4px; }
.race-grid > .card, .list > .card, .stats > .card { margin: 0 !important; }
.badge-race-completed { background: #e8f1ff; color: #1d4ed8; }
.badge-race-cancelled { background: #fdecec; color: #9b1c1c; }

/* ---------- Manage › RO tablets & TV ---------- */
.ro-setup { display: grid; gap: 20px; }
.ro-setup-main, .ro-setup-opts { min-width: 0; }
.ro-setup .qr-row { align-items: center; margin: 10px 0 12px; }
.ro-setup .qr-info p { margin: 0 0 8px; }
.ro-setup .ro-pin { font-size: .9rem; color: var(--muted); font-weight: 600; display: grid; }
.ro-setup .ro-pin strong { font-size: 2rem; line-height: 1.1; }
.ro-setup .copy { word-break: break-all; }
.ro-setup-opts .h-mini { margin-top: 0; }
.opt-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 12px; background: #fff; }
.form .opt, .opt { display: flex !important; align-items: center; gap: 12px; padding: 10px 14px; margin: 0; font-weight: 400; cursor: pointer; }
.opt + .opt { border-top: 1px solid var(--line); }
.opt input[type=checkbox] { width: 18px; height: 18px; flex: 0 0 auto; margin: 0; accent-color: var(--blue); }
.opt-text { display: grid; gap: 1px; flex: 1; min-width: 0; font-size: .92rem; }
.opt-text small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.opt .opt-input { width: 7.5em !important; flex: 0 0 auto; min-height: 38px; padding: 6px 10px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; text-align: center; }
.opt:hover { background: #fafbfc; }
.share-sm { gap: 6px; margin: 0; }
.share-sm .share-btn { min-height: 32px; padding: 4px 10px; font-size: .82rem; }
.share-sm .share-btn svg { width: 15px; height: 15px; }
.tv-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin-top: 12px; }
.tv-tile { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; break-inside: avoid; }
.qr-box.qr-sm { width: 104px; height: 104px; padding: 3px; flex: 0 0 auto; }
.tv-tile-body { display: grid; gap: 2px; align-content: start; min-width: 0; }
.tv-tile-body .share { margin-top: 6px; }
.tv-tile-body .share-btn span { display: none; }
.tv-tile-body .share-btn { padding: 4px 8px; }
@media (min-width: 900px) {
    .ro-setup { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
}
@media print {
    .topbar, .footer, .manage-head, .ro-setup, .table-card, .card-head .btn, .tv-grid .share, .tv-tile-body a, .alert, .tv-grid + *, .card > p { display: none !important; }
    .tv-grid { grid-template-columns: repeat(3, 1fr); }
    .qr-box.qr-sm { width: 150px; height: 150px; }
    .card { box-shadow: none; border: 0; }
}
.print-only { display: none; }
@media print { .print-only { display: inline; } }
/* Checkbox rows: small box on the left, text beside it (no stretched grid). */
.form label.inline-check, label.inline-check { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 400; font-size: .92rem; color: var(--text); cursor: pointer; }
.inline-check input[type=checkbox] { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--blue); }
span.inline-check { display: inline-flex; align-items: center; gap: 6px; }
span.inline-check input[type=checkbox] { margin: 0; }
.form .opt-list .opt { font-size: .95rem; }
.opt input[type=radio] { width: 18px; height: 18px; flex: 0 0 auto; margin: 0; accent-color: var(--blue); }
.opt:has(input:checked) { background: #fef6f6; }
/* Club page: compact header, logo beside the name on phones too. */
.org-head { padding-top: 0; padding-bottom: 0; }
.org-page.section { padding-top: 14px; }
.org-page .share { margin: 0 0 4px; }
.org-main > .h-sub:first-of-type, .org-main > .share + .h-sub { margin-top: 12px; }
@media (max-width: 639px) {
    .org-head { flex-direction: row !important; align-items: flex-start !important; gap: 12px !important; margin-top: -32px; }
    .org-title { padding-top: 38px; }
    .org-logo { width: 76px; height: 76px; border-radius: 16px; border-width: 3px; }
    .org-logo span { font-size: 1.9rem; }
    .org-title h1 { font-size: 1.35rem; line-height: 1.2; }

    .org-hero:not(.has-banner) { height: 96px; }
    .org-page { gap: 16px; }
    .org-side .card { padding: 16px; }
}
@media (min-width: 900px) { .org-main .race-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.size-warn { display: block; font-size: .82rem; font-weight: 500; color: #8a5a00; background: #fff6e5; border: 1px solid #f3d9a4; border-radius: 8px; padding: 6px 10px; }
.size-warn[hidden] { display: none; }
/* Club page banner and logo follow the suggested sizes. */
.org-hero-img { aspect-ratio: 16 / 5; max-height: 360px; object-fit: cover; }
.org-logo img { object-fit: contain; background: #fff; }
/* Club page banner sits inside the page width (no edge-to-edge stretch on big screens). */
.org-hero-wrap { padding-left: 0; padding-right: 0; }
.org-hero-img { width: 100%; height: auto; max-height: none; aspect-ratio: 16 / 5; object-fit: cover; }
@media (min-width: 640px) {
    .org-hero-wrap { padding: 16px 16px 0; }
    .org-hero { border-radius: 18px; overflow: hidden; }
    .org-head { margin-left: 20px; }
}
@media (min-width: 900px) {
    .org-page { grid-template-columns: minmax(0, 1fr) 320px; }
    .org-side { padding-top: 12px; }
}
.org-main > .org-head { margin-bottom: 14px; }
@media (min-width: 900px) { .org-side { padding-top: 0; margin-top: 16px; } }

/* Manage › RO tablets & TV: one TV for several matches */
.combo-wrap { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; margin-top: 12px; }
.combo-form .opt-list { margin-bottom: 14px; }
.combo-form .h-mini, .combo-result .h-mini { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.step-no { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; flex: none; }
.opt.is-locked { opacity: .75; }
.combo-order { margin: 4px 0 2px; padding-left: 18px; }
.combo-hint { padding: 14px; border: 1px dashed var(--line); border-radius: 12px; margin: 0; }
@media (max-width: 760px) { .combo-wrap { grid-template-columns: 1fr; } }
@media print { #combined-tv { display: none !important; } }

/* Tablets and general form polish */
/* A label's box can grow to match its neighbour; keep the input at the top instead of stretching it. */
.form label, .grid-2 > label, .grid-3 > label { align-content: start; }
/* Long tab rows scroll sideways: fade the edge that has more tabs, so it's clear there is more. */
.tabs.is-scrollable { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.tabs.is-scrollable.at-end { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px); mask-image: linear-gradient(90deg, transparent, #000 48px); }
.tabs.is-scrollable.at-mid { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
@media (min-width: 640px) and (max-width: 1199px) { .manage-head .tabs a { padding: 10px 11px; font-size: .93rem; } }
/* A form with nothing beside it uses the full width, centred, instead of leaving an empty column. */
.form-solo { max-width: 860px; margin: 0 auto; }
@media (min-width: 768px) { .form-solo .choice-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .form-solo .choice-list > .choice { margin: 0; } }
a.crumb.form-solo { display: block; }
.combo-result .tv-tile + .tv-tile { margin-top: 10px; }
/* Cards side by side in a grid line up at the top (the stacked-card gap doesn't apply there). */
.feature-grid > .card, .role-strip > .card, .squad-board > .card, .tv-grid > .card, .link-list > .card { margin-top: 0; }
.disc-form > .card + .card { margin-top: 0; }

/* Home: no match data, just the search and the club pitch. */
.home-find-card { display: grid; gap: 14px; align-items: center; }
.home-find-card h2 { margin: 0 0 4px; }
.home-find-card p { margin: 0; }
.home-find-form { display: flex; gap: 8px; }
.home-find-form input { flex: 1; min-width: 0; }
@media (min-width: 900px) { .home-find-card { grid-template-columns: 1fr 1.1fr; } }
.home-sub { max-width: 760px; margin-top: -4px; }
.home-steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 16px; }
.home-steps > .card { margin: 0; }
.home-step .step-no { width: 28px; height: 28px; font-size: 14px; }
.home-step h3 { margin: 10px 0 6px; }
.home-cta { margin-top: 20px; }
/* Club page: matches being shot today. */
.live-now-list { display: grid; gap: 12px; margin-bottom: 8px; }
.live-now-list > .card { margin: 0; }
.live-now { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; border-color: #fecaca; }
.live-now-main { display: grid; gap: 4px; min-width: 0; }
.live-now-main .badge { justify-self: start; }
.live-now-name { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.h-sub .live-dot { margin-right: 8px; vertical-align: 1px; }
/* Add shooter: Find a shooter */
.find-shooter { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc; }
.find-shooter-results { display: grid; gap: 6px; max-height: 340px; overflow: auto; }
.find-hit { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; color: var(--text); }
.find-hit:hover, .find-hit:focus { border-color: var(--blue); outline: none; }
.find-hit.is-in { background: #fff7f7; }
.find-hit .badge { font-size: .7rem; vertical-align: 1px; }
.find-none { margin: 0; }
.find-shooter-picked { padding: 10px 12px; border-radius: 10px; background: #ecfdf5; color: #065f46; font-size: .92rem; }
.find-shooter-picked.is-warn { background: #fef2f2; color: #991b1b; }
.dup-alert { display: grid; gap: 8px; }
.find-hit > .badge { justify-self: start; }
/* One match card everywhere: banner (match, then club, then default), LIVE label and live buttons. */
.race-card { position: relative; }
.org-races .race-card { display: flex; flex-direction: column; }
.race-card-main { display: grid; align-content: start; color: inherit; text-decoration: none !important; flex: 1; }
.race-card-banner { position: relative; }
.race-card-ph { aspect-ratio: 16 / 6; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 22px;
    background: radial-gradient(circle at 85% 30%, rgba(220, 38, 38, .55), transparent 55%), linear-gradient(120deg, #0b1220 30%, #7f1d1d); color: #fff; }
.race-card-ph img { height: 26px; width: auto; align-self: flex-start; }
.race-card-ph span { font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; opacity: .92; }
.race-live { position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 999px; background: #dc2626; color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .06em; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.race-card.is-live { border-color: #fca5a5; }
.race-card-actions { display: flex; gap: 8px; padding: 0 16px 16px 88px; }
@media (max-width: 420px) { .race-card-actions { padding-left: 16px; } }
/* Home hero: one source of spacing (it was the hero's padding plus the inner padding, a big gap on phones). */
.hero-dark { padding: 0; }
.hero-dark .hero-inner { padding: 28px 16px 32px; gap: 24px; }
.hero-dark .hero-actions { margin-top: 14px; }
@media (min-width: 768px) { .hero-dark .hero-inner { padding: 56px 16px; gap: 32px; } }
@media (min-width: 1200px) { .hero-dark .hero-inner { padding: 72px 16px; } }
@media (max-width: 639px) {
    .hero-dark .hb-row { padding: 11px 14px; border-radius: 12px; }
    .hero-dark .hb-row strong { font-size: 1.1rem; }
    .hero-board { gap: 8px; }
    .home-find { padding-top: 20px; }
}
.nav a.btn { padding: 0 16px; color: #fff; }
/* Home: stacked sections share one gap instead of two paddings. */
.hero-dark ~ .section + .section { padding-top: 0; }

/* Match page (compact, mobile first) */
.mp-hero { background: linear-gradient(135deg, #111827, #3b0d0d); color: #fff; padding: 0 0 18px; }
.mp-banner-wrap { padding: 0; }
.mp-banner { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; max-height: 380px; }
.mp-head { padding-top: 16px; }
.mp-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mp-hero h1 { font-size: clamp(1.45rem, 5vw, 2.6rem); line-height: 1.15; margin: 10px 0 6px; color: #fff; }
.mp-meta { color: #e5e7eb; margin: 2px 0; font-size: .95rem; }
.mp-meta a { color: #fff; text-decoration: underline; }
.match-page.section { padding-top: 16px; }
.match-page { gap: 14px; }
.match-main { gap: 14px; }
.mp-card { padding: 16px; }
.mp-card h2 { font-size: 1.15rem; margin: 0 0 8px; }
.mp-divs { list-style: none; margin: 0; padding: 0; }
.mp-divs li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.mp-divs li:first-child { border-top: 0; }
.mp-div-name small { color: var(--muted); font-size: .82rem; margin-left: 4px; }
.mp-div-fee { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mp-cats { margin: 8px 0 0; }
.mp-card .stage-list { gap: 0; }
.mp-card .stage-item { padding: 9px 0; gap: 10px; }
.mp-card .stage-no { flex-basis: 32px; height: 32px; border-radius: 8px; font-size: .9rem; }
.mp-card .stage-item p { margin: 4px 0 0; }
.mp-shooters summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; }
.mp-shooters summary::-webkit-details-marker { display: none; }
.mp-shooters summary h2 { margin: 0; }
.mp-shooters summary .muted::after { content: " ▾"; }
.mp-shooters[open] summary .muted { font-size: 0; }
.mp-shooters[open] summary .muted::after { content: "Hide ▴"; font-size: .85rem; }
.mp-shooters[open] summary { margin-bottom: 8px; }
.mp-shooter-list { list-style: none; margin: 0; padding: 0; }
.mp-shooter-list li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); line-height: 1.35; }
.mp-no { flex: 0 0 34px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.mp-reg { padding: 16px; gap: 8px; }
.mp-reg hr { margin: 4px 0; }
.mp-price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mp-reg .big-price { font-size: 1.6rem; margin: 0; line-height: 1.1; }
.mp-reg .big-price small { font-size: .8rem; font-weight: 600; color: var(--muted); }
.mp-closes { margin: 0; }
.mp-reg .h-mini { margin: 8px 0 2px; }
.mp-reg .plain-list li { padding: 4px 0; }
@media (max-width: 899px) {
    .match-side { order: -1; }
    .mp-reg { position: static; }
    .mp-org-hr, .mp-org { display: none; }
}
@media (min-width: 900px) {
    .mp-hero { padding-bottom: 28px; }
    .mp-banner-wrap { padding: 0 16px; }
    .mp-banner { border-radius: 0 0 16px 16px; }
    .mp-head { padding-top: 22px; }
    .match-page.section { padding-top: 24px; }
    .mp-card { padding: 20px 22px; }
}

/* Home scoreboard: tilted 3D stack */
.hero-board { perspective: 1400px; gap: 12px; padding: 8px 4px 18px; }
.hero-board .hb-row { transform-style: preserve-3d; }
.hero-board { transform: perspective(1400px) rotateX(24deg) rotateY(-16deg) rotateZ(9deg); transform-origin: 50% 50%; }
.hb-row { position: relative; grid-template-columns: 1fr auto; align-items: end; padding: 14px 20px 16px; border-radius: 14px;
    background: linear-gradient(160deg, #182235, #0d1422); border: 1px solid rgba(148,163,184,.14);
    box-shadow: 0 18px 40px -12px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.05); }
.hb-row span { font-size: .62rem; letter-spacing: .14em; color: #8b9ab3; margin-bottom: 2px; }
.hb-row strong { font-style: italic; font-weight: 800; letter-spacing: -.01em; font-size: 1.3rem; }
.hb-row em { font-style: italic; font-weight: 800; color: #facc15; align-self: end; text-shadow: 0 0 14px rgba(250,204,21,.25); }
.hb-prev { margin-left: 14%; }
.hb-now { margin: 4px 0 4px 8%; padding: 18px 22px 20px; border: 1.5px solid #ef4444;
    background: linear-gradient(150deg, #4a0f12 0%, #23101a 45%, #111827 100%);
    box-shadow: 0 0 0 1px rgba(239,68,68,.25), 0 0 26px rgba(239,68,68,.45), 0 22px 44px -12px rgba(0,0,0,.8); }
.hb-now strong { font-size: 1.75rem; }
.hb-now em { font-size: 1.05rem; }
.hb-next { margin-right: 12%; }
@media (max-width: 639px) {
    .hero-board { transform: perspective(900px) rotateX(16deg) rotateY(-10deg) rotateZ(5deg); padding: 4px 10px 10px; }
    .hero-dark .hb-row { padding: 10px 14px 12px; }
    .hero-dark .hb-now { padding: 13px 16px 14px; }
    .hero-dark .hb-row strong { font-size: 1.05rem; }
    .hero-dark .hb-now strong { font-size: 1.35rem; }
    .hb-row em { font-size: .85rem; }
}
@media (prefers-reduced-motion: no-preference) {
    .hb-now { animation: hbGlow 2.4s ease-in-out infinite; }
    @keyframes hbGlow { 50% { box-shadow: 0 0 0 1px rgba(239,68,68,.35), 0 0 38px rgba(239,68,68,.6), 0 22px 44px -12px rgba(0,0,0,.8); } }
}
.hero-dark { overflow: hidden; }

/* Home: icon tiles (like the cover) */
.icon-strip { list-style: none; margin: 0; padding: 0 0 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.icon-strip li { display: grid; justify-items: center; align-content: center; gap: 6px; text-align: center; padding: 12px 6px 11px; border-radius: 14px;
    background: #fff; color: #111827; box-shadow: 0 8px 22px -10px rgba(0,0,0,.55); font-weight: 700; font-size: .78rem; line-height: 1.2; }
.icon-strip .fi { width: 30px; height: 30px; }
.icon-strip .is-red .fi { color: #dc2626; }
.icon-strip .is-amber .fi { color: #f59e0b; }
@media (min-width: 640px) {
    .icon-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding-bottom: 36px; }
    .icon-strip li { padding: 16px 8px 14px; font-size: .88rem; gap: 8px; transition: transform .15s ease; }
    .icon-strip li:hover { transform: translateY(-3px); }
    .icon-strip .fi { width: 38px; height: 38px; }
}
@media (min-width: 1200px) { .icon-strip { padding-bottom: 48px; } }
.hero-dark .hero-inner { padding-bottom: 24px; }
.feature-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; margin-bottom: 4px;
    background: linear-gradient(135deg, #fee2e2, #ffedd5); color: #dc2626; }
.feature-ico .fi { width: 26px; height: 26px; }
.feature-grid > .feature:nth-child(even) .feature-ico { color: #ea580c; }

/* Icon strip v2: small, no cards */
.icon-strip { gap: 14px 8px; padding: 4px 0 26px; }
.icon-strip li { background: none; box-shadow: none; padding: 0; border-radius: 0; color: #cbd5e1; font-weight: 600; font-size: .74rem; gap: 6px; }
.icon-strip .fi { width: 22px; height: 22px; }
.icon-strip .is-red .fi { color: #f87171; }
.icon-strip .is-amber .fi { color: #fbbf24; }
@media (min-width: 640px) {
    .icon-strip { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px 28px; padding-bottom: 36px; }
    .icon-strip li { display: flex; align-items: center; gap: 8px; font-size: .85rem; padding: 0; }
    .icon-strip li:hover { transform: none; }
    .icon-strip .fi { width: 22px; height: 22px; }
}

/* Fold-out cards (e.g. Range laptop) */
.settings-fold summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; outline: none; }
.settings-fold summary::-webkit-details-marker { display: none; }
.settings-fold summary h3 { margin: 0; font-size: 1.05rem; }
.settings-fold summary::after { content: ""; flex: 0 0 auto; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .15s ease; }
.settings-fold[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.settings-fold summary:focus-visible { outline: 2px solid var(--blue, #2563eb); outline-offset: 4px; border-radius: 6px; }
.settings-fold[open] summary { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }

/* Club page with no banner: no empty colour block, header sits in normal flow. */
.org-page.no-banner { padding-top: 24px; }
.org-page.no-banner .org-head { margin-top: 0 !important; margin-left: 0; align-items: center !important; }
.org-page.no-banner .org-title { padding-top: 0; padding-bottom: 0; }
.org-page.no-banner .org-logo { box-shadow: none; border: 1px solid var(--line); }
@media (min-width: 900px) { .org-page.no-banner .org-side { margin-top: 0; } }
