/* Escambo (DEV) — feedback (07/11/2026): botão de chat no topo + diálogo. Celular: folha de baixo; ≥1024px: diálogo centrado. */
.fb-btn{width:44px;padding:0;justify-content:center;flex-shrink:0;color:var(--rv-text)}
.fb-btn svg.lucide{width:19px;height:19px;color:var(--rv-text-2)}
@media (min-width:1024px){.fb-btn{width:40px}}

.fb-dialog{margin:0;padding:0;border:0;background:transparent;color:var(--rv-text);max-width:none;max-height:none;width:100%;height:100%;
 display:none;align-items:flex-end;justify-content:center;overflow:hidden}
.fb-dialog[open]{display:flex}
.fb-dialog::backdrop{background:var(--rv-scrim);animation:fb-fade var(--rv-dur-overlay) var(--rv-ease-enter)}
.fb-dialog.saindo::backdrop{opacity:0;animation:fb-fade-out var(--rv-dur-fast) var(--rv-ease-exit)}
.fb-card{width:100%;max-height:calc(100dvh - 24px - env(safe-area-inset-top));display:flex;flex-direction:column;background:var(--rv-surface);
 border:1px solid var(--rv-border);border-bottom:0;border-radius:var(--rv-radius-lg) var(--rv-radius-lg) 0 0;box-shadow:var(--rv-overlay-shadow);
 animation:fb-sobe var(--rv-dur-overlay) var(--rv-ease-enter)}
.fb-dialog.saindo .fb-card{animation:fb-desce var(--rv-dur-fast) var(--rv-ease-exit) forwards}
.fb-grip{width:36px;height:4px;border-radius:2px;background:var(--rv-border-strong);margin:8px auto 0;flex-shrink:0}
.fb-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 12px 4px 20px;flex-shrink:0}
.fb-head h2{margin:6px 0 0;font-size:var(--rv-text-lg);line-height:1.25;font-weight:700;letter-spacing:-.01em;text-wrap:balance}
.fb-head p{margin:4px 0 0;font-size:var(--rv-text-sm);line-height:var(--rv-lh-sm);color:var(--rv-text-2)}
.fb-body{display:grid;gap:14px;padding:12px 20px 4px;overflow-y:auto;overscroll-behavior:contain;min-height:0}
.fb-tipo .seg{width:100%}
.fb-tipo .seg-op{padding:0 8px}
.fb-texto{min-height:120px;max-height:40dvh}
.fb-texto[aria-invalid=true]{border-color:var(--rv-rose)}
.fb-linha{display:flex;justify-content:space-between;gap:12px;margin-top:-8px;font-size:var(--rv-text-xs);line-height:var(--rv-lh-xs);color:var(--rv-muted)}
.fb-conta{font-family:var(--rv-font-mono);font-variant-numeric:tabular-nums}
.fb-conta.alerta{color:var(--rv-amber)}
.fb-responder[hidden],.fb-erro[hidden]{display:none}
.fb-erro{margin:0;display:flex;gap:8px;align-items:flex-start;padding:10px 12px;border-radius:var(--rv-radius-md);background:var(--rv-rose-soft);color:var(--rv-text);
 font-size:var(--rv-text-sm);line-height:var(--rv-lh-sm);border:1px solid color-mix(in oklch,var(--rv-rose) 40%,transparent)}
.fb-erro::before{content:"!";flex-shrink:0;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:var(--rv-rose);color:var(--rv-rose-content);font:700 12px/1 var(--rv-font-ui);margin-top:1px}
.fb-foot{display:flex;justify-content:flex-end;gap:8px;padding:12px 20px calc(16px + env(safe-area-inset-bottom));flex-shrink:0;border-top:1px solid var(--rv-border-subtle)}
.fb-foot .fb-enviar{min-width:120px}
@media (max-width:1023px){.fb-foot .btn{flex:1}}

@media (min-width:1024px){
 .fb-dialog{align-items:center}
 .fb-card{width:min(520px,calc(100vw - 48px));border-bottom:1px solid var(--rv-border);border-radius:var(--rv-radius-lg);max-height:calc(100dvh - 64px);
  animation:fb-entra var(--rv-dur-overlay) var(--rv-ease-enter)}
 .fb-dialog.saindo .fb-card{animation:fb-sai var(--rv-dur-fast) var(--rv-ease-exit) forwards}
 .fb-grip{display:none}
 .fb-head{padding:16px 16px 4px 24px}
 .fb-body{padding:12px 24px 4px}
 .fb-foot{padding:14px 24px 18px}
}
@keyframes fb-fade{from{opacity:0}}
@keyframes fb-fade-out{from{opacity:1}to{opacity:0}}
@keyframes fb-sobe{from{transform:translate3d(0,100%,0)}}
@keyframes fb-desce{to{transform:translate3d(0,100%,0)}}
@keyframes fb-entra{from{opacity:0;transform:scale(.97)}}
@keyframes fb-sai{to{opacity:0;transform:scale(.98)}}
@media (prefers-reduced-motion:reduce){
 .fb-card,.fb-dialog.saindo .fb-card{animation:fb-fade var(--rv-dur-fast) linear}
 .fb-dialog::backdrop{animation:none}
}
/* Resposta da equipe ao feedback */
.fb-resp .fb-card{gap:12px}
.fb-resp h2{margin:0;font:650 20px/1.2 var(--rv-font-ui)}
.fb-resp-orig{margin:0;padding:10px 12px;border-left:2px solid var(--rv-border-strong,var(--rv-border));background:var(--rv-sunken);border-radius:0 6px 6px 0;font-size:13px;color:var(--rv-text-2);line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.fb-resp-orig span{display:block;font-size:11px;color:var(--rv-muted);margin-bottom:4px}
.fb-resp-txt{font-size:15px;line-height:1.55;color:var(--rv-text);overflow-wrap:anywhere}
