:root {
  --bg: #FFF8F0;
  --surface: #ffffff;
  --surface-2: #F7EDE4;
  --ink: #1E1726;
  --muted: #574E61;
  --line: #EADFD5;
  --brand: #C8323B;        /* Punch Deep: buttons, links (5.3:1 with white) */
  --brand-mark: #E5484D;   /* Punch: logo and graphics only */
  --brand-2: #6E4CF5;      /* Grape */
  --sun: #FFC53D;          /* Sunshine: confetti, highlights */
  --brand-soft: #FFE7E3;
  --on-brand: #ffffff;
  --ok: #11694D;
  --ok-soft: #DDF5EA;
  --warn: #8A4B06;
  --warn-soft: #FFF1D1;
  --grape-soft: #EFEAFF;
  --grape-ink: #4B2FC4;
  --bad: #B42318;
  --shadow: 0 1px 2px rgb(60 30 20 / 5%), 0 10px 30px rgb(60 30 20 / 8%);
  --radius: 18px;
  --font: Figtree, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", var(--font);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17121C; --surface: #221B29; --surface-2: #2B2333; --ink: #F6F0F7; --muted: #B7ADC2; --line: #3A3143;
    --brand: #FF6B70; --brand-mark: #FF6B70; --brand-2: #9B82FF; --brand-soft: #3E2429; --on-brand: #1A0F12; --ok: #4AD19A; --ok-soft: #173327;
    --warn: #F5B454; --warn-soft: #3A2C14; --grape-soft: #2A2345; --grape-ink: #C2B3FF; --bad: #FF7B7B; --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 30px rgb(0 0 0 / 25%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17121C; --surface: #221B29; --surface-2: #2B2333; --ink: #F6F0F7; --muted: #B7ADC2; --line: #3A3143;
  --brand: #FF6B70; --brand-mark: #FF6B70; --brand-2: #9B82FF; --brand-soft: #3E2429; --on-brand: #1A0F12; --ok: #4AD19A; --ok-soft: #173327;
  --warn: #F5B454; --warn-soft: #3A2C14; --grape-soft: #2A2345; --grape-ink: #C2B3FF; --bad: #FF7B7B; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.9rem); font-weight: 800; letter-spacing: -0.025em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px; z-index: 99; }
.hidden { display: none !important; }

/* Header / footer */
.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.main-nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.main-nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; white-space: nowrap; font-size: .95rem; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--ink); background: var(--surface-2); }
@media (max-width: 720px) { .main-nav { margin-left: 0; width: 100%; padding-bottom: 8px; } }
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 24px 0 40px; color: var(--muted); font-size: .9rem; }
.footer-row p { margin: 4px 0; }

/* Buttons & form controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); padding: 10px 16px; min-height: 44px; border-radius: 12px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); box-shadow: 0 4px 14px rgb(200 50 59 / 22%); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.big { padding: 14px 24px; min-height: 56px; font-size: 1.1rem; border-radius: 14px; }
.btn.outline { border-color: var(--ink); }
.btn.small { padding: 5px 11px; min-height: 34px; font-size: .88rem; border-radius: 10px; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--bad); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 1px; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; width: 100%; min-width: 0; }
textarea { resize: vertical; min-height: 80px; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--brand); padding: 0; flex: none; }
label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 4px; }
.field { margin-bottom: 14px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 16px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .78rem; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.grape { background: var(--grape-soft); color: var(--grape-ink); }
.pill.brand { background: var(--brand-soft); color: #A1242D; }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--brand-soft); color: var(--bad); }

/* Landing */
.hero { padding: 56px 0 32px; }
.hero h1 span { color: var(--brand); }
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 12px; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .92rem; padding: 0; list-style: none; }
.trust li::before { content: "✓ "; color: var(--ok); font-weight: 800; }
.section { padding: 40px 0; }
.feature h3 { display: flex; gap: 8px; align-items: center; }
.quote { border-left: 4px solid var(--brand); padding: 6px 0 6px 16px; margin: 0 0 12px; color: var(--muted); font-style: italic; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.type-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; cursor: pointer; font: inherit; text-align: left; }
.type-card .emoji { font-size: 1.6rem; }
.type-card:hover, .type-card[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 8px 0 0; color: var(--muted); }
.mock { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); padding: 16px; font-size: .9rem; }
.mock .mrow { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.mock .mrow:last-child { border: 0; }
.mock .box { width: 16px; height: 16px; border: 2px solid var(--line); border-radius: 4px; flex: none; }
.mock .box.on { background: var(--brand); border-color: var(--brand); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* Tool pages */
.tool { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 24px; align-items: start; }
@media (max-width: 820px) { .tool { grid-template-columns: 1fr; } }
.results h3 { margin-top: 18px; }
.results table, .data { width: 100%; border-collapse: collapse; }
.results td, .results th { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.results td.qty { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.bigstat { font-family: var(--display); font-size: 2.2rem; font-weight: 800; line-height: 1.1; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.stat .label { color: var(--muted); font-size: .82rem; font-weight: 600; }
.stat .value { font-family: var(--display); font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.bar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.bar.ok > i { background: var(--ok); }
.cta-box { margin-top: 20px; background: var(--brand-soft); border-radius: var(--radius); padding: 16px 18px; }
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; }

/* Planner app */
.app-top { padding-top: 20px; padding-bottom: 8px; }
.party-head { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.party-head h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 0; }
.party-head .meta { color: var(--muted); }
.party-head .actions { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 16px 0 20px; scrollbar-width: thin; }
.tabs a { padding: 10px 12px; color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; font-size: .95rem; }
.tabs a[aria-current] { color: var(--ink); border-color: var(--brand); }
.tabs .count { font-size: .75rem; background: var(--surface-2); border-radius: 99px; padding: 1px 7px; margin-left: 4px; }
.list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.list-head, .li { display: grid; gap: 8px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.list-head { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; background: var(--surface-2); }
.li:last-child { border-bottom: 0; }
.li input:not([type="checkbox"]), .li select { border-color: transparent; background: transparent; padding: 6px 8px; }
.li input:not([type="checkbox"]):hover, .li select:hover { border-color: var(--line); }
.li input:not([type="checkbox"]):focus, .li select:focus { border-color: var(--brand); background: var(--surface); }
.li.done input[data-field="title"], .li.done input[data-field="item"] { text-decoration: line-through; color: var(--muted); }
.li .del { opacity: .45; }
.li:hover .del, .li:focus-within .del { opacity: 1; }
.group-title { margin: 22px 0 8px; font-size: 1rem; display: flex; gap: 8px; align-items: center; }
.quick-add { display: flex; gap: 8px; margin: 0 0 12px; }
.quick-add input { flex: 1; }
.g-tasks { grid-template-columns: 28px minmax(140px, 1fr) 150px 120px 34px; }
.g-guests { grid-template-columns: minmax(130px, 1.2fr) 60px 60px 110px minmax(110px, 1fr) 34px; }
.g-guests.gifts { grid-template-columns: minmax(130px, 1.2fr) 60px 60px 110px minmax(110px, 1fr) minmax(100px, 1fr) 90px 34px; }
.g-expenses { grid-template-columns: minmax(110px, 1fr) minmax(110px, 1fr) 100px 100px 120px 34px; }
.g-shopping { grid-template-columns: 28px minmax(140px, 1fr) 90px minmax(100px, .8fr) 34px; }
.g-menu { grid-template-columns: 120px minmax(140px, 1fr) minmax(110px, .8fr) minmax(100px, 1fr) 150px 34px; }
.g-schedule { grid-template-columns: 120px minmax(160px, 1fr) minmax(100px, .6fr) 34px; }
.g-schedule.multi { grid-template-columns: 150px 120px minmax(160px, 1fr) minmax(100px, .6fr) 34px; }
.g-ideas { grid-template-columns: minmax(160px, 1fr) minmax(140px, 1fr) 34px; }
@media (max-width: 760px) {
  .list-head { display: none; }
  .li { display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 10px; }
  .li > * { flex: 1 1 40%; }
  .li { position: relative; padding-right: 44px; }
  .li > input[type="checkbox"], .li > .thanks { flex: 0 0 auto; }
  .li > .del { position: absolute; top: 8px; right: 6px; opacity: .7; }
  .li > .main-field { flex: 1 1 calc(100% - 90px); font-weight: 600; }
}
.overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.overview .card h3 { display: flex; justify-content: space-between; align-items: center; }
.mini-task { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.mini-task:last-child { border: 0; }
.mini-task .due { margin-left: auto; font-size: .8rem; }
.countdown { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; }
a.card { text-decoration: none; color: var(--ink); }
a.card:hover { border-color: var(--brand); }
a.card h3 { color: var(--brand); }
.party-list .card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.party-list .card:hover { border-color: var(--brand); }
.party-list .emoji { font-size: 2rem; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.banner { border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; background: var(--surface-2); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.who-check { border: 1.5px solid var(--brand); background: var(--brand-soft); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; }
.who-check p { margin: 0 0 10px; }
.who-check .row { display: flex; flex-wrap: wrap; gap: 8px; }
.banner.info { background: color-mix(in srgb, var(--brand-2) 14%, var(--surface)); }
.banner.warn { background: var(--warn-soft); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border-radius: 99px; padding: 4px 6px 4px 12px; font-weight: 600; font-size: .9rem; }
.chip button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 0 4px; }

/* Dialog + toast */
dialog { border: 1px solid var(--line); border-radius: 18px; padding: 0; background: var(--surface); color: var(--ink); width: min(560px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgb(0 0 0 / 25%); }
dialog::backdrop { background: rgb(20 10 20 / 45%); }
dialog .dlg { padding: 22px; }
dialog .dlg-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { font-size: .85rem; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 10px; font-weight: 600; z-index: 100; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.sync-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 6px; }
.sync-dot.off { background: var(--muted); }
.sync-dot.err { background: var(--bad); }

/* RSVP page */
.rsvp-card { max-width: 520px; margin: 40px auto; }
.guest-page main, .guest-page .wrap { padding-bottom: 64px; } /* room for the feedback button */
.seg { display: flex; gap: 8px; }
.seg label { flex: 1; margin: 0; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; text-align: center; padding: 10px 6px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 700; }
.seg input:checked + span { border-color: var(--brand); background: var(--brand-soft); }
.seg input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); }

/* Print */
.print-only { display: none; }
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .no-print, .site-header, .site-footer, .tabs, .actions, .quick-add, .del, .btn, .banner { display: none !important; }
  .print-only { display: block; }
  .card, .list { box-shadow: none; border-color: #bbb; }
  .print-section { break-inside: avoid-page; margin-bottom: 18pt; }
  .print-section table { width: 100%; border-collapse: collapse; }
  .print-section td, .print-section th { border-bottom: 1px solid #ccc; padding: 3pt 4pt; text-align: left; font-size: 10pt; }
  .print-section .box { display: inline-block; width: 10pt; height: 10pt; border: 1px solid #000; }
  a { color: #000; }
}

/* Admin dashboard */
:root { --chart: #7a5af8; --grid: #eee6df; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --chart: #8f73ff; --grid: #3a3143; } }
:root[data-theme="dark"] { --chart: #8f73ff; --grid: #3a3143; }
.dash { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.dash h3 { margin-bottom: 12px; }
.hbars { display: flex; flex-direction: column; gap: 8px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; gap: 10px; align-items: center; font-size: .88rem; }
.hbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { height: 12px; }
.hbar-track i { display: block; height: 12px; background: var(--chart); border-radius: 0 4px 4px 0; }
.hbar-value { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; white-space: nowrap; }
.colchart { position: relative; height: 180px; display: grid; grid-template-columns: 40px 1fr; gap: 4px; }
.colchart-grid { display: flex; flex-direction: column; justify-content: space-between; font-size: .75rem; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.colchart-grid span { transform: translateY(-50%); }
.colchart-grid span:last-child { transform: none; }
.colchart-cols { display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--grid); background: linear-gradient(var(--grid), var(--grid)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--grid), var(--grid)) 0 50% / 100% 1px no-repeat; }
.col { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: default; outline-offset: 0; }
.col i { display: block; width: 100%; max-width: 24px; min-height: 0; background: var(--chart); border-radius: 4px 4px 0 0; }
.col:hover i, .col:focus i { filter: brightness(1.15); }
.chart-tip { position: absolute; z-index: 30; background: var(--ink); color: var(--bg); padding: 6px 10px; border-radius: 8px; font-size: .82rem; pointer-events: none; box-shadow: var(--shadow); }

/* Coordination: decisions, votes, team, activity */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.linkish { border: 0; background: none; color: var(--brand); text-decoration: underline; text-underline-offset: 2px; font: inherit; padding: 0; cursor: pointer; }
.plain { list-style: none; padding: 0; margin: 8px 0 0; }
.plain li { padding: 3px 0; }
.decisions { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 420px) { .decisions { grid-template-columns: 1fr; } }
.decision-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.decision-head h3 { margin: 0; flex: 1; }
.decision.is-locked { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.options { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.option { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.option.leader { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); background: color-mix(in srgb, var(--ok-soft) 45%, var(--surface)); }
.is-locked .option { border-color: transparent; background: var(--ok-soft); }
.option-main { flex: 1 1 180px; min-width: 0; }
.option-title { overflow-wrap: anywhere; }
.option-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.voters { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 6px; align-items: center; }
.voter { font-size: .78rem; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.voter.v-yes { background: var(--ok-soft); color: var(--ok); }
.voter.v-maybe { background: var(--warn-soft); color: var(--warn); }
.vote-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.vote { border: 0; background: var(--surface); color: var(--muted); font: inherit; font-weight: 800; width: 36px; height: 32px; cursor: pointer; }
.vote + .vote { border-left: 1px solid var(--line); }
.vote:hover { background: var(--surface-2); }
.vote.v-yes[aria-pressed="true"] { background: var(--ok); color: #fff; }
.vote.v-maybe[aria-pressed="true"] { background: var(--warn); color: #fff; }
.vote.v-no[aria-pressed="true"] { background: var(--muted); color: var(--surface); }
.option-form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.option-form input { flex: 1 1 120px; padding: 7px 9px; font-size: .92rem; }
.option-form input[type="date"], .option-form input[type="time"] { flex: 0 1 150px; }
.option-form input[name="cost"] { flex: 0 1 90px; }
.ask-guests { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; font-size: .9rem; margin-top: 12px; }
.status-list li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.status-list li:last-child { border: 0; }
.status-label { font-weight: 600; }
.activity li { font-size: .92rem; border-bottom: 1px dashed var(--line); padding: 6px 0; }
.activity li:last-child { border: 0; }
.person h3 { font-size: 1.1rem; }
.who-list { display: flex; flex-wrap: wrap; gap: 8px; }
.poll-opt { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; margin: 0 0 12px; }
.poll-opt legend { padding: 0 4px; }
.seg span b { font-size: 1.2rem; font-weight: 400; line-height: 1; }

/* Account */
.account:empty { display: none; }
.account-btn { gap: 8px; }
.avatar { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: .85rem; }
.google-btn { gap: 8px; white-space: nowrap; }
.signin-card { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
@media (max-width: 720px) { .account { position: absolute; right: 16px; top: 10px; } .header-row { position: relative; } .account-name { display: none; } }

/* ---- Landing page (2026 redesign) ---- */
.i { flex: none; }
.hero2 { padding: 64px 0 48px; overflow: hidden; }
.hero2-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero2-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero2 h1 { margin: 0; line-height: .98; }
.hero2 h1 .accent, .accent { color: var(--brand); }
.hero2 .lede { font-size: 1.28rem; line-height: 1.5; color: var(--muted); max-width: 560px; margin: 0; }
.hero2 .hero-cta { margin: 4px 0 0; }
.trust { display: flex; gap: 8px 22px; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust li::before { content: none; }
.shot { position: relative; min-height: 500px; }
.shot .confetti { position: absolute; display: block; border-radius: 50%; }
.shot .c1 { left: 20px; top: 0; width: 18px; height: 18px; background: var(--sun); }
.shot .c2 { right: 10px; top: 46px; width: 12px; height: 28px; border-radius: 4px; background: var(--brand-2); transform: rotate(28deg); }
.shot .c3 { left: 0; bottom: 70px; width: 14px; height: 14px; background: var(--brand-mark); }
.shot-card { position: relative; margin: 34px 70px 0 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 2px 4px rgb(60 30 20 / 5%), 0 24px 60px rgb(60 30 20 / 14%); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.shot-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--display); font-size: 1.45rem; }
.faces { display: flex; }
.faces b { width: 30px; height: 30px; border-radius: 50%; color: #fff; display: grid; place-items: center; font: 800 .8rem var(--font); border: 2px solid var(--surface); margin-left: -8px; }
.shot-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line); }
.shot-row > strong, .shot-line > strong { flex-grow: 1; }
.shot-row.done { background: color-mix(in srgb, var(--ok-soft) 55%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 25%, var(--line)); }
.shot-row:has(.shot-line) { flex-direction: column; align-items: stretch; gap: 8px; }
.shot-line { display: flex; align-items: center; gap: 12px; }
.shot-sub { display: flex; justify-content: space-between; gap: 8px; padding-left: 34px; font-size: .95rem; flex-wrap: wrap; }
.shot-task { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.shot-task > :nth-child(2) { flex-grow: 1; }
.shot-task s { color: var(--muted); }
.tick { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--line); box-sizing: border-box; display: grid; place-items: center; }
.tick.on { background: var(--brand); border-color: var(--brand); }
.shot-rsvp { position: absolute; right: 0; bottom: 0; width: 250px; background: #1E1726; color: #FFF8F0; border-radius: 20px; padding: 20px; box-shadow: 0 20px 50px rgb(30 23 38 / 30%); display: flex; flex-direction: column; gap: 10px; }
.shot-kicker { font-size: .78rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #C9BFD3; }
.shot-big { color: #C9BFD3; }
.shot-big b { font: 800 2.8rem/1 var(--display); color: #FFF8F0; margin-right: 6px; }
.shot-bar { height: 8px; border-radius: 99px; background: #3A3143; display: flex; gap: 2px; overflow: hidden; }
.shot-bar i { background: #4AD19A; } .shot-bar i.maybe { background: var(--sun); }
.shot-small { font-size: .88rem; color: #C9BFD3; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 32px 36px; border-radius: 28px; }
.step { display: flex; gap: 16px; }
.step h3 { font-family: var(--display); font-weight: 800; font-size: 1.3rem; margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); }
.step-n { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font: 800 1.3rem var(--display); }
.n1 { background: var(--brand-soft); color: var(--brand); } .n2 { background: var(--warn-soft); color: var(--warn); } .n3 { background: var(--grape-soft); color: var(--grape-ink); }
.together { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.together-art { width: 100%; height: auto; border-radius: 28px; background: var(--surface); }
.together .lede { color: var(--muted); font-size: 1.1rem; }
.plain-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.plain-list li { padding-left: 18px; border-left: 3px solid var(--sun); color: var(--muted); }
.plain-list strong { color: var(--ink); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.features .feature { display: flex; flex-direction: column; gap: 8px; box-shadow: none; }
.features .feature h3 { margin: 4px 0 0; font-family: var(--font); font-weight: 800; font-size: 1.12rem; }
.features .feature p { margin: 0; color: var(--muted); }
.feat-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.versus > div { border-radius: 26px; padding: 30px 32px; font-size: 1.12rem; }
.versus p { margin: 12px 0 0; }
.versus .kicker { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.versus-before { background: var(--surface-2); color: var(--muted); }
.versus-after { background: #1E1726; color: #FFF8F0; }
.versus-after .kicker { color: var(--sun); }
.tools-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tool-card h3 { color: var(--brand); font-family: var(--font); font-weight: 800; font-size: 1.1rem; margin: 0 0 6px; }
.tool-card p { margin: 0; color: var(--muted); }
.cta-band { background: var(--brand); color: #fff; border-radius: 32px; padding: 52px 56px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; color: #fff; }
.cta-band p { margin: 0; color: #FFFFFF; font-size: 1.15rem; }
.cta-btn { background: #FFF8F0; color: #1E1726; border-color: #FFF8F0; font-weight: 800; }
.logo img { width: 30px; height: 30px; }
.empty-art { width: 200px; height: auto; margin: 0 auto 14px; display: block; border-radius: 28px; }
.empty h2 { color: var(--ink); }
@media (max-width: 960px) {
  .hero2-grid, .together { grid-template-columns: 1fr; }
  .features, .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero2 { padding-top: 32px; }
  .hero2 .lede { font-size: 1.12rem; }
  .hero-cta .btn { width: 100%; }
  .shot { min-height: 0; }
  .shot-card { margin: 16px 0 0; }
  .shot-rsvp { position: relative; width: auto; margin: -16px 12px 0 40px; }
  .shot .c2 { display: none; }
  .features, .tools-grid, .versus { grid-template-columns: 1fr; }
  .steps { padding: 22px; }
  .cta-band { padding: 30px 24px; border-radius: 24px; }
  .cta-band .btn { width: 100%; }
}

/* Signed-in dashboard */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.dash-head h1 { margin: 0 0 4px; font-size: clamp(2rem, 5vw, 3rem); }
.dash-head p { margin: 0; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.dash-sub { font-size: 1.3rem; margin: 0 0 12px; }
.dash-needs h2 { font-size: 1.3rem; margin: 0 0 12px; }
.needs { display: flex; flex-direction: column; gap: 8px; }
.need { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.need:hover { border-color: var(--brand); }
.need-body { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; }
.need-body strong { overflow-wrap: anywhere; }
.need-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.need-overdue .need-icon { background: var(--brand-soft); color: var(--brand); }
.need-vote .need-icon { background: var(--grape-soft); color: var(--grape-ink); }
.need-soon .need-icon, .need-due .need-icon { background: var(--warn-soft); color: var(--warn); }
.need-rsvp .need-icon { background: var(--ok-soft); color: var(--ok); }
.caught-up { display: flex; align-items: center; gap: 16px; }
.caught-up img { border-radius: 20px; flex: none; }
.caught-up p { margin: 0; }
.party-cards { display: grid; gap: 12px; }
.party-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; }
.party-card:hover { border-color: var(--brand); }
.party-card .emoji { font-size: 1.6rem; }
.party-card-name { font-size: 1.12rem; }
.party-card-stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); margin-top: 4px; }
.party-card-stats b { color: var(--ink); }
.small-faces b { width: 26px; height: 26px; font-size: .72rem; }
.small-faces { margin-left: 8px; margin-top: 4px; }
.dash-start { margin-top: 36px; }
.dash-past { margin-top: 30px; }
.dash-past summary { cursor: pointer; margin-bottom: 12px; }
.dash-past .party-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 860px) { .dash-grid { grid-template-columns: 1fr; } }
.need .pill { white-space: nowrap; flex: none; }
.need-more .need-icon { background: var(--surface-2); }

/* Feedback */
.fb-fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 700 .92rem var(--font); box-shadow: var(--shadow); cursor: pointer; }
.fb-fab:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 640px) { .fb-fab { right: 12px; bottom: 12px; padding: 0 12px; } .fb-fab span { display: none; } .fb-fab { width: 46px; justify-content: center; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ask-card { margin-bottom: 16px; border-color: color-mix(in srgb, var(--brand-2) 35%, var(--line)); background: color-mix(in srgb, var(--grape-soft) 50%, var(--surface)); }
.ask-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ask-card label { font-weight: 500; font-size: .98rem; }
.ask-card textarea { min-height: 56px; margin-top: 6px; }
.fb-item { border-bottom: 1px solid var(--line); padding: 14px 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; }
.fb-item:last-child { border-bottom: 0; }
.fb-msg { white-space: pre-wrap; overflow-wrap: anywhere; }
.fb-meta { font-size: .85rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.fb-item.done .fb-msg { color: var(--muted); }
dialog h2 { font-size: 1.6rem; }
#app { min-height: 70vh; } /* reserve space so the footer doesn't jump when the app renders */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.brand { color: var(--brand); } }
.form-error { color: var(--bad); font-weight: 700; margin: 0 0 10px; }
.sheets-box { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: color-mix(in srgb, #0F9D58 6%, var(--surface)); }
.sheets-box h3 { display: flex; gap: 8px; align-items: center; margin: 0 0 6px; font-size: 1.05rem; }
.sheets-box .btn svg { flex: none; }

/* Ideas & themes, potluck */
.inspo { margin-bottom: 14px; }
.inspo summary { cursor: pointer; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 14px; }
.theme-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.theme-head { display: flex; flex-direction: column; gap: 2px; }
.theme-sec ul, .act-list { list-style: none; padding: 0; margin: 4px 0 0; }
.theme-sec li, .act-list li { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 3px 0; font-size: .92rem; border-bottom: 1px dashed var(--line); }
.theme-sec li:last-child, .act-list li:last-child { border: 0; }
.act-list { margin-top: 10px; }
.act-list li { padding: 6px 0; }
.claim { display: flex; gap: 6px; align-items: center; margin: 0; font-weight: 500; white-space: nowrap; }
.potluck-card { margin-bottom: 14px; background: color-mix(in srgb, var(--warn-soft) 45%, var(--surface)); }
.potluck-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.potluck-card select { max-width: 140px; }
.surprise-banner { background: var(--grape-soft); color: var(--grape-ink); border-radius: 12px; padding: 12px 14px; font-weight: 600; margin-bottom: 14px; }
.dish-list { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 6px; }
.dish-list label { display: flex; gap: 10px; align-items: center; font-weight: 500; margin: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }

.vendor-slot:empty { display: none; }
.vendors { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; }
.vendors summary { cursor: pointer; }
.vendors ul { list-style: none; padding: 0; margin: 6px 0; }
.vendors li { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.theme-sec li .btn, .act-list li .btn, .theme-sec li .pill, .act-list li .pill { flex: none; white-space: nowrap; }

/* Personal email invitations (Guests tab) */
.invite-card { margin-bottom: 16px; border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.invite-card h3 { margin-bottom: 4px; }
.invite-lede { margin: 0 0 14px; max-width: 70ch; }
.invite-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
.invite-step h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1rem; }
.step-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: .8rem; font-weight: 800; }
.invite-preview { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--bg); margin-bottom: 10px; }
.invite-subject { font-weight: 700; margin: 4px 0 8px; overflow-wrap: anywhere; }
.invite-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .92rem; line-height: 1.5; max-height: 320px; overflow-y: auto; }
.invite-body mark { background: var(--sun); color: #1E1726; border-radius: 4px; padding: 0 2px; }
.invite-list .invite-row { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(150px, 1.4fr) auto; grid-template-areas: "name email status" "actions actions actions"; gap: 6px 10px; align-items: center; padding: 10px 0; }
.invite-name { grid-area: name; font-weight: 600; overflow-wrap: anywhere; }
.invite-row input[type=email] { grid-area: email; min-width: 0; }
.invite-row input[aria-invalid="true"] { border-color: var(--bad); }
.invite-row .pill { grid-area: status; white-space: nowrap; }
.invite-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 6px; }
.muted-pill { background: var(--surface-2); color: var(--muted); }
.fill-chip { font: 600 .8rem ui-monospace, monospace; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 2px 8px; cursor: pointer; }
.fill-chip:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 860px) { .invite-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .invite-list .invite-row { grid-template-columns: 1fr auto; grid-template-areas: "name status" "email email" "actions actions"; } }

/* Replies that didn't make it into the guest list (lib/repair.js) */
.repair-card { margin-bottom: 16px; border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); background: color-mix(in srgb, var(--warn-soft) 55%, var(--surface)); }
.repair-card h3 { margin: 0 0 4px; }
.repair-list { margin: 8px 0 12px; padding-left: 20px; display: grid; gap: 4px; }
