.wedding-app {
  --ink: #071a5f;
  --muted: #536284;
  --paper: #fff9ed;
  --surface: #ffffff;
  --line: #eadfd0;
  --teal: #079aa6;
  --teal-dark: #057985;
  --pink: #ef2d6f;
  --gold: #f5a800;
  --green: #5f8f2f;
  --soft-teal: #e0f5f5;
  --soft-pink: #ffe5ee;
  --shadow: 0 18px 45px rgba(7, 26, 95, .10);
  --radius: 8px;
}

.wedding-app,
.wedding-app * {
  box-sizing: border-box;
}

.wedding-app {
  margin: 0;
  background:
    radial-gradient(circle at 0 18%, rgba(7, 154, 166, .12), transparent 24%),
    radial-gradient(circle at 100% 6%, rgba(245, 168, 0, .15), transparent 20%),
    radial-gradient(circle at 94% 82%, rgba(239, 45, 111, .10), transparent 22%),
    var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  width: 100%;
  max-width: none;
  container: wedding-layout / inline-size;
  overflow-wrap: anywhere;
}

.wedding-app button,
.wedding-app input,
.wedding-app textarea {
  font: inherit;
}

.wedding-app button {
  cursor: pointer;
}

.wedding-app {
  min-height: 100vh;
}

.wedding-app .hero {
  width: min(1180px, calc(100% - 32px));
  min-height: 420px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
  padding: 62px 0 42px;
}

.wedding-app .hero-content {
  max-width: 820px;
}

.wedding-app .eyebrow,
.wedding-app .section-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 14px;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: var(--radius);
  background: var(--gold);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.wedding-app h1,
.wedding-app h2,
.wedding-app h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
  letter-spacing: 0;
}

.wedding-app h1 {
  max-width: 880px;
  font-size: clamp(2rem, 5vw, 4rem) !important;
  line-height: 1.15 !important;
}

.wedding-app h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
}

.wedding-app h3 {
  font-size: 21px;
  line-height: 1.18;
}

.wedding-app .lead {
  max-width: 760px;
  margin: 20px 0 0;
  color: #273260;
  font-size: 20px;
  font-weight: 700;
}

.wedding-app .hero-guide {
  display: block;
  max-width: 820px;
  margin: 22px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--teal);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .78);
  color: #24304d;
  box-shadow: 0 10px 24px rgba(7, 26, 95, .06);
}

.wedding-app .hero-guide p {
  display: block;
  margin: 0;
  font-weight: 750;
}

.wedding-app .hero-guide p + p {
  margin-top: 10px;
}

.wedding-app .hero-guide ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
}

.wedding-app .hero-guide li {
  color: #24304d;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 720;
}

.wedding-app .hero-actions,
.wedding-app .export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.wedding-app .button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.wedding-app .button:hover {
  transform: translateY(-1px);
}

.wedding-app .button.primary {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 12px 24px rgba(239, 45, 111, .22);
}

.wedding-app .button.secondary,
.wedding-app .button.ghost {
  border-color: rgba(7, 26, 95, .16);
  background: #fff;
  color: var(--ink);
}

.wedding-app .button.ghost {
  box-shadow: none;
}

.wedding-app .button.dossier-action {
  border-color: rgba(7, 26, 95, .18);
  background: var(--gold);
  color: #fff;
}

.wedding-app .hero-panel,
.wedding-app .intro-card,
.wedding-app .preview-pane,
.wedding-app .choice-card,
.wedding-app .field-card,
.wedding-app .reading-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
}

.wedding-app .hero-panel {
  padding: 24px;
  border-top: 6px solid var(--teal);
}

.wedding-app .hero-panel.progress-cards {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.wedding-app:not(.is-public-demo) .hero-panel.progress-cards {
  margin-top: 195px;
}

.wedding-app .progress-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--teal);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}

.wedding-app .progress-card-link {
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.wedding-app .progress-card-link:hover,
.wedding-app .progress-card-link:focus-visible {
  border-color: rgba(245, 168, 0, .75);
  box-shadow: 0 18px 40px rgba(7, 26, 95, .14);
  outline: 0;
  transform: translateY(-1px);
}

.wedding-app .progress-card:nth-child(2) {
  border-top-color: var(--gold);
}

.wedding-app .progress-card-title {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.wedding-app .public-access-card {
  border-color: rgba(7, 26, 95, .14);
  border-top-width: 1px;
  box-shadow: 0 10px 24px rgba(7, 26, 95, .06);
}

.wedding-app .public-access-card .button.primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 10px 20px rgba(245, 168, 0, .18);
}

.wedding-app .public-access-card .button.primary:hover {
  background: #e59c00;
  color: var(--ink);
}

.wedding-app .public-link-form {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.wedding-app .public-link-form label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.wedding-app .public-link-row {
  display: grid;
  gap: 8px;
}

.wedding-app .public-link-row input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(7, 26, 95, .14);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
}

.wedding-app .public-link-row input:focus {
  outline: 0;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(7, 154, 166, .13);
}

.wedding-app .public-link-message {
  min-height: 20px;
  margin-top: 4px !important;
  color: var(--teal-dark) !important;
  font-size: 13px;
}

.wedding-app.is-public-demo .hero {
  min-height: auto;
  padding-bottom: 28px;
  align-items: start;
}

.wedding-app.is-public-demo .hero-content {
  max-width: 920px;
}

.wedding-app.is-public-demo .hero-panel.progress-cards {
  width: auto;
  max-width: 340px;
}

.wedding-app.is-public-demo .hero-panel.progress-cards > .progress-card:first-child {
  margin-top: 42px;
}

.wedding-app.is-public-demo .public-access-card {
  margin-top: 22px;
  width: 100%;
  max-width: 920px;
}

@media (min-width: 1041px) {
  .wedding-app.is-public-demo .public-access-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    column-gap: 20px;
    align-items: start;
  }

  .wedding-app.is-public-demo .public-access-card .public-link-form {
    margin-top: 14px;
  }

  .wedding-app.is-public-demo .public-access-card .public-link-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

.wedding-app .hero-panel strong {
  display: block;
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.15;
}

.wedding-app .hero-panel p {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.wedding-app .progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #f1e7d9;
}

.wedding-app .progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--pink));
  transition: width .25s ease;
}

.wedding-app .workspace {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 56px;
}

.wedding-app .tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 249, 237, .94);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(7, 26, 95, .07);
}

.wedding-app .tab.dossier-tab {
  margin-left: auto;
  border-color: rgba(245, 168, 0, .65);
  background: #fff8dc;
  color: #6f4a00;
}

.wedding-app .tab.dossier-tab.is-active {
  background: var(--gold);
  color: #fff;
}

.wedding-app .tab {
  min-height: 42px;
  flex: 1;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.wedding-app .tab.is-active {
  background: var(--ink);
  color: #fff;
}

.wedding-app .layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 22px;
  margin-top: 20px;
  align-items: start;
}

.wedding-app .main-pane {
  min-width: 0;
}

.wedding-app .layout.is-full-width-view {
  grid-template-columns: minmax(0, 1fr);
}

.wedding-app .layout.is-full-width-view .preview-pane {
  display: none;
}

.wedding-app .tab-panel {
  display: none;
}

.wedding-app .tab-panel.is-active {
  display: block;
}

.wedding-app .intro-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding: 24px;
  border-top: 6px solid var(--teal);
}

.wedding-app .intro-card .section-kicker,
.wedding-app .preview-header .section-kicker {
  margin-bottom: 9px;
}

.wedding-app .celebration-mode-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-top: 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7f9fc;
}

.wedding-app .celebration-mode-switch button {
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: calc(var(--radius) - 3px);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.wedding-app .celebration-mode-switch button.is-active {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 18px rgba(7, 26, 95, .18);
}

.wedding-app .celebration-mode-switch button:focus-visible {
  outline: 3px solid rgba(242, 167, 22, .42);
  outline-offset: 2px;
}

.wedding-app .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.wedding-app.is-public-demo .form-grid {
  margin-top: -16px;
  padding: 0 24px 24px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 24px rgba(7, 26, 95, .06);
}

.wedding-app.is-public-demo #panel-steps > .intro-card {
  margin-bottom: 0;
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 10px 24px rgba(7, 26, 95, .06);
}

.wedding-app.is-public-demo .public-name-field {
  background: #fff;
}

.wedding-app .field-card {
  padding: 16px;
  box-shadow: none;
}

.wedding-app .field-card label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-weight: 900;
}

.wedding-app .field-card input,
.wedding-app .field-card textarea,
.wedding-app .filters input,
.wedding-app .booklet-editor {
  width: 100%;
  border: 1px solid rgba(7, 26, 95, .14);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
  padding: 13px 14px;
}

.wedding-app .field-card textarea {
  min-height: 110px;
  resize: vertical;
}

.wedding-app .field-card input:focus,
.wedding-app .field-card textarea:focus,
.wedding-app .filters input:focus,
.wedding-app .booklet-editor:focus {
  outline: 0;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(7, 154, 166, .13);
}

.wedding-app .field-card.full {
  grid-column: 1 / -1;
}

.wedding-app .accordion-list {
  display: grid;
  gap: 12px;
}

.wedding-app .steps-finish {
  display: flex;
  justify-content: center;
  margin: 22px 0 4px;
}

.wedding-app .steps-finish .button {
  min-width: min(100%, 280px);
}

.wedding-app .step {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 24px rgba(7, 26, 95, .06);
}

.wedding-app .step summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  list-style: none;
  cursor: pointer;
}

.wedding-app .step summary::-webkit-details-marker {
  display: none;
}

.wedding-app .step-title {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: center;
}

.wedding-app .step-number {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: var(--soft-teal);
  color: var(--teal-dark);
  font-weight: 950;
}

.wedding-app .step-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.wedding-app .step-state {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: var(--radius);
  background: #fff9ed;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.wedding-app .step[open] .step-state {
  background: var(--soft-pink);
  color: var(--pink);
}

.wedding-app .step-body {
  padding: 0 20px 20px;
}

.wedding-app .step-help {
  margin: 0 0 14px;
  color: #273260;
  font-weight: 700;
}

.wedding-app .choices {
  display: grid;
  gap: 10px;
}

.wedding-app .choice-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  box-shadow: none;
}

.wedding-app .selected-reading,
.wedding-app .note-box {
  border: 1px solid rgba(7, 26, 95, .12);
  border-radius: var(--radius);
  background: #fff;
}

.wedding-app .selected-reading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.wedding-app .selected-reading h4 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.18;
}

.wedding-app .selected-reading p {
  margin: 0;
  color: #24304d;
  font-weight: 650;
  line-height: 1.5;
}

.wedding-app .selected-reading-label {
  display: inline-flex;
  margin: 0 0 8px !important;
  padding: 5px 8px;
  border-radius: var(--radius);
  background: var(--soft-teal);
  color: var(--teal-dark) !important;
  font-size: 12px;
  font-weight: 950 !important;
  line-height: 1.1 !important;
  text-transform: uppercase;
}

.wedding-app .note-box {
  margin-top: 12px;
  padding: 13px 14px;
  background: #fff9ed;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.wedding-app .fixed-liturgical-text {
  display: block;
  margin-top: 6px;
  white-space: pre-line;
  color: #24304d;
  font-weight: 700;
  line-height: 1.5;
}

.wedding-app .choice-card input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--teal-dark);
}

.wedding-app .choice-card.is-selected {
  border-color: rgba(7, 154, 166, .56);
  background: rgba(224, 245, 245, .52);
}

.wedding-app .choice-title {
  display: block;
  margin: 0 0 6px;
  color: var(--ink);
  font-weight: 950;
}

.wedding-app .choice-text {
  margin: 0;
  color: #24304d;
  white-space: pre-wrap;
}

.wedding-app .choice-text .booklet-inline-rubric,
.wedding-app .choice-text .choice-rubric-line {
  color: #b3263a;
  font-style: italic;
  font-weight: 850;
}

.wedding-app .optional-input {
  margin-top: 12px;
}

.wedding-app .filters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 12px;
  margin-bottom: 16px;
}

.wedding-app .filter-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.wedding-app .filter-buttons button,
.wedding-app .mini-btn {
  min-height: 40px;
  border: 1px solid rgba(7, 26, 95, .14);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  padding: 9px 11px;
}

.wedding-app .filter-buttons button.is-active,
.wedding-app .mini-btn.is-active {
  border-color: var(--teal);
  background: var(--soft-teal);
  color: var(--teal-dark);
}

.wedding-app .selected-pill {
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #fff9ed;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 900;
}

.wedding-app .filter-context {
  background: var(--soft-teal);
  color: var(--teal-dark);
}

.wedding-app .reading-grid {
  display: grid;
  gap: 12px;
}

.wedding-app .reading-card {
  padding: 20px;
  box-shadow: 0 10px 24px rgba(7, 26, 95, .06);
}

.wedding-app .reading-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.wedding-app .reading-card h3 {
  margin-bottom: 8px;
}

.wedding-app .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 9px 0 12px;
}

.wedding-app .badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: var(--radius);
  background: #fff9ed;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.wedding-app .badge.strong {
  background: var(--soft-pink);
  color: var(--pink);
}

.wedding-app .reading-highlight {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  background: #fff8dc;
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.45;
}

.wedding-app .reading-excerpt {
  max-height: 168px;
  overflow: hidden;
  margin: 0 0 12px;
  color: #24304d;
  line-height: 1.55;
  white-space: pre-wrap;
}

.wedding-app .reading-card.is-expanded .reading-excerpt {
  max-height: none;
}

.wedding-app .reading-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.wedding-app .reading-choose {
  display: none;
  margin-left: auto;
  border-color: var(--pink);
  background: var(--pink);
  color: #fff;
  box-shadow: 0 10px 20px rgba(239, 45, 111, .18);
}

.wedding-app .reading-card.is-expanded .reading-choose {
  display: inline-flex;
}

.wedding-app .reading-choose.is-active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.wedding-app .preview-pane {
  padding: 20px;
  border-top: 6px solid var(--pink);
}

.wedding-app .preview-booklet-button {
  width: 100%;
  margin-bottom: 16px;
}

.wedding-app .preview-header {
  margin-bottom: 14px;
}

.wedding-app .checklist {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.wedding-app .check-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border-radius: var(--radius);
  background: #fff9ed;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.wedding-app .check-mark {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #eadfd0;
  color: #fff;
  font-size: 13px;
}

.wedding-app .check-item.is-done {
  color: var(--teal-dark);
}

.wedding-app .check-item.is-done .check-mark {
  background: var(--green);
}

.wedding-app .booklet-preview,
.wedding-app .booklet-editor {
  min-height: 360px;
  margin: 0;
  white-space: normal;
}

.wedding-app .booklet-preview {
  padding: 16px;
  border: 1px solid rgba(7, 26, 95, .10);
  border-radius: var(--radius);
  background: #fff;
  color: #172347;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.55;
}

.wedding-app .booklet-editor {
  min-height: 680px;
  font-family: Georgia, "Times New Roman", serif;
}

.wedding-app .rich-booklet {
  font-family: Georgia, "Times New Roman", serif;
}

.wedding-app .rich-booklet h1 {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.wedding-app .rich-booklet h2 {
  margin: 24px 0 8px;
  color: #b3263a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 900;
}

.wedding-app .rich-booklet h2.booklet-main-heading {
  color: var(--ink);
  font-size: 24px;
  text-transform: uppercase;
}

.wedding-app .rich-booklet p {
  margin: 0 0 9px;
  color: #1f2937;
  font-size: 16px;
  line-height: 1.55;
}

.wedding-app .rich-booklet .booklet-meta-line,
.wedding-app .rich-booklet .booklet-line-meta {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
}

.wedding-app .rich-booklet .booklet-line-response {
  color: #1f2937;
  font-weight: 800;
}

.wedding-app .rich-booklet .booklet-line-rubric,
.wedding-app .rich-booklet .booklet-inline-rubric {
  color: #b3263a;
  font-style: italic;
  font-weight: 800;
}

.wedding-app .rich-booklet .booklet-line-rubric {
  font-size: 15px;
}

.wedding-app .booklet-preview.rich-booklet h1 {
  font-size: 24px;
}

.wedding-app .booklet-preview.rich-booklet h2 {
  font-size: 18px;
}

.wedding-app .booklet-preview.rich-booklet p {
  font-size: 14px;
}

.wedding-app .toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 40;
  min-width: min(420px, calc(100% - 32px));
  padding: 13px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 850;
  text-align: center;
  box-shadow: 0 18px 42px rgba(7, 26, 95, .24);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s ease;
}

.wedding-app .toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.wedding-app .dossier-intro,
.wedding-app .dossier-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 24px rgba(7, 26, 95, .06);
}

.wedding-app .dossier-intro {
  margin-bottom: 14px;
  padding: 18px;
}

.wedding-app .dossier-intro p {
  margin: 0;
  color: #24304d;
  font-weight: 750;
}

.wedding-app .dossier-intro .button {
  margin-top: 14px;
}

.wedding-app .dossier-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.wedding-app .dossier-meta-card {
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--teal);
  border-radius: var(--radius);
  background: #f8fbff;
}

.wedding-app .dossier-meta-card.is-external {
  border-left-color: var(--gold);
  background: #fffdf6;
}

.wedding-app .dossier-meta-card.is-paid {
  border-left-color: var(--green);
  background: #f7fff5;
}

.wedding-app .dossier-meta-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.wedding-app .dossier-meta-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.15;
}

.wedding-app .dossier-meta-card p {
  margin: 0;
  color: #24304d;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.wedding-app .dossier-meta-card a {
  color: var(--ink);
  font-weight: 950;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.wedding-app .send-box,
.wedding-app .intention-model-intro,
.wedding-app .external-dossier-box {
  border: 1px solid rgba(245, 168, 0, .65);
  border-left: 6px solid var(--gold);
  border-radius: var(--radius);
  background: #fff8dc;
  box-shadow: 0 10px 24px rgba(7, 26, 95, .06);
}

.wedding-app .send-box,
.wedding-app .external-dossier-box {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 16px;
}

.wedding-app .send-box h3,
.wedding-app .send-box h4,
.wedding-app .intention-model-intro h3,
.wedding-app .external-dossier-box h3 {
  margin: 0;
  color: var(--ink);
}

.wedding-app .send-box p,
.wedding-app .intention-model-intro p,
.wedding-app .external-dossier-box p {
  margin: 0;
  color: #24304d;
  font-weight: 750;
}

.wedding-app .external-dossier-box {
  border-color: rgba(83, 98, 132, .25);
  border-left-color: var(--muted);
  background: #f8fbff;
}

.wedding-app .external-dossier-box strong {
  color: var(--ink);
}

.wedding-app .send-box address {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-style: normal;
  font-weight: 900;
  line-height: 1.35;
}

.wedding-app .send-box-compact {
  margin-top: 0;
  box-shadow: none;
}

.wedding-app .dossier-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wedding-app .dossier-column {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .72);
}

.wedding-app .dossier-column-shared {
  grid-column: 1 / -1;
}

.wedding-app .dossier-column > h3 {
  margin: 0 0 12px;
  color: var(--ink);
}

.wedding-app .dossier-grid {
  display: grid;
  gap: 12px;
}

.wedding-app .dossier-card {
  padding: 18px;
}

.wedding-app .dossier-status.is-external-dossier .dossier-card.is-locked {
  background: #f5f7fb;
  box-shadow: none;
  opacity: .78;
}

.wedding-app .dossier-status.is-external-dossier .dossier-card.is-locked h4,
.wedding-app .dossier-status.is-external-dossier .dossier-card.is-locked p {
  color: #536284;
}

.wedding-app .dossier-card h4 {
  margin-top: 10px;
  margin-bottom: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
}

.wedding-app .dossier-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.wedding-app .dossier-state {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: var(--radius);
  background: #fff9ed;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.wedding-app .dossier-state.received {
  background: var(--soft-teal);
  color: var(--teal-dark);
}

.wedding-app .dossier-state.submitted {
  background: #fff3c4;
  color: #7a5400;
}

.wedding-app .dossier-state.validated {
  background: rgba(95, 143, 47, .14);
  color: var(--green);
}

.wedding-app .dossier-state.to_request {
  background: var(--soft-pink);
  color: var(--pink);
}

.wedding-app .dossier-submit {
  width: 100%;
  margin-top: 14px;
}

.wedding-app .dossier-submitted-note {
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #fff8dc;
  color: #594000 !important;
  font-size: 13px;
}

.wedding-app .intention-page {
  display: grid;
  gap: 18px;
}

.wedding-app .intention-explainer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 24px rgba(7, 26, 95, .06);
}

.wedding-app .intention-explainer h3,
.wedding-app .intention-explainer h4,
.wedding-app .intention-model h3,
.wedding-app .pillar-grid h4 {
  color: var(--ink);
}

.wedding-app .intention-explainer p,
.wedding-app .pillar-grid p,
.wedding-app .model-note,
.wedding-app .model-text p,
.wedding-app .signature-lines p {
  color: #24304d;
  font-weight: 700;
}

.wedding-app .intention-explainer aside {
  padding: 0;
  border-radius: var(--radius);
  background: transparent;
}

.wedding-app .intention-model-intro {
  padding: 18px 20px;
}

.wedding-app .pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.wedding-app .pillar-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--teal);
  border-radius: var(--radius);
  background: #fff;
}

.wedding-app .pillar-grid h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.wedding-app .pillar-grid p {
  margin: 0;
  font-size: 14px;
}

.wedding-app .intention-templates {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.wedding-app .intention-template-tabs {
  position: sticky;
  top: 74px;
  display: grid;
  gap: 8px;
}

.wedding-app .intention-template-tabs button {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.wedding-app .intention-template-tabs button.is-active {
  border-left-color: var(--pink);
  background: var(--ink);
  color: #fff;
}

.wedding-app .intention-template-tabs strong,
.wedding-app .intention-template-tabs span {
  display: block;
}

.wedding-app .intention-template-tabs span {
  color: inherit;
  font-size: 13px;
  line-height: 1.3;
  opacity: .82;
}

.wedding-app .intention-model {
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--pink);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 24px rgba(7, 26, 95, .06);
}

.wedding-app .intention-model h3 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
}

.wedding-app .model-note {
  margin: 0 0 18px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--soft-teal);
}

.wedding-app .model-text {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.wedding-app .model-text p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.65;
}

.wedding-app .signature-lines {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1040px) {
  .wedding-app .hero,
  .wedding-app.is-public-demo .hero,
  .wedding-app .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .wedding-app.is-public-demo .hero-panel.progress-cards {
    width: 100%;
    max-width: none;
  }

  .wedding-app.is-public-demo .hero-panel.progress-cards > .progress-card:first-child {
    margin-top: 0;
  }

  .wedding-app:not(.is-public-demo) .hero-panel.progress-cards {
    margin-top: 0;
  }

  .wedding-app .hero-panel,
.wedding-app .preview-pane {
    position: static;
    max-height: none;
  }
}

@media (max-width: 720px) {
  .wedding-app .hero {
    min-height: auto;
    padding: 28px 0 30px;
  }

  .wedding-app .lead {
    font-size: 18px;
  }

  .wedding-app .tabs,
.wedding-app .intro-card,
.wedding-app .filters,
.wedding-app .form-grid,
.wedding-app .dossier-meta-grid,
.wedding-app .dossier-columns,
.wedding-app .intention-explainer,
.wedding-app .pillar-grid,
.wedding-app .intention-templates {
    grid-template-columns: minmax(0, 1fr);
  }

  .wedding-app .tabs,
.wedding-app .intro-card,
.wedding-app .filters {
    display: grid;
  }

  .wedding-app .tab.dossier-tab {
    margin-left: 0;
  }

  .wedding-app .intention-template-tabs {
    position: static;
  }

  .wedding-app .intro-card {
    padding: 18px;
  }

  .wedding-app .celebration-mode-switch {
    width: 100%;
  }

  .wedding-app .step summary,
.wedding-app .reading-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .wedding-app .selected-reading {
    align-items: flex-start;
    grid-template-columns: minmax(0, 1fr);
  }

  .wedding-app .step-state {
    align-self: flex-start;
  }
}

@media print {
  .wedding-app {
    background: #fff;
  }

  .wedding-app .hero,
.wedding-app .tabs,
.wedding-app .main-pane,
.wedding-app .checklist,
.wedding-app .preview-header {
    display: none !important;
  }

  .wedding-app .workspace,
.wedding-app .layout,
.wedding-app .preview-pane {
    width: auto;
    margin: 0;
    display: block;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .wedding-app .booklet-preview {
    border: 0;
    font-size: 12pt;
  }
}

@media (max-width: 921px) {
  .wedding-app h1,
  .wedding-app h1[class] {
    font-size: 2.75rem !important;
  }

  .wedding-app button,
  .wedding-app .button {
    text-align: left;
  }
}

@media (max-width: 544px) {
  .wedding-app h1,
  .wedding-app h1[class] {
    font-size: 2rem !important;
  }
}

/* Keep intrinsic field/text widths from enlarging grid and flex tracks. */
.wedding-app .hero > *,
.wedding-app .layout > *,
.wedding-app .intro-card > *,
.wedding-app .step-title > *,
.wedding-app .field-card,
.wedding-app .public-link-form,
.wedding-app .public-link-row {
  min-width: 0;
}
.wedding-app input,
.wedding-app textarea,
.wedding-app select {
  min-width: 0;
  max-width: 100%;
  font-size: 16px;
}
.wedding-app button,
.wedding-app .button {
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  .wedding-app.is-public-demo .form-grid {
    margin-top: 0;
    padding: 0 18px 18px;
  }
  .wedding-app .tabs { position: static; }
  .wedding-app h2 { font-size: 1.5rem; line-height: 1.25; }
}
@media (max-width: 380px) {
  .wedding-app .celebration-mode-switch { grid-template-columns: minmax(0, 1fr); }
  .wedding-app .step summary,
  .wedding-app .field-card,
  .wedding-app .progress-card { padding: 14px; }
  .wedding-app .step-body { padding: 0 14px 14px; }
}

/* Adapt to the Gutenberg block width as well as the viewport. */
@media screen {
@container wedding-layout (max-width: 1040px) {
  .wedding-app .hero,
  .wedding-app.is-public-demo .hero,
  .wedding-app .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .wedding-app.is-public-demo .hero-panel.progress-cards {
    width: 100%;
    max-width: none;
  }

  .wedding-app.is-public-demo .hero-panel.progress-cards > .progress-card:first-child {
    margin-top: 0;
  }

  .wedding-app:not(.is-public-demo) .hero-panel.progress-cards {
    margin-top: 0;
  }

  .wedding-app .hero-panel,
.wedding-app .preview-pane {
    position: static;
    max-height: none;
  }
}
@container wedding-layout (max-width: 720px) {
  .wedding-app .hero {
    min-height: auto;
    padding: 28px 0 30px;
  }

  .wedding-app .lead {
    font-size: 18px;
  }

  .wedding-app .tabs,
.wedding-app .intro-card,
.wedding-app .filters,
.wedding-app .form-grid,
.wedding-app .dossier-meta-grid,
.wedding-app .dossier-columns,
.wedding-app .intention-explainer,
.wedding-app .pillar-grid,
.wedding-app .intention-templates {
    grid-template-columns: minmax(0, 1fr);
  }

  .wedding-app .tabs,
.wedding-app .intro-card,
.wedding-app .filters {
    display: grid;
  }

  .wedding-app .tab.dossier-tab {
    margin-left: 0;
  }

  .wedding-app .intention-template-tabs {
    position: static;
  }

  .wedding-app .intro-card {
    padding: 18px;
  }

  .wedding-app .celebration-mode-switch {
    width: 100%;
  }

  .wedding-app .step summary,
.wedding-app .reading-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .wedding-app .selected-reading {
    align-items: flex-start;
    grid-template-columns: minmax(0, 1fr);
  }

  .wedding-app .step-state {
    align-self: flex-start;
  }
}
@container wedding-layout (max-width: 921px) {
  .wedding-app h1,
  .wedding-app h1[class] {
    font-size: 2.75rem !important;
  }

  .wedding-app button,
  .wedding-app .button {
    text-align: left;
  }
}
@container wedding-layout (max-width: 544px) {
  .wedding-app h1,
  .wedding-app h1[class] {
    font-size: 2rem !important;
  }
}
@container wedding-layout (max-width: 720px) {
  .wedding-app.is-public-demo .form-grid {
    margin-top: 0;
    padding: 0 18px 18px;
  }
  .wedding-app .tabs { position: static; }
  .wedding-app h2 { font-size: 1.5rem; line-height: 1.25; }
}
@container wedding-layout (max-width: 380px) {
  .wedding-app .celebration-mode-switch { grid-template-columns: minmax(0, 1fr); }
  .wedding-app .step summary,
  .wedding-app .field-card,
  .wedding-app .progress-card { padding: 14px; }
  .wedding-app .step-body { padding: 0 14px 14px; }
}

@container wedding-layout (max-width: 1040px) {
  .wedding-app.is-public-demo .public-access-card .public-link-row { grid-template-columns: minmax(0, 1fr); }
}
}

