function riskColor(score) { if (score >= 80) return 'bg-accent'; if (score >= 60) return 'bg-amber-500'; if (score >= 30) return 'bg-primary'; return 'bg-secondary'; } export default function RiskBar({ score = 0 }) { const pct = Math.min(100, Math.max(0, score)); return (
{Math.round(pct)}
); }