:root {
  --bg: #f4f6fb; --surface: #fff; --border: #e5e7eb; --text: #1f2937;
  --muted: #6b7280; --primary: #2563eb; --primary-soft: #eef4ff;
  --green: #16a34a; --green-soft: #eaf8ef; --red: #dc2626; --red-soft: #fef2f2;
  --amber: #d97706; --amber-soft: #fff6e6;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif; font-size: 14px; line-height: 1.6; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 28px 20px 50px; }
header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
h1 { font-size: 22px; margin: 0; } header p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
h3 { font-size: 14px; margin: 0 0 12px; }
.badge { padding: 7px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; background: #f1f5f9; color: var(--muted); white-space: nowrap; }
.badge.online { background: var(--green-soft); color: var(--green); }
.badge.offline { background: var(--amber-soft); color: var(--amber); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; box-shadow: 0 4px 16px rgba(16,24,40,.04); }
.auth { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.auth label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); min-width: 190px; }
.auth input, .auth select { border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; outline: none; background: #fff; }
.auth input:focus, .auth select:focus { border-color: var(--primary); }
.btn { border: 1px solid transparent; border-radius: 8px; padding: 9px 16px; font-weight: 600; font-size: 13px; cursor: pointer; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.hint { color: var(--muted); font-size: 12px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.kpi .label { color: var(--muted); font-size: 12px; }
.kpi .value { font-size: 26px; font-weight: 700; line-height: 1.3; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.row:last-child { border-bottom: 0; }
.row span:first-child { color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dot.ok { background: var(--green); } .dot.bad { background: var(--red); }
.item { padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.item:last-child { border-bottom: 0; }
.item b { color: var(--primary); font-size: 12px; margin-right: 8px; }
.muted { color: var(--muted); }
.notice { padding: 11px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.notice.error { background: var(--red-soft); border: 1px solid #fecaca; color: #991b1b; }
.foot { color: var(--muted); font-size: 12px; text-align: right; }
.hidden { display: none !important; }
@media (max-width: 760px) { .kpis { grid-template-columns: 1fr 1fr; } .grid { grid-template-columns: 1fr; } }
