:root {
  --burgundy: #57131B;
  --burgundy-dark: #451016;
  --burgundy-envelope: #681C25;
  --cream: #F5EDDF;
  --cream-card: #EFE1CD;
  --ivory: #F8EDDE;
  --muted-rose: #B99591;
  --gold: #D6A34D;
  --soft-gold: #E5C47F;
  --charcoal: #292929;
  --ease: cubic-bezier(.22,.68,.15,1);
  --calligraphy: 'Aref Ruqaa', 'Amiri', 'Traditional Arabic', serif;
  --body: 'Tajawal', Tahoma, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--burgundy); font-family: var(--body); background: #e6dbcd; line-height: 1.8; }
body.is-closed { overflow: hidden; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
svg { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
h1, h2, h3, p { margin: 0; }
.opening, .invitation {
  background-color: var(--cream);
  background-image: radial-gradient(ellipse at 18% 12%, #fff7ea70, transparent 55%), repeating-linear-gradient(30deg, #6f402703 0 1px, transparent 1px 5px), repeating-linear-gradient(120deg, #ffffff16 0 1px, transparent 1px 4px);
}
.opening { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px 22px; overflow-y: auto; transition: opacity .65s ease 1.35s, visibility 0s 2s; }
.opening-inner { width: min(100%, 390px); text-align: center; padding: 20px 0; }
.eyebrow { font-size: 12px; font-weight: 500; color: #81543e; }
.opening-title { font-family: var(--calligraphy); font-weight: 400; font-size: 46px; margin-top: 8px; }
.opening-names { margin-top: 30px; font-family: 'Amiri', serif; font-size: 20px; }
i { font-family: Georgia, serif; font-style: italic; color: var(--gold); }
.opening-names i { padding: 0 9px; font-size: 16px; }
.envelope-stage { perspective: 1100px; margin: 70px auto 42px; width: min(100%, 330px); }
.envelope { position: relative; aspect-ratio: 1.5; filter: drop-shadow(0 24px 17px #45101628); transform-style: preserve-3d; transition: transform 1s var(--ease) .9s; }
.envelope-body { position: absolute; inset: 0; border-radius: 6px; background: linear-gradient(120deg, #7e3038, var(--burgundy-dark)); box-shadow: inset 0 0 0 1px #ffffff12; }
.envelope-letter { position: absolute; inset: 10px 16px 12px; display: flex; flex-direction: column; justify-content: center; align-items: center; background: var(--cream-card); font-family: var(--calligraphy); font-size: 23px; border: 1px solid #c2a56e70; border-radius: 3px; transition: transform 1s var(--ease) .7s; }
.envelope-letter b { color: var(--gold); font: italic 20px Georgia, serif; }
.envelope-left, .envelope-right, .envelope-bottom { position: absolute; inset: 0; border-radius: 5px; }
.envelope-left { clip-path: polygon(0 0, 54% 52%, 0 100%); background: linear-gradient(100deg, #73232e, #57131b); transition: transform 1s var(--ease) .5s; transform-origin: left; }
.envelope-right { clip-path: polygon(100% 0, 46% 52%, 100% 100%); background: linear-gradient(250deg, #72232d, #57131b); transition: transform 1s var(--ease) .5s; transform-origin: right; }
.envelope-bottom { clip-path: polygon(0 100%, 0 97%, 50% 45%, 100% 97%, 100% 100%); background: linear-gradient(0deg, #661d27, #81303a); box-shadow: inset 0 -1px 0 #ffffff19; }
.envelope-flap { position: absolute; inset: -1px 0 0; z-index: 3; clip-path: polygon(0 0, 100% 0, 50% 56%); background: linear-gradient(170deg, #7b2b35, var(--burgundy-envelope) 60%, #4e131c); transform-origin: center top; transition: transform 1.1s var(--ease) .28s; backface-visibility: hidden; }
.envelope-flap::after { content: ''; position: absolute; inset: 2px 3px 0; background: #ffffff0a; clip-path: polygon(0 0, 50% 54%, 100% 0, 50% 55%); }
.envelope-botanical { position: absolute; z-index: 2; width: 90px; height: 150px; left: 8px; bottom: 5px; color: #f8edde; opacity: .085; transform: rotate(-25deg); filter: drop-shadow(0 1px 0 #1f0406); }
.envelope-botanical.second { left: auto; right: 7px; transform: rotate(24deg) scaleX(-1); }
.wax-seal { position: absolute; z-index: 4; width: 65px; height: 65px; left: calc(50% - 32.5px); top: calc(51% - 32.5px); border-radius: 48% 52% 46% 51% / 49% 46% 54% 51%; background: radial-gradient(circle at 32% 25%, #9a4550, #5a1722 60%, #3f0f17); border: 2px solid #762f37; box-shadow: 2px 5px 8px #24030770, inset 2px 2px 2px #b86a5f65, inset -3px -4px 2px #31081188; transition: transform .75s var(--ease), opacity .45s ease .3s; }
.wax-seal::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; border: 1px solid #28050e80; box-shadow: 0 1px 1px #ba6d5d55, inset 0 2px 4px #26020c60; }
.wax-seal svg { position: absolute; inset: 13px; width: 36px; height: 36px; color: #b27c59; opacity: .65; filter: drop-shadow(0 1px 0 #300511); }
.open-button { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 8px 20px; border: 0; border-bottom: 1px solid #b18a5066; color: var(--burgundy); background: transparent; font-size: 15px; }
.open-button svg, .scroll-cue svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.open-button:disabled { cursor: default; }
.opening.is-opening { opacity: 0; visibility: hidden; pointer-events: none; }
.is-opening .wax-seal { transform: translate(8px, 45px) rotate(15deg); opacity: 0; }
.is-opening .envelope-flap { transform: rotateX(178deg); }
.is-opening .envelope-left { transform: rotateY(-22deg); }
.is-opening .envelope-right { transform: rotateY(22deg); }
.is-opening .envelope-letter { transform: translateY(-65px); }
.is-opening .envelope { transform: translateY(35px); }
.invitation { width: 100%; max-width: 480px; margin: 0 auto; min-height: 100vh; padding: 0 24px; box-shadow: 0 0 75px #6d503519; }
.hero { position: relative; text-align: center; padding: 58px 0 42px; }
.hero-art { position: relative; width: 180px; height: 166px; margin: 28px auto 25px; }
.gold-orbit { position: absolute; width: 145px; height: 145px; border: 1px solid #c09b5666; border-radius: 50%; left: 17px; top: 0; }
.gold-orbit::after { content: ''; position: absolute; inset: -8px; border: 1px solid #c09b5625; border-radius: 50%; }
.mini-envelope { position: absolute; width: 146px; height: 92px; bottom: 4px; left: 17px; background: linear-gradient(140deg, #7c2a35, #4f101a); border-radius: 3px; box-shadow: 0 14px 18px #57131b22; }
.mini-envelope::before { content: ''; position: absolute; inset: -54px 0 0; background: #6a202b; clip-path: polygon(0 38%, 50% 0, 100% 38%, 100% 100%, 0 100%); }
.mini-letter { position: absolute; top: -35px; left: 10px; right: 10px; height: 110px; background: var(--ivory); border: 1px solid #d0b079; color: var(--burgundy); font-family: var(--calligraphy); font-size: 30px; padding-top: 3px; }
.mini-letter i { font-size: 17px; }
.mini-fold { position: absolute; inset: 0; background: linear-gradient(140deg, #7e2e3a, #57131b); clip-path: polygon(0 0, 50% 48%, 100% 0, 100% 100%, 0 100%); border-radius: 3px; }
.mini-seal { position: absolute; width: 30px; height: 30px; top: 30px; left: 58px; background: radial-gradient(circle at 30% 20%, #97535b, #53131c); border: 2px solid #85414a; border-radius: 48%; box-shadow: 1px 3px 4px #27030850; }
.mini-seal svg { width: 23px; height: 23px; color: #c39765; }
.occasion { font-size: 13px; color: #896c52; }
.names-composition { position: relative; padding: 22px 0 5px; }
.couple-names { font-weight: 400; position: relative; z-index: 1; }
.couple-names > span { display: block; }
.couple-names .title { font-family: 'Amiri', serif; font-size: 19px; line-height: 1.6; }
.couple-names .name { font-family: var(--calligraphy); font-size: clamp(40px, 12vw, 55px); line-height: 1.75; font-weight: 700; }
.couple-names .bride { font-size: 60px; line-height: 1.55; }
.ampersand { color: var(--gold); font: italic 34px/1.2 Georgia, serif; margin: 4px 0 10px; }
.hero-branch { position: absolute; width: 80px; height: 170px; top: 56px; color: #946850; opacity: .32; }
.hero-branch.right { right: -5px; transform: rotate(7deg) scaleX(-1); }
.hero-branch.left { left: -5px; transform: rotate(-7deg); }
.divider { display: flex; align-items: center; justify-content: center; gap: 14px; width: 76%; margin: 22px auto; color: var(--gold); }
.divider span { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, currentColor); opacity: .7; }
.divider span:last-child { transform: rotate(180deg); }
.divider svg { width: 33px; height: 33px; }
.hero-note { font-family: 'Amiri', serif; font-size: 20px; }
.attendance-hint { width: fit-content; max-width: 92%; min-height: 44px; margin: 17px auto 0; padding: 9px 15px; border: 1px solid #b28e5340; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #795b48; background: #fff9ee66; font-size: 12px; line-height: 1.55; }
.attendance-hint svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--gold); }
.scroll-cue { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: 20px auto 0; color: #997d57; }
.invitation-card { position: relative; isolation: isolate; overflow: hidden; text-align: center; background: linear-gradient(150deg, var(--burgundy), var(--burgundy-dark)); color: var(--ivory); border-radius: 160px 160px 26px 26px; padding: 64px 21px 43px; box-shadow: 0 16px 30px #57131b13; }
.invitation-card::before { content: ''; position: absolute; inset: 10px; border: 1px solid #e5c47f3b; border-radius: 150px 150px 19px 19px; pointer-events: none; }
.card-branch { position: absolute; width: 86px; height: 160px; color: var(--soft-gold); opacity: .12; z-index: -1; }
.card-branch.top { top: 70px; right: -4px; transform: rotate(-18deg); }
.card-branch.bottom { bottom: 4px; left: -4px; transform: rotate(160deg); }
.bismillah { font-family: 'Amiri', serif; font-size: 20px; color: var(--soft-gold); margin-bottom: 28px; }
.small-copy { font-size: 13px; margin-bottom: 8px; }
.hosts { font-family: 'Amiri', serif; font-size: clamp(19px, 5.25vw, 23px); line-height: 2.1; }
.invitation-copy { font-size: 15px; margin: 22px 0; line-height: 2; }
.card-couple { font-family: var(--calligraphy); font-size: clamp(24px, 6.7vw, 30px); line-height: 1.9; }
.card-couple > span { display: block; }
.card-couple i { display: block; font-size: 25px; line-height: 1.4; }
.invitation-card .divider { width: 80%; margin: 29px auto 22px; }
.date-sentence { font-family: 'Amiri', serif; font-size: 18px; line-height: 2; }
.date-sentence strong { font-weight: 400; color: var(--soft-gold); font-size: 20px; }
.date-section { text-align: center; padding: 58px 0 50px; }
.date-composition { margin: 20px auto 0; position: relative; border-top: 1px solid #b28e533c; border-bottom: 1px solid #b28e533c; padding: 22px 8px 25px; }
.date-composition > span:first-child { font-size: 12px; color: #8c6e50; }
.date-composition h2 { font-family: var(--calligraphy); font-size: 55px; font-weight: 400; line-height: 1.8; }
.date-rule { width: 28px; height: 1px; background: var(--gold); display: block; margin: 6px auto 18px; }
.date-composition p { font-family: 'Amiri', serif; font-size: 20px; }
.venue-section { text-align: center; padding: 10px 0 56px; }
h2 { font-family: var(--calligraphy); font-size: 32px; font-weight: 400; line-height: 1.8; }
.venue-section h2 { margin: 6px 0 22px; }
.venue-card { position: relative; isolation: isolate; overflow: hidden; background: #efe3d4; border: 1px solid #a7755433; border-radius: 24px; padding: 38px 20px 24px; }
.place-photo-wrap { position: relative; margin: -38px -20px 28px; height: 230px; overflow: hidden; background: var(--cream-card); }
.place-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.place-photo-wrap::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 54%, #451016b5); pointer-events: none; }
.place-photo-wrap figcaption { position: absolute; z-index: 1; bottom: 13px; right: 18px; color: var(--ivory); font: 23px/1.5 var(--calligraphy); text-shadow: 0 2px 7px #25050a; }
.abstract-map { position: absolute; width: 100%; height: 100%; inset: 0; color: #967e69; opacity: .22; z-index: -1; }
.pin-wrap { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 50%; background: #f8eddedb; box-shadow: 0 0 0 10px #f8edde59; }
.pin-wrap svg { width: 28px; height: 37px; }
.venue-card p { font-family: 'Amiri', serif; font-size: 23px; margin: 18px 0 22px; }
.button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; border: 1px solid var(--burgundy); min-height: 54px; border-radius: 13px; background: var(--burgundy); color: var(--ivory); padding: 12px 14px; font-size: 15px; text-decoration: none; transition: background .2s, transform .2s, box-shadow .2s; }
.button:hover { background: var(--burgundy-dark); box-shadow: 0 5px 15px #57131b1a; }
.button:active { transform: scale(.985); }
.maps-button { font-size: 13px; }
.maps-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; flex-shrink: 0; }
.children-note { position: relative; overflow: hidden; margin: 0 0 17px; padding: 20px 18px 19px; text-align: center; border: 1px solid #b28e5340; border-radius: 20px; background: #fff8ec8c; color: var(--burgundy); }
.children-note::before, .children-note::after { content: ''; position: absolute; top: 50%; width: 52px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); opacity: .55; }
.children-note::before { right: 15px; }
.children-note::after { left: 15px; transform: rotate(180deg); }
.children-note svg { width: 29px; height: 29px; margin: 0 auto 4px; color: var(--gold); }
.children-note p { font: 24px/1.7 var(--calligraphy); }
.children-note span { display: block; font-size: 12px; color: #765747; }
.rsvp-card { padding: 29px 22px 30px; background: var(--cream-card); border: 1px solid #b9959147; border-radius: 25px; text-align: center; }
.rsvp-sprig { width: 48px; height: 48px; color: #a47e44; margin: 0 auto 5px; }
.rsvp-intro { font-size: 13px; color: #765747; margin: 9px 0 28px; }
form { text-align: right; }
.field { margin-bottom: 19px; }
label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 7px; }
input, select { display: block; width: 100%; max-width: 100%; min-width: 0; height: 54px; border: 1px solid var(--muted-rose); background: #f8eddeaa; color: var(--burgundy); border-radius: 11px; padding: 12px 14px; font-size: 16px; direction: rtl; outline: none; transition: border-color .2s, box-shadow .2s; }
input::placeholder { color: #93766d; font-size: 14px; opacity: 1; }
input:focus, select:focus { border-color: var(--burgundy); box-shadow: 0 0 0 3px #d6a34d30; }
input[aria-invalid="true"] { border-color: #9b2131; box-shadow: 0 0 0 2px #9b213113; }
.select-wrap { position: relative; }
select { appearance: none; padding-left: 42px; cursor: pointer; }
.select-wrap svg { position: absolute; left: 15px; top: 18px; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; pointer-events: none; }
.companion-field { overflow: hidden; animation: field-in .25s var(--ease) both; }
@keyframes field-in { from { opacity: 0; transform: translateY(8px); max-height: 0; } to { opacity: 1; transform: translateY(0); max-height: 180px; } }
.field-error { font-size: 12px; color: #902436; line-height: 1.6; margin-top: 5px; }
.field-error:empty { display: none; }
.form-message { font-size: 13px; line-height: 1.7; color: #902436; margin: 0 0 16px; }
.form-message:empty { margin: 0; }
.submit-button { margin-top: 9px; }
.submit-button:disabled { cursor: wait; opacity: .75; }
.submit-sprig { width: 24px; height: 24px; color: var(--soft-gold); }
.spinner { display: none; width: 18px; height: 18px; border: 2px solid #f8edde45; border-top-color: var(--ivory); border-radius: 50%; animation: spin .7s linear infinite; }
.is-submitting .spinner { display: block; }
.is-submitting .submit-sprig { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.success-state { padding: 12px 0 8px; outline: none; }
.success-icon { width: 64px; height: 64px; margin: 0 auto 18px; fill: none; stroke: var(--burgundy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.success-state h3 { font: 30px/1.8 var(--calligraphy); }
.success-state p { font-size: 14px; margin-top: 10px; }
.success-state strong { display: block; margin-top: 23px; font: 24px/1.8 'Amiri', serif; overflow-wrap: anywhere; }
.countdown-card { position: relative; overflow: hidden; margin-top: 20px; padding: 29px 14px 27px; text-align: center; border: 1px solid #b28e5340; border-radius: 25px; background: linear-gradient(145deg, var(--burgundy), var(--burgundy-dark)); color: var(--ivory); box-shadow: 0 13px 27px #57131b13; }
.countdown-card::before { content: ''; position: absolute; inset: 8px; border: 1px solid #e5c47f2f; border-radius: 19px; pointer-events: none; }
.countdown-card .eyebrow { color: var(--soft-gold); }
.countdown-card h2 { font-size: 27px; margin: 2px 0 18px; }
.countdown-sprig { width: 38px; height: 38px; margin: 0 auto 3px; color: var(--soft-gold); }
.countdown { direction: ltr; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-width: 380px; margin: 0 auto; }
.countdown > div { min-width: 0; padding: 12px 3px 10px; border: 1px solid #e5c47f35; border-radius: 12px; background: #ffffff09; }
.countdown strong { display: block; font: 700 clamp(24px, 8vw, 36px)/1.15 'Amiri', serif; color: var(--soft-gold); font-variant-numeric: tabular-nums; }
.countdown span { display: block; margin-top: 4px; font-size: 10px; color: var(--ivory); }
.countdown-message { margin-top: 16px; font-size: 12px; color: #ead8c2; }
.footer { position: relative; overflow: hidden; text-align: center; padding: 64px 0 93px; }
.footer-architecture { position: absolute; width: 100%; height: 120px; bottom: 0; opacity: .11; }
.footer p { font-family: var(--calligraphy); font-size: 24px; }
.footer i { font-size: 19px; padding: 0 6px; }
.footer-sprig { width: 30px; height: 30px; margin: 17px auto; color: #a67d44; }
.footer > span { font-size: 12px; color: #856855; }
.music-control { position: fixed; top: max(16px, env(safe-area-inset-top)); left: max(16px, calc((100vw - 480px) / 2 - 65px)); z-index: 15; display: flex; align-items: flex-start; gap: 9px; flex-direction: column-reverse; }
.music-button { width: 45px; height: 45px; border-radius: 50%; background: var(--burgundy); color: var(--ivory); border: 1px solid #d6a34d66; box-shadow: 0 4px 14px #45101626; display: grid; place-items: center; transition: transform .2s; }
.music-button:active { transform: scale(.92); }
.music-button svg { width: 20px; height: 20px; }
.music-button svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.music-off { display: block; }
.music-on { display: none; }
.music-button[aria-pressed="true"] .music-on { display: block; }
.music-button[aria-pressed="true"] .music-off { display: none; }
.music-status { font-size: 12px; max-width: 240px; background: var(--ivory); color: var(--burgundy); border-radius: 10px; padding: 8px 12px; box-shadow: 0 3px 18px #57131b22; }
.music-status:empty { display: none; }
.hero-reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
body.is-open .hero-reveal { opacity: 1; transform: none; }
body.is-open .hero-art { transition-delay: .05s; }
body.is-open .occasion { transition-delay: .15s; }
body.is-open .couple-names { transition-delay: .22s; }
body.is-open .hero .divider { transition-delay: .35s; }
body.is-open .hero-note { transition-delay: .45s; }
body.is-open .attendance-hint { transition-delay: .52s; }
body.is-open .hero-branch { animation: botanical-in 1s ease .2s both; }
@keyframes botanical-in { from { opacity: 0; clip-path: inset(100% 0 0); } to { opacity: .32; clip-path: inset(0); } }
body.is-open .hero .divider span { animation: line-in 1s var(--ease) .3s both; }
@keyframes line-in { from { clip-path: inset(0 50%); } to { clip-path: inset(0); } }
.js-ready .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js-ready .reveal.is-visible { opacity: 1; transform: none; }
.noscript-message { position: fixed; inset: auto 12px 12px; z-index: 30; padding: 16px; background: var(--burgundy); color: var(--ivory); border-radius: 10px; text-align: center; }

.guest-dashboard-mode { background: var(--cream); }
.guest-dashboard { width: min(100% - 28px, 920px); min-height: calc(100vh - 32px); margin: 16px auto; padding: 36px clamp(16px, 4vw, 44px); border: 1px solid #b28e5340; border-radius: 26px; color: var(--burgundy); background-color: var(--cream); background-image: radial-gradient(ellipse at 18% 12%, #fff7ea70, transparent 55%), repeating-linear-gradient(30deg, #6f402703 0 1px, transparent 1px 5px); box-shadow: 0 16px 55px #4b2a1710; }
.dashboard-header { text-align: center; border-bottom: 1px solid #b28e5345; padding-bottom: 28px; }
.dashboard-sprig { width: 46px; height: 46px; margin: 0 auto 5px; color: var(--gold); }
.dashboard-header h1 { font: 700 clamp(34px, 7vw, 54px)/1.6 var(--calligraphy); }
.dashboard-header > p:last-of-type { font-size: 14px; color: #765747; }
.dashboard-actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.dashboard-button { min-height: 44px; padding: 9px 18px; border: 1px solid var(--burgundy); border-radius: 12px; background: transparent; color: var(--burgundy); }
.dashboard-button.primary { background: var(--burgundy); color: var(--ivory); }
.dashboard-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 25px 0; }
.dashboard-summary article { min-width: 0; padding: 18px 8px; border-radius: 17px; background: var(--cream-card); text-align: center; }
.dashboard-summary strong { display: block; font: 700 32px/1.2 'Amiri', serif; color: var(--burgundy); }
.dashboard-summary span { display: block; font-size: 12px; color: #765747; line-height: 1.5; }
.dashboard-status { text-align: center; color: #765747; padding: 18px; }
.dashboard-status.error { color: #902436; border: 1px solid #b9959160; border-radius: 14px; background: #efe1cd80; }
.guest-list { display: grid; gap: 13px; }
.guest-record { break-inside: avoid; border: 1px solid #b9959155; border-radius: 17px; padding: 17px 19px; background: #fffaf1a8; }
.guest-record-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.guest-record h2 { font: 700 23px/1.7 'Amiri', serif; }
.guest-record-actions { display: flex; align-items: center; gap: 8px; }
.guest-number { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--burgundy); color: var(--ivory); font-size: 12px; }
.delete-guest { min-height: 34px; padding: 5px 11px; border: 1px solid #a63b4a55; border-radius: 9px; background: transparent; color: #902436; font-size: 11px; }
.delete-guest:hover { background: #902436; color: var(--ivory); }
.guest-meta { display: flex; flex-wrap: wrap; gap: 8px 17px; color: #765747; font-size: 12px; }
.guest-companions { margin: 13px 0 0; padding: 12px 15px; border-radius: 12px; background: var(--cream-card); }
.guest-companions strong { font-size: 13px; }
.guest-companions ol { margin: 5px 18px 0 0; padding: 0; font-size: 13px; columns: 2; column-gap: 30px; }
.empty-guests { text-align: center; padding: 60px 12px; color: #765747; }
.dashboard-footer { margin-top: 30px; padding-top: 18px; border-top: 1px solid #b28e5345; text-align: center; font-size: 11px; color: #876a54; }
@media (min-width: 700px) { .invitation { margin: 28px auto; border-radius: 24px; } .hero { padding-top: 60px; } }
@media (max-width: 520px) { .dashboard-summary { gap: 6px; } .dashboard-summary article { padding: 14px 5px; } .dashboard-summary strong { font-size: 27px; } .dashboard-actions { flex-direction: column; } .guest-record-head { align-items: center; } .guest-companions ol { columns: 1; } }
@media (max-width: 374px) { .invitation { padding: 0 16px; } .hero-branch { width: 60px; opacity: .2; } .invitation-card { padding-left: 15px; padding-right: 15px; } .rsvp-card { padding-left: 18px; padding-right: 18px; } .children-note::before, .children-note::after { width: 34px; } }
@media (max-height: 620px) { .opening-inner { padding: 8px 0; } .envelope-stage { margin-top: 35px; margin-bottom: 25px; width: min(85%, 280px); } .opening-names { margin-top: 14px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js-ready .reveal { opacity: 1; transform: none; }
}
@media print {
  @page { size: A4; margin: 12mm; }
  body, .guest-dashboard-mode { background: #fff !important; }
  .no-print { display: none !important; }
  .guest-dashboard { width: 100%; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: #fff; }
  .dashboard-header { padding-bottom: 14px; }
  .dashboard-header h1 { font-size: 38px; }
  .dashboard-summary { margin: 14px 0; }
  .dashboard-summary article { border: 1px solid #d7c7b4; padding: 10px 5px; }
  .guest-list { gap: 8px; }
  .guest-record { padding: 10px 13px; background: #fff; }
  .guest-companions { padding: 7px 12px; }
  .dashboard-footer { margin-top: 15px; }
}
