/* === RESET & BASE === */
        *,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        body {
            font-family: 'Inter', -apple-system, system-ui, sans-serif;
            background: #070b12;
            color: #e8edf5;
            padding: 24px;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            background-image: radial-gradient(circle at 10% 20%, rgba(251, 191, 36, 0.03) 0%, transparent 50%);
        }
        .app {
            max-width: 1480px;
            width: 100%;
            background: #0e1520;
            border-radius: 40px;
            padding: 32px 36px 40px;
            box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03);
            border: 1px solid #1f2a3a;
        }

        /* === TYPOGRAPHY === */
        h1 {
            font-size: 28px;
            font-weight: 800;
            background: linear-gradient(135deg, #fbbf24, #f59e0b);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            display: inline-block;
        }
        .subhead {
            color: #8899b4;
            font-size: 14px;
            font-weight: 500;
            letter-spacing: 0.3px;
            margin-top: 2px;
        }
        .badge {
            background: #1e2a3e;
            color: #fbbf24;
            padding: 4px 14px;
            border-radius: 40px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.6px;
            border: 1px solid #2f3f5a;
            display: inline-block;
        }
        .pilot-tag {
            background: #f59e0b20;
            color: #fbbf24;
            padding: 6px 18px;
            border-radius: 40px;
            font-size: 12px;
            font-weight: 600;
            border: 1px solid #f59e0b40;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .pilot-tag .dot {
            width: 8px;
            height: 8px;
            background: #4ade80;
            border-radius: 50%;
            display: inline-block;
            animation: pulse-dot 1.8s infinite;
        }
        @keyframes pulse-dot {
            0%,
            100% {
                opacity: 1;
                transform: scale(1);
            }
            50% {
                opacity: 0.4;
                transform: scale(0.8);
            }
        }

        /* === HEADER === */
        .header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            flex-wrap: wrap;
            gap: 16px;
            margin-bottom: 28px;
        }
        .header-right {
            display: flex;
            align-items: center;
            gap: 18px;
            flex-wrap: wrap;
        }

        /* === SCENARIO BAR === */
        .scenario-bar {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 20px;
        }
        .scenario-btn {
            background: #1a2436;
            border: 1px solid #2f405b;
            color: #8899b4;
            padding: 5px 16px;
            border-radius: 30px;
            font-size: 11px;
            font-weight: 600;
            cursor: pointer;
            transition: 0.2s;
            letter-spacing: 0.3px;
        }
        .scenario-btn:hover {
            border-color: #fbbf24;
            color: #e8edf5;
            background: #1f2a3e;
        }
        .scenario-btn.active {
            background: #fbbf24;
            color: #0b0f17;
            border-color: #fbbf24;
        }

        /* === CONTROLS === */
        .controls {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
            gap: 18px 24px;
            background: #0b111c;
            padding: 20px 24px;
            border-radius: 20px;
            border: 1px solid #1f2a3a;
            margin-bottom: 28px;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
        }
        .control-group {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .control-group label {
            font-size: 11px;
            font-weight: 600;
            color: #8899b4;
            text-transform: uppercase;
            letter-spacing: 0.4px;
            display: flex;
            justify-content: space-between;
        }
        .control-group label span {
            color: #fbbf24;
            font-weight: 700;
            font-size: 13px;
            background: #1a2436;
            padding: 0 10px;
            border-radius: 12px;
        }
        .control-group input[type="range"] {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            height: 4px;
            border-radius: 4px;
            background: #1f2a3a;
            outline: none;
            transition: background 0.2s;
        }
        .control-group input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: #fbbf24;
            cursor: pointer;
            border: 2px solid #0b0f17;
            box-shadow: 0 0 0 2px #fbbf2460;
            transition: 0.15s;
        }
        .control-group input[type="range"]::-webkit-slider-thumb:hover {
            transform: scale(1.15);
            box-shadow: 0 0 0 4px #fbbf2440;
        }

        /* === KPI GRID === */
        .kpi-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 14px;
            margin-bottom: 28px;
        }
        .kpi-card {
            background: #0b111c;
            border-radius: 16px;
            padding: 16px 18px;
            border: 1px solid #1f2a3a;
            text-align: center;
            transition: 0.25s ease;
            position: relative;
            overflow: hidden;
        }
        .kpi-card::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, #fbbf24, transparent);
            opacity: 0.3;
        }
        .kpi-card:hover {
            border-color: #2f405b;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        }
        .kpi-card .kpi-label {
            font-size: 11px;
            font-weight: 600;
            color: #8899b4;
            text-transform: uppercase;
            letter-spacing: 0.4px;
        }
        .kpi-card .kpi-value {
            font-size: 26px;
            font-weight: 700;
            margin-top: 4px;
            letter-spacing: -0.02em;
            transition: 0.2s;
        }
        .kpi-card .kpi-delta {
            font-size: 12px;
            font-weight: 600;
            margin-top: 2px;
            background: #0f1722;
            padding: 0 8px;
            border-radius: 12px;
            display: inline-block;
        }
        .kpi-delta.positive {
            color: #4ade80;
        }
        .kpi-delta.negative {
            color: #f87171;
        }
        .kpi-delta.neutral {
            color: #8899b4;
        }
        .accent-gold .kpi-value {
            color: #fbbf24;
        }
        .accent-green .kpi-value {
            color: #4ade80;
        }
        .accent-blue .kpi-value {
            color: #60a5fa;
        }
        .accent-rose .kpi-value {
            color: #f472b6;
        }
        .accent-purple .kpi-value {
            color: #a78bfa;
        }

        /* === COMPARISON CARDS === */
        .comparison-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 28px;
        }
        .comparison-card {
            background: #0b111c;
            border-radius: 20px;
            padding: 20px 24px 24px;
            border: 1px solid #1f2a3a;
            transition: 0.3s ease;
        }
        .comparison-card.current {
            border-left: 4px solid #4b5563;
        }
        .comparison-card.wellpay {
            border-left: 4px solid #fbbf24;
            background: #101a2a;
            box-shadow: 0 0 30px rgba(251, 191, 36, 0.03);
        }
        .comparison-card .card-title {
            font-size: 14px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 12px;
        }
        .comparison-card .card-title .tag {
            font-size: 10px;
            font-weight: 600;
            padding: 2px 12px;
            border-radius: 20px;
            background: #1f2a3a;
            color: #8899b4;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .comparison-card.wellpay .card-title .tag {
            background: #fbbf2420;
            color: #fbbf24;
            border: 1px solid #fbbf2430;
        }
        .metric-line {
            display: flex;
            justify-content: space-between;
            padding: 6px 0;
            border-bottom: 1px solid #1a2436;
            font-size: 14px;
        }
        .metric-line:last-child {
            border-bottom: none;
        }
        .metric-line .ml-label {
            color: #8899b4;
            font-weight: 500;
        }
        .metric-line .ml-value {
            font-weight: 600;
            transition: 0.2s;
        }
        .metric-line .ml-value.gold {
            color: #fbbf24;
        }
        .metric-line .ml-value.green {
            color: #4ade80;
        }
        .metric-line .ml-value.rose {
            color: #f87171;
        }
        .comparison-card .improvement-badge {
            display: inline-block;
            margin-top: 10px;
            font-size: 12px;
            font-weight: 600;
            background: #4ade8015;
            color: #4ade80;
            padding: 4px 14px;
            border-radius: 30px;
            border: 1px solid #4ade8030;
        }
        .comparison-card.current .improvement-badge {
            background: #4b556315;
            color: #8899b4;
            border-color: #4b556330;
        }

        /* === CHARTS === */
        .charts-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 28px;
        }
        .chart-box {
            background: #0b111c;
            border-radius: 20px;
            padding: 18px 20px 16px;
            border: 1px solid #1f2a3a;
        }
        .chart-box h3 {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .chart-box h3 small {
            font-weight: 400;
            font-size: 12px;
            color: #8899b4;
        }
        .chart-container {
            position: relative;
            height: 160px;
        }

        /* === LFE SECTION === */
        .lfe-section {
            background: #0b111c;
            border-radius: 20px;
            padding: 20px 24px 24px;
            border: 1px solid #1f2a3a;
            margin-bottom: 28px;
        }
        .lfe-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 16px;
        }
        .lfe-header h3 {
            font-size: 15px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .lfe-status {
            font-size: 12px;
            font-weight: 600;
            padding: 4px 16px;
            border-radius: 30px;
            background: #1f2a3a;
            color: #8899b4;
            border: 1px solid #2f405b;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .lfe-status.active {
            background: #fbbf2420;
            color: #fbbf24;
            border-color: #fbbf2440;
        }
        .lfe-status .spinner {
            display: inline-block;
            width: 14px;
            height: 14px;
            border: 2px solid #fbbf2430;
            border-top: 2px solid #fbbf24;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }
        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        .lfe-grid {
            display: grid;
            grid-template-columns: 1fr 1.2fr;
            gap: 20px;
        }
        .data-packet {
            background: #060b14;
            border-radius: 16px;
            padding: 16px 18px;
            border: 1px solid #1a2436;
        }
        .data-packet .packet-title {
            font-size: 13px;
            font-weight: 700;
            color: #fbbf24;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .data-packet .packet-title .tag {
            font-size: 10px;
            font-weight: 600;
            background: #1e2a3e;
            color: #8899b4;
            padding: 2px 10px;
            border-radius: 20px;
            border: 1px solid #2f405b;
        }
        .packet-row {
            display: flex;
            justify-content: space-between;
            padding: 6px 0;
            border-bottom: 1px solid #1a2436;
            font-size: 13px;
        }
        .packet-row:last-child {
            border-bottom: none;
        }
        .packet-row .label {
            color: #8899b4;
        }
        .packet-row .value {
            font-weight: 600;
            transition: 0.2s;
        }
        .packet-row .value.verified {
            color: #4ade80;
        }
        .packet-row .value.unverified {
            color: #f87171;
        }
        .packet-row .value.gold {
            color: #fbbf24;
        }
        .packet-score {
            margin-top: 12px;
            display: flex;
            align-items: center;
            gap: 12px;
            background: #0b111c;
            padding: 8px 12px;
            border-radius: 10px;
            border: 1px solid #1f2a3a;
        }
        .packet-score .score-label {
            font-size: 12px;
            color: #8899b4;
        }
        .packet-score .score-value {
            font-size: 18px;
            font-weight: 700;
            color: #fbbf24;
        }
        .packet-score .score-bar {
            flex: 1;
            height: 4px;
            background: #1f2a3a;
            border-radius: 4px;
            overflow: hidden;
        }
        .packet-score .score-bar .fill {
            height: 100%;
            border-radius: 4px;
            background: linear-gradient(90deg, #fbbf24, #4ade80);
            transition: width 0.6s ease;
        }

        .console-panel {
            background: #060b14;
            border-radius: 16px;
            padding: 16px 18px;
            border: 1px solid #1a2436;
        }
        .console-panel .console-title {
            font-size: 13px;
            font-weight: 700;
            color: #60a5fa;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .console-steps {
            display: flex;
            flex-direction: column;
            gap: 6px;
            margin-bottom: 12px;
            max-height: 200px;
            overflow-y: auto;
            padding-right: 4px;
        }
        .console-steps::-webkit-scrollbar {
            width: 3px;
        }
        .console-steps::-webkit-scrollbar-track {
            background: #0b111c;
        }
        .console-steps::-webkit-scrollbar-thumb {
            background: #2f405b;
            border-radius: 4px;
        }
        .console-step {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 6px 10px;
            border-radius: 8px;
            background: #0b111c;
            border-left: 3px solid #2f405b;
            transition: 0.3s;
            font-size: 13px;
            color: #8899b4;
        }
        .console-step .step-time {
            margin-left: auto;
            font-weight: 600;
            font-size: 12px;
            font-family: 'Inter', monospace;
        }
        .console-step.active {
            border-left-color: #fbbf24;
            background: #fbbf2410;
            color: #e8edf5;
        }
        .console-step.done {
            border-left-color: #4ade80;
            background: #4ade8010;
            color: #e8edf5;
        }
        .console-step.done .step-time {
            color: #4ade80;
        }
        .console-step.fail {
            border-left-color: #f87171;
            background: #f8717110;
            color: #f87171;
        }
        .console-actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-top: 8px;
        }
        .console-actions button {
            background: #1f2a3a;
            border: none;
            color: #e8edf5;
            padding: 8px 18px;
            border-radius: 30px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: 0.2s;
            border: 1px solid #2f405b;
            flex: 1;
            min-width: 120px;
        }
        .console-actions button:hover:not(:disabled) {
            background: #2f405b;
            border-color: #fbbf24;
        }
        .console-actions button.primary {
            background: #fbbf24;
            color: #0b0f17;
            border-color: #fbbf24;
        }
        .console-actions button.primary:hover:not(:disabled) {
            background: #f59e0b;
            border-color: #f59e0b;
        }
        .console-actions button:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }
        .console-decision {
            margin-top: 14px;
            padding: 12px 16px;
            border-radius: 12px;
            background: #0b111c;
            border: 1px solid #1f2a3a;
            display: none;
            transition: 0.3s;
        }
        .console-decision.show {
            display: block;
            animation: fadeSlide 0.4s ease;
        }
        @keyframes fadeSlide {
            0% {
                opacity: 0;
                transform: translateY(10px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }
        .console-decision .decision-label {
            font-size: 12px;
            color: #8899b4;
            text-transform: uppercase;
            letter-spacing: 0.4px;
        }
        .console-decision .decision-value {
            font-size: 20px;
            font-weight: 700;
            margin-top: 2px;
        }
        .console-decision .decision-value.approved {
            color: #4ade80;
        }
        .console-decision .decision-value.review {
            color: #fbbf24;
        }
        .console-decision .decision-value.rejected {
            color: #f87171;
        }
        .console-decision .decision-detail {
            font-size: 13px;
            color: #8899b4;
            margin-top: 4px;
        }
        @media (max-width: 860px) {
            .lfe-grid {
                grid-template-columns: 1fr;
            }
        }

        /* === JOURNEY SECTION === */
        .journey-section {
            background: #0b111c;
            border-radius: 20px;
            padding: 20px 24px 24px;
            border: 1px solid #1f2a3a;
            margin-bottom: 28px;
        }
        .journey-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 16px;
        }
        .journey-header h3 {
            font-size: 15px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .journey-controls {
            display: flex;
            gap: 8px;
        }
        .journey-controls button {
            background: #1f2a3a;
            border: none;
            color: #e8edf5;
            padding: 4px 14px;
            border-radius: 30px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: 0.2s;
            border: 1px solid #2f405b;
        }
        .journey-controls button:hover {
            background: #2f405b;
            border-color: #fbbf24;
        }
        .journey-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }
        .journey-column {
            background: #060b14;
            border-radius: 16px;
            padding: 16px 18px;
            border: 1px solid #1a2436;
            transition: 0.25s;
        }
        .journey-column.wellpay-col {
            border-color: #fbbf2440;
            background: #0e1725;
        }
        .journey-column .col-title {
            font-size: 13px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
        }
        .journey-column .col-title .col-badge {
            font-size: 10px;
            font-weight: 600;
            padding: 2px 12px;
            border-radius: 20px;
            background: #1f2a3a;
            color: #8899b4;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .journey-column.wellpay-col .col-title .col-badge {
            background: #fbbf2420;
            color: #fbbf24;
            border: 1px solid #fbbf2430;
        }
        .journey-step {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 0;
            border-bottom: 1px solid #1a2436;
            transition: 0.3s;
        }
        .journey-step:last-child {
            border-bottom: none;
        }
        .journey-step .step-icon {
            font-size: 20px;
            width: 32px;
            text-align: center;
            flex-shrink: 0;
        }
        .journey-step .step-info {
            flex: 1;
        }
        .journey-step .step-info .step-label {
            font-size: 13px;
            font-weight: 500;
            color: #e8edf5;
        }
        .journey-step .step-info .step-desc {
            font-size: 11px;
            color: #8899b4;
        }
        .journey-step .step-duration {
            font-size: 13px;
            font-weight: 700;
            color: #4b5a7a;
            white-space: nowrap;
            transition: 0.2s;
        }
        .journey-column.wellpay-col .journey-step .step-duration {
            color: #4ade80;
        }
        .journey-step.highlight {
            background: #fbbf2410;
            border-radius: 8px;
            padding-left: 8px;
            padding-right: 8px;
            border-left: 3px solid #fbbf24;
        }
        .journey-step .step-progress {
            height: 3px;
            background: #1f2a3a;
            border-radius: 4px;
            margin-top: 2px;
            overflow: hidden;
        }
        .journey-step .step-progress .fill {
            height: 100%;
            background: #fbbf24;
            border-radius: 4px;
            transition: width 0.5s ease;
        }
        .journey-column.wellpay-col .journey-step .step-progress .fill {
            background: #4ade80;
        }
        .journey-summary {
            margin-top: 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #060b14;
            padding: 12px 16px;
            border-radius: 12px;
            border: 1px solid #1a2436;
        }
        .journey-summary .total-time {
            font-size: 14px;
            font-weight: 600;
        }
        .journey-summary .total-time span {
            color: #fbbf24;
        }
        .journey-summary .savings {
            font-size: 14px;
            font-weight: 700;
            color: #4ade80;
        }
        @media (max-width: 860px) {
            .journey-grid {
                grid-template-columns: 1fr;
            }
        }

        /* === STAKEHOLDER SECTION === */
        .stakeholder-section {
            margin-top: 8px;
            margin-bottom: 28px;
        }
        .stakeholder-section .section-label {
            font-size: 13px;
            font-weight: 600;
            color: #8899b4;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 14px;
        }
        .stakeholder-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
            gap: 14px;
        }
        .stakeholder-card {
            background: #0b111c;
            border-radius: 16px;
            padding: 16px 18px;
            border: 1px solid #1f2a3a;
            transition: 0.25s;
        }
        .stakeholder-card:hover {
            border-color: #2f405b;
            transform: translateY(-2px);
        }
        .stakeholder-card .st-icon {
            font-size: 22px;
            margin-bottom: 4px;
        }
        .stakeholder-card .st-name {
            font-weight: 700;
            font-size: 13px;
        }
        .stakeholder-card .st-benefit {
            font-size: 12px;
            color: #4ade80;
            font-weight: 600;
            margin-top: 2px;
        }
        .stakeholder-card .st-detail {
            font-size: 12px;
            color: #8899b4;
            margin-top: 2px;
            line-height: 1.4;
        }
        .stakeholder-card .st-bar {
            margin-top: 8px;
            height: 4px;
            border-radius: 4px;
            background: #1f2a3a;
            overflow: hidden;
        }
        .stakeholder-card .st-bar .fill {
            height: 100%;
            border-radius: 4px;
            background: linear-gradient(90deg, #fbbf24, #f59e0b);
            transition: width 0.6s ease;
        }

        /* === TIMELINE === */
        .timeline-section {
            background: #0b111c;
            border-radius: 20px;
            padding: 20px 24px 24px;
            border: 1px solid #1f2a3a;
            margin-bottom: 8px;
        }
        .timeline-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            flex-wrap: wrap;
            gap: 8px;
        }
        .timeline-header h3 {
            font-size: 14px;
            font-weight: 600;
        }
        .timeline-steps {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
        }
        .tl-step {
            background: #060b14;
            border-radius: 14px;
            padding: 14px 16px;
            border: 1px solid #1a2436;
            text-align: center;
            transition: 0.25s;
        }
        .tl-step:hover {
            border-color: #2f405b;
        }
        .tl-step .tl-month {
            font-size: 12px;
            font-weight: 700;
            color: #fbbf24;
            text-transform: uppercase;
            letter-spacing: 0.4px;
        }
        .tl-step .tl-desc {
            font-size: 13px;
            font-weight: 500;
            margin-top: 4px;
        }
        .tl-step .tl-stat {
            font-size: 12px;
            color: #4ade80;
            font-weight: 600;
            margin-top: 2px;
        }

        /* === RESPONSIVE === */
        @media (max-width: 960px) {
            .app {
                padding: 20px 16px 28px;
            }
            .comparison-row,
            .charts-row {
                grid-template-columns: 1fr;
            }
            .timeline-steps {
                grid-template-columns: 1fr 1fr;
            }
            .controls {
                grid-template-columns: 1fr 1fr;
            }
            .kpi-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }
        @media (max-width: 600px) {
            .controls {
                grid-template-columns: 1fr;
            }
            .kpi-grid {
                grid-template-columns: 1fr 1fr;
            }
            .header {
                flex-direction: column;
            }
            .timeline-steps {
                grid-template-columns: 1fr;
            }
            .stakeholder-grid {
                grid-template-columns: 1fr 1fr;
            }
            .app {
                padding: 14px 12px 20px;
                border-radius: 20px;
            }
            body {
                padding: 12px;
            }
            .console-actions button {
                min-width: 80px;
            }
        }

        /* === UTILITIES === */
        .text-gold {
            color: #fbbf24;
        }
        .text-green {
            color: #4ade80;
        }
        .text-rose {
            color: #f87171;
        }
        .text-blue {
            color: #60a5fa;
        }
        .mt-1 {
            margin-top: 4px;
        }
        .fw-600 {
            font-weight: 600;
        }
        .fs-12 {
            font-size: 12px;
        }
        .op-6 {
            opacity: 0.6;
        }

        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }
        ::-webkit-scrollbar-track {
            background: #0b0f17;
        }
        ::-webkit-scrollbar-thumb {
            background: #2f405b;
            border-radius: 8px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #4b5a7a;
        }


/* === LFE shell overlays on dark theme (high contrast) === */
/* Nav auth chip: no box border around email + Sign out */
.header .lfe-auth-bar,
.header .lfe-auth-bar--nav,
.header-right .lfe-auth-bar,
.lfe-auth-bar.lfe-auth-bar--nav {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 10px !important;
}
.lfe-auth-bar .who {
  color: #f8fafc !important;
  font-weight: 600;
  max-width: 16rem;
}
.lfe-auth-bar .who strong { color: #fbbf24 !important; }
.lfe-auth-bar .who span { color: #cbd5e1 !important; font-weight: 500; }
.lfe-auth-bar .mobile-auth-role {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #1e3a5f;
  color: #93c5fd !important;
  font-size: 11px;
  font-weight: 700;
}
.lfe-auth-actions .lfe-btn-ghost {
  background: #111b2b !important;
  border: 1px solid #4b5a7a !important;
  color: #f1f5f9 !important;
}
.lfe-auth-actions .lfe-btn-primary-sm {
  background: #fbbf24 !important;
  color: #0e1520 !important;
}
.lfe-advisory-banner {
  background: #152238 !important;
  border: 1px solid #3d4f6a !important;
  color: #f1f5f9 !important;
}
.lfe-advisory-banner strong { color: #fbbf24 !important; }
#mobileLfeStatus.lfe-advisory-banner {
  color: #e2e8f0 !important;
  font-weight: 500;
}
.lfe-welcome-user {
  color: #fbbf24 !important;
  font-size: 14px;
  font-weight: 700;
  margin-top: 6px;
}
.lfe-app-footer { color: #94a3b8 !important; }
.lfe-hub, #lfeHubMount { display: none !important; }

/* Role chrome + partner desk */
.mobile-role-chrome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  width: 100%;
  margin: 0 0 14px;
  padding: 12px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #122033 0%, #0a111f 100%);
  border: 1px solid #3d4f6a;
}
.mobile-role-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.mobile-role-pill.customer {
  background: #1e3a5f;
  color: #93c5fd;
  border: 1px solid #3b82f6;
}
.mobile-role-pill.partner {
  background: #422006;
  color: #fbbf24;
  border: 1px solid #f59e0b;
}
.mobile-role-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mobile-role-copy strong {
  color: #f8fafc;
  font-size: 15px;
}
.mobile-role-copy span {
  color: #cbd5e1;
  font-size: 13px;
}
.mobile-role-copy em {
  color: #fbbf24;
  font-style: normal;
  font-weight: 600;
}

.mobile-partner-desk {
  margin: 0 0 20px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: #111b2b;
  border: 1px solid #fbbf2440;
  box-shadow: 0 0 0 1px #fbbf2414 inset;
}
.mobile-my-apps {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 0 22px;
  padding: 20px 20px 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(251, 191, 36, 0.07) 0%, transparent 42%),
    #111b2b;
  border: 1px solid #3d4f6a;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}
.mobile-workspace-mount {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  margin: 0 0 8px;
}
body.mobile-role-partner .mobile-my-apps { display: none !important; }
body.mobile-role-customer .mobile-partner-desk { display: none !important; }
.mobile-my-apps-head,
.mobile-partner-desk-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #2d3a4e;
}
.mobile-my-apps-list { display: grid; gap: 12px; }
.mobile-apps-kicker,
.mobile-partner-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fbbf24;
}
.mobile-my-apps-head h2,
.mobile-partner-desk-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
  background: none;
  -webkit-text-fill-color: #f8fafc;
}
.mobile-apps-sub,
.mobile-partner-sub {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #94a3b8;
  max-width: 42rem;
}
button.mobile-apps-refresh,
button.mobile-partner-refresh {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #fbbf24;
  background: #fbbf24;
  color: #0e1520;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
button.mobile-apps-refresh:hover,
button.mobile-partner-refresh:hover {
  background: #f59e0b;
  border-color: #f59e0b;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.28);
}
button.mobile-apps-refresh:active,
button.mobile-partner-refresh:active {
  transform: scale(0.98);
}
button.mobile-apps-refresh:focus-visible,
button.mobile-partner-refresh:focus-visible {
  outline: 2px solid #fde68a;
  outline-offset: 2px;
}

.mobile-app-file {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 16px 16px 16px 14px;
  border-radius: 16px;
  background: #0a111f;
  border: 1px solid #3d4f6a;
  border-left: 3px solid #fbbf24;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.mobile-app-file:hover {
  background: #122033;
  border-color: #fbbf2480;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}
.mobile-app-file.is-active {
  background: #152238;
  border-color: #fbbf24;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.28);
}
.mobile-app-file:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}
.mobile-app-file-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(180deg, #243247 0%, #152033 100%);
  border: 1px solid #fbbf244d;
  position: relative;
}
.mobile-app-file-mark::after {
  content: '';
  position: absolute;
  inset: 13px 15px;
  border-radius: 3px;
  border: 2px solid #fbbf24;
  border-top-width: 6px;
}
.mobile-app-file-body { min-width: 0; }
.mobile-app-file-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.mobile-app-file-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 750;
  color: #f8fafc;
  line-height: 1.3;
}
.mobile-app-file-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.mobile-app-file-status.is-review,
.mobile-app-file-status.is-pending {
  background: #422006;
  color: #fbbf24;
  border-color: #f59e0b66;
}
.mobile-app-file-status.is-approved {
  background: #052e16;
  color: #4ade80;
  border-color: #16a34a66;
}
.mobile-app-file-status.is-declined {
  background: #450a0a;
  color: #fca5a5;
  border-color: #ef444466;
}
.mobile-app-file-status.is-closed {
  background: #1e293b;
  color: #94a3b8;
  border-color: #475569;
}
.mobile-app-file-id {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.mobile-app-file-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 10px;
}
.mobile-app-file-facts span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 2px;
}
.mobile-app-file-facts strong {
  font-size: 13px;
  font-weight: 750;
  color: #e2e8f0;
}
.mobile-app-file-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #3d4f6a;
  background: #152238;
  color: #fde68a;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.mobile-app-file-cta::after {
  content: '→';
  font-weight: 700;
}
.mobile-app-file:hover .mobile-app-file-cta,
.mobile-app-file.is-active .mobile-app-file-cta {
  border-color: #fbbf24;
  background: #fbbf24;
  color: #0e1520;
}
.mobile-apps-empty {
  margin: 0;
  padding: 22px 18px;
  text-align: center;
  background: #0a111f;
  border-radius: 14px;
  border: 1px dashed #3d4f6a;
  display: grid;
  gap: 6px;
  justify-items: center;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.5;
}
.mobile-apps-empty strong {
  color: #f8fafc;
  font-size: 14px;
}
.mobile-partner-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.mobile-partner-stat {
  padding: 12px 14px;
  border-radius: 14px;
  background: #0a111f;
  border: 1px solid #2d3a4e;
}
.mobile-partner-stat span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 4px;
}
.mobile-partner-stat strong {
  font-size: 1.35rem;
  color: #fbbf24;
}
.mobile-partner-list {
  display: grid;
  gap: 10px;
}
.mobile-partner-card {
  cursor: pointer;
  padding: 14px 16px;
  border-radius: 14px;
  background: #0a111f;
  border: 1px solid #2d3a4e;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.mobile-partner-card:hover {
  background: #122033;
  border-color: #fbbf2466;
  transform: translateY(-1px);
}
.mobile-partner-card:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}
.mobile-partner-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.mobile-partner-card-top strong { color: #f8fafc; font-size: 0.95rem; }
.mobile-partner-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #1e3a5f;
  color: #93c5fd;
}
.mobile-partner-card-meta {
  margin-top: 4px;
  font-size: 12px;
  color: #94a3b8;
}
.mobile-partner-card-foot {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #cbd5e1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.mobile-partner-empty {
  margin: 0;
  padding: 18px;
  text-align: center;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
  background: #0a111f;
  border-radius: 12px;
  border: 1px dashed #3d4f6a;
}
.mobile-partner-empty code,
.mobile-partner-share code {
  color: #fbbf24;
  font-size: 12px;
}
.mobile-partner-share {
  margin: 14px 0 0;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}
.mobile-partner-share strong { color: #e2e8f0; }

body.mobile-role-partner .mobile-customer-only { display: none !important; }
body.mobile-role-partner #mobileChatForm {
  display: none !important;
}
body.mobile-role-customer .mobile-partner-only { display: none !important; }
body.mobile-role-partner .scenario-bar::before {
  content: 'Partner view · pilot metrics (shared)';
  display: block;
  width: 100%;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .mobile-partner-stats { grid-template-columns: 1fr; }
  .mobile-app-file {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .mobile-app-file-cta {
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 44px;
    width: 100%;
  }
  button.mobile-apps-refresh,
  button.mobile-partner-refresh {
    width: 100%;
  }
}

.auth-role-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.auth-role-pills button {
  flex: 1; min-height: 40px; border-radius: 999px; border: 1px solid #2f405b;
  background: #111b2b; color: #8899b4; font-weight: 700; cursor: pointer; font-family: inherit;
}
.auth-role-pills button.active { background: #fbbf24; color: #0e1520; border-color: #fbbf24; }

.mobile-chat-panel {
  margin-top: 24px; padding: 16px; border-radius: 20px;
  background: #111b2b; border: 1px solid #2d3a4e;
}
.mobile-chat-header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.mobile-chat-header h3 { font-size: 1rem; color: #e8edf5; }
.mobile-chat-status { font-size: 0.75rem; color: #8899b4; }
.mobile-chat-messages {
  max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px;
  padding: 8px; background: #0a111f; border-radius: 12px; min-height: 120px;
}
.mobile-chat-bubble { max-width: 85%; padding: 10px 12px; border-radius: 12px; font-size: 0.85rem; }
.mobile-chat-bubble.you { align-self: flex-end; background: #1e3a5f; color: #e8edf5; }
.mobile-chat-bubble.bank { align-self: flex-start; background: #14532d; color: #ecfdf5; }
.mobile-chat-meta { font-size: 0.65rem; opacity: 0.8; margin-bottom: 4px; }
.mobile-chat-input-row { display: flex; gap: 8px; margin-top: 12px; }
.mobile-chat-input-row input {
  flex: 1; min-height: 44px; border-radius: 12px; border: 1px solid #2f405b;
  background: #0a111f; color: #e8edf5; padding: 0 12px; font-family: inherit;
}
.mobile-chat-input-row button {
  min-height: 44px; padding: 0 16px; border-radius: 12px; border: none;
  background: #fbbf24; color: #0e1520; font-weight: 700; cursor: pointer;
}
.mobile-chat-empty { color: #8899b4; text-align: center; padding: 24px 8px; font-size: 0.85rem; }

.mobile-loan-form {
  margin: 12px 0 14px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: #0c1422;
  border: 1px solid #2d3a4e;
}
.mobile-loan-form-title {
  font-size: 13px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.mobile-loan-form-hint {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.45;
  color: #94a3b8;
}
.mobile-loan-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}
.mobile-loan-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 0.02em;
}
.mobile-loan-form-grid label.mobile-loan-form-span {
  grid-column: 1 / -1;
}
.mobile-loan-form-grid input,
.mobile-loan-form-grid select {
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #3d4f6a;
  background: #111b2b;
  color: #f8fafc;
  font-size: 13px;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}
.mobile-loan-form-grid select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23f8fafc' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
.mobile-loan-form-grid select option {
  background: #111b2b;
  color: #f8fafc;
}
.mobile-loan-form-grid input:focus,
.mobile-loan-form-grid select:focus {
  outline: 2px solid #fbbf24;
  outline-offset: 1px;
  border-color: #fbbf24;
}
.mobile-loan-form-grid input[readonly] {
  opacity: 0.85;
  cursor: default;
}
@media (max-width: 640px) {
  .mobile-loan-form-grid {
    grid-template-columns: 1fr;
  }
}
.mobile-loan-pick {
  margin: 12px 0 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #2d3a4e;
  background: #0a111f;
}
.mobile-loan-pick label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 6px;
}
.mobile-loan-pick select {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid #2f405b;
  background: #111b2b;
  color: #e8edf5;
  padding: 0 12px;
  font-family: inherit;
}
.device-model-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.device-model-picker input[type="search"],
.device-model-picker select {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid #2f405b;
  background: #111b2b;
  color: #e8edf5;
  padding: 0 12px;
  font-family: inherit;
  box-sizing: border-box;
}
.device-model-picker input[type="search"]::placeholder {
  color: #94a3b8;
}
.mobile-combobox {
  position: relative;
}
.mobile-combobox input[type="text"] {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid #2f405b;
  background: #111b2b;
  color: #e8edf5;
  padding: 0 12px;
  font-family: inherit;
  box-sizing: border-box;
}
.mobile-combobox-list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 240px;
  overflow: auto;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  border-radius: 10px;
  border: 1px solid #2f405b;
  background: #0f172a;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.mobile-combobox-list li[role="option"] {
  padding: 10px 14px;
  cursor: pointer;
  color: #e8edf5;
  font-size: 14px;
}
.mobile-combobox-list li[role="option"]:hover,
.mobile-combobox-list li[role="option"].is-active,
.mobile-combobox-list li[role="option"][aria-selected="true"] {
  background: #1e293b;
  color: #fbbf24;
}
.mobile-combobox-empty {
  padding: 12px 14px;
  color: #94a3b8;
  font-size: 13px;
}
.mobile-loan-pick-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
}
.mobile-doc-upload {
  margin: 14px 0 4px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #2d3a4e;
  background: #0a111f;
}
.mobile-doc-upload-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #e8edf5;
  margin-bottom: 4px;
}
.mobile-doc-hint {
  font-size: 0.75rem;
  color: #8899b4;
  margin: 0 0 10px;
}
.mobile-doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.mobile-doc-slot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #cbd5e1;
  min-width: 0;
}
.mobile-doc-slot input[type='file'] {
  width: 100%;
  max-width: 100%;
  font-size: 0.7rem;
  color: #8899b4;
}

@media (max-width: 768px) {
  .mobile-doc-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  body { padding: 12px; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .app { padding: 18px 14px 24px; border-radius: 24px; max-width: 100%; }
  .header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .scenario-bar { flex-wrap: wrap; gap: 6px; }
  .scenario-btn { min-height: 40px; }
  .controls, .kpi-grid, .comparison-row, .charts-row, .lfe-grid, .stakeholder-grid, .timeline-steps {
    grid-template-columns: 1fr !important;
  }
  .control-group label { font-size: 0.8rem; }
  input[type="range"] { min-height: 44px; }
  .journey-grid { grid-template-columns: 1fr !important; }
  .console-actions { flex-direction: column; }
  .console-actions button { width: 100%; min-height: 44px; }
}

/* === Readability (dark theme contrast) === */
:root {
  --vh-muted: #b8c4d9;
  --vh-muted-strong: #d5deeb;
  --vh-ink: #f1f5f9;
}

.subhead,
.control-group label,
.kpi-label,
.packet-row .label,
.packet-score .score-label,
.packet-title .tag,
.console-decision .decision-label,
.console-decision .decision-detail,
.stakeholder-section .section-label,
.stakeholder-card .st-detail,
.mobile-chat-status,
.mobile-chat-empty,
.mobile-doc-hint {
  color: var(--vh-muted) !important;
}

.scenario-btn {
  color: var(--vh-muted-strong) !important;
}

.scenario-btn.active {
  color: #0b0f17 !important;
}

.auth-role-pills button {
  color: var(--vh-muted-strong) !important;
}

.auth-role-pills button.active {
  color: #0e1520 !important;
}

.packet-row .value,
.tl-step .tl-desc,
.stakeholder-card .st-name {
  color: var(--vh-ink) !important;
}

.packet-row .value.verified {
  color: #4ade80 !important;
}

.packet-row .value.gold {
  color: #fbbf24 !important;
}

.packet-row .value.unverified {
  color: #f87171 !important;
}

.packet-row .label {
  font-size: 13px !important;
  font-weight: 600 !important;
}

.packet-row .value {
  font-size: 13px !important;
  font-weight: 650;
}

.console-step {
  font-size: 14px !important;
  color: var(--vh-muted-strong) !important;
}

.console-step.active,
.console-step.done {
  color: var(--vh-ink) !important;
}

.console-step.fail {
  color: #f87171 !important;
}

.console-step .step-time {
  color: var(--vh-muted) !important;
  font-size: 12px !important;
}

.console-step.done .step-time {
  color: #4ade80 !important;
}

.console-actions button {
  color: #f1f5f9 !important;
  font-size: 13px !important;
  border-color: #3d4f6a !important;
  background: #243247 !important;
}

.console-actions button.primary {
  color: #0b0f17 !important;
  background: #fbbf24 !important;
  border-color: #fbbf24 !important;
}

.stakeholder-section .section-label {
  font-size: 14px !important;
  color: var(--vh-muted-strong) !important;
}

.stakeholder-card .st-name {
  font-size: 14px !important;
}

.stakeholder-card .st-benefit {
  font-size: 15px !important;
}

.stakeholder-card .st-detail {
  font-size: 13px !important;
  line-height: 1.45 !important;
  color: var(--vh-muted-strong) !important;
  margin-top: 4px;
}

.tl-step .tl-month {
  font-size: 13px !important;
}

.tl-step .tl-desc {
  font-size: 14px !important;
}

.tl-step .tl-stat {
  font-size: 13px !important;
}

.mobile-doc-upload-title {
  font-size: 0.95rem !important;
  color: #f8fafc !important;
}

.mobile-doc-hint {
  font-size: 0.85rem !important;
  line-height: 1.45 !important;
  color: var(--vh-muted-strong) !important;
}

.mobile-doc-slot {
  font-size: 0.875rem !important;
  color: #e2e8f0 !important;
}

.mobile-doc-slot input[type='file'] {
  font-size: 0.8rem !important;
  color: var(--vh-muted-strong) !important;
}

.lfe-app-footer,
.app-site-footer {
  color: var(--vh-muted) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.lfe-advisory-banner {
  color: #e2e8f0 !important;
}

.muted-inline {
  color: var(--vh-muted-strong) !important;
}

.financing-note {
  font-size: 12px !important;
  color: var(--vh-muted-strong) !important;
  margin-top: 2px;
}

/* === Apply-first UX (customer-friendly) === */
.mobile-online-tag {
  background: #14532d33 !important;
  color: #86efac !important;
  border-color: #22c55e55 !important;
}
.mobile-apply-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fbbf24;
}
.mobile-apply-lead {
  margin: 6px 0 0;
  max-width: 42rem;
  font-size: 13px;
  line-height: 1.5;
  color: #8899b4;
  font-weight: 500;
}
.mobile-apply-primary .lfe-header {
  align-items: flex-start;
}
.mobile-apply-primary .lfe-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
}
.mobile-apply-primary {
  border-color: #fbbf2433;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.08);
}
.mobile-apply-primary .mobile-loan-pick {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: #121a28;
  border: 1px solid #2a3a52;
}
.mobile-apply-primary .mobile-loan-pick label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #e8edf5;
  margin-bottom: 8px;
}
.mobile-apply-primary .console-actions .primary {
  font-size: 15px;
  font-weight: 700;
  min-height: 46px;
}
.mobile-insights {
  margin: 1.25rem 0 0;
  border-radius: 18px;
  border: 1px solid #1f2a3a;
  background: #0b111c;
  overflow: hidden;
}
.mobile-insights[open] {
  display: block;
}
.mobile-insights-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #e8edf5;
  user-select: none;
}
.mobile-insights-summary::-webkit-details-marker { display: none; }
.mobile-insights-summary::before {
  content: '▸';
  color: #fbbf24;
  margin-right: 4px;
}
.mobile-insights[open] > .mobile-insights-summary::before {
  content: '▾';
}
.mobile-insights-hint {
  font-size: 12px;
  font-weight: 500;
  color: #8899b4;
}
.mobile-insights-body {
  padding: 4px 18px 20px;
  border-top: 1px solid #1f2a3a;
}
body.mobile-role-partner .mobile-insights {
  border-color: #2f405b;
}
@media (max-width: 720px) {
  .mobile-apply-primary .lfe-header h3 {
    font-size: 1.1rem;
  }
  .mobile-insights-summary {
    flex-direction: column;
    gap: 4px;
  }
}

/* === Mobile / tablet layout harden (overflow + stacking) === */
html {
  overflow-x: hidden;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  max-width: 100%;
  overflow-x: hidden;
}
.app,
.mobile-workspace-mount,
.mobile-my-apps,
.mobile-partner-desk,
.mobile-chat-panel,
.lfe-section,
.mobile-apply-primary,
.journey-section,
.mobile-insights {
  max-width: 100%;
  min-width: 0;
}
.mobile-partner-share,
.mobile-partner-empty,
.mobile-apps-sub,
.mobile-partner-sub,
.mobile-apply-lead,
.mobile-role-copy span,
.mobile-chat-status {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.mobile-partner-share code,
.mobile-partner-empty code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-all;
}
.packet-row .value,
.mobile-app-file-title,
.mobile-app-file-id,
.mobile-partner-card-meta,
.mobile-partner-card-foot {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.packet-row .value {
  text-align: right;
  max-width: 62%;
}
.header-right {
  width: 100%;
  max-width: 100%;
  justify-content: flex-start;
}
.header .lfe-auth-bar,
.header .lfe-auth-bar--nav,
.header-right .lfe-auth-bar {
  width: 100% !important;
  max-width: 100% !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  row-gap: 8px !important;
}
.lfe-auth-bar .who {
  max-width: 100% !important;
  min-width: 0;
  overflow-wrap: anywhere;
}
.lfe-auth-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

@media (max-width: 960px) {
  body {
    padding: 14px 10px 20px;
  }
  .app {
    padding: 18px 14px 24px;
    border-radius: 22px;
  }
  h1 {
    font-size: 1.45rem;
  }
  .lfe-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
  }
  .mobile-role-chrome {
    flex-direction: column;
    align-items: flex-start;
  }
  .mobile-my-apps,
  .mobile-partner-desk {
    padding: 16px 14px 14px;
  }
  .mobile-my-apps-head,
  .mobile-partner-desk-head {
    flex-direction: column;
    align-items: stretch;
  }
  .mobile-my-apps-head h2,
  .mobile-partner-desk-head h2 {
    font-size: 1.15rem;
  }
  .kpi-grid,
  .stakeholder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .controls {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 768px) {
  body {
    padding: 10px 8px 18px;
    padding-bottom: max(18px, env(safe-area-inset-bottom, 0px));
  }
  .app {
    padding: 14px 12px 20px;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
  }
  .header {
    margin-bottom: 18px;
    gap: 10px;
  }
  .header-left > div {
    gap: 8px !important;
  }
  .subhead {
    font-size: 13px;
    line-height: 1.45;
  }
  .pilot-tag {
    width: 100%;
    justify-content: flex-start;
  }
  .lfe-grid,
  .comparison-row,
  .charts-row,
  .journey-grid,
  .timeline-steps,
  .controls,
  .kpi-grid,
  .stakeholder-grid {
    grid-template-columns: 1fr !important;
  }
  .packet-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px 0;
  }
  .packet-row .value {
    max-width: 100%;
    text-align: left;
  }
  .packet-score {
    flex-wrap: wrap;
  }
  .console-panel,
  .data-packet {
    padding: 14px;
  }
  .console-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .console-actions button {
    width: 100%;
    min-height: 48px;
  }
  .console-steps {
    gap: 8px;
  }
  .mobile-loan-form-grid,
  .mobile-doc-grid {
    grid-template-columns: 1fr !important;
  }
  .mobile-loan-form-grid input,
  .mobile-loan-pick select,
  .mobile-chat-input-row input,
  .mobile-doc-slot input[type='file'] {
    font-size: 16px !important; /* avoid iOS zoom */
    width: 100%;
    max-width: 100%;
  }
  .mobile-chat-input-row {
    flex-direction: column;
    align-items: stretch;
  }
  .mobile-chat-input-row button {
    width: 100%;
  }
  .mobile-chat-bubble {
    max-width: 95%;
  }
  .mobile-chat-messages {
    max-height: min(42vh, 320px);
  }
  .mobile-app-file {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 14px 12px;
  }
  .mobile-app-file-cta {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
  .mobile-app-file-facts {
    gap: 10px 16px;
  }
  .mobile-partner-stats {
    grid-template-columns: 1fr;
  }
  .mobile-partner-card-top,
  .mobile-partner-card-foot {
    flex-direction: column;
    align-items: flex-start;
  }
  button.mobile-apps-refresh,
  button.mobile-partner-refresh {
    width: 100%;
    min-height: 48px;
  }
  .journey-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .scenario-bar {
    width: 100%;
  }
  .scenario-btn {
    flex: 1 1 calc(50% - 6px);
    text-align: center;
    min-height: 40px;
  }
  .mobile-insights-body {
    padding: 4px 12px 16px;
  }
  .mobile-insights-summary {
    padding: 12px 14px;
  }
  .chart-card,
  .comparison-card {
    min-width: 0;
    overflow: hidden;
  }
  canvas {
    max-width: 100% !important;
    height: auto !important;
  }
  .auth-role-pills {
    width: 100%;
  }
  .auth-role-pills button {
    min-height: 44px;
  }
  .lfe-auth-actions .lfe-btn-ghost,
  .lfe-auth-actions .lfe-btn-primary-sm {
    min-height: 40px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 6px 4px 14px;
  }
  .app {
    padding: 12px 10px 16px;
    border-radius: 14px;
  }
  h1 {
    font-size: 1.25rem;
  }
  .badge {
    font-size: 10px;
    padding: 3px 10px;
  }
  .kpi-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .scenario-btn {
    flex: 1 1 100%;
  }
  .mobile-role-pill {
    width: fit-content;
  }
  .lfe-auth-bar .mobile-auth-role {
    display: inline-block;
    margin: 4px 0 0 0;
  }
  .metric-line {
    flex-wrap: wrap;
    gap: 4px;
  }
}
