:root {
  --bg: #0d1117;
  --bg-soft: #161b22;
  --bg-elev: #1c2230;
  --border: #2a323d;
  --text: #e6edf3;
  --muted: #8b949e;
  --ok: #2ea043;
  --ok-soft: rgba(46,160,67,.14);
  --accent: #4c8dff;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fa; --bg-soft: #ffffff; --bg-elev: #ffffff;
    --border: #d0d7de; --text: #1f2328; --muted: #59636e;
    --ok-soft: rgba(46,160,67,.10);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }

.site-header { border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); font-weight: 650; font-size: 17px; }
.brand-mark { color: var(--accent); font-size: 18px; }
.brand-dim { color: var(--muted); font-weight: 500; margin-left: 2px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); font-weight: 600; }

.banner {
  display: flex; align-items: center; gap: 16px;
  margin: 28px 0; padding: 22px 24px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-soft);
}
.banner-ok { border-left: 4px solid var(--ok); }
.banner h1 { margin: 0; font-size: 21px; }
.banner p { margin: 3px 0 0; }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(46,160,67,.5); animation: pulse 2.2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46,160,67,.45); } 70% { box-shadow: 0 0 0 10px rgba(46,160,67,0); } 100% { box-shadow: 0 0 0 0 rgba(46,160,67,0); } }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
.metric { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: left; }
.metric-value { display: block; font-size: 20px; font-weight: 650; }
.metric-label { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }

.panel { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.panel h2 { margin: 0; font-size: 15px; letter-spacing: .01em; }

.components { list-style: none; margin: 0; padding: 0; }
.components li { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-top: 1px solid var(--border); }
.components li:first-child { border-top: none; }
.c-name { flex: 1; font-size: 14.5px; }
.c-state { color: var(--ok); font-size: 13px; font-weight: 600; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--ok); }

.incident-empty { background: var(--ok-soft); border-radius: 8px; padding: 16px 18px; }
.incident-empty p { margin: 0; }
.incident-empty p + p { margin-top: 4px; }

.endpoint pre { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; overflow-x: auto; }
.endpoint code { font-family: var(--mono); font-size: 13px; color: var(--text); }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }

.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 22px 0; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

@media (max-width: 640px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 14px; }
}
