:root { --bg:#faf9f5; --card:#fff; --border:#e7e5de; --text:#18181b; --muted:#a8a29e; }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",system-ui,sans-serif; }
.wrap { max-width:820px; margin:0 auto; padding:32px 20px 48px; }
.head { display:flex; align-items:center; justify-content:space-between; margin-bottom:28px; }
.brand { display:flex; align-items:center; gap:12px; font-size:22px; font-weight:700; }
.logo { width:34px; height:34px; border-radius:8px; background:linear-gradient(135deg,#d33,#a11);
  display:flex; align-items:center; justify-content:center; color:#fff; font-weight:800; }
.kook { background:#1a1a1a; color:#fff; font-size:12px; font-weight:600; letter-spacing:.06em;
  padding:11px 18px; border-radius:7px; text-decoration:none; }
.banner { border-radius:10px; padding:16px 20px; margin-bottom:28px; font-size:16px; font-weight:600;
  display:flex; align-items:center; gap:10px; }
.banner .dot { width:10px; height:10px; border-radius:50%; }
.banner.ok { background:#1e3a2b; color:#d1fae5; } .banner.ok .dot { background:#34d399; }
.banner.warn { background:#fffbeb; color:#b45309; border:1px solid #fde68a; } .banner.warn .dot { background:#f59e0b; }
.banner.down { background:#fef2f2; color:#b91c1c; border:1px solid #fecaca; } .banner.down .dot { background:#ef4444; }
.group { border:1px solid var(--border); border-radius:10px; margin-bottom:16px; background:var(--card); }
.group-head { font-size:13px; font-weight:700; color:#57534e; padding:13px 18px;
  background:var(--bg); border-bottom:1px solid var(--border); }
.comp { padding:16px 18px; border-bottom:1px solid #f0efea; }
.comp:last-child { border-bottom:none; }
.comp-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.comp-name { font-size:15px; font-weight:600; color:#292524; }
.comp-right { display:flex; align-items:center; }
.metric { font-size:13px; color:var(--muted); margin-right:14px; }
.status { font-size:13.5px; font-weight:600; display:flex; align-items:center; gap:7px; white-space:nowrap; }
.status .dot { width:9px; height:9px; border-radius:50%; }
.status.up { color:#15803d; } .status.up .dot { background:#16a34a; }
.status.degraded { color:#b45309; } .status.degraded .dot { background:#f59e0b; }
.status.down { color:#b91c1c; } .status.down .dot { background:#ef4444; }
.status.unknown { color:#78716c; } .status.unknown .dot { background:#a8a29e; }
.bars { display:flex; gap:2px; height:30px; }
.bar { flex:1; border-radius:2px; background:#7cb518; position:relative; }
.bar.y { background:#e8a33d; } .bar.r { background:#d64545; } .bar.empty { background:#e4e4e7; }
.bar-tip { display:none; position:absolute; left:50%; bottom:38px; transform:translateX(-50%); z-index:5;
  min-width:150px; background:#27272a; color:#fafafa; border-radius:6px; padding:9px 10px; font-size:12px;
  box-shadow:0 8px 20px rgba(0,0,0,.18); pointer-events:none; }
.bar-tip::after { content:""; position:absolute; left:50%; bottom:-6px; transform:translateX(-50%);
  border-left:6px solid transparent; border-right:6px solid transparent; border-top:6px solid #27272a; }
.bar:hover .bar-tip { display:block; }
.tip-date { color:#d4d4d8; margin-bottom:3px; }
.tip-status { font-weight:700; margin-bottom:3px; }
.tip-detail { color:#e4e4e7; }
.bars-foot { display:flex; justify-content:space-between; font-size:11px; color:var(--muted); margin-top:8px; }
.bars-foot .pct { color:#57534e; }
.foot { text-align:center; font-size:12px; color:var(--muted); margin-top:24px; }
.incident-active { border:1px solid #fde68a; border-left:4px solid #f59e0b; border-radius:10px; padding:14px 16px; margin-bottom:18px; background:#fff; }
.incident-active.down { border-color:#fecaca; border-left-color:#ef4444; }
.incident-head { font-size:15px; font-weight:600; color:#27272a; }
.incident-tag { font-size:11px; font-weight:600; color:#b45309; background:#fef3c7; border-radius:5px; padding:2px 7px; margin-right:6px; }
.incident-status { font-size:12px; color:#a1a1aa; }
.incident-affected { font-size:12px; color:#a1a1aa; margin-top:4px; }
.timeline { border-left:2px solid #f0efea; padding-left:12px; margin-top:10px; margin-left:2px; }
.tl { margin-bottom:8px; font-size:13px; }
.tl-stage { font-weight:600; color:#71717a; }
.tl-time { color:#a8a29e; font-size:12px; margin-left:6px; }
.tl-msg { color:#3f3f46; margin-top:2px; }
.resolved { font-size:11px; color:#16a34a; border:1px solid #bbf7d0; background:#f0fdf4; border-radius:4px; padding:1px 7px; margin-left:6px; }
.issue-type { font-size:11px; color:#57534e; border:1px solid #e7e5de; border-radius:5px; padding:2px 7px; margin-right:8px; white-space:nowrap; }
.issue-note { font-size:13px; line-height:1.6; color:#3f3f46; margin:4px 0 8px; }
.issue-meta { font-size:11px; color:#a8a29e; margin-top:8px; }
input, textarea, select { border:1px solid var(--border); border-radius:6px; padding:9px 10px; font:inherit; background:#fff; color:var(--text); }
textarea { min-height:72px; resize:vertical; }
.totp-qr { width:220px; height:220px; border:1px solid var(--border); border-radius:8px; background:#fff; padding:8px; }
