.stats-container {
  max-width: 780px;
}

.stats-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.stat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-value {
  font-size: 26px;
  font-weight: 700;
}

.section-heading {
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  margin: 36px 0 8px;
}

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

.events-table th,
.events-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.events-table th {
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.event-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.event-badge.ok {
  background: #e8f5e9;
  color: #1b5e20;
}

.event-badge.fail {
  background: #fdecea;
  color: #b00020;
}

.event-badge.neutral {
  background: #f0f0f0;
  color: var(--fg);
}

.refresh-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}

.refresh-note a {
  color: var(--fg);
}

@media (max-width: 560px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
