:root { --bg:#0f172a; --card:#1e293b; --ink:#e2e8f0; --muted:#94a3b8;
        --accent:#3b82f6; --danger:#ef4444; --ok:#22c55e; --line:#334155; }
* { box-sizing: border-box; }
body { margin:0; font:15px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
       background:var(--bg); color:var(--ink); }
header { display:flex; justify-content:space-between; align-items:center;
         padding:14px 22px; background:#0b1222; border-bottom:1px solid var(--line); }
.brand { color:var(--ink); text-decoration:none; font-weight:600; }
.who { color:var(--muted); font-size:13px; }
.who a, .muted a { color:var(--accent); }
main { max-width:1000px; margin:24px auto; padding:0 16px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px;
        padding:18px 20px; margin-bottom:18px; }
.card.narrow { max-width:420px; }
.card.center { text-align:center; }
h1,h2,h3 { margin:0 0 12px; }
h2 { font-size:18px; } h3 { font-size:15px; color:var(--muted); }
.muted { color:var(--muted); } .small { font-size:13px; }
label { display:block; margin:10px 0; font-size:14px; }
input { width:100%; padding:9px 10px; margin-top:4px; background:#0b1222;
        border:1px solid var(--line); border-radius:8px; color:var(--ink); }
.row, .inline { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.row input { width:auto; flex:1; min-width:160px; margin-top:0; }
.inline input { width:auto; margin-top:0; }
.arrow { color:var(--muted); }
.btn { display:inline-block; padding:9px 16px; background:var(--accent); color:#fff;
       border:none; border-radius:8px; cursor:pointer; text-decoration:none; font-size:14px; }
.btn:hover { filter:brightness(1.1); }
.btn.ghost { background:transparent; border:1px solid var(--accent); color:var(--accent); }
.btn.xs { padding:5px 10px; font-size:12px; }
.btn.danger { background:var(--danger); }
.actions { display:flex; gap:12px; justify-content:center; margin-top:16px; }
table { width:100%; border-collapse:collapse; margin-top:8px; font-size:13px; }
th, td { text-align:left; padding:8px 6px; border-bottom:1px solid var(--line); vertical-align:middle; }
th { color:var(--muted); font-weight:600; }
.chk { font-size:12px; color:var(--muted); display:inline; }
.chk input { width:auto; }
.flash { padding:10px 14px; border-radius:8px; margin-bottom:16px; font-size:14px; }
.flash.ok { background:rgba(34,197,94,.15); border:1px solid var(--ok); }
.flash.err { background:rgba(239,68,68,.15); border:1px solid var(--danger); }
.bar { height:12px; background:#0b1222; border-radius:6px; overflow:hidden; border:1px solid var(--line); }
.bar-fill { height:100%; background:var(--accent); }
