/* Shared Hypervisor-Zero appearance tokens for every HTML route. */
:root {
  color-scheme: light;
  --hz-page: #f5f6f1;
  --hz-page-glow: #ecefe6;
  --hz-surface: #ffffff;
  --hz-surface-2: #f0f2eb;
  --hz-surface-3: #e6eadd;
  --hz-ink: #11150f;
  --hz-ink-soft: #30382d;
  --hz-muted: #596354;
  --hz-muted-2: #747d70;
  --hz-border: #dce2d6;
  --hz-border-strong: #c3cdbd;
  --hz-primary: #151a12;
  --hz-primary-hover: #303a28;
  --hz-primary-soft: #e9f3d9;
  --hz-primary-line: #b7f34a;
  --hz-teal: #607e31;
  --hz-teal-soft: #edf5df;
  --hz-green: #176b50;
  --hz-green-soft: #e7f6ee;
  --hz-green-border: #a7d8c6;
  --hz-warning: #85540b;
  --hz-warning-soft: #fff3d8;
  --hz-warning-border: #e5ca8d;
  --hz-danger: #a42331;
  --hz-danger-soft: #fdebed;
  --hz-danger-border: #efc0c5;
  --hz-info: #2058a8;
  --hz-info-soft: #eaf1ff;
  --hz-info-border: #b6c8f0;
  --hz-shadow-sm: 0 2px 8px rgb(22 39 76 / 5%);
  --hz-shadow-md: 0 18px 50px rgb(22 39 76 / 9%);
  --hz-shadow-focus: 0 0 0 3px rgb(52 73 185 / 22%);
}
:root[data-theme="dark"] {
  /* Override legacy route-level light declarations so native controls follow the selected theme. */
  color-scheme: dark !important;
  --hz-page: #090c08;
  --hz-page-glow: #0d120b;
  --hz-surface: #111710;
  --hz-surface-2: #172016;
  --hz-surface-3: #202b1d;
  --hz-ink: #f1f5ec;
  --hz-ink-soft: #d7e0cf;
  --hz-muted: #aab6a1;
  --hz-muted-2: #87947d;
  --hz-border: #293526;
  --hz-border-strong: #3c4b36;
  --hz-primary: #b7f34a;
  --hz-primary-hover: #c8ff68;
  --hz-primary-soft: #202d16;
  --hz-primary-line: #597b2b;
  --hz-teal: #b7f34a;
  --hz-teal-soft: #202d16;
  --hz-green: #8ee0b9;
  --hz-green-soft: #15372f;
  --hz-green-border: #316d5a;
  --hz-warning: #f1ca7b;
  --hz-warning-soft: #3a2c16;
  --hz-warning-border: #6f562d;
  --hz-danger: #ff9d9d;
  --hz-danger-soft: #3d2028;
  --hz-danger-border: #693a47;
  --hz-info: #8cb8ff;
  --hz-info-soft: #1a2b46;
  --hz-info-border: #3a5074;
  --hz-shadow-sm: 0 2px 8px rgb(0 0 0 / 16%);
  --hz-shadow-md: 0 18px 50px rgb(0 0 0 / 26%);
  --hz-shadow-focus: 0 0 0 3px rgb(169 186 255 / 26%);
}
.hz-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--hz-border);
  border-radius: 10px;
  background: var(--hz-surface);
  color: var(--hz-ink);
  font: 650 12px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.hz-theme-toggle:hover { background: var(--hz-surface-2); border-color: var(--hz-border-strong); }
.hz-theme-toggle:active { transform: scale(.98); }
.hz-theme-toggle:focus-visible { outline: 3px solid var(--hz-primary); outline-offset: 3px; }
@media (max-width: 560px) { .hz-theme-toggle { min-height: 36px; padding-inline: 9px; font-size: 11px; } }
