/* Chat compartilhado: noite, dourado e tipografia da savana. */
.pm-btn {
  position: fixed; z-index: 40; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px;
  min-height: 54px; padding: 6px 20px 6px 8px; border: 1px solid rgba(226,177,90,.35); border-radius: 999px;
  background: var(--ink, #0c0b09); color: var(--bone, #efe8dc); box-shadow: 0 12px 36px rgba(0,0,0,.4);
  font: 500 14px/1 var(--sans, Outfit, system-ui, sans-serif); cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.pm-av { display: block; width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.pm-btn[aria-expanded="true"] { display: none; }
.pm {
  position: fixed; z-index: 50; right: 16px; bottom: 16px; display: flex; flex-direction: column;
  width: min(420px, calc(100vw - 32px)); height: min(660px, calc(100dvh - 32px));
  border: 1px solid rgba(226,177,90,.26); border-radius: 20px; overflow: hidden;
  background: var(--ink, #0c0b09); color: var(--bone, #efe8dc); box-shadow: 0 30px 80px rgba(0,0,0,.55);
  font: 400 15px/1.55 var(--sans, Outfit, system-ui, sans-serif); color-scheme: dark;
}
.pm *, .pm-btn { box-sizing: border-box; }
.pm[hidden] { display: none; }
.pm-head { display: flex; align-items: center; gap: 12px; padding: 20px 18px; border-bottom: 1px solid var(--fio, rgba(239,232,220,.16)); background: var(--ink-2, #15130f); }
.pm-head .pm-av { width: 48px; height: 48px; }
.pm-head div { flex: 1; min-width: 0; }
.pm-head strong { display: block; font: 360 1.45rem/1.15 var(--serif, Georgia, serif); letter-spacing: -.025em; }
.pm-head small { display: block; margin-top: 5px; font-size: 11px; letter-spacing: .04em; color: var(--gold, #e2b15a); }
.pm-fechar { width: 36px; height: 36px; flex-shrink: 0; border: 1px solid var(--fio, rgba(239,232,220,.16)); border-radius: 50%; background: transparent; color: inherit; font: 400 22px/1 var(--sans, system-ui); cursor: pointer; }
.pm-lista { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px 18px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; scrollbar-color: #4a3b25 transparent; }
.pm-msg { flex-shrink: 0; max-width: 90%; margin: 0; padding: 13px 16px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.pm-msg.ia { align-self: flex-start; background: var(--ink-2, #15130f); border: 1px solid var(--fio, rgba(239,232,220,.16)); border-bottom-left-radius: 4px; }
.pm-msg.eu { align-self: flex-end; background: var(--gold, #e2b15a); color: var(--ink, #0c0b09); border-bottom-right-radius: 4px; }
.pm-msg a { color: inherit; font-weight: 500; text-underline-offset: 3px; }
.pm-msg.pensando { color: var(--t, rgba(239,232,220,.64)); }
.pm-msg.pensando::after { content: "…"; animation: pm-pisca 1s steps(4) infinite; display: inline-block; width: 1.2em; overflow: hidden; vertical-align: bottom; }
@keyframes pm-pisca { from { width: 0; } }
.pm-sugestoes { display: flex; flex-shrink: 0; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.pm-sugestoes button { min-height: 40px; padding: 9px 12px; border: 1px solid rgba(226,177,90,.3); border-radius: 999px; background: transparent; color: var(--gold-2, #f0c97a); font: 400 12px/1.35 var(--sans, Outfit, system-ui); cursor: pointer; text-align: left; }
.pm-form { display: flex; align-items: end; gap: 8px; padding: 14px; border-top: 1px solid var(--fio, rgba(239,232,220,.16)); }
.pm-form textarea { flex: 1; min-width: 0; min-height: 46px; max-height: 120px; padding: 12px 14px; resize: vertical; border: 1px solid var(--fio, rgba(239,232,220,.16)); border-radius: 12px; background: var(--ink-2, #15130f); color: inherit; font: 400 16px/1.35 var(--sans, Outfit, system-ui); }
.pm-form textarea::placeholder { color: var(--t, rgba(239,232,220,.64)); }
.pm-form button { height: 46px; padding: 0 17px; border: 1px solid var(--gold, #e2b15a); border-radius: 999px; background: var(--gold, #e2b15a); color: var(--ink, #0c0b09); font: 500 13px/1 var(--sans, Outfit, system-ui); cursor: pointer; }
.pm-form button:disabled { opacity: .5; cursor: default; }
.pm-aviso { margin: 0; padding: 0 18px 18px; font-size: 10px; line-height: 1.6; color: var(--t, rgba(239,232,220,.64)); }
.pm-aviso a { color: inherit; text-underline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .pm-btn:hover, .pm-fechar:hover { border-color: var(--gold, #e2b15a); }
  .pm-sugestoes button:hover { background: rgba(226,177,90,.1); }
  .pm-form button:not(:disabled):hover { background: var(--gold-2, #f0c97a); }
}
@media (max-width: 680px) {
  .pm-btn { padding: 6px; }
  .pm-btn .pm-av { width: 44px; height: 44px; }
  .pm-btn .pm-rotulo { display: none; }
  .pm { right: 8px; bottom: 8px; width: calc(100vw - 16px); height: calc(100dvh - 16px); border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) { .pm-btn { transition: none; } .pm-msg.pensando::after { animation: none; } }
