:root{color-scheme:dark;--bg:#111317;--panel:#1a1d23;--line:#2a2f3a;--fg:#e4e1db;--mut:#9da3ad;--acc:#d4ad3a;--acc-fg:#111111;--bad:#ff6b6b;--input:#0c0e12}
@media (prefers-color-scheme:light){:root:not([data-theme]){color-scheme:light;--bg:#fbfaf7;--panel:#f2efe8;--line:#dedad0;--fg:#1f1d1a;--mut:#625d55;--acc:#8a6512;--acc-fg:#ffffff;--bad:#b3261e;--input:#ffffff}}
:root[data-theme="light"]{color-scheme:light;--bg:#fbfaf7;--panel:#f2efe8;--line:#dedad0;--fg:#1f1d1a;--mut:#625d55;--acc:#8a6512;--acc-fg:#ffffff;--bad:#b3261e;--input:#ffffff}
:root[data-theme="sepia"]{color-scheme:light;--bg:#f4ecd8;--panel:#ebe0c6;--line:#d9cbad;--fg:#3a2e21;--mut:#665640;--acc:#85561a;--acc-fg:#fffaf0;--bad:#a3271b;--input:#fbf5e6}
:root[data-theme="black"]{--bg:#000000;--panel:#0d0e10;--line:#222326;--fg:#d6d3cd;--mut:#8f8f8f;--acc:#c9a227;--acc-fg:#000000;--input:#050505}
*{box-sizing:border-box}html,body{margin:0;height:100%;background:var(--bg);color:var(--fg);font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}
body{display:flex;align-items:center;justify-content:center;padding:16px}
.box{width:100%;max-width:340px;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:24px}
h1{margin:0 0 16px;font-size:20px;font-weight:600;letter-spacing:.02em}
input{width:100%;padding:12px;margin:0 0 10px;border-radius:8px;border:1px solid var(--line);background:var(--input);color:var(--fg);font-size:16px}
button{width:100%;padding:12px;border:0;border-radius:8px;background:var(--acc);color:var(--acc-fg);font-weight:600;font-size:16px;cursor:pointer}
:focus-visible{outline:2px solid var(--acc);outline-offset:2px}
.msg{min-height:1.2em;margin:10px 0 0;color:var(--bad);font-size:14px}
