        /* Core Tailwind preflight fallbacks for stable sizing without the CDN. */
        *,
        *::before,
        *::after {
            box-sizing: border-box;
        }

        html {
            -webkit-text-size-adjust: 100%;
            scrollbar-gutter: stable;
        }

        body {
            margin: 0;
            font-family: 'Montserrat', sans-serif;
            min-height: 100vh;
            min-height: 100dvh;
            padding-bottom: env(safe-area-inset-bottom, 0px);
            background-color: #FFF5F7;
            color: #4A2E35;
            background-image: 
                radial-gradient(#FCCCD6 0.8px, transparent 0.8px),
                radial-gradient(#F8A8B9 0.8px, #FFF5F7 0.8px);
            background-size: 32px 32px;
            background-position: 0 0, 16px 16px;
        }

        .font-script {
            font-family: 'Great Vibes', 'Segoe Script', 'Brush Script MT', cursive;
        }

        .font-serif-debut {
            font-family: 'Cormorant Garamond', Georgia, serif;
        }

        /* Glassmorphism luxury frame */
        .debut-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 2px solid rgba(232, 197, 200, 0.65);
            box-shadow: 0 20px 45px -15px rgba(183, 110, 121, 0.22);
        }

        /* Subtle glowing sparkle pulse */
        @keyframes sparklePulse {
            0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.85; }
            50% { transform: scale(1.2) rotate(15deg); opacity: 1; }
        }
        .sparkle-icon {
            animation: sparklePulse 3s infinite ease-in-out;
        }

        .step-transition {
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        @keyframes stepReveal {
            from { opacity: 0; transform: translateY(12px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes invitationReveal {
            from { opacity: 0; transform: translateY(18px) scale(.985); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        @keyframes floralFloat {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
        }

        .step-transition.step-enter { animation: stepReveal .42s cubic-bezier(.2,.7,.25,1) both; }

        #step-invitation.step-enter .page2-invitation-card {
            animation: invitationReveal .7s cubic-bezier(.2,.7,.25,1) both;
        }

        #step-invitation.step-enter .page2-floral-tl {
            animation: floralFloat 5.2s ease-in-out .15s infinite;
        }

        #step-invitation.step-enter .page2-floral-tr {
            animation: floralFloat 5.8s ease-in-out .45s infinite reverse;
        }

        @keyframes countdownFlip {
            0% { transform: perspective(260px) rotateX(58deg); opacity: .45; }
            100% { transform: perspective(260px) rotateX(0); opacity: 1; }
        }

        .page2-time-number { transform-origin: 50% 70%; backface-visibility: hidden; }
        .page2-time-number.countdown-flip { animation: countdownFlip .42s ease-out both; }

        #opt-label-yes,
        #opt-label-no {
            transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
        }

        #opt-label-yes.is-selected,
        #opt-label-no.is-selected {
            box-shadow: 0 8px 20px -12px rgba(126,61,79,.55);
            transform: translateY(-2px);
        }

        .is-saving {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            opacity: .88;
        }

        .is-saving::after {
            content: "";
            width: 14px;
            height: 14px;
            border: 2px solid rgba(255,255,255,.72);
            border-top-color: transparent;
            border-radius: 50%;
            animation: buttonSpinner .7s linear infinite;
        }

        @keyframes buttonSpinner { to { transform: rotate(360deg); } }

        .milestone-name-item {
            animation: stepReveal .36s cubic-bezier(.2,.7,.25,1) both;
            animation-delay: calc(var(--milestone-index, 0) * 32ms);
        }

        @media (prefers-reduced-motion: reduce) {
            .step-transition.step-enter,
            #step-invitation.step-enter .page2-invitation-card,
            #step-invitation.step-enter .page2-invitation-card::after,
            #step-invitation.step-enter .page2-floral-tl,
            #step-invitation.step-enter .page2-floral-tr,
            .sparkle-icon,
            .page2-time-number.countdown-flip,
            .milestone-name-item,
            .is-saving::after {
                animation: none !important;
            }

            #opt-label-yes,
            #opt-label-no { transition: none; }
        }

        /* Custom scrollbars */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }
        ::-webkit-scrollbar-track {
            background: #FFF5F7;
        }
        ::-webkit-scrollbar-thumb {
            background: #E8C5C8;
            border-radius: 999px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #B76E79;
        }

        /* ================================
           PAGE 2 — FLORAL DEBUT INVITATION
           Visual-only redesign; other pages unchanged.
           ================================ */
        .page2-invitation-card {
            background:
                radial-gradient(circle at 50% 18%, rgba(255,255,255,.98), rgba(255,244,248,.94) 55%, rgba(249,224,235,.92) 100%);
            border: 2px solid rgba(205, 162, 122, .55);
            box-shadow:
                0 28px 70px -25px rgba(126, 61, 79, .32),
                inset 0 0 0 1px rgba(255,255,255,.9);
            min-height: 590px;
        }

        .page2-invitation-card::before {
            content: "";
            position: absolute;
            inset: 18px;
            border: 1px solid rgba(184, 143, 99, .55);
            border-radius: 26px;
            pointer-events: none;
        }

        .page2-invitation-card::after {
            content: "♡";
            position: absolute;
            top: 92px;
            right: 26%;
            color: rgba(190, 127, 153, .30);
            font-family: "Cormorant Garamond", Georgia, serif;
            font-size: 30px;
            transform: rotate(12deg);
            pointer-events: none;
        }

        .page2-floral-art {
            position: absolute;
            pointer-events: none;
            z-index: 1;
        }

        .page2-floral-tl {
            top: -6px;
            left: -6px;
            width: 235px;
            height: 205px;
        }

        .page2-floral-tr {
            top: -4px;
            right: -5px;
            width: 190px;
            height: 175px;
        }

        .page2-ribbon-bl {
            bottom: -5px;
            left: -8px;
            width: 170px;
            height: 220px;
        }

        .page2-butterfly-br {
            right: 12px;
            bottom: 42px;
            width: 125px;
            height: 105px;
        }

        .page2-content {
            position: relative;
            z-index: 3;
            max-width: 680px;
            margin: 0 auto;
            padding: 34px 22px 30px;
        }

        .page2-crown {
            width: 72px;
            height: 72px;
            margin: 8px auto 16px;
            border-radius: 50%;
            background: rgba(255, 250, 245, .75);
            border: 1px solid rgba(184, 143, 99, .65);
            box-shadow: 0 8px 25px rgba(183,110,121,.15);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #A98255;
            font-size: 27px;
        }

        .page2-kicker {
            color: var(--text-muted);
            letter-spacing: .20em;
            font-size: .78rem;
            font-weight: 700;
            text-transform: uppercase;
        }

        .page2-greeting {
            color: #7D2948;
            font-family: "Cormorant Garamond", Georgia, serif;
            font-weight: 700;
            font-size: clamp(2.6rem, 7vw, 4.1rem);
            line-height: 1;
            margin-top: 15px;
            margin-bottom: 22px;
            text-shadow: 0 1px 0 rgba(255,255,255,.8);
        }

        .page2-script-message {
            color: #9B5669;
            font-family: "Great Vibes", "Segoe Script", "Brush Script MT", cursive;
            font-size: clamp(2rem, 5vw, 3.35rem);
            line-height: 1.18;
            margin: 0 auto;
            max-width: 660px;
        }

        .page2-ornament {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 11px;
            margin: 26px auto 19px;
            color: #B88D62;
        }

        .page2-ornament::before,
        .page2-ornament::after {
            content: "";
            width: 95px;
            height: 1px;
            background: linear-gradient(to right, transparent, #B88D62);
        }

        .page2-ornament::after {
            background: linear-gradient(to left, transparent, #B88D62);
        }

        .page2-ornament span {
            font-size: 20px;
        }

        .page2-honor-label {
            color: #C02F61;
            font-size: .78rem;
            font-weight: 700;
            letter-spacing: .20em;
            text-transform: uppercase;
        }

        .page2-name {
            color: #7D2948;
            font-family: "Great Vibes", "Segoe Script", "Brush Script MT", cursive;
            font-size: clamp(3rem, 7vw, 4.6rem);
            line-height: 1;
            margin-top: 5px;
            text-shadow: 0 1px 0 rgba(255,255,255,.8);
        }

        .page2-18 {
            position: absolute;
            right: 16%;
            top: 25px;
            z-index: 2;
            color: rgba(193, 121, 145, .16);
            font-family: "Cormorant Garamond", Georgia, serif;
            font-size: 8rem;
            font-weight: 700;
            line-height: 1;
            transform: rotate(8deg);
            pointer-events: none;
        }

        .page2-slideshow {
            padding: 24px;
            border: 1px solid rgba(184, 143, 99, .42);
            border-radius: 30px;
            background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,239,245,.95));
            box-shadow: 0 18px 42px -24px rgba(126,61,79,.35), inset 0 0 0 1px rgba(255,255,255,.7);
            text-align: center;
        }

        .page2-slideshow-heading { margin-bottom: 16px; }

        .page2-slideshow-eyebrow {
            color: #805A3B;
            font-size: .65rem;
            font-weight: 700;
            letter-spacing: .19em;
            text-transform: uppercase;
        }

        .page2-slideshow-title {
            margin: 2px 0 0;
            color: #8E4B61;
            font-family: "Great Vibes", "Segoe Script", "Brush Script MT", cursive;
            font-size: clamp(2rem, 6vw, 2.8rem);
            line-height: 1.1;
        }

        .page2-slideshow-frame {
            position: relative;
            overflow: hidden;
            width: min(100%, 520px);
            margin-inline: auto;
            padding: 5px;
            border: 1px solid rgba(184,143,99,.4);
            border-radius: 22px;
            background: #fff8fa;
            box-shadow: 0 10px 24px -18px rgba(126,61,79,.4);
        }

        .page2-slideshow-placeholder {
            min-height: 260px;
            padding: 36px 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            background:
                radial-gradient(ellipse at 16% 22%, rgba(255,255,255,.9), transparent 27%),
                radial-gradient(ellipse at 85% 80%, rgba(227,207,239,.66), transparent 30%),
                linear-gradient(135deg, #fff7f7, #f8e9ee 52%, #f5eef9);
        }

        .page2-slideshow-placeholder::before,
        .page2-slideshow-placeholder::after {
            content: "✦";
            position: absolute;
            color: rgba(169,130,85,.45);
            font-size: 1.2rem;
        }

        .page2-slideshow-placeholder::before { top: 23%; left: 17%; }
        .page2-slideshow-placeholder::after { right: 18%; bottom: 23%; font-size: .9rem; }

        .page2-slideshow-placeholder-flower {
            color: #B78398;
            font-size: 2rem;
            line-height: 1;
        }

        .page2-slideshow-placeholder-age {
            position: absolute;
            right: 8%;
            top: 3%;
            color: rgba(193,121,145,.15);
            font: 700 clamp(6rem, 24vw, 10rem)/1 "Cormorant Garamond", Georgia, serif;
        }

        .page2-slideshow-placeholder-title {
            z-index: 1;
            margin: 9px 0 2px;
            color: #7D2948;
            font: 700 clamp(1.3rem, 4vw, 1.7rem)/1.2 "Cormorant Garamond", Georgia, serif;
        }

        .page2-slideshow-placeholder-copy {
            z-index: 1;
            margin: 0;
            color: var(--text-muted);
            font: italic 1rem "Cormorant Garamond", Georgia, serif;
        }

        .page2-slideshow-viewport {
            overflow: hidden;
            border-radius: 10px;
            touch-action: pan-y;
            cursor: grab;
            user-select: none;
            -webkit-user-select: none;
        }

        .page2-slideshow-viewport:focus-visible,
        .page2-slideshow-arrow:focus-visible {
            outline: 3px solid rgba(169,79,112,.48);
            outline-offset: 2px;
        }

        .page2-slideshow-viewport:active { cursor: grabbing; }

        .page2-slideshow-track {
            display: grid;
        }

        .page2-slideshow-slide {
            grid-area: 1 / 1;
            position: relative;
            width: 100%;
            aspect-ratio: 3 / 4;
            margin: 0;
            opacity: 0;
            transform: scale(.985);
            pointer-events: none;
            transition: opacity .42s ease, transform .42s cubic-bezier(.22,.7,.25,1);
            background: linear-gradient(135deg, #fff7f7, #f1e4ef);
        }

        .page2-slideshow-slide.is-loading::after {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            width: 30px;
            height: 30px;
            border: 3px solid rgba(169, 79, 112, .2);
            border-top-color: #A94F70;
            border-radius: 50%;
            pointer-events: none;
            transform: translate(-50%, -50%);
            animation: slideshowPhotoLoading .8s linear infinite;
        }

        @keyframes slideshowPhotoLoading {
            to { transform: translate(-50%, -50%) rotate(360deg); }
        }

        .page2-slideshow-slide[aria-hidden="false"] {
            z-index: 1;
            opacity: 1;
            transform: scale(1);
            pointer-events: auto;
        }

        .page2-slideshow-slide img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            pointer-events: none;
        }

        .page2-slideshow-slide picture {
            display: block;
            width: 100%;
            height: 100%;
        }

        .page2-slideshow-image-error {
            display: grid;
            width: 100%;
            height: 100%;
            min-height: 180px;
            padding: 24px;
            color: #8E4B61;
            font: italic 1rem "Cormorant Garamond", Georgia, serif;
            text-align: center;
            place-items: center;
            background:
                radial-gradient(circle at 50% 35%, rgba(255,255,255,.9), transparent 42%),
                linear-gradient(135deg, #fff7f7, #f1e4ef);
        }

        .page2-slideshow-controls {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-top: 16px;
        }

        .page2-slideshow-arrow {
            display: grid;
            width: 44px;
            height: 44px;
            flex: 0 0 44px;
            border: 1px solid rgba(184,143,99,.48);
            border-radius: 50%;
            background: rgba(255,255,255,.8);
            color: #8E4B61;
            cursor: pointer;
            place-items: center;
            transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
        }

        .page2-slideshow-arrow svg {
            display: block;
            width: 18px;
            height: 18px;
            fill: none;
            stroke: currentColor;
            stroke-linecap: round;
            stroke-linejoin: round;
            stroke-width: 1.8;
        }

        .page2-slideshow-progress {
            display: grid;
            width: min(148px, calc(100vw - 170px));
            flex: 0 1 148px;
            gap: 6px;
            align-items: center;
        }

        .page2-slideshow-counter {
            margin: 0;
            color: #80613F;
            font-size: .68rem;
            font-weight: 700;
            letter-spacing: .12em;
            font-variant-numeric: tabular-nums;
            line-height: 1;
        }

        .page2-slideshow-progress-track {
            display: block;
            width: 100%;
            height: 2px;
            overflow: hidden;
            border-radius: 999px;
            background: rgba(232,197,200,.68);
        }

        .page2-slideshow-progress-fill {
            display: block;
            width: 10%;
            height: 100%;
            border-radius: inherit;
            background: linear-gradient(90deg, var(--action-rose), var(--action-gold));
            transition: width .36s ease;
        }

        .page2-slideshow-caption {
            min-height: 1.3em;
            margin: 3px 0 0;
            color: var(--text-muted);
            font: italic .98rem "Cormorant Garamond", Georgia, serif;
            line-height: 1.3;
            text-wrap: balance;
        }

        @keyframes slideshowCaptionEnter {
            from { opacity: 0; transform: translateY(5px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .page2-slideshow-caption.slide-caption-enter {
            animation: slideshowCaptionEnter .28s ease-out both;
        }

        .page2-slideshow-status {
            position: absolute !important;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        @media (max-width: 640px) {
            .page2-slideshow { padding: 17px; border-radius: 24px; }
            .page2-slideshow-placeholder { min-height: 215px; padding: 28px 16px; }
            .page2-slideshow-slide { aspect-ratio: 3 / 4; }
            .page2-slideshow-image-error { min-height: 160px; }
            .page2-slideshow-caption { min-height: 2.6em; }
            .page2-slideshow-controls { gap: 10px; }
        }

        @media (prefers-reduced-motion: reduce) {
            .page2-slideshow-slide { transition: none; }
            .page2-slideshow-slide.is-loading::after { animation: none; }
            .page2-slideshow-caption.slide-caption-enter { animation: none; }
            .page2-slideshow-arrow,
            .page2-slideshow-progress-fill { transition: none; }
        }

        .page2-countdown {
            background: linear-gradient(135deg, rgba(255,249,250,.98), rgba(248,224,234,.96));
            border: 1px solid rgba(184, 143, 99, .45);
            box-shadow: 0 16px 40px -18px rgba(126, 61, 79, .28);
            color: #6F3C4B;
            position: relative;
            overflow: hidden;
        }

        .page2-countdown::before {
            content: "";
            position: absolute;
            left: 12%;
            right: 12%;
            top: 0;
            height: 2px;
            background: linear-gradient(to right, transparent, #C9A06C, transparent);
        }

        .page2-countdown-title {
            color: #8E4B61;
            font-family: "Great Vibes", "Segoe Script", "Brush Script MT", cursive;
        }

        .page2-countdown-subtitle {
            color: var(--text-muted);
        }

        .page2-time-box {
            background: rgba(255,255,255,.55);
            border: 1px solid rgba(184,143,99,.35);
            box-shadow: inset 0 0 18px rgba(255,255,255,.65);
        }

        .page2-time-number {
            color: #9A4D65;
        }

        .page2-time-label {
            color: #76505B;
        }

        .page2-details-button {
            background: linear-gradient(135deg, #9A4160, #805A3B);
            box-shadow: 0 12px 30px -12px rgba(126,61,79,.5);
        }

        .add-calendar-button {
            display: inline-flex;
            min-height: 44px;
            align-items: center;
            justify-content: center;
            gap: 7px;
            padding: 8px 12px;
            border: 1px solid rgba(169,79,112,.35);
            border-radius: 12px;
            background: linear-gradient(135deg, #9A4160, #805A3B);
            color: #fff;
            font-size: .72rem;
            font-weight: 700;
            box-shadow: 0 6px 16px -10px rgba(126,61,79,.7);
            transition: transform .14s ease, filter .14s ease, box-shadow .14s ease;
            touch-action: manipulation;
        }

        .get-directions-button {
            display: inline-flex;
            min-height: 44px;
            align-items: center;
            justify-content: center;
            gap: 7px;
            padding: 8px 12px;
            border: 1px solid rgba(169,79,112,.35);
            border-radius: 12px;
            background: rgba(255,255,255,.92);
            color: #8E4B61;
            font-size: .72rem;
            font-weight: 700;
            text-decoration: none;
            box-shadow: 0 6px 16px -12px rgba(126,61,79,.55);
            transition: transform .14s ease, filter .14s ease, box-shadow .14s ease;
            touch-action: manipulation;
        }

        .add-calendar-button:active,
        .get-directions-button:active {
            transform: translateY(2px) scale(.97);
            filter: brightness(.94);
            box-shadow: inset 0 2px 5px rgba(70,32,45,.14);
        }

        .add-calendar-note,
        .add-calendar-status {
            color: var(--text-muted);
            font-size: .65rem;
            line-height: 1.45;
            margin: 6px 0 0;
        }

        .add-calendar-status:empty { display: none; }

        .add-calendar-status.is-success,
        .add-calendar-status.is-error {
            display: flex;
            align-items: flex-start;
            gap: 5px;
            font-weight: 600;
        }

        .add-calendar-status.is-success { color: #28734f; }
        .add-calendar-status.is-error { color: #a12f4b; }
        .add-calendar-status.is-success::before { content: "✓"; }
        .add-calendar-status.is-error::before { content: "!"; }

        @media (max-width: 640px) {
            .page2-invitation-card {
                min-height: 560px;
            }

            .page2-floral-tl {
                width: 150px;
                height: 135px;
            }

            .page2-floral-tr {
                width: 125px;
                height: 120px;
            }

            .page2-ribbon-bl {
                width: 115px;
                height: 155px;
            }

            .page2-butterfly-br {
                width: 90px;
                height: 75px;
                right: 0;
                bottom: 28px;
            }

            .page2-content {
                padding: 28px 12px 24px;
            }

            .page2-18 {
                right: 9%;
                font-size: 5rem;
            }

            .page2-script-message {
                font-size: 2rem;
            }

            .page2-ornament::before,
            .page2-ornament::after {
                width: 55px;
            }
        }


        /* ================================
           SURPRISE REMINDER — FLORAL MODAL
           ================================ */
        .secret-modal-backdrop {
            position: fixed;
            inset: 0;
            z-index: 80;
            display: flex;
            align-items: flex-start;
            justify-content: center;
            box-sizing: border-box;
            overflow-x: hidden;
            overflow-y: auto;
            overscroll-behavior-y: contain;
            -webkit-overflow-scrolling: touch;
            padding: 20px 16px;
            padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
            padding-left: max(16px, env(safe-area-inset-left, 0px));
            padding-right: max(16px, env(safe-area-inset-right, 0px));
            background: rgba(73, 37, 51, .48);
            backdrop-filter: blur(7px);
            -webkit-backdrop-filter: blur(7px);
        }

        #qr-scanner-modal {
            align-items: flex-start;
            box-sizing: border-box;
            overflow-x: hidden;
            overflow-y: auto;
            overscroll-behavior-y: contain;
            -webkit-overflow-scrolling: touch;
            padding: 16px;
            padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
            padding-left: max(16px, env(safe-area-inset-left, 0px));
            padding-right: max(16px, env(safe-area-inset-right, 0px));
        }

        #qr-scanner-modal > div {
            flex: 0 0 auto;
            margin: auto;
        }

        .secret-modal-card {
            width: min(560px, 100%);
            flex: 0 0 auto;
            margin: auto;
            position: relative;
            overflow: hidden;
            border-radius: 28px;
            background:
                radial-gradient(circle at 50% 0%, rgba(255,255,255,.98), rgba(255,245,248,.98) 62%, rgba(245,225,235,.98));
            border: 2px solid rgba(184, 143, 99, .55);
            box-shadow: 0 30px 80px rgba(57, 26, 40, .35);
            padding: 42px 28px 30px;
            text-align: center;
        }

        .secret-modal-card::before {
            content: "";
            position: absolute;
            inset: 12px;
            border: 1px solid rgba(184, 143, 99, .48);
            border-radius: 21px;
            pointer-events: none;
        }

        .secret-modal-flower {
            position: absolute;
            pointer-events: none;
            opacity: .9;
        }

        .secret-modal-flower.tl {
            top: -4px;
            left: -8px;
            width: 125px;
            height: 105px;
        }

        .secret-modal-flower.br {
            right: -5px;
            bottom: -8px;
            width: 125px;
            height: 100px;
            transform: rotate(180deg);
        }

        .secret-modal-content {
            position: relative;
            z-index: 2;
        }

        .secret-modal-icon {
            width: 68px;
            height: 68px;
            margin: 2px auto 15px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255,255,255,.75);
            border: 1px solid rgba(184,143,99,.58);
            color: #A98255;
            font-size: 25px;
            box-shadow: 0 10px 25px rgba(183,110,121,.14);
        }

        .secret-modal-title {
            color: #7D2948;
            font-family: "Cormorant Garamond", Georgia, serif;
            font-size: clamp(1.9rem, 5vw, 2.55rem);
            font-weight: 700;
            margin-bottom: 12px;
        }

        .secret-modal-message {
            color: #704351;
            font-family: "Cormorant Garamond", Georgia, serif;
            font-size: 1.08rem;
            line-height: 1.7;
            max-width: 455px;
            margin: 0 auto 22px;
        }

        .secret-modal-ornament {
            color: #B88D62;
            font-size: 20px;
            letter-spacing: .28em;
            margin-bottom: 18px;
        }

        .secret-modal-button {
            position: relative;
            z-index: 3;
            background: linear-gradient(135deg, #9A4160, #805A3B);
            color: white;
            border: 0;
            border-radius: 15px;
            padding: 13px 28px;
            font-size: .82rem;
            font-weight: 700;
            letter-spacing: .04em;
            box-shadow: 0 12px 28px -10px rgba(126,61,79,.5);
            cursor: pointer;
            transition: transform .2s ease, box-shadow .2s ease;
        }

#recovery-form > .secret-modal-button[type="submit"] {
    display: block;
    margin-inline: auto;
}

#recovery-form > .secret-modal-button[type="submit"].is-saving {
    display: flex;
    width: min(100%, 260px);
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-inline: auto;
    cursor: wait;
    opacity: .92;
}

#recovery-form > .secret-modal-button[type="submit"].is-saving::after {
    display: inline-block;
    flex: 0 0 14px;
}

#recovery-form > .secret-modal-button[type="submit"].is-saving:hover {
    transform: none;
    box-shadow: 0 12px 28px -10px rgba(126,61,79,.5);
}

.secret-modal-button:hover {
            transform: translateY(-1px);
            box-shadow: 0 16px 32px -10px rgba(126,61,79,.55);
        }

        .secret-note-box {
            background: linear-gradient(135deg, rgba(255,249,250,.98), rgba(247,226,235,.94));
            border: 1px solid rgba(184,143,99,.42);
            border-radius: 22px;
            padding: 18px 18px 16px;
            margin-bottom: 22px;
            text-align: center;
        }

        .secret-note-box .secret-note-title {
            color: #7D2948;
            font-family: "Cormorant Garamond", Georgia, serif;
            font-size: 1.35rem;
            font-weight: 700;
            margin-bottom: 5px;
        }

        .secret-note-box .secret-note-text {
            color: #76505b;
            font-family: "Cormorant Garamond", Georgia, serif;
            font-size: .98rem;
            line-height: 1.55;
            margin: 0;
        }

        @media (max-width: 640px) {
            .secret-modal-card {
                padding: 36px 20px 25px;
            }

            .secret-modal-flower.tl,
            .secret-modal-flower.br {
                width: 95px;
                height: 80px;
            }
        }

        .invitation-qr-wrap {
            background: rgba(255,255,255,.96);
            border: 1px solid rgba(248,168,185,.55);
            border-radius: 22px;
            padding: 18px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 12px 30px -18px rgba(126,61,79,.35);
            touch-action: manipulation;
            -webkit-user-select: none;
            user-select: none;
        }

        .invitation-qr-wrap img {
            display: block;
            width: 240px;
            height: 240px;
            max-width: 72vw;
            max-height: 72vw;
            image-rendering: pixelated;
            background: #fff;
        }

        .invitation-qr-caption {
            color: #76505b;
            font-family: "Cormorant Garamond", Georgia, serif;
            font-size: .98rem;
            line-height: 1.5;
        }

        @media (max-width: 640px) {
            .invitation-qr-wrap { padding: 14px; }
            .invitation-qr-wrap img { width: 210px; height: 210px; }
        }

/* Fallback for gradient buttons so the design still works even if
   Tailwind's gradient utility classes are not generated. */
.bg-gradient-to-r {
    background-image: linear-gradient(90deg, var(--action-rose) 0%, var(--action-gold) 50%, #b21f43 100%) !important;
}

.bg-gradient-to-r:hover {
    background-image: linear-gradient(90deg, #b21f43 0%, #8C4B54 50%, #941e3c 100%) !important;
}


/* Registration button: explicit CSS fallback so it never becomes invisible
   if Tailwind custom utility generation changes. */
.registration-submit {
    width: 100%;
    background: linear-gradient(90deg, var(--action-rose) 0%, var(--action-gold) 50%, #b21f43 100%) !important;
    background-color: #d42d57 !important;
    color: #ffffff !important;
    border: 0 !important;
    cursor: pointer;
}

.registration-submit:hover {
    background: linear-gradient(90deg, #b21f43 0%, #8C4B54 50%, #941e3c 100%) !important;
    color: #ffffff !important;
}

.registration-submit span,
.registration-submit i {
    color: #ffffff !important;
}

/* =========================================================
   COLOR RESTORE FALLBACKS
   Keeps the original Kylie palette even if Tailwind custom
   utilities are not generated on GitHub Pages.
   ========================================================= */
:root {
  --blush-50:#fff5f7;
  --blush-100:#ffe3e8;
  --blush-200:#fcccd6;
  --blush-300:#f8a8b9;
  --blush-400:#f37895;
  --blush-500:#e84e72;
  --blush-600:#d42d57;
  --blush-700:#b21f43;
  --blush-800:#941e3c;
  --blush-900:#7d1d37;
  --rosegold:#B76E79;
  --rosegold-light:#E8C5C8;
  --rosegold-dark:#8C4B54;
  --champagne:#F7E7CE;
  --action-rose:#9A4160;
  --action-gold:#805A3B;
  --text-muted:#87545E;
}

/* Keep page and dialog switching reliable if the Tailwind CDN is unavailable. */
.hidden { display: none !important; }
.overflow-hidden { overflow: hidden !important; }

/* Restore the responsive header labels even though .hidden is kept important
   as a fallback for the site's dynamic step and dialog visibility. */
.grand-debut-badge,
.guest-records-label {
    display: none !important;
}

@media (min-width: 640px) {
    .grand-debut-badge { display: inline-block !important; }
    .guest-records-label { display: inline !important; }
}

@media (min-width: 1024px) {
    #step-indicator:not(.invitation-view-progress-hidden) {
        display: flex !important;
    }

    #mobile-step-progress {
        display: none !important;
    }
}

/* Backgrounds */
.bg-blush-50{background-color:var(--blush-50)!important}
.bg-blush-100{background-color:var(--blush-100)!important}
.bg-blush-200{background-color:var(--blush-200)!important}
.bg-blush-600{background-color:var(--blush-600)!important}
.bg-blush-700{background-color:var(--blush-700)!important}
.bg-blush-800{background-color:var(--blush-800)!important}
.bg-blush-900{background-color:var(--blush-900)!important}
.bg-rosegold{background-color:var(--rosegold)!important}

/* Text */
.text-white{color:#fff!important}
.text-blush-100{color:var(--blush-100)!important}
.text-blush-200{color:var(--blush-200)!important}
.text-blush-300{color:var(--blush-300)!important}
.text-blush-400{color:var(--blush-400)!important}
.text-blush-500{color:var(--blush-500)!important}
.text-blush-600{color:var(--blush-600)!important}
.text-blush-700{color:var(--blush-700)!important}
.text-blush-800{color:var(--blush-800)!important}
.text-blush-900{color:var(--blush-900)!important}
.text-rosegold{color:var(--rosegold)!important}
.text-rosegold-dark{color:var(--rosegold-dark)!important}
.text-champagne{color:var(--champagne)!important}

/* The host drawer's compact rose-gold action needs a deeper base for white text. */
#db-drawer .db-drawer-header button.bg-rosegold {
    background-color: var(--rosegold-dark) !important;
}

#db-drawer .db-drawer-header button.bg-rosegold:hover {
    background-color: var(--blush-600) !important;
}

/* Borders / rings */
.border-blush-100{border-color:var(--blush-100)!important}
.border-blush-200{border-color:var(--blush-200)!important}
.border-blush-300{border-color:var(--blush-300)!important}
.border-rosegold{border-color:var(--rosegold)!important}
.focus\\:border-rosegold:focus{border-color:var(--rosegold)!important}
.focus\\:ring-blush-200:focus{--tw-ring-color:var(--blush-200)!important}
.focus\\:ring-blush-300:focus{--tw-ring-color:var(--blush-300)!important}

/* Opacity variants used by the page */
.bg-blush-100\\/70{background-color:rgba(255,227,232,.70)!important}
.bg-blush-200\\/50{background-color:rgba(252,204,214,.50)!important}
.bg-blush-50\\/50{background-color:rgba(255,245,247,.50)!important}
.bg-rosegold-light\\/50{background-color:rgba(232,197,200,.50)!important}
.text-blush-900\\/80{color:rgba(125,29,55,.80)!important}

/* Gradient utilities */
.bg-gradient-to-r{background-image:linear-gradient(90deg,var(--action-rose),var(--action-gold),var(--blush-700))!important}
.bg-gradient-to-br{background-image:linear-gradient(135deg,var(--blush-900),var(--blush-800),var(--rosegold-dark))!important}
.from-blush-700{--tw-gradient-from:var(--blush-700)!important;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to,rgba(178,31,67,0))!important}
.to-rosegold{--tw-gradient-to:var(--rosegold)!important}
.via-rosegold{--tw-gradient-stops:var(--tw-gradient-from),var(--rosegold),var(--tw-gradient-to)!important}

/* Hover colors */
.hover\\:from-blush-800:hover{--tw-gradient-from:var(--blush-800)!important}
.hover\\:to-rosegold-dark:hover{--tw-gradient-to:var(--rosegold-dark)!important}
.hover\\:bg-blush-100:hover{background-color:var(--blush-100)!important}
.hover\\:bg-blush-800:hover{background-color:var(--blush-800)!important}
.hover\\:text-blush-800:hover{color:var(--blush-800)!important}

/* Typography fallbacks */
.font-script{font-family:'Great Vibes','Segoe Script','Brush Script MT',cursive!important}
.font-serif-debut{font-family:'Cormorant Garamond',Georgia,serif!important}

/* Registration and important action buttons */
.registration-submit,
button[type="submit"] {
  background-image:linear-gradient(90deg,var(--action-rose),var(--action-gold),var(--blush-700))!important;
  background-color:var(--blush-600)!important;
  color:#fff!important;
}
.registration-submit:hover,
button[type="submit"]:hover {
  background-image:linear-gradient(90deg,var(--blush-700),var(--rosegold-dark),var(--blush-800))!important;
}
.registration-submit span,
.registration-submit i,
button[type="submit"] span,
button[type="submit"] i {color:#fff!important}

/* =========================================================
   BUTTON PRESS FEEDBACK — subtle "sink" effect
   Visual-only: no functionality changes.
   ========================================================= */
button:not(:disabled) {
    transition-property: transform, box-shadow, background-color, border-color, color, filter;
    transition-duration: 0.14s;
    transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    touch-action: manipulation;
}

button:not(:disabled):active {
    transform: translateY(4px) scale(0.975);
    filter: brightness(0.95);
}

/* Stronger touch feedback on phones/tablets where hover states do not exist. */
@media (hover: none) and (pointer: coarse) {
    button:not(:disabled) {
        transition-duration: 0.12s;
    }

    button:not(:disabled):active {
        transform: translateY(1px) scale(0.97);
        filter: brightness(0.94);
        box-shadow: inset 0 1px 4px rgba(70, 32, 45, 0.12), 0 1px 3px rgba(70, 32, 45, 0.08) !important;
    }
}

button:disabled {
    cursor: not-allowed;
}

/* Keep every site popup reachable when its contents are taller than the screen. */
#admin-login-modal,
#milestone-modal,
#qr-scanner-modal,
.secret-modal-backdrop {
    box-sizing: border-box;
    align-items: flex-start;
    align-items: safe center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    padding-top: max(16px, env(safe-area-inset-top, 0px));
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
}

@keyframes popupBackdropEnter {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popupCardEnter {
    from { opacity: 0; transform: translateY(12px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

#admin-login-modal:not(.hidden),
#milestone-modal:not(.hidden),
#qr-scanner-modal:not(.hidden),
.secret-modal-backdrop:not(.hidden) {
    animation: popupBackdropEnter .18s ease-out both;
}

#admin-login-modal:not(.hidden) > .debut-card,
#milestone-modal:not(.hidden) > div,
#qr-scanner-modal:not(.hidden) > div,
.secret-modal-backdrop:not(.hidden) > .secret-modal-card {
    animation: popupCardEnter .24s cubic-bezier(.2,.7,.25,1) both;
}

#admin-login-modal > .debut-card,
#qr-scanner-modal > div {
    box-sizing: border-box;
    flex: 0 0 auto;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - max(32px, env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px)));
    margin: auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}

#qr-scanner-modal > div > .qr-scanner-header {
    position: sticky;
    top: 0;
    z-index: 1;
}

#milestone-modal > div {
    box-sizing: border-box;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - max(32px, env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px)));
    margin: auto;
    overflow: hidden;
}

#milestone-name-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}

#db-drawer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: flex;
    width: 100%;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.2,.7,.25,1);
    max-height: 80vh;
    max-height: min(80vh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

#db-drawer:not(.translate-y-full) {
    transform: translateY(0);
}

#db-drawer > .overflow-y-auto {
    overflow-y: auto;
    min-height: 0;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}

#db-drawer .overflow-x-auto {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

/* A gentle reveal as invitation sections enter the viewport. */
.scroll-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.25,1);
}

.scroll-reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Quiet floral motion in the background, kept clear of clicks and scrolling. */
.floating-petal-layer {
    position: fixed;
    inset: 0;
    z-index: 5;
    overflow: hidden;
    pointer-events: none;
    contain: layout paint;
}

.floating-petal {
    position: absolute;
    top: -8vh;
    left: var(--petal-left);
    color: rgba(169, 79, 112, .44);
    font-size: clamp(13px, 2.4vw, 22px);
    line-height: 1;
    opacity: .42;
    animation: petalDrift var(--petal-duration) linear var(--petal-delay) infinite;
    will-change: transform;
}

@keyframes petalDrift {
    from { transform: translate3d(0, -8vh, 0) rotate(0deg); }
    to { transform: translate3d(var(--petal-drift), 112vh, 0) rotate(340deg); }
}

/* Mobile progress stays visible where the desktop step pills are hidden. */
.mobile-step-progress {
    width: min(100% - 32px, 80rem);
    margin: 8px auto 0;
    color: #7D2948;
}

.mobile-step-progress-copy {
    margin-bottom: 5px;
    text-align: right;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .035em;
}

@keyframes mobileStepLabelEnter {
    from { opacity: .55; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-step-progress-copy.step-label-enter {
    animation: mobileStepLabelEnter .22s ease-out both;
}

.mobile-step-progress-track {
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(169, 79, 112, .18);
}

.mobile-step-progress-fill {
    display: block;
    width: 25%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--action-rose), var(--action-gold));
    transition: width .45s cubic-bezier(.2,.7,.25,1);
}

.invitation-view-progress-hidden {
    display: none !important;
}

.invite-view-indicator {
    width: max-content;
    max-width: calc(100% - 32px);
    align-items: center;
    gap: 4px;
    margin: 8px auto 0;
    padding: 4px;
    border: 1px solid rgba(184, 143, 98, .35);
    border-radius: 999px;
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 4px 14px rgba(126, 61, 79, .08);
}

.invite-view-indicator:not([hidden]) {
    display: flex;
}

.invite-view-indicator-item {
    display: inline-flex;
    min-height: 44px;
    min-width: 96px;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #8A6570;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .025em;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.invite-view-indicator-item:hover:not([aria-current="page"]) {
    background: rgba(232, 197, 200, .38);
}

.invite-view-indicator-item[aria-current="page"] {
    color: #fff;
    background: linear-gradient(120deg, var(--action-rose), var(--action-gold));
    box-shadow: 0 3px 9px rgba(126, 61, 79, .2);
}

.invite-view-indicator-item:focus-visible {
    outline: 3px solid rgba(169, 79, 112, .45);
    outline-offset: 2px;
}

.primary-action-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 700;
    line-height: 1.25;
    box-shadow: 0 9px 22px -12px rgba(126, 61, 79, .68);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.primary-action-button:focus-visible {
    outline: 3px solid rgba(169, 79, 112, .48);
    outline-offset: 3px;
}

.event-detail-card {
    position: relative;
    isolation: isolate;
    min-width: 0;
    min-height: 100%;
    border-color: rgba(184, 143, 98, .34) !important;
    background: rgba(255, 255, 255, .92) !important;
}

.event-detail-card::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 18px;
    bottom: 18px;
    left: 1px;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(180deg, var(--action-rose), #c69762 52%, var(--action-gold));
    box-shadow: 0 0 10px rgba(154, 65, 96, .16);
    opacity: .76;
    transform: scaleY(1);
    transform-origin: center;
    transition: opacity .42s ease, transform .48s cubic-bezier(.2,.7,.25,1);
}

.event-detail-card > * {
    position: relative;
    z-index: 1;
}

.event-detail-card.scroll-reveal:not(.is-revealed)::before {
    opacity: .2;
    transform: scaleY(.32);
}

.event-detail-card h5 {
    color: #825465;
    font-size: .72rem;
}

.event-detail-card p:not(.add-calendar-note):not(.add-calendar-status) {
    line-height: 1.5;
}

/* Reveal event information in a short, staggered sequence on the Details page. */
#step-details .event-details-grid > .event-detail-card:nth-child(1) { transition-delay: 0ms; }
#step-details .event-details-grid > .event-detail-card:nth-child(2) { transition-delay: 55ms; }
#step-details .event-details-grid > .event-detail-card:nth-child(3) { transition-delay: 110ms; }
#step-details .event-details-grid > .event-detail-card:nth-child(4) { transition-delay: 165ms; }

#step-details .event-detail-card > div:first-child {
    transform: scale(.88) rotate(-8deg);
    transition: transform .42s cubic-bezier(.2,.7,.25,1);
}

#step-details .event-detail-card.is-revealed > div:first-child {
    transform: scale(1) rotate(0);
}

@media (hover: hover) and (pointer: fine) {
    .primary-action-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 26px -12px rgba(126, 61, 79, .68);
        filter: brightness(1.04);
    }
}

@media (max-width: 640px) {
    .event-detail-card {
        gap: 12px;
        padding: 16px;
    }

    .event-detail-card > div:first-child {
        width: 38px;
        height: 38px;
    }

    #details-rsvp-button {
        flex: 1 1 auto;
        justify-content: center;
    }
}

@keyframes inlineStatusReveal {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

#invite-load-notice:not(.hidden),
#rsvp-save-status:not(.hidden),
#recovery-email-status:not(.hidden),
#admin-login-error:not(.hidden),
#calendar-download-status:not(:empty) {
    animation: inlineStatusReveal .24s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
    #invite-load-notice:not(.hidden),
    #rsvp-save-status:not(.hidden),
    #recovery-email-status:not(.hidden),
    #admin-login-error:not(.hidden),
    #calendar-download-status:not(:empty) {
        animation: none;
    }
}

/* Match the existing button press feedback with a small lift on desktop. */
@media (hover: hover) and (pointer: fine) {
    #step-details .grid > div,
    #step-details .grid > button {
        transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    }

    #step-details .grid > div:hover,
    #step-details .grid > button:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 24px -16px rgba(126, 61, 79, .5);
    }

    .get-directions-button:hover,
    .add-calendar-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px -13px rgba(126, 61, 79, .65);
        filter: brightness(.96);
    }
}

.get-directions-button:focus-visible,
.add-calendar-button:focus-visible,
#step-details button:focus-visible {
    outline: 3px solid rgba(169, 79, 112, .45);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    .step-transition,
    .event-detail-card,
    #db-drawer,
    .primary-action-button,
    .get-directions-button,
    .add-calendar-button,
    .page2-slideshow-arrow {
        transition: none !important;
    }
    #step-details .grid > div:hover,
    #step-details .grid > button:hover,
    .primary-action-button:hover,
    .get-directions-button:hover,
    .add-calendar-button:hover,
    .get-directions-button:active,
    .add-calendar-button:active {
        transform: none !important;
    }
    #admin-login-modal:not(.hidden),
    #milestone-modal:not(.hidden),
    #qr-scanner-modal:not(.hidden),
    .secret-modal-backdrop:not(.hidden),
    #admin-login-modal:not(.hidden) > .debut-card,
    #milestone-modal:not(.hidden) > div,
    #qr-scanner-modal:not(.hidden) > div,
    .secret-modal-backdrop:not(.hidden) > .secret-modal-card {
        animation: none !important;
    }
    button:not(:disabled) { transition: none !important; }
    button:not(:disabled):active {
        transform: none !important;
        filter: none !important;
        box-shadow: inset 0 0 0 2px rgba(131, 54, 82, .24) !important;
    }
    .scroll-reveal,
    .scroll-reveal.is-revealed {
        opacity: 1;
        transform: none;
        transition: none;
    }
    #step-details .event-detail-card > div:first-child {
        transform: none !important;
        transition: none !important;
    }
    .event-detail-card::before {
        opacity: .76 !important;
        transform: scaleY(1) !important;
        transition: none !important;
    }
    .floating-petal-layer { display: none; }
    .mobile-step-progress-fill { transition: none; }
    .mobile-step-progress-copy.step-label-enter { animation: none; }
}

/* Invitation envelope shown when the guest opens their invitation page. */
@keyframes siteSoftReveal {
    0% { opacity: 0; transform: translateY(12px); filter: blur(2px); }
    70% { opacity: 1; transform: translateY(-2px); filter: blur(0); }
    100% { opacity: 1; transform: translateY(0); filter: none; }
}

.site-open-animate body > header {
    animation: siteSoftReveal .62s cubic-bezier(.2,.7,.25,1) both;
}

.site-open-animate #step-registration > .debut-card {
    animation: siteSoftReveal .72s cubic-bezier(.2,.7,.25,1) .08s both;
}

.invite-link-loader {
    position: fixed;
    z-index: 250;
    inset: 0;
    display: none;
    align-content: center;
    justify-items: center;
    gap: 12px;
    padding: 28px;
    background:
        radial-gradient(ellipse at 50% 43%, rgba(255, 255, 255, .98), rgba(255, 246, 249, .98) 63%),
        #fff6f8;
    color: #512b39;
    text-align: center;
}

html.invite-link-pending #invite-link-loader {
    display: grid;
}

html.invite-link-pending #step-registration,
html.invite-link-pending #step-indicator,
html.invite-link-pending #mobile-step-progress {
    display: none !important;
}

.invite-link-loader-mark {
    position: relative;
    display: grid;
    width: 66px;
    height: 66px;
    place-items: center;
    border: 1px solid rgba(141, 41, 71, .25);
    border-radius: 50%;
    color: #8d2947;
    font: italic 500 38px/.9 "Cormorant Garamond", Georgia, serif;
}

.invite-link-loader-mark::after {
    position: absolute;
    inset: -5px;
    border: 1px solid transparent;
    border-top-color: #a6405d;
    border-right-color: rgba(166, 64, 93, .4);
    border-radius: inherit;
    content: "";
    animation: inviteLoaderTurn 1.2s linear infinite;
}

.invite-link-loader-title {
    margin-top: 7px;
    color: #6b2b40;
    font: 500 clamp(1.3rem, 4vw, 1.65rem)/1.1 "Cormorant Garamond", Georgia, serif;
}

.invite-link-loader-copy {
    max-width: 270px;
    color: #876c73;
    font: 400 .8rem/1.6 "Montserrat", Arial, sans-serif;
}

@keyframes inviteLoaderTurn {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .invite-link-loader-mark::after {
        animation-duration: 3s;
    }
}

.opening-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    align-items: safe center;
    justify-content: center;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    padding: max(24px, env(safe-area-inset-top, 0px)) 20px max(20px, env(safe-area-inset-bottom, 0px));
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
    background: radial-gradient(ellipse at 50% 32%, #fff 0%, #fff7f9 48%, #f4e2e8 100%);
}

/* Keep CSS-defined flex overlays hidden whenever their hidden state is set. */
.opening-overlay.hidden,
#admin-login-modal.hidden,
#milestone-modal.hidden,
#qr-scanner-modal.hidden,
.secret-modal-backdrop.hidden {
    display: none !important;
}

body.entry-animation-playing {
    overflow: hidden;
}

body.entry-animation-playing > :not(#site-opening-overlay) {
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}

.opening-scene {
    width: min(100%, 390px);
    text-align: center;
}

.opening-eyebrow {
    margin: 0 0 24px;
    color: var(--action-gold);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.opening-envelope-trigger {
    display: block;
    width: min(310px, 82vw);
    margin: 0 auto 23px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}

.opening-envelope {
    position: relative;
    display: block;
    width: 100%;
    height: 198px;
    margin: 0;
    perspective: 900px;
    border: 1px solid rgba(169, 79, 112, .26);
    border-radius: 13px;
    background: linear-gradient(145deg, #f2dce4, #e8c5d0 60%, #d8a8b6);
    box-shadow: 0 24px 48px -20px rgba(101, 51, 70, .45), inset 0 1px rgba(255,255,255,.8);
}

.opening-letter {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 8%;
    display: flex;
    width: 84%;
    height: 166px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(184, 143, 98, .44);
    border-radius: 8px;
    background: #fffaf9;
    box-shadow: 0 5px 12px rgba(91, 42, 61, .12);
    opacity: 0;
    transform: translateY(28px);
}

.opening-letter-kicker {
    color: #966776;
    font-size: .6rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.opening-letter-name {
    margin-top: 7px;
    color: #7D2948;
    font-family: "Great Vibes", "Segoe Script", "Brush Script MT", cursive;
    font-size: 2.55rem;
    line-height: 1;
}

.opening-letter-flourish {
    margin-top: 9px;
    color: #B88D62;
    font-size: .85rem;
    letter-spacing: .24em;
}

.opening-envelope-pocket {
    position: absolute;
    z-index: 3;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,239,244,.92), rgba(222,174,190,.9));
    clip-path: polygon(0 0, 50% 49%, 100% 0, 100% 100%, 0 100%);
}

.opening-envelope-flap {
    position: absolute;
    z-index: 4;
    inset: 0 0 auto;
    height: 58%;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(150deg, #f8e9ee, #dcaebc);
    clip-path: polygon(0 0, 100% 0, 50% 78%);
    transform-origin: 50% 0;
    backface-visibility: hidden;
}

.opening-envelope-seal {
    position: absolute;
    z-index: 5;
    top: 48%;
    left: 50%;
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--action-rose), var(--action-gold));
    color: white;
    font-family: Georgia, serif;
    font-size: 17px;
    box-shadow: 0 4px 10px rgba(103, 45, 65, .24);
    transform: translate(-50%, -50%);
}

.opening-tap-hint {
    display: block;
    margin-top: 12px;
    color: #8A6570;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .08em;
}

.opening-overlay.is-prompt .opening-envelope-seal {
    animation: sealPulse 1.8s ease-in-out infinite;
}

.opening-envelope-trigger:focus-visible {
    outline: 3px solid rgba(169, 79, 112, .5);
    outline-offset: 8px;
    border-radius: 16px;
}

.opening-envelope-trigger:active {
    transform: none !important;
    filter: none !important;
}

.opening-title {
    margin: 0;
    color: #7D2948;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.45rem, 5vw, 1.9rem);
    font-weight: 700;
}

@media (max-height: 480px) {
    .opening-overlay {
        align-items: center;
        align-items: safe center;
        overflow-x: hidden;
        overflow-y: auto;
        padding-top: max(12px, env(safe-area-inset-top, 0px));
        padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
    }

    .opening-eyebrow { margin-bottom: 12px; }
    .opening-envelope-trigger { margin-bottom: 12px; }
    .opening-envelope { height: 150px; }
    .opening-letter { top: 8px; height: 126px; }
    .opening-letter-name { font-size: 2.2rem; }
    .opening-envelope-trigger:focus-visible { outline-offset: 3px; }
}

.opening-overlay.is-prompt .opening-scene {
    animation: openingSceneEnter .4s ease both;
}

.opening-overlay.is-opening .opening-envelope-flap {
    animation: openingFlap .58s cubic-bezier(.2,.75,.25,1) .18s forwards;
}

.opening-overlay.is-opening .opening-envelope {
    animation: envelopeRelease .82s cubic-bezier(.2,.7,.25,1) .42s forwards;
}

.opening-overlay.is-opening .opening-letter {
    animation: openingLetter .72s cubic-bezier(.16,.82,.25,1) .48s forwards;
}

.opening-overlay.is-opening .opening-envelope-seal,
.opening-overlay.is-opening .opening-tap-hint {
    opacity: 0;
    transition: opacity .18s ease;
}

.opening-overlay.is-closing {
    animation: openingOverlayExit .44s ease forwards;
}

@keyframes openingSceneEnter {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes openingFlap {
    to { transform: rotateX(180deg); opacity: .72; }
}

@keyframes envelopeRelease {
    to { transform: translateY(10px) scale(.94); opacity: .42; }
}

@keyframes openingLetter {
    to { opacity: 1; transform: translateY(-43px) scale(1.14); }
}

@keyframes openingOverlayExit {
    to { opacity: 0; visibility: hidden; }
}

@keyframes sealPulse {
    0%, 100% { box-shadow: 0 4px 10px rgba(103, 45, 65, .24); }
    50% { box-shadow: 0 0 0 6px rgba(169, 79, 112, .12), 0 4px 14px rgba(103, 45, 65, .3); }
}

@media (prefers-reduced-motion: reduce) {
    .site-open-animate body > header,
    .site-open-animate #step-registration > .debut-card {
        animation: none !important;
    }
    .opening-overlay.is-prompt .opening-scene,
    .opening-overlay.is-prompt .opening-envelope-seal,
    .opening-overlay.is-opening .opening-envelope,
    .opening-overlay.is-opening .opening-envelope-flap,
    .opening-overlay.is-opening .opening-letter,
    .opening-overlay.is-closing { animation: none !important; }
    body.entry-animation-playing > :not(#site-opening-overlay) { opacity: 1; }
}

/* Invitation card polish: clearer type hierarchy and calmer floral framing. */
.page2-invitation-card {
    min-height: 0;
    border: 4px double rgba(184, 143, 99, .72) !important;
    border-radius: 28px !important;
    background:
        radial-gradient(rgba(118,37,65,.025) .45px, transparent .7px),
        radial-gradient(circle at 25px 25px, rgba(184,143,99,.62) 0 2px, transparent 3px),
        radial-gradient(circle at calc(100% - 25px) 25px, rgba(184,143,99,.62) 0 2px, transparent 3px),
        radial-gradient(circle at 25px calc(100% - 25px), rgba(184,143,99,.62) 0 2px, transparent 3px),
        radial-gradient(circle at calc(100% - 25px) calc(100% - 25px), rgba(184,143,99,.62) 0 2px, transparent 3px),
        radial-gradient(ellipse at 50% 8%, rgba(255,255,255,.99), rgba(255,247,249,.98) 52%, rgba(248,228,236,.96) 100%);
    background-size: 6px 6px, auto, auto, auto, auto, auto;
    box-shadow:
        0 30px 66px -27px rgba(105, 48, 68, .38),
        0 7px 0 -3px rgba(184,143,99,.20),
        inset 0 0 0 4px rgba(255,255,255,.76),
        inset 0 0 0 6px rgba(184,143,99,.10);
}

.page2-invitation-card::before {
    inset: 16px;
    border-color: rgba(184, 143, 99, .58);
    border-radius: 20px;
    box-shadow: 0 0 0 4px rgba(255,255,255,.42), 0 0 0 5px rgba(184,143,99,.16);
}

.page2-invitation-card::after {
    content: "✧";
    top: 17px;
    right: auto;
    left: 50%;
    color: rgba(184,143,99,.82);
    font-family: Georgia, serif;
    font-size: 19px;
    transform: translateX(-50%);
}

#step-invitation.step-enter .page2-invitation-card::after {
    animation: invitationFlourishBloom .72s cubic-bezier(.2,.7,.25,1) .16s both;
}

@keyframes invitationFlourishBloom {
    from {
        opacity: 0;
        transform: translateX(-50%) rotate(-38deg) scale(.55);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) rotate(0) scale(1);
    }
}

/* Continue the invitation's ivory-and-gold frame through the countdown and details. */
.page2-countdown {
    border: 3px double rgba(184, 143, 99, .68);
    background:
        radial-gradient(rgba(118,37,65,.022) .45px, transparent .7px),
        radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.98), rgba(255,247,249,.97) 58%, rgba(248,228,236,.95) 100%);
    background-size: 6px 6px, auto;
    box-shadow:
        0 24px 52px -24px rgba(105, 48, 68, .30),
        inset 0 0 0 4px rgba(255,255,255,.72),
        inset 0 0 0 6px rgba(184,143,99,.10);
}

.page2-time-box {
    border-color: rgba(184,143,99,.42);
    background: rgba(255,252,250,.76);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.66), 0 5px 14px rgba(105,48,68,.06);
}

.page2-time-number { color: #762541; }
.page2-time-label { color: #93616d; }

#step-details > .debut-card {
    border: 3px double rgba(184,143,99,.68);
    background:
        radial-gradient(rgba(118,37,65,.022) .45px, transparent .7px),
        radial-gradient(ellipse at 50% 0%, #fff 0%, #fff8fa 58%, #f8e8ee 100%);
    background-size: 6px 6px, auto;
    box-shadow:
        0 26px 58px -28px rgba(105,48,68,.32),
        inset 0 0 0 4px rgba(255,255,255,.72),
        inset 0 0 0 6px rgba(184,143,99,.10);
}

#step-details .event-detail-card {
    border-color: rgba(184,143,99,.34);
    background: rgba(255,253,251,.84);
    box-shadow: 0 8px 22px -15px rgba(105,48,68,.28);
}

#step-details .event-detail-card > div:first-child {
    background: linear-gradient(145deg, #fff5f6, #f1e6ee);
    color: #9a6072;
}

#step-details .grid.grid-cols-3 > button {
    border-color: rgba(184,143,99,.34);
    background: rgba(255,252,250,.76);
}

#step-details .grid.grid-cols-3 > button:hover {
    background: #fff6f7;
    border-color: rgba(184,143,99,.66);
}

#step-registration .registration-panel,
#step-rsvp > .debut-card,
#step-confirmation > .debut-card {
    border-color: rgba(184,143,99,.54);
    background:
        radial-gradient(rgba(118,37,65,.02) .45px, transparent .7px),
        radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.99), rgba(255,248,250,.97) 62%, rgba(248,232,238,.95) 100%);
    background-size: 6px 6px, auto;
    box-shadow:
        0 24px 54px -28px rgba(105,48,68,.30),
        inset 0 0 0 3px rgba(255,255,255,.68),
        inset 0 0 0 5px rgba(184,143,99,.08);
}

@media (max-width: 380px) {
    #step-registration h1 {
        font-size: 2.55rem;
        line-height: 1.08;
    }

    #step-rsvp > .debut-card,
    #step-confirmation > .debut-card {
        padding: 1.1rem !important;
    }

    #step-rsvp form > .flex.items-center.gap-3 > button {
        padding-inline: .85rem;
    }
}

/* Clear keyboard focus for every interactive control, including fields whose
   utility classes remove the browser's default outline. */
:where(button, a, input, select, textarea):focus-visible {
    outline: 3px solid rgba(169, 79, 112, .58);
    outline-offset: 3px;
}

:where(input, select, textarea):focus-visible {
    border-color: #A94F70;
    box-shadow: 0 0 0 3px rgba(169, 79, 112, .16);
}

#db-empty-msg.is-loading::before {
    content: "";
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-right: 8px;
    border: 2px solid rgba(169, 79, 112, .24);
    border-top-color: #A94F70;
    border-radius: 50%;
    vertical-align: -2px;
    animation: guestRecordsSpinner .75s linear infinite;
}

#admin-console-btn,
.db-drawer-header > div:last-child > button {
    min-height: 44px;
}

.music-toggle-button {
    position: fixed;
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    z-index: 35;
    display: inline-flex;
    min-width: 116px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 16px;
    border: 1px solid rgba(184, 143, 99, .55);
    border-radius: 999px;
    background: rgba(255, 249, 250, .94);
    color: #9A4D65;
    box-shadow: 0 5px 14px rgba(126, 61, 79, .14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    font-size: 16px;
}

.music-toggle-button span {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .025em;
}

@media (hover: hover) and (pointer: fine) {
    .music-toggle-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(126, 61, 79, .2);
    }
}

#drawer-toggle-btn {
    min-width: 44px;
}

#db-search-input,
#db-filter-status,
#admin-login-modal input,
#recovery-modal input,
.secret-modal-button,
.recovery-open-button,
.invite-view-indicator-item,
#recovery-form > button[type="button"],
#confirmation-invitation-links button,
#milestone-modal button,
.details-navigation > button {
    min-height: 44px;
}

#admin-login-modal button[aria-label="Close host login"],
#qr-scanner-modal button[aria-label="Close QR scanner"] {
    min-width: 44px;
    min-height: 44px;
}

@media (max-width: 380px) {
    .details-navigation > button { min-height: 48px; }
}

@keyframes guestRecordsSpinner {
    to { transform: rotate(360deg); }
}

#qr-scan-status.qr-scan-status-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

#qr-scan-status.qr-scan-status-loading::before {
    content: "";
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    border: 2px solid rgba(146, 61, 88, .28);
    border-top-color: #923d58;
    border-radius: 50%;
    animation: guestRecordsSpinner .75s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    #db-empty-msg.is-loading::before,
    #qr-scan-status.qr-scan-status-loading::before { animation: none; }
}

.page2-content {
    max-width: 760px;
    padding: clamp(30px, 5vw, 48px) clamp(20px, 5vw, 42px) 40px;
}

.page2-crown {
    width: 66px;
    height: 66px;
    margin: 4px auto 15px;
    font-size: 24px;
    background: rgba(255, 251, 247, .9);
    box-shadow: 0 8px 22px rgba(183,110,121,.12);
}

.page2-kicker {
    display: inline-block;
    padding: 7px 15px;
    border-top: 1px solid rgba(184, 143, 99, .45);
    border-bottom: 1px solid rgba(184, 143, 99, .45);
    color: var(--text-muted);
    font-size: .68rem;
    letter-spacing: .17em;
}

.page2-greeting {
    max-width: 100%;
    margin: 24px auto 20px;
    color: #762541;
    font-size: clamp(2rem, 5.7vw, 3.55rem);
    line-height: 1.05;
    letter-spacing: -.025em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

/* Non-interactive text targets receive programmatic focus for announcements.
   Keep that focus without a browser outline around the text. */
:where(h1, h2, h3, [role="heading"])[tabindex="-1"]:focus {
    outline: none;
}

.page2-script-message {
    max-width: 620px;
    color: #98556a;
    font-size: clamp(1.75rem, 3.55vw, 2.65rem);
    line-height: 1.25;
    text-wrap: balance;
}

.page2-ornament {
    margin: 28px auto 20px;
}

.page2-ornament::before,
.page2-ornament::after {
    width: clamp(48px, 10vw, 90px);
}

.page2-honor-label {
    color: #a52f58;
    font-size: .72rem;
    letter-spacing: .22em;
}

.page2-name {
    margin-top: 3px;
    color: #762541;
    font-size: clamp(2.8rem, 6vw, 4rem);
    line-height: 1.04;
    text-wrap: balance;
}

#confirm-title,
#sum-name,
#sum-email,
#sum-guests-list,
#qr-scan-result {
    overflow-wrap: anywhere;
}

.page2-floral-art {
    opacity: .82;
}

.page2-18 {
    color: rgba(193, 121, 145, .12);
}

@media (max-width: 640px) {
    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea {
        font-size: 16px !important;
    }

    .page2-slideshow-controls {
        gap: 10px;
    }

    .page2-invitation-card {
        min-height: 0;
        border-width: 3px !important;
        border-radius: 24px !important;
    }

    .page2-invitation-card::before {
        inset: 12px;
        border-radius: 17px;
    }

    .page2-content {
        padding: 27px 19px 30px;
    }

    .page2-countdown {
        padding: 1.15rem !important;
        border-radius: 24px !important;
    }

    .page2-countdown .grid {
        gap: .55rem;
    }

    .page2-time-box {
        padding: .7rem .25rem !important;
        border-radius: 15px !important;
    }

    #step-details > .debut-card {
        padding: 1.15rem !important;
        border-radius: 24px !important;
    }

    #step-details .event-details-grid {
        gap: .75rem;
    }

    #step-details .event-detail-card {
        gap: .75rem;
        padding: 1rem;
        border-radius: 18px;
    }

    #step-details .grid.grid-cols-3 {
        gap: .5rem;
    }

    #step-details .grid.grid-cols-3 > button {
        min-height: 112px;
        padding: .7rem .45rem;
    }

    .page2-crown {
        width: 58px;
        height: 58px;
        margin-bottom: 13px;
        font-size: 21px;
    }

    .page2-kicker {
        max-width: 86%;
        padding: 6px 10px;
        font-size: .64rem;
        letter-spacing: .1em;
    }

    .page2-greeting {
        margin: 21px auto 17px;
        font-size: clamp(1.8rem, 8.2vw, 2.75rem);
        line-height: 1.08;
    }

    .page2-script-message {
        max-width: 32rem;
        font-size: clamp(1.55rem, 6vw, 2.05rem);
        line-height: 1.26;
    }

    .page2-ornament {
        margin: 23px auto 17px;
    }

    .page2-honor-label {
        font-size: .66rem;
    }

    .page2-name {
        font-size: clamp(2.65rem, 9vw, 3.55rem);
        line-height: 1.06;
    }

    .page2-floral-tl {
        width: 125px;
        height: 110px;
    }

    .page2-floral-tr {
        width: 105px;
        height: 96px;
    }

    .page2-ribbon-bl {
        width: 88px;
        height: 125px;
        opacity: .62;
    }

    .page2-butterfly-br {
        width: 72px;
        height: 62px;
        right: 2px;
        bottom: 18px;
        opacity: .72;
    }
}

@media (max-width: 380px) {
    .details-navigation {
        flex-direction: column;
        align-items: stretch;
        gap: .65rem;
    }

    .details-navigation > button {
        width: 100%;
        min-height: 48px;
        justify-content: center;
    }
}

/* Prevent iOS Safari from zooming the page when a compact form field receives focus. */
@media (max-width: 640px) {
    #reg-fullname,
    #reg-email,
    #recovery-modal input,
    #admin-login-modal input,
    #db-search-input,
    #db-filter-status {
        font-size: 16px !important;
    }
}

/* =============================================
   Kylie’s debut invitation: editorial refresh
   Keep the invitation light, tactile, and legible
   ============================================= */
:root {
    color-scheme: light;
    --invite-paper: var(--blush-50);
    --invite-surface: #fffdfd;
    --invite-surface-soft: var(--blush-100);
    --invite-ink: #4A2E35;
    --invite-muted: var(--text-muted);
    --invite-wine: var(--action-rose);
    --invite-wine-deep: var(--blush-900);
    --invite-rose: var(--rosegold);
    --invite-gold: #B88D62;
    --invite-rule: rgba(184, 143, 99, .28);
    --invite-shadow: 0 26px 66px -40px rgba(126, 61, 79, .38);
}

html {
    background: var(--invite-paper);
    scroll-behavior: smooth;
}

body {
    color: var(--invite-ink);
    background-color: var(--blush-50);
    background-image:
        radial-gradient(#FCCCD6 .8px, transparent .8px),
        radial-gradient(#F8A8B9 .8px, #FFF5F7 .8px);
    background-size: 32px 32px;
    background-position: 0 0, 16px 16px;
}

.site-header {
    position: sticky;
    z-index: 30;
    top: 0;
    width: 100%;
    padding: 14px max(24px, env(safe-area-inset-right, 0px)) 12px max(24px, env(safe-area-inset-left, 0px));
    border-bottom: 1px solid rgba(133, 93, 75, .16);
    background: rgba(247, 244, 239, .94);
    box-shadow: 0 8px 28px -24px rgba(66, 38, 44, .5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-header-inner {
    display: grid;
    width: min(100%, 1240px);
    min-height: 48px;
    margin: 0 auto;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.site-brand {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 11px;
    color: var(--invite-wine-deep);
}

.site-brand-seal {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid rgba(183, 152, 112, .72);
    border-radius: 50%;
    outline: 1px solid rgba(183, 152, 112, .28);
    outline-offset: 3px;
    color: var(--invite-wine);
    font: italic 600 25px/1 "Cormorant Garamond", Georgia, serif;
}

.site-brand-copy {
    display: grid;
    gap: 0;
}

.site-brand-kicker {
    color: var(--invite-muted);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .18em;
    line-height: 1.3;
    text-transform: uppercase;
}

.site-brand-title {
    color: var(--invite-wine-deep);
    font: 600 24px/.98 "Cormorant Garamond", Georgia, serif;
    letter-spacing: -.025em;
}

#step-indicator {
    justify-self: center;
    color: var(--invite-muted) !important;
}

#step-indicator > span {
    padding: 8px 12px !important;
    border: 1px solid transparent;
    border-radius: 999px !important;
    color: var(--invite-muted) !important;
    font-size: 10px;
    letter-spacing: .035em;
    white-space: nowrap;
}

#step-indicator > span.bg-blush-600 {
    border-color: rgba(120, 62, 80, .14);
    background: #eadde0 !important;
    color: var(--invite-wine-deep) !important;
}

#step-indicator > i {
    color: rgba(120, 62, 80, .42) !important;
}

#admin-console-btn {
    justify-self: end;
    border-color: var(--invite-rule) !important;
    background: var(--invite-surface) !important;
    color: var(--invite-wine-deep) !important;
    box-shadow: none !important;
}

.mobile-step-progress {
    margin-top: 10px;
    color: var(--invite-muted);
}

.mobile-step-progress-copy {
    margin-bottom: 7px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .105em;
    text-transform: uppercase;
}

.mobile-step-progress-track {
    height: 2px;
    background: rgba(120, 62, 80, .14);
}

.mobile-step-progress-fill {
    background: var(--invite-wine);
}

.invite-view-indicator {
    margin-top: 10px;
    border-color: var(--invite-rule);
    background: rgba(255, 253, 249, .76);
    box-shadow: none;
}

.invite-view-indicator-item {
    color: var(--invite-muted);
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.invite-view-indicator-item[aria-current="page"] {
    background: var(--invite-wine);
    box-shadow: none;
}

.site-main {
    width: min(100%, 1240px) !important;
    max-width: none !important;
    padding: clamp(24px, 4.5vw, 58px) 0 32px !important;
}

.site-main.music-control-visible {
    padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px)) !important;
}

#step-registration {
    width: 100%;
}

.registration-layout {
    display: grid;
    min-height: clamp(620px, calc(100svh - 190px), 760px);
    overflow: hidden;
    grid-template-columns: minmax(0, 1.03fr) minmax(400px, .97fr);
    border: 1px solid rgba(133, 93, 75, .22);
    border-radius: 8px 30px 30px 8px;
    background: var(--invite-surface);
    box-shadow: var(--invite-shadow);
}

.registration-portrait {
    position: relative;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    margin: 0;
    background: #e7ded7;
    isolation: isolate;
}

.registration-portrait > img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 43%;
}

.registration-portrait-wash {
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(37, 27, 31, .12) 0%, transparent 24%, transparent 54%, rgba(37, 27, 31, .64) 100%),
        linear-gradient(90deg, rgba(37, 27, 31, .08), transparent 50%);
}

.registration-portrait-caption {
    position: absolute;
    z-index: 2;
    right: clamp(24px, 5vw, 56px);
    bottom: clamp(30px, 5vw, 58px);
    left: clamp(24px, 5vw, 56px);
    display: grid;
    justify-items: start;
    color: #fffaf5;
}

.registration-portrait-label,
.registration-portrait-date {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .19em;
    line-height: 1.5;
    text-transform: uppercase;
}

.registration-portrait-label {
    margin-bottom: 7px;
    color: #f0d8c5;
}

.registration-portrait-date {
    margin-top: 15px;
    color: rgba(255, 250, 245, .86);
    font-size: 8px;
}

.registration-photo-mark {
    position: absolute;
    z-index: 2;
    top: 24px;
    right: 26px;
    color: rgba(255, 250, 245, .72);
    font: italic 500 45px/.8 "Cormorant Garamond", Georgia, serif;
}

.registration-panel {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: clamp(36px, 5vw, 68px) clamp(30px, 5vw, 64px);
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--invite-surface) !important;
    box-shadow: none !important;
    text-align: left;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.registration-intro {
    margin: 0 0 30px;
}

.registration-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: var(--invite-wine);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.registration-eyebrow > span {
    color: var(--invite-gold);
    font-size: 13px;
}

.registration-title {
    max-width: 520px;
    margin: 0;
    color: var(--invite-wine-deep);
    font: 500 clamp(44px, 5.2vw, 67px)/.88 "Cormorant Garamond", Georgia, serif;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.registration-subtitle {
    margin: 9px 0 0;
    color: #9a7076;
    font: italic 500 clamp(23px, 2.7vw, 32px)/1.05 "Cormorant Garamond", Georgia, serif;
}

.registration-description {
    max-width: 340px;
    margin: 21px 0 0;
    color: var(--invite-muted);
    font-size: 12px;
    line-height: 1.8;
}

.registration-load-notice {
    margin: 16px 0 0;
    padding: 12px 14px;
    border: 1px solid rgba(175, 117, 73, .28);
    border-radius: 12px;
    background: #fbf3e8;
    color: #795339;
    font-size: 12px;
    line-height: 1.55;
}

.registration-form {
    display: grid;
    gap: 17px;
    width: 100%;
    margin: 0;
    text-align: left;
}

.registration-label {
    display: block;
    margin-bottom: 7px;
    color: #554449;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .115em;
    text-transform: uppercase;
}

.registration-label span {
    color: var(--invite-rose);
}

.registration-input {
    display: block;
    width: 100%;
    min-height: 51px;
    padding: 0 15px;
    border: 1px solid rgba(111, 78, 76, .22);
    border-radius: 10px;
    outline: 0;
    background: #fffefa;
    color: var(--invite-ink);
    font: 400 14px/1.4 "Montserrat", Arial, sans-serif;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.registration-input::placeholder {
    color: var(--text-muted);
}

.registration-input:focus-visible {
    border-color: var(--invite-wine) !important;
    outline: 0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(120, 62, 80, .12) !important;
}

.registration-hint {
    margin: 8px 1px 0;
    color: #817174;
    font-size: 10px;
    line-height: 1.6;
}

.registration-panel .registration-submit {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 4px;
    padding: 0 18px 0 20px;
    border: 1px solid var(--invite-wine);
    border-radius: 10px;
    background: var(--invite-wine) !important;
    background-image: none !important;
    color: #fffaf6 !important;
    box-shadow: 0 8px 18px -11px rgba(75, 39, 52, .8);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .025em;
}

.registration-panel .registration-submit span,
.registration-panel .registration-submit i {
    color: inherit !important;
}

.registration-panel .registration-submit i {
    font-size: 15px;
    transition: transform .2s ease;
}

.registration-panel .registration-submit:active {
    transform: translateY(1px) scale(.985);
    background: var(--invite-wine-deep) !important;
    box-shadow: inset 0 2px 5px rgba(36, 19, 26, .2);
}

.registration-recovery {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid rgba(133, 93, 75, .15);
    color: var(--invite-muted);
    font-size: 10px;
}

.registration-recovery .recovery-open-button {
    min-height: 44px;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: var(--invite-wine);
    font: 700 10px/1.4 "Montserrat", Arial, sans-serif;
    text-decoration: underline;
    text-decoration-color: rgba(120, 62, 80, .4);
    text-underline-offset: 3px;
}

.registration-recovery .recovery-open-button:active {
    transform: none;
    filter: none;
}

.page2-invitation-card {
    /* Anchor the floral artwork even when the Tailwind CDN is unavailable. */
    position: relative;
    border: 1px solid rgba(133, 93, 75, .35) !important;
    border-radius: 22px !important;
    background: var(--invite-surface) !important;
    box-shadow: var(--invite-shadow) !important;
}

.page2-invitation-card::before {
    inset: 10px !important;
    border: 1px solid rgba(183, 152, 112, .48) !important;
    border-radius: 15px !important;
    box-shadow: none !important;
}

.page2-invitation-card::after {
    content: "✦";
    color: var(--invite-gold) !important;
}

.page2-floral-art {
    opacity: .42;
    filter: saturate(.62);
}

.page2-content {
    max-width: 740px;
    padding: clamp(48px, 7vw, 82px) clamp(32px, 7vw, 76px) clamp(38px, 6vw, 66px);
}

.page2-crown {
    border-color: rgba(183, 152, 112, .55);
    background: var(--invite-paper);
    color: var(--invite-gold);
    box-shadow: none;
}

.page2-kicker {
    color: var(--invite-muted);
    border-color: rgba(183, 152, 112, .56);
    font-size: 9px;
    letter-spacing: .19em;
}

.page2-greeting,
.page2-name {
    color: var(--invite-wine-deep);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 500;
}

.page2-script-message {
    color: #78535e;
    font-size: clamp(23px, 3.1vw, 32px);
    line-height: 1.18;
}

.page2-honor-label {
    color: var(--invite-muted);
    font-size: 9px;
}

.page2-name {
    margin-top: 7px;
    font-size: clamp(43px, 6vw, 62px);
    letter-spacing: -.03em;
}

.page2-ornament {
    color: var(--invite-gold);
}

.page2-ornament::before,
.page2-ornament::after {
    background: linear-gradient(90deg, transparent, rgba(183, 152, 112, .72));
}

.page2-ornament::after {
    transform: rotate(180deg);
}

.page2-slideshow {
    padding: clamp(17px, 3vw, 28px);
    border: 1px solid rgba(133, 93, 75, .2);
    border-radius: 18px;
    background: rgba(255, 253, 249, .78);
    box-shadow: none;
}

.page2-slideshow-eyebrow {
    color: var(--invite-muted);
    font-size: 8px;
    letter-spacing: .2em;
}

.page2-slideshow-title {
    color: var(--invite-wine-deep);
    font: italic 500 clamp(30px, 4vw, 42px)/1.05 "Cormorant Garamond", Georgia, serif;
}

.page2-slideshow-frame {
    border-color: rgba(133, 93, 75, .24);
    border-radius: 13px;
    background: var(--invite-surface-soft);
    box-shadow: none;
}

.page2-slideshow-slide {
    transition: opacity .36s ease, transform .36s ease;
}

.page2-slideshow-arrow {
    border-color: var(--invite-rule);
    background: var(--invite-surface);
    color: var(--invite-wine);
    box-shadow: none;
}

.page2-slideshow-counter,
.page2-slideshow-caption {
    color: var(--invite-muted);
}

.page2-slideshow-caption {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 18px;
    font-style: italic;
}

.page2-countdown {
    border: 1px solid rgba(133, 93, 75, .24);
    border-radius: 18px !important;
    background: var(--invite-surface) !important;
    box-shadow: none !important;
}

.page2-countdown-title {
    color: var(--invite-wine-deep);
    font: italic 500 clamp(31px, 4vw, 43px)/1.1 "Cormorant Garamond", Georgia, serif;
}

.page2-countdown-subtitle {
    color: var(--invite-muted);
    font-size: 9px;
    letter-spacing: .12em;
}

.page2-time-box {
    border-color: rgba(133, 93, 75, .18);
    border-radius: 12px !important;
    background: var(--invite-paper) !important;
    box-shadow: none !important;
}

.page2-time-number {
    color: var(--invite-wine-deep);
}

.page2-time-label {
    color: var(--invite-muted);
}

.page2-details-button,
#details-rsvp-button,
#rsvp-form button[type="submit"] {
    min-height: 50px;
    border: 1px solid var(--invite-wine) !important;
    border-radius: 10px !important;
    background: var(--invite-wine) !important;
    background-image: none !important;
    color: #fffaf6 !important;
    box-shadow: 0 8px 18px -12px rgba(75, 39, 52, .8) !important;
    font-size: 11px;
    letter-spacing: .02em;
}

.page2-details-button span,
.page2-details-button i,
#details-rsvp-button span,
#details-rsvp-button i,
#rsvp-form button[type="submit"] span,
#rsvp-form button[type="submit"] i {
    color: inherit !important;
}

#step-details > .debut-card,
#step-rsvp > .debut-card,
#step-confirmation > .debut-card {
    border: 1px solid rgba(133, 93, 75, .26) !important;
    border-radius: 20px !important;
    background: var(--invite-surface) !important;
    box-shadow: var(--invite-shadow) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

#step-details,
#step-rsvp,
#step-confirmation {
    width: min(100%, 900px);
    margin-inline: auto;
}

#step-details .event-detail-card {
    border: 1px solid rgba(133, 93, 75, .18) !important;
    border-radius: 13px !important;
    background: #fffefa !important;
    box-shadow: none !important;
}

#step-details .event-detail-card::before {
    display: none;
}

#step-details .event-detail-card h5 {
    color: var(--invite-muted);
    letter-spacing: .12em;
}

#step-details .event-detail-card p:not(.add-calendar-note):not(.add-calendar-status) {
    color: var(--invite-ink);
}

#step-details .event-detail-card > div:first-child {
    background: #f2e8e7 !important;
    color: var(--invite-wine) !important;
    box-shadow: none;
}

#step-details .grid.grid-cols-3 > button {
    border-color: rgba(133, 93, 75, .2) !important;
    border-radius: 13px !important;
    background: #fffefa !important;
}

#step-details .grid.grid-cols-3 > button:hover {
    background: #f8f1ed !important;
}

.get-directions-button,
.add-calendar-button {
    border-color: rgba(120, 62, 80, .28);
    border-radius: 9px;
}

#step-rsvp .cursor-pointer {
    border-color: rgba(133, 93, 75, .22) !important;
    border-radius: 12px !important;
    background: #fffefa !important;
}

#step-rsvp .cursor-pointer:has(input:checked) {
    border-color: var(--invite-wine) !important;
    background: #f7eff0 !important;
    box-shadow: inset 0 0 0 1px var(--invite-wine);
}

#step-rsvp .cursor-pointer span:first-child {
    color: var(--invite-ink);
}

.music-toggle-button {
    min-width: 110px;
    min-height: 44px;
    border-color: var(--invite-rule);
    background: rgba(255, 253, 249, .96);
    color: var(--invite-wine);
    box-shadow: 0 7px 18px -14px rgba(66, 38, 44, .6);
}

.music-toggle-button span {
    font-size: 9px;
    letter-spacing: .06em;
}

@media (max-width: 640px) {
    .music-toggle-button {
        width: 48px;
        min-width: 48px;
        height: 48px;
        min-height: 48px;
        gap: 0;
        padding: 0;
        border-radius: 50%;
    }

    .music-toggle-button span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }
}

.secret-modal-backdrop {
    background: rgba(47, 34, 38, .58) !important;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.secret-modal-card {
    border: 1px solid rgba(183, 152, 112, .48) !important;
    border-radius: 18px !important;
    background: var(--invite-surface) !important;
    box-shadow: 0 26px 72px -30px rgba(36, 24, 29, .5) !important;
}

.secret-modal-icon {
    border-color: rgba(183, 152, 112, .38) !important;
    background: #f3e9e6 !important;
    color: var(--invite-wine) !important;
    box-shadow: none !important;
}

.secret-modal-icon svg {
    display: block;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.secret-modal-title {
    color: var(--invite-wine-deep) !important;
    font: 500 34px/1.05 "Cormorant Garamond", Georgia, serif !important;
}

.secret-modal-message {
    color: var(--invite-muted) !important;
    line-height: 1.7;
}

.secret-modal-ornament {
    color: var(--invite-gold) !important;
}

.secret-modal-button {
    min-height: 48px;
    border: 1px solid var(--invite-wine) !important;
    border-radius: 10px !important;
    background: var(--invite-wine) !important;
    background-image: none !important;
    color: #fffaf6 !important;
    box-shadow: 0 8px 18px -12px rgba(75, 39, 52, .8) !important;
    font-size: 11px;
    letter-spacing: .025em;
}

.secret-modal-button span,
.secret-modal-button i {
    color: inherit !important;
}

.recovery-email-reminder,
.recovery-email-status {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 12px 13px;
    border: 1px solid rgba(166, 64, 93, .2);
    border-radius: 13px;
    background: linear-gradient(135deg, #fff8fa 0%, #f8edf0 100%);
    color: #653347;
    text-align: left;
    font-size: 12px;
    line-height: 1.55;
}

.recovery-email-reminder__icon,
.recovery-email-status__icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(166, 64, 93, .18);
    border-radius: 50%;
    background: rgba(255, 255, 255, .82);
    color: #a6405d;
}

.recovery-email-reminder__icon svg,
.recovery-email-status__icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.recovery-email-reminder strong {
    display: block;
    margin-bottom: 2px;
    color: #762541;
    font-size: 11px;
    letter-spacing: .025em;
}

.recovery-email-status {
    border-color: rgba(71, 126, 92, .28);
    background: linear-gradient(135deg, #f5fbf7 0%, #edf6f0 100%);
    color: #365c43;
}

.recovery-email-status__content {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.recovery-email-status__title {
    color: #28613c;
    font-size: 12px;
    font-weight: 700;
}

.recovery-email-status__text {
    display: block;
}

.recovery-email-status.is-error {
    border-color: rgba(164, 43, 62, .24);
    background: linear-gradient(135deg, #fff6f6 0%, #f9ebec 100%);
    color: #782b37;
}

.recovery-email-status.is-error .recovery-email-status__icon {
    border-color: rgba(164, 43, 62, .2);
    color: #a42b3e;
}

.recovery-email-status.is-error .recovery-email-status__title {
    color: #8e2639;
}

#calendar-app-confirm-modal .secret-modal-content > button:last-of-type {
    display: inline-flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(111, 78, 76, .18);
    border-radius: 10px;
    background: transparent;
    color: var(--invite-wine);
    font-size: 12px;
    line-height: 1.3;
    cursor: pointer;
}

#recovery-modal input,
#admin-login-modal input,
#db-search-input,
#db-filter-status {
    border-color: rgba(111, 78, 76, .22) !important;
    border-radius: 10px !important;
    background: #fffefa !important;
    color: var(--invite-ink) !important;
}

.opening-overlay {
    background:
        radial-gradient(ellipse at 50% 26%, rgba(255, 255, 252, .98), rgba(247, 244, 239, .96) 52%, rgba(231, 218, 211, .9) 100%);
}

.opening-eyebrow {
    color: #8c6a59;
    font-size: 8px;
    letter-spacing: .2em;
}

.opening-envelope {
    border-color: rgba(134, 99, 76, .3);
    border-radius: 9px;
    background: linear-gradient(145deg, #f2e7d9, #e7d4c2 60%, #d9c2aa);
    box-shadow: 0 28px 55px -27px rgba(64, 41, 44, .48), inset 0 1px rgba(255, 255, 255, .88);
}

.opening-letter {
    border-color: rgba(183, 152, 112, .46);
    border-radius: 5px;
    background: var(--invite-surface);
    box-shadow: 0 8px 18px rgba(64, 41, 44, .12);
}

.opening-letter-kicker,
.opening-tap-hint {
    color: var(--invite-muted);
}

.opening-letter-name,
.opening-title {
    color: var(--invite-wine-deep);
}

.opening-letter-flourish {
    color: var(--invite-gold);
}

.opening-envelope-pocket {
    background: linear-gradient(135deg, rgba(255, 250, 242, .97), rgba(220, 197, 174, .96));
}

.opening-envelope-flap {
    background: linear-gradient(150deg, #f6ede2, #dcc7b0);
}

.opening-envelope-seal {
    border-color: rgba(255, 250, 242, .76);
    background: var(--invite-wine);
    color: #fffaf6;
    box-shadow: 0 4px 12px rgba(65, 36, 48, .28);
}

.opening-title {
    font-size: clamp(27px, 5vw, 36px);
    font-weight: 500;
}

:where(button, a, input, select, textarea):focus-visible {
    outline: 2px solid rgba(120, 62, 80, .75);
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .registration-panel .registration-submit:hover,
    .page2-details-button:hover,
    #details-rsvp-button:hover,
    #rsvp-form button[type="submit"]:hover {
        transform: translateY(-2px);
        background: var(--invite-wine-deep) !important;
        box-shadow: 0 13px 22px -14px rgba(75, 39, 52, .8) !important;
    }

    .registration-panel .registration-submit:hover i {
        transform: translateX(3px);
    }
}

@media (max-width: 1023px) {
    .site-header-inner {
        grid-template-columns: 1fr auto;
        gap: 10px;
    }

    #step-indicator {
        display: none !important;
    }

    #admin-console-btn {
        grid-column: 2;
        grid-row: 1;
    }
}

@media (max-width: 760px) {
    .site-header {
        padding-top: 11px;
        padding-bottom: 10px;
    }

    .site-header-inner {
        min-height: 42px;
    }

    .site-brand-seal {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        font-size: 21px;
    }

    .site-brand-title {
        font-size: 22px;
    }

    .site-main {
        width: 100% !important;
        padding: 19px 16px 32px !important;
    }

    .site-main.music-control-visible {
        padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)) !important;
    }

    .registration-layout {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
        border-radius: 17px;
    }

    .registration-portrait {
        min-height: 0;
        height: clamp(240px, 68vw, 350px);
    }

    .registration-portrait > img {
        object-position: 50% 39%;
    }

    .registration-portrait-caption {
        right: 25px;
        bottom: 23px;
        left: 25px;
    }

    .registration-portrait-title {
        font-size: clamp(34px, 8vw, 45px);
    }

    .registration-portrait-date {
        margin-top: 10px;
        font-size: 7px;
    }

    .registration-photo-mark {
        top: 20px;
        right: 21px;
        font-size: 37px;
    }

    .registration-panel {
        padding: 32px clamp(22px, 6vw, 36px) 25px;
    }

    .registration-intro {
        margin-bottom: 23px;
    }

    .registration-eyebrow {
        margin-bottom: 14px;
        font-size: 8px;
    }

    .registration-title {
        font-size: clamp(42px, 11vw, 58px);
    }

    .registration-subtitle {
        font-size: 25px;
    }

    .registration-description {
        margin-top: 16px;
        font-size: 11px;
    }

    .registration-form {
        gap: 14px;
    }

    .registration-input {
        min-height: 50px;
        font-size: 16px !important;
    }

    .registration-panel .registration-submit {
        min-height: 52px;
    }

    .registration-recovery {
        margin-top: 17px;
        padding-top: 12px;
    }

    #step-details,
    #step-rsvp,
    #step-confirmation {
        width: 100%;
    }

    .page2-content {
        padding: 38px 26px 33px;
    }

    .page2-floral-tl {
        opacity: .34;
    }

    .page2-floral-tr,
    .page2-ribbon-bl,
    .page2-butterfly-br {
        opacity: .24;
    }

    .page2-slideshow {
        padding: 16px;
    }

    .page2-countdown {
        padding: 22px 16px !important;
    }
}

@media (max-width: 380px) {
    .site-main {
        padding-inline: 12px !important;
    }

    .registration-panel {
        padding-inline: 19px;
    }

    .registration-portrait {
        height: 230px;
    }

    .registration-title {
        font-size: 40px;
    }

    .registration-description {
        font-size: 10px;
    }

    .page2-content {
        padding-inline: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

    .registration-input,
    .registration-panel .registration-submit,
    .registration-panel .registration-submit i,
    .page2-slideshow-slide {
        transition: none !important;
    }
}

/* Keep the refreshed layout within Kylie’s original blush and script palette. */
.site-header {
    border-bottom-color: rgba(252, 204, 214, .8);
    background: rgba(255, 245, 247, .94);
    box-shadow: 0 8px 28px -24px rgba(126, 61, 79, .5);
}

.site-brand-seal {
    border-color: rgba(184, 143, 99, .72);
    outline-color: rgba(184, 143, 99, .28);
    color: var(--rosegold-dark);
    font-family: "Great Vibes", "Segoe Script", "Brush Script MT", cursive;
    font-size: 29px;
    font-style: normal;
    font-weight: 400;
}

.site-brand-kicker {
    color: var(--text-muted);
}

.site-brand-title {
    color: var(--blush-800);
    font-family: "Great Vibes", "Segoe Script", "Brush Script MT", cursive;
    font-size: 29px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: normal;
}

#step-indicator > span.bg-blush-600 {
    border-color: var(--blush-200);
    background: var(--blush-600) !important;
    color: #fff !important;
}

#step-indicator > i {
    color: var(--blush-300) !important;
}

.mobile-step-progress-track {
    background: rgba(212, 45, 87, .17);
}

.invite-view-indicator-item[aria-current="page"] {
    background: linear-gradient(120deg, var(--action-rose), var(--action-gold));
}

.registration-layout {
    border-color: rgba(252, 204, 214, .82);
}

.registration-portrait {
    background: var(--blush-200);
}

.registration-portrait-label {
    color: var(--champagne);
}

.registration-portrait-title {
    max-width: 420px;
    font-family: "Great Vibes", "Segoe Script", "Brush Script MT", cursive;
    font-size: clamp(34px, 3.5vw, 46px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: normal;
    text-wrap: balance;
}

.registration-portrait-date {
    color: rgba(255, 245, 247, .9);
}

.registration-photo-mark {
    color: rgba(255, 245, 247, .74);
    font-family: "Cormorant Garamond", Georgia, serif;
}

.registration-eyebrow,
.registration-eyebrow > span {
    color: var(--action-rose);
}

.registration-eyebrow > span {
    color: var(--rosegold);
}

.registration-title {
    color: var(--blush-800);
    font-family: "Great Vibes", "Segoe Script", "Brush Script MT", cursive;
    font-size: clamp(42px, 4.8vw, 58px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: normal;
}

.registration-subtitle {
    color: var(--rosegold-dark);
}

.registration-description,
.registration-hint {
    color: var(--text-muted);
}

.registration-load-notice {
    border-color: rgba(184, 143, 99, .38);
    background: var(--champagne-light, #FFF9EF);
    color: #795339;
}

.registration-label {
    color: var(--blush-900);
}

.registration-input {
    border-color: rgba(232, 197, 200, .9);
    background: #fffdfd;
    color: #4A2E35;
}

.registration-input::placeholder {
    color: var(--text-muted);
}

.registration-input:focus-visible {
    border-color: var(--rosegold) !important;
    box-shadow: 0 0 0 3px rgba(243, 120, 149, .18) !important;
}

.registration-panel .registration-submit {
    border-color: var(--action-rose);
    background: linear-gradient(135deg, var(--action-rose), var(--action-gold)) !important;
    background-image: linear-gradient(135deg, var(--action-rose), var(--action-gold)) !important;
    color: #fff !important;
}

.registration-panel .registration-submit:hover {
    background: linear-gradient(135deg, var(--blush-700), var(--rosegold-dark)) !important;
    background-image: linear-gradient(135deg, var(--blush-700), var(--rosegold-dark)) !important;
}

.registration-recovery {
    border-top-color: var(--blush-100);
    color: var(--blush-600);
}

.registration-recovery .recovery-open-button {
    color: var(--rosegold-dark);
}

.page2-invitation-card {
    border-color: rgba(184, 143, 99, .6) !important;
}

.page2-invitation-card::before {
    border-color: rgba(184, 143, 99, .55) !important;
}

.page2-slideshow,
.page2-slideshow-frame,
.page2-countdown,
#step-details > .debut-card,
#step-rsvp > .debut-card,
#step-confirmation > .debut-card {
    border-color: rgba(232, 197, 200, .78) !important;
}

.page2-slideshow-eyebrow,
.page2-slideshow-counter,
.page2-slideshow-caption,
.page2-countdown-subtitle {
    color: var(--text-muted);
}

.page2-slideshow-title,
.page2-countdown-title {
    color: var(--rosegold-dark);
    font-family: "Great Vibes", "Segoe Script", "Brush Script MT", cursive;
    font-size: clamp(34px, 5.5vw, 46px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: normal;
}

.page2-countdown-title {
    font-size: clamp(37px, 4.2vw, 48px);
}

.page2-time-box {
    border-color: rgba(232, 197, 200, .8);
    background: var(--blush-50) !important;
}

.page2-time-number,
.page2-greeting,
.page2-name {
    color: var(--blush-800);
}

.page2-name {
    font-family: "Great Vibes", "Segoe Script", "Brush Script MT", cursive;
    font-weight: 400;
}

.page2-time-label,
.page2-honor-label {
    color: var(--text-muted);
}

.page2-ornament {
    color: var(--rosegold);
}

.page2-ornament::before,
.page2-ornament::after {
    background: linear-gradient(90deg, transparent, rgba(184, 143, 99, .72));
}

.page2-details-button,
#details-rsvp-button,
#rsvp-form button[type="submit"],
.secret-modal-button {
    border-color: var(--action-rose) !important;
    background: linear-gradient(135deg, var(--action-rose), var(--action-gold)) !important;
    background-image: linear-gradient(135deg, var(--action-rose), var(--action-gold)) !important;
    color: #fff !important;
}

#step-details .event-detail-card,
#step-details .grid.grid-cols-3 > button,
#step-rsvp .cursor-pointer {
    border-color: rgba(232, 197, 200, .82) !important;
}

#step-details .event-detail-card > div:first-child {
    background: linear-gradient(145deg, var(--blush-50), #f1e6ee) !important;
    color: var(--rosegold-dark) !important;
}

#step-rsvp .cursor-pointer:has(input:checked) {
    border-color: var(--rosegold) !important;
    background: var(--blush-50) !important;
    box-shadow: inset 0 0 0 1px var(--rosegold);
}

.music-toggle-button {
    border-color: rgba(184, 143, 99, .55);
    background: rgba(255, 249, 250, .96);
    color: var(--rosegold-dark);
}

.secret-modal-backdrop {
    background: rgba(74, 46, 53, .58) !important;
}

.secret-modal-card {
    border-color: rgba(184, 143, 99, .48) !important;
}

.secret-modal-icon {
    border-color: rgba(232, 197, 200, .75) !important;
    background: var(--blush-100) !important;
    color: var(--rosegold-dark) !important;
}

.secret-modal-title {
    color: var(--blush-800) !important;
}

.secret-modal-message {
    color: var(--text-muted) !important;
}

.secret-modal-ornament {
    color: var(--rosegold) !important;
}

#recovery-modal input,
#admin-login-modal input,
#db-search-input,
#db-filter-status {
    border-color: rgba(232, 197, 200, .9) !important;
}

.opening-overlay {
    background: radial-gradient(ellipse at 50% 28%, #fff 0%, #fff7f9 48%, #f4e2e8 100%);
}

.opening-eyebrow {
    color: var(--action-gold);
}

.opening-envelope {
    border-color: rgba(169, 79, 112, .3);
    background: linear-gradient(145deg, #f2dce4, #e8c5d0 60%, #d8a8b6);
}

.opening-letter {
    border-color: rgba(184, 143, 98, .44);
    background: #fffaf9;
}

.opening-letter-kicker,
.opening-tap-hint {
    color: #8A6570;
}

.opening-letter-name,
.opening-title {
    color: var(--blush-800);
}

.opening-letter-flourish {
    color: #B88D62;
}

.opening-envelope-pocket {
    background: linear-gradient(135deg, rgba(255, 239, 244, .96), rgba(222, 174, 190, .94));
}

.opening-envelope-flap {
    background: linear-gradient(150deg, #f8e9ee, #dcaebc);
}

.opening-envelope-seal {
    background: linear-gradient(135deg, var(--action-rose), var(--action-gold));
    color: #fff;
}

.opening-title {
    font-family: "Cormorant Garamond", Georgia, serif;
}

@media (max-width: 760px) {
    .registration-title {
        font-size: clamp(38px, 9.5vw, 50px);
        line-height: 1.02;
    }

    .registration-portrait-title {
        font-size: clamp(29px, 7.4vw, 39px);
    }
}

@media (max-width: 380px) {
    .registration-title {
        font-size: 42px;
    }
}

/* Keep the invitation wordmark clear on compact screens. */
.site-brand {
    min-width: 0;
    gap: 12px;
}

.site-brand-copy {
    min-width: 0;
    gap: 3px;
}

.site-brand-kicker {
    line-height: 1.3;
}

.site-brand-title {
    white-space: nowrap;
    line-height: 1.2;
}

@media (max-width: 480px) {
    /* Overlay scrollbars need no reserved gutter; keeping one narrows the mobile page. */
    html {
        scrollbar-gutter: auto;
    }

    .site-header {
        padding-left: max(16px, env(safe-area-inset-left, 0px));
        padding-right: max(16px, env(safe-area-inset-right, 0px));
    }

    .site-header-inner {
        gap: 8px;
    }

    .site-brand {
        gap: 10px;
    }

    .site-brand-seal {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 25px;
    }

    .site-brand-kicker {
        margin-bottom: 1px;
        font-size: 7px;
        letter-spacing: .14em;
    }

    .site-brand-title {
        font-size: clamp(20px, 6.3vw, 25px);
        line-height: 1.22;
    }
}

@media (max-width: 350px) {
    .site-header {
        padding-left: max(12px, env(safe-area-inset-left, 0px));
        padding-right: max(12px, env(safe-area-inset-right, 0px));
    }

    .site-brand {
        gap: 8px;
    }

    .site-brand-seal {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
        font-size: 23px;
    }

    .site-brand-title {
        font-size: 20px;
    }
}

/* Center the monogram and align both wordmark lines to the same edge. */
.site-brand-seal {
    overflow: hidden;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 23px;
    font-style: italic;
    line-height: 1;
}

.site-brand-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.site-brand-kicker,
.site-brand-title {
    display: block;
    width: max-content;
    margin-left: 0;
    text-align: left;
}

.site-brand-kicker {
    align-self: stretch;
    text-align: center;
    line-height: 1.3;
    transform: translateX(clamp(12px, 2vw, 20px));
}

.site-brand-title {
    margin-top: 5px;
    line-height: 1.28;
}

@media (max-width: 480px) {
    .site-brand-seal {
        font-size: 21px;
    }

    .site-brand-title {
        margin-top: 4px;
        line-height: 1.3;
    }
}

/* Refined photo-album finish for the memory slideshow. */
.page2-slideshow {
    border-radius: 22px;
    box-shadow: 0 16px 38px -32px rgba(140, 75, 84, .48), inset 0 1px 0 rgba(255, 255, 255, .82);
}

.page2-slideshow-frame {
    padding: 5px;
    border-radius: 16px;
    background: var(--invite-surface);
    box-shadow: 0 11px 22px -20px rgba(140, 75, 84, .5);
}

.page2-slideshow-viewport {
    border-radius: 10px;
}

.page2-slideshow-slide {
    transition: opacity .62s ease, transform .72s cubic-bezier(.22, .7, .25, 1);
}

.page2-slideshow-arrow {
    box-shadow: 0 4px 12px -8px rgba(140, 75, 84, .5);
}

.page2-slideshow-progress-fill {
    background: linear-gradient(90deg, var(--action-rose), var(--action-gold));
}

@media (hover: hover) {
    .page2-slideshow-arrow:hover {
        transform: translateY(-1px);
        border-color: var(--rosegold-dark);
        background: #fff;
        box-shadow: 0 6px 14px -7px rgba(140, 75, 84, .45);
    }
}

.page2-slideshow-arrow:active {
    transform: scale(.96);
}

@media (max-width: 350px) {
    .page2-slideshow-controls {
        gap: 8px;
    }

    .page2-slideshow-progress {
        width: min(128px, calc(100vw - 160px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .page2-slideshow-arrow,
    .page2-slideshow-progress-fill {
        transition: none;
    }
}

.event-detail-icon-svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.event-action-icon,
.flow-action-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.tradition-icon {
    display: block;
    width: 28px;
    height: 28px;
    margin: 0 auto .5rem;
    fill: none;
    stroke: var(--rosegold-dark);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.tradition-icon-gift {
    stroke: var(--action-gold);
}

.step-indicator-arrow {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--text-muted);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.registration-submit-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transition: transform .18s ease;
}

.page2-crown-icon {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

@media (hover: hover) and (pointer: fine) {
    .registration-submit:hover .registration-submit-icon {
        transform: translateX(3px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .registration-submit-icon {
        transition: none;
    }
}

#step-rsvp .rsvp-kicker {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid rgba(232, 197, 200, .9);
    border-radius: 999px;
    background: var(--blush-50);
    color: var(--rosegold-dark);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .15em;
    line-height: 1.2;
    text-transform: uppercase;
}

#step-rsvp .rsvp-heading {
    margin: 15px 0 8px;
    color: var(--blush-800);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(30px, 5vw, 38px);
    font-weight: 600;
    line-height: 1.08;
}

#step-rsvp .rsvp-intro {
    max-width: 38ch;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: .88rem;
    line-height: 1.6;
}

#rsvp-form {
    display: grid;
    width: min(100%, 32rem);
    gap: 20px;
    margin: 0 auto;
    text-align: left;
}

#rsvp-form .rsvp-attendance-choices {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

#rsvp-form .rsvp-choice {
    display: flex;
    min-width: 0;
    min-height: 76px;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(232, 197, 200, .9) !important;
    border-radius: 14px !important;
    background: #fffefa !important;
    color: var(--invite-ink);
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

#rsvp-form .rsvp-choice input[type="radio"] {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 0;
    accent-color: var(--rosegold-dark);
}

#rsvp-form .rsvp-choice-copy {
    display: grid;
    min-width: 0;
    gap: 4px;
}

#rsvp-form .rsvp-choice-title {
    color: var(--invite-ink);
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.35;
}

#rsvp-form .rsvp-choice-description {
    color: var(--text-muted);
    font-size: .75rem;
    line-height: 1.35;
}

#rsvp-form .rsvp-choice:has(input:checked),
#rsvp-form .rsvp-choice.is-selected {
    border-color: var(--rosegold-dark) !important;
    background: #f9eff1 !important;
    box-shadow: inset 0 0 0 1px rgba(140, 75, 84, .22), 0 7px 18px -14px rgba(75, 39, 52, .55);
}

#attending-details:not(.hidden) {
    display: grid;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--invite-rule);
}

#attending-details .rsvp-attendance-note {
    padding: 14px 16px;
    border: 1px solid rgba(232, 197, 200, .8);
    border-radius: 13px;
    background: var(--blush-50);
    text-align: center;
}

#rsvp-save-status:not(.hidden) {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgba(232, 197, 200, .9);
    border-radius: 12px;
    background: #fff5f6;
    color: var(--rosegold-dark);
    font-size: .82rem;
    line-height: 1.5;
}

#rsvp-form .rsvp-actions {
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--invite-rule);
}

#rsvp-form .rsvp-back-button {
    display: inline-flex;
    min-width: 84px;
    min-height: 48px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid var(--invite-rule);
    border-radius: 10px;
    background: var(--invite-surface);
    color: var(--invite-wine-deep);
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
}

#rsvp-form .rsvp-submit-button {
    display: inline-flex;
    min-height: 50px;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    font-size: .82rem;
    font-weight: 700;
}

@media (min-width: 640px) {
    #rsvp-form .rsvp-attendance-choices {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.confirmation-icon-wrap {
    display: grid;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border: 1px solid rgba(232, 197, 200, .9);
    border-radius: 50%;
    background: var(--blush-50);
    color: var(--rosegold-dark);
    box-shadow: inset 0 1px 5px rgba(75, 39, 52, .08);
    place-items: center;
}

#confirm-icon {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

#confirm-icon[data-status="declined"] .confirmation-icon-success,
#confirm-icon[data-status="confirmed"] .confirmation-icon-declined {
    display: none;
}

#step-confirmation > .debut-card > h3 {
    color: var(--blush-800);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(30px, 5vw, 38px);
    line-height: 1.12;
}

#step-confirmation #confirm-message {
    color: var(--invite-muted);
    font-family: "Great Vibes", "Segoe Script", "Brush Script MT", cursive;
    font-size: clamp(24px, 5vw, 32px);
    line-height: 1.35;
}

#rsvp-summary-box {
    display: grid;
    gap: 0;
    padding: 8px 16px;
    border: 1px solid rgba(232, 197, 200, .82);
    border-radius: 14px;
    background: #fffefa;
}

#rsvp-summary-box p {
    margin: 0;
    padding: 9px 0;
    border-bottom: 1px solid rgba(232, 197, 200, .48);
    color: var(--invite-ink);
    line-height: 1.45;
}

#rsvp-summary-box p:last-child {
    border-bottom: 0;
}

#sum-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: #e7f2ea;
    color: #356548;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
}

#sum-status.bg-rose-100 {
    background: #f8e9ed;
    color: #8d344b;
}

#confirmation-invitation-links .confirmation-link-actions,
#step-confirmation .confirmation-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
}

#confirmation-invitation-links .confirmation-link-actions button,
#step-confirmation .confirmation-restart-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border: 1px solid rgba(184, 143, 99, .42);
    border-radius: 11px;
    background: #fffefa;
    color: var(--invite-wine-deep);
    font-size: .76rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
}

#confirmation-invitation-links .confirmation-link-actions button.primary-action-button,
#step-confirmation .confirmation-restart-button {
    border-color: var(--action-rose);
    background: linear-gradient(135deg, var(--action-rose), var(--action-gold));
    color: #fff;
    box-shadow: 0 8px 18px -12px rgba(75, 39, 52, .8);
}

#step-rsvp > .debut-card {
    padding: clamp(20px, 5vw, 38px) !important;
}

#step-confirmation > .debut-card {
    padding: clamp(22px, 6vw, 42px) !important;
}

#step-rsvp .debut-card > div:first-child {
    margin-bottom: 26px;
}

#step-confirmation .confirmation-actions {
    align-items: center;
}

#step-confirmation .confirmation-restart-button {
    width: min(100%, 320px);
    margin-inline: auto;
}

.confirmation-link-actions .flow-action-icon,
.confirmation-restart-button .flow-action-icon {
    width: 15px;
    height: 15px;
}

@media (hover: hover) and (pointer: fine) {
    #rsvp-form .rsvp-choice:hover:not(:has(input:checked)) {
        border-color: rgba(140, 75, 84, .56) !important;
        box-shadow: 0 7px 18px -15px rgba(75, 39, 52, .48);
        transform: translateY(-1px);
    }

    #rsvp-form .rsvp-back-button:hover,
    #confirmation-invitation-links .confirmation-link-actions button:hover {
        border-color: var(--rosegold-dark);
        background: #fff;
    }
}

@media (prefers-reduced-motion: reduce) {
    #rsvp-form .rsvp-choice,
    #rsvp-form .rsvp-back-button,
    #confirmation-invitation-links .confirmation-link-actions button,
    #step-confirmation .confirmation-restart-button {
        transition: none;
    }
}

.music-toggle-icon {
    display: block;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.music-toggle-button[data-playing="true"] .music-icon-muted,
.music-toggle-button:not([data-playing="true"]) .music-icon-playing {
    display: none;
}

@media (min-width: 640px) {
    #confirmation-invitation-links .confirmation-link-actions,
    #step-confirmation .confirmation-actions {
        flex-direction: row;
        align-items: center;
    }

    #step-confirmation .confirmation-restart-button {
        width: auto;
    }
}

@media (max-width: 380px) {
    #rsvp-form .rsvp-actions {
        gap: 9px;
    }

    #rsvp-form .rsvp-back-button {
        min-width: 76px;
        padding-inline: 13px;
    }
}

#step-details .event-details-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

@media (min-width: 640px) {
    #step-details .event-details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

#step-details .milestone-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    text-align: center;
}

#step-details .milestone-grid > button {
    display: flex;
    min-width: 0;
    min-height: 112px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 12px 8px;
    border: 1px solid rgba(232, 197, 200, .82);
    border-radius: 13px;
    background: #fffefa;
    color: var(--invite-wine-deep);
    text-align: center;
    cursor: pointer;
}

#step-details .milestone-grid > button > div[role="img"] {
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
}

#step-details .milestone-grid > button > span:first-of-type {
    color: var(--invite-wine-deep);
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.25;
}

#step-details .milestone-grid > button > span:last-of-type {
    color: var(--invite-muted);
    font-size: .62rem;
    line-height: 1.35;
}

#step-details .details-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#step-details .details-navigation > button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 11px;
    font-size: .76rem;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
}

#step-details .details-navigation > button:first-child {
    border: 1px solid var(--invite-rule);
    background: var(--invite-surface);
    color: var(--invite-wine-deep);
}

#step-details .details-navigation > #details-rsvp-button {
    min-width: 0;
    flex: 1 1 160px;
    max-width: 320px;
    background: linear-gradient(135deg, var(--action-rose), var(--action-gold));
    color: #fff;
}

@media (max-width: 380px) {
    #step-details .details-navigation {
        flex-direction: column;
        align-items: stretch;
    }

    #step-details .details-navigation > button,
    #step-details .details-navigation > #details-rsvp-button {
        width: 100%;
        max-width: none;
    }
}

@media (hover: hover) and (pointer: fine) {
    #step-details .milestone-grid > button:hover {
        border-color: rgba(140, 75, 84, .5);
        background: #fff8f7;
        box-shadow: 0 8px 18px -14px rgba(75, 39, 52, .45);
        transform: translateY(-2px);
    }

    #step-details .details-navigation > button:first-child:hover {
        background: #fff;
        border-color: var(--rosegold-dark);
    }
}

@media (prefers-reduced-motion: reduce) {
    #step-details .milestone-grid > button,
    #step-details .details-navigation > button {
        transition: none;
    }
}

#step-details > .debut-card {
    display: grid;
    gap: 24px;
    padding: clamp(20px, 3vw, 34px) !important;
}

#step-details > .debut-card > .text-center {
    margin: 0 0 2px;
    text-align: center;
}

#step-details > .debut-card > .text-center > span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid rgba(232, 197, 200, .84);
    border-radius: 999px;
    background: var(--blush-50);
    color: var(--rosegold-dark);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.2;
    text-transform: uppercase;
}

#step-details > .debut-card > .text-center h3 {
    margin: 12px 0 0;
    color: var(--blush-800);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(30px, 4vw, 38px);
    font-weight: 600;
    line-height: 1.12;
}

#step-details .event-detail-card {
    display: flex;
    min-height: 100%;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(232, 197, 200, .82) !important;
    border-radius: 14px !important;
    background: #fffefa !important;
}

#step-details .event-detail-card > div:first-child {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--blush-50), #f1e6ee) !important;
    color: var(--rosegold-dark) !important;
    place-items: center;
}

#step-details .event-detail-card > div:nth-child(2) {
    min-width: 0;
    flex: 1 1 auto;
}

#step-details .event-detail-card h5 {
    margin: 0 0 7px;
    color: var(--text-muted);
    font-size: .68rem;
    letter-spacing: .13em;
}

#step-details .event-detail-card p:not(.add-calendar-note):not(.add-calendar-status) {
    margin: 0;
    color: var(--invite-ink);
    font-size: .88rem;
    line-height: 1.5;
}

#step-details .event-detail-card p:not(.add-calendar-note):not(.add-calendar-status) + p:not(.add-calendar-note):not(.add-calendar-status) {
    margin-top: 4px;
}

#step-details .event-detail-card .add-calendar-button,
#step-details .event-detail-card .get-directions-button {
    margin-top: 12px;
}

#step-details .event-detail-card .add-calendar-note {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: .66rem;
    line-height: 1.4;
}

#step-details .milestone-section {
    padding-top: 18px;
    border-top: 1px solid var(--invite-rule);
}

#step-details .milestone-section h4 {
    margin: 0 0 16px;
    color: var(--blush-800);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 640px) {
    #step-details .event-detail-card {
        gap: 12px;
        padding: 16px;
    }

    #step-details .event-detail-card > div:first-child {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }
}

.site-main.music-control-visible {
    padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px)) !important;
}

/* Give the memory slideshow a more finished, album-like presentation. */
#debut-photo-slideshow.page2-slideshow {
    position: relative;
    padding: clamp(20px, 4vw, 32px);
    border-radius: 26px;
    background:
        radial-gradient(ellipse at 8% 0%, rgba(255, 255, 255, .92), transparent 40%),
        linear-gradient(145deg, #fffdfd 0%, #fffaf7 55%, #fff3f6 100%);
    box-shadow: 0 20px 42px -34px rgba(126, 61, 79, .62), inset 0 1px 0 rgba(255, 255, 255, .95);
}

#debut-photo-slideshow.page2-slideshow::before {
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(184, 143, 99, .24);
    border-radius: 19px;
    content: "";
    pointer-events: none;
}

#debut-photo-slideshow .page2-slideshow-heading {
    margin: 0 auto 20px;
}

#debut-photo-slideshow .page2-slideshow-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--invite-muted);
    font-size: .62rem;
    letter-spacing: .15em;
}

#debut-photo-slideshow .page2-slideshow-eyebrow::before,
#debut-photo-slideshow .page2-slideshow-eyebrow::after {
    width: clamp(12px, 3vw, 24px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(169, 79, 112, .48));
    content: "";
}

#debut-photo-slideshow .page2-slideshow-eyebrow::after {
    transform: rotate(180deg);
}

#debut-photo-slideshow .page2-slideshow-title {
    margin-top: 5px;
    font-size: clamp(38px, 6vw, 48px);
    text-shadow: 0 3px 14px rgba(140, 75, 84, .1);
}

#debut-photo-slideshow .page2-slideshow-frame {
    width: min(100%, 560px);
    padding: 7px;
    border-radius: 19px;
    background: linear-gradient(145deg, #fff, #fbf0f2 70%, #f5e7dc);
    box-shadow: 0 15px 30px -22px rgba(66, 38, 44, .55), 0 2px 7px rgba(126, 61, 79, .08);
}

#debut-photo-slideshow .page2-slideshow-frame::before {
    position: absolute;
    z-index: 2;
    inset: 7px;
    border: 1px solid rgba(255, 255, 255, .54);
    border-radius: 12px;
    content: "";
    pointer-events: none;
}

#debut-photo-slideshow .page2-slideshow-viewport {
    border-radius: 12px;
    background: var(--invite-surface-soft);
}

#debut-photo-slideshow .page2-slideshow-slide[aria-hidden="false"] img {
    animation: slideshowAlbumZoom 3s ease-out both;
}

@keyframes slideshowAlbumZoom {
    from { transform: scale(1.015); }
    to { transform: scale(1.055); }
}

#debut-photo-slideshow .page2-slideshow-controls {
    width: fit-content;
    max-width: 100%;
    margin: 17px auto 0;
    padding: 5px 8px;
    border: 1px solid rgba(184, 143, 99, .25);
    border-radius: 999px;
    background: rgba(255, 253, 249, .88);
    box-shadow: 0 6px 18px -14px rgba(66, 38, 44, .65), inset 0 1px 0 rgba(255, 255, 255, .96);
}

#debut-photo-slideshow .page2-slideshow-arrow {
    border-color: rgba(169, 79, 112, .16);
    background: linear-gradient(145deg, #fff, #fff7f8);
    color: var(--invite-wine);
}

#debut-photo-slideshow .page2-slideshow-progress-track {
    height: 3px;
    background: rgba(232, 197, 200, .56);
}

#debut-photo-slideshow .page2-slideshow-caption {
    min-height: 1.5em;
    margin: 13px 0 0;
    color: var(--invite-wine-deep);
    font-size: 20px;
    line-height: 1.25;
}

@media (max-width: 640px) {
    #debut-photo-slideshow.page2-slideshow {
        padding: 19px 17px 21px;
        border-radius: 23px;
    }

    #debut-photo-slideshow.page2-slideshow::before {
        inset: 7px;
        border-radius: 17px;
    }

    #debut-photo-slideshow .page2-slideshow-heading {
        margin-bottom: 16px;
    }

    #debut-photo-slideshow .page2-slideshow-eyebrow {
        gap: 7px;
        font-size: .55rem;
        letter-spacing: .12em;
    }

    #debut-photo-slideshow .page2-slideshow-title {
        font-size: clamp(36px, 10vw, 43px);
    }

    #debut-photo-slideshow .page2-slideshow-frame {
        padding: 5px;
        border-radius: 15px;
    }

    #debut-photo-slideshow .page2-slideshow-frame::before {
        inset: 5px;
        border-radius: 10px;
    }

    #debut-photo-slideshow .page2-slideshow-viewport {
        border-radius: 10px;
    }

    #debut-photo-slideshow .page2-slideshow-controls {
        gap: 8px;
        margin-top: 14px;
        padding: 4px 6px;
    }

    #debut-photo-slideshow .page2-slideshow-caption {
        margin-top: 11px;
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #debut-photo-slideshow .page2-slideshow-slide[aria-hidden="false"] img {
        animation: none;
    }
}

@media (max-width: 640px) {
    #rsvp-form .rsvp-submit-button {
        scroll-margin-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
    }
}

/* Add a little more celebration polish across the invitation flow. */
.site-brand-seal {
    background: radial-gradient(circle at 32% 28%, #fff 0%, #fbf1f3 62%, #f4e3e8 100%);
    box-shadow: 0 4px 14px -10px rgba(66, 38, 44, .7), inset 0 1px 2px rgba(255, 255, 255, .95);
}

#step-indicator > span.step-complete {
    border-color: rgba(184, 143, 99, .3);
    background: linear-gradient(120deg, var(--action-rose), var(--action-gold)) !important;
    color: #fff !important;
    box-shadow: 0 3px 12px -8px rgba(66, 38, 44, .65);
}

#step-indicator > span.step-complete::after {
    display: inline-block;
    margin-inline-start: 5px;
    color: #fff7e9;
    content: "✓";
    font-size: .72rem;
}

.mobile-step-progress-track {
    height: 4px;
    box-shadow: inset 0 1px 2px rgba(66, 38, 44, .12);
}

.mobile-step-progress-fill {
    position: relative;
    background: linear-gradient(90deg, var(--action-rose), #b75d78 58%, var(--action-gold));
    box-shadow: 0 0 10px rgba(154, 65, 96, .22);
}

.mobile-step-progress-fill::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 9px;
    border-radius: inherit;
    background: rgba(255, 255, 255, .64);
    content: "";
    filter: blur(2px);
}

.mobile-step-progress.is-complete .mobile-step-progress-copy {
    color: var(--invite-wine);
    font-weight: 700;
}

.mobile-step-progress.is-complete .mobile-step-progress-fill {
    background: linear-gradient(90deg, var(--action-rose), #bd8b57 70%, var(--action-gold));
}

#step-details .event-detail-card {
    overflow: hidden;
    border-color: rgba(184, 143, 99, .32) !important;
    border-radius: 17px !important;
    background: linear-gradient(145deg, #fffefa 0%, #fffaf8 70%, #fff4f6 100%) !important;
    box-shadow: 0 9px 24px -20px rgba(66, 38, 44, .7) !important;
    transition: transform .28s cubic-bezier(.2, .7, .25, 1), border-color .28s ease, box-shadow .28s ease;
}

#step-details .event-detail-card::before {
    display: block;
    top: 14px;
    bottom: 14px;
    left: 0;
    width: 3px;
    opacity: .55;
}

#step-details .event-detail-card > div:first-child {
    border: 1px solid rgba(184, 143, 99, .22);
    box-shadow: 0 5px 13px -9px rgba(66, 38, 44, .55);
}

#step-details .milestone-grid > button {
    background: linear-gradient(145deg, #fffefa, #fff6f7);
    box-shadow: 0 5px 16px -14px rgba(66, 38, 44, .65);
    transition: transform .24s cubic-bezier(.2, .7, .25, 1), border-color .24s ease, box-shadow .24s ease, background .24s ease;
}

#step-rsvp > .debut-card {
    background:
        radial-gradient(circle at 100% 0%, rgba(232, 197, 200, .32), transparent 15rem),
        linear-gradient(145deg, #fffdfd 0%, #fffaf8 58%, #fff3f6 100%) !important;
    box-shadow: 0 24px 54px -30px rgba(105, 48, 68, .42), inset 0 0 0 1px rgba(255, 255, 255, .92) !important;
}

#step-rsvp .rsvp-kicker::before,
#step-rsvp .rsvp-kicker::after {
    margin-inline: 6px;
    color: var(--invite-gold);
    content: "✧";
    font-size: .78rem;
    line-height: 1;
}

#step-rsvp .rsvp-heading {
    text-wrap: balance;
    text-shadow: 0 3px 18px rgba(140, 75, 84, .1);
}

#rsvp-form .rsvp-choice {
    position: relative;
    overflow: hidden;
    gap: 13px;
    padding-inline: 18px;
    border-radius: 16px !important;
    background: linear-gradient(145deg, #fffefa, #fffaf8) !important;
}

#rsvp-form .rsvp-choice::before {
    width: 3px;
    height: 28px;
    flex: 0 0 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--action-rose), var(--action-gold));
    content: "";
    opacity: .32;
    transform: scaleY(.55);
    transition: opacity .22s ease, transform .22s ease;
}

#rsvp-form .rsvp-choice:has(input:checked),
#rsvp-form .rsvp-choice.is-selected {
    background: linear-gradient(120deg, #fff9f8, #f8ecef) !important;
}

#rsvp-form .rsvp-choice:has(input:checked)::before,
#rsvp-form .rsvp-choice.is-selected::before {
    opacity: 1;
    transform: scaleY(1);
}

#rsvp-form .rsvp-choice:focus-within {
    outline: 2px solid rgba(154, 65, 96, .4);
    outline-offset: 3px;
}

#step-rsvp.step-enter .rsvp-choice {
    animation: rsvpChoiceBloom .48s cubic-bezier(.2, .7, .25, 1) both;
}

#step-rsvp.step-enter .rsvp-choice:nth-child(2) {
    animation-delay: 80ms;
}

@keyframes rsvpChoiceBloom {
    from { opacity: .65; transform: translateY(9px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

#step-confirmation > .debut-card {
    background:
        radial-gradient(circle at 50% 0%, rgba(232, 197, 200, .38), transparent 16rem),
        linear-gradient(145deg, #fffdfd 0%, #fffaf8 62%, #fff3f6 100%) !important;
    box-shadow: 0 26px 62px -34px rgba(105, 48, 68, .42), inset 0 0 0 1px rgba(255, 255, 255, .94) !important;
}

#step-confirmation .confirmation-icon-wrap {
    background: radial-gradient(circle at 34% 25%, #fff 0%, #fae9ed 68%, #f3dbe2 100%);
    box-shadow: 0 10px 24px -16px rgba(140, 75, 84, .7), inset 0 1px 5px rgba(255, 255, 255, .9);
}

#step-confirmation .confirmation-email-reminder:not(.hidden) {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin: 0 0 1.5rem;
    padding: 15px 17px;
    border: 1px solid rgba(140, 75, 84, .42);
    border-left: 5px solid var(--rosegold-dark);
    border-radius: 16px;
    background:
        radial-gradient(circle at 0% 0%, rgba(248, 168, 185, .22), transparent 58%),
        linear-gradient(135deg, #fff5f7 0%, #fff 80%);
    box-shadow: 0 12px 28px -20px rgba(125, 29, 55, .58), inset 0 1px 0 rgba(255, 255, 255, .95);
    color: var(--blush-900);
    text-align: left;
}

.confirmation-email-reminder__icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid rgba(183, 110, 121, .3);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 5px 12px -9px rgba(75, 39, 52, .65);
    color: var(--rosegold-dark);
}

.confirmation-email-reminder__icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.confirmation-email-reminder__content {
    min-width: 0;
    padding-top: 1px;
}

.confirmation-email-reminder__title {
    margin: 0 0 4px;
    color: var(--rosegold-dark);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.confirmation-email-reminder__text {
    margin: 0;
    color: var(--blush-900);
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.6;
}

@media (max-width: 480px) {
    #step-confirmation .confirmation-email-reminder:not(.hidden) {
        gap: 10px;
        padding: 13px 12px;
    }

    .confirmation-email-reminder__icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .confirmation-email-reminder__text {
        font-size: .82rem;
    }
}

#step-confirmation.step-enter .confirmation-icon-wrap {
    animation: confirmationBloom .72s cubic-bezier(.2, .7, .25, 1) both;
}

#step-confirmation.step-enter #confirm-icon {
    animation: confirmationSparkAppear .7s ease .12s both;
    transform-box: fill-box;
    transform-origin: center;
}

@keyframes confirmationBloom {
    0% { opacity: 0; transform: scale(.78); }
    70% { opacity: 1; transform: scale(1.06); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes confirmationSparkAppear {
    from { opacity: .4; transform: scale(.72) rotate(-12deg); }
    to { opacity: 1; transform: scale(1) rotate(0); }
}

@media (hover: hover) and (pointer: fine) {
    #step-details .event-detail-card:hover {
        border-color: rgba(169, 79, 112, .44) !important;
        box-shadow: 0 15px 26px -21px rgba(66, 38, 44, .75) !important;
        transform: translateY(-2px);
    }

    #step-details .milestone-grid > button:hover {
        box-shadow: 0 12px 20px -16px rgba(66, 38, 44, .75);
        transform: translateY(-3px);
    }
}

@media (prefers-reduced-motion: reduce) {
    #step-details .event-detail-card,
    #step-details .milestone-grid > button,
    #rsvp-form .rsvp-choice::before {
        transition: none;
    }

    #step-rsvp.step-enter .rsvp-choice,
    #step-confirmation.step-enter .confirmation-icon-wrap,
    #step-confirmation.step-enter #confirm-icon {
        animation: none;
    }
}

/* Bring the guest-facing boxes closer to the blush page background. */
:root {
    --guest-surface-ivory: #fffaf6;
    --guest-surface-blush: #fff5f6;
    --guest-border-dusty-rose: rgba(192, 129, 147, .48);
    --guest-border-dusty-rose-soft: rgba(192, 129, 147, .34);
}

#step-registration .registration-panel,
#step-invitation > .page2-invitation-card,
#step-invitation > #debut-photo-slideshow,
#step-details > .debut-card,
#step-rsvp > .debut-card,
#step-confirmation > .debut-card {
    background: linear-gradient(145deg, var(--guest-surface-ivory) 0%, #fff9f6 58%, var(--guest-surface-blush) 100%) !important;
    border-color: var(--guest-border-dusty-rose) !important;
}

#step-details .event-detail-card,
#step-details .milestone-grid > button,
#rsvp-form .rsvp-choice {
    border-color: var(--guest-border-dusty-rose-soft) !important;
    background: linear-gradient(145deg, var(--guest-surface-ivory), var(--guest-surface-blush)) !important;
}

#step-details .event-detail-card > div:first-child {
    border-color: rgba(184, 141, 98, .24);
    background: linear-gradient(145deg, #fffaf3, #fbf0ef) !important;
}

#rsvp-form .rsvp-choice:has(input:checked),
#rsvp-form .rsvp-choice.is-selected {
    background: linear-gradient(120deg, #fff7f2, #f8e9ed) !important;
}

#debut-photo-slideshow .page2-slideshow-frame {
    border-color: var(--guest-border-dusty-rose-soft) !important;
    background: linear-gradient(145deg, #fffefa, #fff2f4 70%, #f4e8dc) !important;
}


/* One-pass interface finish: keep the established palette and type while
   giving the registration hero a little more depth and a calmer entrance. */
.registration-layout {
    border-color: rgba(192, 129, 147, .55);
    box-shadow:
        0 30px 72px -42px rgba(104, 47, 67, .44),
        0 8px 24px -22px rgba(104, 47, 67, .32),
        inset 0 1px 0 rgba(255, 255, 255, .78);
    transition: box-shadow .35s ease, border-color .35s ease;
}

.registration-portrait::after {
    position: absolute;
    z-index: 2;
    inset: 13px;
    border: 1px solid rgba(255, 250, 245, .38);
    border-radius: 3px 18px 18px 3px;
    content: "";
    pointer-events: none;
}

.registration-portrait > img {
    animation: registrationPortraitDrift 22s ease-in-out infinite alternate;
    transform-origin: 52% 45%;
    will-change: transform;
}

@keyframes registrationPortraitDrift {
    from { transform: scale(1.025) translate3d(0, 0, 0); }
    to { transform: scale(1.075) translate3d(-.35%, .35%, 0); }
}

@keyframes registrationContentBloom {
    from { opacity: 0; transform: translateY(11px); }
    to { opacity: 1; transform: translateY(0); }
}

.site-open-animate #step-registration .registration-intro,
#step-registration.step-enter .registration-intro {
    animation: registrationContentBloom .56s cubic-bezier(.2, .7, .25, 1) .08s both;
}

.site-open-animate #step-registration .registration-form,
#step-registration.step-enter .registration-form {
    animation: registrationContentBloom .58s cubic-bezier(.2, .7, .25, 1) .17s both;
}

.site-open-animate #step-registration .registration-recovery,
#step-registration.step-enter .registration-recovery {
    animation: registrationContentBloom .54s cubic-bezier(.2, .7, .25, 1) .25s both;
}

#step-registration .registration-submit {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform .22s cubic-bezier(.2, .7, .25, 1), box-shadow .22s ease, filter .22s ease;
}

#step-registration .registration-submit::before {
    position: absolute;
    z-index: 0;
    inset: -35% auto -35% -45%;
    width: 35%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .34), transparent);
    content: "";
    opacity: 0;
    transform: skewX(-18deg);
    transition: transform .6s cubic-bezier(.2, .7, .25, 1), opacity .2s ease;
}

#step-registration .registration-submit > * {
    position: relative;
    z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
    .registration-layout:hover {
        border-color: rgba(169, 79, 112, .56);
        box-shadow:
            0 34px 78px -42px rgba(104, 47, 67, .48),
            0 10px 28px -22px rgba(104, 47, 67, .36),
            inset 0 1px 0 rgba(255, 255, 255, .82);
    }

    #step-registration .registration-submit:hover:not(:disabled) {
        box-shadow: 0 13px 24px -13px rgba(104, 47, 67, .55);
        filter: saturate(1.06);
        transform: translateY(-2px);
    }

    #step-registration .registration-submit:hover:not(:disabled)::before {
        opacity: 1;
        transform: translateX(480%) skewX(-18deg);
    }

    #step-registration .registration-submit:hover .registration-submit-icon,
    #step-registration .registration-submit:hover i {
        transform: translateX(3px);
    }
}

@media (max-width: 760px) {
    .registration-portrait::after {
        inset: 10px;
        border-radius: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .registration-portrait > img {
        animation: none;
        transform: none;
        will-change: auto;
    }

    .site-open-animate #step-registration .registration-intro,
    #step-registration.step-enter .registration-intro,
    .site-open-animate #step-registration .registration-form,
    #step-registration.step-enter .registration-form,
    .site-open-animate #step-registration .registration-recovery,
    #step-registration.step-enter .registration-recovery {
        animation: none;
    }

    #step-registration .registration-submit,
    #step-registration .registration-submit::before {
        transition: none;
    }
}
