:root {
  --bg: #050b18;
  --panel: #0e1a33;
  --panel-hi: #13264a;
  --text: #f2f6ff;
  --muted: #9db1d6;
  --line: #27406b;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #fb7185;
  --accent: #60a5fa;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, #133a78 0%, transparent 42%),
    radial-gradient(circle at 100% 0%, #0f2e61 0%, transparent 38%),
    var(--bg);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: radial-gradient(#fff 0.4px, transparent 0.4px);
  background-size: 3px 3px;
}

.app { max-width: 1100px; margin: 0 auto; padding: 28px 18px 50px; }
.panel {
  background: linear-gradient(180deg, var(--panel-hi), var(--panel));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}

.eyebrow { margin: 0; color: var(--accent); font-size: 12px; letter-spacing: .12em; }
.muted { color: var(--muted); }
h1, h2, h3, p { margin: 8px 0; }

.login-panel { max-width: 460px; margin: 10vh auto 0; }
form { display: flex; gap: 10px; margin-top: 16px; }
input, button {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0b1630;
  color: var(--text);
  padding: 10px 12px;
}
input { flex: 1; }
button { cursor: pointer; background: #183664; }
button:hover { filter: brightness(1.1); }
button.ghost { background: transparent; }
.error { color: var(--bad); min-height: 18px; }

.hidden { display: none; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.actions { display: flex; gap: 10px; }
.grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
  margin-bottom: 16px;
}

.stat { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #1d2a42; }
.stat:last-child { border-bottom: none; }
.status-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  border: 1px solid currentColor;
}
.ok { color: var(--ok); }
.warning { color: var(--warn); }
.failed { color: var(--bad); }

.workers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.worker h4 { margin: 0 0 8px; }
.timeline-item { padding: 8px 0; border-bottom: 1px solid #1d2a42; }
.timeline-item:last-child { border-bottom: none; }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; align-items: start; gap: 10px; }
}
