/* The admin (build 109, 5 Dec 2026), in the product's own colours: cotton page, warm white cards, cream, peanut accent, wool rules,
   slate ink. Cormorant Garamond for headings and numbers, Jost for everything to read and press. A menu down the left on a laptop,
   a top bar and a row of tabs along the foot on a phone. Rules it keeps: text 17px or more, buttons 52px tall, a status is always a
   word with its mark (never colour alone), and peanut is never a button's ground or small text. */
:root { --cotton: #F6F6F2; --card: #FFFEFB; --cream: #F0EBDF; --peanut: #BB9C87; --wool: #C7BEAD; --pebble: #938480; --slate: #54474E;
  --quiet: #766A6C; --line: #E7E1D5; --sage: #67806D; --sage-bg: #DEE8E0; --sage-ink: #3E5A47; --blush: #F1E2DA; --clay-ink: #8A4B3A; --warn-bg: #F6DDD2; --warn-ink: #8A3A22;
  --yes: var(--sage-ink); --no: var(--warn-ink);
  --serif: "Cormorant Garamond", Georgia, serif; --sans: "Jost", system-ui, -apple-system, Arial, sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* a button's own display must not undo hidden (the finished sending page showed Carry on) */
html { background: var(--cotton); color: var(--slate); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.5 var(--sans); }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -.005em; }
h1 { font-size: clamp(34px, 3.4vw, 46px); }
h2 { font-size: 28px; }
h3 { font-size: 23px; margin: 28px 0 10px; }
p { margin: 0 0 12px; }
a { color: var(--slate); text-decoration: underline; text-decoration-color: var(--peanut); text-underline-offset: 3px; }
small { font-size: 14.5px; }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2.5px solid var(--peanut); outline-offset: 3px; }

/* ---- the frame */
.app { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; padding: 28px 18px 22px; background: var(--card); border-right: 1px solid var(--line); }
.logo { display: block; height: 25px; width: auto; }
.side .brand { align-self: flex-start; margin: 0 0 4px 12px; }
.cpl { display: flex; align-items: center; gap: 13px; padding: 14px; border-radius: 18px; background: var(--cotton); }
.cpl b { display: block; font: 500 21px/1.15 var(--serif); }
.cpl small { font-size: 14px; color: var(--quiet); }
.av { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--cream); display: grid; place-items: center; font: 500 17px/1 var(--serif); color: var(--slate); font-variant-numeric: lining-nums; }
.tag { align-self: flex-start; margin: -8px 0 0 14px; padding: 6px 14px; border: 1px solid var(--wool); border-radius: 999px; font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--quiet); }
.side nav { display: grid; gap: 4px; }
.side nav a, .side nav button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 50px; padding: 0 14px; border: 0; border-radius: 14px; background: none; color: var(--slate); font: 500 17px/1.2 var(--sans); text-align: left; text-decoration: none; cursor: pointer; }
.side nav a:hover, .side nav button:hover { background: var(--cotton); }
.side nav a[aria-current] { background: var(--slate); color: #fff; }
.side .low { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.side .low a, .side .low button { min-height: 44px; font-weight: 400; font-size: 16px; color: var(--quiet); }
.side .low a[aria-current] { color: #fff; }
.side form { margin: 0; }
.bar-top { display: none; }
.tr { display: flex; align-items: center; gap: 10px; }
.me { position: relative; }
.me summary { list-style: none; cursor: pointer; }
.me summary::-webkit-details-marker { display: none; }
.me .menu { position: absolute; right: 0; top: 54px; z-index: 25; min-width: 230px; padding: 8px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(84, 71, 78, .18); display: grid; }
.me .menu a, .me .menu button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--slate); font: 400 17px/1.2 var(--sans); text-align: left; text-decoration: none; cursor: pointer; }
.me .menu form { margin: 0; }
main.wrap { padding: 44px clamp(22px, 4vw, 60px) 90px; max-width: 1260px; }
.tabs { display: none; }
body.out main.wrap { max-width: none; padding-top: 10px; }
.out-top { display: flex; justify-content: center; padding: 34px 20px 0; }

/* ---- the pieces every page uses */
.hello { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.hello p { margin: 8px 0 0; color: var(--quiet); max-width: 44em; }
.hello p b { color: var(--slate); font-weight: 500; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
main.wrap > .card, main.wrap > section.card { margin-bottom: 22px; }
.card.narrow { max-width: 760px; }
.card.door { max-width: 440px; margin: 7vh auto 0; }
.card.door.tfa { max-width: 540px; }
.card > h2:first-child, .card > .head:first-child { margin-bottom: 16px; }
.card h1 { font-size: clamp(30px, 3vw, 38px); margin-bottom: 14px; }
.head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.head form { margin: 0; }
.head p { margin: 0; flex: 1 1 100%; color: var(--quiet); }
.back { margin: 0 0 8px; font-size: 15.5px; }
.hint { display: block; margin: 6px 0 0; font-size: 15px; color: var(--quiet); }
.totals { margin: 0 0 6px; }
.sum { margin: 16px 0 0; color: var(--quiet); }
.calm { margin: 0; padding: 26px; color: var(--quiet); text-align: center; }
.calm b { color: var(--slate); font-weight: 500; }
.signed { margin: 26px 0 0; font-size: 15px; color: var(--quiet); }
.note { margin: 0 0 20px; padding: 14px 18px; border-radius: 16px; background: var(--sage-bg); color: var(--sage-ink); }
.note p { margin: 0; }
.note a { color: inherit; }
.note.bad { background: var(--warn-bg); color: var(--warn-ink); }
.note.bad ul { margin: 6px 0 0; padding-left: 20px; }
.note.plain, .note.shut { background: var(--cream); color: var(--slate); }
.note.shut p { margin: 0 0 12px; }
.note.shut form { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
span.note { display: inline-block; margin: 0; padding: 6px 12px; }
.r-yes, .r-yes span { color: var(--sage-ink); } .r-no, .r-no span { color: var(--clay-ink); } .r-wait, .r-wait span { color: var(--quiet); }
em.bad { color: var(--warn-ink); font-style: normal; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 8px 28px; border: 1.5px solid var(--slate); border-radius: 999px;
  background: var(--slate); color: #fff; font: 500 16px/1.2 var(--sans); text-align: center; text-decoration: none; cursor: pointer; }
.btn.light, .btn.quiet { background: transparent; color: var(--slate); }
.btn.small { min-height: 44px; padding: 6px 20px; font-size: 15px; }
.btn:disabled { background: #B9B0B2; border-color: #B9B0B2; color: #fff; cursor: not-allowed; }
.btn.light:disabled { background: transparent; color: #A39A9C; }
.btn .ic { width: 20px; height: 20px; }
.quiet { background: none; border: 0; padding: 4px 0; font: 500 15.5px/1.4 var(--sans); color: var(--slate); text-decoration: underline; text-decoration-color: var(--peanut); text-underline-offset: 3px; cursor: pointer; }
.btn.quiet { padding: 8px 28px; border: 1.5px solid var(--slate); text-decoration: none; }
.go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 22px 0 0; }
.acts { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.acts form { display: inline-flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px 5px 9px; border-radius: 999px; background: var(--cream); color: #655A5C; font: 500 14px/1.3 var(--sans); white-space: nowrap; }
.pill .ic { width: 16px; height: 16px; stroke-width: 2; }
.pill.yes { background: var(--sage-bg); color: var(--sage-ink); }
.pill.no { background: var(--blush); color: var(--clay-ink); }
.pill.bad { background: var(--warn-bg); color: var(--warn-ink); }
.pill.plain { padding-left: 13px; }
.klab { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 500 14px/1.2 var(--sans); letter-spacing: 0; color: var(--quiet); }
.klab .ic { width: 18px; height: 18px; }

/* ---- forms */
.lab, .brief label, .tell label { display: block; margin: 0 0 18px; font-weight: 500; }
.lab .hint { font-weight: 400; margin: 0 0 4px; }
.field, .brief input[type="text"], .brief textarea, .tell textarea, .photos input[type="text"] { display: block; width: 100%; min-height: 52px; margin-top: 8px; padding: 13px 16px; border: 1.5px solid var(--wool); border-radius: 14px; background: #fff; color: var(--slate); font: 400 17px/1.45 var(--sans); }
.field:focus, .brief input:focus, .brief textarea:focus, .tell textarea:focus, .photos input:focus { border-color: var(--slate); outline: 2.5px solid var(--peanut); outline-offset: 2px; }
textarea.field, .brief textarea, .tell textarea { resize: vertical; min-height: 104px; }
::placeholder { color: #9A8F8D; }
.brief small, .tell small, .photos small { display: block; margin-top: 6px; font-weight: 400; font-size: 15px; color: var(--quiet); }
fieldset { margin: 0 0 20px; padding: 16px 18px 18px; border: 1.5px solid var(--line); border-radius: 18px; min-width: 0; }
legend { padding: 0 8px; font-weight: 500; }
.picks { display: flex; flex-wrap: wrap; gap: 10px; }
fieldset.picks { border: 0; padding: 0; margin: 0 0 20px; }
fieldset.picks legend { padding: 0; margin-bottom: 10px; }
.pick, .picks label { position: relative; display: inline-block; margin: 0; font-weight: 400; }
.pick input, .picks label input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pick span, .picks label span { display: inline-flex; align-items: center; min-height: 46px; padding: 8px 18px; border: 1.5px solid var(--wool); border-radius: 999px; background: var(--card); font: 500 16px/1.2 var(--sans); cursor: pointer; }
.pick input:checked + span, .picks label input:checked + span { background: var(--slate); border-color: var(--slate); color: #fff; }
.pick input:focus-visible + span, .picks label input:focus-visible + span { outline: 2.5px solid var(--peanut); outline-offset: 2px; }
.person { padding: 12px 0; border-bottom: 1px solid var(--line); }
.prow, .mail { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.prow .field, .mail .field { margin: 0; }
.replies { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.x { flex: none; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--wool); border-radius: 999px; background: none; font: 500 14.5px/1 var(--sans); color: var(--quiet); cursor: pointer; }
.more { min-height: 44px; margin-top: 12px; padding: 0 18px; border: 1.5px dashed var(--wool); border-radius: 999px; background: none; font: 500 15.5px/1 var(--sans); color: var(--slate); cursor: pointer; }
.links { margin: 0 0 20px; padding: 14px 16px; background: var(--cotton); border-radius: 16px; }
.links p { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 15px; }
.links code { font-size: 13.5px; word-break: break-all; }
.gone { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.gone .quiet { color: var(--warn-ink); }
.gone .hint { margin: 0; }
.upload h2 { margin-bottom: 12px; }
input[type="file"] { max-width: 100%; font: 400 16px/1.4 var(--sans); color: var(--slate); }
input[type="file"].field { padding: 12px 14px; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--slate); vertical-align: -3px; }

/* ---- tables (each household on an email's page, and the reminders list) */
table.guests { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 16px; }
table.guests th { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--wool); font: 500 14px/1.4 var(--sans); color: var(--quiet); }
table.guests td { padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.guests small { color: var(--quiet); }
.people { list-style: none; margin: 0; padding: 0; }
.people li span { margin-left: 6px; font-size: 15px; }
.extra { margin: 6px 0 0; font: 500 20px/1.3 var(--serif); }
.extra::before { content: "“"; } .extra::after { content: "”"; }
.badge { display: inline-block; margin: 0 6px 4px 0; padding: 4px 11px; border-radius: 999px; font-size: 14px; background: var(--cream); }
.badge small { color: var(--quiet); }
.log { list-style: none; margin: 0; padding: 0; font-size: 16px; }
.log li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.log span { color: var(--quiet); margin-right: 8px; }
.log.probs li a { font-weight: 500; }
.dl { font-size: 15px; color: var(--slate); }
.dl-bounced, .dl-spam { color: var(--warn-ink); }
.dl-going, .dl-wait { color: var(--quiet); }
.dl-delivered { color: var(--sage-ink); }

/* ---- Home */
.row { display: grid; gap: 22px; margin-bottom: 22px; }
.row.lead, .row.two { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.row.two { align-items: start; }
.row.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nx { background: var(--cream); border-color: transparent; padding: 34px; }
.nx h2 { font-size: clamp(30px, 2.8vw, 38px); margin-bottom: 12px; }
.nx p { max-width: 34em; }
.nx .btn { margin-top: 12px; }
.ask { display: flex; flex-direction: column; }
.ask.warn { border-color: #EBCDBF; } .ask.warn .klab { color: var(--warn-ink); }
.ask h2 { font-size: 26px; margin-bottom: 8px; }
.ask p { margin-bottom: 20px; }
.ask .btn { margin-top: auto; align-self: flex-start; }
.then { list-style: none; margin: 0; padding: 0; counter-reset: job 1; }
.then li { position: relative; padding: 0 0 14px 40px; }
.then li::before { counter-increment: job; content: counter(job); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--cream); font: 500 14px/28px var(--sans); text-align: center; }
.then li a, .then li b { font-weight: 500; }
.then li span { display: block; font-size: 15px; color: var(--quiet); }
.then li.bad a { color: var(--warn-ink); text-decoration-color: var(--warn-ink); }
.stat { padding: 24px 24px 22px; }
.stat b { display: block; font: 500 56px/1 var(--serif); font-variant-numeric: lining-nums; }
.stat span { display: block; margin-top: 10px; font: 500 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.stat small { display: block; margin-top: 8px; font-size: 15px; color: var(--quiet); }
.path { margin-bottom: 22px; padding: 28px 22px 30px; }
.path > h2 { text-align: center; margin-bottom: 34px; }
.track { position: relative; }
.wave { position: absolute; left: 0; right: 0; top: -8px; height: 60px; }
.wave svg { display: block; width: 100%; height: 60px; overflow: visible; }
.wave path { fill: none; stroke: var(--wool); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.wave .done { position: absolute; inset: 0 auto 0 0; overflow: hidden; }
.wave .done path { stroke: var(--sage); stroke-dasharray: none; stroke-width: 2.5; }
.track ol { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.track li { display: grid; justify-items: center; align-content: start; text-align: center; gap: 6px; padding: 0 6px; }
.track li i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 2px solid var(--wool); color: var(--quiet); font: 500 17px/1 var(--sans); font-style: normal; margin-bottom: 26px; }
.track li:nth-child(odd) i { transform: translateY(-14px); } .track li:nth-child(even) i { transform: translateY(14px); }
.track li.done i { background: var(--sage); border-color: var(--sage); color: #fff; }
.track li.now i { width: 58px; height: 58px; margin: -7px 0 19px; background: var(--slate); border-color: var(--slate); color: #fff; box-shadow: 0 0 0 7px var(--card), 0 0 0 8.5px var(--peanut); }
.track li b { font: 500 22px/1.15 var(--serif); }
.track li span { font: 400 15px/1.35 var(--sans); color: var(--quiet); }
.track li.now span { color: var(--slate); font-weight: 500; }
.track li em { font: 500 12px/1 var(--sans); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-ink); background: var(--sage-bg); padding: 6px 11px; border-radius: 99px; margin-top: 4px; }
.bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--cream); }
.bar b { display: block; }
.bar .y { background: var(--sage); } .bar .n { background: var(--peanut); }
.key { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 14px; }
.key span { display: inline-flex; align-items: baseline; gap: 8px; }
.key b { font: 500 26px/1 var(--serif); font-variant-numeric: lining-nums; }
.key i { width: 10px; height: 10px; border-radius: 50%; align-self: center; background: var(--cream); border: 1px solid var(--wool); }
.key i.y { background: var(--sage); border-color: var(--sage); } .key i.n { background: var(--peanut); border-color: var(--peanut); }
.rows { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 8px; }
.feed { display: grid; gap: 20px; list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 14px; }
.dot { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--cream); }
.dot .ic { width: 18px; height: 18px; stroke-width: 1.9; }
.dot.yes { background: var(--sage-bg); color: var(--sage-ink); } .dot.no { background: var(--blush); color: var(--clay-ink); }
.feed b { display: block; font-weight: 500; }
.feed .q { display: block; margin: 2px 0; font-size: 15.5px; color: var(--quiet); }
.feed small { font-size: 14px; color: var(--quiet); }

/* ---- Guests: a list to filter, and the household that is open beside it */
.tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 18px; }
.find { flex: 1 1 280px; max-width: 420px; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; border: 1.5px solid var(--wool); border-radius: 999px; background: var(--card); color: var(--quiet); }
.find input { flex: 1; min-width: 0; border: 0; background: none; font: 400 17px/1.3 var(--sans); color: var(--slate); outline: none; }
.find:focus-within { border-color: var(--slate); }
.tools .push { margin-left: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 18px; border: 1.5px solid var(--wool); border-radius: 999px; background: var(--card); color: var(--slate); font: 500 16px/1 var(--sans); text-decoration: none; cursor: pointer; }
.chip b { font: 500 21px/1 var(--serif); font-variant-numeric: lining-nums; }
.chip[aria-current] { background: var(--slate); border-color: var(--slate); color: #fff; }
.hint.groups { margin: 12px 0 0; }
.gwrap { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 22px; align-items: start; margin-top: 18px; }
.list { padding: 10px; }
.g { display: flex; align-items: center; gap: 16px; width: 100%; padding: 14px; border-radius: 16px; color: inherit; text-decoration: none; scroll-margin-top: 20px; }
.g:hover { background: var(--cotton); }
.g[aria-current], .g.just { background: var(--cream); }
.g .txt { flex: 1; min-width: 0; }
.g .txt b { display: block; font: 500 22px/1.2 var(--serif); }
.g .txt span { display: block; color: var(--quiet); font-size: 16px; }
.g .end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.g .end small { font-size: 14px; color: var(--quiet); max-width: 20em; }
.g > .ic { color: var(--pebble); width: 20px; height: 20px; }
.panel { position: sticky; top: 24px; padding: 26px; }
.gwho { text-align: center; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.gwho .av { width: 72px; height: 72px; font-size: 32px; margin: 0 auto 12px; } .gwho h2 { font-size: 30px; margin-bottom: 4px; } .gwho p { color: var(--quiet); margin-bottom: 12px; }
.said { padding: 16px 18px; border-radius: 16px; background: var(--cotton); margin-bottom: 24px; }
.said small, .sub { display: block; font: 500 14px/1 var(--sans); color: var(--quiet); margin-bottom: 10px; }
.said .people li { font: 500 20px/1.35 var(--serif); }
.said .people li span { font: 400 15px/1.3 var(--sans); }
ol.had { list-style: none; margin: 0 0 22px; padding: 0; }
.had li { display: flex; gap: 12px; padding: 0 0 16px; position: relative; }
.had li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; border-left: 1.5px solid var(--line); } .had li:last-child::before { display: none; }
.had i { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--sage-bg); color: var(--sage-ink); }
.had li.off i { background: var(--cream); color: var(--quiet); } .had li.bad i { background: var(--warn-bg); color: var(--warn-ink); }
.had .ic { width: 15px; height: 15px; stroke-width: 2.2; } .had b { display: block; font-weight: 500; line-height: 1.3; } .had span { font-size: 14.5px; color: var(--quiet); }
.addr { margin: 0 0 22px; overflow-wrap: anywhere; }
.panel .btn { width: 100%; margin-bottom: 10px; } .panel .btn:last-child { margin-bottom: 0; }
.panel .shut, .scrim { display: none; }

/* ---- Emails: what guests get, in order; and the two steps to send one */
.em { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; align-items: start; }
.mini { aspect-ratio: 4 / 5; border-radius: 10px; border: 1px solid var(--line); background: #F3EBD8; padding: 12px 10px; display: grid; align-content: start; justify-items: center; gap: 7px; }
.mini b { font: 500 22px/1 var(--serif); margin: 4px 0 2px; } .mini u { display: block; height: 3px; border-radius: 2px; background: #D9CFBB; width: 80%; } .mini u.s { width: 55%; } .mini u.btn0 { height: 9px; width: 60%; background: var(--slate); margin-top: 4px; border-radius: 9px; }
.mh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 8px; }
.em p { color: var(--quiet); max-width: 40em; margin: 0; }
.nums { display: flex; flex-wrap: wrap; gap: 8px 30px; margin-top: 16px; } .nums span { display: inline-flex; align-items: baseline; gap: 8px; color: var(--quiet); } .nums b { font: 500 30px/1 var(--serif); color: var(--slate); font-variant-numeric: lining-nums; }
.em .acts { margin-top: 18px; }
.who { margin: 0 0 20px; padding: 14px 18px; background: var(--cotton); border-radius: 16px; }
.sender { margin-top: 22px; border: 1.5px solid var(--line); border-radius: 18px; overflow: hidden; }
.sstep { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 18px; } .sstep + .sstep { border-top: 1.5px solid var(--line); }
.sstep > b { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--cream); font: 500 16px/1 var(--sans); }
.sstep > b .ic { width: 17px; height: 17px; stroke-width: 2.2; }
.sstep.ok > b { background: var(--sage); color: #fff; } .sstep > div { flex: 1 1 220px; } .sstep strong { display: block; font-weight: 500; } .sstep span { font-size: 15px; color: var(--quiet); }
.sstep.locked { background: var(--cotton); }
.grp { margin: 0 0 10px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 14px; }
.grp summary { cursor: pointer; font-weight: 500; }
.grp summary small { color: var(--quiet); font-weight: 400; margin-left: 6px; }
.grp .lab { margin-top: 12px; }
.preview .show { display: flex; gap: 14px; }
.preview .show .quiet[aria-pressed="true"] { text-decoration-color: var(--slate); text-decoration-thickness: 2px; }
.pv { display: block; width: 100%; max-width: 680px; height: 1500px; margin: 14px auto 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.pv.phone { max-width: 390px; }
.sending .line { height: 10px; margin: 18px 0 10px; background: var(--cream); border-radius: 99px; overflow: hidden; }
.sending .fill { display: block; height: 100%; background: var(--sage); transition: width .4s ease; }
.sending .sum { margin: 0; font-size: 19px; color: var(--slate); }
.sending .status, .sending .subj { margin: 4px 0 0; color: var(--quiet); }

/* ---- Your story: six steps, one at a time */
.prog { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 22px; } .prog .bar { flex: 1 1 220px; max-width: 420px; height: 10px; } .prog > b { font-weight: 500; }
.story { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: start; margin-bottom: 22px; }
.slist { display: grid; gap: 6px; padding: 14px 10px 10px; }
.slist .klab { margin: 4px 12px 8px; font-family: var(--sans); }
.slist a { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; color: inherit; text-decoration: none; }
.slist a:hover { background: var(--cotton); } .slist a[aria-current] { background: var(--cream); }
.slist i { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--wool); color: var(--quiet); font: 500 16px/1 var(--sans); font-style: normal; }
.slist .done i { background: var(--sage); border-color: var(--sage); color: #fff; } .slist .part i { border-color: var(--slate); color: var(--slate); }
.slist i .ic { width: 18px; height: 18px; stroke-width: 2.2; }
.slist b { display: block; font: 500 21px/1.15 var(--serif); } .slist small { font-size: 14.5px; color: var(--quiet); }
.stepc h2 { font-size: 32px; margin-bottom: 8px; } .stepc > p { color: var(--quiet); max-width: 40em; margin-bottom: 22px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.moment { background: var(--cotton); border-color: transparent; }
.moment legend { padding: 4px 14px; border-radius: 999px; background: var(--cream); font: 500 19px/1.3 var(--serif); }
.moment.in legend { background: var(--sage-bg); color: var(--sage-ink); }
.sfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 26px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.sfoot .hint { margin: 0; }
.add { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 0 0 18px; }
.drop { flex-direction: column; justify-content: center; gap: 12px; padding: 30px 20px; border: 2px dashed var(--wool); border-radius: 18px; text-align: center; }
.drop { min-width: 0; } .drop input[type="file"] { width: 100%; max-width: 340px; min-width: 0; }
.drop > b { font: 500 24px/1.2 var(--serif); } .drop > .ic { width: 30px; height: 30px; color: var(--pebble); }
/* build 112: photos on a moment or on the look, the colours picked, extra scenes, and Home's stops as links */
.shelf { margin-top: 18px; padding-top: 16px; border-top: 1.5px dashed var(--wool); }
.shelf > b { display: block; font: 500 17px/1.3 var(--sans); }
.thumbs { list-style: none; margin: 12px 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.thumbs li { width: 104px; text-align: center; }
.thumbs img, .thumbs .tile { display: block; width: 104px; height: 104px; object-fit: cover; border-radius: 12px; background: var(--cream); font-size: 12px; overflow: hidden; overflow-wrap: anywhere; padding: 0; }
.thumbs .tile { padding: 8px; display: grid; place-items: center; }
.thumbs button { margin-top: 4px; font-size: 14px; }
.pickf { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.pickf label.btn { position: relative; margin: 0; cursor: pointer; }
.pickf label.btn .ic { width: 18px; height: 18px; }
.pickf label.btn.busy { opacity: .55; pointer-events: none; }
.js .pickf input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.js .nojs { display: none !important; }
fieldset.pal { border: 0; padding: 0; margin: 0 0 20px; }
fieldset.pal legend { padding: 0; margin-bottom: 2px; font-weight: 500; }
.sws { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.sws:empty { display: none; }
.sw { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1.5px solid var(--wool); border-radius: 999px; background: var(--card); }
.sw i { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(84, 71, 78, .25); }
.sw code { font: 500 15px/1 var(--sans); letter-spacing: .03em; }
.sw button { font-size: 14px; }
.padd { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 14px; }
.padd input[type="color"] { width: 58px; height: 52px; padding: 3px; border: 1.5px solid var(--wool); border-radius: 14px; background: #fff; cursor: pointer; }
.padd .hex { margin: 0; flex: 0 1 190px; }
.padd .btn { min-height: 52px; }
.xscenes { margin-top: 22px; padding: 22px; border-radius: 18px; background: var(--cream); }
.xscenes h3 { margin: 0 0 6px; font: 500 24px/1.2 var(--serif); }
.xscenes .go { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 14px 0 0; }
.moment legend small { display: inline; margin: 0 0 0 8px; font: 500 13px/1 var(--sans); color: var(--quiet); }
/* build 113: the drawing styles, each with its example */
.styles > small { display: block; margin: -4px 0 12px; color: var(--quiet); font-size: 15px; }
.stiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; width: 100%; }
.picks.styles label { display: block; }
.picks.styles label span { display: block; min-height: 0; padding: 6px 6px 12px; border-radius: 18px; text-align: center; }
.picks.styles label span img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 13px; margin-bottom: 10px; background: var(--cream); }
.picks.styles label span b { font: 500 16px/1.2 var(--sans); }
.picks.styles label input:checked + span { box-shadow: 0 0 0 3px var(--peanut); }
.track li > a { display: contents; color: inherit; text-decoration: none; }
.track li > a:hover b, .track li > a:focus-visible b { text-decoration: underline; text-underline-offset: 4px; }
.track li > a:focus-visible i { outline: 2.5px solid var(--peanut); outline-offset: 3px; }
.photos { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.photos img, .photos .tile { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; background: var(--cream); }
.photos .tile { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 12px; overflow-wrap: anywhere; font-size: 15px; }
.photos .cap { display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: center; margin: 8px 0 0; }
.photos .cap input { flex: 1 1 100%; min-height: 46px; margin: 0; padding: 9px 12px; font-size: 16px; }
.photos .rm { display: flex; gap: 14px; align-items: center; margin: 0; }
.tellc h2 { margin-bottom: 6px; } .tellc > p { color: var(--quiet); }
.tell { max-width: 620px; } .tell .go { margin-top: 0; }

/* ---- Scenes (build 110): the pictures Paul draws. He adds them and shows them; the couple love each one or ask for a change */
.side nav a { white-space: nowrap; }
.side nav a em { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: var(--cream); color: var(--slate); font: 500 13px/1.2 var(--sans); font-style: normal; white-space: nowrap; }
.side nav a[aria-current] em { background: rgba(255, 255, 255, .18); color: #fff; }
.tabs a { position: relative; } .tabs .dot { position: absolute; top: 5px; left: calc(50% + 9px); width: 9px; height: 9px; border-radius: 50%; background: var(--slate); box-shadow: 0 0 0 2px var(--card); }
.scenes { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; margin-bottom: 22px; }
.card.scn { padding: 0; overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 20px; }
.scn > img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; border-bottom: 1px solid var(--line); }
.scb { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.scb h2 { font-size: 25px; overflow-wrap: anywhere; } .scb p { margin: 0; color: var(--quiet); font-size: 16px; }
.scn.change { border-color: var(--peanut); box-shadow: 0 0 0 1px var(--peanut); }
.scb .asked { padding: 12px 14px; border-radius: 12px; background: var(--cream); color: var(--slate); overflow-wrap: anywhere; }
.asked b { display: block; margin-bottom: 2px; font: 500 14px/1.3 var(--sans); color: var(--quiet); }
.scact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; } .scact form { margin: 0; }
.scup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.scup.big { flex-direction: column; align-items: stretch; margin: 14px 14px 0; }
.scup label { position: relative; overflow: hidden; cursor: pointer; }
.slot { display: grid; place-content: center; justify-items: center; gap: 6px; aspect-ratio: 4 / 3; padding: 10px; border: 2px dashed var(--wool); border-radius: 14px; color: var(--slate); text-align: center; }
.slot:hover, .slot:focus-within, .slot.over { border-color: var(--slate); background: var(--cotton); }
.slot b { font: 500 23px/1.2 var(--serif); } .slot > .ic { width: 28px; height: 28px; color: var(--pebble); } .slot span { font-size: 15px; color: var(--quiet); }
.js .scup input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.js .scup button { display: none; }
.scup.busy { opacity: .55; pointer-events: none; }
#show > h2 { margin-bottom: 18px; }
.show { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; } .show.one { grid-template-columns: 1fr; }
.show .sender { margin-top: 0; } .sstep form { margin: 0; }
.epre { padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--cotton); }
.epre small { display: block; margin-bottom: 12px; font: 500 14px/1 var(--sans); color: var(--quiet); }
.eto { margin: 0; font-size: 15px; color: var(--quiet); overflow-wrap: anywhere; } .eto b { display: inline-block; min-width: 62px; font-weight: 500; color: var(--slate); }
.ebody { display: grid; gap: 12px; justify-items: start; margin-top: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 16px; }
.ebody p { margin: 0; } .ebody .btn { pointer-events: none; }
.places { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; } .places p { flex: 1 1 320px; margin: 0; color: var(--quiet); } .places b { font-weight: 500; color: var(--slate); }
.note .said { margin: 8px 0; padding-left: 14px; border-left: 3px solid var(--wool); overflow-wrap: anywhere; }
.scform { margin: 0; }
.pk { position: relative; flex: 1 1 auto; justify-content: center; padding: 0 14px; font-size: 15.5px; white-space: nowrap; }
.pk input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pk .ic { width: 18px; height: 18px; stroke-width: 2; }
.pk:has(input:checked) { background: var(--slate); border-color: var(--slate); color: #fff; } .pk.love:has(input:checked) { background: var(--sage); border-color: var(--sage); }
.pk:has(input:focus-visible) { outline: 2.5px solid var(--peanut); outline-offset: 2px; }
.scn:has(.love input:checked) { border-color: var(--sage); box-shadow: 0 0 0 1px var(--sage); } .scn:has(.chg input:checked) { border-color: var(--peanut); box-shadow: 0 0 0 1px var(--peanut); }
.chgnote { display: none; font: 500 15px/1.3 var(--sans); color: var(--slate); }
.chgnote textarea, .stylq textarea { display: block; width: 100%; min-height: 84px; margin-top: 8px; padding: 12px 14px; border: 1.5px solid var(--wool); border-radius: 14px; background: #fff; color: var(--slate); font: 400 17px/1.45 var(--sans); resize: vertical; }
.chgnote textarea:focus { border-color: var(--slate); outline: 2.5px solid var(--peanut); outline-offset: 2px; }
.scn:has(.chg input:checked) .chgnote { display: block; }
@supports not selector(:has(a)) { .chgnote { display: block; } }
.stylq { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-top: 18px; } .stylq > form { margin: 0; } .nx .stylq .btn { margin-top: 0; }
.stylq summary { list-style: none; } .stylq summary::-webkit-details-marker { display: none; }
.stylq details[open] { flex: 1 1 100%; order: -1; } .stylq details[open] summary { display: none; }
.stylq details form { display: grid; gap: 14px; justify-items: start; max-width: 34em; margin: 0 0 6px; } .stylq details label { width: 100%; margin: 0; }
@media (max-width: 1080px) { .show { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .scenes { grid-template-columns: 1fr; gap: 14px; } .sstep form { width: 100%; } .places .acts, .places form, .places .btn { width: 100%; }
  .stylq, .stylq > form, .stylq details, .stylq .btn { width: 100%; }
}

/* ---- two-step sign-in (build 108) */
.tfa .tfa-steps { margin: 0 0 8px; padding-left: 1.2em; }
.tfa .tfa-steps > li { margin: 0 0 18px; }
.tfa-qr { width: 200px; height: 200px; margin: 8px 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.tfa-qr svg { display: block; width: 100%; height: 100%; }
.tfa-phone { display: none; }
.tfa-alt { font-size: 16px; }
.tfa-key { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--cream); font: 600 1.05rem/1.5 ui-monospace, Menlo, monospace; word-spacing: .3em; }
.field.code { max-width: 10ch; font: 600 1.4rem/1.2 ui-monospace, Menlo, monospace; letter-spacing: .2em; }
.tfa-tick { display: flex; gap: 10px; align-items: center; margin: 12px 0; }
.tfa-codes { columns: 2; padding-left: 1.6em; font: 600 1.05rem/1.9 ui-monospace, Menlo, monospace; }
.tfa form { margin: 0 0 6px; }

@media (max-width: 1180px) {
  .gwrap { grid-template-columns: 1fr; }
  .gwrap .panel { display: none; }
  .gwrap.sel .panel { display: block; position: fixed; z-index: 30; inset: auto 0 0 0; top: auto; max-height: 86vh; overflow: auto; border-radius: 26px 26px 0 0; border: 0; padding-bottom: calc(26px + env(safe-area-inset-bottom)); box-shadow: 0 -18px 50px rgba(84, 71, 78, .28); }
  .gwrap.sel .scrim { display: block; position: fixed; z-index: 29; inset: 0; background: rgba(84, 71, 78, .32); }
  .panel .shut { display: inline-flex; margin-bottom: 16px; }
}
@media (max-width: 1080px) {
  .row.lead, .row.two { grid-template-columns: 1fr; } .row.four { grid-template-columns: 1fr 1fr; }
  .story { grid-template-columns: 1fr; }
  .slist { display: flex; overflow-x: auto; scrollbar-width: none; padding: 10px; } .slist .klab { display: none; } .slist a { flex: none; padding-right: 18px; }
}
@media (max-width: 820px) {
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  body.out { padding-bottom: 0; }
  .app { display: block; } .side { display: none; }
  .bar-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: var(--card); border-bottom: 1px solid var(--line); }
  .bar-top .logo { height: 22px; }
  .tabs { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 8px 6px calc(10px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); }
  .tabs a { display: grid; justify-items: center; gap: 3px; padding: 7px 2px; border-radius: 14px; text-decoration: none; font: 500 12.5px/1.2 var(--sans); color: var(--quiet); white-space: nowrap; }
  .tabs a[aria-current] { color: var(--slate); background: var(--cream); }
  main.wrap { padding: 26px 18px 30px; }
  .card { padding: 22px 20px; border-radius: 20px; }
  .hello { margin-bottom: 22px; } .row { gap: 14px; margin-bottom: 14px; }
  .nx { padding: 26px 22px; } .nx .btn, .ask .btn, .sfoot .btn { width: 100%; }
  .stat { padding: 18px; } .stat b { font-size: 44px; }
  .path { padding: 24px 20px 6px; margin-bottom: 14px; } .path > h2 { margin-bottom: 20px; text-align: left; } .wave { display: none; }
  .track ol { grid-template-columns: 1fr; }
  .track li { grid-template-columns: 58px 1fr; justify-items: start; text-align: left; column-gap: 14px; row-gap: 2px; padding: 0 0 22px; position: relative; }
  .track li::before { content: ""; position: absolute; left: 28px; top: 44px; bottom: 0; border-left: 2px dotted var(--wool); }
  .track li.done::before { border-left: 2.5px solid var(--sage); } .track li:last-child::before { display: none; }
  .track li i, .track li.now i { grid-row: 1 / span 3; justify-self: center; margin: 0; transform: none !important; }
  .track li b, .track li span, .track li em { grid-column: 2; } .track li b { align-self: end; } .track li em { justify-self: start; }
  .g { flex-wrap: wrap; gap: 8px 14px; padding: 14px 10px; } .g .end { flex-direction: row; flex-wrap: wrap; align-items: center; flex: 1 1 100%; padding-left: 58px; justify-content: flex-start; order: 3; text-align: left; }
  .list { padding: 6px; } .tools .push { margin: 0; width: 100%; } .tools .push .btn { flex: 1 1 100%; } .find { max-width: none; flex-basis: 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -18px; padding: 2px 18px 6px; scrollbar-width: none; } .chip { flex: none; }
  .two { grid-template-columns: 1fr; } .stepc h2 { font-size: 28px; }
  .em { grid-template-columns: 1fr; gap: 14px; } .mini { width: 84px; } .em .acts .btn { flex: 1 1 100%; }
  .sstep .btn, .go .btn { width: 100%; }
  .tfa-qr { display: none; } .tfa-phone { display: block; }
  table.guests, table.guests thead, table.guests tbody, table.guests tr, table.guests td { display: block; }
  table.guests thead { display: none; }
  table.guests tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  table.guests td { padding: 4px 0; border: 0; }
  .prow, .mail { flex-wrap: wrap; }
  .pv { height: 1100px; }
}
/* ---- the helper (build 114): the writing buttons under a big box, the Help button and panel, the tour */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ai { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 18px; }
.ai-b { min-height: 40px; padding: 6px 16px; border: 1.5px solid var(--wool); border-radius: 999px; background: var(--card); color: var(--slate); font: 500 15px/1.2 var(--sans); cursor: pointer; }
.ai-b:hover { border-color: var(--slate); } .ai-b:disabled { color: var(--quiet); cursor: default; } .ai-b.busy { border-style: dashed; }
.ai-out { margin: -6px 0 22px; padding: 18px 20px; border-radius: 18px; background: var(--cream); }
.ai-h { margin: 0 0 8px; font: 500 21px/1.2 var(--serif); }
.ai-text { margin: 0 0 14px; padding: 14px 16px; border-radius: 14px; background: var(--card); white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 10px; }
.ai-out small { display: block; color: var(--quiet); } .ai-say { margin: 0; } .ai-say.bad { color: var(--warn-ink); }
.hbtn { position: fixed; z-index: 30; right: 26px; bottom: 26px; display: inline-flex; align-items: center; gap: 9px; min-height: 52px; padding: 8px 22px 8px 18px; border-radius: 999px; background: var(--slate); color: #fff;
  font: 500 16px/1 var(--sans); text-decoration: none; box-shadow: 0 6px 22px rgba(84, 71, 78, .28); }
.hbtn:hover { background: #453A40; } body.helping .hbtn { display: none; }
.hpanel { position: fixed; z-index: 31; right: 26px; bottom: 26px; display: flex; flex-direction: column; width: min(400px, calc(100vw - 36px)); height: min(620px, calc(100vh - 52px)); background: var(--card);
  border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 18px 60px rgba(84, 71, 78, .26); overflow: hidden; }
.hpanel > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 14px 22px; border-bottom: 1px solid var(--line); }
.hpanel > header b { display: block; font: 500 25px/1.1 var(--serif); } .hpanel > header small { color: var(--quiet); }
.hx { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--cotton); color: var(--slate); cursor: pointer; }
.hlog { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.hq, .ha { max-width: 88%; padding: 11px 15px; border-radius: 18px; font-size: 16.5px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.hq { align-self: flex-end; background: var(--slate); color: #fff; border-bottom-right-radius: 6px; }
.ha { align-self: flex-start; background: var(--cream); border-bottom-left-radius: 6px; }
.ha.wait { color: var(--quiet); font-style: normal; animation: hwait 1.2s ease-in-out infinite; } .ha.bad { background: var(--warn-bg); color: var(--warn-ink); }
@keyframes hwait { 50% { opacity: .45; } }
.hsug { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.hsug button { min-height: 40px; padding: 6px 14px; border: 1.5px solid var(--wool); border-radius: 999px; background: var(--card); color: var(--slate); font: 500 15px/1.2 var(--sans); cursor: pointer; text-align: left; }
.hsug button:hover { border-color: var(--slate); }
.hhand { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 18px 12px; padding: 12px 14px 12px 18px; border-radius: 18px; background: var(--blush); }
.hhand p { margin: 0; font-weight: 500; }
.hsent { display: flex; align-items: center; gap: 8px; margin: 0 18px 12px; padding: 12px 16px; border-radius: 16px; background: var(--sage-bg); color: var(--sage-ink); }
.hpanel .note, .hpage .note { margin: 0 18px 12px; }
.hform { display: flex; gap: 8px; padding: 0 18px 12px; }
.hform input { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 8px 18px; border: 1.5px solid var(--wool); border-radius: 999px; background: #fff; color: var(--slate); font: 400 17px/1.3 var(--sans); }
.hform input:focus { border-color: var(--slate); }
.hform .btn { flex: none; width: 48px; min-height: 48px; padding: 0; }
.hfoot { padding: 0 20px 16px; } .hfoot span { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 6px; font-size: 15px; } .hfoot small { display: block; font-size: 13px; line-height: 1.4; color: var(--quiet); }
.hpage { padding: 10px 6px 6px; } .hpage .hlog { max-height: 52vh; }
.tour-veil { position: fixed; inset: 0; z-index: 40; background: rgba(84, 71, 78, .5); }
.tour-ring { position: fixed; z-index: 40; border-radius: 16px; box-shadow: 0 0 0 3px var(--card), 0 0 0 9999px rgba(84, 71, 78, .5); pointer-events: none; transition: left .28s ease, top .28s ease, width .28s ease, height .28s ease; }
.tour-card { position: fixed; z-index: 41; width: min(380px, calc(100vw - 24px)); padding: 24px 24px 20px; border-radius: 22px; background: var(--card); box-shadow: 0 18px 60px rgba(40, 30, 35, .35); transition: left .28s ease, top .28s ease; }
.tour-card.calm, .calm ~ .tour-ring { transition: none; }
.tour-card h2 { margin: 0 0 8px; font-size: 29px; } .tour-card p { margin: 0 0 16px; }
.tour-n { margin: 0 0 6px !important; font: 500 14px/1.2 var(--sans); color: var(--quiet); }
.tour-go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0 !important; }
@media (max-width: 820px) {
  .hbtn { right: 14px; bottom: calc(92px + env(safe-area-inset-bottom)); min-height: 48px; padding: 8px 18px 8px 14px; }
  .hpanel { right: 0; left: 0; bottom: 0; width: auto; height: min(86vh, 680px); border-radius: 24px 24px 0 0; border-width: 1px 0 0; padding-bottom: env(safe-area-inset-bottom); z-index: 35; }
  .ai-out .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
