:root {
  color-scheme: light;
  --bg: #f8f3ee;
  --surface: #fffaf5;
  --surface-strong: #ffffff;
  --surface-muted: #f7faf9;
  --surface-warm: #fffaf4;
  --text: #211d1b;
  --muted: #6b625c;
  --line: #e4d9cf;
  --line-soft: #dfe6e8;
  --line-strong: #cbd6dc;
  --brand: #183a59;
  --brand-dark: #0d253d;
  --accent: #a64b3b;
  --warning-bg: #fff8ea;
  --warning-line: #e5bd7c;
  --danger: #8a3f32;
  --sky: #edf3f6;
  --blush: #fff0eb;
  --sand: #f7eadb;
  --success: #65724f;
  --success-bg: #eef4ec;
  --radius: 8px;
  --control-height: 42px;
  --shadow: 0 18px 48px rgba(33, 29, 27, 0.11);
  --shadow-soft: 0 4px 18px rgba(31, 42, 55, 0.06);
  --shadow-line: 0 1px 2px rgba(31, 42, 55, 0.04);
  --operator-radius: 14px;
  --operator-panel-line: #d8e2e5;
  --operator-panel-shadow: 0 12px 30px rgba(13, 37, 61, 0.065);
  --operator-hero-background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.16) 0 8%, transparent 8.5%),
    radial-gradient(circle at 88% 72%, rgba(255, 255, 255, 0.08) 0 14%, transparent 14.5%),
    linear-gradient(125deg, #102e49 0%, #183f60 56%, #286d73 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(24, 58, 89, 0.28);
  outline-offset: 2px;
}

.page-shell {
  max-width: 1120px;
  margin: 0 auto;
  background: var(--surface);
  min-height: 100vh;
}

.dashboard-shell {
  max-width: 1440px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #ffffff 0, #f7faf9 320px, #f5f7f7 100%),
    #f5f7f7;
  padding-bottom: 32px;
}

.agency-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 150px 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-strong);
  position: sticky;
  top: 0;
  z-index: 10;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--surface-strong);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.operator-topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(190px, 1fr) auto auto;
  line-height: 1.2;
}

.agency-logo {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: white;
  font-weight: 800;
  overflow: hidden;
}

.agency-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.agency-logo-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 760;
}

.agency-name {
  margin: 0;
  font-weight: 750;
}

.agency-contact {
  margin-left: auto;
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: none;
}

.secondary-link {
  margin-left: auto;
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: none;
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.operator-topbar .topbar-actions {
  margin-left: 0;
}

.topbar-actions .secondary-link,
.topbar-logout .secondary-link {
  margin-left: 0;
}

.operator-topbar .secondary-link.is-current {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.operator-mobile-brand {
  display: none;
}

.agency-admin-list {
  display: grid;
  gap: 18px;
  padding: 0 28px 28px;
}

.agency-admin-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.agency-admin-heading h2 {
  margin: 0;
}

.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;
}

.topbar-menu-toggle {
  display: none;
}

.topbar-logout {
  display: block;
  gap: 0;
}

.topbar-logout button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.login-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 20px;
  background: #fbf7f2;
}

.login-panel {
  width: min(420px, 100%);
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: 0 8px 22px rgba(58, 42, 26, 0.06);
}

.login-panel h1 {
  font-size: 2.2rem;
}

.login-context {
  margin: -6px 0 0;
  color: var(--muted);
  font-weight: 650;
}

.private-area-login-panel {
  gap: 16px;
}

.privacy-shell {
  width: min(860px, calc(100% - 28px));
  margin: 32px auto 72px;
}

.privacy-hero,
.privacy-content {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.privacy-hero {
  padding: clamp(28px, 6vw, 52px);
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(135deg, #f7faf9, #fff8f3);
}

.privacy-hero h1 {
  margin-bottom: 12px;
}

.privacy-hero p:last-child {
  max-width: 68ch;
  margin-bottom: 0;
}

.privacy-content {
  display: grid;
  gap: 0;
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: clamp(22px, 5vw, 42px);
}

.privacy-content article {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.privacy-content article:first-child {
  padding-top: 0;
}

.privacy-content article h2 {
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.privacy-content article p:last-child {
  margin-bottom: 0;
}

.privacy-content > .secondary-cta {
  width: fit-content;
  margin-top: 24px;
}

.privacy-consent-row a {
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.login-password-toggle {
  margin-top: 4px;
  margin-bottom: 4px;
}

.hero {
  display: grid;
  gap: 0;
  background: var(--surface-strong);
}

.public-hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
  background: var(--brand-dark);
}

.public-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(9, 24, 39, 0.78) 0%, rgba(9, 24, 39, 0.52) 48%, rgba(9, 24, 39, 0.18) 100%),
    linear-gradient(0deg, rgba(9, 24, 39, 0.42), rgba(9, 24, 39, 0.08));
}

.hero-photo {
  display: block;
  width: 100%;
  height: 260px;
  min-height: 260px;
  object-fit: cover;
  object-position: center 46%;
}

.public-hero .hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  height: 100%;
  min-height: 100%;
  object-position: center;
}

.hero-content {
  padding: 24px 18px 28px;
}

.public-hero .hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: end;
  justify-items: start;
  min-height: inherit;
  max-width: 640px;
  padding: 56px 24px 48px;
  color: white;
}

.public-hero .eyebrow,
.public-hero .event-date,
.public-hero .intro {
  color: rgba(255, 255, 255, 0.9);
}

.public-hero h1 {
  max-width: min(14ch, 100%);
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.24);
}

.public-hero .intro {
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.public-hero .primary-cta {
  background: #ffffff;
  color: var(--brand-dark);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.guest-mobile-action {
  display: none;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 22px;
}

.hero-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 820;
  backdrop-filter: blur(8px);
}

.agency-contact.is-disabled,
.primary-cta.is-disabled {
  cursor: default;
  opacity: 0.72;
  pointer-events: none;
}

.unpublished-panel {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: calc(100vh - 59px);
  padding: 32px 18px;
  background: var(--surface-strong);
}

.unpublished-panel p:not(.eyebrow):not(.event-date) {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.draft-preview-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: #fff7ed;
}

.draft-preview-notice div {
  display: grid;
  gap: 4px;
}

.draft-preview-notice .eyebrow,
.draft-preview-notice strong,
.draft-preview-notice span {
  margin: 0;
}

.draft-preview-notice span {
  color: #7c2d12;
  line-height: 1.4;
}

/* Premium guest presentation: preserve the contribution flow while giving the
   public registry a warmer, editorial hierarchy. */
.guest-page-shell {
  --guest-cream: #fbf7f1;
  --guest-paper: #fffdf9;
  --guest-ink: #142a3e;
  background:
    radial-gradient(circle at 12% 14%, rgba(198, 111, 92, 0.08), transparent 28rem),
    linear-gradient(180deg, #fffdf9 0, var(--guest-cream) 100%);
  box-shadow: 0 0 0 1px rgba(91, 70, 54, 0.05), 0 28px 80px rgba(53, 39, 29, 0.09);
}

.guest-page-shell > .agency-strip {
  min-height: 68px;
  border-bottom-color: rgba(91, 70, 54, 0.13);
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(16px);
}

.guest-page-shell > .agency-strip .eyebrow {
  color: #8a5a4c;
  letter-spacing: 0.12em;
}

.guest-page-shell > .agency-strip .agency-name {
  color: var(--guest-ink);
  letter-spacing: -0.01em;
}

.guest-page-shell .public-hero {
  min-height: 570px;
  background: #10283b;
}

.guest-page-shell .public-hero::after {
  background:
    linear-gradient(90deg, rgba(7, 20, 32, 0.86) 0%, rgba(7, 20, 32, 0.60) 46%, rgba(7, 20, 32, 0.16) 100%),
    linear-gradient(0deg, rgba(7, 20, 32, 0.54), rgba(7, 20, 32, 0.04) 68%);
}

.guest-page-shell .public-hero .hero-photo {
  transform: scale(1.015);
  filter: saturate(0.88) contrast(1.04);
}

.guest-page-shell .public-hero .hero-content {
  max-width: 700px;
  padding: 68px 34px 58px;
}

.guest-page-shell .public-hero h1,
.guest-page-shell .section-heading h2,
.guest-page-shell .funding-goal-copy h2,
.guest-page-shell .story-band h2,
.guest-page-shell .payment-note h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.guest-page-shell .public-hero h1 {
  font-size: clamp(3.4rem, 8vw, 6.6rem);
  line-height: 0.88;
  text-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
}

.guest-page-shell .public-hero .event-date {
  margin-top: 16px;
  color: #f2d7c6;
  letter-spacing: 0.035em;
}

.guest-page-shell .public-hero .intro {
  max-width: 48ch;
  font-size: 1.08rem;
  line-height: 1.65;
}

.guest-page-shell .hero-highlights span {
  border-color: rgba(243, 216, 197, 0.42);
  background: rgba(255, 248, 240, 0.12);
  font-size: 0.82rem;
  letter-spacing: 0.015em;
}

.guest-page-shell .public-hero .primary-cta {
  min-height: 50px;
  padding-inline: 22px;
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.guest-page-shell .trust-panel {
  position: relative;
  z-index: 3;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: -18px 22px 0;
  overflow: hidden;
  border: 1px solid rgba(112, 84, 65, 0.15);
  border-radius: 16px;
  background: transparent;
  box-shadow: 0 18px 42px rgba(52, 38, 28, 0.11);
}

.guest-page-shell .trust-panel > div {
  padding: 19px 22px;
  background: rgba(255, 253, 249, 0.98);
}

.guest-page-shell .trust-panel > div + div {
  border-left: 1px solid rgba(112, 84, 65, 0.13);
}

.guest-page-shell .guest-steps {
  margin: 18px 22px 0;
  overflow: hidden;
  border: 1px solid rgba(112, 84, 65, 0.13);
  border-radius: 16px;
  background: transparent;
  box-shadow: 0 10px 30px rgba(52, 38, 28, 0.06);
}

.guest-page-shell .guest-steps header,
.guest-page-shell .guest-steps article {
  background: rgba(255, 253, 249, 0.96);
}

.guest-page-shell .guest-steps article + article {
  border-left: 1px solid rgba(112, 84, 65, 0.12);
}

.guest-page-shell .section-block {
  padding: 52px 40px;
}

.guest-page-shell .section-heading h2 {
  color: var(--guest-ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.guest-page-shell .funding-goal-card {
  padding: clamp(24px, 4vw, 38px);
  border-color: rgba(191, 123, 102, 0.28);
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 8%, rgba(211, 158, 132, 0.18), transparent 18rem),
    linear-gradient(135deg, #fffdf9 0, #f8eee8 100%);
  box-shadow: 0 24px 58px rgba(80, 51, 40, 0.10);
}

.guest-page-shell .funding-goal-copy h2 {
  color: var(--guest-ink);
  font-size: clamp(2rem, 4vw, 3rem);
}

.guest-page-shell .funding-actions {
  border-color: rgba(112, 84, 65, 0.17);
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.92);
}

.guest-page-shell .funding-actions .gift-action,
.guest-page-shell .gift-action {
  border-radius: 10px;
  background: var(--guest-ink);
}

.guest-page-shell .gift-grid {
  gap: 20px;
}

.guest-page-shell .gift-card {
  border-color: rgba(112, 84, 65, 0.14);
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(52, 38, 28, 0.08);
}

.guest-page-shell .gift-card:hover {
  border-color: rgba(112, 84, 65, 0.26);
  box-shadow: 0 22px 46px rgba(52, 38, 28, 0.13);
  transform: translateY(-3px);
}

.guest-page-shell .gift-image {
  min-height: 220px;
  filter: saturate(0.9) contrast(1.02);
}

.guest-page-shell .gift-body {
  padding: 22px 22px 20px;
}

.guest-page-shell .gift-body h3 {
  color: var(--guest-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.guest-page-shell .story-band {
  margin: 18px 22px 0;
  padding: 46px 40px;
  border: 1px solid rgba(112, 84, 65, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 20%, rgba(198, 111, 92, 0.13), transparent 24rem),
    #fffaf7;
}

.guest-page-shell .payment-note {
  margin: 18px 22px 32px;
  padding: 34px 40px;
  border: 1px solid rgba(80, 117, 132, 0.16);
  border-radius: 18px;
  background: #eef4f5;
}

@media (max-width: 719px) {
  .guest-page-shell {
    box-shadow: none;
  }

  .guest-page-shell .public-hero {
    min-height: 560px;
  }

  .guest-page-shell .public-hero .hero-content {
    padding: 60px 16px 38px;
  }

  .guest-page-shell .public-hero h1 {
    max-width: 11ch;
    font-size: clamp(3.25rem, 16vw, 4.8rem);
    line-height: 0.9;
  }

  .guest-page-shell .public-hero .intro {
    font-size: 0.98rem;
    line-height: 1.52;
  }

  .guest-page-shell .trust-panel {
    margin: -12px 10px 0;
    border-radius: 14px;
  }

  .guest-page-shell .trust-panel > div {
    padding: 15px 13px;
  }

  .guest-page-shell .guest-steps {
    margin: 14px 10px 0;
    border-radius: 14px;
  }

  .guest-page-shell .section-block {
    padding: 38px 10px;
  }

  .guest-page-shell .funding-goal-card {
    padding: 18px;
    border-radius: 16px;
  }

  .guest-page-shell .gift-grid {
    gap: 14px;
  }

  .guest-page-shell .gift-image {
    min-height: 205px;
  }

  .guest-page-shell .gift-body {
    padding: 18px 16px 16px;
  }

  .guest-page-shell .story-band,
  .guest-page-shell .payment-note {
    margin-inline: 10px;
    padding: 30px 20px;
    border-radius: 16px;
  }
}

.payment-configuration-alert {
  border-block: 1px solid #d7a093;
  background: #fff1ed;
}

.dashboard-shell > .payment-configuration-alert {
  margin-inline: 18px;
  border: 1px solid #d7a093;
  border-radius: var(--radius);
}

.payment-configuration-alert strong {
  color: var(--danger);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 9vw, 4.2rem);
  line-height: 0.98;
}

h2 {
  margin: 0;
  font-size: 1.5rem;
}

h3 {
  margin: 10px 0 8px;
  font-size: 1.1rem;
}

.event-date {
  margin: 10px 0 0;
  color: var(--brand-dark);
  font-weight: 800;
}

.intro {
  margin: 18px 0 22px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 54ch;
}

.primary-cta,
.secondary-cta,
.gift-action {
  min-height: var(--control-height);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 820;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  line-height: 1.15;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.primary-cta {
  background: var(--brand);
  color: white;
  box-shadow: 0 8px 18px rgba(24, 58, 89, 0.18);
}

.primary-cta:hover {
  background: var(--brand-dark);
}

.primary-cta:hover,
.gift-action:hover {
  transform: translateY(-1px);
}

.primary-cta:disabled,
.secondary-cta:disabled,
.secondary-button:disabled,
.mini-action-button:disabled,
.gift-action:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.secondary-cta {
  border: 1px solid transparent;
  background: var(--sky);
  color: var(--brand-dark);
}

.secondary-cta:hover {
  border-color: var(--line-strong);
  background: #ffffff;
}

.secondary-button,
.text-button,
.task-row button,
.link-box button {
  min-height: var(--control-height);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 820;
  padding: 0 12px;
  line-height: 1.15;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.secondary-button,
.text-button,
.mini-action-button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.text-button {
  border-color: transparent;
  background: transparent;
}

.secondary-button:hover,
.text-button:hover,
.task-row button:hover,
.link-box button:hover,
.mini-action-button:hover,
.copy-button:hover {
  border-color: var(--brand);
  background: var(--surface-muted);
  box-shadow: var(--shadow-line);
}

.trust-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: #e7ded5;
  border-block: 1px solid var(--line);
}

.trust-panel > div {
  background: #ffffff;
  padding: 18px 20px;
}

.trust-panel strong,
.trust-panel span {
  display: block;
}

.trust-panel span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.94rem;
}

.guest-steps {
  display: grid;
  gap: 1px;
  background: #e7ded5;
  border-bottom: 1px solid var(--line);
}

.guest-steps header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: #ffffff;
}

.guest-steps-toggle {
  display: none;
}

.guest-steps header h2,
.guest-steps header p {
  margin: 0;
}

.guest-steps header h2 {
  margin-top: 4px;
  color: var(--brand-dark);
}

.guest-steps article {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: start;
  padding: 16px 20px;
  background: #fffdf8;
  min-height: 92px;
}

.guest-steps span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-weight: 850;
}

.guest-steps strong {
  display: block;
  color: var(--brand-dark);
}

.guest-steps p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.modal-payment-hint {
  display: grid;
  gap: 3px;
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid #d6e3e9;
  border-radius: 14px;
  background: #f3f8fa;
  color: var(--brand-dark);
  line-height: 1.45;
}

.modal-payment-hint strong,
.modal-payment-hint span {
  display: block;
}

.modal-payment-hint.demo-assurance {
  border-color: #d9c9a1;
  background: linear-gradient(135deg, #fffaf0, #f7f1e5);
}

.story-band {
  display: grid;
  gap: 12px;
  padding: 30px 20px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(24, 58, 89, 0.06), rgba(198, 111, 92, 0.10)),
    #ffffff;
}

.story-band h2,
.story-band p {
  margin: 0;
}

.story-band h2 {
  max-width: 12ch;
  color: var(--brand-dark);
  font-size: clamp(1.8rem, 6vw, 3.1rem);
  line-height: 1;
}

.story-band > p {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.55;
}

.closed-list-notice {
  display: grid;
  gap: 8px;
  padding: 24px 20px;
  border-bottom: 1px solid #eadbd2;
  background: #fff8f4;
}

.closed-list-notice h2,
.closed-list-notice p {
  margin: 0;
}

.closed-list-notice h2 {
  color: var(--brand-dark);
  font-size: 1.55rem;
}

.closed-list-notice > p:last-child {
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.45;
}

.section-block {
  padding: 38px 18px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-lead {
  max-width: 62ch;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.gift-grid {
  display: grid;
  gap: 14px;
}

.funding-goal-card {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
  padding: 24px;
  border: 1px solid #e6cfc6;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(198, 111, 92, 0.13), rgba(24, 58, 89, 0.07)),
    #ffffff;
  box-shadow: 0 18px 44px rgba(74, 43, 35, 0.10);
}

.funding-goal-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.contribution-promise {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.contribution-promise span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--brand-dark);
  font-size: 0.84rem;
  font-weight: 830;
}

.funding-progress {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.funding-progress-bar {
  display: block;
  width: 100%;
  height: 14px;
  overflow: hidden;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #eadbd2;
}

.funding-progress-bar::-webkit-progress-bar {
  border-radius: 999px;
  background: #eadbd2;
}

.funding-progress-bar::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.funding-progress-bar::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.funding-meta.strong {
  color: var(--brand-dark);
  font-weight: 800;
}

.funding-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
  padding: 14px;
  border: 1px solid #eadbd2;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.funding-actions-title {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.funding-actions-helper {
  grid-column: 1 / -1;
  margin: -2px 0 4px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.funding-actions .gift-action,
.funding-actions .secondary-button {
  width: 100%;
  margin-left: 0;
}

.funding-actions .gift-action {
  min-height: 48px;
  font-size: 1.02rem;
  box-shadow: 0 8px 16px rgba(24, 58, 89, 0.14);
}

.gift-card {
  background: var(--surface-strong);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.gift-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 16px 34px rgba(31, 42, 55, 0.10);
  transform: translateY(-1px);
}

.gift-image {
  min-height: 190px;
  background-size: cover;
  background-position: center;
  background-color: #e8ddd4;
}

.image-kyoto {
  background-image: url("https://images.unsplash.com/photo-1493976040374-85c8e12f0c0e?auto=format&fit=crop&w=900&q=80");
}

.image-temple {
  background-image: url("https://images.unsplash.com/photo-1526481280693-3bfa7568e0f3?auto=format&fit=crop&w=900&q=80");
}

.image-sea {
  background-image: url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=900&q=80");
}

.image-dinner {
  background-image: url("https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=900&q=80");
}

.image-stay {
  background-image: url("https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=900&q=80");
}

.image-drive {
  background-image: url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=900&q=80");
}

.image-home {
  background-image: url("https://images.unsplash.com/photo-1484154218962-a197022b5858?auto=format&fit=crop&w=900&q=80");
}

.image-card {
  background:
    linear-gradient(135deg, rgba(19, 63, 94, 0.20), rgba(201, 108, 83, 0.26)),
    url("https://images.unsplash.com/photo-1527631746610-bca00a040d60?auto=format&fit=crop&w=900&q=80");
  background-size: cover;
  background-position: center;
}

.gift-body {
  display: grid;
  align-content: start;
  padding: 18px 18px 16px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 800;
}

.status-badge.almost {
  border-color: #f0d6a9;
  background: #fff6e8;
  color: #9a5d16;
}

.status-badge.warning {
  border-color: #f0d6a9;
  background: #fff6e8;
  color: #9a5d16;
}

.status-badge.success {
  border-color: #d9e3d4;
  background: var(--success-bg);
  color: var(--success);
}

.status-badge.free {
  border-color: var(--line-soft);
  background: var(--surface-muted);
  color: var(--brand-dark);
}

.status-badge.archived {
  border-color: var(--line-soft);
  background: #f2f4f4;
  color: #776f69;
}

.status-badge.cancelled {
  border-color: #ead0c7;
  background: #f6ebe6;
  color: var(--danger);
}

.status-badge.external {
  border-color: var(--line-soft);
  background: var(--surface-muted);
  color: #6f5a47;
}

.gift-card.external-proposal {
  border-color: var(--line-soft);
  background: var(--surface-warm);
}

.gift-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.gift-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.gift-footer strong {
  font-size: 1.1rem;
}

.gift-action {
  margin-left: auto;
  background: var(--brand-dark);
  color: white;
  min-width: 92px;
}

.gift-footer .mini-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  text-decoration: none;
}

.free-amount {
  background: var(--blush);
  border-color: #efcbb8;
}

.payment-note {
  background: #edf3f6;
  border-top: 1px solid #d8e1e6;
}

.payment-note p {
  color: var(--muted);
  line-height: 1.55;
}

.dashboard-hero {
  display: grid;
  gap: 16px;
  padding: 30px 18px 26px;
  background:
    linear-gradient(135deg, rgba(24, 58, 89, 0.035), rgba(47, 125, 107, 0.035)),
    var(--surface-strong);
  border-bottom: 1px solid var(--line);
}

.dashboard-hero h1 {
  font-size: clamp(2rem, 7vw, 3rem);
  max-width: 16ch;
  letter-spacing: 0;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}

.dashboard-primary-action {
  display: flex;
}

.hero-status-card {
  display: grid;
  gap: 4px;
  align-self: stretch;
  padding: 14px 16px;
  border: 1px solid #e5d9cd;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0, #fff8f1 100%);
  box-shadow: 0 8px 22px rgba(58, 42, 26, 0.05);
}

.hero-status-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-status-card strong {
  color: var(--brand-dark);
  font-size: 1.08rem;
}

.hero-status-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
}

.metric-card,
.panel {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 3px 12px rgba(31, 42, 55, 0.045);
}

.metric-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 14px 16px;
  min-height: 96px;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: #e8dfd6;
}

.metric-card strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1.1;
}

.metric-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.metric-card.warning {
  border-color: #e5bd7c;
  background: #fff8ea;
}

.metric-card.warning::before {
  background: #e5bd7c;
}

.ops-strip {
  display: grid;
  gap: 10px;
  margin: 0 18px 18px;
}

.ops-strip > div {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid #d8d9c8;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0, #fbfcf4 100%);
  box-shadow: 0 8px 18px rgba(55, 62, 48, 0.05);
}

.ops-strip strong,
.ops-strip span {
  display: block;
}

.ops-strip strong {
  color: var(--brand-dark);
  font-size: 1.04rem;
}

.ops-strip span {
  color: var(--muted);
  line-height: 1.42;
}

.work-guidance-card {
  display: grid;
  gap: 12px;
  align-items: center;
  margin: 0 18px 18px;
  padding: 14px;
  border: 1px solid #dfe6e8;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0, #f8fbfb 100%);
  box-shadow: 0 3px 14px rgba(31, 42, 55, 0.05);
}

.work-guidance-card h2,
.work-guidance-card p {
  margin: 0;
}

.work-guidance-card h2 {
  color: var(--brand-dark);
  font-size: 1.16rem;
}

.work-guidance-card p:not(.eyebrow) {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.42;
}

.setup-completion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-self: start;
}

.work-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-stepper li {
  display: grid;
  gap: 5px;
  justify-items: center;
  min-width: 0;
  padding: 8px 5px;
  border: 1px solid #dde5e7;
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.work-stepper span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #d7dce0;
  border-radius: 50%;
  color: var(--brand-dark);
  font-weight: 850;
}

.work-stepper strong {
  max-width: 100%;
  font-size: 0.82rem;
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: normal;
}

.work-stepper small {
  display: block;
  max-width: 100%;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.work-stepper li.is-current {
  border-color: var(--brand-dark);
  color: var(--brand-dark);
  background: #f7fbfd;
}

.work-stepper li.is-current span {
  color: #ffffff;
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.work-stepper li.is-current small {
  color: var(--brand-dark);
}

.work-stepper li.is-done {
  color: var(--success);
  background: #f7f8f2;
}

.work-stepper li.is-done span {
  border-color: #cbd6c1;
  color: var(--success);
  background: #eef1ea;
}

.work-stepper li.is-done small {
  color: #4f6a4b;
}

.setup-visual-brief {
  display: grid;
  gap: 0;
  margin: 0 18px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: 0 4px 18px rgba(31, 42, 55, 0.06);
}

.setup-visual-cover {
  position: relative;
  min-height: 190px;
  background: #efe7df;
}

.setup-visual-cover img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.setup-visual-cover span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 850;
  box-shadow: 0 8px 20px rgba(20, 18, 16, 0.12);
}

.setup-visual-copy {
  display: grid;
  gap: 9px;
  align-content: center;
  padding: 18px 20px;
}

.setup-visual-copy h2,
.setup-visual-copy p {
  margin: 0;
}

.setup-visual-copy h2 {
  color: var(--brand-dark);
  font-size: clamp(1.45rem, 3.6vw, 1.95rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.setup-visual-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
}

.setup-visual-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

/* The setup page is an editor: put its first editable field before supporting
   guidance and previews, which are already available from the dashboard. */
.setup-page-shell > .work-guidance-card,
.setup-page-shell > .setup-visual-brief,
.setup-page-shell .setup-timebox {
  display: none;
}

.setup-page-shell > .work-guidance-card.is-published {
  display: grid;
}

.setup-page-shell .setup-blockers {
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 12px;
}

.setup-page-shell .setup-focus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.setup-page-shell .setup-focus-grid button {
  min-height: 72px;
  padding: 10px;
}

.setup-page-shell .setup-density-control {
  margin-bottom: 10px;
  padding: 9px 12px;
}

.setup-visual-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid #dfe6e8;
  border-radius: 999px;
  background: #f7faf9;
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 820;
}

.dashboard-panel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 18px 18px;
  padding: 4px;
  border: 1px solid #dfe6e8;
  border-radius: var(--radius);
  background: #f7faf9;
}

.dashboard-panel-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 840;
  text-decoration: none;
}

.dashboard-panel-tabs a:hover {
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.74);
}

.dashboard-panel-tabs a.is-active {
  color: #ffffff;
  background: var(--brand-dark);
  box-shadow: 0 8px 20px rgba(24, 58, 89, 0.16);
}

.dashboard-layout {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
}

.funding-dashboard-panel {
  margin: 0 18px 18px;
  overflow: hidden;
}

.funding-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.funding-dashboard-grid div {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfd;
}

.funding-dashboard-grid span,
.funding-dashboard-grid strong {
  display: block;
}

.funding-dashboard-grid span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.lists-layout {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.dashboard-shell.lists-page-shell {
  max-width: 1440px;
}

.lists-page-shell .lists-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: var(--operator-hero-background);
  border-bottom: 0;
}

.lists-page-shell .lists-hero .eyebrow,
.lists-page-shell .lists-hero .event-date {
  color: rgba(255, 255, 255, 0.78);
}

.lists-page-shell .lists-hero h1 {
  color: #ffffff;
}

.lists-hero-signature {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 250px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.lists-hero-signature > span {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: var(--brand-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 10px 30px rgba(5, 21, 34, 0.22);
}

.lists-hero-signature small {
  max-width: 16ch;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
}

.lists-cockpit {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 20px 28px 6px;
}

.lists-cockpit-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 150px;
  padding: 22px;
  overflow: hidden;
  border-radius: 22px;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(13, 37, 61, 0.13);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.lists-cockpit-card::after {
  position: absolute;
  right: -42px;
  bottom: -66px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  content: "";
}

.lists-cockpit-card:hover {
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(13, 37, 61, 0.19);
}

.lists-cockpit-card.is-create {
  background: linear-gradient(135deg, #9f4335, #a84d3b);
}

.lists-cockpit-card.is-portfolio {
  background: linear-gradient(135deg, #173c5b, #24627a);
}

.lists-cockpit-card.is-payments {
  background: linear-gradient(135deg, #25615e, #2f746b);
}

.lists-cockpit-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.lists-cockpit-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.lists-cockpit-copy {
  display: grid;
  gap: 6px;
}

.lists-cockpit-copy strong {
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1;
}

.lists-cockpit-copy small {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.3;
}

.lists-cockpit-arrow {
  position: relative;
  z-index: 1;
  font-size: 1.45rem;
}

.panel {
  padding: 20px;
}

.create-list-panel {
  order: 2;
  padding: 0;
  overflow: hidden;
  border-color: var(--line-soft);
  background: linear-gradient(180deg, #ffffff 0, var(--surface-muted) 100%);
}

.list-portfolio-panel {
  order: 1;
}

.create-list-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.create-list-summary::-webkit-details-marker {
  display: none;
}

.create-list-summary:hover {
  background: rgba(24, 58, 89, 0.035);
}

.create-list-summary .panel-copy {
  max-width: 54rem;
}

.create-list-summary-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--accent);
  font-size: 1.6rem;
  line-height: 1;
}

.create-list-summary-toggle {
  color: var(--brand-dark);
  font-size: 1.5rem;
  transition: transform 160ms ease;
}

.create-list-panel[open] .create-list-summary-toggle {
  transform: rotate(180deg);
}

.create-list-content {
  padding: 18px 20px 22px 76px;
  border-top: 1px solid var(--line-soft);
}

.create-list-content .setup-form {
  max-width: 920px;
}

.create-list-panel .form-grid {
  grid-template-columns: 1fr;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-heading h2,
.panel-heading h3 {
  letter-spacing: 0;
}

.panel-copy {
  max-width: 34rem;
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.status-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.status-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 820;
}

.list-view-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--surface-muted);
}

.list-view-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 830;
  text-decoration: none;
}

.list-view-tabs a:hover {
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.72);
}

.list-view-tabs a.is-active {
  color: #ffffff;
  background: var(--brand-dark);
  box-shadow: 0 6px 14px rgba(24, 58, 89, 0.14);
}

.list-view-tabs span {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--brand-dark);
  text-align: center;
  font-size: 0.78rem;
}

.list-view-tabs a.is-active span {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.list-sort-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

.list-sort-bar a {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--brand-dark);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

.list-sort-bar a.is-active {
  color: #ffffff;
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.task-list,
.contribution-list,
.list-overview {
  display: grid;
  gap: 10px;
}

.task-row,
.contribution-row,
.list-row {
  display: grid;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-line);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.contribution-row:hover,
.list-row:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.task-row {
  grid-template-columns: auto 1fr auto;
}

.task-row:first-child {
  border-color: var(--warning-line);
  background: var(--warning-bg);
}

.task-row p,
.contribution-row p,
.list-row p,
.public-link-panel p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.contribution-received-proof,
.contribution-next-action {
  margin-top: 0.65rem;
  font-weight: 700;
  color: var(--brand-ink, #173f42);
}

.contribution-next-action {
  color: #8a5a14;
}

.contribution-audit-details {
  margin-top: 0.65rem;
}

.contribution-audit-details summary {
  width: fit-content;
  cursor: pointer;
  font-weight: 800;
  color: var(--brand-ink, #173f42);
}

.contribution-audit-timeline {
  display: grid;
  gap: 0.55rem;
  margin: 0.7rem 0 0;
  padding-left: 1.15rem;
}

.contribution-audit-timeline li {
  display: grid;
  gap: 0.12rem;
}

.contribution-audit-timeline span {
  color: #6d6258;
  font-size: 0.86rem;
}

.task-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}

.warning-dot {
  background: var(--accent);
}

.amount-status {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.inline-action-form {
  display: block;
}

.mini-action-button {
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 800;
  padding: 0 10px;
  box-shadow: var(--shadow-line);
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.mini-action-button:disabled {
  cursor: default;
  opacity: 0.58;
  box-shadow: none;
}

.primary-list-action {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  color: #ffffff;
}

.warning-action {
  border-color: var(--warning-line);
  background: var(--warning-bg);
  color: #7a4300;
}

.mini-action-button.danger {
  border-color: #e2c5bb;
  color: var(--danger);
}

.mini-action-button.subtle-danger {
  background: #fffaf7;
  color: #8a3f32;
  opacity: 0.86;
}

.mini-action-button.subtle-danger:hover {
  opacity: 1;
}

.list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.list-secondary-actions {
  position: relative;
}

.list-secondary-actions summary {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #d7dce0;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  list-style: none;
  box-shadow: 0 4px 12px rgba(24, 58, 89, 0.04);
}

.list-secondary-actions summary::-webkit-details-marker {
  display: none;
}

.list-secondary-actions[open] summary {
  color: var(--brand-dark);
  border-color: var(--brand-dark);
}

.list-secondary-actions > div {
  position: absolute;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 6px;
  min-width: 176px;
  margin-top: 7px;
  padding: 8px;
  border: 1px solid #e5d8ce;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(58, 42, 26, 0.16);
}

.list-secondary-actions .mini-action-button,
.list-secondary-actions .inline-action-form,
.list-secondary-actions .inline-action-form button {
  width: 100%;
  text-align: left;
}

.compact-list-row {
  padding: 14px 15px;
}

.compact-list-row .contribution-meta {
  gap: 8px;
}

.compact-list-row .mini-action-button {
  min-height: 32px;
  padding-inline: 9px;
  font-size: 0.88rem;
}

.list-operational-status {
  font-weight: 800;
  color: var(--brand-dark) !important;
}

.list-next-action {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  width: fit-content;
  margin-top: 9px !important;
  padding: 7px 9px;
  border: 1px solid #d8d9c8;
  border-radius: var(--radius);
  background: #fbfcf4;
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 820;
}

.list-next-action span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.archive-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.operator-user-list {
  display: grid;
  gap: 10px;
}

.operator-user-row {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.operator-user-actions {
  display: grid;
  gap: 10px;
  align-items: end;
}

.operator-reset-form {
  display: grid;
  gap: 8px;
}

.compact-heading {
  margin-bottom: 10px;
}

.archived-row {
  background: #f7f3ef;
}

.first-list-brief {
  margin-top: 16px;
}

.list-helper-details {
  display: grid;
  gap: 10px;
}

.list-helper-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.list-helper-details summary::-webkit-details-marker {
  display: none;
}

.list-helper-details summary .eyebrow,
.list-helper-details summary strong {
  display: block;
}

.list-helper-details summary strong {
  color: var(--brand-dark);
  font-size: 1.02rem;
}

.list-helper-details .details-indicator {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--brand-dark);
  font-weight: 900;
}

.list-helper-details[open] .details-indicator {
  transform: rotate(45deg);
}

.first-list-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.first-list-checks span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #e2d5ca;
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-dark);
  font-size: 0.88rem;
  font-weight: 780;
}

.template-starter-card {
  margin-top: 14px;
}

.operator-user-row > div:first-child {
  min-width: 0;
}

.operator-user-row p,
.operator-user-row .contribution-meta {
  overflow-wrap: break-word;
  word-break: normal;
}

.create-template-options {
  display: grid;
  gap: 8px;
  margin: 4px 0 2px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.create-template-options legend {
  padding: 0 5px;
  color: var(--brand-dark);
  font-weight: 850;
}

.create-template-options > p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 0.9rem;
}

.create-template-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 58px;
  padding: 11px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface-strong);
  cursor: pointer;
}

.create-template-option:has(input:checked) {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(24, 58, 89, 0.08);
}

.create-template-option input {
  margin-top: 4px;
}

.create-template-option span {
  display: grid;
  gap: 3px;
}

.create-template-option small {
  color: var(--muted);
  line-height: 1.35;
}

.template-action-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.template-action-list form {
  margin: 0;
}

.template-action-button {
  display: grid;
  gap: 5px;
  width: 100%;
  min-height: 92px;
  padding: 12px 13px;
  border: 1px solid #d8d9c8;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.template-action-button:hover {
  border-color: var(--brand);
}

.template-action-button strong,
.template-action-button span,
.template-action-button small {
  display: block;
}

.template-action-button .template-tag {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef4f3;
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 860;
  letter-spacing: 0;
}

.template-action-button strong {
  color: var(--brand-dark);
  font-weight: 850;
}

.template-action-button span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.template-action-button small {
  color: #7b6d63;
  font-size: 0.8rem;
  font-weight: 760;
  line-height: 1.3;
}

.empty-state-card {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px dashed #d8c8bc;
  border-radius: var(--radius);
  background: #fffaf4;
}

.empty-state-card strong {
  color: var(--brand-dark);
}

.empty-state-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.empty-state-actions .primary-cta,
.empty-state-actions .secondary-button {
  min-height: 42px;
}

.error-page-shell {
  min-height: 100vh;
}

.error-page-shell > .error-recovery-panel {
  display: grid;
  gap: 20px;
  margin: 24px var(--operator-content-gutter) 40px;
}

.error-recovery-panel > div > p:last-child {
  max-width: 66ch;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.error-recovery-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.error-recovery-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--operator-panel-line);
  border-radius: 12px;
  background: var(--surface-muted);
}

.error-recovery-steps span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-dark);
  color: #fff;
  font-weight: 850;
}

.error-recovery-steps p {
  margin: 4px 0 0;
  color: var(--text);
  line-height: 1.45;
}

.error-reference {
  width: fit-content;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
}

.error-reference summary {
  color: var(--brand-dark);
  font-weight: 800;
  cursor: pointer;
}

.error-reference p {
  margin: 10px 0 6px;
}

.error-reference code {
  overflow-wrap: anywhere;
}

.form-error[role="alert"]:focus {
  outline: 3px solid rgba(24, 58, 89, 0.28);
  outline-offset: 3px;
}

.contribution-page-panel {
  margin: 0 16px;
}

.contribution-priority-panel {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  border-color: var(--warning-line);
  background: linear-gradient(180deg, #fffdf7 0, #fff8ea 100%);
}

.contribution-priority-panel .panel-heading {
  margin: 0;
}

.priority-contribution-guidance {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.contribution-row-priority {
  border-color: rgba(229, 189, 124, 0.72);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(58, 42, 26, 0.08);
}

.contribution-row-detailed {
  align-items: start;
}

.contribution-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.contribution-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.dedication-box {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #edf3f6;
  color: var(--brand-dark);
  line-height: 1.45;
}

.dedication-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.couple-dedications-panel {
  order: -1;
}

.couple-hub-strip {
  display: none;
  gap: 10px;
  margin: 18px;
}

.couple-memory-card {
  display: none;
  gap: 0;
  margin: 0 18px 18px;
  overflow: hidden;
  border: 1px solid #dfe6e8;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(31, 42, 55, 0.06);
}

.couple-memory-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.couple-memory-copy {
  display: grid;
  gap: 12px;
  align-content: center;
  padding: 22px;
}

.couple-memory-copy h2 {
  max-width: 42rem;
  font-size: clamp(1.55rem, 3.6vw, 2.05rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.couple-memory-copy p:not(.eyebrow) {
  max-width: 48rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.couple-private-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
}

.couple-private-points article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #dde8e6;
  border-radius: var(--radius);
  background: #f8fbfb;
}

.couple-private-points strong {
  color: var(--brand-dark);
  font-size: 0.92rem;
}

.couple-private-points span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.couple-next-card,
.couple-agency-card,
.couple-latest-message {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid #dfe6e8;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(31, 42, 55, 0.045);
}

.couple-next-card {
  background: linear-gradient(135deg, #ffffff 0, #f7fbfc 100%);
  border-color: #dbe6ea;
}

.couple-next-card h2,
.couple-agency-card h2 {
  font-size: 1.35rem;
}

.couple-next-card p,
.couple-agency-card p,
.couple-latest-message blockquote {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.couple-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.couple-agency-card {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.couple-agency-media {
  position: relative;
  width: 72px;
  aspect-ratio: 1;
}

.couple-agency-media .agency-logo,
.couple-agency-media .couple-agency-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.couple-agency-photo {
  width: 72px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid #e1d2c8;
  border-radius: var(--radius);
}

.couple-latest-message blockquote {
  color: var(--brand-dark);
  font-size: 1.05rem;
}

.couple-latest-message strong {
  color: var(--brand-dark);
}

.couple-section-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 6px;
  margin: 0 18px 18px;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid #dfe6e8;
  border-radius: var(--radius);
  background: #f7faf9;
}

.couple-section-nav a {
  display: grid;
  gap: 2px;
  align-content: center;
  min-height: 58px;
  padding: 8px 11px;
  border-radius: calc(var(--radius) - 2px);
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 820;
  text-decoration: none;
}

.couple-section-nav a:hover {
  background: #ffffff;
}

.couple-journey-timeline {
  display: grid;
  gap: 12px;
  margin: 0 18px 18px;
  padding: 16px;
  border: 1px solid #dfe6e8;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0, #f8fbfb 100%);
}

.journey-steps {
  display: grid;
  gap: 8px;
}

.journey-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid #dde8e6;
  border-radius: var(--radius);
  background: #ffffff;
}

.journey-step > span {
  display: inline-grid;
  width: 30px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 999px;
  background: #f3e7df;
  color: var(--brand-dark);
  font-weight: 900;
}

.journey-step.is-done > span {
  background: var(--brand-dark);
  color: #ffffff;
}

.journey-step strong,
.journey-step p {
  display: block;
}

.journey-step p {
  margin: 3px 0 0;
  color: var(--muted);
  line-height: 1.42;
}

.couple-reassurance {
  display: grid;
  gap: 8px;
  margin: 0 18px 18px;
}

.couple-reassurance article {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #dfe6e8;
  border-radius: var(--radius);
  background: #ffffff;
}

.couple-reassurance strong,
.couple-reassurance span {
  display: block;
}

.couple-reassurance strong {
  color: var(--brand-dark);
}

.couple-reassurance span {
  color: var(--muted);
  line-height: 1.42;
}

.couple-operation-message {
  margin: 0 18px 18px;
}

.couple-approval-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 18px 18px;
  border-color: #a9d7c8;
  background: linear-gradient(135deg, #f4fbf8 0, #ffffff 100%);
}

.couple-approval-panel h2,
.couple-approval-panel p {
  margin: 0;
}

.couple-approval-panel .eyebrow {
  margin-bottom: 5px;
}

.couple-approval-panel form {
  flex: 0 0 auto;
}

.couple-priority-panel {
  grid-column: 1 / -1;
  border-color: #e8bf72;
  background: #fffaf0;
}

.couple-details-disclosure {
  margin: 0 18px 18px;
  overflow: clip;
  border: 1px solid #dfe6e8;
  border-radius: var(--radius);
  background: #ffffff;
}

.couple-details-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  background: linear-gradient(135deg, #ffffff 0, #f7faf9 100%);
}

.couple-details-disclosure > summary::-webkit-details-marker {
  display: none;
}

.couple-details-disclosure > summary span:first-child {
  display: grid;
  gap: 3px;
}

.couple-details-disclosure > summary strong {
  color: var(--brand-dark);
  font-size: 1.05rem;
}

.couple-details-disclosure > summary small {
  color: var(--muted);
  font-weight: 650;
}

.couple-details-disclosure > summary .details-indicator {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #ffffff;
  color: var(--brand-dark);
  font-weight: 900;
  transition: transform 160ms ease;
}

.couple-details-disclosure[open] > summary {
  border-bottom: 1px solid #dfe6e8;
}

.couple-details-disclosure[open] > summary .details-indicator {
  transform: rotate(45deg);
}

.couple-details-disclosure-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.couple-details-disclosure .couple-details-section,
.couple-details-disclosure .contribution-page-panel {
  margin: 0;
}

.couple-details-section {
  display: grid;
  gap: 14px;
  margin: 0 18px 18px;
}

.couple-details-section > .panel-heading {
  margin: 0;
}

.couple-details-section .metric-grid,
.couple-details-section .funding-dashboard-panel {
  margin: 0;
}

.couple-details-section .metric-grid {
  padding: 0;
}

.funding-progress small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 760;
  line-height: 1.38;
}

.dedication-card blockquote {
  margin: 0;
  color: var(--brand-dark);
  line-height: 1.5;
}

.dedication-card strong,
.dedication-card span {
  display: block;
}

.dedication-card span,
.empty-state,
.muted-note {
  color: var(--muted);
}

.empty-state {
  margin: 0;
  line-height: 1.45;
}

.public-link-panel {
  display: grid;
  gap: 12px;
  margin: 0 16px;
}

.guest-share-panel {
  border-color: #dfe6e8;
  background: linear-gradient(180deg, #ffffff 0, #f8fbfb 100%);
}

.share-message-preview {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #eadbd2;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--brand-dark);
  line-height: 1.5;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.share-actions > * {
  min-width: 154px;
}

.share-box {
  display: grid;
  gap: 12px;
}

.share-operations {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.share-link-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.share-link-map article {
  display: grid;
  gap: 9px;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #ffffff;
}

.share-link-map strong {
  color: var(--brand-dark);
}

.share-link-map p {
  margin: 0;
  color: var(--muted);
}

.share-link-map button,
.share-link-map .mini-action-button {
  justify-self: start;
}

.mini-action-button.is-disabled {
  opacity: 0.62;
  pointer-events: none;
}

.private-credentials-box {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #ffffff;
}

.private-access-result {
  scroll-margin-top: 76px;
}

.private-credentials-box div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.private-credentials-box dt {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.private-credentials-box dd {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
  margin: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.share-operations-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.share-operations-heading span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 830;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.share-operations-heading strong {
  display: block;
  color: var(--brand-dark);
}

.share-operations-heading small {
  max-width: 260px;
  color: var(--muted);
  line-height: 1.35;
}

.share-operations ul {
  display: grid;
  gap: 5px;
  margin: 10px 0 12px;
  padding-left: 18px;
  color: var(--muted);
}

.share-flow-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.share-flow-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #eaded4;
  border-radius: var(--radius);
  background: #ffffff;
}

.share-flow-step > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #d7dce0;
  border-radius: 50%;
  color: var(--brand-dark);
  font-weight: 850;
}

.share-flow-step strong,
.share-flow-step p {
  margin: 0;
}

.share-flow-step p {
  margin-top: 2px;
  color: var(--muted);
  line-height: 1.35;
}

.share-flow-step.is-current {
  border-color: var(--brand-dark);
  background: #f7fbfd;
}

.share-flow-step.is-current > span {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  color: #ffffff;
}

.share-flow-step.is-done {
  border-color: #d8d9c8;
  background: #fbfcf4;
}

.share-flow-step.is-done > span {
  border-color: #cbd6c1;
  background: #eef1ea;
  color: var(--success);
}

.qr-box {
  width: min(168px, 100%);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.qr-box img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
}

.setup-layout {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.setup-form {
  display: grid;
  gap: 16px;
}

.couple-section-nav a strong,
.couple-section-nav a small {
  display: block;
}

.couple-section-nav a small {
  color: var(--muted);
  font-size: 0.76rem;
}

.couple-section-nav a.is-active {
  color: #ffffff;
  background: var(--brand-dark);
}

.couple-section-nav a.is-active small {
  color: rgba(255, 255, 255, 0.76);
}

.couple-section-nav .couple-details-nav-link {
  display: flex;
  align-items: center;
  min-height: 42px;
  align-self: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.setup-progress-header {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.setup-progress-header h2,
.setup-progress-header p {
  margin: 0;
}

.setup-progress-header h2 {
  margin-top: 3px;
  color: var(--brand-dark);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.12;
}

.setup-progress-header p:not(.eyebrow) {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.42;
}

.setup-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid #eadfd5;
  border-radius: var(--radius);
  background: #fffaf4;
}

.setup-jump-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #e1d6cb;
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-dark);
  font-size: 0.92rem;
  font-weight: 850;
  text-decoration: none;
}

.setup-jump-nav a:hover,
.setup-jump-nav a:focus-visible {
  border-color: #c86f5a;
  color: #7e2f23;
  outline: none;
}

.setup-focus-grid {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

.setup-timebox,
.setup-blockers,
.setup-density-control {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.setup-timebox {
  border-color: rgba(38, 111, 116, 0.3);
  background: linear-gradient(135deg, #f3fbfb, #ffffff);
}

.setup-timebox h3,
.setup-timebox p,
.setup-blockers h3,
.setup-blockers p,
.setup-density-control strong,
.setup-density-control small {
  margin: 0;
}

.setup-timebox p,
.setup-density-control small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.setup-timebox-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--brand-dark);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.setup-blockers {
  align-items: flex-start;
  border-color: #e9c574;
  background: #fff9e9;
}

.setup-blockers > strong {
  padding-top: 7px;
  color: #6f5312;
  font-size: 0.88rem;
  white-space: nowrap;
}

.setup-blocker-links {
  display: flex;
  flex: 1 1 360px;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.setup-blocker-links a {
  padding: 7px 10px;
  border: 1px solid #d8b04f;
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-dark);
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
}

.setup-density-control {
  background: #f8f7f3;
}

.setup-density-control .secondary-cta {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 12px;
}

[data-setup-optional][data-optional-hidden="true"] {
  display: none !important;
}

[data-setup-status][hidden],
[data-setup-blockers-panel][hidden] {
  display: none !important;
}

.create-list-time-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.setup-focus-grid a,
.setup-focus-grid button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: start;
  min-height: 116px;
  padding: 16px;
  border: 1px solid #d8d9c8;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0, #fbfcf4 100%);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(55, 62, 48, 0.04);
}

.setup-focus-grid button {
  width: 100%;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.setup-focus-grid a:hover,
.setup-focus-grid a:focus-visible,
.setup-focus-grid button:hover,
.setup-focus-grid button:focus-visible,
.setup-focus-grid button.is-active {
  border-color: #bfc3a9;
  box-shadow: 0 10px 22px rgba(55, 62, 48, 0.08);
  outline: none;
}

.setup-focus-grid button.is-active {
  background: linear-gradient(180deg, #ffffff 0, #edf6f6 100%);
  border-color: rgba(38, 111, 116, 0.42);
}

.setup-focus-grid span {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-weight: 900;
}

.setup-focus-grid strong,
.setup-focus-grid small {
  display: block;
}

.setup-focus-grid strong {
  color: var(--brand-dark);
}

.setup-focus-grid small {
  color: var(--muted);
  line-height: 1.35;
}

.setup-panel-stack {
  display: grid;
  gap: 12px;
}

.setup-panel-stack[hidden],
[data-setup-panel][hidden] {
  display: none;
}

.setup-submit-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr);
  gap: 10px;
  margin-top: 4px;
}

.setup-submit-primary {
  display: grid;
  gap: 4px;
}

.setup-submit-primary small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.setup-toggle {
  margin-top: 6px;
}

.setup-gift-list {
  position: relative;
  display: grid;
  gap: 11px;
  margin-top: 6px;
  padding: 16px;
  border: 1px solid #dfe6e8;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(31, 42, 55, 0.045);
  overflow: hidden;
}

.setup-gift-list::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #dce9e7;
}

.setup-gift-list > div:first-child {
  border-bottom: 1px solid #edf1f2;
  padding: 0 0 10px 8px;
}

.setup-step {
  scroll-margin-top: 92px;
}

.template-setup-banner {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid #dfe6e8;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(38, 111, 116, 0.08), rgba(24, 58, 89, 0.04)),
    #ffffff;
}

.template-setup-banner h3,
.template-setup-banner p {
  margin: 0;
}

.template-setup-banner h3 {
  color: var(--brand-dark);
}

.template-setup-banner p:not(.eyebrow) {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.template-setup-banner ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.template-setup-banner li {
  position: relative;
  padding-left: 24px;
  color: var(--text);
  font-weight: 760;
  line-height: 1.35;
}

.template-setup-banner li::before {
  position: absolute;
  left: 0;
  top: 0.38em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  box-shadow: inset 0 0 0 5px #ffffff;
  content: "";
}

.setup-step > div:first-child .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.setup-step > div:first-child .eyebrow span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.share-setup-section {
  border-color: #dfe6e8;
  background: linear-gradient(180deg, #ffffff 0, #f8fbfb 100%);
}

.setup-share-preview {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid #eadbd2;
  border-radius: var(--radius);
  background: #ffffff;
}

.setup-share-preview span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.setup-share-preview p {
  margin: 0;
  color: var(--brand-dark);
  line-height: 1.45;
}

.section-help {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.setup-story-prompt {
  display: grid;
  gap: 4px;
  padding: 11px 13px;
  border: 1px solid #dfe6e8;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0, #f8fbfb 100%);
}

.setup-story-prompt strong {
  color: var(--brand-dark);
}

.setup-story-prompt p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

.setup-decision-summary {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #d8d9c8;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0, #f7f8ef 100%);
}

.setup-decision-summary strong {
  color: var(--brand-dark);
}

.setup-decision-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

.setup-payment-step {
  border-color: #d9c4b5;
  background: #fffaf4;
}

.setup-payment-reminder {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid #e5d8ce;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: #fffdf9;
}

.setup-payment-reminder strong {
  color: var(--brand-dark);
}

.setup-payment-reminder p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

.setup-live-warning {
  display: grid;
  gap: 5px;
  margin: 0 0 14px;
  padding: 13px 14px;
  border: 1px solid #e6c7b8;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: #fff7f2;
}

.setup-live-warning strong {
  color: #7e2f23;
}

.setup-live-warning p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

@media (max-width: 760px) {
  .share-link-map {
    grid-template-columns: 1fr;
  }

  .setup-page-shell .work-guidance-card,
  .setup-page-shell .setup-timebox {
    display: none;
  }

  .setup-page-shell .work-guidance-card.is-published {
    display: grid;
  }

  .setup-page-shell .setup-blockers {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 10px;
    padding: 7px 9px;
  }

  .setup-page-shell .setup-blockers .eyebrow {
    display: none;
  }

  .setup-page-shell .setup-blockers h3 {
    font-size: 0.94rem;
  }

  .setup-page-shell .setup-blockers > strong {
    display: none;
  }

  .setup-page-shell .setup-blocker-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-bottom: 2px;
  }

  .setup-page-shell .setup-blocker-links a {
    flex: 1 1 auto;
    padding: 6px 8px;
    overflow-wrap: anywhere;
  }

  .setup-page-shell .setup-progress-header {
    margin-bottom: 8px;
    padding-bottom: 9px;
  }

  .setup-page-shell .setup-progress-header p:not(.eyebrow) {
    font-size: 0.9rem;
  }

  .setup-page-shell .setup-focus-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 10px;
  }

  .setup-page-shell .setup-focus-grid button {
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    min-height: 62px;
    padding: 7px 5px;
    text-align: center;
  }

  .setup-page-shell .setup-focus-grid button span {
    grid-row: auto;
    width: 24px;
    height: 24px;
    font-size: 0.74rem;
  }

  .setup-page-shell .setup-focus-grid button small {
    display: none;
  }

  .setup-page-shell .setup-gift-list {
    padding: 13px;
  }

  .setup-page-shell .setup-density-control {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 4px 0 0;
    padding: 7px 9px;
  }

  .setup-page-shell .setup-density-control > div {
    display: none;
  }

  .setup-page-shell .setup-density-control .secondary-cta {
    width: 100%;
  }

  .setup-blocker-links {
    justify-content: flex-start;
  }
}

.list-mode-options {
  display: grid;
  gap: 8px;
}

@media (min-width: 860px) {
  .list-mode-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mode-option {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.mode-option:has(input:checked) {
  border-color: #d99987;
  background: #fff0eb;
  box-shadow: inset 4px 0 0 #c66f5c;
}

.mode-option input {
  min-height: auto;
  margin-top: 3px;
}

.mode-option strong,
.mode-option small {
  display: block;
}

.mode-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
}

.cover-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f3eee7;
  aspect-ratio: 16 / 9;
  box-shadow: 0 12px 28px rgba(58, 42, 26, 0.08);
}

.is-primary-control {
  padding: 12px;
  border: 1px solid #d7dce0;
  border-radius: var(--radius);
  background: #fbf7f2;
}

.cover-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-control {
  display: grid;
  gap: 8px;
}

.cover-upload-box {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px dashed #d7b8ad;
  border-radius: var(--radius);
  background: #fff8f5;
}

.cover-upload-box input {
  border-color: #d7dce0;
  background: #ffffff;
}

.cover-upload-box p {
  margin: 0;
  line-height: 1.4;
}

.agency-brand-grid {
  display: grid;
  gap: 12px;
}

.agency-brand-upload {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px dashed #dccabe;
  border-radius: var(--radius);
  background: #fffdf8;
}

.agency-logo-preview {
  display: inline-grid;
  width: 70px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: var(--brand-dark);
  color: #ffffff;
  font-weight: 900;
}

.agency-logo-preview img,
.agency-photo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agency-photo-preview,
.agency-photo-placeholder {
  min-height: 150px;
  border-radius: var(--radius);
}

.agency-photo-preview {
  border: 1px solid #e1d2c8;
}

.agency-photo-placeholder {
  display: grid;
  place-items: center;
  border: 1px dashed #dccabe;
  background: #f8f1eb;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.cover-url-details {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.cover-url-details summary {
  width: fit-content;
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 800;
}

.cover-url-details label {
  display: block;
  margin-top: 10px;
}

.setup-gift-row {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.setup-gift-row.is-external-proposal {
  border-color: #d8c8bc;
  background: #fffaf4;
}

.setup-gift-toggle {
  margin: 0;
}

.bulk-import-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d8d9c8;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0, #f7f8ef 100%);
}

.bulk-import-heading {
  display: grid;
  gap: 10px;
}

.bulk-import-heading h4,
.bulk-import-heading p {
  margin: 0;
}

.bulk-import-heading h4 {
  color: var(--brand-dark);
  font-size: 1rem;
}

.bulk-import-heading p {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.42;
}

.bulk-import-heading > span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #d7dce0;
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 820;
}

.bulk-import-actions {
  display: flex;
  justify-content: flex-start;
}

.setup-collapse {
  border: 1px solid #d8d9c8;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(58, 42, 26, 0.04);
}

.setup-collapse summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 14px;
  align-items: center;
  min-height: 58px;
  padding: 12px 14px;
  color: var(--brand-dark);
  cursor: pointer;
  list-style: none;
}

.setup-collapse summary::-webkit-details-marker {
  display: none;
}

.setup-collapse summary::after {
  content: "+";
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 2;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #d7dce0;
  border-radius: 50%;
  background: #fbfcf4;
  color: var(--brand-dark);
  font-weight: 900;
}

.setup-collapse[open] summary::after {
  content: "-";
}

.setup-proposals-disclosure {
  border: 1px solid #d9cabb;
  border-radius: var(--radius-small);
  background: #fffaf5;
  overflow: clip;
}

.setup-proposals-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.setup-proposals-disclosure > summary::-webkit-details-marker {
  display: none;
}

.setup-proposals-disclosure > summary span:first-child {
  display: grid;
  gap: 3px;
}

.setup-proposals-disclosure > summary strong,
.setup-proposals-disclosure > summary small {
  display: block;
}

.setup-proposals-disclosure > summary small {
  color: var(--muted);
  font-weight: 650;
}

.setup-proposals-disclosure > summary .details-indicator {
  flex: 0 0 auto;
}

.setup-proposals-disclosure[open] > summary {
  border-bottom: 1px solid #e6d9cc;
}

.setup-proposals-disclosure[open] > summary .details-indicator {
  transform: rotate(45deg);
}

.setup-proposals-disclosure > .setup-gift-list {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.setup-collapse summary span,
.setup-collapse summary small {
  display: block;
  min-width: 0;
  grid-column: 1;
}

.setup-collapse summary span {
  font-weight: 850;
}

.setup-collapse summary small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 520;
  line-height: 1.35;
}

.setup-collapse-body {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
  border-top: 1px solid #eee5dc;
}

.setup-manual-gifts {
  background: linear-gradient(180deg, #ffffff 0, #fffdf8 100%);
}

.import-preview {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #dfe1d2;
}

.import-preview-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
  justify-content: space-between;
}

.import-preview-head strong {
  color: var(--brand-dark);
}

.import-preview-head span {
  color: var(--muted);
  font-size: 0.92rem;
}

.import-preview-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e0d8cf;
  border-radius: var(--radius);
  background: #ffffff;
}

.import-preview-row.has-issues {
  border-color: #e5bd7c;
  background: #fff8ea;
}

.import-preview-description {
  display: grid;
  gap: 6px;
}

.import-issue-list {
  margin: 0;
  padding-left: 18px;
  color: #7a4300;
  line-height: 1.35;
  font-weight: 720;
}

.setup-gift-description {
  display: grid;
  gap: 6px;
}

.setup-gift-hint {
  margin: 0;
}

.setup-status p {
  color: var(--muted);
  line-height: 1.45;
}

.publication-timeline {
  display: grid;
  gap: 10px;
  margin: 16px 0 4px;
  padding: 0;
  list-style: none;
}

.publication-timeline.compact {
  margin-bottom: 0;
}

.publication-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}

.publication-step span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--muted);
  font-weight: 850;
}

.publication-step strong,
.publication-step small {
  display: block;
}

.publication-step small {
  margin-top: 2px;
  font-size: 0.86rem;
}

.publication-step.is-done,
.publication-step.is-current {
  color: var(--text);
}

.publication-step.is-done span {
  border-color: #d8d9c8;
  background: #f2f3ea;
  color: var(--success);
}

.publication-step.is-current span {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.form-success {
  margin: 0 0 12px;
  border: 1px solid #d8d9c8;
  border-radius: var(--radius);
  background: #f2f3ea;
  color: #4f5f3d;
  font-weight: 750;
  line-height: 1.35;
  padding: 10px 12px;
}

.issue-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.publish-confirmation-form {
  display: grid;
  gap: 12px;
}

.publish-review {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #d8d9c8;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0, #fbfcf4 100%);
}

.publish-review .eyebrow {
  margin-bottom: 8px;
}

.publish-review dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.publish-review dl > div {
  display: grid;
  grid-template-columns: minmax(82px, 0.68fr) minmax(0, 1.32fr);
  gap: 10px;
  align-items: start;
}

.publish-review dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.publish-review dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: break-word;
  word-break: normal;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 800;
}

.publish-confirmation {
  margin: 0;
  align-items: flex-start;
}

.setup-guide-card {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 16px;
  border: 1px solid #d8c8bc;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0, #fffaf4 100%);
  box-shadow: 0 8px 20px rgba(58, 42, 26, 0.04);
}

.setup-guide-card h3,
.setup-guide-card p {
  margin: 0;
}

.setup-guide-card p:not(.eyebrow),
.setup-guide-card li {
  color: var(--muted);
  line-height: 1.4;
}

.setup-guide-card ul {
  display: grid;
  gap: 6px;
  margin: 4px 0 0;
  padding-left: 18px;
}

.pilot-ready-card {
  border-color: #d8d9c8;
  background: linear-gradient(180deg, #ffffff 0, #f7f8ef 100%);
}

.pilot-checklist {
  display: grid;
  gap: 10px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.pilot-checklist li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
}

.pilot-checklist strong,
.pilot-checklist small {
  display: block;
}

.pilot-checklist small {
  margin-top: 2px;
  color: var(--muted);
  line-height: 1.35;
}

.check-dot {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 2px solid #d7dce0;
  border-radius: 50%;
  background: #ffffff;
}

.check-dot.is-done {
  border-color: var(--success);
  background: radial-gradient(circle at center, var(--success) 0 42%, #ffffff 45%);
}

.link-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px dashed #d9c5bb;
  border-radius: var(--radius);
  background: #edf3f6;
}

.share-box > .link-box:only-child {
  grid-column: 1 / -1;
}

.link-box code {
  color: var(--brand-dark);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.52);
}

.modal-card {
  position: absolute;
  inset-inline: 10px;
  bottom: 10px;
  max-height: calc(100vh - 20px);
  overflow: auto;
  scrollbar-gutter: stable;
  background: var(--surface-strong);
  border-radius: 12px 12px var(--radius) var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 20px 20px;
}

.modal-card form {
  gap: 8px;
}

.modal-card h2 {
  margin-bottom: 2px;
}

.modal-card label {
  margin-top: 2px;
}

.modal-card input {
  min-height: 36px;
}

.modal-card textarea {
  min-height: 64px;
}

.modal-card .full-width {
  margin-top: 6px;
}

.modal-card form > .primary-cta.full-width {
  position: sticky;
  z-index: 3;
  bottom: -14px;
  box-shadow: 0 8px 18px rgba(24, 58, 89, 0.18);
}

body.modal-open {
    overflow: hidden;
}

.contributions-operation-message {
    margin: 0 18px 18px;
}

.mini-action-button.privacy-action {
    border-color: #d6b7a8;
    background: #fff8f4;
    color: #8b3f32;
}

.mini-action-button.privacy-action:hover {
    border-color: #b96756;
    background: #fff1ea;
}

.field-optional {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.confirmation > .primary-cta.full-width {
  position: sticky;
  bottom: 0;
  z-index: 1;
  box-shadow: 0 -10px 22px rgba(255, 255, 255, 0.92), 0 8px 18px rgba(24, 58, 89, 0.18);
}

.icon-button {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--text);
  cursor: pointer;
}

.modal-intro {
  display: grid;
  gap: 8px;
}

.modal-intro h2,
.modal-intro p {
  margin: 0;
}

.modal-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 4px 0 6px;
  padding: 0;
  list-style: none;
}

.modal-steps li {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface-muted);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 830;
}

.modal-steps span {
  display: inline-grid;
  flex: 0 0 auto;
  width: 20px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
}

.modal-field-card {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.amount-field-card input {
  background: #ffffff;
}

.modal-field-pair {
  display: grid;
  gap: 8px;
}

.modal-payment-hint {
  margin: 2px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.38;
}

.confirmation-hero {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  padding: 4px 0 8px;
}

.confirmation-hero > span {
  display: grid;
  width: 44px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success);
  font-size: 1.5rem;
  font-weight: 900;
}

.confirmation-hero h2,
.confirmation-hero p {
  margin: 0;
}

.confirmation-next-steps {
  display: grid;
  gap: 8px;
}

.confirmation-next-steps article {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.confirmation-next-steps strong,
.confirmation-next-steps span {
  display: block;
}

.confirmation-next-steps span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

form {
  display: grid;
  gap: 10px;
}

.form-error {
  margin: 0;
  border: 1px solid var(--warning-line);
  border-radius: var(--radius);
  background: var(--warning-bg);
  color: #7a4300;
  font-weight: 750;
  line-height: 1.35;
  padding: 10px 12px;
}

label {
  font-weight: 750;
  margin-top: 6px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  min-height: 44px;
  padding: 10px 12px;
  background: white;
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--brand);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(24, 58, 89, 0.12);
  outline: none;
}

textarea {
  resize: vertical;
}

.amount-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}

.amount-row span {
  color: var(--muted);
  font-weight: 800;
}

.checkbox-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.35;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  min-height: auto;
  margin-top: 2px;
  accent-color: var(--brand);
}

.full-width {
  width: 100%;
  margin-top: 10px;
}

.confirmation {
  display: grid;
  gap: 12px;
}

.payment-box {
  background: var(--surface-muted);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 14px;
}

.fine-print {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.94rem;
}

dl {
  margin: 0;
}

dl div + div {
  margin-top: 12px;
}

dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

dd {
  margin: 4px 0 0;
  font-weight: 750;
}

dd {
  display: grid;
  gap: 8px;
}

.copy-button {
  width: fit-content;
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 800;
  padding: 0 12px;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.app-install-card {
  position: static;
  display: grid;
  gap: 12px;
  max-width: 1180px;
  margin: 12px auto;
  padding: 14px;
  border: 1px solid #d8d9c8;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(33, 29, 27, 0.18);
}

.app-install-card strong,
.app-install-card p {
  margin: 0;
}

.app-install-card strong {
  display: block;
  color: var(--brand-dark);
}

.app-install-card p:not(.eyebrow) {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}

.app-install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 719px) {
  .app-install-card {
    max-width: none;
    margin: 12px;
  }
}

.has-confirm-open {
  overflow: hidden;
}

.app-confirm[hidden] {
  display: none;
}

.app-confirm {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
}

.app-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 58, 89, 0.32);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.app-confirm.is-open .app-confirm-backdrop {
  opacity: 1;
}

.app-confirm-card {
  position: relative;
  width: min(420px, 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fffdfa;
  box-shadow: 0 24px 70px rgba(20, 32, 42, 0.24);
  padding: 26px;
  text-align: center;
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.app-confirm.is-open .app-confirm-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.app-confirm-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #edf4f1;
  color: var(--green);
  font-weight: 900;
  font-size: 1.25rem;
}

.app-confirm.is-danger .app-confirm-icon {
  background: #f6ebe6;
  color: #8a3f32;
}

.app-confirm-card h2 {
  margin: 4px 0 10px;
  font-size: 1.45rem;
  letter-spacing: 0;
}

.app-confirm-card p:not(.eyebrow) {
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.app-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.app-confirm.is-danger [data-app-confirm-accept] {
  background: #8a3f32;
}

.app-confirm.is-danger [data-app-confirm-accept]:hover {
  background: #733328;
}

@media (max-width: 719px) {
  .private-access-result {
    gap: 8px;
    padding: 10px;
  }

  .private-access-result .private-credentials-box {
    gap: 6px;
    padding: 9px;
  }

  .private-access-result .private-credentials-box div {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 6px;
  }

  .private-access-result .private-credentials-box dd {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
  }

  .private-access-result .private-credentials-box .copy-button {
    min-height: 36px;
    padding: 6px 8px;
  }

  .dashboard-shell,
  .page-shell {
    width: 100%;
    min-width: 0;
  }

  .page-shell:has(.guest-mobile-action) {
    padding-bottom: 96px;
  }

  .guest-mobile-action {
    position: fixed;
    z-index: 45;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(118px, auto);
    gap: 8px;
    align-items: center;
    padding: 8px;
    border: 1px solid rgba(203, 214, 220, 0.92);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(13, 37, 61, 0.22);
    backdrop-filter: blur(14px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .guest-mobile-action.is-enhanced:not(.is-visible) {
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transform: translateY(calc(100% + 24px));
  }

  .guest-mobile-action strong,
  .guest-mobile-action span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .guest-mobile-action strong {
    color: var(--brand-dark);
    font-size: 0.88rem;
  }

  .guest-mobile-action span {
    color: var(--muted);
    font-size: 0.74rem;
  }

  .guest-mobile-action .primary-cta {
    min-height: 40px;
    justify-content: center;
    padding: 0 10px;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .public-hero {
    min-height: 500px;
  }

  .public-hero .hero-content {
    padding: 44px 18px 38px;
  }

  .public-hero h1 {
    font-size: clamp(2.8rem, 14vw, 4rem);
    max-width: min(12ch, 100%);
  }

  .draft-preview-notice {
    display: grid;
  }

  .draft-preview-notice .secondary-cta {
    width: 100%;
  }

  .unpublished-panel {
    align-content: start;
    min-height: auto;
    padding: 48px 18px;
  }

  .dashboard-topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .agency-strip {
    align-items: center;
  }

  .dashboard-topbar > div:not(.agency-logo) {
    min-width: 0;
  }

  .dashboard-topbar .eyebrow,
  .dashboard-topbar .agency-name {
    overflow-wrap: normal;
    word-break: normal;
  }

  .topbar-actions {
    grid-column: 1 / -1;
    margin-left: 0;
    gap: 8px;
    justify-content: flex-start;
    font-size: 0.92rem;
  }

  .dashboard-hero h1 {
    max-width: none;
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .work-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .couple-private-points {
    grid-template-columns: 1fr;
  }

  .couple-area-shell {
    display: flex;
    flex-direction: column;
  }

  .couple-area-shell .couple-hub-strip {
    order: 1;
  }

  .couple-area-shell .couple-section-nav {
    order: 2;
  }

  .couple-area-shell .couple-area-layout {
    order: 3;
  }

  .couple-area-shell .guest-share-panel {
    order: 4;
  }

  .couple-area-shell .couple-memory-card {
    order: 5;
  }

  .couple-area-shell .couple-details-disclosure {
    order: 6;
  }

  .couple-area-shell .couple-journey-timeline {
    order: 7;
  }

  .couple-area-shell .couple-reassurance {
    order: 8;
  }

  .couple-area-shell .couple-details-section,
  .couple-area-shell .contribution-page-panel {
    order: 9;
  }

  .couple-area-shell .operator-context-bar {
    margin: 10px 8px 0;
    padding: 12px;
  }

  .couple-area-shell .dashboard-hero {
    padding: 22px 14px 16px;
  }

  .couple-area-shell .dashboard-hero h1 {
    font-size: clamp(2.15rem, 13vw, 3.2rem);
    line-height: 0.96;
  }

  .couple-area-shell .dashboard-hero .event-date {
    line-height: 1.35;
  }

  .couple-area-shell .dashboard-actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .couple-area-shell .dashboard-actions .secondary-button {
    grid-column: 1 / -1;
  }

  .couple-area-shell .guest-share-panel,
  .couple-area-shell .panel,
  .couple-area-shell .funding-dashboard-panel,
  .couple-area-shell .contribution-page-panel {
    margin-inline: 8px;
  }

  .couple-area-shell .panel,
  .couple-area-shell .guest-share-panel,
  .couple-area-shell .funding-dashboard-panel {
    padding: 14px;
  }

  .couple-memory-card {
    margin: 0 8px 10px;
  }

  .couple-memory-image {
    min-height: 156px;
  }

  .couple-memory-copy {
    gap: 9px;
    padding: 14px;
  }

  .couple-memory-copy h2 {
    font-size: 1.35rem;
  }

  .couple-private-points {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .couple-private-points article {
    padding: 8px 10px;
  }

  .couple-hub-strip {
    gap: 8px;
    margin: 0 8px 10px;
  }

  .couple-next-card,
  .couple-agency-card,
  .couple-latest-message {
    gap: 7px;
    padding: 12px;
  }

  .couple-next-card h2,
  .couple-agency-card h2 {
    font-size: 1.12rem;
    line-height: 1.16;
  }

  .couple-next-card p,
  .couple-agency-card p,
  .couple-latest-message blockquote {
    line-height: 1.38;
  }

  .couple-agency-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .couple-agency-media {
    width: 38px;
  }

  .couple-section-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 8px 10px;
    padding: 3px;
  }

  .couple-section-nav a {
    min-height: 54px;
    padding: 7px 6px;
    font-size: 0.84rem;
    text-align: center;
  }

  .couple-section-nav .couple-details-nav-link {
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 30px;
    padding-block: 4px;
  }

  .couple-journey-timeline {
    gap: 9px;
    margin: 0 8px 10px;
    padding: 12px;
  }

  .journey-steps {
    gap: 6px;
  }

  .journey-step {
    gap: 8px;
    padding: 8px;
  }

  .journey-step > span {
    width: 26px;
  }

  .journey-step p {
    line-height: 1.32;
  }

  .couple-reassurance {
    gap: 6px;
    margin: 0 8px 10px;
  }

  .couple-reassurance article {
    padding: 10px 12px;
  }

  .couple-details-section {
    gap: 10px;
    margin: 0 8px 10px;
  }

  .couple-details-section > .panel-heading {
    padding-inline: 4px;
  }

  .couple-area-shell .metric-card {
    padding: 12px;
  }

  .couple-area-shell .metric-card strong {
    font-size: 1.25rem;
  }

  .couple-area-shell .share-box {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .couple-area-shell .qr-box {
    width: min(132px, 100%);
  }

  .couple-area-shell .guest-share-panel .link-box {
    gap: 8px;
  }

  .couple-area-shell .contribution-row-detailed,
  .couple-area-shell .dedication-card {
    padding: 12px;
  }

  .setup-submit-actions {
    grid-template-columns: 1fr;
  }

  .operator-context-bar,
  .dashboard-hero,
  .work-guidance-card,
  .dashboard-panel-tabs,
  .public-link-panel,
  .panel,
  .lists-layout,
  .setup-layout {
    min-width: 0;
  }

  .dashboard-actions {
    width: 100%;
  }

  .dashboard-actions > * {
    flex: 1 1 auto;
  }

  .funding-actions {
    grid-template-columns: 1fr;
  }

  .section-block--primary-funding {
    padding: 30px 14px 34px;
  }

  .funding-goal-card {
    gap: 12px;
    margin-bottom: 22px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(74, 43, 35, 0.08);
  }

  .funding-goal-copy h2 {
    font-size: 1.45rem;
    line-height: 1.08;
  }

  .contribution-promise {
    margin-top: 10px;
  }

  .funding-progress {
    margin-top: 12px;
  }

  .funding-actions {
    gap: 8px;
    padding: 12px;
  }

  .funding-actions-title {
    margin-bottom: 0;
    letter-spacing: 0.04em;
  }

  .funding-actions-helper {
    margin-bottom: 2px;
  }

  .funding-actions .gift-action {
    min-height: 44px;
    font-size: 0.98rem;
  }

  .modal-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .modal {
    z-index: 60;
  }

  .modal-card {
    inset-inline: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    max-height: calc(100dvh - 16px - env(safe-area-inset-bottom));
    padding: 12px 14px 14px;
    border-radius: 14px 14px 10px 10px;
  }

  .modal-card form {
    gap: 7px;
  }

  .modal-card input {
    min-height: 40px;
  }

  .modal-card textarea {
    min-height: 88px;
  }

  .modal-card form > .primary-cta.full-width,
  .confirmation > .primary-cta.full-width {
    min-height: 44px;
    margin-top: 8px;
  }

  .modal-intro {
    gap: 6px;
  }

  .modal-intro h2 {
    font-size: 1.35rem;
    line-height: 1.12;
  }

  .modal-steps {
    gap: 5px;
    margin: 2px 0 4px;
  }

  .modal-steps li {
    min-height: 34px;
    padding: 6px 8px;
    justify-content: center;
    text-align: center;
  }

  .modal-field-card {
    gap: 5px;
    padding: 9px;
  }

  .confirmation-hero {
    padding-top: 0;
  }

  .confirmation-next-steps article {
    padding: 9px 10px;
  }

  .task-row {
    grid-template-columns: auto 1fr;
  }

  .task-row .mini-action-button {
    grid-column: 2;
    width: fit-content;
  }

  .list-actions {
    justify-content: flex-start;
  }

  .lists-layout {
    display: flex;
    flex-direction: column;
  }

  .list-portfolio-panel {
    order: -1;
  }

  .list-secondary-actions > div {
    left: 0;
    right: auto;
  }

  .share-flow-step {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .share-flow-step .inline-action-form {
    grid-column: 2;
  }

  .share-flow-step .mini-action-button {
    width: 100%;
  }

  .app-install-actions > * {
    flex: 1 1 auto;
  }
}

@media (min-width: 720px) {
  .setup-page-shell > .dashboard-hero {
    display: none;
  }

  .setup-page-shell .setup-layout > .panel > .panel-heading {
    display: none;
  }

  .setup-page-shell .setup-focus-grid button {
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    min-height: 56px;
  }

  .setup-page-shell .setup-focus-grid button small,
  .setup-page-shell .setup-density-control > div {
    display: none;
  }

  .setup-page-shell .setup-density-control {
    justify-content: flex-end;
  }

  .hero {
    grid-template-columns: minmax(280px, 0.92fr) 1fr;
    align-items: stretch;
  }

  .hero-photo {
    height: 460px;
    min-height: 460px;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
  }

  .public-hero {
    grid-template-columns: 1fr;
  }

  .public-hero .hero-photo {
    height: 100%;
    min-height: 100%;
  }

  .public-hero .hero-content {
    display: grid;
    justify-content: start;
    padding: 72px 64px 58px;
  }

  .unpublished-panel {
    padding: 54px 42px;
  }

  .trust-panel {
    grid-template-columns: repeat(2, 1fr);
  }

  .guest-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guest-steps header {
    grid-column: 1 / -1;
  }

  .story-band {
    grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
    align-items: center;
    padding: 42px;
  }

  .section-block {
    padding: 42px;
  }

  .gift-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .funding-goal-card {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
    align-items: start;
  }

  .modal-card {
    inset: 50%;
    transform: translate(-50%, -50%);
    width: min(640px, calc(100vw - 28px));
    max-height: min(760px, calc(100vh - 48px));
    bottom: auto;
    border-radius: var(--radius);
  }

  .modal-field-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-hero {
    grid-template-columns: 1fr auto;
    align-items: end;
    padding: 34px 28px;
  }

  .metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 20px 28px;
  }

  .dashboard-shell > .payment-configuration-alert {
    margin-inline: 28px;
  }

  .ops-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 28px 20px;
  }

  .work-guidance-card {
    grid-template-columns: minmax(260px, 1fr) minmax(340px, 0.9fr) auto;
    margin: 0 28px 20px;
  }

  .setup-visual-brief {
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
    margin: 0 28px 20px;
  }

  .setup-visual-cover {
    min-height: 260px;
  }

  .setup-visual-copy {
    padding: 28px;
  }

  .dashboard-layout {
    grid-template-columns: 0.92fr 1.08fr;
    padding: 0 28px 20px;
  }

  .funding-dashboard-panel {
    margin: 0 28px 20px;
  }

  .funding-dashboard-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .couple-hub-strip {
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.8fr) minmax(240px, 0.75fr);
    align-items: stretch;
    margin: 20px 28px;
  }

  .couple-memory-card {
    grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr);
    align-items: stretch;
    margin: 0 28px 20px;
  }

  .couple-memory-image {
    min-height: 320px;
  }

  .couple-section-nav {
    margin: 0 28px 20px;
    width: fit-content;
  }

  .couple-journey-timeline {
    margin: 0 28px 20px;
  }

  .couple-details-section {
    margin: 0 28px 20px;
  }

  .journey-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lists-layout {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    padding: 20px 28px;
  }

  .contribution-row,
  .list-row,
  .operator-user-row {
    grid-template-columns: 1fr auto;
  }

  .list-actions,
  .operator-user-actions {
    justify-content: flex-end;
  }

  .operator-user-actions {
    grid-template-columns: minmax(220px, 280px) auto;
  }

  .admin-users-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(390px, 0.9fr);
  }

  .admin-users-layout .operator-user-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-users-layout .operator-user-actions {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-content: stretch;
  }

  .contribution-page-panel {
    margin: 0 28px;
  }

  .amount-status {
    justify-items: end;
    text-align: right;
  }

  .public-link-panel {
    grid-template-columns: 1fr minmax(280px, 0.8fr);
    align-items: center;
    margin: 0 28px;
  }

  .couple-reassurance {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 28px 20px;
  }

  .share-box {
    grid-template-columns: 148px 1fr;
    align-items: center;
  }

  .setup-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    padding: 20px 28px;
  }

  .setup-layout:has(> .setup-status[hidden]) {
    grid-template-columns: minmax(0, 1fr);
  }

  .setup-focus-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .setup-status {
    position: sticky;
    top: 82px;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .setup-gift-row {
    grid-template-columns: minmax(96px, 0.35fr) minmax(170px, 0.85fr) minmax(180px, 1fr) minmax(110px, 0.45fr) minmax(210px, 1fr);
    align-items: end;
  }

  .bulk-import-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .import-preview-row {
    grid-template-columns: minmax(160px, 0.9fr) minmax(180px, 1fr) minmax(110px, 0.45fr) minmax(210px, 1fr);
    align-items: end;
  }

  .import-preview-description,
  .import-issue-list {
    grid-column: 1 / -1;
  }

  .setup-gift-description {
    grid-column: 1 / -1;
  }
}
/* Navigation clarity V1 */
.operator-context-bar {
  display: grid;
  gap: 14px;
  margin: 14px 16px 0;
  padding: 14px;
  border: 1px solid rgba(24, 58, 89, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(24, 58, 89, 0.08);
}

.operator-context-bar > div {
  display: grid;
  gap: 4px;
}

.operator-context-bar strong {
  color: var(--ink);
  font-size: 1.02rem;
}

.operator-context-bar span:not(.mode-chip):not(.context-label) {
  color: var(--muted);
}

.context-label {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.context-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.context-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(24, 58, 89, 0.18);
  background: #ffffff;
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
}

.mode-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;
}

.mode-edit { border-color: #d8c8fb; background: #f3efff; color: #6540a7; }
.mode-manage { border-color: #c6d5e2; background: #eef4f8; color: #183a59; }
.mode-preview { border-color: #efcdc5; background: #fff2ef; color: #934f40; }
.mode-couple { border-color: #c5ded7; background: #edf7f4; color: #246553; }

.public-context-bar,
.couple-context-bar {
  margin-bottom: 18px;
}

@media (min-width: 860px) {
  .operator-context-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin: 18px 28px 0;
  }

  .public-context-bar,
  .couple-context-bar {
    margin-left: 0;
    margin-right: 0;
  }
}

.gift-card-note {
    margin-top: 0.65rem;
    font-size: 0.86rem;
    color: #6f665d;
    line-height: 1.45;
}

.external-proposal .gift-card-note {
    border-left: 3px solid rgba(138, 116, 86, 0.35);
    padding-left: 0.75rem;
}
.approval-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.approval-share-actions button,
.approval-share-actions .mini-action-button {
  min-height: 38px;
}

.icon-action {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  justify-content: center;
}

.share-icon {
  align-items: center;
  background: #eef4f7;
  border: 1px solid #c9d7df;
  border-radius: 999px;
  color: var(--brand);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  line-height: 1;
  width: 24px;
}

.wa-icon {
  background: #e8f7ef;
  border-color: #9ed9bb;
  color: #087a44;
  font-size: 0.68rem;
}
/* The language control is server-rendered so the first paint already matches the saved culture. */
.language-selector {
    position: fixed;
    z-index: 20;
    top: max(0.75rem, env(safe-area-inset-top));
    right: max(0.75rem, env(safe-area-inset-right));
    display: inline-flex;
    padding: 0.2rem;
    border: 1px solid rgba(24, 58, 89, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 0.2rem 0.75rem rgba(24, 58, 89, 0.12);
}

.language-option {
    display: inline-flex;
    gap: 0.3rem;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.35rem 0.55rem;
    border: 0;
    border-radius: 999px;
    color: #183a59;
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.language-option:focus-visible { outline: 3px solid #d2774d; outline-offset: 2px; }
.language-option.is-selected { color: #fff; background: #183a59; }

.language-flag {
    display: block;
    width: 18px;
    height: 12px;
    border: 1px solid rgba(24, 58, 89, 0.16);
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 1px 2px rgba(24, 58, 89, 0.14);
}

.language-option.is-selected .language-flag { border-color: rgba(255, 255, 255, 0.5); }

.operator-language-selector {
  position: static;
  z-index: auto;
  align-self: center;
  margin-left: 2px;
  box-shadow: none;
}

@media (max-width: 420px) {
    .language-selector { top: max(0.4rem, env(safe-area-inset-top)); right: max(0.4rem, env(safe-area-inset-right)); }
    .language-option { min-height: 2rem; padding-inline: 0.4rem; font-size: 0.82rem; }
}

.lists-new-list-shortcut {
  width: fit-content;
  margin-top: 14px;
}

/* Operator mobile: optimise for the next task, not for page exposition. */
@media (max-width: 719px) {
  .page-shell > .agency-strip {
    flex-wrap: wrap;
    padding-right: 124px;
  }

  .page-shell > .agency-strip .agency-contact {
    flex: 1 0 100%;
    margin-left: 52px;
  }

  .agency-admin-list {
    padding: 0 14px 20px;
  }

  .agency-admin-list .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .agency-admin-list .agency-admin-heading,
  .agency-admin-list .status-summary {
    width: 100%;
  }

  .agency-admin-list .status-summary {
    justify-content: flex-start;
  }

  .dashboard-topbar {
    gap: 9px;
    padding: 10px 14px 8px;
  }

  .dashboard-topbar .agency-logo {
    width: 36px;
    height: 36px;
  }

  .dashboard-topbar .eyebrow {
    display: none;
  }

  .dashboard-topbar .agency-name {
    padding-right: 0;
    font-size: 0.96rem;
    line-height: 1.15;
  }

  .topbar-actions {
    flex-wrap: nowrap;
    gap: 14px;
    max-width: 100%;
    padding: 6px 0 2px;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .topbar-actions::-webkit-scrollbar {
    display: none;
  }

  .dashboard-topbar.has-mobile-menu {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }

  .dashboard-topbar.has-mobile-menu .agency-name {
    padding-right: 0;
  }

  .operator-topbar .operator-mobile-brand {
    display: inline;
  }

  .operator-topbar .operator-agency-context {
    display: none;
  }

  .topbar-menu-toggle {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    justify-self: end;
    min-height: 38px;
    margin-right: 0;
    padding: 7px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--brand-dark);
    background: var(--surface-strong);
    font-weight: 800;
    cursor: pointer;
  }

  .dashboard-topbar.has-mobile-menu .topbar-actions {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--surface-muted);
    overflow: visible;
    white-space: normal;
  }

  .operator-language-selector {
    grid-column: 4;
    grid-row: 1;
    margin-left: 0;
  }

  .dashboard-topbar.has-mobile-menu.is-menu-open .topbar-actions {
    display: grid;
  }

  .dashboard-topbar.has-mobile-menu .topbar-actions .secondary-link,
  .dashboard-topbar.has-mobile-menu .topbar-logout .secondary-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 6px 8px;
    border: 1px solid var(--line-soft);
    border-radius: 7px;
    background: var(--surface-strong);
    text-align: center;
  }

  .dashboard-topbar.has-mobile-menu .topbar-logout,
  .dashboard-topbar.has-mobile-menu .topbar-logout button {
    width: 100%;
  }

  .dashboard-shell:not(.couple-area-shell) > .operator-context-bar {
    display: none;
  }

  .dashboard-shell:not(.couple-area-shell) > .dashboard-hero {
    gap: 10px;
    padding: 16px 14px 14px;
  }

  .dashboard-shell:not(.couple-area-shell) > .dashboard-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 10vw, 2.65rem);
    line-height: 1;
  }

  .dashboard-shell:not(.couple-area-shell) > .dashboard-hero .event-date {
    margin-top: 8px;
    font-size: 0.98rem;
    line-height: 1.35;
  }

  .dashboard-shell:not(.couple-area-shell) > .dashboard-hero .hero-status-card {
    display: none;
  }

  .dashboard-shell:not(.couple-area-shell) > .dashboard-hero .dashboard-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .dashboard-shell:not(.couple-area-shell) > .dashboard-hero .dashboard-actions > * {
    width: auto;
    min-width: 0;
    min-height: 44px;
    padding-inline: 13px;
    text-align: center;
  }

  .dashboard-shell:not(.couple-area-shell) > .dashboard-hero .dashboard-actions > .dashboard-primary-action {
    min-height: 0;
    padding: 0;
  }

  .dashboard-primary-action .primary-cta {
    width: 100%;
    min-height: 44px;
  }

  .work-guidance-card {
    gap: 10px;
    margin: 12px 14px;
    padding: 13px;
  }

  .work-guidance-card h2 {
    font-size: 1.08rem;
  }

  .work-guidance-card p:not(.eyebrow) {
    font-size: 0.92rem;
    line-height: 1.32;
  }

  .work-stepper {
    display: flex;
    gap: 6px;
  }

  .work-stepper li {
    flex: 1 1 0;
    min-height: 34px;
    padding: 4px;
  }

  .work-stepper span {
    width: 24px;
    height: 24px;
  }

  .work-stepper strong,
  .work-stepper small {
    display: none;
  }

  .work-guidance-card .guidance-primary-action {
    display: none;
  }

  .work-guidance-card .guidance-primary-action.is-payment-recovery {
    display: inline-flex;
  }

  .setup-visual-brief {
    display: none;
  }

  .dashboard-shell.setup-page-shell > .dashboard-hero .dashboard-actions,
  .dashboard-shell.lists-page-shell > .dashboard-hero .dashboard-actions {
    display: none;
  }

  .setup-layout {
    padding-top: 0;
  }

  .setup-layout > .panel {
    border-radius: 0;
    border-inline: 0;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 14px;
  }

  .dashboard-shell > .payment-configuration-alert {
    margin-inline: 14px;
  }

  .metric-card {
    min-height: 82px;
    padding: 12px;
  }

  .metric-card strong {
    font-size: 1.3rem;
  }

  .list-portfolio-panel .panel-heading {
    display: grid;
    align-items: start;
    gap: 10px;
  }

  .list-portfolio-panel .panel-heading h2 {
    overflow-wrap: normal;
    word-break: normal;
  }

  .list-portfolio-panel .list-view-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .list-portfolio-panel .list-view-tabs a {
    justify-content: center;
    min-width: 0;
    padding-inline: 7px;
  }
}

/* Guest and couple mobile: expose the task first and disclose supporting detail on demand. */
@media (max-width: 719px) {
  .public-hero {
    min-height: 440px;
  }

  .public-hero .hero-content {
    padding: 34px 18px 30px;
  }

  .trust-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-panel > div {
    padding: 12px 14px;
  }

  .guest-steps header {
    padding: 14px 16px;
  }

  .guest-steps-toggle {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--brand-dark);
    background: var(--surface-strong);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 820;
    white-space: nowrap;
    cursor: pointer;
  }

  .guest-steps .guest-steps-toggle span {
    display: inline;
    width: auto;
    height: auto;
    border-radius: 0;
    color: inherit;
    background: transparent;
    font-size: 1.1rem;
    line-height: 1;
  }

  .guest-steps.is-collapsed article {
    display: none;
  }

  .couple-area-shell .couple-context-bar,
  .couple-area-shell .topbar-actions[data-no-mobile-menu],
  .couple-area-shell .couple-pdf-action,
  .couple-area-shell .couple-agency-card,
  .couple-area-shell .couple-latest-message {
    display: none;
  }

  .couple-area-shell .couple-approval-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .couple-area-shell .couple-approval-panel .primary-cta {
    width: 100%;
  }

  .couple-area-shell .dashboard-hero {
    gap: 10px;
    padding-top: 16px;
  }

  .couple-area-shell .dashboard-hero .dashboard-actions {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .couple-area-shell .dashboard-hero .dashboard-actions .secondary-button {
    grid-column: auto;
  }

  .couple-area-shell .couple-hub-strip {
    margin-top: 10px;
  }

  .couple-section-nav {
    position: sticky;
    z-index: 15;
    top: calc(max(0.4rem, env(safe-area-inset-top)) + 2.4rem);
    background: rgba(247, 250, 249, 0.96);
    box-shadow: 0 6px 18px rgba(13, 37, 61, 0.08);
    backdrop-filter: blur(12px);
  }

  .couple-section-nav a.is-active {
    color: #ffffff;
    background: var(--brand-dark);
  }
}

@media (max-width: 900px) {
  .lists-page-shell .lists-hero-signature {
    display: none;
  }

  .lists-cockpit {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 12px 4px;
  }

  .lists-cockpit-card {
    gap: 12px;
    min-height: 92px;
    padding: 14px 16px;
    border-radius: 18px;
  }

  .lists-cockpit-icon {
    width: 44px;
    height: 44px;
  }

  .lists-cockpit-icon svg {
    width: 24px;
    height: 24px;
  }

  .lists-cockpit-copy strong {
    font-size: 1.25rem;
  }
}

@media (max-width: 719px) {
  .lists-page-shell > .lists-hero {
    padding-block: 14px 12px;
  }

  .lists-page-shell > .lists-hero h1 {
    font-size: clamp(1.85rem, 9vw, 2.35rem);
  }

  .lists-page-shell > .lists-hero .event-date {
    max-width: 30rem;
    margin-top: 6px;
  }

  .lists-page-shell .lists-layout {
    gap: 10px;
    padding: 12px;
  }

  .lists-page-shell .list-portfolio-panel {
    order: 1;
  }

  .create-list-summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 14px;
  }

  .create-list-summary .panel-copy {
    display: none;
  }

  .create-list-content {
    padding: 14px;
  }
}

/* Shared operator content system. The topbar, page hero, cards and forms must
   read as one product across every authenticated operator surface. */
.operator-page-shell {
  --operator-content-gutter: 28px;
}

.operator-page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #ffffff;
  background: var(--operator-hero-background);
  border-bottom: 0;
}

.operator-page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.operator-page-hero > * {
  position: relative;
  z-index: 1;
}

.operator-page-hero h1 {
  color: #ffffff;
}

.operator-page-shell .operator-page-hero .eyebrow,
.operator-page-shell .operator-page-hero .event-date {
  color: #ffffff;
}

.operator-page-hero .hero-status-card {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 36px rgba(5, 21, 34, 0.18);
  backdrop-filter: blur(12px);
}

.operator-page-hero .hero-status-card span,
.operator-page-hero .hero-status-card strong,
.operator-page-hero .hero-status-card p {
  color: #ffffff;
}

.operator-page-hero .primary-cta {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--brand-dark);
  box-shadow: 0 12px 28px rgba(5, 21, 34, 0.22);
}

.operator-page-hero .primary-cta:hover {
  background: #f4f8fa;
}

.operator-page-hero .secondary-cta {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.operator-page-hero .secondary-cta:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.operator-page-shell .panel,
.operator-page-shell .metric-card {
  border-color: var(--operator-panel-line);
  border-radius: var(--operator-radius);
  box-shadow: var(--operator-panel-shadow);
}

.operator-page-shell .panel {
  background: linear-gradient(180deg, #ffffff 0%, #fdfefe 100%);
}

.operator-page-shell .metric-card {
  background: linear-gradient(180deg, #ffffff 0%, #fafcfc 100%);
}

.operator-page-shell .operator-user-row,
.operator-page-shell .setup-gift-list,
.operator-page-shell .setup-step {
  border-radius: 12px;
}

.operator-page-shell .operator-user-row {
  border-color: var(--operator-panel-line);
  background: #ffffff;
  box-shadow: 0 7px 18px rgba(13, 37, 61, 0.045);
}

.operator-page-shell .setup-form input,
.operator-page-shell .setup-form select,
.operator-page-shell .setup-form textarea {
  border-radius: 10px;
  background: #fcfdfd;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.operator-page-shell .setup-form input:focus,
.operator-page-shell .setup-form select:focus,
.operator-page-shell .setup-form textarea:focus {
  border-color: #6b91a8;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(24, 58, 89, 0.08);
}

.operator-page-shell .status-summary span {
  border-color: var(--operator-panel-line);
  background: var(--surface-muted);
}

.operator-page-shell > .panel {
  margin: 20px var(--operator-content-gutter);
}

.operator-page-shell .operator-content-single {
  grid-template-columns: minmax(0, 1fr);
}

.operator-page-shell .operator-content-single > .panel {
  width: min(760px, 100%);
  margin-inline: auto;
}

.operator-page-shell.setup-page-shell > .operator-context-bar {
  display: none;
}

@media (min-width: 720px) {
  .operator-page-shell.setup-page-shell > .operator-page-hero {
    display: grid;
    min-height: 156px;
    padding-block: 24px;
  }
}

@media (min-width: 720px) and (max-width: 1099px) {
  .operator-topbar.has-mobile-menu {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 10px;
    padding: 10px 14px;
  }

  .operator-topbar .topbar-menu-toggle {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    justify-self: end;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--brand-dark);
    background: var(--surface-strong);
    font-weight: 800;
    cursor: pointer;
  }

  .operator-topbar.has-mobile-menu .topbar-actions {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--surface-muted);
  }

  .operator-topbar .operator-language-selector {
    grid-column: 4;
    grid-row: 1;
    margin-left: 0;
  }

  .operator-topbar.has-mobile-menu.is-menu-open .topbar-actions {
    display: grid;
  }

  .operator-topbar.has-mobile-menu .topbar-actions .secondary-link,
  .operator-topbar.has-mobile-menu .topbar-logout .secondary-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 6px 8px;
    border: 1px solid var(--line-soft);
    border-radius: 7px;
    background: var(--surface-strong);
    text-align: center;
  }

  .operator-topbar.has-mobile-menu .topbar-logout,
  .operator-topbar.has-mobile-menu .topbar-logout button {
    width: 100%;
  }

  .operator-page-hero .hero-status-card {
    width: min(320px, 100%);
    max-width: 320px;
  }
}

@media (min-width: 720px) and (max-width: 1023px) {
  .setup-page-shell .work-guidance-card.is-published {
    grid-template-columns: minmax(220px, 0.8fr) minmax(340px, 1.2fr);
  }

  .setup-page-shell .work-guidance-card.is-published .setup-completion-actions {
    grid-column: 1 / -1;
  }

  .operator-page-shell .setup-layout,
  .operator-page-shell .admin-users-layout,
  .operator-page-shell .dashboard-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .operator-page-shell .setup-status {
    position: static;
  }

  .operator-page-shell .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 719px) {
  .contribution-history-panel .panel-heading {
    display: grid;
    align-items: start;
  }

  .contribution-history-panel .panel-heading h2 {
    overflow-wrap: normal;
    word-break: normal;
  }

  .contribution-history-panel .panel-actions {
    justify-content: flex-start;
  }

  .error-recovery-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .operator-page-shell {
    --operator-content-gutter: 14px;
  }

  .operator-page-shell > .operator-page-hero {
    min-height: 132px;
    padding: 22px 14px 18px;
  }

  .operator-page-shell > .operator-page-hero h1 {
    font-size: clamp(2.05rem, 10vw, 2.7rem);
  }

  .operator-page-shell > .panel {
    margin: 14px var(--operator-content-gutter);
  }

  .operator-page-shell .setup-layout {
    gap: 14px;
    padding: 14px;
  }

  .operator-page-shell .setup-layout > .panel {
    border: 1px solid var(--operator-panel-line);
    border-radius: var(--operator-radius);
  }
}
