:root {
  --bg: #0b0d12;
  --bg-2: #12151d;
  --bg-3: #171b25;
  --border: #232838;
  --text: #e6e8ec;
  --muted: #9aa1b1;
  --muted-2: #6b7280;
  --primary: #5865f2;
  --grad: linear-gradient(120deg, #7c8bff 0%, #5865f2 45%, #43d9c4 110%);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(900px 500px at 85% -8%, #1c2340 0%, rgba(11, 13, 18, 0) 60%), var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: #7aa2ff; text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 22px; }

header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 13, 18, 0.75); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.logo .mark { width: 32px; height: 32px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; }
.logo .mark svg { width: 18px; height: 18px; }
.logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.back { color: var(--muted); font-weight: 600; font-size: 14px; }

main { padding: 40px 0 60px; }
h1 { font-size: clamp(26px, 4vw, 34px); letter-spacing: -0.02em; margin: 0 0 6px; }
.lead { color: var(--muted); margin: 0 0 28px; }
.card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px; padding: 26px 28px; }
h2 { font-size: 19px; margin: 26px 0 8px; }
h2:first-child { margin-top: 0; }
h3 { font-size: 16px; margin: 18px 0 6px; }
p, li { color: #d3d7e0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
code, .ph { background: var(--bg-3); border: 1px solid var(--border); border-radius: 6px; padding: 1px 7px; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 13px; color: #ffd27a; }
.note { margin: 0 0 22px; padding: 13px 16px; border-radius: 12px; background: rgba(250, 166, 26, 0.09); border: 1px solid rgba(250, 166, 26, 0.28); color: var(--muted); font-size: 13.5px; }
.note b { color: #ffd27a; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.toc a { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border); color: var(--muted); }
.updated { color: var(--muted-2); font-size: 13px; margin-top: 18px; }

footer { border-top: 1px solid var(--border); padding: 26px 0; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-links a, .foot .muted { font-size: 13px; }
.foot-links a { color: var(--muted); }

/* Status */
.status-head { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; }
.status-dot { width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto; }
.status-dot.ok { background: #3ba55d; box-shadow: 0 0 0 4px rgba(59, 165, 93, 0.18); }
.status-dot.bad { background: #ed4245; box-shadow: 0 0 0 4px rgba(237, 66, 69, 0.18); }
.status-dot.warn { background: #faa61a; box-shadow: 0 0 0 4px rgba(250, 166, 26, 0.18); }
.status-title { font-size: 20px; font-weight: 800; }
.comp { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.comp:last-child { border-bottom: none; }
.comp-name { display: flex; align-items: center; gap: 11px; font-weight: 600; }
.comp-state { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.comp-state .status-dot { width: 10px; height: 10px; box-shadow: none; }
.state-ok { color: #7ee0a1; }
.state-bad { color: #ff8a8c; }
.state-warn { color: #f6c667; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.metric { background: var(--bg-3); border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-align: center; }
.metric .v { font-size: 22px; font-weight: 800; }
.metric .l { color: var(--muted); font-size: 12px; margin-top: 3px; }
@media (max-width: 620px) { .metrics { grid-template-columns: 1fr; } }
