/* Private invitation UI follows the illustrated site's indigo, gold and warm paper palette. */
:root {
  --guest-surface: #1a2937;
  --guest-surface-deep: #142331;
  --guest-border: rgba(223, 184, 124, .28);
  --guest-soft-gold: rgba(223, 184, 124, .08);
  --guest-success: #b5ccb5;
}

.guest-overline,
.gate-overline {
  color: var(--gold);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .21em;
  text-transform: uppercase;
}

.guest-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 50px;
  padding: 13px 23px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: var(--gold);
  color: #202737;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .11em;
  text-transform: uppercase;
  transition: background .2s, border-color .2s, box-shadow .2s;
}

.guest-button:hover { background: #efd2a5; border-color: #efd2a5; box-shadow: 0 3px 20px #dba86915; }
.guest-button.secondary { background: transparent; color: var(--ink); border-color: var(--guest-border); }
.guest-button.secondary:hover { background: var(--guest-soft-gold); border-color: #dfb87c80; }
.guest-button:disabled { opacity: .6; }
.guest-button .icon { width: 23px; height: 18px; }
.guest-field { display: flex; flex-direction: column; gap: 9px; }
.guest-field label { color: #e2c9a4; font-size: 11px; line-height: 1.5; }
.guest-field label span { margin-left: 7px; color: #b5b0a5; font-size: 10px; }
.guest-field input, .guest-field textarea, .gate-form input {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #d3b68855;
  border-radius: 4px;
  background: var(--guest-surface-deep);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}
.guest-field textarea { min-height: 86px; resize: vertical; }
.guest-field input::placeholder, .guest-field textarea::placeholder, .gate-form input::placeholder { color: #b1aea5; }
.guest-field input:focus, .guest-field textarea:focus, .gate-form input:focus { border-color: #dfb87ca3; }
.guest-field input:disabled, .guest-field textarea:disabled { opacity: .6; }
.guest-help { color: var(--muted); font-size: 10px; line-height: 1.75; }

/* The dialog has one scrolling body, so actions remain within reach on a phone. */
.guest-dialog.rsvp-dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: min(90svh, 900px);
  padding: 0;
  overflow: hidden;
  border: 1px solid #d7b98170;
  border-radius: 12px;
  background: radial-gradient(ellipse at 100% 0, #73483a22, transparent 57%), var(--guest-surface);
  color: var(--ink);
  box-shadow: 0 30px 150px #0008;
}
.guest-dialog::backdrop { background: #0c152ada; backdrop-filter: blur(9px); }
.guest-dialog.rsvp-dialog[open] { display: flex; flex-direction: column; }
.rsvp-dialog-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding: 30px 32px 0; }
.rsvp-dialog-head h2 { font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1.15; letter-spacing: -.035em; margin-top: 8px; }
.rsvp-dialog-head .close-button { margin: -5px -6px 0 0; border-radius: 50%; }
.rsvp-dialog-head .close-button:hover { background: #dfb87c10; }
.rsvp-dialog-intro { margin: 13px 32px 22px; max-width: 490px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.rsvp-progress { display: flex; gap: 0; margin: 0 32px; padding: 0 0 23px; list-style: none; border-bottom: 1px solid var(--line); }
.rsvp-progress li { display: flex; align-items: center; gap: 9px; color: #b7b4a9; font-size: 10px; line-height: 1.5; }
.rsvp-progress li:not(:last-child)::after { content: ''; display: block; height: 1px; width: 32px; margin: 0 16px 0 7px; background: var(--line); }
.rsvp-progress li > span { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #dfb87c38; border-radius: 50%; font-size: 9px; color: var(--muted); }
.rsvp-progress li[aria-current="step"] { color: var(--gold); }
.rsvp-progress li[aria-current="step"] > span { border-color: #dfb87caa; background: #dfb87c17; color: var(--gold); }
.rsvp-progress li.is-complete > span { background: #dfb87c25; color: var(--gold); }
.rsvp-dialog #rsvp-form { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; max-height: none; }
.rsvp-dialog-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 32px 27px; }
.rsvp-section-head { margin-bottom: 22px; }
.rsvp-section-head h3 { color: var(--ink); font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.3; letter-spacing: -.02em; }
.rsvp-section-head p { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.rsvp-guests { display: grid; gap: 18px; }
.rsvp-guest { position: relative; min-width: 0; margin: 0; padding: 19px 20px 20px; border: 1px solid var(--guest-border); border-radius: 7px; background: #11212b3d; }
.rsvp-guest-name { max-width: 100%; padding: 0 6px; margin-left: -6px; color: var(--ink); font-family: var(--serif); font-size: 22px; font-weight: 400; line-height: 1.4; overflow-wrap: anywhere; }
.rsvp-guest-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 16px; margin-top: -1px; }
.rsvp-guest-caption { color: #d4c4ae; font-size: 11px; line-height: 1.6; }
.rsvp-guest-invited { color: var(--muted); font-size: 9px; line-height: 1.6; letter-spacing: .035em; }
.rsvp-choice-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.rsvp-choice { position: relative; cursor: pointer; }
.rsvp-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.rsvp-choice > span { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 49px; padding: 10px 12px; border: 1px solid #dfb87c44; border-radius: 4px; background: #142331; color: #d8cdbb; font-size: 11px; line-height: 1.6; transition: background .2s, border-color .2s, color .2s; }
.rsvp-choice span svg { width: 19px; height: 19px; flex-shrink: 0; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.rsvp-choice:hover > span { border-color: #dfb87c90; background: #dfb87c0a; }
.rsvp-choice input:checked + span { border-color: #dfb87cbd; background: #dfb87c19; color: #f4d5a5; box-shadow: inset 0 0 0 1px #dfb87c14; }
.rsvp-choice input:focus-visible + span { outline: 2px solid #f6d298; outline-offset: 4px; }
.rsvp-choice input:disabled + span { opacity: .5; cursor: wait; }
.rsvp-dietary { margin-top: 19px; padding-top: 17px; border-top: 1px solid #dfb87c20; }
.rsvp-dietary textarea { min-height: 74px; background: #11212b6b; font-size: 12px; }
.rsvp-household-note { margin-top: 27px; }
.rsvp-dialog-footer { flex-shrink: 0; padding: 18px 32px 21px; border-top: 1px solid var(--line); background: #182735; }
.rsvp-footer-actions { display: flex; gap: 12px; align-items: center; justify-content: flex-end; }
.rsvp-footer-actions .guest-button { min-width: 194px; }
.rsvp-footer-actions .guest-button.secondary { min-width: 0; margin-right: auto; padding-left: 17px; padding-right: 17px; font-size: 9px; }
.rsvp-footer-note { color: var(--muted); font-size: 9px; line-height: 1.7; text-align: right; margin-top: 11px; }
.rsvp-dialog-footer .form-status { margin: 0 0 12px; font-size: 11px; line-height: 1.75; color: var(--gold); }
.rsvp-dialog-footer .form-status:empty { display: none; }
.form-status[data-state="error"], .gate-status[data-state="error"] { color: #eab5a1; }
.form-status[data-state="success"], .gate-status[data-state="success"] { color: var(--guest-success); }
.rsvp-review-list { border-top: 1px solid var(--line); }
.rsvp-review-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.rsvp-review-item h4 { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 21px; font-weight: 400; line-height: 1.4; overflow-wrap: anywhere; }
.rsvp-review-item p { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.rsvp-review-answer { flex-shrink: 0; margin-top: 4px; border: 1px solid #dfb87c4d; border-radius: 30px; padding: 5px 12px; color: var(--gold); font-size: 10px; line-height: 1.5; }
.rsvp-review-answer[data-attendance="no"] { color: #d2c2b2; background: #dfb87c06; border-color: #dfb87c25; }
.rsvp-review-note { margin-top: 23px; padding: 17px 20px; border-left: 1px solid #dfb87c72; background: #dfb87c07; }
.rsvp-review-note > p:last-child { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.rsvp-review-assurance { margin-top: 22px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.rsvp-confirmed { padding: 20px 7px 25px; text-align: center; }
.rsvp-confirmed-mark { width: 64px; margin: 0 auto 25px; color: var(--gold); }
.rsvp-confirmed-mark svg { width: 100%; height: auto; stroke: currentColor; stroke-width: 1.1; }
.rsvp-confirmed-mark svg path { stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rsvp-confirmed h3 { margin-top: 9px; font-family: var(--serif); font-size: 39px; font-weight: 400; line-height: 1.2; letter-spacing: -.035em; }
.rsvp-confirmed > p:not(.guest-overline) { max-width: 375px; margin: 17px auto 0; color: #d5c6af; font-size: 12px; line-height: 1.9; }
.rsvp-confirmed > p.rsvp-confirmed-help { margin-top: 13px; color: var(--muted); font-size: 10px; }

/* A calm invitation gate before the animated story begins. */
.guest-gate { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; overflow-y: auto; padding: 55px 24px; background: radial-gradient(ellipse at 50% 70%, #764b3433, transparent 52%), #121d2d; isolation: isolate; }
.guest-gate::before { content: ''; position: fixed; inset: 21px; z-index: -1; pointer-events: none; border: 1px solid #dfb87c28; }
.guest-gate::after { content: ''; position: fixed; inset: 0; z-index: -1; opacity: .42; pointer-events: none; background-image: radial-gradient(circle at 22% 24%, #ecd3a9 0 1px, transparent 1.5px), radial-gradient(circle at 81% 17%, #ecd3a9 0 1px, transparent 1.5px), radial-gradient(circle at 74% 73%, #ecd3a9 0 1px, transparent 1.5px), radial-gradient(circle at 15% 66%, #ecd3a9 0 1px, transparent 1.5px), radial-gradient(circle at 60% 39%, #ecd3a9 0 1px, transparent 1.5px); }
.gate-shell { width: min(100%, 430px); text-align: center; }
.gate-brand { display: block; color: var(--gold); font-family: var(--serif); font-size: 30px; line-height: 1; }
.gate-brand i { margin: 0 4px; font-size: 21px; }
.gate-ornament { display: flex; justify-content: center; margin: 32px auto 26px; color: var(--gold); }
.gate-ornament svg { width: 82px; height: 58px; stroke: currentColor; }
.gate-title { margin-top: 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 52px); line-height: 1.15; letter-spacing: -.04em; }
.gate-title em { color: var(--gold); font-weight: 400; }
.gate-copy { max-width: 350px; margin: 18px auto 28px; color: var(--muted); font-size: 12px; line-height: 1.85; }
.gate-form { padding: 25px 26px; border: 1px solid var(--guest-border); border-radius: 8px; background: #1a293773; text-align: left; box-shadow: 0 18px 80px #08101928; }
.gate-form .guest-field + .guest-field { margin-top: 18px; }
.gate-form .guest-button { width: 100%; margin-top: 23px; }
.gate-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-top: 17px; }
.gate-links button, .guest-signout { background: transparent; padding: 5px 0; border-bottom: 1px solid #dfb87c44; color: #d8c3a6; font-size: 10px; line-height: 1.6; }
.gate-links button:hover, .guest-signout:hover { color: var(--gold); border-color: var(--gold); }
.gate-status { margin-top: 15px; font-size: 11px; line-height: 1.8; color: var(--gold); }
.gate-status:empty { display: none; }
.gate-footnote { max-width: 350px; margin: 21px auto 0; color: #b9ad9c; font-size: 10px; line-height: 1.8; }
.gate-back { display: inline-block; margin-top: 18px; background: transparent; padding: 7px 0; color: var(--gold); font-size: 11px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 66px; }
.password-wrap > button { position: absolute; top: 0; right: 0; height: 100%; min-width: 62px; border-radius: 0 4px 4px 0; background: transparent; color: #d7c4a8; font-size: 10px; }
.password-wrap > button:hover { color: var(--gold); background: #dfb87c0a; }
.password-wrap > button:focus-visible { outline-offset: -5px; }
#gate-verification > .guest-button, #gate-ready > .guest-button { display: flex; width: 100%; margin-top: 12px; }
.gate-sound-choice { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 19px; color: #d4c4ae; font-size: 11px; cursor: pointer; }
.gate-sound-choice input { width: 17px; height: 17px; margin: 0; accent-color: var(--gold); cursor: pointer; }
.gate-owner-link { display: inline-block; margin-top: 17px; padding: 7px; background: transparent; color: #c3b29a; font-size: 9px; line-height: 1.7; }
.gate-owner-link:hover { color: var(--gold); }

/* The invitation dashboard stays small and personal, with clear upcoming details. */
.guest-dashboard { width: min(900px, calc(100vw - 32px)); max-height: 90svh; padding: 0; border: 1px solid #d7b98170; border-radius: 12px; background: radial-gradient(ellipse at 100% 0, #73483a22, transparent 57%), var(--guest-surface); color: var(--ink); overflow-y: auto; box-shadow: 0 30px 150px #0008; }
.guest-dashboard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 25px; padding: 32px 32px 0; }
.guest-dashboard-head h2 { margin-top: 10px; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.15; letter-spacing: -.035em; }
.guest-dashboard-head .close-button { margin: -5px -6px 0 0; border-radius: 50%; }
.guest-dashboard-intro { margin: 13px 32px 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.guest-badge { display: inline-flex; align-items: center; gap: 8px; margin: 20px 32px 0; padding: 7px 12px; border: 1px solid #dfb87c42; border-radius: 30px; color: var(--gold); font-size: 10px; line-height: 1.5; background: #dfb87c08; }
.guest-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.guest-dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 25px 32px 30px; }
.guest-card { display: flex; flex-direction: column; position: relative; min-width: 0; padding: 23px; border: 1px solid var(--guest-border); border-radius: 7px; background: #11212b3d; }
.guest-card.is-primary { grid-column: 1 / -1; background: linear-gradient(120deg, #dfb87c12, #dfb87c03); border-color: #dfb87c70; }
.guest-card-icon { display: grid; place-items: center; width: 35px; height: 35px; margin-bottom: 15px; color: var(--gold); }
.guest-card-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.guest-card-label { color: var(--gold); font-size: 9px; line-height: 1.5; letter-spacing: .13em; text-transform: uppercase; }
.guest-card-title { margin-top: 8px; font-family: var(--serif); font-size: 25px; line-height: 1.3; font-weight: 400; letter-spacing: -.025em; }
.guest-card-copy { margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.85; }
.guest-card-action { display: inline-flex; align-items: center; align-self: flex-start; gap: 14px; margin-top: 20px; padding: 8px 0; border-bottom: 1px solid #dfb87c55; background: transparent; color: var(--gold); font-size: 10px; line-height: 1.6; }
.guest-card-action:hover { border-color: var(--gold); }
.guest-card.is-primary .guest-button { align-self: flex-start; margin-top: 20px; }
.guest-card.is-pending .guest-card-label { color: #d1c0ac; }
.guest-detail-list { margin: 18px 0 0; padding: 0; list-style: none; }
.guest-detail-list li { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; padding: 9px 0; border-top: 1px solid #dfb87c24; font-size: 11px; line-height: 1.8; }
.guest-detail-list li > span:last-child { color: var(--muted); font-size: 10px; }
.guest-empty-state { margin-top: 18px; padding: 12px 14px; border: 1px dashed #dfb87c3d; border-radius: 4px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.guest-dashboard-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 32px 25px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.8; }
.guest-dashboard-footer p { max-width: 440px; }
.guest-signout { flex-shrink: 0; }
.guest-nav-button { background: transparent; border: 1px solid #d1b48c55; color: var(--ink); padding: 11px 15px; font-size: 10px; line-height: 1.5; letter-spacing: .11em; text-transform: uppercase; }
.guest-nav-button:hover { background: #eac99416; }

/* The dashboard's inner shell and the native dialog share a single frame. */
#guest-dashboard-dialog { width: min(900px, calc(100vw - 32px)); max-height: 90svh; padding: 0; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #d7b98170; border-radius: 12px; background: var(--guest-surface); color: var(--ink); box-shadow: 0 30px 150px #0008; }
#guest-dashboard-dialog .guest-dashboard { width: auto; max-height: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
#guest-dashboard-title { margin: 12px 32px 0; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.15; letter-spacing: -.035em; }
#dashboard-rsvp-badge { align-self: flex-start; margin: 13px 0 2px; }
#dashboard-guest-list { margin: 0 32px; }
#dashboard-guest-list .guest-detail { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.7; }
#dashboard-guest-list .guest-detail > span:last-child { color: var(--muted); font-size: 11px; }
#dashboard-guest-content > .guest-help { margin: 19px 32px 0; padding-top: 20px; border-top: 1px solid var(--line); }
#dashboard-status { margin: 17px 32px 0; }
#dashboard-status:empty { display: none; }
#guest-signout { margin: 22px 32px 27px; }
#dashboard-organizer-content { padding: 23px 32px 0; }
#dashboard-organizer-content > .guest-card-copy { max-width: 560px; }
.organizer-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 23px 0; }
.organizer-counts > div { padding: 15px 16px; border: 1px solid var(--guest-border); border-radius: 5px; background: var(--guest-soft-gold); color: var(--muted); font-size: 10px; line-height: 1.7; }
.organizer-counts strong { display: block; margin-bottom: 4px; color: var(--ink); font-family: var(--serif); font-size: 28px; line-height: 1.2; font-weight: 400; }
.organizer-add { margin-top: 14px; padding: 0 19px 19px; border: 1px solid var(--guest-border); border-radius: 6px; background: #11212b26; }
.organizer-add > summary { padding: 16px 0; color: #ead4b3; font-size: 12px; line-height: 1.7; cursor: pointer; }
.organizer-add:not([open]) { padding-bottom: 0; }
.organizer-add > .gate-form { margin: 0; padding: 8px 0 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.organizer-add .guest-field textarea { font-size: 14px; }
.organizer-add > .guest-field { margin-top: 18px; }
.organizer-add > .guest-button { margin-top: 19px; }
.organizer-add .guest-field input[type="file"] { font-size: 12px; color: var(--muted); }
.organizer-add input[type="file"]::file-selector-button { margin-right: 12px; padding: 7px 10px; border: 1px solid var(--guest-border); border-radius: 3px; background: #dfb87c0a; color: var(--ink); font: inherit; cursor: pointer; }
.organizer-households { display: grid; gap: 10px; margin: 23px 0; }
.organizer-row { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 15px 20px; padding: 17px 18px; border: 1px solid var(--guest-border); border-radius: 5px; background: #11212b36; }
.organizer-row > div { min-width: 0; }
.organizer-row strong, .organizer-row h4 { display: block; margin: 0; color: var(--ink); font-size: 13px; font-weight: 500; line-height: 1.7; }
.organizer-row p { color: var(--muted); font-size: 11px; line-height: 1.85; overflow-wrap: anywhere; }
.organizer-row .guest-button { min-height: 41px; padding: 9px 13px; font-size: 9px; letter-spacing: .06em; }
.organizer-row .guest-help { margin-top: 5px; font-size: 10px; }
.organizer-new-links { margin-top: 24px; padding: 22px; border: 1px solid #dfb87c78; border-radius: 7px; background: #dfb87c0a; }
.organizer-new-links > .guest-help { margin-top: 10px; }
.organizer-new-links .guest-button { margin-top: 20px; }
#organizer-link-list { margin-top: 16px; }
#organizer-link-list a { display: block; color: var(--gold); font-size: 11px; line-height: 1.9; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
#organizer-link-list p { margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.8; }
#organizer-import-preview { margin-top: 18px; color: var(--muted); font-size: 11px; line-height: 1.9; }
#organizer-import-preview ul { padding-left: 19px; }
#dashboard-organizer-content > .guest-help { margin-top: 18px; }
.wedding-details { margin: 27px 32px 0; padding-top: 23px; border-top: 1px solid var(--line); }
.wedding-details-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.wedding-details-heading > div { min-width: 0; }
.wedding-details-heading .guest-card-action { flex-shrink: 0; min-height: 44px; margin-top: 4px; }
.wedding-details-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 19px; }
.wedding-details-content > .guest-empty-state { grid-column: 1 / -1; margin: 0; padding: 18px; font-size: 11px; }
.wedding-info-card { min-width: 0; padding: 20px; border: 1px solid var(--guest-border); border-radius: 6px; background: #11212b2b; }
.wedding-info-wide { grid-column: 1 / -1; }
.wedding-info-title { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.3; color: var(--ink); }
.wedding-copy { margin-top: 11px; color: var(--muted); font-size: 12px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.wedding-venue-name { margin-top: 17px; color: #ead4b7; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.wedding-editor > summary { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.wedding-editor-summary-note { color: var(--muted); font-size: 10px; font-weight: 400; }
.wedding-editor > .gate-form { display: block; margin-top: 12px; padding-top: 0; }
.wedding-editor-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.wedding-editor-group { border-top: 1px solid var(--line); }
.wedding-editor-group > summary { padding: 17px 0; color: #ead4b3; font-size: 12px; cursor: pointer; }
.wedding-editor-group[open] { padding-bottom: 19px; }
.wedding-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.wedding-form-grid > .guest-field { min-width: 0; margin-top: 0; }
.wedding-field-wide { grid-column: 1 / -1; }
.wedding-editor-group > .guest-help { margin-bottom: 18px; }
.wedding-editor input, .wedding-editor textarea { max-width: 100%; min-width: 0; }
.wedding-editor textarea { resize: vertical; }
.wedding-version-note { margin-top: 14px; padding: 10px 12px; border-left: 2px solid #dfb87c62; background: #dfb87c08; color: var(--muted); font-size: 10px; line-height: 1.8; }
.wedding-editor-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 19px; border-top: 1px solid var(--line); }
.wedding-editor-actions .guest-button { flex: 1 1 125px; min-width: 0; padding: 13px 14px; font-size: 9px; letter-spacing: .06em; }
.wedding-editor-actions #wedding-publish { flex: 1.4 1 190px; }
#wedding-editor-status:empty, #wedding-details-status:empty { display: none; }
#wedding-editor-status { margin-top: 15px; }
#wedding-reload { margin-top: 10px; }
.wedding-reload-confirmation { margin-top: 15px; padding: 17px; border: 1px solid #dfb87c70; border-radius: 6px; background: #dfb87c08; }
.wedding-reload-confirmation h4 { color: var(--ink); font-family: var(--serif); font-size: 21px; font-weight: 400; line-height: 1.3; }
.wedding-reload-confirmation .guest-help { margin-top: 10px; font-size: 11px; }
.wedding-reload-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 17px; }
.wedding-reload-actions .guest-button { flex: 1 1 130px; min-width: 0; padding: 13px; font-size: 9px; letter-spacing: .04em; }
.wedding-reload-actions #wedding-reload-discard { flex: 1.5 1 200px; }
.wedding-preview { margin-top: 25px; padding-top: 23px; border-top: 1px solid #dfb87c70; }
.wedding-preview > .guest-help { margin-top: 13px; }
.wedding-preview .guest-card-label { font-size: 8px; }
.organizer-households .organizer-row,
.organizer-new-links .organizer-row { display: block; }
.organizer-households .organizer-row > p { margin-top: 7px; }
.organizer-households .organizer-row > details { margin-top: 13px; padding: 12px 0 0; border-top: 1px solid var(--line); }
.organizer-households .organizer-row > details > summary { color: #dfc7a5; font-size: 11px; line-height: 1.8; cursor: pointer; }
.organizer-households .organizer-row > details > p { margin-top: 8px; }
.organizer-households .organizer-row > .guest-card-action { margin-top: 12px; }
.organizer-new-links .organizer-row > input { display: block; margin-top: 9px; border-radius: 4px; }

@media (max-width: 600px) {
  .guest-dialog.rsvp-dialog { width: calc(100vw - 20px); max-height: 94svh; border-radius: 9px; }
  .rsvp-dialog-head { padding: 23px 21px 0; gap: 15px; }
  .rsvp-dialog-head h2 { font-size: 31px; }
  .rsvp-dialog-intro { margin: 12px 21px 18px; font-size: 11px; }
  .rsvp-progress { margin: 0 21px; padding-bottom: 18px; }
  .rsvp-progress li { font-size: 9px; gap: 7px; }
  .rsvp-progress li:not(:last-child)::after { width: 16px; margin: 0 10px 0 3px; }
  .rsvp-dialog #rsvp-form { max-height: none; }
  .rsvp-dialog-body { padding: 21px 21px 24px; }
  .rsvp-guest { padding: 14px 15px 16px; }
  .rsvp-guest-name { font-size: 21px; }
  .rsvp-choice-group { gap: 8px; }
  .rsvp-choice > span { min-height: 49px; font-size: 10px; padding: 10px 6px; gap: 7px; }
  .rsvp-choice span svg { width: 17px; height: 17px; }
  .guest-field input, .guest-field textarea, .gate-form input { font-size: 16px; }
  .rsvp-dietary textarea { font-size: 16px; }
  .rsvp-dialog-footer { padding: 16px 21px 17px; }
  .rsvp-footer-actions { flex-wrap: wrap; gap: 10px; }
  .rsvp-footer-actions .guest-button { flex: 1; min-width: 0; }
  .rsvp-footer-actions .guest-button.secondary { flex: 0 1 auto; padding: 13px 12px; letter-spacing: .04em; font-size: 9px; }
  .rsvp-footer-note { text-align: center; font-size: 9px; }
  .rsvp-review-item { gap: 12px; }
  .rsvp-review-item h4 { font-size: 20px; }
  .rsvp-review-answer { padding: 5px 9px; font-size: 9px; }
  .rsvp-confirmed { padding: 15px 0 19px; }
  .rsvp-confirmed h3 { font-size: 35px; }
  .guest-gate { padding: 39px 26px; }
  .guest-gate::before { inset: 12px; }
  .gate-shell { max-width: 390px; }
  .gate-ornament { margin-top: 24px; margin-bottom: 20px; }
  .gate-title { font-size: 40px; }
  .gate-copy { margin-bottom: 23px; }
  .gate-form { padding: 23px 21px; }
  .guest-dashboard { width: calc(100vw - 20px); max-height: 94svh; border-radius: 9px; }
  .guest-dashboard-head { padding: 23px 21px 0; }
  .guest-dashboard-head h2 { font-size: 32px; }
  .guest-dashboard-intro { margin: 12px 21px 0; font-size: 11px; }
  .guest-badge { margin: 17px 21px 0; }
  .guest-dashboard-grid { grid-template-columns: 1fr; gap: 12px; margin: 22px 21px 25px; }
  .guest-card { padding: 21px; }
  .guest-card.is-primary { grid-column: auto; }
  .guest-dashboard-footer { padding: 18px 21px 22px; align-items: flex-start; }
  .guest-nav-button { padding: 8px 11px; font-size: 9px; letter-spacing: .06em; }
  #guest-dashboard-dialog { width: calc(100vw - 20px); max-height: 94svh; border-radius: 9px; }
  #guest-dashboard-title { margin: 12px 21px 0; font-size: 32px; }
  #dashboard-guest-list { margin: 0 21px; }
  #dashboard-guest-content > .guest-help { margin: 19px 21px 0; }
  #dashboard-status { margin: 17px 21px 0; }
  #guest-signout { margin: 21px 21px 25px; }
  #dashboard-organizer-content { padding: 23px 21px 0; }
  .wedding-details { margin: 24px 21px 0; padding-top: 21px; }
  .wedding-details-content, .wedding-form-grid { grid-template-columns: 1fr; }
  .wedding-details-heading { flex-wrap: wrap; gap: 8px; }
  .wedding-details-heading .guest-card-action { margin-top: 0; }
  .wedding-info-card { padding: 17px; }
  .wedding-info-title { font-size: 22px; }
  .wedding-editor > summary { flex-wrap: wrap; gap: 3px 10px; }
  .organizer-counts { gap: 8px; }
  .organizer-counts > div { padding: 12px 10px; font-size: 9px; }
  .organizer-counts strong { font-size: 25px; }
  .organizer-add { padding-left: 16px; padding-right: 16px; }
  .organizer-add .guest-field textarea { font-size: 16px; }
  .organizer-new-links { padding: 18px; }
}

@media (max-width: 365px) {
  .rsvp-progress li:not(:last-child)::after { width: 8px; margin: 0 7px 0 2px; }
  .rsvp-guest-invited { display: none; }
  .rsvp-footer-actions .guest-button.secondary { flex-basis: 100%; order: 2; }
  .rsvp-review-item { flex-direction: column; gap: 5px; }
}

@media (max-height: 740px) {
  .guest-gate { padding-top: 30px; padding-bottom: 30px; }
  .gate-ornament { margin-top: 20px; margin-bottom: 17px; }
  .gate-copy { margin-top: 14px; margin-bottom: 21px; }
  .gate-footnote { margin-top: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .guest-button, .rsvp-choice > span { transition: none; }
}

@media print {
  .guest-gate, .guest-dashboard, .guest-nav-button { display: none !important; }
}

body.guest-locked{overflow:hidden}.guest-locked .page-tools,.guest-locked .chapter-progress,.guest-locked .skip-link{visibility:hidden}.guest-card.is-primary{grid-column:auto}.guest-field select{width:100%;min-height:50px;border:1px solid #d3b68855;border-radius:4px;background:var(--guest-surface-deep);color:var(--ink);padding:12px 14px;color-scheme:dark}.rsvp-meal{margin-top:18px}#organizer-link-list input{width:100%;min-height:44px;border:1px solid var(--guest-border);background:var(--guest-surface-deep);color:var(--gold);padding:10px;font:inherit;font-size:11px}.guest-gate{align-items:safe center}.guest-dashboard-grid>.guest-card{min-width:0}@media(max-width:700px){.top-nav{gap:10px}.top-nav .nav-rsvp{display:none}}

#gate-activation-ready>.guest-button{display:flex;width:100%;margin-top:12px}.organizer-row details{width:100%;font-size:11px}.organizer-row summary{cursor:pointer;color:var(--gold)}

.rsvp-choice.is-pending{grid-column:1/-1}.rsvp-choice.is-pending>span{min-height:36px;border-color:transparent;background:transparent;color:var(--muted);font-size:10px}.rsvp-choice.is-pending input:checked+span{border-color:var(--guest-border);background:var(--guest-soft-gold);color:var(--gold)}

body:has(dialog[open]){overflow:hidden}@media(max-width:600px){.guest-field select{font-size:16px}}
