/* Assistente do site (11/11/2026) — segue o apple.css: vidro na barra, cinza de sistema nas respostas, azul nas falas da pessoa. */
.pa-abrir { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: inline-flex; align-items: center; gap: 9px; height: 52px; padding: 0 20px 0 16px;
  border: 0; border-radius: 980px; cursor: pointer; font: inherit; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: #fff; background: #1d1d1f;
  box-shadow: 0 10px 30px rgba(0,0,0,.22), 0 2px 6px rgba(0,0,0,.12); transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, bottom .25s ease; }
.pa-abrir:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,0,0,.26), 0 3px 8px rgba(0,0,0,.14); }
.pa-abrir:active { transform: scale(.97); }
.pa-abrir:focus-visible, .pa button:focus-visible, .pa a:focus-visible, .pa textarea:focus-visible { outline: 3px solid rgba(0,113,227,.45); outline-offset: 2px; }
.pa-abrir svg { width: 22px; height: 22px; flex: none; }
.pa-abrir[hidden] { display: none; }
body.pa-sobe .pa-abrir { bottom: 92px; }

.pa { position: fixed; right: 20px; bottom: 20px; z-index: 95; width: 392px; max-width: calc(100vw - 24px); height: min(620px, calc(100vh - 40px)); height: min(620px, calc(100dvh - 40px));
  display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: #fff; color: #1d1d1f;
  box-shadow: 0 24px 70px rgba(0,0,0,.24), 0 0 0 .5px rgba(0,0,0,.12); font-size: 15px; line-height: 1.42; letter-spacing: -0.012em;
  transform-origin: 100% 100%; animation: pa-entra .22s cubic-bezier(.2,.8,.2,1); }
.pa[hidden] { display: none; }
@keyframes pa-entra { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.pa-topo { display: flex; align-items: center; gap: 11px; padding: 13px 12px 13px 16px; flex: none;
  background: rgba(255,255,255,.82); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); border-bottom: .5px solid rgba(0,0,0,.1); }
.pa-topo img { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.pa-topo b { display: block; font-size: 15px; font-weight: 600; line-height: 1.2; }
.pa-topo small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #6e6e73; line-height: 1.3; }
.pa-topo small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34c759; }
.pa-x { margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(118,118,128,.12); color: #3c3c43; cursor: pointer; display: grid; place-items: center; flex: none; }
.pa-x:hover { background: rgba(118,118,128,.2); }
.pa-x svg { width: 14px; height: 14px; }

.pa-msgs { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px 6px; display: flex; flex-direction: column; gap: 6px; scroll-behavior: smooth; }
.pa-m { max-width: 88%; padding: 9px 13px; border-radius: 18px; overflow-wrap: anywhere; animation: pa-msg .22s ease; }
@keyframes pa-msg { from { opacity: 0; transform: translateY(6px); } }
.pa-m.ele { align-self: flex-start; background: #f2f2f7; border-bottom-left-radius: 6px; }
.pa-m.ele + .pa-m.ele { border-top-left-radius: 6px; }
.pa-m.eu { align-self: flex-end; background: #0071e3; color: #fff; border-bottom-right-radius: 6px; margin-top: 8px; }
.pa-m.eu + .pa-m.ele { margin-top: 8px; }
.pa-m a { color: #0066cc; text-decoration: underline; text-underline-offset: 2px; }
.pa-m ol, .pa-m ul { margin: 6px 0 2px; padding-left: 20px; }
.pa-m li { margin: 5px 0; }
.pa-m li::marker { color: #86868b; font-weight: 600; }
.pa-m small { display: block; margin-top: 6px; font-size: 12.5px; color: #6e6e73; line-height: 1.35; }
.pa-m code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 5px; }
.pa-cx { position: relative; margin: 8px 0 4px; }
.pa-copia { margin: 0; padding: 36px 12px 10px; background: #1d1d1f; color: #f5f5f7; border-radius: 12px; overflow: auto; white-space: pre; max-height: 230px; }
.pa-copia code { background: none; padding: 0; color: inherit; font-size: 12px; line-height: 1.5; }
.pa-copiar { position: absolute; top: 7px; right: 7px; padding: 4px 11px; border: 0; border-radius: 980px; background: rgba(255,255,255,.18); color: #fff; font: inherit; font-size: 12px; cursor: pointer; }
.pa-copiar:hover { background: rgba(255,255,255,.3); }
a.pa-btn { display: inline-flex; align-items: center; min-height: 38px; margin: 2px 0; padding: 0 16px; border-radius: 980px; background: #0071e3; color: #fff !important; text-decoration: none !important; font-weight: 500; font-size: 14.5px; }
a.pa-btn:hover { background: #0077ed; }
.pa-digita { align-self: flex-start; display: flex; gap: 4px; padding: 13px 14px; background: #f2f2f7; border-radius: 18px; border-bottom-left-radius: 6px; }
.pa-digita i { width: 7px; height: 7px; border-radius: 50%; background: #8e8e93; animation: pa-pt 1.1s infinite ease-in-out; }
.pa-digita i:nth-child(2) { animation-delay: .15s; } .pa-digita i:nth-child(3) { animation-delay: .3s; }
@keyframes pa-pt { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.pa-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 8px 14px 4px; flex: none; }
.pa-chips:empty { display: none; }
.pa-chip { min-height: 36px; padding: 6px 14px; border: 1px solid rgba(0,113,227,.35); border-radius: 980px; background: #fff; color: #0066cc; font: inherit; font-size: 14px; cursor: pointer; text-align: left; transition: background .12s, border-color .12s; }
.pa-chip:hover { background: rgba(0,113,227,.07); border-color: #0071e3; }
.pa-chip.sim { border-color: rgba(52,199,89,.6); color: #1d7a36; } .pa-chip.sim:hover { background: rgba(52,199,89,.1); }
.pa-chip.nao { border-color: rgba(60,60,67,.3); color: #3c3c43; } .pa-chip.nao:hover { background: rgba(118,118,128,.1); }

.pa-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 12px; flex: none; }
.pa-form textarea { flex: 1; min-height: 42px; max-height: 120px; resize: none; padding: 10px 14px; border: 1px solid rgba(60,60,67,.22); border-radius: 21px; background: #fff; color: inherit;
  font: inherit; font-size: 16px; line-height: 1.3; outline: none; }
.pa-form textarea:focus { border-color: #0071e3; box-shadow: 0 0 0 4px rgba(0,113,227,.16); }
.pa-form textarea::placeholder { color: #8e8e93; }
.pa-enviar { width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: #0071e3; color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .12s, opacity .12s, transform .1s; }
.pa-enviar:hover { background: #0077ed; } .pa-enviar:active { transform: scale(.94); }
.pa-enviar[disabled] { opacity: .35; cursor: default; }
.pa-enviar svg { width: 18px; height: 18px; }
.pa-pe { padding: 0 14px 10px; font-size: 11.5px; color: #8e8e93; text-align: center; flex: none; }

@media (max-width: 560px) {
  .pa { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; }
  .pa-abrir { right: 14px; bottom: 14px; height: 50px; padding: 0 14px; }
  .pa-abrir span { display: none; }
  body.pa-sobe .pa-abrir { bottom: 84px; }
  body.pa-aberto { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .pa, .pa-m, .pa-abrir { animation: none; transition: none; } .pa-digita i { animation: none; opacity: .7; } .pa-msgs { scroll-behavior: auto; } }
@media print { .pa, .pa-abrir { display: none !important; } }

/* Comunidade: o Ajuda fica à esquerda, sobre a barra lateral, para não cobrir o botão Responder
   (a página da comunidade cria um stacking context com z-index menor que o do Ajuda). */
html.cm-pagina .pa-abrir,
html.cm-pagina .pa,
body:has(main.cm) .pa-abrir,
body:has(main.cm) .pa { right: auto; left: 16px; }
