/* Host'em, redesign of November 23 to 24, 2026 (~/reports/ui-redesign/hostem-2026-11-23): two grounds,
   teal for the host's words and paper for what people read and fill in; one coral action color under
   white letters; Bricolage Grotesque for titles and the phone's own font for everything else.
   Approved for Host'em only (Matt, 2026-11-23): glass on what floats (bars, sheets), corners of 8 and
   6px, and one faint shadow under floating glass. Nothing else gets a shadow, a blur or a gradient.
   Phone first: 390 px with 16 px gutters. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(/fonts/BricolageGrotesque-latin.woff2) format("woff2");
}

:root {
  /* ---------- Fonts ---------- */
  /* Titles: the face the wordmark is cut from. */
  --font-display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* Everything else: the phone's own interface font (San Francisco on iPhone, Roboto on Android). */
  --font-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Record and payment ids on the admin page only: the device's own fixed-width font. */
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  /* the display face's optical size and width, per role (axes: opsz 12-96, wdth 75-100) */
  --fvs-title: "opsz" 96, "wdth" 92;
  --fvs-question: "opsz" 48, "wdth" 96;

  /* ---------- Type scale (rem; 1rem = 16px at default text size) ---------- */
  --fs-fine: 0.875rem;    /* 14: host and admin fine print only. Never on a guest's screen. */
  --fs-small: 1rem;       /* 16: the floor on guest screens (labels, hints, legal links) */
  --fs-body: 1.0625rem;   /* 17: host screens (the iPhone's own body size) */
  --fs-guest: 1.125rem;   /* 18: guest screens */
  --fs-lead: 1.25rem;     /* 20: the guest's name, sub-questions, sheet titles */
  --fs-section: 1.375rem; /* 22: section names, stepper numerals */
  --fs-question: 1.75rem; /* 28: the one question a screen asks */
  --fs-count: 2.5rem;     /* 40: head count numerals on the host's page */
  --fs-headline: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);   /* 28 to 40: a landing section's heading */
  --fs-title: clamp(2.125rem, 1.45rem + 2.8vw, 3.5rem);    /* 34 to 56: a large title */
  --fs-display: clamp(2.5rem, 1.5rem + 4.2vw, 4.5rem);     /* 40 to 72: the landing headline only */

  --lh-title: 1.05;
  --lh-heading: 1.15;
  --lh-ui: 1.25;
  --lh-body: 1.5;
  --lh-lead: 1.45;   /* a lead paragraph under a title (was 1.4 in ui.css and 1.45 twice in landing.css) */

  /* Letter-spacing by size (Matt's October 12 rule: body 0, tighter as type grows, never past -0.06em).
     Bricolage at width 92 is already narrow, so each step is lighter than the rule's starting table. */
  --ls-body: 0;
  --ls-section: -0.01em;   /* 22px, system font */
  --ls-question: -0.015em; /* 28px */
  --ls-headline: -0.02em;  /* 28 to 40px */
  --ls-title: -0.02em;     /* 34 to 56px */
  --ls-display: -0.03em;   /* 40 to 72px */

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* ---------- Color: the teal ground ---------- */
  --bg: #0f2227;            /* the invitation, bars, footers, the landing hero */
  --bg-2: #163239;          /* a step up on teal: skeleton bars, quiet buttons */
  --text: #ebe5d6;          /* text on --bg */
  --text-muted: #a9b5b2;    /* labels and fine print on --bg (never on glass) */
  --border: #2b4a52;        /* hairlines on --bg (decorative) */
  --highlight: #f0737d;     /* coral pink (Matt, November 24): who invited you, the headline's second half, focus on teal. 5.83:1 on --bg */

  /* ---------- Color: the paper ground ---------- */
  --surface: #f3ead7;        /* the page a person works on */
  --surface-2: #e7dcc2;      /* a step down: the track of a segmented control, steppers, skeletons */
  --surface-raised: #fcf8ef; /* a step up: groups of rows, inside fields */
  --on-surface: #141a1b;     /* text on paper; the chosen segment */
  --on-surface-muted: #474e4b; /* hints and second lines on paper */
  --border-surface: #cfc3a6;   /* hairlines between rows on paper (decorative) */
  --border-mid: #857a5e;       /* the edge of a field, dotted leaders */

  /* ---------- Color: action, focus, status ---------- */
  --accent: #cd354e;        /* deep coral (Matt, November 24): the one filled action on a screen. White letters read on it at 4.98:1. */
  --accent-strong: #a62a3e; /* the same button under a pointer or a thumb (white letters 6.95:1) */
  --on-accent: #ffffff;     /* letters on any filled button or filled control */
  --accent-ink: #9a273a;    /* the action color as letters on paper (tinted and plain buttons): 6.44:1 on paper, 5.39:1 on --accent-soft */
  --accent-soft: #ecd2ce;   /* behind a tinted button on paper (a muted blush, not a pastel) */
  --accent-soft-strong: #e7c5c0; /* the tinted button under a pointer or a thumb */
  --focus: #f0737d;         /* focus ring on teal (coral pink, 5.83:1) */
  --focus-surface: #141a1b; /* focus ring on paper */
  --success: #1d5b34;       /* on paper: saved, covered */
  --warning: #7c4a03;       /* on paper: unpaid, deadline close */
  --danger: #a11a2c;        /* on paper: errors, canceled, remove */
  --info: #1c5160;          /* on paper: neutral notices */
  --success-on-bg: #9ad3a4;
  --warning-on-bg: #f0b323;
  --danger-on-bg: #ffb59c;
  --info-on-bg: #9fc9d3;

  /* ---------- Glass: only on what floats over content (bars, sheets) ---------- */
  --glass-teal: rgb(15 34 39 / 0.86);     /* bars. Carries --text and white only. */
  --glass-paper: rgb(243 234 215 / 0.82); /* sheets and the action bar. Carries --on-surface and filled buttons only. */
  --glass-teal-solid: #0f2227;            /* when blur is unsupported or transparency is reduced */
  --glass-paper-solid: #f3ead7;
  --glass-blur: 36px;                     /* wide enough that nothing under a bar can be read */
  --glass-edge: rgb(255 255 255 / 0.28);  /* the lit top edge of a glass surface */
  --scrim: rgb(15 34 39 / 0.36);          /* dims the page behind a sheet */
  --shadow-float: 0 10px 32px rgb(15 34 39 / 0.18); /* under floating glass only, never on content */


  /* ---------- Space (4px base) ---------- */
  --sp-1: 0.25rem;  /* 4 */
  --sp-2: 0.5rem;   /* 8: inside a control group */
  --sp-3: 0.75rem;  /* 12: label to control, row padding */
  --sp-4: 1rem;     /* 16: the phone gutter, between fields */
  --sp-5: 1.5rem;   /* 24: between groups inside a section */
  --sp-6: 2rem;     /* 32 */
  --sp-7: 2.5rem;   /* 40: between sections on a phone */
  --sp-8: 3.5rem;   /* 56: between sections at a computer */
  --sp-9: 5rem;     /* 80: landing sections */
  --gutter: 1rem;
  --gutter-wide: 2.5rem;

  /* ---------- Sizes ---------- */
  --tap: 2.75rem;         /* 44: the smallest thing a finger is asked to hit */
  --control: 3rem;        /* 48: inputs, each half of a stepper */
  --btn: 3.25rem;         /* 52: buttons. Pinned by the app's tests as "min-height: 52px". */
  --row: 3.5rem;          /* 56: a row in a group, the segmented control */
  --bar: 3.25rem;         /* 52: the top bar */
  --check: 1.75rem;       /* 28: checkboxes */
  --w-page: 70rem;        /* 1120: guest and public pages */
  --w-wide: 80rem;        /* 1280: the host's event page at a computer */
  --w-text: 36rem;        /* a comfortable line of reading text */
  --w-form: 30rem;        /* a form's widest column */
  --w-label: 4.5rem;      /* the label column in When / Where rows */
  --w-term: 6.5rem;       /* a wider label column, for the landing's "Who sees it" and "Appetizers" rows */
  --w-leader: 1.5rem;     /* the shortest a dotted leader may get before the name drops a line */
  --w-msg: 22rem;         /* a text message drawn as it will be sent (.msg on the host's pages, .bubble on the landing) */
  --w-notice: 44rem;      /* a notice or block that spans a wide page but not the whole of it (sample banner, price block) */
  --w-meta: 52rem;        /* a single line of meta text under a head (.head-meta, the landing's .also) */

  /* ---------- Edges ---------- */
  --radius: 8px;          /* buttons, fields, groups, sheets (Matt chose 6 to 8px) */
  --radius-sm: 6px;       /* what sits inside those: segments, row buttons, skeleton bars */
  --bw-hair: 1px;         /* rules between rows, the edge of a field */
  --bw: 2px;              /* section rules */
  --bw-heavy: 3px;        /* focus rings */
  --ring-gap: 2px;        /* space between a control and its focus ring */

  /* ---------- Motion ----------
     Nothing moves on hover. A sheet may rise and a saved line may fade in; both are instant
     under reduced motion. The mockups are static and use neither. */
  --motion-state: 120ms;
  --motion-sheet: 240ms;

  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-state: 0ms;
    --motion-sheet: 0ms;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + var(--sp-4)); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: var(--fw-regular) var(--fs-body)/var(--lh-body) var(--font-text);
  letter-spacing: var(--ls-body);
}
/* a guest's screens: bigger text for everyone, grandparents included */
body.guest { font-size: var(--fs-guest); }
main { flex: 1; display: flex; flex-direction: column; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
p, li, dd, legend, label { overflow-wrap: anywhere; }
a { color: inherit; text-underline-offset: var(--bw-heavy); }
a:hover { text-decoration-thickness: var(--bw); }
button, input, select, textarea { font: inherit; letter-spacing: inherit; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: var(--bw-heavy) solid var(--focus); outline-offset: var(--ring-gap); }
:is(.paper, .sheet, .actionbar, .notice) :focus-visible { outline-color: var(--focus-surface); }
/* a control hidden inside its own label (the contact-file row) shows its focus on the label */
label:has(> input.vh:focus-visible) { outline: var(--bw-heavy) solid var(--focus-surface); outline-offset: var(--ring-gap); }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap {
  width: 100%;
  max-width: var(--w-page);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.wrap.wide { max-width: var(--w-wide); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Type roles ---------- */
.title, .head h1 {
  font-family: var(--font-display);
  font-variation-settings: var(--fvs-title);
  font-weight: var(--fw-bold);
  font-size: var(--fs-title);
  line-height: var(--lh-title);
  letter-spacing: var(--ls-title);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.question {
  font-family: var(--font-display);
  font-variation-settings: var(--fvs-question);
  font-weight: var(--fw-bold);
  font-size: var(--fs-question);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-question);
  text-wrap: balance;
}
.sec-title { font-size: var(--fs-section); font-weight: var(--fw-bold); line-height: var(--lh-heading); letter-spacing: var(--ls-section); }
.lead { font-size: var(--fs-lead); line-height: var(--lh-lead); max-width: var(--w-text); }
.hint { font-size: var(--fs-small); color: var(--on-surface-muted); }
.fine { font-size: var(--fs-fine); color: var(--on-surface-muted); }
body.guest .fine { font-size: var(--fs-small); }

/* ---------- Glass: bars and sheets only. A solid color stands in when blur is missing or unwanted. ---------- */
.glass-teal, .top { background: var(--glass-teal-solid); }
.glass-paper { background: var(--glass-paper-solid); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass-teal, .top { background: var(--glass-teal); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.6); backdrop-filter: blur(var(--glass-blur)) saturate(1.6); }
  .glass-paper { background: var(--glass-paper); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.6); backdrop-filter: blur(var(--glass-blur)) saturate(1.6); }
}
@media (prefers-reduced-transparency: reduce) {
  .glass-teal, .top { background: var(--glass-teal-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .glass-paper { background: var(--glass-paper-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Buttons ---------- */
/* filled: the one action on a screen. White letters on deep coral. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  text-align: center;
  min-height: 52px; /* --btn; written out because test/worker/pages.test.ts pins it */
  padding: var(--sp-3) var(--sp-5);
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: var(--fw-semibold);
  font-size: inherit;
  line-height: var(--lh-ui);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent-strong); }
.btn.full { width: 100%; }
/* tinted: a second action that still has to look tappable ("I'll bring it") */
.btn.soft { background: var(--accent-soft); color: var(--accent-ink); }
.btn.soft:hover { background: var(--accent-soft-strong); }
.btn.soft.on-teal { background: var(--bg-2); color: var(--text); }
.btn.soft.on-teal:hover { background: var(--border); }
/* plain: letters only, for the quiet third choice */
.btn.plain { min-height: var(--tap); padding: 0 var(--sp-1); background: none; color: var(--accent-ink); }
.btn.plain:hover { background: none; text-decoration: underline; text-decoration-thickness: var(--bw); }
.btn.plain.on-teal { color: var(--highlight); }
.btn.plain.danger { color: var(--danger); }
.btn.small { min-height: var(--tap); padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-sm); font-size: var(--fs-small); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--surface-2); color: var(--on-surface-muted); cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); }

.linkbtn {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  min-width: var(--tap);
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-ink);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  line-height: var(--lh-ui);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.linkbtn:hover { text-decoration: underline; text-decoration-thickness: var(--bw); }
.linkbtn.on-teal { color: var(--highlight); }

/* ---------- The top bar: glass, stays put while the page moves under it ---------- */
.top { position: sticky; top: 0; z-index: 20; border-bottom: var(--bw-hair) solid var(--glass-edge); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: var(--bar); }
.pn-mark { display: inline-flex; align-items: center; min-height: var(--tap); flex: none; }
.pn-mark img { display: block; }
.top nav { display: flex; align-items: center; gap: 0 var(--sp-5); }
.top nav a, .top nav button { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0; border: 0; background: none; color: var(--text); font-weight: var(--fw-medium); font-size: var(--fs-small); text-decoration: none; cursor: pointer; }
.top nav a:hover, .top nav button:hover { text-decoration: underline; }
.top nav a.btn { min-height: var(--tap); padding: var(--sp-2) var(--sp-4); background: var(--accent); color: var(--on-accent); font-weight: var(--fw-semibold); }
.top nav a.btn:hover { background: var(--accent-strong); text-decoration: none; }
/* a guest's page has no bar at rest. Once the invitation scrolls away, its name and time stay in this one. */
.titlebar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; border-bottom: var(--bw-hair) solid var(--glass-edge); }
.titlebar .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: var(--bar); color: var(--text); font-size: var(--fs-small); }
.titlebar b { font-weight: var(--fw-semibold); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.titlebar span { flex: none; }

/* ---------- Teal tops ---------- */
/* the invitation: the host's words */
.invite { padding: var(--sp-5) 0; }
.invite-from { font-weight: var(--fw-semibold); color: var(--highlight); }
.invite .title { margin-top: var(--sp-1); }
.facts { margin-top: var(--sp-4); display: grid; gap: var(--sp-2); }
.facts > div { display: grid; grid-template-columns: var(--w-label) minmax(0, 1fr); column-gap: var(--sp-3); }
.facts dt { font-size: var(--fs-small); color: var(--text-muted); padding-top: 0.125em; }
.facts dd { white-space: pre-line; overflow-wrap: anywhere; text-wrap: pretty; }
/* the same rows inside a group on paper: Details and settings */
.facts.grouped { margin-top: 0; gap: 0; }
.facts.grouped > div { padding: var(--sp-3) var(--sp-4); }
.facts.grouped > div + div { border-top: var(--bw-hair) solid var(--border-surface); }
.facts.grouped dt { color: var(--on-surface-muted); }
/* a host's page: a large title and one line under it */
.head { padding: var(--sp-5) 0; }
.head-meta { margin-top: var(--sp-2); color: var(--text-muted); max-width: var(--w-meta); }
.head-meta b { color: var(--text); font-weight: var(--fw-regular); }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-4) var(--sp-6); }

/* a long job's own page: "Back to the event" over a smaller title */
.back { display: inline-flex; margin-bottom: var(--sp-2); }
.head .title.page-title { font-size: var(--fs-question); font-variation-settings: var(--fvs-question); letter-spacing: var(--ls-question); line-height: var(--lh-heading); }

/* ---------- Paper: what people fill in and read ---------- */
.paper { flex: 1; background: var(--surface); color: var(--on-surface); color-scheme: light; padding: var(--sp-5) 0 var(--sp-7); }
.cols { display: grid; gap: var(--sp-7); }
.cols > * { min-width: 0; }
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-1) var(--sp-4);
  padding-top: var(--sp-3);
  border-top: var(--bw) solid var(--on-surface);
}
.sec-count { font-size: var(--fs-small); font-weight: var(--fw-semibold); }
.sec-head + * { margin-top: var(--sp-3); }
/* sections stacked in one column: the section step, 40 on a phone and 56 at a computer (tokens.md, rhythm) */
.stack > * + * { margin-top: var(--sp-7); }

/* ---------- Groups: rows that belong together share one raised surface. No box per control. ---------- */
.group { background: var(--surface-raised); border-radius: var(--radius); }
.group > .row + .row, .group > li + li, .group > .pick + .pick { border-top: var(--bw-hair) solid var(--border-surface); }
.row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3) var(--sp-4); min-height: var(--row); padding: var(--sp-2) var(--sp-4); }
.row-label { font-weight: var(--fw-semibold); min-width: 0; }
.row-sub { display: block; font-size: var(--fs-small); font-weight: var(--fw-regular); color: var(--on-surface-muted); }
/* one look for every lead-size heading: a group, a category, a sheet's title, a sub-section */
.group-head, .cat-head :is(h2, h3), .sheet-head h2, .sub-head h3 { font-size: var(--fs-lead); font-weight: var(--fw-bold); line-height: var(--lh-ui); }
.group-head + .group { margin-top: var(--sp-3); }
.group-foot { margin-top: var(--sp-2); padding: 0 var(--sp-1); }
.group-foot b { color: var(--on-surface); font-weight: var(--fw-semibold); }
/* a hint that belongs to a group sits inside it */
.group .group-note { padding: var(--sp-3) var(--sp-4); font-size: var(--fs-small); color: var(--on-surface-muted); }
.group .group-note b { color: var(--on-surface); font-weight: var(--fw-semibold); }
.group > * + .group-note { border-top: var(--bw-hair) solid var(--border-surface); }
/* the one row that removes or deletes */
.row.danger { justify-content: center; color: var(--danger); font-weight: var(--fw-semibold); text-align: center; }
/* a row with a quiet action at its end: "Stuffing ..... Remove" */
.row .row-act { flex: none; }
.row .row-text { min-width: 0; overflow-wrap: anywhere; }
/* a row that goes somewhere: the whole row is the link */
a.row, button.row { width: 100%; border: 0; background: none; color: inherit; text-align: left; text-decoration: none; cursor: pointer; }
a.row:hover, button.row:hover { background: var(--surface-2); }
.group > :first-child, .group > li:first-child > .row { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.group > :last-child, .group > li:last-child > .row { border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.chev { flex: none; color: var(--border-mid); font-size: var(--fs-section); line-height: 1; }
.row-end { display: flex; align-items: center; gap: var(--sp-3); flex: none; color: var(--on-surface-muted); }

/* ---------- Yes / Maybe / Can't: one segmented control, real radio buttons underneath ---------- */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--sp-1); padding: var(--sp-1); border-radius: var(--radius); background: var(--surface-2); }
.seg label { position: relative; display: flex; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--control);
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--radius-sm);
  font-size: var(--fs-lead);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-ui);
  text-align: center;
}
.seg input:hover + span { background: var(--border-surface); }
/* chosen: ink with white letters. A change in lightness, so it reads without color vision. */
.seg input:checked + span { background: var(--on-surface); color: var(--on-accent); }
.seg input:focus-visible + span { outline: var(--bw-heavy) solid var(--focus-surface); outline-offset: var(--ring-gap); }
.seg.small span { min-height: var(--tap); font-size: var(--fs-small); }
/* four choices: two rows of two on a phone, so "Not answered" stays on one line */
.seg.four { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Stepper: the number, then one control split into minus and plus ---------- */
.stepper { display: flex; align-items: center; gap: var(--sp-3); flex: none; }
.stepper input {
  width: 2.5ch;
  min-width: var(--tap);
  min-height: var(--tap);
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--on-surface);
  font-size: var(--fs-section);
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
  text-align: right;
  appearance: textfield;
  -moz-appearance: textfield;
}
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
/* minus and plus are two buttons with room between them: a shaky thumb shouldn't land on the wrong one (A4.4) */
.stepper-btns { display: grid; grid-template-columns: var(--control) var(--control); gap: var(--sp-2); }
.stepper-btns button {
  min-height: var(--tap);
  padding: 0;
  border: 0;
  background: var(--surface-2);
  border-radius: var(--radius);
  color: var(--on-surface);
  font-size: var(--fs-question);
  font-weight: var(--fw-regular);
  line-height: 1;
  cursor: pointer;
}
.stepper-btns button:hover { background: var(--border-surface); }
.stepper-btns button[disabled] { color: var(--border-mid); cursor: default; background: var(--surface-2); }

/* ---------- Fields: the one place an outline earns its keep, because you type in it ---------- */
.field { display: grid; gap: var(--sp-2); margin-top: var(--sp-4); }
.field > label, .field > legend { font-weight: var(--fw-semibold); }
.field > label small, .field > legend small { font-size: inherit; font-weight: var(--fw-regular); color: var(--on-surface-muted); }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=time], input[type=number].boxed, select, textarea {
  width: 100%;
  min-width: 0;
  min-height: var(--control);
  padding: var(--sp-3) var(--sp-4);
  border: var(--bw-hair) solid var(--border-mid);
  border-radius: var(--radius);
  background: var(--surface-raised);
  color: var(--on-surface);
  line-height: var(--lh-ui);
  appearance: none;
  -webkit-appearance: none;
}
textarea { line-height: var(--lh-body); resize: vertical; }
select {
  padding-right: var(--sp-7);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23141a1b' stroke-width='2'/%3E%3C/svg%3E");
  background-position: right var(--sp-4) center;
  background-repeat: no-repeat;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: var(--bw-heavy) solid var(--focus-surface); outline-offset: 0; }
/* the browser's own placeholder gray is 4.35:1 on --surface-raised; this is 8.06:1 */
::placeholder { color: var(--on-surface-muted); opacity: 1; }
/* Date and Start time side by side (the mockups' .field.pair; the app's name is pinned by its tests) */
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2) var(--sp-3); margin-top: var(--sp-4); }
.row2 > .field { margin-top: 0; min-width: 0; align-content: start; }
.row2 + .hint, .row2 + .field-error { margin-top: var(--sp-2); }
.field-error { color: var(--danger); font-size: var(--fs-small); font-weight: var(--fw-semibold); }
.is-invalid input, .is-invalid select, input.is-invalid { border-color: var(--danger); border-width: var(--bw); }
.form-error { padding: var(--sp-3) var(--sp-4); border: var(--bw) solid var(--danger); border-radius: var(--radius); color: var(--danger); font-weight: var(--fw-semibold); }
/* a notice keeps ink letters wherever it sits, the teal top included */
.notice { padding: var(--sp-3) var(--sp-4); border-radius: var(--radius); background: var(--surface-2); color: var(--on-surface); color-scheme: light; }
.notice b { font-weight: var(--fw-bold); }

/* checkboxes and radio rows */
.check { display: flex; gap: var(--sp-3); align-items: flex-start; min-height: var(--tap); }
.check input { flex: none; width: var(--check); height: var(--check); margin: 0; accent-color: var(--accent); }
.check label { font-weight: var(--fw-medium); }
.pick { display: flex; align-items: center; gap: var(--sp-3); min-height: var(--row); padding: var(--sp-2) var(--sp-4); cursor: pointer; }
.pick input { flex: none; width: var(--check); height: var(--check); margin: 0; accent-color: var(--accent); }
.pick-text { min-width: 0; }
.pick-text b { font-weight: var(--fw-semibold); }
.pick-text small { display: block; font-size: var(--fs-small); color: var(--on-surface-muted); }
.pick-end { margin-left: auto; flex: none; font-size: var(--fs-section); font-weight: var(--fw-bold); }

/* a whole group of tick boxes: settings, the import list, the app-sent invites */
.group > .check { padding: var(--sp-3) var(--sp-4); min-height: var(--row); align-items: center; }
.group > .check + .check { border-top: var(--bw-hair) solid var(--border-surface); }
.group > .check label { overflow-wrap: anywhere; }
.group > .check label small { display: block; font-size: var(--fs-small); font-weight: var(--fw-regular); color: var(--on-surface-muted); }
/* a tick row whose label runs to two lines lines up at the top (the mockups' .check.top; .top is the bar) */
.group > .check.check-top { align-items: flex-start; }
.check input[disabled] + label { color: var(--on-surface-muted); }

/* the reminder opt-in. Its words are the carrier's: never restyle the label's size or pin anything over it. */
.reminder { margin-top: var(--sp-5); }
.reminder.group > .check { padding: var(--sp-4) var(--sp-4) 0; min-height: var(--tap); align-items: flex-start; }
.disclosure-links { display: flex; flex-wrap: wrap; gap: 0 var(--sp-5); padding: 0 var(--sp-4) var(--sp-2) calc(var(--sp-4) + var(--check) + var(--sp-3)); font-size: var(--fs-small); }
.disclosure-links a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--accent-ink); font-weight: var(--fw-semibold); }
.reminder-number { border-top: var(--bw-hair) solid var(--border-surface); }
.reminder-number legend { float: left; width: 100%; padding: var(--sp-3) var(--sp-4) 0; font-weight: var(--fw-semibold); }
.reminder-number .pick { clear: both; }
.reminder-number .pick + .pick { border-top: var(--bw-hair) solid var(--border-surface); }

/* Save: right after the reminder box, never stuck to the screen (a stuck bar covered the consent words) */
.savebar { margin-top: var(--sp-5); display: grid; gap: var(--sp-3); }
.done { padding: var(--sp-3) var(--sp-4); border-radius: var(--radius); background: var(--surface-raised); color: var(--on-surface); }
.done b { color: var(--success); }
.done a { color: var(--accent-ink); font-weight: var(--fw-semibold); }

/* ---------- The guest's answer ---------- */
.hello { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--sp-4); }
.hello b { font-size: var(--fs-lead); font-weight: var(--fw-bold); overflow-wrap: anywhere; }
.ask { margin-top: var(--sp-1); }
.ask .seg { margin-top: var(--sp-3); }
.ask > .field-error { margin-top: var(--sp-2); }
.howmany { margin-top: var(--sp-5); }
.note-open { margin-top: var(--sp-2); }

/* ---------- The bring list: a sign-up sheet, names beside the dishes ---------- */
.mine { font-weight: var(--fw-semibold); }
.cat { margin-top: var(--sp-5); }
.cat-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 var(--sp-4); padding-bottom: var(--sp-1); }
.cat-need { font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--on-surface-muted); }
.cat-need.covered { color: var(--success); }
.dishes { border-top: var(--bw-hair) solid var(--border-surface); }
.dish {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 var(--sp-2);
  min-height: var(--control);
  padding: var(--sp-2) 0;
  border-bottom: var(--bw-hair) solid var(--border-surface);
}
.dish-name { flex: 0 1 auto; min-width: 0; align-self: center; }
/* the dotted leader the family's typed list already uses: "Green beans ..... Nancy" */
.dots { flex: 1 1 var(--w-leader); min-width: var(--w-leader); height: 0.75em; align-self: flex-start; margin-top: 0.4em; border-bottom: var(--bw) dotted var(--border-mid); }
.dish-who { flex: 0 1 auto; min-width: 0; margin-left: auto; text-align: right; font-weight: var(--fw-semibold); align-self: center; }
.dish-who.you, .dish-who b { font-weight: var(--fw-bold); }
.dish .btn.small { flex: none; align-self: center; margin-left: auto; }
.dish-more { flex: 1 0 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--sp-3); }
.dish-more .hint { color: var(--on-surface); }
.dish-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--sp-2) var(--sp-4); margin-left: auto; }
.list-foot { margin-top: var(--sp-4); }
.empty-note { max-width: var(--w-text); }

/* plain lists: who else is coming, guests, events */
.people { margin-top: var(--sp-3); border-top: var(--bw-hair) solid var(--border-surface); }
.people li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 var(--sp-4); padding: var(--sp-3) 0; border-bottom: var(--bw-hair) solid var(--border-surface); }
.people b { font-weight: var(--fw-semibold); min-width: 0; }
.people span { margin-left: auto; text-align: right; font-size: var(--fs-small); color: var(--on-surface-muted); }
.texts-off { margin-top: var(--sp-5); }

/* ---------- Sheets: small edits rise over the page instead of replacing it ---------- */
.sheet-layer { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: flex-end; }
.scrim { position: absolute; inset: 0; background: var(--scrim); }
.sheet {
  position: relative;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: var(--sp-2) max(var(--gutter), env(safe-area-inset-left)) calc(var(--sp-5) + env(safe-area-inset-bottom));
  border-radius: var(--radius) var(--radius) 0 0;
  border-top: var(--bw-hair) solid var(--glass-edge);
  box-shadow: var(--shadow-float);
  color: var(--on-surface);
  color-scheme: light;
}
.grabber { display: block; width: var(--sp-7); height: var(--sp-1); margin: 0 auto var(--sp-2); border-radius: var(--radius-sm); background: var(--border-mid); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: var(--tap); }
.sheet-body > * + * { margin-top: var(--sp-4); }
.sheet .field { margin-top: var(--sp-3); }
.sheet .btn.full { margin-top: var(--sp-5); }
.sheet-note { font-size: var(--fs-small); }
.sheet-body > .group-head { margin-top: var(--sp-5); }
.sheet-body > .group-head + .group { margin-top: var(--sp-2); }
.sheet .btn-row { margin-top: var(--sp-5); }
.sheet .btn-row .btn { flex: 1 1 auto; }
/* Straight on glass, letters are ink only: the tint and the muted gray can lose contrast when a dark
   page shows through (tokens.md, "On glass"). Hints go inside a solid group; errors get a solid ground. */
.sheet-head .linkbtn, .sheet .btn.plain.ink { flex: none; color: var(--on-surface); white-space: nowrap; text-decoration: underline; text-underline-offset: var(--bw-heavy); }
.sheet .hint { color: var(--on-surface); }
.sheet .field > label small, .sheet .field > legend small { color: var(--on-surface); }
.sheet .form-error { background: var(--surface-raised); }
.sheet .field-error { padding: var(--sp-1) var(--sp-2); border-radius: var(--radius-sm); background: var(--surface-raised); }
/* a confirmation: what will happen, then the action named on its button */
.confirm-text { padding: var(--sp-4); font-size: var(--fs-body); }
.confirm-text b { font-weight: var(--fw-semibold); }

/* the phone's bottom bar: one action, always in reach on a long host page */
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: var(--sp-3) max(var(--gutter), env(safe-area-inset-left)) calc(var(--sp-3) + env(safe-area-inset-bottom)); border-top: var(--bw-hair) solid var(--glass-edge); box-shadow: var(--shadow-float); color: var(--on-surface); }
.actionbar .btn { width: 100%; }
.has-actionbar .foot { padding-bottom: calc(var(--btn) + var(--sp-7)); }
/* a control reached by Tab scrolls clear of the bottom bar instead of stopping under it */
html:has(.actionbar:not([hidden])), html:has(#v-edit:not([hidden])) { scroll-padding-bottom: calc(var(--btn) + var(--sp-3) + var(--sp-3) + var(--sp-4) + env(safe-area-inset-bottom)); }

/* ---------- The host's pages ---------- */
/* the head count: one number first, then who it is made of */
.count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--sp-3); }
.count-big { font-family: var(--font-display); font-variation-settings: var(--fvs-title); font-weight: var(--fw-bold); font-size: var(--fs-count); line-height: 1; letter-spacing: var(--ls-title); font-variant-numeric: tabular-nums; }
.count-of { font-size: var(--fs-lead); font-weight: var(--fw-semibold); }
.count-note { margin-top: var(--sp-1); }
/* the four groups a host sorts guests into, as jump links: two by two, number then label, so
   "Not answered" stays on one line at every width. Spans stand in for the links behind a sheet. */
.tally { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--sp-4); overflow: hidden; }
.tally > :is(a, span) { display: flex; align-items: center; gap: var(--sp-2); min-height: var(--row); padding: var(--sp-2) var(--sp-3); color: inherit; text-decoration: none; }
.tally > :nth-child(even) { border-left: var(--bw-hair) solid var(--border-surface); }
.tally > :nth-child(n+3) { border-top: var(--bw-hair) solid var(--border-surface); }
.tally a:hover { background: var(--surface-2); }
/* .tally clips its corners, so its focus ring is drawn inside the link */
.tally > a:focus-visible { outline-offset: calc(-1 * var(--bw-heavy)); }
.tally b { flex: none; min-width: 1.5ch; font-size: var(--fs-section); font-weight: var(--fw-bold); line-height: 1; font-variant-numeric: tabular-nums; }
.tally :is(a, span) > span { font-size: var(--fs-fine); line-height: var(--lh-ui); color: var(--on-surface-muted); white-space: nowrap; }
.tally .need b { color: var(--accent-ink); }
/* guest rows: the whole row opens that guest */
.grow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--sp-3); width: 100%; min-height: var(--row); padding: var(--sp-3) var(--sp-4); border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.grow:hover { background: var(--surface-2); }
.grow-main { display: grid; gap: var(--sp-1); min-width: 0; }
.grow-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 var(--sp-3); }
.grow-top b { font-weight: var(--fw-semibold); min-width: 0; overflow-wrap: anywhere; }
.grow-top span { font-variant-numeric: tabular-nums; color: var(--on-surface-muted); }
.grow-line { font-size: var(--fs-fine); color: var(--on-surface-muted); overflow-wrap: anywhere; }
.sub-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 var(--sp-4); margin-top: var(--sp-5); }
.sub-head + * { margin-top: var(--sp-2); }
.sub-head + .hint { margin-top: var(--sp-1); }
.nudge { display: grid; gap: var(--sp-2); margin-top: var(--sp-3); }
/* a text message as it will be sent */
.msg { max-width: var(--w-msg); padding: var(--sp-3) var(--sp-4); border-radius: var(--radius) var(--radius) var(--radius) 0; background: var(--surface-raised); overflow-wrap: anywhere; }
.msg-from { display: block; font-size: var(--fs-fine); font-weight: var(--fw-semibold); color: var(--on-surface-muted); }
/* the same message on teal: the landing's demo */
.msg.on-teal { background: var(--bg-2); }
.msg.on-teal .msg-from { color: var(--text-muted); }
.msg u { text-decoration-color: var(--highlight); text-underline-offset: var(--bw-heavy); }
.status-warn { color: var(--warning); font-weight: var(--fw-semibold); }
.status-off { color: var(--danger); font-weight: var(--fw-semibold); }
.status-ok { color: var(--success); font-weight: var(--fw-semibold); }
/* my events: one row per event */
.erow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--sp-1) var(--sp-3); min-height: var(--row); padding: var(--sp-3) var(--sp-4); color: inherit; text-decoration: none; }
a.erow:hover { background: var(--surface-2); }
.erow-main { display: grid; gap: var(--sp-1); min-width: 0; color: inherit; text-decoration: none; }
a.erow-main:hover b { text-decoration: underline; }
.erow-main b { font-size: var(--fs-lead); font-weight: var(--fw-semibold); line-height: var(--lh-ui); overflow-wrap: anywhere; }
.erow-main span { color: var(--on-surface-muted); overflow-wrap: anywhere; }
.erow-main .erow-count { color: var(--on-surface); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.erow-main .status-off { color: var(--danger); }
.erow-main .status-warn { color: var(--warning); }
.erow-end { display: flex; align-items: center; gap: var(--sp-3); font-variant-numeric: tabular-nums; }
.erow-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-5); }
/* the spam check: Cloudflare draws its own box here */
.spam { display: flex; align-items: center; gap: var(--sp-3); min-height: var(--row); margin-top: var(--sp-4); padding: var(--sp-2) var(--sp-4); border-radius: var(--radius); background: var(--surface-2); font-size: var(--fs-fine); color: var(--on-surface-muted); }
.spam i { display: block; flex: none; width: var(--check); height: var(--check); border-radius: var(--radius-sm); background: var(--border-surface); }
.spam.ok i { background: var(--success); }
.form-foot { margin-top: var(--sp-3); }
.form-foot a { color: var(--accent-ink); font-weight: var(--fw-semibold); }
/* what guests will see, beside the form that makes it */
.peek { padding: var(--sp-5); border-radius: var(--radius); background: var(--bg); color: var(--text); color-scheme: dark; }
.peek .title { font-size: var(--fs-question); }
.peek-label { margin-bottom: var(--sp-3); font-weight: var(--fw-semibold); }
.aside-note { margin-top: var(--sp-5); max-width: var(--w-text); }
.aside-note b { font-weight: var(--fw-semibold); }
.only-wide { display: none; }
.only-narrow { display: block; }

@media (min-width: 900px) {
  .only-wide { display: block; }
  .only-narrow { display: none; }
  .seg.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cols.form { grid-template-columns: minmax(0, var(--w-form)) minmax(0, 1fr); column-gap: var(--sp-8); align-items: start; }
  .cols.join { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--sp-8); align-items: start; }
  .cols.host { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: var(--sp-7); row-gap: var(--sp-8); align-items: start; }
  .h-count { grid-column: 1; grid-row: 1; }
  .h-guests { grid-column: 1; grid-row: 2; }
  .h-more { grid-column: 1; grid-row: 3; }
  .h-list { grid-column: 2; grid-row: 1 / span 3; }
  .cols.events { grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); column-gap: var(--sp-8); align-items: start; }
  .sticky-wide { position: sticky; top: calc(var(--bar) + var(--sp-5)); }
  .stack > * + * { margin-top: var(--sp-8); }
}

/* a host's bring-list line: the whole line opens it for editing */
.dish-btn { width: 100%; border: 0; border-bottom: var(--bw-hair) solid var(--border-surface); background: none; color: inherit; text-align: left; cursor: pointer; }
.dish-btn:hover { background: var(--surface-raised); }
.dish-who.open { font-weight: var(--fw-regular); color: var(--on-surface-muted); }
.head-meta .linkbtn { display: inline-flex; margin-left: var(--sp-2); font-size: inherit; }

@media (min-width: 1180px) {
  .cols.host { grid-template-columns: minmax(0, 18rem) minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .h-count { grid-column: 1; grid-row: 1; }
  .h-more { grid-column: 1; grid-row: 2; }
  .h-guests { grid-column: 2; grid-row: 1 / span 2; }
  .h-list { grid-column: 3; grid-row: 1 / span 2; }
}

/* ---------- Whole-page messages on teal: could not load, link gone, canceled ---------- */
.notice-page { padding: var(--sp-7) 0; flex: 1; }
.notice-page .question + p { margin-top: var(--sp-3); max-width: var(--w-text); }
.notice-page .btn { margin-top: var(--sp-5); }
.notice-page .on-teal-fine { margin-top: var(--sp-5); font-size: var(--fs-small); color: var(--text-muted); max-width: var(--w-text); }
.canceled { margin-top: var(--sp-4); padding: var(--sp-3) var(--sp-4); border-radius: var(--radius); background: var(--bg-2); max-width: var(--w-text); }
.canceled b { color: var(--danger-on-bg); }

/* ---------- Skeletons: static bars in the shape of what is coming ---------- */
.skel { display: grid; gap: var(--sp-3); }
.skel i { display: block; height: var(--sp-4); border-radius: var(--radius-sm); background: var(--surface-2); }
:is(.invite, .head) .skel i { background: var(--bg-2); }
.skel .s-short { width: 45%; }
.skel .s-mid { width: 70%; }
.skel .s-long { width: 92%; }
.skel .s-title { height: var(--sp-7); width: 80%; }
.skel .s-q { height: var(--sp-6); width: 55%; }
.skel .s-btn { height: var(--btn); border-radius: var(--radius); }
.skel .s-seg { height: var(--row); border-radius: var(--radius); }
.skel .s-group { height: calc(var(--row) * 2); border-radius: var(--radius); background: var(--surface-raised); }
.skel-line { display: flex; justify-content: space-between; gap: var(--sp-5); padding: var(--sp-3) 0; border-bottom: var(--bw-hair) solid var(--border-surface); }
.skel-line i { display: block; height: var(--sp-4); border-radius: var(--radius-sm); background: var(--surface-2); }
.skel-line i:first-child { width: 48%; }
.skel-line i:last-child { width: 24%; }
.skel-gap { margin-top: var(--sp-3); }

/* ---------- Footer ---------- */
.foot { border-top: var(--bw-hair) solid var(--border); padding: var(--sp-4) 0 var(--sp-5); font-size: var(--fs-small); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--sp-5); }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }
.foot a { display: inline-flex; align-items: center; min-height: var(--tap); }
.foot p { color: var(--text-muted); }

/* ---------- Narrow phones: 320 to 349 ---------- */
@media (max-width: 349px) {
  .seg span { font-size: var(--fs-guest); }
  .row2 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- A computer: real columns, more air ---------- */
@media (min-width: 900px) {
  .wrap { padding-left: var(--gutter-wide); padding-right: var(--gutter-wide); }
  .invite { padding: var(--sp-8) 0 var(--sp-7); }
  .invite-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--sp-8); align-items: start; }
  .invite .facts { margin-top: 0; max-width: var(--w-text); padding-top: var(--sp-2); }
  .head { padding: var(--sp-7) 0 var(--sp-6); }
  .paper { padding: var(--sp-7) 0 var(--sp-9); }
  .cols.guest { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; gap: var(--sp-8); align-items: start; }
  .sec-answer { grid-column: 1; grid-row: 1; }
  .sec-list { grid-column: 2; grid-row: 1 / span 2; }
  .sec-others { grid-column: 1; grid-row: 2; }
  .notice-page { padding: var(--sp-9) 0; }
  /* a sheet becomes a dialog in the middle of the window */
  .sheet-layer { justify-content: center; align-items: center; }
  .sheet { width: var(--w-form); max-height: 80vh; padding: var(--sp-5) var(--sp-5) var(--sp-5); border-radius: var(--radius); }
  .grabber { display: none; }
  .sheet .btn-row .btn { flex: 0 1 auto; }
  .actionbar { display: none; }
  .has-actionbar .foot { padding-bottom: var(--sp-5); }
  html:has(.actionbar:not([hidden])) { scroll-padding-bottom: 0; }
  html:has(#v-edit:not([hidden])) { scroll-padding-bottom: calc(var(--btn) + var(--sp-3) + var(--sp-3) + var(--sp-4) + var(--sp-4)); }
}

/* ---------- Windows high contrast (forced colors) ----------
   The system repaints every background, so a choice shown by fill alone vanishes. The chosen segment
   takes the system's highlight, and fills that carried a button's shape get an edge. */
@media (forced-colors: active) {
  .seg input:checked + span { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .btn, .stepper-btns button, .seg { border: var(--bw-hair) solid ButtonText; }
  .btn.plain, .linkbtn { border: 0; }
}

/* ====================== The event page's inner views (design/event.css) ====================== */

/* ---------- A long job's own page: "Back to the event" over the title ---------- */
.page-col { max-width: var(--w-form); }
.page-col > * + * { margin-top: var(--sp-5); }
.part + .part { margin-top: var(--sp-7); }
.part > .group-head + * { margin-top: var(--sp-3); }
.part > .group + .hint, .part > .group + .group-foot { margin-top: var(--sp-2); }


/* ---------- Details and settings ---------- */

/* Edit details: the form scrolls under a glass bar that holds Save changes and Cancel (the app pins
   #edit-form .savebar as sticky, test/worker/pages.test.ts:269-284). */
#edit-form .savebar { position: sticky; bottom: 0;
  z-index: 15;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-4);
  margin: var(--sp-6) calc(-1 * var(--gutter)) 0;
  padding: var(--sp-3) var(--gutter) calc(var(--sp-3) + env(safe-area-inset-bottom));
  border-top: var(--bw-hair) solid var(--glass-edge);
  box-shadow: var(--shadow-float);
  color: var(--on-surface);
}
#edit-form .savebar .btn { flex: 1 1 auto; }
#edit-form .savebar .btn.plain { flex: 0 0 auto; color: var(--on-surface); text-decoration: underline; text-underline-offset: var(--bw-heavy); }
#edit-form .savebar .form-error { flex: 1 0 100%; background: var(--surface-raised); }

/* ---------- The unpaid panel and the way back from checkout ---------- */
.paybox { padding: var(--sp-5) var(--sp-4); border-radius: var(--radius); background: var(--surface-raised); }
.paybox .group { background: var(--surface); }
.paybox > * + * { margin-top: var(--sp-3); }
.paybox .field { margin-top: var(--sp-4); }
.paybox .btn.full { margin-top: var(--sp-4); }
.waitbox { display: grid; gap: var(--sp-3); padding: var(--sp-4); border-radius: var(--radius); background: var(--surface-raised); }
.canceled-note { padding: var(--sp-3) var(--sp-4); border-radius: var(--radius); background: var(--surface-2); max-width: var(--w-text); }
.canceled-note b { color: var(--danger); font-weight: var(--fw-bold); }

/* ---------- The helper: your question, then its answer ---------- */
.turn + .turn { margin-top: var(--sp-5); }
.turn-who { display: block; font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--on-surface-muted); }
.turn-said { margin-top: var(--sp-1); padding: var(--sp-3) var(--sp-4); border-radius: var(--radius); background: var(--surface-2); max-width: var(--w-text); }
.turn-body { margin-top: var(--sp-2); }
.turn-body > * + * { margin-top: var(--sp-3); }
.plan .cat:first-child { margin-top: var(--sp-3); }
.spots { flex: none; align-self: center; margin-left: auto; color: var(--on-surface-muted); font-variant-numeric: tabular-nums; }
.answer-empty { color: var(--on-surface-muted); max-width: var(--w-text); }
.helper-skel .skel-line i:first-child { width: 56%; }
.helper-skel .skel-line i:last-child { width: 16%; }

/* ---------- Edit categories ---------- */
.catgroup .row .field { margin-top: 0; flex: 1 1 12rem; }
.catgroup .row.wrap-row { flex-wrap: wrap; align-items: flex-end; padding-top: var(--sp-3); padding-bottom: var(--sp-3); }
.catgroup .row.wrap-row .btn { flex: none; }
.catgroup .row.tools { flex-wrap: wrap; justify-content: flex-start; gap: var(--sp-2) var(--sp-3); }
.catgroup .row.tools .btn.plain.danger { margin-left: auto; }
.catgroup .deleting { display: grid; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4) var(--sp-4); border-top: var(--bw-hair) solid var(--border-surface); }
.catgroup .deleting .field { margin-top: 0; }
.catgroup + .catgroup { margin-top: var(--sp-5); }

/* ---------- The app-sent invites ---------- */
.sms-note { margin-top: var(--sp-2); }

@media (min-width: 900px) {
  .part + .part { margin-top: var(--sp-8); }
  #edit-form .savebar { margin-left: 0; margin-right: 0; padding: var(--sp-3) var(--sp-4); border: var(--bw-hair) solid var(--glass-edge); border-radius: var(--radius); bottom: var(--sp-4); }
  #edit-form .savebar .btn { flex: 0 0 auto; }
}

@media (max-width: 349px) {
  .facts.grouped > div { grid-template-columns: minmax(0, 1fr); }
}

.tel { white-space: nowrap; }
.sms-preview { margin-top: var(--sp-6); }
.attest { margin-top: var(--sp-5); }

/* ====================== The QR card and the admin page (design/extra.css) ====================== */

/* ---------- The QR card: the host's invitation, on paper ---------- */
.card-tools .field { margin-top: 0; }
.card-tools .btn-row { margin-top: var(--sp-5); }
.card-tools .fine { margin-top: var(--sp-3); }
.card-msg { max-width: var(--w-text); }
.card-msg .question + p { margin-top: var(--sp-3); }
.card-msg .btn-row { margin-top: var(--sp-5); }

/* the card itself: square, with an ink edge to cut along */
.qcard {
  width: 100%;
  max-width: 32.5rem;
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-5);
  border: var(--bw) solid var(--on-surface);
  background: var(--surface-raised);
  color: var(--on-surface);
  text-align: center;
}
.qcard-from { font-size: var(--fs-lead); font-weight: var(--fw-semibold); line-height: var(--lh-ui); overflow-wrap: anywhere; }
.qcard-title {
  margin-top: var(--sp-2);
  font-family: var(--font-display);
  font-variation-settings: var(--fvs-title);
  font-weight: var(--fw-bold);
  font-size: var(--fs-title);
  line-height: var(--lh-title);
  letter-spacing: var(--ls-title);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.qcard-facts { margin-top: var(--sp-4); display: grid; gap: var(--sp-1); font-size: var(--fs-lead); line-height: var(--lh-ui); text-wrap: pretty; }
.qcard-line { margin-top: var(--sp-4); font-size: var(--fs-lead); font-weight: var(--fw-bold); line-height: var(--lh-ui); overflow-wrap: anywhere; }
.qr { display: block; width: min(100%, 18.75rem); height: auto; margin: var(--sp-5) auto 0; color: var(--on-surface); }
.qcard-scan { max-width: 24rem; margin: var(--sp-4) auto 0; text-wrap: pretty; }
.qcard-scan b { font-weight: var(--fw-bold); }
.qcard-url { margin-top: var(--sp-2); font-size: var(--fs-small); color: var(--on-surface-muted); word-break: break-all; }
.qcard-url b { color: var(--on-surface); font-weight: var(--fw-semibold); }
.skel .s-qr { width: min(100%, 18.75rem); height: auto; aspect-ratio: 1; margin: var(--sp-3) auto 0; border-radius: 0; }
.skel.centered i { margin-left: auto; margin-right: auto; }

/* Printed: black on the paper itself. No bar, no head, no buttons, no footer, no glass, no background. */
@media print {
  @page { margin: 0.5in; }
  html { color-scheme: light; }
  body, .paper { background: none; color: #000; }
  .top, .head, .foot, .no-print { display: none !important; }
  .paper { padding: 0; }
  .paper .wrap { max-width: none; padding: 0; }
  .cols.form { display: block; }
  .qcard { border-color: #000; background: none; color: #000; break-inside: avoid; }
  .qcard-url, .qcard-url b, .qr { color: #000; }
}

/* ---------- Admin: one operator at a desk, so dense ---------- */
.adm-jump { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin-top: var(--sp-2); }
.adm-jump a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--text); font-size: var(--fs-small); font-weight: var(--fw-medium); }
.adm-cols { display: grid; gap: var(--sp-7); }
.adm-cols > * { min-width: 0; }
.adm-state { font-size: var(--fs-lead); font-weight: var(--fw-bold); line-height: var(--lh-ui); }
.adm-act { margin-top: var(--sp-3); }
.adm-act + .fine { margin-top: var(--sp-2); max-width: var(--w-text); }
.sec-head + .fine { margin-top: var(--sp-2); }

/* label and value rows inside a group, at desk height */
.group.dense .row { min-height: var(--tap); padding-top: var(--sp-1); padding-bottom: var(--sp-1); }
.kv { margin-top: var(--sp-3); }
.kv dt { min-width: 0; }
.kv dd { flex: none; max-width: 60%; text-align: right; font-weight: var(--fw-semibold); white-space: pre-line; font-variant-numeric: tabular-nums; }
.kv code, .id { font-family: var(--font-mono); font-size: var(--fs-fine); font-weight: var(--fw-regular); }

/* ids: one tap selects the whole id, ready to paste into Stripe */
.id { user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; word-break: break-all; }
.ids { display: grid; gap: var(--sp-1); }
.ids span { color: var(--on-surface-muted); }
.ids .id { color: var(--on-surface); }

/* tables: real columns, right-aligned tabular figures at the fine size */
.tscroll { margin-top: var(--sp-3); overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-fine); line-height: var(--lh-ui); font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: var(--sp-2) var(--sp-3); border-bottom: var(--bw-hair) solid var(--border-surface); text-align: right; vertical-align: top; white-space: nowrap; }
.tbl thead th { font-weight: var(--fw-semibold); color: var(--on-surface-muted); border-bottom-color: var(--border-mid); }
.tbl :is(th, td):first-child { padding-left: 0; text-align: left; }
.tbl :is(th, td):last-child { padding-right: 0; }
.tbl tbody th { font-weight: var(--fw-semibold); color: var(--on-surface); white-space: normal; }
.tbl .t-text { text-align: left; }
.tbl .t-wrap { white-space: normal; min-width: 10rem; overflow-wrap: anywhere; }
.tbl .tag { display: block; font-weight: var(--fw-regular); color: var(--warning); }
.tbl .tag.off { color: var(--danger); }
/* a wide table keeps its first column in view while the rest scrolls under it */
.tbl.wide :is(th, td):first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); padding-right: var(--sp-3); border-right: var(--bw-hair) solid var(--border-surface); }

/* plain ruled lists: admin actions, flags, refunds */
.adm-list { margin-top: var(--sp-3); border-top: var(--bw-hair) solid var(--border-surface); }
.adm-list li { padding: var(--sp-2) 0; border-bottom: var(--bw-hair) solid var(--border-surface); }
.adm-list b { font-weight: var(--fw-semibold); overflow-wrap: anywhere; }
.adm-list .fine { display: block; }
.adm-list .ids { margin-top: var(--sp-1); font-size: var(--fs-fine); }
.adm-none { margin-top: var(--sp-2); color: var(--on-surface-muted); }

/* search: the field and its button on one line */
.adm-find { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-2) var(--sp-3); align-items: end; margin-top: var(--sp-3); }
.adm-find .field { margin-top: 0; }
.adm-find input { min-height: var(--btn); }
.adm-pick .row-label { overflow-wrap: anywhere; }
.adm-pick .row-sub { font-size: var(--fs-fine); }
.group > li > .row.is-selected { background: var(--surface-2); }
.adm-detail { margin-top: var(--sp-5); }
.adm-detail h3 { font-size: var(--fs-lead); font-weight: var(--fw-bold); line-height: var(--lh-ui); overflow-wrap: anywhere; }
.adm-detail .btn-row { margin-top: var(--sp-4); }

/* the pause sheet: what it stops, in a solid group */
.stops { padding: var(--sp-1) var(--sp-4); }
.stops li { padding: var(--sp-2) 0; }
.stops li + li { border-top: var(--bw-hair) solid var(--border-surface); }
.big-num { font-family: var(--font-display); font-variation-settings: var(--fvs-title); font-weight: var(--fw-bold); font-size: var(--fs-section); font-variant-numeric: tabular-nums; }

@media (min-width: 1180px) {
  .adm-cols { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); column-gap: var(--sp-8); align-items: start; }
}

/* a payment's date sits under its name, so the ids get the width */
.tbl .when { display: block; font-weight: var(--fw-regular); color: var(--on-surface-muted); white-space: nowrap; }
.tbl .t-ids { white-space: normal; min-width: 15rem; }
.tbl .t-ids .id { white-space: nowrap; word-break: normal; overflow-wrap: normal; }

/* ====================== Rules the states needed (design/states.css) ====================== */

/* ---------- Guest page ---------- */
/* the typed number sits inside the reminder group, under the two number choices */
.reminder .field.reminder-phone { margin-top: 0; padding: var(--sp-3) var(--sp-4) var(--sp-4); border-top: var(--bw-hair) solid var(--border-surface); }
/* a failed claim sits at the top of the list, where the eye already is */
.claim-error { margin-top: var(--sp-3); }
.texts-off p[role="status"] { max-width: var(--w-text); }
.texts-off .list-foot { margin-top: var(--sp-2); }

/* ---------- Join: a name tapped and waiting ---------- */
button.row[disabled] { color: var(--on-surface-muted); cursor: default; }
button.row[disabled]:hover { background: none; }
button.row[aria-busy="true"] { color: var(--on-surface); background: var(--surface-2); }
button.row[aria-busy="true"]:hover { background: var(--surface-2); }
.row .row-end.busy { font-size: var(--fs-small); color: var(--on-surface); }

/* the hidden hint before it would otherwise take the gap under the heading */
.sec-list .cant-note { margin-top: var(--sp-3); }

/* ---------- New event: starting from a template (#template) ---------- */
.tpl-part { margin-top: var(--sp-7); }
.tpl-part .sec-head + .hint { margin-top: var(--sp-2); }
.edit-head { display: grid; grid-template-columns: minmax(0, 1fr) 4.5rem auto; gap: var(--sp-2); margin-top: var(--sp-4); font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--on-surface-muted); }
.edit-list { border-top: var(--bw-hair) solid var(--border-surface); }
.edit-row { display: grid; grid-template-columns: minmax(0, 1fr) 4.5rem auto; align-items: center; gap: var(--sp-2); padding: var(--sp-2) 0; border-bottom: var(--bw-hair) solid var(--border-surface); }
.edit-row textarea { min-height: var(--control); resize: none; overflow-wrap: anywhere; field-sizing: content; }
/* the app grows each box to its words (new.js:159-163); field-sizing draws the same here */
.edit-head span:last-child { grid-column: 2 / span 2; }
.edit-row .btn.plain { justify-self: end; white-space: nowrap; }
.tpl-part .cat .list-foot { margin-top: var(--sp-2); }
.check label small.tel { display: inline; font-size: var(--fs-small); font-weight: var(--fw-regular); color: var(--on-surface-muted); }
.spam-failed { margin-top: var(--sp-4); }
@media (max-width: 349px) {
  .edit-head, .edit-row { grid-template-columns: minmax(0, 1fr) 4.5rem; }
  .edit-row .btn.plain { grid-column: 1 / -1; justify-self: start; }
  .edit-head span:last-child { grid-column: 2; }
}
/* #unverified: the confirm-your-email step, then the form */
.verify-step { margin-bottom: var(--sp-6); padding-bottom: var(--sp-5); border-bottom: var(--bw-hair) solid var(--border-surface); }
.verify-step .list-foot + .hint { margin-top: var(--sp-3); }

/* ---------- Event page ---------- */
/* a notice under the title: on hold, or the save offer after the party */
.head-notice { margin-top: var(--sp-4); max-width: var(--w-text); }
.head-notice .btn-row { margin-top: var(--sp-3); }
.head-notice .btn.plain { color: var(--on-surface); text-decoration: underline; text-underline-offset: var(--bw-heavy); }
/* reminder texts wait on the host's email: a raised box at the end of the guest list */
.verify-box { margin-top: var(--sp-6); padding: var(--sp-4); border-radius: var(--radius); background: var(--surface-raised); }
.verify-box h3 { font-size: var(--fs-lead); font-weight: var(--fw-bold); line-height: var(--lh-ui); }
.verify-box > * + * { margin-top: var(--sp-3); }
.verify-box .spam { margin-top: var(--sp-3); }
.group.link-off .row { color: var(--accent-ink); font-weight: var(--fw-semibold); border-top: var(--bw-hair) solid var(--border-surface); }

/* ---------- My events: a template's name open for editing ---------- */
.rename-form { display: grid; gap: var(--sp-2); width: 100%; }
.rename-form .field { margin-top: 0; }

/* ---------- Helper ---------- */
.plan-ticks { margin-top: var(--sp-3); }
.plan-ticks .group-note + .check { border-top: 0; }
.plan-ticks > .check + .group-note { border-top: var(--bw-hair) solid var(--border-surface); }
.turn-pair { margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: var(--bw-hair) solid var(--border-surface); }
.turn-body .dash { padding-left: var(--sp-5); list-style: disc; }
.turn-body .dash li + li { margin-top: var(--sp-2); }
.paybox .paybox-sub { font-size: var(--fs-lead); font-weight: var(--fw-bold); line-height: var(--lh-ui); }

/* ---------- App-sent invites ---------- */
.ai-result { margin-bottom: var(--sp-5); }
.ai-result p + p { margin-top: var(--sp-2); }

/* ====================== Reading pages and the sample (design/legal.css) ====================== */

/* ---------- The sample banner: a .notice set on the teal top, above the invitation ---------- */
.sample-top { margin-bottom: var(--sp-5); }
.sample-top .notice { max-width: var(--w-notice); }
/* the sample has no bring list, so its answer keeps the guest page's left-column width at a computer */
.sample-answer { max-width: var(--w-form); }

/* ---------- Reading text: one column on paper, no groups, no cards ---------- */
.legal-grid { display: grid; gap: var(--sp-5); }
.legal-grid > * { min-width: 0; }
.legal-text { max-width: var(--w-text); font-size: var(--fs-body); line-height: var(--lh-body); }
.legal-text > * + * { margin-top: var(--sp-3); }
.legal-text h2 {
  margin-top: var(--sp-7);
  font-family: var(--font-text);
  font-size: var(--fs-section);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-section);
}
.legal-text > h2:first-child { margin-top: 0; }
.legal-text h2 + * { margin-top: var(--sp-3); }
.legal-text ul { padding-left: var(--sp-5); list-style: disc; }
.legal-text li + li { margin-top: var(--sp-2); }
.legal-text li::marker { color: var(--on-surface-muted); }
.legal-text b { font-weight: var(--fw-semibold); }
.legal-text a { color: var(--accent-ink); font-weight: var(--fw-semibold); }
.legal-text a:hover { text-decoration-thickness: var(--bw); }

/* ---------- On this page: the page's own h2s ---------- */
.toc-label { font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--on-surface-muted); }
.toc ol { margin-top: var(--sp-2); border-top: var(--bw-hair) solid var(--border-surface); }
.toc li { border-bottom: var(--bw-hair) solid var(--border-surface); }
.toc a { display: flex; align-items: center; min-height: var(--tap); padding: var(--sp-1) 0; font-size: var(--fs-small); line-height: var(--lh-ui); text-decoration: none; color: var(--on-surface); }
.toc a:hover { color: var(--accent-ink); text-decoration: underline; }
/* on a phone the list folds away above the text */
.toc-fold { border-top: var(--bw-hair) solid var(--border-surface); border-bottom: var(--bw-hair) solid var(--border-surface); }
.toc-fold summary { display: flex; align-items: center; min-height: var(--tap); font-weight: var(--fw-semibold); cursor: pointer; }
.toc-fold summary:hover { color: var(--accent-ink); }
.toc-fold ol { margin-top: 0; border-top: 0; }
.toc-fold li:last-child { border-bottom: 0; }

@media (min-width: 900px) {
  .legal-grid { grid-template-columns: minmax(0, 15rem) minmax(0, var(--w-text)); column-gap: var(--sp-8); align-items: start; }
  .legal-grid.single { grid-template-columns: minmax(0, var(--w-text)); }
  .toc { position: sticky; top: calc(var(--bar) + var(--sp-5)); }
}

/* the fold's cue: the words Show and Hide are in the markup, and the open state picks one */
.toc-fold summary { justify-content: space-between; gap: var(--sp-4); list-style: none; }
.toc-fold summary::-webkit-details-marker { display: none; }
.toc-cue { font-size: var(--fs-small); color: var(--accent-ink); }
.toc-fold .when-open, .toc-fold[open] .when-closed { display: none; }
.toc-fold[open] .when-open { display: inline; }

/* ---------- The app's own pieces (not in the mockups' stylesheets) ---------- */
/* A load error sits straight on the teal page, outside any group (QA pass 2, m3): the paper's
   --danger would fail there (2.1:1), so it takes the teal ground's pair. */
.page > .wrap > .form-error { color: var(--danger-on-bg); border-color: var(--danger-on-bg); }
/* inside a whole-page message the same line reads as the page's own words, as the mockups draw it */
.notice-page > .wrap > .form-error { padding: 0; border: 0; color: inherit; font-weight: var(--fw-regular); }
.notice-page .question + .form-error { margin-top: var(--sp-3); max-width: var(--w-text); }
/* it takes focus only so a screen reader starts there; it is not a control, so it draws no ring */
.notice-page > .wrap > .form-error:focus-visible { outline: 0; }
/* a field in error: the app marks it with aria-invalid (lib.js showApiError), the mockups with .is-invalid */
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); border-width: var(--bw); }
/* the last four digits in "Use my number ending 0123" (the mockups' b.num; the markup is pinned by test/worker/sample.test.ts) */
.reminder-number .pick-text b { font-variant-numeric: tabular-nums; }
.reminder > .field-error { padding: 0 var(--sp-4) var(--sp-3); }
/* with a private guest list there is no "Who else is coming" over the texts-off line */
#others[hidden] + .texts-off { margin-top: 0; }
/* a sheet locks the page behind it (public/js/lib.js openSheet) */
html.sheet-open, html.sheet-open body { overflow: hidden; }
.sheet { overscroll-behavior: contain; }
.sheet-head h2 { min-width: 0; overflow-wrap: anywhere; }
.sheet-head h2:focus-visible { outline: 0; }
/* Cloudflare draws its own box for the spam check; this keeps its place while it loads */
.turnstile { margin-top: var(--sp-4); min-height: 65px; }

/* ---------- The event page's shapes and views (public/event.html) ---------- */
/* the event, and each long job swapped in under the bar, fill the page between the bar and the footer */
.view { flex: 1; display: flex; flex-direction: column; }
/* answers coming in: the sections are the grid's own items (the three columns place them);
   just made, unpaid or canceled: two stacked columns */
.cols.host > .col { display: contents; }
.cols.join > .col:empty { display: none; }
/* an empty list or guest list: its sentence sits under the section's rule like the lists do */
#list-empty, #guests-empty { margin-top: var(--sp-3); }
/* the price words on the unpaid panel read as one line of fine print, as on /new */
#unpaid-offer p { display: inline; font-size: inherit; }
#unpaid-offer p + p::before { content: " "; }
/* the newest exchange with the helper is ruled off from the one before; the first has no rule */
#ask-out > .turn-pair:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* /auth's "Ask for a new link" sits in this row (its markup is pinned by test/worker/pages.test.ts) */
.actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
