/* ==========================================================================
   Ant's Photography RSVP — Stylesheet
   Design tokens mirror the main site for visual consistency.
   All classes prefixed rsvp- to avoid collisions.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

/* --- Tokens (mirrors main site) --- */
:root {
  --bg-0: #080808;
  --bg-1: #0f0f0f;
  --bg-2: #161616;
  --bg-3: #1d1d1d;
  --bg-4: #242424;

  --text-0: #f6f2ee;
  --text-1: #d4c4b4;
  --text-2: #9a8878;
  --text-3: #6a5a50;

  --gold: #c9a96e;
  --gold-light: #e8d5b0;
  --gold-dark: #a07838;
  --gold-subtle: rgba(201, 169, 110, 0.12);

  --border: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(201, 169, 110, 0.3);

  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 12px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.6);

  --ease: cubic-bezier(0.4,0,0.2,1);
  --transition: 0.3s var(--ease);

  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

  --max-width: 1200px;
  --gutter: clamp(20px, 5vw, 60px);
  --header-height: 64px;
}

/* ========================================================================== 
   Organizer dashboard regression repair - final scoped layout authority
   ========================================================================== */
body.rsvp-dashboard-body {
  --rsvp-dash-space-1: 0.375rem;
  --rsvp-dash-space-2: 0.75rem;
  --rsvp-dash-space-3: 1rem;
  --rsvp-dash-space-4: 1.5rem;
  --rsvp-dash-space-5: 2rem;
  --rsvp-dash-card-padding: clamp(1rem, 2vw, 1.5rem);
  --rsvp-dash-card-radius: var(--radius-md);
  inline-size: 100%;
  max-inline-size: 100%;
  overflow-x: hidden;
}

body.rsvp-dashboard-body .rsvp-dashboard-layout,
body.rsvp-dashboard-body .rsvp-dashboard-main,
body.rsvp-dashboard-body .rsvp-dashboard-main > *,
body.rsvp-dashboard-body .rsvp-card,
body.rsvp-dashboard-body .rsvp-form,
body.rsvp-dashboard-body .rsvp-form-row,
body.rsvp-dashboard-body .rsvp-form-group,
body.rsvp-dashboard-body .rsvp-card-header,
body.rsvp-dashboard-body .rsvp-table-wrap {
  min-inline-size: 0;
  max-inline-size: 100%;
  box-sizing: border-box;
}

body.rsvp-dashboard-body .rsvp-dashboard-layout {
  inline-size: 100%;
  overflow: visible;
}

body.rsvp-dashboard-body .rsvp-dashboard-main {
  inline-size: 0;
  padding: var(--rsvp-dash-space-4);
  overflow-wrap: anywhere;
}

body.rsvp-dashboard-body .rsvp-dashboard-main > .rsvp-card,
body.rsvp-dashboard-body .rsvp-dashboard-main > section.rsvp-card,
body.rsvp-dashboard-body .rsvp-dashboard-main > header.rsvp-card,
body.rsvp-dashboard-body .rsvp-dashboard-main .rsvp-card[style*="max-width"] {
  inline-size: 100%;
  max-inline-size: 100% !important;
}

body.rsvp-dashboard-body .rsvp-card {
  margin-block-end: var(--rsvp-dash-space-4) !important;
  padding: var(--rsvp-dash-card-padding);
  border: 1px solid var(--border);
  border-radius: var(--rsvp-dash-card-radius);
  background: var(--bg-2);
}

body.rsvp-dashboard-body .rsvp-card-header {
  align-items: flex-start;
  gap: var(--rsvp-dash-space-3);
  margin-block-end: var(--rsvp-dash-space-3);
}

body.rsvp-dashboard-body .rsvp-card-header > :first-child,
body.rsvp-dashboard-body .rsvp-dashboard-section-header > :first-child,
body.rsvp-dashboard-body .rsvp-card-title,
body.rsvp-dashboard-body .rsvp-page-intro,
body.rsvp-dashboard-body .rsvp-share-desc,
body.rsvp-dashboard-body a,
body.rsvp-dashboard-body td,
body.rsvp-dashboard-body th {
  min-inline-size: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

body.rsvp-dashboard-body .rsvp-card-title {
  margin: 0;
  line-height: 1.25;
}

body.rsvp-dashboard-body .rsvp-card-title + :is(.rsvp-page-intro, .rsvp-share-desc),
body.rsvp-dashboard-body .rsvp-card-header :is(.rsvp-page-intro, .rsvp-share-desc) {
  margin: var(--rsvp-dash-space-1) 0 0 !important;
}

body.rsvp-dashboard-body .rsvp-flash,
body.rsvp-dashboard-body .rsvp-alert {
  max-inline-size: 100%;
  margin-block-end: var(--rsvp-dash-space-3);
  padding: var(--rsvp-dash-space-2) var(--rsvp-dash-space-3);
  overflow-wrap: anywhere;
}

body.rsvp-dashboard-body .rsvp-form-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--rsvp-dash-space-3);
}

body.rsvp-dashboard-body :is(input, select, textarea, button) {
  max-inline-size: 100%;
}

body.rsvp-dashboard-body .rsvp-form-actions,
body.rsvp-dashboard-body .rsvp-table-actions,
body.rsvp-dashboard-body :is(.rsvp-faq-row-actions, .rsvp-registry-row-actions, .rsvp-operations-actions) {
  align-items: stretch;
  gap: var(--rsvp-dash-space-2);
}

body.rsvp-dashboard-body .rsvp-btn {
  min-block-size: 44px;
  white-space: normal;
  text-align: center;
}

body.rsvp-dashboard-body .rsvp-table-wrap {
  inline-size: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

body.rsvp-dashboard-body .rsvp-table {
  inline-size: 100%;
  min-inline-size: 42rem;
}

body.rsvp-dashboard-body .rsvp-table :is(th, td) {
  max-inline-size: 20rem;
  white-space: normal;
}

body.rsvp-dashboard-body .rsvp-table-actions {
  display: flex;
  flex-wrap: wrap;
  white-space: normal;
}

body.rsvp-dashboard-body :is(.rsvp-events-grid, .rsvp-stats-grid, .rsvp-planner-grid) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--rsvp-dash-space-3);
}

body.rsvp-dashboard-body :is(.rsvp-faq-editor-card, .rsvp-registry-editor-card, .rsvp-member-card) {
  padding: var(--rsvp-dash-space-3);
  border-radius: var(--radius-sm);
}

body.rsvp-dashboard-body :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--rsvp-focus, var(--gold));
  outline-offset: 3px;
}

@media (max-width: 1024px) {
  body.rsvp-dashboard-body .rsvp-dashboard-sidebar.rsvp-ws-sidebar {
    flex: 0 0 14.5rem;
    inline-size: 14.5rem;
    min-inline-size: 14.5rem;
  }

  body.rsvp-dashboard-body .rsvp-dashboard-main {
    padding: var(--rsvp-dash-space-3);
  }
}

@media (max-width: 768px) {
  body.rsvp-dashboard-body .rsvp-dashboard-layout {
    display: block;
  }

  body.rsvp-dashboard-body .rsvp-dashboard-main {
    inline-size: 100%;
    padding: 0 var(--rsvp-dash-space-3) var(--rsvp-dash-space-4);
  }

  body.rsvp-dashboard-body .rsvp-dashboard-topbar {
    margin: 0 0 var(--rsvp-dash-space-3);
    padding: var(--rsvp-dash-space-2) 0;
  }

  body.rsvp-dashboard-body .rsvp-dashboard-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-inline-size: 44px;
    min-block-size: 44px;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
  }

  body.rsvp-dashboard-body .rsvp-dashboard-sidebar.rsvp-ws-sidebar,
  body.rsvp-ws-collapsed .rsvp-dashboard-sidebar.rsvp-ws-sidebar {
    inline-size: min(20rem, calc(100vw - 1rem));
    max-inline-size: calc(100vw - 1rem);
    min-inline-size: 0;
  }
}

@media (max-width: 700px) {
  body.rsvp-dashboard-body .rsvp-form-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  body.rsvp-dashboard-body .rsvp-card-header,
  body.rsvp-dashboard-body .rsvp-dashboard-section-header {
    flex-direction: column;
    align-items: stretch;
  }

  body.rsvp-dashboard-body .rsvp-card-header > :is(.rsvp-btn, form),
  body.rsvp-dashboard-body .rsvp-dashboard-section-header > :is(.rsvp-btn, form) {
    max-inline-size: 100%;
  }
}

@media (max-width: 480px) {
  body.rsvp-dashboard-body {
    --rsvp-dash-card-padding: 1rem;
  }

  body.rsvp-dashboard-body .rsvp-form-actions,
  body.rsvp-dashboard-body .rsvp-form-actions > *,
  body.rsvp-dashboard-body .rsvp-form-actions .rsvp-btn,
  body.rsvp-dashboard-body .rsvp-card-header > .rsvp-btn,
  body.rsvp-dashboard-body :is(.rsvp-faq-row-actions, .rsvp-registry-row-actions, .rsvp-operations-actions) > * {
    inline-size: 100%;
  }

  body.rsvp-dashboard-body .rsvp-table {
    min-inline-size: 36rem;
  }
}

@media (max-width: 430px) {
  body.rsvp-dashboard-body .rsvp-dashboard-main {
    padding-inline: 0.75rem;
  }
}

@media (max-width: 390px) {
  body.rsvp-dashboard-body .rsvp-dashboard-main {
    padding-inline: 0.625rem;
  }
}

@media (max-width: 375px) {
  body.rsvp-dashboard-body .rsvp-dashboard-page-title {
    font-size: 1rem;
  }
}

@media (max-width: 340px) {
  body.rsvp-dashboard-body .rsvp-dashboard-main {
    padding-inline: 0.5rem;
  }

  body.rsvp-dashboard-body .rsvp-card {
    border-radius: var(--radius-sm);
  }
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
input, textarea, select, button { font-family: inherit; }

/* --- Header --- */
.rsvp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,8,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}
.rsvp-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.rsvp-logo img { height: 44px; width: auto; }
.rsvp-nav { display: flex; align-items: center; gap: 24px; }
.rsvp-nav-link {
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.rsvp-nav-link:hover { color: var(--text-0); }
.rsvp-nav-link--accent { color: var(--gold); }
.rsvp-nav-link--accent:hover { color: var(--gold-light); }

/* Mobile menu button */
.rsvp-mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  position: relative;
  z-index: 101;
}
.rsvp-mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-1);
  transition: var(--transition);
  transform-origin: center;
}
.rsvp-mobile-menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.rsvp-mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.rsvp-mobile-menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.rsvp-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}
.rsvp-mobile-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body.rsvp-mobile-nav-open { overflow: hidden; }

.rsvp-mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 4px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s, max-height 0.3s var(--ease), padding 0.25s var(--ease);
}
.rsvp-mobile-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  max-height: 600px;
  padding: 16px var(--gutter);
}
.rsvp-mobile-nav-link {
  color: var(--text-1);
  font-size: 0.95rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: block;
}

/* --- Buttons --- */
.rsvp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.rsvp-btn--primary {
  background: var(--gold);
  color: var(--bg-0);
}
.rsvp-btn--primary:hover {
  background: var(--gold-light);
  color: var(--bg-0);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,169,110,0.25);
}
.rsvp-btn--outline {
  background: transparent;
  color: var(--text-0);
  border: 1px solid var(--border);
}
.rsvp-btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.rsvp-btn--ghost {
  background: transparent;
  color: var(--gold);
}
.rsvp-btn--ghost:hover { color: var(--gold-light); }
.rsvp-btn--full { width: 100%; }
.rsvp-btn--sm { padding: 0.5rem 1.1rem; font-size: 0.82rem; }
.rsvp-btn--danger { color: #fca5a5 !important; }
.rsvp-btn--danger:hover { border-color: #f87171 !important; color: #f87171 !important; }
.rsvp-btn:active { transform: translateY(0) scale(0.98); }
.rsvp-btn:disabled,
.rsvp-btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.rsvp-btn:focus-visible,
.rsvp-form-input:focus-visible,
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* --- Forms --- */
.rsvp-form { display: flex; flex-direction: column; gap: 0; }
.rsvp-form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.rsvp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rsvp-form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
/* Mark required fields automatically: any group whose control is [required] */
.rsvp-form-group:has([required]) > .rsvp-form-label::after {
  content: " *";
  color: var(--gold);
  font-weight: 700;
}
.rsvp-form-input {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-0);
  padding: 10px 14px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}
.rsvp-form-input:focus { border-color: rgba(201,169,110,0.5); box-shadow: 0 0 0 3px rgba(201,169,110,0.12); }
.rsvp-form-input::placeholder { color: var(--text-3); }
textarea.rsvp-form-input { resize: vertical; }
.rsvp-form-textarea { min-height: 90px; }
select.rsvp-form-input { cursor: pointer; }
.rsvp-form-hint { font-size: 0.82rem; color: var(--text-3); margin-top: -8px; margin-bottom: 16px; }
.rsvp-form-checks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.rsvp-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-1);
}
.rsvp-check-label input[type=checkbox] { margin-top: 3px; flex-shrink: 0; accent-color: var(--gold); width: 16px; height: 16px; }
.rsvp-check-label--required { color: var(--text-0); }
.rsvp-form-actions { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.rsvp-radio-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.rsvp-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-1);
}
.rsvp-radio-label input[type=radio] { accent-color: var(--gold); width: 16px; height: 16px; }

/* --- Cards --- */
.rsvp-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
  transition: border-color var(--transition);
}
a.rsvp-card:hover,
.rsvp-card--interactive:hover { border-color: var(--border-gold); }
.rsvp-card--highlight { border-color: var(--border-gold); background: var(--gold-subtle); }
.rsvp-card--empty { text-align: center; padding: 48px 24px; }
.rsvp-card--locked { text-align: center; opacity: 0.8; position: relative; }
.rsvp-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.rsvp-card-title { font-family: var(--font-heading); font-size: 1.3rem; color: var(--text-0); font-weight: 500; }

/* --- Visually hidden (screen-reader-only text) --- */
.rsvp-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --- Help menu (persistent dashboard help disclosure) --- */
.rsvp-help-menu { position: relative; }
.rsvp-help-menu-summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 5px 13px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
  transition: border-color var(--transition), background var(--transition);
}
.rsvp-help-menu-summary::-webkit-details-marker { display: none; }
.rsvp-help-menu-summary::marker { content: ''; }
.rsvp-help-menu-summary:hover,
.rsvp-help-menu[open] > .rsvp-help-menu-summary {
  border-color: var(--gold);
  background: var(--gold-subtle);
}
.rsvp-help-menu-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}
.rsvp-help-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 140;
  min-width: 250px;
  max-width: min(320px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-2);
  box-shadow: var(--shadow-md);
  overflow-wrap: anywhere;
}
.rsvp-help-menu-heading {
  margin: 2px 4px 8px;
  color: var(--text-2);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.rsvp-help-menu-list { margin: 0 0 6px; padding: 0; list-style: none; }
.rsvp-help-menu-item {
  display: block;
  min-height: 40px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: 0.88rem;
  line-height: 1.4;
  transition: background var(--transition), color var(--transition);
}
.rsvp-help-menu-item:hover { background: var(--bg-3); color: var(--text-0); }
.rsvp-help-menu-browse {
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  margin-top: 2px;
  padding-top: 11px;
  color: var(--gold);
  font-weight: 600;
}
.rsvp-help-menu-browse:hover { color: var(--gold-light); }
.rsvp-dashboard-topbar .rsvp-help-menu { margin-left: auto; }
.rsvp-dashboard-topbar .rsvp-help-menu-panel { right: 0; left: auto; }

/* --- Premium onboarding checklist card --- */
.rsvp-onboarding-premium { overflow-wrap: anywhere; }
.rsvp-onboarding-header { align-items: flex-start; gap: 14px; }
.rsvp-onboarding-header .rsvp-badge { margin-bottom: 8px; }
.rsvp-onboarding-intro { margin: 6px 0 0; color: var(--text-1); font-size: 0.92rem; line-height: 1.55; }
.rsvp-onboarding-progress { margin: 6px 0 0; color: var(--gold); font-size: 0.8rem; font-weight: 600; }
.rsvp-onboarding-list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.rsvp-onboarding-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  transition: border-color var(--transition);
}
.rsvp-onboarding-item:hover { border-color: var(--border-gold); }
.rsvp-onboarding-item.is-done { opacity: 0.72; }
.rsvp-onboarding-mark {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
}
.rsvp-onboarding-item.is-done .rsvp-onboarding-mark { background: var(--gold); color: var(--bg-0); border-color: var(--gold); }
.rsvp-onboarding-copy { min-width: 0; }
.rsvp-onboarding-item-title { display: block; color: var(--text-0); font-weight: 600; font-size: 0.92rem; }
.rsvp-onboarding-item-title:hover { color: var(--gold); }
.rsvp-onboarding-item.is-done .rsvp-onboarding-item-title { text-decoration: line-through; text-decoration-color: var(--text-3); }
.rsvp-onboarding-item-body { margin: 3px 0 0; color: var(--text-2); font-size: 0.8rem; line-height: 1.45; }
.rsvp-onboarding-state { align-self: center; font-size: 0.82rem; white-space: nowrap; }

@media (max-width: 600px) {
  .rsvp-onboarding-header { flex-direction: column; }
  .rsvp-onboarding-item { grid-template-columns: 26px minmax(0, 1fr); }
  .rsvp-onboarding-state { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .rsvp-help-menu-summary,
  .rsvp-help-menu-item,
  .rsvp-onboarding-item { transition: none; }
}

/* --- Flash messages --- */
.rsvp-flash {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.rsvp-flash--success { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.3); color: #86efac; }
.rsvp-flash--error   { background: rgba(239,68,68,0.1);  border-color: rgba(239,68,68,0.3);  color: #fca5a5; }
.rsvp-flash--info    { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.3); color: #93c5fd; }
.rsvp-flash--warning { background: rgba(251,191,36,0.1); border-color: rgba(251,191,36,0.3); color: #fde68a; }

/* --- Alert --- */
.rsvp-alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 20px; border: 1px solid transparent; }
.rsvp-alert--warning { background: rgba(251,191,36,0.1); border-color: rgba(251,191,36,0.4); color: #fde68a; }

/* --- Badges --- */
.rsvp-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg-4);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.rsvp-badge--free    { background: var(--bg-4); color: var(--text-2); }
.rsvp-badge--premium { background: var(--gold-subtle); color: var(--gold); border-color: var(--border-gold); }
.rsvp-badge--success { background: rgba(34,197,94,0.1); color: #86efac; border-color: rgba(34,197,94,0.3); }

/* --- Status chips --- */
.rsvp-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}
.rsvp-status--attending { background: rgba(34,197,94,0.12); color: #86efac; }
.rsvp-status--declined  { background: rgba(239,68,68,0.1);  color: #fca5a5; }
.rsvp-status--maybe     { background: rgba(251,191,36,0.1); color: #fde68a; }
.rsvp-status--pending   { background: var(--bg-4); color: var(--text-2); }
.rsvp-status--active    { background: rgba(34,197,94,0.12); color: #86efac; }
.rsvp-status--disabled  { background: rgba(239,68,68,0.1);  color: #fca5a5; }

/* --- Tables --- */
.rsvp-table-wrap { overflow-x: auto; }
.rsvp-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.rsvp-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
}
.rsvp-table td {
  padding: 12px 14px;
  color: var(--text-1);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}
.rsvp-table tr:last-child td { border-bottom: none; }
.rsvp-table tr:hover td { background: rgba(255,255,255,0.02); }
.rsvp-table-actions { white-space: nowrap; }

/* --- Pagination --- */
.rsvp-pagination { display: flex; align-items: center; gap: 12px; margin-top: 20px; justify-content: center; }
.rsvp-pagination-info { font-size: 0.85rem; color: var(--text-2); }

/* --- Stats grid --- */
.rsvp-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.rsvp-stats-grid--sm .rsvp-stat-card { padding: 14px; }
.rsvp-stat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}
.rsvp-stat-label { font-size: 0.75rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.rsvp-stat-value { font-family: var(--font-heading); font-size: 2rem; color: var(--text-0); font-weight: 500; }
.rsvp-stat-value--sm { font-size: 1.5rem; }
.rsvp-stat-sub { font-size: 0.78rem; color: var(--text-3); margin-top: 4px; }

/* --- Link --- */
.rsvp-link { color: var(--gold); text-decoration: underline; }
.rsvp-link:hover { color: var(--gold-light); }

/* Signup consent checkbox: keep the long label and its policy links readable */
.rsvp-checkbox { font-size: 0.85rem; color: var(--text-2); line-height: 1.6; cursor: pointer; }
.rsvp-checkbox a { color: var(--gold); text-decoration: underline; }
.rsvp-checkbox a:hover { color: var(--gold-light); }
.rsvp-checkbox input[type="checkbox"] { flex-shrink: 0; accent-color: var(--gold); }
.rsvp-empty { color: var(--text-3); font-size: 0.9rem; padding: 12px 0; }
.rsvp-empty-title { font-family: var(--font-heading); font-size: 1.4rem; color: var(--text-0); margin-bottom: 8px; }
.rsvp-empty-desc { color: var(--text-2); margin-bottom: 20px; }
.rsvp-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.rsvp-meta-label { font-size: 0.75rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; display: block; margin-bottom: 2px; }
.rsvp-text-muted { color: var(--text-3); }
.rsvp-page-intro { color: var(--text-2); font-size: 0.92rem; margin-bottom: 24px; }

/* --- Auth pages --- */
.rsvp-auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
  background: var(--bg-0);
}
.rsvp-auth-wrap { width: 100%; max-width: 440px; }
.rsvp-auth-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.rsvp-auth-logo { text-align: center; margin-bottom: 24px; }
.rsvp-auth-logo img {
  margin: 0 auto;
  max-width: 160px;
  max-height: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.rsvp-auth-eyebrow { font-size: 0.75rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 10px; text-align: center; }
.rsvp-auth-title { font-family: var(--font-heading); font-size: 1.7rem; color: var(--text-0); font-weight: 500; text-align: center; margin-bottom: 28px; }
.rsvp-auth-sub { color: var(--text-2); font-size: 0.9rem; text-align: center; }
.rsvp-auth-footer { margin-top: 24px; text-align: center; font-size: 0.85rem; color: var(--text-2); }
.rsvp-auth-legal { margin-top: 16px; font-size: 0.8rem; color: var(--text-2); text-align: center; }
.rsvp-auth-legal a { color: var(--text-2); }
.rsvp-auth-legal a:hover { color: var(--gold); }

/* --- Legal pages (privacy / terms) --- */
.rsvp-legal-page { max-width: 800px; margin: 0 auto; padding: 60px 20px 80px; }
.rsvp-legal-page h1 { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 500; margin-bottom: 8px; }
.rsvp-legal-meta { font-size: 0.85rem; color: var(--text-2); margin-bottom: 36px; }
.rsvp-legal-page h2 { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 500; margin: 36px 0 12px; }
.rsvp-legal-page p { line-height: 1.75; margin-bottom: 14px; }
.rsvp-legal-page ul { margin: 0 0 14px 22px; }
.rsvp-legal-page li { line-height: 1.75; margin-bottom: 6px; }
.rsvp-legal-note { font-size: 0.85rem; color: var(--text-2); border-top: 1px solid var(--border); padding-top: 20px; margin-top: 40px; }

/* --- Admin layout --- */
.rsvp-admin-body { background: var(--bg-1); }
.rsvp-admin-layout { display: flex; min-height: 100vh; }
.rsvp-admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-0);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.rsvp-admin-sidebar-close,
.rsvp-admin-sidebar-overlay { display: none; }
.rsvp-admin-sidebar-logo {
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rsvp-admin-sidebar-logo img {
  max-width: 160px;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.rsvp-admin-nav { padding: 12px 0; }
.rsvp-admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 0.88rem;
  color: var(--text-2);
  transition: all var(--transition);
}
.rsvp-admin-nav-link:hover, .rsvp-admin-nav-link.active {
  color: var(--text-0);
  background: rgba(255,255,255,0.04);
}
.rsvp-admin-nav-link.active { color: var(--gold); }
.rsvp-admin-nav-link--danger:hover { color: #fca5a5; }
.rsvp-admin-nav-icon { opacity: 0.4; font-size: 0.7rem; }
.rsvp-admin-nav-divider { border: none; border-top: 1px solid var(--border); margin: 8px 0; }
.rsvp-admin-main { flex: 1; overflow: hidden; }
.rsvp-admin-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-0);
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 56px;
}
.rsvp-admin-page-title { font-family: var(--font-heading); font-size: 1.3rem; color: var(--text-0); flex: 1; font-weight: 500; }
.rsvp-admin-topbar-right { margin-left: auto; }
.rsvp-admin-content { padding: 24px; max-width: 1280px; }
.rsvp-admin-sidebar-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--text-2); font-size: 1.2rem; padding: 4px; }
.rsvp-admin-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rsvp-admin-actions { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.rsvp-admin-quick-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.rsvp-hero-note { color: var(--text-2); margin: 14px 0 0; font-size: 0.98rem; }

/* Admin proportions: tighter, consistent buttons and inputs */
.rsvp-admin-body .rsvp-btn { padding: 0.55rem 1.25rem; font-size: 0.85rem; }
.rsvp-admin-body .rsvp-btn--sm { padding: 0.4rem 0.95rem; font-size: 0.78rem; }
.rsvp-admin-body .rsvp-btn--primary:hover,
.rsvp-admin-body .rsvp-btn--outline:hover { transform: none; box-shadow: none; }
.rsvp-admin-body .rsvp-table-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.rsvp-admin-body .rsvp-card { padding: 20px; }
.rsvp-filter-bar .rsvp-btn { padding: 0.35rem 0.9rem; font-size: 0.76rem; }

.rsvp-share-card { padding: 24px; }
.rsvp-share-layout { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 20px; align-items: center; }
.rsvp-share-content { min-width: 0; }
.rsvp-share-desc { color: var(--text-2); margin: 0 0 16px; }
.rsvp-share-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.rsvp-share-actions form { margin: 0; }
.rsvp-share-qr { display: flex; justify-content: center; align-items: center; }
.rsvp-share-qr img { width: 180px; max-width: 100%; height: auto; background: #fff; padding: 10px; border-radius: 10px; border: 1px solid var(--border); }
.rsvp-search-form { display: flex; gap: 8px; flex: 1; align-items: center; }
.rsvp-search-input { flex: 1; max-width: 300px; padding: 8px 12px; font-size: 0.88rem; }
.rsvp-event-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

/* --- Dashboard layout --- */
.rsvp-dashboard-body { background: var(--bg-1); overflow-x: clip; }
.rsvp-dashboard-layout { display: flex; min-height: calc(100vh - var(--header-height)); min-width: 0; align-items: flex-start; overflow-x: clip; }
.rsvp-dashboard-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--bg-0);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow: hidden;
}
.rsvp-dashboard-user { padding: 0 20px 20px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.rsvp-dashboard-user-name { font-size: 0.9rem; font-weight: 600; color: var(--text-0); margin-bottom: 6px; }
.rsvp-dashboard-nav { padding: 8px 0; }
.rsvp-dashboard-nav-link {
  display: block;
  padding: 10px 20px;
  font-size: 0.88rem;
  color: var(--text-2);
  transition: all var(--transition);
}
.rsvp-dashboard-nav-link:hover, .rsvp-dashboard-nav-link.active { color: var(--text-0); background: rgba(255,255,255,0.04); }
.rsvp-dashboard-nav-link--upgrade { color: var(--gold) !important; }
.rsvp-dashboard-main { flex: 1; min-width: 0; padding: 28px; overflow: visible; }
.rsvp-dashboard-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.rsvp-dashboard-title { font-family: var(--font-heading); font-size: 1.8rem; color: var(--text-0); font-weight: 500; }

/* Client dashboard topbar — mobile only, mirrors admin topbar */
.rsvp-dashboard-topbar {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-0);
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 56px;
}
.rsvp-dashboard-page-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-0);
  flex: 1;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rsvp-dashboard-sidebar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-2);
  font-size: 1.2rem;
  padding: 4px;
  flex-shrink: 0;
}
.rsvp-dashboard-sidebar-logo {
  display: none;
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  justify-content: center;
}
.rsvp-dashboard-sidebar-logo img {
  max-width: 160px;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.rsvp-ws-link--danger:hover { color: #fca5a5; }
.rsvp-ws-link--desktop-only { display: flex; }

/* --- Events grid --- */
.rsvp-events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.rsvp-event-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color var(--transition), transform var(--transition);
}
.rsvp-event-card:hover { border-color: var(--border-gold); transform: translateY(-2px); }
.rsvp-event-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rsvp-event-type-badge {
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.rsvp-event-card-title { font-family: var(--font-heading); font-size: 1.3rem; color: var(--text-0); font-weight: 500; margin-bottom: 6px; }
.rsvp-event-card-date { font-size: 0.85rem; color: var(--text-2); margin-bottom: 12px; }
.rsvp-event-card-stats { display: flex; gap: 16px; font-size: 0.82rem; color: var(--text-3); margin-bottom: 16px; }
.rsvp-event-card-actions { display: flex; gap: 8px; }

/* --- Share link --- */
.rsvp-share-link-wrap { display: flex; gap: 10px; align-items: center; }
.rsvp-share-input { flex: 1; font-size: 0.85rem; }

/* --- Upgrade banner --- */
.rsvp-upgrade-banner {
  background: var(--gold-subtle);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.rsvp-upgrade-title { font-family: var(--font-heading); font-size: 1.1rem; color: var(--text-0); font-weight: 500; margin-bottom: 4px; }
.rsvp-upgrade-desc { font-size: 0.88rem; color: var(--text-2); }

/* --- Locked feature cards --- */
.rsvp-locked-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.rsvp-card--locked {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  opacity: 0.7;
}
.rsvp-locked-icon { font-size: 1.4rem; margin-bottom: 8px; filter: grayscale(1); }
.rsvp-locked-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
}
.rsvp-locked-name { font-size: 0.88rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.rsvp-locked-desc { font-size: 0.8rem; color: var(--text-3); margin-bottom: 10px; }
.rsvp-locked-cta { font-size: 0.78rem; color: var(--text-3); margin-bottom: 12px; line-height: 1.5; }


/* --- Locked customization card (dashboard) --- */
.rsvp-locked-customization {
  background: var(--bg-2);
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  opacity: 0.85;
  margin-top: 24px;
}
.rsvp-locked-customization-icon { font-size: 2rem; margin-bottom: 10px; }
.rsvp-locked-customization-title { font-family: var(--font-heading); font-size: 1.25rem; color: var(--text-0); margin-bottom: 8px; font-weight: 500; }
.rsvp-locked-customization-desc { font-size: 0.88rem; color: var(--text-2); line-height: 1.6; margin-bottom: 18px; max-width: 400px; margin-left: auto; margin-right: auto; }

/* --- Customization fieldset (admin/dashboard) --- */
.rsvp-customization-fieldset {
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 24px;
  background: var(--gold-subtle);
}
.rsvp-customization-fieldset legend {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--gold);
  font-weight: 600;
  padding: 0 10px;
  letter-spacing: 0.04em;
}
.rsvp-color-row { display: flex; gap: 10px; align-items: center; }
.rsvp-color-input { width: 48px; height: 38px; padding: 2px 4px; cursor: pointer; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-3); }
.rsvp-color-hex { flex: 1; }

/* --- Landing page --- */
.rsvp-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,169,110,0.06) 0%, transparent 70%), var(--bg-0);
  padding: clamp(60px, 10vw, 120px) var(--gutter);
}
.rsvp-hero-content { max-width: var(--max-width); margin: 0 auto; text-align: center; width: 100%; }
.rsvp-eyebrow { font-size: 0.75rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 16px; }
.rsvp-hero-title { font-family: var(--font-heading); font-size: clamp(2.2rem, 5vw, 4rem); color: var(--text-0); font-weight: 600; line-height: 1.15; margin-bottom: 20px; }
.rsvp-hero-sub { font-size: 1.05rem; color: var(--text-2); max-width: 580px; margin: 0 auto 40px; line-height: 1.7; }
.rsvp-hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.rsvp-section { padding: clamp(48px, 8vw, 100px) var(--gutter); }
.rsvp-section--alt { background: var(--bg-1); }
.rsvp-section--cta { background: radial-gradient(ellipse at 50% 100%, rgba(201,169,110,0.06) 0%, transparent 70%), var(--bg-0); }
.rsvp-section-inner { max-width: var(--max-width); margin: 0 auto; }
.rsvp-section-title { font-family: var(--font-heading); font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: var(--text-0); font-weight: 500; margin-bottom: 12px; text-align: center; }
.rsvp-section-title--xl { font-size: clamp(2rem, 4vw, 3.2rem); }
.rsvp-section-sub { color: var(--text-2); text-align: center; font-size: 1rem; margin-bottom: 40px; }

/* Steps */
.rsvp-steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; margin-top: 48px; }
.rsvp-step { text-align: center; }
.rsvp-step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gold-subtle);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.rsvp-step-title { font-family: var(--font-heading); font-size: 1.25rem; color: var(--text-0); margin-bottom: 8px; }
.rsvp-step-desc { font-size: 0.9rem; color: var(--text-2); line-height: 1.65; }

/* Comparison grid */
.rsvp-compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 48px; }
.rsvp-compare-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}
.rsvp-compare-card--featured {
  border-color: var(--border-gold);
  background: linear-gradient(135deg, var(--bg-2) 0%, rgba(201,169,110,0.05) 100%);
}
.rsvp-compare-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--bg-0);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.rsvp-compare-header { margin-bottom: 24px; text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.rsvp-compare-tier { font-size: 0.75rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 6px; }
.rsvp-compare-price { font-family: var(--font-heading); font-size: 1.8rem; color: var(--text-0); font-weight: 600; margin-bottom: 4px; }
.rsvp-compare-sub { font-size: 0.85rem; color: var(--text-2); }
.rsvp-feature-list { list-style: none; margin-bottom: 28px; }
.rsvp-feature-item { padding: 8px 0; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.04); display: flex; align-items: center; gap: 10px; }
.rsvp-feature-item:last-child { border-bottom: none; }
.rsvp-feature-item--yes::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; }
.rsvp-feature-item--yes { color: var(--text-1); }
.rsvp-feature-item--no::before { content: '—'; color: var(--text-3); flex-shrink: 0; }
.rsvp-feature-item--no { color: var(--text-3); }
.rsvp-compare-cta { margin-top: auto; }
.rsvp-compare-cta .btn,
.rsvp-compare-cta .rsvp-btn { width: 100%; }

/* Event types */
.rsvp-types-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; margin-top: 40px; }
.rsvp-type-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}
.rsvp-type-card:hover { border-color: var(--border-gold); transform: translateY(-3px); }
.rsvp-type-icon { font-size: 2rem; margin-bottom: 10px; }
.rsvp-type-name { font-family: var(--font-heading); font-size: 1.1rem; color: var(--text-0); margin-bottom: 6px; }
.rsvp-type-desc { font-size: 0.82rem; color: var(--text-3); line-height: 1.5; }

/* --- Footer --- */
.rsvp-footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 40px var(--gutter);
}
.rsvp-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.rsvp-footer-name { font-family: var(--font-heading); font-size: 1.2rem; color: var(--gold); }
.rsvp-footer-tagline { font-size: 0.8rem; color: var(--text-3); margin-top: 2px; }
.rsvp-footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.rsvp-footer-nav a { font-size: 0.85rem; color: var(--text-2); transition: color var(--transition); }
.rsvp-footer-nav a:hover { color: var(--gold); }
.rsvp-footer-copy { font-size: 0.8rem; color: var(--text-3); width: 100%; text-align: center; }

/* --- Main wrapper --- */
.rsvp-main { min-height: calc(100vh - var(--header-height) - 120px); }

/* ==========================================================================
   Main-site chrome compatibility
   Pages with body.rsvp-site-chrome also load the main site's styles.css and
   use its fixed .site-header / .site-footer. These overrides keep the two
   stylesheets from fighting over bare elements and make room for the fixed
   header.
   ========================================================================== */
body.rsvp-site-chrome {
  color: var(--text-0);
  font-size: 16px;
  line-height: 1.6;
}
body.rsvp-site-chrome a { color: inherit; }
body.rsvp-site-chrome .rsvp-link,
body.rsvp-site-chrome .rsvp-powered-by-text a { color: var(--rsvp-accent, var(--gold)); }
body.rsvp-site-chrome .rsvp-link:hover { color: var(--rsvp-accent, var(--gold-light)); }
body.rsvp-site-chrome { --header-height: 72px; }

/* Event/invite hero sits under the fixed transparent header */
body.rsvp-site-chrome .rsvp-event-hero-content {
  padding-top: calc(var(--header-height) + clamp(32px, 6vw, 64px));
}
/* Themed event pages keep their own background under the chrome */
body.rsvp-site-chrome.rsvp-event-body {
  background: var(--rsvp-page-bg);
  color: var(--rsvp-text);
}

/* ==========================================================================
   Dashboard planner tools
   ========================================================================== */
.rsvp-planner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  align-items: start;
}
.rsvp-planner-grid .rsvp-card { margin-bottom: 0; }
.rsvp-planner-list { list-style: none; margin: 0 0 8px; padding: 0; }
.rsvp-planner-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.9rem;
  color: var(--text-1);
}
.rsvp-planner-list-item:last-child { border-bottom: none; }
.rsvp-invite-add-form { margin-bottom: 4px; }

/* Disabled-planning organizer timeline: server-rendered compatibility cards. */
.rsvp-timeline-compat-list {
  display: grid;
  gap: 12px;
  min-inline-size: 0;
  margin-block: 16px 24px;
}

.rsvp-timeline-compat-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  min-inline-size: 0;
  max-inline-size: 100%;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  overflow-wrap: anywhere;
}

.rsvp-timeline-compat-copy,
.rsvp-timeline-compat-meta,
.rsvp-timeline-compat-meta > div {
  min-inline-size: 0;
}

.rsvp-timeline-compat-time {
  margin-block-end: 4px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rsvp-timeline-compat-title {
  margin: 0;
  color: var(--text-0);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.25;
}

.rsvp-timeline-compat-description,
.rsvp-timeline-compat-location {
  margin-block-start: 8px;
  color: var(--text-2);
  white-space: normal;
}

.rsvp-timeline-compat-location span {
  color: var(--text-1);
  font-weight: 600;
}

.rsvp-timeline-compat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-block-start: 12px;
}

.rsvp-timeline-compat-meta > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.rsvp-timeline-compat-meta dt {
  color: var(--text-3);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rsvp-timeline-compat-meta dd {
  color: var(--text-1);
  font-size: 0.78rem;
}

.rsvp-timeline-compat-actions {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-inline-size: 0;
}

.rsvp-timeline-compat-delete {
  margin: 0;
}

.rsvp-timeline-compat-actions .rsvp-btn {
  min-block-size: 44px;
}

.rsvp-timeline-compat-form {
  margin-block-start: 24px;
  padding-block-start: 24px;
  border-block-start: 1px solid var(--border);
}

.rsvp-timeline-compat-form-heading {
  margin-block-end: 16px;
}

.rsvp-timeline-compat-form-heading h3 {
  color: var(--text-0);
  font-family: var(--font-heading);
  font-size: 1.25rem;
}

.rsvp-timeline-compat-form-heading p {
  color: var(--text-2);
  font-size: 0.88rem;
}

.rsvp-timeline-compat-selects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.rsvp-timeline-compat-form-actions {
  display: flex;
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .rsvp-timeline-compat-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .rsvp-timeline-compat-actions {
    justify-content: flex-start;
  }

  .rsvp-timeline-compat-selects {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

@media (max-width: 480px) {
  .rsvp-timeline-compat-actions,
  .rsvp-timeline-compat-actions > *,
  .rsvp-timeline-compat-actions .rsvp-btn,
  .rsvp-timeline-compat-delete,
  .rsvp-timeline-compat-form-actions,
  .rsvp-timeline-compat-form-actions > * {
    inline-size: 100%;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .rsvp-admin-two-col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .rsvp-nav { display: none; }
  .rsvp-mobile-menu-btn { display: flex; }

  .rsvp-admin-sidebar {
    position: fixed;
    left: -260px;
    z-index: 200;
    visibility: hidden;
    height: 100vh;
    box-shadow: none;
    transition: left var(--transition), visibility 0s linear 0.25s;
  }
  .rsvp-admin-sidebar.open {
    left: 0;
    visibility: visible;
    box-shadow: var(--shadow-lg);
    transition-delay: 0s, 0s;
  }
  .rsvp-admin-sidebar-close {
    position: absolute;
    top: max(10px, env(safe-area-inset-top));
    right: 10px;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-1);
    color: var(--text-1);
    cursor: pointer;
    font-size: 1.5rem;
  }
  .rsvp-admin-sidebar-close:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
  .rsvp-admin-sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 199;
    display: block;
    background: rgba(0, 0, 0, 0.5);
  }
  .rsvp-admin-sidebar-overlay[hidden] { display: none; }
  body.rsvp-admin-drawer-open { overflow: hidden; }
  .rsvp-admin-sidebar-toggle { display: block; }
  .rsvp-admin-sidebar-logo { padding-inline-end: 58px; }
  .rsvp-admin-sidebar-logo img { max-width: 140px; max-height: 48px; }
  .rsvp-admin-content { padding: 18px 14px; }
  .rsvp-admin-topbar { padding: 10px 14px; }
  .rsvp-admin-page-title { font-size: 1.15rem; }
  .rsvp-admin-topbar-right { display: none; }
  .rsvp-admin-nav-link { line-height: 1.4; min-height: 44px; }
  .rsvp-admin-body .rsvp-card { padding: 16px; }
  .rsvp-admin-two-col { grid-template-columns: 1fr; }
  .rsvp-admin-body .rsvp-form-input,
  .rsvp-dashboard-body .rsvp-form-input { font-size: 16px; } /* prevents iOS focus zoom */

  .rsvp-dashboard-main { padding: 0 16px 20px; overflow-x: clip; }
  .rsvp-dashboard-layout { flex-direction: column; min-height: auto; }

  .rsvp-form-row { grid-template-columns: 1fr; }
  .rsvp-auth-card { padding: 32px 22px; }
  .rsvp-auth-logo img { max-width: 120px; max-height: 120px; }
  .rsvp-auth-title { font-size: 1.45rem; }
  .rsvp-legal-page { padding: 40px 16px 60px; }
  .rsvp-legal-page h1 { font-size: 1.8rem; }
  .rsvp-compare-grid { grid-template-columns: 1fr; }
  .rsvp-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .rsvp-events-grid { grid-template-columns: 1fr; }
  .rsvp-event-meta-grid { grid-template-columns: 1fr; }
  .rsvp-upgrade-banner { flex-direction: column; }
  .rsvp-share-layout { grid-template-columns: 1fr; }
  .rsvp-share-qr { justify-content: flex-start; }
  .rsvp-share-qr img { width: 160px; }

}

/* Invitation parties ------------------------------------------------------ */
.rsvp-party-editor,
.rsvp-party-list { margin-bottom: 1.25rem; min-width: 0; }
.rsvp-party-section,
.rsvp-party-rsvp__members,
.rsvp-member-card {
  min-width: 0;
  margin: 0 0 1.25rem;
  padding: 1rem;
  border: 1px solid var(--border, var(--rsvp-border));
  border-radius: var(--radius-md, var(--rsvp-radius));
}
.rsvp-party-section > legend,
.rsvp-party-rsvp__members > legend {
  padding-inline: .35rem;
  color: var(--text-0, var(--rsvp-heading));
  font-family: var(--font-heading, var(--rsvp-font-heading));
  font-size: 1.05rem;
  font-weight: 600;
}
.rsvp-named-people { display: grid; gap: .75rem; margin-block: 1rem; }
.rsvp-named-person {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: .75rem;
  padding: .875rem;
  border: 1px solid var(--border, var(--rsvp-border));
  border-radius: var(--radius-sm, .5rem);
  background: color-mix(in srgb, var(--bg-2, var(--rsvp-card-bg)) 92%, white 8%);
}
.rsvp-named-person .rsvp-btn { min-height: 44px; justify-self: stretch; }
.rsvp-delivery-options { display: grid; gap: .625rem; }
.rsvp-delivery-option { position: relative; display: block; }
.rsvp-delivery-option input { position: absolute; opacity: 0; pointer-events: none; }
.rsvp-delivery-option span {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: .7rem .9rem;
  border: 1px solid var(--border, var(--rsvp-border));
  border-radius: var(--radius-sm, .5rem);
  color: var(--text-1, var(--rsvp-text));
  cursor: pointer;
}
.rsvp-delivery-option input:checked + span { border-color: var(--gold, var(--rsvp-accent)); background: var(--gold-subtle, color-mix(in srgb,var(--rsvp-accent) 12%,transparent)); }
.rsvp-delivery-option input:focus-visible + span { outline: 3px solid color-mix(in srgb,var(--gold, var(--rsvp-accent)) 45%,transparent); outline-offset: 2px; }
.rsvp-party-list { display: grid; gap: 1rem; }
.rsvp-party-list > .rsvp-card-header { margin-bottom: 0; }
.rsvp-party-card { margin: 0; overflow: hidden; }
.rsvp-party-card__header { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.rsvp-party-card__header h3 { margin: 0 0 .35rem; color: var(--text-0, var(--rsvp-heading)); font-family: var(--font-heading, var(--rsvp-font-heading)); font-size: 1.2rem; }
.rsvp-party-card__header p { margin: 0; color: var(--text-2, var(--rsvp-text)); }
.rsvp-party-card__grid { display: grid; gap: 1rem; margin-block: 1rem; }
.rsvp-party-card__grid h4 { margin: 0 0 .5rem; color: var(--text-2, var(--rsvp-muted-text)); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.rsvp-party-card__grid ul { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.rsvp-party-card__grid li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.rsvp-party-details { margin-block: .75rem 1rem; }
.rsvp-party-details summary { min-height: 44px; padding-block: .7rem; color: var(--gold, var(--rsvp-accent)); cursor: pointer; }
.rsvp-party-details p { overflow-wrap: anywhere; }
.rsvp-party-actions { display: grid; grid-template-columns: minmax(0,1fr); gap: .5rem; }
.rsvp-party-actions form { margin: 0; min-width: 0; }
.rsvp-party-actions .rsvp-btn { width: 100%; min-height: 44px; white-space: normal; }
.rsvp-unified-filters .rsvp-form-row { align-items: flex-end; }
.rsvp-unified-filters select { min-inline-size: 0; }
.rsvp-legacy-grid { display: grid; gap: 12px; margin-block-start: 16px; }
.rsvp-legacy-card {
  min-inline-size: 0;
  padding: 16px;
  border: 1px solid var(--border, var(--rsvp-border));
  border-radius: var(--radius-md, 12px);
  background: var(--bg-2, var(--rsvp-card-bg));
}
.rsvp-legacy-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rsvp-legacy-card h3 { margin: 0 0 6px; overflow-wrap: anywhere; }
.rsvp-legacy-card dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.rsvp-legacy-card dt { color: var(--text-2, var(--rsvp-muted-text)); font-size: .75rem; font-weight: 700; }
.rsvp-legacy-card dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.rsvp-unified-legacy-editor summary { min-height: 44px; padding-block: 12px; cursor: pointer; font-weight: 700; }
.rsvp-unified-legacy-editor summary:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.rsvp-member-card { padding: .875rem; background: color-mix(in srgb,var(--rsvp-card-bg) 92%,var(--rsvp-accent) 8%); }
.rsvp-member-card > legend { max-width: 100%; padding-inline: .35rem; color: var(--rsvp-heading); font-weight: 700; overflow-wrap: anywhere; }
.rsvp-member-name-fields { margin-top: 1rem; }
.rsvp-party-response-summary { margin-top: 1rem; }
.rsvp-party-response-summary ul { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.rsvp-party-response-summary li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--rsvp-border); }
.rsvp-roster-list { display: grid; gap: .625rem; }
.rsvp-roster-item { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; padding: .875rem; border: 1px solid var(--border, var(--rsvp-border)); border-radius: var(--radius-sm, .5rem); }
.rsvp-roster-item div { display: grid; gap: .2rem; min-width: 0; }
.rsvp-roster-item span { color: var(--text-2, var(--rsvp-muted-text)); overflow-wrap: anywhere; }
.rsvp-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

@media (min-width: 700px) {
  .rsvp-named-person { grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; align-items: end; }
  .rsvp-named-person .rsvp-btn { justify-self: auto; }
  .rsvp-delivery-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rsvp-party-card__header { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .rsvp-party-card__grid { grid-template-columns: minmax(0,2fr) minmax(10rem,1fr); }
  .rsvp-party-actions { display: flex; flex-wrap: wrap; }
  .rsvp-party-actions .rsvp-btn { width: auto; }
  .rsvp-roster-item { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (max-width: 420px) {
  .rsvp-unified-summary { grid-template-columns: 1fr 1fr; }
  .rsvp-unified-filters .rsvp-form-row,
  .rsvp-legacy-card header { align-items: stretch; flex-direction: column; }
  .rsvp-unified-filters button,
  .rsvp-unified-filters select,
  .rsvp-legacy-card .rsvp-party-actions > * { width: 100%; max-inline-size: 100%; }
  .rsvp-legacy-card { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .rsvp-party-editor *, .rsvp-party-card *, .rsvp-member-card * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media (max-width: 480px) {
  .rsvp-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .rsvp-planner-grid { grid-template-columns: 1fr; }
  .rsvp-planner-list-item { flex-wrap: wrap; }
  .rsvp-admin-actions { flex-direction: column; align-items: flex-start; }
  .rsvp-search-form { flex-direction: column; }
  .rsvp-search-input { max-width: 100%; }
  .rsvp-hero-cta { flex-direction: column; align-items: center; }
  .rsvp-locked-grid { grid-template-columns: 1fr; }
  .rsvp-share-actions { flex-direction: column; align-items: stretch; }
}

/* Day-of Contacts extends the existing registry-card and form contracts. */
.rsvp-contact-grid,
.rsvp-contact-editor-list {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.rsvp-contact-card,
.rsvp-contact-role,
.rsvp-contact-editor {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rsvp-contact-role {
  margin: 0.25rem 0 0.75rem;
  font-weight: 700;
}

.rsvp-contact-actions,
.rsvp-contact-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.rsvp-contact-actions a:focus-visible,
.rsvp-contact-editor input:focus-visible,
.rsvp-contact-editor textarea:focus-visible,
.rsvp-contact-editor button:focus-visible {
  outline: 3px solid var(--rsvp-focus, var(--rsvp-accent, #d9b978));
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .rsvp-contact-actions,
  .rsvp-contact-actions .rsvp-btn,
  .rsvp-contact-editor .rsvp-faq-row-actions form,
  .rsvp-contact-editor .rsvp-faq-row-actions .rsvp-btn {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .rsvp-stats-grid { grid-template-columns: 1fr; }
}

/* Guest Reminder Center: existing card/form/button tokens with bounded reflow. */
.rsvp-reminder-center,
.rsvp-reminder-center * {
  min-width: 0;
}
.rsvp-reminder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.rsvp-reminder-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  overflow-wrap: anywhere;
}
.rsvp-reminder-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.rsvp-reminder-card__header h3,
.rsvp-reminder-card p,
.rsvp-reminder-last-send {
  margin: 0;
}
.rsvp-reminder-form {
  margin-top: auto;
}
.rsvp-reminder-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.rsvp-reminder-summary > div,
.rsvp-reminder-message-preview > div,
.rsvp-reminder-sample,
.rsvp-reminder-exclusions {
  border: 1px solid var(--rsvp-border);
  border-radius: var(--radius-sm);
  padding: 0.875rem;
  overflow-wrap: anywhere;
}
.rsvp-reminder-summary__wide {
  grid-column: 1 / -1;
}
.rsvp-reminder-summary dt,
.rsvp-reminder-message-preview h3,
.rsvp-reminder-sample h3,
.rsvp-reminder-exclusions h3 {
  color: var(--rsvp-muted-text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rsvp-reminder-summary dd {
  margin: 0.35rem 0 0;
}
.rsvp-reminder-exclusions ul {
  display: grid;
  gap: 0.4rem;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}
.rsvp-reminder-exclusions li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.rsvp-reminder-message-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 0.75rem;
  margin: 1rem 0;
}
.rsvp-reminder-message-preview p,
.rsvp-reminder-message-preview pre,
.rsvp-reminder-sample pre {
  margin: 0.6rem 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  font: inherit;
}
.rsvp-reminder-recipient-review {
  margin-top: 1rem;
}
.rsvp-reminder-recipient-review summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.75rem 0;
}
.rsvp-reminder-preview__actions {
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.rsvp-reminder-preview__actions form {
  margin: 0;
}
.rsvp-reminder-center button:focus-visible,
.rsvp-reminder-center select:focus-visible,
.rsvp-reminder-center summary:focus-visible {
  outline: 3px solid var(--rsvp-focus, var(--rsvp-accent, #d9b978));
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .rsvp-reminder-summary,
  .rsvp-reminder-message-preview {
    grid-template-columns: 1fr;
  }
  .rsvp-reminder-summary__wide {
    grid-column: auto;
  }
  .rsvp-reminder-preview__actions,
  .rsvp-reminder-preview__actions form,
  .rsvp-reminder-preview__actions .rsvp-btn {
    width: 100%;
  }
}


/* ============================================================
   Session 14: message statuses, scheduling, message history,
   and the responsive admin email log
   ============================================================ */

/* Message status badges (scheduled sending lifecycle) */
.rsvp-msg-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
}
.rsvp-msg-status--sent             { background: rgba(34,197,94,0.12);  color: #86efac; border-color: rgba(34,197,94,0.3); }
.rsvp-msg-status--scheduled        { background: var(--gold-subtle);    color: var(--gold); border-color: rgba(201,169,110,0.35); }
.rsvp-msg-status--sending          { background: rgba(59,130,246,0.12); color: #93c5fd; border-color: rgba(59,130,246,0.3); }
.rsvp-msg-status--partially_failed { background: rgba(251,191,36,0.12); color: #fde68a; border-color: rgba(251,191,36,0.3); }
.rsvp-msg-status--failed           { background: rgba(239,68,68,0.12);  color: #fca5a5; border-color: rgba(239,68,68,0.3); }
.rsvp-msg-status--cancelled        { background: var(--bg-4);           color: var(--text-2); border-color: rgba(255,255,255,0.1); }
.rsvp-msg-status--draft            { background: var(--bg-4);           color: var(--text-2); }

/* Event platform workspace */
.rsvp-event-rail {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.rsvp-event-rail-title {
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}
.rsvp-event-rail-link {
  display: block;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: var(--text-1);
  text-decoration: none;
  background: rgba(255,255,255,0.03);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.rsvp-event-rail-link:hover,
.rsvp-event-rail-link.active {
  border-color: rgba(201,169,110,0.45);
  background: rgba(201,169,110,0.09);
  transform: translateY(-1px);
}
.rsvp-event-rail-link span {
  display: block;
  font-weight: 700;
  line-height: 1.25;
}
.rsvp-event-rail-link small {
  display: block;
  margin-top: 4px;
  color: var(--text-2);
  font-size: 0.76rem;
}
.rsvp-workspace-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}
.rsvp-workspace-tab {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  color: var(--text-2);
  background: rgba(255,255,255,0.035);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}
.rsvp-workspace-tab:hover,
.rsvp-workspace-tab.active {
  color: #17120c;
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
}
.rsvp-visibility-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* Send now / schedule controls */
.rsvp-send-mode-options { display: flex; gap: 18px; flex-wrap: wrap; }
.rsvp-schedule-fields { margin-top: 4px; }
.rsvp-schedule-fields input[type="datetime-local"] { max-width: 280px; color-scheme: dark; }

/* Expandable message body in history tables */
.rsvp-msg-body summary {
  cursor: pointer;
  color: var(--gold);
  font-size: 0.8rem;
  user-select: none;
}
.rsvp-msg-body summary:hover { color: var(--gold-light); }
.rsvp-msg-body-text {
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--bg-4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-1);
  max-width: 420px;
  word-break: break-word;
  white-space: normal;
}

/* Message history table cells should wrap instead of stretching the page */
.rsvp-msg-history-table { table-layout: auto; }
.rsvp-msg-history-table td { vertical-align: top; word-break: break-word; }

/* ------------------------------------------------------------
   Admin email log: fixed-layout table on desktop so long error
   text wraps inside its column instead of pushing the page wide
   ------------------------------------------------------------ */
.rsvp-email-log { overflow-x: auto; }
.rsvp-email-log-table { width: 100%; table-layout: fixed; min-width: 720px; }
.rsvp-email-log-table th:nth-child(1) { width: 12%; }
.rsvp-email-log-table th:nth-child(2) { width: 18%; }
.rsvp-email-log-table th:nth-child(3) { width: 20%; }
.rsvp-email-log-table th:nth-child(4) { width: 11%; }
.rsvp-email-log-table th:nth-child(5) { width: 8%; }
.rsvp-email-log-table th:nth-child(6) { width: 13%; }
.rsvp-email-log-table th:nth-child(7) { width: 18%; }
.rsvp-email-log-table td { vertical-align: top; }
.rsvp-email-log-wrap,
.rsvp-email-log-error { word-break: break-word; overflow-wrap: anywhere; white-space: normal; }
.rsvp-log-error-text { font-size: 0.8rem; color: #fca5a5; }
.rsvp-log-error-details summary {
  cursor: pointer;
  font-size: 0.8rem;
  color: #fca5a5;
  user-select: none;
}
.rsvp-log-error-details summary:hover { color: #fecaca; }
.rsvp-log-error-detail-text {
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--bg-4);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-1);
  word-break: break-word;
}

/* ------------------------------------------------------------
   Small screens: email log and message history collapse into
   stacked cards (one card per email/message) with field labels
   ------------------------------------------------------------ */
@media (max-width: 860px) {
  .rsvp-visibility-grid { grid-template-columns: 1fr; }
  .rsvp-workspace-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .rsvp-workspace-tab { white-space: nowrap; }
  .rsvp-email-log { overflow-x: visible; }
  .rsvp-email-log-table,
  .rsvp-msg-history-table { min-width: 0; table-layout: auto; }
  .rsvp-email-log-table thead,
  .rsvp-msg-history-table thead { display: none; }
  .rsvp-email-log-table,
  .rsvp-email-log-table tbody,
  .rsvp-email-log-table tr,
  .rsvp-email-log-table td,
  .rsvp-msg-history-table,
  .rsvp-msg-history-table tbody,
  .rsvp-msg-history-table tr,
  .rsvp-msg-history-table td { display: block; width: 100%; }
  .rsvp-email-log-table tr,
  .rsvp-msg-history-table tr {
    background: var(--bg-3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
  }
  .rsvp-email-log-table td,
  .rsvp-msg-history-table td {
    border: none;
    padding: 4px 0;
    font-size: 0.85rem;
  }
  .rsvp-email-log-table td[data-label]::before,
  .rsvp-msg-history-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-2);
    margin-bottom: 2px;
  }
  .rsvp-email-log-table td[data-label=""]::before,
  .rsvp-msg-history-table td[data-label=""]::before { content: none; }
  .rsvp-msg-body-text { max-width: 100%; }
}

/* ==========================================================================
   Session 17 — Event workspace sidebar, locked tools, mobile drawer
   ========================================================================== */

/* Workspace sidebar (client dashboard) */
.rsvp-dashboard-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(201,169,110,0.08), transparent 26%),
    linear-gradient(180deg, #080808 0%, #101114 100%);
  overflow-x: hidden;
}
.rsvp-dashboard-body .rsvp-header--dashboard {
  z-index: 1400;
  background: rgba(8,8,8,0.92);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}
.rsvp-header-inner--dashboard {
  max-width: none;
  width: 100%;
  padding: 0 clamp(16px, 2.5vw, 28px);
  gap: 20px;
}
.rsvp-header-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.rsvp-logo--dashboard {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.rsvp-header-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rsvp-header-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.rsvp-header-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-0);
  line-height: 1.05;
}
.rsvp-nav--dashboard {
  margin-left: auto;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.rsvp-dashboard-layout {
  min-height: calc(100vh - var(--header-height));
  align-items: stretch;
}
.rsvp-dashboard-main {
  flex: 1;
  min-width: 0;
  padding: clamp(18px, 2.3vw, 32px);
}

.rsvp-dashboard-sidebar.rsvp-ws-sidebar {
  width: min(310px, 28vw);
  min-width: 272px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  background:
    linear-gradient(180deg, rgba(18,19,22,0.96) 0%, rgba(11,12,14,0.98) 100%);
  border-right: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset -1px 0 0 rgba(255,255,255,0.03);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.rsvp-dashboard-sidebar.rsvp-ws-sidebar::-webkit-scrollbar { width: 0; height: 0; }

.rsvp-ws-topbar,
.rsvp-ws-user,
.rsvp-ws-event,
.rsvp-ws-foot { padding-inline: 18px; }
.rsvp-ws-topbar,
.rsvp-ws-user,
.rsvp-ws-event { border-bottom: 1px solid rgba(255,255,255,0.08); }
.rsvp-ws-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 14px;
}
.rsvp-ws-topbar-copy { min-width: 0; }
.rsvp-ws-topbar-label,
.rsvp-ws-label {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.rsvp-ws-topbar-title {
  margin-top: 3px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-0);
  line-height: 1.2;
}
.rsvp-ws-user {
  padding-top: 14px;
  padding-bottom: 14px;
}
.rsvp-ws-user-head { display: flex; align-items: flex-start; gap: 10px; }
.rsvp-ws-user-copy { flex: 1; min-width: 0; }
.rsvp-ws-user-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-0);
  margin-bottom: 6px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.rsvp-ws-user-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rsvp-ws-sidebar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.rsvp-ws-sidebar-toggle,
.rsvp-ws-sidebar-close {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  color: var(--text-1);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.rsvp-ws-sidebar-toggle:hover,
.rsvp-ws-sidebar-close:hover {
  color: var(--text-0);
  border-color: rgba(201,169,110,0.45);
  background: rgba(201,169,110,0.12);
}
.rsvp-ws-sidebar-toggle-icon {
  font-size: 1rem;
  line-height: 1;
}
.rsvp-ws-sidebar-toggle-text {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rsvp-ws-sidebar-close { display: none; font-size: 1.2rem; }
.rsvp-btn--xs { padding: 4px 10px !important; font-size: 0.68rem !important; }

.rsvp-ws-event {
  padding-top: 14px;
  padding-bottom: 14px;
}
.rsvp-ws-event-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-0);
  line-height: 1.35;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.rsvp-ws-event-sub {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-top: 4px;
  line-height: 1.45;
}
.rsvp-ws-event-switcher { font-size: 0.79rem; padding: 8px 10px; width: 100%; margin-top: 8px; }
.rsvp-ws-all-events { display: inline-block; font-size: 0.72rem; color: var(--text-3); margin-top: 8px; }
.rsvp-ws-all-events:hover { color: var(--gold); }

.rsvp-ws-nav {
  padding: 10px 0 14px;
  flex: 1 1 auto;
  min-height: 0;
}
.rsvp-ws-nav-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 8px 0;
}
.rsvp-ws-label { padding: 8px 18px 6px; }
.rsvp-ws-label--premium {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--gold);
}
.rsvp-ws-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 10px 4px;
  padding: 10px 14px;
  min-height: 44px;
  font-size: 0.84rem;
  color: var(--text-2);
  line-height: 1.35;
  border-left: 2px solid transparent;
  border-radius: 14px;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.rsvp-ws-link:hover {
  color: var(--text-0);
  background: rgba(255,255,255,0.04);
}
.rsvp-ws-link.active {
  color: var(--gold);
  background: rgba(201,169,110,0.08);
  border-left-color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(201,169,110,0.18);
}
.rsvp-ws-link-main {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rsvp-ws-link-rail {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rsvp-ws-link:focus-visible,
.rsvp-ws-drawer-btn:focus-visible,
.rsvp-ws-sidebar-toggle:focus-visible,
.rsvp-ws-sidebar-close:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.rsvp-ws-lock {
  margin-left: auto;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,169,110,0.38);
  border-radius: 999px;
  padding: 2px 8px;
  flex-shrink: 0;
  white-space: nowrap;
}
.rsvp-ws-upgrade-card {
  display: flex;
  align-items: flex-start;
  margin: 4px 10px 8px;
  padding: 12px 14px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  background: var(--gold-subtle);
  transition: border-color var(--transition), background var(--transition);
}
.rsvp-ws-upgrade-card:hover {
  border-color: var(--gold);
  background: rgba(201, 169, 110, 0.18);
}
.rsvp-ws-upgrade-card .rsvp-ws-link-main { white-space: normal; }
.rsvp-ws-upgrade-card strong {
  display: block;
  color: var(--gold-light);
  font-size: 0.85rem;
  line-height: 1.35;
}
.rsvp-ws-upgrade-desc {
  display: block;
  margin-top: 5px;
  color: var(--text-2);
  font-size: 0.76rem;
  line-height: 1.45;
}
body.rsvp-ws-collapsed .rsvp-ws-upgrade-card { margin-inline: 6px; padding: 10px 0; justify-content: center; }
.rsvp-ws-foot {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 10px;
  padding-bottom: 14px;
}
.rsvp-ws-breadcrumb { font-size: 0.78rem; color: var(--text-3); margin: 4px 0 0; text-transform: uppercase; letter-spacing: 0.1em; }
.rsvp-ws-overlay {
  display: none;
  border: 0;
  padding: 0;
  background: rgba(5,6,8,0.92);
}

body.rsvp-ws-collapsed .rsvp-dashboard-sidebar.rsvp-ws-sidebar {
  width: 88px;
  min-width: 88px;
}
body.rsvp-ws-collapsed .rsvp-ws-topbar,
body.rsvp-ws-collapsed .rsvp-ws-user,
body.rsvp-ws-collapsed .rsvp-ws-foot { padding-inline: 12px; }
body.rsvp-ws-collapsed .rsvp-ws-topbar { justify-content: center; }
body.rsvp-ws-collapsed .rsvp-ws-topbar-copy,
body.rsvp-ws-collapsed .rsvp-ws-user-copy,
body.rsvp-ws-collapsed .rsvp-ws-event,
body.rsvp-ws-collapsed .rsvp-ws-label,
body.rsvp-ws-collapsed .rsvp-ws-link-main,
body.rsvp-ws-collapsed .rsvp-ws-lock,
body.rsvp-ws-collapsed .rsvp-btn--xs {
  display: none !important;
}
body.rsvp-ws-collapsed .rsvp-ws-user-head { justify-content: center; }
body.rsvp-ws-collapsed .rsvp-ws-sidebar-actions { justify-content: center; width: 100%; }
body.rsvp-ws-collapsed .rsvp-ws-sidebar-toggle {
  min-width: 44px;
  padding-inline: 0;
}
body.rsvp-ws-collapsed .rsvp-ws-sidebar-toggle-text { display: none; }
body.rsvp-ws-collapsed .rsvp-ws-link {
  justify-content: center;
  padding-inline: 10px;
  border-left-color: transparent;
}
body.rsvp-ws-collapsed .rsvp-ws-link.active {
  border-left-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(201,169,110,0.32);
}
body.rsvp-ws-collapsed .rsvp-ws-link-rail { display: inline-flex; }
body.rsvp-ws-collapsed .rsvp-ws-foot { padding-top: 8px; }

/* Locked premium tool screen */
.rsvp-locked-screen { max-width: 560px; text-align: center; padding: 44px 36px; }
.rsvp-locked-screen-title { font-family: var(--font-heading); font-size: 1.9rem; color: var(--text-0); font-weight: 500; margin: 6px 0 14px; }
.rsvp-locked-screen-desc { color: var(--text-1); line-height: 1.7; margin: 0 0 12px; }
.rsvp-locked-screen-benefit { color: var(--text-2); font-size: 0.9rem; line-height: 1.7; margin: 0 0 24px; }
.rsvp-locked-screen-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Overview card variants */
.rsvp-stat-card--link { display: block; color: inherit; transition: border-color var(--transition); }
.rsvp-stat-card--link:hover { border-color: var(--border-gold); }
.rsvp-stat-card--locked { opacity: 0.65; }
.rsvp-stat-card--locked .rsvp-stat-value--sm { color: var(--gold); }

/* Tasks / shot list */
.rsvp-task--done > div:first-child { opacity: 0.55; text-decoration: line-through; }
.rsvp-task-check {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.05rem;
  cursor: pointer;
  padding: 0 6px 0 0;
  vertical-align: -1px;
}
.rsvp-vendor-detail-row td { border-top: none; padding-top: 0; }

/* Workspace drawer button (mobile only) */
.rsvp-ws-drawer-btn {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  color: var(--text-1);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.rsvp-ws-drawer-btn:hover {
  color: var(--text-0);
  border-color: rgba(201,169,110,0.45);
  background: rgba(201,169,110,0.12);
}
.rsvp-ws-drawer-btn-icon {
  font-size: 1rem;
  line-height: 1;
}

.rsvp-footer--dashboard {
  background: transparent;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 14px clamp(16px, 2.5vw, 28px) 18px;
}
.rsvp-footer-inner--dashboard {
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
}
.rsvp-footer--dashboard .rsvp-footer-copy {
  width: auto;
  margin: 0;
  text-align: left;
  font-size: 0.78rem;
}
.rsvp-footer-nav--dashboard {
  gap: 14px;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  /* Hide desktop header chrome; use admin-style topbar + drawer */
  .rsvp-dashboard-body .rsvp-header--dashboard { display: none; }
  .rsvp-dashboard-body .rsvp-nav--dashboard { display: none !important; }
  body.rsvp-ws-drawer-open .rsvp-header--dashboard { display: none !important; }

  .rsvp-dashboard-topbar {
    display: flex;
    margin: 0 -16px 20px;
    padding: 10px 14px;
  }
  .rsvp-dashboard-sidebar-toggle { display: block; }
  .rsvp-dashboard-page-title { font-size: 1.15rem; }

  .rsvp-dashboard-layout { display: block; min-width: 0; }
  .rsvp-dashboard-sidebar-logo {
    display: flex;
  }
  .rsvp-dashboard-sidebar-logo img { max-width: 140px; max-height: 48px; }
  .rsvp-ws-topbar-copy { display: none; }
  .rsvp-ws-link--desktop-only { display: none !important; }

  body.rsvp-ws-collapsed .rsvp-ws-link-main { display: block !important; }
  body.rsvp-ws-collapsed .rsvp-ws-link-rail { display: none !important; }
  body.rsvp-ws-collapsed .rsvp-dashboard-sidebar.rsvp-ws-sidebar {
    width: min(320px, calc(100vw - 20px));
    min-width: 0;
  }
  .rsvp-dashboard-sidebar.rsvp-ws-sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100dvh;
    min-width: 0;
    z-index: 200;
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
    box-shadow: 12px 0 36px rgba(0,0,0,0.45);
    padding-top: max(18px, env(safe-area-inset-top));
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: min(320px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
  }
  .rsvp-dashboard-sidebar.rsvp-ws-sidebar::-webkit-scrollbar { width: 0; height: 0; }
  .rsvp-dashboard-sidebar.rsvp-ws-sidebar.open {
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0s, 0s;
  }
  .rsvp-ws-topbar,
  .rsvp-ws-user,
  .rsvp-ws-event { padding-inline: 16px; }
  .rsvp-ws-label { padding-inline: 16px; }
  .rsvp-ws-nav {
    flex: none;
    min-height: auto;
    overflow: visible;
    padding-bottom: 14px;
  }
  .rsvp-ws-sidebar-toggle { display: none; }
  .rsvp-ws-sidebar-close { display: inline-flex; }
  .rsvp-ws-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }
  body.rsvp-ws-drawer-open { overflow: hidden; }
  body.rsvp-ws-drawer-open .rsvp-ws-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  body.rsvp-ws-drawer-open .rsvp-dashboard-main {
    visibility: hidden;
    pointer-events: none;
  }
  .rsvp-dashboard-body .rsvp-ws-link {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 20px;
    min-height: 44px;
    border-radius: 0;
    border-left: none;
    box-shadow: none;
    line-height: 1.4;
  }
  .rsvp-dashboard-body .rsvp-ws-link.active {
    border-left: none;
    box-shadow: none;
  }
  .rsvp-dashboard-body .rsvp-ws-link-rail { display: none !important; }
  .rsvp-dashboard-body .rsvp-ws-link-main {
    flex: none;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    overflow-wrap: anywhere;
    line-height: 1.4;
  }
  .rsvp-dashboard-body .rsvp-ws-user-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .rsvp-ws-lock { font-size: 0.54rem; flex-shrink: 0; }
  .rsvp-locked-screen { padding: 32px 20px; }
  .rsvp-locked-screen-actions .rsvp-btn { width: 100%; }

  .rsvp-dashboard-body .rsvp-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .rsvp-dashboard-body .rsvp-dashboard-section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .rsvp-dashboard-body .rsvp-dashboard-section-header .rsvp-dashboard-title {
    display: none;
  }
  .rsvp-dashboard-body .rsvp-card { padding: 16px; }

  .rsvp-footer-inner--dashboard {
    align-items: flex-start;
    flex-direction: column;
  }
  .rsvp-footer-nav--dashboard { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .rsvp-mobile-menu-btn span,
  .rsvp-mobile-overlay,
  .rsvp-mobile-nav,
  .rsvp-admin-sidebar,
  .rsvp-admin-sidebar-overlay,
  .rsvp-dashboard-sidebar.rsvp-ws-sidebar,
  .rsvp-ws-overlay {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* Small-phone tier consolidated: one block instead of 430/390 steps. */
@media (max-width: 430px) {
  .rsvp-dashboard-topbar { margin-inline: -10px; padding-inline: 10px; }
  .rsvp-dashboard-main { padding-inline: 10px; }
  .rsvp-dashboard-page-title { font-size: 1rem; }
  .rsvp-dashboard-sidebar.rsvp-ws-sidebar { width: min(286px, calc(100vw - 16px)); max-width: calc(100vw - 16px); }
}

/* Cover crop controls shared by client and admin event forms. */
.rsvp-cover-preview-frame {
  --rsvp-cover-position: center center;
  width: min(100%, 30rem);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0 0 0.75rem;
  background: var(--bg-4, #12161c);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.14));
  border-radius: var(--radius-sm, 8px);
}

.rsvp-cover-preview-frame--compact {
  width: min(100%, 13.75rem);
}

.rsvp-cover-preview-frame[hidden],
.rsvp-cover-preview-image[hidden] {
  display: none;
}

.rsvp-cover-preview-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: var(--rsvp-cover-position, center center);
}

/* Event design editor: compact controls and an accessible live preview. */
.rsvp-theme-editor-actions {
  gap: 10px;
  align-items: stretch;
}
.rsvp-theme-editor-actions .rsvp-btn {
  min-height: 44px;
}
.rsvp-theme-contrast-warning {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-left: 3px solid #f59e0b;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.08);
  color: #fcd34d;
  font-size: 0.82rem;
  line-height: 1.5;
}
.rsvp-theme-contrast-warning:empty { display: none; }
.rsvp-theme-contrast-warning p { margin: 0; }
.rsvp-theme-preview {
  --rsvp-page-bg: #0b0d10;
  --rsvp-card-bg: #171b21;
  --rsvp-form-bg: #12161c;
  --rsvp-input-bg: #0e1217;
  --rsvp-text: #f2eee8;
  --rsvp-muted-text: #b9b7b2;
  --rsvp-heading: #fffaf3;
  --rsvp-accent: #d9b978;
  --rsvp-button-bg: #d9b978;
  --rsvp-button-text: #111111;
  --rsvp-border: #36404c;
  --rsvp-selector-bg: var(--rsvp-input-bg);
  --rsvp-selector-text: var(--rsvp-text);
  --rsvp-selector-border: var(--rsvp-border);
  --rsvp-selector-focus: var(--rsvp-accent);
  --rsvp-selector-label: var(--rsvp-muted-text);
  --rsvp-radius: 10px;
  --rsvp-font-body: system-ui, sans-serif;
  --rsvp-font-heading: Georgia, serif;
  --rsvp-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 1.125rem;
  overflow: hidden;
  background: var(--rsvp-page-bg);
  border: 1px solid var(--rsvp-border);
  border-radius: min(var(--rsvp-radius), 28px);
  box-shadow: var(--rsvp-shadow);
  color: var(--rsvp-text);
  font-family: var(--rsvp-font-body);
}

.rsvp-theme-preview *,
.rsvp-theme-preview *::before,
.rsvp-theme-preview *::after {
  box-sizing: border-box;
}

.rsvp-theme-preview-toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem 1.125rem;
  background: var(--rsvp-card-bg);
  border-bottom: 1px solid var(--rsvp-border);
}

.rsvp-theme-preview .rsvp-language-selector {
  color: var(--rsvp-selector-label);
  font-family: var(--rsvp-font-body);
}

.rsvp-theme-preview .rsvp-language-selector select {
  min-height: 2.5rem;
  background: var(--rsvp-selector-bg);
  border-color: var(--rsvp-selector-border);
  border-radius: var(--rsvp-radius);
  color: var(--rsvp-selector-text);
}

.rsvp-theme-preview .rsvp-language-selector select:focus {
  outline: 2px solid var(--rsvp-selector-focus);
  outline-offset: 2px;
}

.rsvp-theme-preview-hero {
  display: grid;
  gap: 0.5rem;
  padding: 1.875rem 1.5rem;
  background: var(--rsvp-card-bg);
  color: var(--rsvp-heading);
  text-align: var(--rsvp-text-align, center);
}

.rsvp-theme-preview-kicker,
.rsvp-theme-preview-label {
  color: var(--rsvp-accent);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rsvp-theme-preview-title {
  overflow-wrap: anywhere;
  color: var(--rsvp-heading);
  font-family: var(--rsvp-font-heading);
  font-size: clamp(1.35rem, 5vw, 2rem);
  line-height: 1.1;
}

.rsvp-theme-preview-welcome {
  max-width: 34rem;
  margin: 0 auto;
  color: var(--rsvp-text);
  font-family: var(--rsvp-font-heading);
  font-size: 0.9375rem;
  font-style: italic;
  line-height: 1.5;
}

.rsvp-theme-preview-body {
  display: grid;
  gap: 1rem;
  padding: 1.125rem;
  background: var(--rsvp-page-bg);
}

.rsvp-theme-preview-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(13.75rem, 100%), 1fr));
  gap: 1rem;
  align-items: start;
}

.rsvp-theme-preview-card {
  display: grid;
  min-width: 0;
  gap: 0.5rem;
  padding: 0.875rem;
  background: var(--rsvp-card-bg);
  border: 1px solid var(--rsvp-border);
  border-radius: min(var(--rsvp-radius), 28px);
  box-shadow: var(--rsvp-shadow);
}

.rsvp-theme-preview-form {
  background: var(--rsvp-form-bg);
}

.rsvp-theme-preview-text {
  color: var(--rsvp-muted-text);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.rsvp-theme-preview-map {
  display: grid;
  min-height: 4.5rem;
  place-items: center;
  background: var(--rsvp-input-bg);
  border: 1px solid var(--rsvp-border);
  border-radius: min(var(--rsvp-radius), 28px);
  color: var(--rsvp-muted-text);
  font-size: 0.75rem;
}

.rsvp-theme-preview .rsvp-form-label {
  color: var(--rsvp-muted-text);
}

.rsvp-theme-preview .rsvp-form-input {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  background: var(--rsvp-input-bg);
  border: 1px solid var(--rsvp-border);
  border-radius: var(--rsvp-radius);
  color: var(--rsvp-text);
  font-family: var(--rsvp-font-body);
}

.rsvp-theme-preview .rsvp-btn {
  width: 100%;
  min-height: 2.75rem;
  justify-content: center;
  margin: 0;
  border-radius: var(--rsvp-radius);
  font-family: var(--rsvp-font-body);
}

.rsvp-theme-preview :is(.rsvp-btn--primary, .rsvp-btn--outline) {
  background: var(--rsvp-button-bg);
  border: 1px solid var(--rsvp-button-bg);
  color: var(--rsvp-button-text);
}

.rsvp-theme-preview.rsvp-button-style-outline :is(.rsvp-btn--primary, .rsvp-btn--outline) {
  background: transparent;
  border-color: var(--rsvp-button-bg);
  color: var(--rsvp-button-bg);
}

.rsvp-theme-preview.rsvp-button-style-soft_fill :is(.rsvp-btn--primary, .rsvp-btn--outline) {
  background: color-mix(in srgb, var(--rsvp-button-bg) 16%, var(--rsvp-form-bg));
  border-color: color-mix(in srgb, var(--rsvp-button-bg) 42%, var(--rsvp-border));
  color: var(--rsvp-button-bg);
}

.rsvp-theme-preview :is(.rsvp-btn--primary, .rsvp-btn--outline):hover {
  color: var(--rsvp-button-text);
}

.rsvp-theme-preview.rsvp-button-style-outline :is(.rsvp-btn--primary, .rsvp-btn--outline):hover,
.rsvp-theme-preview.rsvp-button-style-soft_fill :is(.rsvp-btn--primary, .rsvp-btn--outline):hover {
  color: var(--rsvp-button-bg);
}

.rsvp-theme-preview-actions {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
}

@media (max-width: 600px) {
  .rsvp-theme-preview-toolbar,
  .rsvp-theme-preview .rsvp-language-selector {
    justify-content: center;
  }

  .rsvp-theme-preview .rsvp-language-selector {
    width: 100%;
  }

  .rsvp-theme-preview .rsvp-language-selector select {
    min-width: 0;
    flex: 1;
  }

  .rsvp-theme-preview-actions {
    flex-direction: column;
  }
}

/* Optional Event FAQ: plain-text, theme-aware native disclosures and editors. */
.rsvp-faq-list,
.rsvp-faq-editor-list {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.rsvp-faq-item,
.rsvp-faq-editor-card {
  min-width: 0;
  overflow-wrap: anywhere;
  border: 1px solid var(--rsvp-border, rgba(255, 255, 255, 0.14));
  border-radius: var(--rsvp-radius, 12px);
  background: var(--rsvp-form-bg, rgba(0, 0, 0, 0.12));
}

.rsvp-faq-question {
  min-height: 2.75rem;
  padding: 0.875rem 2.5rem 0.875rem 1rem;
  color: var(--rsvp-heading, inherit);
  cursor: pointer;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rsvp-faq-item[open] .rsvp-faq-question {
  border-bottom: 1px solid var(--rsvp-border, rgba(255, 255, 255, 0.14));
}

.rsvp-faq-answer {
  padding: 1rem;
  color: var(--rsvp-text, inherit);
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rsvp-faq-editor-card {
  padding: 1rem;
}

.rsvp-faq-section-toggle,
.rsvp-faq-add-form {
  margin-top: 1rem;
}

.rsvp-faq-editor-list {
  margin: 1rem 0;
}

.rsvp-faq-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.rsvp-faq-row-actions form {
  margin: 0;
}

.rsvp-faq-editor input:focus-visible,
.rsvp-faq-editor textarea:focus-visible,
.rsvp-faq-editor button:focus-visible,
.rsvp-faq-question:focus-visible {
  outline: 3px solid var(--rsvp-focus, var(--rsvp-accent, #d9b978));
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .rsvp-faq-editor-card {
    padding: 0.875rem;
  }

  .rsvp-faq-row-actions,
  .rsvp-faq-row-actions form,
  .rsvp-faq-row-actions .rsvp-btn {
    width: 100%;
  }
}


.rsvp-language-selector {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2, #b9aaa0);
  font-size: 0.78rem;
}
.rsvp-language-selector label { margin: 0; }
.rsvp-language-selector select {
  min-height: 36px;
  max-width: 170px;
  padding: 7px 28px 7px 10px;
  border: 1px solid var(--border, rgba(255,255,255,0.16));
  border-radius: 999px;
  background: var(--bg-2, #181818);
  color: var(--text-0, #f6f2ee);
  font: inherit;
}
.rsvp-language-selector button { margin-left: 4px; }
.rsvp-site-language {
  display: flex;
  justify-content: flex-end;
  max-width: 1180px;
  margin: 12px auto 0;
  padding: 0 var(--gutter, 24px);
}
.rsvp-auth-card > .rsvp-language-selector { margin-bottom: 18px; }

@media (max-width: 600px) {
  .rsvp-theme-editor-actions,
  .rsvp-theme-editor-actions .rsvp-btn { width: 100%; }
}

.rsvp-theme-settings-group { margin: 0 0 18px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: rgba(255,255,255,.02); }
.rsvp-theme-settings-group legend { padding: 0 8px; color: var(--gold); font-family: var(--font-heading); font-weight: 600; }
.rsvp-theme-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.rsvp-theme-presets .rsvp-btn { min-height: 38px; }
/* ==========================================================================
   Public RSVP event page - centralized theme contract
   Every public component consumes only the allowlisted --rsvp-* variables.
   ========================================================================== */
.rsvp-theme-page {
  --rsvp-page-bg: #0b0d10;
  --rsvp-card-bg: #171b21;
  --rsvp-form-bg: #12161c;
  --rsvp-input-bg: #0e1217;
  --rsvp-text: #f2eee8;
  --rsvp-muted-text: #b9b7b2;
  --rsvp-heading: #fffaf3;
  --rsvp-accent: #d9b978;
  --rsvp-button-bg: #d9b978;
  --rsvp-button-text: #111111;
  --rsvp-border: #36404c;
  --rsvp-radius: 10px;
  --rsvp-font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --rsvp-font-heading: Georgia, "Times New Roman", serif;
  --rsvp-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
  --rsvp-max-width: 1040px;
  --rsvp-text-align: center;
  --rsvp-overlay: rgba(9, 11, 14, 0.72);
  --rsvp-selector-bg: var(--rsvp-input-bg);
  --rsvp-selector-text: var(--rsvp-text);
  --rsvp-selector-border: var(--rsvp-border);
  --rsvp-selector-focus: var(--rsvp-accent);
  --rsvp-selector-label: var(--rsvp-muted-text);
  --rsvp-card-padding: clamp(1.125rem, 2.8vw, 1.875rem);
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--rsvp-page-bg);
  color: var(--rsvp-text);
  font-family: var(--rsvp-font-body);
}

.rsvp-theme-page *,
.rsvp-theme-page *::before,
.rsvp-theme-page *::after {
  box-sizing: border-box;
}

.rsvp-theme-page a {
  overflow-wrap: anywhere;
}

.rsvp-event-shell {
  width: min(calc(100% - 2rem), var(--rsvp-max-width));
  margin: 1.75rem auto 2.75rem;
  overflow: hidden;
  background: var(--rsvp-card-bg);
  border: 1px solid var(--rsvp-border);
  border-radius: min(var(--rsvp-radius), 28px);
  box-shadow: var(--rsvp-shadow);
}

.rsvp-event-toolbar {
  display: flex;
  min-height: 3.625rem;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding: 0.625rem 1.125rem;
  background: var(--rsvp-card-bg);
  border-bottom: 1px solid var(--rsvp-border);
}

.rsvp-theme-page .rsvp-language-selector {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: flex-end;
  gap: 0.625rem;
  color: var(--rsvp-selector-label);
  font: 0.8125rem/1.4 var(--rsvp-font-body);
}

.rsvp-theme-page .rsvp-language-selector label {
  margin: 0;
  color: var(--rsvp-selector-label);
}

.rsvp-theme-page .rsvp-language-selector select {
  width: auto;
  min-width: 0;
  max-width: 12rem;
  min-height: 2.75rem;
  padding: 0.5rem 2.25rem 0.5rem 0.75rem;
  appearance: none;
  background-color: var(--rsvp-selector-bg);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--rsvp-selector-focus) 50%),
    linear-gradient(135deg, var(--rsvp-selector-focus) 50%, transparent 50%);
  background-position:
    calc(100% - 1.0625rem) 1.125rem,
    calc(100% - 0.6875rem) 1.125rem;
  background-repeat: no-repeat;
  background-size: 0.375rem 0.375rem;
  border: 1px solid var(--rsvp-selector-border);
  border-radius: var(--rsvp-radius);
  color: var(--rsvp-selector-text);
  cursor: pointer;
  font: inherit;
}

.rsvp-theme-page .rsvp-language-selector select:focus-visible {
  outline: 2px solid var(--rsvp-selector-focus);
  outline-offset: 2px;
}

.rsvp-theme-page .rsvp-language-selector button {
  min-height: 2.75rem;
  border: 1px solid var(--rsvp-selector-border);
  border-radius: var(--rsvp-radius);
  background: var(--rsvp-selector-bg);
  color: var(--rsvp-selector-text);
  font-family: var(--rsvp-font-body);
}

.rsvp-event-hero {
  position: relative;
  display: flex;
  min-height: clamp(18.75rem, 42vh, 30rem);
  align-items: flex-end;
  overflow: hidden;
  background: var(--rsvp-card-bg);
}

.rsvp-event-hero--no-image {
  min-height: clamp(16rem, 34vh, 21rem);
  align-items: center;
}

.rsvp-event-hero--no-image .rsvp-event-hero-overlay {
  display: none;
}

.rsvp-event-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--rsvp-cover-position, center center);
}

.rsvp-event-hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--rsvp-overlay);
}

.rsvp-event-hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 52rem);
  margin: 0 auto;
  padding: clamp(2.625rem, 7vw, 4.75rem) clamp(1.5rem, 6vw, 4.5rem);
  text-align: var(--rsvp-text-align);
}

.rsvp-event-type-label,
.rsvp-invite-eyebrow {
  margin: 0 0 0.875rem;
  color: var(--rsvp-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.rsvp-invite-eyebrow {
  margin-bottom: 0.25rem;
  color: var(--rsvp-muted-text);
}

.rsvp-event-title {
  margin: 0 0 0.875rem;
  color: var(--rsvp-heading);
  font-family: var(--rsvp-font-heading);
  font-size: clamp(2.125rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.rsvp-invite-guest-name {
  margin: 0 0 0.875rem;
  color: var(--rsvp-accent);
  font-family: var(--rsvp-font-heading);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-style: italic;
}

.rsvp-event-hosts {
  margin: 0 0 0.75rem;
  color: var(--rsvp-text);
  font-family: var(--rsvp-font-heading);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.45;
}

.rsvp-event-date-display {
  margin: 0 0 0.5rem;
  color: var(--rsvp-accent);
  font-size: 1rem;
  font-weight: 600;
}

.rsvp-event-venue {
  margin: 0;
  color: var(--rsvp-muted-text);
  font-size: 0.9375rem;
}

.rsvp-event-wrap {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1.125rem, 5vw, 3.5rem) clamp(2.25rem, 5vw, 3.5rem);
}

.rsvp-event-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.rsvp-event-side {
  display: grid;
  min-width: 0;
  gap: 1.25rem;
}

.rsvp-event-side > section,
.rsvp-event-columns .rsvp-form-section {
  min-width: 0;
  margin: 0;
}

.rsvp-event-columns--single .rsvp-form-section {
  width: min(100%, 45rem);
  margin-inline: auto;
}

.rsvp-theme-page :is(
  .rsvp-event-details,
  .rsvp-event-gallery,
  .rsvp-form-section,
  .rsvp-invite-card,
  .rsvp-event-welcome,
  .rsvp-private-rsvp-card
) {
  margin: 0;
  padding: var(--rsvp-card-padding);
  border: 1px solid var(--rsvp-border);
  border-radius: min(var(--rsvp-radius), 28px);
  box-shadow: var(--rsvp-shadow);
}

.rsvp-theme-page :is(
  .rsvp-event-details,
  .rsvp-event-gallery,
  .rsvp-invite-card,
  .rsvp-event-welcome
) {
  background: var(--rsvp-card-bg);
}

.rsvp-theme-page :is(.rsvp-form-section, .rsvp-private-rsvp-card) {
  background: var(--rsvp-form-bg);
}

.rsvp-event-welcome,
.rsvp-invite-card,
.rsvp-private-rsvp-card {
  width: min(100%, 45rem);
  margin: 0 auto 1.25rem !important;
}

.rsvp-event-welcome {
  text-align: var(--rsvp-text-align);
}

.rsvp-event-welcome p {
  margin: 0;
  color: var(--rsvp-text);
  font-family: var(--rsvp-font-heading);
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.65;
}

.rsvp-event-details,
.rsvp-event-gallery,
.rsvp-private-rsvp-card {
  text-align: var(--rsvp-text-align);
}

.rsvp-event-section-title,
.rsvp-theme-page .rsvp-section-title,
.rsvp-success-title {
  margin: 0 0 1.25rem;
  color: var(--rsvp-heading);
  font-family: var(--rsvp-font-heading);
  font-size: clamp(1.35rem, 3vw, 1.625rem);
  font-weight: 600;
  line-height: 1.2;
}

.rsvp-event-description,
.rsvp-event-custom-msg,
.rsvp-private-access-message {
  margin: 0;
  color: var(--rsvp-text);
  font-size: 1rem;
  line-height: 1.75;
}

.rsvp-event-description + .rsvp-event-description,
.rsvp-event-description + .rsvp-event-custom-msg {
  margin-top: 0.875rem;
}

.rsvp-guest-summary {
  margin-bottom: 1.25rem !important;
  text-align: left;
  overflow-wrap: anywhere;
}

.rsvp-summary-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.rsvp-summary-header .rsvp-event-section-title,
.rsvp-summary-card :is(h3, h4, p),
.rsvp-summary-contact :is(h4, p) {
  margin-top: 0;
}

.rsvp-summary-eyebrow,
.rsvp-summary-guest-name {
  margin: 0 0 0.35rem;
}

.rsvp-summary-eyebrow {
  color: var(--rsvp-muted-text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rsvp-summary-guest-name {
  color: var(--rsvp-text);
  font-size: 1.05rem;
}

.rsvp-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
  min-width: 0;
}

.rsvp-summary-card {
  min-width: 0;
}

.rsvp-summary-card h3 {
  color: var(--rsvp-heading);
  font-family: var(--rsvp-font-heading);
  font-size: 1.05rem;
}

.rsvp-summary-card address {
  color: var(--rsvp-text);
  font-style: normal;
  line-height: 1.6;
}

.rsvp-summary-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.rsvp-summary-facts div {
  min-width: 0;
}

.rsvp-summary-facts :is(dt, dd) {
  margin: 0;
}

.rsvp-summary-facts dt,
.rsvp-summary-list small {
  color: var(--rsvp-muted-text);
  font-size: 0.75rem;
}

.rsvp-summary-facts dd {
  color: var(--rsvp-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.rsvp-summary-list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rsvp-summary-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
  padding-top: 0.6rem;
  border-top: 1px solid var(--rsvp-border);
}

.rsvp-summary-list li > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.rsvp-summary-list small {
  display: block;
  margin-top: 0.15rem;
}

.rsvp-summary-availability,
.rsvp-summary-status-text {
  color: var(--rsvp-text);
}

.rsvp-summary-update + .rsvp-summary-update,
.rsvp-summary-contact + .rsvp-summary-contact {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rsvp-border);
}

.rsvp-summary-update h4,
.rsvp-summary-contact h4 {
  margin-bottom: 0.35rem;
  color: var(--rsvp-heading);
}

.rsvp-summary-update .rsvp-badge {
  margin-bottom: 0.5rem;
}

.rsvp-summary-actions {
  margin-top: 1.25rem;
}

.rsvp-event-wallet {
  min-width: 0;
  margin-bottom: 1.25rem;
  overflow-wrap: anywhere;
}

.rsvp-wallet-header,
.rsvp-wallet-header > div,
.rsvp-wallet-facts > div,
.rsvp-before-you-go,
.rsvp-checklist-list li > * {
  min-width: 0;
}

.rsvp-wallet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.rsvp-wallet-header h3,
.rsvp-wallet-name,
.rsvp-before-you-go h4 {
  margin-top: 0;
}

.rsvp-wallet-header h3,
.rsvp-before-you-go h4 {
  color: var(--rsvp-heading);
  font-family: var(--rsvp-font-heading);
}

.rsvp-wallet-name {
  margin-bottom: 0;
  color: var(--rsvp-text);
  font-size: 1.05rem;
}

.rsvp-wallet-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 0.75rem 1rem;
  margin: 0;
}

.rsvp-wallet-facts :is(dt, dd) {
  margin: 0;
  overflow-wrap: anywhere;
}

.rsvp-wallet-facts dt {
  color: var(--rsvp-muted-text);
  font-size: 0.75rem;
}

.rsvp-wallet-facts dd {
  margin-top: 0.2rem;
  color: var(--rsvp-heading);
  font-weight: 700;
}

.rsvp-wallet-actions {
  margin-top: 1rem;
}

.rsvp-wallet-actions .rsvp-btn {
  min-width: 0;
  white-space: normal;
}

.rsvp-before-you-go {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rsvp-border);
}

.rsvp-before-you-go h4 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.rsvp-checklist-list,
.rsvp-readiness-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rsvp-checklist-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rsvp-border);
  color: var(--rsvp-text);
  overflow-wrap: anywhere;
}

.rsvp-checklist-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.rsvp-readiness-panel {
  min-width: 0;
  overflow-wrap: anywhere;
}

.rsvp-readiness-panel .rsvp-card-header {
  align-items: flex-start;
  gap: 1rem;
}

.rsvp-readiness-panel .rsvp-page-intro {
  margin: 0.35rem 0 0;
}

.rsvp-readiness-issue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--text-3);
  border-radius: var(--radius-sm);
  background: var(--bg-3);
}

.rsvp-readiness-issue--warning {
  border-left-color: #fbbf24;
}

.rsvp-readiness-issue--blocking {
  border-left-color: #f87171;
}

.rsvp-readiness-issue--information {
  border-left-color: #60a5fa;
}

.rsvp-readiness-issue__body {
  min-width: 0;
}

.rsvp-readiness-issue__heading {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.rsvp-readiness-issue h3,
.rsvp-readiness-issue p {
  margin-top: 0;
}

.rsvp-readiness-issue h3 {
  margin-bottom: 0.35rem;
  color: var(--text-0);
  font-size: 1rem;
}

.rsvp-readiness-issue p {
  margin-bottom: 0;
  color: var(--text-2);
}

.rsvp-readiness-count {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-1);
  font-size: 0.82rem;
  font-weight: 700;
}

.rsvp-readiness-issue .rsvp-btn {
  flex: 0 0 auto;
  white-space: normal;
}

.rsvp-readiness-panel .rsvp-btn:focus-visible {
  outline: 3px solid rgba(201, 169, 110, 0.45);
  outline-offset: 3px;
}

.rsvp-event-location-label {
  margin: 0.875rem 0 0.25rem;
  color: var(--rsvp-muted-text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rsvp-event-location-label:first-of-type {
  margin-top: 0;
}

.rsvp-event-location-name {
  margin: 0;
  color: var(--rsvp-heading);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

.rsvp-event-location-address {
  margin: 0;
  color: var(--rsvp-text);
  font-size: 0.9375rem;
  font-style: normal;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.rsvp-calendar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
}

.rsvp-calendar-actions > :is(a, form) {
  flex: 1 1 12rem;
  min-width: 0;
  margin: 0;
}

.rsvp-calendar-actions .rsvp-btn {
  width: 100%;
  min-height: 2.75rem;
  padding-inline: 1rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.rsvp-calendar-external-note {
  margin: 0.875rem 0 0;
  color: var(--rsvp-muted-text);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.rsvp-theme-page .rsvp-calendar-actions .rsvp-btn:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--rsvp-accent) 28%, transparent);
  outline-offset: 3px;
}

.rsvp-map-frame {
  position: relative;
  width: 100%;
  min-width: 0;
  margin-top: 1.125rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--rsvp-input-bg);
  border: 1px solid var(--rsvp-border);
  border-radius: min(var(--rsvp-radius), 28px);
  box-shadow: var(--rsvp-shadow);
}

.rsvp-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.rsvp-map-click-target {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  border-radius: inherit;
  cursor: pointer;
}

.rsvp-theme-page .rsvp-map-frame .rsvp-map-click-target:focus-visible {
  outline: 3px solid var(--rsvp-accent);
  outline-offset: -4px;
}

.rsvp-theme-page .rsvp-form-section {
  text-align: left;
}

.rsvp-theme-page .rsvp-form-section > .rsvp-event-section-title,
.rsvp-theme-page .rsvp-form-deadline {
  text-align: var(--rsvp-text-align);
}

.rsvp-theme-page .rsvp-form-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rsvp-theme-page .rsvp-form-group,
.rsvp-theme-page .rsvp-form-row > * {
  min-width: 0;
}

.rsvp-theme-page .rsvp-form-label {
  color: var(--rsvp-muted-text);
  font-family: var(--rsvp-font-body);
  font-size: 0.8125rem;
}

.rsvp-form-optional {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.rsvp-theme-page .rsvp-form-input,
.rsvp-theme-page select.rsvp-form-input,
.rsvp-theme-page textarea.rsvp-form-input {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  background-color: var(--rsvp-input-bg);
  border: 1px solid var(--rsvp-border);
  border-radius: var(--rsvp-radius);
  color: var(--rsvp-text);
  font: 1rem/1.4 var(--rsvp-font-body);
}

.rsvp-theme-page textarea.rsvp-form-input {
  min-height: 6rem;
  resize: vertical;
}

.rsvp-theme-page select.rsvp-form-input {
  padding-right: 2.5rem;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--rsvp-accent) 50%),
    linear-gradient(135deg, var(--rsvp-accent) 50%, transparent 50%);
  background-position:
    calc(100% - 1.125rem) 1.25rem,
    calc(100% - 0.75rem) 1.25rem;
  background-repeat: no-repeat;
  background-size: 0.375rem 0.375rem;
}

.rsvp-theme-page .rsvp-form-input::placeholder {
  color: var(--rsvp-muted-text);
  opacity: 0.72;
}

.rsvp-theme-page .rsvp-form-input:focus-visible {
  border-color: var(--rsvp-accent);
  outline: 3px solid color-mix(in srgb, var(--rsvp-accent) 24%, transparent);
  outline-offset: 1px;
}

.rsvp-theme-page .rsvp-form-input:disabled,
.rsvp-theme-page .rsvp-form-input[readonly] {
  color: var(--rsvp-muted-text);
  opacity: 0.82;
}

.rsvp-radio-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.625rem;
  margin-top: 0.375rem;
}

.rsvp-radio-pill {
  position: relative;
  display: flex;
  min-width: 0;
  cursor: pointer;
}

.rsvp-radio-pill input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.rsvp-radio-pill-label {
  display: inline-flex;
  width: 100%;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 0.875rem;
  background: var(--rsvp-input-bg);
  border: 1px solid var(--rsvp-border);
  border-radius: var(--rsvp-radius);
  color: var(--rsvp-muted-text);
  font-family: var(--rsvp-font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.rsvp-radio-pill input[type="radio"]:checked + .rsvp-radio-pill-label {
  background: var(--rsvp-button-bg);
  border-color: var(--rsvp-button-bg);
  color: var(--rsvp-button-text);
}

.rsvp-radio-pill input[type="radio"]:focus-visible + .rsvp-radio-pill-label {
  outline: 3px solid color-mix(in srgb, var(--rsvp-accent) 24%, transparent);
  outline-offset: 2px;
}

.rsvp-radio-pill-label:hover {
  border-color: var(--rsvp-accent);
  color: var(--rsvp-heading);
}

.rsvp-theme-page .rsvp-check-label {
  color: var(--rsvp-text);
  font-family: var(--rsvp-font-body);
  font-size: 0.9rem;
  line-height: 1.55;
}

.rsvp-theme-page .rsvp-check-label input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--rsvp-accent);
}

.rsvp-privacy-notice {
  margin-bottom: 0.875rem;
  padding: 0.75rem 0.875rem;
  background: color-mix(in srgb, var(--rsvp-accent) 8%, var(--rsvp-form-bg));
  border: 1px solid var(--rsvp-border);
  border-left: 3px solid var(--rsvp-accent);
  border-radius: var(--rsvp-radius);
  color: var(--rsvp-muted-text);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.rsvp-privacy-notice p {
  margin: 0;
}

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

.rsvp-success-link-row {
  margin-top: 0.875rem;
}

.rsvp-theme-page .rsvp-btn {
  min-height: 2.75rem;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: var(--rsvp-radius);
  font-family: var(--rsvp-font-body);
  line-height: 1.2;
  text-align: center;
}

.rsvp-theme-page :is(.rsvp-btn--primary, .rsvp-btn--outline) {
  background: var(--rsvp-button-bg);
  border: 1px solid var(--rsvp-button-bg);
  color: var(--rsvp-button-text);
  box-shadow: none;
}

.rsvp-theme-page .rsvp-btn--ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--rsvp-accent);
}

.rsvp-theme-page.rsvp-button-style-outline :is(.rsvp-btn--primary, .rsvp-btn--outline) {
  background: transparent;
  border-color: var(--rsvp-button-bg);
  color: var(--rsvp-button-bg);
}

.rsvp-theme-page.rsvp-button-style-soft_fill :is(.rsvp-btn--primary, .rsvp-btn--outline) {
  background: color-mix(in srgb, var(--rsvp-button-bg) 16%, var(--rsvp-form-bg));
  border-color: color-mix(in srgb, var(--rsvp-button-bg) 42%, var(--rsvp-border));
  color: var(--rsvp-button-bg);
}

.rsvp-theme-page :is(.rsvp-btn--primary, .rsvp-btn--outline, .rsvp-btn--ghost):hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: var(--rsvp-shadow);
}

.rsvp-theme-page :is(.rsvp-btn--primary, .rsvp-btn--outline):hover {
  color: var(--rsvp-button-text);
}

.rsvp-theme-page.rsvp-button-style-outline :is(.rsvp-btn--primary, .rsvp-btn--outline):hover,
.rsvp-theme-page.rsvp-button-style-soft_fill :is(.rsvp-btn--primary, .rsvp-btn--outline):hover {
  color: var(--rsvp-button-bg);
}

.rsvp-theme-page .rsvp-btn--ghost:hover {
  color: var(--rsvp-accent);
}

.rsvp-theme-page .rsvp-btn:focus-visible,
.rsvp-theme-page a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--rsvp-accent) 28%, transparent);
  outline-offset: 3px;
}

.rsvp-theme-page .rsvp-link {
  color: var(--rsvp-accent);
}

.rsvp-theme-page .rsvp-flash {
  margin-bottom: 1rem;
  padding: 0.875rem 1rem;
  background: color-mix(in srgb, var(--rsvp-accent) 10%, var(--rsvp-form-bg));
  border: 1px solid var(--rsvp-border);
  border-left: 3px solid var(--rsvp-accent);
  border-radius: var(--rsvp-radius);
  color: var(--rsvp-text);
  font-family: var(--rsvp-font-body);
}

.rsvp-success-msg {
  padding: 1rem 0;
  text-align: center;
}

.rsvp-success-icon {
  display: flex;
  width: 3.75rem;
  height: 3.75rem;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.125rem;
  background: color-mix(in srgb, var(--rsvp-accent) 12%, transparent);
  border: 2px solid var(--rsvp-accent);
  border-radius: 50%;
  color: var(--rsvp-accent);
  font-size: 1.8rem;
}

.rsvp-success-sub {
  margin: 0 0 0.5rem;
  color: var(--rsvp-text);
  font-size: 1rem;
}

.rsvp-success-note,
.rsvp-form-deadline {
  color: var(--rsvp-muted-text);
  font-size: 0.875rem;
  line-height: 1.55;
}

.rsvp-form-deadline {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  margin: -0.25rem 0 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--rsvp-border);
  border-left: 4px solid var(--rsvp-accent);
  border-radius: var(--rsvp-radius);
  background: color-mix(in srgb, var(--rsvp-accent) 10%, var(--rsvp-card-bg));
  color: var(--rsvp-text);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

.rsvp-form-deadline strong {
  color: var(--rsvp-accent);
}

.rsvp-form-deadline--closed {
  border-left-color: var(--rsvp-muted-text);
}

.rsvp-form-deadline--closed strong {
  color: var(--rsvp-heading);
}

.rsvp-form-deadline--closed span {
  flex-basis: 100%;
  color: var(--rsvp-muted-text);
  font-size: 0.9rem;
  font-weight: 400;
}

.rsvp-party-size-note {
  margin-top: -0.4rem;
  color: var(--rsvp-text);
}

.rsvp-sms-help {
  margin: 0 0 1rem;
  color: var(--text-3, var(--rsvp-muted-text));
  font-size: 0.82rem;
}

.rsvp-admin-guest-edit {
  display: inline-block;
  position: relative;
  vertical-align: middle;
}

.rsvp-admin-guest-add {
  margin-bottom: 1rem;
}

.rsvp-admin-guest-edit > summary {
  cursor: pointer;
  list-style: none;
}

.rsvp-admin-guest-edit > summary::-webkit-details-marker {
  display: none;
}

.rsvp-admin-guest-edit[open] > summary {
  margin-bottom: 0.75rem;
}

.rsvp-admin-guest-edit-form {
  min-width: min(34rem, calc(100vw - 3rem));
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-2);
  text-align: left;
}

.rsvp-invite-card {
  position: relative;
  text-align: center;
}

.rsvp-invite-card-rule {
  width: 3.5rem;
  height: 2px;
  margin: 0 auto 1.375rem;
  background: var(--rsvp-accent);
}

.rsvp-invite-dear {
  margin: 0 0 0.875rem;
  color: var(--rsvp-heading);
  font-family: var(--rsvp-font-heading);
  font-size: 1.35rem;
}

.rsvp-invite-message,
.rsvp-invite-responded p {
  margin: 0 auto 1.125rem;
  color: var(--rsvp-text);
  font-family: var(--rsvp-font-heading);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.7;
}

.rsvp-invite-personal-note {
  max-width: 32.5rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  background: color-mix(in srgb, var(--rsvp-accent) 8%, var(--rsvp-card-bg));
  border: 1px solid var(--rsvp-border);
  border-left: 3px solid var(--rsvp-accent);
  border-radius: var(--rsvp-radius);
  color: var(--rsvp-text);
  font-style: italic;
  line-height: 1.65;
  text-align: left;
}

.rsvp-invite-deadline,
.rsvp-invite-closed {
  color: var(--rsvp-muted-text);
  font-size: 0.875rem;
}

.rsvp-invite-form {
  display: none;
  width: 100%;
  max-width: 45rem;
}

.rsvp-invite-form.is-open {
  display: block;
}

.rsvp-invite-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(17.5rem, 100%), 1fr));
  gap: 1.25rem;
}

.rsvp-timeline-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rsvp-timeline-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rsvp-border);
}

.rsvp-timeline-item:last-child {
  border-bottom: 0;
}

.rsvp-timeline-time {
  min-width: 5.25rem;
  flex-shrink: 0;
  color: var(--rsvp-accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rsvp-timeline-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.125rem;
}

.rsvp-timeline-title {
  color: var(--rsvp-heading);
  font-weight: 600;
}

.rsvp-timeline-desc {
  color: var(--rsvp-muted-text);
  font-size: 0.875rem;
  line-height: 1.5;
}

.rsvp-event-update {
  padding: 0.875rem 0;
  border-top: 1px solid var(--rsvp-border);
}

.rsvp-event-update:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.rsvp-event-update h3 {
  margin: 0 0 0.375rem;
  color: var(--rsvp-heading);
  font-family: var(--rsvp-font-heading);
  font-size: 1rem;
}

.rsvp-event-update p {
  margin: 0;
  color: var(--rsvp-text);
  line-height: 1.6;
}

.rsvp-powered-by,
.rsvp-powered-by--premium,
.rsvp-powered-by--reduced {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rsvp-border);
}

.rsvp-powered-by-inner,
.rsvp-powered-by--premium,
.rsvp-powered-by--reduced {
  background: var(--rsvp-form-bg);
  border: 1px solid var(--rsvp-border);
  border-radius: min(var(--rsvp-radius), 28px);
  box-shadow: var(--rsvp-shadow);
}

.rsvp-powered-by-inner {
  display: flex;
  width: min(100%, 45rem);
  align-items: center;
  gap: 1.5rem;
  margin: 0 auto;
  padding: var(--rsvp-card-padding);
}

.rsvp-powered-by-logo,
.rsvp-powered-by-premium-logo {
  flex-shrink: 0;
}

.rsvp-powered-by-logo img {
  width: 7.5rem;
  max-width: 100%;
  height: auto;
}

.rsvp-powered-by-content {
  min-width: 0;
}

.rsvp-powered-by-text {
  margin: 0 0 0.375rem;
  color: var(--rsvp-text);
  font-weight: 600;
}

.rsvp-powered-by-cta,
.rsvp-powered-by-credit {
  color: var(--rsvp-muted-text);
  font-size: 0.875rem;
  line-height: 1.55;
}

.rsvp-powered-by-cta {
  max-width: 29rem;
  margin: 0 0 0.875rem;
}

.rsvp-powered-by--premium,
.rsvp-powered-by--reduced {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1rem;
  text-align: center;
}

.rsvp-powered-by--premium .rsvp-powered-by-premium-logo img {
  width: 4.5rem;
  max-width: 100%;
  height: auto;
  opacity: 0.86;
}

.rsvp-powered-by--reduced {
  justify-content: flex-end;
}

.rsvp-powered-by--premium a,
.rsvp-powered-by--reduced a {
  color: var(--rsvp-accent);
}

.rsvp-access-page {
  display: flex;
  min-height: 100svh;
  align-items: center;
  padding: clamp(0.5rem, 3vw, 2rem);
}

.rsvp-access-page .rsvp-event-shell {
  width: min(100%, 44rem);
  margin: auto;
}

.rsvp-access-page .rsvp-event-wrap {
  padding: clamp(1rem, 4vw, 2rem);
}

.rsvp-access-card {
  width: 100%;
  margin: 0 !important;
  text-align: center !important;
}

.rsvp-access-card .rsvp-event-section-title {
  text-align: center;
}

.rsvp-access-card .rsvp-private-access-message {
  margin-bottom: 1.25rem;
}

@media (min-width: 920px) {
  .rsvp-event-columns:not(.rsvp-event-columns--single) {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .rsvp-theme-page {
    --rsvp-card-padding: 1.125rem;
  }

  .rsvp-event-shell {
    width: min(calc(100% - 1rem), var(--rsvp-max-width));
    margin-block: 0.5rem 1.5rem;
  }

  .rsvp-event-toolbar {
    justify-content: center;
    padding-inline: 0.875rem;
  }

  .rsvp-theme-page .rsvp-language-selector {
    justify-content: center;
  }

  .rsvp-theme-page .rsvp-language-selector select {
    max-width: none;
    flex: 1 1 auto;
  }

  .rsvp-event-hero {
    min-height: clamp(17rem, 42vh, 24rem);
  }

  .rsvp-event-hero--no-image {
    min-height: clamp(14rem, 30vh, 18rem);
  }

  .rsvp-event-hero-content {
    padding-inline: 1.25rem;
  }

  .rsvp-event-wrap {
    padding: 1.125rem 0.875rem 1.5rem;
  }

  .rsvp-theme-page .rsvp-form-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .rsvp-radio-pills {
    grid-template-columns: minmax(0, 1fr);
  }

  .rsvp-form-section .rsvp-btn,
  .rsvp-event-gallery .rsvp-btn,
  .rsvp-powered-by .rsvp-btn {
    width: 100%;
  }

  .rsvp-share-link-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .rsvp-powered-by-inner {
    flex-direction: column;
    gap: 0.875rem;
    text-align: center;
  }

  .rsvp-powered-by-logo img {
    width: 5.625rem;
  }

  .rsvp-powered-by-cta {
    margin-inline: auto;
  }

  .rsvp-powered-by--premium,
  .rsvp-powered-by--reduced {
    flex-direction: column;
    justify-content: center;
  }

  .rsvp-timeline-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .rsvp-timeline-time {
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .rsvp-summary-header,
  .rsvp-summary-list li,
  .rsvp-wallet-header,
  .rsvp-checklist-list li,
  .rsvp-readiness-panel .rsvp-card-header,
  .rsvp-readiness-issue,
  .rsvp-readiness-issue__heading {
    flex-direction: column;
  }

  .rsvp-summary-header .rsvp-status,
  .rsvp-wallet-header .rsvp-status {
    align-self: flex-start;
  }

  .rsvp-summary-actions > :is(a, button),
  .rsvp-wallet-actions > :is(a, button),
  .rsvp-readiness-issue .rsvp-btn {
    width: 100%;
  }
}

@media print {
  @page {
    margin: 0.6in;
  }

  body.rsvp-theme-page {
    background: #fff !important;
    color: #111 !important;
  }

  .rsvp-event-toolbar,
  .rsvp-event-hero,
  .rsvp-event-wrap > :not(.rsvp-guest-summary),
  .rsvp-powered-by,
  .rsvp-powered-by--premium,
  .rsvp-powered-by--reduced,
  .rsvp-summary-control {
    display: none !important;
  }

  .rsvp-event-shell,
  .rsvp-event-wrap,
  .rsvp-guest-summary {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.rsvp-theme-page .rsvp-guest-summary,
  body.rsvp-theme-page .rsvp-summary-card,
  body.rsvp-theme-page .rsvp-event-wallet {
    background: #fff !important;
    border-color: #bbb !important;
    box-shadow: none !important;
    color: #111 !important;
  }

  body.rsvp-theme-page .rsvp-guest-summary :is(h2, h3, h4, p, span, strong, dt, dd, address, small) {
    color: #111 !important;
  }

  .rsvp-summary-grid {
    display: block;
  }

  .rsvp-summary-card {
    margin-bottom: 0.8rem;
    break-inside: avoid;
  }

  .rsvp-summary-update,
  .rsvp-summary-contact,
  .rsvp-summary-list li {
    break-inside: avoid;
  }
}
/* Optional Gift Registry: uses the existing event theme and button contract. */
.rsvp-registry-grid,
.rsvp-registry-editor-list {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.rsvp-registry-card,
.rsvp-registry-editor-card {
  min-width: 0;
  overflow-wrap: anywhere;
  border: 1px solid var(--rsvp-border, rgba(255, 255, 255, 0.14));
  border-radius: var(--rsvp-radius, 12px);
  padding: 1rem;
  background: var(--rsvp-form-bg, rgba(0, 0, 0, 0.12));
}

.rsvp-registry-name,
.rsvp-registry-description {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rsvp-registry-name {
  margin: 0 0 0.5rem;
  color: var(--rsvp-heading, inherit);
}

.rsvp-registry-description {
  margin: 0 0 1rem;
}

.rsvp-registry-link {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.rsvp-registry-section-toggle,
.rsvp-registry-add-form {
  margin-top: 1rem;
}

.rsvp-registry-editor-list {
  margin: 1rem 0;
}

.rsvp-registry-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.rsvp-registry-row-actions form {
  margin: 0;
}

.rsvp-form-error {
  margin: 0.35rem 0 0;
  color: #ffb4b4;
  font-size: 0.875rem;
}

.rsvp-registry-editor input:focus-visible,
.rsvp-registry-editor textarea:focus-visible,
.rsvp-registry-editor button:focus-visible,
.rsvp-event-registry a:focus-visible {
  outline: 3px solid var(--rsvp-focus, var(--rsvp-accent, #d9b978));
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .rsvp-registry-card,
  .rsvp-registry-editor-card {
    padding: 0.875rem;
  }

  .rsvp-registry-row-actions,
  .rsvp-registry-row-actions form,
  .rsvp-registry-row-actions .rsvp-btn,
  .rsvp-registry-link {
    width: 100%;
  }
}

/* Text-only Guided Tutorial and Help Center. Existing card, button, badge,
   typography, and theme primitives remain the visual authority. */
.rsvp-tutorial-help-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 0.35rem;
  color: var(--rsvp-accent, #d9b978);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.rsvp-tutorial-welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  overflow-wrap: anywhere;
}

.rsvp-tutorial-welcome[hidden] {
  display: none;
}

.rsvp-tutorial-welcome-actions,
.rsvp-tutorial-card-actions {
  flex-wrap: wrap;
}

.rsvp-tutorial-category {
  margin-top: 1.75rem;
}

.rsvp-tutorial-category > h2 {
  margin: 0 0 0.85rem;
}

.rsvp-tutorial-library {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
}

.rsvp-tutorial-card {
  min-width: 0;
  overflow-wrap: anywhere;
}

.rsvp-tutorial-card .rsvp-card-header {
  align-items: flex-start;
}

.rsvp-tutorial-noscript-steps {
  margin-top: 1rem;
}

.rsvp-tutorial-noscript-steps summary {
  min-height: 44px;
  cursor: pointer;
  font-weight: 700;
}

.rsvp-tutorial-noscript-steps li {
  margin-bottom: 1rem;
}

.rsvp-tutorial-readiness {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 1rem;
}

.rsvp-tutorial-dialog {
  width: min(94vw, 680px);
  max-width: 680px;
  max-height: min(90vh, 820px);
  padding: 0;
  border: 1px solid var(--rsvp-border, rgba(255, 255, 255, 0.18));
  border-radius: var(--rsvp-radius, 16px);
  background: var(--rsvp-card-bg, #15191f);
  color: var(--rsvp-text, #f2eee8);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  overflow: hidden;
}

.rsvp-tutorial-dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
}

.rsvp-tutorial-dialog-shell {
  display: flex;
  max-height: min(90vh, 820px);
  flex-direction: column;
}

.rsvp-tutorial-dialog-header,
.rsvp-tutorial-dialog-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.rsvp-tutorial-dialog-header {
  border-bottom: 1px solid var(--rsvp-border, rgba(255, 255, 255, 0.14));
}

.rsvp-tutorial-dialog-header h2 {
  margin: 0.2rem 0 0;
}

.rsvp-tutorial-close {
  flex: 0 0 auto;
  min-height: 44px;
}

.rsvp-tutorial-progress {
  display: grid;
  grid-template-columns: auto minmax(100px, 1fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: var(--rsvp-form-bg, rgba(0, 0, 0, 0.14));
  font-weight: 700;
}

.rsvp-tutorial-progress progress {
  width: 100%;
  accent-color: var(--rsvp-accent, #d9b978);
}

.rsvp-tutorial-dialog-content {
  min-height: 220px;
  padding: 1.25rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  overflow-wrap: anywhere;
}

.rsvp-tutorial-step h3,
.rsvp-tutorial-complete h3 {
  margin-top: 0;
}

.rsvp-tutorial-action {
  max-width: 100%;
  min-height: 44px;
  margin-top: 0.5rem;
  white-space: normal;
  text-align: center;
}

.rsvp-tutorial-tip,
.rsvp-tutorial-unavailable {
  padding: 0.75rem;
  border-left: 3px solid var(--rsvp-accent, #d9b978);
  background: var(--rsvp-form-bg, rgba(0, 0, 0, 0.14));
}

.rsvp-tutorial-dialog-footer {
  border-top: 1px solid var(--rsvp-border, rgba(255, 255, 255, 0.14));
}

.rsvp-tutorial-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.rsvp-tutorial-dialog button,
.rsvp-tutorial-dialog a,
.rsvp-tutorial-help-link,
.rsvp-tutorial-noscript-steps summary {
  touch-action: manipulation;
}

.rsvp-tutorial-dialog :focus-visible,
.rsvp-tutorial-center :focus-visible,
.rsvp-tutorial-welcome :focus-visible,
.rsvp-tutorial-help-link:focus-visible {
  outline: 3px solid var(--rsvp-focus, var(--rsvp-accent, #d9b978));
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .rsvp-tutorial-welcome,
  .rsvp-tutorial-dialog-header,
  .rsvp-tutorial-dialog-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .rsvp-tutorial-welcome-actions,
  .rsvp-tutorial-card-actions,
  .rsvp-tutorial-navigation,
  .rsvp-tutorial-dialog-footer > .rsvp-btn,
  .rsvp-tutorial-navigation .rsvp-btn {
    width: 100%;
  }

  .rsvp-tutorial-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .rsvp-tutorial-dialog-shell {
    max-height: calc(100vh - 16px);
  }

  .rsvp-tutorial-dialog-header,
  .rsvp-tutorial-dialog-footer,
  .rsvp-tutorial-dialog-content,
  .rsvp-tutorial-progress {
    padding: 0.85rem;
  }

  .rsvp-tutorial-progress {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rsvp-tutorial-dialog,
  .rsvp-tutorial-dialog::backdrop,
  .rsvp-tutorial-dialog *,
  .rsvp-tutorial-center * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Organizer Operations Center: bounded layout on existing card/grid tokens. */
.rsvp-operations-panel,
.rsvp-operations-activity,
.rsvp-event-binder,
.rsvp-event-binder * {
  min-width: 0;
}

.rsvp-operations-panel .rsvp-card-header,
.rsvp-operations-activity .rsvp-card-header,
.rsvp-binder-header {
  gap: 1rem;
  flex-wrap: wrap;
}

.rsvp-operations-heading {
  margin: 1.5rem 0 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  color: var(--text-0);
}

.rsvp-operations-metrics {
  margin: 0 0 1rem;
}

.rsvp-operations-metrics dt,
.rsvp-operations-metrics dd,
.rsvp-event-binder dt,
.rsvp-event-binder dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.rsvp-operations-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.rsvp-operations-actions .rsvp-btn {
  white-space: normal;
}

.rsvp-operations-activity-list {
  margin: 0;
  padding-left: 1.4rem;
}

.rsvp-operations-activity-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
}

.rsvp-operations-activity-list li:last-child {
  border-bottom: 0;
}

.rsvp-operations-activity-list p {
  margin: 0 0 0.25rem;
  color: var(--text-1);
}

.rsvp-operations-activity-list time {
  color: var(--text-3);
  font-size: 0.82rem;
}

.rsvp-event-binder {
  max-width: 100%;
}

.rsvp-binder-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.rsvp-binder-header .rsvp-card-title {
  margin-top: 0.65rem;
  font-size: 1.8rem;
}

.rsvp-binder-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.rsvp-binder-section,
.rsvp-binder-item {
  break-inside: avoid;
}

.rsvp-binder-item {
  margin: 0.75rem 0;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.rsvp-binder-item p {
  margin: 0.25rem 0;
  overflow-wrap: anywhere;
}

.rsvp-operations-panel :focus-visible,
.rsvp-operations-activity :focus-visible,
.rsvp-event-binder :focus-visible {
  outline: 3px solid var(--rsvp-focus, var(--gold));
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .rsvp-operations-activity-list li {
    display: block;
  }

  .rsvp-operations-activity-list .rsvp-link {
    display: inline-block;
    margin-top: 0.5rem;
  }

  .rsvp-binder-header,
  .rsvp-binder-controls,
  .rsvp-binder-controls .rsvp-btn {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .rsvp-operations-actions,
  .rsvp-operations-actions .rsvp-btn {
    width: 100%;
  }
}

@media print {
  @page {
    size: Letter;
    margin: 0.55in;
  }

  body.rsvp-dashboard-body,
  body.rsvp-admin-body {
    background: #fff !important;
    color: #111 !important;
  }

  body.rsvp-dashboard-body .rsvp-ws-sidebar,
  body.rsvp-dashboard-body .rsvp-ws-overlay,
  body.rsvp-dashboard-body .rsvp-dashboard-main > :not(.rsvp-event-binder),
  body.rsvp-admin-body .rsvp-admin-sidebar,
  body.rsvp-admin-body .rsvp-admin-topbar,
  body.rsvp-admin-body .rsvp-admin-content > :not(.rsvp-event-binder),
  .rsvp-event-binder .rsvp-binder-controls,
  .rsvp-event-binder form,
  .rsvp-event-binder button,
  .rsvp-event-binder input[type="hidden"] {
    display: none !important;
  }

  body.rsvp-dashboard-body .rsvp-dashboard-layout,
  body.rsvp-dashboard-body .rsvp-dashboard-main,
  body.rsvp-admin-body .rsvp-admin-layout,
  body.rsvp-admin-body .rsvp-admin-main,
  body.rsvp-admin-body .rsvp-admin-content,
  .rsvp-event-binder {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .rsvp-event-binder,
  .rsvp-event-binder :is(h1, h2, h3, p, span, strong, dt, dd, li, th, td, time) {
    color: #111 !important;
  }

  .rsvp-event-binder .rsvp-card,
  .rsvp-event-binder .rsvp-stat-card,
  .rsvp-event-binder .rsvp-binder-item {
    background: #fff !important;
    border-color: #aaa !important;
    box-shadow: none !important;
  }

  .rsvp-event-binder .rsvp-card {
    padding: 0.18in;
    margin-bottom: 0.16in;
  }

  .rsvp-event-binder .rsvp-stats-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.08in;
  }

  .rsvp-event-binder .rsvp-stat-card {
    padding: 0.1in;
  }

  .rsvp-event-binder .rsvp-stat-value {
    font-size: 1.25rem;
  }

  .rsvp-event-binder .rsvp-table-wrap {
    overflow: visible !important;
  }

  .rsvp-event-binder .rsvp-table {
    table-layout: fixed;
    font-size: 8.5pt;
  }

  .rsvp-event-binder .rsvp-table th,
  .rsvp-event-binder .rsvp-table td {
    padding: 5px;
    border-color: #aaa !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .rsvp-event-binder a[href]::after {
    content: none !important;
  }
}
/* Public guest RSVP flow — response-first, mobile-first hierarchy. */
body.rsvp-theme-page {
  --rsvp-space-1: 0.5rem;
  --rsvp-space-2: 0.75rem;
  --rsvp-space-3: 1rem;
  --rsvp-space-4: 1.5rem;
  --rsvp-space-5: 2rem;
  overflow-x: hidden;
}

.rsvp-theme-page .rsvp-event-shell,
.rsvp-theme-page .rsvp-event-hero,
.rsvp-theme-page .rsvp-event-wrap,
.rsvp-theme-page .rsvp-event-wrap > *,
.rsvp-theme-page .rsvp-form,
.rsvp-theme-page .rsvp-form-row,
.rsvp-theme-page .rsvp-form-group,
.rsvp-theme-page .rsvp-member-card,
.rsvp-theme-page .rsvp-additional-information {
  min-width: 0;
  max-width: 100%;
}

.rsvp-theme-page .rsvp-event-hero {
  overflow: hidden;
}

.rsvp-theme-page .rsvp-event-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rsvp-theme-page .rsvp-event-title,
.rsvp-theme-page .rsvp-event-hosts,
.rsvp-theme-page .rsvp-event-date-display,
.rsvp-theme-page .rsvp-event-location-name,
.rsvp-theme-page .rsvp-event-location-address,
.rsvp-theme-page .rsvp-summary-list li > *,
.rsvp-theme-page .rsvp-form-label,
.rsvp-theme-page .rsvp-radio-pill-label {
  overflow-wrap: anywhere;
  word-break: normal;
}

.rsvp-theme-page .rsvp-event-wrap {
  display: grid;
  width: min(100%, 48rem);
  gap: var(--rsvp-space-4);
  margin-inline: auto;
  padding: var(--rsvp-space-4) var(--rsvp-space-3) var(--rsvp-space-5);
}

.rsvp-theme-page .rsvp-event-wrap > :is(
  .rsvp-event-details,
  .rsvp-form-section,
  .rsvp-edit-rsvp,
  .rsvp-additional-information
) {
  width: 100%;
  margin: 0 !important;
}

.rsvp-theme-page .rsvp-event-details,
.rsvp-theme-page .rsvp-form-section,
.rsvp-theme-page .rsvp-event-gallery,
.rsvp-theme-page .rsvp-edit-rsvp {
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--rsvp-border);
  border-radius: min(var(--rsvp-radius), 28px);
  box-shadow: var(--rsvp-shadow);
}

.rsvp-theme-page .rsvp-event-details,
.rsvp-theme-page .rsvp-event-gallery,
.rsvp-theme-page .rsvp-edit-rsvp {
  background: var(--rsvp-card-bg);
}

.rsvp-theme-page .rsvp-form-section {
  background: var(--rsvp-form-bg);
}

.rsvp-theme-page .rsvp-event-section-title,
.rsvp-theme-page .rsvp-section-title {
  margin-bottom: var(--rsvp-space-3);
}

.rsvp-theme-page .rsvp-event-introduction .rsvp-event-description + .rsvp-event-description {
  margin-top: var(--rsvp-space-3);
}

.rsvp-theme-page .rsvp-event-location-name,
.rsvp-theme-page .rsvp-event-location-address,
.rsvp-theme-page .rsvp-deadline-date {
  margin: 0;
}

.rsvp-theme-page .rsvp-event-location-name,
.rsvp-theme-page .rsvp-deadline-date {
  color: var(--rsvp-heading);
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  font-weight: 700;
  line-height: 1.45;
}

.rsvp-theme-page .rsvp-event-location-address {
  margin-top: var(--rsvp-space-1);
}

.rsvp-theme-page .rsvp-map-frame {
  margin-top: var(--rsvp-space-3);
}

.rsvp-theme-page .rsvp-deadline-section .rsvp-flash {
  margin: var(--rsvp-space-3) 0 0;
}

.rsvp-theme-page .rsvp-invite-personal-note {
  max-width: none;
  margin: 0 0 var(--rsvp-space-4);
}

.rsvp-theme-page .rsvp-public-rsvp-form .rsvp-form {
  display: grid;
  gap: var(--rsvp-space-3);
}

.rsvp-theme-page .rsvp-public-rsvp-form .rsvp-form-group,
.rsvp-theme-page .rsvp-public-rsvp-form .rsvp-privacy-notice,
.rsvp-theme-page .rsvp-public-rsvp-form .rsvp-party-size-note {
  margin: 0;
}

.rsvp-theme-page .rsvp-form-input,
.rsvp-theme-page .rsvp-radio-pill,
.rsvp-theme-page .rsvp-check-label,
.rsvp-theme-page .rsvp-btn,
.rsvp-theme-page .rsvp-edit-rsvp > summary {
  min-height: 44px;
}

.rsvp-theme-page .rsvp-form-input,
.rsvp-theme-page select.rsvp-form-input,
.rsvp-theme-page textarea.rsvp-form-input {
  width: 100%;
  min-width: 0;
}

.rsvp-theme-page .rsvp-field-error {
  margin: var(--rsvp-space-1) 0 0;
  color: #b42318;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.45;
}

.rsvp-theme-page [aria-invalid="true"] {
  border-color: #b42318;
}

.rsvp-theme-page .rsvp-confirmation-card {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.rsvp-theme-page .rsvp-confirmation-card > h3,
.rsvp-theme-page .rsvp-confirmation-meals > h3 {
  margin: 0 0 var(--rsvp-space-2);
  color: var(--rsvp-heading);
  font-family: var(--rsvp-font-heading);
  font-size: 1.05rem;
}

.rsvp-theme-page .rsvp-confirmation-meals {
  margin-top: var(--rsvp-space-4);
  padding-top: var(--rsvp-space-4);
  border-top: 1px solid var(--rsvp-border);
}

.rsvp-theme-page .rsvp-response-attention {
  margin: 0 0 var(--rsvp-space-4);
}

.rsvp-theme-page .rsvp-print-only {
  display: none;
}

.rsvp-theme-page .rsvp-edit-rsvp {
  margin-top: var(--rsvp-space-4);
  padding: 0;
}

.rsvp-theme-page .rsvp-edit-rsvp > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  cursor: pointer;
  list-style: none;
}

.rsvp-theme-page .rsvp-edit-rsvp > summary::-webkit-details-marker {
  display: none;
}

.rsvp-theme-page .rsvp-edit-rsvp[open] > summary {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.rsvp-theme-page .rsvp-edit-rsvp__body {
  padding: var(--rsvp-space-3);
}

.rsvp-theme-page .rsvp-edit-rsvp__body .rsvp-form-section {
  border: 0;
  border-radius: 0 0 min(var(--rsvp-radius), 28px) min(var(--rsvp-radius), 28px);
  box-shadow: none;
}

.rsvp-theme-page .rsvp-additional-information {
  display: grid;
  gap: var(--rsvp-space-4);
}

.rsvp-theme-page .rsvp-additional-information > * {
  min-width: 0;
  margin: 0 !important;
}

.rsvp-theme-page :is(.rsvp-btn, a, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--rsvp-selector-focus, var(--rsvp-accent));
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .rsvp-theme-page .rsvp-event-wrap {
    gap: var(--rsvp-space-3);
    padding: var(--rsvp-space-3) var(--rsvp-space-2) var(--rsvp-space-4);
  }

  .rsvp-theme-page .rsvp-event-hero {
    min-height: clamp(15rem, 55vw, 21rem);
  }

  .rsvp-theme-page .rsvp-form-row,
  .rsvp-theme-page .rsvp-radio-pills {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .rsvp-theme-page .rsvp-event-shell {
    width: calc(100% - 0.5rem);
  }

  .rsvp-theme-page .rsvp-event-hero-content {
    padding-inline: var(--rsvp-space-3);
  }

  .rsvp-theme-page :is(
    .rsvp-form-section,
    .rsvp-event-details,
    .rsvp-event-gallery
  ) {
    padding: var(--rsvp-space-3);
  }

  .rsvp-theme-page :is(
    .rsvp-form-section,
    .rsvp-event-gallery,
    .rsvp-calendar-actions,
    .rsvp-contact-actions,
    .rsvp-summary-actions,
    .rsvp-success-link-row
  ) > :is(.rsvp-btn, a, button),
  .rsvp-theme-page .rsvp-calendar-download,
  .rsvp-theme-page .rsvp-calendar-download .rsvp-btn {
    width: 100%;
  }
}

@media print {
  .rsvp-theme-page .rsvp-print-only {
    display: grid;
    gap: 0.2rem;
    margin-bottom: 1rem;
  }

  .rsvp-theme-page .rsvp-edit-rsvp,
  .rsvp-theme-page .rsvp-additional-information {
    display: none !important;
  }
}
