:root {
  /* Default theme: midnight blue on ivory. Per-event branding overrides
     --primary/--secondary at runtime via applyTheme(). */
  --primary: #1c2a4d;
  --secondary: #c9a24b;
  --bg: #faf8f3;
  --text: #1c2a4d;
  --muted: #6b7488;
  --card: #ffffff;

  --on-primary: #ffffff; /* text/icon color on top of --primary */
  --ink: #1c2a4d;
  --label: #8a93a6;
  --placeholder: #9aa1b0;
  --line: rgba(28, 42, 77, 0.14);
  --line-strong: rgba(28, 42, 77, 0.22);
  --accent-ivory: #f3efe6;
  --shadow: 0 8px 20px rgba(28, 42, 77, 0.22);
  --radius: 14px;
  --radius-sm: 12px;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
}

.page-screen {
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  margin: 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.page-header {
  width: 100%;
  max-width: 520px;
  flex: none;
  display: grid;
  grid-template-columns: minmax(72px, 1fr) minmax(0, auto) minmax(72px, 1fr);
  align-items: center;
  gap: 8px;
  margin: 0 auto;
  padding: max(8px, env(safe-area-inset-top)) 20px 10px;
  background: var(--bg);
  z-index: 10;
}

.page-header__slot {
  min-width: 0;
  display: flex;
  align-items: center;
}
.page-header__slot--start { justify-content: flex-start; }
.page-header__slot--end { justify-content: flex-end; }
.page-header__title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-header__meta {
  max-width: 100%;
  overflow: hidden;
  color: var(--label);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-body {
  width: 100%;
  max-width: 520px;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.lang-select {
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: var(--card);
  color: var(--text);
}
.lang-row { display: flex; justify-content: flex-end; }

/* ---------- Join (Minimal · segmented code) ---------- */
.join {
  min-height: 100vh;
  justify-content: flex-start;
  gap: 0;
  padding: 56px 30px 46px;
}
.join .lang-row { margin-bottom: 20px; }
.brand-mark { color: var(--ink); margin-bottom: 32px; }
.join-title {
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -1px;
  margin: 0 0 14px;
}
.join-sub { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0 0 36px; }

.code-field { position: relative; display: block; margin-bottom: 28px; }
.code-cells { display: flex; gap: 9px; }
.code-cell {
  flex: 1;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
}
.code-cell.filled { background: var(--ink); color: #fff; border-color: var(--ink); }
.code-cell.active { border: 1.5px solid var(--ink); }
.code-cell.active::after {
  content: "";
  width: 2px;
  height: 26px;
  background: var(--ink);
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.code-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: transparent;
  caret-color: transparent;
  text-transform: uppercase;
  cursor: text;
}
.code-input:focus { outline: none; }

.code-input:focus { outline: none; }

.auth-buttons { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.auth-btn {
  height: 52px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.auth-btn-secondary { background: transparent; box-shadow: none; }
.auth-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.email-signin { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.email-field {
  display: flex;
  align-items: center;
  border-bottom: 1.5px solid var(--line-strong);
  padding: 0 2px 12px;
}
.email-field input {
  flex: 1;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  font-size: 17px;
  color: var(--ink);
}
.email-field input:focus { outline: none; }
.email-field input::placeholder { color: var(--placeholder); }
.auth-submit { height: 52px; border-radius: var(--radius); font-weight: 600; }
.auth-hint { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; text-align: center; }
.text-btn {
  border: none;
  background: none;
  color: var(--muted);
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 0;
  align-self: center;
}
.signed-in-as { color: var(--muted); font-size: 15px; margin: 0 0 8px; }

.join .error { text-align: left; }
.btn-join { height: 58px; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 14px; font-weight: 600; }
.scan-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
}

.screen {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

h1 { font-family: var(--font-serif); color: var(--primary); margin: 0 0 4px; }
.muted { color: var(--muted); margin: 0; }
.error { color: #c62828; min-height: 18px; margin: 0; }

input {
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 16px;
}

button { font-size: 16px; cursor: pointer; border-radius: 12px; border: none; }
.primary { background: var(--primary); color: var(--on-primary); padding: 14px; }
.primary:disabled { opacity: 0.5; }
.secondary { background: rgba(28, 42, 77, 0.06); color: var(--text); padding: 14px; }
.wide { width: 100%; }
.text-btn { background: transparent; color: var(--on-primary); }
.icon-btn { background: transparent; color: var(--on-primary); font-size: 22px; }

/* ---------- Home (List · native rows) ---------- */
.home { min-height: 100vh; gap: 0; padding: 14px 18px 30px; }
.home .lang-row { margin-bottom: 8px; }

.home-hero {
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 22px;
  padding: 24px 22px;
  margin-bottom: 18px;
}
.hero-crown { color: var(--accent-ivory); display: block; margin-bottom: 14px; }
.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
  min-height: 13px;
}
.hero-greeting { font-family: var(--font-serif); font-size: 28px; font-weight: 600; line-height: 1.1; }

.home-list { display: flex; flex-direction: column; gap: 10px; }
.home-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid rgba(28, 42, 77, 0.07);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(28, 42, 77, 0.05);
  color: var(--ink);
  transition: transform 0.08s ease, box-shadow 0.12s ease;
}
.home-row:not(.is-soon):active { transform: scale(0.99); }
.home-row:not(.is-soon):hover { box-shadow: 0 6px 16px rgba(28, 42, 77, 0.1); }
.row-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: rgba(28, 42, 77, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ink);
}
.row-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row-title { font-size: 16px; font-weight: 600; }
.row-sub { font-size: 13px; color: var(--muted); }
.row-chev { color: #c2c7d2; flex-shrink: 0; }

.home-row.is-soon {
  background: transparent;
  border: 1px dashed var(--line-strong);
  box-shadow: none;
  cursor: default;
}
.home-row.is-soon .row-icon { background: rgba(28, 42, 77, 0.03); color: var(--muted); }
.home-row.is-soon .row-title { color: var(--muted); }
.home-row.is-soon .row-sub { color: var(--placeholder); }
.soon-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 5px 10px;
  border-radius: 99px;
  flex-shrink: 0;
}

.home-leave {
  margin-top: 22px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 6px;
}

/* ---------- Booth (classic shutter) ---------- */
.booth {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  gap: 0;
  overflow: hidden;
  padding: 0 0 max(8px, env(safe-area-inset-bottom));
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: max(8px, env(safe-area-inset-top)) 20px 10px;
}
.review-header .page-header__title { font-size: 20px; }

.circle-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.stage {
  position: relative;
  flex: 1 1 0;
  align-self: center;
  min-height: 0;
  width: auto;
  max-width: calc(100% - 40px);
  margin: 0;
  aspect-ratio: 3 / 4;
  background: #0b0e16;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(28, 42, 77, 0.18);
}
#preview, .overlay, .review {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.overlay { pointer-events: none; }
.review { object-fit: contain; background: #0b0e16; }
.countdown-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(11, 14, 22, 0.18);
  font-family: var(--font-serif);
  font-size: clamp(82px, 28vw, 150px);
  font-weight: 600;
  line-height: 1;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.55);
}
.countdown-overlay.hidden { display: none; }

.booth-controls { flex: none; padding: 14px 20px 0; }
.booth-tabs {
  display: flex;
  gap: 4px;
  background: var(--accent-ivory);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 16px;
}
.booth-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 6px;
  border-radius: 999px;
}
.booth-tab.active {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(28, 42, 77, 0.12);
}
.chips {
  display: flex;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding: 0 0 12px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}
.chip-swatch {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #11141d;
  flex: none;
}

.intensity-row { display: flex; align-items: center; gap: 12px; padding: 0 0 16px; }
.intensity-row label { color: var(--muted); font-size: 13px; min-width: 56px; }
.intensity-row input[type="range"] { flex: 1; accent-color: var(--primary); }

.shutter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 18px 14px 6px;
}
.shutter-bar .circle-btn { width: 50px; height: 50px; }
.shutter {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  border: 3px solid var(--primary);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.08s ease;
}
.shutter:active { transform: scale(0.94); }
.shutter:disabled { cursor: default; opacity: 0.7; }
.shutter-inner { width: 60px; height: 60px; border-radius: 999px; background: var(--primary); }
.thumb {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--label);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.thumb-img { width: 100%; height: 100%; object-fit: cover; }

.row { display: flex; gap: 12px; }
.row > button { flex: 1; }

#reviewControls { padding: 0 20px; display: flex; flex-direction: column; gap: 12px; }
.review-caption { text-align: center; font-size: 12px; color: var(--placeholder); margin: 12px 0 4px; }
.btn-outline {
  height: 54px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}
.btn-soft {
  height: 54px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-icon { display: flex; align-items: center; justify-content: center; gap: 10px; }
#reviewControls .primary { height: 58px; border-radius: var(--radius); box-shadow: var(--shadow); }
#reviewControls .row { margin-top: 0; }
#boothStatus { text-align: center; }

@media (max-height: 700px) {
  .booth .page-header,
  .review-header { padding-top: max(4px, env(safe-area-inset-top)); padding-bottom: 8px; }
  .booth-controls { padding-top: 9px; }
  .booth-tabs { margin-bottom: 8px; }
  .booth-tab { padding: 7px 6px; }
  .chips { padding-bottom: 8px; }
  .intensity-row { padding-bottom: 8px; }
  .shutter-bar { padding: 7px 14px 0; }
  .shutter { width: 64px; height: 64px; }
  .shutter-inner { width: 48px; height: 48px; }
  .shutter-bar .circle-btn,
  .thumb { width: 44px; height: 44px; }
}

.booth-saved {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 34px 20px;
  gap: 12px;
}
.saved-badge { position: relative; width: 108px; height: 108px; margin-bottom: 18px; }
.saved-crown { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); color: var(--primary); }
.saved-check {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.saved-title { font-size: 34px; font-weight: 600; line-height: 1.1; margin: 0; }
.saved-body { font-size: 14px; color: var(--muted); line-height: 1.5; max-width: 250px; margin: 0 0 22px; }
.booth-saved .primary { height: 56px; border-radius: var(--radius); box-shadow: var(--shadow); }
.booth-saved .btn-outline { width: 100%; }

/* ---------- Photobooth Gallery (Keepsake · captioned 2-up) ---------- */
.gallery-body { padding: 14px 16px 28px; }
.live-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--primary); color: var(--on-primary);
  font-size: 12px; font-weight: 600;
}
.live-dot { width: 7px; height: 7px; border-radius: 999px; background: currentColor; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.keepsake-gallery { display: flex; gap: 14px; align-items: flex-start; }
.keepsake-col { flex: 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.keepsake-col:nth-child(2) { margin-top: 26px; }
.keepsake-photo {
  display: block; width: 100%; padding: 0;
  background: transparent; border: none; cursor: pointer; text-align: left;
}
.keepsake-frame {
  position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden;
  box-shadow: 0 6px 16px rgba(28, 42, 77, 0.12);
}
.keepsake-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.keepsake-frame::after {
  content: ""; position: absolute; inset: 0; border-radius: 14px;
  box-shadow: inset 0 0 0 7px var(--primary); pointer-events: none;
}
.keepsake-cap { font-family: var(--font-serif); font-style: italic; font-size: 15px; margin-top: 8px; color: var(--ink); }

/* ---------- Lightbox (viewer + download) ---------- */
.lightbox {
  position: fixed; inset: 0; background: #0b0e16; color: #fff;
  display: flex; flex-direction: column;
  z-index: 20; padding: max(16px, env(safe-area-inset-top)) 22px max(20px, env(safe-area-inset-bottom));
}
.lightbox-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lightbox-by { font-family: var(--font-serif); font-style: italic; font-size: 18px; color: #fff; }
.lightbox-close {
  width: 38px; height: 38px; border-radius: 999px; flex: none;
  background: rgba(255, 255, 255, 0.12); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 18px 0; min-height: 0; }
.lightbox-frame {
  position: relative; max-width: 100%; max-height: 100%; aspect-ratio: 3 / 4;
  border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.lightbox-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox-frame::after {
  content: ""; position: absolute; inset: 0; border-radius: 14px;
  box-shadow: inset 0 0 0 9px var(--primary), inset 0 0 0 11px var(--accent-ivory); pointer-events: none;
}
.lightbox-actions { display: flex; flex-direction: column; gap: 12px; }
.lightbox-actions .primary { height: 56px; border-radius: var(--radius); }

/* ---------- Guest Photos (floating feed + compact wall) ---------- */
.guest-photos {
  position: relative;
}
.gp-scroll {
  padding: 8px 0 100px;
}
.gp-count { font-size: 13px; font-weight: 600; color: var(--label); }
.gp-intro { padding: 14px 22px 6px; }
.gp-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--label);
  margin-bottom: 8px;
}
.gp-sub { font-size: 14px; color: var(--muted); margin: 6px 0 0; max-width: 280px; line-height: 1.45; }

.gp-carousel-stage {
  position: relative;
  height: 480px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1250px;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}
.gp-carousel-stage:active { cursor: grabbing; }
.gp-carousel { position: relative; width: 128px; height: 170px; transform-style: preserve-3d; }
.gp-carousel-spin {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.gp-carousel-slot {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.gp-polaroid {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.gp-polaroid-card {
  background: #fff;
  padding: 6px 6px 0;
  border-radius: 9px;
  box-shadow: 0 18px 36px rgba(28, 42, 77, 0.26);
}
.gp-polaroid-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 5px;
}
.gp-polaroid-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 2px 7px;
}
.gp-initial {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 7px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.gp-name { font-family: var(--font-serif); font-style: italic; font-size: 11px; color: var(--ink); }

.gp-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--placeholder);
  padding: 6px 22px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.gp-swipe-hint {
  display: flex;
  justify-content: center;
  color: var(--muted);
  padding: 0 22px 8px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.gp-wall-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg);
  padding: 8px 22px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gp-wall-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}
.gp-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 0 22px;
}
.gp-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--line);
}
.gp-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gp-tile-badge {
  position: absolute;
  left: 5px;
  bottom: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(11, 14, 22, 0.55);
  backdrop-filter: blur(6px);
  padding: 3px 7px 3px 3px;
  border-radius: 999px;
  color: #fff;
  font-size: 9.5px;
  font-weight: 600;
}
.gp-tile-badge .gp-initial {
  width: 14px;
  height: 14px;
  background: #fff;
  color: var(--primary);
  font-size: 7px;
}
.gp-empty { text-align: center; padding: 12px 22px 0; }
.gp-fab {
  position: fixed;
  right: max(22px, calc(50% - 238px));
  bottom: max(50px, env(safe-area-inset-bottom, 0px) + 34px);
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  box-shadow: 0 12px 26px rgba(28, 42, 77, 0.34);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 12;
  cursor: pointer;
}
.gp-fab:disabled { opacity: 0.65; cursor: wait; }
.gp-status {
  position: fixed;
  left: 50%;
  bottom: max(120px, env(safe-area-inset-bottom, 0px) + 100px);
  transform: translateX(-50%);
  background: rgba(11, 14, 22, 0.88);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  z-index: 13;
}
.guest-photo-frame { aspect-ratio: auto; max-height: 75vh; }
.guest-photo-frame img { object-fit: contain; }

/* ---------- Itinerary & Menu modules ---------- */
.module-screen {
  position: relative;
}
.module-scroll {
  padding: 8px 0 48px;
}
.module-top-edit {
  margin-left: 0;
}
.module-intro { padding: 14px 22px 10px; }
.module-header--centered {
  text-align: center;
  padding: 18px 22px 8px;
}
.module-crown {
  display: block;
  margin: 0 auto 12px;
  color: var(--primary);
}
.module-event-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 8px;
}
.module-header--centered h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.5px;
}
.menu-header h1 {
  font-size: 36px;
}
.module-sub {
  font-size: 14px;
  color: var(--muted);
  margin: 6px auto 0;
  max-width: 320px;
  line-height: 1.45;
}
.menu-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
}
.module-status {
  margin: 12px 22px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

/* Itinerary timeline */
.itin-wrap { padding: 8px 22px 24px; }
.itin-body-wrap {
  position: relative;
  padding-top: 8px;
}
.itin-body-wrap::before {
  content: "";
  position: absolute;
  left: 84px;
  top: 26px;
  bottom: 18px;
  width: 2px;
  background: repeating-linear-gradient(
    var(--primary) 0 4px,
    transparent 4px 9px
  );
  pointer-events: none;
}
.itin-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 14px;
  padding: 13px 16px;
}
.itin-banner-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}
.itin-banner-range {
  flex: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.itin-timeline { display: flex; flex-direction: column; gap: 0; }
.itin-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  color: inherit;
  padding: 0;
}
.itin-time {
  width: 46px;
  flex: none;
  text-align: right;
  padding-top: 1px;
}
.itin-time-clock {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.itin-time-period {
  font-size: 10px;
  font-weight: 700;
  color: var(--placeholder);
  margin-top: 2px;
}
.itin-track {
  position: relative;
  flex: none;
  width: 16px;
  display: flex;
  justify-content: center;
  padding-top: 3px;
}
.itin-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--bg);
  border: 2.5px solid var(--primary);
  flex: none;
  z-index: 1;
}
.itin-dot--active {
  background: var(--primary);
}
.itin-dot--done {
  width: 13px;
  height: 13px;
  background: var(--primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-primary);
}
.itin-body {
  flex: 1;
  min-width: 0;
  padding-bottom: 0;
}
.itin-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.itin-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.itin-menu-pill {
  flex: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--primary);
  background: transparent;
  border: 1px solid rgba(28, 42, 77, 0.25);
  border-radius: 999px;
  padding: 2px 7px;
  cursor: pointer;
  font-family: inherit;
}
.itin-menu-pill:active { opacity: 0.85; }

/* Menu */
.menu-buffet-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  background: var(--primary);
  color: var(--on-primary);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}
.menu-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 26px 30px 0;
  color: var(--primary);
}
.menu-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(28, 42, 77, 0.18);
}
.menu-divider-crown {
  flex: none;
}
.menu-wrap { padding: 18px 30px 0; }
.menu-program {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.menu-course {
  text-align: center;
}
.menu-course-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 8px;
}
.menu-dish-name {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}
.menu-course--featured {
  background: var(--card);
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow: 0 6px 18px rgba(28, 42, 77, 0.08);
}
.menu-course--featured .menu-course-category {
  color: var(--primary);
  margin-bottom: 12px;
}
.menu-course--featured .menu-dish-name {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}
.menu-course-divider {
  width: 30px;
  height: 1px;
  background: rgba(28, 42, 77, 0.2);
  margin: 14px auto;
}
.menu-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 26px 30px 6px;
}
.menu-footer-text {
  flex: none;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--placeholder);
  white-space: nowrap;
}
.host-section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--label);
  margin: 18px 22px 10px;
}
.host-editor-list { display: flex; flex-direction: column; gap: 12px; padding: 0 22px; }
.host-editor-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.host-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--label);
}
.host-field input {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}
.host-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
#hostContentSave { margin: 20px 22px 0; width: calc(100% - 44px); }

.hidden { display: none !important; }
