:root {
  /* One friendly action colour, white cards on a soft ground, chunky rounded buttons.
     Layout idea: a single thumb-reach column. One main action per screen, pictures before words. */
  --bg: #f3f7f4;
  --paper: #fff;
  --ink: #14201b;
  --muted: #586860;
  --line: #e2e9e5;
  --brand: #0b8457;
  --brand-deep: #076a45;
  --brand-soft: #e1f4ea;
  --brand-ink: #064e33;
  --sun: #ffc93c;
  --sun-soft: #fff4d1;
  --sun-ink: #5b4406;
  --clay: #c4553b;
  --clay-deep: #9a3a22;
  --clay-soft: #fbe9e3;
  --wa: #0b6b5a;
  --wa-deep: #07503f;
  --r: 20px;
  --shadow: 0 6px 22px rgba(20, 32, 27, 0.07);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); }
h1, h2, h3, .h3 { color: var(--ink); text-wrap: balance; margin: 0; line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.6rem, 6.4vw, 2.1rem); }
h1:focus { outline: none; }
h2 { font-size: 1.2rem; margin-top: 6px; }
h3, .h3 { font-size: 1.02rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
code { font-size: 0.85em; background: var(--brand-soft); padding: 1px 6px; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 40; background: var(--paper); padding: 8px 12px; }

/* top bar and tabs */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); }
.top-in { display: flex; align-items: center; gap: 10px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.08rem; color: var(--ink); text-decoration: none; margin-right: auto; white-space: nowrap; }
.logo { width: 30px; height: 30px; flex: none; }
.logo .a { fill: var(--brand); }
.logo .b { fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linejoin: round; }
.logo .c { fill: var(--sun); }
.who { font-size: 0.74rem; font-weight: 700; color: var(--muted); text-align: right; line-height: 1.2; min-width: 0; }
.home-link { font: 700 0.88rem var(--font); color: var(--brand-ink); text-decoration: none; border: 0; background: var(--paper); box-shadow: var(--shadow); border-radius: 999px; padding: 8px 14px; min-height: 40px; display: inline-flex; align-items: center; cursor: pointer; }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(20, 32, 27, 0.06); padding-bottom: env(safe-area-inset-bottom); }
.tabs-in { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; max-width: 560px; margin: 0 auto; }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 62px; padding: 6px 2px; text-decoration: none; color: var(--muted); font-size: 0.74rem; font-weight: 700; text-align: center; line-height: 1.15; }
.tabs a[aria-current] { color: var(--brand-ink); }
.tab-ic { position: relative; width: 48px; height: 30px; border-radius: 15px; display: grid; place-items: center; }
.tab-ic svg { width: 23px; height: 23px; }
.tabs a[aria-current] .tab-ic { background: var(--brand-soft); color: var(--brand); }
.badge { position: absolute; top: -5px; right: -2px; background: var(--clay); color: #fff; font-size: 0.68rem; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
@media (min-width: 820px) {
  .tabs { position: sticky; top: 56px; bottom: auto; box-shadow: none; border-top: 0; border-bottom: 1px solid var(--line); background: var(--bg); }
  .tabs-in { max-width: 1040px; padding: 0 16px; grid-auto-columns: max-content; gap: 8px; }
  .tabs a { flex-direction: row; gap: 8px; font-size: 0.95rem; min-height: 48px; padding: 6px 12px 6px 6px; }
}

main { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; padding-bottom: 28px; }
main.narrow { max-width: 560px; }
main > section { display: flex; flex-direction: column; gap: 12px; }
.lead { color: var(--muted); font-size: 1.02rem; max-width: 60ch; }
.sub { color: var(--muted); font-size: 0.87rem; }
.sub.good { color: var(--brand-ink); font-weight: 700; }
.sub.low { color: var(--clay-deep); font-weight: 700; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.tight { gap: 8px; }
.row.center { justify-content: center; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }

/* buttons: chunky, with a pressable edge */
.btn { appearance: none; border: 0; background: var(--brand); color: #fff; font: 800 1rem var(--font); padding: 12px 20px; min-height: 52px; border-radius: 16px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 4px 0 var(--brand-deep); margin-bottom: 4px; transition: transform 0.06s, box-shadow 0.06s; text-align: center; }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--brand-deep); }
.btn.ghost { background: var(--paper); color: var(--brand-ink); box-shadow: inset 0 0 0 2px var(--line), 0 4px 0 var(--line); }
.btn.ghost:active { box-shadow: inset 0 0 0 2px var(--line); }
.btn.sm { min-height: 44px; padding: 8px 16px; font-size: 0.93rem; border-radius: 14px; }
.btn.danger { color: var(--clay-deep); }
.btn.wa { background: var(--wa); box-shadow: 0 4px 0 var(--wa-deep); }
.btn.wa:active { box-shadow: none; }
.btn.block { width: 100%; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.link { appearance: none; background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
select, input, textarea { font: inherit; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 14px; padding: 11px 13px; min-height: 50px; width: 100%; }
select:focus, input:focus, textarea:focus { border-color: var(--brand); outline: none; }
textarea { min-height: 0; resize: vertical; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 0.93rem; }
.field.wide { flex-basis: 100%; }
.stepper { display: inline-flex; align-items: center; border-radius: 999px; background: var(--brand-soft); flex: none; }
.stepper button { appearance: none; border: 0; background: var(--paper); box-shadow: inset 0 0 0 2px var(--brand); width: 40px; height: 40px; margin: 2px; font-size: 1.3rem; font-weight: 700; line-height: 1; color: var(--brand-ink); cursor: pointer; border-radius: 50%; }
.stepper button:disabled { box-shadow: inset 0 0 0 2px var(--line); color: #b3bdb8; cursor: not-allowed; }
.stepper output { min-width: 28px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.card .chips { margin: 0; padding: 0; flex-wrap: wrap; }
.chip { appearance: none; font: 700 0.9rem var(--font); padding: 9px 16px; min-height: 42px; border-radius: 999px; border: 0; background: var(--paper); color: var(--ink); cursor: pointer; white-space: nowrap; box-shadow: inset 0 0 0 2px var(--line); flex: none; }
.chip[aria-pressed='true'] { background: var(--brand); color: #fff; box-shadow: none; }

/* cards */
.card { background: var(--paper); box-shadow: var(--shadow); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.card.fresh { box-shadow: 0 0 0 3px var(--brand), var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.row-card { flex-direction: row; align-items: center; flex-wrap: wrap; }
.card > .btn { align-self: flex-start; }
.card > .btn.block { align-self: stretch; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { font-size: 0.76rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; flex: none; }
.pill.ok { background: var(--brand-soft); color: var(--brand-ink); }
.pill.wait { background: var(--sun-soft); color: var(--sun-ink); }
.pill.warn { background: var(--sun); color: #3f2f02; }
.pill.stop { background: var(--clay-soft); color: var(--clay-deep); }
.pill.mute { background: #edf0ee; color: var(--muted); }
.pill.demo { background: var(--ink); color: #fff; }
.bar { height: 10px; background: #e7ece9; border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--brand); border-radius: 99px; min-width: 10px; }
.bar.tall { height: 16px; flex: 1; }
.bar.sun span { background: var(--sun); }
span.bar { display: block; }
.center { text-align: center; }
.note { font-size: 0.88rem; color: var(--muted); font-weight: 700; }
.note.ok { color: var(--brand-ink); }
.lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lines li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.lines li:first-child { border-top: 0; padding-top: 0; }
.qty { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.check li { align-items: flex-end; }
.check li > .grow { flex-basis: 100%; }
.callout { background: var(--brand-soft); color: var(--brand-ink); padding: 12px 14px; border-radius: 14px; font-size: 0.93rem; font-weight: 600; }
.callout.warn { background: var(--sun-soft); color: var(--sun-ink); }
.quote { background: var(--bg); border-radius: 12px; padding: 10px 12px; font-size: 0.95rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: 0.93rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.empty { border: 2px dashed var(--line); border-radius: var(--r); padding: 24px 16px; text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }

/* pictures: one sheet for the four workflow scenes, one for the items */
.scene { display: block; width: 100%; aspect-ratio: 3 / 2; background: var(--brand-soft) url(flow.webp) 0 0 / 200% 200% no-repeat; border-radius: 16px; }
.scene.s1 { background-position: 100% 0; }
.scene.s2 { background-position: 0 100%; }
.scene.s3 { background-position: 100% 100%; }
.scene.band { aspect-ratio: 5 / 2; background-size: 200% auto; }
.scene.band.s2, .scene.band.s3 { background-position-y: 78%; }
.scene.band.s0, .scene.band.s1 { background-position-y: 18%; }
.pic { width: 60px; height: 60px; border-radius: 16px; flex: none; display: block; background: #f7f5ef url(items.webp) 0 0 / 400% 400% no-repeat; }
.pic.sm { width: 48px; height: 48px; border-radius: 12px; }
.pic.lg { width: 76px; height: 76px; border-radius: 18px; }
.hero-img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 24px; display: block; background: var(--brand-soft); }
.wide-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; display: block; background: var(--brand-soft); }

/* home */
.welcome { gap: 16px; }
.welcome h1 { font-size: clamp(2rem, 9vw, 2.6rem); text-align: center; }
.welcome .lead { text-align: center; margin: -8px auto 0; }
.doors { display: grid; gap: 12px; }
.door { appearance: none; border: 0; cursor: pointer; font: inherit; text-align: left; border-radius: var(--r); padding: 10px 14px 10px 10px; display: flex; align-items: center; gap: 14px; color: var(--ink); background: var(--paper); box-shadow: 0 5px 0 var(--line), var(--shadow); margin-bottom: 5px; transition: transform 0.06s; }
.door:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--line); }
.door.give { background: var(--brand); color: #fff; box-shadow: 0 5px 0 var(--brand-deep), var(--shadow); }
.door.give:active { box-shadow: 0 1px 0 var(--brand-deep); }
.door .thumb { width: 92px; flex: none; border-radius: 14px; overflow: hidden; }
.door .thumb .scene { border-radius: 0; }
.door strong { font-size: 1.3rem; font-weight: 800; display: block; line-height: 1.15; }
.door span.t { font-size: 0.9rem; opacity: 0.9; }
.door .go { margin-left: auto; font-size: 1.6rem; font-weight: 800; opacity: 0.7; }
.sec-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.steps { list-style: none; margin: 0 -16px; padding: 2px 16px 12px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
.steps li { flex: none; width: min(70vw, 250px); scroll-snap-align: start; background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); padding: 8px 8px 14px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.steps .n { position: absolute; top: 16px; left: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--paper); color: var(--brand-ink); font-weight: 800; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18); }
.steps strong { padding: 0 8px; font-size: 1.05rem; font-weight: 800; }
.steps span.t { padding: 0 8px; color: var(--muted); font-size: 0.9rem; margin-top: -6px; }
@media (min-width: 820px) { .steps { margin: 0; padding: 2px 0 12px; } .steps li { flex: 1; width: auto; } }
.safe { display: flex; gap: 12px; align-items: center; background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px 14px; font-size: 0.93rem; }
.safe strong { font-weight: 800; }
.safe a { font-weight: 700; }
.safe-ic { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.safe-ic svg { width: 24px; height: 24px; }
.wa-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wa-row .btn { padding-left: 8px; padding-right: 8px; }
.minor { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: center; font-weight: 700; font-size: 0.93rem; }
.minor a { min-height: 44px; display: inline-flex; align-items: center; }
.share { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 700; color: var(--wa); min-height: 36px; }
.share svg { width: 20px; height: 20px; flex: none; }
.guide { background: var(--sun-soft); border-radius: var(--r); padding: 14px 16px; }
.guide summary, .capture summary { font-weight: 800; cursor: pointer; min-height: 32px; }
.guide ol { margin: 10px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 0.95rem; }
.guide .choices { margin-top: 10px; }

/* helper home */
.hello { display: flex; align-items: center; gap: 12px; }
.hello h1 { font-size: 1.55rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); padding: 10px 6px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; font-size: 0.74rem; font-weight: 700; color: var(--muted); line-height: 1.2; }
.stat svg { width: 22px; height: 22px; color: var(--brand); }
.stat.hot svg { color: #e8890c; }
.stat strong { font-size: 1.35rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.goal { background: var(--brand); color: #fff; border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.goal h2 { color: #fff; margin: 0; font-size: 1.1rem; }
.goal .bar { background: rgba(255, 255, 255, 0.28); height: 14px; }
.goal .bar span { background: var(--sun); }
.goal p { font-size: 0.92rem; font-weight: 600; }
.goal p strong { font-size: 1.3rem; font-weight: 800; }
.starter { display: flex; gap: 12px; align-items: center; background: var(--sun-soft); color: var(--sun-ink); border-radius: var(--r); padding: 12px 14px; font-weight: 700; font-size: 0.95rem; }
.starter svg { width: 28px; height: 28px; flex: none; color: #e8890c; }
.drives { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 12px; scrollbar-width: none; }
.drives::-webkit-scrollbar { display: none; }
.drive { appearance: none; border: 0; font: inherit; text-align: left; cursor: pointer; color: var(--ink); flex: none; width: min(62vw, 220px); scroll-snap-align: start; background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.drive.on { box-shadow: 0 0 0 3px var(--brand), var(--shadow); }
.drive strong { font-size: 1rem; font-weight: 800; line-height: 1.2; }
.need { flex-direction: row; align-items: center; gap: 12px; padding: 12px; }
.need h3 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.need .bar { margin: 6px 0 3px; height: 8px; }
.add { appearance: none; border: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 1.7rem; font-weight: 700; line-height: 1; cursor: pointer; flex: none; box-shadow: 0 4px 0 var(--brand-deep); margin-bottom: 4px; transition: transform 0.06s, box-shadow 0.06s; }
.add:active { transform: translateY(4px); box-shadow: none; }
.tickmark { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.tickmark svg { width: 24px; height: 24px; }
.listbar { position: fixed; left: 12px; right: 12px; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 9; max-width: 536px; margin: 0 auto; background: var(--ink); color: #fff; border-radius: 18px; padding: 10px 10px 10px 18px; display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; box-shadow: 0 10px 28px rgba(20, 32, 27, 0.3); animation: rise 0.25s ease-out; }
.listbar .cta { margin-left: auto; background: var(--brand); color: #fff; border-radius: 12px; padding: 10px 16px; font-weight: 800; }
@media (min-width: 820px) { .listbar { bottom: 20px; } }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }
.has-listbar { padding-bottom: 150px !important; }

/* journey: four pictures, the stage you are on is lit */
.journey { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.journey li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 0.74rem; font-weight: 700; color: var(--muted); text-align: center; line-height: 1.15; }
.journey li::before { content: ''; position: absolute; top: 25px; right: 50%; width: 100%; height: 5px; background: #e7ece9; }
.journey li:first-child::before { display: none; }
.journey li.done::before, .journey li.now::before { background: var(--brand); }
.journey .node { position: relative; z-index: 1; width: 54px; height: 54px; border-radius: 50%; border: 3px solid #e7ece9; background: var(--paper); overflow: hidden; display: grid; place-items: center; color: var(--muted); }
.journey .node .scene { position: absolute; height: 100%; width: auto; left: 50%; transform: translateX(-50%); border-radius: 0; filter: grayscale(1); opacity: 0.45; }
.journey .node svg { width: 26px; height: 26px; }
.journey li.done .node, .journey li.now .node { border-color: var(--brand); color: var(--brand); }
.journey li.done .node .scene, .journey li.now .node .scene { filter: none; opacity: 1; }
.journey li.now .node { box-shadow: 0 0 0 5px var(--brand-soft); }
.journey li.done, .journey li.now { color: var(--ink); }
.journey li.now { font-weight: 800; color: var(--brand-ink); }
.next { background: var(--bg); border-radius: 14px; padding: 10px 12px; font-size: 0.93rem; font-weight: 600; }

/* tickets */
.ticket { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: var(--bg); border-radius: 16px; padding: 14px; }
.ticket dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; flex: 1; min-width: 190px; font-size: 0.93rem; }
.ticket dt { color: var(--muted); }
.ticket dd { margin: 0; font-weight: 600; }
.qr { width: 104px; height: 104px; background: #fff; padding: 8px; border-radius: 12px; flex: none; }
.qr svg { width: 100%; height: 100%; display: block; }
.code { font: 700 1.1rem ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: 0.04em; }
.code.big { font-size: 1.8rem; letter-spacing: 0.14em; }
.collect { background: var(--brand-soft); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.collect .ticket { background: var(--paper); }
.collect.late { background: var(--sun-soft); }
.reply { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.reply .field { align-self: stretch; }
.timeline { list-style: none; margin: 0; padding: 0; }
.updates { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px; }
.updates ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.updates li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.92rem; flex-wrap: wrap; }
.updates time { color: var(--muted); font-size: 0.82rem; white-space: nowrap; }

/* celebration */
.party { text-align: center; align-items: stretch; position: relative; overflow: hidden; padding-top: 4px; }
.party h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
.party .lead { margin: 0 auto; }
.party .ticket, .party .next { text-align: left; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.confetti i { position: absolute; top: -14px; width: 9px; height: 14px; border-radius: 3px; background: var(--sun); animation: fall 2.4s ease-in forwards; }
.confetti i:nth-child(3n) { background: var(--brand); }
.confetti i:nth-child(3n + 1) { background: var(--clay); width: 8px; height: 8px; border-radius: 50%; }
@keyframes fall { to { transform: translateY(560px) rotate(520deg); opacity: 0; } }
.cheer { display: flex; align-items: center; gap: 12px; background: var(--brand-soft); color: var(--brand-ink); border-radius: var(--r); padding: 12px 14px; font-weight: 600; font-size: 0.95rem; animation: rise 0.25s ease-out; }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } .btn, .add, .door { transition: none; } .listbar, .cheer { animation: none; } }

/* asking for help, step by step */
.wiz-head { display: flex; align-items: center; gap: 12px; }
.dots { display: flex; gap: 6px; flex: 1; }
.dots span { flex: 1; height: 10px; border-radius: 5px; background: #e1e7e3; }
.dots span.on { background: var(--brand); }
.wiz-nav { display: flex; gap: 10px; position: sticky; bottom: calc(66px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 28%); padding: 16px 0 8px; z-index: 5; }
.wiz-nav .btn.grow { flex: 1; }
@media (min-width: 820px) { .wiz-nav { bottom: 0; } }
.choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.choices.one { grid-template-columns: 1fr; }
.choice { appearance: none; text-align: left; font: inherit; background: var(--paper); border: 0; box-shadow: inset 0 0 0 2px var(--line), 0 4px 0 var(--line); margin-bottom: 4px; border-radius: 16px; padding: 14px 16px; min-height: 58px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.choice strong { font-weight: 800; }
.choice span { color: var(--muted); font-size: 0.86rem; }
.choice[aria-pressed='true'] { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand), 0 4px 0 var(--brand); }
.tiles2 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tiles2 li { background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.tiles2 li.on { box-shadow: 0 0 0 3px var(--brand), var(--shadow); }
.tiles2 strong { font-size: 0.95rem; font-weight: 800; line-height: 1.2; }
.send { display: grid; gap: 10px; }
.done { text-align: center; align-items: center; padding-top: 24px; }
.tick { width: 76px; height: 76px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.tick svg { width: 46px; height: 46px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.check { appearance: none; background: none; border: 0; font: inherit; color: var(--ink); text-align: left; display: flex; gap: 10px; align-items: center; min-height: 44px; cursor: pointer; padding: 4px; width: 100%; }
.box { width: 24px; height: 24px; border: 2px solid #9aa8a1; border-radius: 8px; flex: none; display: grid; place-items: center; }
.check[aria-pressed='true'] .box { background: var(--brand); border-color: var(--brand); }
.check[aria-pressed='true'] .box::after { content: ''; width: 10px; height: 5px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translateY(-1px); }

/* staff screens */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.tilebox { background: var(--paper); box-shadow: var(--shadow); border-radius: var(--r); padding: 14px; text-decoration: none; color: var(--muted); display: flex; flex-direction: column; font-size: 0.88rem; font-weight: 600; line-height: 1.3; }
.tilebox strong { font-size: 2rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.flow-row { display: grid; grid-template-columns: minmax(120px, 220px) 1fr 36px; gap: 12px; align-items: center; font-size: 0.93rem; }
.flow-row strong { text-align: right; font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; background: var(--paper); box-shadow: var(--shadow); border-radius: var(--r); }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); white-space: nowrap; }
td:last-child { white-space: normal; min-width: 180px; }
thead th { border-top: 0; color: var(--muted); font-size: 0.8rem; font-weight: 700; }
tbody th { font-weight: 700; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
td.num:last-child { min-width: 0; }
.today { display: flex; gap: 8px; flex-wrap: wrap; }
.today span { background: var(--paper); box-shadow: var(--shadow); border-radius: 999px; padding: 7px 14px; font-size: 0.86rem; font-weight: 700; color: var(--muted); }
.today strong { color: var(--ink); font-weight: 800; }

/* trust, fold-away sections, footer */
.verified { display: inline-flex; vertical-align: -4px; margin-right: 4px; color: var(--brand); }
.verified svg { width: 18px; height: 18px; }
.vline { font-size: 0.86rem; font-weight: 800; color: var(--brand-ink); }
.warn-card { box-shadow: inset 5px 0 0 var(--clay), var(--shadow); }
.never { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.never li::marker { color: var(--clay-deep); }
.never.plain li::marker { color: var(--brand); }
.verify { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.verify li::marker { font-weight: 800; color: var(--brand); }
details.more { background: var(--paper); box-shadow: var(--shadow); border-radius: var(--r); }
details.more > summary { cursor: pointer; padding: 14px 16px; font-weight: 800; min-height: 52px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: '+'; font-size: 1.4rem; color: var(--brand); line-height: 1; font-weight: 700; }
details.more[open] > summary::after { content: '\2212'; }
details.more > .more-in { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.foot { padding-top: 16px; padding-bottom: 40px; color: var(--muted); font-size: 0.82rem; display: flex; flex-direction: column; gap: 6px; text-align: center; }
.foot.has-tabs { padding-bottom: 100px; }
@media (min-width: 820px) { .foot.has-tabs { padding-bottom: 40px; } }
.foot strong { color: var(--ink); }
.demo-note { margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--line); }
#toast { position: fixed; left: 16px; right: 16px; top: 64px; margin: 0 auto; max-width: 460px; padding: 14px 18px; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 700; box-shadow: 0 10px 28px rgba(20, 32, 27, 0.3); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity 0.2s, transform 0.2s; z-index: 30; }
#toast.show { opacity: 1; transform: none; }
#toast.bad { background: var(--clay-deep); }
@media (prefers-reduced-motion: reduce) { #toast { transition: none; } }

/* tappable how-it-works cards (demo) and the Root 7 mark in the footer */
.steps button { appearance: none; border: 0; background: none; font: inherit; color: inherit; text-align: left; padding: 0; cursor: pointer; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.steps .try { margin: 2px 8px 0; align-self: flex-start; background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; font-size: 0.86rem; padding: 6px 12px; border-radius: 999px; }
.by { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; color: var(--muted); font-weight: 600; }
.by img { height: 24px; width: auto; display: block; opacity: 0.85; }

/* choose a drop-off place before choosing items */
.spots { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.spots::-webkit-scrollbar { display: none; }
.spot { appearance: none; border: 0; font: inherit; text-align: left; cursor: pointer; color: var(--ink); flex: none; scroll-snap-align: start; background: var(--paper); border-radius: 16px; padding: 10px 14px; display: flex; flex-direction: column; gap: 1px; box-shadow: inset 0 0 0 2px var(--line); min-height: 56px; }
.spot strong { font-weight: 800; font-size: 0.98rem; white-space: nowrap; }
.spot .sub { white-space: nowrap; }
.spot.on { background: var(--brand); color: #fff; box-shadow: 0 4px 0 var(--brand-deep); margin-bottom: 4px; }
.spot.on .sub { color: #fff; opacity: 0.9; }
.spot:disabled { opacity: 0.5; cursor: not-allowed; }

.field.area { background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); padding: 12px 14px; }

/* map picker */
.map { position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); background: #cfe6ee; }
.map > svg { display: block; width: 100%; aspect-ratio: 514 / 400; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.map .sea { fill: #cfe6ee; }
.map .land { fill: #f4f1e6; stroke: #d9d3bf; stroke-width: 0.6; }
.map .mtn { fill: #cfd9c6; }
.map .lbl text { fill: #6b766f; text-anchor: middle; font-weight: 600; pointer-events: none; }
.map .pin { cursor: pointer; }
.map .pin .hit { fill: transparent; stroke: none; }
.map .pin circle:last-child { fill: var(--brand); stroke: #fff; }
.map .pin.on .hit { fill: var(--brand); opacity: 0.22; }
.map .pin.on circle:last-child { fill: var(--sun); stroke: var(--brand-deep); }
.map .pin.off circle:last-child { fill: #b3bdb8; }
.map .mid { fill: none; stroke: var(--ink); stroke-width: 0.5; opacity: 0.5; pointer-events: none; }
.map-ctl { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 8px; }
.map-ctl button { appearance: none; border: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--paper); color: var(--ink); font-size: 1.5rem; font-weight: 700; line-height: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); cursor: pointer; }
.map-ctl button:disabled { opacity: 0.4; }
.placecard { text-decoration: none; color: var(--ink); flex-wrap: nowrap; }
.placecard .link { flex: none; }
button.link.center { align-self: center; min-height: 44px; }

.map .spot2 { cursor: pointer; }
.map .spot2 .hit { fill: transparent; }
.map .spot2 circle:last-child { fill: #8f9a94; stroke: #fff; }
.map .spot2.on circle:last-child { fill: var(--ink); }
.map .bubble { cursor: pointer; }
.map .bubble circle { fill: #fff; stroke: #8f9a94; }
.map .bubble text { fill: var(--ink); text-anchor: middle; font-weight: 800; pointer-events: none; }

.pic.plain { background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.pic.plain svg { width: 55%; height: 55%; }

.pic.p2 { background-image: url(items2.webp); background-size: 500% 400%; }

/* live street map */
.map { isolation: isolate; }
#lmap { height: min(62vh, 360px); width: 100%; background: #e8eee9; font: inherit; }
.lbubble { background: #fff; border: 2px solid #8f9a94; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.8rem; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); }
