/* I Do Two (IDoTwo.com). Layout concept: a wedding program bound as a site — a sticky ribbon of pages, each view printed
   on cool white card in dusty-blue ink, the cover framed in line-drawn florals like the invitation. */
:root {
  --paper: #F5F7FA;
  --card: #FFFFFF;
  --ink: #22304C;
  --ink-soft: #5B6A86;
  --line: #CBD5E4;
  --accent: #4C6FA3;
  --wash: #E8EEF7;
  --gold: #9C7F4C;
  --ok: #4F7E5E;
  --warn: #9A5B2E;
  --shadow: 0 1px 2px rgba(34, 48, 76, .06), 0 8px 24px -12px rgba(34, 48, 76, .18);
  --f-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --f-script: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive;
  --f-body: "Mulish", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --s-1: .8125rem; --s0: 1rem; --s1: 1.1875rem; --s2: 1.5rem; --s3: 2.125rem; --s4: 3rem; --s5: 4.25rem;
  --r: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F151F; --card: #161F2C; --ink: #E3E8F1; --ink-soft: #9DABC3; --line: #2B3749;
    --accent: #93AEDA; --wash: #1C2738; --gold: #CDB283; --ok: #8DBE9B; --warn: #E0A577;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0F151F; --card: #161F2C; --ink: #E3E8F1; --ink-soft: #9DABC3; --line: #2B3749;
  --accent: #93AEDA; --wash: #1C2738; --gold: #CDB283; --ok: #8DBE9B; --warn: #E0A577;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: var(--s0); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, textarea:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px;
}
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.005em; }
p { margin: 0; }
.wrap { max-width: 68rem; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.caps { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .2em; font-size: var(--s-1); color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- header / ribbon nav ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 18px; padding-block: 8px; }
.brand { display: flex; align-items: center; flex: none; padding: 6px 2px; }
.brand img { height: 28px; width: auto; display: block; }
.logo-d { display: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-l { display: none !important; } :root:not([data-theme="light"]) .logo-d { display: block !important; } }
:root[data-theme="dark"] .logo-l { display: none !important; }
:root[data-theme="dark"] .logo-d { display: block !important; }
.intro { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding-block: 6px 4px; }
.intro img { height: clamp(96px, 16vw, 132px); width: auto; }
.intro p { max-width: 34rem; }
.mono { display: flex; align-items: baseline; gap: 2px; text-decoration: none; color: var(--ink); flex: none; }
.mono b { font-family: var(--f-display); font-weight: 500; font-size: 1.5rem; letter-spacing: .04em; }
.mono i { font-family: var(--f-script); font-style: normal; font-size: 1.7rem; color: var(--accent); margin-left: 6px; line-height: 1; }
.foot-brand { font-family: var(--f-display); font-weight: 600; font-size: 1rem; color: var(--ink); letter-spacing: .02em; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink-soft); padding: 8px 12px; border-radius: 999px;
  font-size: .875rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--wash); }
.nav a[aria-current="page"] { color: var(--card); background: var(--ink); }
.nav a:last-child { margin-right: 28px; }

/* ---------- views ---------- */
main { padding-block: 28px 64px; }
.view { display: flex; flex-direction: column; gap: 40px; }
.view[hidden] { display: none !important; }
.head { display: flex; flex-direction: column; gap: 10px; max-width: 46rem; }
.head h2 { font-size: clamp(var(--s3), 5vw, var(--s4)); }
.head h2 em { font-family: var(--f-script); font-style: normal; color: var(--accent); font-weight: 400; font-size: 1.05em; }
.head .lead { font-size: var(--s1); color: var(--ink-soft); line-height: 1.5; max-width: 40rem; }
.sec { display: flex; flex-direction: column; gap: 16px; }
.sec > h3, .sec-head h3 { font-size: var(--s2); }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 17rem)), 1fr)); }
.two { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: start; }
.rule { height: 18px; color: var(--accent); opacity: .8; }
.rule svg { display: block; width: 100%; height: 100%; }

/* ---------- cover (home) ---------- */
.cover {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
}
@media (max-width: 52rem) { .cover { grid-template-columns: 1fr; } }
.cover-card { position: relative; padding: clamp(84px, 11vw, 120px) clamp(36px, 6vw, 72px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.florals { position: absolute; inset: 0; pointer-events: none; color: var(--accent); }
.florals svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover-card > *:not(.florals) { position: relative; }
.verse { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; line-height: 1.7; color: var(--ink-soft); max-width: 25rem; }
.verse b { display: block; font-weight: 600; color: var(--accent); margin-bottom: 2px; }
.names { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 8px; }
.names span { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.75rem, 7vw, 4.5rem); letter-spacing: .08em; line-height: 1; text-transform: uppercase; color: var(--ink); }
.names i { font-family: var(--f-script); font-style: normal; font-size: clamp(1.75rem, 4vw, 2.5rem); color: var(--accent); display: flex; align-items: center; gap: 14px; line-height: 1.3; }
.names i::before, .names i::after { content: ""; width: 54px; height: 1px; background: currentColor; opacity: .6; }
.cover-date { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.35rem, 3vw, 1.75rem); letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; }
.cover-sub { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--ink-soft); line-height: 1.8; }
.edition { font-family: var(--f-body); font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); padding: 5px 12px; border-radius: 999px; }
.cover-side { position: relative; display: flex; flex-direction: column; background: var(--wash); border-left: 1px solid var(--line); }
@media (max-width: 52rem) { .cover-side { border-left: 0; border-top: 1px solid var(--line); } }
.photo { margin: 0; flex: 1; min-height: 20rem; overflow: hidden; position: relative; }
.photo img { position: absolute; inset: 0; }
@media (max-width: 52rem) { .photo { min-height: 26rem; } }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.count { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; padding: 22px 26px; border-top: 1px solid var(--line); background: var(--card); }
.count-n { font-family: var(--f-display); font-weight: 500; font-size: 4rem; line-height: .9; color: var(--accent); font-variant-numeric: lining-nums tabular-nums; }
.count-t { display: flex; flex-direction: column; gap: 4px; }
.count-t strong { font-family: var(--f-display); font-size: var(--s2); font-weight: 600; line-height: 1.1; }
.count-bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 4px; }
.count-bar span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }

/* next-up strip */
.next { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
@media (max-width: 36rem) { .next { grid-template-columns: auto 1fr; } .next .btn { grid-column: 1 / -1; justify-self: start; } }
.cal { width: 66px; text-align: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); flex: none; }
.cal small { display: block; background: var(--ink); color: var(--card); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 3px 0; }
.cal b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.9rem; line-height: 1.25; padding-bottom: 3px; font-variant-numeric: lining-nums; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font: 700 .875rem var(--f-body); color: var(--card); background: var(--ink); border: 0; padding: 10px 18px; border-radius: 999px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

/* path cards (home index) */
.path { --min: 15rem; }
.path a { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.path a:hover { border-color: var(--accent); transform: translateY(-2px); }
.path .pg { font-family: var(--f-display); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: .75rem; color: var(--accent); }
.path h3 { font-size: var(--s2); }
.path p { color: var(--ink-soft); font-size: .9375rem; line-height: 1.5; }
.meter { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 6px; font-size: .8125rem; color: var(--ink-soft); }
.meter i { flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.meter i span { display: block; height: 100%; background: var(--ok); }

/* ---------- couple ---------- */
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; }
.dl dt { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; color: var(--ink-soft); padding-top: 4px; }
.dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 30rem) { .dl { grid-template-columns: 1fr; gap: 2px; } .dl dd { margin-bottom: 10px; } }
.copy { font: 600 .75rem var(--f-body); color: var(--accent); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; min-height: 32px; margin-left: 6px; cursor: pointer; vertical-align: 1px; }
.copy:hover { border-color: var(--accent); }

.story { list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; }
.story::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.story li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 10px 0; }
.story .h { width: 28px; height: 26px; position: relative; z-index: 1; color: var(--accent); }
.story .h svg { width: 100%; height: 100%; display: block; }
.story time { font-family: var(--f-display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; color: var(--gold); }
.story strong { display: block; font-family: var(--f-display); font-size: var(--s2); font-weight: 500; line-height: 1.15; font-style: italic; }
.story p { color: var(--ink-soft); font-size: .9375rem; }

.sched { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 4px 28px; }
.sched li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding: 9px 12px; border-radius: 10px; align-items: baseline; }
.sched li.yours { background: var(--wash); }
.sched li.yours span:last-child { font-weight: 700; }
.sched time { font-family: var(--f-display); font-weight: 600; font-size: 1.0625rem; color: var(--accent); white-space: nowrap; font-variant-numeric: lining-nums; }
.tag { display: inline-block; font-size: .6875rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 1px 8px; border-radius: 999px; vertical-align: 2px; margin-left: 6px; }
.tag.you { color: var(--card); background: var(--accent); }
.tag.done { color: var(--ok); border: 1px solid currentColor; }
.tag.must { color: var(--warn); border: 1px solid currentColor; }

/* ---------- interview ---------- */
.iv-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--card); }
.seg button { font: 700 .8125rem var(--f-body); color: var(--ink-soft); background: none; border: 0; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--card); }
.iv-group { display: grid; grid-template-columns: 13rem 1fr; gap: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
@media (max-width: 48rem) { .iv-group { grid-template-columns: 1fr; gap: 12px; } }
.iv-group header { display: flex; flex-direction: column; gap: 4px; }
.iv-group header h3 { font-size: var(--s2); }
.iv-group header time { font-family: var(--f-display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; color: var(--gold); }
.iv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: q; }
.iv-q { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.iv-q[hidden] { display: none; }
.iv-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.who { font-size: .6875rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; margin-top: 3px; }
.who.both { background: var(--wash); color: var(--accent); }
.who.canaan { background: var(--ink); color: var(--card); }
.who.kyla { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.iv-q p { font-size: 1.0625rem; line-height: 1.45; }
.iv-q textarea {
  width: 100%; min-height: 2.6rem; resize: vertical; font: .9375rem/1.5 var(--f-body); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
}
.iv-q textarea::placeholder { color: var(--ink-soft); opacity: .8; }
.note { font-size: .8125rem; color: var(--ink-soft); }
.tips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tips li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; }
.tips li::before { content: ""; width: 7px; height: 7px; border: 1.5px solid var(--accent); transform: rotate(45deg); margin: 8px 0 0 3px; }

/* ---------- checklists / plan ---------- */
.road { position: relative; height: 34px; margin: 18px 8px 4px; }
.road-line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.road-fill { position: absolute; left: 0; top: calc(50% - 1.5px); height: 3px; background: var(--accent); border-radius: 3px; }
.road-dot { position: absolute; top: 50%; width: 11px; height: 11px; transform: translate(-50%, -50%) rotate(45deg); background: var(--card); border: 1.5px solid var(--accent); }
.road-dot.past { background: var(--accent); }
.road-dot.big { width: 18px; height: 18px; background: var(--accent); }
.road-now { position: absolute; top: -18px; transform: translateX(-50%); font-size: .6875rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.ms { --min: 8rem; gap: 12px; }
.ms .card { padding: 16px 14px; }
.ms .card { display: flex; flex-direction: column; gap: 6px; }
.ms .card.next { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.ms .card.big { background: var(--wash); }
.ms .d { font-family: var(--f-display); font-weight: 600; font-size: 2rem; line-height: 1; font-variant-numeric: lining-nums; }
.ms .d small { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-left: 6px; font-family: var(--f-display); }
.ms strong { font-family: var(--f-display); font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.ms p { font-size: .875rem; color: var(--ink-soft); line-height: 1.45; }
.ms .when { margin-top: auto; font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: var(--ink-soft); }
.ms .card.next .when { color: var(--accent); }

.weeks { --min: 15.5rem; }
.week { display: flex; flex-direction: column; gap: 12px; }
.week.now { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.week-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.week h3 { font-size: var(--s2); font-style: italic; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 6px 4px; border-radius: 8px; cursor: pointer; font-size: .9375rem; line-height: 1.45; }
.check:hover { background: var(--wash); }
.check input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 2px 0 0; border: 1.5px solid var(--ink-soft); border-radius: 5px; display: grid; place-items: center; cursor: pointer; background: var(--card); }
.check input:checked { background: var(--ok); border-color: var(--ok); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--card); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check input:checked + span { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ok) 60%, transparent); }
.check.must span::after { content: "Must"; font-size: .625rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--warn); border: 1px solid currentColor; border-radius: 999px; padding: 0 6px; margin-left: 8px; vertical-align: 2px; text-decoration: none; display: inline-block; }

.vows { --min: 12rem; }
.vow { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 18px; position: relative; }
.vow::after { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line); border-radius: 10px; pointer-events: none; }
.vow .rn { font-family: var(--f-display); font-weight: 600; font-size: 1.75rem; color: var(--accent); line-height: 1; }
.vow strong { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; line-height: 1.2; }
.vow p { font-size: .875rem; color: var(--ink-soft); line-height: 1.5; }
.vow.vow-done { background: color-mix(in srgb, var(--ok) 8%, var(--card)); }
.vow .tag.done { margin: auto 0 0; }

/* ---------- ceremony ---------- */
.flow { position: relative; display: flex; gap: 3px; height: 44px; margin-top: 6px; }
.flow span { border-radius: 999px; min-width: 6px; display: flex; align-items: center; justify-content: center; font: 600 .875rem var(--f-display); color: var(--card); cursor: default; }
.flow span.moment { background: var(--line); color: var(--ink); }
.flow span.speak { background: var(--accent); }
.flow span.legal { background: var(--gold); }
.axis { display: flex; justify-content: space-between; font-size: .8125rem; color: var(--ink-soft); font-style: italic; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .8125rem; color: var(--ink-soft); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.program { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 12px 36px; }
.program li { display: grid; grid-template-columns: 2rem 1fr; gap: 10px; }
.program li > div { min-width: 0; }
.program .pn { font-family: var(--f-display); font-weight: 600; color: var(--accent); font-size: 1.25rem; text-align: right; line-height: 1.3; font-variant-numeric: lining-nums; }
.program .row { display: flex; align-items: baseline; gap: 8px; }
.program .nm { font-family: var(--f-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: .08em; text-transform: uppercase; min-width: 0; overflow-wrap: anywhere; }
.program .dots { flex: 1; border-bottom: 1px dotted var(--ink-soft); opacity: .5; transform: translateY(-4px); min-width: 12px; }
.program .mn { font-size: .8125rem; color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.program .jb { font-size: .875rem; color: var(--ink-soft); line-height: 1.45; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 2.25rem 1fr; gap: 12px; counter-increment: s; }
.steps li::before { content: counter(s); font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; color: var(--card); background: var(--accent); width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-variant-numeric: lining-nums; }
.steps strong { display: block; font-family: var(--f-display); font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.steps p { color: var(--ink-soft); font-size: .9375rem; }
.lines { display: flex; flex-direction: column; gap: 14px; }
.line { border-left: 2px solid var(--accent); padding: 4px 0 4px 16px; display: flex; flex-direction: column; gap: 4px; }
.line .caps { font-size: .6875rem; }
.line blockquote { margin: 0; font-family: var(--f-display); font-size: 1.3125rem; line-height: 1.4; white-space: pre-line; }
.line .ans { font-size: .875rem; color: var(--ink-soft); }
.bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.bullets li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; line-height: 1.5; }
.bullets li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin: 9px 0 0 4px; }

/* ---------- legal ---------- */
.cred { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
@media (max-width: 40rem) { .cred { grid-template-columns: 1fr; justify-items: start; } }
.seal { width: 8.5rem; aspect-ratio: 1; position: relative; color: var(--accent); flex: none; }
.seal svg { width: 100%; height: 100%; display: block; }
.seal div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.seal b { font-family: var(--f-display); font-weight: 600; font-size: 1.75rem; color: var(--ink); line-height: 1; font-variant-numeric: lining-nums; }
.seal small { font-size: .625rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.cred-name { font-family: var(--f-display); font-size: var(--s3); font-weight: 500; font-style: italic; line-height: 1.1; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts b { font-family: var(--f-display); font-size: 1.25rem; font-weight: 600; font-variant-numeric: lining-nums; }
.lstep h3 { font-size: 1.375rem; margin-bottom: 10px; }

/* ---------- game day ---------- */
.run { list-style: none; margin: 0; padding: 0; position: relative; }
.run::before { content: ""; position: absolute; left: 6.15rem; top: 12px; bottom: 12px; width: 1px; background: var(--line); }
.run li { display: grid; grid-template-columns: 5.4rem 1.5rem 1fr; gap: 4px; padding: 8px 0; align-items: start; }
.run .clk { text-align: right; font-family: var(--f-display); font-weight: 600; font-size: 1.0625rem; line-height: 1.3; font-variant-numeric: lining-nums tabular-nums; }
.run .clk small { display: block; font-family: var(--f-body); font-size: .6875rem; font-weight: 700; color: var(--ink-soft); letter-spacing: .04em; }
.run .dot { width: 10px; height: 10px; transform: rotate(45deg); border: 1.5px solid var(--accent); background: var(--card); justify-self: center; margin-top: 7px; position: relative; z-index: 1; }
.run li.key .dot { background: var(--accent); }
.run li.go .dot { width: 15px; height: 15px; background: var(--gold); border-color: var(--gold); margin-top: 5px; }
.run li.key .tx { font-weight: 700; }
.run li.go .tx { font-family: var(--f-display); font-size: 1.375rem; font-style: italic; font-weight: 500; line-height: 1.25; }
.ifs { --min: 15rem; }
.ifs .card { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; }
.ifs em { font-family: var(--f-script); font-style: normal; font-size: 1.5rem; color: var(--accent); line-height: 1; }
.ifs strong { font-family: var(--f-display); font-size: 1.1875rem; font-weight: 600; line-height: 1.2; }
.ifs p { font-size: .875rem; color: var(--ink-soft); line-height: 1.5; }

.src { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
footer { border-top: 1px solid var(--line); padding-block: 26px 40px; color: var(--ink-soft); font-size: .8125rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--card); padding: 9px 16px; border-radius: 999px; font-size: .875rem; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.toast.on { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .view:not([hidden]) { animation: rise .45s cubic-bezier(.2,.7,.2,1); }
  @keyframes rise { from { opacity: .001; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* ---------- guest site ---------- */
.gmono { display: flex; align-items: baseline; gap: 2px; text-decoration: none; color: var(--ink); flex: none; }
.gmono b { font-family: var(--f-display); font-weight: 500; font-size: 1.5rem; letter-spacing: .04em; }
.gmono i { font-family: var(--f-script); font-style: normal; font-size: 1.5rem; color: var(--accent); margin: 0 1px; }
.nav a[href="#rsvp"] { color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.nav a[href="#rsvp"][aria-current="page"] { color: var(--card); background: var(--accent); border-color: var(--accent); }
.gfoot { align-items: center; }
.made { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); text-decoration: none; font-size: .8125rem; }
.made img { height: 18px; width: auto; display: block; }
.maplinks { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .875rem; font-weight: 700; margin-top: 4px; }
.event { display: flex; flex-direction: column; gap: 10px; }
.event h3 { font-size: var(--s3); }
.ev-time { font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; color: var(--accent); font-variant-numeric: lining-nums; }
.rsvp-card { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.rsvp-card h3 { font-size: var(--s2); }
.email { font-size: 1.125rem; font-weight: 700; overflow-wrap: anywhere; }
.air, .hotel, .thing, .person { display: flex; flex-direction: column; gap: 6px; }
.air h3, .hotel h3, .thing h3, .person h3 { font-size: 1.375rem; }
.code { font-family: var(--f-display); font-weight: 600; font-size: 2rem; letter-spacing: .08em; color: var(--accent); line-height: 1; }
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 48rem; }
.faq details { padding: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-family: var(--f-display); font-size: 1.375rem; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--f-body); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 20px; color: var(--ink-soft); max-width: 42rem; }
.story-photo { margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); max-height: 36rem; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pull { margin: 0 auto; max-width: 40rem; text-align: center; font-family: var(--f-display); font-style: italic; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.4; color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
.pull cite { font-style: normal; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: .8125rem; color: var(--accent); }
.empty { text-align: center; padding: 40px 22px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.path a h3 { font-size: var(--s2); }

/* ---------- admin ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.stat b { font-family: var(--f-display); font-weight: 500; font-size: 2.4rem; line-height: 1; color: var(--accent); font-variant-numeric: lining-nums tabular-nums; }
.stat span { color: var(--ink-soft); font-size: .875rem; font-weight: 600; }
.couple { display: flex; flex-direction: column; gap: 14px; }
.couple-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 16px; }
.couple-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.couple-id h3 { font-size: var(--s2); }
.facts2 { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; margin: 0; font-size: .9375rem; }
.facts2 dt { color: var(--ink-soft); font-weight: 600; }
.facts2 dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 30rem) { .facts2 { grid-template-columns: 1fr; gap: 2px; } .facts2 dd { margin-bottom: 8px; } }
.chip { display: inline-block; background: var(--wash); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: .8125rem; font-weight: 600; overflow-wrap: anywhere; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); white-space: nowrap; }
.pill.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.factions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.btn.danger { background: var(--warn); }
.btn[disabled] { opacity: .6; cursor: default; }
.aform { display: flex; flex-direction: column; gap: 14px; }
.frow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span { font-size: .8125rem; font-weight: 700; color: var(--ink-soft); letter-spacing: .02em; }
.field input, .field select, .field textarea, .sinput {
  font: 400 1rem var(--f-body); color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; min-height: 44px; width: 100%; min-width: 0;
}
.field input[type="checkbox"], .field input[type="radio"] { min-height: 0; width: auto; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .sinput:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.ferr { color: var(--warn); font-weight: 600; min-height: 0; }
.ferr:empty { display: none; }
.invite, .confirm { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.inv-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: .9375rem; }
.inv-meta dt { color: var(--ink-soft); font-weight: 600; }
.inv-meta dd { margin: 0; overflow-wrap: anywhere; }
.inv-body { margin: 0; white-space: pre-wrap; font: 400 .9375rem/1.6 var(--f-body); background: var(--wash); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; overflow-wrap: anywhere; }
.small { font-size: .875rem; }

/* ---------- seating ---------- */
:root {
  --side-a: #9E6B76; --side-b: #4C6FA3; --side-both: #8A6E3E; --seat-ink: #FFFFFF;
  --t0: #4C6FA3; --t1: #9E6B76; --t2: #5F8669; --t3: #8A6E3E; --t4: #6E5C99; --t5: #417C88; --t6: #9A6243; --t7: #5B6A86; --t8: #A3577E; --t9: #6B7F3A; --t10: #2F6E9E; --t11: #8C5A9C;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --side-a: #DDA7B2; --side-b: #93AEDA; --side-both: #CDB283; --seat-ink: #0F151F;
  --t0: #93AEDA; --t1: #DDA7B2; --t2: #9CC7A6; --t3: #CDB283; --t4: #B7A6E0; --t5: #8CC6D1; --t6: #E2A985; --t7: #AEBBD3; --t8: #E39BBE; --t9: #BCCB8A; --t10: #7FB4E0; --t11: #CFA3DE;
} }
:root[data-theme="dark"] {
  --side-a: #DDA7B2; --side-b: #93AEDA; --side-both: #CDB283; --seat-ink: #0F151F;
  --t0: #93AEDA; --t1: #DDA7B2; --t2: #9CC7A6; --t3: #CDB283; --t4: #B7A6E0; --t5: #8CC6D1; --t6: #E2A985; --t7: #AEBBD3; --t8: #E39BBE; --t9: #BCCB8A; --t10: #7FB4E0; --t11: #CFA3DE;
}
.seat-top { display: flex; flex-direction: column; gap: 14px; }
.balance { display: flex; flex-direction: column; gap: 8px; }
.bal-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--line); gap: 2px; }
.bal-bar span { min-width: 0; }
.bal-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .875rem; color: var(--ink-soft); }
.bal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bal-legend b { color: var(--ink); }
.side-a { background: var(--side-a); fill: var(--side-a); }
.side-b { background: var(--side-b); fill: var(--side-b); }
.side-both { background: var(--side-both); fill: var(--side-both); }
.sdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.seat-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 58px); z-index: 10; background: color-mix(in srgb, var(--paper) 94%, transparent); padding-block: 8px; margin-block: -8px; }
.segtabs { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--wash); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.segtabs button { font: 700 .875rem var(--f-body); color: var(--ink-soft); background: transparent; border: 0; border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.segtabs button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.seatbody { display: flex; flex-direction: column; gap: 20px; }
.btn.sm { padding: 6px 14px; min-height: 36px; font-size: .8125rem; }
.btn.warnb { color: var(--warn); }
.chips, .tnames { display: flex; flex-wrap: wrap; gap: 6px; }
.gchip { display: inline-flex; align-items: center; gap: 6px; font: 600 .8125rem var(--f-body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px 5px 9px; cursor: pointer; max-width: 100%; }
.gchip small { color: var(--ink-soft); font-weight: 600; }
.gchip:hover { border-color: var(--accent); }
.gchip.sel { background: var(--ink); color: var(--card); border-color: var(--ink); }
.gchip.sel small { color: inherit; }
.unseated { display: flex; flex-direction: column; gap: 12px; }
.unseated .sec-head h3 { font-size: var(--s1); }
.unseated select, .seat-search .sinput { font: 600 .875rem var(--f-body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.seat-search .sinput { width: min(16rem, 100%); }
.selbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; background: var(--wash); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.tgrid { --min: 15rem; }
.tcard { display: flex; flex-direction: column; gap: 12px; padding: 16px; transition: border-color .15s, box-shadow .15s; }
.tcard.target { border-color: var(--accent); }
.tcard.over { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent); }
.tcard-svg { cursor: default; }
.tcard.target .tcard-svg { cursor: pointer; }
.tsvg { display: block; width: 100%; max-width: 240px; height: auto; margin-inline: auto; }
.tsvg .tbl { fill: color-mix(in srgb, var(--tc) 14%, var(--card)); stroke: var(--tc); stroke-width: 2; }
.tsvg .tname { font: 600 15px var(--f-display); fill: var(--ink); text-anchor: middle; }
.tsvg .tcount { font: 700 11px var(--f-body); fill: var(--ink-soft); text-anchor: middle; }
.tsvg .seat.empty { fill: var(--card); stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 3 3; }
.tsvg .seat.on { cursor: pointer; }
.tsvg .seat.on text { font: 800 10.5px var(--f-body); fill: var(--seat-ink); text-anchor: middle; pointer-events: none; }
.tsvg .seat.sel circle { stroke: var(--ink); stroke-width: 3; }
.twarn { margin: 0; padding-left: 18px; color: var(--warn); font-size: .8125rem; font-weight: 600; }
.treewrap { overflow-x: auto; padding: 16px; }
.tree { display: block; height: auto; margin-inline: auto; }
.tree .thead { font: 600 15px var(--f-display); fill: var(--ink); letter-spacing: .06em; text-transform: uppercase; }
.tree .tgen { font: 700 10px var(--f-body); fill: var(--ink-soft); text-anchor: middle; letter-spacing: .14em; text-transform: uppercase; }
.tree .trule { stroke: var(--line); stroke-dasharray: 2 5; }
.tree .tlink { fill: none; stroke: var(--line); stroke-width: 1.5; }
.tree .tpair { stroke: var(--ink-soft); stroke-width: 2; }
.tree .tbox { fill: var(--card); stroke-width: 2; }
.tree .tbox.side-a { stroke: var(--side-a); fill: color-mix(in srgb, var(--side-a) 10%, var(--card)); }
.tree .tbox.side-b { stroke: var(--side-b); fill: color-mix(in srgb, var(--side-b) 10%, var(--card)); }
.tree .tbox.side-both { stroke: var(--side-both); fill: color-mix(in srgb, var(--side-both) 10%, var(--card)); }
.tree .tnode { cursor: pointer; }
.tree .tnode:focus-visible .tbox, .tree .tnode.sel .tbox { stroke: var(--ink); stroke-width: 3; }
.tree .tn { font: 700 12.5px var(--f-body); fill: var(--ink); }
.tree .tr { font: 600 10.5px var(--f-body); fill: var(--ink-soft); }
.tree .tt { font: 800 10px var(--f-body); fill: var(--seat-ink); text-anchor: middle; }
.tree .tcouple { fill: var(--ink); }
.tree .tcname { font: 500 22px var(--f-script); fill: var(--card); text-anchor: middle; }
.clusters { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); align-items: start; }
.cluster { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.cl { max-width: 100%; height: auto; }
.cl-ring.side-a { fill: color-mix(in srgb, var(--side-a) 10%, var(--card)); stroke: var(--side-a); stroke-width: 2; }
.cl-ring.side-b { fill: color-mix(in srgb, var(--side-b) 10%, var(--card)); stroke: var(--side-b); stroke-width: 2; }
.cl-ring.side-both { fill: color-mix(in srgb, var(--side-both) 10%, var(--card)); stroke: var(--side-both); stroke-width: 2; }
.cl-dot { stroke: var(--card); stroke-width: 1.5; }
.cl-dot.un { fill: var(--card); stroke: var(--ink-soft); stroke-width: 1.5; }
.cluster figcaption { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.cluster figcaption strong { font-family: var(--f-display); font-size: var(--s1); font-weight: 600; }
.verdict { font-size: .8125rem; font-weight: 700; color: var(--ink-soft); }
.verdict.ok { color: var(--ok); }
.verdict.split { color: var(--warn); }
.tlegend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; font-size: .75rem; color: var(--ink-soft); }
.tlegend span { display: inline-flex; align-items: center; gap: 4px; }
.tlegend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.bulk summary { cursor: pointer; font-weight: 700; }
.bulk[open] summary { margin-bottom: 14px; }
.check-inline { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9375rem; }
.glist { padding: 0; overflow-x: auto; }
.glist table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 44rem; }
.glist th { text-align: left; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.glist td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.glist td:first-child { white-space: nowrap; }
.glist td:first-child .sdot { margin-right: 8px; }
.glist tr:last-child td { border-bottom: 0; }
.glist tr.editing td { background: var(--wash); white-space: normal; }
.tpill { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .8125rem; white-space: nowrap; }
.tpill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--tc); }
.glines { display: flex; flex-direction: column; gap: 10px; }
.gline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.gline .btn { margin-left: auto; }
@media (max-width: 36rem) { .tgrid { --min: 9.5rem; gap: 10px; } .tcard { padding: 12px; } .tcard .gchip { font-size: .75rem; padding: 4px 9px 4px 7px; } }
#admin-body { display: flex; flex-direction: column; gap: 28px; }
.segtabs { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
@media (max-width: 30rem) { .segtabs button { padding: 7px 11px; font-size: .8125rem; white-space: nowrap; } }

/* ---------- views: switcher, tasks, overview, docs, guides ---------- */
:root { --o-officiant: var(--accent); --o-planner: var(--side-both); --o-couple: var(--side-a); --o-system: var(--ink-soft); }
.viewbar { background: var(--ink); color: var(--card); font-size: .8125rem; }
.viewbar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding-block: 6px; }
.vb-who { opacity: .85; min-width: 0; overflow-wrap: anywhere; }
.vb-who b { font-weight: 700; }
.vb-views { display: flex; flex-wrap: wrap; gap: 2px; margin-left: auto; }
.vb-views a, .vb-out { color: var(--card); text-decoration: none; font-weight: 700; padding: 8px 12px; min-height: 36px; display: inline-flex; align-items: center; white-space: nowrap; border-radius: 999px; opacity: .8; }
.vb-views a:hover, .vb-out:hover { opacity: 1; background: color-mix(in srgb, var(--card) 14%, transparent); }
.vb-views a.on { opacity: 1; background: var(--card); color: var(--ink); }
.vtag { font: 800 .6875rem var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; flex: none; }
.tbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.segtabs .cnt { display: inline-block; min-width: 1.5em; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--line); color: var(--ink); font-size: .75rem; }
.segtabs button.on .cnt { background: var(--wash); }
.pillsel { font: 700 .875rem var(--f-body); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; }
.tgroup { display: flex; flex-direction: column; gap: 10px; }
.tgroup > h3 { font-size: var(--s1); }
.tgroup.late > h3 { color: var(--warn); }
.tlist { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.trow + .trow { border-top: 1px solid var(--line); }
.trow-main { display: flex; align-items: flex-start; gap: 4px; }
.tcheck { display: flex; padding: 16px 6px 16px 18px; cursor: pointer; }
.tcheck input { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; margin: 0; }
.tcheck input:disabled { cursor: not-allowed; opacity: .45; }
.ttitle { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; text-align: left; background: none; border: 0; color: var(--ink); padding: 14px 18px 14px 6px; cursor: pointer; font: inherit; }
.ttitle:hover .tt { color: var(--accent); }
.tt { font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.trow.done .tt { text-decoration: line-through; text-decoration-color: var(--ink-soft); color: var(--ink-soft); }
.tmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .8125rem; color: var(--ink-soft); }
.opill { display: inline-flex; align-items: center; gap: 5px; font-size: .6875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.opill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--oc, var(--ink-soft)); }
.o-officiant { --oc: var(--o-officiant); } .o-planner { --oc: var(--o-planner); } .o-couple { --oc: var(--o-couple); } .o-system { --oc: var(--o-system); }
.tdue { font-weight: 700; }
.tdue.late { color: var(--warn); }
.tdetail { padding: 0 18px 18px 50px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 30rem) { .tdetail { padding-left: 18px; } }
.tnotes { white-space: pre-wrap; background: var(--wash); border-radius: 10px; padding: 10px 14px; overflow-wrap: anywhere; }
.comments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.comments li { border-left: 3px solid var(--line); padding-left: 12px; font-size: .9375rem; }
.comments p { white-space: pre-wrap; overflow-wrap: anywhere; }
.tcomment { display: flex; gap: 10px; align-items: flex-end; }
.tcomment textarea { flex: 1; min-width: 0; font: 400 .9375rem var(--f-body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; resize: vertical; }
.tcomment textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.ov-count { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.ov-n { display: flex; align-items: baseline; gap: 10px; }
.ov-n b { font-family: var(--f-display); font-weight: 500; font-size: 3.5rem; line-height: 1; color: var(--accent); font-variant-numeric: lining-nums; }
.ov-n span { font-weight: 700; color: var(--ink-soft); }
.ov-count strong { font-family: var(--f-display); font-size: var(--s2); font-weight: 600; }
.ov-roles { --min: 16rem; }
.ov-role { display: flex; gap: 16px; align-items: center; text-decoration: none; color: var(--ink); }
.ov-role:hover { border-color: var(--accent); }
.ov-ring { position: relative; width: 72px; height: 72px; flex: none; display: grid; place-items: center; }
.ov-ring span { position: absolute; font-weight: 800; font-size: .875rem; }
.ring { width: 72px; height: 72px; }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 7; }
.ring-fg { fill: none; stroke: var(--oc); stroke-width: 7; stroke-linecap: round; }
.ov-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ov-txt strong { font-family: var(--f-display); font-size: var(--s1); font-weight: 600; }
.late { color: var(--warn); font-weight: 700; }
.ov-late { border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); }
.mlist, .alist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mlist li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: 10px; align-items: baseline; font-size: .9375rem; }
.mlist .tdue { font-size: .8125rem; color: var(--ink-soft); }
.mlist .tdue.late { color: var(--warn); }
.mt { overflow-wrap: anywhere; }
@media (max-width: 30rem) { .mlist li { grid-template-columns: 1fr auto; } .mlist .tdue { grid-column: 1 / -1; } }
.alist li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: baseline; font-size: .9375rem; }
.adot { width: 9px; height: 9px; border-radius: 50%; background: var(--oc); display: inline-block; }
.ov-links { --min: 13rem; }
.ov-links a { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.ov-links a:hover { border-color: var(--accent); }
.ov-links strong { font-family: var(--f-display); font-size: var(--s1); font-weight: 600; }
.dgroup { display: flex; flex-direction: column; gap: 8px; }
.dlist { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.dlist li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.dlist li + li { border-top: 1px solid var(--line); }
.dico { flex: none; width: 4.6rem; text-align: center; font-size: .6875rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--wash); border: 1px solid var(--line); border-radius: 8px; padding: 6px 4px; }
.dico.link { color: var(--gold); }
.dtxt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dtxt a { font-weight: 700; overflow-wrap: anywhere; }
.dtxt .small { overflow-wrap: anywhere; }
.ros, .cues { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ros li { display: grid; grid-template-columns: 8.5rem 6.5rem minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.ros li:last-child { border-bottom: 0; }
.ros-t { font-weight: 800; white-space: nowrap; }
.ros-who { font-size: .6875rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.ros-ceremony .ros-who { color: var(--accent); }
.ros-reception .ros-who { color: var(--gold); }
.ros li.key .ros-x { font-weight: 700; }
@media (max-width: 30rem) { .ros li { grid-template-columns: 7.5rem minmax(0, 1fr); } .ros-t { white-space: normal; } .ros-who { grid-column: 2; grid-row: 1; } .ros-x { grid-column: 2; } }
.cues li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.cues li:last-child { border-bottom: 0; }
.cue-n { font-family: var(--f-display); font-size: 1.6rem; color: var(--accent); line-height: 1; }
.cues strong { font-family: var(--f-display); font-size: var(--s1); font-weight: 600; }
.cue { margin-top: 6px; padding: 8px 12px; background: var(--wash); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; font-weight: 600; }
.contacts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.contacts li { display: grid; grid-template-columns: 7rem minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contacts li:last-child { border-bottom: 0; }
.contacts li > div { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 30rem) { .contacts li { grid-template-columns: minmax(0, 1fr) auto; } .contacts .caps { grid-column: 1 / -1; } }
@media print {
  .viewbar, .top, footer, .toast, .btn, .copy, .tbar, .seat-bar { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border-color: #bbb; }
  main { padding: 0; }
}
@media (max-width: 40rem) {
  .vb-who { display: none; } .vb-role { display: none; }
  .viewbar-in { flex-wrap: wrap; justify-content: space-between; gap: 0 10px; padding-block: 4px; }
  .vb-home { order: 1; padding: 6px 0; font-size: .9375rem; } .vb-out { order: 2; }
  .vb-views { order: 3; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 2px 4px 6px; gap: 4px;
    -webkit-mask-image: linear-gradient(90deg, #000 94%, transparent); mask-image: linear-gradient(90deg, #000 94%, transparent); }
  .vb-views::-webkit-scrollbar { display: none; }
  .vb-views a { min-height: 40px; padding: 6px 12px; }
}

/* ---------- multi-wedding: editors, team, home, admin, public site ---------- */
.vb-home { color: var(--card); text-decoration: none; opacity: .9; min-width: 0; overflow-wrap: anywhere; }
.vb-home:hover { opacity: 1; text-decoration: underline; }
.edsec { display: flex; flex-direction: column; gap: 12px; }
.edsec > summary { cursor: pointer; font-family: var(--f-display); font-size: var(--s2); font-weight: 600; }
.edsec[open] > summary { margin-bottom: 6px; }
.rlist { display: flex; flex-direction: column; gap: 12px; }
.ritem { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.rsub { display: flex; flex-direction: column; gap: 8px; padding-left: 12px; border-left: 3px solid var(--line); }
/* progress line (Goal-Gradient): "12 of 59 answered" + a bar; .sticky keeps it in view through long flows */
.prog { display: flex; flex-direction: column; gap: 6px; }
.prog-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; font-size: .875rem; color: var(--ink-soft); }
.prog-txt b { color: var(--ink); font-weight: 700; } .prog-note { font-size: .8125rem; }
.prog-bar { display: block; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.prog-fill { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 6px; transition: width .35s ease; }
.prog.done .prog-fill { background: var(--ok); } .prog.done .prog-txt b { color: var(--ok); }
.prog.sticky { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 58px); z-index: 12; background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 10px 0 10px; margin-top: -4px; }
.stepn { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.stepn i { font-style: normal; font-family: var(--f-display); font-size: 1rem; letter-spacing: 0; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--wash); }
.step-head { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.step-head .sec-head { margin: 0; }
.step-next { display: flex; justify-content: flex-end; }
.secmeta { font-family: var(--f-body); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-left: 10px; }
.secmeta.ok { color: var(--ok); }
/* success card (Peak-End): what just happened, and the next step */
.card.done { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; border-color: color-mix(in srgb, var(--ok) 55%, var(--line)); background: color-mix(in srgb, var(--ok) 9%, var(--card)); }
.done-ic { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: var(--card); font-weight: 800; font-size: 1.1rem; }
.done-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; } .done-txt strong { font-family: var(--f-display); font-size: var(--s2); font-weight: 600; } .done-txt p { margin: 0; color: var(--ink-soft); }
.done-x { background: none; border: 0; color: var(--ink-soft); font-size: 1.5rem; line-height: 1; width: 44px; height: 44px; margin: -10px -12px 0 0; border-radius: 50%; cursor: pointer; }
.done-x:hover { background: var(--wash); color: var(--ink); }
.savebar { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 15; display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  background: color-mix(in srgb, var(--paper) 92%, transparent); border: 1px solid var(--line); border-radius: 999px; padding: 8px; width: fit-content; max-width: 100%; box-shadow: var(--shadow); }
.pubcard { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 18px; align-items: center; }
@media (max-width: 30rem) { .pubcard { grid-template-columns: 1fr; } }
.pub-photo { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pub-photo img { width: 9rem; height: 9rem; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.pub-photo label.btn input { display: none; }
.pub-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.cerlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cerlist > li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 12px; }
.cerlist strong { font-family: var(--f-display); font-size: var(--s1); font-weight: 600; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); font: 600 .875rem var(--f-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; margin-top: 6px; }
.ivq { display: flex; flex-direction: column; gap: 18px; }
.ivq-row { display: flex; flex-direction: column; gap: 8px; }
.ivq-row + .ivq-row { border-top: 1px solid var(--line); padding-top: 16px; }
.ivq-row textarea { font: 400 1rem var(--f-body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; resize: vertical; width: 100%; }
.ivq-row textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.ans, .theirs { white-space: pre-wrap; background: var(--wash); border-radius: 10px; padding: 10px 14px; overflow-wrap: anywhere; }
.theirs { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; border-left: 3px solid var(--o-couple); }
.person { display: flex; flex-direction: column; gap: 8px; }
.person-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.person-top > div { min-width: 0; overflow-wrap: anywhere; }
.person p.small { overflow-wrap: anywhere; }
.vshare { font-size: .75rem; font-weight: 800; color: var(--gold); }
.diets { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.wcard { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
a.wcard:hover { border-color: var(--accent); }
.wcard h3 { font-size: var(--s2); }
.wcard .opill { align-self: flex-start; }
table.roles { min-width: 50rem; }
table.roles th[scope="row"] { text-align: left; color: var(--ink); font-size: .875rem; letter-spacing: 0; text-transform: none; font-weight: 700; white-space: nowrap; }
table.roles td { font-size: .875rem; }
.landing { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 40px; padding-block: 48px; }
.landing .intro img { height: clamp(110px, 18vw, 150px); }
.previewbar { position: sticky; top: 0; z-index: 50; background: var(--gold); color: var(--card); text-align: center; font-weight: 700; font-size: .875rem; padding: 8px 16px; }
.photo .nophoto { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-soft); font-weight: 700; text-decoration: none; }
.nophoto-g { position: relative; color: var(--accent); }
.subview { display: flex; flex-direction: column; gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; }

/* ---------- questions page print + the officiant's booklet ---------- */
.ivq-p { display: flex; flex-direction: column; gap: 6px; font-size: 1.0625rem; line-height: 1.45; }
.ivq-p .bullets { margin: 4px 0 0; }
.pr-ans, .pr-only { display: none; }
.lg-theirs { list-style: none; margin: -4px 0 6px 30px; }
.bk-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 22px; }
.booklet { display: flex; flex-direction: column; gap: 26px; align-items: center; }
.bk-page { position: relative; width: 100%; max-width: 8.5in; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow);
  padding: clamp(22px, 6vw, .8in) clamp(18px, 6vw, .85in); display: flex; flex-direction: column; gap: 18px; overflow-wrap: anywhere; }
.bk-half .bk-page { max-width: 5.5in; padding: clamp(18px, 5vw, .5in); font-size: .875rem; }
.bk-page h3 { font-family: var(--f-display); font-size: var(--s2); font-weight: 600; margin: 6px 0 0; line-height: 1.2; }
.bk-cover { align-items: center; text-align: center; justify-content: center; min-height: min(11in, 90vh); overflow: hidden; }
.bk-half .bk-cover { min-height: min(8.5in, 80vh); }
.bk-cover .florals, .bk-cover svg.fl { pointer-events: none; }
.bk-eyebrow, .bk-chap, .bk-lab { font-family: var(--f-display); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: .75rem; color: var(--gold); margin: 0; }
.bk-cover .names { display: flex; flex-direction: column; align-items: center; font-family: var(--f-script); font-size: clamp(2.6rem, 9vw, 4.4rem); line-height: 1.05; color: var(--ink); }
.bk-cover .names i { font-family: var(--f-display); font-style: italic; font-size: .4em; color: var(--gold); margin: 4px 0; }
.bk-date { font-family: var(--f-display); font-size: var(--s2); margin: 0; }
.bk-venue { color: var(--ink-soft); margin: 0; }
.bk-verse { max-width: 30rem; margin: 6px auto 0; font-family: var(--f-display); font-style: italic; font-size: 1.125rem; line-height: 1.45; }
.bk-verse cite { display: block; font-style: normal; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
.bk-by { margin: 10px 0 0; font-weight: 700; }
.bk-ed { margin: 0; font-size: var(--s-1); color: var(--ink-soft); }
.bk-head { display: flex; flex-direction: column; gap: 4px; }
.bk-head h2 { font-family: var(--f-display); font-weight: 600; font-size: var(--s3); line-height: 1.1; margin: 0; text-wrap: balance; }
.bk-head .rule { color: var(--gold); max-width: 16rem; }
.bk-sub { color: var(--ink-soft); margin: 0; max-width: 40rem; }
.bk-page .bk-head + * { margin-top: 2px; }
.bk-page .bk-head:not(:first-child) { margin-top: 18px; }
.bk-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 22px; align-items: start; }
.bk-two > * { min-width: 0; }
.bk-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 0; }
.bk-dl dt { font-weight: 700; font-size: var(--s-1); color: var(--ink-soft); padding-top: 2px; }
.bk-dl dd { margin: 0; }
.bk-list, .bk-tasks, .bk-run, .bk-ms, .bk-ess, .bk-prog, .bk-steps, .bk-story { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.bk-list li { padding-left: 16px; position: relative; }
.bk-list li::before { content: "·"; position: absolute; left: 4px; color: var(--gold); font-weight: 800; }
.bk-story li { border-left: 2px solid var(--line); padding-left: 12px; }
.bk-story time, .bk-ms time { display: block; font-size: var(--s-1); color: var(--gold); font-weight: 700; }
.bk-story p, .bk-ms p, .bk-ess p, .bk-prog p, .bk-steps p, .bk-ifs p, .bk-qa p { margin: 2px 0 0; }
.bk-cred { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.bk-seal { width: 96px; flex: none; color: var(--gold); }
.bk-seal svg { width: 100%; height: auto; display: block; }
.bk-cred .bk-dl { flex: 1 1 15rem; }
.bk-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 16px; }
.bk-ms li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; }
.bk-ms li.big strong { color: var(--accent); }
@media (max-width: 30rem) { .bk-ms li { grid-template-columns: 1fr; gap: 0; } }
.bk-num { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; color: var(--gold); min-width: 1.6em; }
.bk-ess li, .bk-prog li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.bk-prog li { grid-template-columns: auto minmax(0, 1fr); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.bk-prog li.k-legal .bk-num { color: var(--accent); }
.bk-row { display: flex; gap: 8px; align-items: baseline; }
.bk-row .dots { flex: 1; border-bottom: 1px dotted var(--line); min-width: 12px; }
.bk-cue { font-size: var(--s-1); color: var(--ink-soft); }
.bk-box { flex: none; display: inline-grid; place-items: center; width: 1.05em; height: 1.05em; border: 1.5px solid var(--ink-soft); border-radius: 3px; font-size: .9em; line-height: 1; margin-top: .2em; color: var(--ok); font-weight: 800; }
.bk-tasks li { display: flex; gap: 10px; align-items: flex-start; }
.bk-must { color: var(--warn); }
.bk-weeks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 20px; }
.bk-week h3 { display: flex; flex-direction: column; margin-bottom: 8px; }
.bk-week h3 span { font-family: var(--f-body); font-size: var(--s-1); font-weight: 600; color: var(--ink-soft); }
.bk-steps { counter-reset: st; }
.bk-steps li { counter-increment: st; padding-left: 2rem; position: relative; }
.bk-steps li::before { content: counter(st); position: absolute; left: 0; font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; color: var(--gold); line-height: 1.3; }
.bk-lines { display: flex; flex-direction: column; gap: 14px; }
.bk-line blockquote { margin: 4px 0 0; padding: 10px 14px; border-left: 3px solid var(--gold); background: var(--wash); border-radius: 0 8px 8px 0; font-size: 1.0625rem; line-height: 1.5; }
.bk-half .bk-line blockquote { font-size: .9375rem; }
.bk-answer { margin: 4px 0 0; font-weight: 700; }
.bk-run li { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: 10px; }
.bk-run li.key { font-weight: 700; }
.bk-ifs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 14px; }
.bk-ifs > div { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; break-inside: avoid; }
.bk-ifs em { display: block; font-family: var(--f-display); color: var(--gold); }
.bk-qa { display: flex; flex-direction: column; gap: 16px; }
.bk-qa > div { break-inside: avoid; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.bk-theirs { white-space: pre-wrap; }
.bk-note { font-size: var(--s-1); color: var(--ink-soft); white-space: pre-wrap; }
@media print {
  .no-print, .savebar, .bk-tools, .view > .head, .iv-tools { display: none !important; }
  html, body { background: #fff !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #v-interview textarea { display: none !important; }
  #v-interview .pr-ans { display: block; white-space: pre-wrap; min-height: 3.2em; border-bottom: 1px solid #999; padding: 4px 0 8px; }
  .pr-only { display: block; }
  .pr-title { font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; margin: 0 0 12px; }
  .ivq-row { break-inside: avoid; }
  #v-interview .card { border: 0; padding: 0; box-shadow: none; }
  .bk-page h3, .bk-head, .sec-head { break-after: avoid; }
  .booklet { display: block; }
  .bk-page { max-width: none !important; border: 0 !important; border-radius: 0; box-shadow: none !important; padding: 0 !important; break-after: page; }
  .bk-page:last-child { break-after: auto; }
  .bk-cover { min-height: 9.6in; }
  .bk-half .bk-cover { min-height: 7.4in; }
  .bk-ess li, .bk-prog li, .bk-ms li, .bk-run li, .bk-tasks li, .bk-line, .bk-week { break-inside: avoid; }
}
.bk-opt { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; cursor: pointer; }
.bk-opt input { width: 1.1em; height: 1.1em; accent-color: var(--accent); }

/* ---------- floor plan (reception + ceremony, drawn to scale in feet) ---------- */
.fp-top { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.fp-top > .muted { flex: 1 1 16rem; min-width: 0; }
.fp-setup > summary { cursor: pointer; font-weight: 700; }
.fp-setup[open] { display: flex; flex-direction: column; gap: 12px; }
.fp-roomform input, .fp-insp input, .fp-insp select, .fp-roomform select { max-width: 100%; }
.fp-palette { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.fp-pal { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fp-pal-b { display: flex; flex-wrap: wrap; gap: 6px; }
.fp-pal-b .btn { white-space: nowrap; }
.fp-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 21rem); gap: 16px; align-items: start; }
@media (max-width: 62rem) { .fp-main { grid-template-columns: minmax(0, 1fr); } }
.fp-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fp-side { position: sticky; top: calc(76px + env(safe-area-inset-top, 0px)); }
@media (max-width: 62rem) { .fp-side { position: static; } }
.fp-wrap { padding: 10px; }
.fp-wrap.seating { outline: 2px dashed var(--accent); outline-offset: 2px; }
.fp-scroll { overflow: auto; max-height: 78vh; border-radius: 8px; }
.fp-canvas { min-width: 100%; }
.fp-svg { display: block; width: 100%; height: auto; font-family: var(--f-body); user-select: none; -webkit-user-select: none; }
.fp-room { fill: var(--paper); stroke: var(--ink); stroke-width: .35; }
.fp-room.out { fill: color-mix(in srgb, var(--ok) 9%, var(--paper)); stroke: var(--ok); stroke-dasharray: 1 .8; }
.fp-grid { pointer-events: none; }
.fp-gridline { fill: none; stroke: var(--line); stroke-width: .07; }
.fp-scale path { stroke: var(--ink-soft); stroke-width: .2; fill: none; }
.fp-scale text, .fp-dim { font-size: 1px; fill: var(--ink-soft); font-weight: 700; }
.fp-dim { text-anchor: end; }
.fp-item { cursor: pointer; outline: none; }
.fp-item:focus-visible .fp-tbl, .fp-item:focus-visible .fp-fx, .fp-item:focus-visible .fp-sec { stroke: var(--accent); stroke-width: .35; }
.fp-item.dragging { opacity: .75; cursor: grabbing; }
.fp-tbl { fill: color-mix(in srgb, var(--tc, var(--accent)) 16%, var(--card)); stroke: var(--tc, var(--accent)); stroke-width: .18; }
.fp-seat { fill: var(--card); stroke: var(--ink-soft); stroke-width: .12; }
.fp-seat.on { stroke: none; }
.fp-seat.on.side-a { fill: var(--side-a); } .fp-seat.on.side-b { fill: var(--side-b); } .fp-seat.on.side-both { fill: var(--side-both); }
.fp-tn { font-weight: 800; text-anchor: middle; fill: var(--ink); dominant-baseline: middle; pointer-events: none; }
.fp-tc { font-weight: 700; text-anchor: middle; fill: var(--ink-soft); pointer-events: none; }
.fp-fx { fill: color-mix(in srgb, var(--ink-soft) 12%, var(--card)); stroke: var(--ink-soft); stroke-width: .14; }
.fx-dance .fp-fx { fill: url(#fp-check); stroke: var(--gold); stroke-width: .25; }
.fp-ck { fill: color-mix(in srgb, var(--gold) 18%, var(--card)); }
.fx-dj .fp-fx, .fx-band .fp-fx, .fx-musicians .fp-fx, .fx-sound .fp-fx { fill: color-mix(in srgb, var(--t4) 18%, var(--card)); stroke: var(--t4); }
.fx-buffet .fp-fx, .fx-bar .fp-fx, .fx-dessert .fp-fx, .fx-cake .fp-fx { fill: color-mix(in srgb, var(--t6) 16%, var(--card)); stroke: var(--t6); }
.fx-arch .fp-fx, .fx-unity .fp-fx { fill: color-mix(in srgb, var(--gold) 22%, var(--card)); stroke: var(--gold); stroke-width: .25; }
.fx-aisle .fp-fx { fill: color-mix(in srgb, var(--side-a) 12%, var(--card)); stroke: none; }
.fx-pillar .fp-fx { fill: var(--ink-soft); }
.fx-lounge .fp-fx, .fx-photo .fp-fx, .fx-decor .fp-fx { fill: color-mix(in srgb, var(--ok) 14%, var(--card)); stroke: var(--ok); }
.fp-door { fill: var(--accent); }
.fx-exit .fp-door, .fx-restroom .fp-door, .fx-service .fp-door { fill: var(--warn); }
.fp-swing { fill: none; stroke: var(--ink-soft); stroke-width: .1; stroke-dasharray: .4 .3; }
.fp-sec { fill: color-mix(in srgb, var(--accent) 6%, transparent); stroke: var(--line); stroke-width: .12; stroke-dasharray: .5 .4; }
.fp-chair { fill: var(--card); stroke: var(--ink-soft); stroke-width: .1; }
.fp-chair.on { stroke: none; }
.fp-chair.on.side-a { fill: var(--side-a); } .fp-chair.on.side-b { fill: var(--side-b); } .fp-chair.on.side-both { fill: var(--side-both); }
.fp-fl { font-weight: 700; text-anchor: middle; fill: var(--ink); dominant-baseline: middle; pointer-events: none; }
.fp-item.sel .fp-tbl, .fp-item.sel .fp-fx, .fp-item.sel .fp-sec, .fp-item.sel .fp-door { stroke: var(--accent); stroke-width: .45; stroke-dasharray: none; }
.fp-item.target .fp-tbl, .fp-item.target .fp-sec { stroke: var(--accent); stroke-width: .35; }
.fp-item.full { opacity: .45; }
.fp-insp { display: flex; flex-direction: column; gap: 10px; }
.fp-insp .sec-head h3 { font-size: var(--s1); }
.fp-insp .frow { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: 8px; }
.fp-guests .chips { max-height: 18rem; overflow: auto; }
.gchip .x { margin-left: 4px; font-weight: 800; color: var(--ink-soft); padding: 0 2px; }
.fp-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.fp-legend .sw { display: inline-block; width: .8em; height: .8em; border-radius: 50%; margin-right: 5px; vertical-align: -1px; border: 1px solid var(--ink-soft); background: var(--card); }
.fp-legend .sw.side-a { background: var(--side-a); border: 0; } .fp-legend .sw.side-b { background: var(--side-b); border: 0; } .fp-legend .sw.side-both { background: var(--side-both); border: 0; }
.fp-warn { display: flex; flex-direction: column; gap: 4px; }
.fp-warn .linkish { font-weight: 700; }
/* AI assistant */
.ai-status { display: flex; gap: 12px; align-items: flex-start; }
.ai-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; background: var(--ink-soft); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink-soft) 20%, transparent); }
.ai-status.on .ai-dot { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); }
.ai-card { display: flex; flex-direction: column; gap: 12px; }
.ai-card textarea { font: 400 1rem var(--f-body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; resize: vertical; }
.ai-review { display: flex; flex-direction: column; gap: 12px; }
.ai-review select, .ai-review input:not([type=checkbox]) { font: 600 .8125rem var(--f-body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; max-width: 11rem; }
.ai-review tr.dupe { opacity: .55; }
.ai-tables { --min: 14rem; }
.ai-t { border: 1px solid var(--line); border-left: 4px solid var(--tc); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ai-t p { margin: 0; }
@media print {
  .fp-palette, .fp-setup, .fp-side, .fp-warn, .ai-card, .segtabs, .seat-top { display: none !important; }
  .fp-main { display: block; }
  .fp-scroll { max-height: none; overflow: visible; }
  .fp-canvas { width: 100% !important; }
  .fp-wrap { border: 0; padding: 0; }
}
.fp-ro { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.fp-ro > .card { align-self: stretch; }

/* ---------- seat numbers and initials ---------- */
.tsvg .seat { cursor: pointer; outline: none; }
.tsvg .seat.empty text { font: 700 11px var(--f-body); fill: var(--ink-soft); stroke: none; text-anchor: middle; pointer-events: none; }
.tsvg .seat.empty:hover circle, .tsvg .seat.over circle, .tsvg .seat:focus-visible circle { stroke: var(--accent); stroke-dasharray: none; stroke-width: 2.5; }
.fp-seat { cursor: pointer; }
.fp-seat circle { fill: var(--card); stroke: var(--ink-soft); stroke-width: .1; }
.fp-seat text { font-size: .72px; font-weight: 800; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.fp-seat.open text { fill: var(--ink-soft); font-weight: 700; font-size: .62px; }
.fp-seat.on circle { stroke: none; }
.fp-seat.on text { fill: var(--seat-ink); }
.fp-seat.on.side-a circle { fill: var(--side-a); } .fp-seat.on.side-b circle { fill: var(--side-b); } .fp-seat.on.side-both circle { fill: var(--side-both); }
.fp-seat.side-a, .fp-seat.side-b, .fp-seat.side-both { background: none; }
.fp-seat:hover circle, .fp-seat.over circle { stroke: var(--accent); stroke-width: .25; }
.fp-seat.info circle { stroke: var(--ink); stroke-width: .3; }
.fp-seat.lifting { opacity: .35; }
.fp-chair rect { fill: var(--card); stroke: var(--ink-soft); stroke-width: .1; }
.fp-chair.on rect { stroke: none; }
.fp-chair.on.side-a rect { fill: var(--side-a); } .fp-chair.on.side-b rect { fill: var(--side-b); } .fp-chair.on.side-both rect { fill: var(--side-both); }
.fp-chair.on { cursor: pointer; }
.fp-chair text { font-size: .5px; font-weight: 800; fill: var(--seat-ink); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.fp-ghost { pointer-events: none; }
.fp-ghost circle { fill: var(--accent); opacity: .9; }
.fp-ghost text { font-size: .9px; font-weight: 800; fill: var(--card); text-anchor: middle; dominant-baseline: central; }
.fp-t.over .fp-tbl, .fx-chairs.over .fp-sec { stroke: var(--accent); stroke-width: .5; }

/* ---------- guest card ---------- */
.ginfo { position: fixed; z-index: 60; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: min(25rem, calc(100vw - 32px));
  max-height: min(78vh, 46rem); overflow: auto; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 18px 48px -12px rgba(15, 21, 31, .45); border-color: var(--accent); }
@media (max-width: 34rem) { .ginfo { left: 0; right: 0; bottom: 0; width: auto; max-height: 82vh; border-radius: 18px 18px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); } }
.ginfo-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.ginfo-h h3 { font-size: var(--s1); margin: 0; overflow-wrap: anywhere; }
.ginfo-h p { margin: 2px 0 0; }
.ginfo-x { border: 0; background: var(--wash); color: var(--ink); width: 34px; height: 34px; border-radius: 50%; font-size: 1.25rem; line-height: 1; cursor: pointer; }
.ginfo-ph { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ginfo-av { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font: 800 1.25rem var(--f-body); color: var(--seat-ink); object-fit: cover; flex: none; }
.ginfo-av.ph { border: 2px solid var(--line); }
.ginfo-phb { border: 0; background: none; color: var(--accent); font: 700 .75rem var(--f-body); cursor: pointer; padding: 0; }
.ginfo-sex { color: var(--ink-soft); font-weight: 700; }
.ginfo-mail a { overflow-wrap: anywhere; }
.ginfo-num { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font: 800 1.25rem var(--f-body); color: var(--tc); border: 2px dashed var(--tc); }
.ginfo-secs { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.ginfo-sec { border-bottom: 1px solid var(--line); }
.ginfo-sec > summary { cursor: pointer; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 10px 0; font-weight: 700; list-style: none; }
.ginfo-sec > summary::-webkit-details-marker { display: none; }
.ginfo-sec > summary::after { content: "▾"; color: var(--ink-soft); margin-left: auto; }
.ginfo-sec[open] > summary::after { content: "▴"; }
.ginfo-sec > summary small { margin-left: auto; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; font-weight: 600; }
.ginfo-body { display: flex; flex-direction: column; gap: 10px; padding-bottom: 12px; }
.ginfo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 8px; padding-bottom: 12px; }
.ginfo input:not([type=checkbox]):not([type=file]), .ginfo select, .ginfo textarea { font: 400 .9375rem var(--f-body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; width: 100%; min-width: 0; }
.ginfo .frow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ginfo .frow select { flex: 1 1 8rem; width: auto; }
.ginfo-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ginfo-links li { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.ginfo-rm { border: 0; background: none; color: var(--ink-soft); cursor: pointer; font-size: 1.1rem; margin-left: auto; }
.ginfo-list { display: flex; flex-direction: column; gap: 4px; max-height: 22rem; overflow: auto; }
.ginfo-pick { display: flex; gap: 8px; align-items: flex-start; text-align: left; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; padding: 8px 10px; cursor: pointer; font: 400 .9375rem var(--f-body); }
.ginfo-pick:hover { border-color: var(--accent); }
.ginfo-pick span { display: flex; flex-direction: column; min-width: 0; }
.ginfo-why { color: var(--ok); font-weight: 700; }
.ginfo-why.bad, small.bad, .bad { color: var(--warn); font-weight: 700; }
small.ok, .ok { color: var(--ok); font-weight: 700; }
.lk-chip { display: inline-block; border-radius: 999px; padding: 1px 8px; font: 700 .75rem var(--f-body); background: var(--wash); }
.lk-chip.lk-together, li.lk-together .lk-chip { color: var(--side-a); }
.lk-chip.lk-friends, li.lk-friends .lk-chip { color: var(--ok); }
.lk-chip.lk-apart, li.lk-apart .lk-chip { color: var(--warn); }
.gname { display: inline-flex; gap: 8px; align-items: center; border: 0; background: none; padding: 0; color: var(--ink); cursor: pointer; font: inherit; text-align: left; }
.gname:hover b { text-decoration: underline; }
.gav { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font: 800 .6875rem var(--f-body); color: var(--seat-ink); object-fit: cover; flex: none; }
.warnt { color: var(--warn); font-weight: 700; }
.thanks { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }

/* ---------- connections web ---------- */
.lk-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 14px; }
.lk-score, .lk-add, .lk-web { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lk-big { font-size: var(--s2); font-family: var(--f-display); margin: 0; }
.lk-big b { font-size: var(--s3); }
.lk-add .frow { display: flex; flex-wrap: wrap; gap: 8px; }
.lk-add select { font: 600 .875rem var(--f-body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; flex: 1 1 9rem; min-width: 0; }
.lk-scroll { overflow-x: auto; }
.lk-svg { display: block; width: 100%; min-width: 560px; height: auto; font-family: var(--f-body); }
.lk-e { stroke-width: 2; }
.lk-e.lk-partner { stroke: var(--ink-soft); stroke-width: 4; opacity: .55; }
.lk-e.lk-together { stroke: var(--side-a); stroke-width: 2.5; }
.lk-e.lk-friends { stroke: var(--ok); stroke-dasharray: 5 4; }
.lk-e.lk-apart { stroke: var(--warn); stroke-dasharray: 2 4; stroke-width: 2; }
.lk-e.broken { stroke: #C8423B; stroke-width: 3.5; stroke-dasharray: none; opacity: 1; }
.lk-e.dim, .lk-n.dim { opacity: .12; }
.lk-n { cursor: pointer; outline: none; }
.lk-n > circle:first-of-type { stroke: var(--card); stroke-width: 2; }
.lk-n.side-a > circle:first-of-type { fill: var(--side-a); } .lk-n.side-b > circle:first-of-type { fill: var(--side-b); } .lk-n.side-both > circle:first-of-type { fill: var(--side-both); }
.lk-n.side-a, .lk-n.side-b, .lk-n.side-both { background: none; }
.lk-n.on > circle:first-of-type, .lk-n:focus-visible > circle:first-of-type { stroke: var(--ink); stroke-width: 3; }
.lk-n text { font-size: 10px; font-weight: 800; fill: var(--seat-ink); text-anchor: middle; pointer-events: none; }
.lk-n .lk-name { fill: var(--ink); font-weight: 700; font-size: 10.5px; paint-order: stroke; stroke: var(--card); stroke-width: 3px; }
.lk-n .lk-tb { stroke: var(--card); stroke-width: 1.5; }
.lk-n .lk-tn { font-size: 7.5px; fill: #fff; }
.lk-sw { display: inline-block; width: 18px; height: 0; border-top: 3px solid var(--ink-soft); vertical-align: middle; margin-right: 6px; }
.lk-sw.together { border-color: var(--side-a); } .lk-sw.friends { border-top-style: dashed; border-color: var(--ok); } .lk-sw.apart { border-top-style: dotted; border-color: var(--warn); } .lk-sw.broken { border-color: #C8423B; }
@media print { .ginfo { display: none !important; } }

/* ---------- floor plan, refined: white linen tables on a quiet sheet, hairlines, small caps ---------- */
.fp-wrap { background: color-mix(in srgb, var(--wash) 55%, var(--card)); border-color: color-mix(in srgb, var(--line) 70%, transparent); padding: 14px; }
.fp-floor { fill: var(--card); stroke: none; }
.fp-room { fill: none; stroke: var(--ink); stroke-width: .42; stroke-linejoin: round; }
.fp-room.out { fill: none; stroke: color-mix(in srgb, var(--ok) 70%, var(--ink)); stroke-width: .22; stroke-dasharray: 1.2 .7; }
.fp-griddot { fill: color-mix(in srgb, var(--ink-soft) 45%, transparent); }
.fp-scale path { stroke: var(--ink-soft); stroke-width: .12; }
.fp-scale text, .fp-dim { font-size: .72px; fill: var(--ink-soft); font-weight: 700; letter-spacing: .12em; }
.fp-tbl { fill: var(--card); stroke: color-mix(in srgb, var(--tc, var(--accent)) 75%, var(--ink)); stroke-width: .12; }
.fp-tbl-in { fill: color-mix(in srgb, var(--tc, var(--accent)) 7%, var(--card)); stroke: color-mix(in srgb, var(--tc, var(--accent)) 45%, transparent); stroke-width: .05; pointer-events: none; }
.fp-tn { font-family: var(--f-display); font-weight: 600; fill: var(--ink); letter-spacing: .01em; }
.fp-tc { font-weight: 700; fill: var(--ink-soft); letter-spacing: .14em; }
.fp-seat circle { fill: var(--card); stroke: color-mix(in srgb, var(--ink-soft) 55%, transparent); stroke-width: .07; }
.fp-seat.open text { fill: color-mix(in srgb, var(--ink-soft) 85%, transparent); font-weight: 600; font-size: .56px; }
.fp-seat.on circle { stroke: var(--card); stroke-width: .12; }
.fp-seat.on text { font-size: .66px; letter-spacing: .02em; }
.fp-fx { fill: color-mix(in srgb, var(--ink-soft) 7%, var(--card)); stroke: color-mix(in srgb, var(--ink-soft) 60%, transparent); stroke-width: .08; }
.fx-dj .fp-fx, .fx-band .fp-fx, .fx-musicians .fp-fx, .fx-sound .fp-fx { fill: color-mix(in srgb, var(--ink) 9%, var(--card)); stroke: color-mix(in srgb, var(--ink) 55%, transparent); }
.fx-buffet .fp-fx, .fx-bar .fp-fx, .fx-dessert .fp-fx, .fx-gifts .fp-fx, .fx-guestbook .fp-fx { fill: color-mix(in srgb, var(--gold) 9%, var(--card)); stroke: color-mix(in srgb, var(--gold) 70%, transparent); }
.fx-cake .fp-fx, .fx-arch .fp-fx, .fx-unity .fp-fx { fill: color-mix(in srgb, var(--gold) 16%, var(--card)); stroke: var(--gold); stroke-width: .14; }
.fx-dance .fp-fx { fill: url(#fp-parquet); stroke: var(--gold); stroke-width: .16; }
.fp-pq { fill: color-mix(in srgb, var(--gold) 10%, var(--card)); }
.fp-pqline { fill: none; stroke: color-mix(in srgb, var(--gold) 38%, transparent); stroke-width: .04; }
.fx-aisle .fp-fx { fill: color-mix(in srgb, var(--side-a) 7%, var(--card)); stroke: color-mix(in srgb, var(--side-a) 35%, transparent); stroke-width: .06; stroke-dasharray: none; }
.fx-lounge .fp-fx, .fx-photo .fp-fx, .fx-decor .fp-fx, .fx-hightop .fp-fx { fill: color-mix(in srgb, var(--ok) 7%, var(--card)); stroke: color-mix(in srgb, var(--ok) 55%, transparent); }
.fx-pillar .fp-fx { fill: color-mix(in srgb, var(--ink) 70%, var(--card)); stroke: none; }
.fp-fl { font-weight: 700; fill: color-mix(in srgb, var(--ink) 80%, transparent); letter-spacing: .16em; text-transform: uppercase; dominant-baseline: central; }
.fx-dance .fp-fl { fill: color-mix(in srgb, var(--gold) 80%, var(--ink)); }
.fp-gap { fill: var(--card); }
.fp-door { stroke: var(--accent); stroke-width: .3; stroke-linecap: round; fill: none; }
.fx-exit .fp-door, .fx-service .fp-door, .fx-restroom .fp-door { stroke: var(--warn); fill: none; }
.fp-jamb { stroke: var(--ink); stroke-width: .3; }
.fp-swing { fill: color-mix(in srgb, var(--accent) 5%, transparent); stroke: color-mix(in srgb, var(--ink-soft) 70%, transparent); stroke-width: .05; stroke-dasharray: none; }
.fp-sec { fill: none; stroke: color-mix(in srgb, var(--ink-soft) 35%, transparent); stroke-width: .06; stroke-dasharray: .4 .3; }
.fp-chair rect { fill: var(--card); stroke: color-mix(in srgb, var(--ink-soft) 55%, transparent); stroke-width: .07; }
.fp-item.sel .fp-tbl, .fp-item.sel .fp-fx, .fp-item.sel .fp-sec { stroke: var(--accent); stroke-width: .3; stroke-dasharray: none; }
.fp-item.sel .fp-door { stroke-width: .45; }
.fp-item.target .fp-tbl { stroke: var(--accent); stroke-width: .22; }
.fp-item.full { opacity: .4; }
.fp-legend .sw { width: .75em; height: .75em; }
.thanks .stats { display: flex; flex-wrap: wrap; gap: 10px; flex: 1 1 20rem; }
.thanks .stat { flex: 1 1 8rem; }

/* ---------- sign in ---------- */
.signin { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding-block: 40px; background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--accent) 12%, var(--paper)) 0%, var(--paper) 60%); }
.si-card { width: min(27rem, 100%); padding: clamp(26px, 6vw, 40px); display: flex; flex-direction: column; gap: 16px; box-shadow: 0 24px 60px -28px rgba(34, 48, 76, .35); }
.si-card > div { display: flex; flex-direction: column; gap: 14px; }
.si-brand { align-self: center; display: block; margin-bottom: 4px; }
.si-brand img { height: 33px; width: auto; }
.si-card h1 { font: 500 clamp(2rem, 7vw, 2.4rem)/1.1 var(--f-display); margin: 0; text-align: center; text-wrap: balance; }
.si-card h1 em { color: var(--accent); font-style: italic; }
.si-card > div > p { margin: 0; text-align: center; }
.si-form { display: flex; flex-direction: column; gap: 12px; }
.si-form input { font: 400 1rem var(--f-body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; }
.si-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.si-pw { position: relative; display: block; }
.si-pw input { padding-right: 64px; }
.si-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--accent); font: 700 .8125rem var(--f-body); cursor: pointer; padding: 6px; }
.si-main { width: 100%; justify-content: center; padding-block: 13px; font-size: 1rem; }
.si-alt { width: 100%; justify-content: center; }
.si-or { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: .8125rem; }
.si-or::before, .si-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.si-links { text-align: center; margin: 0; }
.si-note { background: var(--wash); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.si-icon { font-size: 2.2rem; text-align: center; color: var(--accent); }
.si-meter { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: -4px; }
.si-meter span { display: block; height: 100%; width: 0; background: var(--warn); transition: width .2s; }
.si-meter.s3 span, .si-meter.s4 span { background: var(--ok); }
.si-foot { text-align: center; max-width: 27rem; }
.ferr:empty { display: none; }
.pill.warnp { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.signin { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* inline confirmations */
.ok-line { color: var(--ok); font-weight: 600; }

/* ---------- sample scripts (officiant) ---------- */
.sx-card { text-align: left; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.sx-card h3 { margin: 0; }
.sx-card p { margin: 0; color: var(--ink-soft); font-size: .9375rem; line-height: 1.45; }
.sx-card .sx-go { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: .875rem; color: var(--accent); }
.sx-card[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.sx-view { margin-top: 28px; scroll-margin-top: 80px; }
.sx-script { display: flex; flex-direction: column; gap: 4px; }
.sx-meta, .sx-best { margin: 0; }
.sx-best { margin-bottom: 10px; }
.sx-part { padding: 18px 0 16px; border-top: 1px solid var(--line); }
.sx-ph { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.sx-ph .pn { font-family: var(--f-display); font-weight: 600; color: var(--accent); font-size: 1.25rem; min-width: 1.4rem; }
.sx-ph .nm { font-family: var(--f-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: .08em; text-transform: uppercase; overflow-wrap: anywhere; }
.sx-ph .mn { font-size: .8125rem; color: var(--ink-soft); }
.sx-legal .sx-ph .mn { color: var(--gold); font-weight: 700; }
.sx-part .jb { margin: 4px 0 0; font-size: .875rem; color: var(--ink-soft); }
.sx-cueline { margin: 4px 0 0; font-size: .8125rem; color: var(--ink-soft); font-style: italic; }
.sx-words { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; font-size: 1.0625rem; line-height: 1.6; max-width: 46rem; }
.sx-words p { margin: 0; }
.sx-words .sx-rep { padding-left: 1.4rem; border-left: 3px solid var(--line); margin-top: -4px; font-style: italic; }
.sx-words .sx-rep + .sx-rep { margin-top: -8px; padding-top: 4px; }
.sx-words .sx-dir { color: var(--ink-soft); font-size: .9375rem; }
.sx-cue { color: var(--accent); font-weight: 700; font-style: normal; }
@media print {
  .sx-pick { display: none !important; }
  .sx-view { margin-top: 0; }
  .sx-part { break-inside: avoid-page; }
  .sx-words { font-size: 14pt; }
}

/* ---------- "Print the script": typeset ceremony script on I Do Two letterhead (app/printscript.js) ----------
   The @page rule (size, margins, the small I Do Two header and page numbers) is written per print by printscript.js. */
.ps-sheet { display: none; }
/* page one is measured off screen at the printed width before printing, so it can switch to two columns if needed */
.ps-sheet.ps-measure { display: block; position: absolute; left: -20000px; top: 0; visibility: hidden; }
@media print {
  body.ps-printing > :not(.ps-sheet) { display: none !important; }
  body.ps-printing { background: #fff !important; }
  body.ps-printing .ps-sheet { display: block; page: ps; }
}
.ps-sheet { color: #22304C; background: #fff; font-family: "Cormorant Garamond", Garamond, "Times New Roman", serif; font-size: 12pt; line-height: 1.4; font-variant-numeric: lining-nums; text-align: left; }
.ps-sheet p { margin: 0; }
.ps-p1 { break-after: page; }
.ps-head { text-align: center; padding-bottom: 12pt; margin-bottom: 14pt; border-bottom: 3px double #9C7F4C; }
.ps-logo { width: 1.25in; height: auto; display: block; margin: 0 auto 8pt; }
.ps-kicker { font: 700 7.5pt "Mulish", sans-serif; letter-spacing: .28em; text-transform: uppercase; color: #9C7F4C; }
.ps-names { font: 400 32pt/1.15 "Pinyon Script", cursive; color: #4C6FA3; margin-top: 2pt !important; }
.ps-full { font: italic 500 12pt "Cormorant Garamond", serif; color: #5B6A86; }
.ps-meta { font: 600 11.5pt "Cormorant Garamond", serif; letter-spacing: .04em; margin-top: 6pt !important; }
.ps-by { font: 600 7.5pt "Mulish", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #5B6A86; margin-top: 7pt !important; }
.ps-label { font: 700 7.5pt "Mulish", sans-serif; letter-spacing: .24em; text-transform: uppercase; color: #9C7F4C; margin-bottom: 6pt !important; }
/* key people */
.ps-people { margin-bottom: 14pt; padding-bottom: 12pt; border-bottom: .75pt solid #CBD5E4; break-inside: avoid; }
.ps-pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(1.55in, 1fr)); gap: 8pt 18pt; }
.ps-pl { font: 700 6.75pt "Mulish", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #5B6A86; margin-bottom: 1pt !important; }
.ps-pn { font: 600 11.5pt/1.3 "Cormorant Garamond", serif; }
/* order of service */
.ps-glance { margin-bottom: 6pt; }
.ps-glance ol { list-style: none; margin: 0; padding: 0; }
.ps-glance li { display: grid; grid-template-columns: 20pt minmax(0, 1fr) auto; column-gap: 6pt; align-items: baseline; padding: 3.5pt 0; border-bottom: .5pt solid #E3E8F0; break-inside: avoid; }
.ps-gn { color: #9C7F4C; font-weight: 600; font-size: 12pt; }
.ps-gname { font-size: 12.5pt; font-weight: 600; min-width: 0; }
.ps-gl .ps-gname::after { content: "  ·  legal"; font: 700 6.5pt "Mulish", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #9C7F4C; }
.ps-gt { font: 600 7.5pt "Mulish", sans-serif; letter-spacing: .04em; color: #5B6A86; white-space: nowrap; text-align: right; }
.ps-gjob { grid-column: 2 / 4; font: italic 400 8pt/1.35 "Mulish", sans-serif; color: #5B6A86; margin-top: 1pt; }
.ps-glance:not(.ps-full-glance) ol { columns: 2; column-gap: 28pt; }
.ps-glance:not(.ps-full-glance) li { border-bottom: 0; padding: 1pt 0; }
.ps-glance.ps-two ol { columns: 2; column-gap: 24pt; column-fill: balance; }
.ps-glance.ps-nojob .ps-gjob { display: none; }
.ps-glance.ps-small li { padding: 2pt 0; }
.ps-glance.ps-small .ps-gname { font-size: 11pt; }
.ps-glance.ps-tiny li { padding: 1pt 0; }
.ps-glance.ps-tiny .ps-gname { font-size: 10pt; }
.ps-p1.ps-tiny .ps-logo { width: .9in; margin-bottom: 4pt; }
.ps-p1.ps-tiny .ps-names { font-size: 26pt; }
.ps-p1.ps-tiny .ps-head { padding-bottom: 8pt; margin-bottom: 10pt; }
.ps-p1.ps-small .ps-pn, .ps-p1.ps-tiny .ps-pn { font-size: 10.5pt; }
/* the parts */
.ps-part { margin-top: 16pt; padding-top: 8pt; border-top: .75pt solid #CBD5E4; }
.ps-body > .ps-part:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.ps-ph { display: flex; align-items: baseline; gap: 8pt; break-after: avoid; }
.ps-n { font: 600 17pt "Cormorant Garamond", serif; color: #9C7F4C; min-width: 16pt; }
.ps-name { flex: 1; font: 600 12.5pt "Cormorant Garamond", serif; letter-spacing: .14em; text-transform: uppercase; }
.ps-t { font: 600 7.5pt "Mulish", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #5B6A86; white-space: nowrap; }
.ps-legal .ps-t { color: #9C7F4C; }
.ps-job { font: italic 400 8.5pt/1.45 "Mulish", sans-serif; color: #5B6A86; margin-top: 2pt !important; }
.ps-cue { font: 400 8.5pt/1.45 "Mulish", sans-serif; color: #4C6FA3; margin-top: 2pt !important; }
.ps-job:not(:last-child), .ps-cue:not(:last-child) { break-after: avoid; }
.ps-cue span { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 7pt; }
.ps-words { margin-top: 8pt; }
.ps-words p { font-size: 15pt; line-height: 1.42; margin-bottom: 7pt !important; orphans: 2; widows: 2; }
.ps-words .ps-rep { font-style: italic; padding-left: 18pt; border-left: 1.5pt solid #CBD5E4; margin: -4pt 0 0 6pt !important; padding-top: 1pt; padding-bottom: 1pt; break-inside: avoid; }
.ps-words .ps-rep + p:not(.ps-rep) { margin-top: 7pt !important; }
.ps-words .ps-dir { font: 400 9.5pt/1.45 "Mulish", sans-serif; color: #5B6A86; }
.ps-b { font: 700 9.5pt "Mulish", sans-serif; font-style: normal; color: #4C6FA3; letter-spacing: .02em; }
.ps-notes { margin: 6pt 0 0; padding-left: 14pt; font: 400 10pt/1.5 "Mulish", sans-serif; color: #22304C; }
.ps-end { text-align: center; margin-top: 28pt; break-inside: avoid; }
.ps-end img { width: .55in; height: auto; opacity: .85; }
.ps-end p { font: 600 7.5pt "Mulish", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #9C7F4C; margin-top: 6pt !important; }

/* ---------- ceremony suggestions from the interview (officiant) ---------- */
.aisg-wrap { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.aisg-err { color: var(--warn); font-weight: 600; margin: 0; }
.aisg-sum p { margin: 0; font-size: 1.0625rem; }
.aisg-avoid { border-left: 4px solid var(--warn); }
.aisg-avoid .caps, .aisg-gaps .caps { margin: 0 0 6px; }
.aisg-part { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.aisg-ph { display: flex; align-items: baseline; gap: 10px; margin: 0; font-family: var(--f-display); font-size: 1.125rem; letter-spacing: .08em; text-transform: uppercase; }
.aisg-ph .pn { color: var(--accent); font-size: 1.375rem; font-weight: 600; }
.aisg { display: flex; flex-direction: column; gap: 10px; }
.aisg-head { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.aisg-head input { width: 1.25em; height: 1.25em; margin-top: 3px; accent-color: var(--accent); flex: none; }
.aisg-head > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aisg-from summary { cursor: pointer; font-size: .875rem; color: var(--accent); font-weight: 600; }
.aisg-from[open] summary { margin-bottom: 8px; }
.aisg-src { padding: 8px 0 8px 12px; border-left: 3px solid var(--line); margin-bottom: 8px; }
.aisg-src p { margin: 0; }
.aisg-src blockquote { margin: 4px 0; font-style: italic; }
.aisg-bar { margin-top: 4px; }
@media print { .aisg-wrap { display: none !important; } }

/* ---------- big writing window (app/bigedit.js) ---------- */
body.big-open { overflow: hidden; }
.big-wrap { position: fixed; inset: 0; z-index: 100; background: color-mix(in srgb, var(--ink) 55%, transparent); display: flex; padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); }
.big-in { flex: 1; max-width: 62rem; margin: 0 auto; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.big-top { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-start; justify-content: space-between; padding: 16px 20px 12px; border-bottom: 1px solid var(--line); }
.big-titles { min-width: 0; flex: 1 1 18rem; }
.big-titles .caps, .big-titles h2, .big-titles p { margin: 0; }
.big-titles h2 { font-family: var(--f-display); font-size: var(--s2); font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.big-actions { display: flex; gap: 8px; }
.big-ta { flex: 1; min-height: 0; width: 100%; resize: none; border: 0; outline: none; padding: 20px clamp(16px, 5vw, 56px); background: var(--card); color: var(--ink);
  font: 400 1.25rem/1.7 var(--f-display); }
.big-ta:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.big-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; padding: 10px 20px; border-top: 1px solid var(--line); background: var(--paper); }
.big-count { font-weight: 700; font-variant-numeric: tabular-nums; }
.field-wrap { display: flex; flex-direction: column; gap: 6px; }
.field-wrap .big-btn { align-self: flex-start; }
.field textarea { min-height: 4.5em; }

/* ---------- message builder (officiant/message.js) ---------- */
.mb-tools { display: flex; flex-direction: column; gap: 12px; }
.mb-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.mb-state { margin-left: auto; font-size: .8125rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--wash); }
.mb-state.mb-ok { color: var(--ok); } .mb-state.mb-long { color: var(--warn); } .mb-state.mb-short { color: var(--ink-soft); }
.mb-meter { position: relative; height: 8px; border-radius: 999px; background: var(--wash); overflow: hidden; margin-top: 6px; }
.mb-zone { position: absolute; top: 0; bottom: 0; left: 62.5%; width: 25%; background: color-mix(in srgb, var(--ok) 22%, transparent); }
.mb-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--accent); transition: width .2s; }
.mb-fill.mb-ok { background: var(--ok); } .mb-fill.mb-long { background: var(--warn); }
.mb-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mb-row select { font: 600 .875rem var(--f-body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; min-height: 36px; max-width: 100%; }
.mb-grid { display: grid; grid-template-columns: minmax(13rem, 17rem) 1fr; gap: 18px; align-items: start; margin-top: 16px; }
.mb-outline { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 100px); overflow: auto; }
.mb-outline .caps { margin: 0; }
.mb-outline-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mb-outline-list li { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 6px; padding: 6px 6px 6px 4px; border-radius: 10px; border: 1px solid transparent; cursor: grab; }
.mb-outline-list li:hover { background: var(--wash); }
.mb-outline-list li.drag { opacity: .45; } .mb-outline-list li.over { border-color: var(--accent); background: var(--wash); }
.mb-grip { color: var(--ink-soft); font-size: .875rem; }
.mb-on { font-family: var(--f-display); font-weight: 600; color: var(--accent); min-width: 1.1rem; text-align: right; }
.mb-ot { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem; min-width: 0; overflow-wrap: anywhere; }
.mb-ot:hover { color: var(--accent); }
.mb-om { grid-column: 3; font-size: .75rem; margin-top: -4px; }
.mb-ob { grid-column: 4; grid-row: 1 / span 2; display: flex; gap: 2px; }
.mb-cards { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mb-card { display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 80px; }
.mb-ch { display: flex; align-items: center; gap: 10px; }
.mb-n { font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; color: var(--accent); min-width: 1.4rem; }
.mb-title { flex: 1; min-width: 0; font: 600 1.25rem var(--f-display); color: var(--ink); background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 4px 8px; }
.mb-title:hover, .mb-title:focus { border-color: var(--line); background: var(--paper); }
.mb-cb { display: flex; gap: 2px; flex: none; }
.mb-purpose { font: italic 400 .875rem var(--f-body); color: var(--ink-soft); background: transparent; border: 1px dashed transparent; border-radius: 8px; padding: 4px 8px; }
.mb-purpose:hover, .mb-purpose:focus { border-color: var(--line); background: var(--paper); }
.mb-words { font: 400 1.125rem/1.65 var(--f-display); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; resize: vertical; min-height: 8rem; }
.mb-cf { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.mb-card .icon, .mb-outline .icon { font: 700 .9375rem var(--f-body); color: var(--ink-soft); background: none; border: 1px solid transparent; border-radius: 8px; min-width: 32px; min-height: 32px; cursor: pointer; }
.mb-card .icon:hover:not(:disabled), .mb-outline .icon:hover:not(:disabled) { border-color: var(--line); color: var(--ink); background: var(--paper); }
.mb-card .icon:disabled, .mb-outline .icon:disabled { opacity: .3; cursor: default; }
.mb-card .icon.warnb:hover { color: var(--warn); }
.mb-restore { border-left: 4px solid var(--gold); }
.mb-ai { margin-top: 14px; }
.mb-prop { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.mb-prop p { margin: 0; }
.mb-prop-list { margin: 0; padding-left: 1.4rem; display: flex; flex-direction: column; gap: 10px; }
.mb-prop-h { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.mb-tag { font-size: .75rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.mb-tag.mine { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.mb-tag.draft { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
.mb-prop-w { font-family: var(--f-display); font-size: 1.0625rem; white-space: pre-wrap; }
@media (max-width: 52rem) {
  .mb-grid { grid-template-columns: 1fr; }
  .mb-outline { position: static; max-height: none; }
}
@media print { .mb-tools, .mb-outline, .mb-bar, .mb-ai { display: none !important; } }
.mb-bar:not(.dirty) { position: static; box-shadow: none; background: transparent; border-color: transparent; padding-left: 0; }

/* ---------- ceremony editor: each part with its own words (app/editors.js) ---------- */
.ce-tools { justify-content: space-between; margin-bottom: 12px; }
.ce-part { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; border-left: 4px solid var(--line); scroll-margin-top: 80px; }
.ce-part.ce-speak { border-left-color: var(--accent); }
.ce-part.ce-legal { border-left-color: var(--gold); }
.ce-head { display: flex; align-items: center; gap: 10px; }
.ce-n { font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; color: var(--accent); min-width: 1.4rem; }
.ce-legal .ce-n { color: var(--gold); }
.ce-name { flex: 1; min-width: 0; font: 600 1.25rem var(--f-display); letter-spacing: .02em; color: var(--ink); background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 4px 8px; }
.ce-name:hover, .ce-name:focus { border-color: var(--line); background: var(--paper); }
.ce-cb { display: flex; gap: 2px; flex: none; }
.ce-part .icon { font: 700 .9375rem var(--f-body); color: var(--ink-soft); background: none; border: 1px solid transparent; border-radius: 8px; min-width: 32px; min-height: 32px; cursor: pointer; }
.ce-part .icon:hover:not(:disabled) { border-color: var(--line); color: var(--ink); background: var(--paper); }
.ce-part .icon:disabled { opacity: .3; cursor: default; }
.ce-part .icon.warnb:hover { color: var(--warn); }
.ce-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding-left: 2.6rem; font-size: .875rem; color: var(--ink-soft); }
.ce-meta label { display: inline-flex; align-items: center; gap: 4px; }
.ce-min { width: 3.2rem; text-align: center; font: 600 .875rem var(--f-body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; }
.ce-kind { font: 600 .8125rem var(--f-body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.ce-note { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--wash); }
.ce-words { font: 400 1.125rem/1.65 var(--f-display); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; resize: vertical; min-height: 4.5rem; }
.ce-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; min-height: 32px; }
.ce-more summary { cursor: pointer; font-size: .875rem; font-weight: 600; color: var(--accent); }
.ce-more[open] { display: flex; flex-direction: column; gap: 10px; }
.ce-more[open] summary { margin-bottom: 2px; }
.ce-more textarea { font: 400 .9375rem var(--f-body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; width: 100%; resize: vertical; }
@media (max-width: 40rem) { .ce-meta { padding-left: 0; } }
@media (max-width: 40rem) {
  .ce-head, .mb-ch { flex-wrap: wrap; }
  .ce-name, .mb-title { flex: 1 1 calc(100% - 3rem); }
  .ce-cb, .mb-cb { margin-left: auto; }
}

/* ---------- key people (officiant ceremony page) ---------- */
.kp-wrap { margin: 6px 0 4px; }
.kp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 14px 22px; }
.kp-grid .caps { margin: 0 0 2px; }
.kp-n { margin: 0; font-family: var(--f-display); font-size: 1.125rem; font-weight: 600; }
.kp-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 12px 16px; }
.kp-form input, .kp-form textarea { font: 400 1rem var(--f-body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; width: 100%; }
.kp-card { display: flex; flex-direction: column; gap: 14px; }

/* ---------- "I Do Two was just updated" (app/kit.js) ---------- */
.update-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center;
  max-width: calc(100% - 24px); padding: 10px 14px; border-radius: 14px; background: var(--ink); color: var(--card); box-shadow: var(--shadow); font-weight: 600; font-size: .9375rem; }
.update-bar .btn.ghost { color: var(--card); border-color: color-mix(in srgb, var(--card) 40%, transparent); background: transparent; }
@media print { .update-bar { display: none !important; } }
