:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --text: #20242a;
  --muted: #667085;
  --line: #16b65f;
  --border: #d9dee5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, "Segoe UI", sans-serif;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(16px, 4vw, 48px);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--line);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.2;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 24px auto 48px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric,
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.metric {
  min-height: 104px;
  padding: 18px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.metric strong {
  display: block;
  margin-top: 12px;
  font-size: 22px;
  overflow-wrap: anywhere;
}

.panel {
  margin-top: 16px;
  overflow: hidden;
}

.panel-heading {
  padding: 18px;
  border-bottom: 1px solid var(--border);
}

.panel-heading h2 {
  font-size: 20px;
}

.panel-heading p {
  margin-top: 6px;
  color: var(--muted);
}

.conversation {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.conversation:last-child {
  border-bottom: 0;
}

.conversation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #e7f7ee;
  color: #0d7f42;
  font-weight: 700;
}

pre {
  margin: 0;
  padding: 12px;
  overflow: auto;
  background: #f0f2f5;
  border-radius: 8px;
  color: #30363d;
  font-size: 13px;
  line-height: 1.5;
}

.empty {
  padding: 24px 18px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }
}
