/* Refinamentos de experiência compartilhados entre os módulos. */
[hidden]{display:none!important}
.view{animation:delega-view-in .16s ease-out}
@keyframes delega-view-in{from{opacity:.5;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
.topbar .breadcrumb{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.page-heading .primary:focus-visible,.page-heading .text-btn:focus-visible,.account-shortcut:focus-visible{outline:3px solid #c9c2ff;outline-offset:2px}
.toolbar input:focus-visible,.toolbar select:focus-visible{box-shadow:0 0 0 3px #e8e5ff}
.toolbar input[type="search"]::-webkit-search-cancel-button{cursor:pointer}
.toolbar .toolbar-clear{min-height:38px}
.modal .close{width:34px;height:34px;border-radius:7px;display:grid;place-items:center}
.modal .close:hover,.modal .close:focus-visible{background:#f3f1ff;color:#5d4bd2;outline:0}
.modal .close[data-dirty="true"]:after{content:'';position:absolute;right:4px;top:4px;width:6px;height:6px;border-radius:50%;background:#e6784a}
.form-dirty-note{display:block;margin:8px 0 0;color:#8a5a22;font-size:10px}
.input-help{display:block;margin-top:5px;color:#778294;font-size:10px;font-weight:400}
.selected-agent-summary{margin-top:12px;padding:11px 12px;border:1px solid #ddd8ff;border-radius:7px;background:#f7f6ff}.selected-agent-summary span{display:block;color:#7669c9;font-size:10px;font-weight:700;letter-spacing:.2px}.selected-agent-summary strong{display:block;margin-top:4px;color:#303747;font-size:12px}.selected-agent-summary small{display:block;margin-top:6px;color:#5f697b;font-size:11px;line-height:1.45}
.module-helper{margin:0 0 14px;padding:10px 12px;border-left:3px solid #7765e5;border-radius:0 7px 7px 0;background:#f7f6ff;color:#596477;font-size:12px;line-height:1.5}
.shortcut-hint{display:inline-block}
.conversation-list .conversation:focus-visible,.company-picker button:focus-visible{outline:2px solid #8a7cf0;outline-offset:2px}
.chat footer input:focus-visible{outline:2px solid #8a7cf0;outline-offset:4px;border-radius:4px}
.attach-button{white-space:nowrap}
.conversation-list{padding:0!important;overflow:auto}.conversation-controls{position:sticky;top:0;z-index:2;padding:14px 13px 11px;background:#fff;border-bottom:1px solid #eef0f5;display:grid;gap:8px}.conversation-controls .result-counter{color:#718096;font-size:11px;line-height:1.2}.conversation-filter,.conversation-controls input{width:100%!important;min-height:36px;margin:0!important;border:1px solid #e2e6ef;border-radius:6px;background:#fff;color:#4d5766;padding:0 10px;font:12px 'DM Sans';outline-color:#7765e5}.conversation-items{padding:7px 13px 13px}.conversation-items .conversation{margin:2px 0}.conversation-filter:focus{border-color:#8a7cf0;box-shadow:0 0 0 3px #e8e5ff}
.confirm-modal{width:min(420px,calc(100% - 32px))}.confirm-modal>p{line-height:1.55;margin-bottom:22px}.confirm-actions{display:flex;justify-content:flex-end;gap:9px}.confirm-actions .secondary{cursor:pointer}.confirm-actions .primary[data-tone="danger"]{background:#c8505b;box-shadow:0 4px 9px #c8505b33}.confirm-actions .primary[data-tone="danger"]:hover{background:#aa3f49}
.prompt-modal{width:min(440px,calc(100% - 32px))}.prompt-modal .confirm-actions{margin-top:20px}.prompt-modal #promptMessage{margin-bottom:14px}
.toast[data-tone="error"]{background:#9f3d4b}.toast[data-tone="warning"]{background:#8a6424}.toast[data-tone="success"]{background:#237451}
/* Alerta de franquia é exibido no acesso e não depende de o usuário visitar a área administrativa. */
.office-ai-usage-notice{display:flex;align-items:center;gap:10px;margin:18px 42px -12px;padding:12px 15px;border-radius:9px;font-size:12px;line-height:1.45}.office-ai-usage-notice strong{white-space:nowrap}.office-ai-usage-notice.limit-warning{background:#fff6df;border:1px solid #f1cf7f;color:#815b10}.office-ai-usage-notice.limit-reached{background:#fdecf0;border:1px solid #eba4b2;color:#9e263b}@media(max-width:700px){.office-ai-usage-notice{align-items:flex-start;flex-direction:column;margin:14px 17px -8px}.office-ai-usage-notice strong{white-space:normal}}
.message.ai.pending-ai{border:1px dashed #d7c875;background:#fffdf2;color:#6b5d25}
.integration-status{display:grid;gap:6px;margin-bottom:18px;border-left:3px solid #f0b45d}.integration-status strong{color:#1d2d4a}.integration-status p,.integration-status small{margin:0;color:#697795}.integration-status.is-ready{border-left-color:#41a36d;background:#f4fcf7}.integration-status.is-warning{border-left-color:#eea84e;background:#fffaf1}.status-pill{display:inline-flex;margin-left:8px;padding:3px 8px;border-radius:999px;font-size:.72rem;vertical-align:middle}.status-pill.ready{background:#def5e6;color:#278353}.status-pill.warning{background:#fff0d8;color:#a06108}
.status.warning{background:#fff0d8;color:#a06108}
/* Suspensão bloqueia acesso: vermelho é reservado para esse estado de segurança. */
.status.suspended{background:#fde8e8;color:#b42318}
.sup-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 18px}.sup-summary article{padding:18px 20px;border:1px solid #e5e9f3;border-radius:12px;background:#fff}.sup-summary span{display:block;color:#7683a2;font-size:.72rem;font-weight:700;letter-spacing:.04em}.sup-summary strong{display:block;margin-top:7px;font-size:1.6rem;color:#17233b}@media(max-width:720px){.sup-summary{grid-template-columns:1fr}.sup-summary .activity-row{align-items:flex-start}}
.sup-tabs{display:flex;gap:8px;margin:0 0 18px;border-bottom:1px solid #e6eaf2}.sup-tabs button{border:0;background:transparent;padding:10px 14px;color:#6b7890;font:600 12px 'DM Sans';cursor:pointer;border-bottom:2px solid transparent}.sup-tabs button.active{color:#5d4bd2;border-bottom-color:#705bea}.sup-finance-grid{display:grid;grid-template-columns:minmax(260px,.9fr) minmax(320px,1.2fr);gap:18px}.sup-finance-grid .panel{padding:20px}.sup-finance-grid h2{margin:0 0 16px;font-size:17px}.sup-finance-grid form{display:grid;gap:12px}.sup-finance-grid label{display:grid;gap:6px;color:#263449;font-size:12px;font-weight:700}.sup-finance-grid input{min-height:40px;border:1px solid #dfe4ed;border-radius:7px;padding:0 11px;color:#263449;font:13px 'DM Sans';outline-color:#7765e5}.sup-contract-state{display:block;margin-top:5px;color:#63718b;font-size:11px}.sup-contract-state.vigente{color:#268354}.sup-contract-state.expirado{color:#b26425}.sup-contract-state.sem_contrato{color:#8b6670}.contract-preview{margin:4px 0 2px;padding:10px 12px;border:1px solid #ddd8ff;border-radius:7px;background:#f7f6ff;color:#4e477e;font-size:12px;line-height:1.45}.contract-history{max-height:165px;overflow:auto;margin-top:3px;padding:11px 12px;border:1px solid #edf0f5;border-radius:7px;background:#fbfcfe;color:#627089;font-size:11px;line-height:1.5}.contract-history strong{color:#2d3850}.contract-history p{margin:5px 0 0}.modal label input,.modal label select{width:100%}@media(max-width:800px){.sup-finance-grid{grid-template-columns:1fr}.sup-tabs{overflow:auto}.sup-tabs button{white-space:nowrap}}
.sup-agent-layout{display:grid;grid-template-columns:minmax(320px,1.15fr) minmax(300px,.85fr);gap:18px}.sup-agent-layout .panel{padding:20px}.sup-agent-layout h2{margin:0 0 7px;font-size:17px}.sup-agent-layout>section>label{display:grid;gap:6px;margin:18px 0 12px;color:#263449;font-size:12px;font-weight:700}.sup-agent-layout select{min-height:40px;border:1px solid #dfe4ed;border-radius:7px;padding:0 11px;color:#263449;font:13px 'DM Sans';outline-color:#7765e5}.sup-agent-assignments{display:grid;gap:8px;max-height:390px;overflow:auto;padding-right:3px}.sup-agent-assignment{display:flex!important;align-items:center;gap:10px;padding:11px 12px!important;margin:0!important;border:1px solid #e5e9f3;border-radius:8px;background:#fbfcfe;cursor:pointer}.sup-agent-assignment input{width:16px!important;height:16px;margin:0!important;accent-color:#6f5ce6}.sup-agent-assignment span{display:grid;gap:3px}.sup-agent-assignment strong{font-size:12px}.sup-agent-assignment small{font-size:10px;color:#74819a}.sup-agent-assignment.inactive{opacity:.58;cursor:not-allowed}.sup-agent-layout .primary{margin-top:15px}@media(max-width:800px){.sup-agent-layout{grid-template-columns:1fr}}
/* Lista da edição global: mantém cada agente legível e dá acesso direto aos seus dados completos. */
.sup-agent-editor-item{display:flex;justify-content:space-between;gap:16px;padding:15px 0;border-bottom:1px solid #dfe7f2}.sup-agent-editor-item:last-child{border-bottom:0}.sup-agent-editor-item>div:first-child{min-width:0}.sup-agent-editor-item strong,.sup-agent-editor-item small{display:block}.sup-agent-editor-item strong{font-size:13px;color:#09265b}.sup-agent-editor-item small{margin-top:4px;font-size:10px;color:#647c9d}.sup-agent-editor-item p{margin:8px 0 0;color:#33577d;font-size:11px;line-height:1.5}.sup-agent-editor-actions{display:flex;align-items:flex-start;gap:9px;white-space:nowrap}.sup-agent-layout form{display:grid;gap:12px}.sup-agent-layout form label{display:grid;gap:6px;color:#263449;font-size:12px;font-weight:700}.sup-agent-layout form input{display:block;width:100%;min-height:42px;padding:0 11px;border:1px solid #bdd2ed;border-radius:8px;color:#09265b;font:500 13px 'DM Sans',Arial,sans-serif}.sup-agent-layout textarea{display:block;width:100%;min-height:88px;margin:0;padding:10px;border:1px solid #bdd2ed;border-radius:8px;color:#09265b;font:500 13px 'DM Sans',Arial,sans-serif;resize:vertical}.sup-agent-layout .input-help{display:block;margin-top:5px;color:#647c9d;font-size:10px}.sup-agent-layout .form-actions{display:flex;gap:10px;align-items:center;margin-top:4px}.sup-agent-layout .form-actions button{min-width:142px;height:42px;margin:0!important;padding:0 16px;font-size:12px;line-height:1;justify-content:center}@media(max-width:600px){.sup-agent-editor-item{flex-direction:column}.sup-agent-editor-actions{justify-content:space-between}.sup-agent-layout .form-actions{flex-wrap:wrap}}
.audit-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.audit-toolbar input,.audit-toolbar select{width:min(360px,100%);height:38px;border:1px solid #dfe4ed;border-radius:7px;padding:0 11px;font:12px 'DM Sans';outline-color:#7765e5;background:#fff;color:#263449}.audit-filters{justify-content:flex-start;flex-wrap:wrap}.audit-filters select{width:190px}.audit-date-field{position:relative;display:block!important;width:142px;height:38px}.audit-date-field span{position:absolute;z-index:1;top:4px;left:11px;pointer-events:none;color:#7683a2;font:700 9px 'DM Sans';letter-spacing:.03em}.audit-date-field input{width:100%!important;padding:12px 9px 0!important}.audit-footer{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-top:12px;color:#74809a;font:600 11px 'DM Sans'}.audit-footer label{display:flex;align-items:center;gap:8px;color:#68758c;font:700 10px 'DM Sans';letter-spacing:.03em}.audit-footer select{width:76px!important;height:36px}.audit-table-wrap{overflow-x:auto;border:1px solid #e5e9f3;border-radius:9px}.audit-table{width:100%;min-width:720px;border-collapse:collapse;font-size:12px}.audit-table th{padding:12px 14px;background:#f8f9fd;color:#74809a;text-align:left;font-size:10px;letter-spacing:.04em;text-transform:uppercase}.audit-table td{padding:14px;border-top:1px solid #edf0f5;color:#27344b}.audit-table tbody tr:hover{background:#faf9ff}.audit-table td:nth-child(3){font-weight:600;color:#5747ba}.audit-table td:last-child{white-space:nowrap;color:#6e7c94;font-size:11px}@media(max-width:760px){.audit-toolbar{align-items:stretch;flex-direction:column}.audit-toolbar input,.audit-toolbar select,.audit-date-field{width:100%}.audit-footer{align-items:flex-start;flex-direction:column}.audit-footer label{width:100%;justify-content:space-between}}
.chat header>small{order:2;margin-left:auto;white-space:nowrap}.chat header .chat-actions{position:relative;order:3;flex:0 0 auto;margin-left:0}.chat-actions-toggle{border:1px solid #ded9ff!important;background:#fff!important;color:#5d4bd2!important;font:600 11px 'DM Sans'!important}.chat-actions-menu{position:absolute;top:calc(100% + 7px);right:0;z-index:4;min-width:190px;padding:6px;background:#fff;border:1px solid #e2e5ef;border-radius:8px;box-shadow:0 12px 28px #1c234026}.chat-actions-menu button{display:block;width:100%;padding:9px 10px!important;border-radius:5px!important;text-align:left;font:500 11px 'DM Sans'!important;color:#4d5766!important}.chat-actions-menu button:hover{background:#f3f1ff!important;color:#5d4bd2!important}
.chat-actions-section{display:block;margin:7px 9px 3px;color:#8a94a8;font:700 9px 'DM Sans';letter-spacing:.06em}.chat-actions-section:not(:first-child){margin-top:10px;padding-top:8px;border-top:1px solid #edf0f5}
#conversas .conversation-layout{overflow:visible}#conversas .chat{min-width:0}#conversas .chat header{position:sticky;top:0;z-index:5;background:#fff;box-shadow:0 7px 14px #1b24420d}
/* A conversa usa uma área de leitura própria; a rolagem não desloca a página nem a lista lateral. */
/* O painel ocupa mais área útil e permite uma pequena rolagem externa em telas menores. */
#conversas .conversation-layout{height:clamp(590px,calc(100dvh - 145px),900px);min-height:0;overflow:hidden!important}
#conversas .chat{height:100%;min-height:0}
#conversas .chat header{position:relative;top:auto;flex:0 0 auto}
#conversas .messages{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
#conversas .conversation-list{height:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.top-actions{gap:10px}.account-shortcut{border:1px solid #ded9ff!important;background:#fff!important;color:#5d4bd2!important;border-radius:7px!important;padding:8px 11px!important;font:600 11px 'DM Sans'!important;cursor:pointer}.account-shortcut:hover{background:#f3f1ff!important}.profile{gap:8px;padding:16px 8px 12px}.profile .profile-details{min-width:0;flex:1}.profile strong,.profile small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile .profile-account{color:#bfc3d0;background:none;border:0;padding:5px 3px;font:600 11px 'DM Sans';cursor:pointer}.profile .profile-account:hover{color:#fff}.profile .text-btn{padding:5px 3px;color:#d8d3ff}.profile .text-btn:hover{color:#fff;background:none}
.toolbar select{min-height:38px;border:1px solid #e2e6ef;border-radius:6px;background:#fff;color:#4d5766;padding:0 30px 0 11px;font:12px 'DM Sans';outline-color:#7765e5;cursor:pointer}.toolbar select:focus{border-color:#8a7cf0}.toolbar input{min-height:38px}.toolbar-clear{white-space:nowrap}#biblioteca .page-heading{align-items:center;gap:12px}#biblioteca .page-heading>#addKnowledge{margin-left:auto}#biblioteca .page-heading>.text-btn{margin-left:0;padding:10px 4px}#biblioteca .toolbar{align-items:center}#biblioteca .toolbar input{min-width:250px;flex:1 1 270px}#biblioteca .toolbar select{flex:0 1 auto;min-width:145px}.search-summary{margin-top:4px}
@media(max-width:900px){#biblioteca .toolbar{flex-wrap:wrap}#biblioteca .toolbar input{flex-basis:100%}#biblioteca .toolbar select{flex:1 1 170px}}@media(max-width:700px){.top-actions{margin-left:auto}.account-shortcut{padding:7px 9px!important}.profile{padding:14px 8px 10px}.profile .profile-account{display:none}#biblioteca .page-heading>#addKnowledge{margin-left:0}#biblioteca .page-heading>.text-btn{width:auto}.toolbar select{width:100%;flex-basis:100%!important}.toolbar-clear{margin-top:2px}.chat header{flex-wrap:wrap;gap:8px}.chat header>small{order:3;width:100%;margin-left:0;white-space:normal}.chat-actions{margin-left:auto}.company-grid{grid-template-columns:1fr}}
@media(max-width:700px){.topbar .breadcrumb{margin-left:12px}.page-heading{flex-wrap:wrap}.page-heading>.primary{width:100%}.toolbar{gap:8px}.toolbar .toolbar-clear{width:100%}.shortcut-hint{display:none}}
/* Tema escuro do painel. A escolha é preservada no navegador. */
.theme-toggle{border:1px solid #ded9ff!important;background:#fff!important;color:#5d4bd2!important;border-radius:7px!important;padding:8px 11px!important;font:600 11px 'DM Sans'!important;cursor:pointer}.theme-toggle:hover{background:#f3f1ff!important}
body[data-theme="dark"]{--ink:#edf2fc;--muted:#aeb9ce;--line:#303a4d;--bg:#101522;background:#101522;color:#edf2fc}body[data-theme="dark"] .login-screen{background:#101522}body[data-theme="dark"] .login-panel{background:#151c2b}body[data-theme="dark"] .login-panel h1,body[data-theme="dark"] .login-panel label{color:#edf2fc}body[data-theme="dark"] .login-panel input,body[data-theme="dark"] input,body[data-theme="dark"] select,body[data-theme="dark"] textarea{background:#111827;color:#edf2fc;border-color:#3a465c}body[data-theme="dark"] .topbar,body[data-theme="dark"] .stats article,body[data-theme="dark"] .panel,body[data-theme="dark"] .toolbar,body[data-theme="dark"] .company-card,body[data-theme="dark"] .agent-card,body[data-theme="dark"] .conversation-layout,body[data-theme="dark"] .conversation-list,body[data-theme="dark"] .conversation,body[data-theme="dark"] .message.ai,body[data-theme="dark"] .modal,body[data-theme="dark"] .secondary,body[data-theme="dark"] .outline,body[data-theme="dark"] .contract-history{background:#182132;color:#edf2fc;border-color:#303a4d}body[data-theme="dark"] .page-heading h1,body[data-theme="dark"] .simple h1,body[data-theme="dark"] .panel h2,body[data-theme="dark"] .activity-row strong,body[data-theme="dark"] .company-card h3,body[data-theme="dark"] .agent-card h3,body[data-theme="dark"] .chat header strong,body[data-theme="dark"] .modal h2,body[data-theme="dark"] .stats strong{color:#f5f7ff}body[data-theme="dark"] .breadcrumb,body[data-theme="dark"] .page-heading p,body[data-theme="dark"] .panel-title p,body[data-theme="dark"] .simple p,body[data-theme="dark"] .activity-row p,body[data-theme="dark"] .conversation small,body[data-theme="dark"] .chat header small,body[data-theme="dark"] .stats em,body[data-theme="dark"] .toolbar span,body[data-theme="dark"] .contract-history,body[data-theme="dark"] .sup-contract-state{color:#aeb9ce}body[data-theme="dark"] .messages{background:#111827}body[data-theme="dark"] .conversation.selected,body[data-theme="dark"] .conversation:hover{background:#272142}body[data-theme="dark"] .insight{background:#25213f;border-color:#4b4178}body[data-theme="dark"] .finding{background:#2b261b;color:#f3e4b5}body[data-theme="dark"] .chat footer{background:#182132;border-color:#303a4d}body[data-theme="dark"] .chat footer input{background:transparent;border:0}body[data-theme="dark"] .toolbar select,body[data-theme="dark"] .toolbar input,body[data-theme="dark"] .conversation-list input{background:#111827;color:#edf2fc;border-color:#3a465c}body[data-theme="dark"] .account-shortcut,body[data-theme="dark"] .theme-toggle{background:#202a3d!important;border-color:#485571!important;color:#e2e7ff!important}body[data-theme="dark"] .status.done{background:#153c2d;color:#7bd5a0}body[data-theme="dark"] .status.warning,body[data-theme="dark"] .running{background:#493516;color:#ffd37d}body[data-theme="dark"] .modal-backdrop{background:#040711bd}body[data-theme="dark"] .contract-preview{background:#24223d;border-color:#4b4478;color:#d9d5ff}body[data-theme="dark"] .sup-summary article{background:#182132;border-color:#303a4d}body[data-theme="dark"] .sup-summary strong{color:#f5f7ff}@media(max-width:700px){.theme-toggle{padding:7px 9px!important}}
.profile{display:grid;grid-template-columns:minmax(0,1fr) 54px 44px;align-items:center;gap:6px}.profile .profile-details{width:100%;min-width:0}.profile .profile-account,#logoutButton{height:30px;min-width:0;border-radius:6px;padding:0!important;font:600 11px 'DM Sans'!important;line-height:30px!important;text-align:center;cursor:pointer}.profile .profile-account{color:#d8d3ff;background:#292d3d}.profile .profile-account:hover{background:#393e51;color:#fff}.profile #logoutButton{color:#ff9aa6;background:#3a202b}.profile #logoutButton:hover{background:#532534;color:#fff}
.password-field{display:flex;align-items:center;gap:8px;width:100%;margin-top:6px}.password-field input{flex:1;min-width:0;margin:0!important}.password-field .password-toggle{position:static!important;flex:0 0 auto;min-width:58px;min-height:38px;margin:0;border:1px solid #d9d4ff;background:#f5f3ff;color:#5d4bd2;border-radius:6px;padding:0 9px;font:600 10px 'DM Sans';cursor:pointer}.password-field .password-toggle:hover{background:#e8e4ff}#passwordForm{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}#passwordForm label{display:block;min-width:0;margin:0}#passwordForm .input-help,#passwordForm .login-error,#passwordForm .primary{grid-column:1/-1}#passwordForm .input-help{margin:0}#passwordForm .login-error{margin:0!important}@media(max-width:900px){#passwordForm{grid-template-columns:1fr}}body[data-theme="dark"] .password-field .password-toggle{background:#25223d;border-color:#4b4478;color:#dfdbff}body[data-theme="dark"] .password-field .password-toggle:hover{background:#332d58}

/* Estado temporário de geração da resposta da IA. */
.message.ai.thinking-ai{border-color:#cfc8ff;background:#f8f7ff;color:#514b7f}.thinking-ai p{display:flex;align-items:center;gap:8px}.thinking-ai small{display:block;color:#776f9e;font-size:11px}.thinking-spinner{width:14px;height:14px;border:2px solid #d8d3ff;border-top-color:#6e5de4;border-radius:50%;animation:delega-spin .7s linear infinite;flex:0 0 auto}body[data-theme="dark"] .message.ai.thinking-ai{background:#24223d;border-color:#4b4478;color:#e6e1ff}body[data-theme="dark"] .thinking-ai small{color:#bbb3e4}

/* Conteúdo técnico das respostas: Markdown seguro, legível e responsivo. */
.ai-markdown{font-size:13px;line-height:1.68}.ai-markdown>:first-child{margin-top:8px}.ai-markdown>:last-child{margin-bottom:0}.ai-markdown h1,.ai-markdown h2,.ai-markdown h3{font-family:'Plus Jakarta Sans';color:#17233b;line-height:1.3}.ai-markdown h1{font-size:18px;margin:22px 0 10px}.ai-markdown h2{font-size:16px;margin:20px 0 8px}.ai-markdown h3{font-size:14px;margin:17px 0 7px}.ai-markdown p{margin:10px 0}.ai-markdown strong{font-weight:700;color:#1c2941}.ai-markdown ul,.ai-markdown ol{margin:9px 0 13px;padding-left:22px}.ai-markdown li{margin:5px 0}.ai-markdown code{padding:2px 5px;border-radius:4px;background:#eeecff;color:#5042b4;font:12px ui-monospace,monospace}.ai-markdown blockquote{margin:13px 0;padding:9px 12px;border-left:3px solid #7665e7;background:#f4f2ff;color:#4e4779}.ai-markdown hr{border:0;border-top:1px solid #e2e6ee;margin:18px 0}.markdown-table-wrap{max-width:100%;overflow-x:auto;margin:14px 0;border:1px solid #e0e4ec;border-radius:8px}.ai-markdown table{width:100%;min-width:540px;border-collapse:collapse;font-size:12px}.ai-markdown th,.ai-markdown td{padding:10px 11px;text-align:left;vertical-align:top;border-bottom:1px solid #e7eaf0}.ai-markdown th{background:#f4f2ff;color:#5143ad;font:700 11px 'DM Sans';letter-spacing:.01em}.ai-markdown tbody tr:last-child td{border-bottom:0}.ai-markdown tbody tr:nth-child(even){background:#fafbfe}body[data-theme="dark"] .ai-markdown h1,body[data-theme="dark"] .ai-markdown h2,body[data-theme="dark"] .ai-markdown h3,body[data-theme="dark"] .ai-markdown strong{color:#f1f4ff}body[data-theme="dark"] .ai-markdown code{background:#29244a;color:#dfd9ff}body[data-theme="dark"] .ai-markdown blockquote{background:#24223d;color:#d8d2f5;border-color:#8b7eff}body[data-theme="dark"] .ai-markdown hr,body[data-theme="dark"] .markdown-table-wrap,body[data-theme="dark"] .ai-markdown th,body[data-theme="dark"] .ai-markdown td{border-color:#364257}body[data-theme="dark"] .ai-markdown th{background:#272344;color:#d8d1ff}body[data-theme="dark"] .ai-markdown tbody tr:nth-child(even){background:#1c2638}
body[data-theme="dark"] .sup-agent-assignment{background:#111827;border-color:#303a4d}body[data-theme="dark"] .sup-agent-assignment small{color:#aeb9ce}body[data-theme="dark"] .sup-agent-layout>section>label{color:#edf2fc}body[data-theme="dark"] .sup-agent-layout select{background:#111827;color:#edf2fc;border-color:#3a465c}
/* Ajusta também a edição global para preservar contraste no tema escuro. */
body[data-theme="dark"] .sup-agent-editor-item{border-color:#314769}body[data-theme="dark"] .sup-agent-editor-item strong{color:#f5fbff}body[data-theme="dark"] .sup-agent-editor-item p,body[data-theme="dark"] .sup-agent-editor-item small,body[data-theme="dark"] .sup-agent-layout .input-help{color:#b8cae1}body[data-theme="dark"] .sup-agent-layout form label{color:#edf2fc}body[data-theme="dark"] .sup-agent-layout form input,body[data-theme="dark"] .sup-agent-layout textarea{background:#071b44;color:#f5fbff;border-color:#4b78ad}
body[data-theme="dark"] .audit-toolbar input,body[data-theme="dark"] .audit-toolbar select{background:#111827;color:#edf2fc;border-color:#3a465c}body[data-theme="dark"] .audit-filters label{color:#aeb9ce}body[data-theme="dark"] .audit-table-wrap{border-color:#303a4d}body[data-theme="dark"] .audit-table th{background:#182132;color:#aeb9ce}body[data-theme="dark"] .audit-table td{border-color:#303a4d;color:#edf2fc}body[data-theme="dark"] .audit-table tbody tr:hover{background:#1d2840}body[data-theme="dark"] .audit-table td:nth-child(3){color:#b7aaff}body[data-theme="dark"] .audit-table td:last-child{color:#aeb9ce}
body[data-theme="dark"] .chat-actions-menu{background:#182132;border-color:#3a465c;box-shadow:0 12px 28px #0008}body[data-theme="dark"] .chat-actions-menu button{color:#edf2fc!important}body[data-theme="dark"] .chat-actions-menu button:hover{background:#272142!important;color:#d8d1ff!important}body[data-theme="dark"] .chat-actions-section{color:#aeb9ce;border-color:#303a4d}
body[data-theme="dark"] #conversas .chat header{background:#182132;box-shadow:0 7px 14px #050812b8}
/* Artefatos HTML: o código não é exibido no chat e só pode ser baixado pelo usuário. */
.html-artifact{display:flex;align-items:center;gap:13px;border:1px solid #dfe4ed;border-radius:9px;padding:12px 14px;margin-top:10px;background:#fbfcff}.html-artifact-icon{width:38px;height:38px;display:grid;place-items:center;border:1px solid #d4d9e5;border-radius:7px;color:#69758d;font:700 11px ui-monospace,monospace;transform:rotate(-5deg)}.html-artifact>div{display:grid;gap:3px;min-width:0;flex:1}.html-artifact strong{font-size:12px;color:#25324b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.html-artifact small{font-size:10px;color:#7c879a}.html-artifact-download{width:auto!important;margin:0!important;white-space:nowrap}.ai-artifact-intro .ai-markdown{margin-top:5px}body[data-theme="dark"] .html-artifact{background:#151a1f;border-color:#343b45}body[data-theme="dark"] .html-artifact-icon{border-color:#4a515b;color:#abb4c1}body[data-theme="dark"] .html-artifact strong{color:#f2f4f8}body[data-theme="dark"] .html-artifact small{color:#aeb6c2}@media(max-width:560px){.html-artifact{align-items:flex-start}.html-artifact-download{padding:8px 10px}}
.generated-file-artifact{background:#f3fbff;border-color:#9dddea}.generated-file-artifact .html-artifact-icon{background:#d9f7fb;border-color:#72d8e7;color:#007e94;font-size:20px;transform:none}body[data-theme="dark"] .generated-file-artifact{background:#102a34;border-color:#256776}body[data-theme="dark"] .generated-file-artifact .html-artifact-icon{background:#123d49;border-color:#2c8192;color:#58d8e8}
.consumption-table{width:100%;overflow-x:auto}.consumption-head,.consumption-row{display:grid;grid-template-columns:minmax(160px,1.35fr) .55fr .8fr .8fr .8fr .95fr 1.25fr .75fr .65fr;gap:14px;align-items:center;min-width:1190px}.consumption-head{padding:10px 12px;color:#75819a;background:#f8f9fd;border-radius:7px;font:700 10px 'DM Sans';letter-spacing:.04em;text-transform:uppercase}.consumption-row{padding:14px 12px;border-bottom:1px solid #edf0f5;color:#2b3750;font-size:12px}.consumption-row:last-child{border-bottom:0}.consumption-row strong{font-size:12px}.consumption-row small{display:block;margin-top:4px;color:#78849a;font-size:10px;line-height:1.35}.consumption-panel{overflow:auto}body[data-theme="dark"] .consumption-head{background:#111827;color:#aeb9ce}body[data-theme="dark"] .consumption-row{border-color:#303a4d;color:#edf2fc}body[data-theme="dark"] .consumption-row small{color:#aeb9ce}
.consumption-details-modal{width:min(860px,calc(100vw - 32px));max-height:calc(100vh - 42px);overflow:auto}.consumption-details-summary{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:16px 0}.consumption-details-summary article{padding:11px 10px;border:1px solid var(--line);border-radius:8px;background:#f8f9fd}.consumption-details-summary span{display:block;font:700 9px 'DM Sans';letter-spacing:.04em;color:#75819a}.consumption-details-summary strong{display:block;margin-top:5px;font:700 16px 'Plus Jakarta Sans';color:#29354d}.consumption-user-table{overflow-x:auto}.consumption-user-head,.consumption-user-row{display:grid;grid-template-columns:minmax(180px,1.5fr) .7fr .9fr .9fr .9fr 1fr;gap:12px;align-items:center;min-width:670px}.consumption-user-head{padding:10px 12px;background:#f8f9fd;border-radius:7px;color:#75819a;font:700 10px 'DM Sans';letter-spacing:.04em;text-transform:uppercase}.consumption-user-row{padding:13px 12px;border-bottom:1px solid #edf0f5;font-size:12px;color:#2b3750}.consumption-user-row:last-child{border-bottom:0}body[data-theme="dark"] .consumption-details-summary article,body[data-theme="dark"] .consumption-user-head{background:#111827}body[data-theme="dark"] .consumption-details-summary strong,body[data-theme="dark"] .consumption-user-row{color:#edf2fc}body[data-theme="dark"] .consumption-user-row{border-color:#303a4d}
/* Contraste equivalente no tema escuro para o mesmo estado de segurança. */
body[data-theme="dark"] .status.suspended{background:#51222a;color:#ffabb5}

/*
 * Paleta institucional entregue também neste arquivo já existente.
 * Isto garante o azul oficial mesmo em servidores que ainda possuam em cache
 * a lista original de arquivos estáticos do frontend.
 */
:root{--purple:#0b2c84;--lightpurple:#e7f0ff;--bg:#f4f7fc;--ink:#0b235c;--muted:#58709d;--line:#d5e2f6}
.primary,.chat footer .send{background:linear-gradient(135deg,#0b2c84 0%,#1375ca 100%)!important;box-shadow:0 6px 15px #0a3d9930!important}.primary:hover,.chat footer .send:hover{background:linear-gradient(135deg,#071e63 0%,#0d62bb 100%)!important}
.login-aside{background:radial-gradient(circle at 72% 24%,#1f88dc 0%,#0d56af 35%,#0b2c84 68%,#071b51 100%)!important}.login-panel{background:#fff!important}.login-brand .delega-wordmark{width:194px;max-height:47px}
.sidebar{background:linear-gradient(180deg,#0b2c84 0%,#09266f 62%,#071b51 100%)!important}.nav-link.active,.nav-link:hover{background:#1a55af!important;color:#fff!important}.office,.profile{border-color:#28529b!important}.nav-link{color:#d7e5ff!important}nav p{color:#9dbceb!important}.office small,.profile small{color:#bfd3f3!important}
.toolbar-clear,.secondary,.outline{background:#f4f8ff!important;color:#0b2c84!important;border-color:#b9d0ff!important}.toolbar-clear:hover,.secondary:hover,.outline:hover{background:#e6f0ff!important}.text-btn,.link,.eyebrow,.ai-label{color:#0e56b3!important}.conversation.selected{background:#e7f0ff!important;box-shadow:inset 3px 0 0 #1375ca}.conversation:hover{background:#f0f6ff!important}.message.user{background:linear-gradient(135deg,#0b2c84,#1375ca)!important}.insight{background:linear-gradient(115deg,#e9f2ff,#f6f9ff)!important;border-color:#bdd5fb!important}.insight-icon,.empty-state:before,.empty-icon{background:#dceaff!important;color:#0b2c84!important}.agent-progress u{background:linear-gradient(90deg,#0b2c84,#1375ca)!important}
body[data-theme="dark"]{--ink:#f1f6ff;--muted:#b3c8eb;--line:#315889;--bg:#071b51;background:#071b51!important}body[data-theme="dark"] .login-screen{background:#071b51!important}body[data-theme="dark"] .login-panel{background:#0a265c!important}body[data-theme="dark"] .login-brand .delega-wordmark{filter:brightness(0) invert(1)}body[data-theme="dark"] .topbar{background:#0a2861!important;border-color:#315889!important}body[data-theme="dark"] .stats article,body[data-theme="dark"] .panel,body[data-theme="dark"] .toolbar,body[data-theme="dark"] .company-card,body[data-theme="dark"] .agent-card,body[data-theme="dark"] .conversation-layout,body[data-theme="dark"] .conversation-list,body[data-theme="dark"] .conversation,body[data-theme="dark"] .message.ai,body[data-theme="dark"] .modal,body[data-theme="dark"] .secondary,body[data-theme="dark"] .outline,body[data-theme="dark"] .contract-history{background:#0b2b66!important;border-color:#315889!important}body[data-theme="dark"] .messages{background:#081f4d!important}body[data-theme="dark"] .chat footer,body[data-theme="dark"] #conversas .chat header{background:#0b2b66!important;border-color:#315889!important}body[data-theme="dark"] .conversation.selected,body[data-theme="dark"] .conversation:hover{background:#164894!important;box-shadow:inset 3px 0 0 #48a1ff}body[data-theme="dark"] .toolbar select,body[data-theme="dark"] .toolbar input,body[data-theme="dark"] .conversation-list input,body[data-theme="dark"] .audit-toolbar input,body[data-theme="dark"] .audit-toolbar select{background:#081f4d!important;border-color:#3a66a0!important;color:#f1f6ff!important}body[data-theme="dark"] .insight{background:linear-gradient(120deg,#0c3478,#0d2960)!important;border-color:#3468b0!important}body[data-theme="dark"] .finding{background:#0c3478!important;color:#dcecff!important;border-left-color:#49a0ff!important}body[data-theme="dark"] .chat-actions-menu{background:#0b2b66!important;border-color:#3a66a0!important}body[data-theme="dark"] .chat-actions-menu button:hover{background:#164894!important;color:#fff!important}body[data-theme="dark"] .account-shortcut,body[data-theme="dark"] .theme-toggle,body[data-theme="dark"] .chat-actions-toggle{background:#123b80!important;border-color:#4f7fbd!important;color:#f0f6ff!important}body[data-theme="dark"] .ai-markdown th{background:#123d86!important;color:#f0f6ff!important;border-color:#3a66a0!important}body[data-theme="dark"] .ai-markdown td,body[data-theme="dark"] .ai-markdown hr,body[data-theme="dark"] .markdown-table-wrap{border-color:#315889!important}body[data-theme="dark"] .ai-markdown tbody tr:nth-child(even){background:#0e326f!important}body[data-theme="dark"] .ai-markdown blockquote{background:#0c3478!important;border-color:#49a0ff!important;color:#dcecff!important}

/* Login: #04C4DA é a cor principal informada para a porta de entrada da plataforma. */
.login-aside{background:#04c4da!important}.login-aside>div{position:relative;z-index:1}.login-aside:before{content:'';position:absolute;inset:0;background:linear-gradient(145deg,#04c4da 0%,#0699cf 58%,#0b5aa9 100%)}.login-aside{position:relative;overflow:hidden}.login-aside .eyebrow{color:#dfffff!important}.login-aside p{color:#edffff!important}.login-aside span{background:#ffffff26!important;border-color:#ffffff70!important}.login-panel #loginButton{background:#04c4da!important;color:#06245a!important;box-shadow:0 6px 16px #04c4da55!important}.login-panel #loginButton:hover{background:#02afc3!important}.login-panel input:focus{border-color:#04c4da!important;box-shadow:0 0 0 3px #04c4da35!important}

/* Tema escuro: a cor de seleção nunca utiliza branco; o destaque padrão é #04C4DA. */
body[data-theme="dark"] ::selection{background:#04c4da;color:#06245a}body[data-theme="dark"] :focus-visible{outline-color:#04c4da!important}body[data-theme="dark"] .nav-link.active,body[data-theme="dark"] .conversation.selected,body[data-theme="dark"] .sup-tabs button.active{background:#04c4da!important;color:#06245a!important;border-color:#04c4da!important;box-shadow:none}body[data-theme="dark"] .activity-row:hover,body[data-theme="dark"] .activity-row:focus-within{background:#04c4da!important;color:#06245a!important}body[data-theme="dark"] .activity-row:hover strong,body[data-theme="dark"] .activity-row:hover p,body[data-theme="dark"] .activity-row:hover small,body[data-theme="dark"] .activity-row:hover .text-btn,body[data-theme="dark"] .activity-row:focus-within strong,body[data-theme="dark"] .activity-row:focus-within p,body[data-theme="dark"] .activity-row:focus-within small,body[data-theme="dark"] .activity-row:focus-within .text-btn{color:#06245a!important}body[data-theme="dark"] select option:checked,body[data-theme="dark"] select option:hover{background:#04c4da!important;color:#06245a!important}body[data-theme="dark"] .company-card:hover,body[data-theme="dark"] .agent-card:hover{border-color:#04c4da!important}

/* SUP: formulários, ações e conta seguem o mesmo contraste da identidade azul. */
body[data-theme="dark"] .view .page-heading h1,body[data-theme="dark"] .view .page-heading p,body[data-theme="dark"] .view .panel h2,body[data-theme="dark"] .view .panel h3,body[data-theme="dark"] .view .panel p,body[data-theme="dark"] .view .panel label,body[data-theme="dark"] .view .panel small,body[data-theme="dark"] .view .toolbar label{color:#f2f8ff!important}
body[data-theme="dark"] .view .page-heading p,body[data-theme="dark"] .view .panel .panel-helper,body[data-theme="dark"] .view .panel .input-help,body[data-theme="dark"] .view .panel small{color:#c1d5ee!important}
body[data-theme="dark"] .sup-finance-grid .panel,body[data-theme="dark"] .sup-agent-layout .panel,body[data-theme="dark"] #sup-importacao .panel,body[data-theme="dark"] #consumo .consumption-panel,body[data-theme="dark"] #perfil .panel{box-shadow:0 12px 28px #020f3826!important}
body[data-theme="dark"] .sup-finance-grid label,body[data-theme="dark"] .sup-agent-layout>section>label,body[data-theme="dark"] #sup-importacao label,body[data-theme="dark"] #perfil label{font-weight:700!important;letter-spacing:.01em;color:#f2f8ff!important}
body[data-theme="dark"] .sup-finance-grid input,body[data-theme="dark"] .sup-finance-grid select,body[data-theme="dark"] .sup-agent-layout select,body[data-theme="dark"] #sup-importacao input,body[data-theme="dark"] #sup-importacao select,body[data-theme="dark"] #perfil input{min-height:42px;background:#071b44!important;border:1px solid #4b78ad!important;border-radius:8px!important;color:#f5fbff!important;box-shadow:inset 0 1px 0 #ffffff0b!important}
body[data-theme="dark"] .sup-finance-grid input::placeholder,body[data-theme="dark"] #sup-importacao input::placeholder,body[data-theme="dark"] #perfil input::placeholder{color:#9db8d8!important;opacity:1}
body[data-theme="dark"] .sup-finance-grid input:focus,body[data-theme="dark"] .sup-finance-grid select:focus,body[data-theme="dark"] .sup-agent-layout select:focus,body[data-theme="dark"] #sup-importacao input:focus,body[data-theme="dark"] #sup-importacao select:focus,body[data-theme="dark"] #perfil input:focus{border-color:#04c4da!important;box-shadow:0 0 0 3px #04c4da33!important;outline:0}
/* Botões principais mantêm uma leitura forte em azul-ciano, inclusive em formulários do SUP. */
body[data-theme="dark"] .primary,body[data-theme="dark"] #perfil .primary,body[data-theme="dark"] .sup-finance-grid .primary,body[data-theme="dark"] #sup-importacao .primary{background:linear-gradient(135deg,#04c4da,#0786cf)!important;color:#04214e!important;border:1px solid #36d5e6!important;border-radius:8px!important;box-shadow:0 7px 16px #04c4da38!important;font-weight:800!important}
body[data-theme="dark"] .primary:hover,body[data-theme="dark"] #perfil .primary:hover,body[data-theme="dark"] .sup-finance-grid .primary:hover,body[data-theme="dark"] #sup-importacao .primary:hover{background:linear-gradient(135deg,#2ad8e4,#04a7db)!important;transform:translateY(-1px)}
body[data-theme="dark"] .secondary,body[data-theme="dark"] .outline,body[data-theme="dark"] .toolbar-clear{background:#0d3b7a!important;color:#eaf8ff!important;border:1px solid #4d83be!important;border-radius:8px!important;font-weight:700!important}
body[data-theme="dark"] .secondary:hover,body[data-theme="dark"] .outline:hover,body[data-theme="dark"] .toolbar-clear:hover{background:#12529e!important;border-color:#04c4da!important;color:#fff!important}
body[data-theme="dark"] .text-btn,body[data-theme="dark"] .link{color:#62ddec!important;font-weight:700!important;padding:6px 8px!important;border-radius:6px!important}
body[data-theme="dark"] .text-btn:hover,body[data-theme="dark"] .link:hover{background:#04c4da22!important;color:#aaf6ff!important}
body[data-theme="dark"] .sup-finance-grid .activity-row,body[data-theme="dark"] #consumo .activity-row{border-color:#315889!important}
body[data-theme="dark"] .sup-finance-grid .activity-row:hover,body[data-theme="dark"] #consumo .activity-row:hover{background:#04c4da!important}
/* A saída recebe tratamento destrutivo explícito, sem se confundir com a ação de conta. */
body[data-theme="dark"] .profile #logoutButton{background:#cf263f!important;border:1px solid #f36477!important;color:#fff!important;font-weight:800!important;box-shadow:0 5px 12px #7c0e1c55!important}
body[data-theme="dark"] .profile #logoutButton:hover{background:#f0445b!important;color:#fff!important}
body[data-theme="dark"] .profile .profile-account{background:#0d3b7a!important;color:#eaf8ff!important;border:1px solid #4d83be!important}
body[data-theme="dark"] .profile .profile-account:hover{background:#12529e!important;color:#fff!important}
/* Controles auxiliares permanecem visíveis e coerentes com o botão principal. */
body[data-theme="dark"] .password-field .password-toggle{background:#0d3b7a!important;border-color:#4d83be!important;color:#eaf8ff!important;font-weight:700!important}
body[data-theme="dark"] .password-field .password-toggle:hover{background:#04c4da!important;border-color:#36d5e6!important;color:#04214e!important}
body[data-theme="dark"] #sup-importacao input[type="file"]{padding:8px!important;color:#dff8ff!important;cursor:pointer}
body[data-theme="dark"] #sup-importacao input[type="file"]::file-selector-button{margin-right:10px;border:1px solid #36d5e6;border-radius:6px;background:#04c4da;color:#04214e;padding:6px 9px;font:700 11px 'DM Sans';cursor:pointer}

/* Tema claro: remove a aparência nativa inconsistente e padroniza os formulários administrativos. */
body:not([data-theme="dark"]) .view .panel{box-shadow:0 10px 25px #0b2c8408}
body:not([data-theme="dark"]) .view .panel h2,body:not([data-theme="dark"]) .view .panel h3,body:not([data-theme="dark"]) .view .panel label,body:not([data-theme="dark"]) #perfil label{color:#09265b!important}
body:not([data-theme="dark"]) .view .panel .panel-helper,body:not([data-theme="dark"]) .view .panel .input-help,body:not([data-theme="dark"]) .view .panel small{color:#58709d!important}
body:not([data-theme="dark"]) .sup-finance-grid label,body:not([data-theme="dark"]) .sup-agent-layout>section>label,body:not([data-theme="dark"]) #sup-importacao label,body:not([data-theme="dark"]) #perfil label{font-weight:700!important;letter-spacing:.01em}
body:not([data-theme="dark"]) .sup-finance-grid input,body:not([data-theme="dark"]) .sup-finance-grid select,body:not([data-theme="dark"]) .sup-agent-layout select,body:not([data-theme="dark"]) #sup-importacao input,body:not([data-theme="dark"]) #sup-importacao select,body:not([data-theme="dark"]) #perfil input{min-height:42px;background:#fff!important;border:1px solid #bdd2ed!important;border-radius:8px!important;color:#09265b!important;font:500 13px 'DM Sans',Arial,sans-serif!important;box-shadow:inset 0 1px 2px #0b2c8408!important}
body:not([data-theme="dark"]) .sup-finance-grid select,body:not([data-theme="dark"]) .sup-agent-layout select,body:not([data-theme="dark"]) #sup-importacao select{padding:0 34px 0 11px!important;appearance:auto!important}
body:not([data-theme="dark"]) .sup-finance-grid input::placeholder,body:not([data-theme="dark"]) #sup-importacao input::placeholder,body:not([data-theme="dark"]) #perfil input::placeholder{color:#7890b2!important;opacity:1}
body:not([data-theme="dark"]) .sup-finance-grid input:focus,body:not([data-theme="dark"]) .sup-finance-grid select:focus,body:not([data-theme="dark"]) .sup-agent-layout select:focus,body:not([data-theme="dark"]) #sup-importacao input:focus,body:not([data-theme="dark"]) #sup-importacao select:focus,body:not([data-theme="dark"]) #perfil input:focus{border-color:#04aeca!important;box-shadow:0 0 0 3px #04c4da29!important;outline:0}
/* Primários usam azul institucional mais escuro para preservar contraste com texto branco. */
body:not([data-theme="dark"]) .primary,body:not([data-theme="dark"]) #perfil .primary,body:not([data-theme="dark"]) .sup-finance-grid .primary,body:not([data-theme="dark"]) #sup-importacao .primary{min-height:40px;background:linear-gradient(135deg,#0b2c84,#0e62b8)!important;color:#fff!important;border:1px solid #0b56ae!important;border-radius:8px!important;box-shadow:0 7px 16px #0b56ae2e!important;font:800 12px 'DM Sans',Arial,sans-serif!important}
body:not([data-theme="dark"]) .primary:hover,body:not([data-theme="dark"]) #perfil .primary:hover,body:not([data-theme="dark"]) .sup-finance-grid .primary:hover,body:not([data-theme="dark"]) #sup-importacao .primary:hover{background:linear-gradient(135deg,#0e56b3,#04aeca)!important;transform:translateY(-1px)}
body:not([data-theme="dark"]) .secondary,body:not([data-theme="dark"]) .outline,body:not([data-theme="dark"]) .toolbar-clear{background:#eef7ff!important;border:1px solid #9cc9ee!important;border-radius:8px!important;color:#0b4e9c!important;font:700 12px 'DM Sans',Arial,sans-serif!important}
body:not([data-theme="dark"]) .secondary:hover,body:not([data-theme="dark"]) .outline:hover,body:not([data-theme="dark"]) .toolbar-clear:hover{background:#d9f4f8!important;border-color:#04aeca!important;color:#08336b!important}
body:not([data-theme="dark"]) .text-btn,body:not([data-theme="dark"]) .link{color:#0d5eb4!important;font-weight:700!important;padding:6px 8px!important;border-radius:6px!important}
body:not([data-theme="dark"]) .text-btn:hover,body:not([data-theme="dark"]) .link:hover{background:#e5f7fb!important;color:#08336b!important}
/* A tela de segurança mantém os três campos alinhados e com controles de senha legíveis. */
body:not([data-theme="dark"]) #perfil .panel{max-width:1280px;padding:26px!important}
body:not([data-theme="dark"]) .password-field{margin-top:7px!important;gap:9px!important}
body:not([data-theme="dark"]) .password-field input{height:42px;border:1px solid #bdd2ed!important;border-radius:8px!important;background:#fff!important;color:#09265b!important}
body:not([data-theme="dark"]) .password-field .password-toggle{height:42px;min-width:62px;background:#eef7ff!important;border:1px solid #9cc9ee!important;color:#0b4e9c!important;border-radius:8px!important;font-weight:700!important}
body:not([data-theme="dark"]) .password-field .password-toggle:hover{background:#d9f4f8!important;border-color:#04aeca!important;color:#08336b!important}
body:not([data-theme="dark"]) #sup-importacao input[type="file"]{padding:8px!important;color:#315276!important;cursor:pointer}
body:not([data-theme="dark"]) #sup-importacao input[type="file"]::file-selector-button{margin-right:10px;border:1px solid #9cc9ee;border-radius:6px;background:#eef7ff;color:#0b4e9c;padding:6px 9px;font:700 11px 'DM Sans';cursor:pointer}

/* Ação de saída conserva o vermelho forte nos dois temas. */
.profile #logoutButton{background:#cf263f!important;border:1px solid #f36477!important;color:#fff!important;font-weight:800!important;box-shadow:0 5px 12px #7c0e1c44!important}
.profile #logoutButton:hover{background:#f0445b!important;color:#fff!important}
/* Contraste do aviso de consumo no tema escuro. */
body[data-theme="dark"] .office-ai-usage-notice.limit-warning{background:#453515;border-color:#80621d;color:#ffe09a}body[data-theme="dark"] .office-ai-usage-notice.limit-reached{background:#4b1e2a;border-color:#8d3446;color:#ffc0ca}
