/* Central de Atendimento · Maria & João — cores tiradas do logo */
:root {
  --rosa: #e65aa2;
  --rosa-escuro: #b8407f;
  --rosa-claro: #fde7f2;
  --laranja: #f8b35e;
  --laranja-escuro: #d98a2b;
  --laranja-claro: #fff1dd;
  --azul: #70a7da;
  --azul-escuro: #3f78ad;
  --azul-claro: #e4f0fb;
  --verde: #2f9e6e;
  --verde-claro: #def4ea;
  --marinho: #1b2433;
  --texto: #1b2433;
  --texto-suave: #5b6576;
  --texto-fraco: #8b93a1;
  --linha: #efe7df;
  --linha-forte: #e3d8cd;
  --fundo: #fbf6f1;
  --fundo-lista: #fffdfb;
  --cartao: #ffffff;
  --perigo: #d64545;
  --perigo-claro: #fde4e4;
  --raio: 16px;
  --sombra-leve: 0 1px 2px rgba(27, 36, 51, 0.06), 0 2px 8px rgba(27, 36, 51, 0.04);
  --sombra: 0 10px 30px rgba(27, 36, 51, 0.10);
  --faixa: linear-gradient(90deg, var(--rosa) 0 33.3%, var(--laranja) 33.3% 66.6%, var(--azul) 66.6%);
  --titulo: "Baloo 2", "Nunito", system-ui, sans-serif;
  --corpo: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body, #app { height: 100%; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font: 15px/1.45 var(--corpo);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--titulo); margin: 0; line-height: 1.15; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--azul) 55%, transparent); outline-offset: 2px; }

.icones { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- botões e chips ---------- */
.botao {
  border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer;
  font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .08s, filter .15s, background .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.botao .ic { width: 18px; height: 18px; }
.botao:active { transform: scale(.97); }
.botao.principal { background: var(--rosa); color: #fff; box-shadow: 0 4px 12px rgba(230, 90, 162, .28); }
.botao.principal:hover { filter: brightness(1.06); }
.botao.grande { padding: 13px 20px; font-size: 16px; }
.botao.leve { background: #fff; border: 1.5px solid var(--linha-forte); padding: 8.5px 16px; }
.botao.leve:hover { border-color: var(--azul); color: var(--azul-escuro); }
.botao.verde { background: var(--verde-claro); color: var(--verde); padding: 10px 16px; }
.botao.verde:hover { background: var(--verde); color: #fff; }
.botao.perigo { background: var(--perigo); color: #fff; }
.botao.azul { background: var(--azul); color: #fff; }
.botao:disabled { opacity: .45; cursor: default; box-shadow: none; }

.botao-icone {
  width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; cursor: pointer; flex: none;
  display: inline-grid; place-items: center; color: var(--texto-suave); transition: background .15s, color .15s;
}
.botao-icone:hover { background: var(--fundo); color: var(--marinho); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 2px 10px;
  font-size: 12px; font-weight: 800; white-space: nowrap; background: var(--azul-claro); color: var(--azul-escuro);
}
.chip:empty { display: none; }
.cor-azul { --c: var(--azul-escuro); --cc: var(--azul-claro); --cf: var(--azul); }
.cor-rosa { --c: var(--rosa-escuro); --cc: var(--rosa-claro); --cf: var(--rosa); }
.cor-azul-escuro { --c: #2c5a86; --cc: #d8e7f6; --cf: #3f78ad; }
.cor-rosa-escuro { --c: #8f2f62; --cc: #f8d7e8; --cf: #b8407f; }
.cor-laranja { --c: #9a5a14; --cc: var(--laranja-claro); --cf: var(--laranja); }
.chip[class*="cor-"] { background: var(--cc); color: var(--c); }

/* ---------- telas de acesso ---------- */
.tela-acesso {
  min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 1fr);
  background: var(--fundo);
}
.acesso-marca {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding: 48px clamp(32px, 6vw, 96px);
  background:
    radial-gradient(circle at 8% 12%, var(--rosa-claro) 0 180px, transparent 181px),
    radial-gradient(circle at 96% 92%, var(--azul-claro) 0 240px, transparent 241px),
    radial-gradient(circle at 88% 10%, var(--laranja-claro) 0 110px, transparent 111px),
    #fff;
}
.acesso-marca::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--faixa); }
.logo-grande { width: 300px; max-width: 70%; }
.acesso-frase { font-family: var(--titulo); font-size: clamp(26px, 3vw, 36px); font-weight: 800; line-height: 1.15; margin: 0; color: var(--marinho); }
.acesso-pontos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; color: var(--texto-suave); font-weight: 700; }
.acesso-pontos li { display: flex; align-items: center; gap: 12px; }
.ponto { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.ponto.rosa { background: var(--rosa); }
.ponto.laranja { background: var(--laranja); }
.ponto.azul { background: var(--azul); }

.cartao-acesso {
  align-self: center; justify-self: center; width: 100%; max-width: 400px; margin: 32px 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.tela-acesso.so-cartao { grid-template-columns: 1fr; place-items: center;
  background:
    radial-gradient(circle at 12% 18%, var(--rosa-claro) 0 140px, transparent 141px),
    radial-gradient(circle at 88% 82%, var(--azul-claro) 0 180px, transparent 181px),
    var(--fundo); }
.so-cartao .cartao-acesso { background: #fff; border-radius: 24px; box-shadow: var(--sombra); padding: 32px 28px; text-align: center; }
.logo-cartao { display: none; width: 180px; margin: 0 auto 4px; }
.so-cartao .logo-cartao { display: block; }
.cartao-acesso h1 { font-size: 30px; }
.sub { margin: -8px 0 8px; color: var(--texto-suave); }
.cartao-acesso label { display: flex; flex-direction: column; gap: 6px; text-align: left; font-weight: 800; font-size: 14px; }
.cartao-acesso input, .painel select {
  border: 1.5px solid var(--linha-forte); border-radius: 12px; padding: 12px 14px; background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.cartao-acesso input:focus, textarea:focus, select:focus {
  border-color: var(--azul); box-shadow: 0 0 0 4px color-mix(in srgb, var(--azul) 18%, transparent);
}
.erro { color: var(--perigo); font-weight: 700; margin: 0; background: var(--perigo-claro); padding: 8px 12px; border-radius: 10px; }
.dica { color: var(--texto-suave); font-size: 13px; margin: -6px 0 0; text-align: left; }

/* ---------- estrutura principal ---------- */
.central { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.topo {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 20px 12px; background: #fff;
  box-shadow: 0 1px 0 var(--linha); z-index: 2;
}
.topo::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--faixa); }
.logo-topo { height: 42px; margin-top: 2px; }
.topo-titulo { font-family: var(--titulo); font-size: 19px; font-weight: 800; color: var(--marinho); padding-left: 14px; border-left: 1.5px solid var(--linha); }
.topo-nav { display: flex; gap: 4px; margin-left: 16px; }
.aba-topo {
  display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 8px 14px; border-radius: 12px;
  cursor: pointer; font-weight: 800; color: var(--texto-suave); transition: background .15s, color .15s;
}
.aba-topo:hover { background: var(--fundo); color: var(--marinho); }
.aba-topo.ativa { background: var(--rosa-claro); color: var(--rosa-escuro); }
.contador-pendentes { background: var(--rosa); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 12px; line-height: 18px; }
.topo-usuario { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.usuario-info { display: flex; flex-direction: column; line-height: 1.2; }
.usuario-nome { font-weight: 800; }
.usuario-setor { font-size: 12.5px; color: var(--texto-suave); font-weight: 700; }

.tela-conversas { flex: 1; min-height: 0; display: grid; grid-template-columns: 370px minmax(0, 1fr) 300px; }
.tela-conversas:not(.chat-aberto) { grid-template-columns: 370px minmax(0, 1fr); }

/* ---------- avatar ---------- */
.avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-family: var(--titulo); font-weight: 800; font-size: 17px; letter-spacing: .02em;
  background: var(--cc, #efe9e3); color: var(--c, var(--texto-suave));
}
.avatar.pequeno { width: 36px; height: 36px; font-size: 14px; }
.avatar.grande { width: 76px; height: 76px; font-size: 28px; }
.usuario-avatar { background: var(--marinho); color: #fff; }

/* ---------- lista ---------- */
.coluna-lista { border-right: 1px solid var(--linha); background: var(--fundo-lista); display: flex; flex-direction: column; min-height: 0; min-width: 0; }

.resumo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 14px 14px 0; }
.resumo-card {
  display: flex; align-items: center; gap: 8px; padding: 9px 8px; border-radius: 14px; background: #fff; box-shadow: var(--sombra-leve); min-width: 0;
  border: 1px solid var(--linha);
}
.resumo-card .ic { width: 28px; height: 28px; padding: 6px; border-radius: 9px; }
.resumo-card div { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.resumo-card strong { font-family: var(--titulo); font-size: 22px; font-weight: 800; }
.resumo-card span { font-size: 11px; font-weight: 700; color: var(--texto-suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resumo-card.aguardando .ic { background: var(--laranja-claro); color: var(--laranja-escuro); }
.resumo-card.atrasadas .ic { background: var(--perigo-claro); color: var(--perigo); }
.resumo-card.atrasadas.tem strong { color: var(--perigo); }
.resumo-card.abertas .ic { background: var(--azul-claro); color: var(--azul-escuro); }

.filtros-setor { display: flex; gap: 6px; padding: 12px 14px 0; overflow-x: auto; scrollbar-width: none; }
.filtros-setor::-webkit-scrollbar { display: none; }
.filtros-setor button {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  border: 1.5px solid var(--linha-forte); border-radius: 999px; padding: 4px 10px 4px 8px; cursor: pointer; font-weight: 800; font-size: 12.5px;
  background: #fff; color: var(--texto-suave); transition: background .15s, border-color .15s, color .15s;
}
.filtros-setor button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--cf, var(--marinho)); }
.filtros-setor button:hover { border-color: var(--cf, var(--marinho)); }
.filtros-setor button.ativo { background: var(--cc, var(--marinho)); border-color: var(--cf, var(--marinho)); color: var(--c, #fff); }
.filtros-setor .qtd { font-size: 11px; background: rgba(255,255,255,.7); color: inherit; border-radius: 999px; padding: 0 6px; }
.filtros-setor .todos.ativo .qtd { background: rgba(255,255,255,.2); }

.filtros-status { display: flex; margin: 12px 14px 0; background: #f2ebe4; border-radius: 12px; padding: 4px; }
.filtros-status button {
  flex: 1; border: 0; background: transparent; border-radius: 9px; padding: 7px 4px; cursor: pointer; font-weight: 800; font-size: 12.5px; color: var(--texto-suave); white-space: nowrap;
}
.filtros-status button.ativo { background: #fff; color: var(--marinho); box-shadow: 0 1px 4px rgba(0,0,0,.08); }

.busca {
  display: flex; align-items: center; gap: 8px; margin: 12px 14px 8px; padding: 0 12px; border-radius: 12px;
  border: 1.5px solid var(--linha-forte); background: #fff; color: var(--texto-fraco); transition: border-color .15s, box-shadow .15s;
}
.busca:focus-within { border-color: var(--azul); box-shadow: 0 0 0 4px color-mix(in srgb, var(--azul) 18%, transparent); }
.busca .ic { width: 18px; height: 18px; }
.busca input { flex: 1; border: 0; outline: none; padding: 10px 0; background: transparent; min-width: 0; }

.lista-conversas { list-style: none; margin: 0; padding: 4px 10px 14px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.item-conversa {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 11px 12px 11px 14px; border-radius: 14px; cursor: pointer; transition: background .12s, box-shadow .12s;
}
.item-conversa::before {
  content: ""; position: absolute; left: 4px; top: 14px; bottom: 14px; width: 4px; border-radius: 4px; background: var(--cf, transparent); opacity: 0;
}
.item-conversa:hover { background: #fff; }
.item-conversa:hover::before, .item-conversa.selecionada::before { opacity: 1; }
.item-conversa.selecionada { background: #fff; box-shadow: var(--sombra-leve), 0 0 0 1.5px var(--cc, var(--linha)); }
.item-meio { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.item-nome { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-previa { color: var(--texto-suave); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-previa b { color: var(--texto-fraco); font-weight: 700; }
.item-conversa.esperando .item-previa { color: var(--texto); font-weight: 600; }
.item-tags { display: flex; gap: 6px; margin-top: 3px; min-width: 0; }
.item-tags .chip { font-size: 11px; padding: 1px 8px; }
.item-lado { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 12px; color: var(--texto-fraco); font-weight: 700; }
.badge { background: var(--rosa); color: #fff; border-radius: 999px; min-width: 20px; height: 20px; padding: 0 6px; font-weight: 800; font-size: 11.5px; display: grid; place-items: center; }
.espera { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; border-radius: 999px; padding: 1px 8px 1px 6px; background: var(--laranja-claro); color: #9a5a14; }
.espera .ic { width: 13px; height: 13px; stroke-width: 2.5; }
.espera.atrasada { background: var(--perigo-claro); color: var(--perigo); }
.lista-vazia { text-align: center; color: var(--texto-suave); padding: 48px 16px; font-weight: 700; }
.lista-vazia .emoji { display: block; font-size: 34px; margin-bottom: 6px; }

/* ---------- chat ---------- */
.coluna-chat { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--fundo); }
.chat-vazio { margin: auto; text-align: center; color: var(--texto-suave); padding: 24px; max-width: 420px; }
.chat-vazio img { width: 200px; opacity: .95; margin-bottom: 8px; }
.chat-vazio h2 { font-size: 28px; color: var(--marinho); }
.chat-vazio p { margin: 6px 0 0; font-weight: 600; }
.chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-topo {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: #fff; box-shadow: 0 1px 0 var(--linha); z-index: 1;
}
.chat-quem { min-width: 0; flex: 1; }
.voltar { display: none; }
.chat-nome { font-weight: 800; font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chat-telefone { color: var(--texto-suave); font-size: 13px; font-weight: 600; }
.chat-acoes { display: flex; gap: 8px; align-items: center; }

.mensagens {
  flex: 1; overflow-y: auto; padding: 18px 7% 24px; display: flex; flex-direction: column; gap: 6px;
  background-color: var(--fundo);
  background-image:
    radial-gradient(circle at 20px 20px, rgba(230, 90, 162, .07) 2.5px, transparent 3px),
    radial-gradient(circle at 60px 50px, rgba(112, 167, 218, .09) 2.5px, transparent 3px),
    radial-gradient(circle at 40px 80px, rgba(248, 179, 94, .10) 2.5px, transparent 3px);
  background-size: 80px 100px;
}
.balao {
  position: relative; max-width: min(560px, 76%); padding: 8px 12px 6px; border-radius: 16px;
  box-shadow: var(--sombra-leve); white-space: pre-wrap; word-wrap: break-word; line-height: 1.4;
}
.balao.familia { align-self: flex-start; background: #fff; border-top-left-radius: 4px; }
.balao.equipe { align-self: flex-end; background: var(--azul-claro); border-top-right-radius: 4px; }
.balao.equipe.robo { background: #f2eef8; color: #3e3654; }
.balao.equipe.robo .balao-autor { color: #6c5b99; }
.balao.sistema { align-self: center; background: #fff; color: var(--texto-suave); font-size: 12.5px; font-weight: 700; box-shadow: none; border: 1px solid var(--linha); border-radius: 999px; padding: 4px 12px; }
.balao.falhou { box-shadow: 0 0 0 1.5px #f3b3b3; }
.balao-autor { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; color: var(--azul-escuro); margin-bottom: 2px; }
.balao-autor .ic { width: 14px; height: 14px; }
.balao-rodape { font-size: 11px; color: var(--texto-fraco); text-align: right; margin-top: 2px; font-weight: 600; }
.balao.falhou .balao-rodape { color: var(--perigo); }
.balao img { max-width: 100%; border-radius: 12px; display: block; margin-bottom: 4px; }
.balao a { color: var(--azul-escuro); font-weight: 700; }
/* balões seguidos do mesmo lado ficam mais juntos */
.balao.familia + .balao.familia, .balao.equipe + .balao.equipe { margin-top: -3px; }
.separador-dia {
  position: sticky; top: 0; z-index: 1; align-self: center; margin: 8px 0; font-size: 12px; font-weight: 800; color: var(--texto-suave);
  background: #fff; padding: 3px 12px; border-radius: 999px; box-shadow: var(--sombra-leve); text-transform: capitalize;
}

.compor {
  position: relative; display: flex; gap: 8px; align-items: flex-end; margin: 0 16px 14px; padding: 6px 6px 6px 6px;
  background: #fff; border-radius: 22px; box-shadow: var(--sombra-leve), 0 0 0 1px var(--linha);
}
.compor:focus-within { box-shadow: var(--sombra-leve), 0 0 0 2px var(--azul); }
.compor .prontas-abrir { color: var(--laranja-escuro); border-radius: 50%; }
.compor .prontas-abrir:hover { background: var(--laranja-claro); }
.compor textarea {
  flex: 1; resize: none; border: 0; padding: 9px 4px; max-height: 160px; outline: none; background: transparent; box-shadow: none; align-self: center;
}
.botao-enviar {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--rosa); color: #fff; cursor: pointer; flex: none;
  display: grid; place-items: center; transition: filter .15s, transform .08s;
}
.botao-enviar .ic { width: 19px; height: 19px; margin-left: -2px; }
.botao-enviar:hover { filter: brightness(1.07); }
.botao-enviar:active { transform: scale(.94); }
.botao-enviar:disabled { opacity: .5; cursor: default; }
.prontas {
  position: absolute; bottom: calc(100% + 8px); left: 0; width: min(440px, 100%); background: #fff; border-radius: 16px; box-shadow: var(--sombra);
  padding: 8px; display: flex; flex-direction: column; gap: 2px; max-height: 340px; overflow-y: auto; z-index: 5; border: 1px solid var(--linha);
}
.prontas-titulo { font-size: 11.5px; font-weight: 800; color: var(--texto-fraco); text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px 6px; }
.prontas button { text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.prontas button:hover { background: var(--laranja-claro); }
.prontas strong { display: block; font-size: 13px; }
.prontas span { display: block; font-size: 12.5px; color: var(--texto-suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- ficha ---------- */
.coluna-ficha { border-left: 1px solid var(--linha); background: #fff; padding: 24px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; }
.ficha-topo { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding-bottom: 20px; border-bottom: 1px solid var(--linha); }
.ficha-topo h2 { font-size: 20px; margin-top: 4px; }
.ficha-linhas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ficha-linhas li { display: flex; gap: 12px; align-items: flex-start; }
.ficha-linhas .ic { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--fundo); color: var(--texto-suave); }
.ficha-linhas div { display: flex; flex-direction: column; min-width: 0; }
.ficha-linhas span { font-size: 11.5px; font-weight: 800; color: var(--texto-fraco); text-transform: uppercase; letter-spacing: .04em; }
.ficha-linhas strong { font-weight: 700; overflow-wrap: anywhere; }
.ficha-espera-linha.atrasada .ic { background: var(--perigo-claro); color: var(--perigo); }
.ficha-espera-linha.atrasada strong { color: var(--perigo); }
.ficha-bloco h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 10px; }
.ficha-bloco h3 .ic { width: 18px; height: 18px; color: var(--texto-fraco); }
.ficha-caminho { list-style: none; margin: 0; padding: 0 0 0 6px; display: flex; flex-direction: column; }
.ficha-caminho li { position: relative; padding: 0 0 14px 20px; font-size: 13px; color: var(--texto-suave); }
.ficha-caminho li::before { content: ""; position: absolute; left: 0; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--cf, var(--texto-fraco)); box-shadow: 0 0 0 3px #fff; z-index: 1; }
.ficha-caminho li::after { content: ""; position: absolute; left: 4.25px; top: 10px; bottom: -4px; width: 1.5px; background: var(--linha-forte); }
.ficha-caminho li:last-child { padding-bottom: 0; }
.ficha-caminho li:last-child::after { display: none; }
.ficha-caminho strong { display: block; color: var(--texto); font-size: 13.5px; }
.ficha-caminho em { display: block; margin-top: 2px; }
.ficha-caminho .vazio { padding-left: 0; }
.ficha-caminho .vazio::before, .ficha-caminho .vazio::after { display: none; }
.ficha-em-breve { margin-top: auto; padding: 14px; border-radius: 14px; background: var(--laranja-claro); font-size: 13px; border: 1px dashed var(--laranja); }
.ficha-em-breve p { margin: 4px 0 0; color: #7a5a2e; }

/* ---------- equipe (gestora) ---------- */
.tela-equipe { flex: 1; overflow-y: auto; padding: 28px 24px 40px; }
.equipe-cabecalho { max-width: 1200px; margin: 0 auto 20px; }
.equipe-cabecalho h1 { font-size: 30px; }
.equipe-cabecalho p { margin: 2px 0 0; color: var(--texto-suave); font-weight: 600; }
.equipe-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; }
.painel { background: #fff; border-radius: 20px; box-shadow: var(--sombra-leve); border: 1px solid var(--linha); padding: 20px; }
.painel.largo { grid-column: 1 / -1; }
.painel h2 { font-size: 20px; margin-bottom: 14px; }
.painel .dica { margin: -6px 0 14px; }
.lista-pessoas, .lista-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pessoa { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--fundo); }
.pessoa .avatar { width: 40px; height: 40px; font-size: 15px; }
.pessoa-nome { font-weight: 800; }
.pessoa-email { font-size: 13px; color: var(--texto-suave); word-break: break-all; }
.pessoa-acoes { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pessoa-acoes select { padding: 7px 10px; border-radius: 999px; }
.pessoa.bloqueada { opacity: .6; }
.link-setor { display: grid; grid-template-columns: 200px 1fr auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--fundo); }
.link-setor .chip { justify-self: start; }
.link-setor code { min-width: 0; font-size: 12.5px; background: #fff; padding: 8px 10px; border-radius: 10px; overflow-x: auto; white-space: nowrap; border: 1px solid var(--linha); }
.vazio-pequeno { color: var(--texto-suave); font-size: 14px; padding: 16px; text-align: center; background: var(--fundo); border-radius: 14px; }

/* ---------- transferências ---------- */
.item-conversa.nova-transferencia { background: linear-gradient(90deg, var(--laranja-claro), #fff8ee); }
.item-conversa.nova-transferencia.selecionada { background: #fff; }
.chip-transferida {
  display: inline-block; font-size: 11px; font-weight: 800; color: #9a5a14; background: #fff;
  border: 1.5px solid var(--laranja); border-radius: 999px; padding: 0 8px; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.balao.transferencia {
  align-self: center; max-width: min(560px, 92%); margin: 6px 0; background: #fff; color: var(--texto-suave);
  border: 1.5px dashed var(--laranja); box-shadow: none; font-size: 13px; text-align: center; padding: 8px 16px; border-radius: 14px;
}
.balao.transferencia strong { color: #9a5a14; }
.balao.transferencia .motivo { display: block; margin-top: 4px; font-style: italic; color: var(--texto); }

dialog { border: 0; border-radius: 24px; padding: 0; box-shadow: var(--sombra); width: min(520px, calc(100% - 24px)); color: var(--texto); max-height: calc(100dvh - 24px); }
dialog::backdrop { background: rgba(27, 36, 51, .4); backdrop-filter: blur(2px); }
.dialogo { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.dialogo h2 { font-size: 24px; }
.dialogo-texto { margin: -6px 0 0; color: var(--texto-suave); }
.dialogo-texto strong { color: var(--texto); }
.dialogo label { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: 14px; }
.dialogo textarea { border: 1.5px solid var(--linha-forte); border-radius: 14px; padding: 10px 12px; resize: vertical; outline: none; font-weight: 400; }
.dialogo .dica { margin: 0; }
.dialogo-botoes { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }

.opcoes-setor { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opcao-setor {
  display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; cursor: pointer; text-align: left;
  border: 1.5px solid var(--linha-forte); background: #fff; font-weight: 800; font-size: 14px; transition: border-color .12s, background .12s, box-shadow .12s;
}
.opcao-setor::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--cf); flex: none; }
.opcao-setor:hover { border-color: var(--cf); }
.opcao-setor[aria-checked="true"] { background: var(--cc); border-color: var(--cf); color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cf) 20%, transparent); }

.dialogo label.avisar-familia { flex-direction: row; align-items: center; gap: 10px; cursor: pointer; }
.avisar-familia input { width: 18px; height: 18px; accent-color: var(--rosa); margin: 0; }
.previa-aviso { padding: 12px; border-radius: 14px; background: var(--fundo); display: flex; flex-direction: column; gap: 6px; }
.previa-rotulo { font-size: 11.5px; font-weight: 800; color: var(--texto-fraco); text-transform: uppercase; letter-spacing: .04em; }
.previa-aviso .balao { max-width: 100%; align-self: stretch; font-size: 14px; }

.aviso-flutuante {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--marinho); color: #fff; padding: 11px 20px;
  border-radius: 14px; font-weight: 700; z-index: 50; box-shadow: var(--sombra); animation: surgir .2s ease-out; max-width: calc(100% - 32px);
}
@keyframes surgir { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------- telas menores ---------- */
@media (max-width: 1180px) {
  .tela-conversas, .tela-conversas:not(.chat-aberto) { grid-template-columns: 340px minmax(0, 1fr); }
  .coluna-ficha { display: none !important; }
}
@media (max-width: 900px) {
  .tela-acesso { grid-template-columns: 1fr; }
  .acesso-marca { display: none; }
  .tela-acesso .logo-cartao { display: block; }
  .tela-acesso .cartao-acesso { background: #fff; border-radius: 24px; box-shadow: var(--sombra); padding: 28px 22px; text-align: center; max-width: 420px; margin: 24px 16px; }
  .tela-acesso:not(.so-cartao) { background:
    radial-gradient(circle at 12% 18%, var(--rosa-claro) 0 140px, transparent 141px),
    radial-gradient(circle at 88% 82%, var(--azul-claro) 0 180px, transparent 181px),
    var(--fundo); place-items: center; }
  .topo-titulo { display: none; }
}
@media (max-width: 760px) {
  .topo { padding: 10px 12px; gap: 8px; }
  .usuario-info, .aba-topo span:not(.contador-pendentes) { display: none; }
  .logo-topo { height: 36px; }
  .topo-nav { margin-left: 4px; }
  .aba-topo { padding: 8px 10px; }
  .tela-conversas, .tela-conversas:not(.chat-aberto) { grid-template-columns: minmax(0, 1fr); }
  .tela-conversas.chat-aberto .coluna-lista { display: none; }
  .tela-conversas:not(.chat-aberto) .coluna-chat { display: none; }
  .voltar { display: inline-grid; margin-left: -8px; }
  .chat-topo { padding: 10px 12px; gap: 8px; }
  .chat-avatar { width: 38px; height: 38px; font-size: 15px; }
  .chat-acoes .botao span { display: none; }
  .chat-acoes .botao { padding: 10px; }
  .mensagens { padding: 12px 10px 16px; }
  .balao { max-width: 86%; }
  .compor { margin: 0 8px 8px; }
  .tela-equipe { padding: 16px 12px 32px; }
  .equipe-grade { grid-template-columns: 1fr; }
  .link-setor { grid-template-columns: 1fr auto auto; }
  .link-setor code { grid-column: 1 / -1; grid-row: 2; }
  .opcoes-setor { grid-template-columns: 1fr; }
  .dialogo { padding: 20px 16px; }
}
