:root {
  --bg: #0f1115; --panel: #171a21; --line: #262b36; --text: #e6e9ef; --muted: #8b93a7;
  --accent: #5fb3ff; --ok: #4cc38a; --warn: #f0b429; --bad: #ef5d5d;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
header { display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--line); }
header h1 { font-size: 16px; margin: 0; font-weight: 600; letter-spacing: .2px; }
header .meta { color: var(--muted); font-size: 12px; display: flex; gap: 14px; align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); display: inline-block; margin-right: 6px; }
.dot.on { background: var(--ok); }
button { background: #222837; color: var(--text); border: 1px solid var(--line); border-radius: 6px;
  padding: 6px 12px; font: inherit; cursor: pointer; }
button:hover { border-color: var(--accent); }
main { padding: 16px; max-width: 1400px; margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px; min-width: 0; }
.card h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted);
  margin: 0 0 10px; font-weight: 600; }
.big { font-size: 30px; font-weight: 650; font-variant-numeric: tabular-nums; }
.sub { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.bar { height: 6px; background: #232836; border-radius: 3px; overflow: hidden; margin: 6px 0; }
.bar > i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .4s; }
.cores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 10px; margin-top: 8px; }
.core { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rows div { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dashed #222733;
  font-variant-numeric: tabular-nums; }
.rows div:last-child { border-bottom: 0; }
.rows span:first-child { color: var(--muted); }
canvas.spark { width: 100%; height: 40px; display: block; margin-top: 8px; }
.hot { color: var(--warn); } .vhot { color: var(--bad); }
.term-card { margin-top: 12px; }
.term-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
#term { height: 460px; background: #000; border-radius: 6px; padding: 6px; }
/* login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login { width: 100%; max-width: 340px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 22px; }
.login h1 { font-size: 18px; margin: 0 0 4px; }
.login p { color: var(--muted); margin: 0 0 18px; font-size: 13px; }
.login label { display: block; font-size: 12px; color: var(--muted); margin: 10px 0 4px; }
.login label:first-of-type { margin-top: 0; }
.login input { width: 100%; padding: 9px 10px; border-radius: 6px; border: 1px solid var(--line);
  background: #0f1218; color: var(--text); font: inherit; }
.login input:focus { outline: none; border-color: var(--accent); }
.login button { width: 100%; margin-top: 16px; padding: 9px; background: var(--accent); color: #06121f;
  border: 0; font-weight: 600; }
.err { color: var(--bad); font-size: 13px; min-height: 18px; margin-top: 10px; }
@media (max-width: 600px) { #term { height: 360px; } .big { font-size: 26px; } }
.mt { margin-top: 12px !important; }
.m0 { margin: 0 !important; }
