:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --border: #e3e6eb;
  --text: #14171c;
  --muted: #667085;
  --accent: #4f46e5;
  --green-bg: #e7f6ec;
  --green-text: #1a7f3c;
  --amber-bg: #fff4e0;
  --amber-text: #9a5b00;
  --grey-bg: #eef0f3;
  --grey-text: #4b5563;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 60px;
  padding: 0 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: conic-gradient(from 45deg, var(--accent) 0 25%, #818cf8 0 50%, var(--accent) 0 75%, #c7d2fe 0);
}

.nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 19px 0;
  border-bottom: 2px solid transparent;
}

.nav a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-head h1 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 600;
}

.subtle {
  color: var(--muted);
  margin: 0;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.kpi,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.kpi {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kpi-label {
  font-size: 13px;
  color: var(--muted);
}

.kpi-value {
  font-size: 26px;
  font-weight: 600;
}

.card-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.card-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.endpoints {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.endpoints th {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
}

.endpoints td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}

.endpoints tr:last-child td {
  border-bottom: none;
}

.customer {
  font-weight: 500;
}

.mono {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12.5px;
  color: var(--grey-text);
}

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.pill-delivered {
  background: var(--green-bg);
  color: var(--green-text);
}

.pill-retrying {
  background: var(--amber-bg);
  color: var(--amber-text);
}

.pill-dead_letter {
  background: var(--grey-bg);
  color: var(--grey-text);
}
