:root {
  color-scheme: dark;
  --bg: #070b12;
  --panel: rgba(15, 23, 35, .82);
  --line: rgba(153, 185, 229, .15);
  --muted: #8291a8;
  --text: #edf4ff;
  --cyan: #63d8ff;
  --green: #54e3a4;
  --amber: #ffc86b;
  --red: #ff7b91;
  --shadow: 0 22px 70px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at 90% -10%, rgba(39, 104, 168, .28), transparent 36rem), radial-gradient(circle at 0 35%, rgba(39, 75, 127, .16), transparent 35rem), var(--bg);
  font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 24px; }
.topbar, .brand, .live-state, .card-heading, .section-heading, footer, .node-state { display: flex; align-items: center; }
.topbar { justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.brand { gap: 13px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(99, 216, 255, .45); border-radius: 13px; color: #06121c; background: linear-gradient(145deg, #83e6ff, #4baaff); font-size: 21px; font-weight: 800; box-shadow: 0 0 28px rgba(99, 216, 255, .18); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 19px; letter-spacing: -.02em; }
h2 { font-size: clamp(24px, 4vw, 33px); letter-spacing: -.045em; }
h3 { font-size: 20px; letter-spacing: -.025em; }
.eyebrow { color: var(--cyan); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.live-state { gap: 9px; color: var(--muted); font-size: 12px; }
.pulse, .status-dot { display: inline-block; border-radius: 999px; background: var(--green); box-shadow: 0 0 0 5px rgba(84, 227, 164, .11), 0 0 22px rgba(84, 227, 164, .6); }
.pulse { width: 8px; height: 8px; animation: pulse 2.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(84, 227, 164, .02), 0 0 24px rgba(84, 227, 164, .7); } }
.card { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(19, 32, 49, .91), rgba(9, 15, 25, .9)); border-radius: 22px; box-shadow: var(--shadow); }
.hero { min-height: 154px; padding: 34px; margin-bottom: 34px; overflow: hidden; position: relative; }
.hero:after { content: ""; position: absolute; width: 360px; height: 360px; right: 4%; top: -85%; border-radius: 50%; border: 1px solid rgba(99, 216, 255, .18); box-shadow: 0 0 0 28px rgba(99, 216, 255, .025), 0 0 0 56px rgba(99, 216, 255, .02); }
.hero-copy { position: relative; z-index: 1; }
.section-heading { justify-content: space-between; gap: 20px; margin: 26px 0 14px; }
.section-heading h2 { margin-top: 3px; font-size: 22px; }
.muted { color: var(--muted); font-size: 11px; }
.nodes-list { display: grid; gap: 16px; }
.node-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); overflow: hidden; }
.node-card, .metrics-card { padding: 24px; }
.card-heading { justify-content: space-between; gap: 20px; }
.node-state { gap: 14px; }
.status-dot { width: 11px; height: 11px; }
.status-dot.warn { background: var(--amber); box-shadow: 0 0 0 5px rgba(255, 200, 107, .1), 0 0 20px rgba(255, 200, 107, .5); }
.status-dot.error { background: var(--red); box-shadow: 0 0 0 5px rgba(255, 123, 145, .1), 0 0 20px rgba(255, 123, 145, .5); }
.status-dot.unknown { background: var(--muted); box-shadow: none; }
.status-pill { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.status-ok { color: var(--green); border-color: rgba(84, 227, 164, .28); background: rgba(84, 227, 164, .07); }
.status-warn { color: var(--amber); border-color: rgba(255, 200, 107, .28); background: rgba(255, 200, 107, .07); }
.status-error { color: var(--red); border-color: rgba(255, 123, 145, .28); background: rgba(255, 123, 145, .07); }
.node-version { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-top: 28px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.node-version strong { color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.release-line { min-height: 24px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.release-warning { color: var(--amber); }
.release-current { color: var(--green); }
.release-link { display: inline-block; margin-top: 7px; color: var(--cyan); font-size: 12px; text-decoration: none; }
.release-link:hover { text-decoration: underline; }
.metrics-card { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; padding: 0; overflow: hidden; }
.metric { display: flex; flex-direction: column; justify-content: center; min-height: 135px; padding: 23px; background: rgba(255, 255, 255, .018); }
.metric span, .metric small { color: var(--muted); font-size: 11px; }
.metric strong { margin: 5px 0 1px; font-size: clamp(20px, 3vw, 28px); letter-spacing: -.04em; }
.metric small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unavailable { padding: 28px; color: var(--muted); }
footer { justify-content: space-between; gap: 15px; margin-top: 34px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
@media (max-width: 760px) {
  .shell { width: min(100% - 24px, 600px); padding-top: 22px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .hero { min-height: 130px; padding: 25px; }
  .hero:after { right: -35%; top: 25%; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .node-section { grid-template-columns: 1fr; }
  .metrics-card { grid-template-columns: repeat(2, 1fr); }
  .node-state { align-items: flex-end; flex-direction: column-reverse; gap: 10px; }
  footer { align-items: flex-start; flex-direction: column; }
}
