/* Pebble — high-fidelity prototype. Tokens verbatim from design 3d (light only; dark cut). */
:root{
  color-scheme:light only; /* design 3d: light theme only — dark was cut */
  --canvas:#FAF5EA; --surface:#FFFFFF; --tint:#F3E7D3;
  --ink:#3A2418; --ink-mute:#8A6A52; --placeholder:#B9A488;
  --hairline:#E8DCC8; --divider:#F3EADA;
  --brand:#C05F3E; --brand-deep:#A94F31;   /* guest CTA, links */
  --app:#2E6B5B; --app-soft:#EAF2EE;       /* app accent */
  --gold:#E8C27A; --pink:#B0426A;          /* confetti only */
  --cta:#E17A50;                            /* apricot answer pill */
  --ok:#4C8C5C; --ok-tint:#E3EEDF; --ok-text:#3E6B48;
  --wait-tint:#F6E3D3; --wait-text:#A9612F;
  --danger:#A94438;                         /* Remove this plan · a setup row still needed */
  --wa:#25D366;                             /* WhatsApp chips only */
  --r-pill:999px; --r-card:26px; --r-input:16px;
  --font-display:"Fraunces",serif;
  --font-body:"Plus Jakarta Sans",system-ui,sans-serif;
  --shadow-card:0 10px 30px rgba(58,36,24,.07);
  --shadow-cta:0 8px 22px rgba(169,79,49,.25);
}

*{box-sizing:border-box;margin:0}
[hidden]{display:none !important}
/* touch-action kills the double-tap-to-zoom gesture on taps (2026-08-10 #7) —
   pinch zoom stays; the ≥16px input font below kills the focus auto-zoom */
html{-webkit-text-size-adjust:100%;touch-action:manipulation}
body{font-family:var(--font-body);background:var(--canvas);color:var(--ink);font-size:16px;line-height:1.5;min-height:100dvh}
.wrap{max-width:430px;margin:0 auto;padding:22px 18px 96px;min-height:100dvh}
.wrap.nonav{padding-bottom:34px}
.wrap.wide{max-width:640px}

h1{font-family:var(--font-display);font-weight:500;font-size:30px;line-height:1.15;color:var(--ink);text-wrap:balance}
h1 em{font-style:italic;font-weight:400;color:var(--brand)}
h2{font-family:var(--font-display);font-weight:600;font-size:17px;color:var(--ink)}
a{color:var(--brand)}a:hover{color:var(--brand-deep)}
.sub{font-size:12.5px;color:var(--ink-mute)}
.small{font-size:12px;color:var(--ink-mute)}
.tiny{font-size:11px;color:var(--placeholder)}
.eyebrow{font-size:10.5px;font-weight:800;letter-spacing:.24em;color:var(--brand);text-transform:uppercase}
.seclabel{font-size:12px;font-weight:800;letter-spacing:.14em;color:var(--ink-mute);text-transform:uppercase}
.grouplabel{font-size:10.5px;font-weight:800;letter-spacing:.16em;color:var(--placeholder);text-transform:uppercase}
.backlink{font-size:12.5px;font-weight:600;color:var(--app);text-decoration:none;display:inline-block}

.card{background:var(--surface);border:1px solid var(--hairline);border-radius:22px;padding:16px 18px;margin-top:14px}
.card.lift{box-shadow:var(--shadow-card)}
.card.big{border-radius:var(--r-card);padding:18px 20px}
.tintcard{background:var(--tint);border-radius:22px;padding:14px 18px;margin-top:14px}
.row{display:flex;align-items:center;gap:10px}
.row.between{justify-content:space-between}
.grow{flex:1;min-width:0}
.stack{display:flex;flex-direction:column;gap:10px}
.divider-row{border-top:1px solid var(--divider)}

/* Buttons & pills */
button{font:inherit;cursor:pointer;border:none;background:none;color:inherit;-webkit-tap-highlight-color:transparent}
.btn{display:flex;align-items:center;justify-content:center;gap:8px;border-radius:var(--r-pill);padding:14px 18px;font-size:15px;font-weight:700;text-decoration:none;text-align:center;min-height:44px;width:100%;cursor:pointer;border:none;font-family:var(--font-body)}
.btn.inline{display:inline-flex;width:auto}
.btn.cta{background:var(--brand);color:#fff;box-shadow:var(--shadow-cta)}
.btn.answer{background:var(--cta);color:#fff;box-shadow:0 8px 20px rgba(225,122,80,.3);font-size:16px;padding:15px}
.btn.app{background:var(--app);color:#fff}
.btn.app-soft{background:var(--app-soft);color:var(--app)}
.btn.outline{background:transparent;border:1.5px solid var(--app);color:var(--app)}
.btn.ghost{background:var(--surface);border:1.5px solid var(--hairline);color:var(--ink);font-weight:600}
.btn.quietbtn{background:var(--divider);color:var(--ink);font-weight:600}
.btn.muted2{background:var(--divider);color:var(--ink-mute);font-weight:600}
.btn.amber{background:var(--wait-text);color:#fff;box-shadow:0 8px 22px rgba(169,79,49,.25)}
.btn.danger{background:var(--danger);color:#fff}   /* the one irreversible action: Remove this plan */
.btn.sm{padding:8px 15px;font-size:12.5px;min-height:36px}
.btn:active{transform:translateY(1px)}
.btn[disabled],.btn.locked{opacity:.5;pointer-events:none}
.wadot{width:8px;height:8px;border-radius:50%;background:var(--wa);flex:none}
.btnstack{display:flex;flex-direction:column;align-items:center;line-height:1.15}
.btnsub{font-size:11.5px;font-weight:600;opacity:.85;letter-spacing:.01em}

.chip{display:inline-flex;align-items:center;gap:7px;border-radius:var(--r-pill);padding:8px 15px;font-size:12.5px;font-weight:600;border:1.5px solid var(--hairline);background:var(--surface);color:var(--ink-mute);cursor:pointer;text-decoration:none}
.chip.on{border-color:var(--app);background:var(--app-soft);color:var(--app);font-weight:700}
.chip.filled{border-color:var(--app);background:var(--app);color:#fff;font-weight:700}
.chip.hold{border-color:#E0B37E;background:var(--wait-tint);color:var(--wait-text);font-weight:700}
.chip.tiny-chip{padding:6px 13px;font-size:12px}

.pill{display:inline-flex;align-items:center;gap:5px;border-radius:var(--r-pill);padding:5px 12px;font-size:11.5px;font-weight:700;white-space:nowrap}
.pill.ok{background:var(--ok-tint);color:var(--ok-text)}
.pill.appt{background:var(--app-soft);color:var(--app)}
.pill.wait{background:var(--wait-tint);color:var(--wait-text)}
.pill.quiet{background:var(--divider);color:var(--ink-mute)}
.pill.badge{background:var(--wait-tint);color:var(--wait-text);font-size:10.5px;font-weight:800;letter-spacing:.03em;padding:4px 11px}
.langtag{border:1px solid var(--hairline);border-radius:6px;padding:2px 7px;font-size:10.5px;font-weight:800;color:var(--ink-mute)}
/* Invitee chip — who the card is addressed to, named above the title (screen + paper) */
.invitee{display:inline-flex;align-items:center;gap:8px;margin-top:9px;padding:7px 17px;border-radius:var(--r-pill);
  background:var(--surface);border:1.5px solid var(--gold);box-shadow:0 2px 6px rgba(58,36,24,.05);
  font-family:var(--font-display);font-weight:600;font-size:16px;line-height:1.25;color:var(--ink);text-wrap:balance}
.invitee .env{font-family:var(--font-body);font-size:12.5px;color:var(--ink-mute);flex:none}
.invitee.sm{margin-top:8px;padding:5px 13px;gap:6px;font-size:13px}
.invitee.sm .env{font-size:11px}
/* editor-only slot look: dashed, quiet — no real guest is addressed yet */
.invitee.ghost{border-style:dashed;border-color:var(--hairline);box-shadow:none;
  font-family:var(--font-body);font-weight:600;font-size:12px;color:var(--placeholder)}

/* Inputs — 16px minimum: anything smaller makes iOS Safari/Chrome zoom the
   whole page in when the field gets focus, and it stays zoomed (2026-08-10 #7) */
input[type=text],input[type=tel],input[type=date],input[type=time],input[type=number],textarea,select{
  width:100%;font:inherit;color:var(--ink);background:var(--surface);
  border:1.5px solid var(--hairline);border-radius:var(--r-pill);padding:11px 16px;font-size:16px}
textarea{border-radius:var(--r-input);min-height:72px;resize:vertical}
input::placeholder,textarea::placeholder{color:var(--placeholder)}
/* Empty date/time hint — iOS shows nothing inside a valueless date/time input,
   so .dtempty (toggled in layout.js) paints the data-ph text instead.
   Absolute overlay + opacity (not display:none) keeps the pill one line tall. */
input[type=date],input[type=time]{-webkit-appearance:none;appearance:none;position:relative}
input[type=date]::-webkit-date-and-time-value,input[type=time]::-webkit-date-and-time-value{text-align:left}
input.dtempty::-webkit-datetime-edit{opacity:0}
input.dtempty::before{content:attr(data-ph);color:var(--placeholder);position:absolute;left:16px;top:50%;transform:translateY(-50%);white-space:nowrap;pointer-events:none}
/* Compact chip-sized dropdowns (question settings, 2026-08-17 #15/#20):
   the page never zooms (viewport maximum-scale=1), so 13px is safe here. */
select.qsel{width:auto;max-width:100%;padding:6px 30px 6px 12px;font-size:13px;font-weight:600;color:var(--ink);
  -webkit-appearance:none;appearance:none;background:var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237A6350' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center;
  text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
/* a locked setting on a built-in question (2026-08-19-3 #3.5/#3.6): the same
   pill as the dropdowns, no chevron, muted — it explains itself on tap */
span.qsel.qfixed{display:inline-flex;align-items:center;padding:6px 12px;font-size:13px;font-weight:600;color:var(--ink-mute);background:var(--surface);border:1.5px solid var(--hairline);border-radius:var(--r-pill);cursor:default;white-space:nowrap}
input:focus,textarea:focus,select:focus{outline:none;border-color:var(--app)}
input:focus-visible,textarea:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid rgba(46,107,91,.35);outline-offset:1px}
.ulined{border:none;border-bottom:1.5px solid var(--hairline);border-radius:0;padding:6px 0 8px;font-size:16px;font-weight:700;background:transparent}
.ulined:focus{border-bottom-color:var(--app)}
label.f{display:block;margin-top:14px}
label.f>span{display:block;font-size:11.5px;color:var(--ink-mute);margin-bottom:5px}

/* Place auto-suggest (Where? field) */
.suggwrap{position:relative}
.suggbox{position:absolute;left:0;right:0;top:calc(100% + 6px);background:var(--surface);border:1px solid var(--hairline);border-radius:18px;box-shadow:var(--shadow-card);z-index:30;max-height:280px;overflow-y:auto}
.sugg{display:flex;gap:10px;align-items:center;width:100%;padding:11px 16px;text-align:left;font:inherit;cursor:pointer;border-top:1px solid var(--divider);background:none;border-left:none;border-right:none;border-bottom:none}
.sugg:first-child{border-top:none}
.sugg:hover,.sugg:focus-visible{background:var(--app-soft)}
.sugg b{font-size:13px}

/* Dashed add-row */
.addrow{display:flex;align-items:center;gap:10px;border:1.5px dashed var(--hairline);border-radius:var(--r-pill);padding:11px 16px;margin-top:12px;cursor:pointer;background:none;width:100%;text-align:left;font:inherit}
.addrow.gold{border-color:var(--gold)}
.addrow .plus{flex:none;width:22px;height:22px;border-radius:50%;background:var(--tint);color:var(--ink-mute);font-size:13px;display:flex;align-items:center;justify-content:center;line-height:1}
.addrow .lbl{font-size:13px;color:var(--ink-mute)}
.addrow .lbl b{color:var(--app);font-weight:700}

/* Springboard / list rows */
.springrow{display:flex;align-items:center;gap:12px;padding:14px 0;border-top:1px solid var(--divider);text-decoration:none;color:inherit;width:100%;text-align:left;font:inherit;cursor:pointer}
.springrow:first-child{border-top:none}
.springrow .ico{flex:none;width:34px;height:34px;border-radius:50%;background:var(--tint);display:flex;align-items:center;justify-content:center;font-size:15px}
.springrow .t{font-size:14.5px;font-weight:700;color:var(--ink)}
.springrow .d{font-size:11.5px;color:var(--ink-mute)}
.springrow .chev{flex:none;color:var(--placeholder);font-size:16px;font-weight:600}
/* Pre-send setup card (org.js editorView): ✓ done · red ring = still needed
   · "·" optional (James 2026-08-19 #8a — the grey ○ was too quiet) */
.setuprow .sic{flex:none;width:20px;text-align:center;font-weight:800;color:var(--placeholder)}
.setuprow .grow{font-size:12.5px;font-weight:600}
.setuprow .sopt{font-weight:500;color:var(--placeholder)}
.setuprow.sdone .sic{color:var(--ok-text)}
.setuprow.sdone .grow{color:var(--placeholder)}
.setuprow.sneed .sic::before{content:'';display:inline-block;width:12px;height:12px;border:2.5px solid var(--danger);border-radius:50%;vertical-align:-2px;box-sizing:border-box}
.setuprow.sneed .grow{color:var(--danger)}
.springrow .done{flex:none;width:22px;height:22px;border-radius:50%;background:var(--ok);color:#fff;font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center}

/* Progress bar */
.prog{display:flex;align-items:center;gap:10px;margin-top:12px}
.prog .bar{flex:1;height:8px;border-radius:999px;background:var(--divider);overflow:hidden}
.prog .bar i{display:block;height:100%;border-radius:999px;background:var(--app);transition:width .4s ease}
.prog .n{font-size:12px;font-weight:700;color:var(--app);white-space:nowrap}

/* Stat tiles */
.stats{display:flex;gap:8px;margin-top:16px}
.stat{flex:1;background:var(--surface);border:1px solid var(--hairline);border-radius:18px;padding:12px 6px;text-align:center;text-decoration:none;cursor:pointer}
.stat b{display:block;font-family:var(--font-display);font-weight:600;font-size:26px;line-height:1.1;font-variant-numeric:tabular-nums}
.stat span{font-size:10px;font-weight:800;letter-spacing:.12em;color:var(--ink-mute)}
.stat.s-in b{color:var(--ok-text)}
.stat.s-maybe b{color:var(--wait-text)}
.stat.s-quiet b{color:var(--ink-mute)}
.stat.s-cant b{color:var(--placeholder)}
/* 4c — the QUIET tile pulses gently once when the deadline is <7 days away */
.stat.pulse{animation:quietpulse 1.2s ease-in-out 1 .6s}
@keyframes quietpulse{50%{transform:scale(1.05);box-shadow:0 0 0 5px rgba(169,97,47,.14)}}
/* a guest just added from the send queue lands highlighted on their new row */
.qrow.newfam{animation:quietpulse 1.2s ease-in-out 1 .4s}

/* Amber strip */
.amber{display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--wait-tint);border-radius:var(--r-pill);padding:10px 18px;margin-top:12px;font-size:12.5px;font-weight:700;color:var(--wait-text);text-decoration:none}
.amberbox{background:var(--wait-tint);border-radius:14px;padding:11px 14px;margin-top:12px;font-size:12px;color:var(--wait-text);line-height:1.5}
.okbox{background:var(--ok-tint);border-radius:16px;padding:13px 16px;margin-top:14px;text-align:center;font-size:13px;font-weight:700;color:var(--ok-text)}
.infobox{background:var(--app-soft);border-radius:16px;padding:12px 16px;margin-top:12px;font-size:12px;color:var(--app);line-height:1.6}
.notebox{background:var(--divider);border-radius:14px;padding:10px 14px;margin-top:12px;font-size:11.5px;color:var(--ink-mute);line-height:1.5}
/* Owner-only strip on guest ?preview=1 — dashed = organizer chrome, not guest UI */
.prevbar{display:flex;align-items:center;gap:10px;background:var(--surface);border:1.5px dashed var(--placeholder);border-radius:999px;padding:6px 6px 6px 15px;margin-bottom:14px;font-size:11.5px;color:var(--ink-mute)}
.prevbar .grow{min-width:0;line-height:1.35}
.prevbar b{color:var(--ink)}

/* Family rows */
.famrow{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-top:1px solid var(--divider)}
.famrow:first-of-type{border-top:none}
.famrow .nm{font-size:13.5px;font-weight:700;color:var(--ink)}
.famrow .meta{font-size:11.5px;color:var(--ink-mute);margin-top:1px}
.famrow .note{font-size:11.5px;font-style:italic;color:var(--ink-mute)}
.markbtn{padding:5px 11px;min-height:32px;font-size:12px}

/* Dashboard: section chips in a 3×2 grid (all visible, equal weight) + segmented data tabs */
.chipgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.chipgrid .chip{justify-content:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:9px 6px;font-size:12px;display:flex}
.seg{display:flex;background:var(--tint);border-radius:999px;padding:3px;gap:2px}
.seg a,.seg button{flex:1;text-align:center;padding:9px 6px;border-radius:999px;font-size:12px;font-weight:700;color:var(--ink-mute);text-decoration:none;white-space:nowrap;background:none;border:none;font-family:inherit;cursor:pointer}
.seg a.on,.seg button.on{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(58,36,24,.08)}
/* Compact segmented switch (2026-08-18-2 #5): the full-width pill with a
   near-white "on" state read as two buttons with no telling which was
   selected. Small, hugging its labels, and the pick is app-green. */
.seg.mini{display:inline-flex;width:auto;max-width:100%;padding:2.5px;gap:2px}
.seg.mini button{flex:0 0 auto;padding:6px 12px;font-size:11.5px}
.seg.mini button.on{background:var(--app);color:#fff;box-shadow:0 1px 3px rgba(46,107,91,.28)}

/* Send-queue slim (sent) row */
.sentrow{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--surface);border:1px solid var(--hairline);border-radius:18px;padding:13px 16px;margin-top:8px}
/* Send-queue full (unsent) card */
.sendcard{background:var(--surface);border:1px solid var(--hairline);border-radius:22px;padding:16px 18px;margin-top:10px;box-shadow:var(--shadow-card)}

/* ============ Guest ticket ============ */
.ticket{background:var(--surface);border:1px solid var(--hairline);border-radius:var(--r-card);overflow:hidden;box-shadow:var(--shadow-card)}
.ticket .hero{background:var(--tint);padding:22px 20px 0;position:relative;text-align:center}
.ticket .hero.tint-mint{background:#EAF2EE}.ticket .hero.tint-peach{background:#F6E3D3}.ticket .hero.tint-cream{background:#EFE9DB}
.confetti-a{position:absolute;top:12px;left:22px;width:10px;height:10px;border-radius:50%;background:var(--gold)}
.confetti-b{position:absolute;top:30px;right:30px;width:8px;height:8px;border-radius:50%;background:var(--brand)}
.confetti-c{position:absolute;top:10px;right:74px;width:14px;height:6px;border-radius:4px;background:var(--app);transform:rotate(-18deg)}
.confetti-d{position:absolute;bottom:36px;left:14px;width:14px;height:6px;border-radius:4px;background:var(--pink);transform:rotate(24deg)}
.arch{width:min(262px,72%);aspect-ratio:262/210;margin:8px auto 0;border-radius:999px 999px 20px 20px;overflow:hidden;background:linear-gradient(160deg,#EAD9BF,#E2CBAA);display:flex;align-items:center;justify-content:center;position:relative}
.arch img{width:100%;height:100%;object-fit:cover}
.arch .ph{font-size:11px;font-weight:700;color:#B49B77;text-align:center;padding:0 20px}
.perf{display:flex;align-items:center;gap:8px;padding:0 6px}
.perf .notch{width:14px;height:28px;background:var(--canvas);border:1px solid var(--hairline);flex:none}
.perf .notch.l{border-radius:0 999px 999px 0;margin-left:-7px;border-left:none}
.perf .notch.r{border-radius:999px 0 0 999px;margin-right:-7px;border-right:none}
.perf .dash{flex:1;border-top:2px dashed var(--hairline)}

/* Bottom sheet feel (rendered inline as a card) */
.sheet{background:var(--surface);border-radius:26px 26px 22px 22px;padding:20px;box-shadow:0 -10px 40px rgba(58,36,24,.14)}
.sheet .grab{width:36px;height:4px;border-radius:999px;background:var(--hairline);margin:0 auto 4px}
.stepnum{flex:none;width:24px;height:24px;border-radius:50%;background:var(--tint);color:var(--wait-text);font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center}

/* Toast */
.toast{position:fixed;left:50%;bottom:88px;transform:translateX(-50%);background:#3A2418;color:#fff;border-radius:14px;padding:12px 18px;font-size:13px;font-weight:600;box-shadow:0 10px 30px rgba(58,36,24,.35);z-index:90;display:flex;gap:12px;align-items:center;max-width:88vw}
.toast .act{color:var(--gold);font-weight:800;white-space:nowrap;cursor:pointer}

/* Tab bar */
nav.tabs{position:fixed;bottom:0;left:0;right:0;z-index:40;background:var(--surface);border-top:1px solid var(--hairline);display:flex;padding-bottom:env(safe-area-inset-bottom)}
nav.tabs a{flex:1;text-align:center;padding:10px 0 12px;text-decoration:none}
nav.tabs .ic{font-size:17px;color:var(--ink-mute);line-height:24px}
nav.tabs .lb{font-size:10.5px;font-weight:600;color:var(--ink-mute);margin-top:3px}
nav.tabs a.on .ic{width:34px;height:24px;margin:0 auto;border-radius:8px;background:var(--app-soft);color:var(--app);font-size:13px;line-height:24px}
nav.tabs a.on .lb{color:var(--app);font-weight:700}

/* ===== Plan chrome (nav 2a): pill header + fixed four-tab plan bar ===== */
/* The pill stays pinned while the page scrolls (James 2026-08-20 #4) — the
   title and the Preview/Back door never leave the screen. The ::before is a
   canvas backdrop so content slides under it, not through its rounded gaps. */
.planpill{display:flex;width:100%;align-items:center;gap:6px;padding:6px 8px 6px 12px;border-radius:var(--r-pill);background:var(--surface);border:1.5px solid var(--gold);box-shadow:0 2px 6px rgba(58,36,24,.05);font-family:var(--font-display);font-weight:600;font-size:14px;color:var(--ink);text-decoration:none;max-width:100%;position:sticky;top:8px;z-index:46}
.planpill::before{content:'';position:absolute;inset:-12px -10px -10px;background:linear-gradient(var(--canvas) 80%,transparent);z-index:-1}
.planpill em{font-style:italic;font-weight:400;color:var(--brand)}
.planpill .tk{font-family:var(--font-body);font-size:12.5px;color:var(--ink-mute);flex:none}
.planpill .ttl{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* the pill's right-hand tag names the door: "See the invitation ›" (app
   green, body font) — on the preview itself it is a quiet "what guests see" */
/* tag tightened 2026-08-17 (#7 "Preview the invitation ›" is ~24px longer than the old tag): smaller paddings keep ~150px for the title at 375px */
.planpill .pv{flex:none;font-family:var(--font-body);font-size:11px;font-weight:700;color:var(--app);white-space:nowrap;background:var(--app-soft);border-radius:999px;padding:4px 8px}
.planpill:active .pv{background:var(--app);color:#fff}
/* Second-level bar: fixed above the app tab bar; the four tabs never rename,
   appear or disappear — sending only changes the badge numbers. */
.planbar{position:fixed;bottom:calc(64px + env(safe-area-inset-bottom));left:0;right:0;z-index:40;display:flex;align-items:center;gap:2px;background:var(--tint);border-top:1px solid var(--hairline);padding:5px 6px}
.planbar a{flex:1 1 auto;min-width:0;display:flex;align-items:center;justify-content:center;gap:4px;padding:9px 4px;border-radius:var(--r-pill);font-size:11px;font-weight:700;white-space:nowrap;color:var(--ink-mute);text-decoration:none}
.planbar a .ico{font-size:12px}
.planbar a.on{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(58,36,24,.08)}
.wrap.planpad{padding-bottom:176px} /* clears both bars AND the floating Pebble AI pill (bottom 130 + 42) when a strip is the last block */
body.hasplanbar .toast{bottom:136px}
body.hasplanbar:has(.fabrow:not([hidden])) .toast{bottom:196px} /* clear the editor's Save/Next fab (hidden post-send, 2026-08-19-3 #5) */
/* Edit section nav: 4 tight jump chips, sticky over the flattened form.
   The wrapper paints canvas behind the pill so content scrolls under it. */
.seg.editcats{margin-top:0}
.seg.editcats a{font-size:10.5px;padding:9px 2px}
.secnavwrap{position:sticky;top:48px;z-index:45;margin:12px -6px 0;padding:8px 6px 10px;background:linear-gradient(var(--canvas) 82%,transparent)} /* under the pinned pill (2026-08-20 #4) */
.esec{scroll-margin-top:106px}
/* Arriving on a section from a pencil or a strip tile (fresh #anchor
   navigation): its title glows tint for a beat, so the eye lands where the
   link promised — the smooth scroll alone leaves parents guessing. */
.esec.landed>h1{border-radius:14px;animation:landed 1.8s ease-out 1}
@keyframes landed{0%,25%{background:var(--tint);box-shadow:0 0 0 10px var(--tint)}100%{background:transparent;box-shadow:0 0 0 10px transparent}}
/* Invitation preview: what a family sees, and every part of it is a door.
   Facts are whole-row taps with a quiet pencil; the picture carries a small
   "change" pill at its bottom edge (inside every card shape, round included). */
.factrow,.factrow:hover{display:inline-block;color:inherit;text-decoration:none;padding:8px 10px;margin:-2px -10px;border-radius:14px;transition:background .12s ease}
.factrow:active{background:var(--tint)}
.factrow .pen{font-size:11px;font-weight:700;color:var(--placeholder);margin-left:6px;white-space:nowrap}
.factrow.gap{color:var(--placeholder);font-weight:600}
.factrow.gap b{color:var(--app);font-weight:700}
.arch.archlink{cursor:pointer;text-decoration:none}
.arch .pen-pill{position:absolute;left:50%;bottom:9px;transform:translateX(-50%);display:inline-flex;align-items:center;gap:5px;padding:5px 12px;border-radius:999px;background:rgba(255,255,255,.9);color:var(--ink);font-size:11.5px;font-weight:700;white-space:nowrap;box-shadow:0 2px 8px rgba(58,36,24,.16);backdrop-filter:blur(2px)}
.arch.archlink:active .pen-pill{background:var(--app-soft);color:var(--app)}
.ticket.shape-round .arch .pen-pill{bottom:24px} /* a circle clips a pill hugging its bottom edge */
/* Preview journey: step labels with a ✎ door, and the guest's own pieces
   rendered INERT (a tap explains instead of acting) */
.gstep{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:18px}
.gstep .gedit{flex:none;font-size:12px;font-weight:700;color:var(--app);text-decoration:none;background:var(--app-soft);border-radius:999px;padding:5px 11px}
.gstep .gedit:active{background:var(--app);color:#fff}
.gstep+.ticket.bigticket{margin-top:8px}
.ghostzone{cursor:default}
.ghostzone .inert{pointer-events:none}
.ghostzone .inert .card{margin-top:0}
/* the quiet autosave receipt, top right, fades in and out */
.savedflash{position:fixed;top:14px;right:14px;z-index:70;background:var(--ink);color:#fff;border-radius:999px;padding:7px 14px;font-size:12px;font-weight:700;opacity:0;pointer-events:none;transition:opacity .25s}
.savedflash.on{opacity:.92}
/* Floating pill above both bars — since the flattened Edit page it is pure
   navigation (invite pre-send, RSVPs after); every field saves itself. */
.fabrow{position:fixed;right:max(16px,calc(50vw - 199px));bottom:calc(132px + env(safe-area-inset-bottom));z-index:60;display:flex;gap:8px}
.donefab{display:inline-flex;align-items:center;gap:6px;border-radius:var(--r-pill);padding:13px 22px;font-size:13.5px;font-weight:800;border:none;background:var(--app);color:#fff;cursor:pointer;box-shadow:0 10px 26px rgba(46,107,91,.38)}
.donefab.save{background:var(--surface);color:var(--app);border:1.5px solid var(--app);box-shadow:0 10px 26px rgba(58,36,24,.14)}
.donefab.vote{background:var(--brand);box-shadow:0 10px 26px rgba(192,95,62,.4)}
.donefab:active{transform:translateY(1px)}
/* Invitation view (plan home): the card fills most of the screen. The upper
   bound is what the tallest phone gives (≈970dvh - 330) — so phones are
   unchanged, and a tall desktop window stops stretching the hero into a sea
   of empty tint around the picture. */
.ticket.bigticket{margin-top:12px;min-height:clamp(480px,calc(100dvh - 330px),640px);display:flex;flex-direction:column}
.ticket.bigticket .hero{flex:1;display:flex;flex-direction:column;justify-content:center;padding-bottom:6px}
.ticket.bigticket .arch{width:min(330px,86%)}
/* Pictures editor: the photo area is the point — much larger than the guest hero */
.ticket.picbig .arch{width:min(330px,88%)}
.ticket.bigticket.shape-round .arch,.ticket.picbig.shape-round .arch{width:min(250px,66%)}
/* Reading the child's page: the snap takes a beat, so it says so */
.spin{width:30px;height:30px;margin:0 auto;border-radius:50%;border:3px solid var(--hairline);border-top-color:var(--app);animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
/* Pictures editor: tap-the-photo chooser menu */
.photomenu{background:var(--surface);border:1px solid var(--hairline);border-radius:20px;box-shadow:0 14px 34px rgba(58,36,24,.2);margin:10px 4px 0;padding:4px 14px;text-align:left;position:relative;z-index:5}
.photomenu button{display:flex;align-items:center;gap:11px;width:100%;text-align:left;background:none;border:none;padding:12px 0;cursor:pointer;font:inherit}
.photomenu button+button{border-top:1px solid var(--divider)}
.photomenu .mico{flex:none;width:32px;height:32px;border-radius:50%;background:var(--tint);display:flex;align-items:center;justify-content:center;font-size:15px}
/* Pebble's collection: artwork grid */
.artgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}
.artgrid button{border:2px solid var(--hairline);border-radius:14px;overflow:hidden;padding:0;cursor:pointer;background:var(--tint);aspect-ratio:1/1}
.artgrid button.on{border-color:var(--app)}
.artgrid img{width:100%;height:100%;object-fit:cover;display:block}
/* Frame-shape chips carry a mini swatch of the shape */
.shapesw{width:13px;height:13px;background:#C9B99A;flex:none}

/* Code boxes (registration) */
.codes{display:flex;gap:8px;justify-content:center}
.codes input{width:48px;height:56px;border-radius:12px;border:1.5px solid var(--hairline);text-align:center;font-size:20px;font-weight:800;color:var(--ink);padding:0}
.codes input:focus{border-color:var(--app);background:var(--app-soft)}

/* Toggle */
/* the editor's peek at a guest counter (Who's coming rows, 2026-08-19-2 #2.3): inert, muted */
.hdpeek{display:inline-flex;align-items:center;gap:7px;flex:none;border:1.5px solid var(--hairline);border-radius:999px;padding:4px 9px;font-size:12px;color:var(--placeholder);cursor:default;user-select:none;white-space:nowrap}
.hdpeek b{color:var(--ink-mute);font-weight:800;min-width:10px;text-align:center;font-variant-numeric:tabular-nums}
.tgl{flex:none;width:44px;height:26px;border-radius:999px;background:var(--hairline);position:relative;cursor:pointer;border:none;transition:background .15s}
.tgl.on{background:var(--app)}
.tgl i{position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:left .15s}
.tgl.on i{left:21px}

/* Tap-cycle select circles (guest list) */
.selcircle{flex:none;width:18px;height:18px;border-radius:50%;border:2px solid var(--hairline);display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:800;color:#fff}
.selcircle.inv{background:var(--app);border-color:var(--app)}
.selcircle.hold{background:var(--wait-tint);border:1.5px solid #E0B37E;color:var(--wait-text);font-size:9px}
.gl-grid{display:grid;grid-template-columns:1fr 1fr;gap:2px 14px}
.gl-item{display:flex;align-items:center;gap:8px;padding:7px 0;background:none;border:none;font:inherit;text-align:left;cursor:pointer}
.gl-item .n{font-size:12.5px;font-weight:600;color:var(--ink)}
.gl-item.held .n,.gl-item.off .n{color:var(--ink-mute)}
.gl-item.off .n{color:var(--placeholder)}

/* Print */
@media print{
  body{background:#fff}
  .noprint,nav.tabs{display:none !important}
  .printcard{page-break-inside:avoid}
}
@media (prefers-reduced-motion:no-preference){
  .card,.ticket,.sendcard{animation:rise .22s ease-out}
  @keyframes rise{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
}

/* ---------- Pebble assistant (chat surface, 2026-08-06) ---------- */
.aifab{position:fixed;left:max(14px,calc(50vw - 201px));bottom:calc(130px + env(safe-area-inset-bottom));z-index:60;display:inline-flex;align-items:center;gap:0;border-radius:var(--r-pill);padding:11px 17px;font-size:13px;font-weight:800;background:var(--brand);color:#fff;text-decoration:none;box-shadow:0 10px 26px rgba(192,95,62,.4)}
.aifab:hover{color:#fff;background:var(--brand-deep)}
.aifab:active{transform:translateY(1px)}
/* Sharing the bottom edge with a Save/Done fabrow, the pill keeps its name
   and lifts one row above it — the label must stay readable on Edit pages
   (2026-08-10 Chang #10, reversing the earlier icon-fold) */
body:has(.fabrow:not([hidden])) .aifab{bottom:calc(190px + env(safe-area-inset-bottom))}
.snaprow{display:flex;gap:7px;overflow-x:auto;margin:12px -18px 0;padding:2px 18px 6px;scrollbar-width:none}
.snaprow::-webkit-scrollbar{display:none}
.snapchip{flex:none;display:inline-flex;align-items:center;gap:5px;border-radius:var(--r-pill);padding:7px 13px;font-size:12px;font-weight:700;white-space:nowrap;text-decoration:none;border:1.5px dashed var(--hairline);color:var(--placeholder);background:var(--surface)}
.snapchip.on{border-style:solid;border-color:var(--ok);background:var(--ok-tint);color:var(--ok-text)}
.chatlog{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.bub{max-width:86%;border-radius:20px;padding:11px 15px;font-size:14px;line-height:1.55;overflow-wrap:break-word}
.bub.ai{align-self:flex-start;background:var(--surface);border:1px solid var(--hairline);border-bottom-left-radius:8px}
.bub.me{align-self:flex-end;background:var(--app);color:#fff;border-bottom-right-radius:8px}
.bub.me a{color:#fff}
.bub.ai a{font-weight:700}
.acts{display:flex;flex-wrap:wrap;gap:6px;align-self:flex-start;max-width:86%}
.actchip{display:inline-flex;border-radius:var(--r-pill);padding:5px 11px;font-size:11px;font-weight:700;background:var(--ok-tint);color:var(--ok-text)}
.bub.typing{display:flex;gap:5px;align-items:center;padding:15px 17px}
.bub.typing span{width:7px;height:7px;border-radius:50%;background:var(--placeholder);animation:tydot 1.2s infinite}
.bub.typing span:nth-child(2){animation-delay:.15s}
.bub.typing span:nth-child(3){animation-delay:.3s}
@keyframes tydot{0%,60%,100%{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
.chatbar{position:fixed;left:0;right:0;bottom:calc(107px + env(safe-area-inset-bottom));z-index:50;background:var(--canvas);border-top:1px solid var(--hairline);padding:10px max(14px,calc(50vw - 201px)) 8px}
.chatbar textarea{flex:1;border-radius:22px;min-height:44px;padding:11px 16px;font-size:16px;resize:none}
.chatbar .attach{flex:none;width:44px;height:44px;border-radius:50%;background:var(--surface);border:1.5px solid var(--hairline);font-size:17px;cursor:pointer}
.chatbar .sendbtn{flex:none;width:44px;height:44px;border-radius:50%;background:var(--brand);color:#fff;font-size:16px;font-weight:800;cursor:pointer;box-shadow:0 6px 16px rgba(192,95,62,.35)}
.wrap.chatpad{padding-bottom:230px}
body.hasplanbar .chatbar ~ * .toast,.chatbar~.toast{bottom:200px}
.chatart{display:block;max-width:236px;width:100%;border-radius:16px;border:1px solid var(--hairline)}
.artbub{max-width:86%}
a.actchip{text-decoration:none}
/* chat list rows — "- " lines from the assistant (2026-08-14 #6) */
.bub .mdli{display:block;position:relative;padding:2px 0 2px 16px}
.bub .mdli::before{content:'·';position:absolute;left:5px;font-weight:800;color:var(--placeholder)}
/* a bare link in a bubble (the group link, #12) — wraps anywhere, copy chip beside it */
.bub .barelink{overflow-wrap:anywhere;word-break:break-all}
.bub .copylink{font-size:11px;padding:4px 10px;vertical-align:2px}
/* assistant chip → the exact field it changed (feedback #3, 2026-08-07) */
.flashfield{animation:flashfield 1.5s ease 2}
@keyframes flashfield{0%,100%{box-shadow:0 0 0 0 rgba(192,95,62,0)}35%{box-shadow:0 0 0 4px rgba(192,95,62,.35)}}
