.rsvp-route.mail-open {
  background: #211b1b;
  background-image: radial-gradient(ellipse at 16% 5%, #413038, transparent 62%);
  min-height: 100svh;
}
.rsvp-route.mail-open[data-suite=vicecity] {
  background-color: #1c1527;
  background-image: radial-gradient(ellipse at 12% 2%, #463049, transparent 68%);
}
.rsvp-route.mail-open main {
  width: min(calc(100% - 2rem), 72rem);
  max-width: none;
  padding-block: clamp(1.25rem, 4vw, 3.75rem);
}
#rsvpCard {
  --reply-sheet: #fffaf2;
  --reply-type: #352720;
  --reply-muted: #695850;
  --reply-rule: #d9cabc;
  --reply-action: #694636;
  --reply-tint: #f3e8dc;
  display: grid;
  grid-template-columns: minmax(0, 34rem) minmax(0, 23rem);
  justify-content: center;
  align-items: start;
  gap: clamp(1rem, 4vw, 3.5rem);
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
#rsvpCard[data-suite=vicecity] {
  --reply-sheet: #fff7f4;
  --reply-type: #37263d;
  --reply-muted: #6e5869;
  --reply-rule: #ddcbd3;
  --reply-action: #623950;
  --reply-tint: #f6e7ee;
}
.invitation-leaf,.reply-paper { min-width: 0; }
#guestCardArt { filter: drop-shadow(0 .75rem 1.3rem #100b102b); }
.rsvp-route #guestCardArt > .stationery {
  transform: scale(var(--guest-paper-scale,1));
  transform-origin: top center;
}
.rsvp-route #guestPaperSize {
  display: block; margin: .35rem auto 0; min-height: 40px;
  padding: .45rem .85rem; color: #f4e9ee; border-color: #a08d9d; font-size: .85rem;
}
.reply-paper {
  color-scheme: light;
  padding: clamp(1rem, 1.7vw, 1.5rem);
  background: var(--reply-sheet);
  color: var(--reply-type);
  border-radius: 3px;
  box-shadow: 0 10px 36px #11091520;
}
#rsvpCard form { margin: 0; padding: 0; max-width: none; }
.reply-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .5rem;
  border-bottom: 3px double var(--reply-rule);
}
.guest-card .reply-heading h2 {
  margin: 0;
  font: italic 1.65rem/1.2 'Instrument Serif', Georgia, serif;
  letter-spacing: -.035em;
}
.reply-paper label,.reply-paper legend { font-size: 1rem; font-weight: 600; line-height: 1.4; }
#rsvpCard .reply-paper label:not(.reply-choice label) {
  display: grid;
  align-items: start;
  gap: .5rem;
  margin: .8rem 0;
  min-width: 0;
}
#rsvpCard .reply-paper :is(input:not([type=radio]),select,textarea) {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: .7rem .85rem;
  font: 400 1rem/1.45 'DM Sans', sans-serif;
  color: var(--reply-type);
  border: 1px solid #b3a2a9;
  border-radius: .45rem;
  background: #fffdfb;
}
#rsvpCard input[name=name]:read-only {
  min-height: auto;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  font: 1.2rem/1.2 Georgia, serif;
}
#rsvpCard .reply-choice {
  border: 0;
  padding: 0;
  margin: 1rem 0 .85rem;
}
#rsvpCard .reply-choice legend { margin: 0 0 .6rem; }
#rsvpCard .reply-choice label {
  position: relative;
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: .42rem 0 0;
  padding: .65rem .9rem;
  min-height: 46px;
  border: 1px solid var(--reply-rule);
  border-radius: .45rem;
  font-weight: 500;
  cursor: pointer;
}
.reply-choice input { position: absolute; width: 1.4rem; height: 1.4rem; margin: 0; opacity: 0; }
.reply-heart { flex: none; width: 1.4rem; height: 1.4rem; color: var(--reply-action); stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; fill: none; }
.reply-choice input:checked + .reply-heart { fill: currentColor; }
#rsvpCard .reply-choice label:has(input:focus-visible) { outline: 2px solid currentColor; outline-offset: 2px; }
@media (forced-colors: active) {
  .reply-heart { color: ButtonText; forced-color-adjust: none; }
  .reply-choice input:checked + .reply-heart { color: Highlight; }
}
#rsvpCard .reply-choice label:has(:checked) { border-color: var(--reply-action); background: var(--reply-tint); }
#rsvpCard .reply-choice label:has([value=later]:checked) { background: #fff0cb; border-color: #927044; }
.reply-paper details { border-block-start: 1px solid var(--reply-rule); }
#rsvpCard summary {
  cursor: pointer;
  list-style: none;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 600;
}
#rsvpCard summary::-webkit-details-marker { display: none; }
#rsvpCard summary::after {
  content: '';
  width: .44rem;
  height: .44rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  margin: -.18rem .25rem 0 auto;
}
#rsvpCard details[open] > summary::after { transform: rotate(225deg); margin-top: .2rem; }
.reply-notes small { color: var(--reply-muted); font-weight: 400; font-size: .8rem; }
#guestSurvey { min-width: 0; margin: .65rem 0; }
#guestSurvey legend { font: italic 1.35rem Georgia, serif; }
#saveRsvp {
  width: 100%;
  margin-top: .75rem;
  border-color: var(--reply-action);
  background: var(--reply-action);
  color: white;
}
#rsvpCard .reply-paper p { color: var(--reply-muted); }
#rsvpStatus:not(:empty) { padding: .85rem 1rem; background: var(--reply-tint); border-radius: .4rem; }
#deliverySettings { margin-top: 1.25rem; }
#deliverySettings button { border-color: var(--reply-rule); }
.invitation-links { display: flex; flex-wrap: wrap; gap: .6rem 1rem; }
#rsvpCard .invitation-links a { display: inline-flex; align-items: center; min-height: 44px; margin: .55rem 0 0; color: var(--reply-action); font-size: .9rem; text-underline-offset: .2em; }
.invitation-leaf .wedding-clock {
  margin: 1.2rem 0 0;
  width: 100%;
  max-width: none;
  border: 0;
  border-top: 1px solid #b79cac70;
  border-radius: 0;
  padding: .35rem .2rem;
  background: transparent;
  color: #fbefeb;
}
#guestCalendar { position: relative; border: 0; flex: none; }
#guestCalendar summary {
  width: 44px; height: 44px; min-height: 44px; justify-content: center;
  color: var(--reply-action); border: 1px solid var(--reply-rule); border-radius: 50%;
}
#guestCalendar summary::after { display: none; }
#guestCalendar summary svg { width: 22px; height: 22px; }
#guestCalendar[open] summary { background: var(--reply-tint); border-color: var(--reply-action); }
#guestCalendar .calendar-links {
  position: absolute; z-index: 3; top: calc(100% + .45rem); right: 0;
  width: max-content; padding: .35rem; background: var(--reply-sheet);
  border: 1px solid var(--reply-rule); border-radius: .6rem; box-shadow: 0 .4rem 1.4rem #38233824;
}
#guestCalendar a {
  display: flex; align-items: center; min-height: 44px; padding: .5rem .9rem; border-radius: .35rem;
  color: var(--reply-type); text-decoration: none; font-size: .94rem; font-weight: 500;
}
#guestCalendar a:is(:hover,:focus-visible) { background: var(--reply-tint); }
.invitation-leaf .wedding-clock p { color: #e4d5df; font-size: .88rem; }
.invitation-leaf .wedding-clock { padding-top: 1rem; }
.invitation-leaf .wedding-clock h3 { color: inherit; }
#rsvpCard :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media(max-width: 760px) {
  #rsvpCard { grid-template-columns: minmax(0,1fr); }
  .rsvp-route.mail-open main { width: min(calc(100% - 1.5rem), 34rem); }
  .rsvp-route.mail-open #rsvpCard { display: flex; flex-direction: column; gap: 1rem; }
  .rsvp-route .invitation-leaf { display: contents; }
  .rsvp-route :is(#guestCardArt,.reply-paper) { width: 100%; }
  .rsvp-route .invitation-leaf .wedding-clock { order: 1; margin-top: 0; }
}

.reply-tools {display:flex;align-items:center;gap:.4rem}
#guestSong {width:44px;height:44px;padding:0;border-color:var(--reply-rule);color:var(--reply-action);font-size:1.2rem}
#guestWeddingPage { width: min(100%, 34rem); margin-inline: auto; }
.wedding-reply-summary { margin-bottom: 1.25rem; color: #fff7ee; }
.wedding-reply-summary h1 { font-size: clamp(1.65rem, 4vw, 2.4rem); }
.wedding-reply-summary .actions { gap: .5rem 1.25rem; flex-wrap: wrap; }
.wedding-reply-summary a { color: inherit; padding-block: .6rem; text-underline-offset: .22em; }
