:root{--bg:#eef1f5;--surface:#fff;--sunk:#f6f8fa;--ink:#18202c;--muted:#5d6979;--line:#e1e5eb;--line-strong:#cfd5de;--accent:#255f9e;--accent-strong:#1d4f86;--accent-ink:#fff;--danger:#b42318;--ok:#176b3a;--ok-bg:#e7f5ec;--warn:#8f4a06;--warn-bg:#fff4e5;color-scheme:light}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--bg:#0f141a;--surface:#182029;--sunk:#141a22;--ink:#e7ebf1;--muted:#9aa5b5;--line:#2a3340;--line-strong:#3a4554;--accent:#72a9e8;--accent-strong:#5b95d8;--accent-ink:#0d1520;--danger:#ff8a80;--ok:#7fd3a0;--ok-bg:#163024;--warn:#f5b46a;--warn-bg:#352612;color-scheme:dark}}
:root[data-theme="dark"]{--bg:#0f141a;--surface:#182029;--sunk:#141a22;--ink:#e7ebf1;--muted:#9aa5b5;--line:#2a3340;--line-strong:#3a4554;--accent:#72a9e8;--accent-strong:#5b95d8;--accent-ink:#0d1520;--danger:#ff8a80;--ok:#7fd3a0;--ok-bg:#163024;--warn:#f5b46a;--warn-bg:#352612;color-scheme:dark}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.45 "Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif}
h1{font-size:22px;margin:0 0 4px}h2{font-size:17px;margin:0 0 10px}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:20px;box-shadow:0 1px 2px rgba(16,24,40,.05),0 2px 6px rgba(16,24,40,.05)}
label{display:block;font-size:12px;color:var(--muted);margin:10px 0 4px;font-weight:500}
input,select,textarea{font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--line-strong);border-radius:7px;padding:8px 10px;width:100%;min-width:0}
button,a.btn{font:inherit;cursor:pointer;border:1px solid var(--line-strong);background:var(--surface);color:var(--ink);border-radius:9px;padding:8px 14px;min-height:40px;font-weight:500;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none}
button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}button.primary:hover{background:var(--accent-strong)}
button.danger{color:var(--danger)}button:disabled{opacity:.6;cursor:default}
.small{font-size:13px;color:var(--muted)}
.error{color:var(--danger);font-size:14px;min-height:1.2em;margin:10px 0 0}
.ok{color:var(--ok)}
