/* Additive theme tokens: the sidebar remains dark in both modes. */
:root { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220; --surface: #111c2d; --surface-2: #162338; --surface-3: #1b2b42;
  --border: #2b3e55; --border-strong: #48607b;
  --ink: #e7edf5; --ink-2: #c0cedd; --ink-3: #9aabbe; --ink-4: #7f93ab;
  --accent: #67d7e7; --accent-2: #8be4ef; --accent-ink: #a5edf5; --accent-soft: #173541;
  --ok: #6ee7b7; --ok-soft: #12372e; --warn: #fcd581; --warn-soft: #3b2e1c;
  --danger: #fda4af; --danger-soft: #3f202e; --info: #93c5fd; --info-soft: #182f4b;
  --shadow-1: 0 1px 2px #0003; --shadow-2: 0 4px 16px #0003;
}
.sidebar { background: #0f1419; --ink: #0f1419; }
[data-theme="dark"] .sidebar { background: #080f18; }
.topbar { background: var(--surface); }
.inventory-module-shell { background: var(--bg); }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  flex-shrink: 0; padding: 8px 11px; border-radius: 9px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--border); color: var(--ink); background: var(--surface); cursor: pointer;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.theme-toggle svg { width: 16px; height: 16px; }
[data-theme="dark"] .btn.primary { background: #087e91; border-color: #168ea2; color: #fff; }
[data-theme="dark"] .btn.primary:hover { background: #096879; }
[data-theme="dark"] .main [style*="background: oklch(9"],
[data-theme="dark"] .main [style*="background: rgb(255, 255, 255)"],
[data-theme="dark"] .main [style*="background: rgb(250, 250, 247)"] { background: var(--surface-2) !important; }
[data-theme="dark"] .main [style*="color: rgb(15, 20, 25)"] { color: var(--ink) !important; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #3e536d; }
