.health-dashboard { max-width: 1200px; margin: 0 auto; }
.health-card {
    background: #fff; border-radius: 12px; padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,.1); margin-bottom: 20px;
}
.health-card h3 { margin: 0 0 16px; font-size: 1rem; color: #374151; }
.health-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.stat-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f3f4f6; }
.stat-item:last-child { border-bottom: none; }
.stat-label { color: #6b7280; font-size: 0.875rem; }
.stat-value { font-weight: 600; color: #111827; font-size: 0.875rem; }

.progress-bar-wrap {
    width: 100%; height: 24px; background: #e5e7eb; border-radius: 12px;
    overflow: hidden; margin-top: 8px;
}
.progress-bar-fill {
    height: 100%; border-radius: 12px; transition: width .6s ease;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 600; color: #fff; min-width: 40px;
}
.bar-ok { background: #10b981; }
.bar-warn { background: #f59e0b; }
.bar-danger { background: #ef4444; }

.status-badge {
    display: inline-block; padding: 2px 10px; border-radius: 9999px;
    font-size: 0.75rem; font-weight: 600;
}
.status-ok { background: #d1fae5; color: #065f46; }
.status-error { background: #fee2e2; color: #991b1b; }

.refresh-btn {
    background: #3b82f6; color: #fff; border: none; padding: 8px 20px;
    border-radius: 8px; cursor: pointer; font-size: 0.875rem;
}
.refresh-btn:hover { background: #2563eb; }
.refresh-btn:disabled { opacity: .5; cursor: not-allowed; }

.health-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.health-header h1 { margin: 0; font-size: 1.5rem; }
.last-updated { font-size: 0.8rem; color: #9ca3af; }

.gauge-section { text-align: center; }
.gauge-section .gauge-label { font-size: 0.875rem; color: #6b7280; margin-bottom: 4px; }
.gauge-section .gauge-value { font-size: 2rem; font-weight: 700; }
.gauge-row { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; padding: 12px 0; }

.ai-diagnosis-content {
    font-size: 0.9rem; line-height: 1.7; color: #374151;
}
.ai-diagnosis-content h3, .ai-diagnosis-content h4, .ai-diagnosis-content h5 {
    font-weight: 600;
}
.ai-diagnosis-content ul { list-style: disc; }
.ai-diagnosis-content strong { color: #111827; }

#aiDiagnoseBtn { background: #8b5cf6; }
#aiDiagnoseBtn:hover { background: #7c3aed; }
#aiDiagnoseBtn:disabled { opacity: .5; cursor: not-allowed; }
