:root {
  --paper: #ffffff;
  --wash: #f3f3f2;
  --card: #ffffff;
  --ink: #161616;
  --muted: #5c5c5c;
  --line: #e6e6e6;
  --blush: #c45c52;
  --ok: #3f7a4a;
  --wm-cap: 20px;
  /* Icon-8 v1 tile: page body is 19/32 of the square, matched to cap height. */
  --mark: calc(var(--wm-cap) * 32 / 19);
  --lockup-gap: calc(var(--mark) * 0.5);
  --lockup-clear: calc(var(--mark) * 0.5);
}

/* Wordmark C (FestalbumSpikeWeb.Brand, brand/BRAND_NOTES.md). Outlined SVG, fixed
   cap height; clear space = --wm-cap on every side when C is alone (OG). Header
   uses the Icon-8 v1 silhouette + C lockup (never a terracotta tile / apple-touch
   chip): mark tile = cap × 32/19, gap 0.5× desktop / 0.45× mobile. Light: ink.
   Dark / over-photo: paper. */
.wordmark { display: block; width: fit-content; }
.wordmark img { display: block; width: auto; height: calc(var(--wm-cap) * 1.048); }
.lockup {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: var(--lockup-gap);
  width: fit-content;
  flex-shrink: 0;
  color: #1F1F1D;
}
.lockup--paper { color: #F2F0EC; }
.lockup-mark {
  display: block;
  flex: none;
  width: auto;
  height: var(--mark);
  max-width: none;
  /* Page-body mid (y 16.5 of 32) vs tile mid (y 16). Ribbon may hang below. */
  transform: translateY(calc(var(--mark) * (16 - 16.5) / 32));
}
@media (max-width: 480px) {
  :root { --wm-cap: 15px; --lockup-gap: calc(var(--mark) * 0.45); }
  .wordmark img { height: calc(var(--wm-cap) * 1.045); }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", sans-serif;
  line-height: 1.45;
}
.page {
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}
.page--market { width: min(920px, calc(100% - 2rem)); padding-top: 1rem; }
.page--hero { width: 100%; max-width: none; margin: 0; padding: 0; }
h1, h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
h1 { font-size: clamp(2rem, 7vw, 3.5rem); margin: 0.2rem 0 0.7rem; }
h2 { font-size: 1.35rem; margin: 0 0 0.7rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--blush);
  margin: 0;
}
.lede, .dust { color: var(--muted); font-size: 1.05rem; max-width: 36rem; }
.meta, .fine, .opt, .label { color: var(--muted); }
.fine { font-size: 0.85rem; }
.mono { font-family: ui-monospace, monospace; word-break: break-all; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.3rem;
  margin: 1.4rem 0;
}
.stack { display: grid; gap: 0.9rem; }
label { display: grid; gap: 0.35rem; font-size: 0.92rem; }
input[type="text"], input[type="date"], input:not([type]), input[type="search"] {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
}
.check { grid-template-columns: auto 1fr; align-items: center; }
button, a.ghost, a.cta {
  font: inherit;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
button[type="submit"], a.cta {
  background: var(--ink);
  color: var(--paper);
}
.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
.qr-preview { width: 180px; display: block; margin-top: 1rem; background: #fff; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin: 1rem 0 1.6rem;
}
.stats div {
  background: var(--wash);
  border-radius: 12px;
  padding: 0.8rem 0.5rem;
  text-align: center;
}
.stats strong { display: block; font-family: Fraunces, serif; font-size: 1.3rem; }
.stats span { font-size: 0.75rem; color: var(--muted); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.7rem;
}
.tile { margin: 0; background: var(--wash); border-radius: 10px; overflow: hidden; }
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--wash); }
.tile figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.55rem 0.55rem;
  font-size: 0.78rem;
  background: #fff;
}
.tile figcaption button {
  background: none;
  color: var(--muted);
  padding: 0;
  font-size: 0.75rem;
}
.tile.is-hidden { opacity: 0.45; }
.video { position: relative; display: block; }
.video .tile-kind {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  z-index: 4;
  background: transparent;
  color: #fff;
  border-radius: 0;
  padding: 0;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(31, 31, 29, 0.55);
}
.pickers { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.pick {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 0.7rem;
  text-align: center;
  background: #fff;
  cursor: pointer;
  min-height: 5.5rem;
  place-content: center;
}
.pick input { display: none; }
.pick strong { display: block; }
.pick span { font-size: 0.8rem; color: var(--muted); }
.pick-gallery { border-color: var(--ink); }
.queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.queue-chrome {
  margin: 0.9rem 0 0;
  padding: 0.75rem 0.8rem 0.7rem;
  background: #F4F4F1;
  border: 1px solid #E2E2DC;
  border-radius: 12px;
}
.queue-chrome[hidden] { display: none !important; }
.queue-batch {
  margin: 0 0 0.35rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #6B6560;
}
.queue-batch[hidden] { display: none !important; }
.queue-hint {
  margin: 0 0 0.6rem;
  font-size: 0.88rem;
  line-height: 1.4;
  font-weight: 500;
  color: #1F1F1D;
}
.queue-hint[hidden] { display: none !important; }
.queue-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  min-height: 56px;
  background: #F7F3EB;
  border: 1px solid #E8E4DF;
  border-radius: 10px;
  padding: 0.45rem 0.5rem 0.45rem 0.45rem;
}
.queue-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  color: var(--muted);
}
.queue-thumb img { width: 100%; height: 100%; object-fit: cover; }
.queue-meta { min-width: 0; }
.queue-meta strong {
  display: block;
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.queue-sub {
  display: block;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #6B6560;
  font-variant-numeric: tabular-nums;
}
.queue-sub .size { color: #6B6560; font-weight: 400; }
.queue-sub .count { color: #1F1F1D; font-weight: 600; }
.queue-sub .pct { color: #1F1F1D; font-weight: 500; }
.queue-sub .nowrap { white-space: nowrap; }
.queue-note {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  line-height: 1.35;
  font-weight: 600;
  color: #1F1F1D;
}
.bar { height: 4px; background: #E2E2DC; border-radius: 99px; margin-top: 0.4rem; }
.bar > i { display: block; height: 100%; width: 0; background: #1F1F1D; border-radius: 99px; transition: width .3s ease; }
@media (prefers-reduced-motion: reduce) { .bar > i { transition: none; } }
.queue-item[data-state="uploading"] .queue-sub { color: #1F1F1D; font-weight: 500; }
.queue-item[data-state="queued"] .bar > i { width: 0 !important; }
.queue-item[data-state="offline"] .queue-sub,
.queue-item[data-state="retry"] .queue-sub,
.queue-item[data-state="paused"] .queue-sub { color: #6B6560; font-weight: 500; }
.queue-item[data-state="offline"] .bar > i,
.queue-item[data-state="retry"] .bar > i,
.queue-item[data-state="paused"] .bar > i { background: #6B6560; }
.queue-item[data-state="done"] .queue-sub { color: #1F1F1D; }
.queue-item[data-state="done"] .bar { display: none; }
.queue-sub .tick { width: 12px; height: 12px; vertical-align: -1px; margin-right: 4px; }
.queue-item[data-state="error"] .queue-sub { color: #8B3A2E; font-weight: 500; white-space: normal; }
.queue-item[data-state="error"] .bar { display: none; }
.queue-item[data-state="error"] .queue-retry { display: none !important; }
.queue-retry, .queue-cancel, .queue-remove { display: none; padding: 0.4rem 0.7rem; font-size: 0.78rem; }
.queue-actions { display: grid; gap: 0.25rem; justify-items: end; }
.queue-cancel, .queue-remove {
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.6rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: #6B6560;
  font-size: 0.82rem;
  font-weight: 500;
  align-items: center;
  justify-content: center;
}
.queue-cancel:hover, .queue-remove:hover { color: #1F1F1D; }
.queue-cancel:focus-visible, .queue-remove:focus-visible { outline: 2px solid #1F1F1D; outline-offset: 2px; }
.queue-item[data-state="queued"] .queue-cancel,
.queue-item[data-state="uploading"] .queue-cancel,
.queue-item[data-state="offline"] .queue-cancel,
.queue-item[data-state="retry"] .queue-cancel,
.queue-item[data-state="paused"] .queue-cancel { display: inline-flex; }
.queue-item[data-state="error"] .queue-remove { display: inline-flex; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fresh-bar {
  position: sticky;
  bottom: 0.8rem;
  z-index: 8;
  display: none;
  width: 100%;
  margin: 0.8rem 0 0;
  border: 0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
}
.fresh-bar:not([hidden]) { display: block; }
.empty { color: var(--muted); }
.table-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2rem 1.4rem;
  text-align: center;
}
.table-card img { width: min(260px, 70vw); margin: 1rem auto; display: block; }
.print-actions { text-align: center; }
.btn-print {
  font-weight: 500;
  padding: 0.75rem 1.4rem;
  min-height: 44px;
  min-width: 7.5rem;
  background: var(--ink);
  color: var(--paper);
  margin: 1.15rem auto 0;
}
.print-hint { text-align: center; color: var(--muted); margin: 1.1rem 0 0; font-size: 0.95rem; }

body:has(.page--karte) { background: var(--wash); }
.page--karte { width: min(26.5rem, calc(100% - 1.5rem)); padding-top: 1.4rem; }
.karte-preview {
  --karte-paper: #F7F3EE;
  --karte-plate: #FFFFFF;
  --karte-ink: #1C1917;
  --karte-accent: #C45C4A;
  --karte-muted: #6B6560;
  --karte-display: "Fraunces", Georgia, serif;
  background: var(--karte-paper);
  padding: 1.15rem 1rem 1.35rem;
  border-radius: 4px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.karte-preview[data-theme="klassik"] {
  --karte-paper: #F7F3EE;
  --karte-plate: #FFFFFF;
  --karte-ink: #1C1917;
  --karte-accent: #C45C4A;
  --karte-muted: #6B6560;
  --karte-display: "Fraunces", Georgia, serif;
}
.karte-preview[data-theme="weinberg"] {
  --karte-paper: #F5EFE6;
  --karte-plate: #FFFCFA;
  --karte-ink: #2A1810;
  --karte-accent: #7A2E3A;
  --karte-muted: #6E5A52;
  --karte-display: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
}
.karte-preview[data-theme="garten"] {
  --karte-paper: #F4F6F1;
  --karte-plate: #FFFFFF;
  --karte-ink: #1F2A1C;
  --karte-accent: #5B6B45;
  --karte-muted: #5F6658;
  --karte-display: "Libre Baskerville", "Palatino Linotype", Palatino, serif;
}
.karte-preview[data-theme="mitternacht"] {
  --karte-paper: #F2F0EC;
  --karte-plate: #FFFFFF;
  --karte-ink: #12141A;
  --karte-accent: #3D4F6F;
  --karte-muted: #5A5E66;
  --karte-display: "Playfair Display", "Times New Roman", Times, serif;
}
.page--karte .table-card {
  background: var(--karte-plate);
  border: 0;
  border-radius: 6px;
  color: var(--karte-ink);
  padding: 2.1rem 1.35rem 1.7rem;
}
.page--karte .table-card .eyebrow { color: var(--karte-accent); }
.page--karte .table-card h1 {
  font-family: var(--karte-display);
  color: var(--karte-ink);
  margin: 0.15rem 0 0.45rem;
  font-size: clamp(1.65rem, 7.2vw, 2.2rem);
  line-height: 1.12;
}
.page--karte .table-card .meta,
.page--karte .table-card .lede,
.page--karte .table-card .fine {
  color: var(--karte-muted);
  font-family: "Source Sans 3", sans-serif;
}
.page--karte .table-card .lede { margin: 0.35rem 0 0.45rem; }
.page--karte .table-card .fine {
  font-size: 0.78rem;
  word-break: break-all;
  margin: 0;
}
.page--karte .qr-well {
  display: inline-block;
  background: #fff;
  margin: 0.85rem auto 0.35rem;
  padding: 0.35rem;
}
.page--karte .table-card img {
  width: min(220px, 62vw);
  margin: 0;
  display: block;
  background: #fff;
}
.karte-chrome { margin-top: 1.35rem; }
.karte-themes-label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 0 0.7rem;
}
.karte-themes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0;
}
.karte-themes button.theme-pill {
  width: 100%;
  min-height: 44px;
  padding: 0.45rem 0.55rem;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 500;
  border: 1.5px solid transparent;
  background: #fff;
  color: var(--ink);
}
.theme-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex: none;
}
.karte-themes button.theme-pill--klassik { background: #F7F3EE; color: #1C1917; border-color: #E4DDD6; }
.karte-themes button.theme-pill--klassik .theme-dot { background: #C45C4A; }
.karte-themes button.theme-pill--klassik.is-selected { background: #fff; border-color: #C45C4A; }
.karte-themes button.theme-pill--weinberg { background: #F5EFE6; color: #2A1810; border-color: #E6D9CB; }
.karte-themes button.theme-pill--weinberg .theme-dot { background: #7A2E3A; }
.karte-themes button.theme-pill--weinberg.is-selected { background: #FFFCFA; border-color: #7A2E3A; }
.karte-themes button.theme-pill--garten { background: #F4F6F1; color: #1F2A1C; border-color: #DCE3D4; }
.karte-themes button.theme-pill--garten .theme-dot { background: #5B6B45; }
.karte-themes button.theme-pill--garten.is-selected { background: #fff; border-color: #5B6B45; }
.karte-themes button.theme-pill--mitternacht { background: #F2F0EC; color: #12141A; border-color: #DDDCE0; }
.karte-themes button.theme-pill--mitternacht .theme-dot { background: #3D4F6F; }
.karte-themes button.theme-pill--mitternacht.is-selected { background: #fff; border-color: #3D4F6F; }
.url { font-size: 0.95rem; word-break: break-all; margin: 0.3rem 0 0; }

.market-nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.market-nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.hero-stage {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin: 0 0 1.6rem;
  background: #fff;
}
#hero { display: block; width: 100%; height: min(52vh, 460px); }
.hero-copy { padding: 1.6rem 1.4rem 1.8rem; }
.cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  margin: 1.1rem 0 0;
}
.case {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  color: inherit;
  text-decoration: none;
  background: #fff;
}
.case strong { display: block; font-family: Fraunces, serif; font-size: 1.15rem; margin-bottom: 0.25rem; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-top: 1.2rem;
}
.steps div {
  background: var(--wash);
  border-radius: 12px;
  padding: 1rem;
}
.steps span {
  display: block;
  color: var(--blush);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.band { margin: 3rem 0; }
.objection { margin-top: 1rem; }
.split-aha {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.2rem;
  align-items: center;
}
.more-cases { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin-top: 1.4rem; }
.more-cases a { color: var(--muted); }

.requests { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.requests li { display: grid; gap: 0.35rem; }
.requests img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }

@media print {
  body, body:has(.page--karte) { background: white; }
  .print-hint, .print-actions, .btn-print, .market-nav,
  .karte-chrome, .karte-themes, .karte-themes-label { display: none !important; }
  .page, .page--karte { width: 100%; padding: 0; }
  .table-card { border: 0; }
  .karte-preview,
  .page--karte .table-card,
  .page--karte .qr-well,
  .page--karte .table-card img {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .karte-preview { border-radius: 0; }
}
@media (max-width: 640px) {
  .karte-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .cases, .steps, .split-aha { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

body:has(.page--app) { background: var(--wash); }
.page--app {
  width: min(760px, calc(100% - max(1.25rem, calc(2 * var(--lockup-clear)))));
  padding: max(0.9rem, var(--lockup-clear)) 0 max(3.2rem, env(safe-area-inset-bottom));
}
.page--app .mark { margin: 0; }
.app-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: max(var(--wm-cap), var(--lockup-clear));
  margin-bottom: max(1.4rem, var(--wm-cap), var(--lockup-clear));
}
.app-kicker { margin: 0; color: var(--muted); font-size: 0.82rem; }
.page--app .app-hero { margin: 0 0 1.2rem; }
.page--app .app-hero h1 {
  font-size: clamp(1.85rem, 7vw, 2.8rem);
  max-width: 16ch;
  margin: 0.15rem 0 0.45rem;
}
.page--app .app-hero .lede { margin: 0.4rem 0 0; font-size: 1.02rem; }
.page--app .card {
  border-radius: 16px;
  padding: 1.15rem 1.1rem 1.2rem;
  box-shadow: 0 1px 0 rgba(22,22,22,.03);
}
.page--app .pick {
  min-height: 6.2rem;
  border-radius: 14px;
  padding: 1.15rem 0.6rem;
}
.page--app .pick strong { font-family: Fraunces, Georgia, serif; font-weight: 550; }
.host-card { text-align: center; }
.host-card .qr-preview {
  width: min(220px, 62vw);
  margin: 0 auto 1rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.host-card .url { font-size: 0.88rem; }
.host-card .row { justify-content: center; }
.gallery-label {
  margin: 1.5rem 0 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dust, var(--muted));
}
.page--app .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
.page--app .tile {
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}
.page--app .tile img { aspect-ratio: 1; }
.page--app .tile figcaption {
  display: grid;
  gap: 0.15rem;
  padding: 0.45rem 0.5rem 0.5rem;
  align-items: start;
}
.page--app .tile-name {
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tile-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.45rem;
}
.page--app .tile-acts button {
  min-height: 40px;
  padding: 0.2rem 0;
  color: var(--blush);
}
.page--app .fresh-bar { bottom: max(0.8rem, env(safe-area-inset-bottom)); }
.page--app details.quiet summary {
  cursor: pointer;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.05rem;
  list-style: none;
}
.page--app details.quiet summary::-webkit-details-marker { display: none; }
.page--app details.quiet[open] summary { margin-bottom: 0.7rem; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  width: 100%;
  height: 100%;
  height: 100dvh;
  margin: 0;
  padding: 0;
  display: block;
  background: #000;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.lightbox[hidden] { display: none !important; }
.lightbox-stage {
  position: absolute;
  inset: 0;
  display: block;
  min-height: 0;
}
.lightbox-stage img,
.lightbox-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  background: #000;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.lightbox-stage video { pointer-events: auto; }
.lightbox-wait {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  margin: 0;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.lightbox-wait[hidden] { display: none !important; }
.lightbox-close,
.lightbox-cap,
.lightbox-acts {
  position: absolute;
  z-index: 4;
}
.lightbox-close {
  top: max(0.35rem, env(safe-area-inset-top));
  right: 0.35rem;
  z-index: 6;
  width: 52px;
  height: 52px;
  background: transparent;
  color: #fff;
  border: 0;
  border-radius: 0;
  font-size: 2rem;
  line-height: 1;
  padding: 0;
}
.lightbox-cap {
  left: 1rem;
  right: 1rem;
  bottom: calc(2.6rem + env(safe-area-inset-bottom));
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.05rem;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
  pointer-events: none;
}
.lightbox-acts {
  left: 0;
  right: 0;
  bottom: env(safe-area-inset-bottom);
  display: flex;
  justify-content: center;
}
.lightbox-acts .tile-acts {
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  overflow: visible;
}
.lightbox-acts button {
  background: transparent;
  color: rgba(255,255,255,.86);
  min-height: 44px;
}
body.is-lightbox,
html:has(body.is-lightbox) {
  overflow: hidden;
  overscroll-behavior: none;
}

@media (min-width: 640px) {
  .page--app .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

body:has(.page--guest) { background: #fff; }
.page--guest {
  width: 100%;
  max-width: none;
  padding: 0 0 max(2.4rem, env(safe-area-inset-bottom));
}
.page--guest .guest-head {
  width: min(34rem, calc(100% - max(1.6rem, calc(2 * var(--lockup-clear)))));
  margin: 0 auto;
  padding: max(1.15rem, var(--lockup-clear)) 0 0.4rem;
}
.page--guest .guest-head .mark { margin: 0 0 max(var(--wm-cap), var(--lockup-clear)); }
.page--guest h1 {
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  max-width: 12ch;
  margin: 0.35rem 0 0.25rem;
  line-height: 0.98;
}
.page--guest .lede {
  font-size: 1.08rem;
  max-width: 28rem;
  margin: 0.55rem 0 0;
}
.guest-send {
  width: min(34rem, calc(100% - 1.6rem));
  margin: 1.1rem auto 1.4rem;
}
.page--guest .guest-sign { font-size: 0.88rem; display: grid; gap: 0.35rem; }
.page--guest .guest-sign > label { display: inline; }
.page--guest .guest-sign-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0.4rem;
}
.page--guest .guest-sign input {
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding-left: 0;
  background: transparent;
  font-size: 16px;
}
#guest-name-done {
  display: none;
  background: transparent;
  color: var(--blush);
  border: 0;
  border-radius: 0;
  padding: 0.75rem 0.2rem;
  min-width: 3.4rem;
}
.guest-sign-row:focus-within #guest-name-done { display: inline-flex; }
.page--guest .pickers { gap: 0.55rem; }
.page--guest .pick {
  min-height: 0;
  border-radius: 14px;
  background: var(--wash);
  border: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 0.8rem;
}
.page--guest .pick svg { width: 22px; height: 22px; flex: none; }
.page--guest .pick-camera {
  background: var(--ink);
  color: #fff;
}
.page--guest .pick-camera span { color: rgba(255,255,255,.62); }
.page--guest .pick strong {
  font-family: "Source Sans 3", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}
.page--guest .guest-visibility {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #6B6560;
  max-width: 34rem;
}
.page--guest .guest-visibility b { color: #1F1F1D; font-weight: 600; }
.page--guest .guest-zip-row {
  display: flex;
  justify-content: flex-start;
  margin: 0.7rem 0 0;
  padding: 0.1rem 0 0;
  border-top: 1px dashed #e8e4df;
}
.page--guest a.ghost.guest-zip {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
}
.page--guest a.ghost.guest-zip:hover,
.page--guest a.ghost.guest-zip:focus-visible {
  color: var(--ink);
}
.page--guest .queue-chrome { margin-top: 0.9rem; }
.page--guest #status { margin: 0.6rem 0 0; color: #1F1F1D; font-size: 0.85rem; font-weight: 500; }
.page--guest .wall {
  width: 100%;
  margin: 0;
  gap: 3px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.page--guest .tile.print {
  position: relative;
  border: 0;
  border-radius: 0;
  background: #1a1a1a;
  overflow: hidden;
}
.page--guest .tile.print img {
  aspect-ratio: 1;
  transition: transform .7s ease;
}
.page--guest .tile.print:active img { transform: scale(1.03); }
.page--guest .tile.print figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 0.55rem 0.45rem;
  background: linear-gradient(transparent, rgba(10,8,7,.62));
  color: #fff;
  pointer-events: none;
}
.page--guest .tile-name {
  font-family: Fraunces, Georgia, serif;
  font-size: 0.82rem;
  color: #fff;
}
.page--guest .tile-acts {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.page--guest .guest-empty {
  grid-column: 1 / -1;
  margin: 2rem 1rem 1rem;
  text-align: center;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
  color: var(--muted);
}
.guest-foot {
  width: min(34rem, calc(100% - 1.6rem));
  margin: 2rem auto 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.guest-foot summary { cursor: pointer; }
.page--guest .fresh-bar {
  width: min(34rem, calc(100% - 1.6rem));
  margin: 0 auto 0.8rem;
}

@media (min-width: 640px) {
  .page--guest .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .page--guest .tile.print img { transition: none; }
}
