/* AVIUM LIGHTHOUSE — Avium's own administration site (public/platform.html),
   the room behind the door of Avium Clubs. Renamed from "Platform Console".
   ===========================================================================
   Avium's brand, not any club's: Cabana Stripe, light only, with the Cinzel
   heading — approved by the owner on 19 October 2026 from a drawn sheet
   (navy/coral, chosen 18 October, is retired). Every text pairing below was
   measured: navy on linen 13.6, navy on butter 10.8, link on linen 6.3, menu
   steel on navy 10.1. Cabana blue and lifeguard red are FILLS, never small
   text — the -ink/-deep variants carry words. */
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/cinzel-700-latin.woff2") format("woff2"); } /* saved with the site (OFL, public/fonts) so the heading never waits on a CDN */
:root {
  --c-navy: #163757; --c-navy-deep: #102A43; --c-navy-hover: #1A3D5E; --c-navy-on: #1F4668;
  --c-steel: #C9D8E6; --c-steel-dim: #9DB4C8; --c-steel-label: #93ABC1;
  --c-butter: #F7DC6F; --c-butter-hover: #F2CF4A; --c-red-pale: #FBE3E0; --c-red-ink: #A5302A;
  --c-link: #1F5F8B; --c-link-dark: #174A6D; --c-tint: #E4F0F7; --c-select: #EEF5F9;
  --c-cabana: #5FA8D3; --c-seafoam: #9ED9C3; --c-dune: #EAD9B5; --c-red: #D8463C;
  --c-paper: #FAF6EC; --c-card: #FFFFFF; --c-ink: #1C2836; --c-title: #102A43; --c-muted: #4A5A68;
  --c-line: #DCE1E4; --c-line-soft: #ECEEEC; --c-field: #CDD4DC; --c-head: #F7F4EC;
  --c-ok: #1E6B45; --c-ok-bg: #E3F1E8; --c-wait: #6E5309; --c-wait-bg: #FBF1D6; --c-bad: #9A2E25; --c-bad-bg: #FBE7E4;
  --c-neu: #46525F; --c-neu-bg: #ECEFF2;
  --c-sans: 'IBM Plex Sans', system-ui, sans-serif; --c-mono: 'IBM Plex Mono', ui-monospace, monospace; --c-serif: 'Fraunces', Georgia, serif;
  --c-cinzel: "Cinzel", "Trajan Pro", Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--c-paper); color: var(--c-ink); font: 14px/1.5 var(--c-sans); }
a { color: var(--c-link); } a:hover { color: var(--c-link-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-link); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- shell */
.shell { min-height: 100vh; display: flex; flex-wrap: wrap; }
.side { flex: 1 1 236px; max-width: 100%; background: var(--c-navy-deep); color: var(--c-steel); padding: 20px 14px 24px; display: flex; flex-direction: column; gap: 2px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; text-decoration: none; }
/* The heading: AVIUM in Cinzel over LIGHTHOUSE between two rules (lock-up C3). */
.lockup { display: inline-grid; justify-items: start; gap: 7px; }
.lockup .w { font: 700 27px/1 var(--c-cinzel); letter-spacing: .08em; color: var(--c-paper); }
.lockup .r { display: flex; align-items: center; gap: 7px; }
.lockup .r i { width: 20px; height: 1px; background: var(--c-cabana); }
.lockup .r span { font: 500 9.5px/1 var(--c-mono); letter-spacing: .45em; color: var(--c-butter); }
.mark { width: 30px; height: 30px; border-radius: 8px; display: block; } /* the app icon: the lighthouse */
.grp { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-steel-label); padding: 16px 12px 6px; }
.nav { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 8px; color: var(--c-steel); text-decoration: none; font-size: 14px; min-height: 40px; }
.nav:hover { background: var(--c-navy-hover); color: #FFFFFF; }
.nav[aria-current="page"] { background: var(--c-butter); color: var(--c-navy-deep); font-weight: 600; }
.nav .ct { margin-left: auto; font-size: 12px; color: var(--c-steel-dim); }
.nav[aria-current="page"] .ct { color: var(--c-navy-deep); }
.nav svg { flex: none; }
.side-foot { margin-top: auto; padding: 18px 12px 0; font-size: 12px; color: var(--c-steel-label); line-height: 1.5; }
.main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 14px 32px; background: var(--c-card); border-bottom: 1px solid var(--c-line); position: sticky; top: 0; z-index: 5; }
.crumb { font-size: 13px; color: var(--c-muted); min-width: 0; }
.crumb a { text-decoration: none; } .crumb b { color: var(--c-ink); font-weight: 500; }
.search { flex: 1 1 260px; max-width: 520px; margin-left: auto; display: flex; align-items: center; gap: 8px; border: 1px solid var(--c-field); border-radius: 8px; padding: 0 12px; color: var(--c-muted); background: var(--c-head); min-height: 40px; }
.search input { border: 0; background: transparent; flex: 1; min-width: 0; outline: none; padding: 8px 0; }
.kbd { font: 11.5px var(--c-mono); border: 1px solid var(--c-field); border-radius: 5px; padding: 1px 6px; background: var(--c-card); }
.me { display: flex; align-items: center; gap: 10px; }
.page { padding: 28px 32px 56px; display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 1360px; }

/* ------------------------------------------------------------- pieces */
.ttl { font: 600 30px/1.15 var(--c-serif); margin: 0; color: var(--c-title); letter-spacing: -.01em; }
.sub { margin: 4px 0 0; color: var(--c-muted); max-width: 720px; }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.head .btns { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 8px; padding: 9px 14px; font-weight: 500; cursor: pointer; text-decoration: none; border: 1px solid transparent; min-height: 40px; white-space: nowrap; }
.btn.pri { background: var(--c-butter); color: var(--c-navy-deep); }
.btn.pri:hover { background: var(--c-butter-hover); color: var(--c-navy-deep); }
.btn.sec { background: var(--c-card); color: var(--c-ink); border-color: var(--c-field); }
.btn.sec:hover { background: var(--c-paper); color: var(--c-ink); }
.btn.sm { padding: 6px 11px; min-height: 34px; font-size: 13px; }
.btn.warn { background: var(--c-card); color: var(--c-bad); border-color: #E7B8B2; }
.btn[disabled], .btn.disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.linkish { background: none; border: 0; padding: 0; color: var(--c-link); text-decoration: underline; cursor: pointer; }
.card { background: var(--c-card); border: 1px solid var(--c-line); border-radius: 12px; min-width: 0; }
.card > h2, .ch h2 { font-size: 15px; font-weight: 600; margin: 0; color: var(--c-title); }
.ch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 16px 20px; border-bottom: 1px solid var(--c-line-soft); }
.ch .r { margin-left: auto; font-size: 13px; color: var(--c-muted); }
.pad { padding: 16px 20px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { padding: 18px 20px; }
.kpi .l { font-size: 12.5px; color: var(--c-muted); }
.kpi .v { font: 600 30px/1.1 var(--c-serif); color: var(--c-title); margin: 6px 0 4px; }
.kpi .n { font-size: 12.5px; color: var(--c-muted); }
.two { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.span2 { grid-column: span 2; }
.todo { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--c-line-soft); }
.todo:last-child { border-bottom: 0; }
.todo .t { flex: 1; min-width: 0; }
.todo .t b { display: block; font-weight: 500; color: var(--c-title); }
.todo .t span { font-size: 13px; color: var(--c-muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.bad { background: #B3362B; } .dot.wait { background: #A5851A; } .dot.neu { background: #8A97A6; }
.empty { padding: 22px 20px; color: var(--c-muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
/* A part an account does not have (ecosystem proposal F): the chip stays, struck through, so the row still says all three. */
.pill.part-off { text-decoration: line-through; }
.partchips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.ok { background: var(--c-ok-bg); color: var(--c-ok); } .wait { background: var(--c-wait-bg); color: var(--c-wait); }
.bad { background: var(--c-bad-bg); color: var(--c-bad); } .neu { background: var(--c-neu-bg); color: var(--c-neu); }
.mono { font: 12.5px var(--c-mono); color: #2E3A48; overflow-wrap: anywhere; }
.muted { color: var(--c-muted); }
.say { font-size: 13.5px; margin: 8px 0 0; } .say.bad-t { color: var(--c-bad); background: none; }

/* --------------------------------------------------------------- tables */
.tbl { overflow-x: auto; }
table.t { border-collapse: collapse; width: 100%; min-width: 720px; }
table.t th { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); text-align: left; font-weight: 500; padding: 10px 16px; background: var(--c-head); border-bottom: 1px solid var(--c-line); }
table.t td { padding: 12px 16px; border-bottom: 1px solid var(--c-line-soft); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: #F7FAFB; }
table.t tr.on td { background: var(--c-select); }
table.t small { display: block; color: var(--c-muted); font-size: 12.5px; }
.who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.who b { display: block; font-weight: 500; color: var(--c-title); }
.ini { width: 32px; height: 32px; border-radius: 50%; background: #DCE7EF; color: var(--c-navy); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; flex: none; }
.ini.pr { background: var(--c-red-pale); color: var(--c-red-ink); }
.ini.club { border-radius: 9px; background: var(--c-navy); color: #FFFFFF; width: 34px; height: 34px; }
.tag { display: inline-block; font-size: 12px; border: 1px solid var(--c-field); border-radius: 6px; padding: 1px 7px; color: #2E3A48; margin: 2px 4px 2px 0; white-space: nowrap; }
.tag.pr { border-color: #F3C4B9; background: #FFF6F3; }

/* -------------------------------------------------------------- filters */
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--c-line-soft); }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--c-field); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: var(--c-card); font-size: 13px; padding: 7px 12px; cursor: pointer; color: #2E3A48; min-height: 36px; }
.seg button + button { border-left: 1px solid var(--c-field); }
.seg button[aria-pressed="true"] { background: var(--c-tint); color: var(--c-title); font-weight: 500; }
.seg b { font-weight: 500; color: var(--c-muted); margin-left: 4px; }
.split { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(320px, 1fr); gap: 16px; align-items: start; }

/* -------------------------------------------------------- person drawer */
.drawer { padding: 20px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 86px; }
.dh { display: flex; gap: 14px; align-items: center; }
.dh .ini { width: 48px; height: 48px; font-size: 16px; }
.dh b { display: block; font-size: 18px; font-weight: 600; color: var(--c-title); }
.dh span { color: var(--c-muted); font-size: 13px; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; font-size: 13.5px; margin: 0; }
.facts dt { color: var(--c-muted); } .facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; }
.sec-h { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); margin: 6px 0 0; }
.note { background: #FFF4F1; border: 1px solid #F8D5CC; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; color: #3A2A26; white-space: pre-wrap; overflow-wrap: anywhere; }
.note small { display: block; color: var(--c-red-ink); font-size: 12px; margin-bottom: 3px; }
.tl { display: flex; flex-direction: column; }
.tli { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--c-line-soft); }
.tli:last-child { border-bottom: 0; }
.tli .w { font-size: 12px; color: var(--c-muted); min-width: 50px; }
.tli b { font-weight: 500; color: var(--c-title); font-size: 13.5px; }

/* ---------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 5px; margin: 0 0 12px; }
.field > span, .lbl { font-size: 13px; font-weight: 500; color: #2E3A48; }
.field input, .field select, .field textarea, .inp { width: 100%; border: 1px solid var(--c-field); border-radius: 8px; padding: 9px 11px; background: var(--c-card); min-height: 40px; }
.field textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
.panel { border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-card); padding: 16px 20px; }

/* --------------------------------------------------------- the composer */
.step { padding: 20px; display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid var(--c-line-soft); }
.sh { display: flex; align-items: center; gap: 10px; }
.num { width: 24px; height: 24px; border-radius: 50%; background: var(--c-navy-deep); color: #FFFFFF; font-size: 12.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex: none; }
.sh h2 { font-size: 15px; font-weight: 600; margin: 0; color: var(--c-title); }
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.opt { border: 1px solid var(--c-field); border-radius: 10px; padding: 12px 14px; display: flex; gap: 10px; cursor: pointer; background: var(--c-card); }
.opt:has(input:checked) { border-color: var(--c-link); background: var(--c-select); }
.opt:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.opt b { display: block; font-weight: 500; color: var(--c-title); }
.opt small { display: block; color: var(--c-muted); font-size: 12.5px; margin-top: 2px; }
.opt input { margin-top: 3px; accent-color: var(--c-link); }
.picker { position: relative; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border: 1px solid var(--c-field); border-radius: 10px; padding: 6px 8px; min-height: 46px; background: var(--c-card); }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--c-tint); color: var(--c-title); border-radius: 999px; padding: 3px 4px 3px 11px; font-size: 13px; max-width: 100%; }
.chip.pr { background: var(--c-red-pale); color: var(--c-red-ink); }
.chip button { border: 0; background: transparent; cursor: pointer; color: inherit; width: 26px; height: 26px; border-radius: 50%; font-size: 15px; line-height: 1; }
.chip button:hover { background: rgba(16, 42, 67, .1); }
.chips input { border: 0; flex: 1; min-width: 180px; outline: none; padding: 6px 4px; }
.sugg { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--c-card); border: 1px solid var(--c-line); border-radius: 10px; box-shadow: 0 10px 28px rgba(16, 42, 67, .14); max-height: 300px; overflow-y: auto; z-index: 20; padding: 6px; margin: 0; list-style: none; }
.sugg li button { width: 100%; text-align: left; display: flex; gap: 10px; align-items: center; border: 0; background: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.sugg li button:hover, .sugg li button.hi { background: var(--c-select); }
.sugg li button small { margin-left: auto; color: var(--c-muted); font-size: 12px; }
.sugg .g { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); padding: 8px 10px 4px; }
.count { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; background: var(--c-head); border: 1px solid var(--c-line); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; }
.count b { font-weight: 600; color: var(--c-title); }
.count details { width: 100%; }
.count summary { cursor: pointer; color: var(--c-link); }
.count ul { margin: 8px 0 0; padding-left: 18px; max-height: 180px; overflow-y: auto; }
.kinds { display: flex; gap: 10px; flex-wrap: wrap; }
.kinds .opt { flex: 1 1 200px; }
.foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px 20px; background: var(--c-head); border-top: 1px solid var(--c-line); border-radius: 0 0 12px 12px; }
.foot .r { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.pv { padding: 18px; position: sticky; top: 86px; }
.pvh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; color: var(--c-muted); }
.pvh b { color: var(--c-title); font-weight: 500; }
.preview { width: 100%; height: 620px; border: 1px solid var(--c-line); border-radius: 10px; background: #EEF2F4; }
/* The shared rich-text editor (public/js/editor.js), dressed for the console —
   the console does not load a club's stylesheet. */
.editor-shell { border: 1px solid var(--c-field); border-radius: 10px; overflow: hidden; background: #FFFFFF; }
.editor-toolbar { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; background: var(--c-head); border-bottom: 1px solid var(--c-line); padding: 6px 8px; }
.editor-toolbar button { min-width: 36px; height: 34px; padding: 0 9px; border: 1px solid transparent; border-radius: 7px; background: transparent; cursor: pointer; font-size: 13.5px; color: var(--c-navy); font-weight: 600; }
.editor-toolbar button:hover { background: #FFFFFF; border-color: var(--c-line); }
.editor-toolbar button.on { background: var(--c-navy); color: #FFFFFF; }
.editor-toolbar .sep { width: 1px; height: 22px; background: var(--c-line); margin: 0 4px; }
.editor-toolbar .ed-count { margin-left: auto; font-size: 12.5px; color: var(--c-muted); padding-right: 4px; }
.editor-body { min-height: 220px; max-height: 50vh; overflow-y: auto; padding: 16px 18px; font-size: 15px; line-height: 1.65; color: var(--c-ink); }
.editor-body:focus { outline: none; }
.editor-body:empty::before { content: attr(data-placeholder); color: #8A97A6; }
.editor-body p { margin: 0 0 10px; } .editor-body ul, .editor-body ol { margin: 8px 0 8px 24px; }

/* ---------------------------------------------------------- funnel/sent */
.msg { padding: 16px 20px; border-bottom: 1px solid var(--c-line-soft); }
.msg:last-child { border-bottom: 0; }
.msg h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--c-title); }
.msg .meta { font-size: 13px; color: var(--c-muted); margin: 3px 0 8px; }
.funnel { margin: 0; padding-left: 18px; font-size: 13.5px; }
.funnel li { margin: 2px 0; }
.funnel .c { color: var(--c-muted); }
.funnel .bad-t { color: var(--c-bad); } .funnel .wait-t { color: var(--c-wait); }

/* ------------------------------------------------------- the club page */
.hero { background: var(--c-card); border-bottom: 1px solid var(--c-line); padding: 24px 32px 0; }
.hrow { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hrow .logo { width: 56px; height: 56px; border-radius: 14px; background: var(--c-navy); color: var(--c-butter); display: flex; align-items: center; justify-content: center; font: 600 20px var(--c-serif); flex: none; }
.hrow .btns { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; align-items: center; }
.tabs { display: flex; gap: 4px; margin-top: 18px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 11px 14px; color: #46525F; font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; cursor: pointer; min-height: 44px; }
.tabs button[aria-selected="true"] { color: var(--c-title); border-bottom-color: var(--c-link); }
.checks { list-style: none; margin: 0; padding: 6px 20px 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--c-line-soft); }
.checks li > div { min-width: 0; overflow-wrap: anywhere; }
.checks b { display: block; font-weight: 500; color: var(--c-title); font-size: 13.5px; }
.checks span { font-size: 12.5px; color: var(--c-muted); }
.checks .fix { font-size: 12.5px; color: #2E3A48; margin-top: 2px; }
.tick { flex: none; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.tick.y { background: var(--c-ok-bg); color: var(--c-ok); } .tick.n { background: var(--c-bad-bg); color: var(--c-bad); } .tick.c { background: var(--c-neu-bg); color: var(--c-neu); }
.prog { height: 8px; background: var(--c-line-soft); border-radius: 99px; overflow: hidden; margin: 14px 20px 4px; }
.prog i { display: block; height: 100%; background: var(--c-link); border-radius: 99px; }
.next { margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; background: #FFF8DD; border: 1px solid #EFDB94; color: var(--c-ink); }
.next b { color: var(--c-red-ink); }
.alert { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--c-wait-bg); color: #4A3A0A; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; padding: 16px 20px 4px; }
.stats > div { border: 1px solid var(--c-line); border-radius: 10px; padding: 10px 12px; }
.stats b { display: block; font: 600 20px var(--c-serif); color: var(--c-title); }
.stats span { font-size: 12.5px; color: var(--c-muted); }
.chart { display: flex; align-items: flex-end; gap: 2px; height: 90px; border-bottom: 1px solid var(--c-line); margin: 12px 20px 4px; }
.chart i { flex: 1; min-width: 2px; background: var(--c-link); border-radius: 3px 3px 0 0; }
.chart i.zero { background: none; }
.axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--c-muted); margin: 0 20px 12px; }
.lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding: 4px 20px 18px; }
.lists h3 { font-size: 13.5px; margin: 0 0 6px; color: var(--c-title); }
.lists ol { margin: 0; padding-left: 20px; }
.lists li { overflow-wrap: anywhere; }
.copy textarea { width: 100%; min-height: 190px; border: 1px solid var(--c-field); border-radius: 8px; padding: 10px; font: 13px/1.5 var(--c-sans); background: var(--c-head); }

/* ---------------------------------------------------- signed out / idle
   THE FRONT DOOR — two chairs and an umbrella at the tide line, approved 19
   October 2026. The scene is drawing only (aria-hidden); the form on the pass
   is the same form as before. The whole door is one fixed layer that scrolls
   inside itself, so a short window can always reach Sign in.

   ON A PHONE THE SCENE IS A BAND, NOT A BACKDROP. It used to be sized to the
   screen, and on a real iPhone Safari's toolbars take enough height that the
   beach slid up under the pass and left the chairs standing in the sea —
   which is not the drawing that was approved. Now the band sits between the
   tagline and the pass, water above and a strip of beach at its foot, and the
   umbrella and chairs are planted in that strip, so they are on the sand at
   every height; the pass stands on the beach below. The heading and tagline
   sit on the sky above it. On a wide screen the scene is still the full
   backdrop, with the pass at the left. */
.gate { position: fixed; inset: 0; z-index: 80; overflow-y: auto; background: var(--c-dune); --px: max(22px, env(safe-area-inset-left)); --pt: max(28px, env(safe-area-inset-top)); }
.gate .foam, .gate .boat, .gate .umbrella { position: absolute; pointer-events: none; }
.gate .boat { animation: av-glide 1.4s ease-out both, av-bob 6s ease-in-out 1.4s infinite; }
.gate .umbrella { aspect-ratio: 100 / 110; transform-origin: 50% 100%; animation: av-open .9s cubic-bezier(.3, 1.4, .5, 1) .2s both; }
@keyframes av-glide { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes av-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@keyframes av-open { from { transform: scaleY(.35); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .gate .boat, .gate .umbrella { animation: none; } }
.gate .scenery { display: none; }
.gate .door { position: relative; min-height: 100%; height: 100%; display: flex; flex-direction: column;
  padding: var(--pt) var(--px) max(16px, env(safe-area-inset-bottom)); }
/* the sky, bled to the screen's edges behind the heading and tagline */
.gate .head { display: grid; gap: 10px; margin: calc(-1 * var(--pt)) calc(-1 * var(--px)) 0; padding: var(--pt) var(--px) 14px; background: linear-gradient(180deg, #BFE0F2, #E3F1F6); }
/* the band: sea at the top, a strip of beach (--beach) at the foot */
/* ONE SCREEN ON AN IPHONE (owner, 19 October): the band takes only the height
   that is left, so the whole door — sky, sea, beach and pass — fits without
   scrolling, and the drawings scale with it. */
.gate .stage { position: relative; flex: 1 1 0; min-height: 96px; margin: 0 calc(-1 * var(--px)) 12px; overflow: hidden; --beach: clamp(34px, 30%, 64px);
  background: linear-gradient(180deg, var(--c-link), var(--c-cabana) 45%, var(--c-seafoam) calc(100% - var(--beach)), var(--c-dune) calc(100% - var(--beach))); }
.gate .stage .foam { left: 0; width: 100%; bottom: calc(var(--beach) - 16px); height: 30px; }
.gate .stage .boat { left: 8%; top: 8%; height: min(110px, calc(100% - var(--beach) - 6%)); aspect-ratio: 100 / 110; }
.gate .stage .umbrella { right: 6%; bottom: 6px; height: min(176px, calc(100% - 14px)); }
.gate .lockup .w { color: var(--c-title); font-size: clamp(34px, 10vw, 64px); }
.gate .lockup .r i { width: clamp(22px, 7vw, 46px); background: var(--c-link); }
.gate .lockup .r span { color: var(--c-red-ink); font-size: clamp(9.5px, 2.6vw, 12px); }
.gate .tagline { margin: 0; max-width: 36ch; text-wrap: balance; font: italic 600 clamp(15px, 4.2vw, 21px)/1.28 var(--c-serif); color: var(--c-title); }
.gate .pass { width: 100%; max-width: 380px; margin-top: auto; background: var(--c-paper); border-radius: 16px; overflow: hidden; box-shadow: 0 18px 34px -14px rgba(16, 42, 67, .55); }
.gate .pass .band { position: relative; height: 40px; background: var(--c-link); display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font: 500 10.5px/1 var(--c-mono); letter-spacing: .2em; color: var(--c-paper); }
.gate .pass .band::after { content: ""; position: absolute; left: 50%; top: 10px; width: 42px; height: 8px; border-radius: 6px; background: var(--c-paper); transform: translateX(-50%); }
.gate .pass .body { padding: 18px 20px 16px; }
.gate .pass .stripe { height: 10px; background: repeating-linear-gradient(90deg, var(--c-cabana) 0 18px, var(--c-paper) 18px 36px); }
.gate .pass h1 { font: 600 22px var(--c-serif); color: var(--c-title); margin: 0 0 4px; }
.gate .pass .why { margin: 0 0 14px; color: var(--c-muted); }
.gate .pass .btn.pri { width: 100%; min-height: 46px; font-size: 15px; font-weight: 600; }
.gate .pass .forgot { margin: 12px 0 0; text-align: center; }
/* On a phone the pass is a little tighter; the tap targets stay 44px. */
@media (max-width: 900px) {
  .gate .pass .band { height: 32px; font-size: 10px; }
  .gate .pass .band::after { top: 7px; height: 7px; }
  .gate .pass .body { padding: 12px 18px 10px; }
  .gate .pass h1 { font-size: 19px; }
  .gate .pass .why { margin: 0 0 8px; font-size: 13px; }
  .gate .pass .field { margin-bottom: 8px; }
  .gate .pass .field input { min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
  .gate .pass .btn.pri { min-height: 44px; }
  .gate .pass .say:empty { display: none; }
  .gate .pass .forgot { margin: 6px 0 0; }
  .gate .pass .forgot .linkish { min-height: 32px; }
  .gate .pass .stripe { height: 8px; }
}
/* A short phone (an iPhone SE with Safari's toolbars showing): the heading on
   the pass goes from sight — the button already says Sign in — but stays for
   a screen reader. */
@media (max-width: 900px) and (max-height: 620px) {
  .gate .pass h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .gate .lockup .w { font-size: 32px; }
  .gate .head { gap: 8px; padding-bottom: 10px; }
  .gate .stage { min-height: 64px; margin-bottom: 10px; }
  .gate .pass .body { padding: 10px 18px 8px; }
  .gate .pass .field { margin-bottom: 6px; gap: 3px; }
  .gate .pass .forgot { margin: 2px 0 0; }
}
/* The show/hide eye (app.js addPasswordEye) — the same 46px target as on a club's site. */
.pw-field { position: relative; }
.pw-field input { padding-right: 52px; }
.pw-eye { position: absolute; top: 0; right: 0; height: 100%; width: 46px; display: flex; align-items: center; justify-content: center;
  padding: 0; border: 0; background: none; color: var(--c-muted); cursor: pointer; border-radius: 0 8px 8px 0; }
.pw-eye svg { width: 22px; height: 22px; display: block; }
.pw-eye:hover, .pw-eye:focus-visible { color: var(--c-title); }
.pw-eye[aria-pressed="true"] { color: var(--c-link); }
/* A wide screen: the scene is the whole backdrop again, sea low, pass at the left. */
@media (min-width: 901px) {
  .gate { --hz: 40%; --sh: 66%; }
  .gate .stage { display: none; }
  .gate .scenery { display: block; position: absolute; inset: 0; min-height: 100%; overflow: hidden; }
  .gate .scenery > div { position: absolute; left: 0; right: 0; }
  .gate .sky { top: 0; height: var(--hz); background: linear-gradient(180deg, #BFE0F2, #E3F1F6); }
  .gate .water { top: var(--hz); height: calc(var(--sh) - var(--hz)); background: linear-gradient(180deg, var(--c-link), var(--c-cabana) 55%, var(--c-seafoam)); }
  .gate .sand { top: var(--sh); bottom: 0; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35) 0 1px, transparent 1.6px) 0 0 / 12px 12px, var(--c-dune); }
  .gate .door { padding: 48px 5vw 40px; }
  .gate .head { margin: 0; padding: 0; background: none; }
  .gate .scenery .foam { left: 0; width: 100%; top: calc(var(--sh) - 26px); height: 56px; }
  .gate .scenery .boat { left: 42%; top: calc(var(--hz) - 7%); width: min(9vw, 150px); }
  .gate .scenery .umbrella { left: 66%; top: calc(var(--sh) - 17%); width: min(19vw, 300px); }
}
.idle-warning { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); max-width: min(560px, calc(100% - 32px)); background: var(--c-navy-deep); color: #FFFFFF; padding: 14px 18px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 50; }

/* ------------------------------------------------- the phone's bottom bar
   Hidden on wide screens. On a phone it replaces the side menu, exactly as
   the board portal's does (site.css): fixed to the foot, padded for the home
   indicator, its own layer (translateZ), and NO backdrop-filter — Safari
   mis-composites a fixed element that carries one and parks it mid-screen
   (`floating`). The page reserves its height so the last card is reachable. */
.tabbar, .top-brand { display: none; }
/* `display` set on these would otherwise win over the hidden attribute, and the
   signed-out screen would open below a console frame stuck on Loading. */
.sheet[hidden], .shell[hidden], .tabbar[hidden] { display: none !important; }
.sheet { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; }
.sheet-back { position: absolute; inset: 0; background: rgba(16, 42, 67, .45); }
.sheet-panel { position: relative; width: 100%; max-width: 560px; background: var(--c-card); border-radius: 16px 16px 0 0;
  padding: 10px 12px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px rgba(16, 42, 67, .2); max-height: 85vh; overflow-y: auto; }
.sheet-head { display: flex; align-items: center; padding: 6px 8px 4px; }
.sheet-head h2 { margin: 0; font: 600 20px var(--c-serif); color: var(--c-title); }
.sheet-x { margin-left: auto; width: 44px; height: 44px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--c-muted); cursor: pointer; border-radius: 50%; }
.sheet-grp { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); padding: 12px 10px 4px; }
.sheet-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 50px; padding: 10px; border: 0; background: none; border-radius: 10px;
  color: var(--c-ink); text-decoration: none; font-size: 16px; text-align: left; cursor: pointer; }
.sheet-row svg { color: var(--c-muted); flex: none; }
.sheet-row:hover, .sheet-row[aria-current="page"] { background: var(--c-select); color: var(--c-title); }
.sheet-row[aria-current="page"] svg { color: var(--c-link); }

/* ------------------------------------------------------------- narrower */
@media (max-width: 1100px) {
  .split, .two, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .span2 { grid-column: auto; }
  .drawer, .pv { position: static; }
  .checks { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .side { display: none; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    transform: translateZ(0); background: var(--c-navy-deep); border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 4px 2px calc(4px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px;
    padding: 6px 2px 4px; border: 0; background: none; color: var(--c-steel-dim); text-decoration: none; font: 600 10.5px/1.15 var(--c-sans);
    letter-spacing: .01em; cursor: pointer; min-width: 0; }
  .tabbar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar [aria-current="page"], .tabbar button.on { color: var(--c-butter); }
  .top-brand { display: flex; text-decoration: none; }
  .me .btn { display: none; }
  .top { padding: 12px 16px; position: static; }
  .page { padding: 20px 16px 40px; }
  .hero { padding: 20px 16px 0; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opts, .row2 { grid-template-columns: minmax(0, 1fr); }
  .search { order: 3; flex-basis: 100%; max-width: none; }
}

/* ------------------------------------------- plain rows, tabs on a page
   Settings, a club's Web address & email, and the Clubs tabs (19 October
   2026): a label in plain words over one line saying what it means, the
   answer on the right; the server's own name for it tucked under "For the
   developer". */
.page > .tabs { margin-top: -4px; border-bottom: 1px solid var(--c-line); }
.prows { display: grid; }
.prow { display: flex; align-items: center; gap: 8px 18px; padding: 14px 20px; border-top: 1px solid var(--c-line-soft); flex-wrap: wrap; }
.prow:first-child { border-top: 0; }
.prow > div:first-child { flex: 1 1 260px; min-width: 0; display: grid; gap: 2px; }
.prow b { font-weight: 600; color: var(--c-title); }
.prow span { font-size: 13.5px; color: var(--c-muted); overflow-wrap: anywhere; }
.prow .v { flex: 0 1 auto; text-align: right; overflow-wrap: anywhere; max-width: 100%; }
details.dev { border-top: 1px solid var(--c-line); padding: 12px 20px; font-size: 13px; }
details.dev summary { cursor: pointer; color: var(--c-link); }
details.dev .facts { margin-top: 10px; }
td.r { text-align: right; white-space: nowrap; }
.flash { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: var(--c-ok-bg); color: var(--c-ok); font-size: 13.5px; }
@media (max-width: 900px) { .prow { padding: 12px 16px; } .prow .v { text-align: left; } }
/* Web addresses on a phone: each address is a small card, label left and
   answer right, rather than a six-column table squeezed until it breaks. */
@media (max-width: 700px) {
  table.addr thead { display: none; }
  table.addr, table.addr tbody, table.addr tr, table.addr td { display: block; width: 100%; min-width: 0; }
  table.addr tr { padding: 12px 16px; border-top: 1px solid var(--c-line-soft); }
  table.addr tr:first-child { border-top: 0; }
  table.addr td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  table.addr td::before { content: attr(data-label); color: var(--c-muted); font-size: 12.5px; text-align: left; flex: none; }
  table.addr td:first-child { display: block; text-align: left; padding-bottom: 6px; }
  table.addr td:first-child .mono { font-weight: 600; overflow-wrap: anywhere; }
  table.addr td.r { justify-content: flex-start; padding-top: 8px; }
  table.addr td.r::before { content: none; }
}

/* ------------------------------------------------------------ Press Kit */
.pk { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.pk-folders { padding: 8px; display: grid; gap: 2px; }
.pk-folders button { display: flex; justify-content: space-between; gap: 8px; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 7px; cursor: pointer; font-size: 14px; color: var(--c-ink); min-height: 40px; }
.pk-folders button:hover { background: var(--c-select); }
.pk-folders button[aria-current="true"] { background: var(--c-tint); font-weight: 600; color: var(--c-title); }
.pk-folders i { font-style: normal; color: var(--c-muted); font-size: 12px; }
.pk-main { display: grid; gap: 14px; min-width: 0; }
.pk-here { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.pk-here b { font: 600 20px var(--c-serif); color: var(--c-title); margin-right: auto; }
.pk-drop { border: 2px dashed var(--c-field); border-radius: 12px; padding: 18px; text-align: center; color: var(--c-muted); background: var(--c-card); }
.pk-drop.over { border-color: var(--c-link); background: var(--c-select); color: var(--c-title); }
.pk-drop .say:empty { display: none; }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.pk-grid > * { min-width: 0; }
.pk-file { background: var(--c-card); border: 1px solid var(--c-line); border-radius: 12px; overflow: hidden; display: grid; gap: 10px; padding-bottom: 12px; align-content: start; }
.pk-thumb { display: grid; place-items: center; height: 130px; background: var(--c-navy-deep); color: var(--c-paper); text-decoration: none; font: 600 13px var(--c-mono); letter-spacing: .12em; text-transform: uppercase; overflow: hidden; }
.pk-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pk-meta, .pk-move, .pk-share, .pk-link, .pk-acts { padding: 0 12px; }
.pk-meta { display: grid; gap: 2px; min-width: 0; }
.pk-meta b { font-weight: 600; color: var(--c-title); overflow-wrap: anywhere; }
.pk-meta small { color: var(--c-muted); font-size: 12.5px; }
.pk-move { display: grid; gap: 4px; font-size: 12.5px; color: var(--c-muted); }
.pk-move select { min-height: 36px; border: 1px solid var(--c-field); border-radius: 8px; padding: 4px 8px; background: var(--c-card); color: var(--c-ink); }
.pk-share { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--c-ink); cursor: pointer; }
.pk-share input { margin-top: 2px; accent-color: var(--c-link); }
.pk-link { display: flex; gap: 6px; }
.pk-link .inp { min-height: 34px; font-size: 12px; padding: 6px 8px; min-width: 0; }
.pk-acts { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 900px) {
  .pk { grid-template-columns: minmax(0, 1fr); }
  .pk-folders { display: flex; overflow-x: auto; gap: 4px; }
  .pk-folders button { white-space: nowrap; flex: none; }
}

/* ---------------------------------------------------------------- Money
   The owner asked for "a lot more of our standard colours" here: the figure
   tiles carry the Cabana palette, the club table a navy head and the stripe.
   Green, amber and red stay for meaning only (the Budget verdicts — the
   clubs' own burn-rate steps, measured as text in `burnrate`). */
.money { --mo-ok: #1E7B4F; --mo-hot: #A5851A; --mo-over: #B3362B; }
.money .seg { align-self: start; }
.mo-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.mo-kpi { border: 1px solid var(--c-line); border-top: 6px solid var(--k); border-radius: 12px; padding: 14px 16px; display: grid; gap: 4px; background: var(--bg, var(--c-card)); }
.mo-kpi .l { font-size: 12.5px; color: var(--c-muted); }
.mo-kpi .v { font: 600 28px/1.1 var(--c-serif); color: var(--c-title); font-variant-numeric: tabular-nums; }
.mo-kpi .n { font-size: 12.5px; color: var(--c-muted); }
.mo-kpi.in { --k: var(--c-cabana); --bg: #EAF4FA; }
.mo-kpi.out { --k: var(--c-butter); --bg: #FFF9E3; }
.mo-kpi.left { --k: var(--c-seafoam); --bg: #EAF7F1; }
.mo-kpi.bad { --k: var(--c-red); --bg: #FDEEEC; } .mo-kpi.bad .v { color: var(--c-bad); }
.mo-kpi.more { --k: var(--c-link); }
.mo-note { margin: 0; padding: 10px 14px; border-left: 4px solid var(--c-butter); background: #FFF9E3; border-radius: 0 8px 8px 0; font-size: 14px; }
.mo-stripe { height: 8px; background: repeating-linear-gradient(90deg, var(--c-cabana) 0 18px, var(--c-paper) 18px 36px); }
table.mo-t th { background: var(--c-navy-deep); color: var(--c-steel); }
table.mo-t td.amt, table.mo-t th.amt { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.mo-t td small { display: block; white-space: normal; }
table.mo-t td.neg { color: var(--c-bad); }
table.mo-t tr.tot td { background: var(--c-navy-deep); color: var(--c-paper); font-weight: 600; }
table.mo-t tr.tot td.neg { color: #FFB4A9; }
.mo-badge { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; font: 700 13px/1 var(--c-cinzel); color: var(--c-navy-deep); flex: none; }
.money .who { display: flex; align-items: center; gap: 10px; }
.mo-src { margin: 8px 0 0; padding-left: 18px; }
.mo-inline { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; align-items: end; }
.mo-inline .acts, .mo-inline .say { grid-column: 1 / -1; }
.mo-bars { display: grid; gap: 16px; padding: 16px 20px; }
.mo-bar { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr) auto; gap: 12px 16px; align-items: center; }
.mo-bar small { display: block; color: var(--c-muted); font-size: 12.5px; }
.mo-track { position: relative; height: 12px; background: #EEF1F3; border-radius: 6px; }
.mo-track.none { background: repeating-linear-gradient(45deg, #EEF1F3 0 6px, #E1E5E8 6px 12px); }
.mo-track i { display: block; height: 100%; border-radius: 6px; }
.mo-track .bud { position: absolute; top: -4px; bottom: -4px; border-left: 2px dashed var(--c-navy-deep); }
.mo-track .pace { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--c-navy-deep); }
.mo-bv { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
@media (max-width: 700px) { .mo-bar { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------- overview tiles */
/* Every box is a way in (owner, 20 October 2026). Text on each fill is
   measured: navy on the light ones, linen on navy and on the deep red —
   white on the lifeguard red itself is only 4.0 to 1, so the red box uses
   the darker red the palette keeps for text. */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tiles.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 18px 20px 16px; border-radius: 14px; text-decoration: none; color: var(--c-title);
  border: 1px solid rgba(16, 42, 67, .08); transition: transform .15s ease, box-shadow .15s ease; min-height: 128px; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16, 42, 67, .14); }
.tile:focus-visible { outline: 3px solid var(--c-link); outline-offset: 2px; }
.tile .l { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.tile .v { font: 600 34px/1.1 var(--c-serif); margin: 6px 0 2px; }
.tile .n { font-size: 13px; }
.tile .go { position: absolute; right: 16px; top: 14px; font-weight: 700; opacity: .7; }
.tile.t-sky { background: linear-gradient(140deg, #E4F2FA, #BFE0F2); }
.tile.t-butter { background: linear-gradient(140deg, #FDF3CC, #F7DC6F); }
.tile.t-sea { background: linear-gradient(140deg, #E3F5EE, #9ED9C3); }
.tile.t-dune { background: linear-gradient(140deg, #F7EFDD, #EAD9B5); }
.tile.t-calm { background: linear-gradient(140deg, #EEF3F6, #DCE7EF); }
.tile.t-red { background: linear-gradient(140deg, #B83A31, #A5302A); color: #FFF6F4; border-color: transparent; }
.tile.t-navy { background: linear-gradient(140deg, #1F4668, #102A43); color: #FAF6EC; border-color: transparent; }

/* ------------------------------------------------- clubs, as one screen */
.clubrows { padding: 0; }
.clubrow { padding: 16px 20px; border-bottom: 1px solid var(--c-line-soft); display: grid; gap: 10px; }
.clubrow:last-child { border-bottom: 0; }
.cr-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.cr-top .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cr-top .who b { display: block; color: var(--c-title); font-weight: 600; }
.cr-top .who small { color: var(--c-muted); }
.cr-pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cr-board { font-size: 13px; margin-left: 4px; }
.cr-needs { display: grid; gap: 6px; }
.need { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; text-decoration: none; color: var(--c-ink); font-size: 14px; }
.need span:not(.dot) { flex: 1; min-width: 0; }
.need b { font-weight: 600; color: var(--c-title); }
.need u { color: var(--c-link); font-weight: 600; white-space: nowrap; }
.need.bad { background: var(--c-bad-bg); } .need.wait { background: var(--c-wait-bg); } .need.neu { background: var(--c-neu-bg); }
.cr-web { display: grid; gap: 4px; background: #F6F8F9; border-radius: 9px; padding: 9px 12px; font-size: 13.5px; color: var(--c-muted); }
.cr-web > div { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.cr-web .mono { color: var(--c-ink); font-weight: 500; }
h2.minor { font: 600 16px var(--c-serif); color: var(--c-title); margin: 6px 0 -4px; }
/* A tenant's feature switches (the Features tab). */
.feat-row { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--c-line-soft); min-height: 48px; }
.feat-row small { margin-left: auto; text-align: right; }
.feat-tog { width: 44px; height: 26px; border-radius: 999px; border: 0; padding: 0; background: #C3CBD3; position: relative; cursor: pointer; flex: none; }
.feat-tog span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; transition: left .15s; }
.feat-tog[aria-checked="true"] { background: var(--c-ok); }
.feat-tog[aria-checked="true"] span { left: 21px; }
.feat-tog:disabled { opacity: .6; cursor: wait; }
@media (prefers-reduced-motion: reduce) { .feat-tog span { transition: none; } }

/* ------------------------------------------- campaigns, one line each */
.cmps { padding: 0; }
details.cmp { border-bottom: 1px solid var(--c-line-soft); }
details.cmp:last-child { border-bottom: 0; }
details.cmp summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 20px; }
details.cmp summary::-webkit-details-marker { display: none; }
details.cmp summary:hover { background: var(--c-select); }
details.cmp summary:focus-visible { outline: 3px solid var(--c-link); outline-offset: -3px; }
details.cmp .s1 b { display: block; color: var(--c-title); font-weight: 600; }
details.cmp .s1 small { color: var(--c-muted); }
details.cmp .chev { font-size: 20px; color: var(--c-link); transition: transform .2s; }
details.cmp[open] .chev { transform: rotate(90deg); }
details.cmp .body { padding: 0 20px 16px; }
details.cmp .body .funnel { margin-bottom: 12px; font-size: 14.5px; }
.counts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--c-muted); white-space: nowrap; }
.counts span { display: inline-flex; align-items: center; gap: 6px; }
.counts .d { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.counts .d.sent { background: var(--c-cabana); } .counts .d.got { background: var(--c-ok); } .counts .d.open { background: #C9A227; } .counts .d.bad { background: var(--c-bad); }
.counts .bad-t { color: var(--c-bad); } .counts .wait-t { color: var(--c-wait); }

@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tiles.two-up { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 112px; padding: 14px 16px; }
  .tile .v { font-size: 28px; }
  details.cmp summary { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 16px; }
  details.cmp summary .counts { grid-column: 1 / -1; grid-row: 2; white-space: normal; }
  details.cmp .body { padding: 0 16px 14px; }
  .clubrow { padding: 14px 16px; }
}
/* The page area is focused after every screen is drawn, so a screen reader
   starts at the top of it. That focus is the app's, not the person's: no ring. */
#view:focus { outline: none; }

/* Clubs open and close (owner, 20 October 2026). The summary is the club's
   one line; what needs you and its web address are inside. */
details.clubrow > summary { list-style: none; cursor: pointer; }
details.clubrow > summary::-webkit-details-marker { display: none; }
details.clubrow > summary:hover { background: var(--c-select); }
details.clubrow > summary:focus-visible { outline: 3px solid var(--c-link); outline-offset: -3px; border-radius: 8px; }
details.clubrow .chev { font-size: 20px; color: var(--c-link); transition: transform .2s; margin-left: 4px; }
details.clubrow[open] .chev { transform: rotate(90deg); }
.cr-body { display: grid; gap: 10px; }
.cr-line { margin: 0; font-size: 13.5px; }
.need .fix, .todo .fix { display: block; margin-top: 4px; font-size: 13px; color: var(--c-ink); }
.need-acts, .todo-acts { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.need-acts a { color: var(--c-link); font-weight: 600; }
.linkish.dm { font-size: 13px; color: var(--c-muted); }
details.dismissed { margin-top: 4px; }
details.dismissed > summary { cursor: pointer; color: var(--c-muted); font-size: 13.5px; }
@media (max-width: 700px) { .need { flex-wrap: wrap; } .need-acts, .todo-acts { width: 100%; justify-content: flex-start; padding-left: 20px; } .todo { flex-wrap: wrap; } }
.need .need-acts { flex: none; }
@media (max-width: 700px) {
  .need { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 6px 10px; }
  .need .dot { margin-top: 6px; }
  .need .need-acts { grid-column: 2; width: auto; padding-left: 0; white-space: normal; flex-wrap: wrap; gap: 6px 16px; }
  details.clubrow > summary { position: relative; padding-right: 30px; }
  details.clubrow .chev { position: absolute; right: 0; top: 4px; margin: 0; }
}
.tax-dl { display: inline-flex; gap: 8px; align-items: center; } .tax-dl select { min-height: 38px; border-radius: 8px; border: 1px solid var(--c-field); padding: 0 8px; background: var(--c-card); }
.team-add { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 12px; } .team-add .field { flex: 1 1 260px; margin: 0; }

/* A double-tap no longer zooms Lighthouse (pinch still does): an accidental
   double-tap zoom is the commonest way a phone's bottom bar ends up "not
   fixed" until the screen is readjusted (owner, 20 October 2026). */
html, body { touch-action: manipulation; }

/* New sign-ups: what only the operator can set up, per order (lib/signup.js setupItems). */
.su-setup td { background: var(--c-bg-2, #F6F8FA); }
.su-setup summary { cursor: pointer; padding: 4px 0; }
.su-list { list-style: none; margin: 8px 0 4px; padding: 0; display: grid; gap: 8px; }
.su-list label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.su-list input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.su-list span { min-width: 0; overflow-wrap: anywhere; }

/* ---- Films (24 October 2026) ---- */
.fgroup { font: 600 18px/1.2 var(--c-serif); color: var(--c-title); margin: 8px 0 0; }
.films { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.film { overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.fposter { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--c-navy-deep); }
.fposter img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flen { position: absolute; right: 8px; bottom: 8px; background: rgba(16,42,67,.85); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.fbody { padding: 12px 14px 14px; display: grid; gap: 6px; }
.fbody h3 { margin: 0; font: 600 16px var(--c-sans); color: var(--c-title); }
.fl { margin: 0; font-size: 12.5px; color: var(--c-muted); overflow-wrap: anywhere; }
.fact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* ---- Lighthouse 2 (approved 24 October 2026, from the prototype built on this stylesheet) ---- */
.seg a { display: inline-flex; align-items: center; border: 0; background: var(--c-card); font-size: 13px; padding: 7px 12px; color: #2E3A48; min-height: 36px; text-decoration: none; }
.seg a + a { border-left: 1px solid var(--c-field); }
.seg a[aria-pressed="true"] { background: var(--c-tint); color: var(--c-title); font-weight: 500; }
.tabs a { display: inline-flex; align-items: center; padding: 11px 14px; color: #46525F; font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; min-height: 44px; text-decoration: none; }
.tabs a[aria-selected="true"] { color: var(--c-title); border-bottom-color: var(--c-link); }
a.kpi-link { text-decoration: none; color: inherit; } a.kpi-link:hover { box-shadow: 0 6px 18px rgba(16,42,67,.12); }
tr.rowlink { cursor: pointer; } tr.rowlink:hover td { background: var(--c-select); }
.up { color: var(--c-ok); font-weight: 600; } .down { color: var(--c-bad); font-weight: 600; } .small { font-size: 12.5px; }
.days { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; } .days i { height: 32px; border-radius: 3px; background: #3BA372; } .days i.part { background: #D9A93C; }
.rank { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; } .rank li { display: grid; grid-template-columns: 1fr auto; gap: 6px; font-size: 14px; } .rank .bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--c-tint); overflow: hidden; } .rank .bar i { display: block; height: 100%; background: var(--c-cabana); }
.chart-svg { width: 100%; height: auto; display: block; font-family: var(--c-sans); }
.ann { background: #fff; border: 1px solid var(--c-line); border-left: 4px solid var(--c-cabana); border-radius: 10px; padding: 12px 14px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ann .k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-link); font-weight: 600; } .ann b { color: var(--c-title); } .ann p { margin: 4px 0 0; font-size: 14px; color: var(--c-muted); max-width: 52ch; }
.ann-a { display: grid; gap: 6px; justify-items: end; }
.letter { border: 1px solid var(--c-line); border-radius: 10px; overflow: hidden; } .letter .lh { background: var(--c-navy-deep); color: var(--c-paper); text-align: center; font: 700 20px/1 Georgia, serif; letter-spacing: .1em; padding: 14px; }
.letter .lb { padding: 16px 18px; font: 15px/1.6 Georgia, serif; color: #2E3A48; } .letter .lb p { margin: 0 0 10px; } .letter .ls { font-size: 13px; color: var(--c-muted); }
.page > .seg { align-self: start; }
.tiles.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ann + .ann { margin-top: 10px; }
.sugg-row td:first-child { max-width: 34ch; }
.lh-note { font-size: 12.5px; color: var(--c-muted); margin: 0; }
.days i.none { background: var(--c-tint); }

/* The composer's people picker (approved 24 October 2026): 1 Account, 2 Type, 3 People narrow each other. */
.fl { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.fl-l { width: 96px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); font-weight: 600; }
.fl .seg button b { font-weight: 500; color: var(--c-muted); margin-left: 4px; }
.selbar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; background: var(--c-head); border: 1px solid var(--c-line); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.selbar label { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.selbar label.r { margin-left: auto; }
.selbar input[type=checkbox], .pick input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--c-title); }
.pick { max-height: 380px; overflow: auto; border: 1px solid var(--c-line); border-radius: 10px; }
.pick table.t { min-width: 660px; }
.pick td:nth-child(2) { min-width: 190px; } .pick td:nth-child(3) { min-width: 180px; } .pick td:nth-child(5) { white-space: nowrap; }
.pick tr.on td { background: var(--c-select); }
.addr-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 600px) { .fl-l { width: 100%; } .selbar label.r { margin-left: 0; } }

/* Requests and the Inbox (approved 24 October 2026). */
.track { list-style: none; margin: 0; padding: 0; }
.track li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--c-line-soft); }
.track li:last-child { border-bottom: 0; }
.tr-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--c-sans); border: 2px solid var(--c-field); color: var(--c-muted); background: var(--c-card); }
.tr-done .tr-dot { background: #1E7B4F; border-color: #1E7B4F; color: #fff; }
.tr-now .tr-dot { border-color: var(--c-title); color: var(--c-title); box-shadow: 0 0 0 3px var(--c-butter); }
.tr-todo b { color: var(--c-muted); }
.track-mini { display: inline-flex; gap: 3px; margin: 6px 0 2px; } .track-mini i { width: 16px; height: 5px; border-radius: 3px; background: var(--c-line); }
.track-mini i.done { background: #1E7B4F; } .track-mini i.now { background: var(--c-butter); }
.mrow { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px 16px; border-bottom: 1px solid var(--c-line-soft); text-decoration: none; color: inherit; }
.mrow .dot { margin-top: 6px; } .mrow .mt { display: grid; gap: 2px; min-width: 0; } .mrow .mt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mrow small { color: var(--c-muted); }
.mrow.on { background: var(--c-select); } .mrow.done b { font-weight: 500; color: var(--c-muted); }
.matched { background: var(--c-tint); border-radius: 8px; padding: 9px 12px; font-size: 14px; }
.triage { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-top: 1px solid var(--c-line); padding-top: 12px; }
.seg a b { font-weight: 600; margin-left: 4px; }

/* Anything given its own display (a .field is flex) must still hide when told to. */
[hidden] { display: none !important; }

/* An email in the Inbox, shown as it was sent, under the same strip its Gmail copy carries. */
.estrip { font-size: 13px; background: #E3F1F6; border: 1px solid #BFE0F2; border-radius: 8px; padding: 9px 12px; color: var(--c-title); }
.email-frame { width: 100%; min-height: 260px; height: 600px; border: 1px solid var(--c-line); border-radius: 8px; background: #fff; }
.split.ibsplit { grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.6fr); }
@media (max-width: 1100px) { .split.ibsplit { grid-template-columns: minmax(0, 1fr); } }
.email-frame { overflow: auto; }

/* ---------------------------------------------------------------- two-step
   TWO-STEP SIGN-IN (approved 24 October 2026 from the drawn proposal; see
   `twostep` in CLAUDE.md). The steps sit on the same pass as the sign-in.
   Setting a phone up is taller than signing in, so on those steps the door
   grows and the beach band keeps a fixed strip (.gate.tall) — the one-screen
   door was drawn for a short pass and would spill past the screen.
   Names chosen not to collide: .tick and .opt already mean other things here. */
.gate.tall .door { height: auto; }
.gate.tall .stage { flex: 0 0 72px; min-height: 72px; }
.gate .pass .btn.wide, .btn.wide { width: 100%; }
.sub2 { font-size: 13px; color: var(--c-muted); margin: 6px 0 0; }
.way { border: 1px solid var(--c-line); border-radius: 10px; padding: 12px; margin: 0 0 10px; background: var(--c-card); }
.way > b { display: block; color: var(--c-title); font-weight: 600; margin-bottom: 6px; }
.way .btn { width: 100%; }
.way details { font-size: 13px; color: var(--c-muted); margin-top: 8px; }
.way details .mono { margin: 6px 0 0; font-size: 14px; letter-spacing: .06em; }
.qr { display: flex; gap: 12px; align-items: center; }
.qr svg { width: 120px; height: 120px; flex: none; background: #FFFFFF; }
.qr .sub2 { margin: 0; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; padding: 12px; border: 1px dashed var(--c-field); border-radius: 10px; background: var(--c-card);
  margin: 0 0 10px; font: 15px var(--c-mono); color: var(--c-title); text-align: center; }
.agree { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; margin: 0 0 12px; color: var(--c-ink); }
.agree input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--c-link); }
.code-in { font: 500 24px var(--c-mono) !important; letter-spacing: .3em; text-align: center; }
.code-in.loose { letter-spacing: .12em; }
.links { display: grid; gap: 8px; margin: 12px 0 0; text-align: center; font-size: 13.5px; }
.links .linkish { min-height: 32px; }
ol.steps { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 8px; font-size: 13.5px; }
.gate .pass .say:empty { display: none; }
/* Settings → Signing in */
.ts-setup { border-bottom: 1px solid var(--c-line-soft); max-width: 460px; }
.ts-setup h1 { font: 600 19px var(--c-serif); color: var(--c-title); margin: 0 0 4px; }
.ts-setup .why { margin: 0 0 12px; color: var(--c-muted); }
.dev-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px dashed var(--c-line-soft); font-size: 13px; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.notice { margin: 14px 20px 0; padding: 12px 14px; border-radius: 10px; font-size: 13.5px; }
.notice.wait { background: var(--c-wait-bg); color: var(--c-wait); }
.notice b { color: inherit; }
#twostep .codes { max-width: 360px; }

/* ------------------------------------------------------- swipe to delete
   Approved 24 October 2026 (`swipe` in CLAUDE.md). A row slides left to
   uncover its action (.under); a bin appears on hover where there is a mouse.
   A table (.t.sw) stays a table on a computer — bin on hover — and becomes a
   stack of swipeable cards on a phone, where a sideways-scrolling table would
   fight the swipe. */
.swipe { position: relative; overflow: hidden; touch-action: pan-y; }
.swipe > .face { position: relative; z-index: 1; background: var(--c-card); transition: transform .22s ease; }
.swipe.dragging > .face, .swipe.dragging > td { transition: none; }
.swipe > .face, .swipe > td { -webkit-user-select: none; user-select: none; }
.swipe a, .swipe img { -webkit-user-drag: none; }
.swipe > .under { position: absolute; inset: 0 0 0 auto; display: flex; align-items: stretch; z-index: 0; }
.swipe .under button { border: 0; color: #FFFFFF; font: 600 14px var(--c-sans); padding: 0 18px; min-width: 96px; cursor: pointer; }
.swipe .under .del { background: #B3362B; }
.swipe .under .sus { background: var(--c-wait); }
.swipe.going { opacity: .45; }
.swipe .bin { display: none; }
@media (hover: hover) and (pointer: fine) {
  .swipe .bin { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--c-field); background: var(--c-card);
    border-radius: 8px; color: var(--c-bad); cursor: pointer; opacity: 0; transition: opacity .12s; }
  div.swipe > .bin { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); z-index: 2; }
  .swipe:hover .bin, .swipe .bin:focus-visible { opacity: 1; }
  .swipe[data-open] .bin, .swipe.dragging .bin { display: none; } /* a row slid open shows its own button; the bin must not sit on it */
}
@media (hover: hover) and (pointer: fine) { .swipe:has(> .face > details.cmp) > .bin { top: 15px; right: 48px; transform: none; } } /* beside the campaign's chevron, on its first line */
table.t.sw th.under, table.t.sw td.under { display: none; }
table.t.sw th.bincell, table.t.sw td.bincell { width: 48px; padding-left: 0; padding-right: 12px; text-align: right; }
@media (hover: none) { table.t.sw th.bincell, table.t.sw td.bincell { display: none; } }
@media (max-width: 760px) {
  table.t.sw { min-width: 0; }
  table.t.sw, table.t.sw tbody { display: block; }
  table.t.sw thead { display: none; }
  table.t.sw tr { display: block; border-bottom: 1px solid var(--c-line-soft); }
  table.t.sw tr.swipe { position: relative; overflow: hidden; }
  table.t.sw tr > td { display: block; border: 0; padding: 4px 16px; background: var(--c-card); position: relative; z-index: 1;
    transform: translateX(var(--dx, 0px)); transition: transform .22s ease; }
  table.t.sw tr > td:not(.under) { width: auto; max-width: none; } /* every cell spans the card, or the button underneath shows through */
  table.t.sw tr > td:first-child { padding-top: 12px; }
  table.t.sw tr > td:nth-last-child(3) { padding-bottom: 12px; }
  table.t.sw tr > td.r { text-align: left; }
  table.t.sw tr.swipe > td.under { display: flex; position: absolute; inset: 0 0 0 auto; z-index: 0; padding: 0; transform: none; background: none; }
  table.t.sw td.bincell { display: none; }
}
/* Delete site: the name is typed first. */
.sw-confirm, tr.sw-confirm > td { background: var(--c-red-pale); color: var(--c-red-ink); padding: 14px 18px; font-size: 13.5px; }
.sw-confirm .inp { display: block; width: 100%; max-width: 360px; margin: 8px 0; }
/* Recently deleted, at the foot of a list. */
details.rd { border-top: 1px solid var(--c-line-soft); }
details.rd summary { padding: 12px 20px; cursor: pointer; color: var(--c-muted); font-size: 13.5px; }
details.rd .rrow { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 20px; border-top: 1px dashed var(--c-line-soft); }
details.rd .rrow b { display: block; font-weight: 500; color: var(--c-ink); }
details.rd .rrow small { color: var(--c-muted); font-size: 12.5px; }
/* The Undo bar: twelve seconds, above the phone's bottom bar. */
.undo-bar { position: fixed; z-index: 70; left: 50%; transform: translateX(-50%); bottom: max(20px, env(safe-area-inset-bottom)); width: min(560px, calc(100% - 24px));
  display: flex; gap: 12px; align-items: center; background: var(--c-navy-deep); color: #FFFFFF; border-radius: 12px; padding: 12px 14px; font-size: 14px;
  box-shadow: 0 12px 28px -12px rgba(16, 42, 67, .6); }
.undo-bar span { flex: 1; min-width: 0; }
.undo-bar button { border: 0; border-radius: 8px; cursor: pointer; font-weight: 600; }
.undo-bar #undo-go { background: var(--c-butter); color: var(--c-navy-deep); padding: 8px 14px; }
.undo-bar .x { background: none; color: var(--c-steel); font-size: 20px; width: 32px; height: 32px; }
@media (max-width: 900px) { .undo-bar { bottom: calc(76px + env(safe-area-inset-bottom)); } }

/* ------------------------------------------------------------- payments
   Lighthouse → Payments and a club's Payments tab (lib/payments.js). */
.dot.ok { background: var(--c-ok); }
.pay-slide { display: grid; gap: 2px; font-size: 13px; color: var(--c-muted); min-width: 150px; }
.pay-slide b { color: var(--c-title); }
.pay-slide input { width: 100%; accent-color: var(--c-title); }
.pay-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pay-steps > div { border: 1px solid var(--c-line); border-radius: 10px; padding: 12px; display: grid; gap: 4px; align-content: start; font-size: 13.5px; }
.pay-steps b { color: var(--c-title); } .pay-steps .pill { justify-self: start; }
@media (max-width: 760px) { .pay-steps { grid-template-columns: 1fr 1fr; } }

/* iPHONE ZOOM (owner, 25 October 2026: "a few pixels cut off … doesn't look
   centred"). Safari zooms the page in when you tap a box whose text is under
   16px, and often leaves it zoomed — the page then sits a little large and
   off-centre. Every Lighthouse box was 14px. On a touch screen they are 16px,
   the size Safari leaves alone; a desktop keeps its 14px. Zooming by pinch is
   untouched — this never disables it. */
@media (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { font-size: 16px !important; }
}

/* THANK-YOUS YOU CONTROL (owner's approval, 26 October 2026): the switch at the top, and the send bar. */
.ty-switch { display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
.ty-switch b { display: block; font-size: 16px; } .ty-switch .muted { display: block; font-size: 14px; }
.ty-switch .feat-tog { width: 52px; height: 30px; } .ty-switch .feat-tog span { width: 24px; height: 24px; }
.ty-switch .feat-tog[aria-checked="true"] span { left: 25px; }
.ty-go { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
