
:root { color-scheme: light dark; --fg:#1b1f24; --bg:#f7f7f5; --card:#fff; --line:#d9d9d4; --accent:#0b5cad; --bad:#b42318; }
@media (prefers-color-scheme: dark) { :root { --fg:#e8e8e3; --bg:#16181b; --card:#1f2226; --line:#33373c; --accent:#6aa9ff; --bad:#ff8a80; } }
* { box-sizing: border-box; }
body { margin:0; font:16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color:var(--fg); background:var(--bg); }
main { max-width: 28rem; margin: 2rem auto; padding: 0 16px; }
header h1 { margin:0; font-size:1.4rem; }
.env { margin:.25rem 0 1.5rem; font-size:.85rem; opacity:.75; }
section { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:1.25rem; }
h2 { margin-top:0; font-size:1.15rem; }
label { display:block; margin:.75rem 0; font-weight:600; font-size:.9rem; }
input { display:block; width:100%; margin-top:.3rem; padding:.6rem .7rem; font:inherit; border:1px solid var(--line); border-radius:6px; background:transparent; color:inherit; }
button { padding:.6rem 1rem; font:inherit; font-weight:600; border:0; border-radius:6px; background:var(--accent); color:#fff; cursor:pointer; }
button:disabled { opacity:.6; cursor:wait; }
#msg { min-height:1.5em; }
#msg.error { color:var(--bad); font-weight:600; }
.qr { width: 220px; height: 220px; background:#fff; padding:8px; border-radius:6px; }
.qr svg { width:100%; height:100%; }
.codes { font-family: ui-monospace, Consolas, monospace; columns: 2; }
code { word-break: break-all; }
dl { display:grid; grid-template-columns:auto 1fr; gap:.25rem 1rem; }
dt { font-weight:600; }
dd { margin:0; }
details { margin-top:1rem; }
