:root {
  color-scheme: dark;
  --bg: #14161a;
  --card: #1c1f26;
  --border: #2b2f38;
  --text: #e6e8ec;
  --muted: #9aa1ad;
  --accent: #4c8dff;
  --ok: #35c07f;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; border-bottom: 1px solid var(--border);
}
.brand { font-size: 15px; font-weight: 500; }
.brand .tag {
  font-size: 11px; color: var(--muted); border: 1px solid var(--border);
  border-radius: 4px; padding: 1px 6px; margin-left: 6px;
}
.actions { display: flex; align-items: center; gap: 10px; }
main { max-width: 1080px; margin: 0 auto; padding: 20px 24px 60px; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 18px 20px; margin-bottom: 16px;
}
h1 { font-size: 18px; font-weight: 500; margin: 0 0 8px; }
h2 { font-size: 15px; font-weight: 500; margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.error { color: #ff7b72; font-size: 13px; min-height: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 12px; }
.metric { background: #23272f; border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
.metric .label { color: var(--muted); font-size: 12px; }
.metric .value { font-size: 20px; font-weight: 500; margin-top: 2px; }
.metric .sub { color: var(--muted); font-size: 12px; }
.bar { height: 5px; background: #2f343d; border-radius: 3px; margin-top: 8px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 400; }
tbody tr:last-child td { border-bottom: none; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4a505c; margin-right: 6px; }
.dot.on { background: var(--ok); }
.btn {
  background: #262b33; color: var(--text); border: 1px solid var(--border);
  border-radius: 6px; padding: 6px 14px; cursor: pointer; font-size: 13px;
}
.btn:hover { border-color: #3d444f; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { background: transparent; }
.login { max-width: 360px; margin: 40px auto; }
.login input {
  width: 100%; margin-bottom: 10px; padding: 9px 12px; border-radius: 6px;
  border: 1px solid var(--border); background: #23272f; color: var(--text); font-size: 14px;
}
.empty { color: var(--muted); font-size: 13px; padding: 8px 0; }
