:root { --bg:#fff; --fg:#16181d; --muted:#5d6472; --card:#f4f5f7; --line:#d9dce2; --accent:#1757c2; --danger:#b3261e; color-scheme: light dark; }
@media (prefers-color-scheme: dark) { :root { --bg:#111317; --fg:#e8eaee; --muted:#9aa1ae; --card:#1b1e24; --line:#2e333c; --accent:#6ea0ff; --danger:#ff8a80; } }
body { margin:0; background:var(--bg); color:var(--fg); font:16px/1.5 system-ui, sans-serif; }
main { max-width:36rem; margin:0 auto; padding:2rem 1rem 4rem; }
main.wide { max-width:52rem; }
label { display:block; margin:.9rem 0; font-weight:600; }
label.inline { display:inline-block; margin:0 1rem .5rem 0; font-weight:400; }
input:not([type=checkbox]), select, textarea { display:block; box-sizing:border-box; width:100%; margin-top:.3rem; padding:.6rem; font:inherit; color:inherit; background:var(--bg); border:1px solid var(--line); border-radius:8px; }
select { margin-bottom:.6rem; }
fieldset { border:1px solid var(--line); border-radius:8px; }
button { padding:.6rem 1.1rem; margin-right:.5rem; font:inherit; font-weight:600; color:var(--bg); background:var(--accent); border:0; border-radius:8px; cursor:pointer; }
button.danger { background:var(--danger); }
button:disabled { opacity:.5; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:1rem; margin:.75rem 0; overflow-wrap:anywhere; }
.muted { color:var(--muted); }
a { color:var(--accent); }
code, pre { background:var(--card); border-radius:6px; padding:.1rem .3rem; overflow-wrap:anywhere; white-space:pre-wrap; }
[hidden] { display:none; }
