/* Available before first paint, including standalone privacy pages. */
:where(:root[data-oz-theme="dark"]) { color-scheme: dark; background-color: #0c0d10; }
:root[data-oz-theme="light"] {
  color-scheme: light;
  background-color: #F5F6F8;
  --oz-bg: #F5F6F8;
  --oz-bg-1: #FFFFFF;
  --oz-bg-2: #F0F2F5;
  --oz-bg-3: #E8ECF2;
  --oz-line: #DDE2E8;
  --oz-line-2: #7B8493;
  --oz-text: #1A1D24;
  --oz-text-2: #475062;
  --oz-muted: #626B79;
  --oz-faint: #626B79;
  --oz-accent: #245BC7;
  --oz-accent-hover: #1E4EAE;
  --oz-accent-ink: #FFFFFF;
  --oz-primary: #2F6DF3;
  --oz-accent-soft: #EAF1FF;
  --oz-accent-line: #245BC7;
  --oz-ok: #15803D;
  --oz-ok-soft: #EAF7EE;
  --oz-warn: #9A6700;
  --oz-warn-soft: #FFF6D8;
  --oz-danger: #B42318;
  --oz-danger-soft: #FFF0EE;
  --oz-shadow-sm: 0 1px 2px rgba(26,29,36,.06);
  --oz-shadow-md: 0 8px 22px rgba(26,29,36,.09);
  --oz-shadow-lg: 0 24px 48px rgba(26,29,36,.15);
  --bg-soft: #F0F2F5;
}
.oz-theme-switch { display: inline-flex; flex-shrink: 0; gap: 2px; padding: 3px; border: 1px solid var(--oz-line-2, #63778c); border-radius: 8px; background: var(--oz-bg-2, #17191e); }
.oz-theme-switch[hidden], :root:not([data-oz-theme-available="true"]) .oz-theme-switch { display: none; }
.oz-theme-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 30px; padding: 5px 9px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--oz-muted, #8c919b); font: 600 12px/1.2 "Inter", system-ui, sans-serif; cursor: pointer; }
.oz-theme-switch button:hover { background: var(--oz-bg-3, #1d2027); color: var(--oz-text, #ecedef); }
.oz-theme-switch button[aria-pressed="true"] { background: var(--oz-accent-soft, #172341); color: var(--oz-accent, #78a2ff); border-color: var(--oz-accent, #78a2ff); }
.oz-theme-switch button:focus-visible { outline: 2px solid var(--oz-accent, #78a2ff); outline-offset: 3px; }
/* Match the 28px connection and language controls in the desktop toolbar. */
.desktop-app-topbar .oz-theme-switch { align-self: center; height: 28px; padding: 1px; }
.desktop-app-topbar .oz-theme-switch button { min-height: 0; padding: 0 8px; }
@media print { .oz-theme-switch { display: none !important; } }
