/* Shared Cobalt tokens. First visits are dark, independent of the OS theme. */
:root {
 color-scheme:dark;
 --ac-bg:#0d1118;--ac-surface:#171d28;--ac-ink:#f1f5fc;--ac-muted:#abb6ca;
 --ac-line:#303b4d;--ac-accent:#91b6ff;--ac-on-accent:#11161c;--ac-hover:#acc8ff;
 --ac-soft:#202f4b;--ac-input:#111823;--ac-art:#1d293b;--ac-stage:#111b2a;
 --ac-grid:#91b6ff18;--ac-shadow:#00000030;--ac-error:#ffb3aa;--ac-error-bg:#321f27;
 --ac-success:#a7d5bf;--ac-success-bg:#1b302d;--ac-measure:#91b6ff;--ac-warning:#ffd16b;
 --paper:var(--ac-bg);--ink:var(--ac-ink);--muted:var(--ac-muted);--line:var(--ac-line);--accent:var(--ac-accent);
 --ariva-bg:var(--ac-bg);--ariva-panel:var(--ac-surface);--ariva-panel-border:var(--ac-line);
 --ariva-text:var(--ac-ink);--ariva-muted:var(--ac-muted);--ariva-accent:var(--ac-accent);
 --ariva-dock-bg:var(--ac-surface);--ariva-line:var(--ac-line);
}
:root[data-theme="light"] {
 color-scheme:light;
 --ac-bg:#f6f8fc;--ac-surface:#fff;--ac-ink:#131923;--ac-muted:#626b7a;
 --ac-line:#dce2eb;--ac-accent:#245fe5;--ac-on-accent:#fff;--ac-hover:#184ec8;
 --ac-soft:#eaf0fe;--ac-input:#fff;--ac-art:#eaf0f8;--ac-stage:#e6edf5;
 --ac-grid:#245fe514;--ac-shadow:#13192314;--ac-error:#9b302f;--ac-error-bg:#fff0ed;
 --ac-success:#30674d;--ac-success-bg:#edf7f0;--ac-measure:#245fe5;--ac-warning:#8a5500;
}
html,body{background:var(--ac-bg);color:var(--ac-ink)}
html:not([data-theme="light"]) .brand-logo,html:not([data-theme="light"]) .logo,html:not([data-theme="light"]) .ariva_logo_image{filter:invert(1)}
button.ariva-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex-shrink:0;min-height:38px;padding:8px 11px;border:1px solid var(--ac-line);border-radius:9px;background:var(--ac-surface);color:var(--ac-ink);font:12px/1.4 Arial,Helvetica,sans-serif;cursor:pointer;white-space:nowrap}
button.ariva-theme-toggle::before{content:'☀';font-size:17px;line-height:1}
[data-theme="light"] button.ariva-theme-toggle::before{content:'☾'}
button.ariva-theme-toggle:hover{background:var(--ac-soft);border-color:var(--ac-accent);color:var(--ac-ink)}
button.ariva-theme-toggle:focus-visible{outline:2px solid var(--ac-accent);outline-offset:4px}
.topbar .ariva-theme-toggle{margin-left:0}
.ariva-theme-viewer{position:fixed;top:18px;right:18px;z-index:45010}
.ariva-theme-callback{position:fixed;right:22px;top:22px}
.viewer-error{background:var(--ac-bg)!important;color:var(--ac-ink)!important}
.viewer-error p{color:var(--ac-muted)!important}.viewer-error a{color:var(--ac-accent)!important}
.viewer-error button{background:var(--ac-accent)!important;color:var(--ac-on-accent)!important;border-color:var(--ac-accent)!important}
.viewer-error :focus-visible{outline:2px solid var(--ac-accent);outline-offset:4px}
@media(pointer:coarse){button.ariva-theme-toggle{min-height:44px}}
@media(prefers-reduced-motion:reduce){button.ariva-theme-toggle{transition:none}}
