/* Base e componentes globais. O resto do layout usa estilo inline, igual ao protótipo. */

body {
  margin: 0;
  background: #f5f4f7;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  color: #17161a;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

a { color: #8b2fc0; text-decoration: none; }
a:hover { color: #6f209c; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(23, 22, 26, .16); border-radius: 6px; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #c07ce0;
  outline-offset: 2px;
}

/* ---------- estados de painel ---------- */

.estado { padding: 26px 16px; text-align: center; color: #9a99a2; font-size: 12px; line-height: 1.6; }
.estado .titulo-estado { font-size: 13px; color: #17161a; margin-bottom: 5px; font-weight: 600; }

/* ---------- modal ---------- */

.modal-fundo {
  position: fixed;
  inset: 0;
  background: rgba(23, 22, 26, .38);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}

.modal {
  background: #fff;
  border-radius: 12px;
  width: 420px;
  max-width: 100%;
  max-height: 90vh;
  overflow: auto;
  padding: 18px;
  box-shadow: 0 12px 40px rgba(23, 22, 26, .22);
}

.modal-titulo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.2px;
  margin-bottom: 14px;
}

.modal-acoes { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }

.campo { margin-bottom: 11px; }

.campo label {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9a99a2;
  margin-bottom: 5px;
}

.campo input,
.campo select,
.campo textarea {
  width: 100%;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
  color: #17161a;
  padding: 8px 11px;
  border-radius: 9px;
  border: 1px solid rgba(23, 22, 26, .14);
  background: #fff;
  outline: none;
  resize: vertical;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus { border-color: #a445d9; }

.botao {
  border: 1px solid rgba(23, 22, 26, .14);
  background: #fff;
  color: #17161a;
  border-radius: 8px;
  padding: 7px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.botao:hover { background: #f5f4f7; }
.botao.primario { background: #a445d9; border-color: #a445d9; color: #fff; font-weight: 600; }
.botao.primario:hover { background: #8b2fc0; }

/* ---------- avisos ---------- */

.toast-area {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 60;
}

.toast {
  background: #141318;
  color: #f5f4f7;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 12.5px;
  box-shadow: 0 6px 20px rgba(23, 22, 26, .22);
  max-width: 320px;
}
.toast.erro { background: #d95050; }
.toast.ok { background: #1c6e51; }

/* ============================================================
   Aba Mensagens — layout arejado em tres colunas.
   Esta aba usa classes em vez de estilo inline: a tela tem
   variacao de estado demais (abas, painel, filtros) para
   caber legivel em atributos style.
   ============================================================ */

/* Filho direto de <main>, que e flex column. height:100% aqui nao resolve
   de forma confiavel; flex:1 + min-height:0 preenche e deixa rolar dentro. */
.msg-tela { display: flex; flex: 1; min-height: 0; width: 100%; }

.so-leitor {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- coluna 1: conversas ---------- */

.msg-conversas {
  flex: none;
  width: 372px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 26px 0 0 32px;
  background: #fff;
}

.msg-busca {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 32px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(23, 22, 26, .07);
}
.msg-busca svg { flex: none; color: #a3a2ab; }
.msg-busca input {
  flex: 1; min-width: 0;
  font-family: inherit; font-size: 14.5px; color: #17161a;
  background: transparent; border: 0; outline: none; padding: 5px 0;
}
.msg-busca input::placeholder { color: #a3a2ab; }
.msg-busca:focus-within { border-bottom-color: #a445d9; }

.msg-filtros { flex: none; margin: 18px 32px 18px 0; }
.msg-campo { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 12px; }
.msg-campo label { font-size: 13.5px; color: #6b6a72; }

.msg-lista { flex: 1; min-height: 0; overflow-y: auto; padding: 0 32px 32px 0; }

.msg-conversa {
  all: unset;
  cursor: pointer;
  /* Rosto de um lado, texto do outro. Grid único com o avatar cruzando as duas
     linhas fazia a foto (34px) esticar a linha do nome e descolar a prévia. */
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px;
  margin-left: -14px;
  border-radius: 10px;
  width: calc(100% + 14px);
  box-sizing: border-box;
  text-align: left;
}

.msg-conversa-texto {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  column-gap: 14px;
}
.msg-conversa:hover { background: rgba(23, 22, 26, .03); }
.msg-conversa[aria-current="true"] { background: rgba(164, 69, 217, .07); }

.msg-conversa .nome {
  display: block; grid-column: 1; font-size: 14.5px; font-weight: 500; letter-spacing: -.1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.msg-conversa .previa {
  display: block; grid-column: 1; margin-top: 3px;
  font-size: 13.5px; color: #6b6a72;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.msg-conversa .quando {
  font-family: "IBM Plex Mono", monospace; font-size: 12.5px;
  color: #a3a2ab; font-variant-numeric: tabular-nums;
}
.msg-conversa .quando.atrasado { color: #b53c3c; }

/* ---------- coluna 2: conversa ---------- */

.msg-aberta {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; min-height: 0;
  border-left: 1px solid rgba(23, 22, 26, .07);
  padding: 26px 0 0;
  background: #fff;
}

.msg-cabecalho {
  flex: none; display: flex; align-items: flex-start; gap: 18px;
  padding: 0 40px 20px;
  width: 100%; max-width: 1080px; margin: 0 auto;
}
.msg-cabecalho .nome {
  font-family: "Space Grotesk", sans-serif;
  font-size: 19px; font-weight: 500; letter-spacing: -.3px;
}
.msg-cabecalho .sobre { margin-top: 4px; font-size: 13.5px; color: #6b6a72; }
.msg-cabecalho .fone {
  font-family: "IBM Plex Mono", monospace; font-size: 12.5px;
  color: #a3a2ab; margin-left: 12px;
}

.msg-info {
  all: unset; cursor: pointer; margin-left: auto; flex: none;
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; color: #a3a2ab;
}
.msg-info:hover { background: rgba(23, 22, 26, .05); color: #6b6a72; }
.msg-info[aria-expanded="true"] { background: rgba(164, 69, 217, .07); color: #a445d9; }

/* Sem teto, entrada e saida encostam nas bordas opostas e abrem um vao morto
   no meio em telas largas. O teto e generoso: preenche, mas mantem a conversa
   legivel como uma coluna. */
.msg-historico {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 6px 40px 16px;
  width: 100%; max-width: 1080px; margin: 0 auto;
}

.msg-dia { margin: 22px 0 16px; font-size: 12.5px; color: #a3a2ab; text-align: center; }
.msg-dia:first-child { margin-top: 0; }

/* O balao encolhe ate o texto: `max-width` sozinho fazia "Ok" ocupar 520px,
   e a conversa virava uma pilha de lajes do mesmo tamanho. */
.msg-balao { width: fit-content; max-width: min(62%, 520px); margin-bottom: 14px; }
.msg-balao.saida { margin-left: auto; }
.msg-balao .texto { padding: 11px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.55; }
.msg-balao.entrada .texto { background: #f6f5f8; border-bottom-left-radius: 5px; }
.msg-balao.saida .texto { background: rgba(164, 69, 217, .08); border-bottom-right-radius: 5px; }
.msg-balao .hora {
  margin-top: 5px; font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px; color: #a3a2ab; font-variant-numeric: tabular-nums;
}
.msg-balao.saida .hora { text-align: right; }

.msg-responder {
  flex: none; margin-top: auto;
  border-top: 1px solid rgba(23, 22, 26, .07);
  padding: 14px 40px 22px;
  display: flex; gap: 10px; align-items: center;
  width: 100%; max-width: 1080px; margin-left: auto; margin-right: auto;
}
.msg-responder textarea {
  flex: 1; min-width: 0; resize: none;
  font-family: inherit; font-size: 14.5px; line-height: 1.5;
  color: #17161a; background: transparent;
  border: 0; outline: none; padding: 8px 0;
}
.msg-responder textarea::placeholder { color: #a3a2ab; }
.msg-enviar {
  all: unset; cursor: pointer; flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: #a445d9; color: #fff;
}
.msg-enviar:hover { background: #9538c9; }

/* ---------- coluna 3: painel do lead ---------- */

.msg-lead {
  flex: none; width: 396px;
  display: flex; flex-direction: column; min-height: 0;
  border-left: 1px solid rgba(23, 22, 26, .07);
  padding: 26px 0 0;
  background: #fff;
}

.msg-lead-topo { flex: none; display: flex; align-items: flex-start; padding: 0 18px 0 26px; }
.msg-lead-topo h2 {
  margin: 0; font-family: "Space Grotesk", sans-serif;
  font-size: 17px; font-weight: 500; letter-spacing: -.2px;
}
.msg-lead-topo .empresa { margin-top: 3px; font-size: 13px; color: #6b6a72; }
.msg-fechar {
  all: unset; cursor: pointer; margin-left: auto; flex: none;
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; color: #a3a2ab;
}
.msg-fechar:hover { background: rgba(23, 22, 26, .05); }

.msg-acoes { flex: none; display: flex; gap: 8px; padding: 15px 26px 16px; }
.msg-acao {
  all: unset; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: #6b6a72;
  padding: 6px 11px; border-radius: 8px;
  border: 1px solid rgba(23, 22, 26, .13);
}
.msg-acao:hover { border-color: #a3a2ab; color: #17161a; }

.msg-abas {
  flex: none; display: flex; gap: 16px; padding: 0 26px;
  border-bottom: 1px solid rgba(23, 22, 26, .07);
  overflow-x: auto; scrollbar-width: none;
}
.msg-abas::-webkit-scrollbar { display: none; }
.msg-aba {
  all: unset; cursor: pointer; flex: none;
  font-size: 13.5px; color: #a3a2ab;
  padding: 0 0 11px; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.msg-aba:hover { color: #6b6a72; }
.msg-aba[aria-selected="true"] { color: #17161a; border-bottom-color: #a445d9; }

.msg-lead-corpo { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 26px 32px; }

.msg-secao { margin-bottom: 26px; }
.msg-secao:last-child { margin-bottom: 0; }
.msg-secao > h3 { margin: 0 0 12px; font-size: 13.5px; font-weight: 500; color: #6b6a72; }

.msg-dados { display: grid; grid-template-columns: 88px 1fr; gap: 9px 14px; font-size: 13.5px; margin: 0; }
.msg-dados dt { color: #a3a2ab; }
.msg-dados dd { margin: 0; }
.msg-dados dd.mono { font-family: "IBM Plex Mono", monospace; font-size: 12.5px; }
.msg-dados dd .ponto { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 7px; }

.msg-botoes { display: flex; flex-wrap: wrap; gap: 8px; }
.msg-mais {
  all: unset; cursor: pointer; font-size: 12.5px; color: #6b6a72;
  padding: 5px 11px; border-radius: 7px; border: 1px solid rgba(23, 22, 26, .13);
}
.msg-mais:hover { color: #17161a; border-color: #a3a2ab; }

.msg-etapa { display: grid; grid-template-columns: 15px 1fr auto; gap: 12px; align-items: start; }
.msg-etapa .trilho { display: flex; flex-direction: column; align-items: center; height: 100%; }
.msg-etapa .bolinha {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1.5px solid rgba(23, 22, 26, .13); background: #fff; margin-top: 5px;
}
.msg-etapa.passou .bolinha { background: #a445d9; border-color: #a445d9; }
.msg-etapa.agora .bolinha { background: #fff; border-color: #a445d9; border-width: 3px; }
.msg-etapa .fio { flex: 1; width: 1.5px; background: rgba(23, 22, 26, .07); min-height: 18px; }
.msg-etapa.passou .fio { background: rgba(164, 69, 217, .35); }
.msg-etapa:last-child .fio { display: none; }
.msg-etapa .rotulo { font-size: 13.5px; padding-bottom: 13px; }
.msg-etapa.agora .rotulo { font-weight: 500; }
.msg-etapa .data-etapa { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; color: #a3a2ab; }

.msg-nota { margin-bottom: 16px; }
.msg-nota:last-child { margin-bottom: 0; }
.msg-nota p { margin: 0; font-size: 13.5px; line-height: 1.55; }
.msg-nota .assina { margin-top: 4px; font-size: 12px; color: #a3a2ab; }

.msg-tarefa { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 14px; }
.msg-tarefa:last-child { margin-bottom: 0; }
.msg-tarefa .caixa {
  flex: none; margin-top: 2px; width: 16px; height: 16px;
  border-radius: 5px; border: 1.5px solid rgba(23, 22, 26, .13);
  display: grid; place-items: center; color: #fff; font-size: 9px;
}
.msg-tarefa.feita .caixa { background: #a445d9; border-color: #a445d9; }
.msg-tarefa .oque { display: block; font-size: 13.5px; }
.msg-tarefa.feita .oque { color: #a3a2ab; text-decoration: line-through; }
.msg-tarefa .prazo { display: block; margin-top: 2px; font-size: 12px; color: #a3a2ab; }
.msg-tarefa .prazo.atrasado { color: #b53c3c; }

.msg-lista::-webkit-scrollbar,
.msg-historico::-webkit-scrollbar,
.msg-lead-corpo::-webkit-scrollbar { width: 6px; }
.msg-lista::-webkit-scrollbar-thumb,
.msg-historico::-webkit-scrollbar-thumb,
.msg-lead-corpo::-webkit-scrollbar-thumb { background: rgba(23, 22, 26, .14); border-radius: 3px; }

/* Abaixo disto as tres colunas nao cabem com folga: o painel do lead sai
   e volta pelo icone quando a janela cresce. */
@media (max-width: 1080px) {
  .msg-lead { display: none; }
}

@media (max-width: 1360px) {
  .msg-conversas { width: 310px; padding-left: 24px; }
  .msg-busca, .msg-filtros { margin-right: 24px; }
  .msg-lista { padding-right: 24px; }
  .msg-cabecalho, .msg-historico, .msg-responder { padding-left: 28px; padding-right: 28px; }
  .msg-lead { width: 330px; }
  .msg-lead-topo, .msg-acoes, .msg-abas, .msg-lead-corpo { padding-left: 20px; padding-right: 20px; }
}

/* ---------- seletor de pessoas ----------
   O `<option>` nativo nao aceita estilo no Chrome/Windows: a lista abria com a
   moldura cinza do sistema no meio de uma coluna que so usa sublinhado. Este e
   o substituto — mesmo gatilho de antes, lista propria com a cor de cada pessoa. */

.seletor { position: relative; }

.seletor-gatilho {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  cursor: pointer;
  font-size: 14.5px;
  color: #17161a;
  padding: 5px 22px 5px 0;
  border-bottom: 1px solid rgba(23, 22, 26, .07);
  background-image: linear-gradient(45deg, transparent 50%, #a3a2ab 50%),
                    linear-gradient(135deg, #a3a2ab 50%, transparent 50%);
  background-position: right 7px center, right 2px center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.seletor-gatilho:hover { border-bottom-color: #a3a2ab; }
.seletor-gatilho:focus-visible { outline: 2px solid #c07ce0; outline-offset: 3px; border-radius: 3px; }
.seletor-gatilho[aria-expanded="true"] { border-bottom-color: #a445d9; }
.seletor-gatilho .seletor-nome {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* O disco de cor e o mesmo do resto do CRM: a cor identifica a pessoa. */
.seletor-disco {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-size: 9.5px; font-weight: 600; letter-spacing: .02em;
}
.seletor-disco.todos {
  background: transparent;
  color: #a3a2ab;
  box-shadow: inset 0 0 0 1px rgba(23, 22, 26, .14);
}
.seletor-opcao[aria-selected="true"] .seletor-disco.todos { color: #a445d9; }

.seletor-lista {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  max-height: 300px;
  overflow-y: auto;
  margin: 0;
  padding: 5px;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(23, 22, 26, .09);
  border-radius: 11px;
  box-shadow: 0 2px 5px rgba(23, 22, 26, .05), 0 14px 34px rgba(23, 22, 26, .13);
  animation: seletor-entra .12s ease-out;
}
@keyframes seletor-entra {
  from { opacity: 0; transform: translateY(-2px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .seletor-lista { animation: none; }
}

.seletor-opcao {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13.5px;
  color: #17161a;
  white-space: nowrap;
}
.seletor-opcao .seletor-texto { flex: 1; min-width: 0; }
.seletor-opcao .seletor-papel {
  display: block;
  font-size: 11.5px;
  color: #9a99a2;
}
.seletor-opcao .seletor-marca { flex: none; width: 13px; color: #a445d9; opacity: 0; }
.seletor-opcao[aria-selected="true"] { color: #7d21b0; }
.seletor-opcao[aria-selected="true"] .seletor-marca { opacity: 1; }
.seletor-opcao[data-ativa="true"] { background: rgba(164, 69, 217, .1); }
/* Variante de cabecalho: o mesmo seletor, na altura de um botao de acao.
   O campo de formulario quer linha de base; a barra de ferramentas quer volume. */
.seletor--compacto .seletor-gatilho {
  gap: 7px;
  width: auto;
  font-size: 11.5px;
  padding: 4px 22px 4px 5px;
  border: 1px solid rgba(23, 22, 26, .14);
  border-radius: 9px;
  background-color: #fff;
  background-position: right 8px center, right 3px center;
}
.seletor--compacto .seletor-gatilho:hover { border-color: #a3a2ab; }
.seletor--compacto .seletor-gatilho[aria-expanded="true"] { border-color: #a445d9; }
.seletor--compacto .seletor-gatilho:focus-visible { outline-offset: 2px; border-radius: 9px; }
.seletor--compacto .seletor-disco { width: 19px; height: 19px; font-size: 8.5px; }
.seletor--compacto .seletor-nome { flex: 0 1 auto; max-width: 130px; }
/* Ancorar a direita: o gatilho vive no canto do cabecalho. */
.seletor--compacto .seletor-lista { left: auto; right: 0; min-width: 232px; }

/* A carga de cada pessoa. Mesmo tratamento dos KPIs logo acima, para a lista
   e o cabecalho lerem como uma coisa so. */
.seletor-meta {
  flex: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: #6b6a72;
  padding-left: 10px;
}
.seletor-opcao[aria-selected="true"] .seletor-meta { color: #7d21b0; }

.seletor-lista::-webkit-scrollbar { width: 6px; }
.seletor-lista::-webkit-scrollbar-thumb { background: rgba(23, 22, 26, .14); border-radius: 3px; }

/* ============================================================
   Tela do lead — abre ao clicar num contato.
   Estrutura inspirada na timeline de lead do Meetime: cabecalho
   com dados e acoes, faixa de progresso da cadencia com
   contadores, e historico cronologico filtravel por tipo.
   ============================================================ */

.lead-tela {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: #fff;
}

/* ---------- cabecalho ---------- */

.lead-topo {
  flex: none;
  padding: 20px 40px 0;
  border-bottom: 1px solid rgba(23, 22, 26, .07);
}

.lead-voltar {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #6b6a72;
  margin-bottom: 16px;
}
.lead-voltar:hover { color: #17161a; }

.lead-identidade { display: flex; align-items: flex-start; gap: 16px; }

.lead-avatar {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(164, 69, 217, .12);
  color: #7d21b0;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 600;
}

.lead-nome {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px; font-weight: 500; letter-spacing: -.4px;
}
.lead-empresa { margin-top: 2px; font-size: 14px; color: #6b6a72; }

.lead-contatos { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 18px; font-size: 13.5px; color: #6b6a72; }
.lead-contatos .mono { font-family: "IBM Plex Mono", monospace; font-size: 12.5px; color: #a3a2ab; }
.lead-contatos .dono { display: inline-flex; align-items: center; gap: 6px; }
.lead-contatos .ponto { width: 7px; height: 7px; border-radius: 2px; display: inline-block; }

.lead-acoes { margin-left: auto; display: flex; gap: 8px; flex: none; }
.lead-acao {
  all: unset; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: #6b6a72;
  padding: 7px 13px; border-radius: 8px;
  border: 1px solid rgba(23, 22, 26, .13);
}
.lead-acao:hover { border-color: #a3a2ab; color: #17161a; }
.lead-acao.forte { background: #a445d9; border-color: #a445d9; color: #fff; }
.lead-acao.forte:hover { background: #9538c9; }

/* ---------- progresso da cadencia ---------- */

.lead-progresso { margin-top: 22px; }

.lead-barra { display: flex; gap: 4px; }
.lead-barra span {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(23, 22, 26, .09);
}
.lead-barra span.feito { background: #a445d9; }
.lead-barra span.atual { background: rgba(164, 69, 217, .45); }

.lead-etapa-atual {
  margin-top: 9px;
  font-size: 13px;
  color: #6b6a72;
}
.lead-etapa-atual b { color: #17161a; font-weight: 500; }

.lead-contadores { display: flex; gap: 34px; margin: 18px 0 0; padding-bottom: 18px; }
.lead-contador .numero {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px; font-weight: 500; letter-spacing: -.4px;
  line-height: 1.2;
}
.lead-contador .rotulo { display: block; margin-top: 1px; font-size: 12.5px; color: #a3a2ab; }
.lead-contador.destaque .numero { color: #a445d9; }

/* ---------- filtros da timeline ---------- */

.lead-filtros {
  flex: none;
  display: flex;
  gap: 18px;
  padding: 0 40px;
  border-bottom: 1px solid rgba(23, 22, 26, .07);
  overflow-x: auto;
  scrollbar-width: none;
}
.lead-filtros::-webkit-scrollbar { display: none; }

.lead-rotulo-historico {
  flex: none;
  align-self: center;
  font-size: 13.5px;
  font-weight: 500;
  color: #17161a;
  margin-right: 8px;
}

.lead-filtro {
  all: unset;
  cursor: pointer;
  flex: none;
  font-size: 13.5px;
  color: #a3a2ab;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.lead-filtro:hover { color: #6b6a72; }
.lead-filtro[aria-selected="true"] { color: #17161a; border-bottom-color: #a445d9; }

/* ---------- timeline ---------- */

.lead-timeline {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 40px 40px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}
.lead-timeline::-webkit-scrollbar { width: 6px; }
.lead-timeline::-webkit-scrollbar-thumb { background: rgba(23, 22, 26, .14); border-radius: 3px; }

.lead-evento {
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 16px;
}

.lead-trilho { display: flex; flex-direction: column; align-items: center; }
.lead-marca {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #f6f5f8;
  color: #6b6a72;
}
.lead-marca.chamada  { background: rgba(60, 143, 217, .12);  color: #2b6fa8; }
.lead-marca.mensagem { background: rgba(63, 191, 143, .14);  color: #1c6e51; }
.lead-marca.email    { background: rgba(217, 138, 69, .14);  color: #8a4c14; }
.lead-marca.nota     { background: rgba(164, 69, 217, .12);  color: #7d21b0; }

.lead-fio { flex: 1; width: 1.5px; background: rgba(23, 22, 26, .08); min-height: 14px; }
.lead-evento:last-child .lead-fio { display: none; }

.lead-corpo-evento { padding-bottom: 26px; min-width: 0; }
.lead-evento:last-child .lead-corpo-evento { padding-bottom: 0; }

.lead-titulo-evento { font-size: 14.5px; font-weight: 500; }
.lead-quando {
  margin-top: 3px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: #a3a2ab;
}
.lead-detalhe {
  margin-top: 9px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #3c3b42;
  background: #f9f8fa;
  border-radius: 10px;
  padding: 10px 13px;
}
.lead-etiquetas { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.lead-etiqueta {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(23, 22, 26, .05);
  color: #6b6a72;
}
.lead-etiqueta.entrada { background: rgba(63, 191, 143, .13); color: #1c6e51; }
.lead-etiqueta.saida { background: rgba(164, 69, 217, .10); color: #7d21b0; }

@media (max-width: 1100px) {
  .lead-topo, .lead-filtros, .lead-timeline { padding-left: 26px; padding-right: 26px; }
  .lead-acoes { width: 100%; margin-left: 0; margin-top: 14px; }
  .lead-identidade { flex-wrap: wrap; }
}

/* Faixa da janela de 24 h — a regra da Meta que decide o que dá para escrever. */
.msg-janela {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 20px; font-size: 12px; font-weight: 500;
}
.msg-janela:empty { display: none; }
.msg-janela button {
  all: unset; cursor: pointer; font-weight: 600; font-size: 11.5px;
  text-decoration: underline; white-space: nowrap;
}
.msg-balao .hora .via {
  margin-left: 7px; padding: 1px 5px; border-radius: 4px;
  background: rgba(23, 22, 26, .06); font-size: 9.5px; letter-spacing: .04em;
}

/* Rosto do contato. A foto vem do número não-oficial; o oficial não a expõe. */
.msg-cabecalho { display: flex; align-items: center; gap: 12px; }
.msg-cabecalho > div:first-of-type { flex: 1; min-width: 0; }

/* ============================================================
   Dashboard principal — geometria espelhada da tela de metas do
   Meetime (Visao geral · Ranking · Insights), com a paleta do CRM.
   ============================================================ */

/* Medidas tiradas da tela de referencia com getComputedStyle, nao a olho:
   fundo #f5f5f5, Fira Sans, titulo 21px/500/-0.315px, numero grande
   65px/900/-0.975px, numero de cartao 45px/900, texto #333 e #444. */
.dash {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: #f5f5f5;
  padding: 26px 30px 44px;
  font-family: "Fira Sans", "IBM Plex Sans", system-ui, sans-serif;
  color: #333;
}
.dash::-webkit-scrollbar { width: 8px; }
.dash::-webkit-scrollbar-thumb { background: rgba(23,22,26,.16); border-radius: 4px; }

.dash-secao { max-width: 1250px; margin: 0 auto 26px; }
.dash-secao:last-child { margin-bottom: 0; }

.dash-titulo-linha {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.dash-titulo {
  font-family: "Fira Sans", sans-serif;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -.315px;
  line-height: 31.5px;
  color: #333;
  margin: 0;
}
.dash-controles { margin-left: auto; display: flex; align-items: center; gap: 16px; }

.dash-periodo {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #3c3b42;
}
.dash-periodo svg { color: #a445d9; }

.dash-pilula {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: #3c3b42;
}
.dash-pilula .bolinha { width: 7px; height: 7px; border-radius: 50%; background: #a445d9; }

.dash-editar {
  all: unset; cursor: pointer;
  font-size: 13px; font-weight: 500; color: #a445d9;
  padding: 7px 16px; border-radius: 20px;
  border: 1px solid #a445d9;
}
.dash-editar:hover { background: rgba(164,69,217,.07); }

.dash-cartao {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
}

/* ---------- visao geral ---------- */

.dash-geral { display: flex; gap: 30px; padding: 26px 30px; align-items: flex-start; }

.dash-geral-esquerda { flex: none; width: 330px; }

.dash-numerao {
  font-family: "Fira Sans", sans-serif;
  font-size: 65px; font-weight: 900;
  line-height: 97.5px; letter-spacing: -.975px;
  color: #333;
}
.dash-numerao-rotulo {
  margin-top: 2px; font-size: 16px; color: #444;
  letter-spacing: -.24px; line-height: 24px;
}

.dash-meta-linha { display: flex; gap: 13px; margin-top: 22px; align-items: flex-start; }
.dash-meta-icone {
  flex: none; width: 38px; height: 38px; border-radius: 8px;
  background: #f2f1f5; color: #a445d9;
  display: grid; place-items: center;
}
.dash-meta-texto { font-size: 13px; color: #6b6a72; line-height: 1.55; }
.dash-meta-texto b { color: #17161a; font-weight: 600; }
.dash-meta-texto .verde { color: #1c6e51; font-weight: 600; }
.dash-meta-texto .vermelho { color: #b53c3c; font-weight: 600; }

.dash-grafico { flex: 1; min-width: 0; }
.dash-legenda {
  display: flex; justify-content: center; gap: 22px;
  margin-top: 8px; font-size: 12px; color: #6b6a72;
}
.dash-legenda span { display: inline-flex; align-items: center; gap: 6px; }
.dash-legenda .chave { width: 11px; height: 11px; border-radius: 2px; }
.dash-legenda .risco { width: 14px; height: 2px; background: #c9c8ce; }

/* ---------- ranking ---------- */

.dash-tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.dash-rank { display: flex; flex-direction: column; }
.dash-rank-topo { padding: 14px 18px; }
.dash-rank-titulo {
  font-size: 15px; font-weight: 500;
  letter-spacing: -.225px; line-height: 22.5px; color: #444;
}

.dash-rank-centro { padding: 4px 18px 16px; text-align: center; }
.dash-rank-icone {
  width: 52px; height: 52px; border-radius: 50%;
  background: #f2f1f5; color: #a445d9;
  display: grid; place-items: center; margin: 6px auto 14px;
}
.dash-rank-numero {
  font-family: "Fira Sans", sans-serif;
  font-size: 45px; font-weight: 900;
  letter-spacing: -.675px; line-height: 1.1; color: #333;
}

.dash-rank-meta {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 14px; font-size: 12.5px; color: #6b6a72;
}
.dash-rank-meta .divisor { width: 1px; height: 14px; background: rgba(23,22,26,.14); }
.dash-rank-meta .subiu { color: #1c6e51; font-weight: 600; }
.dash-rank-meta .caiu { color: #b53c3c; font-weight: 600; }
.dash-rank-meta .alvo b { color: #1c6e51; }

.dash-rank-tabela { border-top: 1px solid rgba(23,22,26,.08); padding: 12px 18px 6px; }

.dash-rank-cabecalho {
  display: grid; grid-template-columns: 1fr 62px 62px;
  gap: 8px; font-size: 11.5px; color: #9a99a2; margin-bottom: 8px; text-align: right;
}
.dash-rank-cabecalho span:first-child { text-align: left; }

.dash-rank-linha {
  display: grid; grid-template-columns: 1fr 62px 62px;
  gap: 8px; align-items: center; padding: 7px 0; font-size: 13px; text-align: right;
}
.dash-rank-linha .pessoa {
  display: flex; align-items: center; gap: 9px; min-width: 0; text-align: left;
}
.dash-rank-linha .avatar {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  color: #fff; display: grid; place-items: center;
  font-size: 9.5px; font-weight: 600;
}
.dash-rank-linha .nome {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px;
}
.dash-rank-linha .num { font-family: "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums; }
.dash-rank-linha .fraco { color: #9a99a2; }

.dash-rank-rodape {
  margin-top: auto;
  border-top: 1px solid rgba(23,22,26,.08);
  padding: 12px 18px;
  display: flex; align-items: center; gap: 10px;
}
.dash-rank-rodape .rotulo { font-size: 12.5px; line-height: 1.4; }
.dash-rank-rodape .rotulo b { display: block; color: #a445d9; font-weight: 500; }
.dash-rank-rodape .rotulo span { color: #9a99a2; }
.dash-rank-rodape .valor {
  margin-left: auto;
  font-family: "Fira Sans", sans-serif;
  font-size: 19px; font-weight: 700; color: #a445d9;
}

/* ---------- insights ---------- */

.dash-dois { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.dash-painel-topo {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px 4px;
}
.dash-painel-titulo {
  font-size: 15px; font-weight: 500;
  letter-spacing: -.225px; color: #444;
}
.dash-painel-topo .canto { margin-left: auto; font-size: 12.5px; color: #6b6a72; }

.dash-barras { padding: 14px 18px 20px; }
.dash-barra-linha {
  display: grid; grid-template-columns: 150px 1fr auto;
  gap: 12px; align-items: center; margin-bottom: 13px;
}
.dash-barra-linha:last-child { margin-bottom: 0; }
.dash-barra-rotulo {
  font-size: 12.5px; color: #3c3b42; text-align: right;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dash-barra-trilho { height: 20px; background: #f5f4f7; border-radius: 3px; overflow: hidden; display: flex; }
.dash-barra-parte { height: 100%; }
.dash-barra-parte.perdeu { background: #e59aa2; }
.dash-barra-parte.ganhou { background: #3fbf8f; }
.dash-barra-parte.neutro { background: #c9a6e0; }
.dash-barra-valor {
  font-family: "IBM Plex Mono", monospace; font-size: 12px;
  color: #3c3b42; font-variant-numeric: tabular-nums; min-width: 42px;
}

.dash-vazio { padding: 30px 18px; text-align: center; font-size: 12.5px; color: #9a99a2; line-height: 1.6; }

@media (max-width: 1180px) {
  .dash-tres, .dash-dois { grid-template-columns: 1fr; }
  .dash-geral { flex-direction: column; }
  .dash-geral-esquerda { width: auto; }
  .dash-grafico { width: 100%; }
}

/* ---------- menu do perfil (navbar) ----------
   Cartao claro, e nao escuro como a barra: e o mesmo idioma de popover do
   `.seletor`. Um segundo estilo de flutuante so faria o app parecer dois apps. */
.perfil { position: relative; flex: none; }

.perfil-gatilho {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 9px;
  border-radius: 10px;
  background: rgba(245, 244, 247, .06);
  transition: background .15s ease;
}
.perfil-gatilho:hover { background: rgba(245, 244, 247, .12); }
.perfil-gatilho[aria-expanded="true"] { background: rgba(164, 69, 217, .28); }
.perfil-gatilho:focus-visible { outline: 2px solid #c07ce0; outline-offset: 2px; }

.perfil-disco {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-size: 11px; font-weight: 600;
  flex: none;
}
.perfil-texto { min-width: 0; line-height: 1.25; text-align: left; }
.perfil-nome {
  font-size: 12px; font-weight: 500; color: #f5f4f7;
  white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis;
}
.perfil-papel { font-size: 10.5px; color: rgba(245, 244, 247, .45); }
.perfil-seta {
  flex: none;
  color: rgba(245, 244, 247, .45);
  transition: transform .16s cubic-bezier(.4, 0, .2, 1);
}
.perfil-gatilho[aria-expanded="true"] .perfil-seta { transform: rotate(180deg); }

.perfil-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  right: 0;
  min-width: 236px;
  padding: 5px;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(23, 22, 26, .09);
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(23, 22, 26, .05), 0 14px 34px rgba(23, 22, 26, .16);
  animation: perfil-entra .12s ease-out;
}
@keyframes perfil-entra {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .perfil-menu { animation: none; }
  .perfil-seta { transition: none; }
}

/* Cabecalho do menu: a unica tela onde o e-mail da conta aparece. Num CRM que
   varias pessoas usam, "em que conta eu estou?" e pergunta real. */
.perfil-cabeca {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 11px;
  border-bottom: 1px solid rgba(23, 22, 26, .07);
  margin-bottom: 5px;
}
.perfil-cabeca .perfil-disco { width: 32px; height: 32px; font-size: 12px; }
.perfil-cabeca b {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 600; color: #17161a;
}
/* Classe propria, e nao `.perfil-cabeca span`: aquele seletor tem especificidade
   maior que `.perfil-disco` e roubava a cor e a centralizacao do avatar. */
.perfil-email {
  display: block;
  font-size: 11.5px; color: #9a99a2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 172px;
}

.perfil-item {
  /* E um <button>: sem o reset, a borda nativa desenha uma caixa em volta. */
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: #17161a;
  cursor: pointer;
}
.perfil-item svg { flex: none; color: #6b6a72; }
.perfil-item:hover,
.perfil-item[data-ativo="true"] { background: rgba(164, 69, 217, .1); }
/* O foco vive no item ativo, entao o anel do navegador seria um segundo
   indicador dizendo a mesma coisa. */
.perfil-item:focus { outline: none; }
.perfil-item:focus-visible { outline: 2px solid #c07ce0; outline-offset: -2px; }
.perfil-item.perigo { color: #c93f57; }
.perfil-item.perigo svg { color: #c93f57; }
.perfil-item.perigo:hover,
.perfil-item.perigo[data-ativo="true"] { background: rgba(201, 63, 87, .1); }
.perfil-separador {
  height: 1px;
  margin: 5px 0;
  background: rgba(23, 22, 26, .07);
}

/* ---------- controles interativos do topo ---------- */

.dash-controle {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #333;
  padding: 4px 2px;
}
.dash-controle:hover { color: #a445d9; }
.dash-controle .bolinha { width: 7px; height: 7px; border-radius: 50%; background: #a445d9; }
.dash-controle .seta { font-size: 9px; color: #999; }
.dash-controle svg { color: #a445d9; }

.dash-mes { display: inline-flex; align-items: center; gap: 4px; }
.dash-mes-nav {
  all: unset; cursor: pointer;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; color: #999; font-size: 13px;
}
.dash-mes-nav:hover { background: rgba(23,22,26,.06); color: #333; }

/* menu suspenso de selecao multipla */
.dash-menu {
  position: absolute;
  z-index: 40;
  min-width: 270px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  box-shadow: 0 6px 22px rgba(23,22,26,.14);
  padding: 10px 0 6px;
}
.dash-menu-busca {
  display: flex; align-items: center; gap: 8px;
  margin: 0 12px 10px; padding-bottom: 7px;
  border-bottom: 1px solid #eee;
}
.dash-menu-busca svg { color: #999; flex: none; }
.dash-menu-busca input {
  flex: 1; min-width: 0; border: 0; outline: none;
  font-family: inherit; font-size: 13px; color: #333; background: transparent;
}
.dash-menu-acoes {
  display: flex; align-items: center; gap: 10px;
  padding: 0 12px 8px; font-size: 13px;
}
.dash-menu-acoes .limpar {
  all: unset; cursor: pointer; margin-left: auto; color: #a445d9; font-size: 13px;
}
.dash-menu-item {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 12px; font-size: 13px; color: #333; cursor: pointer;
}
.dash-menu-item:hover { background: #faf9fb; }
.dash-menu-item input { accent-color: #a445d9; width: 15px; height: 15px; cursor: pointer; }
.dash-menu-item .conta { margin-left: auto; font-size: 12px; color: #999; }
.dash-menu-item.forte { font-weight: 500; }

/* ---------- modal de metas ---------- */

.metas-fundo {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(23,22,26,.38);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px; overflow-y: auto;
}
.metas-caixa {
  width: 100%; max-width: 735px;
  background: #fff; border-radius: 4px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(23,22,26,.22);
}
.metas-topo {
  background: #a445d9; color: #fff;
  padding: 20px 26px 74px;
  display: flex; align-items: flex-start;
}
.metas-topo h2 {
  margin: 0; font-family: "Fira Sans", sans-serif;
  font-size: 19px; font-weight: 500; letter-spacing: -.285px;
}
.metas-fechar {
  all: unset; cursor: pointer; margin-left: auto;
  width: 26px; height: 26px; display: grid; place-items: center;
  color: #fff; opacity: .9; font-size: 17px;
}
.metas-fechar:hover { opacity: 1; }

.metas-corpo { padding: 0 26px 22px; margin-top: -58px; }

.metas-cartao {
  background: #fff; border: 1px solid #e6e6e6; border-radius: 4px;
  box-shadow: 0 2px 10px rgba(23,22,26,.07);
  margin-bottom: 22px;
}
.metas-alvo {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 18px 22px; border-bottom: 1px solid #eee;
}
.metas-alvo:last-child { border-bottom: 0; }
.metas-alvo .texto { flex: 1; min-width: 0; }
.metas-alvo .titulo { font-size: 14.5px; font-weight: 500; color: #333; }
.metas-alvo .ajuda { margin-top: 3px; font-size: 12.5px; color: #777; line-height: 1.5; }
.metas-alvo .campo { flex: none; position: relative; }
.metas-alvo input {
  width: 182px; box-sizing: border-box;
  font-family: "Fira Sans", sans-serif; font-size: 14px; font-weight: 600;
  color: #a445d9; text-align: left;
  padding: 9px 12px; border: 1px solid #ddd; border-radius: 3px; outline: none;
}
.metas-alvo input:focus { border-color: #a445d9; }
.metas-alvo .sufixo {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 13px; color: #999;
}

.metas-usuarios-topo {
  display: flex; align-items: center;
  font-size: 14.5px; font-weight: 500; color: #333; margin-bottom: 10px;
}
.metas-usuarios-lista {
  border: 1px solid #e6e6e6; border-radius: 4px; background: #fff;
  box-shadow: 0 2px 10px rgba(23,22,26,.07);
}
.metas-usuario {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; border-bottom: 1px solid #f0f0f0;
}
.metas-usuario:last-child { border-bottom: 0; }
.metas-usuario .avatar {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 600;
}
.metas-usuario .nome { flex: 1; min-width: 0; font-size: 14px; }
.metas-usuario .coluna { text-align: center; min-width: 68px; }
.metas-usuario .coluna .rot { display: block; font-size: 11.5px; color: #999; }
.metas-usuario .coluna .val {
  display: block; font-family: "IBM Plex Mono", monospace; font-size: 13px; color: #444;
}
.metas-usuario .coluna input {
  width: 62px; box-sizing: border-box; text-align: center;
  font-family: "Fira Sans", sans-serif; font-size: 13px; font-weight: 600; color: #a445d9;
  padding: 5px 4px; border: 1px solid #ddd; border-radius: 3px; outline: none;
}

.metas-estimativa { margin-top: 20px; }
.metas-estimativa .rotulo { font-size: 14px; font-weight: 500; color: #333; margin-bottom: 9px; }
.metas-estimativa .caixa {
  border: 1px solid #e6e6e6; border-radius: 4px; background: #fff;
  padding: 15px 18px; font-size: 13.5px; color: #444; line-height: 1.6;
}
.metas-estimativa b { color: #333; font-weight: 600; }

.metas-rodape {
  display: flex; align-items: center; justify-content: flex-end; gap: 18px;
  padding: 4px 26px 24px;
}
.metas-rodape .fechar-texto {
  all: unset; cursor: pointer; font-size: 14px; color: #666;
}
.metas-rodape .fechar-texto:hover { color: #333; }
.metas-rodape .salvar {
  all: unset; cursor: pointer;
  font-size: 14px; font-weight: 500; color: #fff;
  background: #a445d9; padding: 10px 20px; border-radius: 3px;
}
.metas-rodape .salvar:hover { background: #9538c9; }

/* ---------- insights: motivos de perda e tempo de resposta ---------- */

.dash-larga { grid-column: 1 / -1; }

.dash-perda { padding: 18px 22px 22px; }
.dash-perda-linha {
  display: grid; grid-template-columns: 130px 1fr 48px;
  gap: 12px; align-items: center; margin-bottom: 16px;
}
.dash-perda-linha:last-child { margin-bottom: 0; }
.dash-perda-rotulo { font-size: 12.5px; color: #444; text-align: right; }
.dash-perda-trilho { height: 26px; background: transparent; }
.dash-perda-barra { height: 100%; background: #e59aa2; border-radius: 2px; }
.dash-perda-pct { font-size: 12.5px; font-weight: 600; color: #333; }

.dash-eixo {
  display: flex; justify-content: space-between;
  margin: 4px 0 0 142px; font-size: 11px; color: #999;
}

.dash-resposta { display: flex; gap: 0; align-items: stretch; }
.dash-resposta-esq {
  flex: none; width: 46%;
  padding: 26px 22px; text-align: center;
  border-right: 1px solid #f0f0f0;
}
.dash-resposta-pct {
  font-family: "Fira Sans", sans-serif;
  font-size: 45px; font-weight: 900; letter-spacing: -.675px; color: #333;
}
.dash-resposta-sub { margin-top: 4px; font-size: 14px; color: #444; }
.dash-resposta-sub b { color: #a445d9; font-weight: 500; }
.dash-resposta-nota {
  margin-top: 14px; font-size: 12px; color: #999; line-height: 1.6;
  max-width: 330px; margin-left: auto; margin-right: auto;
}
.dash-resposta-dir { flex: 1; min-width: 0; padding: 18px 22px; }
.dash-resposta-cab {
  display: grid; grid-template-columns: 1fr 92px 100px;
  gap: 10px; font-size: 11.5px; color: #999; text-align: right; margin-bottom: 8px;
}
.dash-resposta-cab span:first-child { text-align: left; }
.dash-resposta-linha {
  display: grid; grid-template-columns: 1fr 92px 100px;
  gap: 10px; align-items: center; padding: 8px 0; font-size: 13px; text-align: right;
}
.dash-resposta-linha .pessoa { display: flex; align-items: center; gap: 9px; text-align: left; }
.dash-resposta-linha .avatar {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  color: #fff; display: grid; place-items: center; font-size: 9.5px; font-weight: 600;
}
.dash-resposta-linha .num { font-family: "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums; }
.dash-resposta-linha .fraco { color: #999; }

/* alternador das duas medidas de tempo de resposta */
.dash-metricas { margin-left: auto; display: flex; gap: 4px; }
.dash-metrica {
  all: unset; cursor: pointer;
  font-size: 12.5px; color: #999;
  padding: 5px 11px; border-radius: 20px;
}
.dash-metrica:hover { color: #444; }
.dash-metrica[aria-selected="true"] {
  color: #a445d9; background: rgba(164, 69, 217, .09); font-weight: 500;
}

/* Grupo da navbar que abre submenu (Prospeccao). Reusa o menu do perfil: um so
   idioma de flutuante no app inteiro. */
.grupo-nav { position: relative; flex: none; }
.grupo-nav button[aria-expanded="true"] .perfil-seta { transform: rotate(180deg); }
