:root[data-theme="dark"]{color-scheme:dark;--bg:#09090c;--bg2:#141219;--ink:#f5f5f7;--muted:#b4afbf;--line:#ffffff24;--surface:#15131b;--field:#0c0b10;--accent-text:#c2b3ff;--success:#bcefdc;--error:#ffc1d2;--nav-surface:#111016e6;--teal:#5de0cc;--violet:#7c5cff;--pink:#ff6b9d}
:root[data-theme="light"]{color-scheme:light;--bg:#f6f7fc;--bg2:#fff;--ink:#201b2e;--muted:#625b71;--line:#30244329;--surface:#fff;--field:#f5f3fb;--accent-text:#5d36b3;--success:#13634f;--error:#a82043;--nav-surface:#fffffff0;--teal:#087667;--violet:#6941d1;--pink:#ad3679}
:root[data-theme] body{background-color:var(--bg);color:var(--ink)}
:root[data-theme="light"] body{background:radial-gradient(ellipse at 10% 0,#e9e2fc,transparent 48%),var(--bg)}
:root[data-theme] .nav-in{background:var(--nav-surface)}
:root[data-theme] :is(.panel,.request-card,.identity-dialog){background:var(--surface);color:var(--ink);border-color:var(--line)}
:root[data-theme] :is(input,select,textarea){background:var(--field);color:var(--ink);border-color:var(--line)}
:root[data-theme] :is(.identity-dialog label,.identity-close){color:var(--ink)}
:root[data-theme] :is(.eyebrow,.identity-eyebrow,.identity-links button){color:var(--accent-text)}
:root[data-theme] :is(#identity-description,#identity-user-email){color:var(--muted)}
:root[data-theme] .notice{color:var(--success)}
:root[data-theme] .notice.error{color:var(--error)}
:root[data-theme] :is(.secondary,.identity-nav-button){color:var(--ink)}
:root[data-theme] :is(.browser,.screen,.nope){background:var(--surface);color:var(--ink)}
:root[data-theme] :is(.bar,.hint){background:var(--bg2)}
:root[data-theme] .url{background:var(--field)}
:root[data-theme] .code-loader{color:var(--ink)}
:root[data-theme] .btn.fill{color:#fff}
:root[data-theme="light"] .blob{opacity:.16}
:root[data-theme="light"] #cursor-blob{opacity:.35}
:root[data-theme="light"] #identity-message{background:#e0f3ea;color:#15543f}
:root[data-theme="light"] #identity-message.identity-error{background:#fce6ec;color:#a01b3a}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 12px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);font:500 14px/1.3 var(--body,system-ui,sans-serif);white-space:nowrap;cursor:pointer}
.theme-toggle:focus-visible{outline:3px solid var(--violet);outline-offset:3px}.theme-toggle span[aria-hidden]{font-size:19px}
.theme-menu-item{display:flex;align-items:center}.theme-toolbar{position:fixed;top:16px;right:16px;z-index:500}
:root[data-theme] .nav-in ul{align-items:center}.nav-in .theme-toggle{font-size:13px;padding:8px 10px}
@media(min-width:901px){:root[data-theme] .nav-in ul a{padding:8px 9px;font-size:.88rem}}
@media(max-width:1100px){:root[data-theme] .nav-in .burger{display:block}:root[data-theme] .nav-in ul{position:absolute;top:64px;left:0;right:0;display:none;flex-direction:column;align-items:stretch;background:var(--surface);border:1px solid var(--line);padding:18px;border-radius:22px;max-height:calc(100dvh - 100px);overflow:auto}:root[data-theme] .nav-in ul.open{display:flex}:root[data-theme] .nav-in ul a{display:block}.nav-in .theme-menu-item{padding:4px 8px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation:none!important;transition:none!important}}
