:root { --cor-destaque: #ffc400; --cor-fundo: #f0f2f5; --cor-painel: #fff; --espaco-padrao: clamp(10px, 3vw, 16px); --raio-padrao: 14px; }
html:not([data-scrollhide-off]), html:not([data-scrollhide-off]) * {
  scrollbar-width: none !important;
}
a, button, img, [role="button"] {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}
    body { font-family: sans-serif; background: #f0f2f5; margin: 0; }
    .botao-abrir {
      position: fixed; bottom: 20px; left: 20px; width: 56px; height: 56px;
      border-radius: 50%; background: #ffc400; color: #fff; border: none;
      display: grid; place-items: center; padding: 0; line-height: 0;
      font-size: 24px; cursor: grab; touch-action: none; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
    .botao-abrir svg { width: 27px; height: 27px; display: block; filter: drop-shadow(0 1px 1px #654d00); }
    .botao-abrir[hidden], .chat[hidden] { display: none !important; }
    .chat {
      position: fixed; bottom: 88px; left: 20px; width: 340px; width: min(340px, calc(100vw - 40px)); height: 460px; height: min(460px, calc(100dvh - 108px));
      background: #fff; border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.18);
      display: flex; flex-direction: column; overflow: hidden;
      transform-origin: bottom left;
      animation: chatEnter 260ms cubic-bezier(.2,.75,.25,1) both;
    }
    @keyframes chatEnter { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
    .header {
      background: #ffc400; color: #fff; padding: 14px 16px;
      display: flex; justify-content: space-between; align-items: center; user-select: none;
      text-shadow: 0 1px 2px #654d00;
      cursor: grab; touch-action: none;
    }
    .header.arrastando, .botao-abrir.arrastando { cursor: grabbing; }
    .header button { cursor: pointer; }
    .titulo-assistente { margin: 0 0 4px; font-size: clamp(15px, 4vw, 18px); line-height: 1.2; }
    .botao-fechar { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; transition: background 160ms ease, transform 160ms ease; }
    .botao-fechar svg { filter: drop-shadow(0 1px 1px #654d00); }
    .botao-fechar:hover, .botao-fechar:focus-visible { background: rgba(255,255,255,.45); }
    .botao-fechar:active { transform: scale(.98); }
    .status-cabecalho { display: inline-flex; align-items: center; gap: 6px; }
    .status-cabecalho::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #9df2b1; }
    .status-cabecalho.esta-offline::before { background: #555; }
    .corpo-chat {
      flex: 1; padding: 14px; overflow-y: auto; display: flex;
      flex-direction: column; gap: 10px; background: #f7f7f7;
    }
    .historico-chat { display: flex; flex: 0 0 auto; flex-direction: column; gap: 10px; }
    .mensagem {
      max-width: 88%; padding: 10px 14px; border-radius: 14px;
      font-size: 14px; line-height: 1.4;
      overflow-wrap: anywhere;
      animation: entradaMensagem 160ms ease-out both;
    }
    @keyframes entradaMensagem { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
    .bot { background: #fff; color: #333; align-self: flex-start; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
    .bot p { margin: 0 0 8px; }
    .bot p:last-child { margin-bottom: 0; }
    .mensagem h2 { margin: 0 0 8px; font-size: 1rem; }
    .bot ul, .bot ol { margin: 4px 0 8px; padding-left: 22px; }
    .bot pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #f1f1f1; padding: 8px; border-radius: 6px; }
    .conteudo-mensagem { display: block; }
    .botao-ouvir { display: grid; place-items: center; width: 34px; height: 34px; margin: 6px 0 -4px auto; border: 0; border-radius: 50%; background: transparent; color: #805f00; cursor: pointer; padding: 6px; }
    .botao-ouvir:hover { background: #fff5cc; }
    .botao-ouvir svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .botao-ouvir .ondas-som, .botao-ouvir.esta-falando .som-desativado { display: none; }
    .botao-ouvir.esta-falando .ondas-som { display: initial; }
    .aguardando { display: flex; align-items: center; min-height: 22px; }
    .pontos-espera { display: inline-flex; gap: 4px; }
    .pontos-espera i { width: 6px; height: 6px; border-radius: 50%; background: var(--cor-destaque); animation: pulsarPontos 1s ease-in-out infinite; }
    .pontos-espera i:nth-child(2) { animation-delay: 140ms; }
    .pontos-espera i:nth-child(3) { animation-delay: 280ms; }
    @keyframes pulsarPontos { 0%, 60%, 100% { opacity: .4; transform: translateY(0) scale(.85); } 30% { opacity: 1; transform: translateY(-3px) scale(1); } }
    .mensagem-usuario { background: #ffc400; color: #222; align-self: flex-end; }
    .sugestoes-respostas { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 2px 2px 8px; max-width: 100%; scrollbar-width: thin; }
    .botao-sugestao {
      background: #fff; border: 1px solid #ffc400; color: #805f00;
      border-radius: 16px; padding: 6px 12px; font-size: 12px; cursor: pointer;
      transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
    }
    .botao-sugestao:hover { background: #ffc400; color: #222; }
    .botao-sugestao { flex: 0 0 auto; white-space: nowrap; }
    .cartao-mapa { width: min(100%, 440px); padding: 10px; border-radius: 14px; background: #fff; box-shadow: 0 1px 3px #00000014; }
    .cartao-mapa h2 { margin: 2px 2px 10px; }
    .cartao-mapa iframe { display: block; width: 100%; height: clamp(190px, 35vh, 280px); border: 0; border-radius: 10px; }
    .link-mapa { display: inline-block; margin-top: 9px; color: #805f00; font-weight: 600; }
    .atomo-redes { position: relative; width: min(100%, 360px); height: 300px; align-self: center; border-radius: 18px; background: radial-gradient(circle at center, #fff 0 28%, #fffbed 70%, #fff 100%); }
    .anel-redes, .orbitador-rede { position: absolute; top: 50%; left: 50%; border-radius: 50%; transform: translate(-50%,-50%); }
    .anel-redes { border: 1px solid #e7c85e; }
    .anel-externo, .orbitador-externo { width: 94%; height: 92%; }
    .anel-medio, .orbitador-medio { width: 68%; height: 68%; }
    .anel-interno, .orbitador-interno { width: 42%; height: 44%; }
    .orbitador-rede { z-index: 1; animation: orbitar 24s linear infinite; }
    .orbitador-rede .rede-social { top: 0; left: 50%; animation: manterIcone 24s linear infinite; }
    .orbitador-medio { animation-duration: 30s; }
    .orbitador-medio .rede-social { animation-duration: 30s; }
    .orbitador-interno { animation-duration: 36s; }
    .orbitador-interno .rede-social { animation-duration: 36s; }
    .orbitador-externo.posicao-oposta, .orbitador-externo.posicao-oposta .rede-social { animation-delay: -12s; }
    .orbitador-medio.posicao-oposta, .orbitador-medio.posicao-oposta .rede-social { animation-delay: -15s; }
    .orbitador-interno.posicao-oposta, .orbitador-interno.posicao-oposta .rede-social { animation-delay: -18s; }
    @keyframes orbitar { to { transform: translate(-50%,-50%) rotate(360deg); } }
    @keyframes manterIcone { to { transform: translate(-50%,-50%) rotate(-360deg); } }
    .nucleo-redes { position: absolute; z-index: 2; top: 50%; left: 50%; display: grid; width: 62px; height: 62px; place-items: center; transform: translate(-50%,-50%); border-radius: 50%; background: var(--cor-destaque); color: #222; font-weight: 700; box-shadow: 0 5px 16px #ffc40055; }
    .rede-social { position: absolute; z-index: 1; display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid #f0d98a; border-radius: 50%; background: white; color: #343434; box-shadow: 0 3px 12px #00000012; transform: translate(-50%,-50%); }
    .rede-social:hover { filter: brightness(.95); box-shadow: 0 5px 14px #0000001c; }
    .rede-social svg { width: 23px; height: 23px; }
    .campo-mensagem { position: relative; flex: 1; min-width: 0; }
    .visualmente-oculto { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
    .footer input { width: 97%; box-sizing: border-box; transition: box-shadow 220ms ease; caret-color: transparent; }
    .footer input:focus { outline: 0; box-shadow: 0 2px 0 var(--cor-destaque); }
    :where(a, button, input, [tabindex]):focus-visible { outline: 3px solid #171717; outline-offset: 3px; }
    .footer input:focus-visible { outline: 0; outline-offset: 0; box-shadow: 0 2px 0 var(--cor-destaque); }
    .link-pular { position: fixed; z-index: 10; top: 8px; left: 8px; padding: 10px 14px; transform: translateY(-160%); border-radius: 8px; background: #fff; color: #111; }
    .link-pular:focus { transform: translateY(0); }
    .footer input { caret-color: var(--cor-destaque); }
    .footer button, .botao-abrir, .botao-ouvir { transition: transform 160ms ease, filter 160ms ease; }
    .footer button:hover, .botao-abrir:hover, .botao-ouvir:hover { filter: brightness(.94); }
    .footer button:active, .botao-abrir:active { transform: scale(.98); }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
    }
    .footer { display: flex; padding: 10px; border-top: 1px solid #eee; background: #fff; }
    .footer input { flex: 1; border: none; font-size: 14px; padding: 6px; caret-color: var(--cor-destaque); }
    .footer button {
      background: var(--cor-destaque); color: #fff; border: none; border-radius: 8px;
      padding: 8px 14px; cursor: pointer; font-weight: bold;
    }
    .footer button svg { filter: drop-shadow(0 1px 1px #654d00); }
    @media (max-width: 600px) {
      body { overflow: hidden; }
      .chat { inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; box-shadow: none; }
      .corpo-chat { padding: var(--espaco-padrao); }
      .mensagem { max-width: min(94%, 52rem); padding: clamp(10px, 3vw, 14px); }
      .header { padding-inline: var(--espaco-padrao); }
      .header { padding: max(14px, env(safe-area-inset-top)) 16px 14px; }
      .corpo-chat { gap: 12px; }
      .mensagem { font-size: clamp(15px, 4vw, 17px); line-height: 1.5; }
      .footer { padding: 10px 12px max(10px, env(safe-area-inset-bottom)); gap: 8px; }
      .footer input { min-width: 0; font-size: 16px; }
      .footer button { min-width: 48px; min-height: 44px; }
    }
