.risk-dashboard {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
            margin: 1.5rem 0;
            justify-content: center;
        }
        .risk-meter {
            flex: 1;
            min-width: 200px;
            background: #f8fafc;
            border-radius: 12px;
            padding: 1.5rem;
            text-align: center;
            border: 1px solid #e9edf2;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        }
        .risk-meter .value {
            font-size: 2.6rem;
            font-weight: 700;
            color: #0b3b5c;
            line-height: 1.2;
        }
        .risk-meter .label {
            font-size: 0.9rem;
            color: #6c7a8a;
            margin-top: 0.25rem;
        }
        .risk-meter .badge-risk {
            display: inline-block;
            padding: 0.3rem 1.2rem;
            border-radius: 20px;
            font-weight: 600;
            font-size: 0.9rem;
            margin-top: 0.5rem;
        }
        .badge-low { background: #d4edda; color: #155724; }
        .badge-average { background: #cce5ff; color: #004085; }
        .badge-moderate { background: #fff3cd; color: #856404; }
        .badge-high { background: #f8d7da; color: #721c24; }
        .factor-bar {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin: 0.35rem 0;
        }
        .factor-bar .fname {
            min-width: 120px;
            font-size: 0.9rem;
            color: #2c3e50;
        }
        .factor-bar .track {
            flex: 1;
            height: 8px;
            background: #e9ecf0;
            border-radius: 4px;
            overflow: hidden;
        }
        .factor-bar .fill {
            height: 100%;
            border-radius: 4px;
            transition: width 0.6s ease;
            background: #6c8eb0;
        }
        .factor-bar .fvalue {
            min-width: 48px;
            font-size: 0.85rem;
            font-weight: 600;
            color: #1a2b3c;
            text-align: right;
        }
        .risk-gauge {
            width: 100%;
            max-width: 360px;
            margin: 0 auto;
        }
        .gauge-outer {
            position: relative;
            width: 100%;
            padding-bottom: 50%;
            background: #eef2f6;
            border-radius: 100px 100px 0 0;
            overflow: hidden;
        }
        .gauge-fill {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0%;
            height: 100%;
            background: linear-gradient(90deg, #5b9bd5, #e67e22, #c0392b);
            border-radius: 100px 100px 0 0;
            transition: width 0.8s ease;
        }
        .gauge-label {
            position: absolute;
            bottom: 8px;
            width: 100%;
            text-align: center;
            font-weight: 600;
            font-size: 1.4rem;
            color: #1a2b3c;
        }
        .gauge-tick {
            position: absolute;
            top: 0;
            height: 100%;
            border-left: 2px solid rgba(0,0,0,0.10);
            font-size: 0.6rem;
            color: #7f8c8d;
            padding-top: 4px;
        }
        .recommendation-box {
            background: #f0f6fe;
            border-left: 5px solid #2c6e9c;
            padding: 1.2rem 1.5rem;
            border-radius: 0 8px 8px 0;
            margin: 1.5rem 0;
        }
        .disclaimer-box {
            background: #fef9e7;
            border: 1px solid #f9e79f;
            border-radius: 8px;
            padding: 1rem 1.5rem;
            color: #7d6608;
            font-size: 0.9rem;
        }
        .ref-list {
            font-size: 0.9rem;
            line-height: 1.7;
            color: #2c3e50;
        }
        .ref-list li {
            margin-bottom: 0.3rem;
        }
        .risk-legend {
            display: flex;
            flex-wrap: wrap;
            gap: 1.2rem;
            justify-content: center;
            margin: 0.5rem 0 1.5rem;
        }
        .risk-legend span {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            font-size: 0.9rem;
        }
        .legend-dot {
            display: inline-block;
            width: 14px;
            height: 14px;
            border-radius: 50%;
        }
        .legend-dot.low { background: #28a745; }
        .legend-dot.average { background: #007bff; }
        .legend-dot.moderate { background: #ffc107; }
        .legend-dot.high { background: #dc3545; }
        .canvas-container {
            text-align: center;
            margin-top: 1rem;
        }
        .risk-canvas {
            width: 100%;
            max-width: 700px;
            height: auto;
            background: #fafcfd;
            border: 1px solid #dee2e6;
            border-radius: 10px;
        }
        .input-group-custom {
            margin-bottom: 0.8rem;
        }
        .form-label-sm {
            font-size: 0.85rem;
            font-weight: 500;
            color: #2c3e50;
        }
        .tool-header .lead {
            font-size: 1.1rem;
            color: #4a5b6b;
        }
        .badge-risk-lg {
            font-size: 1.2rem;
            padding: 0.5rem 2rem;
            border-radius: 30px;
        }
        .factor-contribution {
            margin-top: 1.5rem;
        }
        .factor-contribution .fname {
            font-weight: 500;
        }
        .btn-outline-secondary:hover {
            background: #e9edf2;
        }
        @media (max-width: 576px) {
            .risk-meter .value { font-size: 2rem; }
            .factor-bar .fname { min-width: 80px; font-size: 0.8rem; }
            .risk-legend { gap: 0.6rem; }
        }