/*
 * The look of the Club Routes portals: the committee portal (/admin/new) and the staff portal (staff.clubroutes.com,
 * public/staff/). Colours for light and dark, the shell (top bar, left nav, main, side panel, rail), the pieces
 * (buttons, pills, cards, dialogs, sign-in) and each committee section. Light or dark follows the device unless
 * Settings chooses one (cr.theme, set on <html data-theme> before the page draws).
 */
:root {
  --ground: #EEF1EC; --panel: #FBFCFA; --well: #E1E7DF; --hover: #DDE4DA; --line: #D6DDD4; --line-2: #E3E8E1; --line-strong: #87918A;
  --ink: #17211B; --ink-2: #2B3630; --ink-3: #4E5A52; --ink-4: #56625A; --ink-5: #8A958D;
  --blue: #1F3FA8; --blue-ink: #1A3593; --blue-bg: #DCE3FA; --route: #2F55D4;
  --orange: #D24A00; --orange-bg: #FFE4D2; --orange-ink: #8A3300; --attn-bg: #FFF1E6;
  --ok-bg: #DDF0E3; --ok-ink: #14532D; --start: #1F8A4C;
  --event-bg: #FFE9D9; --event-ink: #7A3D00; --bad: #A3241A; --bad-bg: #FBE3E0;
  --wa-bg: #E5F5EA; --wa-line: #B8DDC4; --wa-ink: #0E5A2B;
  --map: #E8EDE6; --map-road: #D3DAD1;
  --shadow: 0 1px 3px rgba(23,33,27,.2), 0 4px 12px rgba(23,33,27,.08);
  --shadow-lg: 0 8px 30px rgba(23,33,27,.22);
  --s1: #2a78d6; --s2: #eb6834;
  --display: "Archivo Condensed", "Arial Narrow", sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0F1411; --panel: #171E1A; --well: #222B26; --hover: #27312B; --line: #2E3933; --line-2: #252F2A; --line-strong: #64716A;
    --ink: #E6ECE7; --ink-2: #D2DAD4; --ink-3: #A9B5AD; --ink-4: #9AA69E; --ink-5: #6E7A72;
    --blue: #8FA6FF; --blue-ink: #C3CFFF; --blue-bg: #24305A; --route: #7D9BFF;
    --orange: #FF7A33; --orange-bg: #3A2416; --orange-ink: #FFB58A; --attn-bg: #2E2116;
    --ok-bg: #173323; --ok-ink: #8BDDA9; --start: #4CC47F;
    --event-bg: #33251A; --event-ink: #F2B988; --bad: #FF8A7A; --bad-bg: #3A1D1A;
    --wa-bg: #16301F; --wa-line: #2B5A3A; --wa-ink: #8BDDA9;
    --map: #1C2420; --map-road: #2A342F; --s1: #3987e5; --s2: #d95926;
    --shadow: 0 1px 3px rgba(0,0,0,.5), 0 4px 12px rgba(0,0,0,.3);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --ground: #0F1411; --panel: #171E1A; --well: #222B26; --hover: #27312B; --line: #2E3933; --line-2: #252F2A; --line-strong: #64716A;
    --ink: #E6ECE7; --ink-2: #D2DAD4; --ink-3: #A9B5AD; --ink-4: #9AA69E; --ink-5: #6E7A72;
    --blue: #8FA6FF; --blue-ink: #C3CFFF; --blue-bg: #24305A; --route: #7D9BFF;
    --orange: #FF7A33; --orange-bg: #3A2416; --orange-ink: #FFB58A; --attn-bg: #2E2116;
    --ok-bg: #173323; --ok-ink: #8BDDA9; --start: #4CC47F;
    --event-bg: #33251A; --event-ink: #F2B988; --bad: #FF8A7A; --bad-bg: #3A1D1A;
    --wa-bg: #16301F; --wa-line: #2B5A3A; --wa-ink: #8BDDA9;
    --map: #1C2420; --map-road: #2A342F; --s1: #3987e5; --s2: #d95926;
    --shadow: 0 1px 3px rgba(0,0,0,.5), 0 4px 12px rgba(0,0,0,.3);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.55);
    color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--ground); color: var(--ink); font: 400 14px/1.4 var(--body); -webkit-text-size-adjust: 100%; }
a { color: var(--blue); }
a:hover { color: var(--blue-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 20px; height: 20px; flex: none; }

/* ---------- Shell: top bar, left nav, main, right panel, rail ---------- */
.app { height: 100dvh; display: grid; grid-template-columns: 248px minmax(0, 1fr) 360px 56px; grid-template-rows: 64px minmax(0, 1fr); }
.app.nav-closed { grid-template-columns: 72px minmax(0, 1fr) 360px 56px; }
.app.panel-closed { grid-template-columns: 248px minmax(0, 1fr) 0 56px; }
.app.nav-closed.panel-closed { grid-template-columns: 72px minmax(0, 1fr) 0 56px; }
.top { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 0 16px 0 12px; min-width: 0; }
.brand { display: block; font: 700 22px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; text-decoration: none; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.brand:hover { color: var(--ink); }
.brand b { color: var(--orange); font-weight: 700; }
.brand small { display: block; font: 600 11px/1.2 var(--body); letter-spacing: .08em; color: var(--ink-4); margin-top: 3px; }
/* The club switcher (people on more than one club's committee): our own chevron, with room around it */
.clubwrap { position: relative; display: inline-flex; flex: none; margin-left: 8px; }
.clubwrap::after { content: ""; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); pointer-events: none; }
.clubsel { -webkit-appearance: none; appearance: none; height: 36px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 0 38px 0 14px; max-width: 220px; font: 600 13.5px var(--body); cursor: pointer; text-overflow: ellipsis; }
.clubsel:hover { background: var(--ground); }
.clubwrap:has(.clubsel[hidden]) { display: none; }
.ib { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink-3); cursor: pointer; padding: 0; flex: none; position: relative; }
.ib:hover { background: var(--hover); }
.ib.on { background: var(--blue-bg); color: var(--blue-ink); }
.ib .badge { position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); border: 2px solid var(--ground); }
.search { flex: 0 1 520px; margin-left: 40px; position: relative; }
.search label { display: flex; align-items: center; gap: 10px; height: 46px; border-radius: 23px; background: var(--well); padding: 0 18px; color: var(--ink-3); }
.search label:focus-within { background: var(--panel); box-shadow: var(--shadow); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 15px; outline: none; color: var(--ink); }
.search input::placeholder { color: var(--ink-3); }
.qres { position: absolute; top: 50px; left: 0; right: 0; background: var(--panel); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 40; max-height: 60vh; overflow: auto; }
.qres .grp { font: 600 11px/1.3 var(--body); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-4); padding: 8px 10px 4px; }
.qres a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.qres a:hover, .qres a.sel { background: var(--well); }
.qres a small { color: var(--ink-4); margin-left: auto; white-space: nowrap; }
.qres .none { padding: 12px; color: var(--ink-4); }
.grow { flex: 1 1 auto; }
.tag-preview { font: 600 11px/1 var(--body); letter-spacing: .07em; text-transform: uppercase; color: var(--orange-ink); background: var(--orange-bg); border-radius: 6px; padding: 5px 7px; white-space: nowrap; }

.left { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; gap: 14px; padding: 8px 12px 12px; overflow: hidden; min-height: 0; }
.create { align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 24px 0 18px; border-radius: 16px; border: 0; background: var(--panel); box-shadow: var(--shadow); font: 600 15px var(--body); color: var(--ink); cursor: pointer; }
.create:hover { box-shadow: var(--shadow-lg); }
.create svg { width: 24px; height: 24px; color: var(--orange); }
.newwrap { position: relative; }
.left > .newwrap { flex: none; }
.menu { position: absolute; z-index: 50; background: var(--panel); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 250px; }
.menu a, .menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border-radius: 10px; border: 0; background: transparent; text-align: left; color: var(--ink); text-decoration: none; cursor: pointer; font-weight: 500; }
.menu a:hover, .menu button:hover, .menu a:focus-visible, .menu button:focus-visible { background: var(--well); }
.menu svg { color: var(--ink-3); }
.menu .sep { height: 1px; background: var(--line-2); margin: 4px 6px; }
.menu .head { padding: 8px 12px 4px; font: 600 11px/1.3 var(--body); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-4); }
.menu [aria-checked="true"] { color: var(--blue-ink); font-weight: 600; }
.menu [aria-checked="true"] svg { color: var(--blue-ink); }
.menu .tick { margin-left: auto; visibility: hidden; }
.menu [aria-checked="true"] .tick { visibility: visible; }
.menu .who { padding: 8px 12px 10px; color: var(--ink-4); font-size: 13px; }
.menu .who b { display: block; color: var(--ink); font-size: 14px; }
/* The nav scrolls when the window is short; the mini calendar stays at the bottom */
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; margin: 0 -12px; padding: 0 12px 4px; scrollbar-width: thin; }
.nav a { flex: none; }
.nav a { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; border-radius: 20px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 14.5px; white-space: nowrap; }
.nav a:hover { background: var(--well); color: var(--ink); }
.nav a.on { background: var(--blue-bg); color: var(--blue-ink); font-weight: 600; }
.nav .count { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--blue-ink); }
.app.nav-closed .left { padding-left: 12px; padding-right: 12px; }
.app.nav-closed .create { width: 48px; padding: 0; justify-content: center; }
.app.nav-closed .create span, .app.nav-closed .nav span, .app.nav-closed .minical { display: none; }
.app.nav-closed .nav a { width: 48px; padding: 0; justify-content: center; }

.minical { flex: none; padding: 10px 6px 0; border-top: 1px solid var(--line); }
.minical .marrows { display: flex; gap: 2px; }
.minical.shut .marrows { display: none; }
.mtoggle { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; padding: 4px 8px; margin-left: -8px; border-radius: 14px; font: 600 14px var(--body); color: var(--ink); cursor: pointer; }
.mtoggle:hover { background: var(--well); }
.mtoggle svg { width: 16px; height: 16px; color: var(--ink-3); }
.minical .mh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-weight: 600; }
.minical .mh .ib { width: 28px; height: 28px; }
.minical .mh .ib svg { width: 16px; height: 16px; }
.mini { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 2px; text-align: center; font-size: 12px; }
.mini .h { color: var(--ink-4); font-weight: 600; font-size: 11px; height: 24px; line-height: 24px; }
.mini .d { height: 28px; width: 28px; line-height: 28px; border-radius: 50%; justify-self: center; position: relative; color: var(--ink-2); font-weight: 500; border: 0; background: transparent; padding: 0; font-size: 12px; }
.mini a.d { text-decoration: none; cursor: pointer; }
.mini a.d:hover { background: var(--well); }
.mini .d.o { color: var(--ink-5); }
.mini .d.t { background: var(--blue); color: var(--panel); font-weight: 600; }
.mini .d.r::after, .mini .d.e::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--orange); }
.mini .d.e::after { background: var(--event-ink); }
.mini .d.x::after { background: var(--ink-5); }
.mini .d.t::after { background: var(--panel); }
.minical .key { margin: 10px 0 0; font-size: 12px; color: var(--ink-4); display: flex; gap: 12px; flex-wrap: wrap; }
.minical .key span { display: inline-flex; align-items: center; gap: 6px; }
.minical .key i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

.main { grid-column: 2; grid-row: 2; background: var(--panel); border-radius: 16px 16px 0 0; overflow-y: auto; min-width: 0; min-height: 0; }
.right { grid-column: 3; grid-row: 2; display: flex; flex-direction: column; gap: 12px; padding: 0 0 16px 12px; overflow-y: auto; min-height: 0; }
.app.panel-closed .right { display: none; }
.rail { grid-column: 4; grid-row: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 6px; }
.rail .sep { width: 24px; height: 1px; background: var(--line); margin: 4px 0; }
.rail { padding-bottom: 16px; }
.rail .railhelp { margin-top: auto; width: 44px; height: 44px; background: var(--blue-bg); color: var(--blue-ink); }
.rail .railhelp.on { background: var(--blue); color: #fff; }
#help { display: none; }
.relline { font-size: 12px; color: var(--ink-5); text-align: center; margin: 32px 0 24px; }

/* ---------- Pieces ---------- */
.card { background: var(--panel); border-radius: 16px; padding: 14px 16px; }
.lbl { font: 600 11.5px/1.3 var(--body); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-4); margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); font: 600 13.5px var(--body); color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--ground); color: var(--ink); }
.btn:disabled { opacity: .55; cursor: default; }
.btn svg { width: 16px; height: 16px; }
.btn.fill { background: var(--blue); border-color: var(--blue); color: var(--panel); }
.btn.fill:hover { background: var(--blue-ink); color: var(--panel); }
.btn.danger { color: var(--bad); }
.btn.dangerfill { background: var(--bad); border-color: var(--bad); color: var(--panel); }
.btn.wa { background: var(--wa-bg); border-color: var(--wa-line); color: var(--wa-ink); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--well); }
.linkbtn { border: 0; background: none; padding: 0; color: var(--blue); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--body); color: var(--panel); background: var(--blue); border: 0; cursor: pointer; flex: none; padding: 0; }
.code { font: 600 12px/1 var(--body); background: var(--ink); color: var(--panel); border-radius: 6px; padding: 4px 7px; white-space: nowrap; }
.code.event { background: var(--event-ink); }
.code.none { background: var(--ink-5); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill.next { background: var(--blue-bg); color: var(--blue-ink); }
.pill.ok { background: var(--ok-bg); color: var(--ok-ink); }
.pill.need { background: var(--orange-bg); color: var(--orange-ink); }
.pill.event { background: var(--event-bg); color: var(--event-ink); }
.pill.off { background: var(--bad-bg); color: var(--bad); }
.muted { color: var(--ink-4); }
.err { color: var(--bad); min-height: 0; margin: 8px 0 0; }
.err:empty { display: none; }

/* ---------- Views ---------- */
.vhead { padding: 22px 24px 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.vhead h1 { margin: 4px 0 0; font: 700 32px/1.05 var(--display); text-transform: uppercase; }
.vhead .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.hero { margin: 0 24px; border: 1px solid var(--line); border-radius: 16px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; overflow: hidden; }
.hero.cancelled .hero-body > *:not(.hero-meta):not(.hero-acts):not(.daynote) { opacity: .55; }
.hero-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hero-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-meta > span:last-child { font-weight: 600; color: var(--ink-3); }
.hero-title { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.hero-title .code { font-size: 14px; }
.hero-title h2 { margin: 0; font: 700 28px/1.1 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.stats { display: flex; gap: 28px; flex-wrap: wrap; }
.stat b { display: block; font: 700 24px/1 var(--display); }
.stat span { display: block; font-size: 12px; color: var(--ink-4); margin-top: 4px; }
.hero-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.hero-map { background: var(--map); position: relative; min-height: 200px; }
.hero-map svg { width: 100%; height: 100%; display: block; position: absolute; inset: 0; }
.hero-map .rmap { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; }
.hero-map .rmap.on { opacity: 1; }
.hero-map .rmap-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }   /* no WebGL: the route's map picture */
.hero-map .rmap-still.on { opacity: 1; }
.maplibregl-ctrl-attrib { font-size: 10.5px; }
.maplibregl-ctrl.maplibregl-ctrl-attrib, .maplibregl-ctrl-attrib.maplibregl-compact { background: color-mix(in srgb, var(--panel) 88%, transparent); color: var(--ink-3); }
.maplibregl-ctrl-attrib a { color: inherit; }
:root[data-theme="dark"] .maplibregl-ctrl-attrib-button { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .maplibregl-ctrl-attrib-button { filter: invert(1); } }
.hero-map .nomap { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-4); text-align: center; padding: 20px; }
.longopt { font-size: 13.5px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.daynote { background: var(--attn-bg); border-radius: 10px; padding: 8px 12px; font-size: 13.5px; }
.flag { font-size: 12px; font-weight: 600; border-radius: 6px; padding: 3px 7px; background: var(--orange-bg); color: var(--orange-ink); }
.flag.off { background: var(--bad-bg); color: var(--bad); }
.sechead { padding: 22px 24px 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sechead h3 { margin: 0; font: 700 18px/1 var(--display); text-transform: uppercase; }
.sechead a { font-weight: 600; font-size: 13.5px; }
.rows { padding-bottom: 8px; }
.row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 80px 130px 120px; align-items: center; gap: 16px; padding: 12px 24px; border-top: 1px solid var(--line-2); width: 100%; border-left: 0; border-right: 0; border-bottom: 0; background: transparent; text-align: left; cursor: pointer; color: inherit; }
.row:hover { background: var(--ground); }
.row .when b { display: block; }
.row .when span { font-size: 12.5px; color: var(--ink-4); }
.row .what { display: flex; align-items: center; gap: 10px; min-width: 0; }
.row .what span:last-child { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .km { font-weight: 600; color: var(--ink-2); }
.row .going { color: var(--ink-2); }
.empty { margin: 0 24px; padding: 28px; border: 1px dashed var(--line); border-radius: 16px; text-align: center; color: var(--ink-3); }
.setup { margin: 0 24px 18px; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.setup h2 { margin: 0; font: 700 20px/1.1 var(--display); text-transform: uppercase; }
.setup .bar { height: 6px; border-radius: 3px; background: var(--well); margin: 12px 0 6px; overflow: hidden; }
.setup .bar i { display: block; height: 100%; background: var(--start); }
.setup ol { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 2px; }
.setup li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-2); }
.setup li:first-child { border-top: 0; }
.setup .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; font-size: 12px; font-weight: 700; }
.setup li.done .tick { background: var(--start); border-color: var(--start); color: #fff; }
.setup li.done b { text-decoration: line-through; color: var(--ink-4); }
.setup li small { display: block; color: var(--ink-4); }
.setup li > span:nth-child(2) { flex: 1; }

/* Right panel cards */
.attn { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line-2); }
.attn:first-of-type { border-top: 0; }
.attn .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--orange); }
.attn .dot.grey { background: var(--ink-5); }
.attn b { display: block; font-weight: 600; }
.attn div div { font-size: 13px; color: var(--ink-3); }
.attn a, .attn .linkbtn { font-size: 13px; }
.allclear { display: flex; gap: 10px; align-items: center; color: var(--ink-3); padding: 6px 0 2px; }
.allclear svg { color: var(--start); }
.person { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.person .av { width: 30px; height: 30px; font-size: 11px; cursor: default; }
.person span:nth-child(2) { flex: 1; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tagnew { font: 600 10.5px/1 var(--body); letter-spacing: .05em; text-transform: uppercase; color: var(--orange-ink); background: var(--orange-bg); border-radius: 6px; padding: 4px 6px; }
.act { padding: 8px 0; border-top: 1px solid var(--line-2); font-size: 13px; }
.act:first-of-type { border-top: 0; }
.act span { color: var(--ink-4); display: block; font-size: 12px; }
.bignum { font: 700 30px/1 var(--display); }

/* ---------- Calendar (#00078) ---------- */
.calhead { align-items: center; padding-bottom: 12px; }
.calnav { display: flex; align-items: center; gap: 4px; }
.calnav h1 { margin: 0 0 0 8px; font: 700 28px/1 var(--display); text-transform: uppercase; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; height: 36px; }
.seg button, .seg label { border: 0; background: transparent; padding: 0 14px; font: 600 13.5px var(--body); color: var(--ink-3); cursor: pointer; display: inline-flex; align-items: center; }
.seg button + button, .seg label + label { border-left: 1px solid var(--line); }
.seg [aria-pressed="true"], .seg label:has(input:checked) { background: var(--blue-bg); color: var(--blue-ink); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: -2px; }
.seg.wide { display: flex; height: 42px; border-radius: 21px; }
.seg.wide label { flex: 1; justify-content: center; }
.calstrip { margin: 0 24px 12px; padding: 10px 14px; background: var(--ground); border-radius: 12px; display: flex; gap: 8px 18px; flex-wrap: wrap; align-items: baseline; font-size: 13.5px; }
.calstrip a, .calstrip .linkbtn { font-size: 13.5px; font-weight: 600; }
.calchecks summary { cursor: pointer; font-weight: 600; color: var(--orange-ink); }
.calchecks ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-3); }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(108px, auto); border-top: 1px solid var(--line-2); }
.month .mhd { height: 30px; line-height: 30px; text-align: center; font-size: 12px; font-weight: 600; color: var(--ink-4); text-transform: uppercase; letter-spacing: .05em; min-height: 0; }
.month { grid-template-rows: 30px; }
.cell { border-left: 1px solid var(--line-2); border-top: 1px solid var(--line-2); padding: 4px 5px 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; position: relative; }
.cell:nth-child(7n + 8) { border-left: 0; }
.cell .n { font-size: 12.5px; font-weight: 600; color: var(--ink-2); align-self: center; width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%; flex: none; }
.cell.out { background: color-mix(in srgb, var(--ground) 45%, transparent); }
.cell.out .n { color: var(--ink-5); }
.cell.today .n { background: var(--blue); color: var(--panel); }
.cell.drop { background: var(--blue-bg); outline: 2px dashed var(--blue); outline-offset: -3px; }
.chip { display: flex; align-items: center; gap: 4px; width: 100%; border: 0; border-radius: 6px; padding: 4px 7px; font: 500 12.5px/1.25 var(--body); text-align: left; cursor: pointer; background: var(--route); color: #fff; min-width: 0; }
.chip span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip b { font-weight: 600; font-size: 11.5px; opacity: .9; }
.chip.event { background: var(--event-bg); color: var(--event-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--event-ink) 30%, transparent); }
.chip.need { background: var(--attn-bg); color: var(--orange-ink); box-shadow: inset 0 0 0 1px var(--orange); border: 0; }
.chip.off { background: var(--bad-bg); color: var(--bad); text-decoration: line-through; }
.chip.past { opacity: .6; }
.chip[draggable="true"] { cursor: grab; }
.chip.dragging { opacity: .4; }
.chip:hover { filter: brightness(1.06); }
.cell .more { border: 0; background: none; padding: 0 4px; font-size: 12px; font-weight: 600; color: var(--blue); cursor: pointer; text-align: left; }
.cell .addhere { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--well); color: var(--ink-3); display: grid; place-items: center; cursor: pointer; opacity: 0; padding: 0; }
.cell .addhere svg { width: 14px; height: 14px; }
.cell:hover .addhere, .cell .addhere:focus-visible { opacity: 1; }
.cell .dots { display: none; }
.calhint { font-size: 12.5px; padding: 8px 24px 0; margin: 0; }
.listtools { padding: 0 24px 4px; display: flex; justify-content: flex-end; }
.row.pastrow { opacity: .65; }
.three { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; }
.fieldrow { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.field .fieldrow input { width: 110px; flex: none; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); padding: 0 12px; }
[data-for] { display: flex; flex-direction: column; gap: 12px; }
[data-for][hidden] { display: none !important; }
dialog.sheet { max-height: calc(100dvh - 32px); }
@media (max-width: 760px) {
  .calhead { flex-direction: column; align-items: stretch; gap: 10px; }
  .calhead .acts { display: flex !important; justify-content: space-between; }
  .calnav h1 { font-size: 24px; }
  .calstrip { margin: 0 0 12px; background: var(--panel); }
  .month { grid-auto-rows: 54px; background: var(--panel); border-radius: 16px; overflow: hidden; border: 0; }
  .cell { padding: 2px; align-items: center; cursor: pointer; }
  .cell .chip, .cell .more, .cell .addhere { display: none; }
  .cell .dots { display: flex; gap: 3px; }
  .cell .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--route); }
  .cell .dots i.event { background: var(--event-ink); }
  .cell .dots i.off { background: var(--ink-5); }
  .calhint { display: none; }
  .listtools { padding: 0 4px 6px; }
  .three { grid-template-columns: 1fr 1fr; }
  .three .field:first-child { grid-column: 1 / -1; }
}

/* ---------- Routes (#00080) ---------- */
.rfilters { display: flex; gap: 10px; padding: 0 24px 10px; flex-wrap: wrap; }
.rsearch { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; height: 40px; border-radius: 20px; background: var(--well); padding: 0 14px; color: var(--ink-3); }
.rsearch input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 14.5px; color: var(--ink); }
.rsearch:focus-within { box-shadow: 0 0 0 2px var(--blue); }
.rfilters select { height: 40px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); padding: 0 12px; font-weight: 600; font-size: 13.5px; }
.tagrow { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 24px 14px; }
.tagf { height: 30px; border-radius: 15px; border: 1px solid var(--line); background: var(--panel); padding: 0 12px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); cursor: pointer; }
.tagf[aria-pressed="true"] { background: var(--blue-bg); border-color: var(--blue-bg); color: var(--blue-ink); }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; padding: 0 24px 8px; }
.rc { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); padding: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.rc:hover { border-color: var(--ink-5); box-shadow: var(--shadow); }
.rc-map { display: block; background: var(--map); height: 120px; position: relative; }
.rc-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rc-map .rc-tile { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s; }
.rc-map .rc-tile.in { opacity: 1; }
.mapcredit { font-size: 12px; color: var(--ink-3); margin: 14px 0 0; text-align: right; } .mapcredit a { color: inherit; }
.rc-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rc-t { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rc-t b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-s { font-size: 13px; color: var(--ink-3); }
.rc-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.rc-tags i { font-style: normal; font-size: 11.5px; font-weight: 600; background: var(--well); color: var(--ink-3); border-radius: 6px; padding: 2px 6px; }
.rc-warn { font-size: 12.5px; font-weight: 600; color: var(--orange-ink); background: var(--orange-bg); border-radius: 6px; padding: 3px 7px; align-self: flex-start; }
.uploads { padding: 0 24px; display: flex; flex-direction: column; gap: 6px; }
.uploads:not(:empty) { padding-bottom: 12px; }
.up { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: 13.5px; }
.up .st { font-weight: 600; color: var(--ink-4); }
.up .st.ok { color: var(--ok-ink); }
.up .st.bad { color: var(--bad); }
.up-acts { display: flex; gap: 6px; flex-wrap: wrap; }
#view.dropping { outline: 3px dashed var(--blue); outline-offset: -10px; border-radius: 16px; background: color-mix(in srgb, var(--blue-bg) 40%, transparent); }
.tagpick { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tagpick legend { font-weight: 600; font-size: 13.5px; margin-bottom: 8px; padding: 0; }
.vlist { display: flex; flex-direction: column; }
.vrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-2); }
label.btn { cursor: pointer; }
@media (max-width: 760px) {
  .rfilters, .tagrow, .rgrid, .uploads { padding-left: 0; padding-right: 0; }
  .rgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .rc-map { height: 90px; }
  .tagrow { flex-wrap: nowrap; overflow-x: auto; }
  .tagf { flex: none; }
}

/* ---------- People (#00081) ---------- */
.board { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 10px; padding: 0 24px 12px; overflow-x: auto; align-items: start; }
.col { background: var(--ground); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.colh { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 4px 4px; }
.colh b { font-weight: 600; font-size: 13.5px; }
.colh span { font-weight: 600; color: var(--ink-4); font-size: 13px; }
.colempty { font-size: 13px; margin: 0; padding: 4px; }
.pc { display: flex; flex-direction: column; gap: 6px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px; text-align: left; cursor: pointer; color: inherit; font: inherit; width: 100%; }
.pc:hover { border-color: var(--ink-5); }
.pc.ask { box-shadow: inset 3px 0 0 var(--orange); }
.pc-t { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pc-t .av { width: 28px; height: 28px; font-size: 11px; cursor: inherit; color: #fff; }
.pc-t b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-n { font-size: 12.5px; color: var(--ink-3); }
.tdots { display: flex; gap: 4px; }
.tdots i { width: 18px; height: 6px; border-radius: 3px; background: var(--line); }
.tdots i.f { background: var(--start); }
.ptools { display: flex; gap: 18px; padding: 4px 24px 0; font-size: 13.5px; flex-wrap: wrap; }
.ptools a, .ptools .linkbtn { font-weight: 600; font-size: 13.5px; }
.pstate { border-radius: 10px; padding: 10px 12px; font-weight: 600; font-size: 13.5px; background: var(--well); }
.pstate.ready, .pstate.confirmed { background: var(--ok-bg); color: var(--ok-ink); }
.pstate.joined { background: var(--orange-bg); color: var(--orange-ink); }
.steps { display: flex; flex-direction: column; gap: 10px; }
.step { display: flex; gap: 10px; font-size: 13.5px; }
.step i { width: 12px; height: 12px; border-radius: 50%; background: var(--start); margin-top: 4px; flex: none; }
.mlist { padding: 0 24px; }
.mrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.mrow:first-child { border-top: 0; }
.mrow .av { color: #fff; cursor: default; }
.mwho { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mwho b { font-weight: 600; overflow-wrap: anywhere; }
.mroles { display: flex; gap: 4px; flex-wrap: wrap; }
.mroles i { font-style: normal; font-size: 12px; font-weight: 600; background: var(--well); color: var(--ink-3); border-radius: 6px; padding: 2px 7px; }
.mroles i.own { background: var(--blue-bg); color: var(--blue-ink); }
.macts { display: flex; gap: 6px; }
.roleskey { margin: 22px 24px 0; padding: 14px 16px; border-radius: 12px; background: var(--ground); font-size: 13.5px; display: flex; flex-direction: column; gap: 6px; }
.roleskey b { font-weight: 600; margin-right: 4px; }
@media (max-width: 760px) {
  .board { display: flex; padding: 0 0 12px; scroll-snap-type: x mandatory; }
  .col { flex: 0 0 78%; scroll-snap-align: start; }
  .mlist, .ptools { padding-left: 0; padding-right: 0; }
  .mlist { background: var(--panel); border-radius: 16px; padding: 0 14px; }
  .roleskey { margin: 16px 0 0; background: var(--panel); }
}

/* Everyone, and a person's profile (Jeff 28/10/2026) */
.regline { display: flex; align-items: center; gap: 8px; }
.regline .regrow { flex: 1; min-width: 0; }
.pe-tools { display: flex; flex-direction: column; gap: 10px; padding: 0 24px 12px; }
.pe-tools input[type=search] { min-height: 42px; max-width: 420px; width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 12px; background: var(--panel); color: var(--ink); font: inherit; }
.pe-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.pe-f { font: 600 13px/1 var(--font-body, inherit); padding: 9px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); cursor: pointer; }
.pe-f span { color: var(--ink-4); margin-left: 2px; }
.pe-f[aria-pressed="true"] { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.pe-f[aria-pressed="true"] span { color: inherit; opacity: .85; }
.pe-list { display: flex; flex-direction: column; margin: 0 24px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.pe-row { display: grid; grid-template-columns: 36px minmax(160px, 1.4fr) minmax(180px, 1.4fr) 120px 110px 110px; gap: 12px; align-items: center; padding: 10px 14px; border: 0; border-top: 1px solid var(--line-2); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; width: 100%; }
.pe-row:first-child { border-top: 0; }
.pe-row:hover { background: var(--ground); }
.pe-row .av { color: #fff; cursor: inherit; }
.pe-who, .pe-st, .pe-came, .pe-n { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pe-who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-who small, .pe-came small, .pe-n small { color: var(--ink-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-st .ws-chip { align-self: flex-start; }
.ws-chip.soft { background: var(--well); color: var(--ink-2); }
.pe-look { display: flex; gap: 4px; align-items: center; font-size: 12px; color: var(--orange-ink); font-weight: 600; }
.pe-look svg { width: 14px; height: 14px; flex: none; }
.pe-app { font-size: 13px; font-weight: 600; display: flex; gap: 4px; align-items: center; }
.pe-app svg { width: 15px; height: 15px; }
dialog.sheet.pf { width: min(640px, 96vw); }
.pf-top { display: flex; gap: 14px; align-items: center; }
.pf-top .av { color: #fff; cursor: default; flex: none; }
.pf-look { background: var(--orange-bg); color: var(--orange-ink); border-radius: 12px; padding: 10px 12px; }
.pf-look p { margin: 0 0 6px; display: flex; gap: 6px; align-items: center; font-weight: 600; font-size: 13.5px; }
.pf-look svg { width: 16px; height: 16px; flex: none; }
.pf-sec { border-top: 1px solid var(--line-2); padding-top: 12px; }
.pf-sec h3 { margin: 0 0 8px; font-size: 15px; }
.pf-dl { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; margin: 0; font-size: 14px; }
.pf-dl dt { color: var(--ink-3); }
.pf-dl dd { margin: 0; overflow-wrap: anywhere; }
.pf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.pf-stats div { background: var(--ground); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.pf-stats b { font-size: 18px; }
.pf-stats span { font-size: 12px; color: var(--ink-3); }
.pf-weeks { display: grid; grid-template-columns: repeat(26, 1fr); gap: 3px; }
.pf-weeks i { height: 14px; border-radius: 3px; background: var(--line); border: 1px solid var(--line); }
.pf-weeks i.on { background: var(--ink); border-color: var(--ink); }
.pf-recent, .pf-years { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.pf-years li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pf-emerg { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; background: var(--well); border-radius: 12px; padding: 12px; }
.pf textarea { width: 100%; }
@media (max-width: 760px) {
  .pe-tools { padding: 0 0 12px; }
  .pe-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .pe-f { flex: none; }
  .pe-list { margin: 0; }
  .pe-row { grid-template-columns: 36px 1fr auto; grid-template-areas: "av who came" "av st st"; row-gap: 6px; }
  .pe-row .av { grid-area: av; align-self: start; }
  .pe-who { grid-area: who; } .pe-st { grid-area: st; } .pe-came { grid-area: came; text-align: right; }
  .pe-n, .pe-app { display: none; }
  .pf-dl { grid-template-columns: 1fr; gap: 2px; }
  .pf-dl dd { margin-bottom: 6px; }
}

/* ---------- Messages (#00082) ---------- */
/* Regular runs (#00111) */
.rgs { padding: 0 24px 24px; display: grid; gap: 16px; }
.rg { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; background: var(--panel); }
.rg-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.rg-head h2 { margin: 0; font: 700 22px/1.1 var(--display); text-transform: uppercase; }
.rg-meta { margin: 8px 0 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--ink-3); font-size: 14px; }
.rg-about { margin: 8px 0 0; max-width: 560px; }
.rg-head .small { margin: 8px 0 0; }
.rg-btns, .grp-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.rg-runs { margin-top: 14px; display: flex; flex-direction: column; }
.rg-run { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-2); }
.rg-run.off .rg-what b { text-decoration: line-through; color: var(--ink-3); }
.rg-when b { display: block; font-weight: 600; } .rg-when small, .rg-what small { color: var(--ink-3); font-size: 12.5px; }
.rg-what b { display: block; font-weight: 600; } .rg-what small { display: block; margin-top: 2px; }
.rg-flags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.rg-ra { display: flex; gap: 6px; }
.rg-none { margin: 14px 0 0; }
.rg-past { margin-top: 10px; } .rg-past summary { cursor: pointer; color: var(--ink-3); font-size: 13px; }
.rg-menu { display: grid; gap: 8px; }
.rg-menu .btn { justify-content: flex-start; }
.rg-menu .btn.danger, .dangerlink { color: var(--bad); }
fieldset.field { border: 0; padding: 0; margin: 0 0 12px; } fieldset.field legend { font-weight: 600; font-size: 13.5px; margin-bottom: 6px; padding: 0; }
@media (max-width: 760px) {
  .rgs { padding: 0 0 16px; }
  .rg { padding: 16px; }
  .rg-run { grid-template-columns: 1fr auto; }
  .rg-when { grid-column: 1 / -1; display: flex; gap: 8px; align-items: baseline; }
  .rg-ra .btn span { display: none; }
}
.msgs { padding: 0 24px; display: flex; flex-direction: column; }
.ofr-top { display: flex; gap: 12px; align-items: center; } .ofr-top .grow { flex: 1; min-width: 0; }
.ofr-logo { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--line); flex: none; }
.ofr-letter { display: grid; place-items: center; font-weight: 700; color: var(--accent, var(--ink)); background: var(--well); border: 0; }
.ofr-counts { font-size: 13px; }
.msg { padding: 14px 0; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 6px; }
.msg:first-child { border-top: 0; }
.msg.gone { opacity: .6; }
.msg-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.msg-top b { font-weight: 600; font-size: 15px; }
.msg p { margin: 0; color: var(--ink-2); white-space: pre-line; }
.msg-meta { font-size: 12.5px; color: var(--ink-4); }
.msg-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.msg-acts:empty { display: none; }
.notif { background: var(--ground); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; box-shadow: inset 0 0 0 1px var(--line-2); }
.notif-app { font-size: 12px; color: var(--ink-4); font-weight: 600; }
.notif b { font-weight: 600; }
.notif span:last-child:not(.notif-app) { white-space: pre-line; color: var(--ink-2); }
@media (max-width: 760px) { .msgs { padding: 0 14px; background: var(--panel); border-radius: 16px; } }

/* ---------- Club (#00082) ---------- */
.subnav { display: flex; gap: 6px; padding: 0 24px 14px; flex-wrap: wrap; position: sticky; top: 0; background: var(--panel); z-index: 2; padding-top: 6px; }
.subnav a { height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 16px; background: var(--ground); color: var(--ink-2); font-weight: 600; font-size: 13.5px; text-decoration: none; }
.subnav a:hover { background: var(--well); }
.cforms { padding: 0 24px; display: flex; flex-direction: column; gap: 18px; }
.cpart { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; scroll-margin-top: 56px; }
.cpart h2 { margin: 0 0 10px; font: 700 22px/1.1 var(--display); text-transform: uppercase; }
.cpart h3 { margin: 18px 0 4px; font: 700 17px/1.1 var(--display); text-transform: uppercase; }
.cpart > .muted { margin: 0 0 12px; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.cgrid .wide { grid-column: 1 / -1; }
.csave { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.csave .err { margin: 0; }
.swatch { display: flex; gap: 8px; }
.swatch input[type=color] { width: 48px; flex: none; padding: 4px; }
.toggle { margin: 4px 0 14px; font-weight: 600; }
.steps-ed { display: flex; flex-direction: column; gap: 10px; }
.step-ed { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px; }
.sn { width: 26px; height: 26px; border-radius: 50%; background: var(--blue-bg); color: var(--blue-ink); display: grid; place-items: center; font-weight: 600; flex: none; margin-top: 8px; }
.sfields { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sfields input, .sfields textarea { width: 100%; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); padding: 8px 10px; min-width: 0; }
.sfields .two { gap: 6px; }
.stools { display: flex; flex-direction: column; }
.stools .ib { width: 32px; height: 32px; }
.stools .ib svg { width: 16px; height: 16px; }
.stools .ib:disabled { opacity: .3; }
.icon-card { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.phone-mock { width: 140px; padding: 18px; border-radius: 24px; background: linear-gradient(160deg, #6B8A9E, #34495E); display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; }
.phone-mock canvas { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.phone-mock span { color: #fff; font-size: 12px; font-weight: 600; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-side { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; }
.icon-side p { margin: 0; }
@media (max-width: 760px) {
  .subnav, .cforms { padding-left: 0; padding-right: 0; }
  .subnav { background: var(--ground); flex-wrap: nowrap; overflow-x: auto; }
  .subnav a { background: var(--panel); flex: none; }
  .cpart { background: var(--panel); border: 0; }
}

/* ---------- Reports (#00083) ---------- */
.rtools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 0 24px 12px; font-size: 13.5px; color: var(--ink-3); }
.rtools input { height: 36px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); padding: 0 10px; margin-left: 4px; }
.rp-range { padding: 0 24px; margin: 0 0 10px; font-size: 13px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; padding: 0 24px 14px; }
.kpi { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.kpi b { font: 700 32px/1 var(--display); }
.kpi span { font-size: 12.5px; color: var(--ink-4); }
.rpanel { margin: 0 24px 14px; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; min-width: 0; }
.rtwo .rpanel { margin: 0; }
.rpanel h2 { margin: 0 0 6px; font: 700 18px/1.2 var(--display); text-transform: uppercase; }
.rph { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.rph h2 { margin: 0; }
.rtwo { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; padding: 0 24px 14px; }
.small { font-size: 12.5px; margin: 0 0 10px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.chart { overflow-x: auto; }
.chart svg { display: block; width: 100%; min-width: 480px; height: auto; font: 500 11px var(--body); }
.rtwo .chart svg { min-width: 280px; }
.chart text { fill: var(--ink-4); }
.chart text.lab { fill: var(--ink); font-weight: 600; }
.chart text.x { fill: var(--bad); font-weight: 700; }
.chart text.joined { fill: var(--ok-ink); font-weight: 600; }
.chart .gridl { stroke: var(--line-2); stroke-dasharray: 2 4; }
.chart .axisl { stroke: var(--line); }
.fun { display: grid; grid-template-columns: 170px minmax(0, 1fr) 40px 40px; gap: 10px; align-items: center; padding: 6px 0; font-size: 13.5px; }
.fun .bar { height: 14px; background: var(--well); border-radius: 7px; overflow: hidden; }
.fun .bar i { display: block; height: 100%; background: var(--s1); border-radius: 7px; }
.fun b { font-weight: 600; text-align: right; }
.rtable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rtable th { text-align: left; font-weight: 600; color: var(--ink-4); font-size: 12px; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); }
.rtable td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--line-2); }
.rtable .n { text-align: right; font-variant-numeric: tabular-nums; }
.notrun summary { cursor: pointer; font-weight: 600; color: var(--blue); margin-top: 8px; }
.notrun p { line-height: 1.7; font-size: 13.5px; }
@media (max-width: 1180px) { .rtwo { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .rtools, .rp-range, .kpis, .rtwo { padding-left: 0; padding-right: 0; }
  .rpanel { margin: 0 0 12px; background: var(--panel); border: 0; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi { background: var(--panel); border: 0; }
  .fun { grid-template-columns: 110px minmax(0, 1fr) 30px; }
  .fun span:last-child { display: none; }
}
@media print {
  .top, .left, .right, .rail, .bn, .fab, .noprint, .toast, .relline, .vhead .acts { display: none !important; }
  .app { display: block; height: auto; }
  .main { overflow: visible; border-radius: 0; }
  .rpanel, .kpi { break-inside: avoid; }
}

/* ---------- Season (#00079), in the Calendar ---------- */
.seasonsub { margin-left: 10px; font-size: 13.5px; }
.season { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; padding: 0 24px; align-items: start; }
.sgrid { min-width: 0; border-top: 1px solid var(--line-2); }
.shead, .srow { display: grid; grid-template-columns: 92px 34px minmax(0, 1fr) 120px 72px minmax(0, 150px) 70px; gap: 10px; align-items: center; padding: 7px 4px; font-size: 13.5px; }
.shead { font-size: 11.5px; font-weight: 600; color: var(--ink-4); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 1; }
.srow { border-bottom: 1px solid var(--line-2); min-height: 46px; }
.srow[data-id] { cursor: pointer; }
.srow[data-id]:hover { background: var(--ground); }
.srow.past { opacity: .6; }
.srow.off .sname { text-decoration: line-through; }
.srow.need { box-shadow: inset 3px 0 0 var(--orange); }
.srow.gaprow { background: repeating-linear-gradient(135deg, transparent 0 8px, color-mix(in srgb, var(--ground) 70%, transparent) 8px 16px); }
.sd { font-weight: 600; }
.sroute { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sroute select { min-width: 0; flex: 1; height: 32px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); padding: 0 8px; font-size: 13px; }
.srow.need .sroute select { border-color: var(--orange); }
.sname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skm { display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.skm i { height: 8px; border-radius: 4px; background: var(--s1); flex: none; }
.sev { font-size: 12px; color: var(--event-ink); line-height: 1.3; }
.sside { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 0; }
.sbox { border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.mix { display: grid; grid-template-columns: 82px minmax(0, 1fr) 24px; gap: 8px; align-items: center; font-size: 12.5px; padding: 2px 0; }
.mix .bar { height: 10px; background: var(--well); border-radius: 5px; overflow: hidden; }
.mix .bar i { display: block; height: 100%; background: var(--s1); }
.mix b { text-align: right; font-weight: 600; }
.sissues { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.sissues b { font-weight: 600; }
.sacts { display: flex; flex-wrap: wrap; gap: 8px; }
/* The season table follows the room the page has (the side panel open or not), not the window */
#view { container-type: inline-size; }
@container (max-width: 980px) { .season { grid-template-columns: 1fr; } .sside { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
@container (max-width: 760px) {
  .shead, .srow { grid-template-columns: 82px 28px minmax(0, 1fr) 96px 64px; }
  .shead > span:nth-child(6), .srow > span:nth-child(6), .shead > span:nth-child(7), .srow > span:nth-child(7) { display: none; }
  .srow.gaprow > span:nth-child(7) { display: block; grid-column: 4 / 6; }
}
@media (max-width: 760px) {
  .season { padding: 0; }
  .sgrid { background: var(--panel); border-radius: 16px; overflow: hidden; border: 0; }
  .shead { display: none; }
  .shead, .srow { grid-template-columns: 70px minmax(0, 1fr) auto; }
  .srow > span:nth-child(2), .srow > span:nth-child(5), .srow > span:nth-child(6) { display: none; }
  .skm i { display: none; }
  .sbox { background: var(--panel); border: 0; }
  .seasonsub { display: block; margin: 4px 0 0; }
  .calnav { flex-wrap: wrap; }
}

/* ---------- Races (#00084) ---------- */
.rsub { padding: 0 24px; margin: -6px 0 12px; font-size: 13.5px; }
.races { padding: 0 24px; }
.rhd, .rrow { display: grid; grid-template-columns: 104px minmax(0, 1fr) 130px 80px 110px; gap: 10px; align-items: center; padding: 9px 4px; }
.rhd { font-size: 11.5px; font-weight: 600; color: var(--ink-4); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); }
.rrow { width: 100%; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; text-align: left; cursor: pointer; font: inherit; color: inherit; font-size: 13.5px; }
.rrow:hover { background: var(--ground); }
.rrow.past { color: var(--ink-3); }
.rrow.diary { opacity: .7; }
.rno { font: 700 16px/1 var(--display); color: var(--ink-4); text-align: center; }
.rdate small { display: block; font-size: 11.5px; color: var(--ink-4); }
.rdate .tbc { color: var(--orange-ink); font-weight: 600; }
.rname { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; min-width: 0; }
.rname b { font-weight: 600; }
.rname i { font-style: normal; }
.diaryt { font-size: 11px; font-weight: 600; color: var(--ink-4); background: var(--well); border-radius: 6px; padding: 2px 6px; }
.terr { font-style: normal; font-size: 12px; font-weight: 600; background: var(--well); color: var(--ink-3); border-radius: 6px; padding: 2px 7px; }
.standings { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 24px; }
.stbl h4 { margin: 0 0 6px; font: 700 16px/1 var(--display); text-transform: uppercase; }
.stbl tr.unq { color: var(--ink-5); }
.sechead .seg { flex-wrap: wrap; height: auto; }
dialog.sheet.wide { width: min(900px, calc(100vw - 24px)); }
/* ---------- Route planner (#00065), inside the portal (#00095) ---------- */
.app.planning { grid-template-columns: 248px minmax(0, 1fr) 0 56px; }
.app.planning.nav-closed { grid-template-columns: 72px minmax(0, 1fr) 0 56px; }
.app.planning .right { display: none; }
.app.planning.panel-help:not(.panel-closed) { grid-template-columns: 248px minmax(0, 1fr) 360px 56px; }
.app.planning.panel-help.nav-closed:not(.panel-closed) { grid-template-columns: 72px minmax(0, 1fr) 360px 56px; }
.app.planning.panel-help:not(.panel-closed) .right { display: flex; }
.app.planning .main { overflow: hidden; }
.app.planning #view { height: 100%; padding: 0; }
.app.planning .relline { display: none; }
.pl { --casing: #FFFFFF; --ghost: #6F7B73; --hi: var(--orange); --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s-none: #B9C1BB;
  height: 100%; display: grid; grid-template-columns: 320px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) 140px; font-size: 14px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pl { --casing: #0F1411; --ghost: #9AA59E; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s-none: #46524B; } }
:root[data-theme="dark"] .pl { --casing: #0F1411; --ghost: #9AA59E; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s-none: #46524B; }
.pl [hidden] { display: none !important; }
.pl-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); min-width: 0; }
.pl-head h1 { margin: 0; font: 700 24px/1 var(--display); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-head .grow { flex: 1; }
.pl-side { grid-row: 2 / 4; overflow-y: auto; padding: 16px; display: grid; gap: 18px; align-content: start; border-right: 1px solid var(--line); }
.pl .lbl { font: 600 11.5px/1.3 var(--body); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 6px; }
.pl .big { font: 700 44px/1 var(--display); letter-spacing: -.01em; }
.pl .big small { font-size: 22px; color: var(--ink-3); margin-left: 3px; }
.pl .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.pl .stats { display: grid; } .pl .stat b { display: block; font: 700 20px/1.1 var(--display); } .pl .stat span { display: inline-flex; margin-top: 2px; }
.pl .stat span, .pl .pace { font-size: 12px; color: var(--ink-3); }
.pl .pace { display: inline-flex; align-items: center; gap: 4px; }
.pl .pace input { width: 56px; padding: 2px 5px; border: 1px solid var(--line); border-radius: 6px; background: var(--ground); color: var(--ink); font: inherit; font-size: 12px; }
.pl .empty, .pl .loop { color: var(--ink-3); background: var(--well); border: 0; border-radius: 12px; padding: 12px 14px; margin: 0; text-align: left; }
.pl .empty b { color: var(--ink); } .pl .empty ol { margin: 6px 0 0; padding-left: 18px; } .pl .empty li { margin: 3px 0; }
.pl .bar { display: flex; gap: 2px; height: 12px; border-radius: 4px; overflow: hidden; margin: 4px 0 8px; }
.pl .bar i { display: block; height: 100%; min-width: 2px; }
.pl .legend { display: grid; gap: 3px; font-size: 13px; }
.pl .legend { display: grid; flex-wrap: nowrap; gap: 3px; }
.pl .legend div { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 8px; align-items: center; }
.pl .legend i { width: 10px; height: 10px; border-radius: 3px; }
.pl .legend .km { color: var(--ink-3); } .pl .legend .pc { color: var(--ink-4); width: 36px; text-align: right; }
.pl .loop { display: grid; gap: 8px; }
.pl .loop .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pl .loop input { width: 70px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); font: inherit; }
.pl .loop p { margin: 0; font-size: 13px; }
.pl .keys { font-size: 12.5px; color: var(--ink-3); display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; }
.pl kbd { justify-self: start; font: 600 11px/1 var(--body); background: var(--well); border-radius: 4px; padding: 3px 5px; color: var(--ink-2); white-space: nowrap; }
.pl .quota { font-size: 12px; color: var(--ink-4); margin: 0; }
.pl .warn { background: var(--attn-bg); border: 1px solid color-mix(in srgb, var(--orange) 40%, transparent); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; }
.pl .warn p { margin: 0 0 8px; }
.pl .save .warnline { color: var(--orange); font-size: 13.5px; }
.pl .save { display: grid; gap: 10px; background: var(--well); border-radius: 12px; padding: 12px 14px; }
.pl .save .field input[type=text] { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); font: inherit; }
.pl .radio { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; } .pl .radio input { margin-top: 3px; }
.pl .err { color: var(--bad); font-size: 13.5px; margin: 0; } .pl .okmsg { color: var(--ok-ink); font-size: 13.5px; margin: 0; font-weight: 600; }
.pl .pl-postfor { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pl .linkbtn { border: 0; background: none; padding: 0; color: var(--blue); text-decoration: underline; font: inherit; font-size: 13px; cursor: pointer; }
.pl-mapwrap { position: relative; min-width: 0; min-height: 0; }
.pl #pl-map { position: absolute; inset: 0; background: var(--map); }   /* the id wins over MapLibre's own .maplibregl-map rule */
.pl .tools { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: var(--shadow-lg); align-items: center; }
/* The map's zoom and locate buttons sit below the toolbar, which reaches the right-hand edge on a 1366-wide laptop */
.pl .maplibregl-ctrl-top-right { top: var(--pl-tools-h, 64px); }
.pl .tools .sep { width: 1px; align-self: stretch; background: var(--line); margin: 2px; }
.pl .pseg { display: inline-flex; background: var(--well); border-radius: 10px; padding: 2px; }
.pl .pseg button { border: 0; background: transparent; border-radius: 8px; padding: 5px 10px; font: 600 13px/1.2 var(--body); color: var(--ink-3); white-space: nowrap; cursor: pointer; }
.pl .pseg button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.pl .tools select { border: 1px solid var(--line); border-radius: 10px; padding: 5px 8px; background: var(--panel); color: var(--ink); font: 600 13px/1.2 var(--body); }
.pl .ico { border: 0; background: transparent; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--ink); cursor: pointer; }
.pl .ico:hover:not(:disabled) { background: var(--hover); } .pl .ico:disabled, .pl .tools .btn:disabled { opacity: .4; cursor: default; }
.pl .ico svg { width: 18px; height: 18px; }
.pl .tools .btn { min-height: 32px; padding: 0 10px; font-size: 13px; }
.pl .styles { position: absolute; right: 12px; bottom: 10px; left: 100px; z-index: 2; display: flex; flex-wrap: wrap-reverse; gap: 6px; align-items: center; justify-content: flex-end; pointer-events: none; }
.pl .styles > * { pointer-events: auto; }
.pl .styles > .pseg, .pl .styles > .ghostsw { height: 34px; box-sizing: border-box; }
.pl .styles .pseg button { height: 100%; padding: 5px 8px; }
.pl .styles .colourkey { position: absolute; right: 0; bottom: calc(100% + 38px); }   /* above the credits ("i") */
.pl .styles .pseg { background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pl .colourkey { background: var(--panel); color: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; box-shadow: var(--shadow); display: grid; gap: 3px; font-size: 12.5px; }
.pl .colourkey span { display: flex; align-items: center; gap: 7px; } .pl .colourkey i { width: 14px; height: 4px; border-radius: 2px; }
.pl .ghostsw { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 4px 9px; font-size: 13px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; box-shadow: var(--shadow); cursor: pointer; }
.pl .busy { position: absolute; left: 50%; top: 66px; transform: translateX(-50%); z-index: 2; background: var(--ink); color: var(--panel); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow); }
.pl .hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; font-size: 13.5px; box-shadow: var(--shadow-lg); max-width: min(560px, 90%); text-align: center; }
.pl .wp { width: 14px; height: 14px; border-radius: 50%; background: var(--panel); border: 3px solid var(--route); box-shadow: 0 1px 3px rgba(0,0,0,.35); cursor: grab; }
.pl .wp:hover { transform: scale(1.25); }
.pl .wp.start, .pl .wp.end { width: 24px; height: 24px; border-width: 0; display: grid; place-items: center; font: 700 12px/1 var(--body); color: #fff; }
.pl .wp.start { background: var(--start); } .pl .wp.end { background: var(--ink); color: var(--panel); }
.pl .wp.start.loop { background: linear-gradient(135deg, var(--start) 50%, var(--ink) 50%); }
.pl .kmk { font: 700 10.5px/1 var(--body); color: var(--route); background: var(--panel); border: 1.5px solid var(--route); border-radius: 999px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; pointer-events: none; }
.pl .pmenu { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 4px; display: grid; min-width: 190px; }
.pl .pmenu button { border: 0; background: transparent; color: inherit; text-align: left; padding: 7px 10px; border-radius: 8px; font: 500 14px/1.3 var(--body); cursor: pointer; }
.pl .pmenu button:hover { background: var(--hover); } .pl .pmenu .t { font-size: 12px; color: var(--ink-4); padding: 6px 10px 2px; }
.pl .maplibregl-popup-content { background: transparent; padding: 0; box-shadow: none; } .pl .maplibregl-popup-tip { display: none; }
.pl .maplibregl-ctrl-group { background: var(--panel); }
.pl .maplibregl-ctrl-scale { background: color-mix(in srgb, var(--panel) 85%, transparent); color: var(--ink-3); border-color: var(--ink-4); }
.pl-prof { grid-column: 2; border-top: 1px solid var(--line); position: relative; padding: 8px 14px 6px; min-width: 0; }
.pl-prof svg { width: 100%; height: 100%; display: block; overflow: visible; }
.pl-prof .axis { font-size: 11px; fill: var(--ink-4); font-family: var(--body); } .pl-prof .grid { stroke: var(--line); stroke-width: 1; }
.pl-prof .area { fill: color-mix(in srgb, var(--route) 18%, transparent); } .pl-prof .ln { fill: none; stroke: var(--route); stroke-width: 2; stroke-linejoin: round; }
.pl-prof .cross { stroke: var(--ink-3); stroke-width: 1; } .pl-prof .dot { fill: var(--orange); stroke: var(--panel); stroke-width: 2; }
.pl-prof .tip { position: absolute; top: 6px; background: var(--ink); color: var(--panel); border-radius: 6px; padding: 3px 8px; font-size: 12px; font-weight: 600; pointer-events: none; white-space: nowrap; transform: translateX(-50%); }
.pl-prof .none { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-4); font-size: 13px; }
.pl-gate { padding: 40px 24px; max-width: 520px; }
/* Full screen (F): the planner over everything, edge to edge; pop-ups and messages still show above it */
.pl.full { position: fixed; inset: 0; z-index: 90; height: 100dvh; background: var(--panel); }
.pl.full .pl-head { padding: 8px 14px; } .pl.full .pl-head h1 { font-size: 20px; }
.pl .tools .ico[aria-pressed="true"] { background: var(--well); }
html.pl-fullscreen, html.pl-fullscreen body { overflow: hidden; }
@media (max-width: 900px) {
  .app.planning .main { overflow-y: auto; } .app.planning #view { height: auto; }
  .pl { height: auto; grid-template-columns: 1fr; grid-template-rows: auto 60vh 130px auto; }
  .pl-side { grid-row: 4; border-right: 0; border-top: 1px solid var(--line); }
  .pl-mapwrap { grid-row: 2; } .pl-prof { grid-column: 1; grid-row: 3; }
  .pl .tools { left: 8px; right: 8px; transform: none; flex-wrap: wrap; justify-content: center; }
  .pl-head .hide-sm { display: none; }
  .pl.full { height: 100dvh; overflow-y: auto; grid-template-rows: auto calc(100dvh - 190px) 130px auto; }
}
/* Map credits on every portal map: readable in light and dark */
/* (":root" so these win over MapLibre's own stylesheet, which loads after this one) */
:root .maplibregl-ctrl.maplibregl-ctrl-attrib, :root .maplibregl-ctrl-attrib.maplibregl-compact, :root .maplibregl-ctrl-attrib.maplibregl-compact-show { background-color: color-mix(in srgb, var(--panel) 92%, transparent); color: var(--ink-3); }
:root .maplibregl-ctrl-attrib a { color: var(--ink-2); }
:root .maplibregl-ctrl-attrib-button { background-color: transparent; }   /* the round credit box behind it gives the colour; the icon is inverted in dark */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .maplibregl-ctrl-icon, :root:not([data-theme="light"]) .maplibregl-ctrl-attrib-button { filter: invert(1) hue-rotate(180deg); } }
:root[data-theme="dark"] .maplibregl-ctrl-icon, :root[data-theme="dark"] .maplibregl-ctrl-attrib-button { filter: invert(1) hue-rotate(180deg); }

/* Help and the Ask box (#00087, #00088) */
dialog.helpsheet { width: min(680px, calc(100vw - 24px)); }
.right > .hs { background: var(--panel); border-radius: 16px; padding: 16px; box-shadow: var(--shadow-sm, none); border: 1px solid var(--line); }
.right > .hs .askrow input { min-width: 0; }
.right > .hs .ansbox .rate a { margin-left: 0; }
.hs { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.hs-head { display: flex; align-items: center; gap: 10px; }
.hs-head h2 { flex: 1; margin: 0; }
.hs .ask label { font-weight: 600; display: block; margin-bottom: 6px; }
.askrow { display: flex; gap: 8px; }
.hs form.ask { padding: 0; display: block; gap: 0; }
.askrow input { flex: 1; min-width: 0; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 0 12px; font: inherit; font-size: 15px; }
.askrow input:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue); }
.hs .helpart h2 { font-family: inherit; font-size: 16px; line-height: 1.3; font-weight: 600; text-transform: none; margin: 18px 0 6px; letter-spacing: 0; }
.hs .small { font-size: 13px; margin: 6px 0 0; }
.ansbox { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--bg); }
.ansbox p { margin: 0 0 8px; }
.ansbox .from { font-size: 14px; }
.ansbox .rate { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.ansbox .rate a { margin-left: auto; }
.linkish { border: 0; background: none; padding: 0; color: inherit; text-decoration: underline; font: inherit; cursor: pointer; }
.btn.sm { padding: 4px 12px; min-height: 30px; font-size: 13px; }
.hs h3 { margin: 6px 0 8px; font-size: 15px; }
.hl { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.hl li { border-top: 1px solid var(--line); } .hl li:first-child { border-top: 0; }
.hl button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 10px 14px; cursor: pointer; }
.hl button:hover { background: var(--hover); } .hl button:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.hl b { display: block; } .hl span { font-size: 13.5px; color: var(--ink-3); }
.helpart { margin-top: 10px; } .helpart h3 { font-size: 18px; }
.helpart li { margin: 4px 0; } .helpart .tip { background: var(--bg); border-left: 4px solid var(--blue); border-radius: 8px; padding: 10px 12px; }
.qhelp { width: 30px; height: 30px; vertical-align: middle; margin-left: 4px; display: inline-grid; }
.qhelp svg { width: 18px; height: 18px; }
.rtwrap { overflow-x: auto; }
.redit input { width: 100%; min-width: 60px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); padding: 0 8px; font-size: 13.5px; }
.redit td:first-child input { min-width: 150px; }
.redit td { padding: 3px 4px 3px 0; border: 0; }
.redit .ib { width: 30px; height: 30px; }
.paste summary { cursor: pointer; font-weight: 600; color: var(--blue); }
.paste textarea { width: 100%; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); padding: 8px 10px; font: 13px ui-monospace, monospace; margin: 6px 0; }
.comps { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; padding: 0 24px 14px; }
.compcard { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); text-align: left; cursor: pointer; font: inherit; color: inherit; }
.compcard:hover { border-color: var(--ink-5); }
.compcard.on { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: color-mix(in srgb, var(--blue-bg) 35%, var(--panel)); }
.compcard b { font-weight: 600; }
.compcard span { font-size: 12.5px; color: var(--ink-4); }
.compcard.add { border-style: dashed; color: var(--ink-3); }
.compcard.add svg { color: var(--blue); }
.cbadge { font-style: normal; font-size: 11px; font-weight: 600; border-radius: 6px; padding: 2px 6px; background: var(--blue-bg); color: var(--blue-ink); white-space: nowrap; }
.cbadge.championship { background: var(--ok-bg); color: var(--ok-ink); }
.cbadge.cup { background: var(--event-bg); color: var(--event-ink); }
.rfilter { padding: 0 0 8px; }
.tabsrow { padding: 0 24px 10px; }
.racepick { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; }
.racepick legend { font-weight: 600; font-size: 13.5px; margin-bottom: 8px; padding: 0; }
.racepick .check { font-size: 13.5px; }
.chip.racechip { background: var(--event-ink); color: #fff; }
.chip.racechip.diary { background: var(--well); color: var(--event-ink); box-shadow: inset 0 0 0 1px var(--event-ink); }
.chip.groupchip { --gc: var(--ink-3); background: color-mix(in srgb, var(--gc) 14%, var(--panel, #fff)); color: color-mix(in srgb, var(--gc) 80%, var(--ink)); box-shadow: inset 3px 0 0 var(--gc); text-decoration: none; display: flex; padding-left: 9px; }
.chip.groupchip.gneed { box-shadow: inset 3px 0 0 var(--gc), inset 0 0 0 1px var(--orange); }
.chip.groupchip.off span { text-decoration: line-through; }
/* One club calendar (#00166): show or hide each group, "Run by" in Add a date, group rows in the list */
.calfilter { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 24px 12px; }
.gfil { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel, #fff); color: var(--ink-2); border-radius: 16px; padding: 5px 11px; font: 500 13px/1.2 var(--body); cursor: pointer; }
.gfil i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.gfil[aria-pressed="false"] { opacity: .55; text-decoration: line-through; background: transparent; }
.gfil[aria-pressed="true"] { border-color: var(--ink-3); color: var(--ink); }
.runbys { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 6px; }
.runby { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; cursor: pointer; font-size: 14px; }
.runby:has(input:checked) { border-color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--ink-2); background: var(--well); }
.runby input[type="radio"] { width: 16px; height: 16px; min-height: 0; margin: 3px 0 0; padding: 0; flex: none; }
.runby i { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex: none; }
.runby span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.runby small { color: var(--ink-3); font-size: 12.5px; }
.repeatbox { border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; margin: 4px 0 12px; background: var(--well); display: flex; flex-direction: column; gap: 8px; }
.repeatbox .fieldrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.repeatbox .fieldrow[hidden] { display: none; }
.row.grow { box-shadow: inset 4px 0 0 var(--gc); }
.row .code.gcode { flex: none; min-width: 0;  background: color-mix(in srgb, var(--gc) 14%, transparent); color: color-mix(in srgb, var(--gc) 80%, var(--ink)); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gdot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 8px; vertical-align: 2px; }
.gled { margin: 4px 0 8px; }
.rtable.bygroup .gbar { display: inline-block; width: 120px; height: 8px; border-radius: 4px; background: var(--well); vertical-align: middle; margin-right: 6px; overflow: hidden; }
.rtable.bygroup .gbar i { display: block; height: 100%; border-radius: 4px; }
@media print { .rtable.bygroup .gbar i { print-color-adjust: exact; -webkit-print-color-adjust: exact; } }
.cell .dots i.race { background: var(--orange); border-radius: 1px; }
@container (max-width: 760px) {
  .rhd, .rrow { grid-template-columns: 82px minmax(0, 1fr) 96px; }
  .rhd > span:nth-child(3), .rrow > span:nth-child(3), .rhd > span:nth-child(4), .rrow > span:nth-child(4) { display: none; }
  .standings { grid-template-columns: 1fr; }
}
@media (max-width: 760px) { .races, .standings, .rsub { padding-left: 0; padding-right: 0; } .races { background: var(--panel); border-radius: 16px; } }

/* ---------- Dialogs (run-day changes and the like) ---------- */
dialog.sheet { border: 0; padding: 0; border-radius: 20px; background: var(--panel); color: var(--ink); width: min(540px, calc(100vw - 24px)); box-shadow: var(--shadow-lg); }
dialog.sheet::backdrop { background: rgba(10,14,12,.45); }
dialog.sheet form { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
dialog.sheet h2 { margin: 0; font: 700 24px/1.1 var(--display); text-transform: uppercase; }
dialog.sheet .sub { margin: -8px 0 0; color: var(--ink-3); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field input, .field select, .field textarea { width: 100%; }
.field label { font-weight: 600; font-size: 13.5px; }
.field input, .field select, .field textarea { height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); padding: 0 12px; font-size: 15px; min-width: 0; }
.field textarea { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; }
dialog.sheet .hint { margin: -4px 0 0; color: var(--ink-3); font-size: 13.5px; line-height: 1.45; }
dialog.sheet .callout { border: 1px solid var(--line); background: var(--ground); border-radius: 12px; padding: 4px 14px; font-size: 14px; line-height: 1.45; }
dialog.sheet .callout p { margin: 8px 0; }
.field input[type=file] { height: auto; padding: 10px 12px; }
.sheet-acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.sheet-acts .btn { height: 42px; padding: 0 18px; border-radius: 21px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.facts dt { color: var(--ink-4); }
.facts dd { margin: 0; font-weight: 500; }

/* ---------- Sign-in and loading ---------- */
.gate { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.gate .box { width: min(440px, 100%); background: var(--panel); border-radius: 20px; padding: 28px 26px; box-shadow: var(--shadow); }
.gate h1 { margin: 0 0 6px; font: 700 28px/1.05 var(--display); text-transform: uppercase; }
.gate h1 b { color: var(--orange); }
.gate p { line-height: 1.5; color: var(--ink-3); }
.gate form { display: flex; flex-direction: column; gap: 12px; }
.gate .btn { height: 46px; border-radius: 23px; font-size: 15px; }
.loading { color: var(--ink-4); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--panel); border-radius: 12px; padding: 12px 18px; box-shadow: var(--shadow-lg); z-index: 100; max-width: min(560px, calc(100vw - 32px)); font-weight: 500; }
.toast.acts { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; max-width: min(560px, calc(100vw - 28px)); }
.toast .toast-act { border: 0; background: transparent; color: inherit; font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; padding: 6px 4px; cursor: pointer; }
.toast .toast-act:first-of-type { margin-left: auto; }

/* ---------- Phone and small tablets ---------- */
.bn, .fab, .scrim, .phone-only { display: none; }
@media (max-width: 1180px) {
  .app, .app.nav-closed, .app.panel-closed, .app.nav-closed.panel-closed { grid-template-columns: 72px minmax(0, 1fr) 0 56px; }
  .app .left { padding-left: 12px; padding-right: 12px; }
  .app .create { width: 48px; padding: 0; justify-content: center; }
  .app .create span, .app .nav span, .app .minical { display: none; }
  .app .nav a { width: 48px; padding: 0; justify-content: center; }
  .app .right { display: none; }
  /* The side panel opens over the page */
  .app.panel-open .right { display: flex; position: fixed; right: 56px; top: 64px; bottom: 0; width: 340px; padding: 0 12px 16px; background: var(--ground); z-index: 30; box-shadow: var(--shadow-lg); border-radius: 16px 0 0 0; }
  .hero { grid-template-columns: minmax(0, 1fr) 260px; }
  .search { margin-left: 12px; }
  .tag-preview { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .app, .app.nav-closed, .app.panel-closed, .app.nav-closed.panel-closed { display: block; height: auto; min-height: 100dvh; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .top { height: 60px; padding: 0 8px; gap: 4px; position: sticky; top: 0; background: var(--ground); z-index: 20; }
  .brand { font-size: 20px; flex: 1; }
  .brand small, .search, .hide-sm, .rail, .tag-preview, .top .grow, #settings { display: none; }
  .phone-only { display: block; }
  .search.open { display: block; position: fixed; left: 8px; right: 8px; top: 8px; margin: 0; z-index: 60; }
  .main { border-radius: 0; background: transparent; overflow: visible; }
  /* The left nav becomes a drawer */
  .app .left, .app.nav-closed .left { position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 84vw); background: var(--panel); z-index: 70; transform: translateX(-105%); transition: transform .2s; padding: 16px 12px; box-shadow: var(--shadow-lg); }
  .app.drawer .left { transform: none; }
  .app .left .create { display: none; }
  .app .nav span, .app .minical { display: revert; }
  .app .nav a { width: auto; padding: 0 14px; justify-content: flex-start; height: 46px; }
  .app.drawer .scrim { display: block; position: fixed; inset: 0; background: rgba(10,14,12,.45); z-index: 65; }
  .app .right, .app.panel-open .right { display: none; }
  .app.panel-open .right { display: flex; position: fixed; inset: 60px 0 0 0; width: auto; padding: 8px 12px calc(96px + env(safe-area-inset-bottom)); background: var(--ground); z-index: 25; border-radius: 0; box-shadow: none; overflow-y: auto; }
  .bn { display: grid; position: fixed; left: 0; right: 0; bottom: 0; height: calc(72px + env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line); grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 8px 4px env(safe-area-inset-bottom); z-index: 30; }
  .bn a, .bn button { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: var(--ink-3); font-size: 11.5px; font-weight: 600; border: 0; background: transparent; padding: 0; cursor: pointer; }
  .bn .ic { width: 56px; height: 30px; border-radius: 15px; display: grid; place-items: center; }
  .bn .on { color: var(--blue-ink); }
  .bn .on .ic { background: var(--blue-bg); }
  .fab { display: grid; place-items: center; position: fixed; right: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 16px; background: var(--panel); box-shadow: var(--shadow-lg); border: 0; color: var(--orange); z-index: 31; cursor: pointer; }
  .fab svg { width: 26px; height: 26px; }
  #new-menu.phone { position: fixed; right: 16px; bottom: calc(152px + env(safe-area-inset-bottom)); left: auto; top: auto; }
  .vhead { padding: 6px 4px 14px; }
  .vhead h1 { font-size: 28px; }
  .vhead .acts { display: none; }
  #view { padding: 0 12px; }
  .hero { margin: 0; grid-template-columns: 1fr; background: var(--panel); border: 0; }
  .hero-map { order: -1; min-height: 140px; margin: 14px 14px 0; border-radius: 12px; overflow: hidden; }
  .hero-body { padding: 16px; gap: 12px; }
  .hero-title h2 { font-size: 24px; }
  .stats { gap: 18px; }
  .stat b { font-size: 20px; }
  .hero-acts { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-acts .btn { height: 44px; border-radius: 22px; font-size: 14px; }
  .sechead { padding: 20px 4px 8px; }
  .rows { background: var(--panel); border-radius: 16px; overflow: hidden; padding: 0; }
  .row { grid-template-columns: 74px minmax(0, 1fr) auto; gap: 10px; padding: 12px 14px; }
  .row:first-child { border-top: 0; }
  .row .km, .row .status { display: none; }
  .row .going { font-size: 13px; text-align: right; }
  .setup, .empty { margin: 0 0 14px; background: var(--panel); }
  #view .attnbar { display: flex; }
  .relline { margin-bottom: 8px; }
  .two { grid-template-columns: 1fr; }
  dialog.sheet { margin: auto auto 0; width: 100%; max-width: 100%; border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
}
.attnbar { display: none; background: var(--attn-bg); border-radius: 14px; padding: 12px 14px; align-items: center; gap: 10px; margin-bottom: 12px; border: 0; width: 100%; text-align: left; cursor: pointer; color: inherit; }
.attnbar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }
.attnbar span:nth-child(2) { flex: 1; font-size: 14px; }
.attnbar .see { color: var(--blue); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* The register (#00116) */
.lastrun { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 14px 0 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
dialog.sheet.register .reglist { display: grid; gap: 2px; max-height: min(52vh, 460px); overflow: auto; margin: 0 -6px; }
dialog.sheet.register .regrow { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 10px; cursor: pointer; }
dialog.sheet.register .regrow:hover { background: var(--ground); }
dialog.sheet.register .regrow input { width: 22px; height: 22px; flex: none; accent-color: var(--start); }
dialog.sheet.register .regrow span { display: grid; min-width: 0; }
dialog.sheet.register .regrow small { color: var(--ink-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
dialog.sheet.register .regrow[hidden] { display: none; }
dialog.sheet.register .regadd { display: flex; gap: 8px; }
dialog.sheet.register .regadd input { flex: 1; min-width: 0; }
/* Reports: who came (#00119) */
.chart svg line.came { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.legend i.came { background: var(--ink); height: 3px; border-radius: 2px; align-self: center; }
/* Club page and feed (#00125) */
.feedlist { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.frow { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.frow:first-child { border-top: 0; } .frow > div:first-child { display: grid; gap: 2px; min-width: 0; flex: 1; }
.frow small { color: var(--ink-3); font-size: 13px; } .frow .fnote { color: var(--ink-2); font-style: italic; }
.frow.hid { background: var(--ground); } .frow.hid b { color: var(--ink-4); }
.frow .facts { display: flex; gap: 6px; flex-wrap: wrap; }
.frow.rep { background: var(--attn-bg); }
.pgrid { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.pgrid figure { margin: 0; display: grid; gap: 4px; width: 132px; }
.pgrid figure.off img { opacity: .45; }
.pgrid img { width: 132px; height: 99px; object-fit: cover; border-radius: 8px; display: block; background: var(--ground); }
.pgrid figcaption { font-size: 12px; color: var(--ink-3); }
.pgrid .pacts { display: flex; gap: 4px; } .pgrid .pacts .btn { height: 30px; padding: 0 8px; font-size: 12.5px; }

/* Members' notes on a route (#00130) */
.mnotes { display: grid; gap: 8px; }
.mnotes h3 { margin: 4px 0 0; font-size: 14px; }
.mnote { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; background: var(--well); border-radius: 10px; padding: 10px 12px; }
.mnote.temp { box-shadow: inset 3px 0 0 var(--orange-ink); }
.mnote p { margin: 3px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.mnote .tempt { color: var(--orange-ink); }
.mnote .btn { flex: none; }
/* Who's going (#00150) */
dialog.sheet .wholist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: min(40vh, 360px); overflow: auto; }
dialog.sheet .wholist li { padding: 6px 10px; border-radius: 8px; background: var(--paper-2, rgba(0,0,0,.04)); display: flex; gap: 8px; align-items: center; }
/* The register: add by name (#00152) */
dialog.sheet .reghits { display: grid; gap: 4px; margin-top: 6px; }
dialog.sheet .reghit { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; width: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 1px solid var(--line, rgba(0,0,0,.12)); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
dialog.sheet .reghit small { width: 100%; color: var(--ink-4, #667); font-size: 12.5px; }
dialog.sheet .reghit:hover, dialog.sheet .reghit:focus-visible { border-color: var(--accent, #FF5A0A); }
/* The map's credits ("i") sit just above the row of map buttons; the scale stays bottom left, beside them */
.pl .pl-map .maplibregl-ctrl-bottom-right { bottom: 44px; }
/* A narrow map: the buttons take the whole bottom row and the scale goes up beside the credits */
.pl .pl-mapwrap { container-type: inline-size; }
@container (max-width: 640px) {
  .pl .styles { left: 12px; }
  .pl .pl-map .maplibregl-ctrl-bottom-left { bottom: 44px; }
}

/* ---------- Website: the Design screen (#00168) ---------- */
.ws { display: grid; grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); gap: 20px; padding: 0 24px 24px; align-items: start; }
.ws-panel { display: flex; flex-direction: column; gap: 6px; }
.ws-panel section { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.ws-panel h2 { margin: 0; font-size: 15px; }
.ws-panel .hint { margin: 0; font-size: 13px; line-height: 1.45; }
.ws-panel .hint.ok { color: var(--ok-ink); }
.ws-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ws-logo-pair { display: flex; gap: 10px; align-items: center; }
.ws-logo-pair img { max-height: 56px; max-width: 160px; }
.ws-dark { background: #17321F; border-radius: 8px; padding: 6px 10px; display: inline-flex; }
.ws-looks, .ws-fonts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ws-look, .ws-font { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 6px; font: 600 13.5px var(--body); color: var(--ink); cursor: pointer; display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.ws-font { min-height: 48px; justify-content: center; align-items: center; font-size: 17px; font-weight: 700; }
.ws-look.on, .ws-font.on { border: 2px solid var(--blue); padding: 5px; }
.ws-thumb { position: relative; display: block; height: 52px; border-radius: 8px; overflow: hidden; background: color-mix(in srgb, var(--c) 22%, #0B140E); }
.ws-thumb.clean { background: #F3F4F1; }
.ws-thumb.bold { background: color-mix(in srgb, var(--c) 80%, #000); }
.ws-thumb i { position: absolute; left: 8px; height: 7px; border-radius: 4px; background: #fff; }
.ws-thumb.clean i { background: #15201A; }
.ws-thumb i:nth-child(1) { top: 10px; width: 55%; } .ws-thumb i:nth-child(2) { top: 22px; width: 38%; opacity: .6; }
.ws-thumb i:nth-child(3) { bottom: 8px; width: 32%; height: 11px; background: var(--c); }
.ws-thumb.bold i:nth-child(3) { background: #fff; }
.ws-swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ws-sw { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--panel); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.ws-sw.on { box-shadow: 0 0 0 2px var(--ink); }
.ws-any { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.ws-any input { width: 34px; height: 34px; border: 0; padding: 0; background: none; }
.ws-sections { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ws-sections li { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 4px 8px 4px 12px; font-size: 14px; }
.ws-sections li.off { opacity: .6; }
.ws-sections .ib { width: 32px; height: 32px; font-size: 15px; }
.ws-sections .ib:disabled { opacity: .3; cursor: default; }
.switch { position: relative; display: inline-flex; flex: none; }
.switch input { appearance: none; -webkit-appearance: none; width: 40px; height: 24px; border-radius: 12px; background: var(--ink-5); margin: 0; cursor: pointer; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch input:checked { background: var(--blue); }
.switch input:checked::after { left: 19px; }
.switch input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ws-routes { max-height: 280px; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
#ws-fq { min-height: 40px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; font: inherit; background: var(--panel); color: var(--ink); }
.ws-stage { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 10px; }
.ws-devices { display: inline-flex; align-self: flex-start; background: var(--hover); border-radius: 20px; padding: 3px; }
.ws-dev { min-height: 34px; padding: 0 16px; border-radius: 17px; border: 0; background: transparent; font: 600 13.5px var(--body); color: var(--ink-2); cursor: pointer; }
.ws-dev[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.ws-frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; height: calc(100vh - 190px); min-height: 520px; margin: 0 auto; width: 100%; transition: width .2s; }
.ws-frame.phone { width: min(100%, 390px); }
.ws-frame iframe { border: 0; display: block; transform-origin: 0 0; }
@media (max-width: 1100px) { .ws { grid-template-columns: 1fr; } .ws-stage { position: static; } .ws-frame { height: 640px; } }

.ws-tabs { display: flex; gap: 4px; margin-top: 12px; }
.ws-tabs a { padding: 8px 14px; border-radius: 18px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.ws-tabs a[aria-current] { background: var(--blue-bg); color: var(--blue-ink); }
.ws-pages .btn { min-height: 34px; padding: 0 12px; }
.ws-addr { display: flex; align-items: center; gap: 4px; } .ws-addr input { flex: 1; }
.ws-blocks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ws-block { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.ws-block.auto { border-left: 4px solid var(--ok-ink); }
.ws-bhead { display: flex; align-items: center; gap: 2px; font-size: 14px; }
.ws-bhead .ib { width: 30px; height: 30px; font-size: 14px; } .ws-bhead .ib:disabled { opacity: .3; }
.ws-block textarea { min-height: 80px; }
.ws-pic { max-width: 100%; max-height: 180px; border-radius: 8px; object-fit: cover; align-self: flex-start; }
.ws-picker { border: 1px dashed var(--line-2); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.ws-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ws-kind { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 8px 10px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px; font: inherit; color: var(--ink); }
.ws-kind small { color: var(--ink-3); font-size: 12px; } .ws-kind.auto { background: var(--ok-bg); }
.ws-kind:hover { border-color: var(--blue); }
.ws-state { margin: 4px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--hover); font-size: 14px; }
.ws-state.on { background: var(--ok-bg); color: var(--ok-ink); }
.ws-msgs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow: auto; }
.ws-msgs li { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.ws-msgs p { margin: 4px 0 0; white-space: pre-wrap; }
#ws-rd { width: 100%; font: 13.5px/1.5 ui-monospace, Menlo, monospace; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; background: var(--panel); color: var(--ink); }
.ws-spark { display: flex; align-items: flex-end; gap: 2px; height: 60px; margin: 10px 0 6px; }
.ws-spark i { flex: 1; background: var(--blue); border-radius: 2px 2px 0 0; min-height: 2px; opacity: .85; }
.ws-top { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.ws-top li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-top: 1px solid var(--line); }
.ws-top span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ws-gal figure { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.ws-gal img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.ws-gal input { font-size: 12.5px; padding: 4px 6px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel); color: var(--ink); }
.ws-gal .linkbtn { font-size: 12.5px; align-self: flex-start; }
/* Website: your web address (#00169) */
.ws-domain { border: 1px solid var(--line, #DDE3DE); border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.ws-chip { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: #FFF4D6; color: #6B4E00; white-space: nowrap; }
.ws-chip.ok { background: #DDF3E2; color: #11632B; }
.ws-chip.bad { background: #FDE2E0; color: #9B1C14; }
.ws-dns { width: 100%; border-collapse: collapse; font-size: 13px; margin: 4px 0; }
.ws-dns th, .ws-dns td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line, #DDE3DE); }
.ws-dns code { font-size: 13px; user-select: all; overflow-wrap: anywhere; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ws-chip { background: #3D3214; color: #F5D98B; } :root:not([data-theme="light"]) .ws-chip.ok { background: #173A22; color: #9BE3AE; } :root:not([data-theme="light"]) .ws-chip.bad { background: #44201D; color: #F4B1AA; } }
:root[data-theme="dark"] .ws-chip { background: #3D3214; color: #F5D98B; } :root[data-theme="dark"] .ws-chip.ok { background: #173A22; color: #9BE3AE; } :root[data-theme="dark"] .ws-chip.bad { background: #44201D; color: #F4B1AA; }
/* Website history (#00171) */
.ws-hist { max-height: 50vh; overflow: auto; display: grid; gap: 2px; margin: 4px 0 8px; }
.ws-hist .check { padding: 6px 4px; border-bottom: 1px solid var(--line, #DDE3DE); }
/* Website section on phones (#00172) */
@media (max-width: 600px) {
  .ws { padding: 0 12px 16px; }
  .ws-tabs { flex-wrap: wrap; }
  .ws-tabs a { padding: 10px 12px; }
  .ws-frame { height: 520px; }
  .ws-dns th, .ws-dns td { padding: 6px 4px; }
}
/* Members (#00039) */
.mb-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mb-table th, .mb-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.mb-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--ink-2); }
.mb-table .num { text-align: right; white-space: nowrap; }
.mb-table tr:last-child td { border-bottom: 0; }

/* Race results (#00204): Website → Race results */
.ar-wrap { padding: 0 24px 40px; }
.ar { display: flex; flex-direction: column; gap: 14px; max-width: 1200px; }
.ar h2 { margin: 0; font-size: 22px; }
.ar .crumbs { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.ar-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 640px; }
.ar-list a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); text-decoration: none; color: inherit; }
.ar-list a:hover { border-color: var(--ink-3); }
.ar .note { background: var(--blue-bg); color: var(--blue-ink); border-radius: 10px; padding: 10px 14px; margin: 0; }
.ar-upload { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ar-acts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0; }
.ar .tagw { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: var(--well); }
.ar-res tr.flag td { background: var(--attn-bg); }
.ar-res tr.hid td { color: var(--ink-4); }
.ar-res td input, .ar-res td select { height: 32px; }
.ar-res td input[data-k="club"] { min-width: 170px; }
.redit.ar-res td:first-child input, .ar-res td input[data-k="pos"] { width: 52px; min-width: 52px; } .ar-res td input[data-k="first"], .ar-res td input[data-k="last"] { min-width: 110px; }
.ar-res td input[data-k="cat"] { min-width: 120px; } .ar-res td input[data-k="chip"], .ar-res td input[data-k="gun"] { width: 72px; min-width: 72px; }
.ar-scroll { overflow-x: auto; }
.ar-bulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .ar-bulk .muted { flex: 1 1 260px; }
.ar-years .ck { width: 28px; padding-right: 0; }
.ar-edit { display: flex; gap: 10px; flex-wrap: wrap; } .ar-edit .field { flex: 1 1 140px; }
.ar-years .acts, .ar-res .acts { white-space: nowrap; text-align: right; }
.ar-mlist { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow: auto; }
.ar-mrow { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
/* Website: link check (#00213), questions and answers (#00209), sponsors (#00210) */
.ws-links { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: 50vh; overflow: auto; }
.ws-links li { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; overflow-wrap: anywhere; }
.ws-links code { font-size: 12.5px; }
.ws-faq, .ws-logos { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ws-faq > li, .ws-logos > li { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.ws-faq .ws-row { margin: 0; gap: 14px; }
.ws-logos > li { display: grid; grid-template-columns: 96px 1fr 1fr auto; gap: 10px; align-items: end; }
.ws-logos img { width: 96px; height: 56px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
@media (max-width: 700px) { .ws-logos > li { grid-template-columns: 1fr; } }
/* Website › Menu (#00214) */
.ws-menu, .ws-menu ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ws-menu > li { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--panel); }
.ws-menu ol { margin: 8px 0 0 22px; padding-left: 10px; border-left: 2px solid var(--line); }
.ws-mrow { display: flex; gap: 6px; align-items: center; }
.ws-mrow .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ws-mrow input { height: 36px; border-radius: 8px; border: 1px solid var(--line); padding: 0 10px; font: inherit; background: var(--panel); }
.ws-mrow small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-madd { margin: 6px 0 0 34px; font-size: 13.5px; }
/* Roles with what each can do, in the add/change form (#00217) */
.rolepick { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rolepick legend { font-weight: 600; margin-bottom: 6px; }
.rolepick .check { align-items: flex-start; gap: 10px; padding: 6px 0; }
.rolepick .check span { display: flex; flex-direction: column; gap: 2px; }
.rolepick small { font-size: 13px; line-height: 1.35; }
/* Home: what needs you, on the page (#00217) */
.needs { border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 14px; background: var(--panel); padding: 14px 18px; margin: 0 24px 18px; }
.needs-h { display: flex; align-items: center; gap: 10px; }
.needs-h h2 { margin: 0; font-size: 16px; }
.needs .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); flex: none; }
.needs ul { list-style: none; margin: 8px 0 4px; padding: 0; display: flex; flex-direction: column; }
.needs li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.needs li:first-child { border-top: 0; }
.needs-act { flex: none; white-space: nowrap; }

/* Form controls' edges at 3:1 or better against the panel (WCAG non-text contrast, #00217) */
input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]), select, textarea { border-color: var(--line-strong); }
/* Phones (#00217): 44 px targets in the top bar, room under the New button, the club switcher in the drawer, and a
   Website section that fits the screen (with Publish reachable) */
@media (max-width: 760px) {
  header.top .ib, header.top .av { width: 44px; height: 44px; min-width: 44px; }
  #view { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .drawerclub { display: flex !important; flex-direction: column; gap: 4px; padding: 14px 14px 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
  .drawerclub select { height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--panel); padding: 0 10px; font-size: 15px; color: var(--ink); }
  .ws { padding: 0; gap: 12px; grid-template-columns: minmax(0, 1fr); }
  .ws > *, .ws-panel, .ws-panel section { min-width: 0; }
  .ws-panel section { padding: 12px; }
  .ws-row { flex-wrap: wrap; }
  .ws-tabs { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ws-tabs a { flex: none; }
  .vhead .acts:has(#ws-publish) { display: flex !important; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
  .ws-frame { height: 560px; }
  .ar-wrap { padding: 0 0 40px; }
}
/* People: the tabs in one place, under the title, on every screen size (#00217) */
.ptabs { padding: 0 24px 14px; }
@media (max-width: 760px) { .ptabs { padding: 0 4px 12px; } .ptabs .seg { width: 100%; } .ptabs .seg button { flex: 1; } }
/* Calendar chips: a shape as well as a colour (#00217), so runs, events and races differ without colour vision */
.chip.event > span::before { content: "◆"; font-size: .8em; margin-right: 4px; opacity: .8; }
.chip.racechip::before { content: "⚑"; margin-right: 4px; }
.chip.run.need > span::before { content: "!"; font-weight: 800; margin-right: 4px; }

/* Who's told, on a run-day change (run night, walkthrough 22/10) */
fieldset.told { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 12px; margin: 14px 0 0; display: grid; gap: 8px; }
fieldset.told legend { font-weight: 700; padding: 0 6px; margin-left: -6px; }
fieldset.told label.check { display: flex; align-items: flex-start; gap: 10px; }
fieldset.told label.check input { margin-top: 3px; flex: none; }
fieldset.told label.check .muted { display: block; font-size: 13px; }
.ab-row { margin-bottom: 8px; gap: 8px; } .ab-row input { width: 100%; box-sizing: border-box; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); padding: 10px 12px; min-width: 0; font: inherit; color: inherit; }
/* Website on phones (V1 editor fixes, 26/10/2026): nothing wider than the screen, every tab in sight (they wrap), and
   "See it" shows the preview over the editor at phone size, with "Back to editing" to return to the same place */
.ws-see-close { display: none; }
@media (max-width: 760px) {
  .vhead > div:first-child { min-width: 0; flex: 1 1 100%; }
  .ws-tabs { flex-wrap: wrap; overflow: visible; }
  html.ws-seeing { overflow: hidden; }
  html.ws-seeing .ws-stage { position: fixed; inset: 0; z-index: 60; background: var(--ground); padding: calc(10px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom)); }
  html.ws-seeing .ws-devices { align-self: stretch; align-items: center; }
  html.ws-seeing .ws-see-close { display: inline-flex; margin-left: auto; min-height: 34px; }
  html.ws-seeing .ws-frame { height: auto; flex: 1; min-height: 0; }
  html.ws-seeing :is(.ws-phonebar, .fab, nav.bottom, .tabbar) { display: none !important; }
}
/* Bold, Link and List over the website's text boxes (V1 editor fixes, 26/10/2026) */
.rt-bar { display: flex; gap: 6px; margin: 2px 0 6px; flex-wrap: wrap; }
.rt { min-height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); font: 600 13.5px var(--body); cursor: pointer; }
.rt:hover { background: var(--hover); }
.rt b { font-weight: 800; }
/* The check before publishing (V1 editor fixes, 26/10/2026): what's changing, a shape as well as words for each kind */
.ws-changes { margin: 4px 0 10px; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.ws-changes li { padding-left: 24px; position: relative; }
.ws-changes li::before { position: absolute; left: 2px; font-weight: 800; content: "✎"; }
.ws-changes li.new::before { content: "+"; } .ws-changes li.gone::before { content: "−"; }
/* The first-run checklist on the Website screen (V1 editor fixes, 26/10/2026): a tick and the word Done, not colour alone */
.ws-guide ol { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.ws-guide li { display: flex; gap: 10px; align-items: flex-start; }
.ws-guide li small { display: block; margin-top: 2px; }
.ws-guide .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.ws-guide li.done .tick { background: var(--ink); border-color: var(--ink); color: var(--panel); }
.ws-guide li.done b { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--ink-2); }
.ws-suggest { margin-top: 14px; } .ws-suggest .ws-row { flex-wrap: wrap; gap: 8px; }

/* ---------- Website set-up (#00235): the guided first draft, public/admin/new/setup.js ---------- */
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.su { --su-gold: var(--accent, #F2C230); --su-on-gold: #14233A; display: flex; flex-direction: column; min-height: calc(100dvh - 120px); background: var(--ground); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.su-top { display: flex; align-items: center; gap: 14px; padding: 14px 24px; background: var(--panel); border-bottom: 1px solid var(--line); }
.su-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--su-gold); color: var(--su-on-gold); display: grid; place-items: center; flex: none; }
.su-mark svg { width: 18px; height: 18px; }
.su-title { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.su-title b { font-size: 16px; } .su-title span { font-size: 13px; color: var(--ink-3); }
.su .btn { height: auto; min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1.5px solid var(--ink); font-weight: 700; font-size: 14px; }
.su .btn.ghost { border-color: transparent; min-height: 40px; padding: 0 10px; }
.su .btn.su-go { background: var(--su-gold); border-color: var(--su-gold); color: var(--su-on-gold); font-weight: 800; font-size: 15.5px; padding: 0 26px; }
.su .btn.su-go:hover, .su .btn.su-go:focus { background: var(--su-gold); border-color: var(--su-gold); color: var(--su-on-gold); filter: brightness(.95); }
.su .btn.big { min-height: 52px; border-radius: 26px; font-size: 16.5px; padding: 0 32px; }
.su .btn:disabled { opacity: .7; }
.su-steps { display: flex; gap: 6px; padding: 16px 24px 0; flex-wrap: wrap; }
.su-step { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 8px; border-radius: 20px; border: 0; background: transparent; font: 600 14px var(--body); color: var(--ink-3); cursor: pointer; }
.su-step:disabled { cursor: default; }
.su-step .n { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-size: 12px; box-sizing: border-box; }
.su-step.done .n { background: var(--ink); border-color: var(--ink); color: var(--panel); }
.su-step.here { background: var(--ink); color: var(--panel); font-weight: 700; }
.su-step.here .n { background: var(--su-gold); border-color: var(--su-gold); color: var(--su-on-gold); }
.su-bar { display: flex; gap: 4px; padding: 10px 16px 0; }
.su-bar span { flex: 1; height: 6px; border-radius: 3px; border: 1.5px solid var(--line-strong); box-sizing: border-box; }
.su-bar span.on { background: var(--ink); border-color: var(--ink); }
.su-main { flex: 1; display: flex; gap: 28px; padding: 22px 24px 8px; align-items: flex-start; }
.su-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.su-side { width: 380px; flex: none; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 12px; }
.su-side.narrow { width: 310px; }
.su h1 { margin: 0; font: 800 34px/1.08 var(--display); color: var(--ink); outline: none; letter-spacing: -.01em; }
.su-lead { margin: 6px 0 0; font-size: 16px; color: var(--ink-3); max-width: 680px; }
.su-h2 { margin: 10px 0 0; font-size: 18px; }
.su-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.su-h { font-size: 16.5px; }
.su-hrow { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.su-hrow.end { align-items: flex-end; justify-content: space-between; }
.su-hrow .muted, .su small.muted, .su-card > .muted { font-size: 13px; }
.su-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.su-l { font-size: 13px; font-weight: 700; color: var(--ink); }
.su-in { min-height: 46px; border-radius: 10px; border: 1.5px solid var(--line-strong); padding: 0 12px; font: 16px var(--body); color: var(--ink); background: var(--panel); width: 100%; box-sizing: border-box; }
.su-in.short { width: 100px; }
.su-in:focus { outline: 3px solid var(--blue); outline-offset: 1px; }
.su-well { background: var(--well); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; margin: 0; }
.su-check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; min-height: 32px; }
.su input[type=checkbox], .su input[type=radio] { width: 20px; height: 20px; accent-color: var(--ink); flex: none; margin: 0; }
.su-tag { padding: 2px 8px; border-radius: 10px; border: 1px solid var(--line-strong); font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--ink-3); }
.su-tag.gold { background: var(--su-gold); border-color: var(--su-gold); color: var(--su-on-gold); }
/* Start */
.su-start { margin: 24px auto 32px; max-width: 980px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.su-start h1 { font-size: 40px; }
.su-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; width: 100%; text-align: left; }
.su-choice { background: var(--panel); border: 1.5px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.su-choice.on { border: 3px solid var(--ink); padding: 20.5px; }
.su-choice-head { display: flex; align-items: center; gap: 12px; font-size: 19px; cursor: pointer; }
.su-choice-head input { width: 22px !important; height: 22px !important; }
.su-choice p { margin: 0; }
.su-ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.su-ticks li::before { content: "✓"; font-weight: 800; margin-right: 8px; }
.su-start .err { margin: 0; }
/* Your club */
.su-logo { display: flex; align-items: center; gap: 16px; }
.su-logo > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.su-logo-pic { width: 64px; height: 64px; border-radius: 12px; background: var(--well); display: grid; place-items: center; overflow: hidden; flex: none; }
.su-logo-pic img { max-width: 56px; max-height: 56px; }
.su-logo-pic.none { font-weight: 800; font-size: 20px; color: var(--ink-3); }
.su-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.su-sw { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 12px 0 7px; border-radius: 26px; border: 1.5px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; font: 700 13px var(--body); }
.su-sw > span[style] { width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.su-sw.on { border: 2.5px solid var(--ink); }
.su-sw svg { width: 16px; height: 16px; }
.su-sw.other { border-style: dashed; border-color: var(--line-strong); padding: 0 14px 0 8px; }
.su-sw.other input { width: 32px; height: 32px; border: 0; padding: 0; background: none; border-radius: 50%; cursor: pointer; }
.su-photos { display: flex; gap: 10px; flex-wrap: wrap; }
.su-ph { margin: 0; width: 124px; display: flex; flex-direction: column; gap: 4px; }
.su-ph img { width: 124px; height: 82px; object-fit: cover; border-radius: 10px; display: block; background: var(--well); }
.su-ph.skip img { opacity: .45; }
.su-ph select { width: 100%; min-height: 36px; border-radius: 8px; border: 1.5px solid var(--line-strong); background: var(--panel); color: var(--ink); font: 600 12.5px var(--body); }
.su-ph small { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.su-add { width: 124px; height: 82px; border-radius: 10px; border: 1.5px dashed var(--line-strong); display: flex; flex-direction: column; align-items: center; justify-content: center; font: 700 13px var(--body); color: var(--ink); cursor: pointer; }
.su-add span { font-size: 22px; line-height: 1; }
.su-add:focus-within { outline: 3px solid var(--blue); }
/* Pages */
.su-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.su-pg { box-sizing: border-box; min-height: 112px; padding: 12px 14px; border-radius: 14px; border: 1.5px dashed var(--line-strong); display: flex; flex-direction: column; gap: 6px; cursor: pointer; font-size: 13px; }
.su-pg.on { background: var(--panel); border: 2px solid var(--ink); }
.su-pg-head { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.su-pg-head b { flex: 1; }
.su-pg-why { color: var(--ink); line-height: 1.35; }
.su-pg:focus-within { outline: 3px solid var(--blue); outline-offset: 1px; }
.su-outline { border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.su-o-bar, .su-o-foot { background: #2A0B12; background: color-mix(in srgb, var(--ink) 92%, #000); padding: 8px 10px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.su-o-logo { width: 16px; height: 16px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1.5px #fff; }
.su-o-sp { flex: 1; }
.su-o-body { background: var(--panel); padding: 10px; display: flex; flex-direction: column; gap: 5px; font-size: 12px; }
.su-o-body span { height: 6px; border-radius: 3px; background: var(--well); width: 80%; } .su-o-body span:nth-child(3) { width: 60%; }
.su-chip { padding: 3px 8px; border-radius: 9px; border: 1px solid rgba(255,255,255,.7); color: #fff; font-size: 11px; font-weight: 700; }
.su-chip.on { background: #fff; border-color: #fff; color: #14233A; }
.su-o-foot .muted { color: #fff; font-size: 11px; }
.su-key { display: flex; gap: 14px; font-size: 12px; color: var(--ink-3); }
.su-key span { display: inline-flex; align-items: center; gap: 5px; }
.su-key i { width: 18px; height: 10px; border-radius: 5px; border: 1.5px solid var(--ink); box-sizing: border-box; }
.su-key i.on { background: var(--ink); }
/* Details */
.su-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.su-stack { display: flex; flex-direction: column; gap: 14px; }
.su-fs { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.su-fs legend { padding: 0; margin-bottom: 8px; }
.su-opt { padding: 12px; border-radius: 12px; border: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.su-opt.on { border: 2px solid var(--ink); background: var(--panel); }
.su-opt-head { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; }
.su-opt-head > span { display: flex; flex-direction: column; gap: 3px; }
.su-opt-head input { margin-top: 2px !important; }
.su-opt-t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex-direction: row !important; }
.su-opt .muted { font-size: 13px; }
.su-next { display: flex; gap: 8px; align-items: flex-start; background: var(--well); border-radius: 8px; padding: 8px 10px; font-size: 13px; margin: 0; }
.su-next svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.su-people { display: flex; flex-direction: column; gap: 6px; }
.su-person { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 6px; align-items: center; }
.su-person .su-in { min-height: 40px; font-size: 14.5px; }
.su .linkbtn { font-size: 14px; align-self: flex-start; }
.su-tabs { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.su-tabs button { min-height: 32px; padding: 0 10px; border-radius: 16px; border: 1px solid var(--line-strong); background: transparent; font: 600 12.5px var(--body); color: var(--ink); cursor: pointer; }
.su-tabs button[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: var(--panel); font-weight: 700; }
/* Previews: the real website, drawn small */
.su-pv { display: flex; flex-direction: column; gap: 8px; }
.su-pv-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.su-pv-open { font-size: 13px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; color: var(--blue); }
.su-pv-open svg { width: 14px; height: 14px; }
.su-frame { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: #fff; --w: 1280; --h: 800; aspect-ratio: var(--w) / var(--h); width: 100%; }
.su-frame iframe { position: absolute; top: 0; left: 0; border: 0; width: calc(var(--w) * 1px); height: calc(var(--h) * 1px); transform-origin: 0 0; transform: scale(var(--s, .3)); pointer-events: none; }
.su-frame.phone { --w: 390; --h: 760; border: 6px solid var(--ink); border-radius: 28px; }
.su-frame.look { --w: 1280; --h: 760; border-radius: 0; border: 0; }
.su-frame.mini { --w: 1280; --h: 860; width: 150px; flex: none; border-radius: 10px; }
.su-pv-phone .su-frame.phone { border-width: 4px; border-radius: 20px; margin-top: 10px; }
.su-pv-phone .su-frame iframe { pointer-events: auto; }
.su-pv-toggle { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px 8px 8px; border-radius: 14px; border: 1.5px solid var(--ink); background: var(--panel); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.su-pv-toggle > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; }
.su-pv-toggle small { color: var(--ink-3); font-size: 12px; }
.su-pv-toggle svg { width: 18px; height: 18px; }
.su-pv-thumb { width: 60px; height: 44px; border-radius: 8px; flex: none; background: linear-gradient(#2A0B12 0 60%, var(--well) 60%); position: relative; }
.su-pv-thumb::after { content: ""; position: absolute; left: 7px; top: 9px; width: 34px; height: 4px; border-radius: 2px; background: #fff; box-shadow: 0 8px 0 -0px var(--su-gold); }
/* Look */
.su-fonts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.su-font { min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1.5px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; font: 700 14px var(--body); }
.su-font.on { border: 2.5px solid var(--ink); }
.su-font.f-condensed { font-family: "Archivo Condensed", "Arial Narrow", sans-serif; text-transform: uppercase; }
.su-font.f-serif { font-family: Georgia, serif; }
.su-looks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.su-look { border: 1.5px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--panel); display: flex; flex-direction: column; }
.su-look.on { border: 3px solid var(--ink); }
.su-look-pick { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 0; background: transparent; text-align: left; font: inherit; color: var(--ink); cursor: pointer; min-height: 64px; }
.su-look-pick > span:last-child { display: flex; flex-direction: column; }
.su-look-pick small { font-size: 13px; color: var(--ink-3); }
.su-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong); box-sizing: border-box; display: grid; place-items: center; flex: none; }
.su-look.on .su-dot { background: var(--ink); border-color: var(--ink); color: var(--panel); }
.su-dot svg { width: 14px; height: 14px; }
/* Create */
.su-list { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.su-list li { display: flex; align-items: center; gap: 14px; padding: 11px 18px; border-top: 1px solid var(--line-2); }
.su-list li:first-child { border-top: 0; }
.su-mk { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--panel); display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; }
.su-mk.gap { background: transparent; color: var(--ink); border: 2px dashed var(--ink); box-sizing: border-box; }
.su-li { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.su-li b { font-size: 15px; } .su-li small { font-size: 13px; }
.su-state { font-size: 13px; font-weight: 700; }
.su-ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.su-thumb { flex-direction: row; align-items: center; gap: 14px; }
.su-thumb > div:last-child { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
/* Footer */
.su-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 24px 20px; }
.su-foot-go { display: flex; align-items: center; gap: 16px; }
/* Saved */
dialog.su-saved > div { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; }
dialog.su-saved h2 { margin: 0; font-size: 26px; }
dialog.su-saved p { margin: 0; line-height: 1.45; }
.su-done { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--panel); display: grid; place-items: center; }
.su-done svg { width: 24px; height: 24px; }
dialog.su-saved .sheet-acts.col { display: flex; flex-direction: column; gap: 10px; }
dialog.su-saved .btn { min-height: 50px; border-radius: 25px; border: 1.5px solid var(--ink); font-weight: 700; font-size: 15px; }
dialog.su-saved .btn.su-go { background: var(--accent, #F2C230); border-color: var(--accent, #F2C230); color: #14233A; font-weight: 800; }
/* Narrower screens and phones */
@media (max-width: 1180px) { .su-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .su-side { width: 320px; } .su-grid2 { grid-template-columns: 1fr; } }
.su-phone { border-radius: 0; border: 0; min-height: 100dvh; }
.su-phone .su-top { padding: 10px 16px; }
.su-phone .su-time { display: none; }
.su-phone .su-main { flex-direction: column; padding: 14px 16px 8px; gap: 14px; align-items: stretch; }
.su-phone .su-side { width: auto; position: static; }
.su-phone :is(.su-s-club, .su-s-details) .su-side { order: -1; }   /* the preview, folded into a button, comes first */
.su-phone .su-side > .muted { display: none; }
.su-phone h1 { font-size: 28px; }
.su-phone .su-start h1 { font-size: 30px; }
.su-phone .su-choices, .su-phone .su-cards, .su-phone .su-looks { grid-template-columns: 1fr; }
.su-phone .su-start { margin: 8px 0 24px; text-align: left; align-items: stretch; }
html:has(.su) .fab { display: none !important; }   /* the set-up has its own actions */
.su-phone .su-foot { position: sticky; bottom: 0; background: var(--panel); border-top: 1px solid var(--line); padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
.su-phone .su-foot-go { flex: 1; }
.su-phone .su-foot-go .btn { flex: 1; }
.su-phone .su-hrow.end { flex-direction: column; align-items: flex-start; }
.su-phone .su-look .su-frame.look { --h: 700; }

/* ---------- Club services: the page about a service a club doesn't have yet (public/admin/new/services.js) ---------- */
.svc { max-width: 760px; margin: 24px auto 40px; padding: 0 8px; display: flex; flex-direction: column; gap: 16px; }
.svc-mark { width: 52px; height: 52px; border-radius: 50%; background: var(--accent, #F2C230); color: #14233A; display: grid; place-items: center; }
.svc-mark svg { width: 26px; height: 26px; }
.svc h1 { margin: 0; font: 800 36px/1.08 var(--display); color: var(--ink); }
.svc-lead { margin: 0; font-size: 17px; color: var(--ink-3); line-height: 1.5; }
.svc-points { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.svc-points li { display: flex; gap: 12px; padding: 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.svc-points li > svg { width: 20px; height: 20px; flex: none; color: var(--ink); margin-top: 2px; }
.svc-points li span { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink-3); line-height: 1.4; }
.svc-points li b { color: var(--ink); font-size: 15.5px; }
.svc-act { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; margin-top: 10px; }   /* the button in the middle (Jeff 26/10) */
.svc-sure { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.svc-sure li { display: flex; flex-direction: column; gap: 6px; padding: 18px 16px; border-radius: 14px; background: var(--ink); color: var(--panel); }
.svc-sure b { font-size: 15.5px; line-height: 1.3; }
.svc-sure li > span:last-child { font-size: 13.5px; line-height: 1.45; opacity: .88; }
.svc-sure-ic { width: 36px; height: 36px; border-radius: 50%; background: var(--accent, #F2C230); color: #14233A; display: grid; place-items: center; margin-bottom: 4px; }
.svc-sure-ic svg { width: 18px; height: 18px; }
.svc-act p { margin: 0; }
.svc .btn.svc-go { min-height: 52px; height: auto; padding: 0 30px; border-radius: 26px; background: var(--accent, #F2C230); border: 0; color: #14233A; font: 800 16.5px var(--body); }
.svc .btn.svc-go:hover, .svc .btn.svc-go:focus { background: var(--accent, #F2C230); color: #14233A; filter: brightness(.95); }
.svc-note { padding: 14px 16px; border-radius: 12px; background: var(--well); color: var(--ink); font-size: 14.5px; }
@media (max-width: 760px) { .svc-points, .svc-sure { grid-template-columns: 1fr; } .svc h1 { font-size: 30px; } }

/* The set-up is a page of its own (Jeff 26/10/2026): over the whole window, without the portal's menus and tabs */
html.su-full .su { position: fixed; inset: 0; z-index: 60; border: 0; border-radius: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
html.su-full body { overflow: hidden; }
html.su-full :is(.bn, .fab, .rail) { display: none !important; }
.su-top { position: sticky; top: 0; z-index: 3; }
.su-close svg { width: 18px; height: 18px; }
.su-phone .su-close span { display: none; }
.su-foot { position: sticky; bottom: 0; z-index: 3; background: var(--ground); border-top: 1px solid var(--line); }
.su-phone .su-foot { background: var(--panel); }

/* The website's free trial (#00187): days left, and the way to keep it */
.trialbar { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: var(--attn-bg, #FBF0C8); border: 1px solid var(--line); color: var(--ink); font-size: 14.5px; line-height: 1.45; }
.trialbar.soon { border: 2px solid var(--ink); }
.trialbar-n { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--panel); display: grid; place-items: center; font: 800 17px var(--body); }
.trialbar > span:nth-child(2) { flex: 1; }
.trialbar .btn { flex: none; }
@media (max-width: 760px) { .trialbar { flex-wrap: wrap; } .trialbar .btn { width: 100%; justify-content: center; } }

/* Share your club: the QR code (Jeff 30/10) */
.sc-qrbox { width: 180px; max-width: 60vw; padding: 12px; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.sc-qrbox svg { display: block; width: 100%; height: auto; }
