:root { --bg:#0f1221; --card:#1a1f36; --ink:#e7eaf6; --mut:#8b93b8; --acc:#4f8cff; --ok:#2ecc71; --off:#555c7a; --line:#2a3152; }
* { 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; align-items:center; justify-content:space-between; padding:14px 22px; border-bottom:1px solid var(--line); }
header h1 { font-size:18px; margin:0; }
main { max-width:960px; margin:0 auto; padding:22px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:18px; margin:0 0 16px; }
h2 { font-size:16px; margin:0 0 12px; }
label { display:block; font-size:12px; color:var(--mut); margin:10px 0 4px; }
input, select { width:100%; padding:9px 11px; background:#0d1020; border:1px solid var(--line); border-radius:8px; color:var(--ink); }
button { padding:9px 14px; background:var(--acc); color:#fff; border:0; border-radius:8px; cursor:pointer; font-weight:600; }
button.ghost { background:transparent; border:1px solid var(--line); color:var(--ink); }
button.sm { padding:5px 10px; font-size:13px; }
button:disabled { opacity:.5; cursor:default; }
.row { display:flex; gap:10px; flex-wrap:wrap; align-items:end; }
.row > * { flex:1; min-width:120px; }
table { width:100%; border-collapse:collapse; }
th, td { text-align:left; padding:9px 8px; border-bottom:1px solid var(--line); font-size:14px; }
th { color:var(--mut); font-weight:600; font-size:12px; }
.dot { display:inline-block; width:9px; height:9px; border-radius:50%; background:var(--off); margin-right:6px; }
.dot.on { background:var(--ok); box-shadow:0 0 8px var(--ok); }
.mut { color:var(--mut); font-size:13px; }
.link { color:var(--acc); cursor:pointer; }
.sheet { background:#0d1020; border:1px dashed var(--line); border-radius:8px; padding:12px; font-family:ui-monospace,monospace; font-size:13px; white-space:pre-wrap; }
.pills { display:flex; gap:8px; flex-wrap:wrap; }
.pills label { display:flex; align-items:center; gap:5px; margin:0; color:var(--ink); background:#0d1020; border:1px solid var(--line); padding:6px 10px; border-radius:20px; }
.pills input { width:auto; }
#toast { position:fixed; bottom:20px; left:50%; transform:translateX(-50%); background:#222a4d; border:1px solid var(--line); padding:10px 16px; border-radius:8px; opacity:0; transition:opacity .2s; pointer-events:none; }
#toast.show { opacity:1; }
.err { color:#ff6b6b; }
