.result-value.positive {
            color: #198754;
        }
        .result-value.negative {
            color: #dc3545;
        }
        .math-box .formula {
            font-family: 'Cambria Math', 'Latin Modern Math', STIXGeneral, serif;
            font-size: 1.2rem;
            text-align: center;
            margin: 0.2rem 0;
        }
        .method-badge {
            display: inline-block;
            padding: 0.2rem 0.7rem;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.3px;
        }
        .method-badge.asset { background: #e3f2fd; color: #0d47a1; }
        .method-badge.market { background: #e8f5e9; color: #1b5e20; }
        .method-badge.dcf { background: #fff3e0; color: #e65100; }
        .method-badge.wacc { background: #f3e5f5; color: #4a148c; }
        .valuation-summary {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin: 1.2rem 0;
        }
        .valuation-card {
            flex: 1 1 160px;
            background: #f8f9fa;
            border-radius: 10px;
            padding: 1rem 1.2rem;
            text-align: center;
            border: 1px solid #e9ecef;
            transition: transform 0.2s;
        }
        .valuation-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.06);
        }
        .valuation-card .label {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #6c757d;
        }
        .valuation-card .amount {
            font-size: 1.4rem;
            font-weight: 700;
            color: #0d6efd;
            margin: 0.2rem 0;
        }
        .valuation-card .method-tag {
            font-size: 0.7rem;
            background: #e9ecef;
            padding: 0.1rem 0.6rem;
            border-radius: 8px;
            color: #495057;
        }
        .valuation-range {
            background: #e7f3ff;
            border-radius: 8px;
            padding: 0.8rem 1.5rem;
            border-left: 5px solid #0d6efd;
            margin: 1rem 0;
        }
        .valuation-range .range-value {
            font-size: 1.6rem;
            font-weight: 700;
            color: #0d6efd;
        }
        .chart-container canvas {
            width: 100% !important;
            height: auto !important;
            max-height: 340px;
        }
        .input-group-custom {
            margin-bottom: 0.8rem;
        }
        .input-group-custom label {
            font-weight: 500;
            font-size: 0.9rem;
        }
        .input-group-custom .input-group-custom .input-group-custom .form-control:focus {
            border-color: #86b7fe;
            box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
        }
        .legend {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 1.2rem;
            margin: 0.8rem 0 0.2rem;
            font-size: 0.85rem;
        }
        .legend-item {
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }
        .legend-color {
            width: 18px;
            height: 18px;
            border-radius: 4px;
        }
        .legend-color.asset { background: #0d47a1; }
        .legend-color.market { background: #2e7d32; }
        .legend-color.dcf { background: #e65100; }
        .legend-color.wacc { background: #6a1b9a; }
        .legend-color.avg { background: #dc3545; }
        .result-row .label {
            font-weight: 500;
            color: #495057;
        }
        .result-row .value {
            font-weight: 600;
            color: #0d6efd;
        }
        .deep-dive p {
            text-align: justify;
        }
        .unit-note {
            font-size: 0.85rem;
            color: #6c757d;
        }
        .tool-header .lead {
            font-size: 1.1rem;
            font-weight: 400;
            color: #495057;
        }
        .weight-slider {
            width: 100%;
            margin-top: 0.2rem;
        }
        .weight-value {
            font-weight: 600;
            min-width: 40px;
            display: inline-block;
        }
        .weight-sum {
            font-weight: 600;
            color: #0d6efd;
        }
        @media (max-width: 576px) {
            .valuation-card { flex: 1 1 100%; }
            }