* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #111827;
  background: #f5f7fa;
}

.shell {
  width: min(1280px, calc(100% - 32px));
  margin: 24px auto 48px;
}

.topbar,
.section-title,
.scan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 18px;
}

button {
  border: 0;
  border-radius: 6px;
  background: #14532d;
  color: white;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

button.secondary {
  background: #4b5563;
}

button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.muted {
  color: #6b7280;
  font-size: 13px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.metric,
.panel {
  background: white;
  border: 1px solid #d9e0e8;
  border-radius: 8px;
}

.metric {
  padding: 14px;
}

.metric span {
  display: block;
  color: #667085;
  font-size: 12px;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.panel {
  margin-top: 16px;
  padding: 16px;
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(45, 1fr);
  gap: 3px;
  margin-top: 16px;
}

.day {
  aspect-ratio: 1;
  border-radius: 3px;
  background: #d1d5db;
}

.day.success {
  background: #16a34a;
}

.day.failed {
  background: #dc2626;
}

.day.skipped,
.day.mixed {
  background: #f59e0b;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

tbody tr {
  cursor: pointer;
}

tr.ACTIVE {
  background: #ecfdf3;
}

tr.CANDIDATE {
  background: #fffbeb;
}

tr.DISABLED {
  background: #f9fafb;
  color: #4b5563;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  background: #e5e7eb;
}

.badge.warn {
  background: #fef3c7;
  color: #92400e;
}

.badge.danger {
  background: #fee2e2;
  color: #991b1b;
}

.badge.changed {
  background: #dbeafe;
  color: #1d4ed8;
}

.reasons {
  max-width: 360px;
}

.scan-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.scan-row {
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
}

.details {
  border-color: #94a3b8;
}

@media (max-width: 900px) {
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .health-grid {
    grid-template-columns: repeat(30, 1fr);
  }
}
