.risk-badge {
            display: inline-block;
            padding: 0.3rem 1.2rem;
            border-radius: 20px;
            font-weight: 600;
            font-size: 1.1rem;
        }
        .risk-badge.low { background: #d4edda; color: #155724; }
        .risk-badge.moderate { background: #fff3cd; color: #856404; }
        .risk-badge.high { background: #f8d7da; color: #721c24; }
        .risk-badge.very-high { background: #dc3545; color: #fff; }
        .score-display {
            font-size: 4rem;
            font-weight: 700;
            line-height: 1;
            text-align: center;
        }
        .score-display .score-number {
            color: var(--primary-color);
        }
        .score-display .score-total {
            font-size: 1.2rem;
            font-weight: 400;
            color: #6c757d;
        }
        .risk-meter {
            height: 12px;
            border-radius: 6px;
            background: linear-gradient(to right, #28a745, #ffc107, #dc3545);
            margin: 1rem 0;
            position: relative;
            overflow: visible;
        }
        .risk-meter .marker {
            position: absolute;
            top: -6px;
            width: 16px;
            height: 16px;
            background: #333;
            border-radius: 50%;
            border: 2px solid #fff;
            transform: translateX(-50%);
            transition: left 0.5s ease;
            box-shadow: 0 0 6px rgba(0,0,0,0.3);
            z-index: 2;
        }
        .risk-meter .marker-label {
            position: absolute;
            top: 20px;
            transform: translateX(-50%);
            font-size: 0.75rem;
            color: #333;
            font-weight: 600;
            white-space: nowrap;
        }
        .risk-meter-labels {
            display: flex;
            justify-content: space-between;
            font-size: 0.75rem;
            color: #6c757d;
            margin-top: 0.2rem;
        }
        .factor-card {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 0.8rem 1rem;
            margin-bottom: 0.5rem;
            border-left: 4px solid var(--primary-color);
            transition: background 0.2s;
            cursor: pointer;
        }
        .factor-card.selected {
            background: #e3f0fa;
            border-left-color: #0d6efd;
        }
        .factor-card .factor-name {
            font-weight: 500;
        }
        .factor-card .factor-points {
            float: right;
            font-weight: 600;
            color: var(--primary-color);
        }
        .factor-card .factor-desc {
            font-size: 0.85rem;
            color: #6c757d;
        }
        .result-card {
            background: white;
            border-radius: 12px;
            padding: 1.5rem;
            box-shadow: 0 2px 12px rgba(0,0,0,0.06);
            border: 1px solid #eee;
            margin-top: 1.5rem;
        }
        .recommendation-box {
            background: #e7f3ff;
            border-radius: 8px;
            padding: 1rem 1.5rem;
            border-left: 5px solid #0d6efd;
            margin: 1rem 0;
        }
        .recommendation-box .rec-title {
            font-weight: 600;
            color: #004085;
        }
        .disclaimer-box {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 0.8rem 1.2rem;
            border: 1px solid #dee2e6;
            font-size: 0.85rem;
            color: #6c757d;
            margin-top: 1rem;
        }
        .score-summary {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
            justify-content: center;
            align-items: center;
            padding: 0.5rem 0;
        }
        .score-stat {
            text-align: center;
            min-width: 80px;
        }
        .score-stat .stat-value {
            font-size: 1.8rem;
            font-weight: 700;
        }
        .score-stat .stat-label {
            font-size: 0.8rem;
            color: #6c757d;
        }
        .guideline-ref {
            background: #f0f5fa;
            border-radius: 6px;
            padding: 0.5rem 1rem;
            border-left: 3px solid #0d6efd;
            margin: 0.5rem 0;
            font-size: 0.9rem;
        }
        .comparison-table th {
            background: #f1f3f5;
        }
        .comparison-table td, .comparison-table th {
            padding: 0.6rem 0.8rem;
            border: 1px solid #dee2e6;
        }
        .case-vignette {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 1.2rem;
            margin: 1rem 0;
            border-left: 4px solid #6c757d;
        }
        .case-vignette .case-title {
            font-weight: 600;
        }
        .btn-outline-score {
            border-color: var(--primary-color);
            color: var(--primary-color);
        }
        .btn-outline-score:hover {
            background: var(--primary-color);
            color: #fff;
        }
        .radio-group-inline {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            align-items: center;
        }
        .radio-group-inline .form-check {
            margin-right: 0.5rem;
        }
        .tool-header .lead {
            font-size: 1.1rem;
            font-weight: 400;
        }
        @media (max-width: 576px) {
            .score-display { font-size: 2.8rem; }
            .score-summary { gap: 0.8rem; }
            .radio-group-inline { flex-direction: column; align-items: flex-start; }
        }
        .canvas-container {
            text-align: center;
            margin-top: 1rem;
        }
        .geometry-canvas {
            width: 100%;
            height: auto;
            background: #fafbfc;
            border: 1px solid #e9ecef;
            border-radius: 10px;
            display: block;
        }
        .legend {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            flex-wrap: wrap;
            margin: 0.5rem 0;
            font-size: 0.85rem;
        }
        .legend-item {
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }
        .legend-color {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            display: inline-block;
        }
        .legend-color.green { background: #28a745; }
        .legend-color.yellow { background: #ffc107; }
        .legend-color.red { background: #dc3545; }
        .legend-color.blue { background: #0d6efd; }
        .deep-dive p {
            text-align: justify;
        }