/* Hub: chat da equipe (estilo Slack). Usa os tokens --h-* do index.html. */
.equipe { position: fixed; top: 70px; bottom: 100px; left: 50%; transform: translateX(-50%); width: min(1060px, calc(100vw - 28px)); border-radius: 20px; z-index: 8; display: none; overflow: hidden; }
.equipe.on { display: flex; }
.eq-lado { width: 230px; flex: none; display: flex; flex-direction: column; border-right: 1px solid var(--h-borda); background: rgba(0,0,0,.18); }
.eq-topo { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 8px 16px; font-size: 16px; }
.eq-topo button, .eq-cab button { background: none; border: 0; color: var(--h-texto2); font-size: 20px; line-height: 1; padding: 2px 8px; border-radius: 8px; }
.eq-topo button:hover, .eq-cab button:hover { background: rgba(255,255,255,.1); }
.eq-lista { flex: 1; overflow-y: auto; padding: 0 8px 12px; }
.eq-sec { display: flex; align-items: center; justify-content: space-between; padding: 12px 8px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--h-texto2); }
.eq-mais { background: none; border: 0; color: var(--h-texto2); font-size: 18px; line-height: 1; border-radius: 6px; padding: 0 6px; }
.eq-mais:hover { background: rgba(255,255,255,.12); color: var(--h-texto); }
.eq-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: 9px; background: none; text-align: left; color: var(--h-texto2); font-size: 14px; }
.eq-item:hover { background: rgba(255,255,255,.08); }
.eq-item.ativo { background: var(--h-acento2); color: #fff; }
.eq-item.novo { color: var(--h-texto); font-weight: 700; }
.eq-nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eq-ponto { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--h-texto2); flex: none; }
.eq-ponto.on { background: var(--h-ok); border-color: var(--h-ok); }
.eq-badge { min-width: 18px; height: 18px; border-radius: 9px; background: var(--h-erro); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.eq-mudo { font-size: 11px; }
.eq-novo { display: flex; gap: 6px; padding: 4px 4px 8px; }
.eq-novo input { flex: 1; min-width: 0; border-radius: 9px; border: 1px solid var(--h-borda); background: rgba(0,0,0,.25); color: var(--h-texto); padding: 6px 9px; font: inherit; outline: none; }
.eq-conversa { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.eq-conversa.arrastando::after { content: 'Solte o arquivo para anexar'; position: absolute; inset: 8px; border: 2px dashed var(--h-acento); border-radius: 14px; background: rgba(20,14,10,.8); display: grid; place-items: center; font-weight: 600; z-index: 3; }
.eq-cab { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--h-borda); font-weight: 700; font-size: 15px; }
.eq-cab > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eq-menu { display: none; }
.eq-msgs { flex: 1; overflow-y: auto; padding: 14px 8px 12px; }
.eq-msg { position: relative; display: flex; gap: 10px; padding: 6px 10px; border-radius: 10px; }
.eq-msg:hover { background: rgba(255,255,255,.05); }
.eq-av { width: 36px; height: 36px; border-radius: 11px; flex: none; display: grid; place-items: center; font-weight: 700; color: #fff; overflow: hidden; }
.eq-av img { width: 100%; height: 100%; object-fit: cover; }
.eq-corpo { flex: 1; min-width: 0; }
.eq-cab-msg { display: flex; align-items: baseline; gap: 8px; }
.eq-cab-msg b { font-size: 14px; }
.eq-cab-msg time, .eq-cab-msg em { font-size: 11.5px; color: var(--h-texto2); font-style: normal; }
.eq-txt { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; font-size: 14px; line-height: 1.45; }
.eq-txt a { color: var(--h-acento); }
.eq-men { background: rgba(208,138,78,.2); color: var(--h-acento); border-radius: 5px; padding: 0 3px; font-weight: 600; }
.eq-men.eu { background: var(--h-acento2); color: #fff; }
.eq-apagada { margin: 2px 0 0; color: var(--h-texto2); font-style: italic; font-size: 13px; }
.eq-img img { display: block; max-width: min(320px, 100%); max-height: 220px; border-radius: 10px; margin-top: 6px; }
.eq-arq { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.08); color: var(--h-texto); text-decoration: none; font-size: 13px; max-width: 100%; }
.eq-arq span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eq-arq small { color: var(--h-texto2); }
.eq-reacoes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.eq-re { border: 1px solid var(--h-borda); background: rgba(255,255,255,.06); color: var(--h-texto); border-radius: 12px; padding: 1px 8px; font-size: 13px; }
.eq-re.minha { border-color: var(--h-acento); background: rgba(208,138,78,.22); }
.eq-fio-link { background: none; border: 0; color: var(--h-acento); padding: 4px 0 0; font-size: 12.5px; font-weight: 600; }
.eq-fio-link:hover { text-decoration: underline; }
.eq-acoes { position: absolute; top: -12px; right: 10px; display: none; gap: 2px; padding: 2px; border-radius: 10px; background: #2b211b; border: 1px solid var(--h-borda); }
.eq-msg:hover .eq-acoes { display: flex; }
.eq-acoes button { background: none; border: 0; border-radius: 7px; width: 28px; height: 26px; font-size: 14px; }
.eq-acoes button:hover { background: rgba(255,255,255,.14); }
.eq-editar textarea { width: 100%; box-sizing: border-box; border-radius: 10px; border: 1px solid var(--h-acento); background: rgba(0,0,0,.25); color: var(--h-texto); padding: 8px 10px; font: inherit; resize: vertical; outline: none; }
.eq-editar div { display: flex; gap: 6px; justify-content: flex-end; margin-top: 6px; }
.eq-sep { padding: 8px 14px; font-size: 12px; color: var(--h-texto2); border-top: 1px solid var(--h-borda); border-bottom: 1px solid var(--h-borda); margin: 6px 0; }
.eq-antigas { display: block; margin: 4px auto 10px; }
.eq-form { position: relative; padding: 8px 12px 12px; }
.eq-linha { display: flex; align-items: flex-end; gap: 6px; border: 1px solid var(--h-borda); background: rgba(0,0,0,.25); border-radius: 14px; padding: 6px; }
.eq-linha:focus-within { border-color: var(--h-acento); }
.eq-linha textarea { flex: 1; min-width: 0; resize: none; border: 0; outline: none; background: none; color: var(--h-texto); font: inherit; font-size: 14px; line-height: 1.4; padding: 6px 4px; max-height: 140px; }
.eq-clip, .eq-enviar { border: 0; border-radius: 10px; width: 34px; height: 34px; font-size: 16px; flex: none; background: none; color: var(--h-texto2); }
.eq-clip:hover { background: rgba(255,255,255,.1); }
.eq-enviar { background: var(--h-acento2); color: #fff; }
.eq-pend { display: flex; flex-wrap: wrap; gap: 6px; }
.eq-pend:not(:empty) { margin-bottom: 6px; }
.eq-chip { background: rgba(255,255,255,.1); border-radius: 10px; padding: 3px 8px; font-size: 12.5px; }
.eq-chip button { background: none; border: 0; color: var(--h-texto2); padding: 0 2px; font-size: 15px; }
.eq-lista-men { display: none; position: absolute; left: 12px; right: 12px; bottom: 100%; margin-bottom: -4px; background: #2b211b; border: 1px solid var(--h-borda); border-radius: 12px; padding: 4px; z-index: 4; }
.eq-lista-men.on { display: block; }
.eq-lista-men button { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--h-texto); padding: 6px 10px; border-radius: 8px; font-size: 14px; }
.eq-lista-men button.ativo, .eq-lista-men button:hover { background: var(--h-acento2); color: #fff; }
.eq-fio { display: none; width: 340px; flex: none; flex-direction: column; border-left: 1px solid var(--h-borda); background: rgba(0,0,0,.12); }
.eq-fio.on { display: flex; }
.eq-emojis { position: fixed; z-index: 30; display: none; gap: 2px; padding: 4px; border-radius: 12px; }
.eq-emojis.on { display: flex; }
.eq-emojis button { width: 34px; height: 34px; border: 0; background: none; border-radius: 9px; font-size: 20px; }
.eq-emojis button:hover { background: rgba(255,255,255,.14); }
@media (max-width: 760px) {
  .equipe { top: 60px; bottom: 90px; }
  .eq-menu { display: inline-block; }
  .eq-lado { position: absolute; inset: 0; width: auto; z-index: 5; display: none; background: rgba(30,22,17,.98); }
  .equipe.lista-aberta .eq-lado { display: flex; }
  .eq-fio { position: absolute; inset: 0; width: auto; z-index: 4; background: rgba(30,22,17,.98); }
}

/* botão do chat da equipe e lista de offline no menu lateral (painel) */
.pn-chat-bt { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--h-acento2); color: #fff; }
.pn-chat-bt .eq-badge { background: #fff; color: var(--h-acento2); }
.pn-pessoa .chamar.msg { display: inline-flex; }
.pn-pessoa.off { opacity: .6; }
.pn-pessoa.off:hover { opacity: 1; }
.pn-pessoa .st-off { background: transparent; border: 1.5px solid var(--h-texto2); box-sizing: border-box; }

.pn-link { display: block; background: none; border: 0; color: var(--h-texto2); font-size: 12px; text-decoration: underline; padding: 6px 2px 0; cursor: pointer; }
.pn-link:hover { color: var(--h-texto); }
