:root {
  --accent-text: #c8f43c;
  --accent-soft: rgba(200, 244, 60, 0.1);
  --accent-line: rgba(200, 244, 60, 0.45);
  --frost: #9fd8ff;
  --flame: #ff9f43;
  --bar-bg: rgba(13, 14, 18, 0.92);
  --heat1: rgba(200, 244, 60, 0.3);
  --heat2: rgba(200, 244, 60, 0.6);
  --note-bg: rgba(255, 181, 71, 0.08);
  --note-line: rgba(255, 181, 71, 0.25);
  color-scheme: dark;
  --bg: #0d0e12;
  --panel: #16181f;
  --panel-2: #1e212a;
  --line: #2a2e3a;
  --text: #f2f3f5;
  --muted: #8b90a0;
  --accent: #c8f43c;
  --accent-ink: #11140a;
  --good: #4ade80;
  --bad: #f87171;
  --memory: #7cc4ff;
  --reasoning: #ffb547;
  --expression: #e58cff;
  --focus: #5eead4;
  --debate: #ff7a7a;
  --radius: 18px;
}
/* Light theme: follows the system unless the user picks one (html[data-theme]). */
:root[data-theme="light"] {
  --bg: #f5f6f0;
  --panel: #ffffff;
  --panel-2: #eceee6;
  --line: #dcdfd4;
  --text: #14160f;
  --muted: #5b6155;
  --accent: #c8f43c;
  --accent-ink: #11140a;
  --accent-text: #3f6212;
  --accent-soft: rgba(101, 163, 13, 0.13);
  --accent-line: rgba(77, 124, 15, 0.45);
  --good: #15803d;
  --bad: #b91c1c;
  --memory: #1d6fb8;
  --reasoning: #b45309;
  --expression: #a21caf;
  --focus: #0f766e;
  --debate: #be123c;
  --frost: #0369a1;
  --flame: #c2410c;
  --bar-bg: rgba(245, 246, 240, 0.92);
  --heat1: rgba(101, 163, 13, 0.25);
  --heat2: rgba(101, 163, 13, 0.55);
  --note-bg: rgba(180, 83, 9, 0.07);
  --note-line: rgba(180, 83, 9, 0.3);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f6f0;
    --panel: #ffffff;
    --panel-2: #eceee6;
    --line: #dcdfd4;
    --text: #14160f;
    --muted: #5b6155;
    --accent: #c8f43c;
    --accent-ink: #11140a;
    --accent-text: #3f6212;
    --accent-soft: rgba(101, 163, 13, 0.13);
    --accent-line: rgba(77, 124, 15, 0.45);
    --good: #15803d;
    --bad: #b91c1c;
    --memory: #1d6fb8;
    --reasoning: #b45309;
    --expression: #a21caf;
    --focus: #0f766e;
    --debate: #be123c;
    --frost: #0369a1;
    --flame: #c2410c;
    --bar-bg: rgba(245, 246, 240, 0.92);
    --heat1: rgba(101, 163, 13, 0.25);
    --heat2: rgba(101, 163, 13, 0.55);
    --note-bg: rgba(180, 83, 9, 0.07);
    --note-line: rgba(180, 83, 9, 0.3);
    color-scheme: light;
  }
}


* { box-sizing: border-box; }

html, body { margin: 0; background: var(--bg); color: var(--text); }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main { max-width: 600px; margin: 0 auto; padding: 24px 20px 64px; }

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: 2.2rem; font-weight: 800; }
h2 { font-size: 1.5rem; font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.row { display: flex; align-items: center; gap: 12px; }
.spread { justify-content: space-between; }

/* Top bar */
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
a.logo { color: inherit; text-decoration: none; }
.logo { font-weight: 900; font-size: 1.15rem; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 0.95rem; font-weight: 900;
}
.streak {
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-weight: 700; font-size: 0.9rem;
}

/* Cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card + .card { margin-top: 16px; }
.section-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 700; margin: 32px 0 12px; }

.hero h1 span { color: var(--accent-text); }

.exercise-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line);
}
.exercise-row:first-of-type { border-top: 0; }
.icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0;
  background: var(--panel-2);
}
.exercise-row .meta { flex: 1; }
.badge { font-size: 0.8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--panel-2); color: var(--muted); }
.badge.done { background: var(--accent-soft); color: var(--accent-text); }

/* Muscles */
.muscles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.muscle.today { border-color: var(--accent-line); }
.muscle { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.muscle .lvl { font-size: 1.6rem; font-weight: 800; }
.muscle .name { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.bar { height: 6px; background: var(--panel-2); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width 0.6s ease; }

/* History grid */
.history { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; }
.day { aspect-ratio: 1; border-radius: 4px; background: var(--panel-2); }
.day.l1 { background: var(--heat1); }
.day.l2 { background: var(--heat2); }
.day.l3 { background: var(--accent); }
.day.today { outline: 1.5px solid var(--muted); outline-offset: 1px; }

/* Buttons */
button { font: inherit; cursor: pointer; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 14px; padding: 15px 22px; font-weight: 800; font-size: 1rem;
  background: var(--accent); color: var(--accent-ink); transition: transform 0.08s ease, opacity 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--panel-2); color: var(--text); }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; padding: 8px; }

/* Workout */
.progress-steps { display: flex; gap: 6px; margin-bottom: 24px; }
.progress-steps i { flex: 1; height: 4px; border-radius: 99px; background: var(--panel-2); }
.progress-steps i.on { background: var(--accent); }
.kicker { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.kicker.memory { color: var(--memory); }
.kicker.reasoning { color: var(--reasoning); }
.kicker.expression { color: var(--expression); }
.kicker.focus { color: var(--focus); }
.kicker.debate { color: var(--debate); }

.timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.1rem; }
.timer.low { color: var(--bad); }
.countdown { height: 4px; background: var(--panel-2); border-radius: 99px; overflow: hidden; }
.countdown > i { display: block; height: 100%; background: var(--accent); transition: width 1s linear; }

.word-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.word {
  background: var(--panel-2); border-radius: 10px; padding: 12px 6px; text-align: center; font-weight: 700;
  border: 1px solid transparent;
}
.word.hit { border-color: var(--good); color: var(--good); }
.word.miss { color: var(--muted); opacity: 0.7; text-decoration: line-through; }

textarea, input[type="text"], input[type="email"], input[type="password"] {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 14px; padding: 16px; font: inherit; font-size: 1.05rem; outline: none; resize: vertical;
}
textarea:focus, input:focus { border-color: var(--accent); }
textarea { min-height: 220px; }

.question { font-size: 2rem; font-weight: 800; text-align: center; padding: 28px 0 8px; font-variant-numeric: tabular-nums; }
.question.fermi { font-size: 1.3rem; line-height: 1.35; }
.answer-input { text-align: center; font-size: 1.4rem !important; font-weight: 700; }

.prompt { font-size: 1.25rem; font-weight: 700; line-height: 1.35; }

.rating { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.rating button {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 14px 0;
  font-weight: 800; font-size: 1.1rem;
}
.rating button:hover { border-color: var(--accent); }

.score-big { font-size: 4rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.score-big small { font-size: 1.2rem; color: var(--muted); font-weight: 700; }

.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.ok { color: var(--good); font-weight: 700; }
.ko { color: var(--bad); font-weight: 700; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--panel-2); border-radius: 12px; padding: 12px; text-align: center; }
.stat b { display: block; font-size: 1.3rem; }
.stat span { font-size: 0.75rem; color: var(--muted); }

.manifesto { margin-top: 40px; color: var(--muted); font-size: 0.9rem; text-align: center; }

.loading { text-align: center; padding: 48px 0; }
.spinner {
  width: 40px; height: 40px; margin: 0 auto; border-radius: 50%;
  border: 3px solid var(--panel-2); border-top-color: var(--expression);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.challenge { background: var(--panel-2); border-inline-start: 3px solid var(--expression); border-radius: 10px; padding: 12px 14px; }
.challenge > * + * { margin-top: 4px; }

#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 700;
  opacity: 0; pointer-events: none; transition: all 0.25s ease; font-size: 0.9rem;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.fade-in { animation: fade 0.3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 420px) {
  h1 { font-size: 1.8rem; }
  .muscle .lvl { font-size: 1.3rem; }
}

/* Account */
.small-btn { padding: 8px 14px; font-size: 0.85rem; border-radius: 999px; }
.avatar {
  position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); font-weight: 800;
}
.pro-dot {
  position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); font-size: 0.55rem; font-weight: 900;
  background: var(--accent); color: var(--accent-ink); padding: 1px 4px; border-radius: 4px;
}
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 4px; }
.tabs button { background: none; border: 0; color: var(--muted); padding: 10px; border-radius: 10px; font-weight: 700; }
.tabs button.on { background: var(--panel-2); color: var(--text); }
.error { color: var(--bad); min-height: 1.2em; font-size: 0.9rem; }
.note { background: var(--note-bg); border: 1px solid var(--note-line); border-radius: 12px; padding: 10px 14px; font-size: 0.9rem; }
.sync { color: var(--muted); }
.link.inline { padding: 0; font-size: inherit; }
.pro-card { border-color: var(--accent-line); }
.price { font-weight: 800; color: var(--accent-text); }
.perks { margin: 0; padding-inline-start: 20px; color: var(--muted); }
.perks li + li { margin-top: 4px; }

/* Focus */
.passage { font-size: 1.08rem; line-height: 1.7; }
.passage p + p { margin-top: 14px; }
.choices { display: grid; gap: 10px; }
.choices button {
  text-align: start; background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: 14px 16px; font-size: 1rem;
}
.choices button:hover { border-color: var(--focus); }

/* Debate */
.motion { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.motion > * + * { margin-top: 6px; }
.side { display: inline-block; font-weight: 800; font-size: 0.8rem; padding: 3px 10px; border-radius: 999px; margin-top: 10px; }
.side.for { background: rgba(74, 222, 128, 0.15); color: var(--good); }
.side.against { background: rgba(248, 113, 113, 0.15); color: var(--bad); }
.opponent { background: var(--panel-2); border-inline-start: 3px solid var(--debate); border-radius: 10px; padding: 12px 14px; }
.opponent > * + * { margin-top: 6px; }

/* Language */
.footer-row { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
select {
  background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; font: inherit; font-size: 0.85rem;
}
/* Negative letter-spacing breaks joined scripts (Arabic, Devanagari) and crowds CJK */
:lang(ar) *, :lang(hi) *, :lang(zh) *, :lang(ja) * { letter-spacing: 0 !important; }
:lang(ar) body { line-height: 1.7; }

.plan-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan-choice .btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-block: 12px; }
.plan-choice .btn small { font-weight: 500; font-size: 0.8rem; opacity: 0.85; }

/* Custom icons */
.mi { display: inline-flex; vertical-align: -0.2em; }
.mi .mg-icon { width: 1.15em; height: 1.15em; }
.icon .mi .mg-icon { width: 22px; height: 22px; }
.muscle .name { display: flex; align-items: center; gap: 6px; }
.mrow { display: inline-flex; align-items: center; gap: 8px; }
.kicker .mi { margin-inline-end: 4px; }
/* Voice */
.btn.mic { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; }
.btn.mic .mg-icon { width: 20px; height: 20px; }
.btn.mic.on { border-color: var(--debate); color: var(--debate); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 122, 122, 0.15); } }
@media (prefers-reduced-motion: reduce) { .btn.mic.on { animation: none; } }
/* Level twists and tips */
.twist { font-size: 0.9rem; font-weight: 600; color: var(--accent-text); background: var(--accent-soft); border-radius: 10px; padding: 8px 12px; }
.improve .tip { display: flex; gap: 10px; align-items: flex-start; }
.improve .tip .mi { margin-top: 2px; flex-shrink: 0; }
.improve .tip p { margin: 0; }

.logo-mark-img { width: 34px; height: 20px; flex-shrink: 0; }

/* ===== Launch redesign: tabs, daily path, rings, onboarding, celebration ===== */
.page { padding-bottom: 96px; }
.tabbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--bar-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 6px max(12px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom));
}
.tab {
  background: none; border: 0; color: var(--muted); font: inherit; font-size: 0.72rem; font-weight: 700;
  display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 52px; justify-content: center;
  border-radius: 12px; cursor: pointer; transition: color 0.2s ease;
}
.tab .mg-icon { width: 24px; height: 24px; }
.tab.on { color: var(--accent-text); }
.tab:focus-visible { outline: 2px solid var(--accent-text); outline-offset: -2px; }
@media (min-width: 640px) { .tabbar { max-width: 600px; margin: 0 auto 16px; border: 1px solid var(--line); border-radius: 20px; } }

.streak { display: inline-flex; align-items: center; gap: 6px; }
.streak .mg-icon { width: 18px; height: 18px; }
.frost { color: var(--frost); }

/* Daily path */
.path { list-style: none; margin: 0 0 18px; padding: 0; }
.node { display: flex; align-items: center; gap: 14px; position: relative; padding: 10px 0; }
.node + .node::before {
  content: ""; position: absolute; inset-inline-start: 21px; top: -12px; height: 24px; width: 2px; background: var(--line);
}
.node.done + .node::before { background: var(--accent); }
.node .dot {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  color: var(--c); background: var(--panel-2); border: 2px solid var(--line); position: relative; z-index: 1;
}
.node .dot .mg-icon { width: 22px; height: 22px; }
.node.done .dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.node.current .dot { border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); animation: breathe 2.4s ease-in-out infinite; }
.node .meta { flex: 1; min-width: 0; }
@keyframes breathe { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--c) 8%, transparent); } }

.quick-card { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.quick-card .meta { flex: 1; min-width: 0; }
.quick-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); flex-shrink: 0; }
.quick-icon .mg-icon { width: 22px; height: 22px; }
.quick-card .btn { white-space: nowrap; min-height: 44px; }

/* Week strip */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 12px; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wd-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); border: 2px solid transparent; }
.wd-dot .mg-icon { width: 18px; height: 18px; }
.wd.hit .wd-dot { background: var(--accent); color: var(--accent-ink); }
.wd.frozen .wd-dot { background: color-mix(in srgb, var(--frost) 14%, transparent); color: var(--frost); }
.wd.today .wd-dot { border-color: var(--accent); }
.wd.future .wd-dot { opacity: 0.45; }
.wd-l { font-size: 0.75rem; color: var(--muted); font-weight: 700; }

/* Rings */
.rings { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px; }
.ring-item { text-align: center; }
.ring { position: relative; width: 76px; height: 76px; margin: 0 auto 6px; color: var(--c); }
.ring-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-svg circle { fill: none; stroke-width: 7; }
.ring .track { stroke: var(--panel-2); }
.ring .fill { stroke: var(--c); stroke-linecap: round; transition: stroke-dashoffset 0.9s cubic-bezier(.2,.8,.2,1); }
.ring-icon { position: absolute; inset: 0; display: grid; place-items: center; }
.ring-icon .mg-icon { width: 24px; height: 24px; }
.ring-name { font-weight: 700; font-size: 0.9rem; }
.report-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.report-row:first-of-type { border-top: 0; }
.share-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; }
.share-btn .mg-icon { width: 20px; height: 20px; }

/* Onboarding */
.onboarding { min-height: 100vh; display: flex; flex-direction: column; gap: 28px; padding-top: 8px; }
.onboarding h1 { font-size: 2rem; }
.ob-dots { display: flex; gap: 6px; }
.ob-dots i { width: 22px; height: 6px; border-radius: 3px; background: var(--line); transition: background 0.3s; }
.ob-dots i.on { background: var(--accent); }
.ob-hero { display: grid; place-items: center; height: 140px; color: var(--accent-text); }
.ob-hero .mg-icon { width: 84px; height: 84px; stroke-width: 1.4; }
.lede-app { font-size: 1.1rem; }
.ob-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-weight: 600; font-size: 0.9rem; }
.goal-list { display: grid; gap: 10px; }
.goal {
  display: flex; align-items: center; gap: 14px; text-align: start; width: 100%; min-height: 64px;
  background: var(--panel); border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; color: var(--text); font: inherit; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.goal > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.goal .mi .mg-icon { width: 26px; height: 26px; }
.goal .tick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; }
.goal .tick .mg-icon { width: 16px; height: 16px; }
.goal.on { border-color: var(--accent-text); background: var(--accent-soft); }
.goal.on .tick { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.hour-select { min-height: 48px; font-size: 1rem; }
.reminder-card .row { flex-wrap: wrap; }
.reminder-card .btn { min-height: 44px; }

/* Celebration */
.celebrate { position: relative; height: 0; }
.celebrate i {
  position: absolute; top: 40px; inset-inline-start: 50%; width: 8px; height: 14px; border-radius: 2px;
  background: hsl(calc(var(--i) * 26 + 60) 90% 62%); opacity: 0;
  animation: burst 1.1s cubic-bezier(.15,.8,.3,1) forwards; animation-delay: calc(var(--i) * 18ms);
}
@keyframes burst {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  100% { transform: translate(calc((var(--i) - 7) * 26px), calc(-60px - (var(--i) * 7px % 50px))) rotate(calc(var(--i) * 70deg)); opacity: 0; }
}
.pop { animation: pop 0.6s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.fade-in { animation-duration: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  .celebrate { display: none; }
  .pop, .node.current .dot, .fade-in { animation: none !important; }
  .ring .fill, .tab, .goal { transition: none; }
}
@media (max-width: 480px) {
  .quick-card { flex-wrap: wrap; }
  .quick-card .meta { flex: 1 1 calc(100% - 60px); }
  .quick-card .btn { flex: 1 1 100%; }
}

/* Theme-aware logo: dark mark on light backgrounds. */
:root[data-theme="light"] .logo-mark-img, :root[data-theme="light"] .ob-hero img { content: url("/brand/logo-mark-ink.svg"); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .logo-mark-img, :root:not([data-theme="dark"]) .ob-hero img { content: url("/brand/logo-mark-ink.svg"); } }
.wd.today .wd-dot { border-color: var(--accent-text); }
.node.done + .node::before { background: var(--accent-text); }
.theme-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--panel-2); border-radius: 12px; padding: 4px; }
.theme-choice button { min-height: 40px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.theme-choice button.on { background: var(--panel); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,0.12); }

/* Account deletion: tucked away, clearly marked. */
.danger-zone summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.danger-zone[open] summary { margin-bottom: 12px; color: var(--text); }
.btn.danger { background: transparent; color: #e5484d; border: 1px solid #e5484d; }
