/* Assistente de perguntas: botão flutuante e painel compacto. Funciona no tema claro, escuro e no mapa 3D. */
.assistente { position: fixed; right: 20px; bottom: 20px; z-index: 80; font-family: var(--letra, system-ui, sans-serif); }
body.experiencia .assistente { bottom: 76px; }
body.sala-estrategia .assistente { bottom: 20px; }
.as-botao { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(93, 224, 200, .45); cursor: pointer; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, #1d3a3a, #0b1519); color: #5de0c8; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: transform .2s, box-shadow .2s; }
.as-botao:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, .45), 0 0 0 4px rgba(93, 224, 200, .12); }
.as-botao svg { width: 22px; height: 22px; }
.assistente.aberto .as-botao { transform: scale(.92); }
.as-painel { position: absolute; right: 0; bottom: 60px; width: min(380px, calc(100vw - 32px)); height: min(540px, calc(100vh - 150px));
  display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1px solid var(--linha, #26333c);
  background: var(--cartao, #141c22); color: var(--texto, #e3eaee); box-shadow: 0 18px 48px rgba(0, 0, 0, .45); animation: as-abre .22s ease-out; }
body.experiencia .as-painel { background: rgba(10, 16, 20, .94); backdrop-filter: blur(14px); border-color: rgba(143, 162, 171, .22); color: #e6eef0; }
@keyframes as-abre { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.as-topo { display: flex; align-items: center; gap: .5rem; padding: .7rem .8rem .7rem 1rem; border-bottom: 1px solid var(--linha, #26333c); }
.as-topo b { flex: 1; font-size: .9rem; }
.as-topo small { display: block; font-weight: 400; font-size: .68rem; color: var(--suave, #8c9ba6); }
.as-topo button { background: none; border: 0; color: var(--suave, #8c9ba6); cursor: pointer; font: inherit; font-size: .74rem; padding: .2rem .4rem; border-radius: 6px; }
.as-topo button:hover { color: var(--texto, #e3eaee); background: rgba(127, 127, 127, .12); }
.as-conversa { flex: 1; overflow-y: auto; padding: .8rem; display: flex; flex-direction: column; gap: .55rem; }
.as-msg { max-width: 92%; font-size: .84rem; line-height: 1.45; border-radius: 12px; padding: .55rem .75rem; }
.as-msg p { margin: 0 0 .35rem; } .as-msg p:last-child { margin-bottom: 0; }
.as-msg.eu { align-self: flex-end; background: rgba(93, 224, 200, .16); border: 1px solid rgba(93, 224, 200, .3); }
.as-msg.ipscape { align-self: flex-start; background: var(--cartao-2, #1a242b); border: 1px solid var(--linha, #26333c); }
body.experiencia .as-msg.ipscape { background: rgba(255, 255, 255, .04); border-color: rgba(143, 162, 171, .18); }
.as-espera { color: var(--suave, #8c9ba6); letter-spacing: .2em; }
.as-nota { font-size: .72rem; color: var(--suave, #8c9ba6); }
.as-lista { list-style: none; margin: .2rem 0 .4rem; padding: 0; }
.as-lista li { display: flex; flex-direction: column; padding: .3rem 0; border-top: 1px solid var(--linha, #26333c); }
.as-lista li:first-child { border-top: 0; }
.as-lista a, .as-lista b { font-weight: 600; color: inherit; }
.as-lista a { color: var(--acento, #5de0c8); }
.as-lista span { font-size: .74rem; color: var(--suave, #8c9ba6); }
.as-ver-mapa { margin-top: .3rem; font: inherit; font-size: .74rem; border-radius: 999px; padding: .2rem .7rem; cursor: pointer;
  border: 1px solid rgba(93, 224, 200, .45); background: transparent; color: var(--acento, #5de0c8); }
.as-sugestoes { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; }
.as-sugestoes button { font: inherit; font-size: .72rem; border-radius: 999px; padding: .22rem .6rem; cursor: pointer; text-align: left;
  border: 1px solid var(--linha, #26333c); background: transparent; color: var(--texto, #e3eaee); }
.as-sugestoes button:hover { border-color: var(--acento, #5de0c8); }
.as-form { display: flex; gap: .4rem; padding: .6rem; border-top: 1px solid var(--linha, #26333c); }
.as-form input { flex: 1; min-width: 0; font: inherit; font-size: .85rem; padding: .5rem .7rem; border-radius: 10px; border: 1px solid var(--linha, #26333c);
  background: var(--fundo, #0d1317); color: var(--texto, #e3eaee); }
body.experiencia .as-form input { background: rgba(0, 0, 0, .35); color: #e6eef0; }
.as-form input:focus { outline: 2px solid rgba(93, 224, 200, .45); outline-offset: 0; }
.as-form button { font: inherit; font-size: .82rem; border: 0; border-radius: 10px; padding: 0 .9rem; cursor: pointer; background: #5de0c8; color: #04201b; font-weight: 600; }
@media (max-width: 600px) { .assistente { right: 12px; bottom: 12px; } body.experiencia .assistente { bottom: 70px; } }
@media print { .assistente { display: none; } }
