:root {
  color-scheme: light;
  --bg: #f3f6f3;
  --ink: #263a30;
  --muted: #647064;
  --line: #dce3db;
  --surface: #ffffff;
  --soft: #eef3e8;
  --hover: #e9f0e1;
  --accent: #345d43;
  --on-accent: #ffffff;
  --accent-hover: #264c34;
  --focus: #689544;
  --plan: #e8f0dc;
  --plan-line: #d6e1c9;
  --plan-muted: #647451;
  --track: #eef1e9;
  --progress: #91b962;
  --warning: #fff4df;
  --warning-line: #ebd4ac;
  --warning-ink: #6f552c;
  --error: #ab302d;
  --orbit-start: #f4f9e7;
  --orbit-end: #cee6bb;
  --orbit-glow: #ffffff99;
  --shadow: #263a3008;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111a16;
  --ink: #e1eadd;
  --muted: #a0afa2;
  --line: #344239;
  --surface: #1a261f;
  --soft: #26372b;
  --hover: #304532;
  --accent: #bbdb95;
  --on-accent: #172713;
  --accent-hover: #cceba8;
  --focus: #bbdb95;
  --plan: #2a3b25;
  --plan-line: #45563a;
  --plan-muted: #b5c5a4;
  --track: #344336;
  --progress: #bbdb95;
  --warning: #3c3020;
  --warning-line: #745d35;
  --warning-ink: #efd0a0;
  --error: #ffada4;
  --orbit-start: #415635;
  --orbit-end: #243c2e;
  --orbit-glow: #9eba6012;
  --shadow: #00000020;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 13px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.theme-toggle:hover { background: var(--hover); }
.theme-toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .theme-moon, :root[data-theme="dark"] .theme-toggle .theme-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-moon { display: block; }
@media (max-width: 700px) {
  .theme-toggle .theme-label { display: none; }
  .theme-toggle { padding: 10px; }
}
