:root { --bg:#f4f5f7; --card:#fff; --text:#1c1e21; --muted:#6b7280; --accent:#4f46e5; --border:#e2e4e9; --bar:#c7d2fe; }
@media (prefers-color-scheme: dark) { :root { --bg:#14151a; --card:#1e2028; --text:#e8e9ed; --muted:#9aa0ac; --accent:#818cf8; --border:#2e313b; --bar:#3b3f7a; } }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--text); font:16px/1.5 system-ui,sans-serif; }
main { max-width:560px; margin:0 auto; padding:24px 16px; }
.card { background:var(--card); border:1px solid var(--border); border-radius:12px; padding:20px; margin-bottom:16px; }
h1 { font-size:1.4rem; margin:0 0 4px; } h2 { font-size:1.1rem; margin:0 0 12px; }
.muted { color:var(--muted); font-size:.9rem; }
button, input, textarea { font:inherit; color:inherit; }
button { background:var(--accent); color:#fff; border:0; border-radius:8px; padding:10px 16px; cursor:pointer; }
button.secondary { background:transparent; color:var(--text); border:1px solid var(--border); }
button.danger { background:#dc2626; }
button:disabled { opacity:.5; cursor:default; }
input[type=text], input[type=password], textarea { width:100%; padding:10px; border:1px solid var(--border); border-radius:8px; background:var(--bg); margin:6px 0 12px; }
.opt { display:block; width:100%; text-align:left; background:var(--bg); color:var(--text); border:1px solid var(--border); margin-bottom:8px; }
.opt:hover { border-color:var(--accent); }
.row { display:flex; gap:8px; flex-wrap:wrap; }
.res { position:relative; border:1px solid var(--border); border-radius:8px; margin-bottom:8px; overflow:hidden; padding:10px 12px; display:flex; justify-content:space-between; gap:12px; }
.res .bar { position:absolute; inset:0 auto 0 0; background:var(--bar); z-index:0; }
.res span { position:relative; z-index:1; }
.res.first { border-color:var(--accent); font-weight:600; }
.msg { padding:10px 12px; border-radius:8px; background:var(--bg); margin-bottom:12px; }
.err { color:#dc2626; }
