:root {
  --bg: #F6F1EA;
  --surface: #FFFDF9;
  --ink: #363B5C;
  --ink-2: #5E6385;
  --muted: #858AA5;
  --line: #E4DED4;
  --accent: #8C92BA;
  --accent-strong: #565D92;
  --accent-soft: #E6E5F0;
  --flame: #D2804F;
  --danger: #B5535A;
  --shadow: 0 1px 2px rgba(54, 59, 92, .06), 0 6px 24px rgba(54, 59, 92, .06);
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #13152A;
    --surface: #1C1F38;
    --ink: #E6E7F3;
    --ink-2: #B9BCD6;
    --muted: #8A8FB0;
    --line: #2D3152;
    --accent: #7D84BA;
    --accent-strong: #AEB4E6;
    --accent-soft: #292D4D;
    --flame: #E9A272;
    --danger: #E07F86;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #13152A; --surface: #1C1F38; --ink: #E6E7F3; --ink-2: #B9BCD6; --muted: #8A8FB0;
  --line: #2D3152; --accent: #7D84BA; --accent-strong: #AEB4E6; --accent-soft: #292D4D;
  --flame: #E9A272; --danger: #E07F86; --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
svg { display: block; }
h1, h2 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 30px; line-height: 1.15; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; border-radius: 8px; }

.page {
  max-width: 540px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 20px) 16px calc(env(safe-area-inset-bottom) + 100px);
}
.top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.eyebrow { margin: 0 0 2px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.section { font-size: 19px; margin: 28px 0 12px; display: flex; align-items: baseline; gap: 8px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.bar { height: 8px; border-radius: 99px; background: var(--accent-soft); overflow: hidden; margin: 8px 0 6px; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .6s ease; }
.bar.thin { height: 3px; margin: 0 0 8px; }
.bar.thin i { transition: none; }

/* --- level chip --- */
.lvl-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2); white-space: nowrap;
}
.lvl-num {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 13px;
}

/* --- streak card --- */
.streak-main { display: flex; gap: 14px; align-items: center; }
.flame { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--muted); flex: none; }
.flame svg { width: 26px; height: 26px; fill: currentColor; }
.flame.lit { color: var(--flame); background: color-mix(in srgb, var(--flame) 14%, transparent); }
.streak-num { font-family: var(--serif); font-size: 30px; line-height: 1; font-weight: 600; }
.streak-num small { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.streak-sub { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.freeze { white-space: nowrap; }
.freeze svg { width: 13px; height: 13px; display: inline; vertical-align: -2px; stroke: currentColor; fill: none; stroke-width: 2; }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 16px; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wd-dot {
  width: 100%; max-width: 38px; aspect-ratio: 1; border-radius: 50%;
  border: 1.5px dashed var(--line); display: grid; place-items: center; color: #fff;
}
.wd-dot svg { width: 60%; height: 60%; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.wd.done .wd-dot { background: var(--accent); border: 0; }
.wd.frozen .wd-dot { border: 1.5px solid var(--accent); color: var(--accent); }
.wd.today .wd-dot { border-style: solid; border-color: var(--accent-strong); }
.wd.today.done .wd-dot { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent-strong); }
.wd.future .wd-dot { opacity: .5; }
.wd-l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.wd.today .wd-l { color: var(--ink); font-weight: 600; }

/* --- pattern picker --- */
.patterns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pattern {
  text-align: left; display: flex; flex-direction: column; gap: 2px;
  padding: 14px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line);
  transition: border-color .2s, transform .1s;
}
.pattern:active { transform: scale(.98); }
.pattern.sel { border-color: var(--accent-strong); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.pattern-shape { width: 34px; height: 33px; margin-bottom: 8px; }
.pattern-shape svg { width: 100%; height: 100%; }
.pattern-shape path { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 14; stroke-linejoin: round; }
.pattern.sel .pattern-shape path { fill: var(--accent); stroke: var(--accent-strong); }
.pattern-name { font-family: var(--serif); font-weight: 600; font-size: 17px; }
.pattern-tag { font-size: 12.5px; color: var(--muted); }
.about { font-size: 14px; color: var(--ink-2); margin: 14px 2px 10px; }
.phase-row { display: flex; flex-wrap: wrap; gap: 6px; }
.ph { font-size: 12.5px; padding: 4px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--ink-2); }
.ph b { color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); font-size: 14px; }
.chip.sel { border-color: var(--accent-strong); background: var(--accent-strong); color: var(--surface); }
.chips + .muted { margin: 8px 2px 0; }

.start {
  width: 100%; margin: 26px 0 16px; padding: 18px; border-radius: 20px;
  background: var(--accent-strong); color: var(--surface);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent-strong) 30%, transparent);
  transition: transform .1s;
}
.start:active { transform: scale(.985); }
.start span { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.start small { font-size: 13px; opacity: .8; }
.lvl-card { cursor: pointer; }
.lvl-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }

/* --- tab bar --- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; justify-content: center; gap: 4px;
  padding: 8px 12px calc(env(safe-area-inset-bottom) + 8px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tabbar[hidden] { display: none; }
.tabbar button { flex: 1; max-width: 140px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px; border-radius: 12px; font-size: 11.5px; color: var(--muted); }
.tabbar svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar button.active { color: var(--accent-strong); }

/* --- session --- */
body[data-view="session"] { overflow: hidden; }
.session {
  position: relative;
  min-height: 100dvh;
  display: flex; flex-direction: column;
  padding-bottom: calc(env(safe-area-inset-bottom) + 20px);
}
.glow {
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(60% 45% at 50% 42%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%);
  opacity: calc(.15 + var(--fill) * .85);
  transform: scale(calc(.85 + var(--fill) * .25));
}
.s-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.s-title { display: flex; flex-direction: column; align-items: center; font-family: var(--serif); font-size: 18px; font-weight: 600; }
.s-title small { font-family: var(--sans); font-size: 12.5px; font-weight: 500; color: var(--muted); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); flex: none; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.sm { width: 32px; height: 32px; border: 0; background: transparent; color: var(--muted); }
.icon-btn.sm svg { width: 17px; height: 17px; }
#pause svg path[d^="M7.5"] { fill: currentColor; }

.legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 6px; margin: 22px 0 4px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.legend i { font-style: normal; opacity: .6; }
.lg { padding: 3px 8px; border-radius: 99px; transition: background .4s, color .4s; }
.lg b { font-weight: 600; }
.lg.active { background: var(--accent-soft); color: var(--ink); }

.stage { flex: 1; display: grid; place-items: center; padding: 8px 0; cursor: pointer; min-height: 0; }
.shape { width: min(100%, 52dvh, 400px); height: auto; overflow: visible; }
.shape .fill { fill: var(--accent); }
.shape .outline { fill: none; stroke: var(--line); stroke-width: 2; }
.shape .seg { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; opacity: .45; transition: opacity .5s, stroke-width .5s; }
.shape .seg.active { opacity: 1; stroke: var(--accent-strong); stroke-width: 4; }
.shape .tick { fill: var(--muted); opacity: .45; }
.shape .tick.active { fill: var(--accent-strong); opacity: .9; }
.shape .edge-label { font: 600 10.5px var(--sans); letter-spacing: .06em; fill: var(--muted); text-anchor: middle; dominant-baseline: middle; transition: fill .4s; }
.shape .edge-label.active { fill: var(--ink); }
.shape .dot { fill: var(--surface); stroke: var(--accent-strong); stroke-width: 3; filter: drop-shadow(0 1px 3px rgba(0,0,0,.18)); }

.readout { text-align: center; min-height: 150px; }
.phase { font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1.1; }
.count { font-family: var(--serif); font-size: 34px; font-weight: 500; color: var(--accent-strong); min-height: 44px; font-variant-numeric: tabular-nums; }
.hint { color: var(--ink-2); font-size: 15px; }
.pause-note { margin-top: 10px; font-size: 13px; color: var(--muted); }
.pause-note svg { width: 12px; height: 12px; display: inline; fill: currentColor; vertical-align: -1px; }
body.paused .shape { opacity: .55; }
.s-foot { margin-top: 14px; }
.s-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* --- done --- */
.done-hero { text-align: center; padding: 20px 0 8px; }
.done-shape { width: 74px; height: 72px; margin: 0 auto 14px; animation: rise 1.2s ease both; }
.done-shape svg { width: 100%; height: 100%; }
.done-shape path { fill: var(--accent); stroke: var(--accent-strong); stroke-width: 10; stroke-linejoin: round; }
@keyframes rise { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 12px; }
.tiles.four { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 480px) { .tiles.four { grid-template-columns: repeat(4, 1fr); } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tile-num { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile-l { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.tile-l svg { width: 13px; height: 13px; fill: var(--flame); }
.xp-row { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.xp-row span:last-child { font-weight: 600; color: var(--accent-strong); }

.moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mood { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 2px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-size: 11.5px; color: var(--ink-2); }
.mood i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--accent); background: linear-gradient(to top, var(--accent) calc(var(--lv) * 20%), transparent 0); }
.mood.sel { border-color: var(--accent-strong); color: var(--ink); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inputs label, .note { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); }
.note { margin-top: 12px; }
.inputs input, .note textarea {
  width: 100%; padding: 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-size: 16px; resize: vertical;
}
.inputs input:focus, .note textarea:focus { outline: none; border-color: var(--accent-strong); }
.inputs + .muted { margin: 8px 2px 0; }

/* --- badges --- */
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.badge { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; }
.badge-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: #fff; margin-bottom: 6px; }
.badge-ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge-n { font-weight: 600; font-size: 14px; }
.badge-d { font-size: 12px; color: var(--muted); }
.badge.locked .badge-ic { background: var(--accent-soft); color: var(--muted); }
.badge.locked .badge-n { color: var(--ink-2); }
.done .badge { animation: rise .8s ease both; }

/* --- heatmap --- */
.hm { display: flex; gap: 6px; }
.hm-days { display: grid; grid-template-rows: 16px repeat(7, 1fr); gap: 3px; font-size: 10px; color: var(--muted); }
.hm-days span:first-child { margin-top: 16px; }
.hm-days { grid-template-rows: none; display: flex; flex-direction: column; justify-content: space-between; padding-top: 18px; }
.hm-body { flex: 1; min-width: 0; }
.hm-months { display: grid; grid-template-columns: repeat(17, 1fr); gap: 3px; font-size: 10px; color: var(--muted); height: 16px; margin-bottom: 2px; }
.hm-grid { display: grid; grid-template-columns: repeat(17, 1fr); gap: 3px; }
.hm-col { display: grid; grid-template-rows: repeat(7, 1fr); gap: 3px; }
.hm-col i, .hm-legend i { display: block; aspect-ratio: 1; border-radius: 4px; background: var(--accent-soft); }
.hm-col i.done, .hm-legend i.done { background: var(--accent); }
.hm-col i.frozen, .hm-legend i.frozen { background: transparent; box-shadow: inset 0 0 0 1.5px var(--accent); }
.hm-col i.future { background: transparent; }
.hm-col i.today { box-shadow: 0 0 0 1.5px var(--accent-strong); }
.hm-legend { display: flex; gap: 14px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.hm-legend span { display: flex; align-items: center; gap: 6px; }
.hm-legend i { width: 11px; }

/* --- chart --- */
.chart-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.chart-val { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.chart { position: relative; touch-action: pan-y; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { font: 10px var(--sans); fill: var(--muted); }
.chart .line { fill: none; stroke: var(--accent-strong); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--accent); opacity: .12; }
.chart .end, .chart .hdot { fill: var(--accent-strong); stroke: var(--surface); stroke-width: 2; }
.chart .cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.tip {
  position: absolute; transform: translate(-50%, calc(-100% - 12px));
  background: var(--ink); color: var(--bg); padding: 6px 10px; border-radius: 10px;
  font-size: 12px; display: flex; flex-direction: column; align-items: center; pointer-events: none; white-space: nowrap;
}
.tip span { opacity: .75; }
.tip[hidden], [hidden] { display: none !important; }
.empty-chart { margin: 0; }

/* --- log --- */
.log { display: flex; flex-direction: column; }
.log-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.log-t { font-weight: 500; font-size: 14px; }
.log-note { color: var(--ink-2); margin-top: 2px; font-style: italic; }
.log-r { display: flex; align-items: center; gap: 4px; }
.xp { font-size: 13px; font-weight: 600; color: var(--accent-strong); }

/* --- settings --- */
.list { padding: 4px 16px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row > span:first-child { display: flex; flex-direction: column; }
.row small { color: var(--muted); font-size: 12.5px; }
.row.col { flex-direction: column; align-items: stretch; gap: 8px; }
.btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.btn { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-size: 13.5px; font-weight: 500; }
.btn.danger { color: var(--danger); }
input[type="range"] { width: 100%; accent-color: var(--accent-strong); }
.switch {
  appearance: none; -webkit-appearance: none; width: 48px; height: 28px; border-radius: 99px; flex: none;
  background: var(--line); position: relative; cursor: pointer; transition: background .2s; margin: 0;
}
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch:checked { background: var(--accent-strong); }
.switch:checked::after { transform: translateX(20px); }
.settings .card + .muted { margin: 10px 2px 0; }
.settings .card p { margin: 0; }

/* --- geluidslab --- */
.back { font-size: 14px; color: var(--accent-strong); margin-bottom: 4px; padding: 4px 0; }
.row.link { width: 100%; text-align: left; }
.chev { font-size: 24px; color: var(--muted); line-height: 1; }
.lab .card { display: flex; flex-direction: column; gap: 14px; }
.lab .preview { position: sticky; top: calc(env(safe-area-inset-top) + 8px); z-index: 5; gap: 10px; padding: 12px; }
.chips.sm { gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px; }
.chips.sm::-webkit-scrollbar { display: none; }
.chips.sm .chip { white-space: nowrap; flex: none; }
.chips.sm .chip { padding: 6px 11px; font-size: 13px; }
.start.slim { margin: 0; padding: 14px; font-family: var(--serif); font-size: 18px; font-weight: 600; }
.pv-phase { margin: 0; text-align: center; font-size: 14px; color: var(--ink-2); min-height: 21px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pv-phase b { font-variant-numeric: tabular-nums; color: var(--accent-strong); }
.pv-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.pv-in { animation: pvgrow 1s ease-in-out infinite alternate; }
.pv-out { opacity: .6; }
@keyframes pvgrow { from { transform: scale(.7); } to { transform: scale(1.2); } }
.seg-ctl { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-ctl button { padding: 8px 12px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--bg); font-size: 13.5px; }
.seg-ctl button.sel { border-color: var(--accent-strong); background: var(--accent-strong); color: var(--surface); }
.sl { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.sl > span { display: flex; justify-content: space-between; }
.sl output { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.sub { margin: 0 0 -6px; font-size: 14px; font-weight: 500; }
.btns.left { justify-content: flex-start; }
.btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; display: inline; vertical-align: -2px; }
.btn[data-play] svg { fill: currentColor; }
.btn:disabled { opacity: .4; }
.rec-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.rec-row > div:first-child { display: flex; flex-direction: column; }
.rec-row small { color: var(--muted); font-size: 12.5px; }
.rec-live { color: var(--danger); font-variant-numeric: tabular-nums; }
.lab .card > p { margin: 0; }

/* --- toast --- */
.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 92px); z-index: 20;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px;
  max-width: calc(100vw - 32px); text-align: center; transition: opacity .3s, transform .3s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
