/* Ficha do contato (05/11/2026): tela de dados da pessoa aberta ao tocar no nome ou número na conversa. */
.detail-header[data-ficha] { cursor: pointer; }
.detail-header[data-ficha]:focus-visible { outline: 2px solid var(--mint, #74e2b1); outline-offset: -2px; }
.ficha-dialog { width: min(92vw, 460px); max-height: 90dvh; padding: 0; overflow-y: auto; border: 1px solid rgba(182, 218, 197, .2); border-radius: 16px; background: #13271f; color: #eaf4ef; }
.ficha-dialog::backdrop { background: rgba(0, 0, 0, .62); }
.fc-barra { position: sticky; top: 0; z-index: 2; display: flex; padding: 12px 16px 8px; background: #13271f; border-bottom: 1px solid rgba(182, 218, 197, .14); }
.fc-fechar { min-height: 40px; padding: 0 16px; border: 1px solid rgba(182, 218, 197, .3); border-radius: 999px; background: #152a21; color: #74e2b1; font: 700 14px inherit; font-family: inherit; cursor: pointer; }
.fc-corpo { display: grid; gap: 16px; padding: 18px 20px 24px; }
.fc-topo { display: flex; align-items: center; gap: 14px; min-width: 0; }
.fc-avatar { position: relative; flex: none; display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden; border-radius: 50%; background: #5be4a8; color: #06140e; font-size: 26px; font-weight: 700; }
.fc-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fc-avatar.canal-instagram { background: #f09ac4; } .fc-avatar.canal-facebook { background: #7aa7ff; } .fc-avatar.canal-telegram { background: #6cc3f5; } .fc-avatar.canal-site { background: #f5c451; }
.fc-nomes { min-width: 0; }
.fc-nomes h2 { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.fc-numero { margin: 2px 0 0; font-size: 16px; font-weight: 600; color: #cfeadb; overflow-wrap: anywhere; }
.fc-canal { margin: 2px 0 0; font-size: 13px; color: #91a99a; overflow-wrap: anywhere; }
.fc-selos { display: flex; flex-wrap: wrap; gap: 6px; }
.fc-selo { padding: 4px 10px; border-radius: 999px; background: rgba(182, 218, 197, .12); color: #cfeadb; font-size: 12px; font-weight: 600; }
.fc-selo.quente { background: rgba(255, 138, 101, .16); color: #ffb08f; } .fc-selo.alerta { background: rgba(255, 90, 90, .16); color: #ffb4a8; }
.fc-acoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.fc-botao { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border: 1px solid rgba(116, 226, 177, .5); border-radius: 12px; background: rgba(116, 226, 177, .1); color: #74e2b1; font: 600 13px inherit; font-family: inherit; text-decoration: none; cursor: pointer; }
.fc-aviso { margin: -6px 0 0; min-height: 1.2em; color: #74e2b1; font-size: 13px; }
.fc-bloco { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid rgba(182, 218, 197, .14); }
.fc-bloco h3 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #91a99a; }
.fc-linha { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: 10px; font-size: 14px; }
.fc-rotulo { color: #91a99a; }
.fc-valor, .fc-texto { margin: 0; overflow-wrap: anywhere; line-height: 1.45; }
@media (max-width: 768px) {
  .ficha-dialog { position: fixed; inset: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .fc-barra { padding-top: max(12px, calc(env(safe-area-inset-top) + 6px)); }
  .fc-corpo { padding-bottom: max(24px, calc(env(safe-area-inset-bottom) + 14px)); }
  .fc-linha { grid-template-columns: 1fr; gap: 2px; }
}
.fc-temp { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }
.fc-form { display: grid; gap: 10px; }
.fc-campo { display: grid; gap: 4px; font-size: 13px; color: #91a99a; }
.fc-campo input, .fc-campo select { min-height: 44px; padding: 0 12px; border: 1px solid rgba(182, 218, 197, .25); border-radius: 10px; background: #0b1714; color: #eaf4ef; font: inherit; font-size: 16px; }
.fc-aviso-forte { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(245, 158, 11, .12); color: #fbbf69; font-size: 13px; line-height: 1.4; }
.fc-botao-quieto { border-color: rgba(182, 218, 197, .25); background: transparent; color: #aac2b3; }
.fc-botao[hidden], .fc-form[hidden] { display: none; }
.fc-botao:disabled { opacity: .6; }
