:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #02070c;
  color: #dffaff;
}

* { box-sizing: border-box; }

html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }

body {
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 158, 201, 0.14), transparent 42%),
    repeating-radial-gradient(circle at 50% 51%, transparent 0 79px, rgba(68, 209, 240, 0.025) 80px),
    linear-gradient(180deg, #030b12 0%, #010407 100%);
}

#universe { position: fixed; inset: 0; width: 100%; height: 100%; }

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(89, 228, 255, 0.08) 4px);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 38px;
  border-bottom: 1px solid rgba(96, 225, 255, 0.15);
  background: linear-gradient(180deg, rgba(2, 7, 12, 0.9), transparent);
}

.eyebrow, .panel-title, footer { letter-spacing: 0.18em; font-size: 10px; color: #5ddaf1; }
h1 { margin: 5px 0 0; font-size: 20px; letter-spacing: 0.12em; font-weight: 500; }
h1 span { color: #67dff5; font-weight: 300; }

.status-pill {
  padding: 9px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.16em;
}
.status-pill.online { color: #68f6d0; box-shadow: 0 0 24px rgba(104, 246, 208, 0.16); }
.status-pill.thinking { color: #8deeff; animation: thinking 0.85s ease-in-out infinite alternate; }
.status-pill.pending { color: #ffd980; }
.status-pill.offline { color: #ff6680; }

.panel {
  position: fixed;
  top: 120px;
  width: 235px;
  padding: 18px;
  border: 1px solid rgba(91, 218, 241, 0.18);
  background: rgba(2, 12, 19, 0.62);
  backdrop-filter: blur(12px);
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}
.left-panel { left: 28px; }
.right-panel { right: 28px; }
.panel-title { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(91, 218, 241, 0.14); }
dl { margin: 0; }
dl div { display: flex; justify-content: space-between; padding: 8px 0; font-size: 12px; }
dt { color: #6c8792; }
dd { margin: 0; color: #d8f9ff; }

.node-list { display: grid; gap: 8px; }
.node-row { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 9px; font-size: 11px; }
.node-dot { width: 6px; height: 6px; border-radius: 50%; background: #62dff5; box-shadow: 0 0 10px currentColor; }
.node-row small { color: #607b86; text-transform: uppercase; }

footer {
  position: fixed;
  left: 36px;
  right: 36px;
  bottom: 24px;
  display: flex;
  justify-content: space-between;
  color: #4c8591;
}
.pulse { color: #5be9c2; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
@keyframes thinking { to { box-shadow: 0 0 34px rgba(78, 225, 255, 0.45); background: rgba(50, 202, 236, 0.09); } }

@media (max-width: 800px) {
  .topbar { padding: 20px; }
  h1 { font-size: 15px; }
  .eyebrow { font-size: 8px; }
  .panel { top: auto; bottom: 55px; width: calc(50% - 28px); padding: 12px; max-height: 220px; }
  .left-panel { left: 16px; }
  .right-panel { right: 16px; }
  footer { left: 18px; right: 18px; font-size: 8px; }
}

@media (max-width: 520px) {
  .topbar { align-items: flex-start; gap: 10px; }
  .status-pill { padding: 7px 9px; font-size: 8px; }
  h1 span { display: block; margin-top: 4px; }
  .right-panel { display: none; }
  .left-panel { width: calc(100% - 32px); }
  footer span:first-child { display: none; }
  footer { justify-content: flex-end; }
}
