:root {
  --bg: #0d1117;
  --panel: #151b23;
  --panel-strong: #1c2430;
  --line: #2f3a48;
  --text: #e7edf5;
  --muted: #8d99aa;
  --cyan: #37d6ff;
  --green: #62e6a6;
  --red: #ff6b6b;
  --amber: #f2c14e;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(55, 214, 255, .22), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(98, 230, 166, .15), transparent 28rem),
    var(--bg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.shell { width: min(1240px, calc(100vw - 32px)); margin: 32px auto; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 8px; color: var(--cyan); letter-spacing: .16em; text-transform: uppercase; font-size: 12px; }
h1, h2 { margin: 0; }
h1 { font-size: clamp(34px, 5vw, 68px); letter-spacing: -0.06em; }
h2 { margin-bottom: 18px; }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 80px rgba(0,0,0,.35);
}
.status-card { margin-bottom: 18px; }
.status-card h2 { font-size: clamp(18px, 2.5vw, 28px); letter-spacing: -0.03em; }
.narrow, .login-card { max-width: 480px; margin: 12vh auto; }
.stack { display: grid; gap: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.stack + .actions { margin-top: 18px; }
.inline { display: inline; }

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--text);
  background: var(--panel);
  outline: none;
}
input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(55, 214, 255, .15); }

button, .button {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  color: #061016;
  background: var(--cyan);
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}
td .button { min-height: 34px; padding: 8px 10px; margin-right: 6px; }
.secondary { background: var(--green); }
.quiet, .ghost { color: var(--text); background: var(--panel-strong); border: 1px solid var(--line); }
.danger { color: var(--red); }
button:hover, .button:hover { filter: brightness(1.08); transform: translateY(-1px); }

table { width: 100%; border-collapse: collapse; overflow: hidden; }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
td.detail { max-width: 360px; color: var(--muted); font-size: 13px; }
.muted { color: var(--muted); }
.message:not(:empty) { margin-bottom: 16px; color: var(--green); }
.pill { display: inline-block; border-radius: 999px; padding: 4px 9px; font-size: 12px; font-weight: 800; }
.pill.ok { color: #04130d; background: var(--green); }
.pill.bad { color: #1c0808; background: var(--red); }
.progress-track {
  width: 100%;
  height: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  margin: 22px 0 8px;
}
.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  transition: width .35s ease;
}
.progress-card table { margin-top: 18px; }

@media (max-width: 820px) {
  .hero { align-items: flex-start; flex-direction: column; }
  table { display: block; overflow-x: auto; }
  .shell { width: min(100vw - 18px, 1240px); margin-top: 18px; }
}
