/* IA VÍVERE — interface multimensagens e avisos contextuais não intrusivos */
.hub-ai-thread{flex:1;min-height:160px;max-height:45vh;overflow-y:auto;overflow-x:hidden;padding:12px;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain}
.hub-ai-message{max-width:90%;padding:11px 13px;border-radius:12px;background:#f1f6f3;color:#193a2d;align-self:flex-start;white-space:normal;overflow-wrap:anywhere}
.hub-ai-message.from-user{background:#d9f2e4;align-self:flex-end}
.hub-ai-message strong{font-size:.78rem;display:block;margin-bottom:5px}
.hub-ai-message p{margin:0;white-space:pre-wrap;line-height:1.42}
.hub-ai-message.hub-ai-error{background:#fff0eb;color:#983f25}
.hub-ai-dialog{width:min(840px,94vw);max-height:86vh;height:min(750px,85vh);padding:0;border:0;border-radius:13px;box-shadow:0 24px 66px #0007}
.hub-ai-dialog::backdrop{background:#0009}
.hub-ai-form{display:flex;gap:10px;align-items:flex-end;padding-top:10px}
.hub-ai-form textarea{flex:1;min-width:0}
#copilotAnswer.hub-ai-thread{max-height:52vh;min-height:180px}
.hub-ai-guidance{position:fixed;z-index:990;top:90px;right:18px;width:min(350px,calc(100vw - 24px));background:#fff;color:#17382d;padding:14px 16px;border-radius:13px;box-shadow:0 10px 35px #0003;border:1px solid #cbded4}
.hub-ai-guidance-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}
.hub-ai-guidance-title button{border:0;background:transparent;color:#304e44;font-size:24px;cursor:pointer}
.hub-ai-guidance>strong{font-size:.95rem;display:block}
.hub-ai-guidance p{font-size:.85rem;line-height:1.4;margin:6px 0 12px}
.hub-ai-guidance-actions{display:flex;gap:7px;flex-wrap:wrap}
.hub-ai-guidance-actions button{font-size:.78rem;min-height:33px}
@media(max-width:740px){.hub-ai-guidance{top:72px;right:8px}.hub-ai-dialog{width:100vw;max-width:100vw;height:92vh;max-height:92vh}.hub-ai-form{flex-direction:column;align-items:stretch}}

.copilot-quick-help{border:1px solid #d6e6db;background:#f6faf7;border-radius:12px;padding:10px;margin:11px 0;display:flex;flex-direction:column;gap:8px;max-height:195px;overflow-y:auto}
.copilot-quick-help>strong{font-size:.87rem;color:#164936}
.copilot-quick-help p{font-size:.82rem;margin:0}
.copilot-quick-help button.copilot-suggestion-button{color:#234e3d;background:#e4f3e9;border:1px solid #c2dbcd;text-align:left;white-space:normal;padding:8px 11px;font-size:.8rem;font-weight:600}
.copilot-quick-help small{color:#647e70;font-size:.7rem}
#copilotAnswer.hub-ai-thread{min-height:190px;max-height:none}
@media(max-width:760px){.copilot-quick-help{max-height:150px}}

.hub-ai-guidance-source{display:block;margin-top:9px;color:#557364;font-size:11px}
.copilot-open-button{font-size:12px;text-align:left;width:max-content}
.copilot-quick-help .copilot-open-button{font-size:12px;font-weight:500;background:transparent;border:1px solid #bed4c8;padding:6px 9px}

.copilot-followup-actions{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 2px}
.copilot-followup-actions button,.copilot-followup-open{font-size:.75rem!important;padding:5px 9px!important}
.copilot-followup-report{padding:10px;border:1px solid #d4e1d9;border-radius:9px;margin:8px 0;max-height:240px;overflow-y:auto}
.copilot-followup-item{border-top:1px solid #e2e9e5;padding:8px 0;font-size:.8rem}
.copilot-followup-item p{margin:4px 0 7px}
.copilot-followup-item button{font-size:.75rem}
