/* Basic reset so spacing looks consistent across phones */
* {
  box-sizing: border-box;
}

:root {
  /* Warm, soft, romantic — blush and cream with sage as a gentle accent.
     Variable names kept from the previous palette so every existing rule
     picks the new colours up without being rewritten. */
  --ink: #4a3b38;
  --ink-soft: rgba(74, 59, 56, 0.62);
  --emerald: #b5757a;        /* primary accent — dusty rose */
  --emerald-deep: #8f5760;   /* deeper rose for headings */
  --gold: #d9a5a0;           /* soft blush instead of metallic gold */
  --gold-deep: #b5757a;
  --cream: #fdf6f2;
  --cream-deep: #f7e4de;
  --white: #ffffff;
  --error: #c0575b;
  --leaf: #a8bda0;
  --leaf-light: #c2d3ba;
  --leaf-dark: #8aa382;
  --magnolia: #fdf6f2;
  --bird: #a98d86;
  --line: rgba(74, 59, 56, 0.14);
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  background: var(--cream);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  position: relative;
}

/* Plain pages (admin, gallery) just get the cream background above.
   The guest page opts into the full photo/frame treatment below by
   adding class="invite-bg" to <body> — keeps admin/gallery lighter
   and free of a page-spanning photo they don't need. */
/* The illustrated couple, with a warm blush wash over it so it sits behind
   the content instead of competing with it. */
body.invite-bg {
  overflow-x: hidden;
  background-image:
    linear-gradient(to bottom, rgba(253,246,242,0.55) 0%, rgba(253,246,242,0.18) 30%, rgba(247,228,222,0.35) 70%, rgba(247,228,222,0.6) 100%),
    url("hero-bg.jpg");
  background-size: cover, cover;
  background-position: center, center top;
  background-repeat: no-repeat, no-repeat;
}

.screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 18px 40px;
  position: relative;
  z-index: 1;
}

/* --- vintage invitation frame: a double gold rule with small
   scroll-flourish corners, like the edge of a real invitation card --- */
/* A single soft rounded border instead of the double gold rule — the
   ornate version felt formal and fussy rather than sweet. */
.page-frame {
  position: fixed;
  inset: 10px;
  border: 1px solid rgba(181,117,122,0.28);
  border-radius: 22px;
  pointer-events: none;
  z-index: 2;
}
/* Corner flourishes hidden — frame + flourishes + dividers together was
   too much decoration competing at once. */
.corner-flourish { display: none; }
.corner-flourish.cf-tl { top: 12px; left: 12px; }
.corner-flourish.cf-tr { top: 12px; right: 12px; transform: scaleX(-1); }
.corner-flourish.cf-bl { bottom: 12px; left: 12px; transform: scaleY(-1); }
.corner-flourish.cf-br { bottom: 12px; right: 12px; transform: scale(-1,-1); }

/* --- header: couple's names, a small flower+heart divider, then the date --- */
.couple-names {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  font-size: 46px;
  color: var(--emerald-deep);
  line-height: 1;
  margin: 10px 0 6px;
  text-align: center;
  text-shadow: 0 1px 2px rgba(245,239,223,0.85), 0 2px 16px rgba(245,239,223,0.6);
}

.name-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 220px;
  margin: 0 auto 10px;
}
.name-divider .divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(176,141,84,0.85), transparent);
}
.name-divider .divider-flower {
  font-size: 12px;
  line-height: 1;
  color: var(--leaf-dark);
  transform: translateY(-1px);
  text-shadow: 0 1px 3px rgba(245,239,223,0.8);
}
.name-divider .divider-heart {
  font-size: 13px;
  line-height: 1;
  color: var(--gold-deep);
  text-shadow: 0 1px 3px rgba(245,239,223,0.8);
}

.event-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 4px;
  text-align: center;
  text-shadow: 0 1px 2px rgba(245,239,223,0.85), 0 1px 10px rgba(245,239,223,0.6);
}

/* Light card instead of a heavy dark block — reads warmer and lets the
   blush background come through. */
.journey-intro-card {
  width: 100%;
  max-width: 340px;
  margin: 16px auto 22px;
  padding: 20px 24px 18px;
  border-radius: 24px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 6px 20px rgba(181,117,122,0.14);
  border: 1px solid rgba(181,117,122,0.18);
}

.wedding-heading {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--emerald-deep);
  text-align: center;
  margin: 0 0 8px;
}

.wedding-bio {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-align: center;
  margin: 0;
}

.progress-dots {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
.progress-dots::before, .progress-dots::after {
  content: "♥";
  font-size: 10px;
  color: var(--gold-deep);
  opacity: 0.7;
  text-shadow: 0 1px 3px rgba(245,239,223,0.7);
  position: relative;
  z-index: 1;
}
.progress-dots .track-line {
  position: absolute;
  left: 18px; right: 18px; top: 50%;
  height: 2px;
  border-radius: 2px;
  background: rgba(43,36,32,0.15);
  box-shadow: inset 0 1px 2px rgba(43,36,32,0.18);
  transform: translateY(-50%);
  z-index: 0;
}
.progress-dots .dot {
  position: relative;
  z-index: 1;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(43,36,32,0.22);
  box-shadow: 0 1px 3px rgba(245,239,223,0.6);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.progress-dots .dot.done { background: var(--gold-deep); }
.progress-dots .dot.current {
  background: var(--gold);
  transform: scale(1.4);
  animation: dotPulse 1.7s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(201,161,92,0.22); }
  50% { box-shadow: 0 0 0 8px rgba(201,161,92,0.06); }
}

/* --- welcome / invitation card --- */
.invite-card {
  width: 100%;
  max-width: 360px;
  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 40px 26px 32px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(31,75,63,0.16);
  border: 1px solid rgba(201,161,92,0.4);
  position: relative;
  animation: floatIn 0.6s cubic-bezier(.2,1.4,.4,1);
}
.invite-card::before, .invite-card::after {
  content: "";
  position: absolute;
  left: 22px; right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,161,92,0.6), transparent);
}
.invite-card::before { top: 16px; }
.invite-card::after { bottom: 16px; }

@keyframes floatIn {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

.invite-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.invite-names {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  font-size: 56px;
  color: var(--emerald-deep);
  line-height: 1.1;
  margin: 0 0 6px;
}
.invite-sub {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 26px;
  line-height: 1.5;
}

/* --- moment display: title + prompt sit on the photo, the oval
   capture box below is the only tappable "button" --- */
.moment-badge {
  position: relative;
  width: 100%;
  max-width: 360px;
  text-align: center;
  animation: floatIn 0.5s cubic-bezier(.2,1.4,.4,1);
}

.moment-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 26px;
  line-height: 1.15;
  margin: 0 0 8px;
  color: var(--emerald-deep);
  text-shadow: 0 1px 2px rgba(245,239,223,0.85), 0 2px 14px rgba(245,239,223,0.65);
}
.title-flower {
  display: inline-flex;
  vertical-align: middle;
  margin: 0 6px;
  width: 22px; height: 22px;
}
.title-flower.right { transform: scaleX(-1); }
.title-flower svg { width: 100%; height: 100%; display: block; }

.moment-corner-heart {
  position: absolute;
  font-size: 18px;
  color: var(--cream);
  opacity: 0.4;
  pointer-events: none;
}
.moment-corner-heart.heart-tl { top: -4px; left: 6px; transform: rotate(-15deg); }
.moment-corner-heart.heart-tr { top: -4px; right: 6px; transform: rotate(15deg); }

.video-limit-notice {
  display: inline-block;
  margin: 4px 0 0;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--emerald-deep);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.moment-prompt {
  font-size: 14px;
  color: var(--ink);
  margin: 0 0 4px;
  text-shadow: 0 1px 2px rgba(245,239,223,0.85), 0 1px 10px rgba(245,239,223,0.6);
}

.capture-box-wrapper {
  position: fixed;
  left: 0; right: 0; bottom: 26px;
  display: flex;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}
.capture-box-wrapper .capture-box { pointer-events: auto; }

.capture-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 290px;
  padding: 24px 28px 22px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(74,93,63,0.9), rgba(51,63,40,0.9));
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  box-shadow: 0 4px 10px rgba(31,75,63,0.2), 0 18px 36px rgba(31,75,63,0.32);
  border: 1px solid rgba(201,161,92,0.5);
  cursor: pointer;
  transition: transform 0.15s;
}
.capture-box:active { transform: scale(0.97); }

.capture-icon-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.capture-icon-row .leaf-sprig { width: 22px; height: 22px; opacity: 0.85; flex: none; }
.capture-icon-row .leaf-sprig.right { transform: scaleX(-1); }

.capture-camera-wrap { position: relative; width: 38px; height: 34px; flex: none; }
.capture-camera-wrap .camera-icon { width: 38px; height: 34px; display: block; }
.capture-sparkle { position: absolute; }
.capture-sparkle.s1 { top: -6px; right: -12px; width: 11px; height: 11px; }
.capture-sparkle.s2 { top: 4px; right: -19px; width: 7px; height: 7px; }

.capture-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 150px;
}
.capture-divider .line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(251,243,230,0.5), transparent); }
.capture-divider .heart { font-size: 11px; color: var(--gold); }

.capture-text {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--cream);
  text-align: center;
}

/* Video is the default ask; photos stay available, just de-emphasised. */
.capture-subtext {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(251,243,230,0.6);
  text-align: center;
  margin-top: -6px;
}

.upload-card { width: 100%; max-width: 360px; margin-top: 14px; }

/* --- all-moments list (guest page) --- */
.moments-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.moment-row {
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(181,117,122,0.18);
  border-radius: 22px;
  padding: 16px 18px;
  text-align: left;
  box-shadow: 0 4px 16px rgba(181,117,122,0.10);
  transition: transform 0.15s, box-shadow 0.15s;
}
.moment-row:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(181,117,122,0.12);
}

/* Title/prompt on the left, capture bubble on the right, one line. */
.moment-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.moment-row-text { min-width: 0; }

.moment-row-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--emerald-deep);
  margin: 0;
}

.moment-count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--gold-deep);
  background: rgba(201,161,92,0.16);
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
}

.moment-row-prompt {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 4px 0 0;
}

/* Round icon button with a small caption underneath. Used for both the
   per-moment capture control and the voice-message control. */
.capture-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: transform 0.1s;
}
.capture-bubble:active { transform: scale(0.94); }
.capture-bubble:disabled { opacity: 0.45; cursor: default; }

.bubble-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, #d9a5a0, #b5757a);
  border: 2px solid rgba(255,255,255,0.85);
  box-shadow: 0 4px 12px rgba(181,117,122,0.35);
  color: #fff;
}
.bubble-circle svg { width: 22px; height: 22px; display: block; }

.bubble-label {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* Sits under the confirm text — readable, clearly separate, not fine print. */
.modal-consent {
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(181,117,122,0.2);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Present but never competing with the couple's own page. */
.made-with {
  display: block;
  width: fit-content;
  margin: 22px auto 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(181,117,122,0.25);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
  text-decoration: none;
  transition: transform 0.12s;
}
.made-with:active { transform: scale(0.97); }
.made-with strong { color: var(--emerald-deep); font-weight: 600; }
.made-with span {
  display: block;
  font-size: 10px;
  color: var(--gold-deep);
  margin-top: 2px;
}

/* Quiet but legible — present without nagging. */
.guest-consent-note {
  max-width: 380px;
  margin: 18px auto 4px;
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  line-height: 1.5;
  text-align: center;
  color: var(--ink-soft);
  opacity: 0.85;
}

.mic-bubble {
  margin: 16px auto 0;
}
.mic-bubble .bubble-circle {
  background: linear-gradient(155deg, #c2d3ba, #8aa382);
  box-shadow: 0 4px 12px rgba(138,163,130,0.35);
}
.mic-bubble .bubble-label { color: var(--ink-soft); }

.mic-bubble.recording .bubble-circle {
  background: rgba(168,67,58,0.9);
  border-color: rgba(255,255,255,0.6);
  animation: dotPulse 1.4s ease-in-out infinite;
}

/* --- guest message card --- */
/* Just the mic bubble on its own — no card, no heading. */
.message-card {
  width: 100%;
  max-width: 380px;
  margin: 18px auto 0;
  text-align: center;
}

.message-input {
  width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(201,161,92,0.4);
  background: rgba(255,255,255,0.9);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  resize: vertical;
}

.message-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.message-actions .btn { margin-top: 0; font-size: 13px; padding: 11px 10px; }

/* The ghost button's dark text is unreadable on this dark green card,
   so give it a light outline treatment instead. */
.message-actions .btn-ghost {
  color: var(--cream);
  border-color: rgba(251,243,230,0.45);
  background: rgba(255,255,255,0.08);
}
.message-actions .btn-ghost:disabled { opacity: 0.5; }

#audioPreview { width: 100%; margin-top: 10px; }

.cap-note {
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* The guest page's real file input stays hidden — the capture box
   above is the visible trigger and opens it via fileInput.click().
   Scoped to the ID (not input[type=file] generally) so it doesn't
   affect the music-upload file input on the admin page. */
#fileInput { display: none; }

.btn {
  width: 100%;
  max-width: 360px;
  margin-top: 14px;
  padding: 14px 18px;
  border: none;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--gold); color: var(--emerald-deep); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--emerald); border: 1px solid rgba(31,75,63,0.3); }
.btn-outline-dark { background: transparent; color: var(--ink); border: 1px solid rgba(43,36,32,0.25); }

/* Matches the moment cards — same white card, same rose tones — so upload
   and recording feedback reads as part of the page, not a system error. */
.status {
  margin: 12px auto 0;
  max-width: 380px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  color: var(--ink-soft);
}
.status:empty { margin: 0; }

.status.error,
.status.success {
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(181,117,122,0.2);
  box-shadow: 0 4px 14px rgba(181,117,122,0.12);
}
.status.error { color: var(--emerald-deep); }
.status.success { color: var(--emerald-deep); }

/* Same frosted-glass card treatment as .invite-card — without a backing
   panel this text sat straight on the photo and was hard to read. */
.confirm {
  text-align: center;
  max-width: 360px;
  margin: 22px auto 0;
  animation: stampIn 0.4s cubic-bezier(.2,1.4,.4,1);
  width: 100%;
  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 28px 24px 24px;
  box-shadow: 0 18px 40px rgba(31,75,63,0.16);
  border: 1px solid rgba(201,161,92,0.4);
}
.confirm .stamp { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 14px; }
.confirm h2 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  color: var(--emerald-deep);
  margin: 0 0 6px;
  text-shadow: 0 1px 2px rgba(245,239,223,0.85), 0 2px 14px rgba(245,239,223,0.6);
}
.confirm p {
  color: var(--ink);
  font-size: 13.5px;
  margin: 0 0 18px;
  text-shadow: 0 1px 2px rgba(245,239,223,0.85), 0 1px 10px rgba(245,239,223,0.6);
}

.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(20,50,41,0.3);
  border-top-color: var(--emerald-deep);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 6px;
  vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 24, 0.55);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
}
.modal-backdrop.open { display: flex; }

.modal-card {
  background: var(--white);
  color: var(--ink);
  width: 100%;
  max-width: 420px;
  border-radius: 20px 20px 0 0;
  padding: 26px 22px 30px;
  animation: slideUp 0.25s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.modal-card h3 { font-family: 'Fraunces', serif; font-size: 20px; margin: 0 0 8px; }
.modal-card p { font-size: 13.5px; color: #5a4f45; margin: 0 0 20px; }
.modal-buttons { display: flex; gap: 10px; }
.modal-buttons .btn { margin-top: 0; max-width: none; }

/* Camera-or-gallery chooser */
.source-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.source-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(181,117,122,0.22);
  border-radius: 18px;
  background: rgba(253,246,242,0.9);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s;
}
.source-option:active {
  transform: scale(0.985);
  background: rgba(247,228,222,0.9);
}
.source-option .bubble-circle {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.source-option .bubble-circle svg { width: 19px; height: 19px; }

/* =================================================================
   Admin / gallery pages — plain cream background (no photo/frame),
   simple card layout. Shares the palette above but its own,
   simpler component styles.
================================================================= */

.card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 10px 30px rgba(43, 36, 32, 0.1);
  text-align: center;
  margin: 40px auto;
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.file-label {
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

input[type="file"],
input[type="email"],
input[type="password"],
input[type="text"],
input[type="date"] {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  background: var(--cream);
  width: 100%;
  font-family: 'Inter', sans-serif;
}

button {
  padding: 14px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(155deg, #c9868c, #b5757a);
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 3px 10px rgba(181,117,122,0.28);
}
button:disabled { background: #ddc4c4; box-shadow: none; cursor: not-allowed; }

.hidden { display: none; }

.admin-title { font-size: 20px; margin: 0 0 20px; color: var(--emerald-deep); }

.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.section-title { font-size: 15px; text-align: left; margin: 24px 0 10px; color: var(--ink); }

.moments-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.moment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
}
.moment-item.current { border-color: var(--emerald); background: #eef1ea; }
.moment-item .moment-info span { font-size: 13px; color: var(--ink-soft); }

.moment-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.moment-actions button { padding: 8px 10px; font-size: 12px; }

.secondary-btn { background: #e5e0d0; color: var(--ink); }

.gallery-page { width: 100%; max-width: 960px; margin: 40px auto; }

.gallery-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.gallery-back-link { color: var(--emerald-deep); font-size: 14px; text-decoration: none; }

.gallery-section {
  background: var(--white);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(43, 36, 32, 0.08);
  text-align: left;
}
.gallery-empty { color: #999; font-size: 14px; margin: 0; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }

.gallery-item { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--cream); }
.gallery-item img, .gallery-item video { width: 100%; height: 140px; object-fit: cover; display: block; background: #000; }

.gallery-item-meta { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; font-size: 12px; color: var(--ink-soft); }
.gallery-item-meta a { color: var(--emerald-deep); }

.download-btn {
  display: block;
  width: calc(100% - 20px);
  margin: 0 10px 10px;
  padding: 7px;
  font-size: 12px;
}

.guest-message {
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: var(--cream);
}
.guest-message-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 8px;
}
.guest-message-time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--ink-soft);
  margin-top: 8px;
}
.guest-message audio { width: 100%; margin-bottom: 8px; }
.guest-message .download-btn { width: auto; margin: 0; padding: 6px 12px; }

.score-badge {
  display: inline-block;
  margin: 8px 10px 0;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  width: fit-content;
}
.score-good { background: #e3f3e8; color: #2e7d4f; }
.score-mid { background: #fbf0dc; color: #a9740b; }
.score-low { background: #f8e4e2; color: #c0392b; }
.score-failed { background: #f0f0f0; color: #777; cursor: help; }
.score-pending { background: #f0f0f0; color: #999; }

#videoResult { width: 100%; border-radius: 10px; margin-top: 10px; }

.auth-toggle {
  text-align: center;
  font-size: 13px;
  margin: 10px 0 0;
}
.auth-toggle a { color: var(--emerald-deep); }

.guest-link-hint {
  font-size: 13px;
  color: var(--ink-soft);
  text-align: left;
  margin: 0 0 10px;
}
.guest-link-text {
  font-size: 12px;
  font-family: 'IBM Plex Mono', monospace;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  word-break: break-all;
  text-align: left;
  margin-bottom: 10px;
}
.qr-wrap {
  display: flex;
  justify-content: center;
  margin: 16px 0 4px;
}
.qr-wrap img,
.qr-wrap canvas {
  border-radius: 8px;
  border: 1px solid var(--line);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: left;
  cursor: pointer;
}
.checkbox-row input[type="checkbox"] {
  width: auto;
  margin-top: 2px;
  flex-shrink: 0;
}

.operator-card {
  max-width: 560px;
}

.operator-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.operator-actions button {
  flex: 1;
}
