:root {
  color-scheme: dark;
  --bg: #09111f;
  --panel: #122033;
  --panel-border: #233552;
  --text: #eff6ff;
  --muted: #a9b7cf;
  --accent: #7dd3fc;
  --ok: #22c55e;
  --warning: #f59e0b;
  --blocked: #ef4444;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #09111f 0%, #122033 100%);
  color: var(--text);
  font: 16px/1.5 system-ui, sans-serif;
}

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.hero {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.hero p {
  margin: 0;
}

.lede {
  margin-top: 12px;
  max-width: 72ch;
  color: var(--muted);
}

.dashboard {
  display: grid;
  gap: 24px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.cards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid.two-up {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.panel {
  background: rgba(18, 32, 51, 0.92);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 18px 48px rgba(9, 17, 31, 0.22);
}

.panel h2,
.panel h3,
.panel p {
  margin-top: 0;
}

.metric-value {
  margin: 8px 0 4px;
  font-size: 2rem;
  font-weight: 700;
}

.metric-label,
.meta,
td small,
th small {
  color: var(--muted);
}

.status-list,
.source-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: capitalize;
}

.status-pill.ok,
.status-pill.within {
  background: rgba(34, 197, 94, 0.18);
  color: #bbf7d0;
}

.status-pill.warning,
.status-pill.at-risk {
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
}

.status-pill.blocked,
.status-pill.tripped {
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(169, 183, 207, 0.14);
  vertical-align: top;
}

th {
  font-size: 0.875rem;
  color: var(--muted);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.numeric {
  text-align: right;
  white-space: nowrap;
}

.agent-name,
.provider-name {
  font-weight: 700;
}

.section-copy {
  margin-bottom: 16px;
  color: var(--muted);
}

code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.9em;
}

@media (max-width: 720px) {
  .page {
    padding-inline: 16px;
  }

  .panel {
    padding: 16px;
  }

  th,
  td {
    padding-inline: 8px;
  }
}
