:root {
  --bg: #f3f4f6;
  --card: #fff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --ok: #059669;
  --off: #9ca3af;
  --accent: #0f766e;
  --danger: #b91c1c;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font: 14px/1.55 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: var(--accent); text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 24px 20px 48px; }
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.brand { font-size: 18px; font-weight: 700; letter-spacing: .02em; }
.nav { display: flex; gap: 16px; align-items: center; color: var(--muted); }
.nav a.active { color: var(--text); font-weight: 600; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 20px; margin-bottom: 16px;
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.switch {
  position: relative; display: inline-block; width: 40px; height: 22px; vertical-align: middle;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; inset: 0;
  background: #d1d5db; border-radius: 22px; transition: .15s;
}
.slider:before {
  content: ""; position: absolute; height: 16px; width: 16px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .15s;
}
.switch input:checked + .slider { background: var(--danger); }
.switch input:checked + .slider:before { transform: translateX(18px); }
.stat { padding: 14px 16px; background: #fafafa; border-radius: 8px; }
.stat b { display: block; font-size: 22px; margin-top: 4px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 12px; color: var(--muted); font-weight: 600; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dot.on { background: var(--ok); }
.dot.off { background: var(--off); }
.badge { font-size: 12px; }
.muted { color: var(--muted); }
.btn {
  display: inline-block; border: 0; border-radius: 6px; padding: 8px 14px;
  background: var(--accent); color: #fff; cursor: pointer; font-size: 14px;
}
.btn.gray { background: #374151; }
.btn.danger { background: var(--danger); }
.tag-cur {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  background: #d1fae5; color: #065f46; font-size: 12px;
}
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.chk { display: flex; align-items: center; gap: 8px; max-width: 480px; color: var(--text); }
.chk input { width: auto; }
input, textarea {
  width: 100%; max-width: 480px; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 6px; font: inherit;
}
label { display: block; margin: 10px 0 6px; color: var(--muted); }
.login-box { max-width: 360px; margin: 12vh auto; background: #fff; padding: 28px; border-radius: 10px; border: 1px solid var(--line); }
.err { color: var(--danger); margin: 8px 0; }
.ok { color: var(--ok); }
code { font-family: Consolas, monospace; background: #f3f4f6; padding: 1px 5px; border-radius: 4px; }
.install-yaml {
  width: 100%; max-width: 100%; height: 160px; font-family: Consolas, monospace; font-size: 13px;
}
@media (max-width: 800px) {
  .stats { grid-template-columns: 1fr; }
  .table { font-size: 12px; }
}
