/* &GATHER design tokens — palette from the Developer Handoff, section 21.
   Gathering themes override --accent / --ceremonial at runtime (see applyGatheringTheme in app.js). */
:root {
  --ivory: #F5F0E8;
  --verdigris: #5F8F87;
  --evergreen: #173F3A;
  --sandstone: #C9B8A3;
  --timber: #8A6846;
  --mist: #AFC7CE;
  --charcoal: #2D302F;
  --blush: #D8B5A5;

  --bg: var(--ivory);
  --surface: #FBF8F3;
  --surface-2: #EFE7DA;
  --surface-accent: #E6EEEB;
  --text: var(--charcoal);
  --muted: #6E6C66;
  --faint: #9A968E;
  --line: rgba(45, 48, 47, .12);
  --accent: var(--verdigris);
  --accent-strong: #4C7A72;
  --on-accent: #FFFFFF;
  --ceremonial: var(--timber);
  --ground: var(--evergreen);
  --shadow: 0 1px 2px rgba(23, 63, 58, .06), 0 8px 24px rgba(23, 63, 58, .07);
  --wash-a: rgba(175, 199, 206, .45);
  --wash-b: rgba(216, 181, 165, .40);
  --wash-c: rgba(95, 143, 135, .22);

  --sev-info: #5F8F87;
  --sev-important: #8A6846;
  --sev-action: #A0613C;
  --sev-critical: #A63D3D;

  --serif-display: "Playfair Display", Georgia, serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --_dark: 1; }
}
:root[data-theme="dark"], :root[data-mode="dark"] {
  --bg: #0F1F1D;
  --surface: #152826;
  --surface-2: #1C3330;
  --surface-accent: #1E3B37;
  --text: #F2ECE2;
  --muted: #AEB7B2;
  --faint: #7D8A85;
  --line: rgba(245, 240, 232, .12);
  --accent: #72AFA0;
  --accent-strong: #5F9A8C;
  --on-accent: #0F1F1D;
  --ceremonial: #C4935F;
  --ground: #9CC7BC;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .35);
  --wash-a: rgba(95, 143, 135, .28);
  --wash-b: rgba(193, 170, 162, .18);
  --wash-c: rgba(196, 147, 95, .12);
  --sev-info: #72AFA0;
  --sev-important: #C4935F;
  --sev-action: #D58C5E;
  --sev-critical: #E07A7A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: #E9E2D6;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
:root[data-mode="dark"] body { background: #08110F; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Stage: phone frame on desktop, full screen on phones ---------- */
.stage { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.device {
  position: relative;
  width: 390px; height: 844px; max-height: calc(100vh - 48px);
  background: var(--bg);
  border-radius: 44px;
  overflow: hidden;
  box-shadow: 0 0 0 10px #1b1d1c, 0 30px 80px rgba(0,0,0,.35);
  display: flex; flex-direction: column;
}
@media (max-width: 500px), (display-mode: standalone) {
  .stage { padding: 0; display: block; }
  .device { width: 100%; height: 100dvh; max-height: none; border-radius: 0; box-shadow: none; }
}
.proto-flag {
  position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  z-index: 30; font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
  padding: 3px 10px; border-radius: 99px; white-space: nowrap; pointer-events: none;
}
.view {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: calc(44px + env(safe-area-inset-top)) 20px 28px;
  scroll-behavior: smooth;
  position: relative;
}
.view.no-pad { padding: 0; }
.view::-webkit-scrollbar { width: 0; }

/* Ethereal watercolor wash */
.wash { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.wash::before, .wash::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(40px);
}
.wash::before { width: 340px; height: 420px; left: -140px; top: 120px;
  background: radial-gradient(circle at 40% 40%, var(--wash-a), transparent 70%); }
.wash::after { width: 360px; height: 420px; right: -160px; top: -60px;
  background: radial-gradient(circle at 50% 50%, var(--wash-b), transparent 70%); }
.wash .w3 { position: absolute; width: 300px; height: 300px; right: -80px; bottom: 60px; border-radius: 50%;
  filter: blur(46px); background: radial-gradient(circle, var(--wash-c), transparent 70%); }
.wash .flecks { position: absolute; inset: 0; opacity: .55;
  background-image:
    radial-gradient(1.2px 1.2px at 18% 22%, var(--ceremonial) 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 14%, var(--ceremonial) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 84% 38%, var(--ceremonial) 50%, transparent 51%),
    radial-gradient(1px 1px at 12% 58%, var(--ceremonial) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 64% 70%, var(--ceremonial) 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 84%, var(--ceremonial) 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 82%, var(--ceremonial) 50%, transparent 51%); }
.geo { position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image:
    linear-gradient(30deg, var(--text) 1px, transparent 1px),
    linear-gradient(150deg, var(--text) 1px, transparent 1px);
  background-size: 28px 48px; }
.layer { position: relative; z-index: 1; }

/* ---------- Typography ---------- */
.display { font-family: var(--serif-display); font-weight: 500; letter-spacing: .01em; line-height: 1.15; margin: 0; }
.h1 { font-family: var(--serif-display); font-weight: 400; font-size: 28px; line-height: 1.2; margin: 0; }
.h2 { font-family: var(--serif-display); font-weight: 400; font-size: 22px; margin: 0; }
.serif { font-family: var(--serif); }
.eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.eyebrow.accent { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.center { text-align: center; }
.caps-title { font-family: var(--serif-display); text-transform: uppercase; letter-spacing: .03em; font-size: 30px; line-height: 1.15; margin: 0; color: var(--ground); }
:root[data-mode="dark"] .caps-title { color: var(--text); }

.divider { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px auto; }
.divider::before, .divider::after { content: ""; height: 1px; width: 56px; background: var(--ceremonial); opacity: .7; }
.divider i { width: 7px; height: 7px; background: var(--ceremonial); transform: rotate(45deg); display: block; }

/* ---------- Icons ---------- */
.ic { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.sm { width: 18px; height: 18px; }
.ic.lg { width: 28px; height: 28px; }
.ic-ring { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--sandstone); display: grid; place-items: center; color: var(--ceremonial); flex: none; background: var(--surface); }
:root[data-mode="dark"] .ic-ring { border-color: rgba(196,147,95,.45); background: transparent; }

/* ---------- Top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 -6px 8px; min-height: 40px; }
.topbar h1 { font-family: var(--serif-display); font-weight: 400; font-size: 19px; margin: 0; text-align: center; flex: 1; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: var(--text); position: relative; }
.icon-btn:hover { background: var(--surface-2); }
.badge { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--ceremonial); color: #fff; font-size: 10px; font-weight: 600; display: grid; place-items: center; padding: 0 4px; }

/* ---------- Cards & lists ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 16px; }
.section { margin-top: 22px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.link-btn { background: none; border: 0; color: var(--accent); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; padding: 4px 0; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-align: left; width: 100%; background: none; border: 0; color: inherit; }
.row + .row { border-top: 1px solid var(--line); }
.row .grow { flex: 1; min-width: 0; }
.row .chev { color: var(--faint); }
.row-title { font-weight: 500; font-size: 15px; }
.row-sub { color: var(--muted); font-size: 13px; }
.kicker { font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.kicker.personal { color: var(--ceremonial); }

.option { display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px 18px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; color: inherit; margin-bottom: 12px; }
.option:hover { border-color: var(--accent); }
.option .t { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.option .s { font-size: 13px; color: var(--muted); }
.option .ic { color: var(--ceremonial); }

/* Hero */
.hero { position: relative; height: 210px; border-radius: var(--radius); overflow: hidden; color: #fff; box-shadow: var(--shadow); }
.hero svg.land { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .cap { position: absolute; left: 18px; bottom: 34px; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.hero .place { font-family: var(--serif); font-style: italic; font-size: 22px; display: flex; align-items: center; gap: 6px; }
.hero + .card { margin: -26px 10px 0; position: relative; }

/* Countdown */
.countdown { background: var(--accent); color: #fff; border-radius: 16px; padding: 18px 16px 16px; text-align: center; box-shadow: 0 10px 30px rgba(23,63,58,.25); border: 1px solid rgba(255,255,255,.35); }
:root[data-mode="dark"] .countdown { background: #2E5B54; color: var(--text); border-color: rgba(114,175,160,.4); }
.countdown .num { font-family: var(--serif-display); font-size: 72px; line-height: 1; }
.countdown .unit { letter-spacing: .3em; font-size: 18px; margin-top: 6px; }
.countdown .lbl { font-size: 13px; opacity: .9; margin-top: 6px; }
.countdown.inline { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; }
.countdown.inline .num { font-size: 42px; }
.countdown.inline .unit { font-size: 12px; margin: 0; }

/* Buttons */
.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 99px; padding: 13px 22px; border: 1px solid transparent; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-strong); }
.btn.secondary { background: transparent; border-color: var(--sandstone); color: var(--text); }
.btn.ghost { background: transparent; color: var(--accent); padding: 10px 12px; }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 14px; font-size: 11px; }
.btn:disabled { opacity: .5; cursor: default; }

.cta { display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px 18px; border-radius: 16px; border: 0; text-align: left; color: inherit; margin-top: 12px; }
.cta.accent { background: var(--accent); color: #fff; }
:root[data-mode="dark"] .cta.accent { background: #2E5B54; color: var(--text); }
.cta.warm { background: #EEDFD0; }
:root[data-mode="dark"] .cta.warm { background: #4A3A33; }
.cta .t { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.cta .s { font-size: 13px; opacity: .85; }
.cta .grow { flex: 1; }

/* Explore chips */
.cats { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; color: inherit; flex: none; width: 62px; }
.cat span { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--sandstone); background: transparent; border-radius: 99px; padding: 7px 14px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--text); }
.chip.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.chip-scroll { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; }
.chip-scroll::-webkit-scrollbar { display: none; }
.chip-scroll .chip { flex: none; }

/* Segmented */
.seg { display: flex; background: var(--surface-2); border-radius: 99px; padding: 4px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 8px; border-radius: 99px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* Timeline */
.timeline { position: relative; margin-top: 8px; }
.day-label { font-family: var(--serif); font-size: 20px; font-weight: 500; margin: 18px 0 8px; }
.tl-item { display: grid; grid-template-columns: 58px 1fr; gap: 12px; margin-bottom: 10px; }
.tl-time { font-size: 12px; color: var(--muted); padding-top: 14px; text-align: right; }
.tl-card { border-radius: 14px; padding: 12px 14px; border: 1px solid var(--line); background: var(--surface); text-align: left; width: 100%; color: inherit; display: block; }
.tl-card.official { border-left: 3px solid var(--accent); }
.tl-card.personal { border-left: 3px dashed var(--ceremonial); background: transparent; }
.tag { display: inline-block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--surface-accent); color: var(--accent); }
.tag.personal { background: rgba(138,104,70,.12); color: var(--ceremonial); }
.tag.sev-info { background: color-mix(in srgb, var(--sev-info) 14%, transparent); color: var(--sev-info); }
.tag.sev-important { background: color-mix(in srgb, var(--sev-important) 16%, transparent); color: var(--sev-important); }
.tag.sev-action { background: color-mix(in srgb, var(--sev-action) 16%, transparent); color: var(--sev-action); }
.tag.sev-critical { background: color-mix(in srgb, var(--sev-critical) 16%, transparent); color: var(--sev-critical); }

/* Experience cards */
.xp { display: flex; gap: 14px; padding: 12px; align-items: center; width: 100%; text-align: left; border: 0; background: none; color: inherit; }
.xp + .xp { border-top: 1px solid var(--line); }
.xp-art { width: 64px; height: 64px; border-radius: 14px; flex: none; display: grid; place-items: center; color: rgba(255,255,255,.92); }
.art-food { background: linear-gradient(135deg, #C9A27E, #8A6846); }
.art-nature { background: linear-gradient(135deg, #8DB3A5, #3E6E64); }
.art-adventure { background: linear-gradient(135deg, #AFC7CE, #4F7F86); }
.art-history { background: linear-gradient(135deg, #B7AA98, #6E6455); }
.art-culture { background: linear-gradient(135deg, #D8B5A5, #9C6F5E); }
.art-wellness { background: linear-gradient(135deg, #CFC3D6, #8C7D96); }
.art-connection { background: linear-gradient(135deg, #E2C9A8, #B08455); }
.art-retirement { background: linear-gradient(135deg, #5F8F87, #173F3A); }
.art-events { background: linear-gradient(135deg, #AFC7CE, #5F8F87); }
.art-shopping { background: linear-gradient(135deg, #E2C9A8, #8A6846); }
.art-tattoo { background: linear-gradient(135deg, #8E8A86, #2D302F); }
.art-hotel { background: linear-gradient(135deg, #C9B8A3, #7E6A55); }
.detail-art { height: 190px; border-radius: var(--radius); display: grid; place-items: center; margin-bottom: 16px; position: relative; overflow: hidden; }
.detail-art .ic { width: 64px; height: 64px; stroke-width: 1; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; font-size: 14px; margin: 14px 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.action-grid .btn { padding: 12px 10px; font-size: 11px; }
.note { font-size: 12.5px; color: var(--muted); background: var(--surface-2); border-radius: 12px; padding: 10px 12px; display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; }
.note .ic { width: 16px; height: 16px; margin-top: 2px; }

/* Forms */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12px; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.field > span b { color: var(--sev-action); font-weight: 600; }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px 14px; outline: none; }
.input:focus { border-color: var(--accent); }
.input.invalid { border-color: var(--sev-critical); }
.err { color: var(--sev-critical); font-size: 12px; margin-top: 4px; display: none; }
.input.invalid + .err { display: block; }
textarea.input { min-height: 110px; resize: vertical; }
.radio-row { display: flex; gap: 8px; }
.radio-row label { flex: 1; }
.radio-row input { position: absolute; opacity: 0; pointer-events: none; }
.radio-row .pill { display: block; text-align: center; padding: 11px 6px; border: 1px solid var(--sandstone); border-radius: 12px; font-size: 13px; font-weight: 500; }
.radio-row input:checked + .pill { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.radio-row input:focus-visible + .pill { outline: 2px solid var(--accent); outline-offset: 2px; }
.radio-col label { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: var(--surface); }
.radio-col input { accent-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; font-size: 14px; }
.check input { accent-color: var(--accent); width: 18px; height: 18px; }
.plus-one { border: 1px dashed var(--sandstone); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toggle { position: relative; width: 46px; height: 28px; flex: none; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle i { position: absolute; inset: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; transition: .2s; }
.toggle i::after { content: ""; position: absolute; width: 22px; height: 22px; left: 2px; top: 2px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .2s; }
.toggle input:checked + i { background: var(--accent); border-color: var(--accent); }
.toggle input:checked + i::after { transform: translateX(18px); }
.toggle input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Chat */
.chat { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 18px; font-size: 14.5px; white-space: pre-line; }
.msg.me { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg .src { display: block; font-size: 11px; color: var(--muted); margin-top: 6px; }
.msg .suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.composer { display: flex; gap: 8px; align-items: center; padding: 8px 8px 8px 18px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); position: sticky; bottom: 0; margin-top: 16px; }
.composer input { flex: 1; border: 0; background: transparent; outline: none; padding: 8px 0; }
.send { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }

/* Avatars */
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif-display); font-size: 16px; color: #fff; flex: none; }
.avatar.lg { width: 84px; height: 84px; font-size: 30px; }

/* Tab bar */
.tabbar { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: 8px 8px calc(14px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); position: relative; z-index: 5; }
.tabbar[hidden] { display: none; }
.tab { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; padding: 4px 0; }
.tab.on { color: var(--accent); }
.tab.center { position: relative; }
.tab.center .orb { width: 62px; height: 62px; margin-top: -34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(23,63,58,.3), 0 0 0 5px var(--surface); }
:root[data-mode="dark"] .tab.center .orb { background: radial-gradient(circle at 50% 40%, #3a4b40, #1a2a26); color: #E8C48E; box-shadow: 0 0 0 1px rgba(196,147,95,.5), 0 0 24px rgba(196,147,95,.25), 0 0 0 5px var(--surface); }
.tab.center .orb .ic { width: 28px; height: 28px; }

/* Sheet (modal) */
.scrim { position: absolute; inset: 0; background: rgba(15, 24, 22, .45); z-index: 40; display: flex; align-items: flex-end; animation: fade .2s ease; }
.sheet { background: var(--bg); width: 100%; max-height: 88%; overflow-y: auto; border-radius: 26px 26px 0 0; padding: 10px 20px 28px; animation: rise .25s ease; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.sheet h2 { font-family: var(--serif-display); font-weight: 400; font-size: 22px; margin: 4px 0 6px; }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

.toast { position: absolute; left: 50%; bottom: 100px; transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 99px; font-size: 13px; opacity: 0; pointer-events: none; transition: .25s; z-index: 60; max-width: 86%; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Onboarding */
.onboard { min-height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 64px 26px 30px; position: relative; }
.onboard .slide { flex: 1; display: flex; flex-direction: column; align-items: center; width: 100%; position: relative; z-index: 1; }
.dots { display: flex; gap: 10px; justify-content: center; margin: 18px 0; position: relative; z-index: 1; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--sandstone); padding: 0; opacity: .6; }
.dots button.on { background: var(--accent); opacity: 1; }
.amp { font-family: var(--serif-display); font-size: 120px; line-height: 1; color: var(--ceremonial); margin: 30px 0 10px; font-weight: 400; }
.pairs { font-family: var(--serif); font-size: 22px; line-height: 1.6; }

/* Be Present */
.present { position: absolute; inset: 0; z-index: 50; background: radial-gradient(circle at 50% 40%, #1E3B37, #0A1513 70%); color: #F2ECE2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; }
.breath { width: 160px; height: 160px; border-radius: 50%; border: 1px solid rgba(232,196,142,.5); display: grid; place-items: center; animation: breathe 10s ease-in-out infinite; margin-bottom: 36px; box-shadow: 0 0 60px rgba(232,196,142,.12) inset; }
@keyframes breathe { 0%, 100% { transform: scale(.82); } 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .breath { animation: none; } * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

.empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.stack > * + * { margin-top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Install guide */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps li::before { content: counter(step); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.kbd { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); font-weight: 500; white-space: nowrap; }
.kbd .ic { width: 15px; height: 15px; }
