  :root {
    --cream: #f9f5ee;
    --warm: #e8dcc8;
    --gold: #b8965a;
    --gold-light: #d4b07a;
    --ink: #2a231a;
    --ink-soft: #5a4f42;
    --blush: #e8c9b8;
    --sage: #8a9e8c;
    --white: #fdfaf5;
    --shadow: rgba(42,35,26,0.12);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html {
    scroll-padding-top: 5rem;
  }

  body {
    background: var(--cream);
    color: var(--ink);
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* ── GRAIN OVERLAY ── */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.6;
  }

  /* ══════════════════════════════════════
     SCREEN: ENTRY / CODE INPUT
  ══════════════════════════════════════ */
  #screen-entry {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
  }

  .entry-ornament {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.5rem;
    font-weight: 300;
    font-style: italic;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.25rem;
    opacity: 0;
    animation: fadeUp 1.2s ease forwards 0.2s;
  }

  .entry-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink);
    opacity: 0;
    animation: fadeUp 1.2s ease forwards 0.5s;
  }

  .entry-divider {
    width: 80px;
    height: 1px;
    background: var(--gold);
    margin: 1.8rem auto;
    opacity: 0;
    animation: fadeUp 1.2s ease forwards 0.7s;
  }

  .entry-date {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeUp 1.2s ease forwards 0.9s;
  }

  .entry-label {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 0.8rem;
    opacity: 0;
    animation: fadeUp 1.2s ease forwards 1.1s;
  }

  .entry-box {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    width: 100%;
    max-width: 420px;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 1.2s ease forwards 1.2s;
  }

  .entry-input {
    border: 1px solid var(--warm);
    background: var(--white);
    padding: 0.9rem 1.4rem;
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ink);
    outline: none;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    transition: border-color 0.3s;
  }

  .entry-input:focus { border-color: var(--gold); }

  .entry-btn {
    background: var(--ink);
    color: var(--cream);
    border: none;
    padding: 0 1.6rem;
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
  }

  .entry-btn:hover { background: var(--gold); }

  .entry-error {
    margin-top: 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: #b85a5a;
    opacity: 0;
    transition: opacity 0.3s;
  }

  .entry-error.show { opacity: 1; }

  /* ══════════════════════════════════════
     SCREEN: INVITATION PAGE
  ══════════════════════════════════════ */
  #screen-invite {
    display: none;
    min-height: 100vh;
  }

  /* HERO */
  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    overflow: hidden;
  }

  .hero-bg {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at 20% 50%, rgba(184,150,90,0.07) 0%, transparent 60%),
      radial-gradient(ellipse at 80% 30%, rgba(138,158,140,0.08) 0%, transparent 60%),
      var(--cream);
  }

  .hero-content { position: relative; z-index: 1; max-width: 700px; }

  .hero-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 2rem;
  }

  .hero-welcome {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 1.5rem;
  }

  .hero-welcome span { color: var(--gold); }

  .hero-personal {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(0.92rem, 1.85vw, 1.15rem);
    font-weight: 300;
    color: var(--ink-soft);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    white-space: pre-line;
  }

  .hero-divider {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    justify-content: center;
    margin: 2rem 0;
  }

  .hero-divider::before,
  .hero-divider::after {
    content: '';
    width: 60px;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
  }

  .hero-fleuron {
    color: var(--gold);
    font-size: 1.2rem;
  }

  .hero-details {
    font-size: 0.78rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ink-soft);
    line-height: 2.2;
    min-height: 5.5rem;
    transition: color 0.35s ease;
  }

  .hero-details.hero-details--secret {
    text-transform: none;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
    color: var(--ink);
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-details.hero-details--locked {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .hero-lock-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-lock-icon {
    font-size: 2.15rem;
    line-height: 1;
    opacity: 0.42;
    user-select: none;
  }

  .hero-lock-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
    color: var(--ink);
    letter-spacing: 0.03em;
  }

  .hero-details.hero-details--revealed {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-style: normal;
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    color: var(--ink-soft);
    line-height: 2.2;
  }

  .scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink-soft);
    opacity: 0.5;
    animation: float 2.5s ease-in-out infinite;
  }

  .scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
  }

  /* PHOTO GALLERY */
  .section {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
  }

  .section-label {
    font-size: 0.68rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    text-align: center;
  }

  .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    font-style: italic;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--ink);
  }

  .photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 0.8rem;
  }

  .photo-grid .photo:first-child {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
  }

  .photo-grid .photo:nth-child(4) {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
  }

  .photo-grid.photo-grid--story {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: none;
    grid-auto-rows: minmax(160px, 22vw);
  }

  .photo-grid.photo-grid--story .photo:first-child {
    grid-column: auto;
    grid-row: auto;
  }

  .photo-grid.photo-grid--story .photo:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }

  .photo-grid.photo-grid--story .story-photo-cell {
    display: flex;
    flex-direction: column;
    overflow: visible;
    background: transparent;
  }

  .photo-grid.photo-grid--story .photo-story-img-wrap {
    flex: 1;
    min-height: 160px;
    overflow: hidden;
    background: var(--warm);
    position: relative;
    cursor: zoom-in;
  }

  .photo-grid.photo-grid--story .photo-story-img-wrap img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
  }

  .photo-grid.photo-grid--story .story-photo-cell:hover .photo-story-img-wrap img {
    transform: scale(1.04);
  }

  .photo-story-caption {
    margin: 0.55rem 0 0 0;
    padding: 0 0.15rem;
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--ink-soft);
    text-align: center;
    letter-spacing: 0.03em;
  }

  .story-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    box-sizing: border-box;
  }

  .story-lightbox:not([hidden]) {
    display: flex;
  }

  .story-lightbox-scrim {
    position: absolute;
    inset: 0;
    border: none;
    padding: 0;
    margin: 0;
    background: rgba(36, 30, 24, 0.93);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: zoom-out;
  }

  .story-lightbox-inner {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 1200px);
    max-height: 92vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    pointer-events: none;
  }

  .story-lightbox-inner img {
    pointer-events: auto;
    max-width: 100%;
    max-height: min(82vh, 900px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
  }

  .story-lightbox-close {
    pointer-events: auto;
    align-self: flex-end;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(249, 245, 238, 0.35);
    background: rgba(42, 35, 26, 0.65);
    color: var(--cream);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 2px;
    font-family: 'Jost', sans-serif;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .story-lightbox-close:hover {
    background: rgba(184, 150, 90, 0.45);
    border-color: var(--gold);
  }

  .story-lightbox-caption {
    pointer-events: auto;
    margin: 0;
    max-width: 42rem;
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.55;
    color: rgba(249, 245, 238, 0.92);
    text-align: center;
    white-space: pre-line;
  }

  .photo-grid .photo-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--ink-soft);
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.65;
    letter-spacing: 0.04em;
    border: 1px dashed rgba(184, 150, 90, 0.35);
    background: rgba(249, 245, 238, 0.5);
  }

  .photo {
    overflow: hidden;
    background: var(--warm);
    position: relative;
  }

  .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
    min-height: 200px;
  }

  .photo:hover img { transform: scale(1.04); }

  .photo-placeholder {
    width: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    gap: 0.8rem;
    cursor: pointer;
    transition: background 0.3s;
  }

  .photo-placeholder:hover { background: rgba(184,150,90,0.08); }

  .photo-placeholder .plus-icon {
    width: 36px;
    height: 36px;
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.2rem;
  }

  /* VIDEO SECTION */
  .video-section {
    background: var(--ink);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: visible;
  }

  .video-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(184,150,90,0.12) 0%, transparent 70%);
  }

  .video-section .section-label { color: var(--gold-light); }
  .video-section .section-title { color: var(--cream); }

  .video-frame {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    aspect-ratio: 16/9;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(184,150,90,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.3s;
  }

  .video-frame:hover { border-color: var(--gold); }

  .video-frame--story {
    max-width: min(920px, 100%);
    aspect-ratio: 2752 / 1536;
    display: block;
    padding: 0;
    cursor: pointer;
    transform-origin: center center;
    transition: transform 0.45s ease, border-color 0.3s;
  }

  .video-frame--story:hover {
    border-color: var(--gold);
    transform: scale(1.04);
  }

  .story-comic-img {
    width: 100%;
    height: auto;
    display: block;
  }

  .story-comic-mute-btn {
    margin: 1.25rem auto 0;
    display: inline-block;
    padding: 0.65rem 1.25rem;
    background: transparent;
    color: rgba(249, 245, 238, 0.75);
    border: 1px solid rgba(184, 150, 90, 0.45);
    font-family: 'Jost', sans-serif;
    font-size: 0.68rem;
    font-weight: 300;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.25s, border-color 0.25s, background 0.25s;
  }

  .story-comic-mute-btn:hover {
    color: var(--cream);
    border-color: var(--gold);
    background: rgba(184, 150, 90, 0.12);
  }

  /* RSVP SECTION */
  .rsvp-section {
    padding: 6rem 2rem;
    background: var(--white);
    position: relative;
  }

  .rsvp-inner {
    max-width: 680px;
    margin: 0 auto;
  }

  .form-group {
    margin-bottom: 2rem;
  }

  .form-label {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 0.7rem;
  }

  .form-input,
  .form-textarea,
  .form-select {
    width: 100%;
    border: 1px solid var(--warm);
    background: transparent;
    padding: 0.85rem 1rem;
    font-family: 'Jost', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--ink);
    outline: none;
    transition: border-color 0.3s;
    appearance: none;
  }

  .form-input:focus,
  .form-textarea:focus,
  .form-select:focus { border-color: var(--gold); }

  .form-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
  }

  /* ATTENDANCE TOGGLE */
  .attend-toggle {
    display: flex;
    gap: 1px;
    border: 1px solid var(--warm);
    overflow: hidden;
  }

  .attend-option {
    flex: 1;
    padding: 0.85rem;
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s;
    color: var(--ink-soft);
    background: transparent;
    border: none;
  }

  .attend-option.selected {
    background: var(--ink);
    color: var(--cream);
  }

  .attend-option:not(.selected):hover { background: var(--warm); }

  .attend-option:disabled {
    opacity: 0.72;
    cursor: not-allowed;
  }

  .rsvp-locked-panel {
    margin-top: 1.75rem;
    padding: 1.35rem 1.5rem;
    border: 1px solid var(--warm);
    background: rgba(249, 245, 238, 0.65);
    text-align: center;
  }

  .rsvp-locked-text {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--ink);
    margin: 0 auto;
    max-width: 32rem;
  }

  .rsvp-locked-whatsapp {
    margin: 1rem 0 0 0;
    font-size: 0.88rem;
    color: var(--ink-soft);
    line-height: 1.75;
  }

  .call-schedule-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--warm);
  }

  .call-calendar-frame {
    background: var(--white);
    border: 1px solid rgba(184, 150, 90, 0.35);
    border-radius: 4px;
    box-shadow: 0 12px 40px var(--shadow);
    padding: 0 1.25rem 1.5rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
  }

  .call-calendar-frame-top {
    position: relative;
    text-align: center;
    padding: 1.35rem 0.5rem 0.75rem;
    margin: 0 -1.25rem 0;
    background: linear-gradient(180deg, rgba(184, 150, 90, 0.14) 0%, transparent 100%);
    border-bottom: 1px solid rgba(184, 150, 90, 0.2);
  }

  .call-calendar-rings {
    position: absolute;
    top: 0.6rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2.25rem;
    pointer-events: none;
  }

  .call-calendar-ring {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid rgba(184, 150, 90, 0.55);
    background: linear-gradient(145deg, rgba(249, 245, 238, 0.95), rgba(232, 220, 200, 0.7));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  }

  .call-schedule-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.55rem;
    text-align: center;
    font-weight: 400;
    margin: 0.85rem 0 0;
    color: var(--ink);
  }

  .call-schedule-hint {
    font-size: 0.8rem;
    color: var(--ink-soft);
    line-height: 1.65;
    text-align: center;
    margin: 1.25rem 0 1.5rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
  }

  .call-schedule-saved {
    background: rgba(249, 245, 238, 0.65);
    border: 1px solid var(--warm);
    padding: 1rem 1.2rem;
    font-size: 0.88rem;
    color: var(--ink);
    text-align: center;
    margin-bottom: 1.25rem;
    line-height: 1.55;
    border-radius: 2px;
  }

  /* Calendar-style day cards + time slots */
  .call-calendar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .call-calendar-day {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 0.75rem;
    align-items: stretch;
    border: 1px solid var(--warm);
    border-radius: 3px;
    overflow: hidden;
    background: var(--cream);
  }

  @media (max-width: 520px) {
    .call-calendar-day {
      grid-template-columns: 1fr;
    }
  }

  .call-calendar-day-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 0.5rem;
    background: linear-gradient(160deg, var(--ink) 0%, #3d3428 100%);
    color: var(--cream);
    text-align: center;
    min-height: 5.5rem;
  }

  .call-calendar-day-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.35rem;
    font-weight: 300;
    line-height: 1;
    color: var(--cream);
  }

  .call-calendar-day-wd {
    font-family: 'Jost', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(249, 245, 238, 0.92);
    margin-top: 0.45rem;
  }

  .call-calendar-day-my {
    font-family: 'Jost', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    color: rgba(249, 245, 238, 0.65);
    margin-top: 0.35rem;
  }

  .call-calendar-day-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-content: center;
    padding: 0.75rem 0.65rem;
    background: var(--white);
  }

  .call-slot-btn {
    border: 1px solid var(--warm);
    background: var(--white);
    padding: 0.5rem 0.65rem;
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--ink);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    line-height: 1.2;
    min-width: 3.6rem;
    text-align: center;
    border-radius: 2px;
  }

  .call-slot-btn:hover:not(:disabled) {
    border-color: var(--gold);
    background: rgba(184, 150, 90, 0.06);
  }

  .call-slot-btn.selected {
    background: var(--ink);
    color: var(--cream);
    border-color: var(--ink);
  }

  .call-slot-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
  }

  .call-slot-loading {
    text-align: center;
    font-size: 0.8rem;
    color: var(--ink-soft);
  }

  .call-schedule-skip {
    text-align: center;
    margin: 0.5rem 0 0 0;
  }

  .rsvp-wa-link {
    color: var(--gold);
    font-weight: 400;
    letter-spacing: 0.06em;
    text-decoration: none;
    border-bottom: 1px solid rgba(184, 150, 90, 0.35);
  }

  .rsvp-wa-link:hover {
    color: var(--ink);
    border-bottom-color: var(--ink);
  }

  /* GUEST LIST */
  .guest-list {
    border: 1px solid var(--warm);
    overflow: hidden;
  }

  .guest-item {
    display: flex;
    align-items: center;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--warm);
    gap: 1rem;
  }

  .guest-item:last-child { border-bottom: none; }

  .guest-checkbox {
    width: 18px;
    height: 18px;
    border: 1px solid var(--warm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
  }

  .guest-checkbox.checked {
    background: var(--ink);
    border-color: var(--ink);
  }

  .guest-checkbox.checked::after {
    content: '✓';
    color: var(--cream);
    font-size: 0.7rem;
  }

  .guest-name-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Jost', sans-serif;
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--ink);
    outline: none;
    padding: 0;
  }

  .guest-name-input::placeholder { color: var(--warm); }

  /* GIFT SECTION */
  .gift-section {
    padding: 5rem 2rem;
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
  }

  .gift-slider-block {
    max-width: 620px;
    width: 100%;
    margin: 0 auto 2rem;
    padding: 1.75rem 1.65rem 1.5rem;
    border: 1px solid var(--warm);
    background: rgba(249, 245, 238, 0.45);
    border-radius: 3px;
    box-sizing: border-box;
  }

  /* Fixed box: flex center lets the img shrink to intrinsic GIF size — use a containing block instead. */
  .gift-gif-wrap {
    position: relative;
    height: 20rem;
    width: 100%;
    margin-bottom: 0.5rem;
    overflow: hidden;
    box-sizing: border-box;
    flex-shrink: 0;
  }

  .gift-tier-gif {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: min(100%, 560px);
    height: 100%;
    max-height: 20rem;
    box-sizing: border-box;
    object-fit: contain;
    object-position: center;
    border-radius: 2px;
    user-select: none;
    pointer-events: none;
  }

  .gift-amount-display-wrap {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
    text-align: center;
  }

  .gift-amount-display-heading {
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 0.5rem;
  }

  /* Fixed height so varying quip length does not shift the range input */
  .gift-amount-display {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.5;
    color: var(--ink);
    margin-bottom: 0;
    letter-spacing: 0.02em;
    height: 10rem;
    max-height: 10rem;
    box-sizing: border-box;
    padding: 0.15rem 0.35rem;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .gift-slider-label {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 0.65rem;
  }

  .gift-slider {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 6px;
    margin: 0.5rem 0 0.65rem;
    border-radius: 3px;
    appearance: none;
    background: linear-gradient(to right, var(--warm), rgba(184, 150, 90, 0.45));
    cursor: pointer;
  }

  .gift-slider:focus {
    outline: none;
  }

  .gift-slider:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
  }

  .gift-slider::-webkit-slider-thumb {
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ink);
    border: 2px solid var(--cream);
    box-shadow: 0 2px 8px var(--shadow);
    cursor: grab;
  }

  .gift-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
  }

  .gift-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ink);
    border: 2px solid var(--cream);
    box-shadow: 0 2px 8px var(--shadow);
    cursor: grab;
  }

  .gift-slider::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, var(--warm), rgba(184, 150, 90, 0.45));
  }

  .gift-slider-ticks {
    display: flex;
    justify-content: space-between;
    font-family: 'Jost', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    color: var(--ink-soft);
    padding: 0 0.1rem;
  }

  /* One cell per discrete amount (matches GIFT_AMOUNT_STEPS in wedding-invite.js) */
  .gift-slider-ticks-grid {
    display: grid;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    gap: 0.35rem 0.2rem;
    margin-top: 0.85rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .gift-slider-tick {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.35rem 0.1rem;
    border: none;
    border-radius: 3px;
    background: transparent;
    font-family: 'Jost', sans-serif;
    font-size: clamp(0.48rem, 1.35vw, 0.62rem);
    letter-spacing: 0.04em;
    line-height: 1.15;
    color: var(--ink-soft);
    text-align: center;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, font-weight 0.15s ease;
  }

  .gift-slider-tick:hover {
    color: var(--ink);
    background: rgba(184, 150, 90, 0.14);
  }

  .gift-slider-tick:focus {
    outline: none;
  }

  .gift-slider-tick:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 1px;
  }

  .gift-slider-tick--active {
    color: var(--ink);
    font-weight: 600;
    background: rgba(184, 150, 90, 0.22);
  }

  @media (max-width: 520px) {
    .gift-slider-ticks-grid {
      grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    .gift-slider-tick {
      font-size: 0.52rem;
      padding: 0.3rem 0.05rem;
    }
  }

  .gift-pix-section {
    margin-top: 2.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--warm);
    text-align: left;
  }

  .success-pix-block {
    width: 100%;
    max-width: 520px;
    margin: 0 auto 2rem;
    padding: 1.5rem 1rem 0;
    border-top: 1px solid var(--warm);
    text-align: left;
  }

  .success-pix-amount-hint {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    color: var(--ink);
    margin: 0.5rem 0 1rem;
    text-align: center;
  }

  .success-pix-intro {
    margin-bottom: 1.25rem;
  }

  .gift-pix-intro {
    font-size: 0.82rem;
    color: var(--ink-soft);
    line-height: 1.65;
    margin: 0 0 1.25rem;
    text-align: center;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
  }

  .gift-pix-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: flex-start;
    justify-content: center;
  }

  .gift-pix-qr {
    flex-shrink: 0;
    width: 220px;
    height: 220px;
    object-fit: contain;
    border: 1px solid var(--warm);
    background: var(--white);
    border-radius: 2px;
  }

  .gift-pix-code-col {
    flex: 1;
    min-width: min(100%, 260px);
    max-width: 400px;
  }

  .gift-pix-label {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 0.5rem;
  }

  .gift-pix-code {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--warm);
    background: var(--cream);
    padding: 0.65rem 0.75rem;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.62rem;
    line-height: 1.45;
    color: var(--ink);
    resize: vertical;
    margin-bottom: 0.65rem;
    word-break: break-all;
  }

  .gift-pix-copy-btn {
    width: 100%;
    max-width: 100%;
  }

  @media (max-width: 540px) {
    .gift-pix-row {
      flex-direction: column;
      align-items: center;
    }

    .gift-pix-code-col {
      width: 100%;
      max-width: 100%;
    }
  }

  /* SUBMIT BUTTON */
  .btn-primary {
    width: 100%;
    padding: 1.1rem;
    background: var(--ink);
    color: var(--cream);
    border: none;
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
  }

  .btn-primary:hover { background: var(--gold); }

  .btn-secondary {
    width: 100%;
    padding: 1rem;
    background: transparent;
    color: var(--ink-soft);
    border: 1px solid var(--warm);
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.6rem;
  }

  .btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

  /* SUCCESS STATE */
  #screen-success {
    display: none;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
    text-align: center;
  }

  .success-icon {
    width: 64px;
    height: 64px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.6rem;
    margin: 0 auto 2rem;
    animation: fadeUp 0.8s ease forwards;
  }

  /* ADMIN PANEL */
  #screen-admin {
    display: none;
    padding: 3rem 2rem;
    max-width: 900px;
    margin: 0 auto;
  }

  .admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--warm);
  }

  .admin-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 300;
    font-style: italic;
  }

  .admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
  }

  .stat-card {
    border: 1px solid var(--warm);
    padding: 1.5rem;
    background: var(--white);
  }

  .stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.3rem;
  }

  .stat-label {
    font-size: 0.68rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }

  .guest-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
  }

  .guest-table th {
    text-align: left;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ink-soft);
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--warm);
    font-weight: 300;
  }

  .guest-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(232,220,200,0.5);
  }

  .badge {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }

  .badge-yes { background: rgba(138,158,140,0.15); color: var(--sage); }
  .badge-no { background: rgba(184,90,90,0.1); color: #b85a5a; }
  .badge-pending { background: rgba(184,150,90,0.12); color: var(--gold); }

  .add-code-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    max-width: 100%;
  }

  .add-code-form-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
  }

  .add-code-form-fields .add-code-input {
    border: 1px solid var(--warm);
    background: var(--white);
    padding: 0.75rem 1rem;
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    color: var(--ink);
    outline: none;
    min-width: 0;
  }

  .add-code-input--code {
    flex: 0 1 120px;
    min-width: 100px;
  }

  .add-code-input--greeting {
    flex: 2 1 200px;
  }

  .add-code-input--msg {
    flex: 3 1 220px;
  }

  .add-code-input--count {
    flex: 0 0 100px;
    max-width: 100px;
  }

  .add-code-form-fields .add-code-input:focus {
    border-color: var(--gold);
  }

  .add-code-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem 1.25rem;
  }

  .add-code-submit {
    width: auto;
    padding: 0.75rem 1.5rem;
    flex-shrink: 0;
    align-self: center;
  }

  @media (max-width: 640px) {
    .add-code-form-actions {
      flex-direction: column;
      align-items: stretch;
    }

    .add-code-submit {
      width: 100%;
      align-self: stretch;
    }
  }

  /* ANIMATIONS */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
  }

  /* DIVIDER ORNAMENT */
  .ornament-divider {
    text-align: center;
    color: var(--gold);
    font-size: 1.4rem;
    opacity: 0.5;
    margin: 0.5rem 0;
  }

  /* RESPONSIVE */
  @media (max-width: 600px) {
    .photo-grid { grid-template-columns: 1fr 1fr; }
    .photo-grid .photo:first-child { grid-column: 1; grid-row: 1; }
    .photo-grid .photo:nth-child(4) { grid-column: 2; grid-row: 3; }
    .photo-grid.photo-grid--story .photo:first-child,
    .photo-grid.photo-grid--story .photo:nth-child(4) {
      grid-column: auto;
      grid-row: auto;
    }
    .admin-stats { grid-template-columns: 1fr; }
  }

  /* SECTION BREAK */
  .full-bleed-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    opacity: 0.3;
  }

  .nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(249,245,238,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(232,220,200,0.4);
  }

  .nav-monogram {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--gold);
    text-decoration: none;
    flex-shrink: 0;
  }

  .nav-monogram:hover {
    color: var(--ink-soft);
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1.25rem 1.75rem;
    list-style: none;
  }

  .nav-links a {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.2s;
  }

  .nav-links a:hover { color: var(--gold); }

  .file-upload-input { display: none; }

  .tab-bar {
    display: flex;
    border-bottom: 1px solid var(--warm);
    margin-bottom: 2rem;
    gap: 0;
  }

  .tab {
    padding: 0.75rem 1.5rem;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--ink-soft);
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    margin-bottom: -1px;
  }

  .tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
  }

  /* Guest flow: progress + locks */
  #screen-invite {
    padding-bottom: 7.5rem;
  }

  .flow-section-wrap {
    position: relative;
  }

  .flow-shim {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 12;
    background: rgba(249, 245, 238, 0.82);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    line-height: 1.7;
    color: var(--ink-soft);
    cursor: not-allowed;
  }

  .flow-shim.show {
    display: flex;
  }

  .flow-block-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(42, 35, 26, 0.55);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
  }

  .flow-block-modal-overlay.show {
    display: flex;
  }

  .flow-block-modal-box {
    background: var(--white);
    max-width: 420px;
    width: 100%;
    padding: 1.75rem 1.85rem;
    border: 1px solid var(--warm);
    box-shadow: 0 16px 48px rgba(42, 35, 26, 0.15);
  }

  .flow-block-modal-text {
    margin: 0 0 1.25rem 0;
    font-family: 'Jost', sans-serif;
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.65;
    color: var(--ink);
  }

  .flow-block-modal-actions {
    display: flex;
    justify-content: flex-end;
  }

  .flow-progress {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10020;
    padding: 0.85rem 1rem 1.1rem;
    background: rgba(249, 245, 238, 0.96);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(232, 220, 200, 0.7);
    box-shadow: 0 -6px 28px rgba(42, 35, 26, 0.08);
  }

  .flow-progress-inner {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.35rem;
  }

  .flow-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
  }

  .flow-step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--warm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Jost', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--ink-soft);
    background: var(--white);
    transition: all 0.25s;
  }

  .flow-step.done .flow-step-num {
    background: var(--ink);
    color: var(--cream);
    border-color: var(--ink);
  }

  .flow-step.current:not(.done) .flow-step-num {
    border-color: var(--gold);
    color: var(--gold);
  }

  .flow-step-label {
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-align: center;
    line-height: 1.35;
  }

  .flow-step.done .flow-step-label {
    color: var(--ink);
  }

  .flow-connector {
    flex: 0 0 12px;
    height: 1px;
    background: var(--warm);
    margin-top: 15px;
    opacity: 0.7;
  }

  .flow-connector.done {
    background: var(--gold);
    opacity: 1;
  }

  .flow-progress-title {
    font-size: 0.58rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    text-align: center;
    margin-bottom: 0.65rem;
  }

  .admin-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: rgba(42, 35, 26, 0.55);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
  }

  .admin-modal-overlay.show {
    display: flex;
  }

  .admin-modal-box {
    background: var(--white);
    max-width: 480px;
    width: 100%;
    padding: 2rem;
    border: 1px solid var(--warm);
    box-shadow: 0 16px 48px rgba(42, 35, 26, 0.15);
  }

  .admin-modal-box--invite-manage {
    max-width: min(720px, 100%);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }

  .admin-manage-section {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(232, 220, 200, 0.65);
  }

  .admin-modal-actions--spread {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(232, 220, 200, 0.65);
  }

  .admin-modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
    font-weight: 300;
    font-style: italic;
    margin: 0 0 0.25rem 0;
    color: var(--ink);
  }

  .admin-modal-textarea {
    width: 100%;
    min-height: 180px;
    border: 1px solid var(--warm);
    padding: 0.85rem 1rem;
    font-family: 'Jost', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--ink);
    resize: vertical;
    outline: none;
  }

  .admin-modal-textarea:focus {
    border-color: var(--gold);
  }

  .admin-modal-input {
    width: 100%;
    border: 1px solid var(--warm);
    padding: 0.75rem 1rem;
    font-family: 'Jost', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--ink);
    outline: none;
  }

  .admin-modal-input:focus {
    border-color: var(--gold);
  }

  .admin-modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .admin-filters-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--warm);
    background: rgba(249, 245, 238, 0.45);
  }

  .admin-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
  }

  .admin-filter-field label {
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
  }

  .admin-filter-select {
    border: 1px solid var(--warm);
    padding: 0.5rem 0.65rem;
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    font-weight: 300;
    color: var(--ink);
    background: var(--white);
    min-width: 130px;
    cursor: pointer;
    outline: none;
  }

  .admin-filter-select:focus {
    border-color: var(--gold);
  }

  .admin-filter-hint {
    font-size: 0.76rem;
    color: var(--ink-soft);
    margin-bottom: 1rem;
    min-height: 1.2em;
  }

  .attire-section {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
  }

  .attire-body {
    max-width: 920px;
    margin: 0 auto;
  }

  .attire-catalog-name {
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    text-align: center;
    margin: -1.5rem 0 1.75rem 0;
  }

  .attire-intro {
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--ink-soft);
    text-align: center;
    margin-bottom: 2.5rem;
    white-space: pre-wrap;
  }

  .attire-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
  }

  @media (max-width: 720px) {
    .attire-grid { grid-template-columns: 1fr; }
  }

  .attire-card {
    border: 1px solid var(--warm);
    background: var(--white);
    padding: 1rem;
  }

  .attire-card-label {
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
    text-align: center;
  }

  .attire-photo-wrap {
    cursor: zoom-in;
    overflow: hidden;
    background: var(--warm);
    aspect-ratio: 3/4;
    max-height: 420px;
  }

  .attire-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
  }

  .attire-photo-wrap:hover img {
    transform: scale(1.03);
  }

  .attire-card-caption {
    margin: 0.75rem 0 0 0;
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--ink);
    text-align: center;
  }

  .admin-attire-block {
    padding: 0 1rem 1rem 1rem;
    border-top: 1px solid rgba(232, 220, 200, 0.6);
  }

  .admin-attire-intro-wrap {
    margin: 0.75rem 0 1rem 0;
  }

  .admin-attire-intro {
    width: 100%;
    min-height: 72px;
    border: 1px solid var(--warm);
    padding: 0.65rem 0.75rem;
    font-family: 'Jost', sans-serif;
    font-size: 0.82rem;
    resize: vertical;
  }

  .admin-attire-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.75rem;
  }

  @media (max-width: 780px) {
    .admin-attire-grid { grid-template-columns: 1fr; }
  }

  .admin-attire-side {
    border: 1px solid var(--warm);
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.6);
  }

  .admin-attire-side-label {
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
  }

  .admin-attire-thumb {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 1px solid var(--warm);
  }

  .admin-attire-cap {
    width: 100%;
    min-height: 56px;
    border: 1px solid var(--warm);
    padding: 0.45rem 0.5rem;
    font-size: 0.78rem;
    margin-bottom: 0.4rem;
    font-family: 'Jost', sans-serif;
  }

  .admin-story-block {
    padding: 0 1rem 1rem 1rem;
    border-top: 1px solid rgba(232, 220, 200, 0.6);
  }

  .admin-story-label {
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.65rem;
  }

  .admin-story-col-wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .admin-story-upload-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(232, 220, 200, 0.65);
  }

  .admin-story-thumbs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    min-width: 0;
  }

  .admin-story-item {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
  }

  .admin-story-caption-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
  }

  .admin-story-save-caption {
    align-self: flex-start;
    padding: 0.45rem 1rem !important;
    font-size: 0.62rem !important;
    letter-spacing: 0.12em !important;
  }

  .admin-story-caption-input {
    flex: 1;
    min-width: 0;
    min-height: 5rem;
    max-height: 14rem;
    border: 1px solid var(--warm);
    padding: 0.5rem 0.65rem;
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    font-weight: 300;
    line-height: 1.35;
    resize: vertical;
    box-sizing: border-box;
    color: var(--ink);
    background: var(--white);
    outline: none;
  }

  .admin-story-caption-input:focus {
    border-color: var(--gold);
  }

  .admin-story-caption-input::placeholder {
    color: rgba(42, 35, 26, 0.35);
  }

  .admin-story-thumb-wrap {
    position: relative;
    flex: 0 0 auto;
    width: min(200px, 38vw);
    height: min(200px, 38vw);
    max-width: 220px;
    max-height: 220px;
    overflow: visible;
  }

  .admin-story-thumb-crop {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--warm);
    background: rgba(249, 245, 238, 0.6);
    box-sizing: border-box;
  }

  .admin-story-thumb-crop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
  }

  .admin-story-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 20;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: rgba(42, 35, 26, 0.82);
    color: var(--cream);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  }

  .admin-story-remove:hover {
    background: #b85a5a;
  }

  .admin-guest-overview-wrap {
    border: 1px solid var(--warm);
    background: var(--white);
    overflow-x: auto;
    margin-bottom: 0.5rem;
  }

  .admin-guest-table--overview {
    min-width: 800px;
  }

  .admin-guest-table--overview th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--white);
    box-shadow: 0 1px 0 var(--warm);
  }

  .admin-guest-flat-code {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    white-space: nowrap;
  }

  .admin-guest-card {
    border: 1px solid var(--warm);
    background: var(--white);
    margin-bottom: 1.25rem;
    overflow: hidden;
  }

  .admin-guest-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid rgba(232, 220, 200, 0.7);
    background: rgba(249, 245, 238, 0.5);
  }

  .admin-guest-card-code {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.35rem;
  }

  .admin-guest-card-greeting {
    font-size: 1rem;
    color: var(--ink);
    font-weight: 300;
  }

  .admin-guest-table-wrap {
    overflow-x: auto;
    padding: 0 1.25rem 1rem 1.25rem;
  }

  .admin-guest-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Jost', sans-serif;
    font-size: 0.84rem;
    color: var(--ink);
  }

  .admin-guest-table th {
    text-align: left;
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
    padding: 0.55rem 0.65rem 0.5rem 0.65rem;
    border-bottom: 1px solid var(--warm);
    white-space: nowrap;
  }

  .admin-guest-table td {
    padding: 0.65rem 0.65rem;
    border-bottom: 1px solid rgba(232, 220, 200, 0.65);
    vertical-align: middle;
    line-height: 1.45;
  }

  .admin-guest-table tr:last-child td {
    border-bottom: none;
  }

  .admin-guest-table-presence {
    white-space: nowrap;
  }

  .admin-guest-table-empty {
    color: var(--ink-soft);
    font-size: 0.82rem;
    font-style: italic;
  }

  .admin-guest-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
    padding: 0.85rem 1.25rem;
    border-top: 1px solid rgba(232, 220, 200, 0.5);
    background: var(--white);
  }
