* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f4f5f7; color: #1f2937; }
header { display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: #111827; color: #f9fafb; }
header h1 { margin: 0; font-size: 18px; font-weight: 600; }
main { max-width: 1080px; margin: 0 auto; padding: 20px 16px 60px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.card { background: #fff; border-radius: 10px; padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.card .num { font-size: 26px; font-weight: 700; }
.card .lbl { color: #6b7280; font-size: 13px; margin-top: 4px; }
.panel { background: #fff; border-radius: 10px; padding: 18px; margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.panel h2 { margin: 0 0 12px; font-size: 15px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
button { background: #2563eb; color: #fff; border: 0; border-radius: 8px;
  padding: 9px 16px; font-size: 14px; cursor: pointer; }
button:hover { background: #1d4ed8; }
button.ghost { background: transparent; color: #2563eb; border: 1px dashed #93c5fd; }
button.ghost:hover { background: #eff6ff; }
button.danger { background: transparent; color: #dc2626; border: 1px dashed #fca5a5;
  padding: 5px 10px; font-size: 12px; }
button.danger:hover { background: #fef2f2; }
header button.ghost { color: #e5e7eb; border-color: #4b5563; }
code { background: #f3f4f6; padding: 8px 12px; border-radius: 8px; font-size: 13px;
  word-break: break-all; }
.hint { color: #9ca3af; font-size: 12px; }
.err { color: #dc2626; font-size: 13px; min-height: 18px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid #f3f4f6; }
th { color: #6b7280; font-weight: 500; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dot.on { background: #22c55e; } .dot.off { background: #d1d5db; }
.prog { height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; margin-top: 6px; }
.prog > div { height: 100%; background: #2563eb; border-radius: 4px; transition: width .3s; }
.act { border-bottom: 1px solid #f3f4f6; padding: 10px 0; font-size: 13px; }
.act:last-child { border-bottom: 0; }
.act .meta { color: #6b7280; font-size: 12px; margin-top: 2px; }
.badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.badge.ok { background: #dcfce7; color: #166534; }
.badge.wait { background: #fef9c3; color: #854d0e; }
.overlay { position: fixed; inset: 0; background: rgba(17,24,39,.55);
  display: flex; align-items: center; justify-content: center; z-index: 10; }
.overlay.hidden, .hidden { display: none; }
.login-box { background: #fff; border-radius: 12px; padding: 32px; width: 320px; text-align: center; }
.login-box h2 { margin: 0 0 6px; }
.login-box p { color: #6b7280; font-size: 13px; }
.login-box input { width: 100%; padding: 10px; border: 1px solid #d1d5db; border-radius: 8px;
  margin: 10px 0; font-size: 14px; }
.login-box button { width: 100%; }
@media (max-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
