/* Brand colours (--brand, --accent and their text colours) are set on <html> from the club's settings. */
:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --fg: #13213a;
  --muted: #55627a;
  --line: #dde2ea;
  --soft: #e8ecf3;
  --ok: #14532d;
  --ok-bg: #dcfce7;
  --warn: #7a4a00;
  --warn-bg: #fef3c7;
  --bad: #7f1d1d;
  --bad-bg: #fee2e2;
  --brand: #1b3050;
  --on-brand: #ffffff;
  --accent: #e6c100;
  --on-accent: #13213a;
  --pass-bg: #ffffff;
  --pass-fg: #13213a;
  --pass-muted: #55627a;
  --f-disp: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Barlow", system-ui, sans-serif;
  --r-btn: 12px;
  --r-card: 14px;
  }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.45 var(--f-body); min-height: 100vh; display: flex; flex-direction: column; }
/* Nothing may make a page wider than the screen (a phone would then let you drag the whole page sideways, and full-screen views go off-centre). clip keeps sticky headers working. */
body { overflow-x: clip; }
main { min-width: 0; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--f-disp); font-weight: 700; line-height: 1.05; text-wrap: balance; }
h1 { font-size: 40px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--fg); outline-offset: 2px; }

html { scrollbar-gutter: stable; overflow-y: scroll; overflow-x: hidden; }
.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.band { position: sticky; top: 0; z-index: 80; background: var(--brand); color: var(--on-brand); padding-block: 16px; border-bottom: 5px solid var(--accent); padding-top: max(16px, env(safe-area-inset-top, 0px)); }
.band .wrap { display: flex; align-items: center; gap: 12px; }
.band a { text-decoration: none; display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo { width: 44px; height: 44px; border-radius: 10px; flex: none; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-family: var(--f-disp); font-weight: 700; font-size: 22px; overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.band-name { font-family: var(--f-disp); font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: 0.03em; text-transform: uppercase; overflow-wrap: break-word; min-width: 0; }
main { flex: 1; padding-block: 20px 32px; }
.view { display: flex; flex-direction: column; gap: 16px; }
.lead { color: var(--muted); max-width: 56ch; }
.lbl { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.note { font-size: 14px; color: var(--muted); }
.error { background: var(--bad-bg); color: var(--bad); border-radius: var(--r-btn); padding: 12px 14px; font-weight: 600; }
.banner { background: var(--ok-bg); color: var(--ok); border-radius: var(--r-btn); padding: 12px 14px; font-weight: 600; }
.banner.warn { background: var(--warn-bg); color: var(--warn); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: var(--r-btn); border: 2px solid var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 17px; cursor: pointer; text-align: center; text-decoration: none; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--fg); }
.btn.block { display: flex; width: 100%; }
.btn.mini { min-height: 40px; padding: 6px 14px; font-size: 15px; border-radius: 10px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.tier { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-card); padding: 14px 16px; cursor: pointer; }
.tier { position: relative; }
.tier:has(input:checked), .tier.sel { border-color: var(--fg); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14); }
.tier input { position: absolute; opacity: 0; pointer-events: none; }
.tier input:focus-visible ~ .radio { outline: 3px solid var(--fg); outline-offset: 2px; }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--fg); flex: none; display: flex; align-items: center; justify-content: center; }
.radio i { display: none; width: 12px; height: 12px; border-radius: 50%; background: var(--fg); }
.tier input:checked ~ .radio i { display: block; }
.tier-main { flex: 1; min-width: 0; }
.tier-name { display: block; font-weight: 700; font-size: 18px; }
.tier-desc { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.tier-price { font-family: var(--f-disp); font-weight: 700; font-size: 30px; flex: none; }

.field { display: flex; flex-direction: column; gap: 6px; }
.input { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--r-btn); border: 2px solid var(--line); background: var(--surface); color: var(--fg); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.empty { text-align: center; padding: 28px 12px; align-items: center; }

.pass { background: var(--pass-bg); color: var(--pass-fg); border-radius: var(--r-card); overflow: hidden; max-width: 380px; width: 100%; margin-inline: auto; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18); }
.pass-head { background: var(--pass-head, var(--brand)); color: var(--pass-head-fg, var(--on-brand)); border-bottom: 5px solid var(--pass-trim, var(--accent)); padding: 14px 18px; display: flex; align-items: center; gap: 10px; }
.pass-head .logo { width: 34px; height: 34px; font-size: 17px; border-radius: 8px; }
.pass-club { font-family: var(--f-disp); font-weight: 700; font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; overflow-wrap: anywhere; flex: 1; }
.pass-role { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--pass-role, var(--accent)); flex: none; }
.pass-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
/* "Powered by ClubCanvas", small and quiet under the code, in the card's own colours */
.pass-by { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: -4px; font: 500 11px/1.2 var(--f-body); letter-spacing: .01em; color: var(--pass-muted); text-align: left; }
.pass-by svg { flex: none; display: block; color: var(--pass-fg); opacity: .85; }
.pass-by-b { font-weight: 700; color: var(--pass-fg); }
.pass .lbl { color: var(--pass-muted); }
.pass-name { font-family: var(--f-disp); font-weight: 700; font-size: 36px; line-height: 1.05; overflow-wrap: anywhere; }
/* Always the same layout: tier and member number on one row, valid to under the tier, so every card is the same shape. */
.pass-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; }
.pass-grid b { display: block; font-size: 17px; }
.qr { align-self: center; background: #ffffff; border: 2px solid #13213a; border-radius: var(--r-btn); padding: 10px; width: 216px; height: 216px; }
.qr svg { display: block; width: 100%; height: 100%; }
.code { font: 12px/1.3 ui-monospace, Menlo, monospace; color: var(--pass-muted); text-align: center; overflow-wrap: anywhere; }

.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-btn); padding: 12px 14px; }
.stat b { display: block; font-family: var(--f-disp); font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.rows { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row-main { flex: 1; min-width: 150px; }
.row-main b { display: block; }
.row-sub { font-size: 14px; color: var(--muted); }

.result { display: flex; align-items: center; gap: 14px; border-radius: var(--r-card); padding: 16px; }
.result.ok { background: var(--ok-bg); color: var(--ok); }
.result.bad { background: var(--bad-bg); color: var(--bad); }
.result .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); flex: none; display: flex; align-items: center; justify-content: center; }
.result b { display: block; font-family: var(--f-disp); font-size: 28px; line-height: 1.05; }
.viewfinder { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 60vh; background: #0b1424; border-radius: var(--r-card); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.viewfinder video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viewfinder .hint { position: relative; color: #c3ccdb; text-align: center; padding: 16px; }
.frame { position: absolute; inset: 18% 22%; pointer-events: none; }
.frame i { position: absolute; width: 34px; height: 34px; border: 0 solid var(--accent); }
.frame i:nth-child(1) { left: 0; top: 0; border-left-width: 4px; border-top-width: 4px; border-radius: 8px 0 0 0; }
.frame i:nth-child(2) { right: 0; top: 0; border-right-width: 4px; border-top-width: 4px; border-radius: 0 8px 0 0; }
.frame i:nth-child(3) { left: 0; bottom: 0; border-left-width: 4px; border-bottom-width: 4px; border-radius: 0 0 0 8px; }
.frame i:nth-child(4) { right: 0; bottom: 0; border-right-width: 4px; border-bottom-width: 4px; border-radius: 0 0 8px 0; }
.ci { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.ci:first-child { border-top: 0; }
.colors { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
input[type="color"] { width: 100%; height: 48px; padding: 3px; border-radius: var(--r-btn); border: 2px solid var(--line); background: var(--surface); }
.preview { display: flex; flex-direction: column; gap: 12px; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
footer.site { padding-block: 16px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.staffnav { display: flex; flex-wrap: wrap; gap: 8px; }

.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
button.chip { font: inherit; color: inherit; }

.nav { margin-left: auto; display: flex; gap: 4px; flex: none; }
.nav a { padding: 8px 10px; border-radius: var(--r-btn); font-weight: 600; font-size: 15px; text-decoration: none; }
.nav a:hover { background: rgba(255, 255, 255, 0.14); }
.band a.brand-link { flex: 1; }
.who { display: flex; flex-wrap: wrap; gap: 8px; }
/* With swiping cards the name buttons sit in one row that scrolls sideways if it needs to. */
.who:has(~ .cardsw.many) { flex-wrap: nowrap; overflow-x: auto; min-width: 0; width: 100%; max-width: 100%; scrollbar-width: none; padding-bottom: 2px; contain: paint; }
.who:has(~ .cardsw.many)::-webkit-scrollbar { display: none; }
.who:has(~ .cardsw.many) .chip { flex: none; }
.who .chip { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.2; border-radius: var(--r-btn); }
.who .chip small { font-weight: 500; opacity: 0.8; }
.hint-inline { font-size: 14px; color: var(--muted); }
textarea.input { min-height: 96px; resize: vertical; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; }
.event { display: flex; flex-direction: column; gap: 8px; }
.event.off { opacity: 0.6; }
.event h3 { font-size: 24px; }
.book-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 8px; }
.sub-nav { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 480px) { .band-name { font-size: 20px; } .nav a { padding: 8px 8px; font-size: 14px; } .logo { width: 38px; height: 38px; } }


/* ---- Events: list with previews, and calendar ---- */
.js-only { display: none; }
.js .js-only { display: inline-flex; }
.ev-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ev-toggle { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.ev-toggle button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--fg); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.ev-toggle button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.ev-month { font-family: var(--f-disp); font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 18px 2px 8px; }
.ev-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.ev-date { width: 48px; flex: none; text-align: center; padding-top: 10px; }
.ev-date span { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ev-date b { font-family: var(--f-disp); font-size: 32px; line-height: 1; }
.ev-card { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.ev-card[open] { border-color: var(--fg); }
.ev-card.off { opacity: 0.65; }
.ev-card summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 64px; box-sizing: border-box; padding: 12px 14px; cursor: pointer; }
.ev-card summary::-webkit-details-marker { display: none; }
.ev-sum { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ev-time { font-size: 13px; font-weight: 700; color: var(--muted); }
.ev-title { font-family: var(--f-disp); font-weight: 700; font-size: 22px; line-height: 1.1; }
.ev-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--fg); }
.tag.paid { background: var(--accent); color: var(--on-accent); }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.ev-chev { flex: none; transition: transform 0.15s; }
.ev-card[open] .ev-chev { transform: rotate(180deg); }
.ev-body { border-top: 1px solid var(--line); padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.ev-body p { margin: 0; }
.ev-map { width: 100%; height: 220px; border: 0; border-radius: 10px; }
.ev-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-route { border-radius: 10px; overflow: hidden; }
.ev-route iframe { display: block; max-width: 100%; border: 0; }
.btn.strava { background: #FC5200; color: #fff; border-color: #FC5200; font-weight: 700; gap: 8px; padding-left: 8px; }
.btn.strava:hover { background: #e04900; border-color: #e04900; }
.btn.strava img { width: 22px; height: 22px; border-radius: 5px; flex: none; }
.sv-box { display: flex; align-items: center; gap: 10px; }
.sv-box img { width: 28px; height: 28px; border-radius: 6px; flex: none; }
.sv-box .input { flex: 1; min-width: 0; }
#ev-sv-map[hidden] { display: none; }
.lk-rows { display: flex; flex-direction: column; gap: 8px; }
.lk-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) 44px; gap: 8px; }
.lk-x { border: 0; border-radius: 10px; background: var(--line, #e6e9ec); font-size: 22px; font-weight: 700; color: inherit; cursor: pointer; }
.lk-add { margin-top: 8px; width: 100%; min-height: 44px; border: 2px dashed var(--line, #cfd6dd); border-radius: 12px; background: transparent; font: inherit; font-weight: 700; color: inherit; cursor: pointer; }
.lk-add[hidden] { display: none; }
.strava-found { margin-top: 8px; padding: 10px 12px; border: 1px solid #fdd2bf; background: #fff4ee; border-radius: 10px; display: flex; flex-direction: column; gap: 6px; }
.strava-found[hidden] { display: none; }
.strava-found b { display: flex; align-items: center; gap: 8px; color: #c43f00; }
.strava-found b img { border-radius: 4px; }
.ev-card.static { display: flex; flex-direction: column; }
.ev-card.static .ev-sum { padding: 12px 14px 4px; }
.ev-go { display: flex; align-items: center; min-height: 44px; padding: 0 14px; font-weight: 700; font-size: 14px; color: var(--fg); }

.cal { gap: 6px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; }
.cal-nav h2 { margin: 0; font-size: 24px; }
.cal-nav button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--fg); cursor: pointer; }
.cal-nav button[disabled] { opacity: 0.3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-dow { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); }
.cal-day { height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 10px; border: 1.5px solid transparent; background: transparent; color: var(--fg); font: inherit; cursor: pointer; padding: 0; }
.cal-day.today { border-color: var(--fg); }
.cal-day[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.cal-n { font-size: 15px; font-weight: 700; line-height: 1; }
.cal-dots { display: flex; gap: 3px; height: 8px; align-items: center; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--fg); box-sizing: border-box; vertical-align: middle; }
.cal-day[aria-pressed="true"] .dot:not(.paid):not(.off) { background: var(--bg); }
.dot.paid { background: var(--accent); border: 1px solid var(--fg); }
.dot.off { background: transparent; border: 1.5px solid #8a97ab; }
.cal-names { display: none; }
.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 6px; }
.cal-day-panel { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.cal-events { display: flex; flex-direction: column; gap: 10px; }
.cal-events[hidden], .cal[hidden], #ev-cal[hidden], #ev-list[hidden], .cal-none[hidden] { display: none; }

@media (min-width: 820px) {
  .cal-day { height: 100px; align-items: stretch; justify-content: flex-start; padding: 6px; border-color: var(--line); border-radius: 10px; text-align: left; overflow: hidden; }
  .cal-day.today { border-color: var(--fg); }
  .cal-dots { display: none; }
  .cal-n { height: 22px; font-size: 13px; color: var(--muted); }
  .cal-day[aria-pressed="true"] .cal-n { color: var(--bg); }
  .cal-names { display: flex; flex-direction: column; gap: 4px; }
  .cal-chip { font-size: 12px; font-weight: 700; line-height: 1.2; padding: 3px 6px; border-radius: 6px; background: var(--soft); color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cal-chip.paid { background: var(--accent); color: var(--on-accent); }
  .cal-chip.off { background: var(--surface); border: 1px dashed #8a97ab; color: var(--muted); text-decoration: line-through; }
}

/* ---------- Admin shell: menu on the left (wide screens) or a drop-down (phones) ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap.wide { max-width: 1320px; }
.logo.logo-free { width: auto; height: var(--logo-h, 44px); max-width: 62vw; background: none; border-radius: 0; overflow: visible; }
.logo.logo-free img { width: auto; height: 100%; max-width: 100%; object-fit: contain; }
.staff-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 8px; }
.sm-check { position: absolute; opacity: 0; pointer-events: none; }
.sm-btn { display: none; }
.staff-side { position: sticky; top: calc(var(--band-h, 0px) + 12px); display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 8px; }
.staff-side a, .staff-side button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border-radius: calc(var(--r-btn) - 2px); color: var(--fg); font: inherit; font-weight: 600; text-decoration: none; background: none; border: 0; cursor: pointer; }
.staff-side a:hover, .staff-side button:hover { background: var(--soft); }
.staff-side a[aria-current="page"] { background: var(--brand); color: var(--on-brand); }
.staff-side .side-gap { height: 1px; background: var(--line); margin: 6px 4px; }
.staff-side form { margin: 0; }
.staff-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sm-bar { display: contents; }
.sm-head { display: none; }
@media (max-width: 860px) {
  .staff-shell { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  /* Admin pages on phones: the admin menu button is in the club header (.sm-head), and the menu opens under the header, over the page. */
  .sm-bar { display: block; }
  .sm-bar > .sm-btn { display: none !important; }
  .sm-bar .staff-side { position: fixed; z-index: 90; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); top: calc(var(--band-h, 80px) + 8px);
    max-height: calc(100vh - var(--band-h, 80px) - 24px); overflow-y: auto; border-radius: 16px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25); }
  .band .sm-head { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; min-height: 46px; padding: 6px 13px 6px 14px; border-radius: var(--r-btn); border: 2px solid rgba(255, 255, 255, 0.55); font-weight: 700; cursor: pointer; white-space: nowrap; }
  .band .logo.logo-free { flex: 0 1 auto; min-width: 0; }
  .band .sm-head b { display: block; width: 18px; height: 2.5px; border-radius: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
  .sm-open .band .sm-head { background: var(--on-brand); color: var(--brand); border-color: var(--on-brand); }
  .band .wrap.staffbar a.brand-link { flex: 1 1 auto; min-width: 0; }
  .band .wrap.staffbar .nav-btn, .band .wrap.staffbar .nav { display: none !important; }
  .sm-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 8px 14px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-btn); cursor: pointer; }
  .sm-btn span { color: var(--muted); font-weight: 600; }
  .sm-btn b::after { content: " \25BE"; }
  .sm-check:focus-visible + .sm-btn { outline: 3px solid var(--accent); outline-offset: 2px; }
  .staff-side { display: none; position: static; }
  .sm-check:checked ~ .staff-side { display: flex; }
}

/* ---------- Members table ---------- */
.mhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.mhead h1 { margin: 0; }
.mhead-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.mtabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 2px solid var(--line); }
.mtabs button { font: inherit; font-weight: 700; background: none; border: 0; border-bottom: 4px solid transparent; margin-bottom: -2px; padding: 10px 14px; cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.mtabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--brand); }
.mtabs .n { background: var(--soft); border-radius: 999px; padding: 0 9px; font-size: 14px; color: var(--fg); }
.mtabs button[aria-selected="true"] .n { background: var(--brand); color: var(--on-brand); }
.mtools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mtools .grow { flex: 1; }
.mtools select, .mtools input[type="search"] { min-height: 42px; padding: 6px 10px; border-radius: var(--r-btn); border: 2px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; }
.mtools input[type="search"] { min-width: 180px; }
.mbtn { min-height: 42px; padding: 6px 14px; border-radius: var(--r-btn); border: 2px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.mbtn:hover { background: var(--soft); }
.mtablewrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow-x: auto; }
table.mtable { width: 100%; border-collapse: collapse; font-size: 15px; }
.mtable th { background: var(--brand); color: var(--on-brand); text-align: left; padding: 10px 12px; white-space: nowrap; font-weight: 700; }
.mtable th[data-sort] { cursor: pointer; user-select: none; }
.mtable th[data-sort]::after { content: " \2195"; opacity: 0.55; }
.mtable th[aria-sort="ascending"]::after { content: " \25B2"; opacity: 1; }
.mtable th[aria-sort="descending"]::after { content: " \25BC"; opacity: 1; }
.mtable td { padding: 8px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.mtable tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--soft) 55%, transparent); }
.mtable tbody tr:hover td { background: var(--soft); }
.mtable td.sel, .mtable th.sel { width: 36px; text-align: center; }
.mtable input[type="checkbox"] { width: 18px; height: 18px; }
.mtable .nm { font-weight: 700; color: var(--fg); text-decoration: none; }
.mtable .nm:hover { text-decoration: underline; }
.mtable .sub { display: block; font-size: 13px; color: var(--muted); }
.mtable .acts { white-space: nowrap; text-align: right; }
.mtable .acts a, .mtable .acts button { font: inherit; font-size: 14px; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); text-decoration: none; cursor: pointer; }
.mtable .acts a:hover, .mtable .acts button:hover { background: var(--soft); }
.mtable tr[hidden] { display: none; }
.mfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: var(--brand); color: var(--on-brand); border-radius: var(--r-card); padding: 8px 12px; font-weight: 600; }
.mpager { display: flex; flex-wrap: wrap; gap: 4px; }
.mpager button { min-width: 36px; min-height: 36px; padding: 0 10px; border-radius: 8px; border: 0; background: var(--surface); color: var(--fg); font: inherit; font-weight: 700; cursor: pointer; }
.mpager button[disabled] { opacity: 0.45; cursor: default; }
.mpager button[aria-current="true"] { background: var(--accent); color: var(--on-accent); }
.add-panel summary { cursor: pointer; font-weight: 700; font-size: 18px; }
.add-panel[open] summary { margin-bottom: 12px; }
.mempty { padding: 24px; text-align: center; color: var(--muted); }
@media (max-width: 720px) { .hide-sm { display: none; } .mtools input[type="search"] { min-width: 0; flex: 1; } }
@media print { .band, .staff-side, .sm-btn, .mtools, .mtabs, .mfoot, .add-panel, .acts, .sel { display: none !important; } .staff-shell { display: block; } .mtable tr[hidden] { display: table-row; } }
.staff-main .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.staff-main .stat { padding: 8px 12px; display: flex; align-items: baseline; gap: 8px; }
.staff-main .stat b { font-size: 24px; display: inline; }
.mtable td:nth-child(2) { min-width: 190px; }
.mtable td:nth-child(6), .mtable td:nth-child(3) { white-space: nowrap; }
@media (max-width: 600px) { .staff-main .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Rich text (membership descriptions) ---------- */
.rich { line-height: 1.5; overflow-wrap: anywhere; }
.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich p { margin: 0 0 0.7em; }
.rich ul, .rich ol { margin: 0.3em 0 0.8em; padding-left: 1.4em; }
.rich li { margin: 0.15em 0; }
.rich h2 { font-family: var(--f-disp); font-size: 1.5em; line-height: 1.15; margin: 0.8em 0 0.3em; }
.rich h3 { font-family: var(--f-disp); font-size: 1.25em; line-height: 1.2; margin: 0.8em 0 0.3em; }
.rich h4 { font-size: 1em; text-transform: uppercase; letter-spacing: 0.06em; margin: 0.8em 0 0.3em; }
.rich blockquote { margin: 0.6em 0; padding: 0.2em 0 0.2em 12px; border-left: 4px solid var(--accent); color: var(--muted); }
.rich hr { border: 0; border-top: 2px solid var(--line); margin: 0.9em 0; }
.rich a { color: inherit; text-decoration: underline; }
.rich .a-center { text-align: center; }
.rich .a-right { text-align: right; }
.rich .f-head { font-family: var(--f-disp); }
.rich .f-serif { font-family: Georgia, "Times New Roman", serif; }
.rich .f-mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.rich .s-sm { font-size: 0.85em; }
.rich .s-lg { font-size: 1.3em; }
.rich .s-xl { font-size: 1.75em; line-height: 1.15; }
.tier-card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-card); }
.tier-card:has(input:checked) { border-color: var(--fg); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14); }
.tier-card .tier { border: 0; box-shadow: none; background: none; border-radius: var(--r-card); }
.tier-more { padding: 0 16px 14px 52px; font-size: 15px; color: var(--fg); }

/* The editor */
.rt { border: 2px solid var(--line); border-radius: var(--r-btn); background: var(--surface); overflow: hidden; }
.rt:focus-within { border-color: var(--fg); }
.rt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px; background: var(--soft); border-bottom: 1px solid var(--line); }
.rt-bar button, .rt-bar select { min-height: 36px; min-width: 36px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.rt-bar button:hover, .rt-bar select:hover { background: var(--bg); }
.rt-bar button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.rt-bar input[type="color"] { width: 36px; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; }
.rt-bar .sep { width: 1px; height: 24px; background: var(--line); margin: 0 4px; }
.rt-area { min-height: 180px; max-height: 520px; overflow: auto; resize: vertical; padding: 12px 14px; outline: none; background: var(--surface); color: var(--fg); }
.rt-area:empty::before { content: attr(data-placeholder); color: var(--muted); }
.tier-card .tier:has(input:checked) { border-color: transparent; box-shadow: none; }
.staff-side .side-who { display: block; padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.staff-side .side-who b { display: block; }
.staff-side .side-who small { color: var(--muted); }
.perm-grid { display: grid; gap: 6px; }
.perm-grid label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--surface); }
.perm-grid label small { display: block; color: var(--muted); }
.perm-grid input { margin-top: 4px; width: 18px; height: 18px; }
.perm-grid .sens { border-color: var(--warn); }
.tag-locked { font-size: 13px; color: var(--muted); }

.famtag { display: block; font-size: 12px; color: var(--muted, #667); margin-top: 2px; }
.famtag.owner { display: inline-block; background: var(--soft); color: var(--ink, inherit); border-radius: 99px; padding: 1px 9px; font-weight: 700; }
.famtag a { color: inherit; font-weight: 700; }
.mtable tr.fam-child td:nth-child(2) { padding-left: 30px; border-left: 3px solid var(--brand); }
.mtable tr.fam-owner td:nth-child(2) { border-left: 3px solid var(--brand); }
.ev-img-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ev-img-prev { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.ev-thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; }
.ev-photo { width: 100%; max-height: 260px; object-fit: cover; border-radius: 10px; }
.pick-list { list-style: none; margin: 6px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.pick-list li + li { border-top: 1px solid var(--line); }
.pick-list button { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 8px 12px; background: none; border: 0; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.pick-list button:hover, .pick-list button:focus { background: var(--soft); }
.pick-list small { color: var(--muted); }
.pick-list .none { padding: 8px 12px; color: var(--muted); }
.ev-img-pick [hidden] { display: none !important; }

.pass-logo { height: 40px; max-width: 55%; flex: none; display: flex; align-items: center; }
.pass-logo.grow { flex: 1; max-width: none; }
.pass-logo img { height: 100%; width: auto; max-width: 100%; object-fit: contain; display: block; }

/* Phones: the logo gets the whole top row and the Menu button sits below it, in the header. The menu opens over the page
   (it doesn't push the page down), like the admin menu. Admin pages use their own menu instead. */
.nav-btn { display: none; }
@media (max-width: 700px) {
  .band .wrap { position: relative; }
  .band a.brand-link { flex: 1 1 auto; min-width: 0; }
  .band .logo.logo-free { flex: 0 1 auto; min-width: 0; }
  /* A ☰ button on the right, in line with the logo (like ClubCanvas's own header). */
  .nav-btn { display: grid; place-items: center; flex: none; width: 46px; height: 46px; box-sizing: border-box; padding: 0; border-radius: var(--r-btn); border: 2px solid rgba(255, 255, 255, 0.55); cursor: pointer; color: inherit; }
  .nav-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-btn b { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: currentColor; box-shadow: 0 -6.5px 0 currentColor, 0 6.5px 0 currentColor; }
  .sm-check:checked + .nav-btn { background: var(--on-brand); color: var(--brand); border-color: var(--on-brand); }
  .sm-check:focus-visible + .nav-btn { outline: 3px solid var(--accent); outline-offset: 2px; }
  .band .nav { display: none; position: absolute; z-index: 50; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); top: calc(100% + 24px);
    margin-left: 0; max-height: calc(100vh - 150px); overflow-y: auto; scrollbar-width: none; }
  .sm-check:checked ~ .nav { display: flex; }
  .band .wrap.staffbar .nav-btn, .band .wrap.staffbar .nav { display: none !important; }
}
/* Wider screens: the same Menu drop-down, so the header looks and works the same everywhere. */
@media (min-width: 701px) {
  .band .wrap { position: relative; }
  .nav-btn { display: flex; align-items: center; gap: 10px; margin-left: auto; min-height: 44px; padding: 6px 14px; border-radius: var(--r-btn); border: 2px solid rgba(255, 255, 255, 0.55); cursor: pointer; font-weight: 700; flex: none; }
  .nav-btn b::after { content: "\25BE"; }
  .sm-check:focus-visible + .nav-btn { outline: 3px solid var(--accent); outline-offset: 2px; }
  .band .nav { display: none; position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); top: calc(100% + 22px); z-index: 50; min-width: 300px; }
  .sm-check:checked ~ .nav { display: flex; }
}
/* The member menu: a white card like the admin menu, with icons, the signed-in person at the top and the current page highlighted. */
.band .nav { flex-direction: column; gap: 2px; padding: 8px; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25); }
.band .nav::-webkit-scrollbar { display: none; }
.band .nav a, .band .nav button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 10px; color: var(--fg); background: none; border: 0; font: inherit; font-weight: 600; font-size: 16px; text-align: left; text-decoration: none; cursor: pointer; }
.band .nav a:hover, .band .nav button:hover { background: var(--soft); }
.band .nav a[aria-current="page"] { background: var(--brand); color: var(--on-brand); }
.band .nav .um-who { display: block; padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.band .nav .um-who b { display: block; font-size: 17px; }
.band .nav .um-who small { color: var(--muted); font-size: 14px; }
.band .nav .um-gap { height: 1px; background: var(--line); margin: 6px 4px; }
.ic { width: 21px; height: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.band .nav .ic, .staff-side .ic { opacity: 0.75; }
.band .nav a[aria-current] .ic, .staff-side a[aria-current] .ic { opacity: 1; }
/* The scan button in the header (anyone who may use the scanner). */
.hscan { display: grid !important; place-items: center; flex: none; width: 46px; height: 46px; box-sizing: border-box; margin-left: auto; border-radius: var(--r-btn); border: 2px solid rgba(255, 255, 255, 0.55); color: inherit; }
.hscan .ic { width: 24px; height: 24px; stroke-width: 2.3; opacity: 1; }
.hscan:hover { background: rgba(255, 255, 255, 0.14); }
.hscan ~ .sm-head, .hscan ~ .nav-btn { margin-left: 0 !important; }
.nav form { margin: 0; display: block; }
.nav hr { width: 100%; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.3); margin: 4px 0; }
.guest-qr { align-items: center; text-align: center; }
.guest-qr .qr { width: 260px; height: 260px; }
.guest-dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 8px 0; }
.guest-dl dt { font-weight: 700; color: var(--muted); }
.guest-dl dd { margin: 0; overflow-wrap: anywhere; }
@media print { .guest-row, .guest-list, .staff-side, .staffnav, .no-print { display: none !important; } }
.incident { border: 1px solid var(--line); border-radius: var(--r-card); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.incident p { margin: 0; }
.person-row summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media print { .person-row { display: block !important; break-inside: avoid; } .person-row[open] > summary, .person-row > summary { display: flex !important; } .staff-side, .sm-btn, .band, .no-print { display: none !important; } }

/* Install-as-an-app bar and panel */
.pwa-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; max-width: 520px; margin-inline: auto; background: var(--brand); color: var(--on-brand); border-radius: var(--r-card); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3); padding: 12px 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.pwa-bar p { margin: 0; flex: 1 1 200px; }
.pwa-bar .btn { background: var(--accent); color: var(--on-accent, #111); }
.pwa-bar button.x { background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; padding: 8px; min-height: 44px; }
.pwa-sheet { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, 0.45); display: flex; align-items: flex-end; justify-content: center; }
.pwa-sheet-box { background: var(--surface, #fff); color: var(--fg); width: 100%; max-width: 520px; max-height: 85vh; overflow-y: auto; border-radius: var(--r-card) var(--r-card) 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); font-size: 15px; }
.pwa-sheet-box h3 { margin: 0 0 6px; }
.pwa-sheet-box .btn { margin-top: 12px; }
.pwa-steps { margin: 8px 0 0; padding-left: 20px; }
.pwa-steps li { margin: 4px 0; }
.tapnote { text-align: center; }
.pass[data-card] { cursor: pointer; }
.pass[data-card]:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Full-screen card: white screen, big code, swipe between cards */
.cardfs { position: fixed; inset: 0; z-index: 200; background: #ffffff; display: flex; flex-direction: column; }
.cardfs[hidden] { display: none; }
.cardfs-x { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 12px; z-index: 2; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 2px solid #13213a; background: #fff; color: #13213a; font: 700 16px/1 inherit; font-family: inherit; cursor: pointer; }
.cardfs-track { flex: 1; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.cardfs-track::-webkit-scrollbar { display: none; }
.cardfs-slide { flex: 0 0 100%; min-height: 0; scroll-snap-align: center; scroll-snap-stop: always; display: flex; align-items: safe center; justify-content: center; padding: calc(60px + env(safe-area-inset-top)) 16px 8px; overflow-y: auto; }
.cardfs-slide .pass { max-width: 440px; box-shadow: none; border: 1px solid #d5dbe6; }
.cardfs-slide .qr { width: max(140px, min(78vw, 360px, calc(100vh - 560px))); height: max(140px, min(78vw, 360px, calc(100vh - 560px))); }
.cardfs-slide .qr { width: max(140px, min(78vw, 360px, calc(100dvh - 560px))); height: max(140px, min(78vw, 360px, calc(100dvh - 560px))); }
/* With the wallet badges under the card, the code is a little smaller so everything fits on the screen. */
.cardfs.has-wallet .cardfs-slide .qr { width: max(140px, min(78vw, 340px, calc(100vh - 650px))); height: max(140px, min(78vw, 340px, calc(100vh - 650px))); }
.cardfs.has-wallet .cardfs-slide .qr { width: max(140px, min(78vw, 340px, calc(100dvh - 650px))); height: max(140px, min(78vw, 340px, calc(100dvh - 650px))); }
.cardfs-slide .pass { display: flex; flex-direction: column; }
.cardfs-slide .pass .pass-body { flex: 1; }
.cardfs-foot .wallet-row { margin: 8px 0 2px; }
.cardfs-foot .save-row { margin: 8px 0 0; }
.cardfs-foot { padding: 4px 16px calc(14px + env(safe-area-inset-bottom)); text-align: center; color: #13213a; }
.cardfs-hint { margin: 6px 0 0; font-size: 14px; color: #44506a; }
.cardfs-dots { display: flex; gap: 8px; justify-content: center; min-height: 12px; }
.cardfs-dots i { width: 10px; height: 10px; border-radius: 50%; background: #c3cbda; display: block; }
.cardfs-dots i.on { background: #13213a; }
body.cardfs-open { overflow: hidden; }
[data-install] [hidden], .pwa-bar[hidden] { display: none !important; }
.join-step { font-size: 18px; margin: 4px 0; }
[data-claim-other][hidden] { display: none !important; }
.pass-claim { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.pass-claim .lbl { flex: 0 0 100%; }

.type-detail > td { background: var(--surface); }
.mhead [hidden] { display: none !important; }
.code-row { display: flex; gap: 8px; max-width: 360px; }
.code-row .input { flex: 1; text-transform: uppercase; }
.was { font-size: 16px; font-weight: 400; opacity: 0.6; }
.code-mini { width: 9em; padding: 6px 8px; font-size: 14px; text-transform: uppercase; }
/* The official Add to Apple Wallet / Google Wallet badges, side by side (stacked on very narrow phones). */
.wallet-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.wallet-badge { display: inline-flex; border-radius: 12px; }
.wallet-badge img { display: block; height: 48px; width: auto; }
.wallet-badge:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.save-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 8px 0 24px; }
.card-sample { display: flex; justify-content: center; } .card-sample .pass { margin: 0; } .card-previews { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; } .card-previews > div { flex: 1 1 280px; max-width: 380px; } .card-previews .lbl { display: block; margin-bottom: 6px; }

/* Family rows: Edit details and Remove side by side, the edit form opening underneath. */
.row-acts { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.row-acts form { margin: 0; }
.row-edit { flex: 1 0 100%; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.row-edit[hidden], #add-child[hidden], #add-adult[hidden] { display: none; }
.row.open { background: var(--bg); }
.add-btns { margin: 12px 0; }
#family { margin-top: 24px; }
/* My account runs full width like the rest of the site: heading in line with the logo, cards across the page,
   then the family (or your details) and data panels side by side on computers. */
.acc-head { display: flex; flex-direction: column; gap: 6px; }
.acc-head h1, .acc-head .note { margin: 0; }
.acc-low { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.acc-low > .panel, .acc-low > #family { margin: 0; min-width: 0; }
.acc-view #card-acts { width: 100%; max-width: 560px; margin-inline: auto; }
@media (min-width: 900px) {
  .acc-low { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
}

html { scroll-padding-top: 96px; }

/* Emails admin: the preview frame under the form. */
.email-frame { width: 100%; height: 620px; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; margin-top: 14px; }

/* Income pages, event categories */
.income-strip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin: 10px 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--surface); color: var(--fg); text-decoration: none; }
.income-strip b { font-family: var(--f-disp); font-size: 24px; }
.income-strip:hover, .income-strip:focus-visible { border-color: var(--fg); }
.income-ranges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 4px; }
.income-ranges .catfilter { margin-left: auto; }
.income-h { margin: 22px 0 8px; font-size: 20px; }
.mtabs a.tabl { font-weight: 700; border-bottom: 4px solid transparent; margin-bottom: -2px; padding: 10px 14px; color: var(--muted); text-decoration: none; }
.mtabs a.tabl[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--brand); }
.income-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; }
.ibar { display: flex; flex-direction: column; align-items: stretch; gap: 4px; text-decoration: none; color: var(--fg); text-align: center; border-radius: 8px; padding: 4px 2px; }
.ibar:hover, .ibar:focus-visible, .ibar.cur { background: var(--soft); }
.ibar-b { display: flex; align-items: flex-end; height: 110px; background: var(--soft); border-radius: 6px; overflow: hidden; }
.ibar-b i { display: block; width: 100%; background: var(--brand); border-radius: 6px 6px 0 0; }
.ibar.cur .ibar-b i { background: var(--accent, var(--brand)); }
.ibar-v { font-size: 11px; min-height: 14px; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.ibar-l { font-size: 12px; font-weight: 700; }
.ibar-l small { display: block; font-weight: 400; color: var(--muted); }
@media (max-width: 600px) { .income-bars { gap: 3px; } .ibar-v { display: none; } }
.catfilter { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0; }
.catfilter select { font: inherit; padding: 8px 10px; border: 2px solid var(--line); border-radius: var(--r-btn); background: var(--surface); color: var(--fg); }
.catrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.catrow .input { flex: 1 1 200px; max-width: 320px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }

.staff-main .income-stats, .income-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.income-stats .stat b { white-space: nowrap; }

/* Booked events stand out: a green card, a solid green banner and a green date */
.ev-card.booked { background: var(--ok-bg); border-color: var(--ok); border-left-width: 6px; }
.ev-card.booked[open] { border-color: var(--ok); }
.ev-booked { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; background: var(--ok); color: #fff; font-weight: 800; font-size: 14px; padding: 4px 12px 4px 9px; border-radius: 999px; }
.ev-date.booked b { color: var(--ok); }
.dot.booked { background: var(--ok); }
.cal-day[aria-pressed="true"] .dot.booked { background: #4ade80; }
.cal-chip.booked { background: var(--ok); color: #fff; }

/* Several events on one day share a single date block */
.ev-day { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ev-day .ev-card { flex: none; }

/* Calendar: "+ more" and the week view */
.cal-more { font-size: 12px; font-weight: 700; color: var(--muted); padding: 0 6px; }
.cal-plus { font-size: 10px; font-weight: 800; line-height: 1; margin-left: 1px; }
@media (min-width: 820px) { .cal-day { height: 128px; } }
#ev-week[hidden], .wk[hidden] { display: none; }
.wk-grid { display: flex; flex-direction: column; gap: 8px; }
.wk-day { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--surface); }
.wk-day.today { border-color: var(--fg); border-width: 2px; padding: 7px 9px; }
.wk-day.empty { align-items: center; padding-top: 6px; padding-bottom: 6px; background: transparent; }
.wk-head { flex: none; width: 68px; font-size: 12px; color: var(--muted); font-weight: 700; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.06em; }
.wk-head b { font-family: var(--f-disp); font-size: 26px; color: var(--fg); line-height: 1; letter-spacing: 0; }
.wk-day.empty .wk-head { flex-direction: row; align-items: baseline; gap: 6px; }
.wk-day.empty .wk-head b { font-size: 16px; }
.wk-mon { font-size: 11px; }
.wk-day.empty .wk-mon { display: none; }
.wk-evs { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.wk-ev { flex: 1 1 190px; max-width: 100%; display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; border-radius: 8px; background: var(--soft); color: var(--fg); text-decoration: none; border-left: 4px solid var(--fg); min-width: 0; }
.wk-ev:hover, .wk-ev:focus-visible { outline: 2px solid var(--fg); }
.wk-ev.paid { border-left-color: var(--accent); }
.wk-ev.booked { background: var(--ok-bg); border-left-color: var(--ok); }
.wk-ev.booked .wk-title { color: var(--ok); }
.wk-ev.off { background: var(--surface); border: 1px dashed #8a97ab; color: var(--muted); }
.wk-ev.off .wk-title { text-decoration: line-through; }
.wk-time { font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.wk-title { font-size: 14px; font-weight: 800; line-height: 1.2; overflow-wrap: break-word; }
.wk-sub { font-size: 12px; color: var(--muted); }
.wk-none { font-size: 12px; color: var(--muted); }

/* Incidents and walk-ins */
.incident-flag { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin: 10px 0; padding: 12px 16px; border: 2px solid var(--bad); border-radius: var(--r-btn); background: var(--bad-bg); color: var(--bad); text-decoration: none; }
.incident-flag:hover, .incident-flag:focus-visible { filter: brightness(0.97); }
.inc-pill { text-decoration: none; margin-left: 6px; white-space: nowrap; }
.catfilter input[type=date] { padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--surface); color: var(--fg); }
#ev-chips .cat-head { flex-basis: 100%; margin: 6px 0 0; }
.catpick { margin: 8px 0; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--surface); }
.catpick summary { padding: 10px 14px; cursor: pointer; font-weight: 700; }
.catpick-box { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 4px 14px 14px; }
.catpick-box label { display: flex; gap: 8px; align-items: center; min-height: 32px; }
#ev-chips [hidden] { display: none !important; }

/* Payment at the door (scanner) */
.result.due { background: var(--warn-bg); color: var(--warn); }
.paybox { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-weight: 700; }
.paybox.due #pay-text { font-size: 20px; }
.paybox .btn { min-height: 44px; }

/* Join page: club information on the left, membership on the right; one column on small screens */
.join-cols { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.join-info { flex: 1 1 420px; min-width: 0; max-width: 560px; }
.join-info .lead { max-width: none; }
.join-panel { flex: 1.3 1 520px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.join-cols.no-info .join-panel { flex: 0 1 720px; margin-inline: auto; }
@media (max-width: 1000px) { .join-cols { gap: 20px; } .join-info { max-width: none; flex-basis: 100%; } .join-panel { flex-basis: 100%; } }
@media (max-width: 560px) { .join-panel { padding: 18px; border-radius: 14px; } }
.grow-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.grow-row:first-child { border-top: 0; }
.grow-row.due b { color: var(--warn); }
.grow-who { min-width: 0; flex: 1 1 160px; }
.grow-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.result[hidden], .paybox[hidden], .paybox [hidden], #guests-box[hidden] { display: none !important; }

/* ---------- Events page on wide screens: use the room ---------- */
@media (min-width: 900px) {
  /* List: days side by side in as many columns as fit, month headings across the top. */
  #events-view #ev-list:not([hidden]) { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 0 28px; align-items: start; }
  #events-view #ev-list .ev-month { grid-column: 1 / -1; }
  #events-view #ev-list .ev-row { margin-bottom: 14px; }
  /* Month: the calendar takes the left, the chosen day's events sit beside it. */
  #events-view #ev-cal:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 0 24px; align-items: start; }
  #events-view #ev-cal .cal { grid-column: 1; grid-row: 1; }
  #events-view #ev-cal .cal-day-panel { grid-column: 2; grid-row: 1; margin-top: 0; position: sticky; top: 12px; }
  #events-view .cal-day { height: 104px; }
}

/* Jumping to an event keeps it clear of the sticky page header. */
.ev-row, .ev-card { scroll-margin-top: calc(var(--band-h, 96px) + 14px); }

.block-offer { margin-top: 14px; padding: 12px; border: 1px dashed var(--line, #c9ced8); border-radius: 12px; display: grid; gap: 8px; }
.block-offer h4 { margin: 0; }
.block-offer .note { margin: 0; }
.block-who { align-items: flex-start; }

.site-foot { text-align: center; padding: 18px 16px 28px; font-size: .85rem; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.site-foot a { color: var(--muted, #667); }
/* Powered by ClubCanvas: the platform's own mark and name, kept in its colours whatever the club's theme. */
.site-foot .cc-powered { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-size: .8rem; color: var(--muted, #667); padding: 4px 6px; border-radius: 8px; }
.site-foot .cc-powered:hover .cc-word { text-decoration: underline; }
.cc-powered svg { flex: none; display: block; }
.cc-word { color: #1B2B34; letter-spacing: -.01em; }
.cc-word b { font-weight: 700; }

/* Weekly repeat: ends after N sessions or on a date, and weeks to skip picked on a small calendar. */
.rep-box { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 14px; background: var(--soft); }
.rep-box[hidden], .rep-box .ends[hidden] { display: none; }
.seg { display: inline-flex; flex-wrap: wrap; border: 2px solid var(--line); border-radius: 999px; padding: 3px; gap: 3px; background: var(--surface); width: max-content; max-width: 100%; }
.seg label { position: relative; padding: 8px 14px; border-radius: 999px; font-weight: 700; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--brand); color: var(--on-brand); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--fg); outline-offset: 2px; }
.rep-box .ends { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rep-box .ends .input, .add-skip .input { max-width: 200px; }
.rep-box .ends .num { max-width: 110px; }
.xcal-head { display: flex; justify-content: space-between; align-items: center; }
.xcal-head b { font-size: 16px; }
.xcal-nav { border: 0; background: none; font-size: 24px; cursor: pointer; padding: 2px 12px; color: var(--fg); }
.xcal-nav:disabled { opacity: .25; cursor: default; }
.xcal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.xcal .dow { font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; padding: 4px 0; text-transform: uppercase; }
.xd { height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--muted); background: transparent; border: 0; font: inherit; }
.xd.blank { visibility: hidden; }
.xd.on { background: var(--brand); color: var(--on-brand); cursor: pointer; font-weight: 800; }
.xd.skip { background: var(--surface); color: var(--muted); border: 2px dashed #b4232a; text-decoration: line-through; cursor: pointer; }
.xd.on:hover, .xd.skip:hover, .xd.on:focus-visible, .xd.skip:focus-visible { outline: 2px solid var(--fg); }
.rep-box .legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.rep-box .legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 5px; }
.rep-box .lg-on { background: var(--brand); }
.rep-box .lg-skip { border: 2px dashed #b4232a; }
.rep-box .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-x { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: #fde8e8; color: #8a1b20; font-weight: 700; font-size: 14px; }
.chip-x button { border: 0; background: none; font-size: 16px; line-height: 1; cursor: pointer; color: inherit; padding: 0; }
.rep-box .summary { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.add-skip { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* What's new */
.staff-side .side-ver { font-weight: 400; color: var(--muted); margin-left: 4px; }
.staff-side a[aria-current="page"] .side-ver { color: inherit; opacity: .8; }
.whatsnew .release { margin-top: 16px; }
.whatsnew .release h2 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.whatsnew .release h2 small { font-family: var(--f-body); font-size: .9rem; font-weight: 400; color: var(--muted); }
.whatsnew .release ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.pill-now { font-family: var(--f-body); font-size: .75rem; font-weight: 700; background: var(--ok-bg); color: var(--ok); border-radius: 999px; padding: 2px 10px; }

.cc-ver { font-size: .72rem; color: var(--muted, #667); margin-left: 2px; }
.whatsnew .release.quiet p { margin: 0; }
.whatsnew .release.quiet small { color: var(--muted); font-weight: 400; }

/* Demo club banner */
/* Demo club: floating bar at the foot of the page, minimised to a small "Demo club" button */
.demo-spacer { height: 0; }
.demo-float { position: fixed; z-index: 900; left: 0; right: 0; bottom: 16px; pointer-events: none; display: flex; justify-content: center; padding: 0 10px; font-size: .9rem; }
.demo-panel { pointer-events: auto; position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; max-width: 100%; padding: 8px; background: #14222A; color: #fff;
  border-radius: 18px; box-shadow: 0 10px 30px rgba(10, 20, 26, .3), 0 2px 6px rgba(10, 20, 26, .18); }
.demo-btn { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; color: #fff; font-weight: 700; text-decoration: none; padding: 9px 12px; border-radius: 12px; }
.demo-home:hover { background: rgba(255, 255, 255, .1); }
.demo-cta { background: #FF6B4A; color: #1A0E09; }
.demo-cta:hover { background: #FF8466; }
.demo-seg { display: flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 4px 4px 4px 12px; }
.demo-seg span { color: #9FB0B9; font-size: .78rem; white-space: nowrap; margin-right: 4px; }
.demo-seg a { color: #fff; font-weight: 700; text-decoration: none; padding: 6px 13px; border-radius: 9px; white-space: nowrap; }
.demo-seg a:hover { background: rgba(255, 255, 255, .1); }
.demo-seg a.on { background: #FFD24A; color: #3A2A00; }
.demo-info { position: relative; display: inline-flex; }
.demo-i { border: 0; background: none; color: #9FB0B9; cursor: pointer; width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; }
.demo-i:hover, .note-open .demo-i { color: #fff; background: rgba(255, 255, 255, .1); }
.demo-note { display: none; position: absolute; bottom: calc(100% + 14px); left: 50%; transform: translateX(-50%); width: min(320px, calc(100vw - 32px)); background: #fff; color: #1B2B34;
  border-radius: 14px; padding: 12px 14px; font-size: .86rem; line-height: 1.45; box-shadow: 0 12px 32px rgba(10, 20, 26, .28), 0 0 0 1px rgba(27, 43, 52, .08); }
.demo-note::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -7px; border: 7px solid transparent; border-top-color: #fff; }
.demo-note .demo-tag { display: inline-block; margin: 0 6px 4px 0; }
.note-open .demo-note { display: block; }
@media (hover: hover) { .demo-info:hover .demo-note { display: block; } }
.demo-tag { background: #FFD24A; color: #3A2A00; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.demo-min { border: 0; width: 32px; height: 32px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
.demo-min:hover { background: rgba(255, 255, 255, .18); }
.demo-pill { pointer-events: auto; display: none; position: absolute; right: 16px; bottom: 0; align-items: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 800;
  background: #14222A; color: #fff; padding: 10px 14px 10px 12px; border-radius: 999px; box-shadow: 0 6px 18px rgba(10, 20, 26, .3); }
.demo-pill:hover { background: #1E323D; }
.demo-dot { width: 9px; height: 9px; border-radius: 50%; background: #FFD24A; box-shadow: 0 0 0 3px rgba(255, 210, 74, .25); }
.demo-float[data-state="min"] .demo-panel { display: none; }
.demo-float[data-state="min"] .demo-pill { display: inline-flex; }
/* phones: the switch on its own line, the other buttons centred underneath */
@media (max-width: 640px) {
  .demo-float { bottom: 10px; font-size: .86rem; }
  .demo-panel { flex-wrap: wrap; gap: 6px; padding: 8px; border-radius: 16px; }
  .demo-seg { order: -1; flex: 1 1 100%; justify-content: center; }
  .demo-btn { padding: 8px 10px; }
  .demo-pill { right: 10px; }
  .demo-info { position: static; }
  .demo-note { left: 0; right: 0; width: auto; transform: none; bottom: calc(100% + 10px); }
  .demo-note::after { display: none; }
}
@media print { .demo-float, .demo-spacer { display: none; } }

/* Integrations: card payments with ClubCanvas */
.pm-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pm-opt { border: 2px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); margin: 0; }
.pm-opt.rec { border-color: var(--brand); }
.pm-opt h3 { margin: 0; font-size: 18px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pm-opt p { margin: 0; }
.pm-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 15px; }
.pm-eg { background: var(--soft); border-radius: 10px; padding: 10px 12px; font-size: 14px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
.pm-eg .t { border-top: 1px solid var(--line); padding-top: 4px; margin-top: 2px; font-weight: 700; }
.pm-alt { margin-top: auto; }
.pm-inline { display: inline; margin: 0; }
.pm-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pm-steps li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.pm-steps i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 700; flex: none; background: var(--warn-bg); color: var(--warn); }
.pm-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pm-stat { background: var(--soft); border-radius: 12px; padding: 12px; }
.pm-stat small { display: block; color: var(--muted); font-size: 13px; }
.pm-stat b { font-size: 20px; }
.pm-acts { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 700px) { .pm-choice, .pm-row { grid-template-columns: 1fr; } }
.pm-demo { margin: 0; background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 10px 12px; font-size: 15px; font-weight: 600; }
.pm-opt .btn[disabled] { cursor: not-allowed; }
.pm-opt > .btn, .pm-alt > .btn { align-self: flex-start; }
/* Integrations: the club's own Stripe keys, and the wallet tiles */
.pm-keys { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 15px; background: var(--soft); border-radius: 10px; padding: 10px 12px; }
.pm-keys span { color: var(--muted); }
.pm-change summary { cursor: pointer; font-weight: 700; }
.pm-change[open] summary { margin-bottom: 10px; }
.pm-keyform { display: flex; flex-direction: column; gap: 10px; }
.pm-keyform code { word-break: break-all; }
.pm-keyform > .btn { align-self: flex-start; }
.wl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wl-tile { border: 2px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.wl-tile.on { border-color: var(--brand); }
.wl-head { display: flex; gap: 12px; align-items: center; }
.wl-img { height: 44px; width: auto; flex: none; }
.wl-name { font-weight: 700; font-size: 18px; line-height: 1.2; }
.wl-tile label { display: flex; gap: 8px; align-items: center; font-size: 15px; }
.wl-tile label input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.wl-tile .note { margin: 0; }
@media (max-width: 700px) { .wl-grid { grid-template-columns: 1fr; } }
/* the intro under a heading in the admin area uses the full width */
.staff-main .lead { max-width: none; }
/* list pages: room between the search row and the table, and a search box that's never squashed on phones */
.mtools + .mtablewrap { margin-top: 12px; }
.pm-save { align-self: flex-start; }
@media (max-width: 720px) { .mtools input[type="search"] { flex: 1 1 200px; } }
.view .form { display: flex; flex-direction: column; gap: 16px; }
.view .form > .btn[type="submit"] { align-self: flex-start; }
/* Admins page: space between the list, its footer bar and the "Add" panels */
#pane-admins:not([hidden]), #pane-types:not([hidden]) { display: flex; flex-direction: column; gap: 16px; }
.mhead + .mtablewrap { margin-top: 12px; }
.banner.bad { background: var(--bad-bg); color: var(--bad); }

/* Scanner: scan a card first, then choose the event. */
.scan-page { gap: 14px; }
.scan-page [hidden] { display: none !important; }
.sc-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.sc-top h1 { margin: 0; }
.sc-count { text-align: right; flex: none; }
.sc-count b { display: block; font-family: var(--f-disp); font-size: 34px; line-height: 1; }
.sc-av { width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; text-transform: uppercase; }
.sc-av.big { width: 56px; height: 56px; font-size: 20px; }
.sc-card { display: flex; flex-direction: column; gap: 12px; }
.sc-who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.sc-who b { display: block; font-size: 20px; line-height: 1.2; }
.sc-okline { display: flex; gap: 12px; align-items: center; background: #16a34a; color: #fff; border-radius: var(--r-card); padding: 12px 14px; }
.sc-okline b { display: block; }
.sc-ring { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; flex: none; }
.sc-ring.big { width: 56px; height: 56px; }
.sc-q { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.sc-evs { display: flex; flex-direction: column; gap: 8px; }
.sc-ev { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; text-align: left; font: inherit; font-size: 16px; color: var(--fg); background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-card); padding: 10px 14px; cursor: pointer; }
.sc-ev:hover, .sc-ev:focus-visible { border-color: var(--brand); }
.sc-ev.booked { border-color: var(--brand); }
.sc-ev.off { opacity: .7; }
.sc-ev.wait { opacity: .5; pointer-events: none; }
.sc-evtime { font-weight: 700; width: 56px; flex: none; }
.sc-evtime small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.sc-evname { flex: 1; min-width: 0; }
.sc-evname .tag { margin-left: 2px; vertical-align: 1px; }
.sc-evgo { font-weight: 700; color: var(--brand); white-space: nowrap; flex: none; }
.sc-box { display: flex; gap: 14px; align-items: center; border-radius: 18px; padding: 18px; color: #fff; background: #16a34a; }
.sc-box.bad { background: #dc2626; }
.sc-boxtext { min-width: 0; flex: 1; font-size: 15px; line-height: 1.35; }
.sc-boxname { display: block; font-family: var(--f-disp); font-size: 28px; line-height: 1.05; margin-bottom: 2px; }
.sc-box .paybox { background: #fff; color: var(--fg); border-radius: 12px; padding: 8px 12px; margin-top: 10px; }
.sc-box .paybox.due { color: var(--warn); }
.sc-box .paybox .note { color: var(--bad); }
.sc-acts { display: flex; gap: 8px; margin-top: 10px; }
.sc-acts .btn { min-height: 56px; }
.sc-acts #oc-next { flex: 1; }
.sc-acts #oc-alt { flex: 0 0 auto; max-width: 45%; }
#stage-scan { display: flex; flex-direction: column; gap: 12px; }
.sc-camlbl { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; color: #fff; font-size: 14px; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); pointer-events: none; }
.sc-tip { text-align: center; margin: 0; }
.sc-manual summary { list-style: none; cursor: pointer; }
.sc-manual summary::-webkit-details-marker { display: none; }
.sc-manual[open] summary { margin-bottom: 10px; }
.sc-manual form { display: flex; flex-direction: column; gap: 6px; }
#guests-panel { display: flex; flex-direction: column; gap: 10px; }
.ci-day { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 14px 0 2px; }
.ci-day:first-child { margin-top: 6px; }
.ci2 { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.ci-who { flex: 1; min-width: 0; }
.ci-who b { display: block; }
.ci-who span { display: block; color: var(--muted); font-size: 14px; }
.ci-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.ci-time { color: var(--muted); font-size: 14px; }
.ci-dots { width: 40px; height: 40px; flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 10px; font-size: 20px; font-weight: 700; line-height: 1; cursor: pointer; }
.ci-dots[aria-expanded="true"] { border-color: var(--brand); }
.ci-menu { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); margin: 0 0 10px; }
.ci-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ci-acts .danger { border-color: #dc2626; color: #dc2626; }
.ci-err { color: var(--bad); }
#recent-more { align-self: flex-start; }

/* Long web addresses wrap. */
.staff-main code { overflow-wrap: anywhere; }

/* Admin menu: "Scan in" at the top, icons, the version on the right; on phones no scroll bar, with a "More" hint when it doesn't all fit. */
.staff-side a.side-scan { justify-content: center; background: var(--accent); color: var(--on-accent); font-size: 17px; padding: 12px; margin: 2px 0 6px; border-radius: var(--r-btn); }
.staff-side a.side-scan:hover { background: var(--accent); filter: brightness(0.96); }
.staff-side .side-scan .ic { opacity: 1; width: 23px; height: 23px; }
.staff-side .side-ver { margin-left: auto; font-weight: 400; }
.side-more { display: none; }
@media (max-width: 860px) {
  .sm-bar .staff-side { scrollbar-width: none; }
  .sm-bar .staff-side::-webkit-scrollbar { display: none; }
  .sm-bar .staff-side a, .sm-bar .staff-side button { padding: 9px 12px; }
  .sm-bar .staff-side a.side-scan { padding: 12px; }
  .sm-bar .staff-side .side-more { display: flex; position: sticky; bottom: -8px; margin: -78px -8px -8px; height: 78px; flex: none; align-items: flex-end; justify-content: center; padding-bottom: 12px; pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--surface) 72%); border-radius: 0 0 16px 16px; }
  .sm-bar .staff-side .side-more[hidden] { display: none; }
  .sm-bar .staff-side .side-more button { pointer-events: auto; width: auto; display: inline-flex; padding: 6px 14px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 14px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }
}
/* The scanner: a tip to add it to the home screen (phones, until it's installed or closed). */
.sc-install { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 2px solid var(--accent); border-radius: var(--r-card); padding: 12px 14px; }
.sc-install[hidden] { display: none !important; }
.sc-install .ti { width: 44px; height: 44px; border-radius: 11px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; flex: none; }
.sc-install .ti .ic { opacity: 1; width: 24px; height: 24px; }
.sc-install b { display: block; font-size: 16px; }
.sc-install span.t { display: block; color: var(--muted); font-size: 14px; line-height: 1.35; }
.sc-install .how { background: none; border: 0; padding: 0; margin-top: 6px; font: inherit; font-weight: 700; font-size: 14px; color: var(--brand); text-decoration: underline; cursor: pointer; }
.sc-install .x { margin-left: auto; align-self: flex-start; background: none; border: 0; color: var(--muted); font-size: 22px; line-height: 1; padding: 0 2px; cursor: pointer; }

/* My account: everyone's cards side by side, swipe between them; the next card peeks in at the edge. */
.cardsw { min-width: 0; width: 100%; max-width: 100%; overflow: hidden; contain: paint; }
.cardsw-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 0 12px; scrollbar-width: none; overscroll-behavior-x: contain; }
.cardsw-track::-webkit-scrollbar { display: none; }
.cardsw-slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; justify-content: center; align-items: flex-start; min-width: 0; }
.cardsw-slide .pass { min-width: 0; display: flex; flex-direction: column; }
.cardsw-slide .pass .pass-body { flex: 1; }
/* Any extra height goes above the code, so the codes line up on every card. */
.cardsw-slide .pass .qr, .cardfs-slide .pass .qr { margin-top: auto; }
.cardsw-slide > .panel { width: 100%; max-width: 380px; }
.cardsw.many .cardsw-track { padding-inline: 22px; scroll-padding-inline: 22px; }
.cardsw.many .cardsw-slide { flex-basis: calc(100% - 44px); }
.cardsw.many .cardsw-slide .pass { max-width: 380px; }
.cardsw-dots { display: flex; justify-content: center; gap: 7px; margin: 2px 0 4px; }
.cardsw-dots i { display: block; width: 8px; height: 8px; border-radius: 999px; background: var(--line); transition: width 0.2s; }
.cardsw-dots i.on { width: 22px; background: var(--brand); }
#card-acts { display: flex; flex-direction: column; gap: 12px; }
#card-acts[hidden] { display: none; }
/* The cards go round in a loop (assets/cardswipe.js adds copies of the cards at each end), so there is a card either side. */
.cardsw-slide[data-copy] .pass { cursor: pointer; }
/* Phones: the peeks of the cards either side are paler too. */
.cardsw.many .cardsw-slide .pass { transition: transform 0.25s, opacity 0.25s; }
.cardsw.many .cardsw-slide[aria-hidden] .pass { opacity: 0.5; }
/* Computers: the card on screen sits in the middle; the cards either side are smaller, paler and fade out towards the edges. */
@media (min-width: 701px) {
  .cardsw.many .cardsw-track { gap: 22px; padding-inline: calc(50% - 190px); scroll-padding-inline: calc(50% - 190px);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 26%, #000 74%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 26%, #000 74%, transparent 100%); }
  .cardsw.many .cardsw-slide { flex-basis: 380px; scroll-snap-align: center; }
  .cardsw.many .cardsw-slide .pass { transition: transform 0.25s, opacity 0.25s; }
  .cardsw.many .cardsw-slide[aria-hidden] .pass { transform: scale(0.86); opacity: 0.45; }
}

/* Event form: the refund window ("Up to [24] hours before it starts"). */
.refund-time { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.refund-time .input { width: 90px; }
.refund-time[hidden] { display: none; }

/* A small box over the page (cancel a place, refund someone). */
dialog.sheet { border: 0; border-radius: 18px; padding: 20px; width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25); background: var(--surface); color: var(--fg); }
dialog.sheet::backdrop { background: rgba(15, 23, 42, 0.45); }
dialog.sheet h2 { margin: 0 0 10px; font-size: 22px; }
dialog.sheet .sheet-what { margin: 0 0 12px; }
.sheet-msg { border-radius: 12px; padding: 10px 12px; font-size: 15px; margin-bottom: 10px; }
.sheet-msg.ok { background: #e8f7ee; color: #14532d; }
.sheet-msg.warn { background: #fff6e0; color: #6b4e00; }
.sheet-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.sheet-acts .btn { flex: 1 1 auto; }
.sheet-sum { background: #f3f5f8; border-radius: 12px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 15px; margin: 10px 0; }
.sheet-sum .t { font-weight: 700; border-top: 1px solid #d9dee6; padding-top: 6px; margin-top: 2px; }
.sheet-amt { display: flex; gap: 8px; align-items: center; }
.sheet-amt .input { max-width: 140px; }
/* Event page: refunds */
.tag-grey { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #eef1f5; color: #44506a; }
.cancel-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.cancel-row:first-of-type { border-top: 0; }

/* Event forms: email members about a new event, or people signed up about a change */
.nt-box { border: 2px solid var(--brand); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: color-mix(in srgb, var(--brand) 5%, var(--surface)); }
.nt-box[hidden] { display: none; }
.nt-box .checks label { font-weight: 700; }
.nt-who { font-size: 14px; color: var(--muted); margin: -4px 0 0 30px; }
.nt-chg { background: #fff6e0; border-radius: 10px; padding: 10px 12px; font-size: 14px; color: #6b4e00; margin-left: 30px; }
.nt-chg b { color: #13213a; }
.nt-chg s { color: #8a94a6; }
.nt-indent { margin-left: 30px; display: flex; flex-direction: column; gap: 8px; }
.nt-indent[hidden] { display: none; }
@media (max-width: 480px) { .nt-who, .nt-chg, .nt-indent { margin-left: 0; } }
.nt-mail { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 15px; background: #fff; color: #13213a; }
.nt-mail p { margin: 0 0 10px; }
.nt-subj { font-weight: 700; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.nt-card { background: #F3F5F8; border-radius: 8px; padding: 12px 14px; }
.nt-tbl { background: #FFF6E0; border-radius: 8px; padding: 8px 12px; margin: 0 0 10px; width: 100%; }
.nt-tbl td { padding: 3px 6px 3px 0; vertical-align: top; }
.nt-tbl td:first-child { color: #6b4e00; width: 70px; }
.nt-tbl s { color: #8a94a6; }
.nt-btn { display: inline-block; background: var(--accent); color: var(--on-accent); font-weight: 700; padding: 8px 16px; border-radius: 8px; }
.nt-foot { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; margin: 0 !important; }
.pm-one .pm-eg { max-width: 440px; }
.pm-one .pm-inline { align-self: flex-start; }
/* Repeating events (v0.1.62): how often, and a calendar to take dates out or add extra ones. */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-radius: 14px; width: 100%; max-width: 520px; }
.seg label { border-radius: 10px; text-align: center; padding: 9px 8px; line-height: 1.25; }
.rep-how { display: grid; gap: 2px; }
.rep-how label { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 6px 0; }
.rep-how .input { width: auto; min-height: 38px; padding: 4px 10px; }
.rep-how .num { width: 72px; }
.xd.free { background: var(--surface); border: 1px solid var(--line); cursor: pointer; color: var(--fg); }
.xd.add { background: var(--accent); color: var(--on-accent, #1B2B34); font-weight: 800; position: relative; cursor: pointer; }
.xd.add::after { content: "+"; position: absolute; top: 1px; right: 4px; font-size: 11px; font-weight: 800; }
.xd.free:hover, .xd.add:hover, .xd.free:focus-visible, .xd.add:focus-visible { outline: 2px solid var(--fg); }
.xd.before { opacity: .35; }
.rep-box .lg-add { background: var(--accent); }
.rep-box .lg-free { background: var(--surface); border: 1px solid var(--line); }
.rep-box .legend [hidden] { display: none; }
.rep-box .field[hidden] { display: none; }
.chip-x.add { background: color-mix(in srgb, var(--accent) 35%, var(--surface)); color: var(--fg); }
.chip-x.add button { color: var(--fg); }
.rep-how label > span[data-how] { flex: 1 1 0; min-width: 0; }
.cc-list { list-style: none; margin: 0; padding: 12px 14px; background: #f3f5f8; border-radius: 12px; display: grid; gap: 10px; font-size: 15px; }
.cc-list li { display: flex; gap: 10px; align-items: flex-start; }
.cc-i { flex: 0 0 22px; height: 22px; border-radius: 50%; background: #dfe3ea; color: #475569; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.cc-i.cc-cr { background: var(--accent, #b9e34a); color: #13213a; }
.cc-i.cc-rf { background: #e3ecfb; color: #1d4ed8; }
.sheet-choices { display: grid; gap: 8px; margin: 4px 0 6px; }
.sheet-choice { display: flex; gap: 10px; align-items: flex-start; border: 2px solid #dfe3ea; border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.sheet-choice:has(input:checked) { border-color: var(--brand, #13213a); background: #f3f5f8; }
.sheet-choice input { margin-top: 4px; flex: 0 0 auto; }
.sheet-choice > span { display: flex; flex-direction: column; gap: 2px; }
.credit-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--soft, #e1e4e9); }
.credit-head .note { margin: 0; text-align: right; max-width: 220px; }
.credit-big { font-size: 34px; font-weight: 800; line-height: 1.1; }
.credit-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--soft, #e1e4e9); }
.credit-row > form, .credit-row > .note { flex: 0 0 auto; }
.credit-row:last-of-type { border-bottom: 0; }
.credit-tbl td.num, .credit-tbl th.num { text-align: right; white-space: nowrap; }
.credit-tbl td:first-child, .credit-tbl td:last-child { white-space: nowrap; }
.credit-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; align-items: end; margin-top: 14px; }
.credit-form .cr-why { grid-column: 1 / -1; }
.credit-form .btn { grid-column: 1 / -1; }
@media (min-width: 800px) { .credit-form { grid-template-columns: 160px 110px 1fr auto; } .credit-form .cr-why, .credit-form .btn { grid-column: auto; } .credit-form .btn { margin-bottom: 14px; } }
.renew-block h2 { margin: 0 0 2px; font-size: 22px; }
.renew-block + .renew-block { margin-top: 16px; }
.renew-person { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--soft, #e1e4e9); }
.renew-person:last-child { border-bottom: 0; }
.renew-tick { color: var(--fg); font-weight: 700; }
.mtable .acts form.va-start { display: inline; margin: 0 6px 0 0; }
.va-bar { background: repeating-linear-gradient(135deg, #FFE9A8 0 14px, #FFE19A 14px 28px); color: #3D2E00; border-bottom: 1px solid #E8C766; }
.va-in { max-width: 1400px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.va-eye { width: 30px; height: 30px; border-radius: 50%; background: #3D2E00; color: #FFE19A; display: grid; place-items: center; flex: none; }
.va-eye .ic { width: 18px; height: 18px; }
.va-txt { flex: 1 1 260px; min-width: 0; }
.va-txt b { font-weight: 800; }
.va-in select { font: inherit; font-size: 14px; padding: 6px 8px; border-radius: 8px; border: 1px solid #C9A84A; background: #FFF8E1; color: #3D2E00; }
.va-in .btn.va-back { background: #3D2E00; color: #fff; border: 0; white-space: nowrap; }
.va-stop { max-width: 1400px; margin: 0 auto; padding: 0 16px 10px; font-weight: 700; color: #7A1F12; }
@media print { .va-bar { display: none; } }
.panel.dz { border: 2px solid #E5A3A3; background: #FFF7F7; }
.panel.dz h3, .panel.dz h2 { color: #8A1C1C; }
.dz-name { text-transform: none; letter-spacing: 0; }
.dz-in { max-width: 420px; }
.dz-count { font-size: 44px; font-weight: 800; line-height: 1.1; color: #8A1C1C; }
.dz-list { margin: 8px 0 12px; padding-left: 20px; }
.btn.danger { background: #B42318; color: #fff; border-color: #B42318; }
.del-bar { background: #8A1C1C; color: #fff; }
.del-in { max-width: 1400px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.del-in .t { flex: 1 1 260px; }
.del-in .btn { background: #fff; color: #8A1C1C; border: 0; white-space: nowrap; }
@media print { .del-bar { display: none; } }
.mail-bar { background: #FFF6E5; color: #7A4B00; border-bottom: 1px solid #F5C66B; }
.mail-in { max-width: 1400px; margin: 0 auto; padding: 9px 16px; display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; line-height: 1.45; }
@media print { .mail-bar { display: none; } }
/* Computers: the admin menu stays in view and scrolls on its own when it's taller than the window. */
@media (min-width: 861px) {
  .staff-side { max-height: calc(100vh - var(--band-h, 84px) - 44px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  .staff-side::-webkit-scrollbar { display: none; }
  .staff-side .side-more { display: flex; position: sticky; bottom: -8px; margin: -64px -8px -8px; height: 64px; flex: none; align-items: flex-end; justify-content: center; padding-bottom: 10px; pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--surface) 72%); }
  .staff-side .side-more[hidden] { display: none; }
  .staff-side .side-more button { pointer-events: auto; width: auto; display: inline-flex; padding: 5px 14px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 14px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }
  .staff-side .side-more button:hover { background: var(--brand); filter: brightness(1.1); }
}
/* Shown inside a club's own website (?embed=1): no header or footer, and the website's own background shows through. */
body.embed { background: transparent; min-height: 0; }
html:has(body.embed) { scrollbar-gutter: auto; overflow-y: auto; }
body.embed main.wrap { padding-top: 4px; padding-bottom: 8px; }
.band .nav a .ext { margin-left: auto; opacity: .55; font-size: 14px; }
.use-credit { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 8px 0; background: var(--surface); font-size: 15px; cursor: pointer; }
.use-credit input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--brand); flex: none; }
.use-credit small { display: block; color: var(--muted); font-size: 13px; }
.sheet-sum[hidden], .use-credit[hidden] { display: none; }
.em-code { width: 100%; font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; background: #1B2B34; color: #E8F0F2; border: 0; border-radius: 10px; padding: 12px 14px; resize: vertical; margin: 8px 0; }
.em-opts { display: flex; gap: 10px 16px; flex-wrap: wrap; align-items: center; }
.em-opts[hidden] { display: none; }
.em-opts .input { display: inline-block; width: auto; margin-left: 6px; }
.embed-foot { padding: 6px 16px 10px; }

/* ---------- Help (admin guides) ---------- */
.help-q { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #e6e9ec; color: #5b6670; font: 800 16px/1 system-ui, sans-serif; text-decoration: none; vertical-align: middle; margin-left: 8px; position: relative; top: -0.12em; }
.help-q:hover, .help-q:focus-visible { background: #d5dade; color: var(--fg, #14222A); }
.help-tip { position: absolute; top: 36px; left: 50%; transform: translateX(-50%); background: #14222A; color: #fff; font: 700 13px/1.2 system-ui, sans-serif; padding: 6px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.12s; z-index: 20; }
.help-tip::before { content: ''; position: absolute; top: -5px; left: 50%; margin-left: -5px; border: 5px solid transparent; border-top: 0; border-bottom-color: #14222A; }
.help-q:hover .help-tip, .help-q:focus-visible .help-tip { opacity: 1; }
@media (hover: none) { .help-tip { display: none; } }
.hg-crumb { font-size: 14px; color: var(--muted, #5b6670); margin: 0 0 4px; }
.hg { max-width: 860px; }
.hg h1 { margin: 2px 0 8px; }
.hg-lede { font-size: 18px; margin: 0 0 12px; }
.hg-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 20px; }
.hg-chip { background: #eef1f4; border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.hg-pdf { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; border: 2px solid currentColor; border-radius: 10px; padding: 6px 12px; font-weight: 700; font-size: 15px; text-decoration: none; }
.hg-pdf svg, .hx-pdf svg, .hx-all svg { width: 18px; height: 18px; }
.hg-toc { background: #f3f5f8; border-radius: 14px; padding: 12px 18px; margin: 0 0 26px; }
.hg-toc b { display: block; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: #5b6670; margin-bottom: 4px; }
.hg-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.hg-toc a { color: inherit; text-decoration: none; }
.hg-toc a:hover { text-decoration: underline; }
.hg-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; margin: 0 0 30px; scroll-margin-top: 90px; }
.hg-num { width: 36px; height: 36px; border-radius: 50%; background: #0E4A4A; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.hg-step h2 { font-size: 21px; margin: 4px 0 6px; }
.hg-body p { margin: 0 0 10px; }
.hg-body ul, .hg-body ol { margin: 0 0 10px; padding-left: 20px; }
.hg-body li { margin: 3px 0; }
.hg-shot { display: block; width: 100%; height: auto; border: 1px solid #e3e6ea; border-radius: 12px; margin: 6px 0 10px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05); }
.hg-shot.half { max-width: 520px; }
.hg-shot.phone { max-width: 320px; }
.hg-tip { background: #fff8e6; border: 1px solid #f1df8a; border-radius: 12px; padding: 10px 14px; font-size: 15px; }
.hg-after { border-top: 2px solid #e3e6ea; padding-top: 16px; }
.hg-after dt { font-weight: 700; margin-top: 10px; }
.hg-after dd { margin: 2px 0 0; }
.hg-related { margin-top: 24px; font-size: 15px; }
@media (max-width: 600px) { .hg-toc ol { columns: 1; } .hg-step { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; } .hg-num { width: 28px; height: 28px; font-size: 14px; } .hg-pdf { margin-left: 0; } }
.hx .hx-q { margin: 6px 0 18px; }
.hx-feat { display: flex; gap: 16px; align-items: center; background: #0E4A4A; color: #fff; border-radius: 16px; padding: 16px 20px; margin-bottom: 8px; text-decoration: none; }
.hx-feat b { display: block; font-size: 19px; }
.hx-feat > span:first-child > span { opacity: 0.85; }
.hx-go { margin-left: auto; background: #E8634A; border-radius: 10px; padding: 9px 14px; font-weight: 700; white-space: nowrap; }
.hx-group h2 { font-size: 14px; letter-spacing: 0.07em; text-transform: uppercase; color: #5b6670; margin: 22px 0 10px; }
.hx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.hx-card { background: #fff; border: 1px solid #e3e6ea; border-radius: 14px; padding: 14px; display: flex; gap: 12px; align-items: flex-start; }
.hx-card[hidden], .hx-group[hidden], .hx-feat[hidden] { display: none; }
.hx-card.off { opacity: 0.7; }
.hx-ic { width: 36px; height: 36px; border-radius: 10px; background: #e3f0ef; color: #0E4A4A; display: flex; align-items: center; justify-content: center; flex: none; }
.hx-ic svg { width: 20px; height: 20px; }
.hx-t { display: block; font-weight: 700; color: inherit; text-decoration: none; }
.hx-t::after { content: ''; }
.hx-card small { display: block; color: #5b6670; font-size: 14px; line-height: 1.35; margin-top: 2px; }
.hx-pdf { display: inline-flex; gap: 4px; align-items: center; font-size: 13px; font-weight: 700; margin-top: 6px; }
.hx-all { margin-top: 24px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
@media (max-width: 600px) { .hx-feat { flex-direction: column; align-items: flex-start; } .hx-go { margin-left: 0; } }

/* Guest accounts */
.gp-book { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gp-book form.inline { display: inline; margin: 0; }
.gp-person { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line, #e3e6ea); }
.gp-av { width: 40px; height: 40px; border-radius: 50%; background: var(--primary, #0E4A4A); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.gp-person .grow { flex: 1; min-width: 0; }
.gp-join { background: var(--primary, #0E4A4A); color: #fff; border-radius: 14px; padding: 16px; }
.gp-join a.btn { margin-top: 10px; }
.tag.gst { background: #fff1d6; color: #7a5400; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
/* Share button and menu (events) */
.share-wrap { position: relative; display: inline-block; vertical-align: top; }
.share-btn { display: inline-flex; align-items: center; gap: 7px; }
.share-btn svg { width: 18px; height: 18px; }
.share-menu { position: relative; z-index: 30; margin-top: 8px; width: max-content; max-width: 100%; min-width: 210px; border: 1px solid #e3e8ec; background: #fff; border-radius: 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08); padding: 6px; }
.staffnav .share-menu { position: absolute; top: calc(100% + 6px); left: 0; margin-top: 0; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); }
.share-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-weight: 600; font-size: 15px; color: #14222A; text-decoration: none; }
.share-item:hover, .share-item:focus-visible { background: #f1f4f6; }
.share-item i { width: 24px; height: 24px; border-radius: 6px; flex: none; }
.share-link { display: block; width: 100%; box-sizing: border-box; margin: 4px 0 2px; padding: 8px 10px; border: 1px solid #cfd8de; border-radius: 8px; font: 14px/1.3 inherit; color: #14222A; background: #f7f9fa; }
.ev-share { margin-top: 2px; }
