.capacity-bar-wrap {
            background: #e9ecef;
            border-radius: 8px;
            height: 28px;
            width: 100%;
            margin: 0.5rem 0 1rem 0;
            overflow: hidden;
            position: relative;
        }
        .capacity-bar-fill {
            height: 100%;
            border-radius: 8px;
            background: linear-gradient(90deg, #2b7a78, #3aafa9);
            transition: width 0.6s ease;
            width: 0%;
        }
        .capacity-bar-fill.heating {
            background: linear-gradient(90deg, #c0392b, #e74c3c);
        }
        .capacity-bar-fill.cooling {
            background: linear-gradient(90deg, #2980b9, #3498db);
        }
        .capacity-bar-label {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-weight: 600;
            font-size: 0.8rem;
            color: #fff;
            text-shadow: 0 1px 4px rgba(0,0,0,0.3);
            pointer-events: none;
        }
        .capacity-bar-label.light {
            color: #222;
            text-shadow: none;
        }
        .recommendation-box {
            background: #f0f7fa;
            border-left: 5px solid #2b7a78;
            padding: 1.2rem 1.5rem;
            border-radius: 0 8px 8px 0;
            margin: 1.2rem 0;
        }
        .recommendation-box .big-number {
            font-size: 2.8rem;
            font-weight: 700;
            color: #2b7a78;
            line-height: 1.2;
        }
        .recommendation-box .unit-label {
            font-size: 1.1rem;
            font-weight: 400;
            color: #495057;
        }
        .dual-metric {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem 3rem;
            margin: 1rem 0;
        }
        .metric-item {
            flex: 1 1 180px;
        }
        .metric-item .label {
            font-size: 0.85rem;
            color: #6c757d;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .metric-item .value {
            font-size: 1.5rem;
            font-weight: 600;
            color: #1a2a3a;
        }
        .insight-tag {
            display: inline-block;
            background: #e9ecef;
            border-radius: 20px;
            padding: 0.25rem 1rem;
            font-size: 0.85rem;
            font-weight: 500;
            margin: 0.2rem 0.4rem 0.2rem 0;
        }
        .insight-tag.success { background: #d4edda; color: #155724; }
        .insight-tag.warning { background: #fff3cd; color: #856404; }
        .insight-tag.danger { background: #f8d7da; color: #721c24; }
        .insight-tag.info { background: #d1ecf1; color: #0c5460; }
        .math-box .formula {
            font-family: 'Cambria Math', 'Times New Roman', serif;
            font-size: 1.2rem;
            text-align: center;
            margin: 0.5rem 0;
        }
        .warning-note.danger {
            background: #f8d7da;
            border-color: #f5c6cb;
            color: #721c24;
        }
        .chart-canvas {
            width: 100%;
            height: auto;
            background: #fafcfc;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            margin: 1rem 0;
            display: block;
        }
        .legend {
            display: flex;
            justify-content: center;
            gap: 1.8rem;
            flex-wrap: wrap;
            margin: 0.6rem 0;
            font-size: 0.9rem;
        }
        .legend-item {
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }
        .legend-color {
            width: 18px;
            height: 18px;
            border-radius: 4px;
        }
        .legend-color.red { background: #c0392b; }
        .legend-color.blue { background: #2980b9; }
        .legend-color.green { background: #2b7a78; }
        .legend-color.gray { background: #6c757d; }
        .input-group-custom {
            margin-bottom: 1rem;
        }
        .unit-note {
            font-size: 0.85rem;
            color: #6c757d;
        }
        .tool-header .lead {
            font-size: 1.1rem;
            color: #495057;
        }
        .glossary-term {
            font-weight: 600;
            color: #1a2a3a;
        }
        @media (max-width: 576px) {
            .recommendation-box .big-number {
                font-size: 2rem;
            }
            .metric-item .value {
                font-size: 1.2rem;
            }
        }
        .badge-overflow {
            background: #dc3545;
            color: #fff;
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
        }
        .overflow-warning-box {
            background: #f8d7da;
            border-left: 5px solid #dc3545;
            padding: 0.8rem 1.2rem;
            border-radius: 0 6px 6px 0;
            margin-top: 0.8rem;
            display: none;
        }
        .overflow-warning-box i {
            color: #dc3545;
        }
        .overflow-warning-box .text {
            color: #721c24;
            font-weight: 500;
        }
        .input-validation-error {
            border-color: #dc3545 !important;
        }
        .validation-feedback {
            color: #dc3545;
            font-size: 0.85rem;
            margin-top: 0.2rem;
        }