:root {
  --cream: #faf7f2;
  --cream-soft: #fff9f4;
  --rose: #fcd5e4;
  --rose-deep: #f3c4d5;
  --rose-shadow: #f5a5c2;
  --rose-rgb: 252, 213, 228;
  --gold: #c7a060;
  --gold-hero: #f2d8a0;
  --deep-gold: #8c6a35;
  --ink: #0b0306;
  --ink-soft: #1a0c11;
  --text-dark: #1e1a17;
  --text-muted: rgba(30, 26, 23, 0.7);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
}

* {
  box-sizing: border-box;
}

body.invitation {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  min-height: 100vh;
}

body.lightbox-open {
  overflow: hidden;
}

body.invitation.admin-panel {
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.9), transparent 55%),
    linear-gradient(135deg, var(--cream), var(--cream-soft) 45%, var(--rose) 100%);
  color: var(--text-dark);
}

body.invitation.admin-panel.builder {
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.35), transparent 55%),
    linear-gradient(135deg, #fdf6f0, #f3e3dc 50%, #efe3ff);
  color: #1f1b24;
}

.admin-panel__wrap {
  padding: 4rem 0 6rem;
}

.admin-panel__header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-panel__header h1 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--gold-hero);
}

.admin-panel__header-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-panel__card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 18px 35px rgba(203, 174, 167, 0.35);
}

.admin-panel__card--table {
  padding: 0;
}

.admin-panel__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem 0.5rem;
}

.admin-panel__toolbar-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: var(--text-dark);
}

.admin-panel__toolbar-copy span {
  color: rgba(30, 26, 23, 0.7);
  font-size: 0.9rem;
}

.btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin-right: 0.5rem;
  background: #2f8f2f;
  color: #0b2b0b;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  border: 1px solid rgba(11, 43, 11, 0.25);
  text-transform: uppercase;
}





.admin-panel__empty-note {
  margin-top: 1rem;
  color: rgba(31, 27, 36, 0.65);
  font-size: 0.95rem;
}

.layout-panel__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  align-items: center;
}

.layout-panel__intro p {
  margin-bottom: 0.4rem;
}

.layout-panel__stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  text-align: right;
}

.layout-panel__stats strong {
  display: block;
  font-size: 1.35rem;
}

.layout-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
}

.layout-panel__buttons {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn-chip {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #fff;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-chip:hover {
  background: rgba(255, 255, 255, 0.7);
}

.btn-chip--ghost {
  background: transparent;
  border-color: rgba(0, 0, 0, 0.25);
}

.layout-panel__body,

.layout-stage {
  flex: 2;
  min-width: 320px;
  border-radius: 28px;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.layout-stage__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.layout-stage__hint {
  flex: 0 0 220px;
  font-size: 0.85rem;
  color: rgba(31, 27, 36, 0.75);
}

.layout-stage__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 32px;
}

.layout-board,

.layout-board__grid,

.layout-board__nodes,

.planner-node,

.planner-node.is-dragging .planner-node__body,

.layout-board__empty,

.layout-board__empty[hidden],

.planner-node__body,

.planner-node__body.is-active,

.planner-node__body.is-ghost,

.planner-node__body:active,

.planner-node__body--long,

.planner-node__glyph,

.planner-node__body--long .planner-node__glyph,

.planner-node__label,


.layout-sidebar__section {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.layout-sidebar__hint {
  font-size: 0.85rem;
  color: rgba(31, 27, 36, 0.65);
  margin-bottom: 0.8rem;
}


.planner-attendee-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.planner-attendee-list li {
  display: flex;
  flex-direction: column;
}

.planner-attendee-list__empty {
  color: rgba(31, 27, 36, 0.6);
}


.toolbar-btn {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 0.6rem 1rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  cursor: pointer;
  min-width: 110px;
  background: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.toolbar-btn span {
  font-size: 1.8rem;
  line-height: 1;
}

.toolbar-btn--ghost {
  background: rgba(252, 213, 228, 0.45);
}

.toolbar-btn--primary {
  background: var(--rose);
}
}













.planner-attendee-list__empty {
  border: 1px dashed rgba(0, 0, 0, 0.3);
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  text-align: center;
  color: rgba(31, 27, 36, 0.65);
}



.seat-overlay__seat {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(199, 160, 96, 0.4);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 0.05em;
  transform: rotate(var(--seat-angle)) translateY(-90px) rotate(calc(var(--seat-angle) * -1));
  pointer-events: auto;
  cursor: pointer;
}

.seat-overlay__seat.is-filled {
  background: rgba(255, 243, 235, 1);
  color: var(--text-dark);
  border-color: rgba(199, 160, 96, 0.8);
  box-shadow: 0 8px 18px rgba(199, 160, 96, 0.3);
}

.seat-overlay__seat--long {
  transform: rotate(var(--seat-angle)) translateY(-70px) rotate(calc(var(--seat-angle) * -1));
}








.admin-table__wrapper {
  width: 100%;
  overflow-x: auto;
  padding: 1.5rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-dark);
}

.admin-table th,
.admin-table td {
  padding: 0.8rem 0.6rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
}

.admin-table th {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  opacity: 0.7;
  color: rgba(31, 27, 36, 0.65);
}

.admin-table__empty-state {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 2rem 0;
  text-align: center;
  color: rgba(31, 27, 36, 0.6);
}

.admin-table__empty-state strong {
  color: var(--text-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.5);
}

.builder__layout {
  padding: 4rem 0 5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.builder__header h1 {
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
}

.builder-workspace {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.builder-edit-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.builder-edit-note__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .builder-edit-note {
    flex-direction: column;
    align-items: flex-start;
  }
}

.builder-form__section {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  padding: 1.75rem;
  border: 1px solid rgba(23, 23, 23, 0.08);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
}

.builder-form__section-header {
  margin-bottom: 1.25rem;
}

.builder-form__section-header p {
  margin: 0.15rem 0;
  color: rgba(31, 27, 36, 0.7);
}

.builder-form__section-header .eyebrow {
  color: var(--rose);
  letter-spacing: 0.2em;
}

.builder-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.builder-form__grid--wide {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.builder-form label {
  color: #3a3330;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.builder-field__label {
  font-weight: 700;
  font-size: 0.95rem;
}

.builder-field__target {
  font-size: 0.8rem;
  color: rgba(31, 27, 36, 0.65);
}

.builder-field__example {
  font-size: 0.78rem;
  color: rgba(31, 27, 36, 0.55);
}

.builder-form input,
.builder-form textarea {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(34, 34, 34, 0.15);
  color: #1f1b24;
}

.builder-form textarea {
  resize: vertical;
}

.invitation-guestbook .guestbook {
  display: grid;
  gap: 2rem;
  color: #0c0c0c;
}

.invitation-guestbook.is-collapsed {
  display: none;
}

.invitation-guestbook.is-hiding {
  max-height: 0;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  transition: max-height 0.7s ease, opacity 0.4s ease, transform 0.7s ease, padding 0.7s ease;
}

.guestbook__layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.guestbook__form.card,
.guestbook__timeline.card {
  background: #fdfdfd;
  border: 1px solid rgba(15, 15, 15, 0.08);
  color: #0c0c0c;
}

.guestbook__form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 600;
  color: #0c0c0c;
}

.guestbook__form input,
.guestbook__form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(34, 34, 34, 0.15);
  padding: 0.65rem 0.9rem;
  background: rgba(255, 255, 255, 0.9);
}

.guestbook__media-field {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.guestbook__media-label {
  font-weight: 600;
  color: #0c0c0c;
  margin: 0;
}

.guestbook__upload-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.guestbook__upload {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border: 1px dashed rgba(15, 15, 15, 0.2);
  border-radius: 12px;
  cursor: pointer;
}

.guestbook__upload input {
  display: none;
}

.guestbook__upload-label {
  font-weight: 600;
  color: #0c0c0c;
}

.guestbook__media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.guestbook__form textarea {
  min-height: 140px;
  resize: vertical;
}

.guestbook__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.guestbook__field span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0c0c0c;
}

.guestbook__timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guestbook__timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.guestbook__timeline-header h3 {
  color: #0c0c0c;
}

.guestbook__count {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b5b4a;
}

.guestbook-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  color: #0c0c0c;
}

.guestbook-timeline__item {
  border-left: 3px solid rgba(0, 0, 0, 0.1);
  padding-left: 1rem;
}

.guestbook-timeline__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #6b5b4a;
  margin-bottom: 0.35rem;
}

.guestbook-timeline__item p {
  margin: 0;
  color: #0c0c0c;
}

.guestbook-timeline__media {
  margin-top: 0.6rem;
}

.guestbook-timeline__media img,
.guestbook-timeline__media video {
  width: 100%;
  border-radius: 14px;
  max-height: 260px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.guestbook-timeline__empty {
  text-align: center;
  padding: 1.5rem;
  border: 1px dashed rgba(0, 0, 0, 0.15);
  border-radius: 16px;
  color: #0c0c0c;
  background: rgba(0, 0, 0, 0.03);
}

.guestbook__submit {
  width: 100%;
  margin-top: 0.5rem;
}

.guestbook__hint {
  font-size: 0.78rem;
  color: #0c0c0c;
  margin-top: 0.5rem;
}

.guestbook__preview {
  border: 1px solid rgba(34, 34, 34, 0.15);
  border-radius: 12px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.guestbook__preview[hidden],
.guestbook__preview img[hidden],
.guestbook__preview video[hidden],
.guestbook__preview-reset[hidden] {
  display: none !important;
}

.guestbook__preview img,
.guestbook__preview video {
  width: 100%;
  border-radius: 10px;
  max-height: 280px;
  object-fit: cover;
}

.guestbook__preview-reset {
  align-self: flex-start;
  background: none;
  border: none;
  color: rgba(31, 27, 36, 0.7);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.85rem;
}

.guestbook__list h3 {
  margin-bottom: 1rem;
}

.guestbook__list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guestbook-entry {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.guestbook-entry:last-child {
  border-bottom: none;
}

.guestbook-entry__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.4rem;
}

.guestbook-entry__meta strong {
  font-size: 1rem;
  color: #fff;
}

.guestbook-entry p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  white-space: pre-wrap;
}

.guestbook-entry--empty {
  border-bottom: none;
  color: rgba(255, 255, 255, 0.7);
}

.guestbook-entry__media {
  margin-top: 0.8rem;
}

.guestbook-entry__media img,
.guestbook-entry__media video {
  width: 100%;
  border-radius: 12px;
  display: block;
  max-height: 280px;
  object-fit: cover;
}

.guestbook-entry__media a {
  color: #fff;
  text-decoration: underline;
}

.builder-custom-palette {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(245, 240, 255, 0.7);
  border: 1px dashed rgba(39, 20, 70, 0.2);
  display: none;
  flex-direction: column;
  gap: 0.75rem;
}

.builder-custom-palette.is-visible {
  display: flex;
}

.builder-custom-palette__hint {
  font-size: 0.85rem;
  color: rgba(39, 20, 70, 0.75);
}

.builder-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.builder-color {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 0.75rem;
  border: 1px solid rgba(39, 20, 70, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.builder-color span {
  font-weight: 600;
  font-size: 0.9rem;
}

.builder-color small {
  font-size: 0.75rem;
  color: rgba(39, 20, 70, 0.6);
}

.builder-color input[type='color'] {
  width: 100%;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: none;
  padding: 0;
}

.builder-map__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.5rem;
}

.builder-map__canvas-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.builder-map__canvas {
  width: 100%;
  height: 320px;
  border-radius: 20px;
  background: rgba(17, 17, 17, 0.08);
  border: 1px solid rgba(17, 17, 17, 0.08);
  overflow: hidden;
}

.builder-map__note {
  margin: 0 0 0.75rem;
}

.builder-map__controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid rgba(23, 23, 23, 0.08);
}

.builder-map__coord-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.builder-map__save {
  align-self: flex-start;
}

.builder-map__list {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  padding: 1.25rem;
  border: 1px solid rgba(23, 23, 23, 0.08);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.05);
}

.builder-map__list-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.builder-map__list-header h4 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(31, 27, 36, 0.7);
}

.builder-map__list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.builder-map__item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
}

.builder-map__item strong {
  font-size: 0.95rem;
}

.builder-map__item button {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--rose-deep);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.builder-map__empty {
  font-size: 0.85rem;
  color: rgba(31, 27, 36, 0.6);
  padding: 1rem 0;
}

.builder-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.builder-checkbox input {
  width: auto;
  accent-color: var(--rose);
}

.builder-form__submit {
  margin-top: 1.5rem;
}


.rsvp-widget {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background: var(--rose, rgba(255, 192, 203, 0.95));
  color: #062226;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(6, 34, 38, 0.18);
  display: flex;
  flex-direction: column;
  text-align: left;
  border: 1px solid rgba(6, 34, 38, 0.12);
  z-index: 20;
  max-width: 160px;
}

.rsvp-widget__label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.rsvp-widget strong {
  font-family: var(--font-display);
  font-size: 0.85rem;
}

.rsvp-widget small {
  font-size: 0.7rem;
  color: rgba(6, 34, 38, 0.8);
}

.rsvp-widget.is-hidden {
  display: none;
}

@media (max-width: 768px) {
  .rsvp-widget {
    right: 0.75rem;
    bottom: 0.75rem;
    left: auto;
    max-width: 140px;
  }
  .rsvp-widget strong {
    font-size: 0.8rem;
  }
}
.builder-preview {
  position: sticky;
  top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.builder-preview__hero {
  position: relative;
  border-radius: 24px;
  padding: 2rem;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--preview-hero-start, rgba(8, 10, 26, 0.85)),
    var(--preview-hero-end, rgba(39, 20, 70, 0.85))
  );
}

.builder-preview__hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--builder-hero-image, none);
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  filter: saturate(1.2);
}

.builder-preview__hero > * {
  position: relative;
  z-index: 2;
}

.builder-preview__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.builder-preview__hero h3 {
  margin: 0.35rem 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.builder-preview__tagline {
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.9);
}

.builder-preview__meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.builder-preview__meta--secondary {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.builder-preview__message {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
}

.builder-preview__cta {
  width: 100%;
  justify-content: center;
}

.builder-preview__cta.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.builder-preview__hint {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.builder-preview__panel {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(23, 23, 23, 0.08);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.04);
}

.builder-preview__panel h4 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(31, 27, 36, 0.75);
}

.builder-preview__panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.92rem;
}

.builder-preview__panel li span {
  display: block;
  font-size: 0.82rem;
  color: rgba(31, 27, 36, 0.6);
}

.builder-preview__panel--logistics ul {
  gap: 0.5rem;
}

.builder-preview__panel--logistics strong {
  display: inline-block;
  min-width: 90px;
  font-size: 0.85rem;
  color: rgba(31, 27, 36, 0.8);
}

.builder-list {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  padding: 1.75rem;
  border: 1px solid rgba(23, 23, 23, 0.08);
}

.builder-list ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.builder-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(34, 34, 34, 0.08);
}

.builder-list li:last-child {
  border-bottom: none;
}

.builder-list span {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.9rem;
  color: rgba(31, 27, 36, 0.8);
}

.builder-list a {
  color: var(--rose-deep);
  text-decoration: none;
  font-weight: 600;
}

.builder-list a:hover {
  text-decoration: underline;
}

.builder-list__badge {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 999px;
  padding: 0.1rem 0.65rem;
  font-size: 0.75rem;
}

.builder-list__media {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
}

.builder-list__media a {
  color: inherit;
  text-decoration: underline;
}

.builder-list__media span {
  color: rgba(31, 27, 36, 0.6);
}

.note__link {
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 960px) {
  .builder-workspace {
    grid-template-columns: 1fr;
  }

  .builder-preview {
    position: relative;
    top: 0;
  }

  .builder-map__layout {
    grid-template-columns: 1fr;
  }
}

.badge {
  display: inline-flex;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge--yes {
  background: rgba(147, 255, 198, 0.15);
  color: #81f5c4;
}

.badge--no {
  background: rgba(255, 159, 159, 0.15);
  color: #ff9f9f;
}

.admin-panel__card--guestbook {
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.5rem;
}

.admin-panel__card-header h2 {
  margin-bottom: 0.4rem;
}

.admin-guestbook {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-guestbook li {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.admin-guestbook li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-guestbook__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(30, 26, 23, 0.7);
  margin-bottom: 0.5rem;
}

.admin-guestbook__meta strong {
  color: var(--text-dark);
  font-size: 1rem;
}

.admin-guestbook p {
  margin: 0.5rem 0 0;
  line-height: 1.6;
  color: rgba(30, 26, 23, 0.85);
}

.admin-guestbook__empty {
  border-bottom: none;
  color: rgba(30, 26, 23, 0.65);
}

.admin-guestbook__media {
  margin-top: 0.6rem;
}

.admin-guestbook__media img,
.admin-guestbook__media video {
  max-width: 200px;
  width: 100%;
  border-radius: 12px;
  display: block;
}

.admin-guestbook__media a {
  color: var(--text-dark);
  text-decoration: underline;
}

body.invitation.admin-panel .admin-guestbook__meta,
body.invitation.admin-panel .admin-guestbook__meta strong {
  color: var(--text-dark);
}

body.invitation.admin-panel .admin-guestbook__meta span {
  color: rgba(30, 26, 23, 0.7);
}

.scroll-site {
  min-height: 100vh;
  padding-bottom: 8rem;
}

[data-scroll] {
  opacity: 0;
  filter: blur(18px);
  transition: opacity 0.9s ease, filter 0.9s ease;
  will-change: opacity, filter;
}

[data-scroll].is-inview {
  opacity: 1;
  filter: blur(0);
}

.story__frame[data-scroll] {
  transform-origin: center;
  transition: opacity 1s ease, filter 1s ease, transform 1s ease;
}

.story__frame[data-scroll].is-inview {
  transform: scale(1.02);
}

.invitation[data-theme='aurora'] {
  --cream: #f4fffd;
  --cream-soft: #ebfbf7;
  --rose: #b9f1eb;
  --rose-deep: #9ce7dd;
  --rose-shadow: #87d9cd;
  --rose-rgb: 185, 241, 235;
  --gold: #a7c7c2;
  --gold-hero: #e5fffa;
  --deep-gold: #6e9f99;
  --ink: #0a2f38;
  --ink-soft: #124753;
  --text-dark: #0e3e45;
  --text-muted: rgba(14, 62, 69, 0.7);
}

.invitation[data-theme='opulence'] {
  --cream: #fbf5ef;
  --cream-soft: #fff7f0;
  --rose: #fce4e4;
  --rose-deep: #f4c2c2;
  --rose-shadow: #e59a9a;
  --rose-rgb: 244, 194, 194;
  --gold: #d4af37;
  --gold-hero: #ffefcc;
  --deep-gold: #a67c00;
  --ink: #1c0303;
  --ink-soft: #3b0b0b;
  --text-dark: #2a0c0c;
  --text-muted: rgba(42, 12, 12, 0.7);
}

.invitation[data-theme='rose'] {
  --cream: #fff6f8;
  --cream-soft: #fffafd;
  --rose: #f8d7df;
  --rose-deep: #f1bec9;
  --rose-shadow: #e7a6b6;
  --rose-rgb: 248, 215, 223;
  --gold: #d9b48f;
  --gold-hero: #ffece0;
  --deep-gold: #b78d6a;
  --ink: #2f1020;
  --ink-soft: #4b1f32;
  --text-dark: #4b1f32;
  --text-muted: rgba(75, 31, 50, 0.75);
}

.invitation[data-theme='couture'] {
  --cream: #faf7f2;
  --cream-soft: #fff9f4;
  --rose: #fcd5e4;
  --rose-deep: #fcd5e4;
  --rose-shadow: #fcd5e4;
  --rose-rgb: 252, 213, 228;
  --gold: #c7a060;
  --gold-hero: #f2d8a0;
  --deep-gold: #8c6a35;
  --ink: #0b0306;
  --ink-soft: #1a0c11;
  --text-dark: #1e1a17;
  --text-muted: rgba(30, 26, 23, 0.7);
}

.invitation[data-theme='custom'] {
  --cream: #f4fffd;
  --cream-soft: #ebfbf7;
  --rose: #b9f1eb;
  --rose-deep: #9ce7dd;
  --rose-shadow: #87d9cd;
  --rose-rgb: 185, 241, 235;
  --gold: #a7c7c2;
  --gold-hero: #e5fffa;
  --deep-gold: #6e9f99;
  --ink: #0a2f38;
  --ink-soft: #124753;
  --text-dark: #0e3e45;
  --text-muted: rgba(14, 62, 69, 0.7);
}

.container {
  width: min(1100px, 90%);
  margin-inline: auto;
}

.eyebrow {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--gold);
}

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 20% 25%, rgba(var(--rose-rgb), 0.45), transparent 60%),
    radial-gradient(circle at 80% 0%, rgba(var(--rose-rgb), 0.32), transparent 55%),
    linear-gradient(135deg, #050203 0%, var(--ink) 60%, #050203 100%);
  background-size: 180% 180%;
  animation: heroGradient 32s ease-in-out infinite;
}

.hero__canvas,
.hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__canvas {
  mix-blend-mode: screen;
  opacity: 0.65;
}

.hero__overlay {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 20% 20%, rgba(var(--rose-rgb), 0.25), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(var(--rose-rgb), 0.2), transparent 60%);
  opacity: 0.35;
  animation: overlayDrift 36s ease-in-out infinite;
}

@keyframes heroGradient {
  0% {
    background-position: 10% 20%;
  }
  50% {
    background-position: 90% 80%;
  }
  100% {
    background-position: 10% 20%;
  }
}


@keyframes overlayDrift {
  0% {
    transform: rotate(0deg) scale(1);
    opacity: 0.35;
  }
  50% {
    transform: rotate(8deg) scale(1.06);
    opacity: 0.6;
  }
  100% {
    transform: rotate(0deg) scale(1);
    opacity: 0.35;
  }
}

.hero__content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  margin: 1rem 0;
  color: var(--gold-hero);
}

.lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}



.variant-switch {
  padding: 2rem 0 3rem;
}

.variant-switch__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.variant-card {
  border: 1px solid rgba(199, 160, 96, 0.3);
  border-radius: 20px;
  padding: 1.2rem 1.4rem;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.06);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  font-family: var(--font-body);
  font-size: 1rem;
  color: inherit;
  width: 100%;
  appearance: none;
}

.variant-card__name {
  display: block;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}

.variant-card__tagline {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.variant-card.is-active {
  border-color: var(--gold);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.variant-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.btn {
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: none;
  text-decoration: none;
}

.btn:disabled,
.btn.is-disabled,
.btn[aria-disabled='true'] {
  opacity: 0.55;
  pointer-events: none;
  box-shadow: none;
  filter: grayscale(0.3);
}

.btn--primary {
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: var(--ink-soft);
  box-shadow: 0 15px 30px rgba(var(--rose-rgb), 0.35);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
}

.btn--primary:hover,
.btn--ghost:hover {
  transform: translateY(-3px);
}

.section {
  padding: 5rem 0;
}

.section--light {
  background: var(--cream-soft);
}

.section--rose {
  background: linear-gradient(135deg, rgba(var(--rose-rgb), 0.25), rgba(var(--rose-rgb), 0.45));
}

.grid {
  display: grid;
  gap: 2.5rem;
}

.grid--two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--cream);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(199, 160, 96, 0.12);
}

.card--accent {
  background: linear-gradient(145deg, var(--cream-soft), rgba(var(--rose-rgb), 0.3));
  border: 1px solid rgba(199, 160, 96, 0.25);
}

.card--glass {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.list li {
  padding-left: 1.2rem;
  margin-bottom: 0.6rem;
  position: relative;
  color: var(--text-muted);
}

.list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--gold);
}

.invitation-story .story__frame {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 40px 60px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.story__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.schedule {
  display: grid;
  gap: 1.5rem;
}

.schedule article {
  padding: 1.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(194, 180, 160, 0.3);
  box-shadow: 0 15px 30px rgba(15, 10, 28, 0.08);
}

.contact__form {
  display: grid;
  gap: 1rem;
}

.invitation-map {
  background: linear-gradient(140deg, var(--cream-soft), var(--cream));
  color: var(--ink);
}

.map-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.map-card__content {
  padding: 2rem;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(12, 7, 3, 0.08);
  box-shadow: 0 25px 45px rgba(12, 7, 3, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.map-card__content h2 {
  font-size: 2rem;
  margin: 0;
  color: var(--ink);
}

.map-card__content p {
  color: var(--text-muted);
}

.map-card__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.map-card__choices.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.map-card__empty {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

.map-card__info {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.choice-card--map {
  background: rgba(var(--rose-rgb), 0.18);
  border-color: rgba(var(--rose-rgb), 0.45);
  color: var(--ink);
}

.choice-card--map.is-selected {
  background: linear-gradient(140deg, var(--gold-hero), var(--rose));
  border-color: var(--gold);
  color: var(--ink);
}

.map-card__frame {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  min-height: 320px;
  background: var(--cream-soft);
  box-shadow: 0 20px 60px rgba(12, 7, 3, 0.15);
  border: 1px solid rgba(12, 7, 3, 0.06);
}

.map-card__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-card__glass {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 30px;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.invitation-media {
  background: var(--cream-soft);
}

.invitation-media__intro {
  max-width: 680px;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.media-viewer__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.media-viewer__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.media-filter {
  border: 1px solid rgba(12, 7, 3, 0.1);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dark);
}

.media-filter:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.media-filter:disabled {
  opacity: 0.45;
  pointer-events: none;
}

.media-filter.is-active {
  border-color: var(--gold);
  background: var(--gold-hero);
  color: var(--ink);
}

.media-viewer__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.media-viewer__progress {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.media-viewer {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.media-viewer__stage {
  position: relative;
  background: #fff;
  border: 1px solid rgba(12, 7, 3, 0.08);
  border-radius: 32px;
  padding: 1rem;
  min-height: 420px;
  box-shadow: 0 35px 60px rgba(12, 7, 3, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.media-stage__media {
  position: relative;
  height: 360px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(140deg, rgba(var(--rose-rgb), 0.2), rgba(3, 2, 1, 0.95));
  border: 1px solid rgba(var(--rose-rgb), 0.2);
}

.media-viewer__stage img,
.media-viewer__stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: none;
}

.media-viewer__stage img.is-active,
.media-viewer__stage video.is-active {
  display: block;
}

.media-stage__fullscreen {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(var(--rose-rgb), 0.15);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 15px 25px rgba(4, 2, 3, 0.35);
}

.media-stage__fullscreen:hover,
.media-stage__fullscreen:focus-visible {
  transform: translateY(-2px) scale(1.05);
  background: rgba(var(--rose-rgb), 0.4);
  color: var(--ink);
  border-color: var(--gold);
}

.media-stage__fullscreen span {
  line-height: 1;
}

.media-viewer__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(12, 7, 3, 0.08);
  padding-top: 0.75rem;
}

.media-viewer__meta p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.media-viewer__meta p.is-hidden {
  display: none;
}

.media-viewer__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.media-viewer__caption p {
  margin: 0;
  font-weight: 500;
  color: var(--text-dark);
}

.media-viewer__nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.media-viewer__nav .btn {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(var(--rose-rgb), 0.25);
  border: 1px solid rgba(var(--rose-rgb), 0.5);
  color: var(--ink);
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 25px rgba(4, 2, 3, 0.12);
}

.media-viewer__controls .btn {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(var(--rose-rgb), 0.2);
  border: 1px solid rgba(var(--rose-rgb), 0.4);
  color: var(--ink);
  box-shadow: 0 12px 25px rgba(4, 2, 3, 0.12);
}

.media-viewer__nav .btn:hover,
.media-viewer__controls .btn:hover {
  background: rgba(var(--rose-rgb), 0.45);
  color: var(--ink);
  border-color: var(--gold);
}

.btn--slideshow {
  position: relative;
  overflow: hidden;
  padding-bottom: 1.2rem;
}

.btn--slideshow span[data-slideshow-label] {
  position: relative;
  z-index: 1;
}

.btn--slideshow .slideshow-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;
}

.btn--slideshow.is-playing .slideshow-progress {
  opacity: 1;
}

.slideshow-progress.is-animating {
  animation: slideshowProgress var(--slideshow-duration, 5000ms) linear forwards;
}

@keyframes slideshowProgress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.media-viewer__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.media-thumb {
  border: 1px solid rgba(12, 7, 3, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.media-thumb img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  display: block;
}

.media-thumb__video {
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.75rem;
  background: linear-gradient(135deg, rgba(var(--rose-rgb), 0.2), rgba(var(--rose-rgb), 0.5));
  color: var(--ink);
  text-align: center;
  gap: 0.5rem;
}

.media-thumb__video span {
  font-size: 1.4rem;
}

.media-thumb.is-active {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.media-thumb.is-hidden {
  display: none;
}

.media-lightbox {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(var(--rose-rgb), 0.35), rgba(2, 0, 2, 0.95));
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 999;
}

.media-lightbox.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.media-lightbox__content {
  position: relative;
  z-index: 1;
  width: min(1200px, 96vw);
  height: min(780px, 90vh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.media-lightbox__media {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 45px 80px rgba(2, 0, 3, 0.55);
  background: linear-gradient(145deg, var(--ink), var(--ink-soft));
  border: 1px solid rgba(var(--rose-rgb), 0.3);
}

.media-lightbox__media img,
.media-lightbox__media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
  background: #000;
}

.media-lightbox__media img.is-active,
.media-lightbox__media video.is-active {
  display: block;
}

.media-lightbox__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  cursor: pointer;
}

.media-lightbox__close {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(var(--rose-rgb), 0.2);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 15px 30px rgba(3, 0, 2, 0.4);
}

.media-lightbox__close:hover,
.media-lightbox__close:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
}

.media-lightbox__arrows {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  padding: 0 1rem;
  z-index: 2;
}

.media-lightbox__arrow {
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(var(--rose-rgb), 0.25);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 20px 35px rgba(3, 0, 2, 0.45);
}

.media-lightbox__arrow:hover,
.media-lightbox__arrow:focus-visible {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  border-color: var(--gold);
}

.media-lightbox__pulse {
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 90px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: translateX(-50%) scaleX(0);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 25px rgba(var(--rose-rgb), 0.7);
}

.media-lightbox__media.is-animating .media-lightbox__pulse {
  animation: pulseReveal 0.7s ease;
}

@keyframes pulseReveal {
  0% {
    opacity: 0;
    transform: translateX(-50%) scaleX(0.2);
  }
  40% {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scaleX(0.2);
  }
}

.invitation-gifts .gift-table__wrapper {
  margin-top: 1.5rem;
  overflow-x: auto;
}

.invitation-gifts.is-hidden {
  display: none;
}

.invitation-gifts--inline {
  margin-top: 0;
}

.invitation-gifts--inline .gift-table__wrapper {
  max-height: 420px;
  overflow: auto;
}

.invitation-gifts--inline.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(0.2);
}

.gift-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.gift-table th,
.gift-table td {
  text-align: left;
  padding: 0.85rem 0.6rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.gift-table th {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.6);
}

.gift-table tr.is-reserved {
  opacity: 0.6;
}

.gift-status {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.gift-status.is-available {
  color: var(--gold);
}

.gift-table input[type="radio"] {
  width: 1rem;
  height: 1rem;
}

label {
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

input,
textarea,
select {
  border: 1px solid rgba(30, 26, 23, 0.15);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--rose-shadow);
  box-shadow: 0 0 0 3px rgba(var(--rose-rgb), 0.2);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.choice-card,
.choice-card--map {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.choice-card input,
.choice-card--map input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.choice-card span,
.choice-card--map span {
  color: var(--ink-soft);
}

.choice-card input:checked + span,
.choice-card--map input:checked + span {
  color: var(--ink);
}

.choice-card input:checked + span,
.choice-card input:checked ~ span,
.choice-card--map input:checked + span,
.choice-card--map input:checked ~ span {
  color: var(--ink);
}

.choice-card input:focus-visible + span,
.choice-card--map input:focus-visible + span {
  outline: 2px solid var(--rose);
  outline-offset: 6px;
}

.choice-card.is-selected,
.choice-card--map.active {
  border-color: var(--gold);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.choice-card.is-selected span,
.choice-card--map.is-selected span {
  color: var(--ink);
}

.invitation-rsvp {
  background: var(--cream);
}

.invitation-rsvp__grid {
  gap: 1.5rem;
}

.invitation-rsvp__intro {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.invitation-rsvp__form {
  align-self: stretch;
}

.form-step {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin: 0;
}

.form-step.is-visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.form-step + .form-step {
  margin-top: 1rem;
}

.form-step.is-collapsed {
  display: none !important;
  margin: 0 !important;
}

.invitation-rsvp__form .form-section {
  margin-bottom: 1.2rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(7, 2, 3, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
}

.form-section__title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.8rem;
  color: var(--ink-soft);
}

.choice-grid--paired {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0.7rem;
}

.quantity-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink);
}

.quantity-field input {
  max-width: 80px;
  text-align: center;
  font-size: 1rem;
}

.quantity-field.is-disabled {
  opacity: 0.6;
}

.quantity-field.is-disabled input {
  background: rgba(0, 0, 0, 0.04);
}

.rsvp-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.rsvp-extras {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 1600px;
  transition: opacity 0.3s ease, filter 0.3s ease, max-height 0.4s ease;
}

.rsvp-extras.is-disabled {
  opacity: 0.3;
  filter: grayscale(0.2);
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
}

.rsvp-extras.is-hidden {
  display: none;
}

.rsvp-details.is-partial label[data-always-enabled] {
  border-top: 1px dashed rgba(7, 2, 3, 0.25);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

.microcopy.is-hidden {
  display: none;
}

.invitation-rsvp__form .btn--primary {
  width: 100%;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold-hero), var(--rose));
  color: var(--ink);
  box-shadow: 0 25px 45px rgba(var(--rose-rgb), 0.4);
}

.note {
  margin-top: 1rem;
  border-left: 3px solid var(--gold);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(var(--rose-rgb), 0.12);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.note--success {
  border-color: var(--gold);
  background: rgba(var(--rose-rgb), 0.15);
  color: var(--deep-gold);
}

.note--error {
  border-color: var(--rose);
  background: rgba(var(--rose-rgb), 0.2);
  color: #5e2236;
}

.note--muted {
  border-color: rgba(7, 2, 3, 0.15);
  background: rgba(7, 2, 3, 0.03);
  color: var(--text-muted);
}

.footer {
  background: #070203;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
}
