.status-banner {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.health-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.health-stat-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 23, 33, 0.72);
  padding: 12px;
}

.health-stat-card .detail-label {
  margin: 0;
}

.health-stat-card .ai-stat-value {
  margin: 6px 0 0;
  font-size: 1.35rem;
  font-weight: 800;
}

.health-layout {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.health-bucket-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 22px 12px;
}

.health-bucket-nav button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.health-bucket-nav button.active {
  color: var(--text);
  border-color: rgba(82, 215, 255, 0.35);
  background: rgba(82, 215, 255, 0.12);
}

.health-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.health-summary {
  margin: 6px 0 16px;
  color: var(--muted);
  line-height: 1.45;
}

.health-proposal {
  margin: 6px 0 16px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(6, 18, 26, 0.6);
  color: var(--text);
  white-space: pre-wrap;
  font-size: 0.85rem;
  max-height: 280px;
  overflow: auto;
}

.health-actions {
  flex-wrap: wrap;
}

.health-actions a.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@media (max-width: 980px) {
  .health-stats,
  .health-layout,
  .health-detail-grid {
    grid-template-columns: 1fr;
  }
}
