        /* ══════════════════════════════════════════
           PROMPT SCREEN
           ══════════════════════════════════════════ */
        .prompt-area { flex: 1; display: flex; overflow: hidden; position: relative; }

        /* ── Empty state: chat ocupa tela toda ── */
        .prompt-chat-area {
            flex: 1; display: flex; flex-direction: column; overflow: hidden;
            background: var(--background);
        }
        .prompt-tree-OLD {
            width: 0; flex-shrink: 0; overflow: hidden;
            background: #FFFFFF; border-left: 1px solid #E6EAEC;
            display: flex; flex-direction: column;
        }

        /* ── Após primeiro envio: chat 50% | configurar 50% ── */
        .prompt-area.has-chat .prompt-chat-area {
            flex: none; width: 50%;
            background: #FFFFFF; border-right: 1px solid #E6EAEC;
        }
        .prompt-area.has-chat .prompt-summary-panel {
            flex: 1; overflow: hidden;
        }

        /* ── Switch Chat/SQL — light theme, inside stepper-bar ── */
        .prompt-chat-switch {
            display: flex; align-items: center;
            background: #F0F4F7; border-radius: 8px; padding: 3px; gap: 2px;
            margin-right: 12px; flex-shrink: 0;
            opacity: 0; pointer-events: none;
        }
        .prompt-area.has-chat .prompt-chat-switch {
            opacity: 1; pointer-events: auto;
        }
        .pcs-tab {
            display: flex; align-items: center; gap: 5px;
            height: 30px; padding: 0 14px; border-radius: 6px; border: none;
            font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600;
            cursor: pointer; transition: all 0.15s;
            color: #81959E; background: transparent;
        }
        .pcs-tab .material-symbols-rounded { font-size: 15px !important; }
        .pcs-tab.active {
            background: #FFFFFF; color: #243A44;
            box-shadow: 0 1px 3px rgba(36,58,68,0.12);
        }
        .pcs-tab:not(.active):hover { color: #4A6070; }
        .pcs-dot {
            width: 6px; height: 6px; border-radius: 50%;
            background: var(--verde); flex-shrink: 0;
        }

        /* ── SQL view (inside chat area, toggled) ── */
        .prompt-sql-view {
            flex: 1; overflow: auto; display: flex; flex-direction: column;
            background: var(--background);
        }

        /* ── Summary Panel (right, always visible) ── */
        .prompt-summary-panel {
            width: 0; flex-shrink: 0; overflow: hidden;
            background: #FAFBFC; border-left: 1px solid #E6EAEC;
            display: flex; flex-direction: column;
        }
        .psp-fixed-header {
            display: flex; align-items: center; gap: 8px;
            height: 55px; padding: 0 16px; flex-shrink: 0;
            border-bottom: 1px solid #E6EAEC; background: #FFFFFF;
        }
        .psp-fixed-title {
            font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
            color: #243A44;
        }
        .psp-body {
            flex: 1; overflow-y: auto; padding: 16px 16px 20px;
            display: flex; flex-direction: column; gap: 14px;
        }
        .prompt-tree { display: none; }
        .pv-hidden { display: none !important; }
        /* Section */
        .psp-section { display: flex; flex-direction: column; gap: 8px; }
        .psp-section-label {
            font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
            color: #81959E; letter-spacing: 0.6px; text-transform: uppercase;
            display: flex; align-items: center; gap: 6px;
        }
        /* 2-column grid for cards */
        .psp-card-grid {
            display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
        }
        /* Card — same style as wiz-type-card */
        .psp-item {
            display: flex; flex-direction: row; align-items: center; gap: 10px;
            padding: 12px 12px; background: #FFFFFF;
            border: 1px solid #E6EAEC; border-radius: 8px;
            cursor: pointer; transition: all 0.15s;
        }
        .psp-item:hover { border-color: #4695E1; background: rgba(70,149,225,0.04); box-shadow: 0 1px 4px rgba(36,58,68,0.08); }
        .psp-item.psp-item-selected { border-color: #4695E1; background: rgba(70,149,225,0.06); }
        .psp-item-icon {
            width: 36px; height: 36px; border-radius: 999px; flex-shrink: 0;
            background: rgba(70,149,225,0.12); display: flex; align-items: center; justify-content: center;
        }
        .psp-item-icon .material-symbols-rounded { font-size: 18px; color: #4695E1; }
        .psp-item.psp-detected .psp-item-icon { background: rgba(171,71,188,0.12); }
        .psp-item.psp-detected .psp-item-icon .material-symbols-rounded { color: #AB47BC; }
        .psp-item-content { flex: 1; min-width: 0; }
        .psp-item-name {
            font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
            color: #243A44; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }
        .psp-item-value {
            font-family: 'Inter', sans-serif; font-size: 11px; color: #81959E;
            margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }
        .psp-auto-badge {
            display: inline-flex; align-items: center; gap: 2px;
            font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600;
            color: #AB47BC; background: rgba(171,71,188,0.1); border-radius: 4px;
            padding: 1px 5px; vertical-align: middle; margin-left: 4px;
        }
        .psp-auto-badge .material-symbols-rounded { font-size: 11px !important; }
        /* Pills row inside full-width item (Empresa/Período) */
        .psp-item-full {
            display: flex; flex-direction: row; align-items: flex-start; gap: 10px;
            padding: 12px 12px; background: #FFFFFF;
            border: 1px solid #E6EAEC; border-radius: 8px;
            cursor: pointer; transition: all 0.15s;
        }
        .psp-item-full:hover { border-color: #4695E1; background: rgba(70,149,225,0.04); }
        .psp-item-full.psp-item-selected { border-color: #4695E1; background: rgba(70,149,225,0.06); }
        .psp-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
        .psp-pill {
            display: inline-flex; align-items: center; gap: 4px;
            height: 24px; padding: 0 8px; border-radius: 4px;
            font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
            background: rgba(70,149,225,0.12); color: #2D7DD2; cursor: pointer;
            border: 1px solid rgba(70,149,225,0.3); transition: all 0.12s; user-select: none;
        }
        .psp-pill:hover { background: rgba(70,149,225,0.2); }
        .psp-pill.psp-pill-selected { background: #4695E1; color: #FFFFFF; border-color: #4695E1; }
        /* Toggle chip (optional filter) */
        .psp-toggle {
            display: flex; align-items: center; justify-content: space-between;
            background: #FFFFFF; border: 1px solid #E6EAEC; border-radius: 8px;
            padding: 8px 12px; cursor: pointer; transition: all 0.15s;
            font-family: 'Inter', sans-serif; font-size: 13px; color: #4A6070;
        }
        .psp-toggle:hover { border-color: #B0C4D0; }
        .psp-toggle.psp-toggle-on { border-color: #4695E1; background: rgba(70,149,225,0.04); color: #2D7DD2; font-weight: 600; }
        .psp-toggle-left { display: flex; align-items: center; gap: 8px; }
        .psp-toggle-left .material-symbols-rounded { font-size: 16px; color: #81959E; }
        .psp-toggle.psp-toggle-on .psp-toggle-left .material-symbols-rounded { color: #4695E1; }
        /* Actions bar */
        .psp-actions {
            padding: 12px 16px 16px; display: flex; gap: 8px; flex-shrink: 0;
            border-top: 1px solid #E6EAEC; background: #FFFFFF;
            justify-content: flex-end;
        }

        /* ── Preview Panel — segue padrão data-table ── */
        .psp-preview-header {
            display: flex; align-items: center; gap: 10px;
            padding: 12px 20px 10px; flex-shrink: 0;
        }
        .psp-preview-badge {
            display: inline-flex; align-items: center; gap: 5px;
            background: rgba(70,149,225,0.1); color: #2D7DD2;
            border-radius: 6px; padding: 4px 10px;
            font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 700;
        }
        .psp-preview-badge .material-symbols-rounded { font-size: 15px !important; }
        .psp-preview-sub {
            font-family: 'Inter', sans-serif; font-size: 12px; color: #81959E;
            padding: 0 20px 8px;
        }
        .psp-preview-table-wrap {
            flex: 1; overflow: auto; padding: 0;
        }
        /* Mesmos estilos do .data-table */
        .psp-preview-table {
            width: 100%; border-collapse: separate; border-spacing: 0;
            font-family: 'Inter', sans-serif; white-space: nowrap;
        }
        .psp-preview-table thead { position: sticky; top: 0; z-index: 10; }
        .psp-preview-table thead th {
            background: #FFFFFF; font-size: 12px; font-weight: 600;
            color: #90A4AE; padding: 0 16px; height: 44px; text-align: left;
            white-space: nowrap; text-transform: uppercase; letter-spacing: 0.5px;
            border-bottom: 1px solid #EEEEEE;
        }
        .psp-preview-table thead th.th-num { text-align: right; }
        .psp-preview-table tbody tr { height: 44px; background: #FFFFFF; }
        .psp-preview-table tbody tr:nth-child(even) { background: #F8FAFB; }
        .psp-preview-table tbody tr:hover { background: #EEF2F5; }
        .psp-preview-table tbody td {
            font-size: 14px; font-weight: 400; color: #243A44;
            padding: 0 16px; height: 44px; white-space: nowrap;
            overflow: hidden; text-overflow: ellipsis;
            border-bottom: 1px solid #EEEEEE;
        }
        .psp-preview-table tbody td.num {
            text-align: right; font-variant-numeric: tabular-nums;
            color: #243A44; font-weight: 400;
        }
        .psp-preview-row-count {
            font-family: 'Inter', sans-serif; font-size: 12px; color: #81959E;
            padding: 8px 20px; text-align: right; border-top: 1px solid #EEEEEE;
        }
        .prompt-tree-body {
            flex: 1; overflow-y: auto; padding: 16px;
        }
        /* ── Center block ── */
        .prompt-center-block {
            flex: 1; display: flex; flex-direction: column; overflow: hidden;
        }

        /* ── Empty state: tudo agrupado e centralizado (estilo Claude) ── */
        .prompt-center-block.is-empty {
            justify-content: center; align-items: center;
            background: var(--background);
        }
        .prompt-center-block.is-empty .prompt-msgs {
            flex: 0 0 auto; overflow: visible; background: transparent;
            padding: 0 0 24px; width: 100%; max-width: 820px;
            display: flex; flex-direction: column; align-items: center;
        }
        .prompt-center-block.is-empty .prompt-input-bar {
            width: 100%; max-width: 820px; background: transparent;
            border-top: none; padding: 0 0 14px;
        }
        /* is-empty: centraliza e limita largura do input */
        @property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
        @keyframes promptBorderSpin { to { --angle: 360deg; } }
        .prompt-center-block.is-empty .prompt-input {
            min-height: 52px; max-height: 200px; font-size: 14px;
        }
        .prompt-center-block.is-empty .prompt-chips-below-wrap {
            width: 100%; max-width: 820px; padding: 0;
        }
        /* Send button: subtle in all states */
        .prompt-send-btn {
            background: transparent !important; border: 1.5px solid #C8D8E8 !important;
            border-radius: 6px !important; width: 36px !important; height: 36px !important;
            color: #B0C4D0 !important; align-self: flex-end; margin-bottom: 0;
            transition: background 0.15s, border-color 0.15s, color 0.15s;
        }
        .prompt-send-btn:hover {
            background: #EDF4FB !important; border-color: #C8D8E8 !important;
        }
        .prompt-send-btn.has-text {
            background: transparent !important; border-color: #4695E1 !important; color: #4695E1 !important;
        }
        .prompt-send-btn.has-text:hover { background: #EDF4FB !important; }

        /* ── Chat state: input sobe para o topo ── */
        .prompt-center-block:not(.is-empty) .prompt-chips-below-wrap { display: none; }
        .prompt-center-block:not(.is-empty) .prompt-input-bar {
            order: -1;
            padding: 16px 20px 12px;
            background: var(--background);
            border-bottom: 1px solid #E6EAEC;
        }
        .prompt-center-block:not(.is-empty) .prompt-input {
            min-height: 44px; max-height: 160px; font-size: 14px;
        }

        /* Messages area */
        .prompt-msgs {
            flex: 1; overflow-y: auto; padding: 20px 20px 8px;
            background: var(--background); display: flex; flex-direction: column; gap: 12px;
        }
        .prompt-msgs-spacer { display: none; }
        /* Empty greeting block */
        .prompt-empty {
            display: flex; flex-direction: column; align-items: center;
            justify-content: center; gap: 4px; padding: 0 16px 8px;
        }

        /* Input bar: same style in all states */
        .prompt-input-bar {
            background: transparent; border-top: none;
            padding: 10px 16px 14px; display: flex; justify-content: stretch;
        }
        .prompt-input-inner {
            width: 100%; display: flex; align-items: flex-end; gap: 6px;
            border: none; border-radius: 16px;
            padding: 13px 8px 8px 18px;
            background: #FFFFFF;
            position: relative; z-index: 0;
            box-shadow: 0 4px 20px rgba(36,58,68,0.08);
        }
        .prompt-input-inner::before {
            content: ''; position: absolute;
            inset: -1px; border-radius: 17px; z-index: -1;
            background: conic-gradient(
                from var(--angle, 0deg),
                #4695E1, rgba(149,91,182,0.7), #B0BEC5, #4695E1, rgba(149,91,182,0.7), #B0BEC5, #4695E1
            );
            animation: promptBorderSpin 9s linear infinite;
            opacity: 0.85;
        }
        .prompt-input-inner::after {
            content: ''; position: absolute;
            inset: 1px; border-radius: 15px; z-index: -1;
            background: #FFFFFF;
        }
        .prompt-input {
            flex: 1; min-height: 38px; max-height: 140px; border: none; border-radius: 4px;
            padding: 4px 4px; font-family: 'Inter', sans-serif; font-size: 13px;
            color: #243A44; outline: none; background: transparent;
            resize: none; overflow-y: auto; line-height: 1.5;
        }
        .prompt-input::placeholder { color: #A0B0B8; }

        /* Chips */
        .prompt-chips-below-wrap {
            background: var(--background); display: flex; justify-content: center;
            padding: 0 24px 20px;
        }
        .prompt-chips-below {
            display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
            width: 100%; background: transparent;
        }
        .prompt-chip-btn {
            padding: 8px 16px; border: 1px solid #E6EAEC; border-radius: 4px;
            background: #FFFFFF; cursor: pointer; font-family: 'Inter', sans-serif;
            font-size: 14px; font-weight: 400; color: #243A44; line-height: 20px;
            transition: all 0.15s; user-select: none; white-space: nowrap;
        }
        .prompt-chip-btn:hover { border-color: #4695E1; background: rgba(70,149,225,0.03); }
        .prompt-chip-btn.selected { border-color: #4695E1; color: #4695E1; background: rgba(70,149,225,0.06); }
        .prompt-icon-ring {
            width: 64px; height: 64px; border-radius: 9999px; background: rgba(171,71,188,0.15);
            display: flex; align-items: center; justify-content: center;
        }
        .prompt-icon-ring .material-symbols-rounded { font-size: 32px; color: #AB47BC; }
        .prompt-empty-title { font-family: 'Inter', sans-serif; font-size: 20px; font-weight: 700; color: #243A44; }
        .prompt-empty-desc {
            font-family: 'Inter', sans-serif; font-size: 14px; color: #81959E;
            text-align: center; max-width: 440px; line-height: 1.6; text-wrap: balance;
        }
        .prompt-filter-block {
            background: #FFFFFF; border: 1px solid #E6EAEC; border-radius: 12px;
            padding: 20px; display: flex; flex-direction: column; gap: 14px;
            box-shadow: 0 1px 3px rgba(36,58,68,0.06);
        }
        .prompt-filter-done-label {
            display: flex; align-items: center; gap: 6px;
            font-size: 12px; font-weight: 600; color: #25D580; margin-top: 10px;
        }
        .prompt-suggestion-cards {
            display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%;
        }
        .prompt-suggestion-card {
            display: flex; align-items: center; gap: 12px; padding: 14px 16px;
            background: #FFFFFF; border: 1px solid #E6EAEC; border-radius: 8px;
            cursor: pointer; text-align: left; font-family: 'Inter', sans-serif;
            transition: border-color 0.15s, background 0.15s, box-shadow 0.15s; user-select: none;
        }
        .prompt-suggestion-card:hover {
            border-color: #4695E1; background: rgba(70,149,225,0.04);
            box-shadow: 0 2px 8px rgba(70,149,225,0.10);
        }
        .prompt-suggestion-icon {
            width: 35px; height: 35px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center; flex-shrink: 0;
        }
        .prompt-suggestion-name { font-size: 13px; font-weight: 600; color: #243A44; line-height: 1.2; white-space: nowrap; }
        .prompt-suggestion-desc { font-size: 12px; font-weight: 400; color: #81959E; line-height: 1.3; margin-top: 2px; white-space: nowrap; }
        .prompt-send-btn {
            display: flex; align-items: center; justify-content: center;
            width: 38px; height: 38px; flex-shrink: 0;
            background: #4695E1; border: none; border-radius: 8px;
            color: #FFFFFF; cursor: pointer; transition: all 0.15s;
        }
        .prompt-send-btn:hover { background: #357AC9; }
        .prompt-send-btn:active { background: #2A6AB4; }
        .prompt-greeting {
            display: inline-flex; align-items: center; gap: 14px;
            font-family: 'Inter', sans-serif; font-size: 28px; font-weight: 600;
            color: #243A44; letter-spacing: -0.5px; margin-bottom: 4px;
        }
        .prompt-greeting-spark { font-size: 28px !important; color: #AB47BC; }
        .prompt-greeting-sub {
            font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 400;
            color: #81959E; margin: 0; text-align: center; line-height: 1.5;
        }

        /* Chat bubbles (prompt mode) */
        .chat-user { display: none; } /* texto fica no input, não vira bolha */
        .chat-bot { display: flex; }
        .chat-bot .bot-avatar { display: none; }
        .chat-bot .bubble {
            background: #FFFFFF; border: 1px solid #E6EAEC; border-radius: 8px;
            padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1;
            box-shadow: 0 1px 3px rgba(36,58,68,0.08);
            font-size: 14px; line-height: 1.5; color: #243A44; text-wrap: balance;
        }
        .chat-bot .bubble strong, .chat-bot .bubble b { font-weight: 600; }
        .chat-bot .bubble p { margin: 8px 0; }
        .chat-bot .bubble p:first-child { margin-top: 0; }
        .chat-bot .bubble p:last-child { margin-bottom: 0; }
