:root{--button-ink:#fff;--button-hover:#5140bd;--header-bg:rgba(255,255,255,.94);--hero-start:#000;--hero-end:#666}
:root[data-theme="dark"]{color-scheme:dark;--paper:#181818;--surface:#1f1f1f;--soft:#272727;--ink:#f4f2f8;--muted:#b0abba;--line:#3b3842;--accent:#b6a8ff;--accent-soft:#313131;--good:#92d7b0;--good-soft:#272727;--bad:#ff9da5;--bad-soft:#272727;--warn:#e9c27a;--warn-soft:#272727;--button-ink:#181818;--button-hover:#d0c5ff;--header-bg:rgba(24,24,24,.94);--hero-start:#fff;--hero-end:#9b9b9b}
@media(prefers-color-scheme:dark){:root:not([data-theme]){color-scheme:dark;--paper:#181818;--surface:#1f1f1f;--soft:#272727;--ink:#f4f2f8;--muted:#b0abba;--line:#3b3842;--accent:#b6a8ff;--accent-soft:#313131;--button-ink:#181818;--button-hover:#d0c5ff;--header-bg:rgba(24,24,24,.94);--hero-start:#fff;--hero-end:#9b9b9b}}
.theme-picker{position:relative;flex:none;font-size:14px;line-height:20px;z-index:12}.theme-picker summary{width:40px;height:40px;display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;border:1px solid var(--line);border-radius:8px;color:var(--muted);background:var(--paper);touch-action:manipulation}.theme-picker summary::-webkit-details-marker{display:none}.theme-picker summary:hover,.theme-picker[open] summary{background:var(--soft);color:var(--ink)}.theme-picker summary:active{transform:scale(.98)}.theme-picker summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}.theme-picker svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.theme-options{position:absolute;top:calc(100% + 8px);right:0;width:192px;margin:0;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink)}.theme-options label{display:flex;align-items:center;gap:12px;padding:8px;min-height:40px;cursor:pointer;border-radius:4px;font-size:14px;line-height:20px;font-weight:400}.theme-options label:hover{background:var(--soft)}.theme-options input[type=radio]{appearance:auto;accent-color:var(--accent);width:16px;height:16px;min-height:0;margin:0;padding:0;flex:none}.theme-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.login-theme{position:absolute;right:24px;top:24px;z-index:12}.site-header [data-theme-control]{display:flex;align-items:center}.login-main{position:relative}
