:root { --bg:#f5f6f8; --card:#fff; --line:#e2e5ea; --text:#1d2129; --muted:#6b7280; --brand:#2563eb; --bad:#dc2626; --good:#16a34a; --warn:#d97706; }
* { box-sizing: border-box; }
body { margin:0; font:14px/1.5 -apple-system,"Segoe UI","Microsoft YaHei",sans-serif; color:var(--text); background:var(--bg); }
header { display:flex; align-items:center; gap:24px; padding:0 24px; height:52px; background:#111827; color:#fff; }
header .brand { font-weight:600; }
header nav { display:flex; gap:4px; flex:1; }
header nav button { background:none; border:0; color:#cbd5e1; padding:8px 14px; border-radius:6px; cursor:pointer; font:inherit; }
header nav button.active, header nav button:hover { background:#1f2937; color:#fff; }
header .who { color:#9ca3af; }
main { max-width:1200px; margin:24px auto; padding:0 24px; }
h2 { margin:0 0 16px; font-size:18px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:8px; padding:16px; margin-bottom:16px; }
.stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:12px; }
.stat .n { font-size:26px; font-weight:600; }
.stat .l { color:var(--muted); }
table { width:100%; border-collapse:collapse; }
th, td { text-align:left; padding:8px 10px; border-bottom:1px solid var(--line); vertical-align:middle; }
th { color:var(--muted); font-weight:500; white-space:nowrap; }
tr:last-child td { border-bottom:0; }
.tbl-wrap { overflow-x:auto; }
button, select, input { font:inherit; }
button.btn { padding:5px 12px; border:1px solid var(--line); background:#fff; border-radius:6px; cursor:pointer; }
button.btn:hover { border-color:var(--brand); color:var(--brand); }
button.btn.primary { background:var(--brand); border-color:var(--brand); color:#fff; }
button.btn.danger { color:var(--bad); }
button.btn.danger:hover { border-color:var(--bad); }
button.btn:disabled { opacity:.5; cursor:not-allowed; }
input[type=text], input[type=password], input[type=number], select { padding:6px 8px; border:1px solid var(--line); border-radius:6px; background:#fff; }
input.wide { width:100%; }
.row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.row + .row { margin-top:8px; }
.badge { white-space:nowrap; display:inline-block; padding:1px 8px; border-radius:10px; font-size:12px; }
.badge.good { background:#dcfce7; color:var(--good); }
.badge.bad { background:#fee2e2; color:var(--bad); }
.badge.muted { background:#eef0f3; color:var(--muted); }
.badge.warn { background:#fef3c7; color:var(--warn); }
.muted { color:var(--muted); }
.mono { font-family:Consolas,monospace; font-size:12px; word-break:break-all; }
#toasts { position:fixed; right:20px; bottom:20px; display:flex; flex-direction:column; gap:8px; align-items:flex-end; }
.toast { padding:10px 16px; border-radius:6px; color:#fff; background:#111827; max-width:420px; }
.toast.err { background:var(--bad); }
.login { max-width:340px; margin:12vh auto; }
.login h2 { text-align:center; }
.login label { display:block; margin-bottom:12px; }
.login input { width:100%; margin-top:4px; }
.secret { background:#fffbeb; border:1px solid #fcd34d; border-radius:8px; padding:12px; margin-bottom:16px; }
.pager { display:flex; gap:12px; align-items:center; justify-content:flex-end; margin-top:12px; }
.w100 { width:100%; }
.w90 { width:90px; }
.mv8 { margin:8px 0; }
