:root {
  color-scheme: light;
  --switch-bg: #eef1f4;
  --switch-active: #fff;
  --switch-border: #becbd1;
  --switch-ink: #465864;
}
:root[data-palette="dark"] {
  color-scheme: dark;
  --switch-bg: #34404a;
  --switch-active: #263039;
  --switch-border: #65747e;
  --switch-ink: #d8e7e3;
}
.display-options, .theme-options {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.display-options { gap: 8px; }
.theme-options {
  border-radius: 6px;
  border: 1px solid var(--switch-border);
  background: var(--switch-bg);
  padding: 2px;
  gap: 2px;
}
.theme-options button {
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 4px;
  min-width: 30px;
  min-height: 26px;
  color: var(--switch-ink);
  background: transparent;
  line-height: 1;
}
.theme-options button[aria-pressed="true"],
.theme-options button:hover {
  border-color: var(--switch-border);
  background: var(--switch-active);
}
.theme-options button[aria-pressed="true"] svg { stroke-width: 2.3; }
.theme-options button:focus-visible { outline: 2px solid #bb842b; outline-offset: 1px; }
@media (pointer: coarse) {
  .theme-options button, .languages button { min-height: 36px; min-width: 36px; }
}
:root[data-palette="dark"] .badge.positive { color: #ffb4ab; background: #4a2522; }
:root[data-palette="dark"] .badge.positive i { background: #ff6b5e; }
:root[data-palette="dark"] .badge.negative { color: #9fe0b8; background: #1f3d2c; }
:root[data-palette="dark"] .badge.negative i { background: #4cc483; }
:root[data-palette="dark"] .grant-list li.on svg { color: #9fe0b8; }
:root[data-palette="dark"] header .header-brand { color: var(--ink); }
:root[data-palette="dark"] .menu-toggle { color: var(--ink); }
