:root { color-scheme: dark; --bg:#0f1115; --card:#181b22; --line:#2a2f3a; --fg:#e6e8ee; --dim:#8b92a3; --acc:#4f8cff; --ok:#3ecf8e; --warn:#f5a524; --err:#f31260; }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--fg); font:15px/1.5 system-ui,-apple-system,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; }
main { max-width:760px; margin:0 auto; padding:20px 16px 40px; }
header { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
h1 { font-size:22px; margin:0; } h1 small { color:var(--dim); font-weight:400; font-size:14px; margin-left:6px; }
h2 { font-size:13px; color:var(--dim); margin:0 0 6px; font-weight:500; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:16px; margin-top:16px; }
.row { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.row > label:first-child { width:70px; color:var(--dim); flex:none; }
.row.checks { flex-direction:column; align-items:flex-start; gap:6px; }
.row.checks label { color:var(--fg); width:auto; font-size:13px; }
input[type=text], input[type=password], select { flex:1; min-width:0; background:#0f1115; color:var(--fg); border:1px solid var(--line); border-radius:8px; padding:8px 10px; font:inherit; }
input[type=range] { flex:1; }
button { background:#232834; color:var(--fg); border:1px solid var(--line); border-radius:8px; padding:10px 20px; font:inherit; cursor:pointer; }
button.primary { background:var(--acc); border-color:var(--acc); color:#fff; }
button:disabled { opacity:.45; cursor:not-allowed; }
.actions { display:flex; gap:10px; margin-top:14px; }
.status { padding:4px 12px; border-radius:999px; font-size:13px; border:1px solid var(--line); }
.status.idle { color:var(--dim); } .status.connecting { color:var(--warn); border-color:var(--warn); }
.status.live { color:var(--ok); border-color:var(--ok); } .status.error { color:var(--err); border-color:var(--err); }
.subcard { background:#12141a; border:1px solid var(--line); border-radius:8px; padding:12px; margin:12px 0; }
.meter { height:12px; background:#0f1115; border-radius:4px; position:relative; overflow:hidden; border:1px solid var(--line); }
#meterBar { height:100%; width:0; background:linear-gradient(90deg,var(--ok),var(--warn)); transition:width .05s linear; }
#gateMarker { position:absolute; top:0; bottom:0; width:2px; background:#f5a524; z-index:2; pointer-events:none; }
.meter.gated #meterBar { background:#555a66; }
.msg { color:var(--err); min-height:1.4em; margin:10px 0 0; font-size:13px; }
.stats { color:var(--dim); font-size:12px; margin:4px 0 0; }
.subs { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.subs > div > div { max-height:40vh; overflow:auto; white-space:pre-wrap; font-size:18px; line-height:1.6; }
@media (max-width:600px) { .subs { grid-template-columns:1fr; } }
footer { margin-top:24px; text-align:center; font-size:12px; } footer a { color:var(--dim); }
