/* Vowthread · planning binder. One token set, light and dark. Type scale 12 / 14 / 16 / 20 / 28 / 34 / 48 / 64. Space 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64. */
:root {
  --desk: #EEE6D8; --sheet: #FBF7F0; --card: #FFFDF9; --well: #F4EDE1; --tab: #E7DCCA; --tab-h: #EFE6D7;
  --line: #E6DACA; --line-2: #D5C4AC; --ink: #2B1B20; --ink-2: #5C4A4F; --ink-3: #766166;
  --mar: #7B1E3A; --mar-h: #67172F; --mar-p: #551126; --mar-ink: #7B1E3A; --mar-soft: #F5E6E9; --mar-line: #E2C2CA; --on-mar: #FFF8EE;
  --gold: #F2A900; --gold-soft: #FCF0CF; --gold-ink: #7E5100; --focus: #7B1E3A;
  --yes: #2D6A4C; --yes-bg: #E3EFE6; --maybe: #855700; --maybe-bg: #FBEFCF; --no: #B0372A; --no-bg: #F8E3DE; --pend: #4A5880; --pend-bg: #E8EBF3; --pend-l: #9AA4C2;
  --f-mehndi: #5E7A3A; --f-haldi: #C98F00; --f-sangeet: #3F4F8C; --f-wedding: #7B1E3A; --f-reception: #9C7434;
  --s-bride: #7B1E3A; --s-groom: #3F4F8C; --s-friends: #C98F00;
  --m-v: #2F7D4A; --m-n: #9A3A24; --m-j: #8A6100; --m-g: #2F6766; --m-s: #5B5A8A;
  --toast: #2B1B20; --toast-ink: #FBF3EA; --toast-acc: #F2B33D;
  --sh1: 0 1px 2px rgba(70, 35, 30, .07); --sh2: 0 20px 44px -16px rgba(60, 22, 30, .32), 0 2px 6px rgba(60, 22, 30, .08);
  --r1: 3px; --r2: 6px; --r3: 10px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif; --sans: 'Lato', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --top: 60px;
  color-scheme: light;
}
[data-theme="dark"] {
  --desk: #120B0E; --sheet: #1A1215; --card: #22181C; --well: #2A1F23; --tab: #150E11; --tab-h: #1E1519;
  --line: #392A2F; --line-2: #4C3940; --ink: #F3E9E3; --ink-2: #CDBDB8; --ink-3: #A8958F;
  --mar: #A3304F; --mar-h: #B53A5B; --mar-p: #8E2743; --mar-ink: #F09AB0; --mar-soft: #3A1E27; --mar-line: #6B3343; --on-mar: #FFF6F0;
  --gold: #F2B21B; --gold-soft: #3A2C12; --gold-ink: #F5C559; --focus: #F2B21B;
  --yes: #6CC195; --yes-bg: #1D3328; --maybe: #F2C260; --maybe-bg: #3A2E14; --no: #F2806C; --no-bg: #3D1E1B; --pend: #A9B5DD; --pend-bg: #23283A; --pend-l: #6F7BA3;
  --f-mehndi: #93B061; --f-haldi: #F2B21B; --f-sangeet: #8C9BE0; --f-wedding: #E0708E; --f-reception: #D4A862;
  --s-bride: #E0708E; --s-groom: #8C9BE0; --s-friends: #F2B21B;
  --m-v: #6CC195; --m-n: #F09070; --m-j: #F2C260; --m-g: #6CC7C2; --m-s: #B4B2E8;
  --toast: #F3E9E3; --toast-ink: #24181C; --toast-acc: #7B1E3A;
  --sh1: 0 1px 2px rgba(0, 0, 0, .4); --sh2: 0 22px 48px -16px rgba(0, 0, 0, .72), 0 2px 8px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--desk); color: var(--ink); font: 400 14px/20px var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--mar-ink); }
img, svg { display: block; }
ul, ol { padding: 0; }
h1, h2, h3, h4 { font-weight: 500; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
#page:focus, #page:focus-visible { outline: none; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 300; background: var(--mar); color: var(--on-mar); padding: 8px 14px; border-radius: var(--r1); font-weight: 700; }
.skip:focus { top: 12px; }
.muted { color: var(--ink-3); }
.late-t, .bad-t { color: var(--no); font-weight: 700; }
.warn-t { color: var(--maybe); font-weight: 700; font-size: 12px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.fat { stroke-width: 2.6; }
.noscript { padding: 48px; font-size: 16px; }
kbd { font: 700 11px/16px var(--sans); padding: 1px 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: var(--r1); background: var(--card); color: var(--ink-2); white-space: nowrap; }

/* ornament */
.knot { width: 28px; height: 28px; }
.knot .k1 { fill: none; stroke: var(--mar-ink); stroke-width: 1.8; stroke-linecap: round; }
.knot .k2 { fill: var(--gold); }
.orn { width: 120px; height: 14px; fill: none; stroke: var(--mar-line); stroke-width: 1; }
.orn .of { fill: var(--gold); stroke: none; }
.rule { display: flex; align-items: center; gap: 12px; margin: 20px 0 28px; }
.rule span { flex: 1; height: 1px; background: var(--line); }
.rule .orn { width: 96px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--r1); border: 1px solid transparent; font: 700 14px/1 var(--sans); letter-spacing: .01em; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s, color .15s, transform .12s; }
.btn .ic { width: 18px; height: 18px; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.pri { background: var(--mar); color: var(--on-mar); }
.btn.pri:hover:not(:disabled) { background: var(--mar-h); }
.btn.pri:active:not(:disabled) { background: var(--mar-p); }
.btn.sec { background: var(--card); border-color: var(--line-2); color: var(--ink); }
.btn.sec:hover:not(:disabled) { border-color: var(--ink-3); background: var(--well); }
.btn.quiet { background: transparent; color: var(--mar-ink); }
.btn.quiet:hover:not(:disabled) { background: var(--mar-soft); }
.btn.danger { background: var(--no); color: #fff; }
.btn.danger:hover:not(:disabled) { filter: brightness(.92); }
[data-theme="dark"] .btn.danger { color: #24110E; }
.btn.danger-q { background: transparent; color: var(--no); padding: 0 10px; }
.btn.danger-q:hover { background: var(--no-bg); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; gap: 6px; }
.btn.sm .ic { width: 16px; height: 16px; }
.btn.lg { height: 50px; padding: 0 24px; font-size: 16px; width: 100%; }
.btn.is-loading { pointer-events: none; }
.spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.ib { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: var(--r1); border: 0; background: none; color: var(--ink-2); flex: none; }
.ib:hover:not(:disabled) { background: var(--well); color: var(--ink); }
.ib:disabled { opacity: .35; cursor: not-allowed; }
.ib.sm { width: 30px; height: 30px; }
.ib.sm .ic { width: 17px; height: 17px; }
.ib.xs { width: 24px; height: 24px; font: 700 15px/1 var(--sans); border: 1px solid var(--line); }
.lnk { background: none; border: 0; padding: 0; color: var(--mar-ink); font: 700 13px/20px var(--sans); display: inline-flex; align-items: center; gap: 2px; text-decoration: none; }
.lnk:hover { text-decoration: underline; text-underline-offset: 3px; }
.lnk .ic { width: 15px; height: 15px; }
.lnk-b { background: none; border: 0; padding: 0; text-align: left; color: inherit; font: inherit; display: inline-flex; flex-direction: column; text-decoration: none; }
.lnk-b:hover b { text-decoration: underline; text-underline-offset: 3px; }
.lnk-b small { color: var(--ink-3); font-size: 12px; line-height: 16px; }

/* ---------- form ---------- */
input, select, textarea { width: 100%; min-height: 40px; padding: 8px 11px; font: 400 15px/22px var(--sans); background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r1); transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 72px; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--no); }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; min-height: 0; padding: 0; accent-color: var(--mar); flex: none; }
input[type="date"], input[type="time"] { font-variant-numeric: tabular-nums; }
select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.fld { margin-bottom: 14px; min-width: 0; }
.fld > label, .fs legend { display: flex; align-items: center; gap: 6px; font: 700 13px/18px var(--sans); color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.fld > label .ic { width: 15px; height: 15px; }
.help { font-size: 12px; line-height: 16px; color: var(--ink-3); margin-top: 6px; }
.err-t { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; line-height: 18px; color: var(--no); margin-top: 6px; font-weight: 700; }
.err-t .ic { width: 16px; height: 16px; margin-top: 1px; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fld-row.three { grid-template-columns: 1fr 1fr 1fr; }
.fld.end { display: flex; align-items: flex-end; }
.fs { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.ck { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; line-height: 20px; min-height: 32px; }
.ck small { color: var(--ink-3); font-size: 12px; }
.cks { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.cks.col { flex-direction: column; gap: 2px; }
.amt-in { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r1); background: var(--card); }
.amt-in:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
.amt-in span { padding-left: 12px; color: var(--ink-3); font: 500 18px var(--serif); }
.amt-in input { border: 0; box-shadow: none !important; background: transparent; }
.fld.amt .amt-in input { font: 500 26px/34px var(--serif); font-variant-numeric: tabular-nums lining-nums; min-height: 52px; }
.search-in { position: relative; display: inline-flex; align-items: center; }
.search-in .ic { position: absolute; left: 10px; width: 17px; height: 17px; color: var(--ink-3); pointer-events: none; }
.search-in input { padding-left: 34px; width: 250px; min-height: 36px; height: 36px; font-size: 14px; }
.search-in.sm input { width: 100%; }

/* segmented, chips, toggles */
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line-2); border-radius: var(--r2); background: var(--card); padding: 2px; gap: 2px; }
.seg button, .seg-r span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 4px; background: none; font: 700 13px/1 var(--sans); color: var(--ink-2); white-space: nowrap; }
.seg button small, .chips small { font-weight: 400; color: var(--ink-3); }
.seg button:hover { color: var(--ink); background: var(--well); }
.seg button[aria-pressed="true"], .seg-r input:checked + span { background: var(--mar-soft); color: var(--mar-ink); box-shadow: inset 0 0 0 1px var(--mar-line); }
.seg button[aria-pressed="true"] small { color: var(--mar-ink); }
.seg.xs button { height: 26px; padding: 0 9px; font-size: 12px; }
.seg-r { position: relative; display: inline-flex; cursor: pointer; }
.seg-r input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg-r input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button, .tgl { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); font: 700 13px/1 var(--sans); color: var(--ink-2); }
.chips button:has(.av) { padding-left: 4px; }
.chips button:hover, .tgl:hover { border-color: var(--ink-3); color: var(--ink); }
.chips button[aria-pressed="true"], .tgl[aria-pressed="true"] { background: var(--mar-soft); border-color: var(--mar-line); color: var(--mar-ink); }
.tgl .ic { width: 16px; height: 16px; }
.filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.f-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; flex-direction: row; }
.f-row > select { width: auto; min-width: 150px; height: 36px; min-height: 36px; padding-top: 6px; padding-bottom: 6px; font-size: 14px; background-position: calc(100% - 17px) 15px, calc(100% - 12px) 15px; }
.filters.f-row .search-in { margin-left: auto; }

/* tags and small marks */
.chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font: 700 12px/1 var(--sans); background: var(--well); color: var(--ink-2); white-space: nowrap; }
.c-signed { background: var(--yes-bg); color: var(--yes); }
.c-sent { background: var(--maybe-bg); color: var(--maybe); }
.c-message { background: var(--pend-bg); color: var(--pend); }
.c-none { background: var(--well); color: var(--ink-3); }
.d-proposed.chip { background: var(--gold-soft); color: var(--gold-ink); }
.d-agreed.chip { background: var(--yes-bg); color: var(--yes); }
.d-revisit.chip { background: var(--no-bg); color: var(--no); }
.ft { display: inline-flex; align-items: center; gap: 6px; font: 700 12px/16px var(--sans); color: var(--ink-2); white-space: nowrap; }
.ft::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--fc); flex: none; }
.meal { display: inline-flex; align-items: center; gap: 6px; font: 700 12px/16px var(--sans); color: var(--ink-2); white-space: nowrap; }
.meal::before { content: ''; width: 10px; height: 10px; border: 1.5px solid var(--mc); border-radius: 2px; background: radial-gradient(circle, var(--mc) 0 2.2px, transparent 2.6px); flex: none; }
.m-v { --mc: var(--m-v); } .m-n { --mc: var(--m-n); } .m-j { --mc: var(--m-j); } .m-g { --mc: var(--m-g); } .m-s { --mc: var(--m-s); }
.av { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none; font: 700 11px/1 var(--sans); letter-spacing: .02em; color: var(--ac); background: color-mix(in srgb, var(--ac) 14%, var(--card)); border: 1px solid color-mix(in srgb, var(--ac) 32%, transparent); }
[data-theme="dark"] .av { color: color-mix(in srgb, var(--ac) 45%, #fff); background: color-mix(in srgb, var(--ac) 30%, var(--card)); }
.av.sm { width: 24px; height: 24px; font-size: 10px; }
.av.xs { width: 22px; height: 22px; font-size: 9px; }
.av.rsvp { --ac: #4A5880; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12px; color: var(--ink-3); margin: 8px 0 12px; }
.legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; margin-right: -6px; }
.legend i.y, .rb-bar i.y { background: var(--yes); } .legend i.m, .rb-bar i.m { background: var(--gold); }
.legend i.p, .rb-bar i.p { background: var(--pend-l); } .legend i.n, .rb-bar i.n { background: var(--no); }
.legend i.pd { background: var(--mar); } .legend i.sc { background: repeating-linear-gradient(135deg, var(--gold) 0 2px, var(--gold-soft) 2px 4px); }
.legend.sm { margin: 0; text-transform: none; letter-spacing: 0; font-weight: 400; }
.meter { display: block; height: 3px; background: var(--well); border-radius: 999px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--fc, var(--mar)); border-radius: inherit; transition: width .22s ease; }
.meter.lg { height: 6px; }
.mini-h { display: block; font: 700 12px/16px var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin: 20px 0 8px; }
.eyebrow { font: 700 12px/16px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mar-ink); }
.lead { font-size: 15px; line-height: 22px; color: var(--ink-2); }
.demo { font-size: 12px; line-height: 16px; color: var(--ink-3); font-style: italic; margin-top: 10px; }
.quiet-note { font-size: 14px; color: var(--ink-3); padding: 10px 0; }
.hint { font-size: 13px; color: var(--ink-3); margin: 8px 0 12px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.row.c { justify-content: center; }
.plain { list-style: none; }
.plain li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.plain li span { display: flex; flex-direction: column; }
.plain li small { font-size: 12px; color: var(--ink-3); }
.plain li.bad b { color: var(--no); }
.banner { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r1); margin-bottom: 16px; font-size: 14px; }
.banner span { flex: 1; }
.banner.warn { background: var(--maybe-bg); color: var(--maybe); }
.empty { max-width: 460px; margin: 28px auto; padding: 24px; text-align: center; }
.empty .orn { margin: 0 auto 12px; }
.empty h3 { font: 500 20px/28px var(--serif); margin-bottom: 6px; }
.empty p { color: var(--ink-2); font-size: 14px; margin-bottom: 14px; }
.sk-list { margin-top: 8px; }
.sk-row { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.sk-row i { height: 12px; border-radius: 3px; background: linear-gradient(90deg, var(--well) 25%, var(--line) 50%, var(--well) 75%); background-size: 300% 100%; animation: sk 1.1s linear infinite; }
.sk-list.cards .sk-row { padding: 28px 0; }
@keyframes sk { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font: 700 12px/16px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl .r { text-align: right; }
.tbl td small { display: block; color: var(--ink-3); font-size: 12px; line-height: 16px; }

/* ---------- shell ---------- */
.top { position: sticky; top: 0; z-index: 40; height: var(--top); display: flex; align-items: center; gap: 14px; padding: 0 24px; background: var(--sheet); border-bottom: 1px solid var(--line-2); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.bn { font: 600 21px/1 var(--serif); letter-spacing: -.01em; }
.top-sep { width: 1px; height: 26px; background: var(--line-2); }
.wed { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); min-width: 0; }
.wed b { font: 500 16px/20px var(--serif); white-space: nowrap; }
.wed b i, .names i, .la-names i { font-style: italic; color: var(--gold-ink); font-weight: 400; }
.wed span { font-size: 12px; line-height: 16px; color: var(--ink-3); white-space: nowrap; }
.search { margin-left: auto; display: flex; align-items: center; gap: 10px; height: 36px; width: 300px; padding: 0 8px 0 12px; border: 1px solid var(--line-2); border-radius: var(--r2); background: var(--card); color: var(--ink-3); font-size: 14px; }
.search:hover { border-color: var(--ink-3); }
.search .ic { width: 17px; height: 17px; }
.search span { flex: 1; text-align: left; }
.saved { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-3); white-space: nowrap; min-width: 112px; }
.saved .ic { width: 14px; height: 14px; color: var(--yes); }
.saved[data-st="err"] { color: var(--no); }
.saved[data-st="err"] .ic { color: var(--no); }
.side-sw { display: inline-flex; padding: 2px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--well); }
.side-sw button { height: 28px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font: 700 13px/1 var(--sans); color: var(--ink-2); }
.side-sw button[aria-pressed="true"] { background: var(--mar); color: var(--on-mar); }
.bell { position: relative; }
.bell .dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--sheet); }
.me { border: 0; background: none; padding: 2px; border-radius: 50%; }
.binder { display: grid; grid-template-columns: minmax(0, 1fr) 150px; max-width: 1440px; margin: 0 auto; padding: 24px 0 56px 24px; }
.sheet-wrap { position: relative; background: var(--sheet); border: 1px solid var(--line-2); border-radius: 4px 0 4px 4px; box-shadow: var(--sh1); min-width: 0; }
.cn { position: absolute; width: 18px; height: 18px; color: var(--mar-line); pointer-events: none; }
.cn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1; }
.cn svg circle { fill: var(--gold); stroke: none; }
.cn.tl { top: 10px; left: 10px; } .cn.tr { top: 10px; right: 10px; transform: scaleX(-1); }
.cn.bl { bottom: 10px; left: 10px; transform: scaleY(-1); } .cn.br { bottom: 10px; right: 10px; transform: scale(-1, -1); }
.sheet { display: block; padding: 40px 48px 56px; min-height: calc(100vh - var(--top) - 80px); }
.tabs { position: sticky; top: calc(var(--top) + 24px); align-self: start; display: flex; flex-direction: column; gap: 3px; padding-top: 28px; margin-left: -1px; z-index: 2; }
.tab { position: relative; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 6px; height: 44px; padding: 0 10px 0 13px; background: var(--tab); border: 1px solid var(--line-2); border-radius: 0 6px 6px 0; color: var(--ink-2); font: 700 13px/16px var(--sans); text-decoration: none; transition: background .15s, color .15s, padding .15s; }
.tab .tn { font: italic 500 13px/1 var(--serif); color: var(--ink-3); }
.tab:hover { background: var(--tab-h); color: var(--ink); }
.tab.on { background: var(--sheet); color: var(--mar-ink); border-left-color: var(--sheet); padding-left: 16px; box-shadow: inset -3px 0 0 var(--gold); }
.tab.on .tn { color: var(--mar-ink); }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); font: 700 11px/1 var(--sans); font-variant-numeric: tabular-nums; }
.badge.late { background: var(--no-bg); color: var(--no); }
.bbar { display: none; }

/* page head */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.ph h1 { font: 500 34px/40px var(--serif); letter-spacing: -.01em; margin-top: 6px; }
.ph-sub { font-size: 15px; line-height: 22px; color: var(--ink-2); margin-top: 6px; max-width: 64ch; }
.ph-a { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.sec-h h2, .sec-t { font: 500 20px/28px var(--serif); }
.sec-h > span, .sec-h > p { font-size: 13px; color: var(--ink-3); }
.sec-t { margin: 28px 0 10px; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { color: var(--mar-ink); text-decoration: none; font-weight: 700; }
.crumbs .ic { width: 14px; height: 14px; }
.subtabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line-2); margin: -6px 0 24px; }
.subtabs a { display: flex; align-items: baseline; gap: 8px; padding: 10px 16px 9px; border: 1px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0; margin-bottom: -1px; font: 700 14px/20px var(--sans); color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.subtabs a small { font-size: 12px; font-weight: 400; color: var(--ink-3); }
.subtabs a:hover { color: var(--ink); background: var(--well); }
.subtabs a.on { background: var(--sheet); border-color: var(--line-2); color: var(--mar-ink); }
.subtabs a.on small { color: var(--gold-ink); }

/* ---------- toasts ---------- */
#toasts { position: fixed; left: 24px; bottom: 24px; z-index: 150; display: flex; flex-direction: column-reverse; gap: 8px; width: min(440px, calc(100% - 48px)); pointer-events: none; }
body[data-view="rsvp"] #toasts { bottom: 112px; }
body[data-view="budget"] #toasts { bottom: 72px; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 6px 6px 16px; background: var(--toast); color: var(--toast-ink); border-radius: var(--r2); box-shadow: var(--sh2); font-size: 14px; line-height: 20px; animation: tin .18s ease; }
.toast .t-x { flex: 1; }
.toast > .ic { width: 18px; height: 18px; color: var(--no); }
.toast.err { box-shadow: inset 3px 0 0 var(--no), var(--sh2); }
.t-live { font: 700 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 4px 6px; border-radius: 3px; background: var(--gold); color: #2B1B20; }
.t-b { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px; border: 0; border-radius: var(--r1); background: none; color: var(--toast-acc); font: 700 13px/1 var(--sans); }
.t-b .ic { width: 16px; height: 16px; }
.t-b:hover { background: color-mix(in srgb, var(--toast-ink) 12%, transparent); }
.t-c { border: 0; background: none; color: inherit; opacity: .6; width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--r1); }
.t-c .ic { width: 16px; height: 16px; }
.toast.out { opacity: 0; transform: translateY(6px); transition: opacity .18s, transform .18s; }
@keyframes tin { from { opacity: 0; transform: translateY(6px); } }

/* ---------- windows ---------- */
.ov { position: fixed; inset: 0; z-index: 100; }
.ov-bg { position: absolute; inset: 0; background: rgba(36, 18, 24, .4); opacity: 0; transition: opacity .18s; }
[data-theme="dark"] .ov-bg { background: rgba(0, 0, 0, .6); }
.ov.in .ov-bg { opacity: 1; }
.ov-p { position: absolute; display: flex; flex-direction: column; background: var(--sheet); color: var(--ink); box-shadow: var(--sh2); opacity: 0; transition: opacity .2s ease, transform .2s ease; overflow: hidden; }
.ov.in .ov-p { opacity: 1; }
.ov-drawer .ov-p { top: 0; right: 0; bottom: 0; width: min(480px, 100%); border-left: 1px solid var(--line-2); transform: translateX(24px); }
.ov-drawer.in .ov-p { transform: none; }
.ov-modal .ov-p { left: 50%; top: 50%; width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 64px); transform: translate(-50%, -47%); border: 1px solid var(--line-2); border-radius: var(--r3); }
.ov-modal.in .ov-p { transform: translate(-50%, -50%); }
.ov-modal .ov-p.wide { width: min(760px, calc(100% - 32px)); }
.ov-modal .ov-p.sm { width: min(460px, calc(100% - 32px)); }
.ov-pal .ov-p { left: 50%; top: 11vh; width: min(640px, calc(100% - 32px)); transform: translate(-50%, -6px); border: 1px solid var(--line-2); border-radius: var(--r3); }
.ov-pal.in .ov-p { transform: translate(-50%, 0); }
.ov-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px 16px; border-bottom: 1px solid var(--line); }
.ov-h h2 { font: 500 22px/28px var(--serif); }
.ov-h p { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.ov-h .ib { margin: -6px -10px 0 0; }
.ov-b { padding: 20px 24px 24px; overflow-y: auto; overflow-x: hidden; flex: 1; overscroll-behavior: contain; }
.ov-f { display: flex; align-items: center; gap: 8px; padding: 14px 24px; border-top: 1px solid var(--line); background: var(--sheet); flex-wrap: wrap; }
.sp { flex: 1; }
.ov-msg { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.ov-msg .ic { width: 18px; height: 18px; }
.ov-msg.bad { color: var(--no); } .ov-msg.ok { color: var(--yes); }
.ov-b > .ov-msg.bad { padding: 12px; background: var(--no-bg); border-radius: var(--r1); align-items: flex-start; }
.mini-h:first-child { margin-top: 0; }
.pop { position: absolute; z-index: 120; min-width: 230px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r2); box-shadow: var(--sh2); padding: 6px; }
.pop button, .pop a { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 0 10px; border: 0; border-radius: 4px; background: none; text-align: left; font: 400 14px/1 var(--sans); color: var(--ink); text-decoration: none; }
.pop button:hover, .pop a:hover, .pop button:focus-visible { background: var(--well); outline: none; }
.pop .ic { width: 17px; height: 17px; color: var(--ink-3); }
.pop-h { font-size: 12px; color: var(--ink-3); padding: 6px 10px 8px; }
.pop-who { display: flex; align-items: center; gap: 10px; padding: 8px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.pop-who span { display: flex; flex-direction: column; }
.pop-who small { font-size: 12px; color: var(--ink-3); }
[data-tip] { position: relative; }
[data-tip]:hover::after { content: attr(data-tip); position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: 5px 8px; border-radius: var(--r1); background: var(--toast); color: var(--toast-ink); font: 400 12px/16px var(--sans); white-space: nowrap; z-index: 60; pointer-events: none; }

/* palette */
.pal-in { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.pal-in .ic { color: var(--ink-3); }
.pal-in input { border: 0; background: transparent; font-size: 17px; min-height: 40px; padding: 0; box-shadow: none !important; }
#pal-res { list-style: none; max-height: min(440px, 60vh); overflow-y: auto; padding: 6px; }
#pal-res li { display: grid; grid-template-columns: 76px 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px 10px; border-radius: 4px; cursor: pointer; }
#pal-res li[aria-selected="true"] { background: var(--mar-soft); }
#pal-res .pk { grid-row: 1 / 3; font: 700 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
#pal-res b { font-size: 14px; font-weight: 700; }
#pal-res small { grid-column: 2; font-size: 12px; color: var(--ink-3); }
#pal-res kbd { grid-row: 1 / 3; grid-column: 3; }
#pal-res .pal-none { display: block; padding: 18px 10px; color: var(--ink-3); cursor: default; }
.pal-f { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.pal-f span { display: inline-flex; gap: 4px; align-items: center; }
dl.keys { display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; align-items: center; }
dl.keys dt { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
dl.keys dt span { font-size: 12px; color: var(--ink-3); }
dl.keys dd { font-size: 14px; color: var(--ink-2); }

/* ---------- sign in ---------- */
.login { display: grid; grid-template-columns: 1.08fr 1fr; min-height: 100vh; background: var(--sheet); }
.login-art { background: #6E1934; color: #FBEFDF; padding: 32px; }
[data-theme="dark"] .login-art { background: #3A0F1E; }
.la-frame { position: relative; height: 100%; min-height: calc(100vh - 64px); border: 1px solid rgba(242, 179, 61, .42); padding: 64px 64px 48px; display: flex; flex-direction: column; justify-content: center; }
.la-frame .cn { color: rgba(242, 179, 61, .7); }
.la-frame .cn svg circle { fill: #F2B33D; }
.la-eyebrow { font: 700 12px/16px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #F2B33D; }
.la-names { font: 400 76px/84px var(--serif); letter-spacing: -.015em; margin: 14px 0 10px; }
.la-names i { color: #F2B33D; }
.la-date { font-size: 16px; line-height: 24px; color: #EBD5C4; }
.la-frame .orn { width: 120px; margin: 32px 0; stroke: rgba(242, 179, 61, .6); }
.la-frame .orn .of { fill: #F2B33D; }
.la-fns { list-style: none; display: grid; gap: 0; max-width: 460px; }
.la-fns li { display: grid; grid-template-columns: 40px 1fr auto; align-items: baseline; padding: 11px 0; border-bottom: 1px solid rgba(251, 239, 223, .16); }
.la-fns span { font: italic 500 16px var(--serif); color: #F2B33D; }
.la-fns b { font: 500 22px/28px var(--serif); }
.la-fns small { font-size: 13px; color: #EBD5C4; font-variant-numeric: tabular-nums; }
.la-foot { margin-top: 32px; font-size: 14px; line-height: 22px; color: #EBD5C4; max-width: 420px; }
.login-form { display: grid; place-items: center; padding: 48px 32px; }
.lf-in { width: min(430px, 100%); }
.brand-row { display: flex; align-items: center; gap: 10px; font: 600 22px/1 var(--serif); margin-bottom: 40px; }
.lf-in h1 { font: 500 34px/40px var(--serif); margin-bottom: 8px; }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0 16px; }
.who button { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r2); background: var(--card); text-align: left; }
.who button b { font-size: 15px; }
.who button span { font-size: 13px; line-height: 18px; color: var(--ink-2); }
.who button[aria-checked="true"] { border-color: var(--mar); background: var(--mar-soft); box-shadow: inset 0 0 0 1px var(--mar); }
.who button[aria-checked="true"] b { color: var(--mar-ink); }
.or { display: flex; align-items: center; gap: 12px; margin: 24px 0 16px; font-size: 12px; color: var(--ink-3); }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
#login-form .btn { width: 100%; }
.fine { font-size: 12px; line-height: 18px; color: var(--ink-3); margin-top: 24px; }

/* ---------- overview ---------- */
.hero { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
.names { font: 500 52px/58px var(--serif); letter-spacing: -.015em; margin: 8px 0 6px; }
.hero-meta { font-size: 15px; color: var(--ink-2); }
.hero-next { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.hero-next .ft { padding: 3px 8px 3px 6px; border: 1px solid var(--line-2); border-radius: 999px; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.count { display: grid; grid-template-columns: repeat(3, auto); justify-content: end; align-items: end; }
.cd { padding: 0 26px; border-left: 1px solid var(--line); }
.cd:first-child { border-left: 0; padding-left: 0; }
.cd:nth-child(3) { padding-right: 0; }
.cd b { display: block; font: 500 64px/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; color: var(--mar-ink); letter-spacing: -.02em; }
.cd span { display: block; margin-top: 8px; font: 700 12px/16px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.cd-l { grid-column: 1 / -1; margin-top: 12px; text-align: right; font: italic 400 15px/22px var(--serif); color: var(--ink-2); }
.tl-track { position: relative; display: grid; grid-template-columns: 156px 1fr; }
.tl-track::before { content: ''; position: absolute; left: 156px; right: 0; top: 33px; height: 1px; background: var(--mar-line); }
.tl-now { position: relative; padding-right: 16px; }
.tl-now::after { content: ''; position: absolute; left: 20px; right: 0; top: 33px; border-top: 1px dashed var(--line-2); }
.tl-day { height: 20px; font: 700 12px/20px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.tl-node { position: relative; z-index: 1; display: block; width: 14px; height: 14px; margin: 6px 0 16px 14px; border-radius: 50%; background: var(--sheet); border: 2px solid var(--fc, var(--ink-3)); }
.tl-node.now { width: 10px; height: 10px; margin: 8px 0 18px 4px; background: var(--ink-3); border: 0; box-shadow: 0 0 0 4px var(--sheet), 0 0 0 5px var(--line-2); }
.tl-fn.main .tl-node { width: 18px; height: 18px; margin-top: 4px; margin-bottom: 14px; background: var(--gold); border-color: var(--mar); }
.tl-nowt { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); }
.tl-nowt b { font: 500 18px/24px var(--serif); color: var(--ink); }
.tl-fns { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.fn-card { display: flex; flex-direction: column; height: calc(100% - 56px); padding: 16px 16px 14px; background: var(--card); border: 1px solid var(--line); border-top: 2px solid var(--fc); border-radius: 0 0 var(--r2) var(--r2); color: inherit; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.fn-card:hover { border-color: var(--line-2); border-top-color: var(--fc); transform: translateY(-2px); box-shadow: var(--sh1); }
.tl-fn.main .fn-card { background: linear-gradient(var(--card), var(--card)) padding-box; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 40%, transparent); }
.fn-num { font: italic 500 14px/1 var(--serif); color: var(--fc); }
.fn-card h3 { font: 500 22px/28px var(--serif); margin: 4px 0 2px; }
.fn-when { font: 700 13px/18px var(--sans); font-variant-numeric: tabular-nums; }
.fn-where { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.fn-where .ic { width: 15px; height: 15px; color: var(--ink-3); }
.fn-dress { font: italic 400 13px/18px var(--serif); color: var(--ink-3); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.fn-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 14px 0 10px; padding-top: 12px; border-top: 1px solid var(--line); margin-top: auto; }
.fn-nums dt { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.fn-nums dd { font: 500 20px/26px var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.fn-nums dd.warn { color: var(--maybe); }
.fn-card .meter { margin-top: 10px; }
.home-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 0; margin-top: 44px; border-top: 1px solid var(--line); padding-top: 28px; }
.home-grid > * { padding: 0 32px; min-width: 0; }
.home-grid > *:first-child { padding-left: 0; }
.home-grid > *:last-child { padding-right: 0; }
.home-grid > * + * { border-left: 1px solid var(--line); }
.hp + .hp { margin-top: 32px; }
.hp-sub { font: 700 12px/16px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 20px 0 6px; }
.ruled { list-style: none; border-top: 1px solid var(--line); }
.tline { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 46px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.tline-t, .task-t { background: none; border: 0; padding: 0; text-align: left; font-size: 14px; line-height: 20px; color: var(--ink); min-width: 0; }
.tline-t:hover, .task-t:hover span { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.due { font-size: 13px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.late .due { color: var(--no); font-weight: 700; }
.now .due { color: var(--gold-ink); font-weight: 700; }
.done .tline-t, .done .task-t span { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-2); }
.cbox { width: 22px; height: 22px; display: grid; place-items: center; border: 1.5px solid var(--line-2); border-radius: 5px; background: var(--card); color: transparent; padding: 0; transition: background .15s, border-color .15s; }
.cbox .ic { width: 15px; height: 15px; stroke-width: 2.4; }
.cbox:hover { border-color: var(--yes); }
.cbox[aria-checked="true"] { background: var(--yes); border-color: var(--yes); color: #fff; }
[data-theme="dark"] .cbox[aria-checked="true"] { color: #10261A; }
.late .cbox { border-color: color-mix(in srgb, var(--no) 55%, var(--line-2)); }
.ledger { list-style: none; }
.pline { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-flow: column; grid-auto-columns: auto; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dotted var(--line-2); }
.pl-d { font-variant-numeric: tabular-nums; }
.pline.late .pl-d { color: var(--no); font-weight: 700; }
.pline.today .pl-d { color: var(--gold-ink); font-weight: 700; }
.pl-w { display: flex; flex-direction: column; min-width: 0; }
.pl-w b { font-size: 14px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-w small { font-size: 12px; line-height: 16px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-a { font-weight: 700; font-size: 14px; text-align: right; }
.pline .ib.sm { margin-left: -6px; }
.pline.sched .pl-a { color: var(--ink-2); }
.hp-pay .pline { grid-template-columns: minmax(0, 1fr) auto; grid-auto-flow: row; row-gap: 0; padding: 8px 0; }
.hp-pay .pl-w { grid-row: 1 / span 2; }
.hp-pay .pline .btn { grid-column: 2; justify-self: end; height: 22px; padding: 0 2px; font-size: 12px; }
.hp-pay .pline .btn:hover { background: none; text-decoration: underline; }
.hp-foot { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.hp-foot b { font: 500 20px/26px var(--serif); color: var(--ink); }
.rbar { display: grid; grid-template-columns: 82px 1fr 70px; align-items: center; gap: 10px; width: 100%; padding: 7px 0; background: none; border: 0; text-align: left; border-radius: var(--r1); }
.rbar:hover .rb-n { color: var(--mar-ink); }
.rb-n { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.rb-n::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--fc); }
.rb-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--well); }
.rb-bar i { display: block; height: 100%; transition: width .22s ease; }
.rb-bar.lg { height: 10px; margin: 10px 0 4px; }
.rb-v { font-size: 12px; color: var(--ink-3); text-align: right; }
.rb-v b { font-size: 14px; color: var(--ink); }
.hp-rsvp > .btn { margin-top: 4px; }
.slip { padding: 2px 0 4px 14px; border-left: 2px solid var(--gold); margin-bottom: 18px; }
.slip h3 { font: 700 15px/20px var(--sans); }
.slip p { font-size: 13px; line-height: 19px; color: var(--ink-2); margin-top: 4px; }
.slip footer { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.slip footer span { flex: 1; }
.feed { list-style: none; }
.feed li { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: start; padding: 9px 0; border-bottom: 1px solid var(--line); }
.feed p { font-size: 13px; line-height: 19px; color: var(--ink-2); }
.feed p b { color: var(--ink); }
.feed time { font-size: 12px; color: var(--ink-3); white-space: nowrap; }

/* ---------- one function ---------- */
.fn-head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 28px; }
.fn-numxl { font: italic 400 96px/.8 var(--serif); color: var(--fc); }
.fn-ht h1 { font: 500 44px/50px var(--serif); margin-top: 4px; }
.fn-hm { font-size: 15px; color: var(--ink-2); margin-top: 4px; font-variant-numeric: tabular-nums; }
.fn-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; }
.fsec + .fsec { margin-top: 36px; }
.prog { list-style: none; border-top: 1px solid var(--line); }
.prog li { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.prog time { font-weight: 700; font-size: 14px; }
.prog li.over time { color: var(--no); }
.pg-w b { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.pg-w small { display: block; font-size: 12px; color: var(--ink-3); }
.lk { width: 14px; height: 14px; color: var(--gold-ink); }
.prog .dur { font-size: 12px; color: var(--ink-3); }
.vlist { list-style: none; border-top: 1px solid var(--line); }
.vlist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.vlist button { background: none; border: 0; padding: 0; text-align: left; display: flex; flex-direction: column; }
.vlist button b { font-size: 14px; }
.vlist button small { font-size: 12px; color: var(--ink-3); }
.vlist button:hover b { color: var(--mar-ink); }
dl.facts { display: grid; grid-template-columns: 110px 1fr; gap: 10px 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
dl.facts dt { font: 700 12px/20px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
dl.facts dd { font-size: 14px; line-height: 20px; }
dl.facts.tight { grid-template-columns: 90px 1fr; gap: 6px 12px; padding-bottom: 14px; }
.fcount { padding: 20px 0; border-bottom: 1px solid var(--line); }
.fcount h2, .fdec h2 { font: 500 20px/28px var(--serif); }
.fcount .big { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.fcount .big b { font: 500 44px/1 var(--serif); color: var(--mar-ink); margin-right: 6px; }
.fcount .muted { font-size: 13px; }
.fcount h3 { font: 700 12px/16px var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin: 20px 0 6px; }
.plates { width: 100%; border-collapse: collapse; font-size: 14px; }
.plates th { text-align: left; font-weight: 400; color: var(--ink-2); padding: 5px 0; border-bottom: 1px dotted var(--line-2); }
.plates td { text-align: right; padding: 5px 0; border-bottom: 1px dotted var(--line-2); font-weight: 700; }
.plates .kids th { font-size: 12px; color: var(--ink-3); }
.plates .tot th, .plates .tot td { border-bottom: 0; border-top: 1px solid var(--ink-3); padding-top: 8px; font-weight: 700; color: var(--ink); }
.fdec { padding-top: 20px; }
.fdec ul { list-style: none; margin-top: 8px; }
.fdec li { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.fn-pager { display: flex; justify-content: space-between; margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); }
.fn-pager a { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.fn-pager a span { display: flex; flex-direction: column; }
.fn-pager a.nx span { text-align: right; }
.fn-pager small { font: italic 500 13px var(--serif); color: var(--ink-3); }
.fn-pager a { font: 500 18px/24px var(--serif); }
.fn-pager a:hover { color: var(--mar-ink); }

/* ---------- checklist ---------- */
.prog-line { display: flex; align-items: center; gap: 12px; margin: -8px 0 20px; max-width: 420px; }
.prog-line .meter { flex: 1; }
.prog-line b { font-size: 13px; }
.chk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; }
.qa { display: grid; grid-template-columns: minmax(0, 1fr) 140px 158px auto; gap: 8px; padding: 12px; background: var(--well); border: 1px solid var(--line); border-radius: var(--r2); }
.qa input, .qa select { min-height: 38px; height: 38px; font-size: 14px; padding-top: 6px; padding-bottom: 6px; }
.qa select { background-position: calc(100% - 17px) 16px, calc(100% - 12px) 16px; }
.qa .err-t { grid-column: 1 / -1; margin: 0; }
.month { margin-top: 28px; }
.m-h { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.m-h h2 { font: 500 22px/28px var(--serif); white-space: nowrap; }
.m-h span { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.m-h i { flex: 1; height: 1px; background: var(--line); align-self: center; }
.tasks { list-style: none; border-top: 1px solid var(--line-2); }
.task { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.task-t { display: flex; flex-direction: column; }
.task-t span { font-size: 15px; line-height: 22px; }
.task-t small { font-size: 13px; line-height: 18px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-m { display: flex; align-items: center; gap: 12px; }
.task-m .due { width: 84px; text-align: right; }
.task-m .ft { width: 86px; }
.chk-rail h2 { font: 500 20px/28px var(--serif); margin-bottom: 8px; }
.chk-rail h2 + p { font-size: 13px; line-height: 19px; }
.chk-rail h2:not(:first-child) { margin-top: 28px; }
.who-t td, .who-t th { padding: 7px 4px; }
.who-t .lnk-b { display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; align-items: center; font-weight: 700; font-size: 13px; }
.who-t .lnk-b small { grid-column: 2; font-weight: 400; }

/* ---------- guests ---------- */
.sides { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 18px; font-size: 13px; color: var(--ink-2); }
.sd-bar { display: flex; width: 220px; height: 6px; border-radius: 999px; overflow: hidden; gap: 2px; }
.sd-bar i { display: block; height: 100%; }
.sd-l { display: inline-flex; align-items: center; gap: 6px; }
.sd-l i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.sd-l b { color: var(--ink); }
.sd-bride { background: var(--s-bride); } .sd-groom { background: var(--s-groom); } .sd-friends { background: var(--s-friends); }
.gl-t .fam-r th { padding: 22px 12px 6px; border-bottom: 1px solid var(--line-2); text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-3); font-size: 12px; }
.gl-t .fam-r .lnk-b { font: 500 17px/24px var(--serif); color: var(--ink); margin-right: 12px; display: inline; }
.gl-t tbody tr:first-child th { padding-top: 12px; }
.g-r { cursor: pointer; }
.g-r:hover td { background: var(--well); }
.g-name { background: none; border: 0; padding: 0; font: 700 14px/20px var(--sans); color: var(--ink); text-align: left; }
.g-n small { display: flex !important; gap: 4px; align-items: center; }
.g-name { display: block; }
.ni { width: 14px; height: 14px; color: var(--gold-ink); }
.g-arr { white-space: nowrap; font-variant-numeric: tabular-nums; }
.fn-mini { display: inline-flex; gap: 4px; }
.fn-mini i { width: 10px; text-align: center; font-style: normal; font-size: 11px; }
.rdots { display: inline-flex; align-items: center; gap: 4px; }
.rd { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.rd.v-y { background: var(--yes); } .rd.v-m { background: var(--gold); } .rd.v-n { background: var(--no); }
.rd.v-p { border: 1.5px solid var(--pend-l); }
.rd.v-x { height: 2px; border-radius: 1px; background: var(--line-2); }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.pager span { margin-right: auto; color: var(--ink-3); }
.gd-fns { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.gd-fn { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.gd-l { display: flex; flex-direction: column; font-weight: 700; font-size: 14px; padding-left: 12px; position: relative; }
.gd-l::before { content: ''; position: absolute; left: 0; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--fc); }
.gd-l small { font-weight: 400; font-size: 12px; color: var(--ink-3); }
.gd-x { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-3); font-style: italic; }
.gd-fn .seg button.v-y[aria-pressed="true"] { background: var(--yes-bg); color: var(--yes); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--yes) 40%, transparent); }
.gd-fn .seg button.v-m[aria-pressed="true"] { background: var(--maybe-bg); color: var(--maybe); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--maybe) 40%, transparent); }
.gd-fn .seg button.v-n[aria-pressed="true"] { background: var(--no-bg); color: var(--no); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--no) 40%, transparent); }
.gd-fn .seg button.v-p[aria-pressed="true"] { background: var(--pend-bg); color: var(--pend); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pend) 40%, transparent); }
.gd-rsvp { margin-bottom: 8px; }
.fam-list { list-style: none; border-top: 1px solid var(--line); }
.fam-list li { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }

/* RSVP grid */
.rg { --cols: minmax(220px, 1.55fr) repeat(5, minmax(92px, 1fr)); border: 1px solid var(--line-2); border-radius: var(--r2); background: var(--card); }
.rg-head, .rg-fam, .rg-row, .rg-foot { display: grid; grid-template-columns: var(--cols); }
.rg-head { position: sticky; top: var(--top); z-index: 4; background: var(--card); border-bottom: 1px solid var(--line-2); border-radius: var(--r2) var(--r2) 0 0; }
.rg-head > .rg-name { font: 700 12px/16px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); justify-content: flex-end; padding-bottom: 10px; }
.rg-head > .rg-name small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.rg-fh { padding: 10px 6px 8px; text-align: center; border-left: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--fc); }
.rg-fh .fn-num { display: block; font-size: 12px; }
.rg-fh b { display: block; font: 500 16px/22px var(--serif); }
.rg-fh small { display: block; font-size: 12px; color: var(--ink-3); }
.rg-fh .ab { display: none; }
.rg-name { padding: 6px 14px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.rg-name small { font-size: 12px; line-height: 16px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg-g { background: none; border: 0; padding: 0; text-align: left; font: 700 14px/20px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg-g:hover { color: var(--mar-ink); }
.rg-fam { background: var(--well); border-top: 1px solid var(--line-2); }
.rg-fam:first-of-type { border-top: 0; }
.rg-tog { display: flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 0; text-align: left; min-width: 0; }
.rg-tog .ic { width: 16px; height: 16px; color: var(--ink-3); }
.rg-tog b { font: 500 15px/20px var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg-tog small { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.rg-fc { display: grid; place-items: center; border-left: 1px solid var(--line); }
.rg-fc button { display: inline-flex; align-items: center; gap: 2px; height: 26px; padding: 0 6px 0 9px; border: 1px solid transparent; border-radius: 999px; background: none; font: 700 12px/1 var(--sans); color: var(--ink-2); }
.rg-fc button:hover { border-color: var(--line-2); background: var(--card); }
.rg-fc button .ic { width: 14px; height: 14px; }
.rg-row { border-top: 1px solid var(--line); }
.rg-c { border-left: 1px solid var(--line); padding: 4px; display: grid; }
.rc { display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; border: 1px solid transparent; border-radius: var(--r1); background: transparent; font: 700 13px/1 var(--sans); transition: background .12s, color .12s; }
.rc .ic { width: 16px; height: 16px; stroke-width: 2; }
.rc.v-y { background: var(--yes-bg); color: var(--yes); }
.rc.v-m { background: var(--maybe-bg); color: var(--maybe); }
.rc.v-n { background: var(--no-bg); color: var(--no); }
.rc.v-p { color: var(--pend); border: 1px dashed var(--pend-l); }
.rc.v-x { color: var(--ink-3); cursor: default; font-weight: 400; }
.rc.v-x .ic { width: 14px; }
.rc:not(.v-x):hover { filter: brightness(.96); border-color: currentColor; }
[data-theme="dark"] .rc:not(.v-x):hover { filter: brightness(1.15); }
.rc:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.rg-foot { position: sticky; bottom: 0; z-index: 4; background: var(--card); border-top: 2px solid var(--line-2); border-radius: 0 0 var(--r2) var(--r2); box-shadow: 0 -10px 18px -16px rgba(40, 15, 20, .5); }
.rg-foot > .rg-name b { font: 500 16px/22px var(--serif); }
.rg-tot { padding: 10px 6px; text-align: center; border-left: 1px solid var(--line); }
.rg-tot b { display: block; font: 500 28px/32px var(--serif); font-variant-numeric: lining-nums tabular-nums; color: var(--yes); transition: color .3s; }
.rg-tot small { display: block; font-size: 12px; line-height: 16px; color: var(--ink-3); }
.rg-tot small.meals { color: var(--ink-2); }
.rg-tot b.bump { animation: bump .9s ease; }
@keyframes bump { 0% { color: var(--gold-ink); background: var(--gold-soft); } 100% { background: transparent; } }
.rg-empty { padding: 8px; }
.rg-leg { margin: 0 0 0 auto; }
.filters.f-row .rg-leg + .search-in { margin-left: 0; }
.chase { list-style: none; border-top: 1px solid var(--line); margin-bottom: 16px; }
.chase li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.chase .ck span { display: flex; flex-direction: column; }
.chase .ck b { font-size: 14px; }
.ch-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); text-align: right; }
.ch-st .ic { width: 15px; height: 15px; }
.ch-st.ok { color: var(--yes); font-weight: 700; }
.ch-st.bad { color: var(--no); font-weight: 700; }

/* travel and stay */
.facts-line { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.facts-line p { padding: 14px 20px; border-left: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.facts-line p:first-child { border-left: 0; padding-left: 0; }
.facts-line b { font: 500 30px/36px var(--serif); color: var(--ink); margin-right: 6px; }
.facts-line small { display: block; font-size: 12px; color: var(--ink-3); }
.facts-line .warn b { color: var(--no); }
.stay-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; }
.arr-day h3 { display: flex; align-items: baseline; justify-content: space-between; font: 500 18px/24px var(--serif); padding-bottom: 6px; border-bottom: 1px solid var(--line-2); margin: 18px 0 0; }
.arr-day h3 small { font: 400 12px var(--sans); color: var(--ink-3); }
.arr-day ul { list-style: none; }
.arr { display: grid; grid-template-columns: 70px minmax(0, 1fr) 86px 112px; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.arr time { font-weight: 700; font-size: 13px; }
.ar-w { display: flex; flex-direction: column; min-width: 0; }
.ar-w b { font-size: 14px; }
.ar-w small { font-size: 12px; color: var(--ink-3); }
.ar-by { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-2); }
.ar-by .ic { width: 15px; height: 15px; color: var(--ink-3); }
.ar-pk { font-size: 12px; text-align: center; }
.pk { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 30px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); font: 700 12px/1 var(--sans); color: var(--mar-ink); }
.pk:hover { border-color: var(--mar); }
.pk[aria-pressed="true"] { background: var(--yes-bg); border-color: transparent; color: var(--yes); }
.pk .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.hotel + .hotel { margin-top: 24px; }
.hotel h3, .noroom h3 { display: flex; align-items: baseline; justify-content: space-between; font: 500 17px/24px var(--serif); margin-bottom: 8px; }
.hotel h3 small, .noroom h3 small { font: 400 12px var(--sans); color: var(--ink-3); }
.rooms { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.room { display: flex; flex-direction: column; justify-content: space-between; height: 58px; padding: 6px 8px; border: 1px dashed var(--line-2); border-radius: 4px; background: transparent; text-align: left; overflow: hidden; }
.room b { font-size: 13px; }
.room span { font-size: 11px; line-height: 14px; color: var(--ink-3); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.room.used { border: 1px solid var(--line); border-left: 3px solid var(--mar-line); background: var(--card); }
.room.used span { color: var(--ink-2); }
.room.full { border-left-color: var(--mar); }
.room:hover { border-color: var(--ink-3); }
.noroom { margin-top: 28px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--well); }
.noroom ul { list-style: none; }
.noroom li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.noroom li span { display: flex; flex-direction: column; font-size: 14px; }
.noroom li small { font-size: 12px; color: var(--ink-3); }

/* seating */
.seat-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.pool { position: sticky; top: calc(var(--top) + 20px); max-height: calc(100vh - var(--top) - 40px); overflow-y: auto; overflow-x: hidden; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r2); }
.pool.over { box-shadow: 0 0 0 2px var(--mar-line); }
.pool-f { display: flex; flex-direction: column; gap: 8px; }
.pool-fam { padding: 10px 0; border-top: 1px solid var(--line); }
.pool-fam header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.gchips { display: flex; flex-wrap: wrap; gap: 6px; }
.gchip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--sheet); font: 700 13px/1 var(--sans); color: var(--ink); cursor: grab; touch-action: manipulation; }
.gchip small { font-size: 11px; color: var(--mc); }
.gchip:hover { border-color: var(--mar); }
.gchip.on { background: var(--mar); border-color: var(--mar); color: var(--on-mar); }
.gchip.on small { color: var(--on-mar); }
.gchip.ghosted { opacity: .35; }
.sel-hint { margin: 10px 0; padding: 8px 10px; border-radius: var(--r1); background: var(--mar-soft); color: var(--mar-ink); font-size: 13px; }
.floor { position: relative; height: clamp(540px, calc(100vh - 360px), 660px); border: 1px solid var(--line-2); border-radius: var(--r2); background-color: var(--well); background-image: radial-gradient(color-mix(in srgb, var(--line-2) 70%, transparent) 1px, transparent 1.2px); background-size: 22px 22px; overflow: hidden; }
.stage { position: absolute; top: 0; left: 30%; right: 30%; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-2); border-top: 0; border-radius: 0 0 10px 10px; background: var(--card); font: 700 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.blank-note { margin-top: 36px; border-top: 1px solid var(--line); }
.dance { position: absolute; left: 50%; top: 52%; width: 19%; height: 22%; transform: translate(-50%, -50%); display: grid; place-items: center; border: 1px dashed var(--line-2); border-radius: 4px; font: italic 400 15px var(--serif); color: var(--ink-3); background: color-mix(in srgb, var(--card) 50%, transparent); }
.tbl-r { --r: 58px; position: absolute; width: 140px; height: 150px; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; }
.seats i { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--sheet); transform: rotate(var(--a)) translateY(calc(var(--r) * -1)); transition: background .15s; }
.seats i.on { background: var(--mar); border-color: var(--mar); }
.tbl-c { position: relative; z-index: 1; width: 92px; height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); box-shadow: var(--sh1); transition: border-color .15s, box-shadow .15s; }
.tbl-c b { font: 500 13px/17px var(--serif); max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl-c span { font-size: 12px; color: var(--ink-3); }
.tbl-c:hover { border-color: var(--mar); }
.tbl-r.head { --r: 64px; }
.tbl-r.head .tbl-c { width: 102px; height: 102px; }
.tbl-f { position: absolute; top: calc(50% + var(--r) + 12px); left: 50%; transform: translateX(-50%); width: 160px; text-align: center; font-size: 12px; line-height: 16px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbl-r.full .tbl-c span { color: var(--no); font-weight: 700; }
.tbl-r.warn .tbl-c { border-color: var(--no); box-shadow: 0 0 0 3px var(--no-bg); }
.tbl-r.over .tbl-c { border-color: var(--mar); box-shadow: 0 0 0 5px var(--mar-soft); }
.placing .tbl-r:not(.full) .tbl-c { border: 1.5px dashed var(--mar); }
.placing .tbl-r.full { opacity: .55; }

/* ---------- budget ---------- */
.ledger-head { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); }
.ledger-head > div { padding: 16px 20px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.ledger-head > div:first-child { border-left: 0; padding-left: 0; }
.ledger-head span { font: 700 12px/16px var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.ledger-head b { font: 500 32px/40px var(--serif); font-variant-numeric: lining-nums tabular-nums; margin: 4px 0 2px; }
.ledger-head small { font-size: 12px; color: var(--ink-3); }
.ledger-head .key b { color: var(--mar-ink); }
.ledger-head .late small { color: var(--no); font-weight: 700; }
.bud-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; margin-top: 8px; }
.heads-t { margin-top: 12px; }
.hd-r { cursor: pointer; }
.hd-r:hover td { background: var(--well); }
.hd-n b { font-size: 14px; }
.hd-left { font-weight: 700; }
.hd-bar { width: 22%; }
.bar-h { text-transform: none !important; letter-spacing: 0 !important; }
.hbar { display: flex; height: 8px; border-radius: 999px; background: var(--well); overflow: hidden; min-width: 100px; box-shadow: inset 0 0 0 1px var(--line); }
.hbar i { display: block; height: 100%; transition: width .22s ease; }
.hbar .pd { background: var(--mar); }
.hbar .sc { background: repeating-linear-gradient(135deg, var(--gold) 0 3px, var(--gold-soft) 3px 6px); }
.hbar.over .pd { background: var(--no); }
.hbar.lg { height: 10px; margin-bottom: 14px; }
.payer { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.payer::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--pc); }
.p-bride { --pc: var(--s-bride); } .p-groom { --pc: var(--s-groom); } .p-couple { --pc: var(--s-friends); }
.heads-t tfoot th, .heads-t tfoot td { position: sticky; bottom: 0; background: var(--sheet); border-top: 2px solid var(--line-2); border-bottom: 0; font-weight: 700; padding: 12px; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); z-index: 2; }
.hd-r.flash td { animation: flash 1.6s ease; }
@keyframes flash { 0%, 30% { background: var(--gold-soft); } 100% { background: transparent; } }
.payers { list-style: none; border-top: 1px solid var(--line); }
.payers li { display: grid; grid-template-columns: 150px minmax(0, 1fr) 220px; gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.payers .pb { height: 6px; background: var(--well); border-radius: 999px; overflow: hidden; }
.payers .pb i { display: block; height: 100%; background: var(--pc, var(--ink-2)); }
.payers li:nth-child(1) .pb i { background: var(--s-bride); } .payers li:nth-child(2) .pb i { background: var(--s-groom); } .payers li:nth-child(3) .pb i { background: var(--s-friends); }
.payers .num { text-align: right; font-weight: 700; }
.payers small { font-weight: 400; color: var(--ink-3); }
.dues .sec-t:first-child { margin-top: 4px; }
.due-h { display: flex; justify-content: space-between; font: 700 12px/16px var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin: 14px 0 2px; }
.due-h.late { color: var(--no); }
.due-h small { font-size: 12px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.quick:empty { display: none; }
.qchip { height: 28px; padding: 0 10px; border: 1px dashed var(--line-2); border-radius: 999px; background: none; font-size: 12px; color: var(--ink-2); }
.qchip:hover { border-color: var(--mar); color: var(--mar-ink); }
.pv { margin-top: 8px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--well); }
.pv .mini-h { margin: 0 0 4px; }
.pv-bar { display: flex; height: 10px; border-radius: 999px; background: var(--card); overflow: hidden; margin: 8px 0 14px; box-shadow: inset 0 0 0 1px var(--line); }
.pv-bar i { display: block; height: 100%; transition: width .18s ease; }
.pv-bar .pd { background: var(--mar); }
.pv-bar .nw { background: var(--gold); }
.pv-bar.over .nw { background: var(--no); }
.pv-n { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.pv-n dt { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.pv-n dd { font-size: 15px; line-height: 22px; font-variant-numeric: tabular-nums; }
.pv-n .key dd b, .pv-n .key dd { color: var(--mar-ink); }
.pv-n .to { color: var(--ink-3); margin: 0 3px; }
.pv-m { display: flex; gap: 6px; align-items: flex-start; margin-top: 12px; font-size: 13px; line-height: 18px; color: var(--yes); }
.pv-m .ic { width: 16px; height: 16px; margin-top: 1px; }
.pv-m.bad { color: var(--no); }
.hd-sum { padding: 4px 0 8px; }
.sched { margin-top: 20px; padding: 16px; border: 1px dashed var(--line-2); border-radius: var(--r2); }
.sched .mini-h { margin-top: 0; }
.pline .ib.sm { color: var(--ink-3); }

/* ---------- vendors ---------- */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.col { background: var(--well); border: 1px solid var(--line); border-radius: var(--r2); padding: 12px; }
.col-h { display: flex; flex-direction: column; padding: 2px 4px 12px; }
.col-h h2 { font: 500 19px/26px var(--serif); }
.col-h span { font-size: 12px; color: var(--ink-3); }
.col-h span b { color: var(--ink); }
.col-b { display: flex; flex-direction: column; gap: 10px; min-height: 160px; border-radius: 4px; transition: background .15s, box-shadow .15s; }
.col-b.over { background: var(--mar-soft); box-shadow: 0 0 0 6px var(--mar-soft), 0 0 0 7px var(--mar-line); }
.col-empty { padding: 20px 12px; border: 1px dashed var(--line-2); border-radius: 4px; font-size: 13px; color: var(--ink-3); text-align: center; }
.vcard { background: var(--card); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--sh1); cursor: grab; transition: border-color .15s, box-shadow .15s; }
.vcard:hover { border-color: var(--line-2); }
.vcard.ghosted { opacity: .3; }
.vc-open { display: block; width: 100%; padding: 14px; background: none; border: 0; text-align: left; color: inherit; cursor: inherit; border-radius: 4px; }
.vc-cat { font: 700 11px/16px var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.vcard h3 { font: 500 17px/22px var(--serif); margin: 2px 0; }
.vc-who { font-size: 13px; color: var(--ink-2); }
.vc-q { font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.vc-q b { color: var(--ink); font-size: 14px; }
.mini { display: block; height: 4px; margin-top: 6px; background: var(--well); border-radius: 999px; overflow: hidden; }
.mini i { display: block; height: 100%; background: var(--mar); }
.vc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.vc-fns { display: inline-flex; gap: 3px; align-items: center; }
.vc-fns i { width: 8px; height: 8px; border-radius: 50%; background: var(--fc); }
.vc-fns small { font-size: 12px; color: var(--ink-3); margin-left: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.vc-fns .ft { font-weight: 400; color: var(--ink-3); }
.drag-ghost { position: fixed !important; left: 0; top: 0; z-index: 200; pointer-events: none; margin: 0; box-shadow: var(--sh2); opacity: .97; }
.is-dragging, .is-dragging * { cursor: grabbing !important; user-select: none; }
.col-pick { display: none; }
.passed { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 12px; }
.passed summary { cursor: pointer; font: 700 13px/20px var(--sans); color: var(--ink-2); }
.passed ul { list-style: none; margin-top: 8px; }
.passed li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.vd-stage { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.vd-stage .mini-h { margin: 0; }
.contract { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--card); }
.contract > .ic { color: var(--ink-3); }
.contract span { display: flex; flex-direction: column; }
.contract b { font-size: 14px; }
.contract small { font-size: 12px; color: var(--ink-3); }
.contract.c-signed > .ic { color: var(--yes); }
.up-err { display: flex; gap: 6px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; border-radius: var(--r1); background: var(--no-bg); color: var(--no); font-size: 13px; line-height: 18px; font-weight: 700; }
.up-err .ic { width: 16px; height: 16px; margin-top: 1px; }
.doc { background: #FFFDF8; color: #2B1B20; padding: 36px 40px; border: 1px solid #E6DACA; font-size: 14px; line-height: 21px; }
.doc header { text-align: center; padding-bottom: 18px; border-bottom: 1px double #D5C4AC; margin-bottom: 18px; }
.doc-k { display: flex; align-items: center; justify-content: center; gap: 8px; font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #766166; }
.doc-k .knot { width: 20px; height: 20px; }
.doc-k .knot .k1 { stroke: #7B1E3A; }
.doc h3 { font: 500 28px/34px var(--serif); margin: 10px 0 4px; }
.doc h4 { font: 700 12px/16px var(--sans); text-transform: uppercase; letter-spacing: .1em; color: #766166; margin: 18px 0 6px; }
.doc-dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 14px; }
.doc-dl dt { color: #766166; }
.doc-t td { padding: 6px 0; border-bottom: 1px dotted #D5C4AC; color: #2B1B20; }
.doc-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 28px; }
.doc-sign div { border-top: 1px solid #766166; padding-top: 6px; display: flex; flex-direction: column; }
.doc-sign .sig { font: italic 400 22px/28px var(--serif); color: #7B1E3A; order: -1; margin-bottom: 4px; }
.doc-sign small { font-size: 12px; color: #766166; }
.doc-demo { margin-top: 20px; font-size: 11px; color: #766166; text-align: center; font-style: italic; }

/* ---------- run sheet ---------- */
.day-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line-2); }
.day-tabs button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 18px 9px; border: 1px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0; background: none; margin-bottom: -1px; text-align: left; }
.day-tabs button b { font: 500 16px/20px var(--serif); }
.day-tabs button span { font-size: 12px; color: var(--ink-3); }
.day-tabs button:hover { background: var(--well); }
.day-tabs button[aria-selected="true"] { background: var(--card); border-color: var(--line-2); }
.day-tabs button[aria-selected="true"] b { color: var(--mar-ink); }
.rs-meta { display: flex; align-items: center; gap: 32px; padding: 14px 20px; background: var(--card); border: 1px solid var(--line-2); border-top: 0; border-radius: 0 0 var(--r2) var(--r2); margin-bottom: 18px; }
.rs-meta .fld { margin: 0; display: flex; align-items: center; gap: 10px; }
.rs-meta .fld label { margin: 0; white-space: nowrap; }
.rs-meta input { width: 130px; min-height: 36px; height: 36px; padding: 4px 10px; }
.rs-meta p { display: flex; flex-direction: column; }
.rs-meta p .mini-h { margin: 0; }
.rs-meta p b { font: 500 20px/26px var(--serif); }
.rs-status { flex: 1; flex-direction: row !important; align-items: flex-start; gap: 8px; padding: 8px 12px; border-radius: var(--r1); font-size: 13px; line-height: 18px; }
.rs-status .ic { width: 16px; height: 16px; margin-top: 1px; }
.rs-status.ok { background: var(--yes-bg); color: var(--yes); }
.rs-status.bad { background: var(--no-bg); color: var(--no); font-weight: 700; }
.rs { list-style: none; position: relative; border-top: 1px solid var(--line); }
.rs-row { position: relative; display: grid; grid-template-columns: 32px 96px minmax(0, 1fr) 118px 136px 32px; align-items: center; gap: 12px; padding: 10px 8px 10px 4px; background: var(--sheet); border-bottom: 1px solid var(--line); }
.sorting .rs-row { transition: transform .16s ease; }
.rs-row.lifting { z-index: 5; transition: none !important; background: var(--card); box-shadow: var(--sh2); border-radius: 4px; border-bottom-color: transparent; }
.rs-row.fixed::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--gold); }
.rs-row.flash { animation: flash 1.6s ease; }
.grip { width: 28px; height: 38px; display: grid; place-items: center; border: 0; border-radius: var(--r1); background: none; color: var(--ink-3); cursor: grab; touch-action: none; }
.grip:hover { background: var(--well); color: var(--ink); }
.rs-t { display: flex; align-items: center; gap: 5px; font: 700 15px/20px var(--sans); }
.rs-row.over .rs-t { color: var(--no); }
.rs-w { min-width: 0; }
.rs-w b { display: block; font-size: 15px; line-height: 20px; font-weight: 700; }
.rs-w small { display: block; font-size: 13px; line-height: 18px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-f { text-align: right; }
.rs-flag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); font: 700 12px/1 var(--sans); white-space: nowrap; }
.rs-flag.bad { background: var(--no-bg); color: var(--no); }
.rs-flag.ok { background: var(--yes-bg); color: var(--yes); }
.rs-d { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.rs-d .num { min-width: 64px; text-align: center; font-size: 13px; color: var(--ink-2); }
.rs-more { color: var(--ink-3); }
.print-doc { display: none; }

/* ---------- notes & decisions ---------- */
.notes-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.decs .sec-h { align-items: center; }
.dec { padding: 18px 0 16px; border-bottom: 1px solid var(--line); }
.dec.d-proposed { padding-left: 16px; border-left: 2px solid var(--gold); }
.dec header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dec header time { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.dec h3 { font: 500 19px/26px var(--serif); margin: 10px 0 4px; }
.dec p { font-size: 14px; line-height: 21px; color: var(--ink-2); max-width: 62ch; }
.dec footer { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; flex-wrap: wrap; }
.dec footer .muted { flex: 1; }
.why { font-size: 12px; color: var(--ink-3); font-style: italic; }
.mnotes { padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-left: 3px double var(--mar-line); border-radius: 0 var(--r2) var(--r2) 0; }
.note-c textarea { background: var(--sheet); }
.note-cf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.draft { font-size: 12px; color: var(--ink-3); font-style: italic; }
.note-l { list-style: none; margin-top: 16px; }
.note { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.note .av { margin-top: 2px; }
.note header { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.note header b { font-size: 14px; }
.note header small { font-size: 12px; color: var(--ink-3); }
.pin-t { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; font: 700 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); }
.pin-t .ic { width: 13px; height: 13px; }
.note p { font-size: 14px; line-height: 21px; margin-top: 4px; color: var(--ink); }
.note footer { display: flex; gap: 14px; margin-top: 6px; }
.note footer .lnk { font-size: 12px; color: var(--ink-3); font-weight: 400; }
.note footer .lnk:hover { color: var(--mar-ink); }
.note.pinned p { font-weight: 700; }

/* ---------- invite ---------- */
.inv-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 44px; align-items: start; }
.swatches { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sw { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--card); font: 700 13px/18px var(--sans); text-align: left; }
.sw[aria-pressed="true"] { border-color: var(--mar); box-shadow: inset 0 0 0 1px var(--mar); }
.sw-c { width: 34px; height: 34px; border-radius: 3px; border: 2px solid; display: flex; align-items: flex-end; justify-content: flex-end; padding: 3px; gap: 2px; flex: none; }
.sw-c i { width: 8px; height: 8px; border-radius: 50%; }
.inv-ctl .help span { font-variant-numeric: tabular-nums; }
.inv-stage { position: sticky; top: calc(var(--top) + 20px); padding: 40px 32px 28px; background: var(--desk); border-radius: var(--r2); display: flex; flex-direction: column; align-items: center; }
.iv-card { position: relative; width: 360px; aspect-ratio: 300 / 420; background: var(--ib); color: var(--ii); box-shadow: 0 18px 40px -18px rgba(40, 15, 20, .55), 0 1px 2px rgba(40, 15, 20, .15); text-align: center; transition: background .2s, color .2s; }
.iv-frame { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--ia); stroke-width: 1.2; }
.iv-frame rect { vector-effect: non-scaling-stroke; }
.iv-frame .thin { stroke-width: .6; }
.iv-frame .dia { fill: var(--ia); stroke: none; }
.iv-in { position: absolute; inset: 38px 34px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.iv-bless { font: italic 400 13px/18px var(--serif); opacity: .9; }
.iv-hosts { font: 700 10.5px/16px var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-top: 8px; }
.iv-line { font: italic 400 14px/20px var(--serif); opacity: .92; }
.iv-names { display: flex; flex-direction: column; font: 500 42px/46px var(--serif); margin: 8px 0 4px; }
.iv-names i { font: italic 400 24px/28px var(--serif); color: var(--ia); }
.iv-orn .orn { stroke: var(--ia); opacity: .8; margin: 6px 0; }
.iv-orn .orn .of { fill: var(--ia); }
.iv-date { font: 700 11px/16px var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.iv-time { font: italic 400 14px/20px var(--serif); }
.iv-venue { font-size: 13px; line-height: 18px; }
.iv-rsvp { font-size: 11px; line-height: 15px; opacity: .8; margin-top: 10px; }
.ty-modern .iv-names { font: 400 27px/38px var(--sans); letter-spacing: .26em; text-transform: uppercase; padding-left: .26em; }
.ty-modern .iv-names i { font: 400 18px/24px var(--sans); letter-spacing: 0; }
.ty-modern .iv-line, .ty-modern .iv-bless, .ty-modern .iv-time { font-family: var(--sans); font-style: normal; font-size: 12.5px; }
.ins-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.ins { width: 128px; padding: 14px 10px; display: flex; flex-direction: column; gap: 3px; background: var(--ib); color: var(--ii); text-align: center; border: 1px solid var(--ia); box-shadow: 0 8px 18px -10px rgba(40, 15, 20, .5); }
.ins-n { font: italic 500 13px var(--serif); color: var(--ia); }
.ins b { font: 500 17px/22px var(--serif); }
.ty-modern .ins b { font: 700 12px/20px var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.ins small { font-size: 11px; line-height: 15px; }
.ins em { font: italic 400 11px/15px var(--serif); opacity: .85; margin-top: 4px; }
.inv-stage .demo { text-align: center; max-width: 380px; }
.iv-wrap { width: 100%; display: flex; justify-content: center; }

/* ---------- settings ---------- */
.set-s { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding: 28px 0; border-top: 1px solid var(--line); }
.set-s:first-child { border-top: 0; padding-top: 0; }
.set-l h2 { font: 500 20px/28px var(--serif); }
.set-l p { font-size: 13px; line-height: 19px; color: var(--ink-3); margin-top: 4px; }
.set-f { max-width: 640px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.set-row > span { display: flex; flex-direction: column; }
.set-row b { font-size: 14px; }
.set-row small { font-size: 13px; color: var(--ink-3); }
.set-f .row .muted { font-size: 13px; }
.switch { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; font: 700 13px/1 var(--sans); color: var(--ink-2); padding: 4px; }
.switch i { position: relative; width: 40px; height: 24px; border-radius: 999px; background: var(--line-2); transition: background .15s; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch[aria-checked="true"] i { background: var(--yes); }
.switch[aria-checked="true"] i::after { transform: translateX(16px); }
.inline-f { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-top: 14px; }
.inline-f .err-t { grid-column: 1 / -1; margin: 0; }
.ppl-t td { font-size: 14px; }
.ppl-t td:first-child { display: flex; align-items: center; gap: 10px; }
.more-l { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.more-l a { position: relative; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--card); color: var(--ink); font-weight: 700; text-decoration: none; }
.more-l a.on { border-color: var(--mar-line); color: var(--mar-ink); background: var(--mar-soft); }
.more-l a .ic { color: var(--ink-3); }
.more-l .badge { margin-left: auto; }
.more-o { margin-top: 18px; }
.more-o > .btn { margin-top: 14px; width: 100%; }

/* ---------- mid widths ---------- */
@media (max-width: 1240px) {
  .search { width: 220px; }
  .saved { display: none; }
  .sheet { padding: 32px 32px 48px; }
  .binder { grid-template-columns: minmax(0, 1fr) 132px; }
  .tl-track { grid-template-columns: 1fr; }
  .tl-now { display: none; }
  .tl-track::before { left: 0; }
  .home-grid { grid-template-columns: 1fr 1fr; }
  .home-grid > *:nth-child(3) { grid-column: 1 / -1; border-left: 0; padding: 28px 0 0; margin-top: 28px; border-top: 1px solid var(--line); }
  .fn-card .fn-dress { display: none; }
}
@media (max-width: 1060px) and (min-width: 760px) {
  .binder { grid-template-columns: 1fr; padding: 16px; }
  .tabs { position: static; flex-direction: row; flex-wrap: wrap; order: -1; padding: 0 0 0 8px; margin: 0; gap: 3px; }
  .tab { height: 38px; border-radius: 6px 6px 0 0; border-left: 1px solid var(--line-2); border-bottom: 0; grid-template-columns: auto auto auto; padding: 0 10px; }
  .tab.on { border-bottom-color: var(--sheet); box-shadow: inset 0 3px 0 var(--gold); padding-left: 10px; }
  .sheet-wrap { border-radius: 4px; }
  .tl-fns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chk-layout, .fn-grid, .bud-grid, .stay-grid, .notes-grid, .inv-layout { grid-template-columns: 1fr; }
  .seat-layout { grid-template-columns: 240px 1fr; }
  .wed span { display: none; }
}

/* ---------- phone ---------- */
@media (max-width: 759px) {
  :root { --top: 56px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .top { gap: 10px; padding: 0 12px 0 16px; }
  .bn, .top-sep, .search span, .search kbd, .saved, .bell, #theme-btn, .me { display: none; }
  .knot { width: 26px; height: 26px; }
  .wed b { font-size: 15px; }
  .search { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 50%; margin-left: 0; }
  .side-sw { margin-left: auto; }
  .side-sw button { height: 28px; padding: 0 10px; font-size: 12px; }
  .binder { display: block; padding: 0; }
  .tabs, .cn { display: none; }
  .sheet-wrap { border: 0; border-radius: 0; box-shadow: none; }
  .sheet { padding: 20px 16px 32px; min-height: 0; }
  .bbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--sheet); border-top: 1px solid var(--line-2); }
  .bbar a, .bbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; background: none; color: var(--ink-3); font: 700 11px/14px var(--sans); text-decoration: none; }
  .bbar .ic { width: 22px; height: 22px; }
  .bbar .on { color: var(--mar-ink); }
  .bbar .on::before { content: ''; position: absolute; top: -1px; left: 28%; right: 28%; height: 2px; background: var(--gold); border-radius: 0 0 2px 2px; }
  .bbar .badge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 16px; font-size: 10px; }
  #toasts, body[data-view] #toasts { top: calc(var(--top) + 8px); bottom: auto; left: 12px; width: calc(100% - 24px); flex-direction: column; }
  body.has-ov #toasts { top: 8px; }
  #toasts .toast:nth-child(n + 2) { display: none; }
  @keyframes tin { from { opacity: 0; transform: translateY(-6px); } }
  .toast { font-size: 13px; line-height: 18px; }
  .ph { flex-direction: column; align-items: stretch; gap: 14px; }
  .ph h1 { font-size: 28px; line-height: 34px; }
  .ph-sub { font-size: 14px; line-height: 20px; }
  .ph-a { justify-content: flex-start; }
  .ph-a .btn { height: 34px; padding: 0 12px; font-size: 13px; }
  .rule { margin: 16px 0 20px; }
  .subtabs { margin: -4px -16px 18px; padding: 0 8px; gap: 0; }
  .subtabs a { padding: 9px 8px 8px; font-size: 13px; flex-direction: column; gap: 0; align-items: center; flex: 1; text-align: center; }
  .subtabs a small { font-size: 11px; line-height: 14px; }
  .filters.f-row .search-in, .search-in { margin-left: 0; width: 100%; }
  .search-in input { width: 100%; }
  .f-row > select { flex: 1; }
  .seg { max-width: 100%; }
  .fld-row, .fld-row.three { grid-template-columns: 1fr; gap: 0; }
  .fld-row.three .fld, .fld-row .fld { margin-bottom: 14px; }
  /* sheets */
  .ov-drawer .ov-p, .ov-modal .ov-p, .ov-modal .ov-p.wide, .ov-modal .ov-p.sm { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 92vh; border-radius: 14px 14px 0 0; border: 0; border-top: 1px solid var(--line-2); transform: translateY(28px); }
  .ov-drawer.in .ov-p, .ov-modal.in .ov-p { transform: none; }
  .ov-p::before { content: ''; position: absolute; top: 6px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--line-2); }
  .ov-pal .ov-p { top: 8px; width: calc(100% - 16px); }
  .ov-pal .ov-p::before { display: none; }
  .ov-h { padding: 20px 16px 12px; }
  .ov-b { padding: 16px 16px 20px; }
  .ov-f { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .ov-f .btn { flex: 1; }
  .ov-f .sp { display: none; }
  .ov-f .danger-q { flex: 0 0 auto; }
  .ov-msg { width: 100%; }
  .pal-f { display: none; }
  #pal-res li { grid-template-columns: 64px 1fr; }
  #pal-res kbd { display: none; }
  /* sign in */
  .login { grid-template-columns: 1fr; }
  .login-art { padding: 12px; }
  .la-frame { min-height: 0; padding: 28px 22px 24px; }
  .la-names { font-size: 46px; line-height: 52px; margin: 8px 0 6px; }
  .la-date { font-size: 14px; }
  .la-frame .orn, .la-fns, .la-foot { display: none; }
  .login-form { padding: 28px 16px 40px; place-items: start; }
  .brand-row { margin-bottom: 22px; }
  .lf-in h1 { font-size: 28px; line-height: 34px; }
  .who { grid-template-columns: 1fr; }
  /* overview */
  .hero { grid-template-columns: 1fr; gap: 20px; }
  .names { font-size: 38px; line-height: 44px; }
  .count { justify-content: start; }
  .cd { padding: 0 18px; }
  .cd b { font-size: 46px; }
  .cd-l { text-align: left; font-size: 14px; }
  .hero-next { flex-wrap: wrap; }
  .tl .sec-h { flex-direction: column; gap: 2px; }
  .tl-track { grid-template-columns: 1fr; }
  .tl-track::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .tl-now { display: none; }
  .tl-fns { grid-template-columns: 1fr; gap: 12px; }
  .tl-fn { position: relative; padding-left: 28px; }
  .tl-node { position: absolute; left: 0; top: 2px; margin: 0; }
  .tl-fn.main .tl-node { left: -2px; top: 0; margin: 0; }
  .tl-day { margin-bottom: 6px; }
  .fn-card { height: auto; }
  .fn-card .fn-dress { display: none; }
  .home-grid { grid-template-columns: 1fr; margin-top: 32px; }
  .home-grid > *, .home-grid > *:nth-child(3) { padding: 0; border-left: 0; grid-column: auto; margin-top: 0; border-top: 0; }
  .home-grid > * + * { margin-top: 32px !important; padding-top: 24px !important; border-top: 1px solid var(--line) !important; }
  .tline { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .tline .av { display: none; }
  .pline .btn { height: 30px; padding: 0 8px; }
  .hp-dec .slip footer { flex-wrap: wrap; }
  /* function */
  .fn-head { grid-template-columns: auto 1fr; gap: 16px; }
  .fn-head .ph-a { grid-column: 1 / -1; justify-content: flex-start; }
  .fn-numxl { font-size: 64px; }
  .fn-ht h1 { font-size: 34px; line-height: 40px; }
  .fn-hm { font-size: 14px; }
  .fn-grid { grid-template-columns: 1fr; gap: 32px; }
  .prog li { grid-template-columns: 72px 1fr; }
  .prog .dur { display: none; }
  /* checklist */
  .chk-layout { grid-template-columns: 1fr; gap: 32px; }
  .qa { grid-template-columns: 1fr 1fr auto; }
  .qa #qa-title { grid-column: 1 / -1; }
  .task { grid-template-columns: 24px minmax(0, 1fr); }
  .task-m { grid-column: 2; gap: 10px; }
  .task-m .due { width: auto; text-align: left; order: -1; }
  .task-m .ft { width: auto; }
  .task-m .av { margin-left: auto; }
  .task-t small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .m-h h2 { font-size: 20px; }
  /* guest list as cards */
  .sd-bar { width: 100%; }
  .gl-t thead { display: none; }
  .gl-t, .gl-t tbody { display: block; }
  .gl-t .fam-r { display: block; }
  .gl-t .fam-r th { display: block; padding: 18px 0 6px; }
  .gl-t .fam-r th span { display: block; }
  .gl-t .g-r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .gl-t .g-r td { display: block; padding: 0; border: 0; background: none !important; }
  .gl-t .g-r td:nth-child(2) { justify-self: end; }
  .gl-t .g-r td:nth-child(3) { grid-column: 1; }
  .gl-t .g-arr, .gl-t .g-room, .gl-t .g-tbl { font-size: 12px; color: var(--ink-3); }
  .gl-t .g-arr small { display: inline; margin-left: 4px; }
  .gl-t .g-arr { grid-column: 1 / -1; }
  .gl-t .g-room::before { content: 'Room: '; }
  .gl-t .g-tbl { justify-self: end; }
  .gl-t .g-tbl::before { content: 'Table: '; }
  .pager b { display: none; }
  /* RSVP grid */
  .rg { --cols: minmax(0, 1fr) repeat(5, 42px); margin: 0 -8px; }
  .rg-name { padding: 6px 8px; }
  .rg-head { top: var(--top); }
  .rg-head > .rg-name { font-size: 11px; }
  .rg-fh { padding: 8px 2px 6px; }
  .rg-fh b, .rg-fh small { display: none; }
  .rg-fh .ab { display: block; font: 700 11px/14px var(--sans); }
  .rg-g { font-size: 13px; }
  .rg-name small { font-size: 11px; }
  .rg-tog b { font-size: 14px; }
  .rg-tog small { display: none; }
  .rg-fc button { padding: 0 4px; font-size: 11px; }
  .rg-fc button .ic { display: none; }
  .rg-c { padding: 3px 2px; }
  .rc { height: 34px; gap: 0; }
  .rc span { display: none; }
  .rg-foot { bottom: calc(64px + env(safe-area-inset-bottom)); }
  .rg-tot { padding: 8px 2px; }
  .rg-tot b { font-size: 18px; line-height: 22px; }
  .rg-tot small { display: none; }
  .rg-foot > .rg-name small { font-size: 11px; }
  .rg-leg { margin: 0; width: 100%; }
  /* stay */
  .facts-line { grid-template-columns: 1fr 1fr 1fr; }
  .facts-line p { padding: 10px 8px; font-size: 12px; line-height: 16px; }
  .facts-line p:first-child { padding-left: 0; }
  .facts-line b { display: block; font-size: 24px; line-height: 30px; }
  .facts-line small { display: none; }
  .stay-grid { grid-template-columns: 1fr; gap: 28px; }
  .arr { grid-template-columns: 58px minmax(0, 1fr) auto; }
  .ar-by { display: none; }
  .rooms { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* seating */
  .seat-layout { grid-template-columns: 1fr; gap: 20px; }
  .pool { position: static; max-height: none; }
  .floor { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0; background: none; border: 0; overflow: visible; }
  .stage, .dance { display: none; }
  .tbl-r { --r: 46px; position: relative; left: auto !important; top: auto !important; transform: none; width: auto; height: 168px; border-radius: var(--r2); border: 1px solid var(--line); background: var(--card); }
  .tbl-r.head { --r: 48px; grid-column: 1 / -1; }
  .tbl-c { width: 72px; height: 72px; }
  .tbl-r.head .tbl-c { width: 76px; height: 76px; }
  .tbl-f { top: auto; bottom: 8px; width: calc(100% - 16px); }
  .seats { position: absolute; left: 0; right: 0; top: -10px; bottom: 10px; }
  .seats i { width: 12px; height: 12px; margin: -6px 0 0 -6px; }
  /* budget */
  .ledger-head { grid-template-columns: 1fr 1fr; }
  .ledger-head > div { padding: 12px; }
  .ledger-head > div:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .ledger-head > div:nth-child(4) { border-top: 1px solid var(--line); }
  .ledger-head b { font-size: 24px; line-height: 30px; }
  .bud-grid { grid-template-columns: 1fr; gap: 24px; }
  .heads-t thead { display: none; }
  .heads-t, .heads-t tbody, .heads-t tfoot { display: block; }
  .heads-t tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .heads-t td, .heads-t th { display: block; padding: 0 !important; border: 0 !important; }
  .heads-t td:nth-child(2), .heads-t td:nth-child(3) { display: none; }
  .heads-t .hd-left { text-align: right; }
  .heads-t .hd-bar { grid-column: 1 / -1; width: auto; margin-top: 6px; }
  .heads-t td:nth-child(6) { grid-column: 1 / -1; }
  .heads-t tfoot { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 3; }
  .heads-t tfoot tr { background: var(--sheet); border-top: 2px solid var(--line-2); padding: 10px 0; }
  .heads-t tfoot th, .heads-t tfoot td { position: static; background: none; }
  .payers li { grid-template-columns: 1fr auto; }
  .payers .pb { grid-column: 1 / -1; order: 3; }
  /* vendors */
  .col-pick { display: block; width: 100%; }
  .col-pick .seg { display: flex; }
  .col-pick .seg button { flex: 1; justify-content: center; }
  .board { grid-template-columns: 1fr; }
  .board .col { display: none; }
  .board .col.cur { display: block; }
  .vcard { cursor: pointer; }
  /* run sheet */
  .day-tabs { margin: 0 -16px; padding: 0 8px; gap: 0; }
  .day-tabs button { flex: 1; padding: 8px 6px 7px; align-items: center; text-align: center; }
  .day-tabs button b { font-size: 13px; line-height: 18px; white-space: nowrap; }
  .day-tabs button span { font-size: 11px; line-height: 14px; }
  .rs-meta { flex-wrap: wrap; gap: 12px 20px; margin: 0 -16px 16px; border-radius: 0; border-left: 0; border-right: 0; padding: 12px 16px; }
  .rs-start { width: 100%; }
  .rs-meta .rs-status { flex-basis: 100%; }
  .rs-row { grid-template-columns: 28px 70px minmax(0, 1fr) 30px; grid-template-areas: 'g t w m' '. f d d'; gap: 4px 8px; padding: 10px 0; }
  .grip { grid-area: g; }
  .rs-t { grid-area: t; font-size: 14px; align-self: start; padding-top: 1px; }
  .rs-w { grid-area: w; }
  .rs-w small { white-space: normal; }
  .rs-f { grid-area: f; text-align: left; }
  .rs-d { grid-area: d; }
  .rs-more { grid-area: m; align-self: start; }
  .rs-f:empty { display: none; }
  /* notes, invite, settings */
  .notes-grid { grid-template-columns: 1fr; gap: 32px; }
  .decs .sec-h { flex-direction: column; align-items: flex-start; }
  .mnotes { padding: 16px; margin: 0 -4px; }
  .inv-layout { grid-template-columns: 1fr; gap: 24px; }
  .inv-stage { position: static; order: -1; padding: 24px 12px 18px; margin: 0 -16px; border-radius: 0; }
  .iv-card { width: min(320px, 100%); }
  .iv-names { font-size: 36px; line-height: 40px; }
  .ins { width: calc(50% - 6px); }
  .set-s { grid-template-columns: 1fr; gap: 12px; padding: 22px 0; }
  .set-row { flex-wrap: wrap; }
  .inline-f { grid-template-columns: 1fr; }
  .more-l a { height: 56px; }
  .contract { grid-template-columns: 22px 1fr; }
  .contract .btn { grid-column: 1 / -1; }
  .doc { padding: 22px 18px; }
  .doc-sign { grid-template-columns: 1fr; gap: 20px; }
  .doc-dl { grid-template-columns: 90px 1fr; }
  dl.facts { grid-template-columns: 96px 1fr; }
  .tbl th, .tbl td { padding: 8px 6px; }
  .empty { padding: 16px 0; }
}

/* ---------- motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media print {
  @page { margin: 14mm 12mm; }
  body { background: #fff; padding: 0; color: #2B1B20; }
  .top, .tabs, .bbar, #toasts, .skip, .cn { display: none !important; }
  .binder { display: block; padding: 0; }
  .sheet-wrap { border: 0; box-shadow: none; background: #fff; }
  .sheet { padding: 0; min-height: 0; }
  body.print-run .sheet > *:not(.print-doc), body.print-inv .sheet > *:not(.print-doc) { display: none !important; }
  body.print-run .print-doc:not(.inv-print), body.print-inv .inv-print { display: block !important; }
  body.print-run .inv-print { display: none !important; }
  body.print-run #layer, body.print-inv #layer { display: none !important; }
  .print-doc header { border-bottom: 1px solid #766166; padding-bottom: 10px; margin-bottom: 14px; }
  .print-doc header p { display: flex; gap: 8px; align-items: center; font-size: 11px; color: #766166; }
  .print-doc .knot { width: 18px; height: 18px; }
  .print-doc h2 { font: 500 22px/28px var(--serif); margin: 4px 0; }
  .print-doc table { width: 100%; border-collapse: collapse; font-size: 11px; }
  .print-doc th, .print-doc td { text-align: left; padding: 5px 6px; border-bottom: 1px solid #D5C4AC; vertical-align: top; }
  .inv-print { text-align: center; }
  .inv-print .iv-card { margin: 0 auto; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .inv-print .ins { -webkit-print-color-adjust: exact; print-color-adjust: exact; box-shadow: none; }
  body.print-contract #app { display: none !important; }
  body.print-contract .ov-bg, body.print-contract .ov-h, body.print-contract .ov-f { display: none !important; }
  body.print-contract .ov, body.print-contract .ov-p { position: static !important; transform: none !important; box-shadow: none !important; width: auto !important; max-height: none !important; border: 0 !important; opacity: 1 !important; overflow: visible !important; }
  body.print-contract .ov-b { overflow: visible; padding: 0; }
  body.print-contract .doc { border: 0; }
}
