/* Enlace: aparência no jeito do Discord (tema escuro). */
:root {
  --trilho: #1e1f22;
  --lateral: #2b2d31;
  --chat: #313338;
  --painel-usuario: #232428;
  --entrada: #383a40;
  --flutuante: #111214;
  --hover: rgba(78, 80, 88, .3);
  --selecionado: rgba(78, 80, 88, .6);
  --divisor: #3f4147;
  --texto: #dbdee1;
  --forte: #f2f3f5;
  --fraco: #949ba4;
  --canal: #80848e;
  --azul: #5865f2;
  --azul-escuro: #4752c4;
  --verde: #23a559;
  --vermelho: #da373c;
  --amarelo: #f0b232;
  --link: #00a8fc;
  --sombra-cab: 0 1px 0 rgba(4, 4, 5, .2), 0 1.5px 0 rgba(6, 6, 7, .05), 0 2px 0 rgba(4, 4, 5, .05);
  --sombra-alta: 0 8px 16px rgba(0, 0, 0, .24);
  --fonte: "gg sans", "Noto Sans", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--chat); color: var(--texto); font: 16px/1.375 var(--fonte); overflow: hidden; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; opacity: .4; }
[hidden] { display: none !important; }
i[data-icone] { display: inline-flex; width: 20px; height: 20px; flex: none; }
i[data-icone] svg { width: 100%; height: 100%; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #1a1b1e; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }
.rolagem::-webkit-scrollbar { width: 16px; }
.rolagem::-webkit-scrollbar-thumb { background: #1a1b1e; border: 4px solid var(--chat); border-radius: 8px; }
.rolagem::-webkit-scrollbar-track { background: #2b2d31; border: 4px solid var(--chat); border-radius: 8px; }

/* ---------- login ---------- */
.tela-login { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(1200px 600px at 15% 10%, #6b74f5 0%, transparent 60%),
              radial-gradient(900px 600px at 90% 90%, #3b2fa8 0%, transparent 60%), #404eed; }
.cartao-login { width: 100%; max-width: 480px; background: var(--chat); border-radius: 8px; padding: 32px; box-shadow: 0 2px 10px rgba(0, 0, 0, .2); }
.marca-login { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; background: var(--azul); color: #fff; display: grid; place-items: center; font-weight: 800; letter-spacing: .02em; }
.cartao-login h1 { margin: 0; text-align: center; font-size: 24px; line-height: 30px; color: var(--forte); font-weight: 600; }
.cartao-login .sub { margin: 8px 0 20px; text-align: center; color: var(--fraco); }
.cartao-login label { display: block; margin: 0 0 8px; font-size: 12px; line-height: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: #b5bac1; }
.obrig { color: #f23f42; }
.cartao-login input { width: 100%; height: 40px; padding: 10px; margin-bottom: 20px; border: 0; border-radius: 3px; background: #1e1f22; color: var(--texto); outline: none; }
.cartao-login input:focus { box-shadow: 0 0 0 2px var(--azul) inset; }
.botao-primario { background: var(--azul); color: #fff; border-radius: 3px; padding: 2px 16px; min-height: 38px; font-weight: 500; font-size: 14px; transition: background .17s; }
.botao-primario:hover { background: var(--azul-escuro); }
.botao-primario.largo { width: 100%; height: 44px; font-size: 16px; }
.botao-secundario { background: #4e5058; color: #fff; border-radius: 3px; padding: 2px 16px; min-height: 38px; font-weight: 500; font-size: 14px; }
.botao-secundario:hover { background: #6d6f78; }
.botao-perigo { background: var(--vermelho); color: #fff; border-radius: 3px; padding: 2px 16px; min-height: 38px; font-weight: 500; font-size: 14px; }
.botao-perigo:hover { background: #a12828; }
.botao-link { color: var(--texto); font-size: 14px; padding: 2px 12px; min-height: 38px; }
.botao-link:hover { text-decoration: underline; }
.botao-verde { background: var(--verde); color: #fff; border-radius: 3px; padding: 2px 20px; min-height: 40px; font-weight: 600; font-size: 14px; }
.botao-verde:hover { background: #1a8b4a; }
.erro-login { color: #fa777c; font-size: 14px; min-height: 20px; margin: 12px 0 0; }
.rodape-login { color: var(--fraco); font-size: 12px; margin: 4px 0 0; }
.rodape-login code { background: #1e1f22; padding: 1px 4px; border-radius: 3px; }

/* ---------- estrutura ---------- */
.app { position: fixed; inset: 0; display: flex; }
.trilho { width: 72px; flex: none; background: var(--trilho); padding: 12px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; overflow-y: auto; }
.trilho-item { position: relative; width: 72px; display: flex; justify-content: center; }
/* Com um servidor só (sempre o aberto), a pílula diz se há algo não lido nele, como a de um servidor
   de fundo no Discord; a seleção aparece no formato do ícone. Passar o mouse estica a pílula. */
.pilula { position: absolute; left: 0; top: 50%; width: 8px; height: 0; margin-top: 0; margin-left: -4px; border-radius: 0 4px 4px 0; background: #fff; opacity: 0; transition: height .15s, margin-top .15s, opacity .15s; }
.trilho-item.nao-lido .pilula { height: 8px; margin-top: -4px; opacity: 1; }
.trilho-item:hover .pilula { height: 20px; margin-top: -10px; opacity: 1; }
/* Selo vermelho com o total de menções, no canto do ícone (borda da cor do trilho, como no Discord). */
.selo-mencoes { position: absolute; right: 8px; bottom: -4px; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: content-box; border: 4px solid var(--trilho); border-radius: 12px; background: var(--vermelho); color: #fff; font-size: 12px; font-weight: 700; line-height: 16px; text-align: center; pointer-events: none; }
.servidor { width: 48px; height: 48px; border-radius: 16px; background: var(--azul); color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .02em; transition: border-radius .15s; }
.trilho-sep { width: 32px; height: 2px; border-radius: 1px; background: #35363c; }

.lateral { width: 240px; flex: none; background: var(--lateral); display: flex; flex-direction: column; min-height: 0; position: relative; }
.cab-servidor { height: 48px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; box-shadow: var(--sombra-cab); font-weight: 600; color: var(--forte); font-size: 16px; text-align: left; z-index: 2; transition: background .1s; }
.cab-servidor:hover { background: rgba(78, 80, 88, .3); }
.cab-servidor i { width: 18px; height: 18px; }

.lista-canais { flex: 1; overflow-y: auto; padding: 8px 8px 16px 8px; scrollbar-width: thin; }
.lista-canais::-webkit-scrollbar { width: 4px; }
.categoria { display: flex; align-items: center; padding: 16px 0 4px 2px; color: var(--canal); font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; cursor: pointer; user-select: none; }
.categoria:hover { color: var(--texto); }
.categoria i[data-icone] { width: 12px; height: 12px; margin-right: 2px; transition: transform .15s; }
.categoria.recolhida > i[data-icone="seta"] { transform: rotate(-90deg); }
.categoria .cat-nome { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.categoria .cat-mais { width: 18px; height: 18px; color: var(--canal); opacity: 0; }
.categoria:hover .cat-mais { opacity: 1; }
.categoria .cat-mais:hover { color: var(--texto); }
.categoria .cat-mais i { width: 18px; height: 18px; }

.canal { position: relative; display: flex; align-items: center; gap: 6px; width: 100%; height: 34px; margin: 1px 0; padding: 0 8px; border-radius: 4px; color: var(--canal); text-align: left; font-weight: 500; }
.canal:hover { background: var(--hover); color: var(--texto); }
.canal.ativo { background: var(--selecionado); color: #fff; }
.canal.nao-lido { color: #fff; font-weight: 600; }
.canal.nao-lido::before { content: ""; position: absolute; left: -8px; top: 50%; width: 8px; height: 8px; margin-top: -4px; margin-left: -4px; border-radius: 0 4px 4px 0; background: #fff; }
.canal > i[data-icone] { width: 20px; height: 20px; color: var(--canal); }
.canal.ativo > i[data-icone], .canal:hover > i[data-icone] { color: var(--texto); }
.canal .canal-nome { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.canal .canal-cfg { opacity: 0; width: 16px; height: 16px; color: #b5bac1; }
.canal .canal-cfg i { width: 16px; height: 16px; }
.canal:hover .canal-cfg, .canal.ativo .canal-cfg { opacity: 1; }
.canal .canal-cfg:hover { color: #fff; }
.icone-cadeado { position: relative; }
/* Canal de voz com gente: ícone verde e o relógio da chamada, como no Discord. */
.canal.com-gente > i[data-icone], .canal.com-gente:hover > i[data-icone] { color: var(--verde); }
.tempo-chamada { flex: none; color: var(--verde); font: 600 12px/1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
/* A engrenagem do administrador só ocupa lugar quando aparece (passar o mouse). */
.canal.com-gente:not(:hover) .canal-cfg { display: none; }
.canal:hover:has(.canal-cfg) .tempo-chamada { display: none; }
.rec { background: #ed4245; color: #fff; font-size: 9px; font-weight: 800; line-height: 15px; padding: 0 4px; border-radius: 3px; letter-spacing: .04em; animation: piscar 1.6s infinite; }
@keyframes piscar { 50% { opacity: .55; } }

.voz-pessoas { padding: 0 0 4px 36px; }
.vp { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; margin: 1px 0; border-radius: 4px; color: var(--canal); font-size: 14px; cursor: default; }
.vp:hover { background: var(--hover); color: var(--texto); }
.vp .avatar { width: 24px; height: 24px; font-size: 10px; }
.vp .vp-nome { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp .vp-icones { display: flex; gap: 4px; align-items: center; color: var(--canal); }
.vp .vp-icones i { width: 16px; height: 16px; }
.ao-vivo { background: #ed4245; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; padding: 0 5px; border-radius: 8px; letter-spacing: .02em; text-transform: uppercase; }
.vp.falando .avatar, .bloco.falando, .avatar.falando { box-shadow: 0 0 0 2px var(--verde); }
.vp.falando .avatar { box-shadow: 0 0 0 2px var(--lateral), 0 0 0 4px var(--verde); }

/* painel "voz conectada" e painel do usuário */
.painel-voz { flex: none; background: var(--painel-usuario); border-bottom: 1px solid #2e2f34; padding: 8px; }
.pv-linha { display: flex; align-items: center; gap: 8px; }
.pv-info { flex: 1; min-width: 0; }
.pv-status { display: flex; align-items: center; gap: 4px; color: var(--verde); font-weight: 600; font-size: 14px; }
.pv-status i { width: 16px; height: 16px; }
.pv-status.conectando { color: var(--amarelo); }
.pv-canal { color: var(--fraco); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-botoes { display: flex; gap: 8px; margin-top: 8px; }
.pv-botao { flex: 1; height: 32px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 4px; background: #2b2d31; color: var(--texto); font-size: 14px; font-weight: 500; }
.pv-botao:hover { background: #393c41; }
.pv-botao i { width: 18px; height: 18px; }
.pv-botao.ligado { background: var(--verde); color: #fff; }

.painel-usuario { flex: none; height: 52px; background: var(--painel-usuario); display: flex; align-items: center; gap: 2px; padding: 0 8px; }
.pu-conta { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 4px 2px 4px 4px; margin-left: -2px; border-radius: 4px; text-align: left; }
.pu-conta:hover { background: var(--hover); }
.pu-nomes { min-width: 0; display: flex; flex-direction: column; line-height: 18px; }
.pu-nome { color: var(--forte); font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pu-sub { color: var(--fraco); font-size: 12px; line-height: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icone-btn { width: 32px; height: 32px; flex: none; display: inline-grid; place-items: center; border-radius: 4px; color: #b5bac1; }
.icone-btn:hover { background: var(--hover); color: var(--texto); }
.icone-btn.desligado { color: #f23f42; }
.icone-btn i { width: 20px; height: 20px; }
#desconectar { color: var(--texto); }
#desconectar:hover { color: #fff; background: var(--hover); }

/* avatares */
.avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 600; font-size: 13px; user-select: none; background: var(--azul); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-wrap { position: relative; display: inline-flex; flex: none; }
.status-dot { position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--painel-usuario); background: #80848e; }
.status-dot.online, .status-dot.st-online { background: var(--verde); }
.status-dot.st-ausente { background: var(--amarelo); }
.status-dot.st-pausa { background: #e67e22; }
.status-dot.st-ocupado { background: #f23f42; }
.status-dot.st-offline { background: #80848e; }

/* ---------- principal ---------- */
.principal { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--chat); }
.cab-canal { height: 48px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 16px; box-shadow: var(--sombra-cab); z-index: 2; min-width: 0; }
.cab-icone { color: var(--canal); width: 24px !important; height: 24px !important; }
.cab-canal h1 { margin: 0; font-size: 16px; font-weight: 600; color: var(--forte); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cab-desc { color: var(--fraco); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 8px; margin-left: 4px; border-left: 1px solid var(--divisor); min-width: 0; }
.cab-desc:empty { display: none; }
.cab-acoes { margin-left: auto; display: flex; gap: 8px; }
.cab-acoes .icone-btn.ligado { color: var(--forte); }
.so-estreito { display: none !important; }
.corpo { flex: 1; min-height: 0; display: flex; position: relative; }

/* chat */
.vista-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rolagem { flex: 1; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; }
.mensagens { margin-top: auto; padding-bottom: 24px; }
.boas-vindas { margin: 16px 16px 8px; }
.boas-vindas .bv-icone { width: 68px; height: 68px; border-radius: 50%; background: #41434a; display: grid; place-items: center; color: #fff; margin-bottom: 8px; }
.boas-vindas .bv-icone i { width: 42px; height: 42px; }
.boas-vindas h2 { margin: 8px 0; font-size: 32px; line-height: 40px; color: var(--forte); font-weight: 700; }
.boas-vindas p { margin: 0; color: #b5bac1; }
.boas-vindas .bv-cargos { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; color: #b5bac1; font-size: 14px; }
.carregar-mais { margin: 16px auto 0; display: block; color: var(--link); font-size: 14px; }
.dia { display: flex; align-items: center; margin: 24px 16px 8px 16px; color: var(--fraco); font-size: 12px; font-weight: 600; }
.dia::before, .dia::after { content: ""; flex: 1; height: 1px; background: var(--divisor); }
.dia span { padding: 0 6px; }
.msg { position: relative; padding: 2px 48px 2px 72px; min-height: 22px; word-wrap: break-word; }
.msg:hover { background: rgba(2, 2, 2, .06); }
.msg.inicio { margin-top: 17px; min-height: 44px; }
.msg .msg-avatar { position: absolute; left: 16px; top: 4px; width: 40px; height: 40px; font-size: 15px; cursor: pointer; }
.msg .msg-cab { display: flex; align-items: baseline; gap: 8px; line-height: 22px; }
.msg .msg-autor { color: var(--forte); font-weight: 500; font-size: 16px; cursor: pointer; }
.msg .msg-autor:hover { text-decoration: underline; }
.msg .msg-hora { color: var(--fraco); font-size: 12px; }
.msg .msg-hora-lado { position: absolute; left: 0; width: 72px; top: 4px; text-align: center; color: var(--fraco); font-size: 11px; line-height: 22px; opacity: 0; }
.msg:hover .msg-hora-lado { opacity: 1; }
.msg .msg-texto { color: var(--texto); white-space: pre-wrap; line-height: 22px; user-select: text; }
.msg .msg-texto a { color: var(--link); text-decoration: none; }
.msg .msg-texto a:hover { text-decoration: underline; }
.msg.enviando .msg-texto { color: var(--fraco); }
.msg-acoes { position: absolute; right: 16px; top: -16px; display: none; background: var(--chat); border: 1px solid #26282c; border-radius: 4px; box-shadow: 0 0 0 1px rgba(4, 4, 5, .08); }
.msg:hover .msg-acoes { display: flex; }
.msg-acoes button { width: 32px; height: 32px; display: grid; place-items: center; color: #b5bac1; }
.msg-acoes button:hover { color: #f23f42; background: var(--hover); }
.msg-acoes i { width: 18px; height: 18px; }
.msg-acoes .editar-msg:hover, .msg-acoes .fixar-msg:hover { color: #dbdee1; }
.msg-acoes .fixar-msg.ligado { color: var(--azul); }
/* Mensagem fixada: alfinete pequeno à direita. */
.msg-alfinete { position: absolute; right: 16px; top: 4px; color: var(--fraco); line-height: 0; }
.msg-alfinete i { width: 14px; height: 14px; }
.msg.inicio .msg-alfinete { top: 6px; }
/* Linha de sistema ("fulano fixou uma mensagem"): discreta, sem avatar. */
.msg.sistema { display: flex; align-items: flex-start; gap: 0; margin-top: 8px; padding-left: 0; color: var(--fraco); font-size: 14px; line-height: 22px; }
.msg.sistema .sis-icone { flex: none; width: 72px; display: grid; place-items: center; height: 22px; color: var(--fraco); }
.msg.sistema .sis-icone i { width: 16px; height: 16px; }
.msg.sistema .msg-autor { font-size: 14px; color: var(--forte); }
.msg.sistema .sis-link { color: var(--forte); font-weight: 600; cursor: pointer; }
.msg.sistema .sis-link:hover { text-decoration: underline; }
.msg.sistema .msg-hora { margin-left: 8px; }
/* Ir até a mensagem (pela lista de fixadas): destaque que some sozinho. */
.msg.destacada { animation: destacar 2.4s ease-out; }
@keyframes destacar { 0%, 30% { background: rgba(88, 101, 242, .22); } 100% { background: transparent; } }
/* Edição no lugar (como no Discord) e a marca de mensagem editada. */
.msg-edicao-caixa { margin: 4px 0 2px; }
.msg-edicao { width: 100%; resize: none; min-height: 40px; max-height: 300px; padding: 10px 12px; border: 0; border-radius: 8px;
  background: #383a40; color: #dbdee1; font: inherit; line-height: 1.375; outline: none; }
.msg-edicao:focus-visible { box-shadow: 0 0 0 2px #5865f2; }
.msg-edicao-dica { margin-top: 4px; font-size: 12px; color: #949ba4; }
.msg-editada { font-size: 11px; color: #949ba4; cursor: default; }

.compositor { flex: none; padding: 0 16px; position: relative; }
.caixa-msg { background: var(--entrada); border-radius: 8px; padding: 11px 16px; display: flex; }
.caixa-msg textarea { flex: 1; resize: none; border: 0; outline: none; background: none; color: var(--texto); line-height: 22px; max-height: 50vh; padding: 0; }
.caixa-msg textarea::placeholder { color: #6d6f78; }
.digitando { height: 24px; font-size: 14px; color: var(--texto); display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; }
.digitando b { font-weight: 700; }
.pontinhos { display: inline-flex; gap: 3px; margin-left: 2px; }
.pontinhos span { width: 6px; height: 6px; border-radius: 50%; background: var(--texto); animation: pulo 1.2s infinite ease-in-out; opacity: .4; }
.pontinhos span:nth-child(2) { animation-delay: .15s; }
.pontinhos span:nth-child(3) { animation-delay: .3s; }
@keyframes pulo { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }

/* membros */
.membros { width: 240px; flex: none; background: var(--lateral); overflow-y: auto; padding: 0 8px 20px 8px; }
.app.sem-membros .membros { display: none; }
.grupo-membros { padding: 24px 8px 4px 8px; color: var(--fraco); font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.membro { display: flex; align-items: center; gap: 12px; width: 100%; height: 42px; padding: 0 8px; margin: 1px 0; border-radius: 4px; text-align: left; }
.membro:hover { background: var(--hover); }
.membro .avatar-wrap .status-dot { border-color: var(--lateral); width: 14px; height: 14px; }
.membro:hover .avatar-wrap .status-dot { border-color: #35373c; }
.membro .m-textos { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 18px; }
.membro .m-linha { display: flex; align-items: center; gap: 4px; min-width: 0; }
.membro .m-sub { color: var(--fraco); font-size: 12px; line-height: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.membro[data-status="pausa"] .m-sub { color: #f0a35e; }
.membro .m-nome { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--fraco); }
.membro.online .m-nome { color: var(--texto); }
.membro.offline { opacity: .3; }
.membro.offline:hover { opacity: 1; }
.membro .m-coroa { width: 14px; height: 14px; color: var(--amarelo); }
.membro .m-mudo { width: 14px; height: 14px; flex: none; }

/* voz */
.vista-voz { flex: 1; min-width: 0; position: relative; background: #000; display: flex; flex-direction: column; }
.voz-fora { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; background: #000; z-index: 1; }
.voz-fora-icone { width: 56px !important; height: 56px !important; color: var(--fraco); margin-bottom: 8px; }
.voz-fora h2 { margin: 0 0 6px; color: var(--forte); font-size: 24px; }
.voz-fora p { margin: 0 0 16px; color: var(--fraco); }
.voz-fora-avatares { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; justify-content: center; }
.voz-fora-avatares .avatar { width: 48px; height: 48px; font-size: 16px; }
/* Palco: cada bloco tem lugar calculado (calcularLayout) e desliza até ele quando entra ou sai gente. */
.palco { position: relative; flex: 1; min-height: 0; margin: 16px; overflow: hidden; }
.bloco { position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: 8px; overflow: hidden; background: #2b2d31; display: grid; place-items: center; cursor: pointer;
  transition: left .28s cubic-bezier(.2, .8, .2, 1), top .28s cubic-bezier(.2, .8, .2, 1), width .28s cubic-bezier(.2, .8, .2, 1), height .28s cubic-bezier(.2, .8, .2, 1), box-shadow .1s; }
.bloco:hover { background: #313338; }
.bloco .avatar { width: var(--av, 80px); height: var(--av, 80px); font-size: calc(var(--av, 80px) * .36); }
.bloco video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.bloco.tela video, .bloco.foco video { object-fit: contain; }
.bloco.falando { box-shadow: inset 0 0 0 2px var(--verde), 0 0 0 0 transparent; }
.bloco.falando::after { content: ""; position: absolute; inset: 0; border-radius: 8px; box-shadow: inset 0 0 0 2px var(--verde); pointer-events: none; }
.etiqueta { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); display: flex; align-items: center; gap: 4px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 14px; font-weight: 500; padding: 2px 8px; border-radius: 4px; z-index: 1; }
.etiqueta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etiqueta i { width: 16px; height: 16px; color: #f23f42; }
.barra-voz { flex: none; display: flex; justify-content: center; gap: 12px; padding: 12px 16px 20px; }
.redondo { width: 56px; height: 56px; border-radius: 50%; background: #2b2d31; color: var(--texto); display: grid; place-items: center; transition: background .15s, color .15s; }
.redondo:hover { background: #393c41; }
.redondo.ligado { background: #fff; color: #000; }
.redondo.desligado { background: #fff; color: #da373c; }
.redondo.gravar { color: #f23f42; }
.redondo.gravar.gravando { background: #f23f42; color: #fff; animation: piscar 1.6s infinite; }
.aviso-gravacao { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 32px);
  background: rgba(17, 18, 20, .88); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 16px; box-shadow: var(--sombra-alta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ponto-rec { width: 10px; height: 10px; border-radius: 50%; background: #f23f42; flex: none; animation: piscar 1.2s infinite; }
.rec-tempo { font: 600 12px ui-monospace, Consolas, monospace; color: #fca5a5; }
.redondo.vermelho { background: var(--vermelho); color: #fff; }
.redondo.vermelho:hover { background: #a12828; }
.redondo i { width: 24px; height: 24px; }

/* menus, popouts, toasts */
.menu-flutuante { position: absolute; top: 56px; left: 10px; right: 10px; z-index: 20; background: var(--flutuante); border-radius: 4px; padding: 6px 8px; box-shadow: var(--sombra-alta); }
.menu-flutuante button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 8px; margin: 2px 0; border-radius: 2px; color: #b5bac1; font-size: 14px; font-weight: 500; text-align: left; }
.menu-flutuante button:hover { background: var(--azul); color: #fff; }
.menu-flutuante button.perigo { color: #f23f42; }
.menu-flutuante button.perigo:hover { background: var(--vermelho); color: #fff; }
.menu-flutuante button i { width: 18px; height: 18px; }
.menu-flutuante .sep { height: 1px; background: #2e2f34; margin: 4px; }

.popout { position: fixed; z-index: 40; width: 300px; max-height: calc(100vh - 16px); overflow-x: hidden; overflow-y: auto; background: var(--flutuante); border-radius: 8px; box-shadow: var(--sombra-alta); }
.popout .faixa { height: 60px; }
.popout .po-avatar { position: absolute; top: 16px; left: 16px; border: 6px solid var(--flutuante); border-radius: 50%; }
.popout .po-avatar .avatar { width: 80px; height: 80px; font-size: 28px; }
.popout .po-corpo { margin: 48px 12px 12px; background: #1e1f22; border-radius: 8px; padding: 12px; }
.popout h3 { margin: 0; color: var(--forte); font-size: 20px; line-height: 24px; }
.popout .po-usuario { color: var(--texto); font-size: 14px; }
.popout .po-sep { height: 1px; background: #2e2f34; margin: 12px 0; }
.popout h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; font-weight: 700; color: var(--forte); letter-spacing: .02em; }
.popout .po-avatar .status-dot { width: 22px; height: 22px; border: 5px solid var(--flutuante); right: 0; bottom: 2px; }
.popout .po-status { color: var(--texto); font-size: 13px; margin-top: 6px; }
.popout .po-sobre { color: var(--texto); font-size: 14px; white-space: pre-wrap; word-wrap: break-word; }
.po-acao { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px; border-radius: 4px; color: var(--texto); font-size: 14px; font-weight: 500; margin-top: 4px; }
.po-acao:hover { background: var(--azul); color: #fff; }
.po-acao i { width: 18px; height: 18px; }
.seletor-status { display: flex; flex-direction: column; gap: 2px; }
.item-status { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 4px; text-align: left; color: var(--texto); }
.item-status:hover { background: var(--hover); }
.item-status.escolhido { background: var(--selecionado); }
.item-status .status-dot { position: static; flex: none; width: 12px; height: 12px; border: 0; }
.item-status .is-textos { display: flex; flex-direction: column; min-width: 0; }
.item-status b { font-size: 14px; font-weight: 500; }
.item-status small { color: var(--fraco); font-size: 12px; line-height: 15px; }

.chips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px 0 6px; border-radius: 4px; background: #2b2d31; color: var(--texto); font-size: 12px; font-weight: 500; max-width: 100%; }
.chip .bolinha { width: 12px; height: 12px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.chip .bolinha i { width: 10px; height: 10px; color: #000; opacity: 0; }
.chip.removivel .bolinha:hover i { opacity: 1; }
.chip.removivel .bolinha { cursor: pointer; }
.chip .marca-ad { font-size: 9px; font-weight: 700; color: var(--fraco); border: 1px solid #4e5058; border-radius: 3px; padding: 0 3px; line-height: 12px; }
.chip-mais { width: 24px; height: 24px; border-radius: 4px; background: #2b2d31; color: var(--texto); display: grid; place-items: center; }
.chip-mais:hover { background: #393c41; }
.chip-mais i { width: 14px; height: 14px; }
.seletor-cargos { margin-top: 8px; background: #2b2d31; border-radius: 4px; max-height: 200px; overflow-y: auto; padding: 4px; }
.seletor-cargos button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border-radius: 3px; font-size: 14px; color: var(--texto); text-align: left; }
.seletor-cargos button:hover { background: var(--hover); }
.seletor-cargos .bolinha { width: 12px; height: 12px; border-radius: 50%; }
.seletor-cargos .vazio { padding: 6px 8px; color: var(--fraco); font-size: 13px; }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 60; max-width: min(520px, calc(100vw - 32px)); background: var(--flutuante); color: var(--texto); border-radius: 6px; padding: 10px 14px; box-shadow: var(--sombra-alta); font-size: 14px; font-weight: 500; border-left: 4px solid var(--azul); }
.toast.ruim { border-left-color: var(--vermelho); }

/* ---------- modal (criar/editar canal) ---------- */
.modal-fundo { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .7); display: grid; place-items: center; padding: 16px; animation: aparecer .12s ease-out; }
@keyframes aparecer { from { opacity: 0; } }
.modal { width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--chat); border-radius: 8px; box-shadow: var(--sombra-alta); animation: crescer .15s ease-out; }
@keyframes crescer { from { transform: scale(.94); } }
.modal-cab { padding: 16px 16px 0; position: relative; }
.modal-cab h2 { margin: 0; color: var(--forte); font-size: 20px; font-weight: 600; }
.modal-cab p { margin: 2px 0 0; color: #b5bac1; font-size: 12px; }
.modal-cab .fechar { position: absolute; top: 12px; right: 12px; color: #b5bac1; }
.modal-corpo { padding: 16px; }
.modal-rodape { background: #2b2d31; padding: 16px; display: flex; justify-content: flex-end; gap: 8px; border-radius: 0 0 8px 8px; }
.modal-rodape .esquerda { margin-right: auto; }
.rotulo { display: block; margin: 16px 0 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: #b5bac1; }
.rotulo:first-child { margin-top: 0; }
.campo { width: 100%; height: 40px; padding: 10px; border: 0; border-radius: 3px; background: #1e1f22; color: var(--texto); outline: none; }
.campo:focus { box-shadow: 0 0 0 2px var(--azul) inset; }
.campo-icone { position: relative; }
.campo-icone i { position: absolute; left: 8px; top: 10px; color: #b5bac1; }
.campo-icone .campo { padding-left: 34px; }
select.campo { appearance: auto; }
.tipos { display: grid; gap: 8px; }
.tipo { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 4px; background: #2b2d31; cursor: pointer; }
.tipo:hover { background: #393c41; }
.tipo.marcado { background: #404249; }
.tipo i { width: 24px; height: 24px; color: #b5bac1; }
.tipo b { display: block; color: var(--texto); font-weight: 500; }
.tipo small { color: #b5bac1; font-size: 14px; }
.tipo .radio { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #b5bac1; }
.tipo.marcado .radio { border-color: #fff; box-shadow: inset 0 0 0 4px var(--chat), inset 0 0 0 10px #fff; }
.alternador { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.alternador .at-texto { flex: 1; }
.alternador b { display: block; color: var(--texto); font-weight: 500; }
.alternador small { color: #b5bac1; font-size: 14px; }
.chave { position: relative; width: 40px; height: 24px; flex: none; border-radius: 12px; background: #80848e; transition: background .2s; }
.chave::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.chave[aria-checked="true"] { background: var(--verde); }
.chave[aria-checked="true"]::after { transform: translateX(16px); }
.lista-marcar { margin-top: 8px; border-radius: 4px; background: #2b2d31; padding: 4px; max-height: 220px; overflow-y: auto; }
.marcar { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 3px; cursor: pointer; font-size: 14px; }
.marcar:hover { background: var(--hover); }
.marcar .caixinha { width: 20px; height: 20px; border-radius: 4px; border: 1px solid #80848e; display: grid; place-items: center; flex: none; }
.marcar.marcado .caixinha { background: var(--azul); border-color: var(--azul); }
.marcar .caixinha i { width: 14px; height: 14px; color: #fff; opacity: 0; }
.marcar.marcado .caixinha i { opacity: 1; }
.marcar .bolinha { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dica { color: var(--fraco); font-size: 13px; margin: 8px 0 0; }
.erro-form { color: #fa777c; font-size: 14px; margin: 12px 0 0; min-height: 0; }

/* ---------- configurações (tela cheia, como no Discord) ---------- */
.config { position: fixed; inset: 0; z-index: 45; display: flex; background: var(--chat); animation: aparecer .12s ease-out; }
.config-nav { flex: 1 0 218px; background: var(--lateral); display: flex; justify-content: flex-end; overflow-y: auto; }
.config-nav-interno { width: 218px; padding: 60px 6px 60px 20px; }
.config-nav h3 { margin: 0; padding: 6px 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--fraco); letter-spacing: .02em; }
.config-nav button { display: block; width: 100%; text-align: left; padding: 6px 10px; margin-bottom: 2px; border-radius: 4px; color: #b5bac1; font-size: 16px; font-weight: 500; }
.config-nav button:hover { background: var(--hover); color: var(--texto); }
.config-nav button.ativo { background: var(--selecionado); color: #fff; }
.config-nav button.perigo { color: #f23f42; }
.config-nav .sep { height: 1px; background: var(--divisor); margin: 8px 10px; }
.config-conteudo { flex: 1 1 800px; display: flex; overflow-y: auto; position: relative; }
.config-interno { width: 100%; max-width: 740px; padding: 60px 40px 80px; }
.config-interno h2 { margin: 0 0 20px; color: var(--forte); font-size: 20px; font-weight: 600; }
.fechar-config { position: sticky; top: 60px; margin: 60px 21px 0 0; height: 60px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #b5bac1; font-size: 13px; font-weight: 600; flex: none; }
.fechar-config i { width: 36px; height: 36px; padding: 7px; border-radius: 50%; border: 2px solid #b5bac1; }
.fechar-config:hover { color: #fff; }
.fechar-config:hover i { border-color: #fff; }
.secao-desc { color: #b5bac1; font-size: 14px; margin: -12px 0 20px; }

.cartao-conta { border-radius: 8px; overflow: hidden; background: #1e1f22; }
.cartao-conta .faixa { height: 100px; }
.cartao-conta .cc-topo { display: flex; align-items: flex-end; gap: 16px; padding: 0 16px; margin-top: -38px; }
.cartao-conta .cc-topo .avatar { width: 80px; height: 80px; font-size: 28px; border: 7px solid #1e1f22; box-sizing: content-box; }
.cartao-conta .cc-topo h3 { margin: 0 0 8px; color: var(--forte); font-size: 20px; }
.cartao-conta .cc-corpo { margin: 16px; padding: 16px; border-radius: 8px; background: #2b2d31; }
.cartao-conta .cc-linha { margin-bottom: 16px; }
.cartao-conta .cc-linha:last-child { margin-bottom: 0; }
.cartao-conta .cc-rotulo { font-size: 12px; font-weight: 700; text-transform: uppercase; color: #b5bac1; margin-bottom: 4px; }

.duas-colunas { display: grid; grid-template-columns: 200px 1fr; gap: 20px; }
.lista-cargos { display: flex; flex-direction: column; gap: 2px; }
.lista-cargos button { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 4px; color: #b5bac1; font-weight: 500; text-align: left; }
.lista-cargos button:hover { background: var(--hover); color: var(--texto); }
.lista-cargos button.ativo { background: var(--selecionado); color: #fff; }
.lista-cargos .botao-primario { color: #fff; justify-content: center; margin-bottom: 8px; }
.lista-cargos .botao-primario:hover { background: var(--azul-escuro); color: #fff; }
.lista-cargos .bolinha { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.lista-cargos .qtd { margin-left: auto; font-size: 12px; color: var(--fraco); }
.cores { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cor { width: 24px; height: 24px; border-radius: 4px; cursor: pointer; border: 0; }
.cor.escolhida { box-shadow: 0 0 0 2px var(--chat), 0 0 0 4px #fff; }
.cor-livre { width: 48px; height: 36px; border: 0; padding: 0; background: none; cursor: pointer; }
.acoes-form { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }

.tabela-canais .tc-cat { display: flex; align-items: center; gap: 8px; padding: 12px 8px 4px; color: var(--fraco); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.tabela-canais .tc-cat span { flex: 1; }
.tc-linha { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 4px; }
.tc-linha:hover { background: var(--hover); }
.tc-linha > i { color: var(--canal); }
.tc-linha .tc-nome { min-width: 120px; color: var(--texto); font-weight: 500; }
.tc-linha .chips { flex: 1; }
.tc-linha .tc-pub { flex: 1; color: var(--fraco); font-size: 13px; }
.mini { width: 28px; height: 28px; border-radius: 4px; display: inline-grid; place-items: center; color: #b5bac1; flex: none; }
.mini:hover { background: #404249; color: #fff; }
.mini i { width: 16px; height: 16px; }

.busca { margin-bottom: 12px; }
.linha-membro { display: grid; grid-template-columns: 40px minmax(140px, 1fr) minmax(0, 1.4fr); align-items: center; gap: 12px; padding: 10px 8px; border-bottom: 1px solid var(--divisor); }
.linha-membro .lm-nome i { width: 14px; height: 14px; color: var(--amarelo); vertical-align: -1px; margin-left: 4px; }
.linha-membro .lm-nome { color: var(--forte); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linha-membro .lm-sub { color: var(--fraco); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- anexos, figurinhas e visor ---------- */
.caixa-msg { align-items: flex-start; gap: 4px; padding: 0 8px 0 4px; }
.caixa-msg textarea { padding: 11px 4px; }
.botao-anexo, .botao-figurinha { flex: none; width: 40px; height: 44px; display: grid; place-items: center; color: #b5bac1; }
.botao-anexo:hover, .botao-figurinha:hover { color: var(--texto); }
.botao-anexo i, .botao-figurinha i { width: 24px; height: 24px; }
.envios { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.envio { display: grid; grid-template-columns: minmax(0, 1fr) auto 160px 44px; gap: 10px; align-items: center; background: #2b2d31; border-radius: 6px; padding: 8px 12px; font-size: 13px; }
.envio-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--texto); }
.envio-barra { height: 6px; border-radius: 3px; background: #1e1f22; overflow: hidden; }
.envio-barra i { display: block; height: 100%; width: 0; background: var(--azul); transition: width .2s; }
.envio-pct { color: var(--fraco); text-align: right; font-variant-numeric: tabular-nums; }
.envio-tam { color: var(--fraco); white-space: nowrap; font-variant-numeric: tabular-nums; }

.anexo { display: block; margin-top: 6px; max-width: min(400px, 100%); border-radius: 8px; overflow: hidden; }
.anexo-img { background: #2b2d31; cursor: zoom-in; max-height: 300px; }
.anexo-img img { display: block; width: 100%; height: 100%; max-height: 300px; object-fit: contain; }
.anexo-video { background: #2b2d31; width: fit-content; }
.anexo-video video { display: block; max-width: min(400px, 100%); max-height: 300px; background: #000; }
.anexo-rodape { display: flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: 12px; color: var(--fraco); }
.anexo-nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--texto); }
.anexo-baixar { color: #b5bac1; display: inline-grid; }
.anexo-baixar:hover { color: #fff; }
.anexo-baixar i { width: 16px; height: 16px; }
.figurinha { display: block; width: 160px; height: 160px; object-fit: contain; margin-top: 4px; }
.figurinha-apagada { color: var(--fraco); font-style: italic; font-size: 14px; }

.visor { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .85); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; animation: aparecer .12s ease-out; }
.visor img { max-width: 92vw; max-height: calc(100vh - 90px); object-fit: contain; border-radius: 4px; box-shadow: var(--sombra-alta); }
.visor-rodape { display: flex; gap: 16px; align-items: center; color: var(--fraco); font-size: 14px; }
.visor-rodape a { color: #fff; text-decoration: none; opacity: .8; }
.visor-rodape a:hover { opacity: 1; text-decoration: underline; }

.soltar-aqui { position: fixed; inset: 0; z-index: 65; background: rgba(0, 0, 0, .6); display: grid; place-items: center; pointer-events: none; }
.soltar-aqui > div { width: 320px; padding: 28px 24px; border-radius: 12px; background: var(--azul); color: #fff; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; box-shadow: 0 0 0 8px rgba(88, 101, 242, .35); }
.soltar-aqui i { width: 48px; height: 48px; }
.soltar-aqui b { font-size: 20px; }

.seletor-figurinhas { position: absolute; right: 16px; bottom: 72px; z-index: 25; width: min(420px, calc(100% - 32px)); max-height: 380px; overflow-y: auto; background: var(--lateral); border-radius: 8px; box-shadow: var(--sombra-alta), 0 0 0 1px #1e1f22; padding: 12px; }
.fig-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; color: var(--forte); }
.botao-primario.pequeno, .botao-link.pequeno { min-height: 30px; padding: 2px 12px; font-size: 13px; }
.fig-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.fig-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.fig-usar { width: 88px; height: 88px; border-radius: 8px; display: grid; place-items: center; }
.fig-usar:hover { background: var(--hover); }
.fig-usar img { max-width: 76px; max-height: 76px; object-fit: contain; }
.fig-nome { font-size: 11px; color: var(--fraco); max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fig-apagar { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; background: #1e1f22; color: #b5bac1; display: none; place-items: center; }
.fig-item:hover .fig-apagar { display: grid; }
.fig-apagar:hover { background: var(--vermelho); color: #fff; }
.fig-apagar i { width: 12px; height: 12px; }
.fig-vazio { text-align: center; padding: 16px 8px; }
.fig-form { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; }
.fig-previa { width: 120px; height: 120px; border-radius: 8px; background: #1e1f22; display: grid; place-items: center; color: var(--fraco); }
.fig-previa i { width: 40px; height: 40px; }
.fig-previa img { max-width: 112px; max-height: 112px; object-fit: contain; }

/* ---------- mini chamada flutuante ---------- */
.mini-chamada { position: fixed; z-index: 55; width: 320px; border-radius: 10px; overflow: hidden; background: #111214; box-shadow: 0 12px 32px rgba(0, 0, 0, .5), 0 0 0 1px #2b2d31; cursor: grab; user-select: none; touch-action: none; }
.mini-chamada.arrastando { cursor: grabbing; box-shadow: 0 16px 40px rgba(0, 0, 0, .6), 0 0 0 2px var(--azul); }
.mini-chamada.falando { box-shadow: 0 12px 32px rgba(0, 0, 0, .5), 0 0 0 2px var(--verde); }
.mc-video { height: 180px; display: grid; place-items: center; background: #1e1f22; }
.mc-video video { width: 100%; height: 100%; object-fit: cover; }
.mc-video .avatar { width: 72px; height: 72px; font-size: 26px; transition: box-shadow .1s; }
.mini-chamada.falando .mc-video .avatar { box-shadow: 0 0 0 3px #1e1f22, 0 0 0 6px var(--verde); }
.mc-barra { display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 12px; background: #111214; }
.mc-nome { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: var(--forte); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-btn { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #dbdee1; background: #2b2d31; }
.mc-btn:hover { background: #393c41; }
.mc-btn.desligado { color: #f23f42; }
.mc-btn.vermelho { background: var(--vermelho); color: #fff; }
.mc-btn i { width: 18px; height: 18px; }

/* arrastar membros entre chamadas (administrador) */
.vp[draggable="true"] { cursor: grab; }
.canal.alvo-soltar { background: rgba(88, 101, 242, .3); box-shadow: inset 0 0 0 2px var(--azul); color: #fff; }
/* convidado numa reunião privada: só aquela chamada, enquanto estiver nela */
.vp .tag-convidado { color: var(--link); }
/* silenciado até voltar: a pessoa religa quando voltar (o vermelho fica para o permanente) */
.mudo-temporario { color: var(--amarelo) !important; }

/* arrastar canais e categorias (administrador): linha azul onde o item vai cair */
.canal.arrastando, .categoria.arrastando { opacity: .4; }
.soltar-acima, .soltar-abaixo { position: relative; z-index: 1; }
.soltar-acima { box-shadow: 0 -2px 0 var(--azul); }
.soltar-abaixo { box-shadow: 0 2px 0 var(--azul); }

/* tela cheia de uma câmera ou transmissão */
.bloco-tela-cheia { position: absolute; top: 8px; right: 8px; z-index: 2; width: 32px; height: 32px; border-radius: 6px; background: rgba(0, 0, 0, .6); color: #fff; display: none; place-items: center; }
.bloco:hover .bloco-tela-cheia { display: grid; }
.bloco:not(:has(video)) .bloco-tela-cheia { display: none !important; }
.bloco-tela-cheia:hover { background: rgba(0, 0, 0, .85); }
.bloco-tela-cheia i { width: 18px; height: 18px; }
.bloco:fullscreen { border-radius: 0; background: #000; }
.bloco:fullscreen video { object-fit: contain; }
.bloco:fullscreen .bloco-tela-cheia { display: grid; }
/* nome da chamada no painel "Voz conectada": leva para ela */
.pv-info { cursor: pointer; border-radius: 4px; }
.pv-info:hover .pv-canal { color: var(--texto); text-decoration: underline; }
#abrir-mini.ligado { color: #fff; background: var(--hover); }

/* ---------- efeitos de câmera ---------- */
.redondo.pequeno { width: 40px; height: 40px; align-self: center; margin-left: -6px; }
.redondo.pequeno i { width: 20px; height: 20px; }
.modal.modal-largo { max-width: 640px; }
.previa-efeito { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #111214; display: grid; place-items: center; color: var(--fraco); font-size: 14px; }
.previa-efeito video { width: 100%; height: 100%; object-fit: cover; }
.grade-efeitos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.cartao-efeito { display: flex; flex-direction: column; gap: 4px; padding: 4px; border-radius: 8px; background: #2b2d31; color: var(--texto); font-size: 12px; text-align: center; }
.cartao-efeito:hover { background: #393c41; }
.cartao-efeito.escolhido { box-shadow: 0 0 0 2px var(--azul); }
.ce-amostra { aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; display: grid; place-items: center; background: #1e1f22; color: #b5bac1; }
.ce-amostra img { width: 100%; height: 100%; object-fit: cover; }
.ce-amostra i { width: 22px; height: 22px; }
.ce-desfoque { width: 100%; height: 100%; background: radial-gradient(circle at 50% 70%, #8b93a7 0 22%, transparent 23%), linear-gradient(135deg, #6b7a99, #c9b8a6, #7f8fa3); filter: blur(3px); }
.ce-nome { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- menu do botão direito ---------- */
.menu-contexto { position: fixed; z-index: 75; min-width: 200px; max-width: 260px; max-height: calc(100vh - 16px); overflow-y: auto;
  background: var(--flutuante); border-radius: 6px; padding: 6px 8px; box-shadow: var(--sombra-alta), 0 0 0 1px rgba(255, 255, 255, .04); }
.mc-titulo { padding: 6px 8px 4px; color: var(--fraco); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 7px 8px; margin: 2px 0; border-radius: 3px; color: #b5bac1; font-size: 14px; font-weight: 500; text-align: left; }
.mc-item:hover:not(:disabled) { background: var(--azul); color: #fff; }
.mc-item.perigo { color: #f23f42; }
.mc-item.perigo:hover { background: var(--vermelho); color: #fff; }
.mc-item i { width: 16px; height: 16px; flex: none; }
.mc-item.voltar { justify-content: flex-start; color: var(--fraco); }
.mc-rotulo { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-marca { width: 18px; height: 18px; flex: none; border-radius: 4px; border: 1px solid #80848e; display: grid; place-items: center; }
.mc-marca.sim { background: var(--azul); border-color: var(--azul); color: #fff; }
.mc-item:hover .mc-marca { border-color: #fff; }
.mc-sep { height: 1px; background: #2e2f34; margin: 4px; }
.mc-linha-volume { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; padding: 6px 8px; color: #b5bac1; font-size: 13px; }
.mc-volume { width: 100%; accent-color: var(--azul); }
.mc-pct { display: none; }
.mudo-servidor { color: #f23f42 !important; }

/* ---------- canal de site ---------- */
.vista-web { flex: 1; min-width: 0; position: relative; background: #fff; display: flex; }
.quadros-web { flex: 1; display: flex; }
.quadros-web iframe { flex: 1; width: 100%; height: 100%; border: 0; background: #fff; }
.web-fora { position: absolute; inset: 0; background: var(--chat); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 4px; }
.web-fora h2 { margin: 0; color: var(--forte); }
.web-fora p { color: var(--fraco); max-width: 440px; margin: 4px 0 16px; }
.web-fora .botao-primario { display: inline-flex; align-items: center; text-decoration: none; }
a.icone-btn { text-decoration: none; }
.linha-url { display: flex; gap: 8px; }
.linha-url .botao-secundario { flex: none; }
.resultado-site { font-size: 13px; color: var(--fraco); margin: 8px 0 0; }
.resultado-site.bom { color: #3ddc84; }
.resultado-site.ruim { color: #fa777c; }

.aviso-recuperar { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 60; width: min(560px, calc(100vw - 32px)); background: var(--flutuante); border-left: 4px solid var(--amarelo); border-radius: 8px; padding: 12px 16px; box-shadow: var(--sombra-alta); font-size: 14px; }
.aviso-recuperar p { margin: 4px 0 8px; color: var(--fraco); }
.ar-linha { display: flex; align-items: center; gap: 8px; }
.ar-linha span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- meu perfil ---------- */
.perfil-colunas { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.acoes-foto { display: flex; align-items: center; gap: 8px; }
.campo.area { height: auto; min-height: 88px; resize: vertical; line-height: 20px; font-size: 15px; }
.contador { text-align: right; color: var(--fraco); font-size: 12px; margin-top: 4px; }
.cores-faixa { align-items: center; }
.cores-faixa .botao-link { min-height: 28px; font-size: 13px; padding: 2px 6px; }
.previa { position: sticky; top: 0; }
.cartao-previa { position: relative; z-index: auto; box-shadow: 0 0 0 1px #26282c, var(--sombra-alta); }
.subtitulo { margin-top: 40px !important; }

/* ---------- auditoria ---------- */
.aud-barra { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.abas { display: inline-flex; gap: 4px; background: #1e1f22; padding: 4px; border-radius: 8px; }
.aba { padding: 6px 14px; border-radius: 6px; color: #b5bac1; font-size: 14px; font-weight: 500; }
.aba:hover { color: var(--texto); background: var(--hover); }
.aba.ativa { background: var(--azul); color: #fff; }
.aud-dia { display: flex; align-items: center; gap: 4px; }
.campo-dia { width: 160px; height: 34px; padding: 6px 8px; }
.aud-acoes { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.aud-acoes .botao-secundario, .aud-filtros .botao-secundario { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; }
.aud-acoes i, .aud-filtros i { width: 16px; height: 16px; }
.tabela-aud { border-radius: 8px; overflow: hidden; background: #2b2d31; }
.ta-cab, .ta-linha { display: grid; grid-template-columns: minmax(180px, 2fr) repeat(6, minmax(0, 1fr)); gap: 8px; align-items: center; padding: 10px 12px; }
.ta-cab { color: var(--fraco); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; background: #232428; }
.ta-linha { width: 100%; text-align: left; border-top: 1px solid #232428; font-size: 14px; color: var(--texto); font-variant-numeric: tabular-nums; }
.ta-linha:hover { background: #35373c; }
.ta-pessoa { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ta-pessoa > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ta-pessoa b { font-weight: 600; color: var(--forte); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ta-pessoa small { color: var(--fraco); font-size: 12px; }
.ta-linha .agora { color: var(--verde); font-weight: 600; }
.aud-filtros { display: flex; gap: 8px; margin-bottom: 12px; }
.aud-filtros select { flex: 1; min-width: 0; }
.lista-eventos { display: flex; flex-direction: column; }
.evento { display: grid; grid-template-columns: 64px 28px 28px 1fr; gap: 10px; align-items: start; padding: 8px 4px; border-bottom: 1px solid var(--divisor); font-size: 14px; }
.evento:hover { background: rgba(78, 80, 88, .16); }
.evento .avatar { width: 24px; height: 24px; font-size: 10px; }
.avatar-servidor { background: #4e5058 !important; }
.ev-hora { color: var(--fraco); font: 12px/24px ui-monospace, Consolas, monospace; }
.ev-icone { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #3f4147; }
.ev-icone i { width: 14px; height: 14px; }
.ev-icone.verde { background: rgba(35, 165, 89, .2); color: #3ddc84; }
.ev-icone.vermelho { background: rgba(242, 63, 66, .2); color: #f87171; }
.ev-icone.azul { background: rgba(88, 101, 242, .22); color: #a5b4fc; }
.ev-icone.laranja { background: rgba(230, 126, 34, .22); color: #f0a35e; }
.ev-icone.amarelo { background: rgba(240, 178, 50, .2); color: var(--amarelo); }
.ev-icone.cinza { color: #b5bac1; }
.ev-texto { color: var(--texto); line-height: 24px; min-width: 0; word-wrap: break-word; }
.ev-texto b { color: var(--forte); font-weight: 600; }
.ev-citacao { margin: 2px 0 2px; padding: 2px 8px; border-left: 3px solid #4e5058; color: var(--fraco); font-size: 13px; line-height: 18px; white-space: pre-wrap; }
.vazio-aud { display: flex; flex-direction: column; align-items: center; padding: 48px 16px; color: var(--fraco); }
.vazio-aud i { width: 40px; height: 40px; margin-bottom: 8px; }

/* ---------- telas estreitas ---------- */
@media (max-width: 1100px) {
  .app:not(.membros-abertos) .membros { display: none; }
  .app.membros-abertos .membros { position: absolute; right: 0; top: 48px; bottom: 0; z-index: 15; box-shadow: var(--sombra-alta); }
  .app.membros-abertos.sem-membros .membros { display: block; }
}
@media (max-width: 760px) {
  .so-estreito { display: inline-grid !important; }
  .trilho, .lateral { position: fixed; top: 0; bottom: 0; z-index: 30; transition: transform .2s ease; }
  .trilho { left: 0; }
  .lateral { left: 72px; width: min(280px, calc(100vw - 72px - 16px)); }
  .app:not(.gaveta-aberta) .trilho, .app:not(.gaveta-aberta) .lateral { transform: translateX(calc(-100% - 72px)); }
  .veu-gaveta { position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, .55); display: none; }
  .app.gaveta-aberta .veu-gaveta { display: block; }
  .cab-canal { padding-left: 8px; }
  .cab-desc { display: none; }
  .msg { padding-right: 16px; }
  .compositor { padding: 0 8px; }
  .palco { margin: 8px; }
  .perfil-colunas { grid-template-columns: 1fr; }
  .aud-barra { flex-direction: column; align-items: stretch; }
  .ta-cab { display: none !important; }
  .ta-linha { grid-template-columns: 1fr 1fr !important; row-gap: 4px; }
  .ta-linha .ta-pessoa { grid-column: 1 / -1; }
  .aud-filtros { flex-wrap: wrap; }
  .evento { grid-template-columns: 56px 24px 1fr; }
  .evento .avatar { display: none; }
  .barra-voz { gap: 10px; padding-bottom: 14px; }
  .redondo { width: 50px; height: 50px; }
  .config { flex-direction: column; }
  .config-nav { flex: none; justify-content: flex-start; overflow-x: auto; }
  .config-nav-interno { width: auto; display: flex; gap: 4px; padding: 12px 56px 12px 12px; align-items: center; }
  .config-nav h3, .config-nav .sep { display: none; }
  .config-nav button { white-space: nowrap; margin: 0; font-size: 14px; }
  .config-interno { padding: 20px 16px 60px; }
  .fechar-config { position: fixed; top: 8px; right: 8px; margin: 0; height: auto; z-index: 2; }
  .fechar-config span { display: none; }
  .duas-colunas { grid-template-columns: 1fr; }
  .linha-membro { grid-template-columns: 40px 1fr; }
  .linha-membro .chips { grid-column: 1 / -1; }
}

/* Setinhas do painel (aparelhos, volume, filtro e qualidade), no jeito do Discord. */
.pu-par { display: flex; align-items: center; border-radius: 4px; }
.pu-par:hover { background: var(--hover); }
.pu-par .icone-btn:hover { background: none; }
.icone-btn.seta { width: 18px; margin-left: -6px; color: #b5bac1; }
.icone-btn.seta i { width: 16px; height: 16px; }
.icone-btn.seta:hover { color: var(--texto); }
.pv-par { flex: 1; min-width: 0; display: flex; }
.pv-par .pv-botao { border-radius: 4px 0 0 4px; min-width: 0; }
.pv-seta { width: 24px; flex: none; display: grid; place-items: center; border-radius: 0 4px 4px 0; background: #2b2d31; color: #b5bac1; border-left: 1px solid #1e1f22; }
.pv-seta:hover { background: #393c41; color: var(--texto); }
.pv-seta i { width: 12px; height: 12px; }
.pv-botao.ligado + .pv-seta { background: #1f8b4c; color: #fff; border-left-color: #1a7a42; }
.mc-linha-volume { grid-template-columns: auto 1fr auto; }
.mc-linha-volume .mc-pct { display: inline; min-width: 36px; text-align: right; font-variant-numeric: tabular-nums; }
.mc-linha-volume .mc-pct:empty { display: none; }

/* Configurações: Voz e vídeo. */
.voz-titulo { margin: 4px 0 16px; color: var(--forte); font-size: 16px; font-weight: 600; }
.voz-colunas { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.voz-coluna { min-width: 0; }
.rotulo.fino { margin-top: 0; text-transform: none; font-size: 13px; font-weight: 500; letter-spacing: 0; }
.voz-coluna:first-child .rotulo.fino, .voz-coluna .rotulo.fino { margin-top: 8px; }
.faixa-linha, .sens-linha { display: flex; align-items: center; gap: 12px; }
.faixa { flex: 1; min-width: 0; accent-color: var(--azul); }
.faixa-pct { width: 56px; flex: none; text-align: right; color: #b5bac1; font-size: 13px; font-variant-numeric: tabular-nums; }
.sens-linha { margin-top: 12px; }
.sens-linha.desligada { opacity: .45; }
.teste-mic { display: flex; align-items: center; gap: 16px; }
.teste-mic button { flex: none; }
.voz-dica { margin: -2px 0 10px; }
.regua-mic { --nivel: 0%; --limite: 50%; position: relative; flex: 1; height: 10px; border-radius: 5px; background: #4e5058; overflow: hidden; }
.regua-nivel { position: absolute; inset: 0 auto 0 0; width: var(--nivel); background: var(--amarelo); transition: width .06s linear; }
.regua-mic.passou .regua-nivel, .regua-mic:not(:has(.regua-limite)) .regua-nivel { background: var(--verde); }
.regua-limite { position: absolute; top: 0; bottom: 0; left: var(--limite); width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); }
.sep-config { height: 1px; background: var(--divisor); margin: 28px 0 24px; }
.opcoes-ruido { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opcao-ruido { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 6px; background: #2b2d31; text-align: left; color: var(--texto); border: 1px solid transparent; }
.opcao-ruido:hover { background: #393c41; }
.opcao-ruido.escolhida { border-color: var(--azul); background: rgba(88, 101, 242, .16); }
.opcao-ruido b { font-weight: 600; color: var(--forte); font-size: 14px; }
.opcao-ruido small { color: #b5bac1; font-size: 12px; line-height: 16px; }
.acoes-voz { margin-top: 16px; }
@media (max-width: 700px) {
  .voz-colunas, .opcoes-ruido { grid-template-columns: 1fr; }
  .teste-mic { flex-wrap: wrap; }
  .regua-mic { flex-basis: 100%; }
}
.ce-desfoque.forte { filter: blur(6px); }

/* Menções. */
.mencoes { position: absolute; left: 16px; right: 16px; bottom: calc(100% - 8px); z-index: 26; background: var(--lateral); border-radius: 8px; padding: 8px 0; box-shadow: var(--sombra-alta), 0 0 0 1px #1e1f22; max-height: 360px; overflow-y: auto; }
.mencoes-titulo { padding: 0 12px 6px; color: var(--fraco); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mencao-opcao { display: flex; align-items: center; gap: 10px; width: calc(100% - 16px); margin: 0 8px; padding: 6px 8px; border-radius: 4px; color: var(--texto); text-align: left; }
.mencao-opcao.sel { background: var(--selecionado); }
.mencao-opcao .avatar { width: 24px; height: 24px; font-size: 10px; }
.mencao-opcao .status-dot { width: 10px; height: 10px; border-width: 2px; border-color: var(--lateral); }
.mencao-opcao.sel .status-dot { border-color: #3d3f45; }
.mo-nome { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-usuario { margin-left: auto; color: var(--fraco); font-size: 13px; flex: none; }
.mo-cargo { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--cor-cargo); background: color-mix(in srgb, var(--cor-cargo) 20%, transparent); }
.mencao { display: inline; padding: 0 2px; border-radius: 3px; font-weight: 500; color: #c9cdfb; background: rgba(88, 101, 242, .3); cursor: pointer; }
.mencao:hover { color: #fff; background: var(--azul); }
.mencao.cargo { color: var(--cor-cargo); background: color-mix(in srgb, var(--cor-cargo) 18%, transparent); cursor: default; }
.mencao.cargo:hover { color: var(--cor-cargo); background: color-mix(in srgb, var(--cor-cargo) 28%, transparent); }
.msg.mencionou { background: rgba(240, 178, 50, .08); }
.msg.mencionou::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--amarelo); }
.msg.mencionou:hover { background: rgba(240, 178, 50, .12); }
.badge-mencao { flex: none; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--vermelho); color: #fff; font-size: 12px; font-weight: 700; line-height: 16px; text-align: center; }
/* Só não lidas (sem menção): pílula discreta com o número. */
.badge-nao-lidas { flex: none; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #4e5058; color: var(--forte); font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; }
/* Categoria recolhida com canal não lido escondido: ponto, nome claro e a pílula. */
.categoria { position: relative; }
.categoria .badge-mencao, .categoria .badge-nao-lidas { margin-right: 6px; text-transform: none; letter-spacing: 0; }
.categoria.nao-lido { color: var(--forte); }
.categoria.nao-lido::before { content: ""; position: absolute; left: -8px; top: 50%; width: 8px; height: 8px; margin-top: 2px; margin-left: -4px; border-radius: 0 4px 4px 0; background: #fff; }

/* Faixa que pede a permissão de notificação (uma vez a cada entrada no app). */
.pedir-avisos { flex: none; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 16px; background: var(--azul); color: #fff; font-size: 14px; font-weight: 500; }
.pedir-avisos.negado { background: #4e5058; }
.pedir-avisos .pa-texto { flex: 1; min-width: 200px; }
.pedir-avisos .pa-botao { flex: none; padding: 4px 12px; border: 1px solid #fff; border-radius: 3px; color: #fff; font-size: 13px; font-weight: 600; }
.pedir-avisos .pa-botao:hover { background: rgba(255, 255, 255, .15); }

/* Lista de mensagens fixadas (alfinete do cabeçalho). */
.painel-fixadas { position: absolute; top: 8px; right: 16px; z-index: 30; width: min(420px, calc(100% - 32px)); max-height: calc(100% - 24px); display: flex; flex-direction: column; background: var(--lateral); border-radius: 8px; box-shadow: var(--sombra-alta); overflow: hidden; }
.pf-cab { flex: none; display: flex; align-items: center; gap: 8px; padding: 12px 8px 12px 16px; background: var(--trilho); color: var(--forte); }
.pf-cab > i { width: 20px; height: 20px; color: var(--fraco); }
.pf-cab b { flex: 1; font-size: 16px; }
.pf-conta { color: var(--fraco); font-size: 12px; }
.pf-lista { overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.pf-item { position: relative; display: flex; gap: 12px; padding: 10px 12px; border-radius: 6px; background: var(--chat); border: 1px solid #26282c; cursor: pointer; }
.pf-item:hover { border-color: #4e5058; }
.pf-item .pf-avatar { width: 32px; height: 32px; font-size: 13px; }
.pf-corpo { flex: 1; min-width: 0; }
.pf-linha { display: flex; align-items: baseline; gap: 8px; }
.pf-autor { color: var(--forte); font-weight: 500; font-size: 15px; }
.pf-hora, .pf-quem { color: var(--fraco); font-size: 12px; }
.pf-texto { color: var(--texto); font-size: 14px; line-height: 20px; white-space: pre-wrap; word-wrap: break-word; max-height: 160px; overflow: hidden; user-select: text; }
.pf-texto a { color: var(--link); text-decoration: none; }
.pf-anexos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pf-mini { display: block; width: 72px; height: 54px; border-radius: 4px; overflow: hidden; background: #1e1f22; }
.pf-mini img { width: 100%; height: 100%; object-fit: cover; }
.pf-mini.video { width: auto; max-width: 100%; height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 8px; color: var(--texto); font-size: 12px; text-decoration: none; }
.pf-mini.video i { width: 16px; height: 16px; flex: none; }
.pf-mini.video span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-figurinha { width: 64px; height: 64px; object-fit: contain; margin-top: 6px; }
.pf-quem { margin-top: 4px; }
.pf-desafixar { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--fraco); background: var(--lateral); opacity: 0; }
.pf-item:hover .pf-desafixar, .pf-desafixar:focus-visible { opacity: 1; }
.pf-desafixar:hover { color: #fff; background: var(--vermelho); }
.pf-desafixar i { width: 14px; height: 14px; }
.pf-vazio { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 24px 16px; text-align: center; color: var(--fraco); }
.pf-vazio i { width: 40px; height: 40px; }
.pf-vazio p { margin: 4px 0 0; color: var(--texto); }
@media (hover: none) { .pf-desafixar { opacity: 1; } }

/* Barra da chamada: setinha ao lado da câmera, tela, microfone e fone (como o Discord). */
.par-redondo { display: flex; align-items: center; background: #2b2d31; border-radius: 28px; }
.par-redondo .redondo-seta { width: 26px; height: 56px; margin-left: -4px; padding-right: 4px; border-radius: 0 28px 28px 0; display: grid; place-items: center; color: #b5bac1; }
.par-redondo .redondo-seta:hover { color: var(--texto); background: #393c41; }
.par-redondo .redondo-seta i { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .par-redondo .redondo-seta { height: 50px; width: 22px; }
  .barra-voz { gap: 6px; flex-wrap: wrap; }
  /* Envio no celular: barra menor para caber o "1,2 GB de 2,9 GB". */
  .envio { grid-template-columns: minmax(0, 1fr) auto 60px 40px; gap: 8px; }
}
/* Versão nova publicada com a página aberta. */
.aviso-versao { border-left-color: var(--azul); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.aviso-versao .av-texto { flex: 1; min-width: 200px; }
.aviso-versao p { margin: 2px 0 0; }

/* ---------- bot de mídia ---------- */
.bloco.bot { background: #1e1f22; }
.bloco.bot .bot-tela { position: absolute; inset: 0; }
.bloco.bot .bot-tela iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.bloco.bot .bot-tela video { object-fit: contain; }
.bloco.bot .bot-tela audio { display: none; }
.bloco.bot.video .bot-capa { display: none; }
.bloco.bot .bot-capa { width: calc(var(--av, 80px) * 1.6); height: calc(var(--av, 80px) * 1.6); border-radius: 8px; display: grid; place-items: center; overflow: hidden; }
.bloco.bot .bot-capa img { width: 100%; height: 100%; object-fit: cover; }
.bloco.bot .bot-capa i { width: 45%; height: 45%; color: #fff; }
.bot-estado { position: absolute; top: 8px; left: 8px; z-index: 2; display: flex; gap: 8px; align-items: center; max-width: calc(100% - 56px); background: rgba(0, 0, 0, .7); color: #fff; padding: 6px 10px; border-radius: 6px; font-size: 13px; }
.bot-estado[hidden] { display: none; }
.bloco.bot .bot-etiqueta { bottom: 12px; }
.bloco.bot .bot-etiqueta i { color: #fff; }
.bot-termos { color: var(--amarelo); font-size: 12px; font-weight: 600; }
.bot-progresso { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .15); z-index: 1; }
.bot-progresso i { display: block; height: 100%; width: 0; background: var(--azul); transition: width .25s linear; }
.bloco.bot:hover .bloco-tela-cheia { display: grid !important; }
.vista-voz.com-bot .palco { margin-right: 332px; }
.bot-painel { position: absolute; top: 16px; right: 16px; bottom: 92px; width: 300px; z-index: 3; display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--lateral); color: var(--texto); border-radius: 8px; box-shadow: var(--sombra-alta); overflow-y: auto; }
.bot-painel[hidden] { display: none; }
.bp-cab { display: flex; align-items: center; gap: 8px; }
.bp-cab b { flex: 1; color: var(--forte); }
.bp-cab > i { width: 20px; height: 20px; }
.bp-aviso, .aviso-termos { margin: 0; padding: 8px 10px; border-radius: 6px; background: rgba(240, 178, 50, .12); border-left: 3px solid var(--amarelo); font-size: 13px; line-height: 1.4; }
.bp-aviso[hidden] { display: none; }
.bp-form { display: flex; gap: 8px; }
.bp-form .campo { height: 36px; min-width: 0; }
.bp-opcao { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fraco); cursor: pointer; }
.bp-opcao[hidden] { display: none; }
.bp-item, .bp-fila li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bp-capa { flex: none; width: 48px; height: 48px; border-radius: 6px; object-fit: cover; background: #1e1f22; display: grid; place-items: center; }
.bp-capa i { width: 22px; height: 22px; }
.bp-textos { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.bp-nome { color: var(--forte); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-textos small { color: var(--fraco); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-modo { font-style: italic; }
.bp-controles { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.bp-tempo { margin-left: auto; font-size: 12px; color: var(--fraco); font-variant-numeric: tabular-nums; }
.bp-volume { display: flex; align-items: center; gap: 8px; }
.bp-volume input { flex: 1; min-width: 0; }
.bp-volume i { width: 18px; height: 18px; }
.bp-volume span { width: 36px; text-align: right; font-size: 12px; color: var(--fraco); }
.bp-titulo { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--fraco); margin-top: 4px; }
.bp-fila { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bp-fila li .icone-btn { flex: none; }
.bp-dica { margin: 0; font-size: 12px; color: var(--fraco); }
.icone-btn.perigo { color: var(--vermelho); }
.efemera { display: flex; gap: 12px; margin: 8px 16px; padding: 8px 12px; border-radius: 6px; background: rgba(88, 101, 242, .08); border-left: 3px solid var(--azul); }
.ef-icone { width: 40px; height: 40px; border-radius: 50%; background: var(--azul); color: #fff; display: grid; place-items: center; flex: none; }
.ef-icone i { width: 20px; height: 20px; }
.ef-texto { white-space: pre-line; color: var(--texto); }
@media (max-width: 900px) {
  .vista-voz.com-bot .palco { margin-right: 16px; }
  .bot-painel { left: 8px; right: 8px; top: 8px; bottom: 84px; width: auto; }
}
