/* Gaveta da assistente interna (etapa 3). Brandbook 2026: #F0EEE9 (fundo), #9F7D28 (ouro),
   #2E2C2B (texto), Poppins. No celular ocupa a tela inteira. */
.ast-botao, .ast-gaveta { --ast-fundo: #F0EEE9; --ast-ouro: #9F7D28; --ast-texto: #2E2C2B; --ast-linha: rgba(46,44,43,.14); font-family: 'Poppins', system-ui, sans-serif; }

.ast-botao { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 0; border-radius: 999px; background: var(--ast-texto); color: var(--ast-fundo);
  font: 500 14px/1 'Poppins', system-ui, sans-serif; box-shadow: 0 6px 20px rgba(46,44,43,.25); cursor: pointer; }
.ast-botao .ms { color: var(--ast-ouro); font-size: 22px; }
.ast-botao:hover { background: #1f1d1c; }
.ast-botao:focus-visible, .ast-gaveta :focus-visible { outline: 2px solid var(--ast-ouro); outline-offset: 2px; }
body.ast-aberta .ast-botao { display: none; }

.ast-gaveta { position: fixed; right: 20px; bottom: 20px; z-index: 61; width: min(400px, calc(100vw - 40px)); height: min(620px, calc(100dvh - 100px));
  display: flex; flex-direction: column; background: var(--ast-fundo); color: var(--ast-texto); border: 1px solid var(--ast-linha);
  border-radius: 16px; box-shadow: 0 16px 48px rgba(46,44,43,.28); overflow: hidden; }
.ast-gaveta[hidden] { display: none; }
.ast-topo { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--ast-linha); background: #fff; }
.ast-titulo { flex: 1; margin: 0; font-size: 16px; font-weight: 600; }
.ast-acao { border: 1px solid var(--ast-linha); background: transparent; color: var(--ast-texto); border-radius: 999px; padding: 6px 12px; font: 500 12px 'Poppins', sans-serif; cursor: pointer; }
.ast-acao:hover { border-color: var(--ast-ouro); }
.ast-fechar { display: inline-flex; border: 0; background: transparent; color: var(--ast-texto); padding: 6px; border-radius: 999px; cursor: pointer; }
.ast-nota { margin: 0; padding: 8px 16px; font-size: 12px; color: rgba(46,44,43,.72); }
.ast-log { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.ast-fala { max-width: 88%; padding: 10px 12px; border-radius: 14px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; white-space: normal; }
.ast-ia { align-self: flex-start; background: #fff; border: 1px solid var(--ast-linha); border-top-left-radius: 4px; }
.ast-pessoa { align-self: flex-end; background: var(--ast-texto); color: var(--ast-fundo); border-top-right-radius: 4px; }
.ast-link { color: var(--ast-ouro); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.ast-pessoa .ast-link { color: #E6C77A; }
.ast-intencao { align-self: stretch; padding: 12px; border: 1px solid var(--ast-ouro); border-radius: 12px; background: #fff; display: grid; gap: 8px; }
.ast-intencao-titulo { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ast-ouro); }
.ast-intencao-resumo { margin: 0; font-size: 14px; line-height: 1.5; }
.ast-intencao .btn[disabled] { opacity: .55; cursor: not-allowed; justify-self: start; }
.ast-intencao .ast-nota { padding: 0; }
.ast-status { min-height: 20px; padding: 0 16px; font-size: 12px; color: var(--ast-ouro); }
.ast-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px 12px; border-top: 1px solid var(--ast-linha); background: #fff; }
.ast-campo { flex: 1; resize: none; min-height: 44px; max-height: 120px; padding: 10px 12px; border: 1px solid var(--ast-linha); border-radius: 12px;
  font: 400 14px/1.4 'Poppins', system-ui, sans-serif; color: var(--ast-texto); background: var(--ast-fundo); }
.ast-campo:focus { border-color: var(--ast-ouro); outline: none; }
.ast-enviar { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

@media (max-width: 640px) {
  .ast-botao { right: 12px; bottom: 12px; }
  .ast-botao-rotulo { display: none; }
  .ast-gaveta { inset: 0; right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .ast-fala { max-width: 92%; }
}
@media (prefers-reduced-motion: no-preference) {
  .ast-gaveta:not([hidden]) { animation: ast-entra .16s ease-out; }
  @keyframes ast-entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
/* etapa 4: Confirmar e Cancelar, Desfazer e link de decisão */
.ast-intencao-botoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ast-intencao-botoes .btn, .ast-intencao-botoes .ast-acao { min-height: 44px; }
.ast-desfazer { margin-top: 8px; min-height: 36px; }
.ast-link-decisao { margin: 8px 0 0; font-size: 12px; }
/* etapa 4b: anexos (botão, arrastar e soltar, chips do rascunho, copiar o link de aprovação) */
.ast-anexar { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ast-linha);
  background: transparent; color: var(--ast-texto); border-radius: 12px; cursor: pointer; }
.ast-anexar:hover { border-color: var(--ast-ouro); }
.ast-anexar[disabled] { opacity: .55; cursor: not-allowed; }
.ast-anexos { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px; }
.ast-anexos:empty { display: none; }
.ast-anexo { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 10px; border: 1px solid var(--ast-linha); border-radius: 999px;
  background: #fff; font-size: 12px; }
.ast-anexo .ms { font-size: 16px; color: var(--ast-ouro); }
.ast-anexo-nome { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ast-anexo-estado { color: rgba(46,44,43,.72); }
.ast-soltar { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(240,238,233,.94);
  border: 2px dashed var(--ast-ouro); border-radius: inherit; font-weight: 600; color: var(--ast-texto); pointer-events: none; }
.ast-soltar[hidden] { display: none; }
.ast-copiar { margin-left: 4px; min-height: 36px; }

.ast-anexo-tirar{margin-left:4px;border:0;background:transparent;color:inherit;font-size:16px;line-height:1;cursor:pointer;padding:0 4px;border-radius:50%;opacity:.7}
.ast-anexo-tirar:hover,.ast-anexo-tirar:focus-visible{opacity:1;background:rgba(0,0,0,.08)}
