/* Assistente NBE: preview administrativo integrado ao painel */
.nbe-assistant-root{max-width:980px;margin:20px auto}
.nbe-assistant-eyebrow{font-weight:800;letter-spacing:.11em;color:#a58231;font-size:11px}
.nbe-assistant-card,.nbe-assistant-answer{background:#fff;border:1px solid #e3ded3;border-radius:17px;padding:clamp(18px,3vw,32px);box-shadow:0 8px 24px #00000005}
.nbe-assistant-card h2,.nbe-assistant-answer h2{font-size:20px;color:#222;margin:0 0 10px}
.nbe-assistant-subtitle,.nbe-assistant-usage,.nbe-assistant-feedback,.nbe-assistant-note{font-size:13px;color:#716c61;line-height:1.6}
.nbe-assistant-input{width:100%;min-height:130px;border:1px solid #d8d2c5;background:#fff;border-radius:10px;box-sizing:border-box;padding:17px;resize:vertical;font:inherit;line-height:1.6;margin-top:13px;color:#252525}
.nbe-assistant-input:focus{outline:2px solid #b99a52;outline-offset:1px}
.nbe-assistant-actions{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}
.nbe-assistant-actions button,.nbe-assistant-source-link{border:1px solid #cfc6b1;border-radius:9px;padding:11px 16px;font-weight:700;cursor:pointer}
.nbe-assistant-send{background:#1c1c1c!important;color:white!important;border-color:#1c1c1c!important}
.nbe-assistant-preview{background:#f8f1e3!important;color:#473818!important}
.nbe-assistant-reset{background:#fff!important;color:#333!important}
.nbe-assistant-actions button:disabled{opacity:.45;cursor:not-allowed}
.nbe-assistant-answer{margin-top:18px}
.nbe-assistant-content{line-height:1.75;overflow-wrap:anywhere}
.nbe-assistant-content h3,.nbe-assistant-content h4{margin:18px 0 9px}
.nbe-assistant-content p{margin:10px 0 14px}.nbe-assistant-content ul,.nbe-assistant-content ol{padding-left:23px}.nbe-assistant-content li{margin:7px 0}
.nbe-assistant-sources-title{font-size:17px;margin:22px 0 12px}
.nbe-assistant-source{border:1px solid #e6dcc6;background:#faf8f2;border-radius:11px;padding:17px;margin:10px 0}
.nbe-assistant-source strong{font-size:13px}.nbe-assistant-source p{font-size:12px;color:#6e695f}
.nbe-assistant-source-link{background:white;color:#4c3c19}
.nbe-assistant-note{max-width:920px;margin:14px auto}
.nbe-assistant-content .answer-citation{background:#fff3d4;border:1px solid #dec899;color:#815b18;border-radius:5px;font-size:12px;padding:3px 5px;cursor:pointer}
@media(max-width:640px){.nbe-assistant-actions{flex-direction:column}.nbe-assistant-actions button{width:100%}}

.nbe-assistant-mode-bar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:5px 0 20px}
.nbe-assistant-mode-bar strong{font-size:13px;margin-right:5px}
.nbe-assistant-mode-bar button{border-radius:9px;padding:9px 14px;font-size:13px;cursor:pointer;border:1px solid #cfc6b1}
.nbe-assistant-mode-active{background:#242424;color:white}
.nbe-assistant-mode-button{background:#fff;color:#443b2a}
.nbe-assistant-root [hidden]{display:none!important}

/* Conversa científica: composição compacta e mensagens progressivas */
.nbe-assistant-chat{min-height:180px;padding:5px 0 14px}
.nbe-assistant-messages{display:flex;flex-direction:column;gap:22px}
.nbe-assistant-empty{text-align:center;padding:44px 12px;color:#585348}
.nbe-assistant-empty h2{font-size:23px;margin:0 0 10px}
.nbe-assistant-empty p{font-size:14px;line-height:1.6}
.nbe-assistant-message{max-width:94%;padding:18px 20px;border-radius:16px;overflow-wrap:anywhere}
.nbe-assistant-user{align-self:flex-end;background:#f4efdf;border:1px solid #e6dabe;max-width:85%}
.nbe-assistant-bot{align-self:stretch;background:#fff;border:1px solid #e8e3d9}
.nbe-assistant-speaker{font-size:11px;font-weight:800;letter-spacing:.035em;color:#8b712f;text-transform:uppercase;margin-bottom:10px}
.nbe-assistant-content{line-height:1.65;font-size:14px}
.nbe-assistant-composer{background:white;border:1px solid #e3ded3;border-radius:14px;padding:14px 18px;margin-top:12px}
.nbe-assistant-input{min-height:54px;max-height:165px;margin:0;padding:13px 15px;font-size:14px;overflow-y:auto}
.nbe-assistant-actions{display:flex;align-items:center;gap:9px;margin:10px 0 5px}
.nbe-assistant-actions button{padding:10px 13px}
.nbe-assistant-usage,.nbe-assistant-feedback{margin:7px 0;font-size:12px}
.nbe-assistant-references{margin-top:16px;border-top:1px solid #e8e2d7;padding-top:12px}
.nbe-assistant-references summary{font-size:13px;font-weight:700;color:#765c24;cursor:pointer}
.nbe-assistant-references .nbe-assistant-source{padding:13px;margin:9px 0}
.nbe-assistant-locked{max-width:750px;margin:34px auto;padding:32px;border:1px solid #e9ddc7;border-radius:16px;background:#faf8f2}
.nbe-assistant-locked h2{margin:0 0 12px}
@media(max-width:640px){.nbe-assistant-message{max-width:100%;padding:14px}.nbe-assistant-composer{padding:12px}.nbe-assistant-actions{flex-direction:row;flex-wrap:wrap}.nbe-assistant-actions button{width:auto;flex:1 1 auto}}

.nbe-assistant-history-bar{display:flex;align-items:center;gap:10px;margin-bottom:20px;padding:10px 0;flex-wrap:wrap}
.nbe-assistant-history-label{font-size:13px;font-weight:700;color:#6c5426}
.nbe-assistant-history-select{flex:1;min-width:200px;max-width:600px;min-height:40px;padding:9px 12px;border:1px solid #ded4bd;background:#fff;border-radius:9px;font-size:13px;color:#312b21}
.nbe-assistant-delete{background:#fff;border:1px solid #e0d5c1;border-radius:9px;padding:10px 12px;color:#6f473f;cursor:pointer;font-size:12px}
.nbe-assistant-delete:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:640px){.nbe-assistant-history-bar{align-items:stretch}.nbe-assistant-history-label{width:100%}.nbe-assistant-history-select{min-width:0;width:100%;max-width:100%}}
