.risk-gauge {
            background: #f1f8fe;
            border-radius: 12px;
            padding: 1.2rem 1.5rem;
            border-left: 6px solid var(--primary-color, #4682b4);
            margin: 1.5rem 0;
        }
        .risk-value {
            font-size: 2.8rem;
            font-weight: 700;
            color: #1a3a5c;
            line-height: 1.2;
        }
        .risk-label {
            font-size: 1rem;
            color: #4a6a8a;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .risk-interp {
            font-size: 1rem;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            display: inline-block;
            font-weight: 600;
        }
        .risk-low {
            background: #d4edda;
            color: #155724;
        }
        .risk-moderate {
            background: #fff3cd;
            color: #856404;
        }
        .risk-high {
            background: #f8d7da;
            color: #721c24;
        }
        .input-section {
            background: #f8faff;
            border-radius: 12px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            border: 1px solid #e9edf4;
        }
        .input-group-custom {
            margin-bottom: 1.25rem;
        }
        .input-group-custom label {
            font-weight: 600;
            font-size: 0.95rem;
            color: #1e2f4a;
        }
        .input-group-custom .form-text {
            font-size: 0.8rem;
            color: #6c7a92;
        }
        .form-control-sm-custom {
            height: calc(1.5em + 0.9rem + 2px);
            font-size: 0.95rem;
        }
        .result-card {
            background: #ffffff;
            border-radius: 16px;
            box-shadow: 0 4px 20px rgba(0, 20, 40, 0.08);
            padding: 1.8rem;
            margin: 1.8rem 0;
            border: 1px solid #eef3f9;
        }
        .result-stat {
            text-align: center;
            padding: 0.8rem;
            border-right: 1px solid #e9edf4;
        }
        .result-stat:last-child {
            border-right: none;
        }
        .result-stat .number {
            font-size: 2.4rem;
            font-weight: 700;
            color: #0b2b4a;
        }
        .result-stat .number.hip {
            color: #b13e3e;
        }
        .result-stat .number.major {
            color: #2a6b9e;
        }
        .result-stat .desc {
            font-size: 0.9rem;
            color: #5a6f8a;
            margin-top: 0.2rem;
        }
        .bmd-toggle {
            cursor: pointer;
            color: var(--primary-color, #4682b4);
            font-weight: 500;
            text-decoration: underline dotted;
        }
        .bmd-toggle:hover {
            color: #1a4a6a;
        }
        .bmd-fields {
            background: #f2f7fe;
            padding: 1rem 1.2rem;
            border-radius: 10px;
            margin: 0.8rem 0 1.2rem 0;
            border: 1px dashed #b8d0e8;
        }
        .case-study-box {
            background: #f0f6fe;
            border-radius: 12px;
            padding: 1.5rem;
            margin: 1.8rem 0;
            border-left: 5px solid #2a6b9e;
        }
        .faq-item {
            margin-bottom: 0.8rem;
        }
        .faq-item .question {
            font-weight: 600;
            color: #1a2f4a;
            cursor: pointer;
            padding: 0.7rem 0;
            border-bottom: 1px solid #e9edf4;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .faq-item .question i {
            transition: transform 0.2s;
        }
        .faq-item .answer {
            padding: 0.8rem 0 0.4rem 0;
            color: #2d4059;
            display: none;
        }
        .faq-item.active .answer {
            display: block;
        }
        .faq-item.active .question i {
            transform: rotate(180deg);
        }
        .glossary-term {
            font-weight: 600;
            color: #1a3a5c;
        }
        .medical-disclaimer {
            background: #fef9f0;
            border: 1px solid #f5e3c4;
            border-radius: 10px;
            padding: 1.2rem 1.5rem;
            margin: 1.5rem 0;
            font-size: 0.92rem;
            color: #7a6a4a;
        }
        .medical-disclaimer i {
            color: #c99a3b;
        }
        .example-preset {
            display: inline-block;
            background: #ecf3fa;
            border: 1px solid #d3e0ed;
            border-radius: 6px;
            padding: 0.3rem 0.9rem;
            margin: 0.2rem 0.4rem 0.2rem 0;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.15s;
            color: #1f4970;
        }
        .example-preset:hover {
            background: #d3e4f5;
            transform: translateY(-1px);
        }
        .validation-feedback {
            font-size: 0.9rem;
            color: #b13e3e;
            margin-top: 0.3rem;
            display: none;
        }
        .threshold-marker {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-top: 0.5rem;
            font-size: 0.85rem;
            color: #2d4059;
            background: #f4f8fc;
            padding: 0.4rem 0.8rem;
            border-radius: 20px;
            border: 1px solid #dce5ef;
        }
        .threshold-marker i {
            color: #b13e3e;
            font-size: 0.8rem;
        }
        .progress-threshold {
            position: relative;
            margin: 0.5rem 0 0.2rem 0;
            height: 8px;
            background: #e9edf4;
            border-radius: 4px;
            overflow: visible;
        }
        .progress-threshold .progress-bar {
            height: 100%;
            border-radius: 4px;
            background: #2a6b9e;
            width: 0%;
        }
        .progress-threshold .threshold-line {
            position: absolute;
            top: -4px;
            width: 2px;
            height: 16px;
            background: #b13e3e;
            border-radius: 2px;
        }
        .progress-threshold .threshold-label {
            position: absolute;
            top: -1.2rem;
            font-size: 0.65rem;
            color: #b13e3e;
            font-weight: 600;
            transform: translateX(-50%);
            white-space: nowrap;
        }
        .risk-gauge .risk-value.small {
            font-size: 1.6rem;
        }
        .bmd-info-icon {
            cursor: help;
            color: #6c7a92;
            margin-left: 4px;
        }
        .age-slider-container {
            padding: 0.2rem 0 0.6rem 0;
        }
        .age-slider-container input[type="range"] {
            width: 100%;
        }
        .algorithm-warning {
            background: #fff3cd;
            border-left: 6px solid #ffc107;
            padding: 0.8rem 1.2rem;
            border-radius: 8px;
            font-size: 0.92rem;
            color: #856404;
            margin: 1rem 0;
        }
        .algorithm-warning i {
            margin-right: 0.6rem;
            color: #d39e00;
        }
        .decomp-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.25rem 0;
            border-bottom: 1px solid #f0f4fa;
            font-size: 0.9rem;
        }
        .decomp-item .badge {
            font-weight: 500;
        }
        .decomp-bar {
            height: 4px;
            border-radius: 4px;
            background: #e9edf4;
            margin-top: 2px;
        }
        .decomp-bar .fill {
            height: 100%;
            border-radius: 4px;
            background: #2a6b9e;
            width: 0%;
        }
        .chart-container canvas {
            max-height: 180px;
            width: 100% !important;
        }
        .zscore-badge {
            font-size: 0.85rem;
            background: #eaf2fa;
            padding: 0.2rem 0.8rem;
            border-radius: 20px;
            display: inline-block;
            margin-top: 0.3rem;
        }
        @media (max-width: 768px) {
            .result-stat {
                border-right: none;
                border-bottom: 1px solid #e9edf4;
                padding: 1rem 0;
            }
            .result-stat:last-child {
                border-bottom: none;
            }
            .risk-value {
                font-size: 2rem;
            }
            .threshold-marker {
                font-size: 0.75rem;
                flex-wrap: wrap;
            }
            .chart-container canvas {
                max-height: 150px;
            }
        }
        @media print {
            .navbar,
            .page-header,
            .footer,
            #rightSidebar,
            .function-examples,
            .medical-disclaimer,
            .btn,
            .bmd-toggle,
            .example-preset,
            }