        .chf-investment-calculator {
            --primary-blue: #2e3192;
            --accent-blue: #008fd5;
            --bg-gray: #f1f5f9;
            --success-blue: #008fd5;
            --success-green: #4b9a3e;
            --green: #4b9a3e;
            --green-dark: #3f8434;
            --green-light: #8dc63f;
            --error-red: #ef4444;
            --warning-amber: #f59e0b;
            --text-dark: #111111;
            --text-mid: #4b5563;
            --text-light: #6b7280;
            --border-color: #e5e7eb;
            --card-shadow: 0 2px 6px rgba(0,0,0,0.05);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: var(--bg-gray);
            padding: 20px;
            color: var(--text-dark);
        }
        .chf-investment-calculator .container { background: var(--bg-white, #ffffff); width: 100%; max-width: 500px; padding: 35px; border-radius: 12px; box-shadow: var(--card-shadow); border: 1px solid var(--border-color); text-align: center; transition: transform 0.2s ease-in-out; margin: 0 auto; }
        .logo-header { margin-bottom: 18px; }
        .logo-header img { display: block; max-width: 280px; width: 100%; height: auto; margin: 0 auto; }
        .footer-note { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border-color); font-size: 0.72rem; color: var(--text-light); line-height: 1.5; text-align: left; }
        .success-icon { font-size: 3.5rem; color: var(--green); margin-bottom: 8px; }

        @keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
        .shake { animation: shake 0.3s ease-in-out; }

        .portal-header { color: var(--accent-blue); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 5px; }
        .chf-investment-calculator h1 { color: var(--primary-blue); font-size: 1.9rem; margin-top: 0; margin-bottom: 8px; font-weight: 900; }
        .chf-investment-calculator p.subtitle { color: #64748b; font-size: 0.95rem; margin-bottom: 30px; line-height: 1.4; }

        .input-group { margin-bottom: 20px; text-align: left; }
        .chf-investment-calculator label { display: block; font-size: 0.75rem; font-weight: 800; color: var(--primary-blue); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
        .field-container { position: relative; display: flex; align-items: center; }
        .field-container input, .field-container textarea {
            width: 100%; padding: 15px; border: 1px solid var(--border-color); border-radius: 6px;
            font-size: 1.1rem; box-sizing: border-box; transition: border-color 0.15s ease, box-shadow 0.15s ease;
            background: white; color: var(--text-dark); font-family: inherit;
        }
        .field-container input:focus, .field-container textarea:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(0,143,213,0.15); }

        .prefix { position: absolute; left: 15px; color: #94a3b8; font-weight: 600; pointer-events: none; font-size: 1.1rem; }
        .suffix { position: absolute; right: 15px; color: #94a3b8; font-weight: 600; pointer-events: none; font-size: 1.1rem; }
        .has-prefix input { padding-left: 32px !important; }
        .has-suffix input { padding-right: 32px !important; }

        .input-error { border-color: var(--error-red) !important; background-color: #fef2f2 !important; }
        .input-success { border-color: var(--success-green) !important; background-color: #f0fdf4 !important; }
        .input-warning { border-color: var(--warning-amber) !important; background-color: #fffbeb !important; }
        .error-msg { color: var(--error-red); font-size: 0.8rem; font-weight: 700; margin-top: 6px; }
        .helper-msg { color: #64748b; font-size: 0.8rem; font-weight: 600; margin-top: 6px; }

        .section-divider { border-top: 1px solid #e2e8f0; margin: 30px -10px 25px; position: relative; text-align: left; }
        .section-divider span { position: absolute; top: -10px; left: 0; background: white; color: var(--primary-blue); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; padding-right: 12px; }

        .deal-warning { background: #fef3c7; border: 1px solid #fcd34d; color: #92400e; padding: 14px; border-radius: 10px; font-size: 0.9rem; font-weight: 600; margin-top: 15px; text-align: center; }
        .info-box { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; padding: 14px 16px; border-radius: 10px; font-size: 0.88rem; font-weight: 500; margin-top: 15px; text-align: left; line-height: 1.5; }
        .info-box.warn { background: #fffbeb; border-color: #fcd34d; color: #78350f; }
        .info-box.danger { background: #fef2f2; border-color: #fca5a5; color: #7f1d1d; }
        .info-box strong { color: var(--primary-blue); }
        .info-box.warn strong, .info-box.danger strong { color: inherit; }
        .info-box .info-title { display: block; font-weight: 800; margin-bottom: 6px; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 1px; }

        .option-button { display: block; width: 100%; padding: 16px 24px; margin: 12px 0; background: white; border: 2px solid var(--accent-blue); color: var(--primary-blue); border-radius: 999px; font-size: 1.1rem; font-weight: 700; text-align: center; cursor: pointer; transition: all 0.15s ease; font-family: inherit; }
        .option-button:hover { background: var(--bg-gray); }

        .style-card { display: block; width: 100%; padding: 16px 18px; margin: 12px 0; background: white; border: 1px solid var(--primary-blue); color: var(--primary-blue); border-radius: 8px; cursor: pointer; transition: all 0.15s ease; text-align: left; font-family: inherit; }
        .style-card.active { background: var(--bg-gray); border-width: 2px; border-color: var(--green); }
        .style-card:hover { background: var(--bg-gray); }
        .style-card .style-name { font-size: 1.1rem; font-weight: 800; margin-bottom: 3px; }
        .style-card .style-tagline { font-size: 0.85rem; color: var(--text-mid); font-weight: 500; margin-bottom: 10px; }
        .style-card .style-preview { font-size: 0.78rem; color: var(--text-light); font-style: italic; padding: 10px 12px; background: var(--bg-gray); border-radius: 6px; line-height: 1.4; }

        .btn-primary { width: 100%; padding: 14px 24px; background: var(--green); color: white; border: none; border-radius: 4px; font-size: 1rem; font-weight: 600; cursor: pointer; margin-top: 10px; font-family: inherit; transition: background 0.15s ease; }
        .btn-primary:hover { background: var(--green-dark); }

        .style-bar { display: flex; justify-content: space-between; align-items: center; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 14px; margin-bottom: 25px; font-size: 0.85rem; }
        .style-bar .label { color: #64748b; font-weight: 600; }
        .style-bar .value { color: var(--primary-blue); font-weight: 800; }
        .style-bar button { background: none; border: none; color: var(--accent-blue); font-size: 0.8rem; font-weight: 700; cursor: pointer; font-family: inherit; text-decoration: underline; }
        .style-bar button:hover { color: var(--primary-blue); }

        .reno-toggle-link { display: inline-block; margin-top: 6px; color: var(--accent-blue); font-size: 0.82rem; font-weight: 700; cursor: pointer; background: none; border: none; padding: 4px 0; font-family: inherit; text-decoration: underline; }
        .reno-toggle-link:hover { color: var(--primary-blue); }

        /* SOW Calculator */
        .sow-overlay, .confirm-overlay { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.5); z-index: 100; align-items: flex-start; justify-content: center; padding: 20px; overflow-y: auto; }
        .sow-overlay.open, .confirm-overlay.open { display: flex; }
        .sow-modal, .confirm-modal { background: white; border-radius: 20px; max-width: 500px; width: 100%; padding: 28px 24px; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25); margin: auto; }
        .sow-modal h2, .confirm-modal h2 { color: var(--primary-blue); font-size: 1.4rem; margin: 0 0 6px; font-weight: 900; }
        .sow-modal .sow-sub, .confirm-modal .confirm-sub { color: #64748b; font-size: 0.9rem; margin-bottom: 20px; }
        .sow-line { display: grid; grid-template-columns: 28px 1fr 130px; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
        .sow-line .num { color: #94a3b8; font-size: 0.78rem; font-weight: 700; text-align: center; }
        .sow-line .name { font-size: 0.9rem; color: #1e293b; font-weight: 600; text-align: left; }
        .sow-line .input-wrap { position: relative; }
        .sow-line input { width: 100%; padding: 8px 8px 8px 22px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 0.9rem; box-sizing: border-box; font-family: inherit; }
        .sow-line input:focus { outline: none; border-color: var(--accent-blue); }
        .sow-line .input-wrap::before { content: '$'; position: absolute; left: 8px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 0.85rem; font-weight: 600; pointer-events: none; }
        .sow-totals { margin-top: 18px; padding: 16px; background: #f1f5f9; border-radius: 12px; }
        .sow-total-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 0.92rem; }
        .sow-total-row.grand { font-weight: 900; font-size: 1.1rem; color: var(--primary-blue); border-top: 2px solid #cbd5e1; padding-top: 8px; margin-top: 6px; }
        .sow-contingency-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: 0.92rem; }
        .sow-contingency-row .ct-input { width: 60px; padding: 4px 6px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 0.85rem; text-align: right; font-family: inherit; }
        .sow-actions { display: flex; gap: 10px; margin-top: 20px; }
        .sow-actions button { flex: 1; padding: 14px; border-radius: 4px; font-weight: 600; font-size: 0.95rem; cursor: pointer; font-family: inherit; transition: background 0.15s ease; }
        .sow-actions .btn-cancel { background: white; border: 1px solid var(--primary-blue); color: var(--primary-blue); }
        .sow-actions .btn-cancel:hover { background: var(--bg-gray); }
        .sow-actions .btn-apply { background: var(--green); border: none; color: white; }
        .sow-actions .btn-apply:hover { background: var(--green-dark); }
        .sow-notes { width: 100%; min-height: 70px; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 0.88rem; font-family: inherit; resize: vertical; box-sizing: border-box; margin-bottom: 16px; }
        .sow-applied-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 10px; background: #ecfdf5; border: 1px solid #6ee7b7; color: #047857; font-size: 0.78rem; font-weight: 700; border-radius: 8px; }

        /* Confirmation modal */
        .confirm-item { padding: 16px; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 12px; margin-bottom: 12px; }
        .confirm-item .ci-field { font-size: 0.78rem; color: #92400e; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
        .confirm-item .ci-value { font-size: 1.2rem; font-weight: 900; color: var(--primary-blue); margin: 4px 0; }
        .confirm-item .ci-msg { font-size: 0.85rem; color: #78350f; line-height: 1.45; margin-bottom: 12px; }
        .confirm-buttons { display: flex; gap: 10px; }
        .confirm-buttons button { flex: 1; padding: 12px; border-radius: 4px; font-weight: 600; font-size: 0.9rem; cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.15s; }
        .confirm-buttons .btn-correct { background: white; border: 2px solid var(--pass-border, #22c55e); color: var(--pass-border, #22c55e); }
        .confirm-buttons .btn-correct.selected { background: var(--pass-border, #22c55e); color: white; }
        .confirm-buttons .btn-fix { background: white; border: 2px solid var(--fail-border, #ef4444); color: var(--fail-border, #ef4444); }
        .confirm-buttons .btn-fix.selected { background: var(--fail-border, #ef4444); color: white; }
        .confirm-actions { display: flex; gap: 10px; margin-top: 16px; }
        .confirm-actions button { flex: 1; padding: 14px; border-radius: 4px; font-weight: 600; font-size: 0.95rem; cursor: pointer; font-family: inherit; transition: background 0.15s ease; }
        .confirm-actions .btn-cancel { background: white; border: 1px solid var(--primary-blue); color: var(--primary-blue); }
        .confirm-actions .btn-cancel:hover { background: var(--bg-gray); }
        .confirm-actions .btn-run { background: var(--green); border: none; color: white; }
        .confirm-actions .btn-run:hover:not(:disabled) { background: var(--green-dark); }
        .confirm-actions .btn-run:disabled { background: #cbd5e1; cursor: not-allowed; }

        .result-card { background: var(--bg-gray); padding: 25px; border-radius: 8px; margin-top: 25px; text-align: left; border: 1px solid var(--border-color); }
        .result-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 1rem; }
        .highlight-blue { color: var(--success-blue); font-weight: 900; font-size: 1.4rem; }
        .highlight-green { color: var(--success-green); font-weight: 900; font-size: 1.4rem; }
        .highlight-red { color: var(--error-red); font-weight: 900; font-size: 1.4rem; }

        .section-label { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }

        .profit-box { margin: 20px -25px; padding: 22px 25px; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
        .profit-box.above { background: #f0fdf4; border-top-color: #bbf7d0; border-bottom-color: #bbf7d0; }
        .profit-box.below { background: #fffbeb; border-top-color: #fde68a; border-bottom-color: #fde68a; }
        .profit-box.negative { background: #fef2f2; border-top-color: #fecaca; border-bottom-color: #fecaca; }
        .profit-box .section-label.above { color: #14532d; }
        .profit-box .section-label.below { color: #92400e; }
        .profit-box .section-label.negative { color: #b91c1c; }

        .profit-message { margin-top: 14px; font-size: 0.92rem; line-height: 1.55; color: #1e293b; }
        .profit-message strong { color: var(--primary-blue); }
        .profit-message ul { margin: 8px 0; padding-left: 20px; }
        .profit-message li { margin-bottom: 6px; }
        .profit-message .arrow-list { list-style: none; padding-left: 0; }
        .profit-message .arrow-list li::before { content: "\2192 "; color: var(--accent-blue); font-weight: 800; }

        .show-math-btn { display: block; width: 100%; margin-top: 14px; padding: 10px; background: white; border: 1px dashed var(--border-color); color: var(--text-mid); font-size: 0.82rem; font-weight: 700; cursor: pointer; border-radius: 6px; font-family: inherit; }
        .show-math-btn:hover { background: var(--bg-gray); border-color: var(--accent-blue); color: var(--primary-blue); }

        .math-breakdown { margin-top: 14px; padding: 16px; background: white; border-radius: 10px; border: 1px solid #e2e8f0; font-size: 0.88rem; }
        .math-row { display: flex; justify-content: space-between; padding: 5px 0; }
        .math-row.minus { color: #475569; }
        .math-row.total { border-top: 2px solid #1e293b; padding-top: 8px; margin-top: 6px; font-weight: 800; font-size: 1rem; color: var(--primary-blue); }
        .math-row.subtotal { border-top: 1px solid #cbd5e1; padding-top: 6px; margin-top: 4px; font-weight: 700; }
        .math-section-title { font-size: 0.7rem; font-weight: 800; color: #64748b; text-transform: uppercase; letter-spacing: 1px; margin: 12px 0 6px; }

        .cash-total-box { background: #eff6ff; margin: 0 -25px -25px -25px; padding: 25px; border-radius: 0 0 6px 6px; border-top: 2px solid #bfdbfe; }

        .progress-bar { height: 6px; background: #e5e7eb; margin-bottom: 30px; border-radius: 3px; overflow: hidden; }
        .progress-fill { height: 100%; background: var(--accent-blue); transition: width 0.4s ease; }

        .verification-code { letter-spacing: 12px; font-size: 1.8rem; text-align: center; font-weight: 800; color: var(--primary-blue); width: 100%; }
        .hidden { display: none; }
        .back-link { display: block; margin: 25px auto 0; color: var(--text-light); font-size: 0.85rem; text-decoration: none; cursor: pointer; font-weight: 600; background: none; border: none; padding: 8px; font-family: inherit; }
        .back-link:hover { color: var(--primary-blue); }
        .soft-reset-btn { background: white; border: 1px solid var(--primary-blue); color: var(--primary-blue); margin-top: 15px; }
        .soft-reset-btn:hover { background: var(--bg-gray); }

        /* Final visual lock to preserve original HTML appearance under aggressive theme/builder CSS. */
        .chf-form-wrapper .chf-investment-calculator .option-button {
            display: block !important;
            width: 100% !important;
            padding: 16px 24px !important;
            margin: 12px 0 !important;
            background: white !important;
            border: 2px solid var(--accent-blue) !important;
            color: var(--primary-blue) !important;
            border-radius: 999px !important;
            font-size: 1.1rem !important;
            font-weight: 700 !important;
            text-align: center !important;
            cursor: pointer !important;
            transition: all 0.15s ease !important;
            font-family: inherit !important;
            line-height: 1.2 !important;
            text-transform: none !important;
            letter-spacing: normal !important;
        }

        .chf-form-wrapper .chf-investment-calculator .style-card {
            display: block !important;
            width: 100% !important;
            padding: 16px 18px !important;
            margin: 12px 0 !important;
            background: white !important;
            border: 1px solid var(--primary-blue) !important;
            color: var(--primary-blue) !important;
            border-radius: 8px !important;
            text-align: left !important;
            cursor: pointer !important;
            transition: all 0.15s ease !important;
            font-family: inherit !important;
            line-height: 1.2 !important;
            text-transform: none !important;
            letter-spacing: normal !important;
        }

        .chf-form-wrapper .chf-investment-calculator .btn-primary,
        .chf-form-wrapper .chf-investment-calculator .btn-apply,
        .chf-form-wrapper .chf-investment-calculator .btn-run {
            width: 100% !important;
            padding: 14px 24px !important;
            background: var(--green) !important;
            color: white !important;
            border: none !important;
            border-radius: 4px !important;
            font-size: 1rem !important;
            font-weight: 600 !important;
            cursor: pointer !important;
            margin-top: 10px !important;
            font-family: inherit !important;
            line-height: 1.2 !important;
            text-transform: none !important;
            letter-spacing: normal !important;
            box-shadow: none !important;
            background-image: none !important;
            -webkit-appearance: none !important;
            appearance: none !important;
        }

        .chf-form-wrapper .chf-investment-calculator .back-link {
            display: block !important;
            margin: 25px auto 0 !important;
            color: var(--text-light) !important;
            font-size: 0.85rem !important;
            text-decoration: none !important;
            cursor: pointer !important;
            font-weight: 600 !important;
            background: none !important;
            border: none !important;
            padding: 8px !important;
            border-radius: 0 !important;
            width: auto !important;
            line-height: 1.2 !important;
            text-transform: none !important;
            letter-spacing: normal !important;
            box-shadow: none !important;
            background-image: none !important;
            -webkit-appearance: none !important;
            appearance: none !important;
        }
