/* Brain WhatsApp - casco novo (carrega depois de calm.css e kit.css): 6 areas, barra inferior no celular, secoes,
   gaveta de contexto e paleta de comandos. So usa os tokens de calm.css (nenhuma cor nova). */

:root { --bnav-h: 56px; }

/* ---------- menu lateral (>= 900 px) e barra superior/inferior (celular) ---------- */
.shell { grid-template-columns: 208px minmax(0, 1fr); }
.sb__search { display: flex; align-items: center; gap: 8px; width: 100%; height: 30px; padding: 0 8px; border: 1px solid var(--line2); border-radius: 6px; background: var(--surface); color: var(--mute); font-size: 13px; text-align: left; }
.sb__search:hover { background: var(--hover); color: var(--ink); }
.sb__search-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb__kbd { font: inherit; font-size: 11px; color: var(--mute); border: 1px solid var(--line2); border-radius: 4px; padding: 0 5px; line-height: 16px; }
.sb__link { height: auto; min-height: 30px; padding-top: 5px; padding-bottom: 5px; line-height: 1.25; }
.sb__count.is-alert { color: var(--bad); font-weight: 700; }
.mbar, .bnav { display: none; }

.secnav { display: flex; gap: 2px; padding: 0 26px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; background: var(--bg); }
.secnav::-webkit-scrollbar { display: none; }
.secnav__link { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 10px; color: var(--ink2); font-size: 13px; font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.secnav__link:hover { color: var(--ink); }
.secnav__link[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.secnav__link:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 4px; }
.shell:has(.today) .secnav { display: none; }

/* ---------- Conversas: barra de filtros (chips do kit) ---------- */
.conv__bar { margin-bottom: 12px; flex-wrap: wrap; }
.conv .inbox__list, .conv .inbox__detail { top: 16px; }
@media (min-width: 900px) {
  .conv .inbox__list .list-card, .conv .convo, .conv .convo-empty { height: calc(100dvh - 140px); min-height: 420px; }
  .conv .inbox { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 16px; }
}

/* ---------- Hoje: grupos Agora / Hoje / Radar ---------- */
.today__grp { display: flex; align-items: baseline; gap: 6px; padding: 8px 14px 4px; font-size: 12px; font-weight: 600; color: var(--mute); border-bottom: 1px solid var(--line); background: var(--surface); }
.today__grp i { font-style: normal; font-weight: 500; }
.today__grp[data-g="agora"] { color: var(--ink); }
.today__more { padding: 0 14px; }
.today__more:empty { display: none; }
.today__more-btn { margin: 10px 0 14px; }
.tstar--ph, .tplus--ph { display: block; }
.today__xbody { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }

/* ---------- gaveta de contexto ---------- */
.gvwrap { display: contents; }
.gv { display: flex; flex-direction: column; min-height: 0; background: var(--surface); border-left: 1px solid var(--line); }
.gv__head { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px 8px 14px; border-bottom: 1px solid var(--line); }
.gv__ttl { flex: 1; min-width: 0; }
.gv__title { margin: 0; font-size: 12px; font-weight: 600; color: var(--mute); }
.gv__who { font-size: 14px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gv__x { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; border-radius: 6px; color: var(--ink2); margin: -4px -4px 0 0; }
.gv__x:hover { background: var(--hover); color: var(--ink); }
.gv__body { flex: 1 1 auto; overflow-y: auto; padding: 4px 14px 14px; }
.gv__foot { padding: 8px 14px; border-top: 1px solid var(--line); }
.gv__blk { padding: 10px 0; border-bottom: 1px solid var(--line); }
.gv__blk:last-child { border-bottom: 0; }
.gv__h { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--mute); }
.gv__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gv__item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gv__item-t { font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.gv__item-m { font-size: 12px; color: var(--mute); }
.gv__item-m--bad { color: var(--bad); font-weight: 600; }
.gv__none { margin: 0; font-size: 13px; color: var(--mute); }
.gv__more { display: inline-block; margin-top: 8px; padding: 6px 0; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.gv-scrim { position: fixed; inset: 0; z-index: 65; background: rgba(0, 0, 0, .3); }
.gv-btn { gap: 6px; }

@media (min-width: 1200px) {
  .shell:has(.gv--open) { grid-template-columns: 208px minmax(0, 1fr) 320px; }
  .gv { position: sticky; top: 0; height: 100dvh; align-self: start; }
  .gv-scrim { display: none !important; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .gv { position: fixed; top: 0; right: 0; bottom: 0; width: 340px; max-width: 100vw; z-index: 70; box-shadow: var(--shadow); }
}
/* Conversas: a gaveta tem largura propria (400 px). So vira 3a coluna quando sobra espaco (>= 1500 px: lista 300 + conversa 480 + gaveta 400);
   abaixo disso fica sobreposta (fundo escurecido, Esc fecha) e NAO espreme a conversa. */
@media (min-width: 900px) and (max-width: 1499px) {
  .shell:has(.conv) .gv { position: fixed; top: 0; right: 0; bottom: 0; height: auto; width: 400px; max-width: 100vw; z-index: 70; box-shadow: var(--shadow); }
  .shell:has(.conv):has(.gv--open) { grid-template-columns: 208px minmax(0, 1fr); }
  .shell:has(.conv) .gv-scrim:not([hidden]) { display: block !important; z-index: 65; }
}
@media (min-width: 1500px) {
  .shell:has(.conv):has(.gv--open) { grid-template-columns: 208px minmax(0, 1fr) 400px; }
  .shell:has(.conv):has(.gv--open) .conv .inbox { grid-template-columns: minmax(300px, 380px) minmax(480px, 1fr); }
}

/* ---------- paleta de comandos ---------- */
.pal { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .35); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 12px 0; }
.pal__box { width: min(560px, 100%); max-height: 70dvh; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line2); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; }
.pal__top { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--line); color: var(--mute); }
.pal__in { flex: 1; min-width: 0; height: 44px; border: 0; background: none; font-size: 14px; color: var(--ink); padding: 0; }
.pal__in:focus { outline: none; }
.pal__top:focus-within { box-shadow: inset 0 -2px 0 var(--focus); }
.pal__list { list-style: none; margin: 0; padding: 4px 0; overflow-y: auto; }
.pal__grp { padding: 8px 14px 2px; font-size: 12px; font-weight: 600; color: var(--mute); }
.pal__opt { display: flex; align-items: baseline; gap: 8px; min-height: 36px; padding: 8px 14px; font-size: 13px; color: var(--ink); cursor: pointer; }
.pal__opt[aria-selected="true"] { background: var(--sel); }
.pal__lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal__hint { font-size: 12px; color: var(--mute); }
.pal__none { padding: 14px; font-size: 13px; color: var(--mute); }
.pal__help { padding: 6px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); }

/* ---------- celular (ate 899 px): barra superior + barra inferior com as 6 areas ---------- */
@media (max-width: 899px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sb { display: none; }
  .mbar { display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 6px 0 16px; border-bottom: 1px solid var(--line); background: var(--side); position: sticky; top: 0; z-index: 30; }
  .mbar__title { font-weight: 700; font-size: 14px; }
  .mbar__sp { flex: 1; }
  .mbar__btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: 6px; color: var(--ink); }
  .mbar__btn:hover { background: var(--hover); }
  .bnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--side); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .bnav__link { flex: 1 1 0; min-width: 0; min-height: var(--bnav-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px 2px; color: var(--ink2); text-decoration: none; font-size: 11px; line-height: 12px; text-align: center; }
  .bnav__link[aria-current="page"] { color: var(--ink); }
  .bnav__link[aria-current="page"] .icon { color: var(--accent); }
  .bnav__link:focus-visible { outline: 2px solid var(--focus); outline-offset: -3px; border-radius: 6px; }
  .bnav__ic { position: relative; display: inline-flex; }
  .bnav__count { position: absolute; top: -5px; left: calc(100% - 7px); min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: var(--accent-on); font-size: 10px; font-weight: 700; line-height: 15px; text-align: center; }
  .bnav__count.is-alert { background: var(--bad); color: var(--surface); }
  .main { padding-bottom: calc(var(--bnav-h) + 24px + env(safe-area-inset-bottom)); }
  .today__listwrap { padding-bottom: calc(var(--bnav-h) + 16px + env(safe-area-inset-bottom)); }
  .secnav { padding: 0 16px; }
  .secnav__link { min-height: 44px; padding: 0 12px; }
  .toasts { bottom: calc(var(--bnav-h) + 12px + env(safe-area-inset-bottom)); }
  .conv--detail .conv__bar { display: none; }
  .conv__bar { margin-bottom: 8px; }
  .gv { position: fixed; left: 0; right: 0; bottom: 0; max-height: 75dvh; z-index: 80; border: 1px solid var(--line2); border-bottom: 0; border-radius: 12px 12px 0 0; box-shadow: var(--shadow); padding-bottom: env(safe-area-inset-bottom); }
  .gv-scrim { z-index: 75; background: rgba(0, 0, 0, .35); }
  .gv__x { width: 44px; height: 44px; }
  .convo__actions .gv-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pal { padding-top: 8vh; }
}
@media (prefers-reduced-motion: reduce) { .gv, .pal { transition: none; animation: none; } }

/* ---------- celular: alvos de toque de 44 px (botoes, abas, estrelas, links soltos) ---------- */
@media (max-width: 899px) {
  .btn, .btn--sm, .reply .btn, .convo .btn, .chip, .tbtn, .ttab, .today__sel, .today__search, .linkbtn, .toast__x { min-height: 44px; }
  .convo .btn.gv-btn { min-width: 44px; justify-content: center; }
  .chat-item__actions .btn { min-width: 44px; }
  .tstar, .tplus { min-height: 44px; }
  .tstar { width: 44px; }
  .tplus { width: 44px; }
  .trow { grid-template-columns: minmax(0, 1fr) auto 12px; }
  .trow > .tplus { width: 44px; height: 44px; }
  .tnrcell, .trow > .tnrcell { width: 44px; height: 44px; cursor: pointer; }
  .today__off-link, .today__alerts .analyst-notice__link, .tlink { padding: 12px 4px; margin-top: -12px; margin-bottom: -12px; min-height: 44px; display: inline-flex; align-items: center; box-sizing: border-box; }
  .gv__more { display: inline-flex; align-items: center; min-height: 44px; }
  .today__detail .tcard__actions .btn { min-height: 44px; }
}

/* ---------- Conversas: linhas sem cartao dentro de cartao, coluna de acoes alinhada (ML e O seguem empilhados) ---------- */
.conv .chat-item { border-top: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.conv .chat-item:last-child { border-bottom: 0; }
.conv .chat-row { border-radius: 0; }
.conv .chat-item__actions { flex: none; width: 44px; margin-left: 4px; align-items: stretch; justify-content: center; }
.conv .chat-item__actions .btn { width: 44px; min-width: 44px; padding-left: 0; padding-right: 0; justify-content: center; text-align: center; background: transparent; }

/* ---------- Conversas: cabecalho e compositor do chat em uma so linha cada ---------- */
@media (min-width: 900px) {
  .conv .convo__head { flex-wrap: nowrap; }
  .conv .convo__who { flex: 1 1 0; min-width: 0; }
  .conv .convo__actions { flex: none; flex-wrap: nowrap; }
  .conv .convo__actions .btn { white-space: nowrap; }
  .conv .convo__msgs { min-height: 120px; }
  .conv .convo__reply { max-height: 45%; }
  .conv .reply__ai { align-items: center; }
  .conv .reply__ai .order { flex: 1 1 180px; min-width: 0; }
  .conv .reply .field { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
  .conv .reply .field > .input--area { flex: 1 1 200px; min-width: 0; height: 64px; min-height: 64px; resize: vertical; }
  .conv .reply .field > .reply__manual-row { flex: none; margin: 0; flex-wrap: wrap; }
  .conv .reply .field > :not(.input--area):not(.reply__manual-row) { flex: 1 0 100%; }
  .conv .reply__confirm .btn, .conv .reply__manual-row .btn--ghost { margin-left: 0; opacity: 1; border: 1px solid var(--line2); white-space: nowrap; }
}
/* Conversas usa a largura toda da area (sem o teto de 1180 px das paginas comuns); a gaveta tem largura propria e nao espreme a conversa */
.main:has(.conv) { max-width: none; }
@media (min-width: 900px) {
  .conv .inbox__detail { min-width: 0; }
}
/* nome inteiro sempre que couber: o titulo so encurta (reticencias) se sozinho passa da linha; rotulos (grupo, tema, urgente) descem para a linha de baixo */
.conv .chat-row__title { flex: 0 1 auto; min-width: 0; }
.conv .chat-row__top > :not(.chat-row__title) { flex: none; }
/* gaveta: rolagem so dentro dela; nada de campo ou botao saindo para fora */
.gv { max-width: 100vw; overflow: hidden; }
.gv__body { overflow-x: hidden; overscroll-behavior: contain; }
.gv__blk, .gv__blk-body { min-width: 0; }
.gv__blk-body { overflow-wrap: anywhere; }
.gv select, .gv input, .gv textarea { max-width: 100%; box-sizing: border-box; text-overflow: ellipsis; }
.gv .ds__grade { grid-template-columns: minmax(0, 1fr); } /* Tipo, Empresa e Papel empilhados: um por linha */
.gv .ds__acoes, .gv .gv__blk-body > div { min-width: 0; flex-wrap: wrap; }

/* ---------- Volta 2: Conversas densa e calma no celular (lista sem cartao, chat de ponta a ponta, compositor numa linha) ---------- */
/* contador ao lado da busca (o titulo da lista ficou so para leitor de tela: a aba ja o nomeia) */
.list-tools { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.list-tools .field--search { flex: 1 1 auto; min-width: 0; margin: 0; }
.list-count { flex: none; font-size: 12px; white-space: nowrap; }
.conv .convo { padding: 0; } /* calm.css poe 14/16 px em todo .card: o cabecalho, as mensagens e o compositor ja tem o proprio espaco */
.conv .field--search .input { height: 36px; min-height: 36px; padding: 0 10px; font-size: 15px; }
/* O (ocultar) aparece em todas as larguras, empilhado sob ML como o Paulo aprovou */
.conv .chat-item__hide { display: inline-flex; }
/* pontos de extensao sob o campo de rascunho */
.dslots { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dslots[hidden], .dslots__acoes[hidden], .dslots__avisos[hidden] { display: none; }
.dslots__acoes { display: flex; flex-wrap: wrap; gap: 6px; }
.dslots__avisos { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink2); }
.qitem .input[hidden] ~ .dslots { display: none; }
.hidden-guard:empty { display: none; }
.reply .field > .input--area { order: 0; }
.reply .field > .reply__manual-row { order: 1; }
.reply .field > .hidden-guard { order: 3; }
.reply .field > .dslots { order: 4; }
@media (min-width: 900px) {
  .convo__morewrap, .reply__more { display: none; }
}

@media (max-width: 899px) {
  /* lista: sem cartao em volta, linhas mais compactas */
  .conv .list-card { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .conv .field--search .input { height: 44px; min-height: 44px; padding: 0 12px; }
  .conv .chat-item { align-items: center; }
  .conv .chat-row:hover { background: transparent; }
  .conv .chat-item--on .chat-row { background: transparent; }
  .conv .chat-row { min-height: 64px; padding: 8px 0; gap: 10px; align-self: stretch; align-items: center; }
  .conv .chat-row .avatar { width: 40px; height: 40px; font-size: 13px; }
  /* acoes numa coluna so (estrela, visto, olho cortado), cada uma com area de toque de 44 px */
  .conv .chat-item__actions { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 44px; margin-left: 2px; gap: 0; }
  .conv .chat-item__actions .btn { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .conv .chat-item__hide { display: inline-flex; }
  .conv .chat-item__sug { padding-left: 50px; }
  .conv .chat-item__sug-btn { min-height: 44px; }

  /* conversa aberta: sem borda nem padding duplo, ocupa a tela entre a barra de cima e a de baixo */
  .main:has(.conv--detail) { padding: 0 0 calc(var(--bnav-h) + env(safe-area-inset-bottom)); }
  .conv--detail .inbox { gap: 0; }
  .conv--detail .convo { height: calc(100dvh - 46px - var(--bnav-h) - env(safe-area-inset-bottom)); min-height: 320px; border: 0; border-radius: 0; box-shadow: none; }
  /* cabecalho de uma linha: voltar, nome (numero em linha menor), tres pontos */
  .conv .convo__head { flex-wrap: nowrap; gap: 2px; padding: 4px 4px 4px 2px; min-height: 52px; }
  .conv .convo__back { order: 0; flex: none; width: 44px; min-width: 44px; padding: 0; justify-content: center; }
  .convo__back-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .conv .convo__who { order: 1; flex: 1 1 0; min-width: 0; }
  .conv .convo__title { font-size: 16px; line-height: 20px; }
  .conv .convo__sub { font-size: 12px; line-height: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .conv .convo__actions { display: none; }
  .convo__morewrap { order: 2; position: relative; flex: none; }
  .conv .convo__more { width: 44px; min-width: 44px; padding: 0; justify-content: center; }
  .convo__menu { position: absolute; right: 4px; top: 100%; z-index: 40; min-width: 180px; padding: 4px 0; background: var(--surface); border: 1px solid var(--line2); border-radius: 8px; box-shadow: var(--shadow); }
  .convo__menu-item { display: block; width: 100%; min-height: 44px; padding: 0 14px; border: 0; background: none; color: var(--ink); font-size: 14px; text-align: left; }
  .convo__menu-item[hidden] { display: none; }
  .convo__menu-item:hover, .convo__menu-item:focus-visible { background: var(--hover); }
  .conv .convo__msgs { max-height: none; min-height: 0; padding: 12px 16px; }
  .conv .msg { max-width: 88%; }
  .convo__search-row { padding: 6px 16px; }
  .convo__search-in { height: 44px; font-size: 16px; }
  .convo__search-btn { width: 44px; height: 44px; min-height: 44px; }

  /* compositor: campo + Enviar numa linha; Sugerir, Ordem, Rascunho e Confirmar ficam atras dos tres pontos */
  .conv .convo__reply { padding: 8px 16px; max-height: 55%; }
  .conv .reply { gap: 8px; }
  .conv .reply:not(.reply--more) .reply__ai { display: none; }
  .conv .reply__ai { gap: 8px; align-items: stretch; }
  .conv .reply__ai .order { flex: 1 1 100%; }
  .conv .reply .field { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
  .conv .reply .field > .input--area { flex: 1 1 0; min-width: 0; height: 44px; min-height: 44px; padding: 10px 12px; resize: none; }
  .conv .reply .field > .input--area:focus { height: 88px; }
  .conv .reply .field > .reply__manual-row { display: contents; }
  .conv .reply .field > .hidden-guard, .conv .reply .field > .dslots { flex: 1 0 100%; }
  .conv .reply__manual-row > .reply__send, .conv .reply__manual-row > .btn--primary { order: 1; flex: none; }
  .conv .reply__manual-row > .reply__more { order: 2; flex: none; width: 44px; min-width: 44px; padding: 0; justify-content: center; }
  .conv .reply__manual-row > .reply__draft-btn, .conv .reply__manual-row > .reply__confirm-btn { order: 5; flex: 1 1 40%; margin: 0; justify-content: center; }
  .conv .reply:not(.reply--more) .reply__draft-btn, .conv .reply:not(.reply--more) .reply__confirm-btn { display: none; }
}

/* ---------- Emojis no compositor (popover leve; so tokens de calm.css) ---------- */
.emoji { position: relative; display: inline-flex; flex: none; }
.emoji__btn { min-width: 36px; padding: 0 8px; justify-content: center; font-size: 18px; line-height: 1; }
.emoji__btn:focus-visible, .emoji__tab:focus-visible, .emoji__it:focus-visible, .emoji__search:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.emoji__pop { position: fixed; z-index: 85; left: var(--emoji-x, 8px); bottom: var(--emoji-y, 60px); width: 336px; max-width: calc(100vw - 24px); display: flex; flex-direction: column; gap: 6px; padding: 8px; background: var(--surface); border: 1px solid var(--line2); border-radius: 8px; box-shadow: var(--shadow); }
.emoji__pop[hidden] { display: none; }
.emoji__search { width: 100%; box-sizing: border-box; height: 36px; min-height: 36px; padding: 0 10px; font-size: 14px; }
.emoji__tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.emoji__tabs::-webkit-scrollbar { display: none; }
.emoji__tab { flex: none; min-height: 32px; padding: 0 8px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink2); font-size: 12px; font-weight: 500; }
.emoji__tab:hover { color: var(--ink); }
.emoji__tab--on { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.emoji__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 2px; max-height: 208px; min-height: 48px; overflow-y: auto; overscroll-behavior: contain; }
.emoji__it { width: 100%; min-height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: none; font-size: 22px; line-height: 1; }
.emoji__it:hover { background: var(--hover); }
.emoji__none { margin: 0; padding: 4px 2px; font-size: 12px; }
.emoji__none[hidden] { display: none; }
@media (max-width: 899px) {
  .emoji__btn { min-width: 44px; min-height: 44px; }
  .emoji__pop { left: 8px; right: 8px; bottom: calc(var(--bnav-h) + 8px + env(safe-area-inset-bottom)); width: auto; max-width: none; }
  .emoji__it { min-height: 44px; }
  .emoji__tab { min-height: 44px; }
  .emoji__search { height: 44px; min-height: 44px; font-size: 16px; }
  .conv .reply .field > .reply__manual-row > .emoji { order: 0; }
}
@media (prefers-reduced-motion: reduce) { .emoji__pop { transition: none; animation: none; } }
