.ai-providers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:20px 0}.ai-intro,.ai-provider,.ai-notice{padding:26px}.ai-intro h2{font-size:clamp(24px,3vw,34px);margin:12px 0}.ai-facts,.ai-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}.ai-facts span,.ai-state{border:1px solid #9b56e13b;border-radius:999px;padding:7px 12px;font-size:12px}.ai-provider-heading{display:flex;align-items:center;gap:14px}.ai-provider-heading img,.ai-chat-heading img{width:38px;height:38px;object-fit:contain}.ai-provider-heading h2,.ai-chat-heading h2{margin:0}.ai-provider-heading .ai-state{margin-left:auto}.ai-provider>p,.ai-notice p{line-height:1.65}.ai-provider>a{display:inline-block;margin-top:22px;color:inherit;text-decoration:underline;text-underline-offset:4px}.ai-provider small{display:block;overflow-wrap:anywhere}.ai-config,.ai-chat{color:var(--text,#292136);background:#faf8fd;border:1px solid #9b56e15c;border-radius:24px;box-shadow:0 20px 80px #170a343d;max-width:calc(100vw - 24px)}.ai-config{width:540px;padding:26px}.ai-config p{line-height:1.6}.ai-config input[type=password]{width:100%;box-sizing:border-box}.ai-dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.ai-consent{display:flex;gap:10px;align-items:flex-start;line-height:1.5;margin:20px 0}.ai-consent input{width:auto;flex-shrink:0;margin-top:4px}.ai-chat{padding:0;width:820px;height:min(780px,90dvh);max-height:94dvh;overflow:hidden}.ai-chat[open]{display:flex;flex-direction:column}.ai-chat-heading{padding:18px 22px;border-bottom:1px solid #9b56e130;display:flex;align-items:center;gap:12px}.ai-chat-heading [data-ai-clear]{margin-left:auto}.ai-chat-messages{flex:1;overflow-y:auto;padding:22px;min-height:80px}.ai-message{max-width:88%;padding:14px 18px;margin-bottom:16px;border-radius:18px;border:1px solid #9b56e12c;background:#eee6fa}.ai-message-user{margin-left:auto;background:#7432b9;color:white}.ai-message strong{font-size:12px}.ai-message p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;margin:8px 0 0}.ai-chat-empty{padding:32px;text-align:center;font-size:20px}.ai-composer{display:flex;gap:12px;padding:14px 22px;border-top:1px solid #9b56e130;align-items:flex-end}.ai-composer textarea{flex:1;min-width:0;resize:vertical;max-height:160px;border-radius:16px;padding:12px;color:inherit;background:#fff;border:1px solid #9b56e159;font:inherit}.ai-chat-status{padding:0 22px;font-size:13px;white-space:pre-wrap}.ai-chat-footnote{padding:0 22px 18px;line-height:1.5}.ai-chat-connect{padding:0 22px 18px;display:flex;flex-wrap:wrap;gap:12px;align-items:center}.ai-chat-connect p{width:100%;margin:0}.ai-chat-connect a{color:inherit}.ai-chat::backdrop,.ai-config::backdrop{background:#10071f99;backdrop-filter:blur(6px)}[data-theme=dark] .ai-chat,[data-theme=dark] .ai-config{background:#25232b;color:#f2ecfa}[data-theme=dark] .ai-message:not(.ai-message-user){background:#33303c}[data-theme=dark] .ai-composer textarea{background:#18161e}[data-theme=dark] .ai-provider-heading img[src*="claude"],[data-theme=dark] .ai-chat-heading img[src*="claude"]{filter:brightness(0) invert(1)}@media(max-width:700px){.ai-providers{grid-template-columns:1fr}.ai-intro,.ai-provider,.ai-notice{padding:20px}.ai-provider-heading{flex-wrap:wrap}.ai-provider-heading .ai-state{margin-left:0}.ai-chat{width:calc(100vw - 16px);height:92dvh;max-height:96dvh;border-radius:20px}.ai-chat-heading{padding:14px;flex-wrap:wrap}.ai-chat-heading small{font-size:11px}.ai-chat-heading [data-ai-clear]{margin-left:0}.ai-chat-messages{padding:14px}.ai-composer{padding:12px;gap:8px}.ai-message{max-width:94%}.ai-composer button{min-height:44px}.ai-config{padding:20px}.ai-actions button{min-height:44px}.ai-chat-footnote{padding:0 14px 14px}}
/* Modais de conversa usam superfície opaca para impedir sobreposição do conteúdo ao fundo. */
:root[data-theme='light'] body[data-auth='signed-in'] dialog:is(.ai-chat,.ai-config){background:#faf8fd!important;background-image:none!important;color:#2c2238!important;backdrop-filter:none!important;opacity:1!important;isolation:isolate}
:root[data-theme='dark'] body[data-auth='signed-in'] dialog:is(.ai-chat,.ai-config){background:#28292e!important;background-image:none!important;color:#f3eff9!important;backdrop-filter:none!important;opacity:1!important;isolation:isolate}
:root[data-theme='light'] body[data-auth='signed-in'] .ai-composer textarea{background:#fff!important;color:#2c2238!important}
:root[data-theme='dark'] body[data-auth='signed-in'] .ai-composer textarea{background:#1b1c20!important;color:#f3eff9!important}
.ai-context-panel{padding:12px 22px;border-bottom:1px solid #9b56e130;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;flex-shrink:0;max-height:30dvh;overflow-y:auto}.ai-context-panel>label{margin:0;min-width:0}.ai-context-panel select{width:100%;min-height:40px;margin-top:6px}.ai-context-panel .ai-consent,.ai-quick{grid-column:1/-1}.ai-context-panel .ai-consent{font-size:12px;margin:0}.ai-context-panel [hidden]{display:none!important}.ai-quick{display:flex;gap:6px;flex-wrap:wrap}.ai-quick button{padding:7px 11px;font-size:12px}.ai-draft-note{padding:12px;border-left:3px solid #8b32df;background:#8b32df12;line-height:1.6}.ai-chat:has(.ai-chat-connect) .ai-composer{display:none}.ai-message .ai-actions button{font-size:12px;white-space:normal}@media(max-width:700px){.ai-context-panel{padding:10px 14px;grid-template-columns:1fr;max-height:32dvh}.ai-context-panel .ai-consent{font-size:11px}.ai-quick button{min-height:38px}.ai-chat-heading button{min-height:40px}}
/* Contraste da conversa e cabeçalho compacto em telas pequenas. */
.ai-message.ai-message-user :is(p,strong){color:#fff!important;opacity:1!important}
.ai-chat-heading [data-ai-close]{width:34px;height:34px;min-width:34px;padding:0;display:grid;place-items:center;border-radius:50%!important;font-size:20px}
@media(max-width:700px){.ai-chat-heading{display:grid;grid-template-columns:30px minmax(0,1fr) auto 30px;gap:8px}.ai-chat-heading img{width:30px;height:30px}.ai-chat-heading h2{font-size:19px}.ai-chat-heading small{font-size:9px;overflow-wrap:anywhere;display:block}.ai-chat-heading [data-ai-clear]{padding:8px 10px;font-size:10px}.ai-chat-heading [data-ai-close]{width:30px;height:30px;min-width:30px;min-height:30px}}
