:root {
  --blue: #1A73E9;
  --bg: #0f1115;
  --card-bg: #171a21;
  --border: #262b35;
  --text: #e7e9ee;
  --text-dim: #9aa3b2;
  --ok: #2bb673;
  --warn: #e0a82e;
  --crit: #e0432e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

h1, h2 { font-family: "Space Grotesk", sans-serif; margin: 0; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.topbar h1 { font-size: 1.25rem; color: var(--blue); }

.status-pill {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--border);
  color: var(--text-dim);
}
.status-pill.ok { background: rgba(43,182,115,0.15); color: var(--ok); }
.status-pill.error { background: rgba(224,67,46,0.15); color: var(--crit); }

#app { padding: 24px; max-width: 1200px; margin: 0 auto; }

.banner {
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.banner--error { background: rgba(224,67,46,0.15); color: var(--crit); border: 1px solid rgba(224,67,46,0.4); }
.hidden { display: none; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}
.card h2 { font-size: 0.95rem; color: var(--text-dim); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.card--wide { grid-column: 1 / -1; }

.metric-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.metric-row:last-child { border-bottom: none; }
.metric-label { color: var(--text-dim); }
.metric-value { font-weight: 600; }
.metric-value.warn { color: var(--warn); }
.metric-value.crit { color: var(--crit); }

.empty-state { color: var(--text-dim); font-size: 0.85rem; }

table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--text-dim); font-weight: 500; }
.sev-critical { color: var(--crit); font-weight: 600; }
.sev-warning { color: var(--warn); font-weight: 600; }

.stack-trace {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: pre-wrap;
  max-width: 400px;
}

.footer {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  padding: 16px 0;
}
