/* Layout. Uses only the tokens in theme.css; no colours or fonts here. */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--color-accent); text-underline-offset: 0.2em; }
img, video { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }

.wrap {
  max-width: 34rem;
  margin: 0 auto;
  padding: max(1.25rem, env(safe-area-inset-top)) var(--gutter) calc(3rem + env(safe-area-inset-bottom));
}
.wrap.wide { max-width: 72rem; }

.card {
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem 1.75rem;
}
@media (min-width: 30rem) { .card { padding: 2.75rem 2.5rem 2.25rem; } }

.sprig {
  position: absolute;
  top: -0.5rem;
  right: -1.25rem;
  width: 11rem;
  height: 11rem;
  color: var(--color-sprig);
  opacity: var(--sprig-opacity);
  pointer-events: none;
}
.sprig.small { width: 6.5rem; height: 6.5rem; top: -0.25rem; right: -0.5rem; }
.sprig svg { width: 100%; height: 100%; }

.masthead { position: relative; padding-right: 4.5rem; margin-bottom: 1.75rem; }
.masthead.small { padding-right: 3rem; margin-bottom: 1.25rem; }
.eyebrow, .label, .details, .section-title, .tab {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
}
.eyebrow { font-size: var(--size-label); color: var(--color-muted); margin: 0 0 1rem; line-height: 1.6; }
.names, .display {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  font-size: var(--size-names);
  line-height: 1.15;
  margin: 0;
}
.display { font-size: clamp(1.4rem, 6vw, 1.9rem); }
.script {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: var(--size-script);
  color: var(--color-accent);
  line-height: 1.1;
  margin: 0.35rem 0 0.75rem;
}
.details { font-size: var(--size-label); color: var(--color-muted); margin: 0; line-height: 1.8; }
/* The register page's line under the names: the place and the week. */
.tagline { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; line-height: 1.35; color: var(--color-muted); margin: 0.5rem 0 0; }
/* The camera page's line under "Hi {name}" that changes with the day. On the
   wedding day its first sentence is drawn in the script accent. */
.dayline { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.3; color: var(--color-accent); margin: 0.5rem 0 0; }
.dayline-lead { display: block; font-family: var(--font-script); font-weight: 400; font-size: clamp(1.9rem, 8.5vw, 2.3rem); line-height: 1.25; }
.dayline-rest { display: block; margin-top: 0.15rem; }
/* The camera page's stay line under the day line ("Your stay: ... · Change"),
   and its Change form. The masthead keeps room on the right for the sprig;
   the stay block, lower down, takes the full width back. Change is a real
   button drawn as an underlined link. */
.stay { margin: 0.6rem -3rem 0 0; }
.stay-line { margin: 0; font-size: 0.95rem; color: var(--color-muted); }
.link-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 0.2rem;
  font: 600 0.95rem/1.2 var(--font-body);
  color: var(--color-accent);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.stay-form {
  margin-top: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-small);
  background: var(--color-surface);
}
.stay-form .row { margin-top: 1rem; }
/* A chunk of the address that never breaks inside, so the postcode is never orphaned. */
.keep { white-space: nowrap; }
.lede { margin: 0.75rem 0 0; color: var(--color-muted); }
.section-title { font-size: 0.95rem; margin: 2rem 0 0.75rem; color: var(--color-text); }
.rule { border: 0; border-top: 1px solid var(--color-hairline); margin: 1.5rem 0; }

/* Forms */
.stack > * + * { margin-top: 1.1rem; }
.field { display: block; }
.field .label, fieldset legend { display: block; font-size: var(--size-label); margin-bottom: 0.45rem; color: var(--color-text); }
.req { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--color-muted); margin-left: 0.35rem; }
input[type="text"], input[type="datetime-local"], input[type="date"], input[type="time"], input[type="number"], select, textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 0.65rem 0.85rem;
  font: inherit;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-small);
}
textarea { min-height: 6rem; resize: vertical; }
/* iOS draws a date's value centred; keep it with the label. */
input[type="date"] { display: block; min-width: 0; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }
/* Check-in and check-out under the stay question: one above the other on a
   phone, side by side when there is room for each label on one line. Shown
   only after a Yes. */
.date-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.75rem 1rem; align-items: end; }
.date-pair .label { white-space: nowrap; }
.stay-dates .status { display: flex; margin-top: 0.6rem; }
.stay-dates input[aria-invalid="true"] { border-width: 2px; border-color: var(--color-bad); }
fieldset { border: 0; padding: 0; margin: 0; }
.choice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--tap);
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-small);
  background: var(--color-surface);
  margin-top: 0.5rem;
  cursor: pointer;
}
.choice input { width: 1.3rem; height: 1.3rem; margin: 0; accent-color: var(--color-button); flex: none; }
.field.inline { max-width: 22rem; }

/* Buttons */
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-height: var(--tap);
  padding: 0.6rem 1.25rem;
  font: 600 1.05rem/1.2 var(--font-body);
  color: var(--color-button-text);
  background: var(--color-button);
  border: 1px solid var(--color-button);
  border-radius: var(--radius-small);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.button.secondary { color: var(--color-accent); background: var(--color-surface); border-color: var(--color-hairline); }
.button.inline { width: auto; display: inline-flex; }
.button.small { min-height: 2.6rem; font-size: 0.95rem; padding: 0.4rem 0.9rem; }
.button[disabled], .button[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.button.big { min-height: var(--tap-big); font-size: 1.2rem; justify-content: flex-start; padding-left: 1.4rem; }
.button .icon svg { width: 1.6rem; height: 1.6rem; }
.capture { display: grid; gap: 0.8rem; margin: 1.5rem 0 0.5rem; }
.capture input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }

/* Icons and status words. Every state has its own shape AND its own words. */
.icon { display: inline-flex; flex: none; }
.icon svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.status { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; }
.status.done { color: var(--color-ok); }
.status.wait { color: var(--color-wait); }
.status.bad { color: var(--color-bad); }
.status.busy { color: var(--color-accent); }
.status.open { color: var(--color-muted); }
.status-line { min-height: 1.5em; margin: 0.75rem 0; font-weight: 600; }

/* Notes */
.note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--color-surface-tint);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-small);
  padding: 0.85rem 1rem;
  margin: 1rem 0;
}
.note p { margin: 0; }
.note .row { margin-top: 0.6rem; }

/* "Add to home screen": a sheet at the foot of the screen, after an upload.
   Each step is a number, a small drawing and words; the drawing points with
   an arrow and a ring (thicker strokes), colour only reinforces. */
.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  max-width: 34rem;
  max-height: 85vh;
  overflow-y: auto;
  margin: 0 auto;
  padding: 1.1rem var(--gutter) calc(1rem + env(safe-area-inset-bottom));
  background: var(--color-surface);
  border: 1px solid var(--color-hairline);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow);
  animation: sheet-up 0.3s ease-out;
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
.sheet-head { display: flex; align-items: center; gap: 0.85rem; }
.sheet-head img { width: 3rem; height: 3rem; border-radius: 0.75rem; flex: none; }
.sheet-title {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  font-size: 1.3rem;
  line-height: 1.2;
  margin: 0;
}
.sheet p { margin: 0.75rem 0 0; }
.sheet .row { margin-top: 1rem; }
.sheet .status { gap: 0.5rem; }
.steps { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.steps li { display: grid; grid-template-columns: 7rem 1fr; gap: 0.8rem; align-items: center; }
.steps.numbered li { grid-template-columns: 1.75rem 7rem 1fr; }
.steps li p { margin: 0; }
.step-no {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.95rem;
}
.illo { display: block; width: 7rem; height: 4.67rem; color: var(--color-muted); background: var(--color-surface-tint); border-radius: var(--radius-small); overflow: hidden; }
.illo svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.illo .mark { stroke: var(--color-button); stroke-width: 2.6; }
.illo .solid { fill: currentColor; stroke: none; }
.illo .faint { opacity: 0.4; }

/* Upload queue */
.summary { margin: 0.5rem 0 0.75rem; color: var(--color-muted); }
.summary .tally { gap: 0.3rem; vertical-align: bottom; }
/* "Your latest": one row of six square slots, each a link into the album.
   A video carries a play shape as well as its "Video" label. */
.recent { margin: 0 0 1rem; }
.recent-heading { font-size: var(--size-label); color: var(--color-muted); margin: 0 0 0.45rem; }
.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.strip a {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-surface-tint);
  color: var(--color-muted);
}
.strip img { width: 100%; height: 100%; object-fit: cover; }
.strip .play {
  position: absolute;
  left: 3px;
  bottom: 3px;
  display: grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--color-badge-bg);
  color: var(--color-badge-text);
}
.strip .play .icon svg { width: 0.75rem; height: 0.75rem; }
.queue { list-style: none; margin: 0; padding: 0; }
.queue li {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0;
  border-top: 1px solid var(--color-hairline);
}
.thumb {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 8px;
  object-fit: cover;
  background: var(--color-surface-tint);
  display: grid;
  place-items: center;
  color: var(--color-muted);
}
.thumb .icon svg { width: 1.5rem; height: 1.5rem; }
.meta { min-width: 0; }
.meta .name { font-size: 0.9rem; color: var(--color-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The fold line under a long queue: "and 8 more waiting" in words, then a
   real button, Show all with a chevron pointing down (Show fewer: up). */
.fold {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--color-hairline);
}
.fold-more { margin: 0; color: var(--color-muted); font-weight: 600; }
.fold .button { margin-left: auto; gap: 0.35rem; }
.fold .button .icon svg { width: 1.15rem; height: 1.15rem; transition: transform 0.2s ease; }
.fold .button[aria-expanded="true"] .icon svg { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .fold .button .icon svg { transition: none; } }
.bar { height: 4px; background: var(--color-surface-tint); border-radius: 2px; margin-top: 0.35rem; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--color-accent); transition: width 0.25s linear; }
@media (prefers-reduced-motion: reduce) { .bar > span { transition: none; } }

/* "Your place this week" on the camera page (the game, 15 Oct 2026): the
   place in words, the counts, a bar that only repeats the words beside it,
   who to pass next, and the newest badge with its own icon. The place uses
   the body face, whose figures read plainly. */
.place {
  margin: 1.5rem 0 0.5rem;
  padding: 1rem 1.1rem 1.1rem;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-small);
  background: var(--color-surface-tint);
}
.place .section-title { margin: 0 0 0.35rem; }
.place-rank { margin: 0; font-weight: 600; font-size: 1.45rem; line-height: 1.25; }
.place-stats { margin: 0.1rem 0 0; color: var(--color-muted); }
.place .bar { height: 8px; border-radius: 4px; margin-top: 0.65rem; background: var(--color-surface); }
.place-ahead { margin: 0.55rem 0 0; font-weight: 600; }
.place-note { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0.6rem 0 0; }
.place-note .icon { margin-top: 0.1rem; color: var(--color-accent); }
.place .row { margin-top: 0.9rem; }
.badge-icon svg { stroke-width: 1.6; }

/* "Who's snapping": the board. Places 1 to 3 wear a medal, a ring around
   the place in words; any other place is its number in words. The guest's
   own row is outlined (a thicker line all round) AND says You. */
.page-board .tabs { margin-top: 0.25rem; }
.board { margin-top: 0.5rem; }
.board th, .board td { padding: 0.5rem 0.4rem; vertical-align: middle; }
.board .col-place { width: 3.4rem; }
.board .col-num { width: 4.4rem; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.board .col-name { overflow-wrap: anywhere; }
.board tr.is-me td { background: var(--color-surface-tint); border-top: 2px solid var(--color-accent); border-bottom: 2px solid var(--color-accent); }
.board tr.is-me td:first-child { border-left: 2px solid var(--color-accent); }
.board tr.is-me td:last-child { border-right: 2px solid var(--color-accent); }
.medal {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 3px solid var(--color-gold);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
}
.medal-2 { border-color: var(--color-silver); }
.medal-3 { border-color: var(--color-bronze); }
.place-no { display: inline-block; width: 38px; text-align: center; font-weight: 600; }
.you {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.05rem 0.5rem;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 600;
  vertical-align: 0.1em;
}
.footnote { margin: 0.9rem 0 0; font-size: 0.9rem; color: var(--color-muted); }
.hint { margin: 0.25rem 0 0; font-size: 0.9rem; color: var(--color-muted); }
#board-off-note { align-items: center; }
/* "Leave me off the board": a real checkbox (role switch) drawn as a switch.
   Its knob sits left when off and right when on, so the state is a position
   as well as a colour; the words beside it say what it does. */
.board-switch { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--color-hairline); }
.switch { display: flex; align-items: center; gap: 0.75rem; min-height: var(--tap); font-weight: 600; cursor: pointer; }
.switch input {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  flex: none;
  width: 3.2rem;
  height: 1.9rem;
  margin: 0;
  border: 2px solid var(--color-muted);
  border-radius: 999px;
  background: var(--color-surface);
  cursor: pointer;
}
.switch input::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--color-muted);
  transition: transform 0.15s ease;
}
.switch input:checked { border-color: var(--color-button); background: var(--color-button); }
.switch input:checked::after { transform: translateX(1.3rem); background: var(--color-button-text); }
@media (prefers-reduced-motion: reduce) { .switch input::after { transition: none; } }
.board-switch .status { display: flex; margin-top: 0.5rem; }
/* The badges: earned ones are shaded with a solid ring, a tick and Earned;
   the rest have a dashed ring, an open ring and how far along they are. */
.badges-count { margin: 0; font-weight: 600; }
.badge-list { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.badge-item {
  display: grid;
  grid-template-columns: 2.9rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-small);
}
.badge-item.is-earned { background: var(--color-surface-tint); border-color: var(--color-accent); }
.badge-art { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border: 2px dashed var(--color-hairline); border-radius: 50%; color: var(--color-muted); }
.is-earned .badge-art { border-style: solid; border-color: var(--color-accent); color: var(--color-accent); }
.badge-art .icon svg { width: 1.55rem; height: 1.55rem; }
.badge-name { margin: 0; font-weight: 600; line-height: 1.3; }
.badge-about { margin: 0.1rem 0 0; font-size: 0.9rem; line-height: 1.35; color: var(--color-muted); }
.badge-about::first-letter { text-transform: uppercase; }
.badge-item .status { margin: 0; gap: 0.3rem; font-size: 0.9rem; white-space: nowrap; }

/* Album */
.day { margin-top: 2rem; }
.day-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; margin-bottom: 0.6rem; }
.day-head h2 { margin: 0; }
.day-head .date { color: var(--color-muted); font-size: 0.95rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
@media (min-width: 40rem) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 64rem) { .grid { grid-template-columns: repeat(6, 1fr); } }
.tile {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-surface-tint);
  color: var(--color-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  font: inherit;
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.badges { position: absolute; left: 4px; bottom: 4px; display: flex; flex-wrap: wrap; gap: 4px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--color-badge-bg);
  color: var(--color-badge-text);
}
.badge .icon svg { width: 0.9rem; height: 0.9rem; }
.tile.is-hidden img { opacity: 0.35; }
.tile.is-hidden { outline: 2px dashed var(--color-bad); outline-offset: -2px; }

/* Viewer */
.viewer { position: fixed; inset: 0; z-index: 10; background: var(--color-overlay); display: grid; grid-template-rows: auto 1fr; padding: env(safe-area-inset-top) 0.75rem env(safe-area-inset-bottom); }
.viewer .row { justify-content: flex-end; padding: 0.75rem 0; }
.viewer .stage { display: grid; place-items: center; min-height: 0; }
.viewer img, .viewer video { max-height: 82vh; max-width: 100%; object-fit: contain; border-radius: 4px; }
.viewer .kept { display: grid; gap: 0.75rem; justify-items: center; text-align: center; }
.viewer .kept img { max-height: 70vh; }
.viewer .kept .badge { font-size: 0.95rem; padding: 0.4rem 0.9rem; }

/* Admin */
.tabs { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; border-bottom: 1px solid var(--color-hairline); margin: 1rem 0; }
.tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: 0.75rem 0.25rem; font-size: 0.9rem; color: var(--color-muted); cursor: pointer; }
.tab[aria-selected="true"] { color: var(--color-text); border-bottom-color: var(--color-accent); text-decoration: underline; text-underline-offset: 0.45em; text-decoration-thickness: 1px; }
.admin-item { display: grid; gap: 0.35rem; font-size: 0.85rem; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1rem; }
.rename { display: flex; gap: 0.5rem; margin: 0.5rem 0 1rem; max-width: 28rem; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--color-hairline); vertical-align: top; }
th { font-family: var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-label); font-size: 0.78rem; }
/* Who's here each day: one block per day, the counts as its heading, then
   the names in words under "Staying" and "Leaving". */
.stay-days { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.stay-day { border-top: 1px solid var(--color-hairline); padding-top: 0.75rem; }
/* The counts in the body face, whose figures read plainly (the display
   face's old-style 1 looks like an I). */
.stay-day h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; margin: 0 0 0.35rem; }
.stay-day p { margin: 0.25rem 0 0; }
.stay-day .label { font-size: var(--size-label); color: var(--color-muted); margin-right: 0.6rem; }
/* Bans and hiding: one card per guest, flagged and banned guests first. A
   banned guest's card has a thicker border as well as the words. */
.guest-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1rem; margin-top: 0.75rem; }
.guest-card { display: grid; gap: 0.4rem; align-content: start; padding: 0.9rem 1rem; border: 1px solid var(--color-hairline); border-radius: var(--radius-small); }
.guest-card.is-banned { border-width: 3px; border-color: var(--color-bad); }
.guest-card h3 { margin: 0; font-family: var(--font-body); font-weight: 600; font-size: 1.1rem; }
.guest-card p { margin: 0; }
.guest-card .meta-line { color: var(--color-muted); font-size: 0.95rem; }
.guest-card .row { margin-top: 0.35rem; }
.qr { width: 15rem; height: 15rem; background: var(--color-qr-bg); padding: 0.5rem; border-radius: var(--radius-small); margin: 0.75rem 0; }
.url-line { font-weight: 600; word-break: break-all; }
.plain-list { padding-left: 1.2rem; }
.foot { margin-top: 2rem; text-align: center; }
.foot .script { font-size: 1.8rem; }
