:root{--bg:#f5f7fb;--card:#fff;--text:#1f2937;--muted:#6b7280;--primary:#7c3aed;--primary-2:#5b21b6;--border:#e5e7eb;--success:#065f46;--success-bg:#ecfdf5;--error:#991b1b;--error-bg:#fef2f2;--warning:#92400e;--warning-bg:#fffbeb;--shadow:0 12px 36px rgba(15,23,42,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text)}a{text-decoration:none;color:var(--primary)}img{max-width:100%;display:block}button{font:inherit}
.container{max-width:1160px;margin:0 auto;padding:0 20px}.py-lg{padding:32px 20px}.mt{margin-top:18px}.mt-lg{margin-top:28px}.mb{margin-bottom:16px}
.topbar{background:#111827;color:#fff;padding:16px 0;position:sticky;top:0;z-index:10}.brand{color:#fff;font-weight:700}.nav a{color:#fff;margin-left:16px}
.row{display:flex}.between{justify-content:space-between}.center{align-items:center}.center-text{text-align:center}.left{justify-content:flex-start}
.grid{display:grid}.gap{gap:16px}.cols-2{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}.cols-3{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.card,.stat-card,.package-card{background:var(--card);border:1px solid var(--border);border-radius:20px;padding:22px;box-shadow:var(--shadow)}.hero-card{background:linear-gradient(135deg,#fff,#f3e8ff);border:1px solid #e9d5ff;border-radius:24px;padding:48px 24px}
.btn{display:inline-block;padding:12px 16px;border-radius:12px;border:1px solid var(--primary);cursor:pointer;background:#fff;color:var(--primary);font-weight:600}.btn.primary{background:var(--primary);color:#fff}.btn.primary:hover{background:var(--primary-2)}.btn.success{background:var(--success);border-color:var(--success);color:#fff}.btn.danger{background:var(--error);border-color:var(--error);color:#fff}.btn.ghost{background:#fff;color:var(--primary)}.small-btn{padding:8px 12px;font-size:12px}
.btn-row{margin-top:20px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.btn-row.compact{margin-top:0}
.alert{padding:14px 16px;border-radius:12px;margin-bottom:16px}.alert.success{background:var(--success-bg);color:var(--success)}.alert.error{background:var(--error-bg);color:var(--error)}
form{display:grid;gap:12px}.field{display:grid;gap:8px}.field.full{grid-column:1/-1}label{font-weight:600}input,select,textarea{width:100%;padding:12px;border:1px solid var(--border);border-radius:12px;background:#fff;font:inherit}textarea{resize:vertical;min-height:100px}
.narrow{max-width:480px;margin:0 auto}.muted{color:var(--muted)}.small{font-size:13px}
.stat-value{font-size:28px;font-weight:700}.stat-value.small{font-size:18px;word-break:break-all}.stat-label{color:var(--muted);margin-bottom:8px}.section-head{margin:24px 0 16px}
.table-wrap{overflow:auto;background:#fff;border-radius:16px;border:1px solid var(--border)}table{width:100%;border-collapse:collapse}th,td{padding:14px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}th{background:#fafafa}.actions-inline{min-width:240px}
.admin-shell{display:grid;grid-template-columns:260px minmax(0,1fr);min-height:100vh;overflow-x:hidden}.admin-sidebar{background:#111827;color:#fff;padding:24px;display:flex;flex-direction:column;gap:12px;min-width:0}.admin-sidebar a{color:#fff;padding:8px 0}.admin-content{padding:24px;min-width:0;overflow-x:hidden}
.invite-hero{min-height:100vh;display:grid;place-items:center;padding:40px;position:relative;background:linear-gradient(135deg,#111827,#6d28d9)}.invite-card{background:rgba(255,255,255,.95);padding:32px;border-radius:24px;max-width:640px;width:100%;text-align:center;position:relative;z-index:2;box-shadow:0 16px 40px rgba(0,0,0,.18)}.watermark{position:absolute;inset:0;display:grid;place-items:center;font-size:60px;font-weight:800;color:rgba(255,255,255,.12);transform:rotate(-22deg);z-index:1;pointer-events:none;text-align:center;padding:20px}.eyebrow{text-transform:uppercase;letter-spacing:.2em;color:var(--muted)}
.package-top{margin-bottom:12px}.price{font-size:28px;font-weight:700}.feature-list{margin:0;padding-left:18px;display:grid;gap:6px}.feature-list.compact{font-size:14px}.info-list{display:grid;gap:10px}.proof-preview{border-radius:16px;border:1px solid var(--border);max-height:500px;object-fit:contain;background:#fff}
.badge{display:inline-block;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700}.badge.pending{background:var(--warning-bg);color:var(--warning)}.badge.active{background:var(--success-bg);color:var(--success)}.badge.expired,.badge.suspended{background:var(--error-bg);color:var(--error)}.badge.draft{background:#eef2ff;color:#4338ca}
.theme-card.selected{border-color:#10b981;box-shadow:0 0 0 2px rgba(16,185,129,.16)}.chips{display:flex;gap:8px;flex-wrap:wrap}.chip{display:inline-flex;padding:6px 10px;border-radius:999px;background:#f3f4f6;font-size:12px}.check{display:flex;gap:8px;align-items:center;font-weight:500}
.editor-form .card h2{margin-top:0}.preview-card{background:#fafafa;border:1px dashed var(--border);border-radius:18px;padding:12px}.media-preview{width:100%;border-radius:16px;object-fit:cover;max-height:380px}.media-preview.hero{max-height:260px}.event-box{padding:18px;border:1px solid var(--border);border-radius:18px;margin-top:12px}.nested{grid-template-columns:repeat(2,minmax(120px,1fr))}.gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}.gallery-item{border-radius:20px;overflow:hidden;background:#fff;box-shadow:var(--shadow)}.gallery-item img{width:100%;height:220px;object-fit:cover}.gallery-item.admin{padding:10px}.gallery-item.admin img{height:180px}.gallery-item.admin form{padding:10px 0 0}.person-card,.event-card{background:#fff;border-radius:24px;border:1px solid var(--border);overflow:hidden;box-shadow:var(--shadow)}.person-photo-wrap{padding:18px 18px 0}.person-photo{width:100%;height:360px;object-fit:cover;border-radius:18px}.person-photo.placeholder{height:360px;background:linear-gradient(135deg,#ede9fe,#fdf2f8);display:grid;place-items:center;border-radius:18px;font-weight:700;color:#6d28d9}.person-body{padding:20px}.event-card{padding:22px}.status-line{color:#6b7280}.lead{font-size:17px;line-height:1.6}
.public-theme{background:#fff8f6;color:#2b2334}.public-hero{position:relative;min-height:100vh;background:linear-gradient(135deg,#231942,#7f5af0);background-size:cover;background-position:center;display:flex;align-items:center}.hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(17,24,39,.34),rgba(17,24,39,.64))}.hero-inner{position:relative;z-index:2;padding-top:80px;padding-bottom:80px}.invite-card.modern{max-width:680px;background:rgba(255,255,255,.92);backdrop-filter:blur(6px);padding:36px;border-radius:30px;box-shadow:0 18px 48px rgba(0,0,0,.18)}.invite-card.modern h1{font-size:50px;line-height:1.1;margin:10px 0 14px}.guest-name{margin:0 0 18px;font-size:24px}.public-section{padding:84px 0}.public-section.soft{background:#fff}.section-title{text-align:center;max-width:680px;margin:0 auto 28px}.section-title h2{font-size:36px;margin:0 0 8px}.footer-area{padding-bottom:100px}
@media(max-width:768px){html,body{overflow-x:hidden}.admin-shell{grid-template-columns:1fr}.admin-sidebar{display:none}.admin-content{padding:16px;overflow-x:hidden}.container{padding:0 14px}.watermark{font-size:34px}.py-lg{padding:24px 14px}.row.between.center{gap:12px;align-items:flex-start;flex-direction:column}.nav a{margin-left:0;margin-right:12px}.invite-card.modern{padding:24px}.invite-card.modern h1{font-size:34px}.guest-name{font-size:20px}.person-photo,.person-photo.placeholder{height:260px}.gallery-item img{height:180px}}
.public-flash{position:sticky;top:0;z-index:30;padding:14px 18px;text-align:center;font-weight:600}.public-flash.success{background:var(--success-bg);color:var(--success)}.public-flash.error{background:var(--error-bg);color:var(--error)}
.copy-input{font-size:12px;padding:10px}.inline-form{display:inline}.compact-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.stat-mini{padding:16px;border-radius:18px;background:#faf5ff;border:1px solid #ede9fe;text-align:center}.stat-mini strong{display:block;font-size:26px}.stat-mini span{color:var(--muted);font-size:13px}.wishes-panel{max-height:520px;overflow:auto}.wish-item{padding:14px 0;border-bottom:1px solid var(--border)}.wish-item:last-child{border-bottom:0}.wish-item.pinned{background:#f8fafc;padding:14px;border-radius:14px;border:1px solid #e2e8f0;margin-bottom:12px}
summary{cursor:pointer;font-weight:600;color:var(--primary)}details[open] summary{margin-bottom:12px}
@media(max-width:768px){.compact-stats{grid-template-columns:1fr}.copy-input{font-size:11px}}

/* Theme variants */
.public-theme{--theme-bg:#fff8f6;--theme-text:#2b2334;--theme-soft:#ffffff;--theme-soft-2:#faf5ff;--theme-card:#ffffff;--theme-border:#eadcf8;--theme-accent:#7c3aed;--theme-accent-2:#5b21b6;--theme-hero:#231942;--theme-hero-2:#7f5af0;--theme-overlay-1:rgba(17,24,39,.34);--theme-overlay-2:rgba(17,24,39,.64)}
.public-theme{background:var(--theme-bg);color:var(--theme-text)}
.public-theme .public-hero{background:linear-gradient(135deg,var(--theme-hero),var(--theme-hero-2));}
.public-theme .hero-overlay{background:linear-gradient(180deg,var(--theme-overlay-1),var(--theme-overlay-2))}
.public-theme .public-section.soft{background:var(--theme-soft)}
.public-theme .invite-card.modern{background:rgba(255,255,255,.92);border:1px solid rgba(255,255,255,.45)}
.public-theme .person-card,.public-theme .event-card,.public-theme .card{background:var(--theme-card);border-color:var(--theme-border)}
.public-theme .section-title h2,.public-theme h1,.public-theme h2,.public-theme h3{color:var(--theme-text)}
.public-theme a,.public-theme .eyebrow,.public-theme .status-line{color:var(--theme-accent)}
.public-theme .btn.primary{background:var(--theme-accent);border-color:var(--theme-accent)}
.public-theme .btn.primary:hover{background:var(--theme-accent-2);border-color:var(--theme-accent-2)}
.public-theme .btn.ghost{color:var(--theme-accent);border-color:var(--theme-accent)}
.public-theme .stat-mini{background:color-mix(in srgb, var(--theme-accent) 8%, white);border-color:color-mix(in srgb, var(--theme-accent) 16%, white)}
.public-theme .person-photo.placeholder{background:linear-gradient(135deg,color-mix(in srgb, var(--theme-accent) 18%, white),color-mix(in srgb, var(--theme-accent-2) 8%, white));color:var(--theme-accent-2)}
.public-theme .wish-item.pinned{border-color:color-mix(in srgb, var(--theme-accent) 18%, white)}

.public-theme.wedding-modern-elegance{--theme-bg:#fff8f6;--theme-text:#2b2334;--theme-soft:#fffdfc;--theme-border:#eadcf8;--theme-accent:#7c3aed;--theme-accent-2:#5b21b6;--theme-hero:#231942;--theme-hero-2:#7f5af0}
.public-theme.wedding-luxury-burgundy{--theme-bg:#fff9fa;--theme-text:#35111f;--theme-soft:#fff6f8;--theme-border:#f0d3dc;--theme-accent:#8c1d40;--theme-accent-2:#6e1632;--theme-hero:#3b0d1e;--theme-hero-2:#9b2242}
.public-theme.wedding-botanical-sage{--theme-bg:#f7fbf7;--theme-text:#244136;--theme-soft:#f0f7f0;--theme-border:#d9e8dc;--theme-accent:#4f7a63;--theme-accent-2:#365a47;--theme-hero:#244136;--theme-hero-2:#8db596}
.public-theme.wedding-classic-white-gold{--theme-bg:#fffdf8;--theme-text:#4a3a1f;--theme-soft:#fffaf0;--theme-border:#efe3c4;--theme-accent:#c39b3c;--theme-accent-2:#9e7d2f;--theme-hero:#5a4720;--theme-hero-2:#d6ba6a}
.public-theme.wedding-dark-editorial{--theme-bg:#0f1116;--theme-text:#f3f4f6;--theme-soft:#161a22;--theme-card:#171c25;--theme-border:#2d3442;--theme-accent:#d4b483;--theme-accent-2:#b08a52;--theme-hero:#05070b;--theme-hero-2:#2c3340;--theme-overlay-1:rgba(0,0,0,.40);--theme-overlay-2:rgba(0,0,0,.74)}
.public-theme.wedding-rustic-earth-tone{--theme-bg:#fbf7f2;--theme-text:#4b382f;--theme-soft:#f4ede4;--theme-border:#e8d9c8;--theme-accent:#9c6b3f;--theme-accent-2:#7d5431;--theme-hero:#5a4030;--theme-hero-2:#c49a6c}
.public-theme.wedding-soft-beige-islami{--theme-bg:#fdfaf5;--theme-text:#5a4d3c;--theme-soft:#f8f1e7;--theme-border:#eadfcf;--theme-accent:#9a7b4f;--theme-accent-2:#7d633f;--theme-hero:#7b674d;--theme-hero-2:#c7b191}
.public-theme.wedding-javanese-royal{--theme-bg:#fff9f2;--theme-text:#3c2c1f;--theme-soft:#f7efe3;--theme-border:#e6d4ba;--theme-accent:#a05a1a;--theme-accent-2:#7f4714;--theme-hero:#402112;--theme-hero-2:#b56a24}
.public-theme.wedding-korean-clean-minimal{--theme-bg:#fafafa;--theme-text:#1f2937;--theme-soft:#ffffff;--theme-border:#e5e7eb;--theme-accent:#111827;--theme-accent-2:#374151;--theme-hero:#dfe7ef;--theme-hero-2:#ffffff;--theme-overlay-1:rgba(17,24,39,.08);--theme-overlay-2:rgba(17,24,39,.22)}
.public-theme.wedding-korean-clean-minimal .invite-card.modern{background:rgba(255,255,255,.97)}
.public-theme.wedding-tropical-romantic{--theme-bg:#fffaf7;--theme-text:#3c3a2b;--theme-soft:#fff4ea;--theme-border:#f1dcc3;--theme-accent:#d97706;--theme-accent-2:#b45309;--theme-hero:#4b5d3f;--theme-hero-2:#f59e0b}
.public-theme.khitan-ceria-islami{--theme-bg:#f6fff8;--theme-text:#204733;--theme-soft:#effbf3;--theme-border:#d8eddf;--theme-accent:#15803d;--theme-accent-2:#166534;--theme-hero:#0f5132;--theme-hero-2:#34d399}
.public-theme.birthday-fun-luxe{--theme-bg:#fff8fe;--theme-text:#5b214b;--theme-soft:#fff0fb;--theme-border:#f4cfe8;--theme-accent:#db2777;--theme-accent-2:#be185d;--theme-hero:#6d214f;--theme-hero-2:#f472b6}
.public-theme.event-formal-elegant{--theme-bg:#f8fafc;--theme-text:#1e293b;--theme-soft:#ffffff;--theme-border:#dbe4ef;--theme-accent:#1d4ed8;--theme-accent-2:#1e40af;--theme-hero:#0f172a;--theme-hero-2:#334155}

/* fallback for browsers without color-mix */
@supports not (color: color-mix(in srgb, black 50%, white)) {
  .public-theme .stat-mini{background:#faf5ff;border-color:var(--theme-border)}
  .public-theme .person-photo.placeholder{background:linear-gradient(135deg,#ede9fe,#fdf2f8)}
}

/* Stage 3A enhancements */
.hero-layout-split .hero-split{display:grid;grid-template-columns:1.1fr .9fr;gap:28px;align-items:center}.split-card{max-width:none;text-align:left}.hero-side-visual{display:flex;justify-content:center}.hero-side-stack{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:16px;width:min(100%,520px)}.hero-side-stack img,.placeholder-stack div{height:480px;width:100%;object-fit:cover;border-radius:28px;box-shadow:0 22px 50px rgba(0,0,0,.2)}.hero-side-stack img:nth-child(2){margin-top:50px}.placeholder-stack{display:grid;place-items:center}.placeholder-stack div{display:grid;place-items:center;background:rgba(255,255,255,.14);backdrop-filter:blur(4px);color:#fff;text-align:center;padding:24px}
.framed-card{position:relative;overflow:hidden}.floral-frame{position:absolute;inset:14px;border:1px solid rgba(255,255,255,.5);border-radius:28px;pointer-events:none}
.countdown-shell{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;max-width:860px;margin:0 auto}.countdown-item{background:var(--theme-card);border:1px solid var(--theme-border);border-radius:24px;padding:26px 16px;text-align:center;box-shadow:var(--shadow)}.countdown-item strong{display:block;font-size:42px;line-height:1;font-weight:800}.countdown-item span{display:block;margin-top:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.14em;font-size:12px}
.quote-section{padding-top:56px;padding-bottom:56px}.quote-card{max-width:860px;margin:0 auto;background:linear-gradient(135deg,rgba(255,255,255,.88),rgba(255,255,255,.72));border:1px solid var(--theme-border);border-radius:32px;padding:34px 28px;box-shadow:var(--shadow);position:relative}.quote-mark{font-size:76px;line-height:1;color:var(--theme-accent);opacity:.25}.quote-text{font-size:22px;line-height:1.8;margin:8px 0 0}.quote-source{margin-top:18px;color:var(--muted);font-style:italic}
.story-timeline{position:relative;max-width:980px;margin:0 auto;padding-left:20px}.story-timeline:before{content:'';position:absolute;left:20px;top:0;bottom:0;width:2px;background:var(--theme-border)}.story-item{position:relative;padding-left:42px;margin-bottom:28px}.story-dot{position:absolute;left:11px;top:24px;width:20px;height:20px;border-radius:50%;background:var(--theme-accent);box-shadow:0 0 0 5px color-mix(in srgb,var(--theme-accent) 18%,white)}.story-card{background:var(--theme-card);border:1px solid var(--theme-border);border-radius:26px;padding:18px;box-shadow:var(--shadow)}.story-grid{display:grid;grid-template-columns:minmax(180px,260px) 1fr;gap:18px;align-items:center}.story-photo-wrap img{width:100%;height:220px;object-fit:cover;border-radius:18px}
.gift-section .gift-card,.map-card{display:block;background:var(--theme-card);border:1px solid var(--theme-border);border-radius:24px;padding:24px;box-shadow:var(--shadow)}.gift-number{font-size:28px;font-weight:800;letter-spacing:.04em;word-break:break-all;margin:10px 0 14px}.map-card h3,.gift-card h3{margin-bottom:10px}
.music-player{position:fixed;right:18px;bottom:18px;z-index:40;background:rgba(17,24,39,.9);color:#fff;border-radius:999px;padding:10px 12px 10px 10px;display:flex;align-items:center;gap:12px;box-shadow:0 12px 36px rgba(0,0,0,.24)}.music-toggle{width:46px;height:46px;border:0;border-radius:50%;background:#fff;color:#111827;font-size:20px;cursor:pointer}.music-meta{display:grid;gap:2px}.music-meta strong{font-size:13px}.music-meta span{font-size:11px;opacity:.8}.music-player audio{display:none}
.theme-variant-split .section-title{text-align:left;max-width:none}.theme-variant-split .public-section .container{max-width:1200px}
.wedding-luxury-burgundy .hero-side-stack img:nth-child(1){transform:rotate(-3deg)}.wedding-luxury-burgundy .hero-side-stack img:nth-child(2){transform:rotate(3deg)}
.wedding-botanical-sage .story-card,.wedding-botanical-sage .gift-card,.wedding-botanical-sage .map-card{border-radius:28px}.wedding-botanical-sage .person-card,.wedding-botanical-sage .event-card{border-radius:32px}
.wedding-modern-elegance .quote-card{background:rgba(255,255,255,.85);backdrop-filter:blur(6px)}
.editor-form audio{width:100%}
.gift-box textarea{min-height:72px}
@media(max-width:900px){.hero-layout-split .hero-split,.story-grid{grid-template-columns:1fr}.hero-side-stack{grid-template-columns:repeat(2,minmax(120px,1fr))}.hero-side-stack img,.placeholder-stack div{height:260px}.hero-side-stack img:nth-child(2){margin-top:20px}.countdown-shell{grid-template-columns:repeat(2,minmax(0,1fr))}.quote-text{font-size:18px}}
@media(max-width:768px){.countdown-item strong{font-size:32px}.music-player{right:12px;bottom:12px;left:12px;border-radius:18px}.music-meta{flex:1}.story-timeline{padding-left:0}.story-timeline:before{left:9px}.story-item{padding-left:28px}.story-dot{left:0}.section-title{text-align:center !important}}

/* Stage 3B admin polish + extended theme variants */
.admin-kpi-grid .stat-card,.package-card-admin,.theme-preview-card{border-radius:24px}
.badge{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:700;text-transform:capitalize;border:1px solid var(--border);background:#fff;color:var(--text)}
.badge.success,.badge.active,.badge.verified{background:#ecfdf5;color:#047857;border-color:#a7f3d0}
.badge.pending_review,.badge.pending_payment{background:#fffbeb;color:#b45309;border-color:#fcd34d}
.badge.rejected,.badge.suspended,.badge.expired{background:#fef2f2;color:#b91c1c;border-color:#fecaca}
.badge.draft,.badge.inactive,.badge.muted{background:#f8fafc;color:#475569;border-color:#e2e8f0}
.badge.warning{background:#fff7ed;color:#c2410c;border-color:#fdba74}
.filter-bar .action-end{display:flex;align-items:end}.filter-bar .btn{width:100%}
.wrap-gap{gap:12px}.mb{margin-bottom:20px}.mb-sm{margin-bottom:12px}.mt-sm{margin-top:12px}.section-divider{height:1px;background:var(--border);margin:22px 0}
.feature-list{display:flex;flex-wrap:wrap;gap:10px}.feature-chip{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--border);border-radius:14px;background:#fff;min-width:180px}.feature-chip strong{font-size:13px;color:var(--primary)}
.feature-admin-grid{align-items:start}.feature-admin-row{display:grid;gap:8px;padding:14px;border:1px solid var(--border);border-radius:18px;background:#fff}.feature-admin-row label{font-weight:700}
.package-grid{align-items:start}.package-card-admin .price{font-size:28px;font-weight:800;color:var(--primary);margin:10px 0 4px}
.theme-admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}.theme-preview-card{padding:18px;min-height:210px;border:1px solid var(--theme-border);box-shadow:var(--shadow)}.theme-preview-top h3{margin:6px 0 8px}.theme-swatch-row{display:flex;gap:10px;margin-top:18px}.theme-swatch-row span{display:block;width:34px;height:34px;border-radius:999px;background:linear-gradient(135deg,var(--theme-accent),var(--theme-hero-2));box-shadow:inset 0 0 0 2px rgba(255,255,255,.4)}.theme-swatch-row span:nth-child(2){background:linear-gradient(135deg,var(--theme-hero),var(--theme-accent))}.theme-swatch-row span:nth-child(3){background:linear-gradient(135deg,var(--theme-bg),var(--theme-card));border:1px solid var(--theme-border)}
.simple-list{list-style:none;padding:0;margin:0;display:grid;gap:10px}.simple-list li{padding:10px 0;border-bottom:1px solid var(--border)}.simple-list li:last-child{border-bottom:0}

.hero-shape-arched .invite-card.modern,.hero-shape-arched .split-card{border-radius:32px 32px 18px 18px}
.hero-shape-frame .invite-card.modern{box-shadow:0 0 0 1px rgba(255,255,255,.35),0 24px 60px rgba(0,0,0,.18)}
.hero-shape-soft .invite-card.modern{border-radius:36px}
.hero-shape-editorial .invite-card.modern{border-radius:8px;letter-spacing:.02em;text-transform:uppercase}
.theme-variant-editorial .public-hero{min-height:90vh;background-size:cover;background-position:center}.theme-variant-editorial .invite-card.modern{max-width:760px;background:rgba(10,12,17,.62);backdrop-filter:blur(8px)}.theme-variant-editorial .guest-name,.theme-variant-editorial h1,.theme-variant-editorial .lead,.theme-variant-editorial .status-line{color:#fff}.theme-variant-editorial .btn.ghost{color:#fff;border-color:rgba(255,255,255,.35)}
.theme-variant-storybook .invite-card.modern{border-radius:34px;background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(255,251,247,.9))}.theme-variant-storybook .public-section .container{max-width:1100px}.theme-variant-storybook .quote-card{border-radius:20px 36px 20px 36px}
.theme-variant-serene .public-hero{min-height:76vh}.theme-variant-serene .invite-card.modern{background:rgba(255,255,255,.88);backdrop-filter:blur(10px)}.theme-variant-serene .countdown-item,.theme-variant-serene .gift-card,.theme-variant-serene .map-card{border-radius:30px}
.theme-variant-royal .public-hero{background-blend-mode:multiply}.theme-variant-royal .invite-card.modern{background:linear-gradient(135deg,rgba(255,250,242,.92),rgba(255,240,220,.92));border:1px solid rgba(160,90,26,.25)}.theme-variant-royal .section-title h2{letter-spacing:.08em;text-transform:uppercase}.theme-variant-royal .person-card,.theme-variant-royal .event-card{border-radius:18px}
.theme-variant-minimal .public-hero{min-height:68vh}.theme-variant-minimal .invite-card.modern{background:rgba(255,255,255,.98);box-shadow:0 18px 42px rgba(15,23,42,.08)}.theme-variant-minimal .btn{border-radius:999px}.theme-variant-minimal .person-card,.theme-variant-minimal .event-card,.theme-variant-minimal .card{border-radius:18px;box-shadow:none}
.theme-variant-tropical .public-hero{background-position:center top}.theme-variant-tropical .invite-card.modern{background:rgba(255,255,255,.9)}.theme-variant-tropical .countdown-item{border-radius:28px 12px 28px 12px}.theme-variant-tropical .gallery-item img{border-radius:28px}
.theme-variant-celebration .invite-card.modern{background:rgba(255,255,255,.95)}.theme-variant-celebration .countdown-item strong{font-size:36px}.theme-variant-celebration .gift-card,.theme-variant-celebration .map-card{border-style:dashed}
.theme-variant-party .public-hero{background-position:center}.theme-variant-party .invite-card.modern{background:rgba(255,255,255,.93);transform:rotate(-1deg)}.theme-variant-party .countdown-item:nth-child(odd){transform:rotate(-2deg)}.theme-variant-party .countdown-item:nth-child(even){transform:rotate(2deg)}
.theme-variant-formal .invite-card.modern{max-width:720px;border-radius:22px}.theme-variant-formal .btn-row.compact.center-text{justify-content:center}

.public-theme.wedding-classic-white-gold .floral-frame{border-color:rgba(195,155,60,.35)}
.public-theme.wedding-rustic-earth-tone .story-card{background:linear-gradient(180deg,#fffdf9,#f7efe6)}
.public-theme.wedding-soft-beige-islami .quote-card{background:linear-gradient(135deg,rgba(255,251,245,.95),rgba(247,241,231,.9))}
.public-theme.wedding-javanese-royal .floral-frame{border-width:2px;border-color:rgba(160,90,26,.45)}
.public-theme.wedding-korean-clean-minimal .quote-card,.public-theme.wedding-korean-clean-minimal .gift-card,.public-theme.wedding-korean-clean-minimal .map-card{box-shadow:none}
.public-theme.wedding-tropical-romantic .story-dot{box-shadow:0 0 0 5px rgba(217,119,6,.15)}
.public-theme.khitan-ceria-islami .invite-card.modern h1,.public-theme.khitan-ceria-islami .section-title h2{letter-spacing:.03em}
.public-theme.birthday-fun-luxe .gift-card,.public-theme.birthday-fun-luxe .countdown-item{border-style:dashed}
.public-theme.event-formal-elegant .quote-card{background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(241,245,249,.92))}

@media(max-width:900px){.admin-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-admin-grid{grid-template-columns:1fr 1fr}}
@media(max-width:768px){.admin-kpi-grid,.theme-admin-grid{grid-template-columns:1fr}.feature-list{flex-direction:column}.feature-chip{min-width:0}.filter-bar .grid{grid-template-columns:1fr}}

/* Stage 4A landing + guest import/share */
.landing-hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#f8fafc 0%,#fdf2f8 45%,#fff7ed 100%);border:1px solid var(--border);border-radius:36px;padding:34px 28px 18px;box-shadow:var(--shadow)}
.landing-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:28px;align-items:center;position:relative;z-index:1}.landing-badge{display:inline-flex;align-items:center;padding:8px 14px;border-radius:999px;background:#fff;border:1px solid #e9d5ff;color:#6d28d9;font-weight:700;font-size:13px}.landing-title{font-size:clamp(34px,5vw,58px);line-height:1.05;margin:16px 0 16px}.landing-lead{font-size:18px;line-height:1.8;color:var(--muted);max-width:720px}.landing-trust-row{display:flex;gap:14px;flex-wrap:wrap;margin-top:26px}.landing-stat{background:rgba(255,255,255,.85);backdrop-filter:blur(8px);border:1px solid #e5e7eb;border-radius:20px;padding:14px 16px;min-width:130px;box-shadow:0 12px 30px rgba(15,23,42,.06)}.landing-stat strong{display:block;font-size:28px;line-height:1;color:#111827}.landing-stat span{display:block;margin-top:8px;color:#6b7280;font-size:13px}
.landing-showcase{display:flex;justify-content:center}.showcase-card.main{width:min(100%,560px);background:#0f172a;color:#fff;border-radius:28px;padding:18px;box-shadow:0 24px 60px rgba(15,23,42,.2)}.window-bar{display:flex;gap:8px;margin-bottom:14px}.window-bar span{width:12px;height:12px;border-radius:50%;background:rgba(255,255,255,.4)}.window-bar span:nth-child(1){background:#f87171}.window-bar span:nth-child(2){background:#fbbf24}.window-bar span:nth-child(3){background:#34d399}.showcase-kpis{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}.showcase-chip{padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.14);font-size:12px;font-weight:700}.showcase-chip.light{background:rgba(244,114,182,.18)}.showcase-mock-grid{display:grid;gap:14px}.showcase-panel{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:22px;padding:18px}.showcase-panel h3{margin-bottom:8px}.showcase-panel ul{margin:0;padding-left:18px;display:grid;gap:6px}.showcase-panel.accent{background:linear-gradient(135deg,rgba(124,58,237,.26),rgba(236,72,153,.25))}.showcase-strip{height:110px;border-radius:20px;background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.16))}
.landing-section{padding:56px 0}.landing-section.alt{background:linear-gradient(180deg,#faf5ff 0%,#fff 100%);border-radius:36px;padding:42px 24px;border:1px solid #ede9fe}.landing-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.landing-feature-card{background:#fff;border:1px solid var(--border);border-radius:24px;padding:22px;box-shadow:0 12px 28px rgba(15,23,42,.05)}.landing-feature-card h3{margin-bottom:8px}.landing-theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.landing-theme-card{min-height:160px;border-radius:28px;padding:20px;color:#fff;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 18px 44px rgba(15,23,42,.14);font-weight:700}.landing-theme-card span{font-size:14px;opacity:.92}.landing-theme-card strong{font-size:22px}.landing-theme-card.theme-a{background:linear-gradient(135deg,#231942,#7f5af0)}.landing-theme-card.theme-b{background:linear-gradient(135deg,#3b0d1e,#9b2242)}.landing-theme-card.theme-c{background:linear-gradient(135deg,#244136,#8db596)}.landing-theme-card.theme-d{background:linear-gradient(135deg,#402112,#b56a24)}.landing-theme-card.theme-e{background:linear-gradient(135deg,#0f5132,#34d399)}.landing-theme-card.theme-f{background:linear-gradient(135deg,#6d214f,#f472b6)}
.landing-cta{display:flex;justify-content:space-between;align-items:center;gap:24px;background:linear-gradient(135deg,#111827,#4338ca);color:#fff;border-radius:32px;padding:28px}.landing-blob{position:absolute;border-radius:999px;filter:blur(22px);opacity:.45;pointer-events:none}.landing-blob-one{width:220px;height:220px;right:-40px;top:-30px;background:#c084fc}.landing-blob-two{width:180px;height:180px;left:-50px;bottom:-50px;background:#f9a8d4}
.soft-note{padding:12px 14px;border:1px dashed #d8b4fe;background:#faf5ff;border-radius:16px;color:#6b21a8}.search-inline input{min-width:280px}.guest-share-tools .btn{min-width:auto}.copy-input{font-size:13px}.wrap-gap{display:flex;flex-wrap:wrap}
@media(max-width:980px){.landing-grid,.landing-feature-grid,.landing-theme-grid{grid-template-columns:1fr 1fr}.landing-cta{flex-direction:column;align-items:flex-start}}
@media(max-width:768px){.landing-hero{padding:24px 18px}.landing-grid,.landing-feature-grid,.landing-theme-grid{grid-template-columns:1fr}.landing-title{font-size:34px}.landing-cta{padding:22px}.search-inline input{min-width:0;width:100%}}

/* Stage 4B pricing + theme gallery + mobile polish */
.topbar-inner{gap:16px;flex-wrap:wrap}.nav-main{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.nav-main a{margin-left:0}
.compact-top{padding-top:24px}.narrow-center{max-width:820px;margin:0 auto 24px}
.pricing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.pricing-card{background:#fff;border:1px solid var(--border);border-radius:28px;padding:24px;box-shadow:0 18px 40px rgba(15,23,42,.06);display:flex;flex-direction:column;gap:18px}.pricing-card.featured{background:linear-gradient(180deg,#faf5ff,#fff);border-color:#d8b4fe;transform:translateY(-6px)}.pricing-card.compact{padding:20px}.pricing-top h2,.pricing-top h3{margin:10px 0 8px}.pricing-eyebrow{display:inline-flex;padding:8px 12px;border-radius:999px;background:#ede9fe;color:#6d28d9;font-size:12px;font-weight:700}.pricing-price{font-size:38px;font-weight:800;line-height:1.05;color:#111827}.pricing-features{margin:0;padding-left:20px;display:grid;gap:10px}.pricing-features li{color:#374151}
.landing-pricing-grid .pricing-card{min-height:100%}
.theme-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.theme-showcase-card{overflow:hidden;border-radius:28px;border:1px solid var(--theme-border);background:var(--theme-card);box-shadow:0 16px 42px rgba(15,23,42,.08)}.theme-showcase-hero{position:relative;min-height:210px;background:linear-gradient(135deg,var(--theme-hero),var(--theme-hero-2));padding:18px;display:flex;align-items:flex-end}.theme-showcase-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(17,24,39,.28))}.theme-showcase-inner{position:relative;z-index:1;color:#fff}.theme-showcase-inner h3{margin:8px 0 6px;color:#fff}.theme-showcase-inner p{margin:0;color:rgba(255,255,255,.85)}.theme-showcase-body{padding:18px}
.theme-preview-card{position:relative;overflow:hidden}.theme-preview-card strong{font-size:22px}.theme-preview-card.theme-showcase-card .chip{background:rgba(255,255,255,.7)}
.search-inline input{border-radius:999px;padding:12px 16px}.wrap-gap.left{justify-content:flex-start}.copy-input{border-radius:14px}.soft-note strong{display:block;margin-bottom:6px}
@media(max-width:1100px){.pricing-grid,.theme-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:768px){.topbar{position:static}.topbar-inner{align-items:flex-start}.nav-main{width:100%}.nav-main a{display:inline-flex}.pricing-grid,.theme-gallery-grid{grid-template-columns:1fr}.pricing-card.featured{transform:none}.landing-pricing-grid{grid-template-columns:1fr}.btn-row.left{justify-content:flex-start}.table-wrap{border-radius:14px}.card,.stat-card,.package-card{padding:18px;border-radius:18px}}


/* Stage 5A dashboard renewal + checkout premium */
.notice-card{border-radius:24px}.warning-card{border-color:#fcd34d;background:#fffbeb}.danger-card{border-color:#fca5a5;background:#fff1f2}.notice-list{display:grid;gap:12px;margin-top:16px}.notice-item{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:14px 16px;border:1px solid rgba(17,24,39,.08);border-radius:18px;background:#fff}.premium-panel{border-radius:28px}.billing-pricing-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.checkout-summary-box{display:grid;gap:10px;padding:16px;border-radius:20px;background:#faf5ff;border:1px solid #ddd6fe}.checkout-row{display:flex;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px dashed #ddd6fe}.checkout-row:last-child{border-bottom:0;padding-bottom:0}.method-card{border-radius:22px}.subtle-card{background:linear-gradient(180deg,#fff,#f8fafc)}.landing-dashboard-card{border-radius:28px}.landing-card-stack{display:grid;gap:18px}.soft-strip{background:linear-gradient(180deg,#fff,#f8fafc);border-radius:32px;padding:26px}.section-head.mb-0{margin-bottom:0}.mt-sm{margin-top:10px}
@media(max-width:980px){.billing-pricing-grid{grid-template-columns:1fr}.notice-item{flex-direction:column;align-items:flex-start}}

/* Stage 5B */
.stacked-item { align-items: flex-start; gap: 12px; }
.wrap-gap { flex-wrap: wrap; gap: 8px; }
.badge.critical { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.badge.soon { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.badge.safe { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.badge.expired, .badge.danger { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
textarea[readonly] { background: #fbfbfe; }
.notice-item.stacked-item .btn-row { margin-top: 6px; }
@media (max-width: 900px) {
  .stacked-item { flex-direction: column; }
}

/* Stage 6B polish */
.admin-sidebar h2{margin-bottom:8px}.admin-sidebar a{border-radius:12px;padding:10px 12px;transition:background .2s ease}.admin-sidebar a:hover{background:rgba(255,255,255,.08)}
.badge.ok{background:#dcfce7;color:#166534}.badge.warning{background:#fef3c7;color:#92400e}.badge.fail,.badge.failed{background:#fee2e2;color:#991b1b}
.card textarea[readonly],.card input[readonly]{background:#f8fafc}.simple-list code{background:#f3f4f6;padding:2px 6px;border-radius:8px}
@media(max-width:768px){.admin-sidebar{display:flex;position:sticky;top:0;z-index:10;padding:14px;overflow:auto;flex-direction:row;gap:8px}.admin-sidebar h2{display:none}.admin-sidebar a{white-space:nowrap;background:rgba(255,255,255,.06);padding:10px 12px;font-size:13px}.admin-content{padding:16px}.admin-kpi-grid{grid-template-columns:1fr 1fr}.table-wrap table{min-width:700px}.btn-row.wrap-gap{gap:8px}}


/* Stage 6C onboarding + quick start */
.onboarding-panel{background:linear-gradient(135deg,#fff,#faf5ff);border-color:#e9d5ff}.onboarding-progress{min-width:140px;padding:14px 16px;border-radius:20px;background:#111827;color:#fff;text-align:center}.onboarding-progress strong{display:block;font-size:30px;line-height:1}.onboarding-progress span{display:block;margin-top:6px;font-size:12px;color:rgba(255,255,255,.78)}.progress-track{height:12px;border-radius:999px;background:#ede9fe;overflow:hidden}.progress-track span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#7c3aed,#ec4899)}.checklist-card{display:flex;gap:12px;align-items:flex-start;padding:16px;border-radius:18px;border:1px solid var(--border);background:#fff;color:inherit;box-shadow:0 10px 28px rgba(15,23,42,.04)}.checklist-card.done{border-color:#86efac;background:#f0fdf4}.check-icon{width:34px;height:34px;border-radius:999px;display:grid;place-items:center;background:#ede9fe;color:#6d28d9;font-weight:800;flex:0 0 auto}.checklist-card.done .check-icon{background:#dcfce7;color:#166534}.onboarding-item.done{border-color:#bbf7d0;background:#f0fdf4}.wizard-hero,.onboarding-hero{position:relative;overflow:hidden}.wizard-hero:before,.onboarding-hero:before{content:"";position:absolute;right:-40px;top:-40px;width:180px;height:180px;border-radius:999px;background:rgba(192,132,252,.24);filter:blur(18px)}.wizard-side-card{background:#f8fafc}.wizard-steps{display:grid;gap:12px}.wizard-step-pill{display:inline-flex;padding:8px 12px;border-radius:999px;background:#ede9fe;color:#6d28d9;font-weight:700;font-size:12px}.nav-main a[href$="getting-started"]{font-weight:700}.quickstart-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:768px){.onboarding-progress{width:100%}.checklist-card{padding:14px}.wizard-hero,.onboarding-hero{padding:28px 20px}.progress-track{height:10px}}


/* Stage 7A branding + SEO */
.brand-flex{display:inline-flex;align-items:center;gap:10px}.brand-logo{width:34px;height:34px;object-fit:cover;border-radius:10px;box-shadow:0 8px 20px rgba(15,23,42,.12)}.admin-brand-logo{width:42px;height:42px;border-radius:12px}.admin-brand-block{margin-bottom:12px}.site-footer{border-top:1px solid var(--border);background:#fff;padding:18px 0 24px}.public-footer{background:rgba(255,255,255,.96)}.site-footer-inner{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.site-footer-inner p{margin:6px 0 0}.site-footer-meta{display:flex;flex-direction:column;gap:6px;align-items:flex-end;font-size:13px;color:var(--muted)}.narrow-center{max-width:760px;margin-inline:auto}.small{font-size:12px}.mb{margin-bottom:10px}.mt-sm{margin-top:10px}@media(max-width:768px){.site-footer-inner{flex-direction:column}.site-footer-meta{align-items:flex-start}.brand-logo{width:30px;height:30px}}


/* Stage 8A theme experience foundation */
body.opening-locked{overflow:hidden}.public-theme{position:relative;background:var(--theme-bg,#fff8f6)}.invitation-stage-8b{background:var(--theme-bg,#fff8f6)}.public-hero{background-repeat:no-repeat!important;background-size:cover!important;background-position:center center!important;min-height:100svh;overflow:hidden}.opening-screen{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--theme-hero),var(--theme-hero-2));background-repeat:no-repeat;background-size:cover;background-position:center center;transition:opacity .55s ease,visibility .55s ease;will-change:opacity}.opening-screen.is-opened{opacity:0;visibility:hidden;pointer-events:none}.opening-screen.is-preview{position:relative;min-height:100svh}.opening-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(17,24,39,.32),rgba(17,24,39,.78))}.opening-inner{position:relative;z-index:2;padding-top:80px;padding-bottom:80px}.opening-card{max-width:640px;background:rgba(255,255,255,.88);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.5);border-radius:34px;padding:34px;box-shadow:0 24px 70px rgba(15,23,42,.22)}.opening-card h1{margin:10px 0 14px;font-size:clamp(38px,6vw,64px);line-height:1.05}.opening-description{max-width:44ch}.opening-guest-box{display:inline-grid;gap:4px;margin-top:10px;padding:14px 18px;border-radius:20px;background:rgba(255,255,255,.72);border:1px solid rgba(124,58,237,.14)}.opening-guest-box span{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}.opening-guest-box strong{font-size:20px}.open-invitation-btn{min-width:220px;box-shadow:0 12px 26px rgba(124,58,237,.22)}.hero-inner{display:flex;align-items:center}.hero-layout-split,.hero-layout-framed,.hero-layout-classic,.hero-layout-editorial,.hero-layout-storybook,.hero-layout-serene,.hero-layout-royal,.hero-layout-minimal,.hero-layout-tropical,.hero-layout-celebration,.hero-layout-party,.hero-layout-formal{width:100%}.invite-card.modern,.hero-side-visual,.story-card,.event-card,.person-card,.gift-card,.map-card,.gallery-item,.countdown-item{transition:transform .35s ease,box-shadow .35s ease,opacity .35s ease}.invite-card.modern:hover,.event-card:hover,.person-card:hover,.gift-card:hover,.map-card:hover,.gallery-item:hover{transform:translateY(-3px);box-shadow:0 22px 50px rgba(15,23,42,.14)}.gallery-item img,.story-photo-wrap img,.hero-side-stack img{transition:transform .5s ease}.gallery-item:hover img,.story-card:hover .story-photo-wrap img,.hero-side-stack img:hover{transform:scale(1.03)}.reveal-on-scroll,.reveal-ready{opacity:0;transform:translateY(28px);transition:opacity .7s ease,transform .7s ease}.reveal-ready{transform:translateY(16px)}.reveal-on-scroll.is-visible,.reveal-ready.is-visible{opacity:1;transform:none}.theme-picker-grid .theme-picker-card{padding:0;overflow:hidden}.theme-picker-card .theme-card-preview{position:relative;min-height:240px;padding:18px;background:linear-gradient(135deg,var(--theme-hero),var(--theme-hero-2));display:flex;align-items:flex-end}.theme-picker-card .theme-card-backdrop{position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(17,24,39,.26))}.theme-picker-card .theme-card-inner{position:relative;z-index:1;color:#fff;display:grid;gap:12px}.theme-picker-card .theme-card-inner h3{margin:0 0 8px;color:#fff;font-size:28px}.theme-picker-card .theme-card-inner p{margin:0;color:rgba(255,255,255,.88)}.theme-picker-body{padding:20px}.theme-style-badge{background:rgba(255,255,255,.18);color:#fff;border:1px solid rgba(255,255,255,.24)}.theme-swatch{display:inline-block;width:24px;height:24px;border-radius:999px;border:2px solid rgba(255,255,255,.8);box-shadow:0 8px 16px rgba(15,23,42,.08)}.theme-gallery-rich-grid{align-items:stretch}.theme-preview-card .theme-showcase-body{display:grid;gap:12px}.theme-swatch-row{display:flex;gap:10px;align-items:center}.theme-swatch-row span{width:28px;height:28px;border-radius:999px;display:inline-block;border:2px solid rgba(255,255,255,.72);box-shadow:0 8px 16px rgba(15,23,42,.08)}.font-luxe-serif h1,.font-luxe-serif h2,.font-luxe-serif h3,.font-luxe-serif .opening-card h1{font-family:Georgia,"Times New Roman",serif}.font-editorial h1,.font-editorial h2,.font-editorial h3,.font-editorial .opening-card h1{font-family:"Arial Black",Impact,Arial,sans-serif;letter-spacing:.01em}.font-romantic h1,.font-romantic h2,.font-romantic h3,.font-romantic .opening-card h1{font-family:Georgia,serif;font-style:italic}.font-classic h1,.font-classic h2,.font-classic h3,.font-classic .opening-card h1{font-family:Palatino,"Palatino Linotype","Book Antiqua",serif}.font-earthy h1,.font-earthy h2,.font-earthy h3,.font-earthy .opening-card h1{font-family:Cambria,Georgia,serif}.font-soft-serif h1,.font-soft-serif h2,.font-soft-serif h3,.font-soft-serif .opening-card h1{font-family:Constantia,Georgia,serif}.font-royal h1,.font-royal h2,.font-royal h3,.font-royal .opening-card h1{font-family:Didot,Georgia,serif;letter-spacing:.03em}.font-clean h1,.font-clean h2,.font-clean h3,.font-clean .opening-card h1{font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif}.public-theme.theme-variant-split .opening-card,.public-theme.theme-variant-editorial .opening-card{margin-left:0}.public-theme.theme-variant-framed .opening-card,.public-theme.theme-variant-royal .opening-card{border-radius:38px;border:1px solid rgba(212,175,55,.32)}.public-theme.theme-variant-minimal .opening-card,.public-theme.theme-variant-formal .opening-card{background:rgba(255,255,255,.94)}.public-theme.theme-variant-editorial .invite-card.modern{max-width:760px;border-radius:34px}.public-theme.theme-variant-royal .invite-card.modern,.public-theme.theme-variant-framed .invite-card.modern{border:1px solid rgba(212,175,55,.24)}.public-theme.theme-variant-minimal .invite-card.modern{box-shadow:0 18px 46px rgba(15,23,42,.10)}.public-theme.theme-variant-tropical .opening-overlay{background:linear-gradient(180deg,rgba(13,47,44,.24),rgba(13,47,44,.72))}.public-theme.theme-variant-celebration .opening-card,.public-theme.theme-variant-party .opening-card{max-width:620px}.public-theme.theme-variant-party .opening-card{background:rgba(255,255,255,.92);border:1px solid rgba(236,72,153,.18)}.public-theme.theme-variant-storybook .opening-card{background:rgba(255,250,245,.9)}.public-theme.theme-variant-serene .opening-card{background:rgba(255,252,247,.92)}.public-theme.theme-variant-formal .opening-card{box-shadow:0 28px 70px rgba(2,6,23,.18)}.cover-fit-note{font-size:13px;color:var(--muted)}@media(max-width:768px){.opening-inner{padding-top:28px;padding-bottom:28px}.opening-card{padding:24px;border-radius:26px}.opening-card h1{font-size:34px}.opening-guest-box strong{font-size:18px}.theme-picker-card .theme-card-preview{min-height:220px}.open-invitation-btn{width:100%}.public-hero{min-height:100svh;background-position:center center!important}}

/* Stage 8B visual + interaction upgrade */
.hero-shell{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:28px;align-items:center}.hero-layout.layout-editorial .invite-card.modern{border-radius:36px 36px 120px 36px}.hero-layout.layout-split .invite-card.modern{max-width:720px}.hero-layout.layout-framed .invite-card.modern{border:1px solid rgba(212,175,55,.28)}.hero-layout.layout-storybook .invite-card.modern{background:rgba(255,247,241,.9)}.hero-layout.layout-minimal .invite-card.modern{background:rgba(255,255,255,.96)}.hero-layout.layout-royal .invite-card.modern{background:linear-gradient(180deg,rgba(255,248,241,.96),rgba(255,255,255,.9));border:1px solid rgba(212,175,55,.3)}.hero-layout.layout-tropical .invite-card.modern{background:rgba(255,255,255,.9);border:1px solid rgba(239,124,90,.24)}.hero-actions .btn,.opening-actions .btn{min-height:46px}.hero-side-visual{position:relative}.hero-side-stack{display:grid;gap:18px}.hero-side-stack.count-2{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-side-card{margin:0;background:rgba(255,255,255,.92);backdrop-filter:blur(6px);padding:12px;border-radius:28px;border:1px solid rgba(255,255,255,.5);box-shadow:0 22px 60px rgba(15,23,42,.16)}.hero-side-card:nth-child(2){transform:translateY(32px)}.hero-side-card img{width:100%;height:320px;object-fit:cover;border-radius:20px}.hero-side-card figcaption{display:grid;gap:4px;padding:12px 6px 2px}.hero-side-card figcaption strong{font-size:18px}.hero-side-card figcaption span{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}.hero-side-fallback{height:320px;border-radius:20px;display:grid;place-items:center;background:linear-gradient(135deg,#ede9fe,#fef2f2);font-weight:700;color:#7c3aed}.scroll-indicator{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);z-index:3;border:0;background:rgba(255,255,255,.16);backdrop-filter:blur(10px);color:#fff;width:54px;height:54px;border-radius:999px;display:grid;place-items:center;box-shadow:0 14px 28px rgba(0,0,0,.16);cursor:pointer}.scroll-indicator span{font-size:30px;line-height:1;transform:translateY(-1px)}.countdown-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;max-width:860px;margin:0 auto}.countdown-item{background:#fff;border:1px solid var(--theme-border);border-radius:26px;padding:26px 18px;box-shadow:0 20px 48px rgba(15,23,42,.08)}.countdown-item strong{display:block;font-size:42px;line-height:1;margin-bottom:8px}.countdown-item span{text-transform:uppercase;letter-spacing:.14em;font-size:12px;color:var(--muted)}.quote-card{padding:38px;border-radius:30px;background:#fff;border:1px solid var(--theme-border);box-shadow:0 18px 50px rgba(15,23,42,.08)}.quote-text{font-size:22px;line-height:1.8}.quote-source{color:var(--muted);font-style:italic}.story-timeline{display:grid;gap:18px;max-width:900px;margin:0 auto}.story-item{position:relative;padding-left:26px}.story-dot{position:absolute;left:0;top:22px;width:12px;height:12px;border-radius:999px;background:var(--theme-accent);box-shadow:0 0 0 8px rgba(124,58,237,.08)}.story-card{background:#fff;border:1px solid var(--theme-border);border-radius:28px;padding:18px;box-shadow:0 18px 48px rgba(15,23,42,.08)}.story-grid{display:grid;grid-template-columns:240px 1fr;gap:18px;align-items:center}.story-photo-wrap img{width:100%;height:220px;object-fit:cover;border-radius:20px}.map-card,.gift-card{display:block;background:#fff;border:1px solid var(--theme-border);border-radius:28px;padding:24px;box-shadow:0 16px 40px rgba(15,23,42,.06);color:inherit}.event-action-row{justify-content:flex-start}.gallery-grid-rich{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.gallery-lightbox-trigger{border:0;padding:0;background:transparent;cursor:pointer}.gallery-lightbox{position:fixed;inset:0;z-index:80;background:rgba(3,7,18,.92);display:flex;align-items:center;justify-content:center;padding:22px}.gallery-lightbox[hidden]{display:none}.lightbox-stage{max-width:min(90vw,1100px);max-height:78vh;overflow:auto;border-radius:24px;touch-action:pan-y}.lightbox-stage img{max-width:100%;max-height:78vh;object-fit:contain;border-radius:24px;transform-origin:center center;transition:transform .18s ease;user-select:none;-webkit-user-drag:none}.lightbox-close,.lightbox-nav{position:absolute;border:0;color:#fff;background:rgba(255,255,255,.12);backdrop-filter:blur(8px);width:54px;height:54px;border-radius:999px;display:grid;place-items:center;font-size:34px;cursor:pointer}.lightbox-close{top:20px;right:20px}.lightbox-nav.prev{left:18px;top:50%;transform:translateY(-50%)}.lightbox-nav.next{right:18px;top:50%;transform:translateY(-50%)}.lightbox-toolbar{position:absolute;left:50%;bottom:24px;transform:translateX(-50%);display:flex;gap:10px;align-items:center}.video-feature-card{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(0,1.15fr);gap:24px;align-items:stretch;background:#fff;border:1px solid var(--theme-border);border-radius:30px;padding:22px;box-shadow:0 18px 50px rgba(15,23,42,.08)}.video-feature-copy{display:grid;align-content:center;gap:12px}.video-feature-frame{border-radius:26px;overflow:hidden;background:#0f172a;min-height:320px;display:grid;place-items:center}.video-feature-frame iframe{width:100%;height:100%;min-height:320px;border:0}.video-fallback{padding:24px;text-align:center;color:#fff}.video-fallback-icon{font-size:64px;line-height:1;margin-bottom:16px}.gift-number{font-size:26px;font-weight:800;letter-spacing:.04em;margin:12px 0}.footer-couple-name{font-size:38px;margin-top:28px}.floating-section-nav{position:fixed;left:0;right:0;bottom:16px;z-index:55;display:flex;justify-content:center;pointer-events:none}.floating-nav-shell{display:flex;gap:10px;align-items:center;justify-content:flex-start;padding:12px 16px;border-radius:999px;background:rgba(255,255,255,.88);backdrop-filter:blur(14px);box-shadow:0 24px 50px rgba(15,23,42,.18);pointer-events:auto;border:1px solid rgba(255,255,255,.65);max-width:min(94vw,760px);overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;-ms-overflow-style:none;scrollbar-width:none}.floating-nav-shell::-webkit-scrollbar{display:none}.floating-nav-btn{flex:0 0 auto;width:58px;height:58px;border-radius:999px;border:0;background:transparent;display:grid;place-items:center;color:#111827;cursor:pointer;font-size:30px;line-height:1;transition:transform .25s ease,background .25s ease,color .25s ease,box-shadow .25s ease;pointer-events:auto;scroll-snap-align:center}.floating-nav-btn span{display:block;line-height:1;transform:translateY(-1px)}.floating-nav-btn:hover,.floating-nav-btn.is-active{background:var(--theme-accent);color:#fff;transform:translateY(-2px);box-shadow:0 14px 24px rgba(15,23,42,.16)}.floating-nav-btn.auto-scroll-toggle.is-active{background:#2563eb;color:#fff}.auto-scroll-pill{position:absolute;bottom:86px;right:18px;padding:10px 14px;border-radius:999px;background:#2563eb;color:#fff;font-weight:700;box-shadow:0 14px 30px rgba(37,99,235,.3)}.floating-music-btn{position:fixed;right:18px;bottom:96px;z-index:56;width:58px;height:58px;border-radius:999px;border:0;background:rgba(255,255,255,.9);backdrop-filter:blur(12px);box-shadow:0 18px 36px rgba(15,23,42,.18);display:grid;place-items:center;font-size:28px;color:#111827;cursor:pointer;transition:transform .25s ease,background .25s ease,color .25s ease}.floating-music-btn.is-active{background:var(--theme-accent);color:#fff}.floating-music-btn[hidden]{display:none!important}body.lightbox-open{overflow:hidden}.public-theme.wedding-modern-elegance .public-hero{background-blend-mode:multiply}.public-theme.wedding-modern-elegance .invite-card.modern,.public-theme.wedding-modern-elegance .opening-card{background:rgba(255,255,255,.86)}.public-theme.wedding-luxury-burgundy{--theme-bg:#f9f1f4;--theme-card:#fffafc;--theme-border:#edd6de;--theme-accent:#8c1d40;--theme-accent-2:#65122d;--theme-hero:#2e0917;--theme-hero-2:#8c1d40}.public-theme.wedding-luxury-burgundy .invite-card.modern,.public-theme.wedding-luxury-burgundy .opening-card{background:linear-gradient(180deg,rgba(255,248,250,.9),rgba(255,255,255,.88))}.public-theme.wedding-luxury-burgundy .hero-side-card:nth-child(1){transform:translateY(-12px)}.public-theme.wedding-botanical-sage{--theme-bg:#f3f6f1;--theme-card:#fcfefb;--theme-border:#d8e5d7;--theme-accent:#5f7f66;--theme-accent-2:#45614b;--theme-hero:#3c5b45;--theme-hero-2:#7a9c7c}.public-theme.wedding-botanical-sage .opening-card,.public-theme.wedding-botanical-sage .invite-card.modern{border-radius:38px}.public-theme.wedding-botanical-sage .person-card,.public-theme.wedding-botanical-sage .story-card{border-radius:32px}.public-theme.wedding-dark-editorial{--theme-bg:#111316;--theme-card:#1a1d22;--theme-soft:#0f1115;--theme-text:#f5eee8;--theme-border:#2d323a;--theme-accent:#d9b07d;--theme-accent-2:#b9874f;--theme-hero:#060708;--theme-hero-2:#1f2329}.public-theme.wedding-dark-editorial .invite-card.modern,.public-theme.wedding-dark-editorial .opening-card,.public-theme.wedding-dark-editorial .person-card,.public-theme.wedding-dark-editorial .event-card,.public-theme.wedding-dark-editorial .quote-card,.public-theme.wedding-dark-editorial .story-card,.public-theme.wedding-dark-editorial .gift-card,.public-theme.wedding-dark-editorial .map-card,.public-theme.wedding-dark-editorial .video-feature-card{background:#16191e;color:#f5eee8}.public-theme.wedding-dark-editorial .muted,.public-theme.wedding-dark-editorial .eyebrow,.public-theme.wedding-dark-editorial .quote-source,.public-theme.wedding-dark-editorial .stat-mini span{color:#d4c7bc}.public-theme.wedding-dark-editorial .stat-mini,.public-theme.wedding-dark-editorial .countdown-item{background:#1b1f25;border-color:#2d323a}.public-theme.wedding-dark-editorial .floating-nav-shell{background:rgba(22,25,30,.9);border-color:#2d323a}.public-theme.wedding-dark-editorial .floating-nav-btn{color:#f5eee8}.public-theme.wedding-dark-editorial .btn.ghost{background:transparent;border-color:#d9b07d;color:#d9b07d}.public-theme.wedding-dark-editorial .gallery-lightbox-trigger{background:#111316}.public-theme.wedding-dark-editorial .opening-overlay{background:linear-gradient(180deg,rgba(0,0,0,.32),rgba(0,0,0,.8))}.public-theme.wedding-dark-editorial .hero-side-card{background:rgba(20,23,27,.88);border-color:#2d323a}@media(max-width:920px){.hero-shell,.video-feature-card,.story-grid{grid-template-columns:1fr}.hero-side-card:nth-child(2){transform:none}.hero-side-card img,.hero-side-fallback{height:250px}.countdown-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.floating-nav-shell{max-width:calc(100vw - 18px);padding:10px 12px}.floating-nav-btn{width:54px;height:54px;font-size:26px}.floating-music-btn{right:12px;bottom:86px;width:54px;height:54px;font-size:26px}.auto-scroll-pill{right:10px;bottom:72px}.video-feature-frame iframe,.video-feature-frame{min-height:240px}}@media(max-width:768px){.hero-shell{gap:18px}.opening-card,.invite-card.modern{padding:22px}.quote-card{padding:24px}.story-item{padding-left:18px}.story-grid{gap:14px}.story-photo-wrap img{height:180px}.gallery-grid-rich{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-couple-name{font-size:30px}.lightbox-nav.prev{left:10px}.lightbox-nav.next{right:10px}.lightbox-close{right:12px;top:12px}.countdown-item strong{font-size:34px}.floating-section-nav{bottom:10px}.auto-scroll-pill{font-size:12px;padding:8px 12px}.floating-music-btn{bottom:78px}} 

.guest-box-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.guest-code-badge{display:inline-flex;align-items:center;justify-content:center;min-width:54px;padding:6px 12px;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;background:#111827;color:#fff;box-shadow:0 10px 20px rgba(15,23,42,.16)}.guest-code-badge.inline{margin-left:10px;vertical-align:middle}.guest-code-badge.code-vip{background:linear-gradient(135deg,#7c3aed,#6d28d9)}.guest-code-badge.code-vvip{background:linear-gradient(135deg,#f59e0b,#d97706)}.gift-group-head{display:grid;gap:8px;margin-bottom:16px}.gift-group-head h3{margin:0;font-size:30px}.gift-group-grid + .gift-group-head{margin-top:34px}.gift-card-cashless{border-style:solid}.gift-card-physical{background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(249,250,251,.95))}.gift-address-block{white-space:pre-line;line-height:1.8}.js-public-copy.is-active{background:var(--theme-accent)!important;color:#fff!important;border-color:var(--theme-accent)!important}
@media(max-width:768px){.guest-box-row{gap:8px}.guest-code-badge{min-width:48px;padding:6px 10px}.gift-group-head h3{font-size:24px}}

/* Stage 8C - richer theme variants */
.theme-font-clean,.theme-font-minimal{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.theme-font-luxe-serif,.theme-font-classic,.theme-font-modern-serif,.theme-font-soft-serif,.theme-font-earthy{font-family:Georgia,"Times New Roman",serif}
.theme-font-editorial{font-family:"Playfair Display",Georgia,serif;letter-spacing:.01em}
.theme-font-romantic{font-family:"Cormorant Garamond",Georgia,serif}
.theme-font-royal{font-family:"Baskerville Old Face",Georgia,serif;letter-spacing:.02em}
.theme-font-minimal .invite-card.modern h1,.theme-font-clean .invite-card.modern h1{letter-spacing:-.03em}
.theme-font-romantic h1,.theme-font-romantic h2,.theme-font-romantic h3{font-weight:600}
.theme-font-royal h1,.theme-font-royal h2{letter-spacing:.04em;text-transform:none}
.theme-color-ivory-gold.public-theme.wedding-modern-elegance{--theme-bg:#fffaf4;--theme-soft:#fffdfb;--theme-border:#efe1c6;--theme-accent:#c79a2b;--theme-accent-2:#a67d1f;--theme-hero:#624721;--theme-hero-2:#dbc17d}
.theme-color-dusty-blue.public-theme.wedding-modern-elegance{--theme-bg:#f6f8fc;--theme-soft:#ffffff;--theme-border:#dbe4f0;--theme-accent:#5d7190;--theme-accent-2:#465873;--theme-hero:#24364d;--theme-hero-2:#88a0c7}
.theme-color-midnight-champagne.public-theme.wedding-modern-elegance{--theme-bg:#12151d;--theme-soft:#171d29;--theme-card:#1c2230;--theme-text:#f4eee6;--theme-border:#333b4a;--theme-accent:#d8ba79;--theme-accent-2:#b8924f;--theme-hero:#090c12;--theme-hero-2:#273346;--theme-overlay-1:rgba(0,0,0,.38);--theme-overlay-2:rgba(0,0,0,.78)}
.theme-color-burgundy-rose.public-theme.wedding-luxury-burgundy{--theme-bg:#fbf3f6;--theme-soft:#fff9fb;--theme-border:#f0d4df;--theme-accent:#8c1d40;--theme-accent-2:#65122d;--theme-hero:#2e0917;--theme-hero-2:#8c1d40}
.theme-color-wine-gold.public-theme.wedding-luxury-burgundy{--theme-bg:#f9f2f0;--theme-soft:#fff9f7;--theme-border:#ead8cf;--theme-accent:#9a4d2d;--theme-accent-2:#6d331d;--theme-hero:#341210;--theme-hero-2:#8a5d3b}
.theme-color-plum-mauve.public-theme.wedding-luxury-burgundy{--theme-bg:#faf4fa;--theme-soft:#fffaff;--theme-border:#ecdff0;--theme-accent:#7d4b7d;--theme-accent-2:#5c355c;--theme-hero:#2f2033;--theme-hero-2:#8e6b95}
.theme-color-sage-cream.public-theme.wedding-botanical-sage{--theme-bg:#f3f6f1;--theme-soft:#fbfdf9;--theme-border:#d8e5d7;--theme-accent:#5f7f66;--theme-accent-2:#45614b;--theme-hero:#3c5b45;--theme-hero-2:#7a9c7c}
.theme-color-olive-gold.public-theme.wedding-botanical-sage{--theme-bg:#f7f6ee;--theme-soft:#fffdf7;--theme-border:#e5dfc8;--theme-accent:#7a7746;--theme-accent-2:#5c5a32;--theme-hero:#40452c;--theme-hero-2:#a9a56a}
.theme-color-mist-green.public-theme.wedding-botanical-sage{--theme-bg:#f5faf8;--theme-soft:#ffffff;--theme-border:#d7e9e2;--theme-accent:#4f7c72;--theme-accent-2:#355b52;--theme-hero:#244a44;--theme-hero-2:#80b6a9}
.theme-color-white-gold.public-theme.wedding-classic-white-gold{--theme-bg:#fffdf8;--theme-soft:#fffaf0;--theme-border:#efe3c4;--theme-accent:#c39b3c;--theme-accent-2:#9e7d2f;--theme-hero:#5a4720;--theme-hero-2:#d6ba6a}
.theme-color-champagne-ivory.public-theme.wedding-classic-white-gold{--theme-bg:#fffaf7;--theme-soft:#fffefb;--theme-border:#f1e0d3;--theme-accent:#bb8f59;--theme-accent-2:#926d43;--theme-hero:#6b4e37;--theme-hero-2:#dfc3a5}
.theme-color-pearl-gold.public-theme.wedding-classic-white-gold{--theme-bg:#f8f8fb;--theme-soft:#ffffff;--theme-border:#e5e6ef;--theme-accent:#b1984d;--theme-accent-2:#8a763b;--theme-hero:#3b4152;--theme-hero-2:#c8c3a1}
.theme-color-obsidian-gold.public-theme.wedding-dark-editorial{--theme-bg:#111316;--theme-card:#1a1d22;--theme-soft:#0f1115;--theme-text:#f5eee8;--theme-border:#2d323a;--theme-accent:#d9b07d;--theme-accent-2:#b9874f;--theme-hero:#060708;--theme-hero-2:#1f2329}
.theme-color-charcoal-ivory.public-theme.wedding-dark-editorial{--theme-bg:#17181b;--theme-card:#202126;--theme-soft:#131417;--theme-text:#f5f2ec;--theme-border:#353740;--theme-accent:#e8ded0;--theme-accent-2:#c7b9a6;--theme-hero:#0b0c0e;--theme-hero-2:#2e3138}
.theme-color-ink-bronze.public-theme.wedding-dark-editorial{--theme-bg:#141416;--theme-card:#1d1d20;--theme-soft:#101013;--theme-text:#f6ece3;--theme-border:#343238;--theme-accent:#b88858;--theme-accent-2:#8e6640;--theme-hero:#080709;--theme-hero-2:#33281f}
.theme-color-terracotta-sand.public-theme.wedding-rustic-earth-tone{--theme-bg:#fbf7f2;--theme-soft:#f4ede4;--theme-border:#e8d9c8;--theme-accent:#9c6b3f;--theme-accent-2:#7d5431;--theme-hero:#5a4030;--theme-hero-2:#c49a6c}
.theme-color-cinnamon-cream.public-theme.wedding-rustic-earth-tone{--theme-bg:#fbf5f1;--theme-soft:#fffaf6;--theme-border:#efd9cf;--theme-accent:#a55a3c;--theme-accent-2:#82432a;--theme-hero:#603629;--theme-hero-2:#d4a287}
.theme-color-earth-olive.public-theme.wedding-rustic-earth-tone{--theme-bg:#f7f4ed;--theme-soft:#fbfaf6;--theme-border:#e4dfd2;--theme-accent:#7b7a4a;--theme-accent-2:#5d5c39;--theme-hero:#4b4d36;--theme-hero-2:#a7ab74}
.theme-color-beige-sand.public-theme.wedding-soft-beige-islami{--theme-bg:#fdfaf5;--theme-soft:#f8f1e7;--theme-border:#eadfcf;--theme-accent:#9a7b4f;--theme-accent-2:#7d633f;--theme-hero:#7b674d;--theme-hero-2:#c7b191}
.theme-color-taupe-gold.public-theme.wedding-soft-beige-islami{--theme-bg:#faf7f3;--theme-soft:#fffdf9;--theme-border:#e6ddd4;--theme-accent:#9b8464;--theme-accent-2:#7a684f;--theme-hero:#5d5447;--theme-hero-2:#c3af97}
.theme-color-mocha-cream.public-theme.wedding-soft-beige-islami{--theme-bg:#f8f2ed;--theme-soft:#fffaf7;--theme-border:#eadccf;--theme-accent:#8b6551;--theme-accent-2:#6f4f40;--theme-hero:#59443a;--theme-hero-2:#bf9a82}
.theme-color-royal-maroon.public-theme.wedding-javanese-royal{--theme-bg:#fff9f2;--theme-soft:#f7efe3;--theme-border:#e6d4ba;--theme-accent:#a05a1a;--theme-accent-2:#7f4714;--theme-hero:#402112;--theme-hero-2:#b56a24}
.theme-color-royal-navy.public-theme.wedding-javanese-royal{--theme-bg:#f5f7fb;--theme-soft:#fbfcff;--theme-border:#dbe3ef;--theme-accent:#234a85;--theme-accent-2:#17345f;--theme-hero:#101b33;--theme-hero-2:#325591}
.theme-color-royal-emerald.public-theme.wedding-javanese-royal{--theme-bg:#f4fbf8;--theme-soft:#fbfffd;--theme-border:#d5e9de;--theme-accent:#1f6a52;--theme-accent-2:#154e3d;--theme-hero:#0e2c25;--theme-hero-2:#1f6a52}
.theme-color-snow-gray.public-theme.wedding-korean-clean-minimal{--theme-bg:#fafafa;--theme-soft:#ffffff;--theme-border:#e5e7eb;--theme-accent:#111827;--theme-accent-2:#374151;--theme-hero:#dfe7ef;--theme-hero-2:#ffffff;--theme-overlay-1:rgba(17,24,39,.08);--theme-overlay-2:rgba(17,24,39,.22)}
.theme-color-stone-beige.public-theme.wedding-korean-clean-minimal{--theme-bg:#f8f5f2;--theme-soft:#ffffff;--theme-border:#e8e0d8;--theme-accent:#5c544c;--theme-accent-2:#3d3933;--theme-hero:#e7ddd5;--theme-hero-2:#ffffff;--theme-overlay-1:rgba(17,24,39,.08);--theme-overlay-2:rgba(17,24,39,.2)}
.theme-color-blush-white.public-theme.wedding-korean-clean-minimal{--theme-bg:#fff8fa;--theme-soft:#ffffff;--theme-border:#f0dee5;--theme-accent:#7a5f6f;--theme-accent-2:#5d4655;--theme-hero:#f4dfe8;--theme-hero-2:#ffffff;--theme-overlay-1:rgba(17,24,39,.06);--theme-overlay-2:rgba(17,24,39,.16)}
.theme-color-coral-leaf.public-theme.wedding-tropical-romantic{--theme-bg:#fffaf7;--theme-soft:#fff4ea;--theme-border:#f1dcc3;--theme-accent:#d97706;--theme-accent-2:#b45309;--theme-hero:#4b5d3f;--theme-hero-2:#f59e0b}
.theme-color-sunset-peach.public-theme.wedding-tropical-romantic{--theme-bg:#fff6ef;--theme-soft:#fffdf9;--theme-border:#f0d8ca;--theme-accent:#ea7b5d;--theme-accent-2:#c35c41;--theme-hero:#7f4d43;--theme-hero-2:#f3a27c}
.theme-color-lagoon-sage.public-theme.wedding-tropical-romantic{--theme-bg:#f3fbf8;--theme-soft:#fbfffd;--theme-border:#d7ebe4;--theme-accent:#2f7c6f;--theme-accent-2:#225b52;--theme-hero:#194841;--theme-hero-2:#5fa89a}
.public-theme.wedding-classic-white-gold .opening-card,.public-theme.wedding-classic-white-gold .invite-card.modern{border-radius:36px;border-width:2px;box-shadow:0 18px 55px rgba(104,79,35,.11)}
.public-theme.wedding-classic-white-gold .section-title h2{text-transform:uppercase;letter-spacing:.08em;font-size:34px}
.public-theme.wedding-rustic-earth-tone .opening-card,.public-theme.wedding-rustic-earth-tone .invite-card.modern{border-radius:42px 42px 18px 42px}
.public-theme.wedding-rustic-earth-tone .person-card,.public-theme.wedding-rustic-earth-tone .event-card,.public-theme.wedding-rustic-earth-tone .gift-card{border-radius:30px 30px 14px 30px}
.public-theme.wedding-soft-beige-islami .opening-card,.public-theme.wedding-soft-beige-islami .invite-card.modern{background:linear-gradient(180deg,rgba(255,252,248,.92),rgba(248,241,231,.88));border-radius:38px}
.public-theme.wedding-soft-beige-islami .quote-card{border-radius:32px;position:relative;overflow:hidden}.public-theme.wedding-soft-beige-islami .quote-card:before{content:'';position:absolute;inset:0;background:radial-gradient(circle at top right,rgba(154,123,79,.08),transparent 42%);pointer-events:none}
.public-theme.wedding-javanese-royal .opening-card,.public-theme.wedding-javanese-royal .invite-card.modern{border:2px solid color-mix(in srgb,var(--theme-accent) 30%,white);border-radius:20px;box-shadow:0 18px 60px rgba(64,33,18,.15)}
.public-theme.wedding-javanese-royal .section-title h2{letter-spacing:.1em;text-transform:uppercase}
.public-theme.wedding-javanese-royal .story-card,.public-theme.wedding-javanese-royal .person-card,.public-theme.wedding-javanese-royal .event-card{border-width:2px}
.public-theme.wedding-korean-clean-minimal .opening-card,.public-theme.wedding-korean-clean-minimal .invite-card.modern{box-shadow:none;border-radius:28px;background:rgba(255,255,255,.96)}
.public-theme.wedding-korean-clean-minimal .hero-shell{gap:42px}.public-theme.wedding-korean-clean-minimal .person-card,.public-theme.wedding-korean-clean-minimal .story-card,.public-theme.wedding-korean-clean-minimal .quote-card,.public-theme.wedding-korean-clean-minimal .event-card,.public-theme.wedding-korean-clean-minimal .gift-card{box-shadow:none;border-radius:22px}
.public-theme.wedding-tropical-romantic .opening-card,.public-theme.wedding-tropical-romantic .invite-card.modern{border-radius:44px 18px 44px 18px}
.public-theme.wedding-tropical-romantic .person-card,.public-theme.wedding-tropical-romantic .gift-card,.public-theme.wedding-tropical-romantic .event-card{border-radius:34px 18px 34px 18px}
.public-theme.wedding-tropical-romantic .gallery-item img{border-radius:24px}
.public-theme.khitan-ceria-islami.theme-color-sky-green{--theme-bg:#f2fbff;--theme-soft:#fbfeff;--theme-border:#d5ebf1;--theme-accent:#0f766e;--theme-accent-2:#115e59;--theme-hero:#164e63;--theme-hero-2:#38bdf8}
.public-theme.birthday-fun-luxe.theme-color-purple-fun{--theme-bg:#fbf5ff;--theme-soft:#fffaff;--theme-border:#eadcf7;--theme-accent:#8b5cf6;--theme-accent-2:#6d42d8;--theme-hero:#4c1d95;--theme-hero-2:#c084fc}
.public-theme.event-formal-elegant.theme-color-charcoal-blue{--theme-bg:#f3f6fb;--theme-soft:#ffffff;--theme-border:#d8dfeb;--theme-accent:#34517a;--theme-accent-2:#223a59;--theme-hero:#101927;--theme-hero-2:#48617f}
.theme-picker-card .compact-field{margin:0 0 8px}.theme-picker-card .compact-field label{font-size:12px;color:var(--muted);margin-bottom:4px;display:block}.theme-picker-card .compact-field select{width:100%;padding:10px 12px;border-radius:12px;border:1px solid #e5e7eb;background:#fff}.theme-picker-card .theme-card-preview{min-height:220px}


/* ===== Stage 9A: Deep Layout & Ornament Upgrade ===== */
.invitation-stage-9a{position:relative;overflow:hidden}
.invitation-stage-9a .opening-screen,.invitation-stage-9a .public-hero{overflow:hidden;isolation:isolate}
.invitation-stage-9a .opening-ornament,.invitation-stage-9a .hero-ornament{position:absolute;pointer-events:none;z-index:1;opacity:.85;filter:blur(.2px)}
.invitation-stage-9a .opening-ornament.ornament-a{width:28rem;height:28rem;left:-8rem;top:-6rem;background:radial-gradient(circle at center,rgba(255,255,255,.22),transparent 62%)}
.invitation-stage-9a .opening-ornament.ornament-b{width:22rem;height:22rem;right:-6rem;bottom:-4rem;background:radial-gradient(circle at center,rgba(255,255,255,.18),transparent 64%)}
.invitation-stage-9a .hero-ornament-left{width:34rem;height:34rem;left:-10rem;bottom:-12rem;background:radial-gradient(circle at center,rgba(255,255,255,.12),transparent 64%)}
.invitation-stage-9a .hero-ornament-right{width:28rem;height:28rem;right:-8rem;top:-10rem;background:radial-gradient(circle at center,rgba(255,255,255,.14),transparent 62%)}
.invitation-stage-9a .opening-inner,.invitation-stage-9a .hero-inner{position:relative;z-index:2}
.invitation-stage-9a .opening-card,.invitation-stage-9a .invite-card.modern,.invitation-stage-9a .theme-surface-card{backdrop-filter:blur(8px)}
.invitation-stage-9a .theme-surface-card{position:relative;overflow:hidden}
.invitation-stage-9a .theme-surface-card:before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.08),transparent 35%);pointer-events:none;opacity:.6}
.invitation-stage-9a .section-title{margin-bottom:34px}
.invitation-stage-9a .section-title h2{position:relative;display:inline-block;padding:0 .2rem}
.invitation-stage-9a .section-title h2:after{content:'';display:block;width:62%;height:2px;margin:12px auto 0;background:linear-gradient(90deg,transparent,var(--theme-accent),transparent);border-radius:999px;opacity:.55}
.invitation-stage-9a .hero-shell{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,420px);gap:34px;align-items:center}
.invitation-stage-9a .hero-side-stack{display:grid;gap:16px}
.invitation-stage-9a .hero-side-card{background:rgba(255,255,255,.88);border:1px solid rgba(255,255,255,.26);box-shadow:0 12px 34px rgba(15,23,42,.12)}
.invitation-stage-9a .hero-side-card img{aspect-ratio:4/5;object-fit:cover}
.invitation-stage-9a .event-card,.invitation-stage-9a .map-card,.invitation-stage-9a .gift-card,.invitation-stage-9a .story-card,.invitation-stage-9a .quote-card,.invitation-stage-9a .card,.invitation-stage-9a .person-card,.invitation-stage-9a .video-feature-card{box-shadow:0 18px 40px rgba(15,23,42,.06)}
.invitation-stage-9a .story-card,.invitation-stage-9a .event-card,.invitation-stage-9a .gift-card,.invitation-stage-9a .map-card,.invitation-stage-9a .video-feature-card{border-radius:28px}
.invitation-stage-9a .gallery-grid-rich{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:14px}
.invitation-stage-9a .gallery-item{grid-column:span 4;border-radius:24px;overflow:hidden;position:relative}
.invitation-stage-9a .gallery-item:nth-child(5n+1){grid-column:span 5}
.invitation-stage-9a .gallery-item:nth-child(7n+3){grid-column:span 3}
.invitation-stage-9a .gallery-item img{width:100%;height:100%;min-height:220px;object-fit:cover}
.invitation-stage-9a .story-timeline{gap:26px}
.invitation-stage-9a .story-item{display:grid;grid-template-columns:28px 1fr;gap:18px;align-items:start}
.invitation-stage-9a .story-dot{margin-top:18px}
.invitation-stage-9a .gift-group-head{max-width:780px;margin:0 auto 20px;text-align:center}
.invitation-stage-9a .countdown-grid{max-width:760px;margin-inline:auto}
.public-theme.wedding-modern-elegance.invitation-stage-9a .opening-card{max-width:620px;border-radius:38px;background:linear-gradient(180deg,rgba(255,255,255,.88),rgba(255,255,255,.78));border:1px solid rgba(255,255,255,.38);box-shadow:0 24px 70px rgba(43,35,52,.14)}
.public-theme.wedding-modern-elegance.invitation-stage-9a .hero-shell{grid-template-columns:minmax(0,1.05fr) minmax(260px,.72fr);gap:42px}
.public-theme.wedding-modern-elegance.invitation-stage-9a .invite-card.modern{border-radius:40px;padding:46px 42px}
.public-theme.wedding-modern-elegance.invitation-stage-9a .hero-side-card{border-radius:30px;background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(250,245,255,.88))}
.public-theme.wedding-modern-elegance.invitation-stage-9a .person-card,.public-theme.wedding-modern-elegance.invitation-stage-9a .event-card,.public-theme.wedding-modern-elegance.invitation-stage-9a .gift-card{border-radius:30px}
.public-theme.wedding-modern-elegance.invitation-stage-9a .quote-card{border-radius:38px;padding:42px 40px;background:linear-gradient(135deg,rgba(255,255,255,.95),rgba(248,245,255,.94))}
.public-theme.wedding-modern-elegance.invitation-stage-9a .quote-card:after{content:'';position:absolute;right:24px;top:18px;width:90px;height:90px;border:1px solid rgba(124,58,237,.16);border-radius:50%}
.public-theme.wedding-luxury-burgundy.invitation-stage-9a .opening-screen{background-position:center top}
.public-theme.wedding-luxury-burgundy.invitation-stage-9a .opening-card{margin-left:auto;max-width:560px;border-radius:18px;background:linear-gradient(180deg,rgba(57,11,28,.78),rgba(114,28,54,.62));border:1px solid rgba(255,255,255,.14);color:#fff;box-shadow:0 26px 80px rgba(44,8,21,.34)}
.public-theme.wedding-luxury-burgundy.invitation-stage-9a .opening-card .muted,.public-theme.wedding-luxury-burgundy.invitation-stage-9a .opening-card .eyebrow,.public-theme.wedding-luxury-burgundy.invitation-stage-9a .opening-card h1,.public-theme.wedding-luxury-burgundy.invitation-stage-9a .opening-card p,.public-theme.wedding-luxury-burgundy.invitation-stage-9a .opening-card strong{color:#fff}
.public-theme.wedding-luxury-burgundy.invitation-stage-9a .hero-shell{grid-template-columns:minmax(260px,.72fr) minmax(0,1.08fr);align-items:end}
.public-theme.wedding-luxury-burgundy.invitation-stage-9a .hero-side-visual{order:1}
.public-theme.wedding-luxury-burgundy.invitation-stage-9a .invite-card.modern{order:2;max-width:none;border-radius:18px;padding:52px 48px;background:linear-gradient(180deg,rgba(255,249,251,.92),rgba(255,243,246,.9));position:relative}
.public-theme.wedding-luxury-burgundy.invitation-stage-9a .invite-card.modern:before{content:'EDITORIAL WEDDING';position:absolute;left:-56px;top:64px;transform:rotate(-90deg);transform-origin:left top;letter-spacing:.22em;font-size:12px;color:rgba(140,29,64,.72)}
.public-theme.wedding-luxury-burgundy.invitation-stage-9a .hero-side-stack{gap:14px}
.public-theme.wedding-luxury-burgundy.invitation-stage-9a .hero-side-card{border-radius:16px;background:rgba(255,244,247,.86)}
.public-theme.wedding-luxury-burgundy.invitation-stage-9a .event-card,.public-theme.wedding-luxury-burgundy.invitation-stage-9a .gift-card,.public-theme.wedding-luxury-burgundy.invitation-stage-9a .story-card{border-radius:18px}
.public-theme.wedding-luxury-burgundy.invitation-stage-9a .section-title{text-align:left;max-width:unset}
.public-theme.wedding-luxury-burgundy.invitation-stage-9a .section-title h2:after{margin-left:0;background:linear-gradient(90deg,var(--theme-accent),transparent)}
.public-theme.wedding-botanical-sage.invitation-stage-9a .opening-card{max-width:600px;border-radius:42px;background:linear-gradient(180deg,rgba(255,255,255,.84),rgba(240,247,240,.82));box-shadow:0 22px 70px rgba(36,65,54,.14)}
.public-theme.wedding-botanical-sage.invitation-stage-9a .opening-ornament.ornament-a,.public-theme.wedding-botanical-sage.invitation-stage-9a .hero-ornament-left{background:radial-gradient(circle at center,rgba(123,154,122,.18),transparent 62%)}
.public-theme.wedding-botanical-sage.invitation-stage-9a .opening-ornament.ornament-b,.public-theme.wedding-botanical-sage.invitation-stage-9a .hero-ornament-right{background:radial-gradient(circle at center,rgba(141,181,150,.18),transparent 64%)}
.public-theme.wedding-botanical-sage.invitation-stage-9a .hero-shell{grid-template-columns:minmax(0,1fr) minmax(260px,.78fr);gap:38px}
.public-theme.wedding-botanical-sage.invitation-stage-9a .invite-card.modern{border-radius:44px;padding:44px;background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(246,251,246,.88))}
.public-theme.wedding-botanical-sage.invitation-stage-9a .invite-card.modern:after{content:'';position:absolute;inset:auto 18px 18px auto;width:110px;height:110px;border-radius:999px;border:1px solid rgba(95,127,102,.16)}
.public-theme.wedding-botanical-sage.invitation-stage-9a .hero-side-card{border-radius:140px 140px 24px 24px;background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(243,248,243,.88));overflow:hidden}
.public-theme.wedding-botanical-sage.invitation-stage-9a .hero-side-card img{aspect-ratio:3/4}
.public-theme.wedding-botanical-sage.invitation-stage-9a .person-card{border-radius:140px 140px 26px 26px}
.public-theme.wedding-botanical-sage.invitation-stage-9a .person-photo-wrap{padding:14px 14px 0}
.public-theme.wedding-botanical-sage.invitation-stage-9a .person-photo{border-radius:130px 130px 24px 24px}
.public-theme.wedding-botanical-sage.invitation-stage-9a .story-card{border-radius:30px 30px 16px 30px}
.public-theme.wedding-botanical-sage.invitation-stage-9a .gallery-item{border-radius:28px 28px 14px 28px}
.public-theme.wedding-botanical-sage.invitation-stage-9a .public-section:nth-of-type(odd){position:relative}
.public-theme.wedding-botanical-sage.invitation-stage-9a .public-section:nth-of-type(odd):before{content:'';position:absolute;right:4%;top:26px;width:120px;height:120px;background:radial-gradient(circle,rgba(123,154,122,.08),transparent 65%);pointer-events:none}
.public-theme.wedding-dark-editorial.invitation-stage-9a .opening-card{max-width:620px;background:linear-gradient(180deg,rgba(8,8,10,.68),rgba(20,21,24,.76));border:1px solid rgba(255,255,255,.12);border-radius:14px;box-shadow:0 30px 90px rgba(0,0,0,.46)}
.public-theme.wedding-dark-editorial.invitation-stage-9a .opening-card h1,.public-theme.wedding-dark-editorial.invitation-stage-9a .opening-card p,.public-theme.wedding-dark-editorial.invitation-stage-9a .opening-card strong,.public-theme.wedding-dark-editorial.invitation-stage-9a .opening-card span,.public-theme.wedding-dark-editorial.invitation-stage-9a .opening-card .eyebrow{color:#fff}
.public-theme.wedding-dark-editorial.invitation-stage-9a .hero-shell{grid-template-columns:minmax(0,1.1fr) minmax(240px,.72fr);gap:48px;align-items:end}
.public-theme.wedding-dark-editorial.invitation-stage-9a .invite-card.modern{max-width:none;padding:52px;border-radius:12px;background:linear-gradient(180deg,rgba(11,12,15,.72),rgba(20,21,25,.54));border:1px solid rgba(255,255,255,.08)}
.public-theme.wedding-dark-editorial.invitation-stage-9a .invite-card.modern h1{font-size:clamp(3.2rem,7vw,5.6rem);line-height:.95;letter-spacing:-.04em;text-transform:uppercase}
.public-theme.wedding-dark-editorial.invitation-stage-9a .hero-side-card{border-radius:12px;background:rgba(20,22,26,.84);border-color:rgba(255,255,255,.08)}
.public-theme.wedding-dark-editorial.invitation-stage-9a .public-section .container{max-width:1220px}
.public-theme.wedding-dark-editorial.invitation-stage-9a .public-section:nth-of-type(even) .section-title{text-align:left;max-width:unset}
.public-theme.wedding-dark-editorial.invitation-stage-9a .public-section:nth-of-type(even) .section-title h2:after{margin-left:0;background:linear-gradient(90deg,var(--theme-accent),transparent)}
.public-theme.wedding-dark-editorial.invitation-stage-9a .quote-card,.public-theme.wedding-dark-editorial.invitation-stage-9a .event-card,.public-theme.wedding-dark-editorial.invitation-stage-9a .gift-card,.public-theme.wedding-dark-editorial.invitation-stage-9a .map-card,.public-theme.wedding-dark-editorial.invitation-stage-9a .story-card,.public-theme.wedding-dark-editorial.invitation-stage-9a .card{background:linear-gradient(180deg,rgba(22,24,28,.94),rgba(17,19,22,.88));border-radius:12px;box-shadow:0 26px 60px rgba(0,0,0,.28)}
.public-theme.wedding-dark-editorial.invitation-stage-9a .gallery-grid-rich{grid-auto-rows:180px}
.public-theme.wedding-dark-editorial.invitation-stage-9a .gallery-item:nth-child(4n+1){grid-column:span 7;grid-row:span 2}
.public-theme.wedding-dark-editorial.invitation-stage-9a .gallery-item:nth-child(4n+2){grid-column:span 5}
.public-theme.wedding-dark-editorial.invitation-stage-9a .gallery-item:nth-child(4n+3){grid-column:span 5}
.public-theme.wedding-dark-editorial.invitation-stage-9a .gallery-item:nth-child(4n+4){grid-column:span 7}
.invitation-stage-9a .public-section.soft{background:linear-gradient(180deg,var(--theme-soft),color-mix(in srgb,var(--theme-soft) 82%,white))}
.public-theme.wedding-javanese-royal.invitation-stage-9a .public-section:before{content:'';position:absolute;inset:0;border-top:1px solid rgba(160,90,26,.08);pointer-events:none}
.public-theme.wedding-rustic-earth-tone.invitation-stage-9a .gallery-item,.public-theme.wedding-tropical-romantic.invitation-stage-9a .gallery-item{transform:rotate(var(--tilt,0deg))}
.public-theme.wedding-rustic-earth-tone.invitation-stage-9a .gallery-item:nth-child(odd){--tilt:-.6deg}
.public-theme.wedding-rustic-earth-tone.invitation-stage-9a .gallery-item:nth-child(even){--tilt:.5deg}
.public-theme.wedding-korean-clean-minimal.invitation-stage-9a .hero-shell,.public-theme.event-formal-elegant.invitation-stage-9a .hero-shell{gap:24px}
.public-theme.wedding-korean-clean-minimal.invitation-stage-9a .theme-surface-card{box-shadow:none}
.public-theme.khitan-ceria-islami.invitation-stage-9a .opening-card,.public-theme.birthday-fun-luxe.invitation-stage-9a .opening-card,.public-theme.event-formal-elegant.invitation-stage-9a .opening-card{max-width:560px}
.theme-picker-card{overflow:hidden}
.theme-picker-card .theme-card-preview{position:relative;min-height:220px;display:flex;align-items:end;padding:18px;overflow:hidden}
.theme-picker-card .theme-card-preview:before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 10%,rgba(15,23,42,.26));pointer-events:none}
.theme-picker-card .theme-card-backdrop{position:absolute;inset:0;background:linear-gradient(135deg,var(--theme-hero),var(--theme-hero-2));opacity:1}
.theme-picker-card .theme-card-backdrop:after{content:'';position:absolute;inset:auto -10% -25% auto;width:160px;height:160px;border-radius:999px;background:radial-gradient(circle,rgba(255,255,255,.18),transparent 65%)}
.theme-picker-card .theme-card-inner{position:relative;z-index:1;display:flex;flex-direction:column;gap:12px;width:100%}
.theme-picker-card .theme-card-inner h3,.theme-picker-card .theme-card-inner p,.theme-picker-card .theme-card-inner .eyebrow{color:#fff}
.theme-picker-card .theme-picker-body{display:flex;flex-direction:column;gap:12px}
.theme-picker-card .chip{background:color-mix(in srgb,var(--theme-accent) 10%,white);border:1px solid color-mix(in srgb,var(--theme-accent) 18%,white)}
@media (max-width: 1024px){
  .invitation-stage-9a .hero-shell,
  .public-theme.wedding-luxury-burgundy.invitation-stage-9a .hero-shell,
  .public-theme.wedding-modern-elegance.invitation-stage-9a .hero-shell,
  .public-theme.wedding-botanical-sage.invitation-stage-9a .hero-shell,
  .public-theme.wedding-dark-editorial.invitation-stage-9a .hero-shell{grid-template-columns:1fr;gap:24px}
  .public-theme.wedding-luxury-burgundy.invitation-stage-9a .invite-card.modern:before{display:none}
  .invitation-stage-9a .gallery-grid-rich{grid-template-columns:repeat(6,minmax(0,1fr))}
  .invitation-stage-9a .gallery-item{grid-column:span 3}
}
@media (max-width: 720px){
  .invitation-stage-9a .opening-card,.invitation-stage-9a .invite-card.modern{padding:28px 22px}
  .invitation-stage-9a .gallery-grid-rich{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .invitation-stage-9a .gallery-item,.invitation-stage-9a .gallery-item:nth-child(5n+1),.invitation-stage-9a .gallery-item:nth-child(7n+3),.public-theme.wedding-dark-editorial.invitation-stage-9a .gallery-item:nth-child(4n+1),.public-theme.wedding-dark-editorial.invitation-stage-9a .gallery-item:nth-child(4n+2),.public-theme.wedding-dark-editorial.invitation-stage-9a .gallery-item:nth-child(4n+3),.public-theme.wedding-dark-editorial.invitation-stage-9a .gallery-item:nth-child(4n+4){grid-column:span 1;grid-row:auto}
  .invitation-stage-9a .gallery-item img{min-height:160px}
  .invitation-stage-9a .story-item{grid-template-columns:20px 1fr;gap:12px}
  .invitation-stage-9a .hero-ornament-left,.invitation-stage-9a .hero-ornament-right,.invitation-stage-9a .opening-ornament{display:none}
}

/* Stage 9A patch: story section clipping fix */
.story-section,
.story-section .container,
.story-timeline,
.story-item,
.story-card,
.story-grid{min-width:0}
.story-timeline{display:grid;gap:26px}
.story-item{width:100%}
.story-card{height:auto;overflow:visible}
.story-card.theme-surface-card{overflow:visible}
.story-grid{align-items:start}
.story-grid > div{min-width:0}
.story-card h3,
.story-card p{overflow-wrap:anywhere;word-break:break-word}
.story-card p{margin-bottom:0}
.story-photo-wrap{overflow:hidden;border-radius:18px}
.story-photo-wrap img{display:block;width:100%;max-width:100%;height:auto;min-height:220px;object-fit:cover}
.invitation-stage-9a .story-timeline{display:grid;gap:26px}
.invitation-stage-9a .story-item{position:relative;width:100%;min-width:0;grid-template-columns:28px minmax(0,1fr)}
.invitation-stage-9a .story-card{width:100%;min-width:0;overflow:visible}
.invitation-stage-9a .story-grid{grid-template-columns:minmax(180px,260px) minmax(0,1fr);align-items:start}
.invitation-stage-9a .story-grid > div{min-width:0}
.invitation-stage-9a .story-dot{align-self:start}
@media (max-width: 900px){
  .invitation-stage-9a .story-grid{grid-template-columns:1fr}
}
@media (max-width: 768px){
  .story-timeline{gap:18px}
  .story-item{margin-bottom:0}
  .story-photo-wrap img{min-height:180px}
  .invitation-stage-9a .story-item{grid-template-columns:20px minmax(0,1fr);gap:12px}
  .invitation-stage-9a .story-grid{grid-template-columns:1fr;gap:14px}
}


/* Stage 9A story section hard fix */
.story-section .container{max-width:1080px}
.story-section .story-list{position:relative;display:grid;gap:22px;max-width:980px;margin:0 auto}
.story-section .story-list::before{content:'';position:absolute;left:15px;top:8px;bottom:8px;width:2px;background:var(--theme-border);opacity:.9}
.story-section .story-item{position:relative;display:grid !important;grid-template-columns:32px minmax(0,1fr) !important;gap:18px;align-items:start;width:100%;min-width:0;margin:0;padding:0;background:transparent;border:0;box-shadow:none;overflow:visible}
.story-section .story-marker{position:relative;display:flex;justify-content:center;align-items:flex-start;min-height:100%}
.story-section .story-dot{position:relative !important;left:auto !important;top:auto !important;right:auto !important;bottom:auto !important;display:block;flex:0 0 auto;width:16px;height:16px;margin-top:22px;border-radius:999px;background:var(--theme-accent);box-shadow:0 0 0 6px color-mix(in srgb,var(--theme-accent) 18%, white)}
.story-section .story-body{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:18px;align-items:start;min-width:0;width:100%;padding:20px 22px;border:1px solid var(--theme-border);border-radius:28px;background:var(--theme-card);box-shadow:0 18px 40px rgba(15,23,42,.06);overflow:visible}
.story-section .story-copy{min-width:0;display:grid;gap:10px;align-content:start}
.story-section .story-copy h3{margin:0;font-size:clamp(22px,3vw,32px);line-height:1.15;overflow-wrap:anywhere;word-break:break-word}
.story-section .story-text{font-size:16px;line-height:1.75;color:var(--theme-text);overflow-wrap:anywhere;word-break:break-word;white-space:normal}
.story-section .story-text p{margin:0}
.story-section .story-photo-wrap{display:block;min-width:0;border-radius:22px;overflow:hidden;background:rgba(15,23,42,.04)}
.story-section .story-photo-wrap img{display:block;width:100%;height:100%;min-height:220px;max-height:340px;object-fit:cover}
.story-section .eyebrow{margin-bottom:2px}
.invitation-stage-9a .story-section .story-list::before{left:15px}
.invitation-stage-9a .story-section .story-item,.invitation-stage-9a .story-section .story-body,.invitation-stage-9a .story-section .story-copy,.invitation-stage-9a .story-section .story-photo-wrap{min-width:0}
.invitation-stage-9a .story-section .story-body{border-radius:28px !important}
.public-theme.wedding-botanical-sage.invitation-stage-9a .story-section .story-body{border-radius:30px 30px 16px 30px !important}
.public-theme.wedding-luxury-burgundy.invitation-stage-9a .story-section .story-body{border-radius:18px !important}
.public-theme.wedding-dark-editorial.invitation-stage-9a .story-section .story-body{background:linear-gradient(180deg,rgba(22,24,28,.94),rgba(17,19,22,.88));border-radius:12px !important;box-shadow:0 26px 60px rgba(0,0,0,.28)}
.public-theme.wedding-dark-editorial .story-section .story-text{color:#f5eee8}
@media (max-width:920px){
  .story-section .story-body{grid-template-columns:1fr;padding:18px}
  .story-section .story-photo-wrap img{min-height:200px;max-height:none}
}
@media (max-width:768px){
  .story-section .story-list{gap:16px}
  .story-section .story-list::before{left:11px;top:6px;bottom:6px}
  .story-section .story-item{grid-template-columns:24px minmax(0,1fr) !important;gap:12px}
  .story-section .story-dot{width:14px;height:14px;margin-top:18px;box-shadow:0 0 0 5px color-mix(in srgb,var(--theme-accent) 18%, white)}
  .story-section .story-body{padding:16px;border-radius:22px !important;gap:14px}
  .story-section .story-copy h3{font-size:22px}
  .story-section .story-text{font-size:15px;line-height:1.7}
  .story-section .story-photo-wrap img{min-height:180px}
}


/* Stage 9B - Ornament and background enrichment */
.invitation-stage-9b .public-section{position:relative;overflow:hidden}
.invitation-stage-9b .public-section > .container{position:relative;z-index:1}
.invitation-stage-9b .public-section::before,
.invitation-stage-9b .public-section::after,
.invitation-stage-9b .public-hero::before,
.invitation-stage-9b .public-hero::after,
.invitation-stage-9b .opening-screen::before,
.invitation-stage-9b .opening-screen::after{content:'';position:absolute;pointer-events:none;opacity:.8}
.invitation-stage-9b .section-title h2{position:relative;display:inline-block}
.invitation-stage-9b .section-title h2::before{content:'';position:absolute;left:50%;bottom:-10px;width:110px;height:2px;border-radius:999px;transform:translateX(-50%);background:linear-gradient(90deg,transparent,var(--theme-accent),transparent)}
.invitation-stage-9b .theme-surface-card,.invitation-stage-9b .quote-card,.invitation-stage-9b .map-card,.invitation-stage-9b .card,.invitation-stage-9b .event-card,.invitation-stage-9b .gift-card{backdrop-filter:blur(6px)}
.invitation-stage-9b .public-hero::before{right:-120px;top:-120px;width:320px;height:320px;border-radius:50%;background:radial-gradient(circle, color-mix(in srgb,var(--theme-accent) 24%, white), transparent 68%)}
.invitation-stage-9b .public-hero::after{left:-80px;bottom:-100px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle, color-mix(in srgb,var(--theme-hero-2) 32%, white), transparent 70%)}
.invitation-stage-9b .opening-screen::before{left:-140px;top:-140px;width:360px;height:360px;border-radius:50%;background:radial-gradient(circle, rgba(255,255,255,.16), transparent 66%)}
.invitation-stage-9b .opening-screen::after{right:-120px;bottom:-120px;width:300px;height:300px;border-radius:50%;background:radial-gradient(circle, rgba(255,255,255,.12), transparent 66%)}

/* Rustic Earth Tone */
.public-theme.wedding-rustic-earth-tone.invitation-stage-9b .opening-screen,
.public-theme.wedding-rustic-earth-tone.invitation-stage-9b .public-hero{background-blend-mode:multiply;}
.public-theme.wedding-rustic-earth-tone.invitation-stage-9b .opening-screen::before,
.public-theme.wedding-rustic-earth-tone.invitation-stage-9b .public-hero::before{border-radius:28px;transform:rotate(-10deg);background:linear-gradient(135deg, rgba(255,247,236,.22), transparent 65%)}
.public-theme.wedding-rustic-earth-tone.invitation-stage-9b .opening-card,
.public-theme.wedding-rustic-earth-tone.invitation-stage-9b .invite-card.modern{background:linear-gradient(180deg, rgba(255,251,246,.94), rgba(249,239,226,.9));box-shadow:0 26px 60px rgba(90,64,48,.16)}
.public-theme.wedding-rustic-earth-tone.invitation-stage-9b .public-section::after{right:28px;top:24px;width:120px;height:120px;border-radius:26px;background:linear-gradient(135deg, rgba(196,154,108,.12), transparent 62%);transform:rotate(12deg)}
.public-theme.wedding-rustic-earth-tone.invitation-stage-9b .section-title h2::before{background:linear-gradient(90deg,transparent,#9c6b3f,transparent)}

/* Soft Beige Islami */
.public-theme.wedding-soft-beige-islami.invitation-stage-9b .public-hero::before,
.public-theme.wedding-soft-beige-islami.invitation-stage-9b .opening-screen::before{width:280px;height:280px;border-radius:160px 160px 0 0;background:linear-gradient(180deg, rgba(255,255,255,.18), transparent 72%)}
.public-theme.wedding-soft-beige-islami.invitation-stage-9b .public-section::before{left:22px;top:18px;width:96px;height:96px;border-radius:48px 48px 0 0;border:1px solid rgba(176,137,104,.18);background:linear-gradient(180deg, rgba(255,255,255,.32), transparent 72%)}
.public-theme.wedding-soft-beige-islami.invitation-stage-9b .opening-card,
.public-theme.wedding-soft-beige-islami.invitation-stage-9b .invite-card.modern,
.public-theme.wedding-soft-beige-islami.invitation-stage-9b .theme-surface-card{background:linear-gradient(180deg, rgba(255,252,247,.96), rgba(249,242,233,.92));border-color:rgba(176,137,104,.22)}
.public-theme.wedding-soft-beige-islami.invitation-stage-9b .chips .chip{background:rgba(255,255,255,.8)}

/* Javanese Royal */
.public-theme.wedding-javanese-royal.invitation-stage-9b .public-section::before,
.public-theme.wedding-javanese-royal.invitation-stage-9b .public-section::after{inset:auto 26px 18px auto;width:130px;height:130px;background:radial-gradient(circle at center, rgba(212,175,55,.18) 0 10%, transparent 10% 18%, rgba(212,175,55,.12) 18% 22%, transparent 22% 100%);opacity:.7}
.public-theme.wedding-javanese-royal.invitation-stage-9b .public-section::after{left:26px;right:auto;top:18px;bottom:auto;transform:scaleX(-1)}
.public-theme.wedding-javanese-royal.invitation-stage-9b .opening-card,
.public-theme.wedding-javanese-royal.invitation-stage-9b .invite-card.modern{background:linear-gradient(180deg, rgba(91,31,42,.85), rgba(68,19,29,.82));color:#fff;border:1px solid rgba(212,175,55,.3)}
.public-theme.wedding-javanese-royal.invitation-stage-9b .opening-card .muted,
.public-theme.wedding-javanese-royal.invitation-stage-9b .invite-card.modern .lead{color:rgba(255,245,235,.82)}
.public-theme.wedding-javanese-royal.invitation-stage-9b .section-title h2::before{background:linear-gradient(90deg,transparent,#d4af37,transparent)}

/* Korean Clean Minimal */
.public-theme.wedding-korean-clean-minimal.invitation-stage-9b .opening-screen::before,
.public-theme.wedding-korean-clean-minimal.invitation-stage-9b .opening-screen::after,
.public-theme.wedding-korean-clean-minimal.invitation-stage-9b .public-hero::before,
.public-theme.wedding-korean-clean-minimal.invitation-stage-9b .public-hero::after{border-radius:40px;background:linear-gradient(180deg, rgba(255,255,255,.42), transparent 72%);filter:blur(4px)}
.public-theme.wedding-korean-clean-minimal.invitation-stage-9b .opening-card,
.public-theme.wedding-korean-clean-minimal.invitation-stage-9b .invite-card.modern,
.public-theme.wedding-korean-clean-minimal.invitation-stage-9b .theme-surface-card{background:rgba(255,255,255,.95);box-shadow:0 20px 48px rgba(31,41,55,.08);border-color:rgba(156,163,175,.22)}
.public-theme.wedding-korean-clean-minimal.invitation-stage-9b .public-section{background:linear-gradient(180deg, var(--theme-bg), #fff)}
.public-theme.wedding-korean-clean-minimal.invitation-stage-9b .section-title h2{letter-spacing:-.03em}

/* Tropical Romantic */
.public-theme.wedding-tropical-romantic.invitation-stage-9b .public-hero::before{width:360px;height:360px;border-radius:46% 54% 60% 40%;background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.22), transparent 62%)}
.public-theme.wedding-tropical-romantic.invitation-stage-9b .public-section::before{left:-20px;bottom:-10px;width:170px;height:170px;border-radius:50% 0 50% 50%;background:radial-gradient(circle, rgba(239,124,90,.14), transparent 66%)}
.public-theme.wedding-tropical-romantic.invitation-stage-9b .public-section::after{right:-10px;top:10px;width:150px;height:150px;border-radius:50% 50% 0 50%;background:radial-gradient(circle, rgba(46,111,90,.12), transparent 66%)}
.public-theme.wedding-tropical-romantic.invitation-stage-9b .opening-card,
.public-theme.wedding-tropical-romantic.invitation-stage-9b .invite-card.modern{background:linear-gradient(180deg, rgba(255,252,248,.94), rgba(255,244,236,.9));border-color:rgba(239,124,90,.2)}
.public-theme.wedding-tropical-romantic.invitation-stage-9b .section-title h2::before{background:linear-gradient(90deg,transparent,#ef7c5a,transparent)}

/* Khitan */
.public-theme.khitan-ceria-islami.invitation-stage-9b .opening-screen::before,
.public-theme.khitan-ceria-islami.invitation-stage-9b .public-hero::before{width:280px;height:280px;border-radius:24px;transform:rotate(18deg);background:linear-gradient(135deg, rgba(255,255,255,.18), transparent 65%)}
.public-theme.khitan-ceria-islami.invitation-stage-9b .public-section::before{left:20px;top:16px;width:92px;height:92px;background:radial-gradient(circle, rgba(22,163,74,.12) 0 24%, transparent 24% 100%)}
.public-theme.khitan-ceria-islami.invitation-stage-9b .theme-surface-card,
.public-theme.khitan-ceria-islami.invitation-stage-9b .event-card,
.public-theme.khitan-ceria-islami.invitation-stage-9b .gift-card{border-radius:26px}

/* Birthday */
.public-theme.birthday-fun-luxe.invitation-stage-9b .public-hero::before,
.public-theme.birthday-fun-luxe.invitation-stage-9b .opening-screen::before{width:320px;height:320px;border-radius:50%;background:radial-gradient(circle, rgba(255,255,255,.18) 0 28%, transparent 28% 100%)}
.public-theme.birthday-fun-luxe.invitation-stage-9b .public-section::before{left:16px;top:16px;width:110px;height:110px;background:radial-gradient(circle, rgba(236,72,153,.13) 0 14%, transparent 14% 22%, rgba(236,72,153,.08) 22% 28%, transparent 28% 100%)}
.public-theme.birthday-fun-luxe.invitation-stage-9b .public-section::after{right:18px;bottom:18px;width:90px;height:90px;background:radial-gradient(circle, rgba(236,72,153,.14) 0 10%, transparent 10% 100%)}
.public-theme.birthday-fun-luxe.invitation-stage-9b .opening-card,
.public-theme.birthday-fun-luxe.invitation-stage-9b .invite-card.modern{border-radius:36px;background:linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,245,250,.92))}

/* Formal General Event */
.public-theme.event-formal-elegant.invitation-stage-9b .public-hero::before,
.public-theme.event-formal-elegant.invitation-stage-9b .opening-screen::before{width:420px;height:2px;left:50%;top:110px;transform:translateX(-50%);background:linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);border-radius:999px}
.public-theme.event-formal-elegant.invitation-stage-9b .public-section::before{left:28px;top:24px;width:120px;height:120px;border:1px solid rgba(15,23,42,.08);border-radius:28px;background:linear-gradient(180deg, rgba(255,255,255,.44), transparent 75%)}
.public-theme.event-formal-elegant.invitation-stage-9b .opening-card,
.public-theme.event-formal-elegant.invitation-stage-9b .invite-card.modern{background:linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,252,.92));border-color:rgba(15,23,42,.08)}
.public-theme.event-formal-elegant.invitation-stage-9b .section-title h2::before{background:linear-gradient(90deg,transparent,#0f172a,transparent)}

/* Theme preview enrichment */
.theme-picker-card .theme-card-preview::after,
.theme-showcase-card .theme-showcase-hero::after{content:'';position:absolute;right:-18px;bottom:-24px;width:150px;height:150px;border-radius:50%;background:radial-gradient(circle, rgba(255,255,255,.16), transparent 66%);pointer-events:none}
.public-theme.wedding-javanese-royal.theme-preview-card .theme-card-preview::after,
.public-theme.wedding-javanese-royal.theme-showcase-card .theme-showcase-hero::after{border-radius:16px;background:linear-gradient(135deg, rgba(212,175,55,.22), transparent 70%);transform:rotate(20deg)}
.public-theme.wedding-korean-clean-minimal.theme-preview-card .theme-card-preview::after,
.public-theme.wedding-korean-clean-minimal.theme-showcase-card .theme-showcase-hero::after{background:linear-gradient(180deg, rgba(255,255,255,.42), transparent 70%);border-radius:36px}
.public-theme.birthday-fun-luxe.theme-preview-card .theme-card-preview::after,
.public-theme.khitan-ceria-islami.theme-preview-card .theme-card-preview::after{background:radial-gradient(circle, rgba(255,255,255,.18) 0 16%, transparent 16% 100%)}

@media (max-width: 768px){
  .invitation-stage-9b .public-section::before,
  .invitation-stage-9b .public-section::after{opacity:.55}
  .public-theme.event-formal-elegant.invitation-stage-9b .public-hero::before,
  .public-theme.event-formal-elegant.invitation-stage-9b .opening-screen::before{width:220px;top:88px}
  .public-theme.wedding-javanese-royal.invitation-stage-9b .public-section::before,
  .public-theme.wedding-javanese-royal.invitation-stage-9b .public-section::after{width:86px;height:86px}
}


/* =========================
   STAGE 9C - Final polish
   ========================= */
.invitation-stage-9c{--section-space:clamp(76px,8vw,112px);--section-gap:clamp(18px,2.3vw,28px);--surface-radius:28px;--surface-shadow:0 18px 44px rgba(17,24,39,.08);--surface-shadow-strong:0 26px 60px rgba(17,24,39,.12)}
.invitation-stage-9c .public-section{padding-block:var(--section-space)}
.invitation-stage-9c .public-section + .public-section{padding-top:calc(var(--section-space) - 12px)}
.invitation-stage-9c .public-section .container{display:block}
.invitation-stage-9c .theme-flow-section .section-title{margin-bottom:34px}
.invitation-stage-9c .theme-flow-section .section-title p{max-width:680px;margin-inline:auto;line-height:1.72}
.invitation-stage-9c .section-title h2{letter-spacing:-.03em}
.invitation-stage-9c .theme-flow-section .section-title h2::after{content:'';display:block;width:54px;height:10px;margin:16px auto 0;background:radial-gradient(circle at center,var(--theme-accent) 0 24%,transparent 24% 100%);opacity:.22}
.invitation-stage-9c .theme-surface-card,
.invitation-stage-9c .card,
.invitation-stage-9c .event-card,
.invitation-stage-9c .gift-card,
.invitation-stage-9c .quote-card,
.invitation-stage-9c .map-card,
.invitation-stage-9c .story-section .story-body,
.invitation-stage-9c .wish-item,
.invitation-stage-9c .countdown-item,
.invitation-stage-9c .person-card,
.invitation-stage-9c .hero-side-card{border-radius:var(--surface-radius);box-shadow:var(--surface-shadow);transition:transform .28s ease, box-shadow .28s ease, border-color .28s ease, background-color .28s ease}
.invitation-stage-9c .theme-surface-card:hover,
.invitation-stage-9c .card:hover,
.invitation-stage-9c .event-card:hover,
.invitation-stage-9c .gift-card:hover,
.invitation-stage-9c .map-card:hover,
.invitation-stage-9c .person-card:hover,
.invitation-stage-9c .hero-side-card:hover{transform:translateY(-4px);box-shadow:var(--surface-shadow-strong)}
.invitation-stage-9c .story-section .story-body:hover,
.invitation-stage-9c .wish-item:hover,
.invitation-stage-9c .countdown-item:hover{box-shadow:0 20px 52px rgba(17,24,39,.10)}
.invitation-stage-9c .chips{gap:10px}
.invitation-stage-9c .chip{padding:9px 14px;border-radius:999px;border:1px solid color-mix(in srgb,var(--theme-accent) 14%, white);background:color-mix(in srgb,var(--theme-accent) 5%, white);box-shadow:0 8px 18px rgba(17,24,39,.04)}
.invitation-stage-9c .btn{transition:transform .22s ease, box-shadow .22s ease, background-color .22s ease, border-color .22s ease}
.invitation-stage-9c .btn:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(17,24,39,.08)}
.invitation-stage-9c .btn:active{transform:translateY(0)}
.invitation-stage-9c .opening-card{box-shadow:0 30px 80px rgba(0,0,0,.16)}
.invitation-stage-9c .opening-card .opening-description{max-width:38ch;margin-inline:auto}
.invitation-stage-9c .public-hero{min-height:100svh}
.invitation-stage-9c .hero-shell{gap:clamp(22px,3vw,42px)}
.invitation-stage-9c .invite-card.modern{border-radius:34px;box-shadow:0 24px 72px rgba(17,24,39,.16)}
.invitation-stage-9c .invite-card.modern .lead{line-height:1.75}
.invitation-stage-9c .hero-actions{margin-top:22px}
.invitation-stage-9c .scroll-indicator{bottom:30px;width:56px;height:56px;border-radius:999px;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.15);backdrop-filter:blur(12px);box-shadow:0 12px 24px rgba(0,0,0,.14);animation:stage9c-bounce 2s ease-in-out infinite}
.invitation-stage-9c .scroll-indicator span{font-size:28px;line-height:1;display:block;transform:translateY(-1px)}
@keyframes stage9c-bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(8px)}}
.invitation-stage-9c .floating-section-nav{backdrop-filter:blur(14px)}
.invitation-stage-9c .floating-nav-shell{gap:12px;padding:10px 12px;border-radius:999px;background:color-mix(in srgb,var(--theme-card) 82%, transparent);box-shadow:0 14px 34px rgba(17,24,39,.14)}
.invitation-stage-9c .floating-nav-btn{min-width:54px;min-height:54px;border-radius:18px;transition:transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease}
.invitation-stage-9c .floating-nav-btn span{font-size:24px;line-height:1}
.invitation-stage-9c .floating-nav-btn.is-active{transform:translateY(-3px);box-shadow:0 12px 24px rgba(17,24,39,.12)}
.invitation-stage-9c .auto-scroll-pill{backdrop-filter:blur(12px);box-shadow:0 12px 24px rgba(17,24,39,.12)}
.invitation-stage-9c .gallery-grid{gap:16px}
.invitation-stage-9c .gallery-item{border-radius:24px;overflow:hidden;box-shadow:0 16px 40px rgba(17,24,39,.10);transition:transform .28s ease, box-shadow .28s ease}
.invitation-stage-9c .gallery-item:hover{transform:translateY(-4px) scale(1.01);box-shadow:0 24px 54px rgba(17,24,39,.14)}
.invitation-stage-9c .gallery-item img{transition:transform .45s ease, filter .32s ease}
.invitation-stage-9c .gallery-item:hover img{transform:scale(1.04);filter:saturate(1.04)}
.invitation-stage-9c .gallery-lightbox{background:rgba(7,10,16,.94);backdrop-filter:blur(14px)}
.invitation-stage-9c .lightbox-stage{padding:24px}
.invitation-stage-9c .lightbox-stage img{max-height:min(82vh,960px);border-radius:22px;box-shadow:0 20px 70px rgba(0,0,0,.36)}
.invitation-stage-9c .lightbox-toolbar{gap:10px}
.invitation-stage-9c .story-section .story-body{padding:clamp(18px,2.8vw,30px)}
.invitation-stage-9c .story-section .story-text{line-height:1.78;letter-spacing:0}
.invitation-stage-9c .story-section .story-title{font-size:clamp(22px,2.4vw,30px);line-height:1.2;margin-bottom:10px}
.invitation-stage-9c .story-section .story-meta{margin-bottom:10px;font-size:14px;letter-spacing:.08em;text-transform:uppercase;opacity:.7}
.invitation-stage-9c .story-section .story-photo-wrap{border-radius:24px;overflow:hidden;box-shadow:0 14px 34px rgba(17,24,39,.12)}
.invitation-stage-9c .gift-group-grid,.invitation-stage-9c .compact-stats,.invitation-stage-9c .event-grid{gap:var(--section-gap)}
.invitation-stage-9c .gift-card h3,.invitation-stage-9c .event-card h3,.invitation-stage-9c .map-card h3,.invitation-stage-9c .person-card h3{letter-spacing:-.02em}
.invitation-stage-9c .wish-item{padding:18px 18px 16px}
.invitation-stage-9c .wish-item p{line-height:1.72;margin-top:10px}
.invitation-stage-9c .field input,
.invitation-stage-9c .field textarea,
.invitation-stage-9c .field select{border-radius:16px;transition:border-color .18s ease, box-shadow .18s ease, background-color .18s ease}
.invitation-stage-9c .field input:focus,
.invitation-stage-9c .field textarea:focus,
.invitation-stage-9c .field select:focus{box-shadow:0 0 0 4px color-mix(in srgb,var(--theme-accent) 18%, white)}
.invitation-stage-9c .quote-card{position:relative;overflow:hidden}
.invitation-stage-9c .quote-card::after{content:'';position:absolute;inset:auto -22px -42px auto;width:130px;height:130px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--theme-accent) 12%, white),transparent 66%);opacity:.55}
.invitation-stage-9c .countdown-grid{gap:14px}
.invitation-stage-9c .countdown-item strong{font-size:clamp(24px,4vw,40px)}
.invitation-stage-9c .hero-side-card img{aspect-ratio:4 / 5;object-fit:cover}
.invitation-stage-9c .hero-side-card figcaption{padding:14px 16px}
.invitation-stage-9c .footer-couple-name{font-size:clamp(32px,4vw,48px);letter-spacing:-.04em}
.invitation-stage-9c .public-footer{margin-top:0;border-top:1px solid color-mix(in srgb,var(--theme-border) 74%, white);background:linear-gradient(180deg,color-mix(in srgb,var(--theme-soft) 90%, white),color-mix(in srgb,var(--theme-bg) 90%, white))}

/* theme-specific finishing */
.public-theme.wedding-modern-elegance.invitation-stage-9c .section-title h2::after{background:radial-gradient(circle at center,#d4af37 0 28%,transparent 28% 100%)}
.public-theme.wedding-luxury-burgundy.invitation-stage-9c .theme-flow-section .section-title h2::after{background:radial-gradient(circle at center,#9b2242 0 28%,transparent 28% 100%)}
.public-theme.wedding-botanical-sage.invitation-stage-9c .theme-flow-section .section-title h2::after{background:radial-gradient(circle at center,#6f9c79 0 28%,transparent 28% 100%)}
.public-theme.wedding-dark-editorial.invitation-stage-9c .theme-surface-card,
.public-theme.wedding-dark-editorial.invitation-stage-9c .card,
.public-theme.wedding-dark-editorial.invitation-stage-9c .event-card,
.public-theme.wedding-dark-editorial.invitation-stage-9c .gift-card,
.public-theme.wedding-dark-editorial.invitation-stage-9c .quote-card,
.public-theme.wedding-dark-editorial.invitation-stage-9c .map-card,
.public-theme.wedding-dark-editorial.invitation-stage-9c .wish-item{box-shadow:0 24px 60px rgba(0,0,0,.26)}
.public-theme.wedding-rustic-earth-tone.invitation-stage-9c .gallery-item{border-radius:30px 12px 28px 18px}
.public-theme.wedding-soft-beige-islami.invitation-stage-9c .scroll-indicator,
.public-theme.wedding-soft-beige-islami.invitation-stage-9c .floating-nav-shell{border-color:rgba(176,137,104,.24)}
.public-theme.wedding-javanese-royal.invitation-stage-9c .chip{background:rgba(255,247,237,.92)}
.public-theme.wedding-korean-clean-minimal.invitation-stage-9c .theme-surface-card,
.public-theme.wedding-korean-clean-minimal.invitation-stage-9c .card,
.public-theme.wedding-korean-clean-minimal.invitation-stage-9c .event-card,
.public-theme.wedding-korean-clean-minimal.invitation-stage-9c .gift-card,
.public-theme.wedding-korean-clean-minimal.invitation-stage-9c .quote-card,
.public-theme.wedding-korean-clean-minimal.invitation-stage-9c .map-card,
.public-theme.wedding-korean-clean-minimal.invitation-stage-9c .wish-item{box-shadow:0 10px 28px rgba(15,23,42,.06)}
.public-theme.wedding-tropical-romantic.invitation-stage-9c .gallery-item:hover img{transform:scale(1.06) rotate(.4deg)}
.public-theme.khitan-ceria-islami.invitation-stage-9c .section-title h2::after{background:radial-gradient(circle at center,#16a34a 0 28%,transparent 28% 100%)}
.public-theme.birthday-fun-luxe.invitation-stage-9c .section-title h2::after{background:radial-gradient(circle at center,#ec4899 0 28%,transparent 28% 100%)}
.public-theme.event-formal-elegant.invitation-stage-9c .section-title h2::after{background:radial-gradient(circle at center,#1d4ed8 0 28%,transparent 28% 100%)}

/* theme picker polish */
.theme-picker-card{transition:transform .24s ease, box-shadow .24s ease, border-color .24s ease}
.theme-picker-card:hover{transform:translateY(-5px);box-shadow:0 24px 56px rgba(17,24,39,.10)}
.theme-picker-card .theme-card-preview{min-height:250px}
.theme-picker-card .theme-card-inner{gap:16px}
.theme-picker-card .theme-card-inner p{line-height:1.68;max-width:34ch}
.theme-picker-card .theme-picker-body{display:flex;flex-direction:column;gap:12px}
.theme-picker-card .theme-swatch{width:18px;height:18px;border-radius:999px;box-shadow:0 0 0 2px rgba(255,255,255,.88), 0 6px 14px rgba(17,24,39,.10)}
.theme-picker-card.selected{box-shadow:0 24px 56px rgba(17,24,39,.14)}

/* motion accessibility */
@media (prefers-reduced-motion: reduce){
  .invitation-stage-9c *,
  .theme-picker-card,
  .theme-picker-card *{animation:none !important;transition:none !important;scroll-behavior:auto !important}
  .invitation-stage-9c .scroll-indicator{animation:none !important}
}
@media (max-width: 992px){
  .invitation-stage-9c{--section-space:72px}
  .invitation-stage-9c .invite-card.modern{border-radius:28px}
  .invitation-stage-9c .floating-nav-btn{min-width:50px;min-height:50px}
  .invitation-stage-9c .floating-nav-btn span{font-size:22px}
}
@media (max-width: 768px){
  .invitation-stage-9c{--section-space:64px;--surface-radius:22px}
  .invitation-stage-9c .public-section + .public-section{padding-top:58px}
  .invitation-stage-9c .theme-flow-section .section-title{margin-bottom:26px}
  .invitation-stage-9c .theme-flow-section .section-title h2::after{margin-top:12px}
  .invitation-stage-9c .gallery-grid{gap:12px}
  .invitation-stage-9c .lightbox-stage{padding:14px}
  .invitation-stage-9c .floating-nav-shell{padding:8px 10px;gap:10px}
  .invitation-stage-9c .floating-nav-btn{min-width:48px;min-height:48px;border-radius:16px}
  .invitation-stage-9c .floating-nav-btn span{font-size:21px}
  .theme-picker-card .theme-card-preview{min-height:220px}
}
@media (max-width: 560px){
  .invitation-stage-9c .hero-shell{gap:18px}
  .invitation-stage-9c .chips{gap:8px}
  .invitation-stage-9c .chip{padding:8px 12px;font-size:12px}
  .invitation-stage-9c .countdown-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* ===== Stage 10A: Artistic Section Layouts ===== */
.invitation-stage-10a{
  --section-shell-radius:36px;
  --section-shell-shadow:0 22px 60px rgba(17,24,39,.08);
}
.invitation-stage-10a .theme-flow-section,
.invitation-stage-10a .quote-section,
.invitation-stage-10a .story-section,
.invitation-stage-10a .gift-section{
  position:relative;
  isolation:isolate;
}
.invitation-stage-10a .theme-flow-section .container,
.invitation-stage-10a .quote-section .container,
.invitation-stage-10a .story-section .container,
.invitation-stage-10a .gift-section .container{
  position:relative;
  z-index:2;
}
.invitation-stage-10a .theme-flow-section::before,
.invitation-stage-10a .quote-section::before,
.invitation-stage-10a .story-section::before,
.invitation-stage-10a .gift-section::before{
  content:'';
  position:absolute;
  inset:22px 3.5% 0;
  border-radius:var(--section-shell-radius);
  background:linear-gradient(180deg,color-mix(in srgb,var(--theme-soft) 88%, white),rgba(255,255,255,.72));
  border:1px solid color-mix(in srgb,var(--theme-border) 78%, white);
  box-shadow:var(--section-shell-shadow);
  z-index:1;
}
.invitation-stage-10a .soft::before{
  background:linear-gradient(180deg,color-mix(in srgb,var(--theme-soft) 94%, white),rgba(255,255,255,.9));
}
.invitation-stage-10a .theme-flow-section .section-title,
.invitation-stage-10a .quote-section .section-title,
.invitation-stage-10a .story-section .section-title,
.invitation-stage-10a .gift-section .section-title{
  position:relative;
  display:grid;
  gap:8px;
  margin-bottom:32px;
}
.invitation-stage-10a .theme-flow-section .section-title h2,
.invitation-stage-10a .quote-section .section-title h2,
.invitation-stage-10a .story-section .section-title h2,
.invitation-stage-10a .gift-section .section-title h2{
  position:relative;
  display:inline-block;
  margin:0;
}
.invitation-stage-10a .theme-flow-section .section-title h2::before,
.invitation-stage-10a .quote-section .section-title h2::before,
.invitation-stage-10a .story-section .section-title h2::before,
.invitation-stage-10a .gift-section .section-title h2::before{
  content:'';
  position:absolute;
  left:0;
  top:-10px;
  width:72px;
  height:8px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--theme-accent),color-mix(in srgb,var(--theme-accent-2) 70%, white));
  opacity:.7;
}
.invitation-stage-10a .center-text .section-title h2::before,
.invitation-stage-10a .quote-section .section-title h2::before{
  left:50%;
  transform:translateX(-50%);
}
.invitation-stage-10a .theme-flow-section .section-title p,
.invitation-stage-10a .quote-section .section-title p,
.invitation-stage-10a .story-section .section-title p,
.invitation-stage-10a .gift-section .section-title p{
  max-width:56ch;
}
.invitation-stage-10a .section-couple-portrait .person-card,
.invitation-stage-10a .section-events-arched .event-card,
.invitation-stage-10a .section-maps-spotlight .map-card,
.invitation-stage-10a .section-gallery-editorial .gallery-item,
.invitation-stage-10a .section-video-feature .video-feature-card,
.invitation-stage-10a .section-gift-ribbon .gift-card,
.invitation-stage-10a .section-rsvp-suite .card,
.invitation-stage-10a .section-wishes-journal .card,
.invitation-stage-10a .section-footer-signature .narrow-center,
.invitation-stage-10a .section-story-ribbon .story-item{
  position:relative;
  overflow:visible;
}
.invitation-stage-10a .section-couple-portrait .person-card::after,
.invitation-stage-10a .section-events-arched .event-card::after,
.invitation-stage-10a .section-maps-spotlight .map-card::after,
.invitation-stage-10a .section-gift-ribbon .gift-card::after,
.invitation-stage-10a .section-rsvp-suite .card::after,
.invitation-stage-10a .section-wishes-journal .card::after,
.invitation-stage-10a .section-story-ribbon .story-item::after{
  content:'';
  position:absolute;
  inset:0;
  border-radius:inherit;
  padding:1px;
  background:linear-gradient(145deg,color-mix(in srgb,var(--theme-accent) 26%, white),transparent 36%,color-mix(in srgb,var(--theme-accent-2) 18%, white));
  -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  pointer-events:none;
  opacity:.75;
}
.invitation-stage-10a .section-quote-luxe .quote-card{
  position:relative;
  overflow:hidden;
  padding:42px clamp(24px,5vw,56px);
}
.invitation-stage-10a .section-quote-luxe .quote-card::before,
.invitation-stage-10a .section-quote-luxe .quote-card::after{
  content:'“';
  position:absolute;
  font-size:120px;
  line-height:1;
  font-family:Georgia,serif;
  color:color-mix(in srgb,var(--theme-accent) 16%, white);
  pointer-events:none;
}
.invitation-stage-10a .section-quote-luxe .quote-card::before{left:22px;top:8px}
.invitation-stage-10a .section-quote-luxe .quote-card::after{content:'”';right:22px;bottom:-28px}
.invitation-stage-10a .section-events-arched .event-card{
  border-radius:34px 34px 18px 18px;
  padding-top:30px;
}
.invitation-stage-10a .section-events-arched .event-card .eyebrow{
  display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  background:color-mix(in srgb,var(--theme-accent) 10%, white);
  border:1px solid color-mix(in srgb,var(--theme-accent) 18%, white);
}
.invitation-stage-10a .section-events-arched .event-action-row{margin-top:18px}
.invitation-stage-10a .section-maps-spotlight .map-card{
  background:linear-gradient(180deg,color-mix(in srgb,var(--theme-card) 94%, white),color-mix(in srgb,var(--theme-soft) 88%, white));
}
.invitation-stage-10a .section-story-ribbon .story-list{gap:20px}
.invitation-stage-10a .section-story-ribbon .story-item{
  border-radius:30px;
  box-shadow:0 18px 42px rgba(17,24,39,.08);
}
.invitation-stage-10a .section-gallery-editorial .gallery-grid-rich{
  gap:18px;
}
.invitation-stage-10a .section-gallery-editorial .gallery-grid-rich .gallery-item:nth-child(5n+1){
  transform:translateY(-8px);
}
.invitation-stage-10a .section-gallery-editorial .gallery-grid-rich .gallery-item:nth-child(5n+3){
  transform:translateY(10px);
}
.invitation-stage-10a .section-video-feature .video-feature-card{
  overflow:hidden;
  border-radius:32px;
}
.invitation-stage-10a .section-video-feature .video-feature-card::before{
  content:'';
  position:absolute;
  inset:auto -8% -36% auto;
  width:220px;
  height:220px;
  border-radius:50%;
  background:radial-gradient(circle,color-mix(in srgb,var(--theme-accent) 18%, white),transparent 65%);
  pointer-events:none;
}
.invitation-stage-10a .section-gift-ribbon .gift-group-head,
.invitation-stage-10a .section-gift-ribbon .gift-group-head + .gift-group-grid{
  position:relative;
  z-index:2;
}
.invitation-stage-10a .section-gift-ribbon .gift-card{
  border-radius:30px 20px 30px 20px;
}
.invitation-stage-10a .section-gift-ribbon .gift-number{
  display:inline-block;
  padding:10px 14px;
  border-radius:14px;
  background:color-mix(in srgb,var(--theme-accent) 7%, white);
  border:1px dashed color-mix(in srgb,var(--theme-accent) 26%, white);
}
.invitation-stage-10a .section-rsvp-suite .grid.cols-2,
.invitation-stage-10a .section-wishes-journal .grid.cols-2{
  align-items:start;
}
.invitation-stage-10a .section-wishes-journal .wishes-panel{
  background:linear-gradient(180deg,color-mix(in srgb,var(--theme-card) 94%, white),color-mix(in srgb,var(--theme-soft) 82%, white));
}
.invitation-stage-10a .section-footer-signature .narrow-center{
  position:relative;
  padding:28px clamp(18px,4vw,36px);
  border-radius:32px;
  background:linear-gradient(180deg,color-mix(in srgb,var(--theme-soft) 88%, white),rgba(255,255,255,.72));
  box-shadow:var(--section-shell-shadow);
}
.invitation-stage-10a .section-footer-signature .narrow-center::before,
.invitation-stage-10a .section-footer-signature .narrow-center::after{
  content:'';
  position:absolute;
  width:84px;
  height:84px;
  border-radius:50%;
  background:radial-gradient(circle,color-mix(in srgb,var(--theme-accent) 12%, white),transparent 68%);
}
.invitation-stage-10a .section-footer-signature .narrow-center::before{left:-24px;top:-22px}
.invitation-stage-10a .section-footer-signature .narrow-center::after{right:-24px;bottom:-22px}

.public-theme.wedding-modern-elegance.invitation-stage-10a .theme-flow-section::before,
.public-theme.wedding-classic-white-gold.invitation-stage-10a .theme-flow-section::before{
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(251,247,238,.9));
}
.public-theme.wedding-luxury-burgundy.invitation-stage-10a .theme-flow-section::before,
.public-theme.wedding-dark-editorial.invitation-stage-10a .theme-flow-section::before{
  background:linear-gradient(180deg,color-mix(in srgb,var(--theme-soft) 84%, black),color-mix(in srgb,var(--theme-card) 86%, black));
}
.public-theme.wedding-luxury-burgundy.invitation-stage-10a .theme-flow-section .section-title h2::before,
.public-theme.wedding-dark-editorial.invitation-stage-10a .theme-flow-section .section-title h2::before{
  background:linear-gradient(90deg,#d8a86b,#a62a53);
}
.public-theme.wedding-botanical-sage.invitation-stage-10a .section-gallery-editorial .gallery-item,
.public-theme.wedding-tropical-romantic.invitation-stage-10a .section-gallery-editorial .gallery-item{
  border-radius:28px 14px 28px 14px;
}
.public-theme.wedding-soft-beige-islami.invitation-stage-10a .section-quote-luxe .quote-card::before,
.public-theme.wedding-soft-beige-islami.invitation-stage-10a .section-quote-luxe .quote-card::after{
  color:rgba(176,137,104,.18);
}
.public-theme.wedding-javanese-royal.invitation-stage-10a .section-events-arched .event-card,
.public-theme.wedding-javanese-royal.invitation-stage-10a .section-gift-ribbon .gift-card{
  border-radius:40px 18px 34px 18px;
}
.public-theme.wedding-korean-clean-minimal.invitation-stage-10a .theme-flow-section::before,
.public-theme.wedding-korean-clean-minimal.invitation-stage-10a .quote-section::before,
.public-theme.wedding-korean-clean-minimal.invitation-stage-10a .story-section::before,
.public-theme.wedding-korean-clean-minimal.invitation-stage-10a .gift-section::before{
  box-shadow:0 12px 30px rgba(15,23,42,.05);
  border-radius:28px;
}
.public-theme.khitan-ceria-islami.invitation-stage-10a .theme-flow-section .section-title h2::before{background:linear-gradient(90deg,#16a34a,#22c55e)}
.public-theme.birthday-fun-luxe.invitation-stage-10a .theme-flow-section .section-title h2::before{background:linear-gradient(90deg,#f97316,#ec4899)}
.public-theme.event-formal-elegant.invitation-stage-10a .theme-flow-section .section-title h2::before{background:linear-gradient(90deg,#1d4ed8,#60a5fa)}

@media (max-width: 900px){
  .invitation-stage-10a{--section-shell-radius:28px}
  .invitation-stage-10a .theme-flow-section::before,
  .invitation-stage-10a .quote-section::before,
  .invitation-stage-10a .story-section::before,
  .invitation-stage-10a .gift-section::before{inset:18px 12px 0}
  .invitation-stage-10a .section-gallery-editorial .gallery-grid-rich .gallery-item:nth-child(5n+1),
  .invitation-stage-10a .section-gallery-editorial .gallery-grid-rich .gallery-item:nth-child(5n+3){transform:none}
}
@media (max-width: 640px){
  .invitation-stage-10a .theme-flow-section .section-title,
  .invitation-stage-10a .quote-section .section-title,
  .invitation-stage-10a .story-section .section-title,
  .invitation-stage-10a .gift-section .section-title{margin-bottom:24px}
  .invitation-stage-10a .section-quote-luxe .quote-card{padding:28px 18px}
  .invitation-stage-10a .section-quote-luxe .quote-card::before,
  .invitation-stage-10a .section-quote-luxe .quote-card::after{font-size:82px}
  .invitation-stage-10a .section-footer-signature .narrow-center{padding:24px 16px}
}

/* Stage 10B - section specific layout variants */
.invitation-stage-10b .section-title{position:relative}
.invitation-stage-10b .section-title .chip{backdrop-filter:blur(4px)}

/* Quote variants */
.invitation-stage-10b .quote-card{position:relative;overflow:hidden}
.invitation-stage-10b .section-quote-frame .quote-card,
.invitation-stage-10b .section-quote-royal .quote-card{padding:36px 42px;border-width:1px}
.invitation-stage-10b .section-quote-frame .quote-card::before,
.invitation-stage-10b .section-quote-frame .quote-card::after,
.invitation-stage-10b .section-quote-royal .quote-card::before,
.invitation-stage-10b .section-quote-royal .quote-card::after{content:"";position:absolute;width:56px;height:56px;border:1px solid color-mix(in srgb,var(--theme-accent) 36%, transparent);pointer-events:none}
.invitation-stage-10b .section-quote-frame .quote-card::before,
.invitation-stage-10b .section-quote-royal .quote-card::before{left:16px;top:16px;border-right:none;border-bottom:none;border-top-left-radius:18px}
.invitation-stage-10b .section-quote-frame .quote-card::after,
.invitation-stage-10b .section-quote-royal .quote-card::after{right:16px;bottom:16px;border-left:none;border-top:none;border-bottom-right-radius:18px}
.invitation-stage-10b .section-quote-editorial .quote-card{max-width:860px;margin:0 auto;padding:40px 42px 40px 96px;text-align:left}
.invitation-stage-10b .section-quote-editorial .quote-card::before{content:"“";position:absolute;left:28px;top:18px;font-size:92px;line-height:1;color:color-mix(in srgb,var(--theme-accent) 55%, white)}
.invitation-stage-10b .section-quote-editorial .quote-card h2{max-width:18ch}
.invitation-stage-10b .section-quote-floral .quote-card{background:linear-gradient(180deg,color-mix(in srgb,var(--theme-card) 86%, white),color-mix(in srgb,var(--theme-card) 95%, transparent));border-radius:34px 34px 18px 34px}
.invitation-stage-10b .section-quote-floral .quote-card::after{content:"";position:absolute;right:-10px;bottom:-18px;width:120px;height:120px;border-radius:46% 54% 60% 40%;background:radial-gradient(circle,color-mix(in srgb,var(--theme-accent) 16%, white),transparent 68%)}
.invitation-stage-10b .section-quote-minimal .quote-card{max-width:760px;margin:0 auto;padding:28px 28px 28px 32px;text-align:left;border-radius:22px;box-shadow:none;border-left:6px solid var(--theme-accent)}
.invitation-stage-10b .section-quote-prayer .quote-card{background:linear-gradient(180deg,color-mix(in srgb,var(--theme-card) 92%, white),color-mix(in srgb,var(--theme-card) 98%, white));border-radius:28px 28px 12px 12px;padding-top:46px}
.invitation-stage-10b .section-quote-prayer .quote-card::before{content:"";position:absolute;left:50%;top:-38px;transform:translateX(-50%);width:110px;height:84px;border-radius:110px 110px 0 0;border:1px solid color-mix(in srgb,var(--theme-accent) 28%, transparent);border-bottom:none;background:color-mix(in srgb,var(--theme-card) 90%, white)}
.invitation-stage-10b .section-quote-paper .quote-card{background:linear-gradient(180deg,#fffdf8,#f9f1e5);color:#4e3b2f;border-radius:18px;transform:rotate(-.4deg);box-shadow:0 18px 42px rgba(93,64,55,.14)}
.invitation-stage-10b .section-quote-royal .quote-card{background:linear-gradient(180deg,color-mix(in srgb,var(--theme-card) 92%, white),color-mix(in srgb,var(--theme-card) 96%, transparent));border:1px solid color-mix(in srgb,var(--theme-accent) 35%, transparent);box-shadow:0 24px 64px rgba(36,18,12,.18)}
.invitation-stage-10b .quote-text{font-size:clamp(17px,2.2vw,21px);line-height:1.85}

/* Event variants */
.invitation-stage-10b .event-grid{align-items:stretch}
.invitation-stage-10b .event-layout-tickets .event-layout-card,
.invitation-stage-10b .event-layout-softcards .event-layout-card{position:relative;overflow:hidden}
.invitation-stage-10b .event-layout-tickets .event-layout-card{padding:26px 24px 26px 30px;border-radius:28px}
.invitation-stage-10b .event-layout-tickets .event-layout-card::before{content:"";position:absolute;left:0;top:24px;bottom:24px;width:10px;border-radius:0 999px 999px 0;background:linear-gradient(180deg,var(--theme-accent),color-mix(in srgb,var(--theme-hero-2) 70%, white))}
.invitation-stage-10b .event-layout-tickets .event-layout-card::after{content:"";position:absolute;right:-14px;top:26px;bottom:26px;width:28px;background:radial-gradient(circle at left center,transparent 10px, color-mix(in srgb,var(--theme-card) 98%, white) 11px)}
.invitation-stage-10b .event-layout-softcards .event-layout-card{background:linear-gradient(180deg,color-mix(in srgb,var(--theme-card) 94%, white),color-mix(in srgb,var(--theme-card) 100%, transparent));border-radius:30px}
.invitation-stage-10b .event-layout-stacked .event-layout-card:nth-child(odd){transform:translateY(-4px) rotate(-.35deg)}
.invitation-stage-10b .event-layout-stacked .event-layout-card:nth-child(even){transform:translateY(6px) rotate(.35deg)}
.invitation-stage-10b .event-layout-cleanlist{grid-template-columns:1fr!important;gap:16px}
.invitation-stage-10b .event-layout-cleanlist .event-layout-card{display:grid;grid-template-columns:minmax(0,180px) 1fr;gap:18px;align-items:flex-start;border-radius:20px;box-shadow:none}
.invitation-stage-10b .event-layout-cleanlist .event-layout-card .eyebrow{font-size:11px;letter-spacing:.16em}
.invitation-stage-10b .event-layout-cleanlist .event-layout-card h3{margin:0}
.invitation-stage-10b .event-layout-timeline,
.invitation-stage-10b .event-layout-timeline-soft{grid-template-columns:1fr!important;gap:22px;max-width:860px;margin:0 auto;position:relative}
.invitation-stage-10b .event-layout-timeline::before,
.invitation-stage-10b .event-layout-timeline-soft::before{content:"";position:absolute;left:28px;top:8px;bottom:8px;width:2px;background:linear-gradient(180deg,color-mix(in srgb,var(--theme-accent) 65%, white),transparent)}
.invitation-stage-10b .event-layout-timeline .event-layout-card,
.invitation-stage-10b .event-layout-timeline-soft .event-layout-card{position:relative;padding-left:56px;border-radius:24px}
.invitation-stage-10b .event-layout-timeline .event-layout-card::before,
.invitation-stage-10b .event-layout-timeline-soft .event-layout-card::before{content:"";position:absolute;left:18px;top:32px;width:18px;height:18px;border-radius:50%;background:var(--theme-accent);box-shadow:0 0 0 6px color-mix(in srgb,var(--theme-accent) 18%, transparent)}
.invitation-stage-10b .event-layout-timeline-soft .event-layout-card{background:linear-gradient(180deg,color-mix(in srgb,var(--theme-card) 95%, white),color-mix(in srgb,var(--theme-card) 98%, white))}

/* Map variants */
.invitation-stage-10b .maps-layout-minimal .map-card{border-radius:20px;box-shadow:none;padding:22px 22px 18px}
.invitation-stage-10b .maps-layout-soft .map-card{background:linear-gradient(180deg,color-mix(in srgb,var(--theme-card) 95%, white),color-mix(in srgb,var(--theme-card) 100%, transparent));border-radius:28px 28px 14px 28px}
.invitation-stage-10b .maps-layout-spotlight .map-card{position:relative;overflow:hidden}
.invitation-stage-10b .maps-layout-spotlight .map-card::after{content:"";position:absolute;right:-30px;top:-30px;width:120px;height:120px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--theme-accent) 18%, white),transparent 70%)}

/* Gallery variants */
.invitation-stage-10b .gallery-layout-classicgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.invitation-stage-10b .gallery-layout-classicgrid .gallery-item,
.invitation-stage-10b .gallery-layout-classicgrid .gallery-item:nth-child(5n+1),
.invitation-stage-10b .gallery-layout-classicgrid .gallery-item:nth-child(7n+3){grid-column:span 1}
.invitation-stage-10b .gallery-layout-classicgrid .gallery-item img{min-height:220px}
.invitation-stage-10b .gallery-layout-mosaic{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:14px}
.invitation-stage-10b .gallery-layout-mosaic .gallery-item{grid-column:span 4}
.invitation-stage-10b .gallery-layout-mosaic .gallery-item:nth-child(4n+1){grid-column:span 5}
.invitation-stage-10b .gallery-layout-mosaic .gallery-item:nth-child(6n+3){grid-column:span 3}
.invitation-stage-10b .gallery-layout-magazine{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-rows:170px;gap:14px}
.invitation-stage-10b .gallery-layout-magazine .gallery-item:nth-child(4n+1){grid-column:span 7;grid-row:span 2}
.invitation-stage-10b .gallery-layout-magazine .gallery-item:nth-child(4n+2){grid-column:span 5}
.invitation-stage-10b .gallery-layout-magazine .gallery-item:nth-child(4n+3){grid-column:span 5}
.invitation-stage-10b .gallery-layout-magazine .gallery-item:nth-child(4n+4){grid-column:span 7}
.invitation-stage-10b .gallery-layout-scrapbook{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:18px}
.invitation-stage-10b .gallery-layout-scrapbook .gallery-item{grid-column:span 4;padding:8px;background:#fff;border-radius:18px;box-shadow:0 18px 36px rgba(15,23,42,.12)}
.invitation-stage-10b .gallery-layout-scrapbook .gallery-item:nth-child(odd){transform:rotate(-1.1deg)}
.invitation-stage-10b .gallery-layout-scrapbook .gallery-item:nth-child(even){transform:rotate(.9deg)}
.invitation-stage-10b .gallery-layout-scrapbook .gallery-item:nth-child(5n+1){grid-column:span 5}
.invitation-stage-10b .gallery-layout-scrapbook .gallery-item img{border-radius:12px}

/* Gift variants */
.invitation-stage-10b .gift-layout-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.invitation-stage-10b .gift-layout-columns .gift-card{height:100%;border-radius:22px}
.invitation-stage-10b .gift-layout-garden .gift-card{border-radius:30px 30px 16px 30px;background:linear-gradient(180deg,color-mix(in srgb,var(--theme-card) 95%, white),color-mix(in srgb,var(--theme-card) 100%, transparent))}
.invitation-stage-10b .gift-layout-paper .gift-card{background:linear-gradient(180deg,#fffdf8,#f8efe1);color:#4e3b2f;border-radius:18px;box-shadow:0 18px 36px rgba(93,64,55,.14)}
.invitation-stage-10b .gift-layout-calm .gift-card{border-radius:26px;background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(255,255,255,.9));box-shadow:0 14px 32px rgba(15,23,42,.08)}
.invitation-stage-10b .gift-layout-minimaldark .gift-card{background:linear-gradient(180deg,rgba(20,22,28,.96),rgba(18,20,26,.92));color:#f6f1eb;border-color:rgba(255,255,255,.08);border-radius:16px}
.invitation-stage-10b .gift-layout-minimaldark .gift-card p,.invitation-stage-10b .gift-layout-minimaldark .gift-card .muted{color:rgba(255,255,255,.74)}

/* Wishes */
.invitation-stage-10b .section-wishes-journal .wish-item{border-left:3px solid color-mix(in srgb,var(--theme-accent) 40%, transparent)}

/* Per-theme nudges */
.public-theme.wedding-luxury-burgundy.invitation-stage-10b .gallery-layout-magazine .gallery-item,
.public-theme.wedding-dark-editorial.invitation-stage-10b .gallery-layout-magazine .gallery-item{border-radius:16px}
.public-theme.wedding-botanical-sage.invitation-stage-10b .gallery-layout-mosaic .gallery-item,
.public-theme.wedding-tropical-romantic.invitation-stage-10b .gallery-layout-mosaic .gallery-item{border-radius:28px 28px 16px 28px}
.public-theme.wedding-javanese-royal.invitation-stage-10b .section-quote-royal .quote-card{border-width:2px}
.public-theme.wedding-soft-beige-islami.invitation-stage-10b .section-quote-prayer .quote-card::before{border-color:color-mix(in srgb,var(--theme-accent) 24%, transparent)}
.public-theme.wedding-korean-clean-minimal.invitation-stage-10b .gallery-layout-classicgrid .gallery-item,
.public-theme.event-formal-elegant.invitation-stage-10b .gallery-layout-classicgrid .gallery-item{box-shadow:none;border:1px solid var(--theme-border)}

@media (max-width: 960px){
  .invitation-stage-10b .gallery-layout-classicgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .invitation-stage-10b .gallery-layout-mosaic,.invitation-stage-10b .gallery-layout-magazine,.invitation-stage-10b .gallery-layout-scrapbook{grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:auto}
  .invitation-stage-10b .gallery-layout-mosaic .gallery-item,.invitation-stage-10b .gallery-layout-scrapbook .gallery-item{grid-column:span 3}
  .invitation-stage-10b .gallery-layout-magazine .gallery-item:nth-child(4n+1){grid-column:span 6;grid-row:span 1}
  .invitation-stage-10b .gallery-layout-magazine .gallery-item:nth-child(4n+2),.invitation-stage-10b .gallery-layout-magazine .gallery-item:nth-child(4n+3),.invitation-stage-10b .gallery-layout-magazine .gallery-item:nth-child(4n+4){grid-column:span 3}
  .invitation-stage-10b .event-layout-cleanlist .event-layout-card{grid-template-columns:1fr}
}
@media (max-width: 768px){
  .invitation-stage-10b .section-quote-editorial .quote-card{padding:32px 22px 28px 26px}
  .invitation-stage-10b .section-quote-editorial .quote-card::before{left:14px;top:12px;font-size:68px}
  .invitation-stage-10b .section-quote-prayer .quote-card{padding-top:34px}
  .invitation-stage-10b .event-layout-tickets,.invitation-stage-10b .event-layout-softcards,.invitation-stage-10b .gift-layout-columns,.invitation-stage-10b .gift-layout-ribbon,.invitation-stage-10b .gift-layout-garden,.invitation-stage-10b .gift-layout-paper,.invitation-stage-10b .gift-layout-calm,.invitation-stage-10b .gift-layout-minimaldark{grid-template-columns:1fr!important}
  .invitation-stage-10b .event-layout-timeline::before,.invitation-stage-10b .event-layout-timeline-soft::before{left:14px}
  .invitation-stage-10b .event-layout-timeline .event-layout-card,.invitation-stage-10b .event-layout-timeline-soft .event-layout-card{padding-left:40px}
  .invitation-stage-10b .event-layout-timeline .event-layout-card::before,.invitation-stage-10b .event-layout-timeline-soft .event-layout-card::before{left:6px}
  .invitation-stage-10b .gallery-layout-classicgrid,.invitation-stage-10b .gallery-layout-mosaic,.invitation-stage-10b .gallery-layout-magazine,.invitation-stage-10b .gallery-layout-scrapbook{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .invitation-stage-10b .gallery-layout-classicgrid .gallery-item,
  .invitation-stage-10b .gallery-layout-mosaic .gallery-item,
  .invitation-stage-10b .gallery-layout-mosaic .gallery-item:nth-child(4n+1),
  .invitation-stage-10b .gallery-layout-mosaic .gallery-item:nth-child(6n+3),
  .invitation-stage-10b .gallery-layout-magazine .gallery-item,
  .invitation-stage-10b .gallery-layout-magazine .gallery-item:nth-child(4n+1),
  .invitation-stage-10b .gallery-layout-magazine .gallery-item:nth-child(4n+2),
  .invitation-stage-10b .gallery-layout-magazine .gallery-item:nth-child(4n+3),
  .invitation-stage-10b .gallery-layout-magazine .gallery-item:nth-child(4n+4),
  .invitation-stage-10b .gallery-layout-scrapbook .gallery-item,
  .invitation-stage-10b .gallery-layout-scrapbook .gallery-item:nth-child(5n+1){grid-column:span 1;transform:none}
  .invitation-stage-10b .gallery-layout-scrapbook .gallery-item{padding:6px}
}


/* Stage 10C - user selectable section variants + illustrative ornament profiles */
.layout-variant-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:10px}
.theme-choice-form .compact-field label{font-size:12px;letter-spacing:.02em}
.theme-picker-card .chip{white-space:nowrap}
.theme-picker-card .theme-card-preview{overflow:hidden;position:relative}
.theme-picker-card .theme-card-preview::after{content:"";position:absolute;inset:auto -20% -30% auto;width:180px;height:180px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--theme-accent, #d4af37) 18%, white),transparent 70%);pointer-events:none;opacity:.9}
.public-theme.ornament-signature .section-title h2::after,.public-theme.ornament-signature .gift-group-head h3::after{content:"";display:block;width:72px;height:2px;margin:12px auto 0;background:linear-gradient(90deg,transparent,var(--theme-accent),transparent)}
.public-theme.ornament-editorial .quote-card::before,.public-theme.ornament-editorial .event-card::before{content:"";position:absolute;inset:14px;border:1px solid color-mix(in srgb,var(--theme-accent) 28%, transparent);pointer-events:none;border-radius:inherit;opacity:.7}
.public-theme.ornament-floral .section-title,.public-theme.ornament-bloom .section-title{position:relative}
.public-theme.ornament-floral .section-title::before,.public-theme.ornament-bloom .section-title::before{content:"✦";position:absolute;left:50%;top:-18px;transform:translateX(-50%);font-size:18px;color:var(--theme-accent);opacity:.9}
.public-theme.ornament-royal .quote-card,.public-theme.ornament-royal .gift-card,.public-theme.ornament-royal .event-card{box-shadow:0 20px 48px rgba(91,31,42,.18);border-width:1.4px}
.public-theme.ornament-earthy .story-item,.public-theme.ornament-earthy .gift-card{position:relative}
.public-theme.ornament-earthy .story-item::after,.public-theme.ornament-earthy .gift-card::after{content:"";position:absolute;right:18px;bottom:14px;width:40px;height:12px;border-radius:999px;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--theme-accent) 36%, transparent),transparent);opacity:.85}
.public-theme.ornament-prayer .quote-card,.public-theme.ornament-prayer .map-card{background-image:linear-gradient(180deg,rgba(255,255,255,.98),rgba(255,255,255,.94)),radial-gradient(circle at top right,color-mix(in srgb,var(--theme-accent) 12%, white),transparent 56%)}
.public-theme.ornament-bloom .gallery-item,.public-theme.ornament-floral .gallery-item{border-radius:30px 30px 14px 30px}
.invitation-stage-10b .quote-card{position:relative;overflow:hidden}
.invitation-stage-10c .section-quote-frame .quote-card{padding:34px 32px;border-radius:28px}
.invitation-stage-10c .section-quote-editorial .quote-card{border-radius:18px;padding:34px 34px 36px;background:linear-gradient(180deg,color-mix(in srgb,var(--theme-card) 98%, white),color-mix(in srgb,var(--theme-card) 92%, transparent))}
.invitation-stage-10c .section-quote-editorial .quote-card .quote-text{font-size:1.14rem;line-height:1.9;max-width:32ch;margin:18px auto 0}
.invitation-stage-10c .section-quote-floral .quote-card{border-radius:32px 32px 16px 32px;padding:34px 30px;background:linear-gradient(180deg,color-mix(in srgb,var(--theme-card) 96%, white),rgba(255,255,255,.95))}
.invitation-stage-10c .section-quote-minimal .quote-card{box-shadow:none;border-radius:18px;border:1px solid var(--theme-border);background:rgba(255,255,255,.88)}
.invitation-stage-10c .section-quote-prayer .quote-card{border-radius:28px;padding:36px 32px 34px}
.invitation-stage-10c .section-quote-paper .quote-card{border-radius:18px;background:linear-gradient(180deg,#fffdf8,#f8efe1);color:#4e3b2f}
.invitation-stage-10c .section-quote-royal .quote-card{border-radius:30px;padding:36px 34px;border:1px solid color-mix(in srgb,var(--theme-accent) 32%, transparent)}
.invitation-stage-10c .gift-layout-ribbon .gift-card{position:relative;overflow:hidden}
.invitation-stage-10c .gift-layout-ribbon .gift-card::before{content:"";position:absolute;top:0;left:24px;right:24px;height:6px;border-radius:999px;background:linear-gradient(90deg,var(--theme-accent),color-mix(in srgb,var(--theme-hero-2) 75%, white))}
.invitation-stage-10c .maps-layout-spotlight .map-card:hover,.invitation-stage-10c .gift-card:hover,.invitation-stage-10c .event-card:hover{transform:translateY(-2px)}
.theme-layout-note{margin-top:10px;font-size:12px;color:var(--muted);line-height:1.5}
@media (max-width: 900px){.layout-variant-grid{grid-template-columns:1fr}}

/* Stage 10D: style presets */
.chip-soft{background:rgba(124,58,237,.08);border-color:rgba(124,58,237,.14);color:#5b21b6}
.theme-choice-form [data-theme-preset]{font-weight:600}
.theme-choice-form small.muted{display:block;margin-top:6px;line-height:1.45}
.theme-picker-body .chip-soft{background:rgba(15,23,42,.05);border-color:rgba(15,23,42,.08);color:var(--text)}
.theme-preset-signature .opening-card{box-shadow:0 24px 70px rgba(15,23,42,.22)}
.theme-preset-editorial-bold .opening-card{box-shadow:0 28px 80px rgba(2,6,23,.34)}
.theme-preset-romantic-garden .opening-card{box-shadow:0 24px 72px rgba(46,111,90,.16)}
.theme-preset-minimal-korean .opening-card{box-shadow:0 20px 56px rgba(148,163,184,.16)}
.theme-preset-luxury-formal .opening-card,.theme-preset-royal-jawa .opening-card{box-shadow:0 28px 78px rgba(91,31,42,.18)}


/* ===== Stage 11A: Cover + Hero Variations & Safe Portraits ===== */
.invitation-stage-11a .opening-screen,
.invitation-stage-11a .public-hero{
  background-repeat:no-repeat!important;
  background-size:cover!important;
  background-position:center center!important;
}
.invitation-stage-11a .opening-inner,
.invitation-stage-11a .hero-inner{
  width:100%;
}
.invitation-stage-11a .hero-shell{
  display:grid;
  width:100%;
  gap:clamp(20px,4vw,52px);
  align-items:center;
}
.invitation-stage-11a .opening-card,
.invitation-stage-11a .invite-card.modern{
  position:relative;
  overflow:hidden;
}
.invitation-stage-11a .opening-card::after,
.invitation-stage-11a .invite-card.modern::after{
  content:'';
  position:absolute;
  inset:auto -18% -22% auto;
  width:180px;
  height:180px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,.22), transparent 68%);
  pointer-events:none;
}
.invitation-stage-11a .hero-side-visual{justify-content:center;align-items:center}
.invitation-stage-11a .hero-side-stack{width:min(100%,620px);display:grid;gap:18px;align-items:stretch}
.invitation-stage-11a .hero-side-card{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  overflow:hidden;
  min-height:0;
}
.invitation-stage-11a .hero-side-card img,
.invitation-stage-11a .person-photo{
  display:block;
  width:100%;
  object-fit:contain!important;
  object-position:center top!important;
  background:
    radial-gradient(circle at top, rgba(255,255,255,.98) 0, rgba(255,255,255,.92) 34%, rgba(255,255,255,.72) 62%, transparent 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--theme-soft) 92%, white), color-mix(in srgb, var(--theme-bg) 85%, white));
}
.invitation-stage-11a .hero-side-card img{
  height:min(62vh, 520px);
  padding:16px 16px 0;
}
.invitation-stage-11a .person-photo{
  height:400px;
  padding:14px 14px 0;
}
.invitation-stage-11a .person-photo-wrap,
.invitation-stage-11a .hero-side-card{
  background:linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.76));
}
.invitation-stage-11a .hero-side-card figcaption,
.invitation-stage-11a .person-body{
  position:relative;
  z-index:1;
}
.invitation-stage-11a .hero-side-card figcaption{
  padding:14px 16px 18px;
}
.invitation-stage-11a .hero-side-fallback{
  min-height:min(62vh,520px);
  display:grid;
  place-items:center;
  padding:18px;
}
.invitation-stage-11a .public-theme.wedding-dark-editorial .hero-side-card,
.invitation-stage-11a .public-theme.wedding-dark-editorial .person-photo-wrap{
  background:linear-gradient(180deg, rgba(20,22,26,.98), rgba(24,26,31,.9));
}
.invitation-stage-11a .public-theme.wedding-dark-editorial .hero-side-card img,
.invitation-stage-11a .public-theme.wedding-dark-editorial .person-photo{
  background:
    radial-gradient(circle at top, rgba(255,255,255,.08), rgba(255,255,255,.02) 45%, transparent 100%),
    linear-gradient(180deg, #1e2228, #13161b);
}
.invitation-stage-11a .public-theme.wedding-dark-editorial .hero-side-fallback{
  background:linear-gradient(180deg, #1e2228, #13161b);
}

/* theme-specific cover + hero personalities */
.invitation-stage-11a .public-theme.wedding-modern-elegance .opening-inner,
.invitation-stage-11a .public-theme.wedding-modern-elegance .hero-inner{display:grid;align-items:center}
.invitation-stage-11a .public-theme.wedding-modern-elegance .hero-shell{grid-template-columns:minmax(300px,1.05fr) minmax(280px,.95fr)}
.invitation-stage-11a .public-theme.wedding-modern-elegance .hero-side-stack{grid-template-columns:repeat(2,minmax(0,1fr))}
.invitation-stage-11a .public-theme.wedding-modern-elegance .hero-side-card:nth-child(2){transform:translateY(34px)}
.invitation-stage-11a .public-theme.wedding-modern-elegance .opening-card,
.invitation-stage-11a .public-theme.wedding-modern-elegance .invite-card.modern{border-radius:34px 34px 34px 14px}

.invitation-stage-11a .public-theme.wedding-luxury-burgundy .opening-inner,
.invitation-stage-11a .public-theme.wedding-luxury-burgundy .hero-inner{display:grid;align-items:end}
.invitation-stage-11a .public-theme.wedding-luxury-burgundy .hero-shell{grid-template-columns:minmax(300px,.95fr) minmax(320px,1.05fr)}
.invitation-stage-11a .public-theme.wedding-luxury-burgundy .invite-card.modern{order:2;transform:translateY(26px);border-radius:18px 18px 38px 18px}
.invitation-stage-11a .public-theme.wedding-luxury-burgundy .hero-side-visual{order:1}
.invitation-stage-11a .public-theme.wedding-luxury-burgundy .hero-side-stack{grid-template-columns:1fr;max-width:520px}
.invitation-stage-11a .public-theme.wedding-luxury-burgundy .hero-side-card:nth-child(1){margin-right:48px}
.invitation-stage-11a .public-theme.wedding-luxury-burgundy .hero-side-card:nth-child(2){margin-left:72px;margin-top:-34px}
.invitation-stage-11a .public-theme.wedding-luxury-burgundy .opening-card{max-width:680px;margin-left:auto;border-radius:18px 18px 36px 18px}

.invitation-stage-11a .public-theme.wedding-botanical-sage .opening-inner,
.invitation-stage-11a .public-theme.wedding-botanical-sage .hero-inner{display:grid;place-items:center;text-align:center}
.invitation-stage-11a .public-theme.wedding-botanical-sage .hero-shell{grid-template-columns:1fr;max-width:980px;margin:0 auto}
.invitation-stage-11a .public-theme.wedding-botanical-sage .invite-card.modern{margin:0 auto;max-width:760px;border-radius:44px;backdrop-filter:blur(12px)}
.invitation-stage-11a .public-theme.wedding-botanical-sage .hero-side-stack{grid-template-columns:repeat(2,minmax(0,1fr));max-width:700px}
.invitation-stage-11a .public-theme.wedding-botanical-sage .hero-side-card{border-radius:180px 180px 30px 30px}
.invitation-stage-11a .public-theme.wedding-botanical-sage .hero-side-card:nth-child(1){transform:translateY(12px)}
.invitation-stage-11a .public-theme.wedding-botanical-sage .hero-side-card:nth-child(2){transform:translateY(-18px)}

.invitation-stage-11a .public-theme.wedding-classic-white-gold .opening-inner,
.invitation-stage-11a .public-theme.wedding-classic-white-gold .hero-inner{display:grid;place-items:center;text-align:center}
.invitation-stage-11a .public-theme.wedding-classic-white-gold .hero-shell{grid-template-columns:1fr;max-width:980px;margin:0 auto}
.invitation-stage-11a .public-theme.wedding-classic-white-gold .invite-card.modern{max-width:740px;margin:0 auto;border-radius:30px;border:1px solid rgba(201,166,75,.24)}
.invitation-stage-11a .public-theme.wedding-classic-white-gold .hero-side-stack{grid-template-columns:repeat(2,minmax(0,1fr));max-width:760px}
.invitation-stage-11a .public-theme.wedding-classic-white-gold .hero-side-card:nth-child(1){transform:translateY(18px)}
.invitation-stage-11a .public-theme.wedding-classic-white-gold .hero-side-card:nth-child(2){transform:translateY(-12px)}

.invitation-stage-11a .public-theme.wedding-dark-editorial .opening-inner,
.invitation-stage-11a .public-theme.wedding-dark-editorial .hero-inner{display:grid;align-items:center}
.invitation-stage-11a .public-theme.wedding-dark-editorial .hero-shell{grid-template-columns:minmax(300px,.9fr) minmax(340px,1.1fr)}
.invitation-stage-11a .public-theme.wedding-dark-editorial .invite-card.modern{max-width:none;min-height:420px;display:flex;flex-direction:column;justify-content:flex-end;border-radius:14px}
.invitation-stage-11a .public-theme.wedding-dark-editorial .hero-side-stack{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.invitation-stage-11a .public-theme.wedding-dark-editorial .hero-side-card:nth-child(1){grid-column:span 2}
.invitation-stage-11a .public-theme.wedding-dark-editorial .hero-side-card img{height:clamp(240px,42vw,520px)}
.invitation-stage-11a .public-theme.wedding-dark-editorial .opening-card{max-width:760px;border-radius:14px}

.invitation-stage-11a .public-theme.wedding-rustic-earth-tone .opening-inner,
.invitation-stage-11a .public-theme.wedding-rustic-earth-tone .hero-inner{display:grid;align-items:center}
.invitation-stage-11a .public-theme.wedding-rustic-earth-tone .hero-shell{grid-template-columns:minmax(280px,1fr) minmax(280px,1fr)}
.invitation-stage-11a .public-theme.wedding-rustic-earth-tone .hero-side-stack{grid-template-columns:repeat(2,minmax(0,1fr));transform:rotate(-1.5deg)}
.invitation-stage-11a .public-theme.wedding-rustic-earth-tone .hero-side-card:nth-child(1){transform:rotate(-2deg) translateY(10px)}
.invitation-stage-11a .public-theme.wedding-rustic-earth-tone .hero-side-card:nth-child(2){transform:rotate(2deg) translateY(-8px)}
.invitation-stage-11a .public-theme.wedding-rustic-earth-tone .opening-card,
.invitation-stage-11a .public-theme.wedding-rustic-earth-tone .invite-card.modern{border-radius:42px 42px 18px 42px}

.invitation-stage-11a .public-theme.wedding-soft-beige-islami .opening-inner,
.invitation-stage-11a .public-theme.wedding-soft-beige-islami .hero-inner{display:grid;place-items:center;text-align:center}
.invitation-stage-11a .public-theme.wedding-soft-beige-islami .hero-shell{grid-template-columns:1fr;max-width:920px;margin:0 auto}
.invitation-stage-11a .public-theme.wedding-soft-beige-islami .invite-card.modern,
.invitation-stage-11a .public-theme.wedding-soft-beige-islami .opening-card{max-width:720px;margin:0 auto;border-radius:38px}
.invitation-stage-11a .public-theme.wedding-soft-beige-islami .hero-side-stack{grid-template-columns:repeat(2,minmax(0,1fr));max-width:620px}
.invitation-stage-11a .public-theme.wedding-soft-beige-islami .hero-side-card{border-radius:160px 160px 22px 22px}

.invitation-stage-11a .public-theme.wedding-javanese-royal .opening-inner,
.invitation-stage-11a .public-theme.wedding-javanese-royal .hero-inner{display:grid;place-items:center;text-align:center}
.invitation-stage-11a .public-theme.wedding-javanese-royal .hero-shell{grid-template-columns:1fr;max-width:980px;margin:0 auto}
.invitation-stage-11a .public-theme.wedding-javanese-royal .invite-card.modern,
.invitation-stage-11a .public-theme.wedding-javanese-royal .opening-card{max-width:760px;margin:0 auto;border-radius:18px;border-width:2px}
.invitation-stage-11a .public-theme.wedding-javanese-royal .hero-side-stack{grid-template-columns:repeat(2,minmax(0,1fr));max-width:760px}
.invitation-stage-11a .public-theme.wedding-javanese-royal .hero-side-card{border:2px solid color-mix(in srgb,var(--theme-accent) 24%, white)}

.invitation-stage-11a .public-theme.wedding-korean-clean-minimal .opening-inner,
.invitation-stage-11a .public-theme.wedding-korean-clean-minimal .hero-inner{display:grid;align-items:center}
.invitation-stage-11a .public-theme.wedding-korean-clean-minimal .hero-shell{grid-template-columns:minmax(300px,.88fr) minmax(360px,1.12fr);gap:58px}
.invitation-stage-11a .public-theme.wedding-korean-clean-minimal .invite-card.modern{max-width:560px;box-shadow:0 18px 42px rgba(17,24,39,.06)}
.invitation-stage-11a .public-theme.wedding-korean-clean-minimal .hero-side-stack{grid-template-columns:1fr 1fr;max-width:640px}
.invitation-stage-11a .public-theme.wedding-korean-clean-minimal .hero-side-card{border-radius:22px;box-shadow:0 18px 38px rgba(17,24,39,.08)}
.invitation-stage-11a .public-theme.wedding-korean-clean-minimal .hero-side-card:nth-child(1){grid-column:span 2}
.invitation-stage-11a .public-theme.wedding-korean-clean-minimal .hero-side-card:nth-child(2){max-width:calc(50% - 9px)}

.invitation-stage-11a .public-theme.wedding-tropical-romantic .opening-inner,
.invitation-stage-11a .public-theme.wedding-tropical-romantic .hero-inner{display:grid;align-items:center}
.invitation-stage-11a .public-theme.wedding-tropical-romantic .hero-shell{grid-template-columns:minmax(290px,.95fr) minmax(320px,1.05fr)}
.invitation-stage-11a .public-theme.wedding-tropical-romantic .hero-side-stack{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.invitation-stage-11a .public-theme.wedding-tropical-romantic .hero-side-card:nth-child(1){transform:translateY(24px) rotate(-1.2deg)}
.invitation-stage-11a .public-theme.wedding-tropical-romantic .hero-side-card:nth-child(2){transform:translateY(-12px) rotate(1.4deg)}
.invitation-stage-11a .public-theme.wedding-tropical-romantic .opening-card,
.invitation-stage-11a .public-theme.wedding-tropical-romantic .invite-card.modern{border-radius:44px 18px 44px 18px}

.invitation-stage-11a .public-theme.khitan-ceria-islami .hero-shell{grid-template-columns:minmax(290px,.95fr) minmax(280px,1.05fr)}
.invitation-stage-11a .public-theme.birthday-fun-luxe .hero-shell{grid-template-columns:minmax(280px,.92fr) minmax(300px,1.08fr)}
.invitation-stage-11a .public-theme.event-formal-elegant .hero-shell{grid-template-columns:minmax(300px,.92fr) minmax(320px,1.08fr)}

/* mobile-safe portrait rules */
@media (max-width: 1024px){
  .invitation-stage-11a .hero-shell,
  .invitation-stage-11a .public-theme.wedding-korean-clean-minimal .hero-shell,
  .invitation-stage-11a .public-theme.wedding-luxury-burgundy .hero-shell,
  .invitation-stage-11a .public-theme.wedding-modern-elegance .hero-shell,
  .invitation-stage-11a .public-theme.wedding-rustic-earth-tone .hero-shell,
  .invitation-stage-11a .public-theme.wedding-tropical-romantic .hero-shell,
  .invitation-stage-11a .public-theme.khitan-ceria-islami .hero-shell,
  .invitation-stage-11a .public-theme.birthday-fun-luxe .hero-shell,
  .invitation-stage-11a .public-theme.event-formal-elegant .hero-shell,
  .invitation-stage-11a .public-theme.wedding-dark-editorial .hero-shell{grid-template-columns:1fr!important}
  .invitation-stage-11a .hero-side-stack{max-width:680px;width:100%;margin-inline:auto}
  .invitation-stage-11a .public-theme.wedding-luxury-burgundy .hero-side-card:nth-child(1),
  .invitation-stage-11a .public-theme.wedding-luxury-burgundy .hero-side-card:nth-child(2),
  .invitation-stage-11a .public-theme.wedding-modern-elegance .hero-side-card:nth-child(2),
  .invitation-stage-11a .public-theme.wedding-rustic-earth-tone .hero-side-card,
  .invitation-stage-11a .public-theme.wedding-tropical-romantic .hero-side-card{margin:0;transform:none}
}
@media (max-width: 768px){
  .invitation-stage-11a .opening-card,
  .invitation-stage-11a .invite-card.modern{padding:22px}
  .invitation-stage-11a .hero-side-stack{grid-template-columns:1fr!important;gap:14px}
  .invitation-stage-11a .hero-side-card img{height:min(58vh, 360px);padding:12px 12px 0}
  .invitation-stage-11a .person-photo{height:300px;padding:10px 10px 0}
  .invitation-stage-11a .public-theme.wedding-korean-clean-minimal .hero-shell{gap:24px}
  .invitation-stage-11a .public-theme.wedding-botanical-sage .hero-side-card,
  .invitation-stage-11a .public-theme.wedding-soft-beige-islami .hero-side-card{border-radius:120px 120px 20px 20px}
}

/* Stage 11B photo focus editor + cover focal point */
.focus-inline{font-size:13px;line-height:1.5}
.focus-editor{display:grid;gap:10px;align-self:start}
.focus-editor.full{grid-column:1/-1}
.focus-stage{position:relative;border-radius:22px;overflow:hidden;min-height:280px;background:#f8fafc;border:1px dashed var(--border);cursor:grab;touch-action:none}
.focus-stage:active{cursor:grabbing}
.focus-stage.cover{min-height:260px;background-size:cover;background-repeat:no-repeat;background-position:50% 40%}
.focus-stage.cover.mobile{min-height:340px;max-width:260px}
.focus-stage.portrait{aspect-ratio:3/4;max-width:340px;background:linear-gradient(135deg,#f8fafc,#eef2ff)}
.focus-stage img{width:100%;height:100%;object-fit:cover;object-position:50% 35%}
.focus-empty{position:absolute;inset:0;display:grid;place-items:center;padding:18px;text-align:center;color:var(--muted);font-weight:600;background:linear-gradient(135deg,rgba(248,250,252,.92),rgba(241,245,249,.86))}
.focus-marker{position:absolute;width:22px;height:22px;border-radius:999px;border:3px solid #fff;background:rgba(124,58,237,.82);box-shadow:0 10px 22px rgba(15,23,42,.24);transform:translate(-50%,-50%);pointer-events:none}
.focus-marker::after{content:'';position:absolute;inset:4px;border-radius:999px;border:2px solid rgba(255,255,255,.85)}
.focus-meta{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:13px;color:var(--muted)}
.focus-meta strong{color:var(--text)}
@media(max-width:768px){.focus-stage.portrait{max-width:none}.focus-stage.cover.mobile{max-width:none}}

.opening-screen,.public-hero{background-image:var(--cover-desktop-image)!important;background-position:var(--cover-desktop-position)!important;background-size:cover!important;background-repeat:no-repeat!important}
@media(max-width:768px){.opening-screen,.public-hero{background-image:var(--cover-mobile-image)!important;background-position:var(--cover-mobile-position)!important}}


/* Stage 11B hotfix: restore full-frame couple photos while keeping saved focus position */
.invitation-stage-11a .hero-side-card,
.invitation-stage-11a .person-card,
.invitation-stage-11a .person-photo-wrap{
  overflow:hidden;
}
.invitation-stage-11a .hero-side-card img,
.invitation-stage-11a .person-photo{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover!important;
  background:none!important;
  padding:0!important;
}
.invitation-stage-11a .hero-side-card img{
  height:min(62vh, 520px)!important;
  min-height:340px;
  border-radius:inherit;
}
.invitation-stage-11a .hero-side-card.hero-frame-circle img,
.invitation-stage-11a .hero-side-card.hero-frame-soft-circle img,
.invitation-stage-11a .hero-side-card.hero-frame-round img,
.invitation-stage-11a .hero-side-card.hero-frame-arch img,
.invitation-stage-11a .hero-side-card.hero-frame-editorial img,
.invitation-stage-11a .hero-side-card.hero-frame-royal img,
.invitation-stage-11a .hero-side-card.hero-frame-organic img{
  border-radius:inherit;
}
.invitation-stage-11a .person-photo-wrap{
  padding:0!important;
  border-radius:clamp(20px, 3vw, 28px);
  background:transparent!important;
}
.invitation-stage-11a .person-photo{
  height:420px!important;
  min-height:420px;
  border-radius:inherit;
}
.invitation-stage-11a .hero-side-card{
  padding:0!important;
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
}
.invitation-stage-11a .hero-side-card figcaption{
  margin-top:0;
  padding:16px 12px 4px;
}
.invitation-stage-11a .person-card{
  background:var(--theme-card);
}
.invitation-stage-11a .hero-side-fallback{
  min-height:340px;
}
@media (max-width: 920px){
  .invitation-stage-11a .hero-side-card img{
    min-height:300px;
  }
  .invitation-stage-11a .person-photo{
    height:360px!important;
    min-height:360px;
  }
}
@media (max-width: 768px){
  .invitation-stage-11a .hero-side-card img{
    height:360px!important;
    min-height:280px;
  }
  .invitation-stage-11a .person-photo{
    height:320px!important;
    min-height:320px;
  }
}

/* Stage 11C editor workspace upgrade */
.editor-workspace{--editor-sticky-top:16px;--editor-toolbar-gap:18px;display:grid;grid-template-columns:240px minmax(0,1fr);gap:22px;align-items:start;min-width:0;overflow-x:clip}
.editor-main-panel{min-width:0;overflow-x:clip}
.editor-side-nav{position:relative;top:auto;max-height:none;overflow:visible;padding-right:0;min-width:0}
.editor-side-card{position:sticky;top:calc(var(--editor-sticky-top) + 108px);background:#fff;border:1px solid var(--border);border-radius:24px;padding:18px;box-shadow:var(--shadow);max-height:calc(100svh - 132px);overflow:auto;scrollbar-width:thin}
.editor-side-card h3{margin:6px 0 12px}
.editor-section-links{display:grid;gap:8px}
.editor-section-links a{display:flex;align-items:center;gap:8px;padding:11px 12px;border-radius:14px;color:var(--text);background:#f8fafc;border:1px solid transparent;transition:.2s ease}
.editor-section-links a:hover,.editor-section-links a.is-active{background:#eef2ff;border-color:#c7d2fe;color:var(--primary)}
.editor-sticky-shell{position:sticky;top:var(--editor-sticky-top);z-index:24;margin-bottom:16px}
.editor-primary-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:start;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border:1px solid rgba(148,163,184,.18);box-shadow:0 18px 40px rgba(15,23,42,.08);padding:14px 16px;border-radius:22px;min-width:0}
.editor-quick-links{display:flex;gap:10px;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;padding-bottom:4px;scroll-behavior:smooth;scrollbar-width:none;-ms-overflow-style:none;min-width:0}
.editor-quick-links::-webkit-scrollbar,.editor-mobile-track::-webkit-scrollbar{display:none}
.editor-quick-links .btn,.editor-primary-actions .btn{padding:11px 14px;white-space:nowrap;flex:0 0 auto}
.editor-primary-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.editor-save-btn{box-shadow:0 14px 28px rgba(79,70,229,.24);position:relative;top:auto}
.switch-card{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--border);border-radius:18px;padding:10px 12px;min-width:260px;max-width:100%}
.switch-card input{position:absolute;opacity:0;pointer-events:none}
.switch-ui{position:relative;width:52px;height:30px;background:#e5e7eb;border-radius:999px;flex:0 0 auto;transition:.22s ease}
.switch-ui::after{content:'';position:absolute;top:4px;left:4px;width:22px;height:22px;border-radius:999px;background:#fff;box-shadow:0 4px 10px rgba(15,23,42,.15);transition:.22s ease}
.switch-card input:checked + .switch-ui{background:linear-gradient(135deg,#4f46e5,#7c3aed)}
.switch-card input:checked + .switch-ui::after{left:26px}
.switch-copy{display:grid;gap:3px;min-width:0}
.switch-copy strong{font-size:14px;color:var(--text)}
.switch-copy small{font-size:12px;color:var(--muted)}
.editor-form-enhanced{display:grid;gap:20px;min-width:0}
.editor-card-block{scroll-margin-top:170px;min-width:0}
.editor-anchor-target{scroll-margin-top:170px;height:1px}
.editor-bottom-save{padding-bottom:88px}
.editor-mobile-bottom-nav{display:none}
.media-upload-field input[type=file]{display:block;width:100%;padding:14px 14px;border:1px dashed #cbd5e1;border-radius:16px;background:#f8fafc}
.upload-card{display:grid;gap:10px;padding:14px;border:1px solid #e2e8f0;border-radius:18px;background:#f8fafc;min-width:0}
.media-upload-field .check{margin-top:4px;display:inline-flex}
.quote-preset-wrap small{display:block;margin-top:8px}
.focus-source{display:none!important}
.photo-modal[hidden]{display:none!important}
.photo-modal{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;padding:20px}
.photo-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.56);backdrop-filter:blur(6px)}
.photo-modal-dialog{position:relative;z-index:1;width:min(920px,100%);max-width:100%;background:#fff;border-radius:28px;box-shadow:0 30px 80px rgba(15,23,42,.25);padding:20px;overflow:hidden}
.photo-modal-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:14px}
.photo-modal-body{display:grid;grid-template-columns:minmax(280px,1fr) minmax(240px,.7fr);gap:18px;align-items:start;min-width:0}
.photo-modal-stage{max-width:100%;min-height:420px;overflow:hidden}
.photo-modal-stage img{width:100%;height:100%;object-fit:cover;will-change:transform}
.photo-modal-controls{display:grid;gap:14px;min-width:0}
.photo-modal-controls .field{margin:0}
.photo-modal-meta{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid var(--border);border-radius:16px;padding:12px 14px;background:#f8fafc}
body.modal-open{overflow:hidden}
@media(max-width:1100px){.editor-workspace{--editor-sticky-top:12px;grid-template-columns:1fr}.desktop-editor-nav{display:none}.editor-primary-toolbar{grid-template-columns:1fr}.editor-sticky-shell{top:var(--editor-sticky-top)}}
@media(max-width:768px){
  .editor-workspace{--editor-sticky-top:8px;--editor-toolbar-gap:14px}
  .editor-primary-toolbar{padding:12px;gap:12px;border-radius:18px}
  .editor-quick-links{padding-bottom:2px;padding-right:4px}
  .editor-primary-actions{justify-content:stretch;display:grid;grid-template-columns:1fr;align-items:stretch;min-width:0}
  .switch-card{min-width:0;width:100%}
  .editor-sticky-shell{top:var(--editor-sticky-top)}
  .editor-card-block,.editor-anchor-target{scroll-margin-top:198px}
  .editor-mobile-bottom-nav{display:block;position:fixed;left:50%;transform:translateX(-50%);bottom:10px;z-index:30;margin-top:0;width:min(calc(100vw - 16px),680px)}
  .editor-mobile-track{display:flex;gap:10px;overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;padding:10px 12px;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border:1px solid rgba(148,163,184,.18);border-radius:18px;box-shadow:0 16px 34px rgba(15,23,42,.12);max-width:100%}
  .editor-mobile-link{display:grid;justify-items:center;gap:5px;min-width:74px;padding:8px 10px;border-radius:16px;color:var(--text);background:#fff;border:1px solid #e2e8f0;transition:.2s ease;flex:0 0 auto}
  .editor-mobile-link span{font-size:18px;line-height:1}
  .editor-mobile-link small{font-size:11px;white-space:nowrap}
  .editor-mobile-link.is-active{background:#eef2ff;border-color:#c7d2fe;color:var(--primary)}
  .photo-modal{padding:10px}
  .photo-modal-dialog{padding:16px;border-radius:24px}
  .photo-modal-body{grid-template-columns:1fr}
  .photo-modal-stage{min-height:360px}
}
.hero-side-card img,.person-photo{will-change:transform}

.editor-head{margin-bottom:12px}
.editor-primary-toolbar{position:relative}
.editor-primary-toolbar .btn{border-radius:14px}
.editor-status-grid{margin-top:0}
.footer-preset-wrap small{display:block;margin-top:8px}
@media(min-width:1101px){.editor-workspace{align-items:start}}
@media(max-width:768px){.editor-mobile-bottom-nav{padding:0 2px}}

.editor-main-panel .editor-form-enhanced{padding-bottom:92px}
@media(min-width:769px){.editor-main-panel .editor-form-enhanced{padding-bottom:24px}}

/* ===== Stage 11I: Sticky editor toolbar refinement ===== */
.editor-workspace{
  --editor-sticky-top: 12px;
  --editor-toolbar-height: 152px;
}

.editor-sticky-shell{
  position: sticky !important;
  top: var(--editor-sticky-top);
  z-index: 42;
  margin-bottom: 18px;
}

.editor-primary-toolbar{
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto auto;
  align-items: stretch;
  gap: 12px;
  padding: 14px 16px;
}

.editor-quick-links{
  order: 1;
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  align-items: center;
  gap: 10px;
  padding-bottom: 2px;
}

.editor-primary-actions{
  order: 2;
  width: 100%;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
}

.editor-primary-actions > *{
  flex: 0 0 auto;
}

.editor-primary-actions .btn,
.editor-primary-actions .editor-publish-toggle,
.editor-primary-actions .editor-status-toggle,
.editor-primary-actions .toggle-wrap,
.editor-primary-actions .publish-toggle{
  position: relative;
  z-index: 1;
}

.editor-primary-actions .btn.primary{
  box-shadow: 0 14px 28px rgba(79,70,229,.22);
}

.desktop-editor-nav .editor-side-card{
  position: sticky;
  top: calc(var(--editor-sticky-top) + var(--editor-toolbar-height));
}

.editor-card-block,
.editor-anchor-target{
  scroll-margin-top: calc(var(--editor-sticky-top) + var(--editor-toolbar-height) + 16px);
}

.editor-mobile-bottom-nav{
  z-index: 36;
}

@media (max-width: 1100px){
  .editor-workspace{
    --editor-sticky-top: 8px;
    --editor-toolbar-height: 176px;
  }

  .editor-sticky-shell{
    top: calc(env(safe-area-inset-top, 0px) + var(--editor-sticky-top));
    z-index: 44;
  }

  .editor-primary-toolbar{
    border-radius: 18px;
    padding: 12px;
    gap: 10px;
  }

  .editor-primary-actions{
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .editor-primary-actions > *{
    width: 100%;
    min-width: 0;
  }

  .editor-primary-actions .btn,
  .editor-primary-actions .publish-toggle,
  .editor-primary-actions .toggle-wrap,
  .editor-primary-actions .editor-status-toggle{
    width: 100%;
  }

  .editor-card-block,
  .editor-anchor-target{
    scroll-margin-top: calc(env(safe-area-inset-top, 0px) + var(--editor-toolbar-height) + 18px);
  }
}

@media (max-width: 768px){
  .editor-workspace{
    --editor-sticky-top: 8px;
    --editor-toolbar-height: 214px;
  }

  .editor-sticky-shell{
    position: sticky !important;
    top: calc(env(safe-area-inset-top, 0px) + 8px);
    z-index: 46;
  }

  .editor-primary-toolbar{
    padding: 12px;
    border-radius: 18px;
    gap: 10px;
  }

  .editor-quick-links .btn{
    padding: 10px 13px;
    font-size: 14px;
  }

  .editor-primary-actions{
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .editor-mobile-bottom-nav{
    display: block;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    width: min(calc(100vw - 16px), 680px);
  }

  .editor-main-panel .editor-form-enhanced{
    padding-bottom: 104px;
  }
}


/* ===== Stage 11J: flash modal, sticky editor, instagram, guests responsive ===== */
.flash-modal-overlay{position:fixed;inset:0;display:grid;place-items:center;padding:18px;z-index:5000;background:rgba(15,23,42,.18);backdrop-filter:blur(3px);opacity:0;pointer-events:none;transition:opacity .25s ease}
.flash-modal-overlay.is-visible{opacity:1;pointer-events:auto}
.flash-modal-card{width:min(92vw,420px);display:grid;grid-template-columns:56px 1fr;gap:14px;align-items:center;background:#fff;border-radius:22px;padding:18px 20px;box-shadow:0 24px 70px rgba(15,23,42,.22);border:1px solid rgba(148,163,184,.18)}
.flash-modal-card.success{border-color:rgba(34,197,94,.18)}
.flash-modal-card.error{border-color:rgba(239,68,68,.18)}
.flash-modal-icon{width:56px;height:56px;border-radius:18px;display:grid;place-items:center;font-size:24px;font-weight:800;color:#fff;background:linear-gradient(135deg,#4f46e5,#7c3aed)}
.flash-modal-card.error .flash-modal-icon{background:linear-gradient(135deg,#ef4444,#f97316)}
.flash-modal-body strong{display:block;font-size:18px;margin-bottom:4px;color:var(--text)}
.flash-modal-body p{margin:0;color:var(--muted);line-height:1.55}
@media(max-width:768px){.flash-modal-card{width:min(94vw,360px);grid-template-columns:1fr;justify-items:center;text-align:center;padding:18px}.flash-modal-body strong{font-size:17px}}

.editor-workspace{overflow:visible!important;align-items:start}
.editor-main-panel{overflow:visible!important;min-width:0}
.editor-side-nav{position:sticky!important;top:calc(var(--editor-sticky-top,12px) + var(--editor-toolbar-height,152px) + 8px)!important;align-self:start;max-height:calc(100vh - (var(--editor-sticky-top,12px) + var(--editor-toolbar-height,152px) + 24px));overflow:auto;padding-right:6px}
.desktop-editor-nav .editor-side-card{position:static!important;top:auto!important}
.editor-side-card{padding:18px 16px}
.editor-side-card .eyebrow{margin-bottom:6px}
.editor-section-links a{padding:12px 14px;border-radius:16px;font-weight:600}
.editor-section-links a small{display:block;font-size:11px;color:var(--muted)}
.footer-preset-wrap,.quote-preset-wrap{display:grid;gap:8px}

.guest-responsive-table{width:100%}
.guest-responsive-table td .copy-input{width:100%}
.guest-responsive-table .guest-share-tools{gap:8px}
.guest-responsive-table .guest-share-tools .btn{flex:0 0 auto}
@media(max-width:900px){
  .search-inline{width:100%}
  .search-inline input{width:100%;min-width:0}
  .guest-responsive-table thead{display:none}
  .guest-responsive-table,.guest-responsive-table tbody,.guest-responsive-table tr,.guest-responsive-table td{display:block;width:100%}
  .guest-responsive-table tbody{display:grid;gap:14px}
  .guest-responsive-table tr{background:#fff;border:1px solid var(--border);border-radius:18px;padding:14px 14px 6px;box-shadow:var(--shadow)}
  .guest-responsive-table td{border:0;padding:8px 0}
  .guest-responsive-table td::before{content:attr(data-label);display:block;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:6px}
  .guest-responsive-table .actions-inline{min-width:0}
  .guest-responsive-table details{margin-bottom:10px}
  .guest-responsive-table .btn-row{width:100%}
  .guest-responsive-table .btn-row .btn{justify-content:center}
  .guest-responsive-table .copy-input{font-size:12px}
  .guest-empty::before{display:none!important}
}
@media(max-width:768px){
  .editor-side-nav{display:none!important}
  .topbar,.admin-sidebar{overflow-x:auto}
}

/* Stage 11K quick start refresh */
.quickstart-hero-card{padding:40px 28px}.quickstart-flow-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.quickstart-flow-pill{display:inline-flex;align-items:center;gap:10px;padding:10px 14px;border-radius:999px;background:rgba(255,255,255,.7);border:1px solid #ddd6fe;font-size:13px}.quickstart-flow-pill strong{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--primary);color:#fff;font-size:13px}
.quickstart-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:20px;align-items:start}.quickstart-outline{position:sticky;top:88px}.quickstart-outline h2{margin:8px 0 12px;font-size:24px}.quickstart-outline-list{margin:0;padding-left:20px;display:grid;gap:10px}.quickstart-outline-list a{color:var(--text);font-weight:600}.quickstart-side-note{margin-top:16px}
.quickstart-main{display:grid;gap:18px}.quickstart-card{padding:24px}.quickstart-card-head{display:flex;align-items:flex-start;gap:14px;margin-bottom:18px}.quickstart-card-head h2{margin:0 0 4px}.quickstart-card-head p{margin:0;color:var(--muted)}.quickstart-step-no{width:40px;height:40px;border-radius:14px;display:grid;place-items:center;background:#ede9fe;color:var(--primary);font-weight:800;flex:0 0 auto}
.quickstart-check-field{align-content:end}.quickstart-publish-check{padding:12px 14px;border:1px solid #e9d5ff;border-radius:16px;background:#faf5ff}
.quickstart-theme-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px}.quickstart-theme-card{border:1px solid var(--border);border-radius:20px;padding:18px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.06);display:grid;gap:12px;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.quickstart-theme-card:hover{transform:translateY(-2px);box-shadow:0 16px 32px rgba(15,23,42,.10)}.quickstart-theme-card.is-selected{border-color:var(--primary);box-shadow:0 0 0 2px rgba(124,58,237,.12),0 16px 32px rgba(15,23,42,.10)}.quickstart-theme-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.quickstart-theme-desc{margin:0}.quickstart-theme-card[hidden]{display:none !important}
.quickstart-finish-box{margin-top:12px;padding:18px;border-radius:18px;border:1px solid #ddd6fe;background:#faf5ff;display:grid;gap:14px}.quickstart-submit-row{margin-top:0}
@media(max-width:980px){.quickstart-layout{grid-template-columns:1fr}.quickstart-outline{position:static}.quickstart-outline-list{grid-template-columns:repeat(2,minmax(0,1fr));padding-left:18px}}
@media(max-width:768px){.quickstart-hero-card{padding:28px 18px}.quickstart-card{padding:18px}.quickstart-card-head{flex-direction:column;gap:10px}.quickstart-step-no{width:36px;height:36px;border-radius:12px}.quickstart-outline-list{grid-template-columns:1fr}.quickstart-theme-grid{grid-template-columns:1fr}.quickstart-flow-row{gap:8px}.quickstart-flow-pill{width:100%;justify-content:flex-start}}

/* STAGE 11AG — Invitation list & dashboard action polish */
.invitation-management-page{display:grid;gap:22px}
.invitation-management-hero{display:flex;justify-content:space-between;gap:18px;align-items:center;background:linear-gradient(135deg,#ffffff 0%,#f8fafc 52%,#eef2ff 100%);border-color:#dbe4ff;overflow:hidden;position:relative}
.invitation-management-hero::after{content:"";position:absolute;right:-80px;top:-80px;width:220px;height:220px;border-radius:999px;background:radial-gradient(circle,rgba(99,102,241,.12),rgba(99,102,241,0));pointer-events:none}
.invitation-management-hero h1{margin:12px 0 10px;font-size:clamp(28px,4.5vw,40px);line-height:1.08}
.invitation-management-hero p{max-width:760px;margin:0}
.invitation-management-hero-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.invitation-empty-state{text-align:center;padding:34px}
.invitation-empty-icon{width:76px;height:76px;margin:0 auto 16px;border-radius:24px;background:linear-gradient(135deg,#ede9fe,#fce7f3);display:grid;place-items:center;font-size:34px;color:#7c3aed;box-shadow:0 18px 36px rgba(124,58,237,.18)}
.invitation-list-grid,.dashboard-invitation-grid{display:grid;gap:18px}
.invitation-card-v2,.dashboard-invitation-card{display:grid;gap:18px;border-radius:26px;border:1px solid #e5e7eb;box-shadow:0 18px 42px rgba(15,23,42,.06)}
.invitation-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
.invitation-card-top h2,.dashboard-invitation-card h3{margin:6px 0 0;line-height:1.15}
.invitation-card-kicker{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#6366f1;font-weight:800}
.invitation-meta-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.invitation-meta-item{padding:14px 16px;border-radius:18px;background:#f8fafc;border:1px solid #e5e7eb;min-width:0}
.invitation-meta-item span{display:block;font-size:12px;color:#64748b;text-transform:uppercase;letter-spacing:.1em;margin-bottom:8px}
.invitation-meta-item strong{display:block;font-size:15px;color:#111827;overflow-wrap:anywhere}
.invitation-status-row{display:flex;gap:10px;flex-wrap:wrap}
.invitation-chip{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:999px;font-size:12px;font-weight:800;letter-spacing:.04em;border:1px solid transparent}
.invitation-chip.warning{background:#fff7ed;color:#c2410c;border-color:#fed7aa}
.invitation-chip.danger{background:#fef2f2;color:#b91c1c;border-color:#fecaca}
.invitation-chip.neutral{background:#f8fafc;color:#334155;border-color:#e2e8f0}
.invitation-link-box{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:16px 18px;border-radius:20px;background:#f8fafc;border:1px solid #e5e7eb}
.invitation-public-link{font-weight:700;color:#111827;overflow-wrap:anywhere;margin-top:6px}
.invitation-action-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.invitation-action-grid.compact-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.invitation-action-btn{display:flex;flex-direction:column;gap:6px;align-items:flex-start;justify-content:flex-start;padding:16px 16px 15px;border-radius:20px;border:1px solid #e5e7eb;background:#fff;color:#111827;text-decoration:none;box-shadow:0 10px 26px rgba(15,23,42,.04);transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;min-height:118px}
.invitation-action-btn:hover{transform:translateY(-2px);box-shadow:0 16px 30px rgba(15,23,42,.1);border-color:#c7d2fe}
.invitation-action-btn span{font-size:22px;line-height:1}
.invitation-action-btn strong{font-size:15px;line-height:1.25;color:#111827}
.invitation-action-btn small{display:block;font-size:12px;line-height:1.5;color:#64748b}
.invitation-action-btn.primary{background:linear-gradient(135deg,#4f46e5,#7c3aed);border-color:transparent;color:#fff;box-shadow:0 16px 34px rgba(79,70,229,.24)}
.invitation-action-btn.primary strong,.invitation-action-btn.primary small{color:#fff}
.dashboard-action-hub{background:linear-gradient(135deg,#fff 0%,#faf5ff 56%,#eef2ff 100%);border-color:#e9d5ff}
.dashboard-invitation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.dashboard-invitation-card .invitation-card-top{margin-bottom:2px}
.dashboard-invitation-card h3{font-size:24px}
.dashboard-invitation-meta{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.dashboard-invitation-meta span{display:inline-flex;align-items:center;gap:6px;padding:9px 12px;border-radius:999px;background:#f8fafc;border:1px solid #e5e7eb;color:#334155;font-size:13px}
.dashboard-invitation-meta strong{color:#111827}
@media(max-width:1200px){.invitation-action-grid,.invitation-action-grid.compact-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.invitation-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:920px){.invitation-management-hero,.invitation-link-box{flex-direction:column;align-items:flex-start}.dashboard-invitation-grid{grid-template-columns:1fr}.invitation-action-grid,.invitation-action-grid.compact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:768px){.invitation-management-hero{padding:20px}.invitation-management-hero h1{font-size:30px}.invitation-meta-grid{grid-template-columns:1fr}.invitation-link-box{padding:14px}.invitation-action-grid,.invitation-action-grid.compact-grid{grid-template-columns:1fr 1fr}.invitation-action-btn{min-height:110px;padding:15px 14px}.invitation-action-btn strong{font-size:14px}.invitation-action-btn small{font-size:11px}.dashboard-invitation-card h3{font-size:22px}}
@media(max-width:540px){.invitation-management-hero-actions,.invitation-link-box .btn-row{width:100%}.invitation-management-hero-actions .btn,.invitation-link-box .btn-row .btn{flex:1 1 100%;text-align:center}.invitation-action-grid,.invitation-action-grid.compact-grid{grid-template-columns:1fr}.invitation-chip{width:100%;justify-content:center}}

/* ===== Stage 11AH: management pages consistency + guest pagination ===== */
.management-page-stack{display:grid;gap:16px}
.page-toolbar-card{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;border-radius:22px;padding:22px;overflow:hidden}
.page-toolbar-card h1{margin:8px 0 6px;font-size:clamp(1.4rem,3vw,2rem)}
.page-toolbar-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;align-items:center}
.page-toolbar-actions .btn{min-height:44px;padding:12px 16px;border-radius:14px}
.management-kpi-grid{display:grid;gap:12px}
.management-kpi-grid.compact.three-up{grid-template-columns:repeat(3,minmax(0,1fr))}
.management-kpi-grid.four-up{grid-template-columns:repeat(4,minmax(0,1fr))}
.mini-stat-card{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:18px;padding:16px 18px;box-shadow:0 12px 30px rgba(15,23,42,.05);display:grid;gap:6px}
.mini-stat-card span{font-size:.8rem;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.04em}
.mini-stat-card strong{font-size:1.45rem;line-height:1.1;color:#0f172a}
.mini-stat-card small{color:#64748b}
.management-search-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;border-radius:20px}
.management-search-form{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.management-search-form input[type="search"]{flex:1 1 260px;min-width:0;height:46px;border-radius:14px}
.management-panel-grid .card{border-radius:22px}
.mobile-wrap-full{flex-wrap:wrap}
.mobile-wrap-full > *{flex:0 0 auto}
.guest-table-desktop{display:block}
.guest-mobile-list{display:none;gap:12px}
.guest-mobile-card{border:1px solid rgba(15,23,42,.08);border-radius:18px;padding:14px;background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.05)}
.guest-mobile-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:10px}
.guest-mobile-head h4{margin:0 0 4px;font-size:1rem}
.guest-mobile-meta{display:grid;gap:6px;color:#334155;font-size:.92rem}
.guest-empty-card{padding:18px;border:1px dashed rgba(15,23,42,.16);border-radius:16px;background:#fff}
.guest-details-edit summary{cursor:pointer;font-weight:700;color:#0f172a;list-style:none}
.guest-details-edit summary::-webkit-details-marker{display:none}
.guest-details-edit summary::after{content:'+';display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;margin-left:8px;border-radius:999px;background:#f1f5f9;color:#334155;font-weight:800}
.guest-details-edit[open] summary::after{content:'−'}
.pagination-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:18px;flex-wrap:wrap}
.pagination-pages{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:center}
.pagination-btn,.pagination-page{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 14px;border-radius:12px;border:1px solid rgba(15,23,42,.1);background:#fff;color:#0f172a;text-decoration:none;font-weight:700}
.pagination-page.active{background:#0f172a;color:#fff;border-color:#0f172a}
.pagination-btn.disabled{pointer-events:none;opacity:.45}
.pagination-ellipsis{padding:0 4px;color:#64748b;font-weight:700}
.invitation-action-grid,.dashboard-invitation-grid .invitation-action-grid{gap:10px}
.invitation-action-btn{min-height:76px;border-radius:18px}
.invitation-management-hero-actions .btn,
.dashboard-invitation-card .invitation-action-btn,
.invitation-card-v2 .invitation-action-btn,
.notice-item .btn,
.page-toolbar-actions .btn,
.management-search-form .btn,
.btn-row.mobile-wrap-full .btn{min-height:44px}
.card .table-wrap table th,.card .table-wrap table td{vertical-align:top}
@media (max-width: 1024px){
  .management-kpi-grid.four-up{grid-template-columns:repeat(2,minmax(0,1fr))}
  .management-kpi-grid.compact.three-up{grid-template-columns:repeat(3,minmax(0,1fr))}
  .page-toolbar-card{padding:18px}
}
@media (max-width: 768px){
  .page-toolbar-card{padding:16px;gap:14px;flex-direction:column;align-items:stretch}
  .page-toolbar-actions,.management-search-form,.btn-row.mobile-wrap-full{display:grid;grid-template-columns:1fr;gap:10px;width:100%}
  .page-toolbar-actions .btn,.management-search-form .btn,.btn-row.mobile-wrap-full .btn{width:100%;justify-content:center}
  .management-search-card{grid-template-columns:1fr;align-items:stretch}
  .management-kpi-grid.compact.three-up,.management-kpi-grid.four-up{grid-template-columns:repeat(2,minmax(0,1fr))}
  .guest-table-desktop{display:none}
  .guest-mobile-list{display:grid}
  .pagination-bar{align-items:stretch}
  .pagination-btn{flex:1 1 calc(50% - 6px);text-align:center}
  .pagination-pages{order:3;width:100%}
  .dashboard-invitation-grid,.invitation-list-grid{grid-template-columns:1fr}
  .invitation-action-grid,.dashboard-invitation-card .invitation-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .invitation-link-box{grid-template-columns:1fr;gap:10px}
  .notice-item.stacked-item{align-items:flex-start}
}
@media (max-width: 560px){
  .management-kpi-grid.compact.three-up,.management-kpi-grid.four-up{grid-template-columns:1fr}
  .invitation-action-grid,.dashboard-invitation-card .invitation-action-grid{grid-template-columns:1fr}
  .invitation-action-btn{min-height:auto;padding:14px}
  .onboarding-panel .btn-row,.section-head .btn-row{display:grid;grid-template-columns:1fr;gap:10px}
  .onboarding-panel .btn-row .btn,.section-head .btn-row .btn{width:100%;justify-content:center}
}


/* ===== Stage 11AI: Theme Picker V2 polish restore ===== */
.theme-picker-v2{display:grid;gap:18px}
.theme-picker-v2 .theme-picker-header{gap:16px;flex-wrap:wrap}
.theme-picker-v2 .theme-picker-header h1{margin:0 0 4px}
.theme-picker-v2 .theme-picker-header .muted{margin:0}
.theme-mode-switch{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.theme-mode-btn{display:inline-flex;align-items:center;justify-content:center;padding:11px 16px;border-radius:999px;border:1px solid rgba(15,23,42,.12);background:#fff;color:#0f172a;font-weight:700;text-decoration:none;box-shadow:0 8px 20px rgba(15,23,42,.06);transition:.2s ease}
.theme-mode-btn:hover{transform:translateY(-1px);box-shadow:0 14px 28px rgba(15,23,42,.1)}
.theme-mode-btn.active{background:linear-gradient(135deg,#111827,#374151);border-color:transparent;color:#fff;box-shadow:0 14px 30px rgba(17,24,39,.18)}
.theme-picker-note{padding:16px 18px;border-radius:18px;background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,255,255,.92));border:1px solid rgba(15,23,42,.08);color:#334155;line-height:1.65;box-shadow:0 16px 36px rgba(15,23,42,.06)}
.theme-picker-note strong{color:#0f172a}
.theme-picker-note .inline-switch-link{margin-left:8px;font-weight:700;color:#7c3aed;text-decoration:none}
.theme-filter-toolbar{display:grid;gap:12px;padding:14px 16px;border-radius:20px;background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,250,252,.95));border:1px solid rgba(15,23,42,.08);box-shadow:0 14px 34px rgba(15,23,42,.05)}
.theme-filter-title{font-size:12px;text-transform:uppercase;letter-spacing:.14em;color:#64748b;font-weight:800}
.theme-filter-chips{display:flex;flex-wrap:wrap;gap:10px}
.theme-filter-chip{display:inline-flex;align-items:center;gap:10px;padding:10px 14px;border-radius:999px;border:1px solid rgba(15,23,42,.1);background:#fff;color:#0f172a;font-weight:700;box-shadow:0 8px 20px rgba(15,23,42,.05);cursor:pointer;transition:.2s ease}
.theme-filter-chip strong{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 8px;border-radius:999px;background:rgba(124,58,237,.08);color:#7c3aed;font-size:12px;font-weight:800}
.theme-filter-chip:hover{transform:translateY(-1px);box-shadow:0 12px 24px rgba(15,23,42,.08)}
.theme-filter-chip.active{background:linear-gradient(135deg,#111827,#374151);border-color:transparent;color:#fff;box-shadow:0 14px 30px rgba(17,24,39,.16)}
.theme-filter-chip.active strong{background:rgba(255,255,255,.14);color:#fff}
.theme-filter-empty{margin-top:4px}
.theme-filter-empty-card{padding:22px;border-radius:20px;border:1px dashed rgba(148,163,184,.55);background:linear-gradient(180deg,rgba(248,250,252,.96),rgba(255,255,255,.98));text-align:center;color:#475569}
.theme-filter-empty-card strong{display:block;margin-bottom:6px;font-size:18px;color:#0f172a}
.theme-filter-empty-card p{margin:0;line-height:1.6}
.theme-picker-card.is-filter-hidden{display:none!important}
.theme-picker-grid-simple{align-items:stretch}
.theme-card-simple{display:flex;flex-direction:column;overflow:hidden}
.theme-card-simple .theme-card-preview{min-height:230px}
.theme-card-simple .theme-card-inner{align-content:flex-end;min-height:100%}
.theme-simple-body{display:grid;gap:14px}
.theme-simple-badges{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.theme-simple-recommendation{padding:14px 15px;border-radius:18px;background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(248,250,252,.92));border:1px solid rgba(15,23,42,.08);box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
.theme-simple-title{font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:#64748b;margin-bottom:6px;font-weight:800}
.theme-simple-preset{font-size:18px;font-weight:800;color:#0f172a;margin-bottom:6px;line-height:1.2}
.theme-simple-recommendation p{margin:0;color:#475569;font-size:13px;line-height:1.6}
.theme-simple-chipset .chip{background:rgba(255,255,255,.82)}
.theme-simple-form{margin-top:auto}
.theme-simple-actions{margin-top:0}
.theme-picker-mode-simple .theme-picker-grid,.theme-picker-mode-custom .theme-picker-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.theme-picker-mode-simple .theme-picker-card.selected{box-shadow:0 18px 44px rgba(124,58,237,.14);border-color:rgba(124,58,237,.2)}
.theme-picker-mode-simple .theme-picker-card.selected::after{content:"Tema aktif";position:absolute;top:16px;right:16px;background:#16a34a;color:#fff;padding:6px 10px;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.04em;z-index:3}
.theme-picker-mode-simple .theme-picker-card{position:relative}
.theme-picker-mode-custom .theme-picker-card,.theme-picker-mode-simple .theme-picker-card{max-width:100%}
.theme-picker-mode-custom .theme-choice-form{display:grid;gap:12px}
.theme-picker-mode-custom .theme-picker-body{display:grid;gap:12px}
.theme-picker-mode-custom .layout-variant-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.theme-picker-v2 .compact-field{margin:0}
.theme-picker-v2 .compact-field label{font-size:12px;color:#64748b;margin-bottom:4px;display:block}
.theme-picker-v2 .compact-field select{width:100%;padding:10px 12px;border-radius:12px;border:1px solid #e5e7eb;background:#fff}
.theme-picker-v2 .btn-row.left{justify-content:flex-start}
.theme-picker-v2 .btn-row.wrap-gap{gap:10px}
.theme-picker-v2 .chip{white-space:nowrap}
.theme-picker-v2 .theme-picker-body .chips{row-gap:10px}
.theme-picker-v2 .package-card.theme-picker-card{padding:0}
@media (max-width: 1180px){
  .theme-picker-mode-simple .theme-picker-grid,
  .theme-picker-mode-custom .theme-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 768px){
  .theme-mode-switch{display:grid;grid-template-columns:1fr;gap:10px}
  .theme-mode-btn{width:100%}
  .theme-filter-toolbar{padding:14px}
  .theme-filter-chips{flex-wrap:nowrap;overflow:auto;padding-bottom:6px;margin-bottom:-6px}
  .theme-filter-chip{white-space:nowrap;flex:0 0 auto}
  .theme-picker-mode-simple .theme-picker-grid,
  .theme-picker-mode-custom .theme-picker-grid{grid-template-columns:1fr}
  .theme-card-simple .theme-card-preview{min-height:210px}
  .theme-picker-mode-custom .layout-variant-grid{grid-template-columns:1fr}
  .theme-picker-note .inline-switch-link{display:inline-block;margin-left:0;margin-top:8px}
}

/* ===== Stage 11AJ: guest ajax search + RSVP mobile polish ===== */
.guest-list-card{position:relative}
.guest-list-card.is-loading{opacity:.72}
.guest-list-card.is-loading::after{content:'Memuat data tamu...';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.72);backdrop-filter:blur(1px);font-weight:700;color:#0f172a;border-radius:22px;z-index:3}
.guest-list-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,420px);gap:14px;align-items:end;margin-bottom:16px}
.guest-search-form{margin:0}
.guest-search-form input[type="search"]{width:100%}
.guest-results-head{gap:12px}
.interactions-table-desktop{display:block}
.interaction-mobile-list{display:none;gap:12px}
.interaction-mobile-card{border:1px solid rgba(15,23,42,.08);border-radius:18px;padding:14px;background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.05);display:grid;gap:10px;overflow:hidden}
.interaction-mobile-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.interaction-mobile-head h4{margin:0 0 4px;font-size:1rem;line-height:1.35}
.interaction-mobile-meta{display:grid;gap:6px;color:#334155;font-size:.92rem}
.interaction-mobile-message{padding:12px 13px;border-radius:14px;background:#f8fafc;border:1px solid rgba(15,23,42,.06);color:#0f172a;word-break:break-word;overflow-wrap:anywhere;line-height:1.55}
.interaction-status-stack{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.interactions-page .table-wrap table{min-width:0}
.interactions-page .actions-inline{min-width:220px}
@media (max-width: 900px){
  .guest-list-tools{grid-template-columns:1fr}
}
@media (max-width: 768px){
  .guest-list-card{padding:16px}
  .guest-list-tools{grid-template-columns:1fr;align-items:stretch}
  .guest-results-head{flex-direction:column;align-items:flex-start}
  .interactions-table-desktop{display:none}
  .interaction-mobile-list{display:grid}
  .interactions-page .page-toolbar-card{overflow:visible}
}

/* ===== Stage 11AL: Theme hub sync + Acarain landing + centered responsive header ===== */
.site-shell{background:linear-gradient(180deg,#fffaf8 0%,#ffffff 180px);color:#1f2937}
.site-header{position:sticky;top:0;z-index:120;background:rgba(255,255,255,.82);backdrop-filter:blur(18px);border-bottom:1px solid rgba(226,232,240,.9)}
.site-header-shell{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:18px;min-height:78px}
.site-brand{display:inline-flex;align-items:center;gap:12px;min-width:0;max-width:min(230px,24vw);font-size:1.05rem;font-weight:800;color:#111827;text-decoration:none;justify-self:start}.site-brand .brand-logo{display:block;width:auto;height:44px;max-width:100%;border-radius:0;object-fit:contain;object-position:left center;box-shadow:none}
.site-nav{display:flex;align-items:center;justify-content:center;gap:10px;padding:10px 14px;border:1px solid rgba(226,232,240,.85);background:#fff;border-radius:999px;box-shadow:0 16px 40px rgba(15,23,42,.08)}
.site-nav a{color:#475569;text-decoration:none;font-weight:700;padding:10px 16px;border-radius:999px;transition:all .2s ease}.site-nav a:hover{background:#f8fafc;color:#111827}
.site-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}
.site-nav-toggle{display:none;justify-self:end;width:46px;height:46px;border:1px solid rgba(226,232,240,.95);background:#fff;border-radius:14px;align-items:center;justify-content:center;gap:4px;flex-direction:column;box-shadow:0 14px 34px rgba(15,23,42,.08)}
.site-nav-toggle span{display:block;width:18px;height:2px;background:#111827;border-radius:999px}.page-main{padding-top:28px;padding-bottom:40px}
.landing-hero-v2{position:relative;padding:18px 0 8px}.landing-grid-v2{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr);gap:28px;align-items:center}.landing-hero-copy{padding-right:10px}.landing-hero-copy .landing-title{max-width:13ch}
.landing-showcase-shell{display:grid;gap:18px}.landing-showcase-card{border-radius:28px;padding:24px;background:linear-gradient(145deg,#ffffff,#fff7f4);border:1px solid rgba(244,114,182,.12);box-shadow:0 24px 50px rgba(15,23,42,.1)}
.landing-showcase-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.landing-showcase-head h3{margin:6px 0 0;font-size:1.35rem}
.landing-showcase-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}.landing-showcase-stats div,.theme-hub-stat{padding:16px 14px;border-radius:20px;background:#fff;border:1px solid rgba(226,232,240,.88);display:grid;gap:4px}
.landing-showcase-stats strong,.theme-hub-stat strong{font-size:1.35rem;line-height:1;font-weight:800;color:#111827}.landing-showcase-stats span,.theme-hub-stat span{font-size:.86rem;color:#64748b}
.landing-showcase-points{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}.landing-point-card{padding:16px;border-radius:22px;background:#fff;border:1px solid rgba(226,232,240,.88)}.landing-point-card strong{display:block;margin-bottom:6px}.landing-point-card p{margin:0;color:#64748b;font-size:.94rem;line-height:1.6}
.landing-theme-mini-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.landing-theme-mini{min-height:156px;border-radius:26px;padding:18px;display:flex;flex-direction:column;justify-content:flex-end;box-shadow:0 16px 34px rgba(15,23,42,.1)}.landing-theme-mini span{font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;opacity:.86}.landing-theme-mini strong{font-size:1.06rem;line-height:1.3}
.landing-feature-grid-v2 .landing-feature-card{min-height:100%}.landing-feature-card.accent-card{background:linear-gradient(145deg,#fff4f0,#ffffff);border-color:rgba(244,114,182,.18)}
.landing-theme-grid-v2{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.landing-process-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.landing-process-card{padding:24px;border-radius:26px;background:#fff;border:1px solid rgba(226,232,240,.88);box-shadow:0 16px 34px rgba(15,23,42,.06)}.landing-process-card span{display:inline-flex;width:42px;height:42px;align-items:center;justify-content:center;border-radius:999px;background:#111827;color:#fff;font-weight:800;margin-bottom:18px}.landing-process-card h3{margin:0 0 8px;font-size:1.12rem}.landing-process-card p{margin:0;color:#64748b;line-height:1.65}
.landing-cta-v2{background:linear-gradient(135deg,#111827,#1f2937 58%,#374151 100%);color:#fff}.landing-cta-v2 h2,.landing-cta-v2 p,.landing-cta-v2 .landing-badge{color:inherit}.landing-cta-v2 .btn.ghost{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.18);color:#fff}
.theme-hub-page{display:grid;gap:18px}.theme-hub-hero{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(260px,.92fr);gap:18px;align-items:center;border-radius:28px;padding:26px}.theme-hub-hero-copy h1{margin:10px 0 10px;font-size:clamp(2rem,3vw,2.8rem);line-height:1.08}.theme-hub-hero-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.theme-filter-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap}.theme-filter-title{font-weight:800;color:#111827}.theme-filter-chips{display:flex;gap:10px;flex-wrap:wrap}.theme-filter-chip{display:inline-flex;align-items:center;gap:10px;padding:11px 16px;border-radius:999px;border:1px solid rgba(226,232,240,.88);background:#fff;color:#475569;font-weight:700;cursor:pointer;box-shadow:0 10px 24px rgba(15,23,42,.04)}.theme-filter-chip strong{font-size:.78rem;padding:5px 8px;border-radius:999px;background:#f8fafc;color:#111827}.theme-filter-chip.active{background:#111827;color:#fff;border-color:#111827}.theme-filter-chip.active strong{background:rgba(255,255,255,.12);color:#fff}
.theme-hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.theme-hub-card{border-radius:28px;overflow:hidden;box-shadow:0 18px 38px rgba(15,23,42,.08)}.theme-hub-card .theme-showcase-body{padding:18px}.theme-admin-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.theme-admin-meta div{padding:12px;border-radius:16px;background:#f8fafc;border:1px solid rgba(226,232,240,.88);display:grid;gap:4px}.theme-admin-meta strong{font-size:.74rem;letter-spacing:.06em;text-transform:uppercase;color:#64748b}.theme-admin-meta span{font-size:.92rem;color:#111827;word-break:break-word}.public-theme-filter{margin-bottom:4px}
@media (max-width:1100px){.landing-grid-v2,.theme-hub-hero{grid-template-columns:1fr}.landing-theme-grid-v2,.theme-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.landing-process-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.site-header-shell{grid-template-columns:minmax(0,1fr) auto auto}.site-nav{position:absolute;left:16px;right:16px;top:calc(100% + 10px);display:none;flex-direction:column;align-items:stretch;justify-content:flex-start;border-radius:24px;padding:14px;gap:6px}.site-nav a{padding:12px 14px;border-radius:16px}.site-header.is-open .site-nav{display:flex}.site-nav-toggle{display:inline-flex}}
@media (max-width:920px){.site-header-actions{display:none}}
@media (max-width:768px){.page-main{padding-top:18px}.site-header-shell{min-height:70px}.landing-showcase-stats,.theme-hub-hero-stats,.landing-showcase-points,.theme-admin-meta,.landing-theme-grid-v2,.theme-hub-grid,.landing-process-grid{grid-template-columns:1fr}.landing-theme-mini-grid{grid-template-columns:1fr 1fr}.theme-filter-chips{overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}.theme-filter-chip{white-space:nowrap}}
@media (max-width:640px){.landing-title{max-width:none}.landing-theme-mini-grid{grid-template-columns:1fr}.landing-showcase-card,.theme-hub-hero{padding:20px}.site-nav{left:12px;right:12px}}


/* stage 11AM fixes: mobile themes, nav toggle, landing preview buttons, flash redirect */
body.site-shell{overflow-x:hidden}
.site-header{overflow:visible}
.site-header-shell{position:relative}
.site-nav{z-index:130}
.site-nav-toggle{position:relative;z-index:140;touch-action:manipulation;cursor:pointer}
.site-nav-toggle:focus-visible{outline:2px solid #4f46e5;outline-offset:2px}
.public-theme-hub,.public-theme-grid,.theme-hub-grid{width:100%;max-width:100%;min-width:0;overflow-x:clip}
.theme-hub-grid>*{min-width:0}
.theme-hub-card,.theme-showcase-card,.theme-showcase-hero,.theme-showcase-body,.theme-showcase-inner{max-width:100%;min-width:0}
.theme-showcase-inner h3,.theme-showcase-inner p,.theme-showcase-body .chip{overflow-wrap:anywhere;word-break:break-word}
.theme-filter-toolbar,.theme-filter-chips{max-width:100%;min-width:0}
.theme-filter-chips::-webkit-scrollbar{display:none}
.public-theme-hub .theme-showcase-body .btn{max-width:100%}
.landing-theme-mini{position:relative;overflow:hidden}
.landing-theme-mini .btn-row{position:relative;z-index:1}
.landing-theme-mini .btn{background:rgba(255,255,255,.9)}
.landing-theme-card .btn-row .btn,.landing-theme-mini .btn-row .btn{width:100%;justify-content:center}
@media (max-width: 768px){
  .page-main{padding-left:14px;padding-right:14px}
  .public-theme-hub{padding-left:0;padding-right:0}
  .theme-filter-toolbar{display:grid;grid-template-columns:1fr;gap:14px}
  .theme-filter-chips{display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;padding-bottom:6px;margin-inline:-2px;padding-inline:2px}
  .theme-filter-chip{flex:0 0 auto}
  .theme-hub-grid{grid-template-columns:1fr!important;gap:14px}
  .theme-hub-card{border-radius:22px}
  .theme-showcase-hero{min-height:190px;padding:16px}
  .theme-showcase-inner h3{font-size:24px;line-height:1.2}
  .theme-showcase-inner p{font-size:14px;line-height:1.55}
  .theme-showcase-body{padding:16px}
  .theme-showcase-body .btn-row{display:grid;grid-template-columns:1fr}
  .theme-showcase-body .btn-row .btn{width:100%;justify-content:center}
  .landing-theme-mini-grid{grid-template-columns:1fr;gap:12px}
  .landing-theme-mini{min-height:0;padding:16px}
  .landing-theme-card .theme-showcase-body .btn-row{display:grid;grid-template-columns:1fr}
  .site-header.is-open .site-nav{display:flex;pointer-events:auto}
}


/* === Stage 11AN: Portrait Floral Ivory theme === */
.public-theme.wedding-portrait-floral-ivory{
  --theme-bg:#f7efe2;
  --theme-card:#fffdf7;
  --theme-soft:#f2e6d2;
  --theme-text:#2f251c;
  --theme-border:#dccbb1;
  --theme-accent:#9a6d31;
  --theme-accent-2:#496443;
  --theme-hero:#3d2d20;
  --theme-hero-2:#9a6d31;
  background:
    radial-gradient(circle at 12% 8%, rgba(154,109,49,.10), transparent 28%),
    radial-gradient(circle at 88% 28%, rgba(73,100,67,.12), transparent 24%),
    linear-gradient(180deg,#f7efe2 0%,#fffaf1 52%,#f2e6d2 100%);
  color:var(--theme-text);
}
.public-theme.wedding-portrait-floral-ivory .theme-card-preview,
.public-theme.wedding-portrait-floral-ivory .theme-showcase-hero{
  background:
    linear-gradient(180deg,rgba(47,37,28,.24),rgba(47,37,28,.66)),
    url('../images/theme-portrait-floral/portrait-floral-cover.jpg') center/cover no-repeat;
}
.public-theme.wedding-portrait-floral-ivory .theme-card-preview .theme-card-backdrop{background:transparent!important;}
.public-theme.wedding-portrait-floral-ivory .theme-card-inner,
.public-theme.wedding-portrait-floral-ivory .theme-card-inner h3,
.public-theme.wedding-portrait-floral-ivory .theme-card-inner p,
.public-theme.wedding-portrait-floral-ivory .theme-card-inner .eyebrow{color:#fffaf1;}
.public-theme.wedding-portrait-floral-ivory .public-hero{
  background-color:#3d2d20;
  background-blend-mode:multiply;
}
.public-theme.wedding-portrait-floral-ivory .hero-overlay,
.public-theme.wedding-portrait-floral-ivory .opening-overlay{
  background:linear-gradient(180deg,rgba(47,37,28,.26),rgba(47,37,28,.72));
}
.public-theme.wedding-portrait-floral-ivory .opening-card,
.public-theme.wedding-portrait-floral-ivory .invite-card.modern{
  max-width:560px;
  margin-inline:auto;
  border-radius:34px 34px 160px 160px;
  background:rgba(255,253,247,.90);
  border:1px solid rgba(154,109,49,.32);
  box-shadow:0 24px 70px rgba(47,37,28,.20);
  color:#2f251c;
  position:relative;
  overflow:hidden;
}
.public-theme.wedding-portrait-floral-ivory .opening-card::before,
.public-theme.wedding-portrait-floral-ivory .invite-card.modern::before{
  content:'';position:absolute;inset:14px;border:1px solid rgba(154,109,49,.22);border-radius:28px 28px 140px 140px;pointer-events:none;
}
.public-theme.wedding-portrait-floral-ivory .opening-card::after,
.public-theme.wedding-portrait-floral-ivory .invite-card.modern::after{
  content:'';position:absolute;right:-34px;top:-26px;width:210px;height:210px;background:url('../images/theme-portrait-floral/portrait-floral-corner.png') center/contain no-repeat;opacity:.72;pointer-events:none;
}
.public-theme.wedding-portrait-floral-ivory .invite-card.modern h1,
.public-theme.wedding-portrait-floral-ivory .opening-card h1,
.public-theme.wedding-portrait-floral-ivory .section-title h2,
.public-theme.wedding-portrait-floral-ivory .footer-couple-name{color:#2f251c;letter-spacing:.01em;}
.public-theme.wedding-portrait-floral-ivory .eyebrow,
.public-theme.wedding-portrait-floral-ivory .muted,
.public-theme.wedding-portrait-floral-ivory .quote-source,
.public-theme.wedding-portrait-floral-ivory .countdown-item span{color:#6b573e;}
.public-theme.wedding-portrait-floral-ivory .public-section{position:relative;overflow:hidden;}
.public-theme.wedding-portrait-floral-ivory .public-section::before{
  content:'';position:absolute;left:-90px;bottom:-120px;width:360px;height:360px;background:url('../images/theme-portrait-floral/portrait-floral-corner.png') center/contain no-repeat;opacity:.22;pointer-events:none;
}
.public-theme.wedding-portrait-floral-ivory .public-section::after{
  content:'';position:absolute;right:-110px;top:-110px;width:340px;height:340px;background:url('../images/theme-portrait-floral/portrait-floral-corner.png') center/contain no-repeat;transform:rotate(180deg);opacity:.18;pointer-events:none;
}
.public-theme.wedding-portrait-floral-ivory .quote-card,
.public-theme.wedding-portrait-floral-ivory .person-card,
.public-theme.wedding-portrait-floral-ivory .event-card,
.public-theme.wedding-portrait-floral-ivory .event-layout-card,
.public-theme.wedding-portrait-floral-ivory .story-card,
.public-theme.wedding-portrait-floral-ivory .gift-card,
.public-theme.wedding-portrait-floral-ivory .map-card,
.public-theme.wedding-portrait-floral-ivory .video-feature-card,
.public-theme.wedding-portrait-floral-ivory .countdown-item{
  background:rgba(255,253,247,.94);
  border:1px solid rgba(154,109,49,.22);
  color:#2f251c;
  box-shadow:0 18px 46px rgba(47,37,28,.08);
}
.public-theme.wedding-portrait-floral-ivory .quote-card{
  border-radius:34px;
  padding:36px 30px;
}
.public-theme.wedding-portrait-floral-ivory .quote-card::before{
  content:'';position:absolute;left:16px;top:16px;right:16px;bottom:16px;border:1px solid rgba(154,109,49,.16);border-radius:26px;pointer-events:none;
}
.public-theme.wedding-portrait-floral-ivory .hero-side-card{
  border-radius:999px 999px 34px 34px;
  background:rgba(255,253,247,.90);
  border-color:rgba(154,109,49,.22);
}
.public-theme.wedding-portrait-floral-ivory .hero-side-card img,
.public-theme.wedding-portrait-floral-ivory .person-photo img,
.public-theme.wedding-portrait-floral-ivory .story-photo-wrap img,
.public-theme.wedding-portrait-floral-ivory .gallery-grid-rich img{
  border-radius:999px 999px 24px 24px;
  border:1px solid rgba(154,109,49,.22);
}
.public-theme.wedding-portrait-floral-ivory .btn.primary,
.public-theme.wedding-portrait-floral-ivory .btn:not(.ghost){background:#9a6d31;color:#fffaf1;border-color:#9a6d31;}
.public-theme.wedding-portrait-floral-ivory .btn.ghost{border-color:#9a6d31;color:#7a5528;background:rgba(255,253,247,.68);}
.public-theme.wedding-portrait-floral-ivory .floating-section-nav{bottom:max(12px,env(safe-area-inset-bottom));}
.public-theme.wedding-portrait-floral-ivory .floating-nav-shell{
  gap:6px;
  padding:8px 10px;
  border-radius:26px;
  background:rgba(255,253,247,.94);
  border:1px solid rgba(154,109,49,.26);
  box-shadow:0 18px 44px rgba(47,37,28,.18);
  max-width:min(94vw,560px);
}
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn{
  width:54px;height:54px;border-radius:20px;color:#6f4f2a;font-size:0;background:transparent;position:relative;
}
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn span{
  font-size:0!important;width:28px;height:28px;display:block;background:center/contain no-repeat;filter:sepia(1) saturate(.8) brightness(.78);opacity:.90;
}
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn:nth-child(1) span{background-image:url('../images/theme-portrait-floral/icon-home.png');}
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn:nth-child(2) span{background-image:url('../images/theme-portrait-floral/icon-couple.png');}
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn:nth-child(3) span{background-image:url('../images/theme-portrait-floral/icon-event.png');}
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn:nth-child(4) span{background-image:url('../images/theme-portrait-floral/icon-gallery.png');}
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn:nth-child(5) span{background-image:url('../images/theme-portrait-floral/icon-wishes.png');}
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn:hover,
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn.is-active{background:#9a6d31;color:#fff;transform:translateY(-2px);}
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn:hover span,
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn.is-active span{filter:brightness(0) invert(1);opacity:1;}
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn.auto-scroll-toggle span{font-size:20px!important;width:auto;height:auto;background:none;filter:none;}
.public-theme.wedding-portrait-floral-ivory .floating-music-btn{background:rgba(255,253,247,.94);color:#7a5528;border:1px solid rgba(154,109,49,.26);}
.public-theme.wedding-portrait-floral-ivory .floating-music-btn.is-active{background:#9a6d31;color:#fff;}
@media(max-width:768px){
  .public-theme.wedding-portrait-floral-ivory .opening-card,
  .public-theme.wedding-portrait-floral-ivory .invite-card.modern{border-radius:28px 28px 120px 120px;padding:26px 22px;}
  .public-theme.wedding-portrait-floral-ivory .invite-card.modern h1{font-size:clamp(38px,11vw,54px);}
  .public-theme.wedding-portrait-floral-ivory .floating-nav-shell{max-width:calc(100vw - 20px);justify-content:space-between;width:calc(100vw - 20px);}
  .public-theme.wedding-portrait-floral-ivory .floating-nav-btn{width:50px;height:50px;border-radius:18px;}
  .public-theme.wedding-portrait-floral-ivory .floating-nav-btn span{width:25px;height:25px;}
}

/* === Stage 11AO: Portrait Floral Ivory bottom nav contrast fix === */
.public-theme.wedding-portrait-floral-ivory .floating-section-nav{
  z-index:90;
}
.public-theme.wedding-portrait-floral-ivory .floating-nav-shell{
  background:rgba(255,253,247,.98);
  border:1px solid rgba(52,35,24,.24);
  box-shadow:0 18px 46px rgba(47,37,28,.24),0 0 0 1px rgba(255,255,255,.72) inset;
}
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn{
  background:#fffaf1;
  border:1px solid rgba(52,35,24,.16);
  color:#342318;
  box-shadow:0 6px 14px rgba(47,37,28,.08);
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn span{
  filter:none!important;
  opacity:1!important;
  width:29px;
  height:29px;
}
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn:hover,
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn:focus-visible,
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn.is-active{
  background:#5b3718;
  border-color:#5b3718;
  color:#ffffff;
  transform:translateY(-3px);
  box-shadow:0 12px 24px rgba(91,55,24,.28);
}
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn:hover span,
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn:focus-visible span,
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn.is-active span{
  filter:brightness(0) invert(1)!important;
  opacity:1!important;
}
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn.auto-scroll-toggle{
  background:#342318;
  color:#fffdf7;
  border-color:#342318;
}
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn.auto-scroll-toggle span{
  color:inherit;
  filter:none!important;
}
.public-theme.wedding-portrait-floral-ivory .floating-music-btn{
  background:#fffaf1;
  color:#342318;
  border:1px solid rgba(52,35,24,.24);
  box-shadow:0 12px 28px rgba(47,37,28,.18);
}
.public-theme.wedding-portrait-floral-ivory .floating-music-btn:hover,
.public-theme.wedding-portrait-floral-ivory .floating-music-btn.is-active{
  background:#5b3718;
  color:#fff;
  border-color:#5b3718;
}
@media(max-width:768px){
  .public-theme.wedding-portrait-floral-ivory .floating-nav-shell{
    width:min(calc(100vw - 18px),560px);
    max-width:calc(100vw - 18px);
    gap:5px;
    padding:8px;
  }
  .public-theme.wedding-portrait-floral-ivory .floating-nav-btn{
    width:48px;
    height:48px;
    border-radius:17px;
  }
  .public-theme.wedding-portrait-floral-ivory .floating-nav-btn span{
    width:25px;
    height:25px;
  }
}


/* === Stage 11AP: Portrait Floral opening label copy fix === */
.public-theme.wedding-portrait-floral-ivory .opening-card .eyebrow,
.public-theme.wedding-portrait-floral-ivory .invite-card.modern .eyebrow{
  font-size:0!important;
  letter-spacing:0!important;
  line-height:1!important;
  color:transparent!important;
}
.public-theme.wedding-portrait-floral-ivory .opening-card .eyebrow::after,
.public-theme.wedding-portrait-floral-ivory .invite-card.modern .eyebrow::after{
  content:'The Invitation Of';
  display:inline-block;
  font-size:12px;
  line-height:1.3;
  letter-spacing:.22em;
  text-transform:uppercase;
  font-weight:800;
  color:#7a5528;
}
.public-theme.wedding-portrait-floral-ivory .opening-card .eyebrow,
.public-theme.wedding-portrait-floral-ivory .invite-card.modern .eyebrow{
  margin-bottom:10px;
}

/* === Stage 11AQ: Portrait Floral bottom nav fallback icons ===
   Beberapa item bottom nav tambahan dari sistem (misalnya Gift/Maps/Video/Story)
   tidak memiliki PNG custom seperti contoh. Pada versi sebelumnya semua span
   dipaksa font-size:0 sehingga item tambahan menjadi kosong. Override ini
   mengembalikan icon default untuk item yang tidak punya PNG custom, dan hanya
   memakai PNG custom untuk lima item utama: Home, Couple, Event, Gallery, Wishes. */
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn span{
  /* Default/fallback: tampilkan icon bawaan dari markup sistem */
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  background:none!important;
  background-image:none!important;
  font-size:20px!important;
  line-height:1!important;
  color:inherit;
  filter:none!important;
  opacity:1!important;
  text-indent:0!important;
  overflow:visible!important;
}
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn:nth-child(1) span,
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn:nth-child(2) span,
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn:nth-child(3) span,
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn:nth-child(4) span,
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn:nth-child(5) span{
  /* Lima icon utama tetap memakai PNG custom portrait floral */
  display:block!important;
  font-size:0!important;
  width:29px!important;
  height:29px!important;
  background-position:center!important;
  background-size:contain!important;
  background-repeat:no-repeat!important;
}
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn:nth-child(1) span{background-image:url('../images/theme-portrait-floral/icon-home.png')!important;}
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn:nth-child(2) span{background-image:url('../images/theme-portrait-floral/icon-couple.png')!important;}
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn:nth-child(3) span{background-image:url('../images/theme-portrait-floral/icon-event.png')!important;}
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn:nth-child(4) span{background-image:url('../images/theme-portrait-floral/icon-gallery.png')!important;}
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn:nth-child(5) span{background-image:url('../images/theme-portrait-floral/icon-wishes.png')!important;}
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn:hover:nth-child(-n+5) span,
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn:focus-visible:nth-child(-n+5) span,
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn.is-active:nth-child(-n+5) span{
  filter:brightness(0) invert(1)!important;
}
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn:hover:nth-child(n+6) span,
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn:focus-visible:nth-child(n+6) span,
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn.is-active:nth-child(n+6) span{
  filter:none!important;
  color:#ffffff!important;
}
.public-theme.wedding-portrait-floral-ivory .floating-nav-btn.auto-scroll-toggle span{
  display:inline-flex!important;
  width:30px!important;
  height:30px!important;
  background:none!important;
  font-size:20px!important;
  color:inherit!important;
  filter:none!important;
}
@media(max-width:768px){
  .public-theme.wedding-portrait-floral-ivory .floating-nav-btn span{width:26px;height:26px;font-size:18px!important;}
  .public-theme.wedding-portrait-floral-ivory .floating-nav-btn:nth-child(1) span,
  .public-theme.wedding-portrait-floral-ivory .floating-nav-btn:nth-child(2) span,
  .public-theme.wedding-portrait-floral-ivory .floating-nav-btn:nth-child(3) span,
  .public-theme.wedding-portrait-floral-ivory .floating-nav-btn:nth-child(4) span,
  .public-theme.wedding-portrait-floral-ivory .floating-nav-btn:nth-child(5) span{width:25px!important;height:25px!important;font-size:0!important;}
}

/* Stage 11AR - Portrait Floral gallery frame square fix */
.public-theme.wedding-portrait-floral-ivory .gallery-grid-rich .gallery-item,
.public-theme.wedding-portrait-floral-ivory .gallery-grid .gallery-item,
.public-theme.wedding-portrait-floral-ivory .gallery-layout-classicgrid .gallery-item,
.public-theme.wedding-portrait-floral-ivory .gallery-layout-mosaic .gallery-item,
.public-theme.wedding-portrait-floral-ivory .gallery-layout-magazine .gallery-item,
.public-theme.wedding-portrait-floral-ivory .gallery-layout-scrapbook .gallery-item,
.public-theme.wedding-portrait-floral-ivory .section-gallery-editorial .gallery-item{
  border-radius:0!important;
  overflow:hidden;
}
.public-theme.wedding-portrait-floral-ivory .gallery-grid-rich .gallery-item img,
.public-theme.wedding-portrait-floral-ivory .gallery-grid .gallery-item img,
.public-theme.wedding-portrait-floral-ivory .gallery-layout-classicgrid .gallery-item img,
.public-theme.wedding-portrait-floral-ivory .gallery-layout-mosaic .gallery-item img,
.public-theme.wedding-portrait-floral-ivory .gallery-layout-magazine .gallery-item img,
.public-theme.wedding-portrait-floral-ivory .gallery-layout-scrapbook .gallery-item img,
.public-theme.wedding-portrait-floral-ivory .section-gallery-editorial .gallery-item img{
  border-radius:0!important;
}
.public-theme.wedding-portrait-floral-ivory .gallery-grid-rich .gallery-item::before,
.public-theme.wedding-portrait-floral-ivory .gallery-grid .gallery-item::before{
  border-radius:0!important;
}

/* Stage 11AS - Google Maps preview for all invitation themes */
.map-card-with-preview{padding:0!important;overflow:hidden;display:flex!important;flex-direction:column;gap:0;color:var(--theme-text,#1f2937);text-decoration:none}.map-card-with-preview:hover{text-decoration:none}.map-card-body{padding:22px;display:grid;gap:8px}.map-card-body .btn{justify-self:flex-start;margin-top:6px}.map-preview-shell{position:relative;width:100%;min-height:240px;overflow:hidden;border-radius:22px;background:linear-gradient(135deg,#e5e7eb,#f8fafc);border:1px solid var(--theme-border,rgba(15,23,42,.12));box-shadow:inset 0 0 0 1px rgba(255,255,255,.5);isolation:isolate}.map-card-with-preview>.map-preview-shell{border:0;border-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;min-height:238px;box-shadow:none}.google-map-preview-frame{display:block;width:100%;height:260px;border:0;background:#e5e7eb;filter:saturate(.98) contrast(1.02)}.map-card-with-preview>.map-preview-shell .google-map-preview-frame{height:250px}.event-map-preview{margin:16px 0 18px;min-height:190px;border-radius:18px}.event-map-preview .google-map-preview-frame{height:190px}.public-theme .section-maps-spotlight .map-card-with-preview,.public-theme .section-maps-soft .map-card-with-preview,.public-theme .section-maps-minimal .map-card-with-preview{border-color:var(--theme-border,rgba(15,23,42,.12))}.public-theme.wedding-dark-editorial .map-preview-shell,.public-theme.wedding-midnight-floral .map-preview-shell,.public-theme.wedding-sekar-kawung-indigo .map-preview-shell,.public-theme.wedding-gebyok-emerald-night .map-preview-shell,.public-theme.wedding-jade-lantern-glow .map-preview-shell,.public-theme.wedding-scarlet-lattice-romance .map-preview-shell{background:#111827;border-color:rgba(255,255,255,.14)}.public-theme.wedding-portrait-floral-ivory .map-preview-shell{border-radius:0;background:#efe5d0;border-color:#d7bc89}.public-theme.wedding-portrait-floral-ivory .map-card-with-preview>.map-preview-shell{border-radius:0}.public-theme.wedding-portrait-floral-ivory .map-card-with-preview{border-radius:0!important}@media(max-width:768px){.maps-grid{grid-template-columns:1fr!important}.map-card-body{padding:18px}.map-preview-shell{min-height:210px;border-radius:18px}.map-card-with-preview>.map-preview-shell{min-height:210px}.google-map-preview-frame,.map-card-with-preview>.map-preview-shell .google-map-preview-frame{height:220px}.event-map-preview{min-height:180px;border-radius:16px}.event-map-preview .google-map-preview-frame{height:180px}}


/* Stage 11AV - Google Map preview iframe disabled temporarily */
.map-preview-shell,
.event-map-preview,
.google-map-preview-frame {
    display: none !important;
}
.map-card-with-preview {
    overflow: visible;
}
.map-card .map-card-body {
    width: 100%;
}


/* Stage 11AW: global cover notice for guest name/title writing disclaimer */
.opening-name-note{
  margin:10px 0 0;
  max-width:46ch;
  font-size:12.5px;
  line-height:1.55;
  color:color-mix(in srgb,var(--theme-text,#1f2937) 74%,var(--muted,#6b7280));
  opacity:.92;
}
.opening-card .opening-name-note{
  text-shadow:none;
}
.public-theme.wedding-dark-editorial .opening-name-note,
.public-theme.wedding-midnight-floral .opening-name-note,
.public-theme.wedding-sekar-kawung-indigo .opening-name-note,
.public-theme.wedding-gebyok-emerald-night .opening-name-note,
.public-theme.wedding-jade-lantern-glow .opening-name-note,
.public-theme.wedding-scarlet-lattice-romance .opening-name-note,
.public-theme.wedding-golden-xi-palace .opening-name-note{
  color:rgba(255,255,255,.86);
}
@media(max-width:768px){
  .opening-name-note{font-size:12px;max-width:100%;}
}


/* ===== Stage 11BC: Karla Cinematic Ivory theme =====
   Original implementation inspired by a cinematic editorial invitation structure.
   Uses existing invitation data and rotates cover photos from the user's gallery. */
.public-theme.wedding-karla-cinematic-ivory{
  --theme-bg:#f2eee7;
  --theme-text:#171717;
  --theme-soft:#f9f6f0;
  --theme-soft-2:#e7e0d6;
  --theme-card:#fffdf9;
  --theme-border:rgba(23,23,23,.18);
  --theme-accent:#171717;
  --theme-accent-2:#a58d6f;
  --theme-hero:#111111;
  --theme-hero-2:#292622;
  --theme-overlay-1:rgba(0,0,0,.22);
  --theme-overlay-2:rgba(0,0,0,.74);
  background:#f2eee7;
  color:#171717;
}
.public-theme.wedding-karla-cinematic-ivory .opening-screen,
.public-theme.wedding-karla-cinematic-ivory .public-hero{
  background-color:#171717!important;
  background-image:none!important;
  isolation:isolate;
}
.public-theme.wedding-karla-cinematic-ivory .karla-cover-slideshow{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
  background:#171717;
}
.public-theme.wedding-karla-cinematic-ivory .karla-cover-slide{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  opacity:0;
  filter:grayscale(1) contrast(1.04) brightness(.84);
  transition:opacity 1.35s ease;
  will-change:opacity;
}
.public-theme.wedding-karla-cinematic-ivory .karla-cover-slide.is-active{opacity:1}
.public-theme.wedding-karla-cinematic-ivory .opening-overlay,
.public-theme.wedding-karla-cinematic-ivory .hero-overlay{
  z-index:1;
  background:
    linear-gradient(180deg,rgba(0,0,0,.18),rgba(0,0,0,.42) 52%,rgba(0,0,0,.78)),
    linear-gradient(90deg,rgba(0,0,0,.22),transparent 42%,rgba(0,0,0,.12));
}
.public-theme.wedding-karla-cinematic-ivory .opening-inner,
.public-theme.wedding-karla-cinematic-ivory .hero-inner,
.public-theme.wedding-karla-cinematic-ivory .opening-ornament,
.public-theme.wedding-karla-cinematic-ivory .hero-ornament{z-index:2}
.public-theme.wedding-karla-cinematic-ivory .opening-card,
.public-theme.wedding-karla-cinematic-ivory .invite-card.modern{
  max-width:620px;
  margin-inline:auto;
  text-align:center;
  color:#fff;
  background:rgba(16,16,16,.36);
  border:1px solid rgba(255,255,255,.42);
  border-radius:0;
  padding:clamp(28px,5vw,54px);
  box-shadow:0 30px 90px rgba(0,0,0,.34);
  backdrop-filter:blur(5px);
  position:relative;
}
.public-theme.wedding-karla-cinematic-ivory .opening-card::before,
.public-theme.wedding-karla-cinematic-ivory .invite-card.modern::before{
  content:'';
  position:absolute;
  inset:12px;
  border:1px solid rgba(255,255,255,.25);
  pointer-events:none;
}
.public-theme.wedding-karla-cinematic-ivory .opening-card h1,
.public-theme.wedding-karla-cinematic-ivory .invite-card.modern h1{
  color:#fff;
  font-size:clamp(46px,8vw,86px);
  line-height:.98;
  letter-spacing:-.045em;
  margin:12px 0 18px;
  text-shadow:0 8px 30px rgba(0,0,0,.35);
}
.public-theme.wedding-karla-cinematic-ivory .opening-card .eyebrow,
.public-theme.wedding-karla-cinematic-ivory .invite-card.modern .eyebrow{
  color:rgba(255,255,255,.9);
  font-size:11px;
  letter-spacing:.32em;
  text-transform:uppercase;
}
.public-theme.wedding-karla-cinematic-ivory .opening-description,
.public-theme.wedding-karla-cinematic-ivory .opening-name-note,
.public-theme.wedding-karla-cinematic-ivory .invite-card.modern .lead,
.public-theme.wedding-karla-cinematic-ivory .invite-card.modern .guest-name{color:rgba(255,255,255,.9)!important}
.public-theme.wedding-karla-cinematic-ivory .opening-guest-box{
  display:block;
  max-width:430px;
  margin:18px auto 0;
  color:#171717;
  background:rgba(248,245,238,.94);
  border:0;
  border-radius:0;
}
.public-theme.wedding-karla-cinematic-ivory .opening-guest-box span{color:#6b665e}
.public-theme.wedding-karla-cinematic-ivory .opening-actions,
.public-theme.wedding-karla-cinematic-ivory .hero-actions{justify-content:center}
.public-theme.wedding-karla-cinematic-ivory .btn.primary,
.public-theme.wedding-karla-cinematic-ivory .btn:not(.ghost){background:#171717;color:#fff;border-color:#171717;border-radius:0}
.public-theme.wedding-karla-cinematic-ivory .opening-card .btn.primary,
.public-theme.wedding-karla-cinematic-ivory .invite-card.modern .btn.primary{background:#f4efe7;color:#171717;border-color:#f4efe7}
.public-theme.wedding-karla-cinematic-ivory .opening-card .btn.ghost,
.public-theme.wedding-karla-cinematic-ivory .invite-card.modern .btn.ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.56);border-radius:0}
.public-theme.wedding-karla-cinematic-ivory .hero-shell{display:block;max-width:760px;margin:0 auto}
.public-theme.wedding-karla-cinematic-ivory .hero-side-visual{display:none!important}
.public-theme.wedding-karla-cinematic-ivory .public-section{
  position:relative;
  overflow:hidden;
  background:#f2eee7;
  color:#171717;
}
.public-theme.wedding-karla-cinematic-ivory .public-section.soft{background:#fffdf9}
.public-theme.wedding-karla-cinematic-ivory .public-section:nth-of-type(4n+1){background:#1a1917;color:#f6f1e9}
.public-theme.wedding-karla-cinematic-ivory .public-section:nth-of-type(4n+1) .section-title h2,
.public-theme.wedding-karla-cinematic-ivory .public-section:nth-of-type(4n+1) .section-title p,
.public-theme.wedding-karla-cinematic-ivory .public-section:nth-of-type(4n+1) .muted,
.public-theme.wedding-karla-cinematic-ivory .public-section:nth-of-type(4n+1) .lead{color:#f6f1e9}
.public-theme.wedding-karla-cinematic-ivory .theme-flow-section::before,
.public-theme.wedding-karla-cinematic-ivory .quote-section::before,
.public-theme.wedding-karla-cinematic-ivory .story-section::before,
.public-theme.wedding-karla-cinematic-ivory .gift-section::before{display:none!important}
.public-theme.wedding-karla-cinematic-ivory .section-title{max-width:760px}
.public-theme.wedding-karla-cinematic-ivory .section-title h2{
  color:#171717;
  font-size:clamp(38px,5vw,66px);
  letter-spacing:-.04em;
  line-height:1;
}
.public-theme.wedding-karla-cinematic-ivory .section-title h2::after{
  content:'';
  display:block;
  width:54px;
  height:1px;
  margin:20px auto 0;
  background:currentColor;
  opacity:.48;
}
.public-theme.wedding-karla-cinematic-ivory .theme-surface-card,
.public-theme.wedding-karla-cinematic-ivory .card,
.public-theme.wedding-karla-cinematic-ivory .event-card,
.public-theme.wedding-karla-cinematic-ivory .gift-card,
.public-theme.wedding-karla-cinematic-ivory .quote-card,
.public-theme.wedding-karla-cinematic-ivory .map-card,
.public-theme.wedding-karla-cinematic-ivory .person-card,
.public-theme.wedding-karla-cinematic-ivory .countdown-item,
.public-theme.wedding-karla-cinematic-ivory .wish-item,
.public-theme.wedding-karla-cinematic-ivory .story-body{
  background:#fffdf9;
  color:#171717;
  border:1px solid rgba(23,23,23,.18);
  border-radius:0!important;
  box-shadow:none;
}
.public-theme.wedding-karla-cinematic-ivory .person-photo,
.public-theme.wedding-karla-cinematic-ivory .person-photo img,
.public-theme.wedding-karla-cinematic-ivory .hero-side-card,
.public-theme.wedding-karla-cinematic-ivory .hero-side-card img,
.public-theme.wedding-karla-cinematic-ivory .story-photo-wrap,
.public-theme.wedding-karla-cinematic-ivory .story-photo-wrap img{border-radius:0!important}
.public-theme.wedding-karla-cinematic-ivory .person-photo img,
.public-theme.wedding-karla-cinematic-ivory .story-photo-wrap img{filter:grayscale(.92) contrast(1.04)}
.public-theme.wedding-karla-cinematic-ivory .section-quote-editorial .quote-card{
  max-width:900px;
  margin-inline:auto;
  padding:clamp(34px,6vw,74px);
  text-align:center;
  border-width:1px 0;
}
.public-theme.wedding-karla-cinematic-ivory .section-quote-editorial .quote-card::before{
  content:'THE PROMISES';
  display:block;
  margin-bottom:22px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.34em;
  color:#766652;
}
.public-theme.wedding-karla-cinematic-ivory .countdown-item strong{font-family:Georgia,serif;color:#171717}
.public-theme.wedding-karla-cinematic-ivory .section-event-timeline .event-card,
.public-theme.wedding-karla-cinematic-ivory .event-layout-timeline .event-card{border-left:4px solid #171717}
.public-theme.wedding-karla-cinematic-ivory .gallery-grid-rich,
.public-theme.wedding-karla-cinematic-ivory .gallery-layout-magazine{gap:8px}
.public-theme.wedding-karla-cinematic-ivory .gallery-item{
  border-radius:0!important;
  border:0!important;
  background:#171717;
  box-shadow:none!important;
}
.public-theme.wedding-karla-cinematic-ivory .gallery-item img{
  border-radius:0!important;
  filter:grayscale(1) contrast(1.04);
}
.public-theme.wedding-karla-cinematic-ivory .gallery-item:hover img{filter:grayscale(.2) contrast(1.02)}
.public-theme.wedding-karla-cinematic-ivory .field input,
.public-theme.wedding-karla-cinematic-ivory .field textarea,
.public-theme.wedding-karla-cinematic-ivory .field select{border-radius:0;background:#fff;color:#171717;border-color:rgba(23,23,23,.28)}
.public-theme.wedding-karla-cinematic-ivory .footer-couple-name{font-size:clamp(42px,7vw,78px);color:#171717}
.public-theme.wedding-karla-cinematic-ivory .karla-floating-nav{bottom:max(10px,env(safe-area-inset-bottom));}
.public-theme.wedding-karla-cinematic-ivory .karla-nav-shell{
  width:min(520px,calc(100vw - 24px));
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:0;
  padding:6px;
  border-radius:0;
  background:rgba(248,245,238,.97);
  border:1px solid rgba(23,23,23,.24);
  box-shadow:0 18px 44px rgba(0,0,0,.22);
  backdrop-filter:blur(14px);
}
.public-theme.wedding-karla-cinematic-ivory .karla-nav-btn{
  width:auto;
  min-width:0;
  height:58px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  border-radius:0;
  color:#4d4944;
  background:transparent;
  border-right:1px solid rgba(23,23,23,.1);
}
.public-theme.wedding-karla-cinematic-ivory .karla-nav-btn:last-child{border-right:0}
.public-theme.wedding-karla-cinematic-ivory .karla-nav-btn small{font-size:10px;line-height:1;letter-spacing:.05em;text-transform:uppercase;font-weight:800}
.public-theme.wedding-karla-cinematic-ivory .karla-nav-icon{width:24px;height:24px;display:grid;place-items:center}
.public-theme.wedding-karla-cinematic-ivory .karla-nav-icon img{display:block;width:22px;height:22px;object-fit:contain;opacity:.72}
.public-theme.wedding-karla-cinematic-ivory .karla-nav-btn.is-active,
.public-theme.wedding-karla-cinematic-ivory .karla-nav-btn:hover{background:#171717;color:#fff;transform:none}
.public-theme.wedding-karla-cinematic-ivory .karla-nav-btn.is-active img,
.public-theme.wedding-karla-cinematic-ivory .karla-nav-btn:hover img{filter:brightness(0) invert(1);opacity:1}
.public-theme.wedding-karla-cinematic-ivory .karla-auto-scroll-fab{
  position:absolute;
  right:0;
  bottom:70px;
  width:42px;
  height:42px;
  border-radius:50%;
  border:1px solid rgba(23,23,23,.24);
  background:rgba(248,245,238,.96);
  color:#171717;
  box-shadow:0 12px 28px rgba(0,0,0,.2);
  cursor:pointer;
}
.public-theme.wedding-karla-cinematic-ivory .karla-auto-scroll-fab.is-active{background:#171717;color:#fff}
.public-theme.wedding-karla-cinematic-ivory .floating-music-btn{background:#f8f5ee;color:#171717;border:1px solid rgba(23,23,23,.24);border-radius:50%}
.public-theme.wedding-karla-cinematic-ivory .floating-music-btn.is-active{background:#171717;color:#fff}
@media(max-width:768px){
  .public-theme.wedding-karla-cinematic-ivory .opening-card,
  .public-theme.wedding-karla-cinematic-ivory .invite-card.modern{width:calc(100vw - 36px);padding:30px 22px}
  .public-theme.wedding-karla-cinematic-ivory .opening-card h1,
  .public-theme.wedding-karla-cinematic-ivory .invite-card.modern h1{font-size:clamp(42px,13vw,62px)}
  .public-theme.wedding-karla-cinematic-ivory .karla-nav-shell{width:calc(100vw - 16px);padding:4px}
  .public-theme.wedding-karla-cinematic-ivory .karla-nav-btn{height:54px}
  .public-theme.wedding-karla-cinematic-ivory .karla-nav-btn small{font-size:9px}
  .public-theme.wedding-karla-cinematic-ivory .karla-nav-icon{width:21px;height:21px}
  .public-theme.wedding-karla-cinematic-ivory .karla-nav-icon img{width:20px;height:20px}
  .public-theme.wedding-karla-cinematic-ivory .karla-auto-scroll-fab{right:4px;bottom:66px;width:38px;height:38px}
}
@media(prefers-reduced-motion:reduce){
  .public-theme.wedding-karla-cinematic-ivory .karla-cover-slide{transition:none!important}
}

/* 11BC contrast safeguard for alternating dark editorial sections */
.public-theme.wedding-karla-cinematic-ivory .public-section:nth-of-type(4n+1) .section-title h2,
.public-theme.wedding-karla-cinematic-ivory .public-section:nth-of-type(4n+1) .section-title p,
.public-theme.wedding-karla-cinematic-ivory .public-section:nth-of-type(4n+1) > .container > .lead,
.public-theme.wedding-karla-cinematic-ivory .public-section:nth-of-type(4n+1) .footer-couple-name{
  color:#f6f1e9!important;
}

/* ======================================================================
   Stage 11BD — Karla Cinematic contrast and floating controls fix
   ====================================================================== */

/* Keep venue and calendar actions readable on the ivory event/map cards. */
.public-theme.wedding-karla-cinematic-ivory .event-action-row .btn,
.public-theme.wedding-karla-cinematic-ivory .map-card .map-card-body > .btn,
.public-theme.wedding-karla-cinematic-ivory .section-maps-spotlight .btn,
.public-theme.wedding-karla-cinematic-ivory .section-maps-cards .btn {
  background:#171717!important;
  color:#fff!important;
  border:1px solid #171717!important;
  box-shadow:0 8px 18px rgba(23,23,23,.16)!important;
  text-decoration:none!important;
  opacity:1!important;
}
.public-theme.wedding-karla-cinematic-ivory .event-action-row .btn:hover,
.public-theme.wedding-karla-cinematic-ivory .event-action-row .btn:focus-visible,
.public-theme.wedding-karla-cinematic-ivory .map-card .map-card-body > .btn:hover,
.public-theme.wedding-karla-cinematic-ivory .map-card .map-card-body > .btn:focus-visible,
.public-theme.wedding-karla-cinematic-ivory .section-maps-spotlight .btn:hover,
.public-theme.wedding-karla-cinematic-ivory .section-maps-spotlight .btn:focus-visible,
.public-theme.wedding-karla-cinematic-ivory .section-maps-cards .btn:hover,
.public-theme.wedding-karla-cinematic-ivory .section-maps-cards .btn:focus-visible {
  background:#f4efe7!important;
  color:#171717!important;
  border-color:#171717!important;
  outline:2px solid rgba(23,23,23,.22);
  outline-offset:2px;
}

/* Zoom controls sit on a dark lightbox, so force a solid high-contrast surface. */
.public-theme.wedding-karla-cinematic-ivory .gallery-lightbox .lightbox-toolbar .btn,
.public-theme.wedding-karla-cinematic-ivory .gallery-lightbox .lightbox-toolbar .btn.ghost {
  min-width:48px;
  min-height:44px;
  display:inline-grid;
  place-items:center;
  background:#f8f5ee!important;
  color:#171717!important;
  border:2px solid #f8f5ee!important;
  box-shadow:0 8px 22px rgba(0,0,0,.32)!important;
  font-size:22px;
  font-weight:900;
  opacity:1!important;
}
.public-theme.wedding-karla-cinematic-ivory .gallery-lightbox .lightbox-toolbar .btn:hover,
.public-theme.wedding-karla-cinematic-ivory .gallery-lightbox .lightbox-toolbar .btn:focus-visible {
  background:#171717!important;
  color:#fff!important;
  border-color:#fff!important;
  outline:2px solid rgba(255,255,255,.55);
  outline-offset:2px;
}
.public-theme.wedding-karla-cinematic-ivory .gallery-lightbox .lightbox-toolbar .chip {
  min-height:44px;
  display:inline-flex;
  align-items:center;
  background:#f8f5ee!important;
  color:#171717!important;
  border:2px solid #f8f5ee!important;
  box-shadow:0 8px 22px rgba(0,0,0,.32);
  font-weight:800;
}

/* Footer must remain readable regardless of its order among dynamic sections. */
.public-theme.wedding-karla-cinematic-ivory .section-footer-signature {
  background:#171717!important;
  color:#f8f5ee!important;
}
.public-theme.wedding-karla-cinematic-ivory .section-footer-signature .section-title h2,
.public-theme.wedding-karla-cinematic-ivory .section-footer-signature .section-title p,
.public-theme.wedding-karla-cinematic-ivory .section-footer-signature .lead,
.public-theme.wedding-karla-cinematic-ivory .section-footer-signature .footer-couple-name,
.public-theme.wedding-karla-cinematic-ivory .section-footer-signature .muted,
.public-theme.wedding-karla-cinematic-ivory .section-footer-signature p,
.public-theme.wedding-karla-cinematic-ivory .section-footer-signature h3,
.public-theme.wedding-karla-cinematic-ivory .section-footer-signature a {
  color:#f8f5ee!important;
  opacity:1!important;
  text-shadow:0 2px 14px rgba(0,0,0,.22);
}
.public-theme.wedding-karla-cinematic-ivory .section-footer-signature .section-title h2::after {
  background:#f8f5ee!important;
  opacity:.72;
}

/* Put music and auto-scroll above opposite sides of the bottom navigation. */
.public-theme.wedding-karla-cinematic-ivory .karla-auto-scroll-fab {
  left:max(12px,env(safe-area-inset-left));
  right:auto!important;
  bottom:78px;
  z-index:58;
  pointer-events:auto;
}
.public-theme.wedding-karla-cinematic-ivory .floating-music-btn {
  left:auto!important;
  right:max(12px,env(safe-area-inset-right));
  bottom:88px!important;
  z-index:59;
  pointer-events:auto;
}

@media(max-width:768px){
  .public-theme.wedding-karla-cinematic-ivory .event-action-row {
    display:grid;
    grid-template-columns:1fr;
    gap:9px;
    width:100%;
  }
  .public-theme.wedding-karla-cinematic-ivory .event-action-row .btn,
  .public-theme.wedding-karla-cinematic-ivory .map-card .map-card-body > .btn {
    width:100%;
    min-height:46px;
    justify-content:center;
  }
  .public-theme.wedding-karla-cinematic-ivory .karla-auto-scroll-fab {
    left:max(10px,env(safe-area-inset-left));
    right:auto!important;
    bottom:68px;
  }
  .public-theme.wedding-karla-cinematic-ivory .floating-music-btn {
    right:max(10px,env(safe-area-inset-right));
    bottom:78px!important;
  }
  .public-theme.wedding-karla-cinematic-ivory .gallery-lightbox .lightbox-toolbar {
    bottom:max(18px,env(safe-area-inset-bottom));
    width:calc(100% - 28px);
    justify-content:center;
  }
}

/* ======================================================================
   Stage 11BE — Karla mobile hero compact + footer container removal
   ====================================================================== */

/* Remove the decorative boxed container from the Karla closing/footer. */
.public-theme.wedding-karla-cinematic-ivory .section-footer-signature .narrow-center {
  max-width:760px;
  margin-inline:auto;
  padding:0 18px!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.public-theme.wedding-karla-cinematic-ivory .section-footer-signature .narrow-center::before,
.public-theme.wedding-karla-cinematic-ivory .section-footer-signature .narrow-center::after {
  content:none!important;
  display:none!important;
}

/* Keep the mobile hero content box compact so more of the cover photo remains visible. */
@media (max-width:768px) {
  .public-theme.wedding-karla-cinematic-ivory .public-hero .hero-inner {
    width:100%;
    padding:64px 34px 92px!important;
    justify-content:center;
  }
  .public-theme.wedding-karla-cinematic-ivory .public-hero .hero-shell {
    width:100%;
    max-width:330px;
    margin-inline:auto;
  }
  .public-theme.wedding-karla-cinematic-ivory .public-hero .invite-card.modern {
    width:min(82vw,330px)!important;
    max-width:330px!important;
    margin-inline:auto!important;
    padding:22px 16px!important;
    background:rgba(16,16,16,.30)!important;
    backdrop-filter:blur(3px);
    box-shadow:0 18px 54px rgba(0,0,0,.28);
  }
  .public-theme.wedding-karla-cinematic-ivory .public-hero .invite-card.modern::before {
    inset:8px;
  }
  .public-theme.wedding-karla-cinematic-ivory .public-hero .invite-card.modern h1 {
    margin:8px 0 12px;
    font-size:clamp(36px,11vw,50px)!important;
    line-height:1;
    overflow-wrap:anywhere;
  }
  .public-theme.wedding-karla-cinematic-ivory .public-hero .invite-card.modern .eyebrow {
    font-size:9px;
    letter-spacing:.24em;
  }
  .public-theme.wedding-karla-cinematic-ivory .public-hero .invite-card.modern .lead {
    margin:0 0 10px;
    font-size:14px;
    line-height:1.55;
  }
  .public-theme.wedding-karla-cinematic-ivory .public-hero .invite-card.modern .guest-name {
    margin:0 0 12px;
    font-size:15px;
    line-height:1.45;
  }
  .public-theme.wedding-karla-cinematic-ivory .public-hero .hero-actions {
    gap:7px;
  }
  .public-theme.wedding-karla-cinematic-ivory .public-hero .hero-actions .btn {
    min-height:40px;
    padding:9px 12px;
    font-size:12px;
    line-height:1.2;
  }

  .public-theme.wedding-karla-cinematic-ivory .section-footer-signature .narrow-center {
    padding:0 14px!important;
  }
}

@media (max-width:390px) {
  .public-theme.wedding-karla-cinematic-ivory .public-hero .hero-inner {
    padding-inline:28px!important;
  }
  .public-theme.wedding-karla-cinematic-ivory .public-hero .invite-card.modern {
    width:min(84vw,304px)!important;
    padding:20px 14px!important;
  }
  .public-theme.wedding-karla-cinematic-ivory .public-hero .invite-card.modern h1 {
    font-size:clamp(34px,10.5vw,44px)!important;
  }
}

/* =====================================================================
   Stage 11BF — Karla gift copy button contrast fix
   Keeps all Gift copy actions readable on the light ivory surfaces.
   ===================================================================== */
.public-theme.wedding-karla-cinematic-ivory .gift-section .gift-card .js-public-copy,
.public-theme.wedding-karla-cinematic-ivory .gift-section .gift-card .btn.ghost.js-public-copy {
  background:#171717!important;
  color:#fffaf0!important;
  border:1px solid #171717!important;
  box-shadow:0 8px 18px rgba(23,23,23,.16)!important;
  opacity:1!important;
  font-weight:800!important;
  text-shadow:none!important;
}

.public-theme.wedding-karla-cinematic-ivory .gift-section .gift-card .js-public-copy:hover,
.public-theme.wedding-karla-cinematic-ivory .gift-section .gift-card .js-public-copy:focus-visible,
.public-theme.wedding-karla-cinematic-ivory .gift-section .gift-card .btn.ghost.js-public-copy:hover,
.public-theme.wedding-karla-cinematic-ivory .gift-section .gift-card .btn.ghost.js-public-copy:focus-visible {
  background:#b08a52!important;
  color:#171717!important;
  border-color:#b08a52!important;
  box-shadow:0 10px 22px rgba(176,138,82,.28)!important;
  outline:3px solid rgba(176,138,82,.24)!important;
  outline-offset:2px!important;
}

.public-theme.wedding-karla-cinematic-ivory .gift-section .gift-card .js-public-copy.is-active,
.public-theme.wedding-karla-cinematic-ivory .gift-section .gift-card .btn.ghost.js-public-copy.is-active {
  background:#315b46!important;
  color:#ffffff!important;
  border-color:#315b46!important;
  box-shadow:0 10px 22px rgba(49,91,70,.26)!important;
}

@media (max-width:768px) {
  .public-theme.wedding-karla-cinematic-ivory .gift-section .gift-card .btn-row {
    display:grid!important;
    grid-template-columns:1fr!important;
    width:100%!important;
  }
  .public-theme.wedding-karla-cinematic-ivory .gift-section .gift-card .js-public-copy {
    width:100%!important;
    min-height:44px!important;
    justify-content:center!important;
  }
}

/* =========================================================
   STAGE 11BH — Gallery drag order + polished uploader
   ========================================================= */
.editor-form .gallery-editor-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:10px 0 14px;
  padding:14px 16px;
  border:1px solid rgba(111,78,55,.16);
  border-radius:16px;
  background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(249,245,239,.92));
  box-shadow:0 10px 28px rgba(45,32,24,.06);
}
.editor-form .gallery-editor-summary>div{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.editor-form .gallery-editor-summary strong{
  color:#2f241d;
  font-size:.98rem;
}
.editor-form .gallery-editor-summary span{
  color:#74675e;
  font-size:.84rem;
}
.editor-form .gallery-limit-badge{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:54px;
  min-height:38px;
  padding:7px 12px;
  border-radius:999px;
  background:#2f241d;
  color:#fff!important;
  font-weight:800;
  letter-spacing:.02em;
}
.editor-form .gallery-upload-field{margin-top:0}
.editor-form .gallery-upload-native{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
.editor-form .gallery-upload-dropzone{
  width:100%;
  min-height:118px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:16px;
  padding:20px;
  border:1.5px dashed rgba(111,78,55,.34);
  border-radius:20px;
  background:
    radial-gradient(circle at 10% 20%,rgba(207,178,139,.18),transparent 34%),
    linear-gradient(135deg,#fff,#fbf7f1);
  color:#2f241d;
  cursor:pointer;
  transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease,background .2s ease;
  box-sizing:border-box;
}
.editor-form .gallery-upload-dropzone:hover,
.editor-form .gallery-upload-dropzone:focus-within{
  border-color:#866344;
  background:linear-gradient(135deg,#fff,#f7efe5);
  box-shadow:0 14px 34px rgba(68,49,36,.1);
  transform:translateY(-1px);
}
.editor-form .gallery-upload-dropzone.is-full{
  cursor:not-allowed;
  opacity:.72;
  border-style:solid;
  background:#f6f4f1;
}
.editor-form .gallery-upload-icon{
  width:52px;
  height:52px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  color:#fff;
  background:linear-gradient(145deg,#7b5a3e,#3c2c22);
  box-shadow:0 10px 20px rgba(62,43,30,.18);
}
.editor-form .gallery-upload-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:5px;
}
.editor-form .gallery-upload-copy strong{font-size:1rem;color:#2f241d}
.editor-form .gallery-upload-copy small{color:#776a61;line-height:1.45}
.editor-form .gallery-upload-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:9px 15px;
  border-radius:12px;
  background:#2f241d;
  color:#fff;
  font-weight:750;
  white-space:nowrap;
}
.editor-form .gallery-upload-selection{
  margin-top:10px;
  padding:10px 12px;
  border-radius:12px;
  background:#eef8f1;
  border:1px solid #cde9d4;
  color:#245d34;
  font-size:.86rem;
  line-height:1.45;
  overflow-wrap:anywhere;
}
.editor-form .gallery-sort-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.editor-form .gallery-sort-head h3{margin:0 0 4px}
.editor-form .gallery-sort-head p{margin:0}
.editor-form .gallery-sort-status{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:6px 10px;
  border-radius:999px;
  background:#f1eee9;
  color:#6d625a;
  font-size:.78rem;
  font-weight:700;
}
.editor-form .gallery-sort-status[data-state="saving"]{background:#fff5d8;color:#75520d}
.editor-form .gallery-sort-status[data-state="pending"]{background:#eaf1ff;color:#315a9c}
.editor-form .gallery-sort-status[data-state="success"]{background:#eaf8ee;color:#276338}
.editor-form .gallery-sort-status[data-state="error"]{background:#fff0f0;color:#a42d2d}
.editor-form .gallery-sort-grid{
  grid-template-columns:repeat(auto-fill,minmax(185px,1fr));
  align-items:start;
  gap:16px;
}
.editor-form .gallery-sort-item{
  position:relative;
  min-width:0;
  padding:10px;
  border:1px solid rgba(111,78,55,.15);
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 26px rgba(45,32,24,.07);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,opacity .18s ease;
  cursor:default;
  touch-action:auto;
  user-select:none;
}
.editor-form .gallery-sort-item:hover{
  border-color:rgba(111,78,55,.3);
  box-shadow:0 14px 34px rgba(45,32,24,.11);
}
.editor-form .gallery-sort-item.is-dragging{
  opacity:.72;
  transform:scale(.98);
  border-color:#765537;
  box-shadow:0 22px 46px rgba(45,32,24,.2);
  z-index:10;
}
.editor-form .gallery-sort-grid.is-sorting .gallery-sort-item:not(.is-dragging){transition:transform .12s ease}
.editor-form .gallery-sort-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:8px;
}
.editor-form .gallery-drag-handle{
  width:40px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(111,78,55,.18);
  border-radius:10px;
  background:#f8f4ee;
  color:#513d2d;
  font-size:1.15rem;
  font-weight:900;
  cursor:grab;
  touch-action:none;
  line-height:1;
}
.editor-form .gallery-drag-handle:hover{background:#efe5d9;border-color:#8a6848}
.editor-form .gallery-drag-handle:active{cursor:grabbing}
.editor-form .gallery-order-number{
  min-width:32px;
  height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:#2f241d;
  color:#fff;
  font-size:.78rem;
  font-weight:800;
}
.editor-form .gallery-sort-image-wrap{
  position:relative;
  aspect-ratio:4/5;
  overflow:hidden;
  border-radius:13px;
  background:#eee9e2;
}
.editor-form .gallery-sort-image-wrap img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  pointer-events:none;
}
.editor-form .gallery-sort-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:10px;
}
.editor-form .gallery-mobile-order-buttons{display:flex;gap:6px}
.editor-form .gallery-mobile-order-buttons .btn{
  width:36px;
  min-width:36px;
  height:34px;
  min-height:34px;
  padding:0;
  border-radius:9px;
}
.editor-form .gallery-empty-state{
  grid-column:1/-1;
  min-height:150px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:24px;
  border:1px dashed rgba(111,78,55,.25);
  border-radius:18px;
  background:#fbf9f6;
  color:#786c63;
  text-align:center;
}
.editor-form .gallery-empty-state strong{color:#3b2d24}

@media (max-width:720px){
  .editor-form .gallery-editor-summary{padding:12px 13px;border-radius:14px}
  .editor-form .gallery-upload-dropzone{
    grid-template-columns:auto minmax(0,1fr);
    gap:12px;
    min-height:108px;
    padding:16px;
    border-radius:16px;
  }
  .editor-form .gallery-upload-icon{width:46px;height:46px;border-radius:14px}
  .editor-form .gallery-upload-cta{
    grid-column:1/-1;
    width:100%;
    min-height:40px;
  }
  .editor-form .gallery-sort-head{align-items:flex-start}
  .editor-form .gallery-sort-head>.btn-row{width:100%;justify-content:space-between}
  .editor-form .gallery-sort-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .editor-form .gallery-sort-item{padding:8px;border-radius:14px}
  .editor-form .gallery-sort-image-wrap{border-radius:10px;aspect-ratio:1/1.18}
  .editor-form .gallery-sort-actions{align-items:stretch;flex-direction:column}
  .editor-form .gallery-mobile-order-buttons{width:100%}
  .editor-form .gallery-mobile-order-buttons .btn{flex:1;width:auto}
  .editor-form .gallery-sort-actions>.btn.danger{width:100%}
}
@media (max-width:420px){
  .editor-form .gallery-sort-grid{grid-template-columns:1fr}
  .editor-form .gallery-sort-image-wrap{aspect-ratio:4/3}
}
.editor-form .gallery-upload-selection.is-warning{
  background:#fff7e5;
  border-color:#efd596;
  color:#77520c;
}


/* Stage 11BJ — Parent names in Couple section (all invitation themes) */
.public-theme .person-parentage{
  display:grid;
  gap:4px;
  margin:12px 0 14px;
  padding:10px 0;
  border-top:1px solid var(--theme-border,rgba(15,23,42,.12));
  border-bottom:1px solid var(--theme-border,rgba(15,23,42,.12));
  color:var(--theme-text,#1f2937);
  line-height:1.45;
}
.public-theme .person-parentage-intro{
  display:block;
  font-size:13px;
  font-weight:600;
  letter-spacing:.02em;
  color:var(--theme-text,#1f2937);
  opacity:.76;
}
.public-theme .person-parentage-names{
  display:block;
  font-size:15px;
  font-weight:700;
  color:var(--theme-text,#1f2937);
  overflow-wrap:anywhere;
}
.public-theme.wedding-dark-editorial .person-parentage,
.public-theme.wedding-midnight-floral .person-parentage,
.public-theme.wedding-sekar-kawung-indigo .person-parentage,
.public-theme.wedding-gebyok-emerald-night .person-parentage,
.public-theme.wedding-jade-lantern-glow .person-parentage,
.public-theme.wedding-scarlet-lattice-romance .person-parentage{
  border-color:rgba(255,255,255,.18);
}
@media(max-width:768px){
  .public-theme .person-parentage{margin:10px 0 12px;padding:9px 0}
  .public-theme .person-parentage-intro{font-size:12px}
  .public-theme .person-parentage-names{font-size:14px}
}

/* Stage 11BL — Karla Cinematic Ivory quote/prayer alignment fix */
.public-theme.wedding-karla-cinematic-ivory .quote-section .quote-card,
.public-theme.wedding-karla-cinematic-ivory .section-quote-editorial .quote-card,
.public-theme.wedding-karla-cinematic-ivory .section-quote-prayer .quote-card{
  text-align:center!important;
}
.public-theme.wedding-karla-cinematic-ivory .quote-section .quote-card > .eyebrow,
.public-theme.wedding-karla-cinematic-ivory .quote-section .quote-card > h2,
.public-theme.wedding-karla-cinematic-ivory .quote-section .quote-card > .quote-text,
.public-theme.wedding-karla-cinematic-ivory .quote-section .quote-card > .quote-source,
.public-theme.wedding-karla-cinematic-ivory .section-quote-editorial .quote-card > .eyebrow,
.public-theme.wedding-karla-cinematic-ivory .section-quote-editorial .quote-card > h2,
.public-theme.wedding-karla-cinematic-ivory .section-quote-editorial .quote-card > .quote-text,
.public-theme.wedding-karla-cinematic-ivory .section-quote-editorial .quote-card > .quote-source,
.public-theme.wedding-karla-cinematic-ivory .section-quote-prayer .quote-card > .eyebrow,
.public-theme.wedding-karla-cinematic-ivory .section-quote-prayer .quote-card > h2,
.public-theme.wedding-karla-cinematic-ivory .section-quote-prayer .quote-card > .quote-text,
.public-theme.wedding-karla-cinematic-ivory .section-quote-prayer .quote-card > .quote-source{
  width:100%;
  text-align:center!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.public-theme.wedding-karla-cinematic-ivory .quote-section .quote-card > .eyebrow,
.public-theme.wedding-karla-cinematic-ivory .section-quote-editorial .quote-card > .eyebrow,
.public-theme.wedding-karla-cinematic-ivory .section-quote-prayer .quote-card > .eyebrow{
  display:block;
  max-width:none;
}
.public-theme.wedding-karla-cinematic-ivory .quote-section .quote-card > h2,
.public-theme.wedding-karla-cinematic-ivory .section-quote-editorial .quote-card > h2,
.public-theme.wedding-karla-cinematic-ivory .section-quote-prayer .quote-card > h2{
  max-width:24ch!important;
  margin-top:8px!important;
  margin-bottom:18px!important;
  text-wrap:balance;
}
.public-theme.wedding-karla-cinematic-ivory .quote-section .quote-card > .quote-text,
.public-theme.wedding-karla-cinematic-ivory .section-quote-editorial .quote-card > .quote-text,
.public-theme.wedding-karla-cinematic-ivory .section-quote-prayer .quote-card > .quote-text{
  max-width:64ch;
  margin-top:0!important;
  margin-bottom:0!important;
  line-height:1.85;
  text-wrap:pretty;
}
.public-theme.wedding-karla-cinematic-ivory .quote-section .quote-card > .quote-source,
.public-theme.wedding-karla-cinematic-ivory .section-quote-editorial .quote-card > .quote-source,
.public-theme.wedding-karla-cinematic-ivory .section-quote-prayer .quote-card > .quote-source{
  display:block;
  max-width:44ch;
  margin-top:18px!important;
  margin-bottom:0!important;
}
@media(max-width:768px){
  .public-theme.wedding-karla-cinematic-ivory .quote-section .quote-card,
  .public-theme.wedding-karla-cinematic-ivory .section-quote-editorial .quote-card,
  .public-theme.wedding-karla-cinematic-ivory .section-quote-prayer .quote-card{
    padding-left:20px!important;
    padding-right:20px!important;
  }
  .public-theme.wedding-karla-cinematic-ivory .quote-section .quote-card > h2,
  .public-theme.wedding-karla-cinematic-ivory .section-quote-editorial .quote-card > h2,
  .public-theme.wedding-karla-cinematic-ivory .section-quote-prayer .quote-card > h2{
    max-width:20ch!important;
  }
}

/* =====================================================================
   Stage 11BM — Karla mobile hero card lower placement + compact sizing
   Keeps the cinematic gallery cover visible while preserving readable CTA.
   ===================================================================== */
@media (max-width:768px) {
  .public-theme.wedding-karla-cinematic-ivory .public-hero {
    min-height:100svh;
    align-items:stretch;
  }

  .public-theme.wedding-karla-cinematic-ivory .public-hero .hero-inner {
    min-height:100svh;
    width:100%;
    display:flex;
    align-items:flex-end!important;
    justify-content:center!important;
    padding:
      max(72px,env(safe-area-inset-top))
      18px
      max(112px,calc(env(safe-area-inset-bottom) + 92px))!important;
  }

  .public-theme.wedding-karla-cinematic-ivory .public-hero .hero-shell {
    width:min(76vw,292px)!important;
    max-width:292px!important;
    margin:0 auto!important;
  }

  .public-theme.wedding-karla-cinematic-ivory .public-hero .invite-card.modern {
    width:100%!important;
    max-width:292px!important;
    margin:0 auto!important;
    padding:16px 13px!important;
    background:rgba(12,12,12,.24)!important;
    border-color:rgba(255,255,255,.38)!important;
    backdrop-filter:blur(2.5px);
    box-shadow:0 14px 38px rgba(0,0,0,.24)!important;
  }

  .public-theme.wedding-karla-cinematic-ivory .public-hero .invite-card.modern::before {
    inset:6px!important;
    border-color:rgba(255,255,255,.20)!important;
  }

  .public-theme.wedding-karla-cinematic-ivory .public-hero .invite-card.modern .eyebrow {
    margin-bottom:3px;
    font-size:8px!important;
    line-height:1.2;
    letter-spacing:.21em!important;
  }

  .public-theme.wedding-karla-cinematic-ivory .public-hero .invite-card.modern h1 {
    margin:5px 0 7px!important;
    font-size:clamp(29px,8.8vw,39px)!important;
    line-height:.98!important;
    letter-spacing:-.035em;
  }

  .public-theme.wedding-karla-cinematic-ivory .public-hero .invite-card.modern .lead {
    margin:0 0 6px!important;
    font-size:11.5px!important;
    line-height:1.35!important;
  }

  .public-theme.wedding-karla-cinematic-ivory .public-hero .invite-card.modern .guest-name {
    margin:0 0 8px!important;
    font-size:12px!important;
    line-height:1.35!important;
  }

  .public-theme.wedding-karla-cinematic-ivory .public-hero .hero-actions {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:5px!important;
    width:100%;
    margin-top:0;
  }

  .public-theme.wedding-karla-cinematic-ivory .public-hero .hero-actions .btn {
    width:100%;
    min-width:0;
    min-height:33px!important;
    padding:6px 7px!important;
    font-size:9.5px!important;
    line-height:1.15!important;
    white-space:normal;
  }

  .public-theme.wedding-karla-cinematic-ivory .public-hero .hero-actions .btn:first-child {
    grid-column:1 / -1;
  }
}

@media (max-width:390px) {
  .public-theme.wedding-karla-cinematic-ivory .public-hero .hero-inner {
    padding-left:14px!important;
    padding-right:14px!important;
    padding-bottom:max(106px,calc(env(safe-area-inset-bottom) + 88px))!important;
  }

  .public-theme.wedding-karla-cinematic-ivory .public-hero .hero-shell {
    width:min(79vw,278px)!important;
    max-width:278px!important;
  }

  .public-theme.wedding-karla-cinematic-ivory .public-hero .invite-card.modern {
    max-width:278px!important;
    padding:14px 11px!important;
  }

  .public-theme.wedding-karla-cinematic-ivory .public-hero .invite-card.modern h1 {
    font-size:clamp(27px,8.4vw,35px)!important;
  }

  .public-theme.wedding-karla-cinematic-ivory .public-hero .hero-actions .btn {
    font-size:9px!important;
    padding-inline:5px!important;
  }
}


/* =========================================================
   STAGE 11BN · TV Gallery Display
   Fullscreen slideshow, uncropped images, fade transitions,
   previous/next controls and thumbnail navigation.
   ========================================================= */
.gallery-tv-body{
    margin:0;
    min-width:320px;
    min-height:100vh;
    min-height:100dvh;
    overflow:hidden;
    background:#050505;
    color:#fff;
    font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
}
.gallery-tv-body *{box-sizing:border-box}
.gallery-tv-shell{
    --gallery-toolbar-height:82px;
    --gallery-thumb-height:150px;
    --gallery-accent:#d8b97a;
    position:relative;
    display:grid;
    grid-template-rows:var(--gallery-toolbar-height) minmax(0,1fr) var(--gallery-thumb-height);
    width:100vw;
    height:100vh;
    height:100dvh;
    overflow:hidden;
    background:#050505;
    isolation:isolate;
}
.gallery-tv-toolbar{
    position:relative;
    z-index:30;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    min-width:0;
    padding:12px clamp(18px,2.4vw,42px);
    border-bottom:1px solid rgba(255,255,255,.12);
    background:linear-gradient(180deg,rgba(5,5,5,.98),rgba(5,5,5,.86));
    backdrop-filter:blur(16px);
}
.gallery-tv-heading{min-width:0}
.gallery-tv-kicker{
    display:block;
    margin-bottom:3px;
    color:var(--gallery-accent);
    font-size:11px;
    font-weight:800;
    letter-spacing:.18em;
    text-transform:uppercase;
}
.gallery-tv-heading h1{
    margin:0;
    overflow:hidden;
    color:#fff;
    font-family:Georgia,"Times New Roman",serif;
    font-size:clamp(20px,2.2vw,34px);
    font-weight:600;
    line-height:1.08;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.gallery-tv-toolbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto}
.gallery-tv-counter{
    min-width:68px;
    padding:9px 12px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:999px;
    background:rgba(255,255,255,.07);
    color:rgba(255,255,255,.72);
    font-variant-numeric:tabular-nums;
    text-align:center;
}
.gallery-tv-counter strong{color:#fff}
.gallery-tv-tool-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-height:42px;
    padding:9px 13px;
    border:1px solid rgba(255,255,255,.16);
    border-radius:12px;
    background:rgba(255,255,255,.08);
    color:#fff;
    font:inherit;
    font-size:13px;
    font-weight:750;
    line-height:1;
    text-decoration:none;
    cursor:pointer;
    transition:background .2s ease,border-color .2s ease,transform .2s ease;
}
.gallery-tv-tool-btn:hover,.gallery-tv-tool-btn:focus-visible{
    border-color:rgba(216,185,122,.7);
    background:rgba(216,185,122,.2);
    outline:none;
    transform:translateY(-1px);
}
.gallery-tv-stage{
    position:relative;
    z-index:1;
    min-width:0;
    min-height:0;
    overflow:hidden;
    background:#080808;
}
.gallery-tv-slide{
    position:absolute;
    inset:0;
    z-index:1;
    margin:0;
    overflow:hidden;
    opacity:0;
    pointer-events:none;
    transition:opacity 900ms ease;
}
.gallery-tv-slide.is-active{z-index:2;opacity:1;pointer-events:auto}
.gallery-tv-ambient{
    position:absolute;
    inset:-40px;
    width:calc(100% + 80px);
    height:calc(100% + 80px);
    object-fit:cover;
    filter:blur(34px) saturate(.85) brightness(.42);
    opacity:.58;
    transform:scale(1.06);
}
.gallery-tv-slide::after{
    content:"";
    position:absolute;
    inset:0;
    background:radial-gradient(circle at center,transparent 32%,rgba(0,0,0,.23) 100%);
    pointer-events:none;
}
.gallery-tv-image-frame{
    position:absolute;
    inset:clamp(12px,1.8vw,28px) clamp(74px,7vw,132px);
    z-index:2;
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:0;
    min-height:0;
}
.gallery-tv-image{
    display:block;
    width:100%;
    height:100%;
    max-width:100%;
    max-height:100%;
    object-fit:contain !important;
    object-position:center center;
    border-radius:4px;
    filter:drop-shadow(0 24px 55px rgba(0,0,0,.42));
    user-select:none;
    -webkit-user-drag:none;
}
.gallery-tv-nav{
    position:absolute;
    top:50%;
    z-index:20;
    display:flex;
    align-items:center;
    justify-content:center;
    width:58px;
    height:76px;
    margin-top:-38px;
    border:1px solid rgba(255,255,255,.18);
    border-radius:16px;
    background:rgba(5,5,5,.58);
    color:#fff;
    font:300 58px/1 Georgia,serif;
    cursor:pointer;
    backdrop-filter:blur(10px);
    transition:background .2s ease,border-color .2s ease,transform .2s ease;
}
.gallery-tv-nav:hover,.gallery-tv-nav:focus-visible{
    border-color:rgba(216,185,122,.75);
    background:rgba(216,185,122,.22);
    outline:none;
    transform:scale(1.04);
}
.gallery-tv-prev{left:18px}
.gallery-tv-next{right:18px}
.gallery-tv-progress{
    position:absolute;
    z-index:25;
    right:0;
    bottom:0;
    left:0;
    height:3px;
    overflow:hidden;
    background:rgba(255,255,255,.08);
}
.gallery-tv-progress span{display:block;width:0;height:100%;background:linear-gradient(90deg,#9b7444,var(--gallery-accent),#f0dbad)}
.gallery-tv-shell.is-paused .gallery-tv-progress span{width:0!important}
.gallery-tv-thumbnails{
    position:relative;
    z-index:30;
    min-width:0;
    padding:12px 18px 15px;
    border-top:1px solid rgba(255,255,255,.12);
    background:linear-gradient(180deg,rgba(10,10,10,.94),#050505);
}
.gallery-tv-thumb-track{
    display:flex;
    align-items:center;
    gap:10px;
    height:100%;
    overflow-x:auto;
    overflow-y:hidden;
    padding:2px max(0px,calc((100vw - 118px)/2));
    scroll-behavior:smooth;
    scrollbar-width:thin;
    scrollbar-color:rgba(216,185,122,.55) transparent;
}
.gallery-tv-thumb{
    position:relative;
    flex:0 0 104px;
    width:104px;
    height:104px;
    overflow:hidden;
    padding:4px;
    border:2px solid rgba(255,255,255,.14);
    border-radius:12px;
    background:#111;
    opacity:.62;
    cursor:pointer;
    transition:opacity .2s ease,border-color .2s ease,transform .2s ease,box-shadow .2s ease;
}
.gallery-tv-thumb:hover,.gallery-tv-thumb:focus-visible{opacity:.9;outline:none;transform:translateY(-2px)}
.gallery-tv-thumb.is-active{
    border-color:var(--gallery-accent);
    opacity:1;
    box-shadow:0 0 0 3px rgba(216,185,122,.18),0 12px 28px rgba(0,0,0,.32);
    transform:translateY(-2px);
}
.gallery-tv-thumb img{display:block;width:100%;height:100%;object-fit:contain;background:#0b0b0b;border-radius:7px}
.gallery-tv-thumb span{
    position:absolute;
    right:6px;
    bottom:6px;
    min-width:22px;
    padding:3px 6px;
    border-radius:999px;
    background:rgba(0,0,0,.72);
    color:#fff;
    font-size:11px;
    font-weight:800;
    text-align:center;
}
.gallery-tv-empty{
    grid-row:2 / 4;
    display:grid;
    place-items:center;
    padding:30px;
    background:radial-gradient(circle at 50% 38%,#28231b,#090909 58%,#030303);
}
.gallery-tv-empty-card{max-width:610px;padding:42px;border:1px solid rgba(255,255,255,.14);border-radius:24px;background:rgba(14,14,14,.78);text-align:center;box-shadow:0 30px 90px rgba(0,0,0,.45)}
.gallery-tv-empty-icon{margin-bottom:14px;color:var(--gallery-accent);font-size:54px}
.gallery-tv-empty-card h2{margin:0 0 12px;color:#fff;font-family:Georgia,"Times New Roman",serif;font-size:clamp(27px,4vw,44px)}
.gallery-tv-empty-card p{margin:0 auto 24px;color:rgba(255,255,255,.72);font-size:16px;line-height:1.7}
.gallery-tv-empty-button{display:inline-flex;padding:12px 18px;border-radius:12px;background:var(--gallery-accent);color:#1d160d;font-weight:800;text-decoration:none}

@media (max-width:900px){
    .gallery-tv-shell{--gallery-toolbar-height:70px;--gallery-thumb-height:118px}
    .gallery-tv-toolbar{gap:10px;padding:9px 12px}
    .gallery-tv-kicker{font-size:9px}
    .gallery-tv-heading h1{font-size:20px;max-width:40vw}
    .gallery-tv-tool-btn{min-height:38px;padding:8px 10px}
    .gallery-tv-tool-btn span:not([data-play-icon]):not([data-play-label]){display:none}
    .gallery-tv-counter{min-width:56px;padding:8px 9px}
    .gallery-tv-image-frame{inset:9px 54px}
    .gallery-tv-nav{width:42px;height:58px;margin-top:-29px;border-radius:12px;font-size:44px}
    .gallery-tv-prev{left:7px}.gallery-tv-next{right:7px}
    .gallery-tv-thumbnails{padding:9px 10px 11px}
    .gallery-tv-thumb-track{gap:7px;padding-inline:max(0px,calc((100vw - 88px)/2))}
    .gallery-tv-thumb{flex-basis:78px;width:78px;height:78px;border-radius:9px}
}
@media (max-width:560px){
    .gallery-tv-shell{--gallery-toolbar-height:64px;--gallery-thumb-height:104px}
    .gallery-tv-heading h1{max-width:38vw;font-size:17px}
    .gallery-tv-toolbar-actions{gap:5px}
    .gallery-tv-tool-btn{min-width:36px;padding:7px 8px;font-size:12px}
    .gallery-tv-tool-btn [data-play-label]{display:none}
    .gallery-tv-counter{min-width:49px;font-size:12px}
    .gallery-tv-image-frame{inset:7px 43px}
    .gallery-tv-nav{width:35px;height:50px;margin-top:-25px;font-size:38px}
    .gallery-tv-thumb{flex-basis:66px;width:66px;height:66px}
    .gallery-tv-thumb-track{padding-inline:max(0px,calc((100vw - 76px)/2))}
    .gallery-tv-empty{padding:18px}.gallery-tv-empty-card{padding:28px 20px}
}
@media (prefers-reduced-motion:reduce){
    .gallery-tv-slide{transition:none}
    .gallery-tv-thumb,.gallery-tv-nav,.gallery-tv-tool-btn{transition:none}
}

/* Stage 11BO: public signed TV gallery access */
.gallery-tv-public-error {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: clamp(20px, 4vw, 48px);
}
.gallery-tv-public-error .gallery-tv-empty-card {
    width: min(560px, 100%);
}

/* =====================================================================
   Stage 11BQ — Karla lower opening card + animated primary CTA
   + global courteous recipient honorific
   ===================================================================== */

/* Recipient hierarchy shared by every invitation theme. */
.opening-guest-box .recipient-label,
.guest-name.recipient-block .recipient-label,
.opening-guest-box .recipient-honorific,
.guest-name.recipient-block .recipient-honorific,
.guest-name.recipient-block .guest-recipient-row {
  display:block;
}
.opening-guest-box .recipient-honorific,
.guest-name.recipient-block .recipient-honorific {
  margin-top:4px;
  font-size:clamp(12px,1.4vw,14px);
  line-height:1.35;
  font-weight:700;
  letter-spacing:.025em;
  text-transform:none;
}
.opening-guest-box .recipient-name-row,
.guest-name.recipient-block .guest-recipient-row {
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:7px;
  margin-top:5px;
}
.guest-name.recipient-block {
  display:grid;
  justify-items:center;
  gap:1px;
  text-align:center;
}
.guest-name.recipient-block .recipient-label {
  font-size:.72em;
  line-height:1.25;
  letter-spacing:.12em;
  text-transform:uppercase;
  opacity:.82;
}
.guest-name.recipient-block .guest-recipient-row strong {
  overflow-wrap:anywhere;
}

/* Put the Karla opening content at the bottom on phone, tablet and desktop
   so the cinematic gallery background remains visible. */
.public-theme.wedding-karla-cinematic-ivory .opening-screen {
  align-items:stretch;
}
.public-theme.wedding-karla-cinematic-ivory .opening-screen .opening-inner {
  width:100%;
  min-height:100svh;
  display:flex;
  align-items:flex-end!important;
  justify-content:center!important;
  padding:
    max(54px,env(safe-area-inset-top))
    clamp(18px,4vw,54px)
    max(38px,calc(env(safe-area-inset-bottom) + 26px))!important;
}
.public-theme.wedding-karla-cinematic-ivory .opening-screen .opening-card {
  width:min(88vw,540px)!important;
  max-width:540px!important;
  margin:0 auto!important;
  padding:clamp(22px,3vw,34px)!important;
  background:rgba(10,10,10,.28)!important;
  border-color:rgba(255,255,255,.44)!important;
  box-shadow:0 20px 68px rgba(0,0,0,.32)!important;
  backdrop-filter:blur(3px);
  transform-origin:center bottom;
  transition:
    opacity .38s ease,
    transform .42s cubic-bezier(.2,.8,.2,1),
    filter .42s ease;
}
.public-theme.wedding-karla-cinematic-ivory .opening-screen .opening-card::before {
  inset:8px!important;
}
.public-theme.wedding-karla-cinematic-ivory .opening-screen .opening-card h1 {
  margin:8px 0 11px!important;
  font-size:clamp(40px,6.4vw,68px)!important;
}
.public-theme.wedding-karla-cinematic-ivory .opening-screen .opening-description {
  max-width:46ch;
  margin-inline:auto;
}
.public-theme.wedding-karla-cinematic-ivory .opening-screen .opening-guest-box {
  max-width:390px;
  margin-top:12px;
  padding:11px 15px;
}
.public-theme.wedding-karla-cinematic-ivory .opening-screen .opening-name-note {
  margin:8px auto 0;
}
.public-theme.wedding-karla-cinematic-ivory .opening-screen .opening-actions {
  margin-top:14px!important;
  gap:8px;
}
.public-theme.wedding-karla-cinematic-ivory .opening-screen .small.muted.mt {
  margin-top:9px!important;
  font-size:11px;
  color:rgba(255,255,255,.78)!important;
}

/* Prominent, readable and lightweight animated Open Invitation button. */
.public-theme.wedding-karla-cinematic-ivory .opening-screen .open-invitation-btn {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-width:230px;
  min-height:48px;
  padding:12px 24px!important;
  background:linear-gradient(135deg,#f7d77c 0%,#fff2bd 48%,#d9a947 100%)!important;
  color:#16120a!important;
  border:1px solid #fff3c6!important;
  font-weight:900;
  letter-spacing:.055em;
  text-transform:uppercase;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.24),
    0 14px 34px rgba(217,169,71,.38),
    0 0 28px rgba(255,226,137,.24);
  animation:karla-open-cta-pulse 2.25s ease-in-out infinite;
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    filter .2s ease;
}
.public-theme.wedding-karla-cinematic-ivory .opening-screen .open-invitation-btn::after {
  content:'';
  position:absolute;
  z-index:-1;
  inset:-35% auto -35% -45%;
  width:34%;
  transform:skewX(-18deg);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.76),transparent);
  animation:karla-open-cta-shine 2.8s ease-in-out infinite;
}
.public-theme.wedding-karla-cinematic-ivory .opening-screen .open-invitation-btn:hover,
.public-theme.wedding-karla-cinematic-ivory .opening-screen .open-invitation-btn:focus-visible {
  transform:translateY(-2px) scale(1.025);
  filter:saturate(1.08) brightness(1.04);
  box-shadow:
    0 0 0 4px rgba(255,226,137,.18),
    0 18px 42px rgba(217,169,71,.48),
    0 0 38px rgba(255,226,137,.32);
}
.public-theme.wedding-karla-cinematic-ivory .opening-screen .open-invitation-btn:focus-visible {
  outline:3px solid rgba(255,247,214,.9);
  outline-offset:4px;
}
.public-theme.wedding-karla-cinematic-ivory .opening-screen .open-invitation-btn.is-activating {
  animation:none;
  transform:scale(.94);
  filter:brightness(1.12);
  box-shadow:
    0 0 0 8px rgba(255,226,137,.16),
    0 8px 20px rgba(217,169,71,.34);
}
.public-theme.wedding-karla-cinematic-ivory .opening-screen.is-opening .opening-card {
  opacity:0;
  transform:translateY(22px) scale(.965);
  filter:blur(2px);
}
.public-theme.wedding-karla-cinematic-ivory .opening-screen.is-opening .karla-cover-slideshow {
  transform:scale(1.012);
  transition:transform .48s ease;
}

@keyframes karla-open-cta-pulse {
  0%,100% {
    transform:translateY(0) scale(1);
    box-shadow:
      0 0 0 1px rgba(255,255,255,.24),
      0 14px 34px rgba(217,169,71,.34),
      0 0 22px rgba(255,226,137,.18);
  }
  50% {
    transform:translateY(-2px) scale(1.018);
    box-shadow:
      0 0 0 5px rgba(255,226,137,.12),
      0 18px 42px rgba(217,169,71,.48),
      0 0 36px rgba(255,226,137,.30);
  }
}
@keyframes karla-open-cta-shine {
  0%,28% { left:-45%; opacity:0; }
  42% { opacity:1; }
  62% { left:118%; opacity:0; }
  100% { left:118%; opacity:0; }
}

/* Tablet. */
@media (min-width:769px) and (max-width:1100px) {
  .public-theme.wedding-karla-cinematic-ivory .opening-screen .opening-inner {
    padding-bottom:max(34px,calc(env(safe-area-inset-bottom) + 24px))!important;
  }
  .public-theme.wedding-karla-cinematic-ivory .opening-screen .opening-card {
    width:min(72vw,500px)!important;
    max-width:500px!important;
    padding:25px 24px!important;
  }
  .public-theme.wedding-karla-cinematic-ivory .opening-screen .opening-card h1 {
    font-size:clamp(42px,7vw,62px)!important;
  }
}

/* Mobile. */
@media (max-width:768px) {
  .public-theme.wedding-karla-cinematic-ivory .opening-screen .opening-inner {
    padding:
      max(48px,env(safe-area-inset-top))
      16px
      max(22px,calc(env(safe-area-inset-bottom) + 16px))!important;
  }
  .public-theme.wedding-karla-cinematic-ivory .opening-screen .opening-card {
    width:min(92vw,370px)!important;
    max-width:370px!important;
    padding:18px 14px!important;
  }
  .public-theme.wedding-karla-cinematic-ivory .opening-screen .opening-card h1 {
    margin:6px 0 8px!important;
    font-size:clamp(34px,10vw,48px)!important;
  }
  .public-theme.wedding-karla-cinematic-ivory .opening-screen .opening-description {
    margin-bottom:7px;
    font-size:13px;
    line-height:1.45;
  }
  .public-theme.wedding-karla-cinematic-ivory .opening-screen .opening-guest-box {
    margin-top:8px;
    padding:9px 12px;
  }
  .public-theme.wedding-karla-cinematic-ivory .opening-screen .opening-name-note {
    font-size:10.5px;
    line-height:1.35;
  }
  .public-theme.wedding-karla-cinematic-ivory .opening-screen .opening-actions {
    display:grid!important;
    grid-template-columns:1fr 1fr;
    width:100%;
    gap:6px;
  }
  .public-theme.wedding-karla-cinematic-ivory .opening-screen .opening-actions .btn {
    width:100%;
    min-width:0;
    min-height:38px;
    padding:8px 8px!important;
    font-size:10px;
  }
  .public-theme.wedding-karla-cinematic-ivory .opening-screen .open-invitation-btn {
    grid-column:1 / -1;
    min-height:44px;
    font-size:11px!important;
  }
  .public-theme.wedding-karla-cinematic-ivory .opening-screen .small.muted.mt {
    display:none;
  }
}

@media (max-width:390px) {
  .public-theme.wedding-karla-cinematic-ivory .opening-screen .opening-card {
    width:min(93vw,350px)!important;
    padding:16px 12px!important;
  }
  .public-theme.wedding-karla-cinematic-ivory .opening-screen .opening-card h1 {
    font-size:clamp(31px,9.5vw,42px)!important;
  }
}

@media (prefers-reduced-motion:reduce) {
  .public-theme.wedding-karla-cinematic-ivory .opening-screen .open-invitation-btn,
  .public-theme.wedding-karla-cinematic-ivory .opening-screen .open-invitation-btn::after {
    animation:none!important;
  }
  .public-theme.wedding-karla-cinematic-ivory .opening-screen.is-opening .opening-card {
    transition:none!important;
  }
}

/* ========================================================================== 
   Stage 11BR — Senja Editorial Monochrome
   Original acarain.id theme inspired by monochrome twilight editorial direction.
   ========================================================================== */
.public-theme.wedding-senja-editorial-monochrome{
  --theme-bg:#e8ddd0;
  --theme-soft:#f3ebe2;
  --theme-card:#f7f0e7;
  --theme-text:#191613;
  --theme-muted:#675c51;
  --theme-border:rgba(25,22,19,.22);
  --theme-accent:#bb9271;
  --theme-accent-2:#8b6249;
  --theme-hero:#171411;
  --theme-hero-2:#6b4f3d;
  --senja-ink:#151310;
  --senja-paper:#eee4d9;
  --senja-cream:#fff8ef;
  --senja-sand:#c9aa90;
  --senja-line:rgba(21,19,16,.22);
  --senja-shadow:0 24px 64px rgba(14,12,10,.18);
  background:#e8ddd0;
  color:var(--senja-ink);
  overflow-x:clip;
}
.public-theme.wedding-senja-editorial-monochrome,
.public-theme.wedding-senja-editorial-monochrome button,
.public-theme.wedding-senja-editorial-monochrome input,
.public-theme.wedding-senja-editorial-monochrome textarea,
.public-theme.wedding-senja-editorial-monochrome select{
  font-family:"Arial Narrow","Aptos Narrow","Helvetica Neue",Arial,sans-serif;
}
.public-theme.wedding-senja-editorial-monochrome h1,
.public-theme.wedding-senja-editorial-monochrome h2,
.public-theme.wedding-senja-editorial-monochrome h3,
.public-theme.wedding-senja-editorial-monochrome .footer-couple-name{
  font-family:"Iowan Old Style","Baskerville","Palatino Linotype",Palatino,Georgia,serif;
  font-weight:500;
  letter-spacing:-.035em;
}
.public-theme.wedding-senja-editorial-monochrome::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:.2;
  background-image:
    radial-gradient(circle at 10% 20%,rgba(255,255,255,.25) 0 1px,transparent 1.5px),
    radial-gradient(circle at 80% 65%,rgba(30,24,19,.16) 0 1px,transparent 1.5px);
  background-size:18px 18px,23px 23px;
  mix-blend-mode:multiply;
}
.public-theme.wedding-senja-editorial-monochrome .opening-screen,
.public-theme.wedding-senja-editorial-monochrome .public-hero{
  isolation:isolate;
  background-image:linear-gradient(145deg,#161310 0%,#563d2e 48%,#c29e80 100%)!important;
  background-repeat:no-repeat!important;
  background-size:cover!important;
  color:#fff8ef;
}
.public-theme.wedding-senja-editorial-monochrome.senja-no-gallery .opening-screen::after,
.public-theme.wedding-senja-editorial-monochrome.senja-no-gallery .public-hero::after{
  content:"SENJA";
  position:absolute;
  right:-.08em;
  top:14%;
  z-index:0;
  font-family:"Arial Black",Impact,sans-serif;
  font-size:clamp(84px,28vw,270px);
  line-height:.75;
  letter-spacing:-.09em;
  color:rgba(255,247,238,.07);
  pointer-events:none;
}
.public-theme.wedding-senja-editorial-monochrome .senja-cover-slideshow{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
  background:#151310;
}
.public-theme.wedding-senja-editorial-monochrome .senja-cover-slide{
  position:absolute;
  inset:-1px;
  width:calc(100% + 2px);
  height:calc(100% + 2px);
  object-fit:cover;
  object-position:var(--cover-desktop-position,50% 50%);
  opacity:0;
  filter:grayscale(1) sepia(.17) contrast(1.12) brightness(.62);
  transform:translate3d(18px,0,0);
  transition:opacity 1.35s cubic-bezier(.22,.61,.36,1),transform 6.5s linear;
  will-change:opacity,transform;
}
.public-theme.wedding-senja-editorial-monochrome .senja-cover-slide.is-active{
  opacity:1;
  transform:translate3d(0,0,0);
}
.public-theme.wedding-senja-editorial-monochrome .opening-overlay,
.public-theme.wedding-senja-editorial-monochrome .hero-overlay{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(180deg,rgba(10,9,8,.12) 0%,rgba(10,9,8,.28) 38%,rgba(10,9,8,.88) 100%),
    linear-gradient(90deg,rgba(15,12,10,.28),transparent 58%);
}
.public-theme.wedding-senja-editorial-monochrome .opening-screen::before{
  content:"SENJA / WEDDING JOURNAL";
  position:absolute;
  z-index:3;
  left:16px;
  top:50%;
  color:rgba(255,248,239,.74);
  font-size:9px;
  font-weight:800;
  letter-spacing:.3em;
  transform:translateY(-50%) rotate(-90deg);
  transform-origin:left top;
  white-space:nowrap;
}
.public-theme.wedding-senja-editorial-monochrome .opening-inner,
.public-theme.wedding-senja-editorial-monochrome .public-hero .hero-inner{
  position:relative;
  z-index:2;
  min-height:100svh;
  display:flex;
  align-items:flex-end;
  justify-content:flex-start;
  padding:clamp(76px,12vh,130px) 20px calc(112px + env(safe-area-inset-bottom));
}
.public-theme.wedding-senja-editorial-monochrome .opening-card,
.public-theme.wedding-senja-editorial-monochrome .public-hero .invite-card.modern{
  width:min(100%,660px);
  max-width:660px;
  margin:0;
  padding:0 0 4px;
  border:0;
  border-top:1px solid rgba(255,248,239,.58);
  border-radius:0;
  background:transparent;
  color:#fff8ef;
  box-shadow:none;
  backdrop-filter:none;
  text-align:left;
}
.public-theme.wedding-senja-editorial-monochrome .opening-card::before,
.public-theme.wedding-senja-editorial-monochrome .public-hero .invite-card.modern::before{display:none}
.public-theme.wedding-senja-editorial-monochrome .senja-edition-mark{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-top:12px;
  color:rgba(255,248,239,.75);
  font-size:9px;
  font-weight:800;
  letter-spacing:.24em;
  text-transform:uppercase;
}
.public-theme.wedding-senja-editorial-monochrome .senja-edition-mark strong{font:inherit;color:inherit}
.public-theme.wedding-senja-editorial-monochrome .opening-card .eyebrow,
.public-theme.wedding-senja-editorial-monochrome .public-hero .eyebrow{
  margin-top:16px;
  color:#e4c5aa;
  font-size:10px;
  font-weight:800;
  letter-spacing:.25em;
}
.public-theme.wedding-senja-editorial-monochrome .opening-card h1,
.public-theme.wedding-senja-editorial-monochrome .public-hero .invite-card.modern h1{
  margin:8px 0 10px;
  max-width:10ch;
  color:#fff8ef;
  font-size:clamp(48px,15vw,84px);
  line-height:.82;
  text-transform:uppercase;
  text-wrap:balance;
  text-shadow:0 4px 30px rgba(0,0,0,.25);
  animation:senja-title-reveal .9s cubic-bezier(.16,1,.3,1) both;
}
.public-theme.wedding-senja-editorial-monochrome .opening-description,
.public-theme.wedding-senja-editorial-monochrome .public-hero .lead,
.public-theme.wedding-senja-editorial-monochrome .public-hero .guest-name{
  color:rgba(255,248,239,.88)!important;
  font-size:13px;
  line-height:1.55;
}
.public-theme.wedding-senja-editorial-monochrome .opening-guest-box{
  display:grid;
  gap:3px;
  width:min(100%,440px);
  margin-top:15px;
  padding:12px 14px;
  border:1px solid rgba(255,248,239,.34);
  border-radius:0;
  background:rgba(14,12,10,.34);
  color:#fff8ef;
  backdrop-filter:blur(8px);
}
.public-theme.wedding-senja-editorial-monochrome .opening-guest-box span,
.public-theme.wedding-senja-editorial-monochrome .opening-name-note{
  color:rgba(255,248,239,.72)!important;
}
.public-theme.wedding-senja-editorial-monochrome .opening-guest-box strong{color:#fff8ef;font-size:17px}
.public-theme.wedding-senja-editorial-monochrome .opening-name-note{font-size:10px;line-height:1.45}
.public-theme.wedding-senja-editorial-monochrome .opening-actions,
.public-theme.wedding-senja-editorial-monochrome .public-hero .hero-actions{
  justify-content:flex-start;
  gap:8px;
}
.public-theme.wedding-senja-editorial-monochrome .btn{
  min-height:44px;
  border-radius:0;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:10px;
  font-weight:800;
}
.public-theme.wedding-senja-editorial-monochrome .opening-actions .btn.primary,
.public-theme.wedding-senja-editorial-monochrome .public-hero .hero-actions .btn.primary{
  position:relative;
  overflow:hidden;
  background:#f4e6d8;
  border-color:#f4e6d8;
  color:#171411;
  box-shadow:0 12px 30px rgba(0,0,0,.25);
}
.public-theme.wedding-senja-editorial-monochrome .opening-actions .btn.primary::after{
  content:"→";
  margin-left:10px;
  display:inline-block;
  animation:senja-arrow 1.4s ease-in-out infinite;
}
.public-theme.wedding-senja-editorial-monochrome .opening-actions .btn.ghost,
.public-theme.wedding-senja-editorial-monochrome .public-hero .hero-actions .btn.ghost{
  background:rgba(18,15,13,.52);
  border-color:rgba(255,248,239,.46);
  color:#fff8ef;
}
.public-theme.wedding-senja-editorial-monochrome .opening-screen.is-opening .opening-card{
  animation:senja-open-card .72s cubic-bezier(.16,1,.3,1) both;
}
.public-theme.wedding-senja-editorial-monochrome .opening-screen.is-opening .senja-cover-slideshow{
  animation:senja-open-photo .78s cubic-bezier(.16,1,.3,1) both;
}
.public-theme.wedding-senja-editorial-monochrome .public-section{
  position:relative;
  padding:78px 0;
  background:#e8ddd0;
  color:#191613;
  border-top:1px solid rgba(25,22,19,.12);
}
.public-theme.wedding-senja-editorial-monochrome .public-section.soft{background:#f2e9df}
.public-theme.wedding-senja-editorial-monochrome .section-title{
  margin-bottom:28px;
  text-align:left;
}
.public-theme.wedding-senja-editorial-monochrome .section-title::before{
  content:"";
  display:block;
  width:38px;
  height:1px;
  margin-bottom:13px;
  background:#191613;
  transform-origin:left;
  animation:senja-line-in .8s ease both;
}
.public-theme.wedding-senja-editorial-monochrome .section-title h2{
  margin:0;
  color:inherit;
  font-size:clamp(38px,12vw,72px);
  line-height:.88;
  text-transform:uppercase;
  text-wrap:balance;
}
.public-theme.wedding-senja-editorial-monochrome .section-title p{max-width:52ch;color:#675c51;line-height:1.7}
.public-theme.wedding-senja-editorial-monochrome .theme-surface-card,
.public-theme.wedding-senja-editorial-monochrome .person-card,
.public-theme.wedding-senja-editorial-monochrome .event-card,
.public-theme.wedding-senja-editorial-monochrome .story-card,
.public-theme.wedding-senja-editorial-monochrome .gift-card,
.public-theme.wedding-senja-editorial-monochrome .map-card,
.public-theme.wedding-senja-editorial-monochrome .countdown-item,
.public-theme.wedding-senja-editorial-monochrome .video-feature-card{
  border:1px solid rgba(25,22,19,.18);
  border-radius:0;
  background:rgba(250,245,238,.86);
  color:#191613;
  box-shadow:var(--senja-shadow);
}
.public-theme.wedding-senja-editorial-monochrome .person-card img,
.public-theme.wedding-senja-editorial-monochrome .story-card img,
.public-theme.wedding-senja-editorial-monochrome .gallery-item,
.public-theme.wedding-senja-editorial-monochrome .gallery-item img{
  border-radius:0!important;
}
.public-theme.wedding-senja-editorial-monochrome .person-card img,
.public-theme.wedding-senja-editorial-monochrome .story-card img,
.public-theme.wedding-senja-editorial-monochrome .gallery-item img{
  filter:grayscale(1) sepia(.10) contrast(1.08);
}
.public-theme.wedding-senja-editorial-monochrome .quote-section,
.public-theme.wedding-senja-editorial-monochrome .section-events-timeline,
.public-theme.wedding-senja-editorial-monochrome .section-gallery-magazine,
.public-theme.wedding-senja-editorial-monochrome .gift-section,
.public-theme.wedding-senja-editorial-monochrome .section-footer-signature{
  background:#171411;
  color:#f6eee4;
}
.public-theme.wedding-senja-editorial-monochrome .quote-section .section-title h2,
.public-theme.wedding-senja-editorial-monochrome .section-events-timeline .section-title h2,
.public-theme.wedding-senja-editorial-monochrome .section-gallery-magazine .section-title h2,
.public-theme.wedding-senja-editorial-monochrome .gift-section .section-title h2,
.public-theme.wedding-senja-editorial-monochrome .section-footer-signature .section-title h2,
.public-theme.wedding-senja-editorial-monochrome .section-footer-signature .footer-couple-name,
.public-theme.wedding-senja-editorial-monochrome .quote-section .quote-text,
.public-theme.wedding-senja-editorial-monochrome .quote-section .quote-source{
  color:#f6eee4;
}
.public-theme.wedding-senja-editorial-monochrome .quote-section .section-title p,
.public-theme.wedding-senja-editorial-monochrome .section-events-timeline .section-title p,
.public-theme.wedding-senja-editorial-monochrome .section-gallery-magazine .section-title p,
.public-theme.wedding-senja-editorial-monochrome .gift-section .section-title p,
.public-theme.wedding-senja-editorial-monochrome .section-footer-signature .lead,
.public-theme.wedding-senja-editorial-monochrome .section-footer-signature p{
  color:#cdbba9;
}
.public-theme.wedding-senja-editorial-monochrome .quote-section .section-title::before,
.public-theme.wedding-senja-editorial-monochrome .section-events-timeline .section-title::before,
.public-theme.wedding-senja-editorial-monochrome .section-gallery-magazine .section-title::before,
.public-theme.wedding-senja-editorial-monochrome .gift-section .section-title::before,
.public-theme.wedding-senja-editorial-monochrome .section-footer-signature .section-title::before{background:#d2b79e}
.public-theme.wedding-senja-editorial-monochrome .quote-card{
  max-width:760px;
  margin:0 auto;
  padding:34px 0;
  border-width:1px 0;
  background:transparent;
  box-shadow:none;
  color:#f6eee4;
  text-align:center;
}
.public-theme.wedding-senja-editorial-monochrome .quote-card .eyebrow,
.public-theme.wedding-senja-editorial-monochrome .quote-card h2,
.public-theme.wedding-senja-editorial-monochrome .quote-card .quote-text,
.public-theme.wedding-senja-editorial-monochrome .quote-card .quote-source{text-align:center;color:inherit}
.public-theme.wedding-senja-editorial-monochrome .event-card,
.public-theme.wedding-senja-editorial-monochrome .gift-card{
  background:#221e1a;
  color:#f6eee4;
  border-color:rgba(246,238,228,.2);
}
.public-theme.wedding-senja-editorial-monochrome .event-card .muted,
.public-theme.wedding-senja-editorial-monochrome .gift-card .muted,
.public-theme.wedding-senja-editorial-monochrome .gift-card p,
.public-theme.wedding-senja-editorial-monochrome .event-card p{color:#cdbba9}
.public-theme.wedding-senja-editorial-monochrome .event-card h3,
.public-theme.wedding-senja-editorial-monochrome .gift-card h3{color:#f6eee4}
.public-theme.wedding-senja-editorial-monochrome .event-card .btn,
.public-theme.wedding-senja-editorial-monochrome .gift-card .btn,
.public-theme.wedding-senja-editorial-monochrome .btn.ghost{
  background:#f2e5d8;
  border-color:#f2e5d8;
  color:#171411;
}
.public-theme.wedding-senja-editorial-monochrome .event-card .btn:hover,
.public-theme.wedding-senja-editorial-monochrome .gift-card .btn:hover,
.public-theme.wedding-senja-editorial-monochrome .btn.ghost:hover{
  background:#d0ac8c;
  border-color:#d0ac8c;
  color:#171411;
}
.public-theme.wedding-senja-editorial-monochrome input,
.public-theme.wedding-senja-editorial-monochrome select,
.public-theme.wedding-senja-editorial-monochrome textarea{
  border-radius:0;
  border-color:rgba(25,22,19,.25);
  background:#fffaf3;
  color:#191613;
}
.public-theme.wedding-senja-editorial-monochrome .gallery-item{
  background:#0e0d0c;
  border:1px solid rgba(246,238,228,.18);
  box-shadow:none;
  overflow:hidden;
}
.public-theme.wedding-senja-editorial-monochrome .gallery-item img{transition:filter .45s ease,opacity .45s ease,transform .45s ease}
.public-theme.wedding-senja-editorial-monochrome .gallery-item:hover img{filter:grayscale(0) sepia(.08);transform:scale(1.015)}
.public-theme.wedding-senja-editorial-monochrome .gallery-lightbox{background:rgba(10,9,8,.97)}
.public-theme.wedding-senja-editorial-monochrome .lightbox-close,
.public-theme.wedding-senja-editorial-monochrome .lightbox-nav,
.public-theme.wedding-senja-editorial-monochrome .lightbox-toolbar .btn{
  background:#f3e7da!important;
  color:#171411!important;
  border-color:#f3e7da!important;
}
.public-theme.wedding-senja-editorial-monochrome .section-footer-signature .narrow-center{
  max-width:760px;
  padding-top:28px;
  padding-bottom:calc(126px + env(safe-area-inset-bottom));
  border-top:1px solid rgba(246,238,228,.22);
}
.public-theme.wedding-senja-editorial-monochrome .footer-couple-name{
  font-size:clamp(42px,13vw,84px);
  text-transform:uppercase;
  line-height:.88;
}
.public-theme.wedding-senja-editorial-monochrome .senja-floating-nav{
  left:50%;
  right:auto;
  bottom:max(10px,env(safe-area-inset-bottom));
  transform:translateX(-50%);
  width:min(calc(100% - 20px),560px);
}
.public-theme.wedding-senja-editorial-monochrome .senja-nav-shell{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:0;
  width:100%;
  max-width:none;
  padding:6px;
  border:1px solid rgba(246,238,228,.18);
  border-radius:0;
  background:rgba(18,15,13,.92);
  box-shadow:0 18px 50px rgba(0,0,0,.32);
  backdrop-filter:blur(14px);
}
.public-theme.wedding-senja-editorial-monochrome .senja-nav-btn{
  width:auto;
  height:48px;
  min-width:0;
  padding:6px 3px;
  display:grid;
  place-items:center;
  gap:1px;
  border-radius:0;
  color:#cbb9a7;
  border-left:1px solid rgba(246,238,228,.10);
}
.public-theme.wedding-senja-editorial-monochrome .senja-nav-btn:first-child{border-left:0}
.public-theme.wedding-senja-editorial-monochrome .senja-nav-btn.is-active{
  background:#f3e7da;
  color:#171411;
}
.public-theme.wedding-senja-editorial-monochrome .senja-nav-number{
  font-size:8px;
  font-weight:800;
  letter-spacing:.16em;
}
.public-theme.wedding-senja-editorial-monochrome .senja-nav-btn small{
  display:block;
  font-size:9px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.public-theme.wedding-senja-editorial-monochrome .senja-auto-scroll-fab,
.public-theme.wedding-senja-editorial-monochrome .floating-music-btn{
  width:42px;
  height:42px;
  border:1px solid rgba(246,238,228,.22);
  border-radius:0;
  background:#171411;
  color:#f6eee4;
  box-shadow:0 12px 32px rgba(0,0,0,.28);
}
.public-theme.wedding-senja-editorial-monochrome .senja-auto-scroll-fab{
  position:absolute;
  right:0;
  bottom:62px;
}
.public-theme.wedding-senja-editorial-monochrome .floating-music-btn{
  right:calc(50% - min(280px,calc(50vw - 10px)));
  bottom:calc(72px + env(safe-area-inset-bottom));
}
.public-theme.wedding-senja-editorial-monochrome .reveal-on-scroll{
  transform:translateY(36px);
  transition:opacity .85s cubic-bezier(.16,1,.3,1),transform .85s cubic-bezier(.16,1,.3,1);
}
.public-theme.wedding-senja-editorial-monochrome .reveal-on-scroll.is-visible{transform:none}
@keyframes senja-title-reveal{
  from{opacity:0;transform:translateY(26px);clip-path:inset(100% 0 0 0)}
  to{opacity:1;transform:none;clip-path:inset(0 0 0 0)}
}
@keyframes senja-line-in{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes senja-arrow{0%,100%{transform:translateX(0)}50%{transform:translateX(5px)}}
@keyframes senja-open-card{to{opacity:0;transform:translateY(40px)}}
@keyframes senja-open-photo{to{opacity:.25;filter:blur(3px)}}
@media(min-width:769px){
  .public-theme.wedding-senja-editorial-monochrome .opening-inner,
  .public-theme.wedding-senja-editorial-monochrome .public-hero .hero-inner{
    padding-left:clamp(68px,8vw,132px);
    padding-right:clamp(68px,8vw,132px);
  }
  .public-theme.wedding-senja-editorial-monochrome .opening-card h1,
  .public-theme.wedding-senja-editorial-monochrome .public-hero .invite-card.modern h1{
    font-size:clamp(78px,9vw,132px);
    max-width:9ch;
  }
  .public-theme.wedding-senja-editorial-monochrome .public-section{padding:110px 0}
}
@media(max-width:768px){
  .public-theme.wedding-senja-editorial-monochrome .senja-cover-slide{object-position:var(--cover-mobile-position,50% 50%)}
  .public-theme.wedding-senja-editorial-monochrome .opening-inner,
  .public-theme.wedding-senja-editorial-monochrome .public-hero .hero-inner{
    padding-left:30px;
    padding-right:18px;
    padding-bottom:calc(112px + env(safe-area-inset-bottom));
  }
  .public-theme.wedding-senja-editorial-monochrome .opening-screen::before{left:11px;font-size:8px}
  .public-theme.wedding-senja-editorial-monochrome .opening-card h1,
  .public-theme.wedding-senja-editorial-monochrome .public-hero .invite-card.modern h1{font-size:clamp(46px,16vw,70px)}
  .public-theme.wedding-senja-editorial-monochrome .opening-actions .btn,
  .public-theme.wedding-senja-editorial-monochrome .public-hero .hero-actions .btn{flex:1 1 calc(50% - 5px);padding:11px 10px}
  .public-theme.wedding-senja-editorial-monochrome .opening-actions .btn:first-child,
  .public-theme.wedding-senja-editorial-monochrome .public-hero .hero-actions .btn:first-child{flex-basis:100%}
  .public-theme.wedding-senja-editorial-monochrome .public-section{padding:70px 0}
  .public-theme.wedding-senja-editorial-monochrome .section-title h2{font-size:clamp(38px,13vw,56px)}
  .public-theme.wedding-senja-editorial-monochrome .cols-2,
  .public-theme.wedding-senja-editorial-monochrome .grid.cols-2{grid-template-columns:1fr}
  .public-theme.wedding-senja-editorial-monochrome .senja-floating-nav{width:calc(100% - 12px);bottom:max(6px,env(safe-area-inset-bottom))}
  .public-theme.wedding-senja-editorial-monochrome .senja-nav-shell{padding:4px}
  .public-theme.wedding-senja-editorial-monochrome .senja-nav-btn{height:46px}
  .public-theme.wedding-senja-editorial-monochrome .senja-auto-scroll-fab{right:2px;bottom:58px}
  .public-theme.wedding-senja-editorial-monochrome .floating-music-btn{right:54px;bottom:calc(64px + env(safe-area-inset-bottom))}
}
@media(max-width:390px){
  .public-theme.wedding-senja-editorial-monochrome .opening-description{display:none}
  .public-theme.wedding-senja-editorial-monochrome .opening-guest-box{padding:9px 10px;margin-top:10px}
  .public-theme.wedding-senja-editorial-monochrome .opening-name-note{font-size:9px}
  .public-theme.wedding-senja-editorial-monochrome .senja-nav-number{display:none}
  .public-theme.wedding-senja-editorial-monochrome .senja-nav-btn small{font-size:8px}
}
@media(prefers-reduced-motion:reduce){
  .public-theme.wedding-senja-editorial-monochrome .senja-cover-slide,
  .public-theme.wedding-senja-editorial-monochrome .opening-card h1,
  .public-theme.wedding-senja-editorial-monochrome .opening-actions .btn.primary::after,
  .public-theme.wedding-senja-editorial-monochrome .reveal-on-scroll,
  .public-theme.wedding-senja-editorial-monochrome .section-title::before{
    animation:none!important;
    transition:none!important;
  }
}

/* Stage 11CE11C — public invitation scroll performance pass (generic themes). */
.public-body{-webkit-overflow-scrolling:touch}
.public-theme .reveal-on-scroll,
.public-theme .reveal-ready{
  transform:translate3d(0,16px,0);
  transition:opacity .48s cubic-bezier(.22,1,.36,1),transform .48s cubic-bezier(.22,1,.36,1);
  backface-visibility:hidden;
}
.public-theme .reveal-ready{transform:translate3d(0,10px,0)}
.public-theme .reveal-on-scroll.is-visible,
.public-theme .reveal-ready.is-visible{transform:translate3d(0,0,0)}
@media (max-width:900px),(hover:none),(pointer:coarse){
  .public-theme .invite-card.modern,
  .public-theme .hero-side-visual,
  .public-theme .story-card,
  .public-theme .event-card,
  .public-theme .person-card,
  .public-theme .gift-card,
  .public-theme .map-card,
  .public-theme .gallery-item,
  .public-theme .countdown-item{transition-duration:.22s}
  .public-theme .invite-card.modern:hover,
  .public-theme .event-card:hover,
  .public-theme .person-card:hover,
  .public-theme .gift-card:hover,
  .public-theme .map-card:hover,
  .public-theme .gallery-item:hover{transform:none}
  .public-theme .gallery-item img,
  .public-theme .story-photo-wrap img,
  .public-theme .hero-side-stack img{transition-duration:.22s}
  .public-theme .gallery-item:hover img,
  .public-theme .story-card:hover .story-photo-wrap img,
  .public-theme .hero-side-stack img:hover{transform:none}
  .public-theme .opening-card,
  .public-theme .hero-side-card,
  .public-theme .scroll-indicator{
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }
}
@media (prefers-reduced-motion:reduce){
  .public-theme .reveal-on-scroll,
  .public-theme .reveal-ready{opacity:1!important;transform:none!important;transition:none!important}
}

/* Stage 11CE14B — section navbar must mirror User Admin sort order on Karla too. */
.public-theme.wedding-karla-cinematic-ivory .karla-nav-shell{
  width:min(760px,calc(100vw - 18px));
  max-width:calc(100vw - 18px);
  display:flex;
  grid-template-columns:none;
  justify-content:flex-start;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-behavior:smooth;
  scroll-snap-type:x proximity;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.public-theme.wedding-karla-cinematic-ivory .karla-nav-shell::-webkit-scrollbar{display:none}
.public-theme.wedding-karla-cinematic-ivory .karla-nav-btn{
  flex:0 0 84px;
  min-width:84px;
  scroll-snap-align:center;
}
@media(max-width:768px){
  .public-theme.wedding-karla-cinematic-ivory .karla-nav-shell{
    width:calc(100vw - 12px);
    max-width:calc(100vw - 12px);
  }
  .public-theme.wedding-karla-cinematic-ivory .karla-nav-btn{
    flex-basis:74px;
    min-width:74px;
  }
}
