
:root {
  color-scheme: dark;
  --bg: #080d14;
  --panel: rgba(17, 27, 40, .88);
  --line: rgba(148, 163, 184, .17);
  --muted: #8fa1b5;
  --text: #e7eef7;
  --green: #45d39c;
  --red: #ff6b78;
  --amber: #ffbd66;
  --blue: #6eb7ff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(39, 110, 241, .18), transparent 30rem),
    radial-gradient(circle at 90% 12%, rgba(69, 211, 156, .10), transparent 28rem),
    var(--bg);
}
.shell { width: min(1480px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 80px; }
.hero { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 28px; }
.eyebrow, .section-label { color: var(--blue); letter-spacing: .14em; font-size: 12px; font-weight: 800; }
h1 { margin: 5px 0 7px; font-size: clamp(36px, 6vw, 68px); line-height: .98; letter-spacing: -.045em; }
.subtitle, .bar p { margin: 0; color: var(--muted); }
button, .node-link {
  border: 1px solid rgba(110, 183, 255, .35);
  border-radius: 10px;
  color: #dcecff;
  background: rgba(49, 118, 210, .14);
  font: inherit;
  font-weight: 750;
  padding: 10px 15px;
  cursor: pointer;
  text-decoration: none;
}
button:hover, .node-link:hover { background: rgba(49, 118, 210, .26); }
button:disabled { opacity: .55; cursor: wait; }
.summary { display: grid; grid-template-columns: repeat(4, 1fr) 1.7fr; gap: 12px; margin-bottom: 12px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px; }
.action { text-align: center; padding: 11px 12px; font-size: 13px; }
.action.disabled { opacity: .42; cursor: not-allowed; pointer-events: none; }
.summary article, .browser-panel, .node-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(21, 33, 48, .94), rgba(12, 20, 30, .88));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}
.summary article { min-height: 106px; padding: 20px; border-radius: 15px; display: flex; flex-direction: column; justify-content: space-between; }
.summary span, .browser-panel span, .metric dt { color: var(--muted); font-size: 13px; }
.summary strong { font-size: 27px; overflow-wrap: anywhere; }
.browser-panel { border-radius: 15px; padding: 18px 20px; display: grid; grid-template-columns: 1.7fr 1fr 1.2fr; gap: 18px; margin-bottom: 26px; }
.browser-panel > div { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.browser-panel strong { overflow-wrap: anywhere; }
.bar { display: flex; justify-content: space-between; gap: 20px; margin: 0 2px 14px; font-size: 13px; }
.node-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.node-card { border-radius: 17px; padding: 20px; min-width: 0; }
.node-card.offline { border-color: rgba(255, 107, 120, .28); }
.node-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 17px; }
.node-head h2 { margin: 6px 0 0; font-size: 22px; }
.node-state { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 750; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 14px currentColor; }
.online .dot { background: var(--green); }
.node-link { padding: 8px 10px; font-size: 12px; white-space: nowrap; }
.primary { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 15px; }
.primary > div { border: 1px solid var(--line); background: rgba(4, 9, 15, .34); padding: 13px; border-radius: 12px; min-width: 0; }
.primary span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.primary strong { display: block; font-size: 17px; overflow-wrap: anywhere; }
.score { font-size: 30px !important; color: var(--green); }
.score.mid { color: var(--amber); }
.score.low { color: var(--red); }
.badge { display: inline-flex; border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 800; }
.badge.ok { color: var(--green); background: rgba(69, 211, 156, .11); }
.badge.bad { color: var(--red); background: rgba(255, 107, 120, .11); }
.badge.warn { color: var(--amber); background: rgba(255, 189, 102, .11); }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin: 0; }
.metric { border-top: 1px solid var(--line); padding: 10px 0; min-width: 0; }
.metric dd { margin: 4px 0 0; font-size: 13px; font-weight: 680; overflow-wrap: anywhere; }
.full { grid-column: 1 / -1; }
.error { color: var(--red); border-top: 1px solid var(--line); padding-top: 13px; font-size: 13px; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
@media (max-width: 1080px) {
  .node-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .shell { width: min(100% - 22px, 1480px); padding-top: 24px; }
  .hero { align-items: start; flex-direction: column; }
  .summary, .node-grid, .browser-panel { grid-template-columns: 1fr; }
  .bar { flex-direction: column; gap: 5px; }
  .wide { grid-column: auto; }
}
