.risk-score-display {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-radius: 12px;
            padding: 1.5rem;
            border: 1px solid #dee2e6;
            text-align: center;
            margin: 1rem 0;
        }
        .risk-score-number {
            font-size: 4rem;
            font-weight: 700;
            line-height: 1;
        }
        .risk-label {
            font-size: 1.2rem;
            font-weight: 500;
            margin-top: 0.25rem;
        }
        .risk-badge {
            display: inline-block;
            padding: 0.4rem 1.2rem;
            border-radius: 30px;
            font-weight: 600;
            font-size: 1rem;
        }
        .risk-badge.low { background: #d4edda; color: #155724; }
        .risk-badge.moderate { background: #fff3cd; color: #856404; }
        .risk-badge.high { background: #f8d7da; color: #721c24; }
        .risk-badge.critical { background: #dc3545; color: white; }
        .risk-badge.unknown { background: #e2e3e5; color: #383d41; }
        .factor-group {
            background: white;
            border-radius: 8px;
            padding: 1.2rem;
            margin-bottom: 1.2rem;
            border: 1px solid #e9ecef;
            box-shadow: 0 2px 4px rgba(0,0,0,0.02);
        }
        .factor-group:hover {
            border-color: #ced4da;
        }
        .factor-group .category-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.75rem;
        }
        .factor-group .category-title {
            font-weight: 600;
            font-size: 1.1rem;
            color: #1a2a3a;
        }
        .factor-group .category-weight {
            font-size: 0.9rem;
            color: #6c757d;
        }
        .factor-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.4rem 0;
            border-bottom: 1px solid #f1f3f5;
        }
        .factor-item:last-child { border-bottom: none; }
        .factor-item .factor-label {
            flex: 1;
            font-size: 0.95rem;
            color: #2c3e50;
        }
        .factor-item .factor-score {
            width: 80px;
            text-align: center;
            font-weight: 600;
            color: #1a2a3a;
        }
        .factor-item .factor-slider {
            width: 160px;
            margin: 0 0.75rem;
        }
        .factor-item .factor-slider input[type="range"] {
            width: 100%;
            height: 6px;
            -webkit-appearance: none;
            background: #ddd;
            border-radius: 4px;
            outline: none;
        }
        .factor-item .factor-slider input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: var(--primary-color, #0d6efd);
            cursor: pointer;
        }
        .factor-item .factor-slider input[type="range"]::-moz-range-thumb {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: var(--primary-color, #0d6efd);
            cursor: pointer;
            border: none;
        }
        .chart-container canvas {
            width: 100% !important;
            height: auto !important;
        }
        .risk-summary-card {
            background: white;
            border-radius: 12px;
            padding: 1.5rem;
            border: 1px solid #e9ecef;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            height: 100%;
        }
        .risk-meter {
            height: 12px;
            border-radius: 6px;
            background: #e9ecef;
            margin: 0.75rem 0;
            overflow: hidden;
        }
        .risk-meter .meter-fill {
            height: 100%;
            border-radius: 6px;
            transition: width 0.6s ease;
        }
        .dimension-card {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 0.75rem 1rem;
            margin: 0.4rem 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .dimension-card .dim-name {
            font-weight: 500;
            font-size: 0.95rem;
        }
        .dimension-card .dim-score {
            font-weight: 600;
            font-size: 1rem;
            padding: 0.15rem 0.75rem;
            border-radius: 20px;
            background: white;
            border: 1px solid #dee2e6;
        }
        .case-study-block {
            background: #f0f4f8;
            border-radius: 12px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            border-left: 5px solid #0d6efd;
        }
        .methodology-box {
            background: white;
            border-radius: 8px;
            padding: 1.25rem;
            border: 1px solid #e9ecef;
            margin: 1.25rem 0;
        }
        .preset-btn-group {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin: 0.75rem 0;
        }
        .preset-btn {
            background: rgba(13, 110, 253, 0.08);
            border: 1px solid rgba(13, 110, 253, 0.2);
            border-radius: 30px;
            padding: 0.35rem 1rem;
            font-size: 0.85rem;
            color: #0d6efd;
            cursor: pointer;
            transition: all 0.2s;
        }
        .preset-btn:hover {
            background: rgba(13, 110, 253, 0.15);
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        }
        .tool-header .badge {
            font-size: 0.85rem;
            font-weight: 500;
        }
        @media (max-width: 768px) {
            .factor-item {
                flex-wrap: wrap;
                gap: 0.3rem;
            }
            .factor-item .factor-slider {
                width: 100%;
                margin: 0.2rem 0;
            }
            .factor-item .factor-score {
                width: auto;
                min-width: 40px;
            }
        }