*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color-scheme: dark;
  --bg: #0e0e11;
  --surface: #1c1c1f;
  --surface-2: #26262b;
  --surface-3: #303036;
  --border: rgba(255, 255, 255, 0.07);
  --text: #f2f2f0;
  --text-2: #c3c2b7;
  --muted: #8f8e88;
  --grid: #2c2c2a;
  --axis: #3a3a37;
  --volt: #d4f53c;
  --volt-ink: #141a00;
  --good: #3ccf6e;
  --flame: #ff8a3d;
  --error: #ff6b6b;
  --radius: 20px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --top-band: 0px;
}

/* In Home Screen web apps, iOS draws its own blurred status-bar backdrop that
   reaches ~40pt below the safe area and can't be turned off from the page
   (WebKit bug 301994). Keep text clear of it; content still scrolls under it. */
@media (display-mode: standalone) {
  @supports (-webkit-touch-callout: none) {
    :root { --top-band: 34px; }
  }
}

html { background: var(--bg); -webkit-text-size-adjust: 100%; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

[hidden] { display: none !important; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input { font: inherit; color: inherit; }
button, .tab, .chip, .step { -webkit-user-select: none; user-select: none; touch-action: manipulation; }

.muted { color: var(--muted); font-style: normal; }
.small { font-size: 0.8rem; }
.center { text-align: center; }

/* ── Layout ─────────────────────────────────────────────────────────────── */

.view {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(var(--safe-top) + var(--top-band) + 10px) 16px calc(var(--safe-bottom) + 96px);
}

.top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 4px 14px;
}

.top h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.eyebrow { color: var(--text-2); font-size: 0.9rem; font-weight: 500; margin-bottom: 2px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.card h2 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.card-head h2 { margin-bottom: 0; }

.hint { color: var(--muted); font-size: 0.82rem; margin: 6px 0 12px; }
.footer { text-align: center; color: var(--muted); font-size: 0.8rem; padding: 8px 0 4px; }

/* ── Tab bar ────────────────────────────────────────────────────────────── */

.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 6px 8px calc(var(--safe-bottom) + 6px);
  background: rgba(18, 18, 22, 0.86);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-top: 1px solid var(--border);
}

.tab {
  flex: 1;
  max-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 0 2px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  transition: color 0.15s;
}

.tab svg {
  width: 25px; height: 25px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.2s;
}

.tab.on { color: var(--volt); }
.tab.on svg { transform: translateY(-1px) scale(1.06); }

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.1s, opacity 0.15s, background 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.55; }
.btn-block { display: flex; width: 100%; }

.btn-primary {
  background: var(--volt);
  color: var(--volt-ink);
  min-height: 54px;
  font-size: 1.08rem;
  box-shadow: 0 6px 22px rgba(212, 245, 60, 0.18);
}

.btn-secondary { background: var(--surface-3); color: var(--text); }
.btn-ghost { border: 1px solid var(--border); color: var(--text-2); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row .btn { flex: 1; }

.icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  color: var(--text-2);
  font-size: 1.5rem;
  line-height: 1;
}
.icon-btn:active { background: var(--surface-2); }
.icon-btn:disabled { opacity: 0.25; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── Login ──────────────────────────────────────────────────────────────── */

.login {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--safe-top) + 24px) 20px calc(var(--safe-bottom) + 24px);
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(212, 245, 60, 0.13), transparent 70%),
    var(--bg);
}

.login-card { width: 100%; max-width: 380px; text-align: center; }
.login-logo { width: 84px; height: 84px; border-radius: 22px; margin-bottom: 18px; box-shadow: 0 10px 40px rgba(212, 245, 60, 0.25); }
.login-card h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 24px; }
.login-card form { text-align: left; display: flex; flex-direction: column; gap: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.9rem; }
.field input {
  height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 1.05rem;
  outline: none;
}
.field input:focus { border-color: var(--volt); }

.form-error { color: var(--error); font-size: 0.9rem; }
.login-create { display: flex; flex-direction: column; gap: 10px; text-align: center; }

/* ── Today ──────────────────────────────────────────────────────────────── */

.streak {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  flex-shrink: 0;
}
.streak .flame { filter: grayscale(1); opacity: 0.6; font-size: 1.1rem; }
.streak strong { font-size: 1.2rem; font-weight: 800; color: var(--text-2); }
.streak-label { font-size: 0.75rem; }
.streak.on { border-color: rgba(255, 138, 61, 0.35); }
.streak.on .flame { filter: none; opacity: 1; }
.streak.on strong { color: var(--text); }
.streak.lit { background: linear-gradient(135deg, rgba(255, 138, 61, 0.22), rgba(255, 60, 90, 0.14)); }
.streak.lit .flame { animation: flicker 1.6s ease-in-out infinite; display: inline-block; }

@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(-3deg); }
  50% { transform: scale(1.15) rotate(3deg); }
}

.daynav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2px;
}

.daynav-label {
  position: relative;
  flex: 1;
  text-align: center;
  font-weight: 700;
  padding: 8px;
  cursor: pointer;
}
.daynav-label input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}

.install { position: relative; border-color: rgba(212, 245, 60, 0.3); }
.install p { color: var(--text-2); font-size: 0.9rem; margin-top: 4px; padding-right: 24px; }
.install-close { position: absolute; top: 6px; right: 6px; font-size: 1rem; }

.share-icon { display: inline-flex; vertical-align: -4px; }
.share-icon svg { width: 18px; height: 18px; fill: none; stroke: #4ea1ff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.summary { padding-top: 18px; }
.rings { display: flex; justify-content: space-around; gap: 12px; }

.ring { position: relative; width: 120px; display: flex; flex-direction: column; align-items: center; }
.ring svg { width: 112px; height: 112px; transform: rotate(-90deg); overflow: visible; }
.ring-track { fill: none; stroke: color-mix(in srgb, var(--c) 20%, transparent); stroke-width: 11; }
.ring-fill {
  fill: none;
  stroke: var(--c);
  stroke-width: 11;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.ring-done .ring-fill { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 70%, transparent)); }
.ring-center {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 112px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ring-center strong { font-size: 1.85rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.ring-center span { font-size: 0.78rem; color: var(--muted); margin-top: 3px; }
.ring-done .ring-center strong { color: var(--c); font-size: 2rem; }
.ring-label { margin-top: 6px; font-weight: 600; font-size: 0.9rem; color: var(--text-2); }

.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.mini {
  background: var(--surface-2);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 2px;
  position: relative;
}
.mini::before {
  content: '';
  position: absolute; left: 12px; top: 15px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c);
}
.mini-label { font-size: 0.75rem; color: var(--muted); padding-left: 14px; }
.mini strong { font-size: 0.95rem; font-weight: 700; color: var(--muted); }
.mini.done strong { color: var(--text); }
.mini.done::after { content: '✓'; position: absolute; right: 12px; top: 9px; color: var(--good); font-weight: 800; }

.nudge { text-align: center; margin-top: 14px; font-weight: 600; color: var(--text-2); }

.dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--c);
  margin-right: 8px;
  vertical-align: 0;
  flex-shrink: 0;
}

.stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
}
.row-label { display: flex; align-items: center; font-weight: 600; gap: 0; }
.row-label em { margin-left: 6px; font-size: 0.8rem; font-weight: 500; }

.stepper { display: flex; align-items: center; gap: 4px; }
.step {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--surface-3);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.08s, background 0.15s;
}
.step:active { transform: scale(0.9); background: #3c3c44; }
.step-input {
  width: 84px;
  height: 46px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  outline: none;
  border-radius: 12px;
}
.step-input:focus { background: var(--surface-2); }
.step-input::placeholder { color: var(--muted); }

.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  margin-top: 4px;
  border-top: 1px solid var(--border);
  cursor: pointer;
}
.switch-row .switch-text { flex: 1; font-weight: 600; }
.switch-row .dot { margin-right: 0; }

.switch {
  appearance: none;
  -webkit-appearance: none;
  width: 52px; height: 32px;
  border-radius: 999px;
  background: var(--surface-3);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s cubic-bezier(0.3, 1.4, 0.6, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.switch:checked { background: var(--volt); }
.switch:checked::after { transform: translateX(20px); }
.switch:disabled { opacity: 0.4; }

input[type='time'] {
  background: var(--surface-2);
  border: none;
  border-radius: 10px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 1rem;
  min-height: 36px;
}

.run-fields { padding: 2px 0 10px; }
.chips { display: flex; gap: 8px; margin-bottom: 8px; }
.chip {
  flex: 1;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.chip.on { background: var(--volt); color: var(--volt-ink); border-color: transparent; }
.chip-input { flex: 1.4; gap: 4px; padding: 0 10px; cursor: text; }
.chip-input input {
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-weight: 700;
  font-size: 1rem;
  text-align: right;
}
.chip-input input::placeholder { color: var(--muted); font-weight: 600; }
.chip-input.on input::placeholder { color: rgba(20, 26, 0, 0.5); }
.run-total { color: var(--text-2); font-size: 0.88rem; text-align: right; min-height: 1.2em; }

.entries, .day-list, .records { list-style: none; }
.entry {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.entry:first-child { border-top: none; }
.entry time { color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.entry-tags { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* ── Progress ───────────────────────────────────────────────────────────── */

.seg {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 12px;
}
.seg-btn {
  flex: 1;
  height: 34px;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
}
.seg-btn.on { background: var(--surface-3); color: var(--text); }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat {
  background: var(--surface-2);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.stat-label { font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; }
.stat-label .dot { width: 8px; height: 8px; margin-right: 6px; }
.stat strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.unit { font-size: 0.55em; font-weight: 600; color: var(--muted); letter-spacing: 0; }

.delta { font-size: 0.78rem; font-weight: 700; }
.delta.up { color: var(--good); }
.delta.down { color: var(--muted); }
.delta.flat { color: var(--muted); font-weight: 500; }

.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.hero { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.hero-side { font-size: 0.85rem; color: var(--text-2); padding-bottom: 4px; }

.goal { margin: 10px 0 4px; }
.goal-bar { height: 8px; border-radius: 999px; background: color-mix(in srgb, #9085e9 22%, transparent); overflow: hidden; }
.goal-fill { height: 100%; border-radius: 999px; background: #9085e9; transition: width 0.8s; }
.goal .hint { margin: 6px 0 4px; }

.legend { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text-2); flex-wrap: wrap; }
.key-line { display: inline-block; width: 14px; height: 2px; border-radius: 2px; background: var(--c); margin-left: 4px; }
.key-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c); opacity: 0.6; }

.chart-box { margin: 4px -4px 0; min-height: 60px; }
.chart { position: relative; touch-action: pan-y; }
.chart svg { display: block; overflow: visible; }
.chart .tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .axis { stroke: var(--axis); stroke-width: 1; }
.chart .refline { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; }
.chart .reflabel { fill: var(--muted); font-size: 11px; font-weight: 600; }
.chart .crosshair { stroke: var(--text-2); stroke-width: 1; }
.chart .hit { cursor: crosshair; }

.chart-tooltip {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  background: #2b2b31;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 0.82rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  min-width: 120px;
}
.tt-title { color: var(--muted); font-size: 0.75rem; margin-bottom: 4px; }
.tt-row { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.tt-key { width: 12px; height: 3px; border-radius: 2px; }
.tt-row strong { font-weight: 800; }
.tt-label { color: var(--text-2); }

.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-top: 14px; }
.kv div { display: flex; flex-direction: column; }
.kv span { font-size: 0.75rem; color: var(--muted); }
.kv strong { font-size: 1.05rem; font-weight: 700; }

.records li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}
.records li:first-child { border-top: none; }
.records span { color: var(--text-2); }
.records strong { font-variant-numeric: tabular-nums; }

.empty { text-align: center; padding: 18px 8px 8px; color: var(--text-2); }
.empty-emoji { font-size: 2.2rem; margin-bottom: 6px; }
.empty p { font-size: 0.9rem; }

/* ── History ────────────────────────────────────────────────────────────── */

.heatmap { display: flex; gap: 6px; }
.hm-days { display: grid; grid-template-rows: repeat(7, 1fr); gap: 3px; font-size: 0.62rem; color: var(--muted); }
.hm-days span { display: flex; align-items: center; line-height: 1; }
.hm-grid {
  flex: 1;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, auto);
  grid-template-columns: repeat(var(--weeks), 1fr);
  gap: 3px;
}
.hm-cell { aspect-ratio: 1; border-radius: 3px; width: 100%; padding: 0; display: block; }
.hm-cell.l0 { background: #29292e; }
.hm-cell.l1 { background: #0f4a36; }
.hm-cell.l2 { background: #178a61; }
.hm-cell.l3 { background: #3fd99c; }
.hm-cell.hm-future { background: transparent; }
.hm-cell.hm-today { outline: 2px solid var(--text); outline-offset: 1px; }
.hm-legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 10px; font-size: 0.72rem; color: var(--muted); }
.hm-legend .hm-cell { width: 12px; height: 12px; }
.hm-legend span:first-child { margin-right: 2px; }
.hm-legend span:last-child { margin-left: 2px; }

.day-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.day-list li:first-child .day-row { border-top: none; }
.day-name { font-weight: 700; font-size: 0.92rem; }
.day-row:active { opacity: 0.7; }
.day-list + .btn { margin-top: 8px; }

/* ── Badges & settings ──────────────────────────────────────────────────── */

.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 8px; }
.badge {
  background: var(--surface-2);
  border-radius: 16px;
  padding: 12px 8px 10px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.badge-emoji { font-size: 2rem; line-height: 1.2; filter: grayscale(1); opacity: 0.35; }
.badge-name { font-weight: 700; font-size: 0.8rem; color: var(--muted); }
.badge-desc { font-size: 0.68rem; color: var(--muted); line-height: 1.25; }
.badge.on {
  background: linear-gradient(160deg, rgba(212, 245, 60, 0.16), rgba(212, 245, 60, 0.03));
  box-shadow: inset 0 0 0 1px rgba(212, 245, 60, 0.28);
}
.badge.on .badge-emoji { filter: none; opacity: 1; }
.badge.on .badge-name { color: var(--text); }
.badge.on .badge-desc { color: var(--text-2); }
.badge-bar { width: 70%; height: 4px; border-radius: 999px; background: var(--surface-3); margin-top: 6px; overflow: hidden; }
.badge-bar div { height: 100%; background: var(--volt); border-radius: 999px; }

.setting {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  font-weight: 600;
}
.setting:first-of-type { border-top: none; }
.setting span { display: flex; align-items: center; }
.setting em { margin-left: 6px; font-size: 0.8rem; font-weight: 500; }
.setting input {
  width: 90px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  outline: none;
}
.setting input:focus { border-color: var(--volt); }

#reminder-box .switch-row { border-top: none; margin-top: 0; padding-top: 0; flex-wrap: wrap; }
#reminder-box .hint { margin-bottom: 8px; }

/* ── Toasts ─────────────────────────────────────────────────────────────── */

.toasts {
  position: fixed;
  top: calc(var(--safe-top) + var(--top-band) + 10px);
  left: 0; right: 0;
  z-index: 100;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
  padding: 0 16px;
}

.toast {
  max-width: 440px;
  padding: 12px 18px;
  border-radius: 16px;
  background: #2b2b31;
  border: 1px solid rgba(212, 245, 60, 0.35);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
  font-weight: 650;
  text-align: center;
  transform: translateY(-20px) scale(0.96);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.2, 1.4, 0.5, 1), opacity 0.25s;
}
.toast.in { transform: none; opacity: 1; }
.toast-error { border-color: rgba(255, 107, 107, 0.5); }
.toast-badge { background: linear-gradient(135deg, #3a3f1a, #2b2b31); border-color: var(--volt); }

@media (prefers-reduced-motion: reduce) {
  .ring-fill, .toast, .switch::after, .goal-fill { transition: none; }
  .streak.lit .flame { animation: none; }
}

@media (min-width: 600px) {
  .top h1 { font-size: 2rem; }
}
