/* Snapmake — minimal UI */
:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --subtle: #f3f3f1;
  --border: #e8e8e5;
  --text: #0d0d0d;
  --muted: #6e6e6a;
  --faint: #a3a39e;
  --accent: #ff5a1f;
  --accent-soft: #fff1eb;
  --good: #1a9f5b;
  --warn-soft: #fff4e5;
  --warn: #b45309;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px -8px rgba(0,0,0,.08);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --surface: #151517;
    --subtle: #1c1c1f;
    --border: #262629;
    --text: #f4f4f2;
    --muted: #9a9a96;
    --faint: #66666a;
    --accent-soft: #2a1710;
    --warn-soft: #2a1f0e;
    --warn: #f0a24a;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -8px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased; letter-spacing: -.005em;
}
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: env(safe-area-inset-top) max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px);
}
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 1rem; text-decoration: none; letter-spacing: -.02em; }
.logo svg { width: 24px; height: 24px; color: var(--text); }
.ghost-btn {
  display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 8px 12px;
  border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--muted); transition: background .2s, color .2s;
}
.ghost-btn:hover { background: var(--subtle); color: var(--text); }
.ghost-btn svg { width: 18px; height: 18px; }
.count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--text); color: var(--bg); font-size: .7rem; display: inline-grid; place-items: center; }

main { width: 100%; max-width: 680px; margin: 0 auto; padding: 0 20px 80px; }
.view { display: none; }
.view.is-active { display: block; animation: in .45s var(--ease) both; }
@keyframes in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Home ---------- */
.home { padding-top: clamp(40px, 12vh, 120px); text-align: center; }
.home h1 { margin: 0; font-size: clamp(2rem, 6vw, 2.9rem); line-height: 1.08; font-weight: 600; letter-spacing: -.04em; }
.sub { margin: 12px auto 32px; color: var(--muted); font-size: 1.05rem; max-width: 42ch; text-wrap: balance; }

.composer {
  background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 8px;
  box-shadow: var(--shadow); text-align: left; transition: border-color .2s;
}
.composer:focus-within { border-color: color-mix(in srgb, var(--text) 25%, var(--border)); }

.drop {
  border-radius: 21px; background: var(--subtle); min-height: 220px; display: grid; cursor: pointer;
  transition: background .2s, outline-color .2s; outline: 2px dashed transparent; outline-offset: -8px;
}
.drop:hover { background: color-mix(in srgb, var(--subtle) 70%, var(--border)); }
.drop.is-drag { outline-color: var(--accent); background: var(--accent-soft); }
.drop.has-photos { min-height: 0; cursor: default; background: transparent; }
.drop.has-photos:hover { background: transparent; }
.drop-empty { display: grid; place-items: center; align-content: center; gap: 4px; padding: 28px; text-align: center; }
.drop-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 10px;
  background: var(--surface); box-shadow: var(--shadow); transition: transform .3s var(--ease);
}
.drop:hover .drop-icon { transform: translateY(-2px) scale(1.04); }
.drop-icon svg { width: 24px; height: 24px; }
.drop-title { font-weight: 600; font-size: 1.02rem; }
.drop-hint { color: var(--muted); font-size: .9rem; }

.thumbs { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; position: relative; }
.thumbs li { position: relative; width: 92px; height: 92px; border-radius: 16px; overflow: hidden; background: var(--subtle); animation: pop .35s var(--ease) both; }
.thumbs.one li:first-child { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 21px; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .rm {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px);
}
.thumbs .rm svg { width: 12px; height: 12px; }
.thumbs .add {
  display: grid; place-items: center; border: 1.5px dashed var(--border); background: transparent; color: var(--muted); cursor: pointer;
  transition: color .2s, border-color .2s;
}
.thumbs.one .add {
  position: absolute; right: 12px; bottom: 12px; width: auto; height: auto; padding: 8px 12px 8px 10px; border: 0; border-radius: 999px;
  background: rgba(0,0,0,.55); color: #fff; font-size: .84rem; font-weight: 500; backdrop-filter: blur(6px); display: flex; gap: 4px; align-items: center;
}
.thumbs .add:hover { color: var(--text); border-color: var(--faint); }
.thumbs.one .add:hover { color: #fff; background: rgba(0,0,0,.7); }
.thumbs .add svg { width: 20px; height: 20px; }
.thumbs.one .add svg { width: 15px; height: 15px; }
.thumbs .add span { display: none; }
.thumbs.one .add span { display: inline; }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }

.field { display: flex; align-items: flex-end; gap: 8px; padding: 8px 4px 2px 14px; }
.field textarea {
  flex: 1; min-height: 44px; max-height: 160px; resize: none; border: 0; outline: 0; background: transparent; color: var(--text);
  font-family: inherit; font-size: 1.02rem; line-height: 1.5; padding: 10px 0; overflow: hidden;
}
.field textarea::placeholder { color: var(--faint); }
.send {
  width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; background: var(--text); color: var(--bg);
  display: grid; place-items: center; transition: transform .2s var(--ease), opacity .2s;
}
.send:hover { transform: scale(1.06); }
.send:active { transform: scale(.96); }
.send svg { width: 20px; height: 20px; }
.send.is-dim { opacity: .2; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.chip {
  border: 1px solid var(--border); background: transparent; border-radius: 999px; padding: 7px 14px; font-size: .88rem; color: var(--muted);
  transition: color .2s, border-color .2s, background .2s;
}
.chip:hover { color: var(--text); border-color: var(--faint); background: var(--surface); }

.foot { margin-top: 44px; color: var(--faint); font-size: .84rem; }
.foot a { color: var(--muted); text-underline-offset: 3px; }
.dot-sep { margin: 0 6px; }
.text-btn { border: 0; background: none; padding: 0; color: var(--text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--faint); }
.text-btn:hover { text-decoration-color: var(--text); }

/* ---------- Working ---------- */
.scan { padding-top: clamp(30px, 8vh, 80px); text-align: center; }
.scan-media { position: relative; max-width: 460px; margin: 0 auto; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: var(--subtle); box-shadow: var(--shadow); }
.scan-media img { width: 100%; height: 100%; object-fit: cover; }
.scan-media:not(.has-img) img { display: none; }
.scan-media:not(.has-img) { aspect-ratio: 1; width: 96px; border-radius: 50%; }
.scan-sweep {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%);
  background-size: 250% 100%; animation: sweep 1.8s ease-in-out infinite;
}
.scan-media:not(.has-img) .scan-sweep { background-image: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--accent) 45%, transparent) 50%, transparent 70%); }
@keyframes sweep { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.scan-media.done .scan-sweep { display: none; }
.scan-status { margin: 26px 0 14px; font-size: 1.1rem; font-weight: 500; letter-spacing: -.01em; min-height: 1.6em; }
.scan-bar { width: 180px; height: 4px; margin: 0 auto 26px; border-radius: 4px; background: var(--border); overflow: hidden; }
.scan-bar div { height: 100%; width: 0; background: var(--text); border-radius: 4px; transition: width .8s var(--ease); }

.tags { position: absolute; inset: 0; pointer-events: none; }
.tag {
  position: absolute; transform: translate(-50%, -50%); padding: 5px 10px; border-radius: 999px; white-space: nowrap;
  background: rgba(255,255,255,.92); color: #111; font-size: .78rem; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.18);
  animation: tagIn .45s var(--ease) both; backdrop-filter: blur(6px);
}
@keyframes tagIn { from { opacity: 0; transform: translate(-50%, -30%) scale(.9); } }

/* ---------- Result ---------- */
.result { padding-top: 4px; }
.back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 14px -6px; padding: 6px 12px 6px 6px; border: 0; background: none; color: var(--muted); font-size: .92rem; border-radius: 999px; }
.back:hover { color: var(--text); background: var(--subtle); }
.back svg { width: 18px; height: 18px; }

.r-media { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--subtle); margin-bottom: 24px; }
.r-media img { width: 100%; height: 100%; object-fit: cover; }
.r-kicker { color: var(--accent); font-size: .85rem; font-weight: 600; margin: 0 0 8px; }
.r-title { margin: 0; font-size: clamp(1.9rem, 5.5vw, 2.6rem); line-height: 1.1; font-weight: 600; letter-spacing: -.04em; text-wrap: balance; }
.r-summary { margin: 12px 0 0; color: var(--muted); font-size: 1.05rem; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.meta li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--subtle); font-size: .88rem; font-weight: 500; }
.meta svg { width: 15px; height: 15px; color: var(--muted); }

.cta-row { display: flex; gap: 8px; margin: 24px 0 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px; border: 0; border-radius: 16px;
  font-weight: 600; font-size: 1rem; transition: transform .2s var(--ease), background .2s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { flex: 1; background: var(--text); color: var(--bg); }
.btn-primary:hover { opacity: .88; }
.btn-secondary { background: var(--subtle); color: var(--text); }
.btn-secondary:hover { background: var(--border); }
.btn-icon { width: 52px; padding: 0; background: var(--subtle); color: var(--text); }
.btn-icon:hover { background: var(--border); }
.btn[disabled] { opacity: .35; pointer-events: none; }

.notice { display: flex; gap: 12px; margin: 20px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--warn-soft); font-size: .94rem; line-height: 1.5; }
.notice svg { width: 20px; height: 20px; flex: none; color: var(--warn); margin-top: 1px; }
.notice b { font-weight: 600; }
.notice.info { background: var(--subtle); }
.notice.info svg { color: var(--muted); }

.section { margin-top: 44px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.section h2 { margin: 0; font-size: 1.3rem; font-weight: 600; letter-spacing: -.025em; }
.section-head span { color: var(--muted); font-size: .88rem; }

.list { list-style: none; margin: 0; padding: 0; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.list li + li { border-top: 1px solid var(--border); }
.check { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; transition: background .15s; }
.check:hover { background: var(--subtle); }
.check input { appearance: none; width: 22px; height: 22px; flex: none; margin: 0; border-radius: 50%; border: 1.6px solid var(--faint); display: grid; place-items: center; cursor: pointer; transition: all .2s var(--ease); }
.check input:checked { background: var(--good); border-color: var(--good); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.check .name { flex: 1; min-width: 0; }
.check .name small { display: block; color: var(--muted); font-size: .84rem; }
.check input:checked ~ .name { color: var(--faint); text-decoration: line-through; }
.check .amt { color: var(--muted); font-size: .92rem; text-align: right; white-space: nowrap; }
.buy { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: .72rem; font-weight: 600; vertical-align: 1px; }
.tools { margin: 12px 2px 0; color: var(--muted); font-size: .92rem; }
.tools b { color: var(--text); font-weight: 600; }

.progress-mini { display: inline-flex; align-items: center; gap: 8px; }
.progress-mini i { display: block; width: 64px; height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; }
.progress-mini i b { display: block; height: 100%; width: 0; background: var(--good); transition: width .5s var(--ease); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.step { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 18px 18px 18px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: opacity .3s; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; font-weight: 600; font-size: .92rem;
  background: var(--subtle); color: var(--text); transition: background .2s, color .2s, transform .2s var(--ease); font-variant-numeric: tabular-nums;
}
.step-num:hover { transform: scale(1.06); }
.step-num svg { width: 16px; height: 16px; }
.step.done { opacity: .5; }
.step.done .step-num { background: var(--good); color: #fff; }
.step h3 { margin: 5px 0 4px; font-size: 1.05rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.35; }
.step p { margin: 0; color: var(--muted); }
.step .hint { margin-top: 10px; font-size: .9rem; color: var(--muted); display: flex; gap: 8px; }
.step .hint b { color: var(--text); font-weight: 600; flex: none; }
.step .hint.warn b { color: var(--warn); }
.timer {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 7px 12px; border-radius: 999px; border: 0;
  background: var(--subtle); font-size: .86rem; font-weight: 500; font-variant-numeric: tabular-nums; transition: background .2s;
}
.timer:hover { background: var(--border); }
.timer svg { width: 15px; height: 15px; }
.timer.running { background: var(--text); color: var(--bg); }
.timer.ring { background: var(--accent); color: #fff; animation: ring .5s ease-in-out infinite alternate; }
@keyframes ring { to { transform: scale(1.05); } }

.plain { margin: 0; padding-left: 18px; color: var(--muted); }
.plain li { margin: 4px 0; }

.idea { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 0; background: none; text-align: left; transition: background .15s; }
.idea:hover { background: var(--subtle); }
.idea span { flex: 1; font-weight: 500; }
.idea small { display: block; color: var(--muted); font-size: .86rem; font-weight: 400; }
.idea svg { width: 18px; height: 18px; color: var(--faint); transition: transform .2s var(--ease); }
.idea:hover svg { transform: translateX(3px); color: var(--text); }

.chat-log { display: grid; gap: 8px; margin-bottom: 10px; }
.chat-log:empty { display: none; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 18px; white-space: pre-wrap; font-size: .96rem; animation: pop .3s var(--ease) both; }
.bubble.me { justify-self: end; background: var(--text); color: var(--bg); border-bottom-right-radius: 6px; }
.bubble.ai { justify-self: start; background: var(--subtle); border-bottom-left-radius: 6px; }
.bubble.typing::after { content: "…"; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.ask { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.ask:focus-within { border-color: color-mix(in srgb, var(--text) 25%, var(--border)); }
.ask input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); padding: 0 12px; font: inherit; }
.ask input::placeholder { color: var(--faint); }
.ask .send { width: 40px; height: 40px; }

/* error */
.err { text-align: center; padding-top: clamp(40px, 10vh, 100px); }
.err h1 { margin: 0; font-size: 1.8rem; font-weight: 600; letter-spacing: -.035em; }
.err p { color: var(--muted); max-width: 44ch; margin: 10px auto 24px; }
.err .row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.err .btn-primary { flex: none; }
.err .alt-box { margin: 40px auto 0; max-width: 480px; }
.err .alt-box p { margin: 0 auto 10px; font-size: .92rem; }
.err details { margin-top: 28px; color: var(--faint); font-size: .8rem; }

/* ---------- Focus mode ---------- */
.focus {
  position: fixed; inset: 0; z-index: 50; background: #0b0b0c; color: #f4f4f2;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: max(14px, env(safe-area-inset-top)) 20px max(16px, env(safe-area-inset-bottom)); animation: in .3s var(--ease) both;
}
.round { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--subtle); color: var(--text); transition: background .2s; }
.round svg { width: 20px; height: 20px; }
.focus .round { background: rgba(255,255,255,.08); color: #f4f4f2; }
.focus .round:hover { background: rgba(255,255,255,.14); }
.focus .round[aria-pressed="true"] { background: #f4f4f2; color: #0b0b0c; }
.focus-top { display: flex; align-items: center; gap: 14px; max-width: 760px; width: 100%; margin: 0 auto; }
.focus-track { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.focus-track div { height: 100%; width: 0; background: #f4f4f2; transition: width .5s var(--ease); }
.focus-body { max-width: 760px; width: 100%; margin: 0 auto; display: grid; align-content: center; overflow-y: auto; padding: 24px 0; }
.fx { animation: slide .4s var(--ease) both; }
.fx.back { animation-name: slideBack; }
@keyframes slide { from { opacity: 0; transform: translateX(24px); } }
@keyframes slideBack { from { opacity: 0; transform: translateX(-24px); } }
.f-count { color: rgba(244,244,242,.5); font-weight: 500; font-size: .95rem; margin: 0 0 14px; }
.focus h2 { margin: 0 0 16px; font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.08; font-weight: 600; letter-spacing: -.04em; }
.f-detail { margin: 0; font-size: clamp(1.15rem, 2.6vw, 1.45rem); line-height: 1.55; color: rgba(244,244,242,.78); max-width: 46ch; }
.focus .hint { margin-top: 18px; font-size: 1.02rem; color: rgba(244,244,242,.7); display: flex; gap: 8px; }
.focus .hint b { color: #f4f4f2; flex: none; }
.focus .hint.warn b { color: #ffb070; }
.focus .timer { margin-top: 24px; padding: 12px 18px; font-size: 1rem; background: rgba(255,255,255,.1); color: #f4f4f2; }
.focus .timer.running { background: #f4f4f2; color: #0b0b0c; }
.focus .timer.ring { background: var(--accent); color: #fff; }
.focus-nav { display: flex; gap: 10px; max-width: 760px; width: 100%; margin: 0 auto; }
.btn-light { flex: 1; background: #f4f4f2; color: #0b0b0c; }
.btn-light:hover { background: #fff; }
.btn-quiet { background: rgba(255,255,255,.08); color: #f4f4f2; padding: 0 26px; }
.btn-quiet:hover { background: rgba(255,255,255,.14); }
.f-done { text-align: center; }
.f-done .badge { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center; background: var(--good); animation: pop .5s var(--ease) both; }
.f-done .badge svg { width: 34px; height: 34px; color: #fff; }
.f-done .f-detail { margin: 0 auto; }

/* ---------- Saved sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.35); animation: fade .25s both; }
@keyframes fade { from { opacity: 0; } }
.sheet-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 100%); background: var(--bg); padding: 16px 16px 24px; overflow-y: auto;
  animation: panel .35s var(--ease) both; box-shadow: -20px 0 50px rgba(0,0,0,.15);
}
@keyframes panel { from { transform: translateX(100%); } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 14px; }
.sheet-head h2 { margin: 0; font-size: 1.3rem; font-weight: 600; letter-spacing: -.025em; }
.saved { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.saved li { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; cursor: pointer; transition: background .15s; }
.saved li:hover { background: var(--subtle); }
.saved .th { width: 52px; height: 52px; flex: none; border-radius: 12px; object-fit: cover; background: var(--subtle); display: grid; place-items: center; color: var(--faint); }
.saved .th svg { width: 22px; height: 22px; }
.saved .t { flex: 1; min-width: 0; }
.saved b { display: block; font-weight: 600; font-size: .96rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saved span { color: var(--muted); font-size: .82rem; }
.saved .del { border: 0; background: none; color: var(--faint); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.saved .del:hover { color: var(--text); background: var(--border); }
.saved .del svg { width: 16px; height: 16px; }
.saved .empty { display: block; cursor: default; text-align: center; color: var(--muted); padding: 40px 10px; }
.saved .empty:hover { background: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 90; transform: translate(-50%, 20px); opacity: 0; visibility: hidden;
  background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 999px; font-size: .9rem; font-weight: 500;
  transition: all .3s var(--ease); max-width: calc(100vw - 32px); text-align: center; box-shadow: var(--shadow);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

@media print {
  .bar, .back, .cta-row, .timer, #askSection, #ideasSection, .focus, .sheet, .toast { display: none !important; }
  .step, .list { break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
