/* Arena Tambaqui V4.70 — chat com os mesmos tokens, ícones e controles do site. */
.at-chat-root,.at-admin-chat-root{
  --chat-bg:var(--bg,#08121c);--chat-panel:var(--surface,#132536);
  --chat-field:#091722;--chat-border:var(--line,#2a4a59);
  --chat-mint:var(--mint,#61ebbb);--chat-text:var(--text,#effaff);
  --chat-muted:var(--muted,#adc5d1);--chat-soft:#102734;
  color:var(--chat-text);font:inherit;
}
.at-chat-root *, .at-admin-chat-root *{box-sizing:border-box}
.at-chat-root{position:fixed;bottom:20px;right:20px;z-index:2200}
.at-admin-chat-root{position:fixed;right:20px;bottom:20px;z-index:2300}
.at-chat-root.hide,.at-admin-chat-root.hide,.at-chat-panel.hide,.at-chat-badge.hide,
.at-chat-reply.hide,.at-chat-pinned.hide,.at-chat-composer-wrap.hide,.at-chat-composer.hide,
.at-chat-emoji-picker.hide{display:none!important}
.at-chat-root button,.at-admin-chat-root button{touch-action:manipulation;font:inherit;cursor:pointer}
.at-chat-root button:disabled,.at-admin-chat-root button:disabled{cursor:not-allowed;opacity:.45}
.at-chat-root :is(button,textarea,input,select):focus-visible,
.at-admin-chat-root :is(button,textarea,input,select):focus-visible{outline:2px solid var(--chat-mint);outline-offset:2px}
.at-chat-icon{height:18px;width:18px;display:inline-block;vertical-align:middle;flex-shrink:0}
/* Bolha flutuante sem aparência de botão de confirmação/PIX. */
.at-chat-bubble{
  display:grid;place-items:center;width:56px;height:56px;min-height:56px;margin-left:auto;
  padding:0;position:relative;border:1px solid #4d947f;border-radius:50%;
  background:#183b3c;color:var(--chat-mint);box-shadow:0 10px 24px #0009;
  transition:border-color .15s,background .15s,transform .15s;
}
.at-chat-bubble .at-chat-icon{height:25px;width:25px}
.at-chat-bubble:hover{background:#22504a;border-color:var(--chat-mint);transform:translateY(-1px)}
.at-chat-bubble[aria-expanded="true"]{background:#22524a;border-color:var(--chat-mint)}
.at-chat-badge{position:absolute;right:-6px;top:-5px;display:flex;justify-content:center;align-items:center;min-width:23px;height:23px;padding:0 5px;border-radius:99px;background:#c84659;border:2px solid #0d2332;color:#fff;font-size:11px;font-weight:800;line-height:1}
/* Painel: card, borda, cantos e separadores usados em outras telas. */
.at-chat-panel{
  position:absolute;right:0;bottom:68px;display:flex;flex-direction:column;
  width:min(412px,calc(100vw - 24px));height:min(640px,calc(100dvh - 110px));min-height:255px;
  overflow:hidden;background:var(--chat-panel);border:1px solid #3b6570;
  border-radius:16px;box-shadow:0 24px 65px #000c;
}
.at-chat-header{flex-shrink:0;display:flex;align-items:center;gap:11px;padding:13px 14px;background:var(--chat-panel);border-bottom:1px solid var(--chat-border)}
.at-chat-title-icon{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;border-radius:12px;background:#183b3c;border:1px solid #4d947f;color:var(--chat-mint)}
.at-chat-title-icon .at-chat-icon{height:21px;width:21px}
.at-chat-title{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}
.at-chat-header .at-chat-title b{font-size:15px;letter-spacing:.1px;color:var(--chat-text);line-height:1.3}
.at-chat-header .at-chat-title small{font-size:11px;color:var(--chat-muted)}
.at-chat-root .at-chat-icon-btn,.at-admin-chat-root .at-chat-icon-btn{
 display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;min-height:40px;
 border:1px solid #426876;border-radius:10px;background:#132d3a;color:var(--chat-text);padding:0;
}
.at-chat-root .at-chat-icon-btn:hover,.at-admin-chat-root .at-chat-icon-btn:hover{background:#1b4147;border-color:#66b499}
/* Navegação: mesmos botões segmentados e seleção verde-menta do aplicativo. */
#atChatPanel .at-chat-type-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:10px 12px 8px;background:var(--chat-panel);border-bottom:1px solid var(--chat-border)}
#atChatPanel .at-chat-type-tabs button{
 display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-width:0;
 min-height:41px;padding:8px;border:1px solid #426876;border-radius:10px;
 font-size:12px;font-weight:800;color:#d8e9e8;background:#102d38;
}
#atChatPanel .at-chat-type-tabs button.active{color:#09201b;background:var(--chat-mint);border-color:var(--chat-mint)}
#atChatPanel .at-chat-type-tabs button:disabled{background:#0e222f;border-color:#2a4754;color:#7a9ca7}
.at-chat-options{flex-shrink:0;background:var(--chat-panel);padding:6px 13px 7px;border-bottom:1px solid var(--chat-border)}
.at-chat-archive-label{display:flex;align-items:center;gap:7px;margin:0;color:var(--chat-muted);font-size:12px;font-weight:500;cursor:pointer;min-height:26px}
.at-chat-archive-label input{width:16px;height:16px;min-width:16px;margin:0;accent-color:var(--chat-mint)}
.at-chat-games,.at-chat-channels{display:flex;align-items:center;gap:7px;flex-shrink:0;overflow-x:auto;min-height:52px;padding:7px 12px;scrollbar-width:thin;scrollbar-color:#416778 transparent}
.at-chat-games{background:#112837;border-bottom:1px solid var(--chat-border)}
.at-chat-channels{background:#0d2331;border-bottom:1px solid var(--chat-border)}
.at-chat-games button,.at-chat-channels button{
 display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;flex-shrink:0;
 max-width:265px;min-height:38px;padding:8px 11px;border:1px solid #426876;border-radius:10px;
 background:#193540;color:#d9e9e9;font-size:12px;font-weight:750;line-height:1.2;
}
.at-chat-games button span:not(.at-chat-tab-count),.at-chat-channels button span:not(.at-chat-tab-count){overflow:hidden;text-overflow:ellipsis}
.at-chat-games button.active,.at-chat-channels button.active{border-color:var(--chat-mint);background:var(--chat-mint);color:#09201b;font-weight:850}
.at-chat-games button:hover:not(.active),.at-chat-channels button:hover:not(.active){background:#245047}
.at-chat-games .at-chat-icon,.at-chat-channels .at-chat-icon{width:16px;height:16px}
.at-chat-tab-count{display:inline-flex;justify-content:center;align-items:center;min-width:19px;height:19px;padding:0 4px;border-radius:100px;background:#bb4154;color:white;font-size:10px;font-weight:850}
.at-chat-games button.active .at-chat-tab-count,.at-chat-channels button.active .at-chat-tab-count{background:#16372d;color:#fff}
.at-chat-pinned{flex-shrink:0;display:flex;align-items:center;gap:7px;max-height:57px;overflow:auto;padding:9px 12px;background:#383123;border-bottom:1px solid #7c6639;color:#fbe3af;font-size:11px;line-height:1.45}
.at-chat-pinned .at-chat-icon{width:15px;height:15px}
/* Conversa: conteúdo legível, remetente diferenciado e controles discretos. */
.at-chat-messages{flex:1;min-height:0;display:flex;flex-direction:column;gap:12px;overflow-y:auto;overscroll-behavior:contain;padding:14px 12px;background:#0c1d2a;scrollbar-width:thin;scrollbar-color:#426879 transparent}
.at-chat-empty{align-self:center;width:100%;padding:25px 10px;text-align:center;color:var(--chat-muted);font-size:12px;line-height:1.6}
.at-chat-message{display:flex;align-items:flex-end;gap:8px;max-width:94%}
.at-chat-message.mine{align-self:flex-end;flex-direction:row-reverse}
.at-chat-avatar{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;overflow:hidden;border:1px solid #427284;border-radius:50%;background:#224653;color:#cffff0;font-size:12px;font-weight:850}
.at-chat-avatar .at-chat-icon{width:17px;height:17px}
.at-chat-avatar img{width:100%;height:100%;object-fit:cover}
.at-chat-message-content{min-width:0;max-width:100%;padding:10px 11px;border:1px solid #3a6070;border-radius:13px 13px 13px 5px;background:#192f3e;box-shadow:0 2px 6px #0002}
.at-chat-message.mine .at-chat-message-content{background:#173e3b;border-color:#3d917b;border-radius:13px 13px 5px 13px}
.at-chat-message.announcement .at-chat-message-content{background:#3b3424;border-color:#957541}
.at-chat-author{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;color:#aaf2d6;font-size:11px;font-weight:800;line-height:1.3}
.at-chat-author small{flex-shrink:0;color:#b3cbd4;font-size:10px;font-weight:500}
.at-chat-author .at-chat-icon{width:13px;height:13px}
.at-chat-text{margin-top:6px;color:var(--chat-text);font-size:13px;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}
.at-chat-linked{display:flex;align-items:center;gap:5px;margin-top:6px;padding:5px 7px;border-left:2px solid var(--chat-mint);background:#102937;color:#c4dfe0;font-size:10px;line-height:1.35}
.at-chat-linked .at-chat-icon{width:13px;height:13px}
.at-chat-respond{display:inline-flex;align-items:center;gap:5px;min-height:29px!important;padding:4px 5px!important;margin:7px 6px 0 -4px;border:0!important;border-radius:6px!important;background:transparent!important;color:var(--chat-mint)!important;font-size:11px!important;font-weight:650!important}
.at-chat-respond:hover{background:#245148!important}
.at-chat-respond .at-chat-icon{width:14px;height:14px}
.at-chat-danger-action{color:#f7aeb2!important}
.at-chat-danger-action:hover{background:#492f3b!important}
.at-chat-system{align-self:center;display:flex;align-items:center;gap:6px;max-width:95%;padding:8px 10px;border:1px solid var(--chat-border);border-radius:10px;background:#152f3c;color:#c2d9df;text-align:center;font-size:11px;line-height:1.4}
.at-chat-system .at-chat-icon{width:14px;height:14px}
.at-chat-deleted{align-self:center;color:#b0c2ca;font-size:11px;font-style:italic}
.at-chat-more{align-self:center;display:flex;align-items:center;gap:5px;min-height:37px;padding:8px 12px;border:1px solid #497a75;border-radius:10px;background:#183b3c;color:#e5fdf5;font-size:11px;font-weight:750}
.at-chat-more .at-chat-icon{width:15px;height:15px}
.at-chat-reply{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 10px;border-top:1px solid var(--chat-border);background:#173440;color:#e2f7f6;font-size:11px}
.at-chat-reply>span{display:flex;align-items:center;gap:6px;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.at-chat-reply>span .at-chat-icon{width:15px;height:15px}
.at-chat-reply .at-chat-icon-btn{height:34px;width:34px;min-height:34px}
/* Campo e botões com tamanho/tap target uniforme. */
.at-chat-composer-wrap{position:relative;flex-shrink:0;background:var(--chat-panel)}
.at-chat-composer{display:flex;align-items:flex-end;gap:8px;margin:0;padding:11px 12px;border-top:1px solid var(--chat-border);background:var(--chat-panel)}
.at-chat-composer textarea{flex:1;min-width:0;width:100%;height:44px;min-height:44px;max-height:105px;padding:11px 12px;resize:vertical;background:var(--chat-field);color:var(--chat-text);border:1px solid #537384;border-radius:10px;font:inherit;font-size:13px;line-height:20px}
.at-chat-composer textarea::placeholder{color:#adc5d1}
.at-chat-composer button{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;min-height:44px;padding:0;border-radius:10px}
.at-chat-composer button .at-chat-icon{width:21px;height:21px}
.at-chat-emoji-toggle{background:#183b3c;color:var(--chat-mint);border:1px solid #4d947f}
.at-chat-emoji-toggle:hover,.at-chat-emoji-toggle[aria-expanded="true"]{background:#245148;border-color:var(--chat-mint)}
.at-chat-send{background:var(--chat-mint);color:#09201b;border:1px solid var(--chat-mint)}
.at-chat-send:hover{background:#8af4d0}
.at-chat-status{flex-shrink:0;min-height:26px;padding:5px 12px 7px;border-top:1px solid var(--chat-border);background:#102631;color:var(--chat-muted);font-size:10px;line-height:1.4}
.at-chat-emoji-picker{position:absolute;z-index:6;bottom:calc(100% + 6px);left:9px;width:min(318px,calc(100% - 18px));max-height:240px;overflow:auto;padding:11px;border:1px solid #477c78;border-radius:13px;background:var(--chat-panel);box-shadow:0 14px 45px #000b;scrollbar-width:thin}
.at-chat-emoji-title{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:9px;color:var(--chat-text);font-size:12px;font-weight:850}
.at-chat-emoji-title small{color:var(--chat-muted);font-size:10px;font-weight:500}
.at-chat-emoji-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px}
.at-chat-emoji-grid button.at-chat-emoji-item{display:grid;place-items:center;width:100%;height:36px;min-height:36px;padding:2px;border:1px solid transparent;border-radius:8px;background:transparent;font-size:22px;line-height:1}
.at-chat-emoji-grid button.at-chat-emoji-item:hover,.at-chat-emoji-grid button.at-chat-emoji-item:focus-visible{background:#20483f;border-color:#519b84}
/* Administração: adota a mesma linguagem do chat do jogador. */
.at-admin-chat-root .at-chat-panel{height:min(660px,calc(100dvh - 110px))}
.at-admin-chat-select{display:flex;gap:9px;padding:11px 12px;border-bottom:1px solid var(--chat-border);background:var(--chat-panel)}
.at-admin-chat-select label{flex:1;min-width:0;margin:0;color:var(--chat-muted);font-size:11px}
.at-admin-chat-select select{display:block;width:100%;min-width:0;min-height:42px;margin-top:6px;padding:8px;border:1px solid #537384;border-radius:9px;background:#091722;color:var(--chat-text);font-size:12px}
.at-admin-chat-messages{flex:1;min-height:0;overflow-y:auto;padding:12px;background:#0c1d2a}
.at-admin-chat-item{margin-bottom:10px;padding:11px;border:1px solid #3a6070;border-radius:12px;background:#192f3e;font-size:12px;line-height:1.45;overflow-wrap:anywhere;white-space:pre-wrap}
.at-admin-chat-meta{display:flex;justify-content:space-between;gap:8px;margin-bottom:6px;color:#b6f9df}
.at-admin-chat-meta small{color:var(--chat-muted);font-size:10px}
.at-admin-chat-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:6px;margin-top:8px}
.at-admin-chat-actions button,.at-admin-chat-player button{display:inline-flex;align-items:center;gap:5px;min-height:36px;padding:6px 10px;background:#183b3c;border:1px solid #4d947f;border-radius:9px;color:#e8fff8;font-size:11px;font-weight:750}
.at-admin-chat-actions button .at-chat-icon{width:15px;height:15px}
.at-admin-chat-moderate{flex-shrink:0;max-height:152px;overflow:auto;padding:10px 12px;border-top:1px solid var(--chat-border);background:#132536;font-size:12px}
.at-admin-chat-moderate summary{cursor:pointer;color:#dbf9f0;font-weight:750}
.at-admin-chat-player{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid var(--chat-border)}
@media(max-width:640px){
 .at-chat-root{right:12px;bottom:calc(82px + env(safe-area-inset-bottom,0px))}
 .at-chat-bubble{width:54px;height:54px;min-height:54px}
 .at-chat-panel{right:-4px;bottom:62px;width:min(410px,calc(100vw - 16px));height:min(620px,calc(100dvh - 172px - env(safe-area-inset-bottom,0px)));border-radius:15px}
 .at-chat-games,.at-chat-channels{padding:7px 9px}
 .at-chat-messages{padding:11px 9px}
 .at-chat-message{max-width:98%}
 .at-chat-composer{padding:9px}
 .at-chat-emoji-grid{grid-template-columns:repeat(7,minmax(0,1fr))}
 .at-admin-chat-root{right:12px;bottom:14px}
 .at-admin-chat-root .at-chat-panel{height:min(640px,calc(100dvh - 96px))}
}
@media(max-width:370px){
 .at-chat-header{padding:10px 11px}
 #atChatPanel .at-chat-type-tabs{padding:8px}
 .at-chat-games,.at-chat-channels{min-height:48px}
 .at-chat-header .at-chat-title b{font-size:14px}
 .at-chat-author{flex-wrap:wrap;gap:3px}
}
@media(max-height:550px){
 .at-chat-panel{height:calc(100dvh - 94px);bottom:62px;min-height:0}
 .at-chat-root{bottom:12px}
 .at-chat-emoji-picker{max-height:145px}
}

/* V4.70 — maximizar área de leitura sem eliminar qualquer conversa. */
#atChatPanel.at-chat-panel{height:min(730px,calc(100dvh - 94px));}
#atChatPanel .at-chat-header{gap:7px;padding:6px 9px;min-height:45px;}
#atChatPanel .at-chat-title{flex:0 0 auto;gap:0;}
#atChatPanel .at-chat-title b{font-size:13px;line-height:1;white-space:nowrap;}
#atChatPanel .at-chat-type-tabs{display:flex;flex:1;min-width:0;gap:3px;border:0;padding:0;margin:0;background:none;}
#atChatPanel .at-chat-type-tabs button{display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;flex:1;min-height:32px;padding:5px 6px;border-radius:8px;font-size:11px;line-height:1.2;font-weight:700;border:1px solid #426876;background:#102d38;color:#e0eee9;}
#atChatPanel .at-chat-type-tabs button.active{background:#1c4c42;color:var(--chat-mint);border-color:#53957e;}
#atChatPanel .at-chat-type-tabs button .at-chat-icon{width:14px;height:14px;}
#atChatPanel .at-chat-icon-btn.at-chat-close{width:32px;height:32px;min-height:32px;border-radius:8px;}
#atChatPanel .at-chat-icon-btn.at-chat-close .at-chat-icon{width:17px;height:17px;}
#atChatPanel .at-chat-options{display:flex;align-items:center;gap:5px;padding:6px 8px;min-height:46px;border-bottom:1px solid var(--chat-border);background:#102837;}
#atChatPanel .at-chat-game-choice{flex:1.2;min-width:0;}
#atChatPanel .at-chat-channel-choice{flex:1;min-width:0;}
#atChatPanel .at-chat-options select{appearance:auto;width:100%;min-width:0;height:32px;min-height:32px;max-width:100%;padding:3px 3px;border:1px solid #476978;border-radius:8px;background:#152e3b;color:var(--chat-text);font-family:inherit;font-size:11px;outline-offset:1px;text-overflow:ellipsis;}
#atChatPanel .at-chat-context-empty{display:flex;align-items:center;min-height:32px;padding:0 4px;color:var(--chat-muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
#atChatPanel .at-chat-archive-toggle{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;min-height:32px;padding:0;border:1px solid #426876;border-radius:8px;background:#152e3b;color:#c7dede;}
#atChatPanel .at-chat-archive-toggle .at-chat-icon{width:17px;height:17px;}
#atChatPanel .at-chat-archive-toggle[aria-pressed="true"]{background:#27584b;color:#b9ffdb;border-color:#62b18c;}
#atChatPanel .at-chat-archive-toggle.hide{display:none;}
#atChatPanel .at-chat-squad-name,#atChatPanel .at-chat-squad-channel{display:flex;align-items:center;gap:5px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#e6f8f2;font-size:11px;min-height:32px;}
#atChatPanel .at-chat-squad-name .at-chat-icon,#atChatPanel .at-chat-squad-channel .at-chat-icon{width:15px;height:15px;}
#atChatPanel .at-chat-options.squad-mode .at-chat-game-choice{flex:2;}
#atChatPanel .at-chat-options.squad-mode .at-chat-channel-choice{flex:0 0 auto;}
#atChatPanel .at-chat-pinned{max-height:45px;padding:5px 9px;font-size:11px;}
#atChatPanel .at-chat-messages{gap:8px;padding:11px 9px;}
#atChatPanel .at-chat-message{gap:6px;max-width:96%;}
#atChatPanel .at-chat-avatar{flex-basis:27px;width:27px;height:27px;}
#atChatPanel .at-chat-message-content{padding:7px 9px;}
#atChatPanel .at-chat-author{gap:5px;min-height:24px;font-size:11px;}
#atChatPanel .at-chat-author-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:35px;}
#atChatPanel .at-chat-message-meta{display:flex;align-items:center;gap:1px;flex-shrink:0;}
#atChatPanel .at-chat-author small{margin-right:2px;font-size:10px;}
#atChatPanel .at-chat-respond{display:grid;place-items:center;flex:0 0 29px;width:29px;height:29px;min-height:29px!important;margin:0;padding:0!important;border-radius:7px!important;}
#atChatPanel .at-chat-respond .at-chat-icon{width:15px;height:15px;}
#atChatPanel .at-chat-text{margin-top:2px;font-size:13px;line-height:1.45;}
#atChatPanel .at-chat-reply{padding:4px 9px;}
#atChatPanel .at-chat-reply .at-chat-icon-btn{width:29px;min-height:29px;height:29px;}
#atChatPanel .at-chat-composer{align-items:center;gap:5px;padding:6px 8px;}
#atChatPanel .at-chat-composer textarea{height:38px;min-height:38px;max-height:100px;padding:8px 9px;font-size:13px;line-height:20px;resize:none;}
#atChatPanel .at-chat-composer button{height:38px;width:38px;min-height:38px;border-radius:9px;}
#atChatPanel .at-chat-composer button .at-chat-icon{width:19px;height:19px;}
#atChatPanel .at-chat-status:empty{display:none;}
#atChatPanel .at-chat-status:not(:empty){min-height:0;padding:6px 9px;font-size:11px;}
/* A administração também recebe campos compactos sem reduzir legibilidade das mensagens. */
#atAdminChatPanel .at-chat-header{min-height:46px;padding:7px 10px;}
#atAdminChatPanel .at-chat-title-icon{width:33px;height:33px;border-radius:9px;}
#atAdminChatPanel .at-chat-title-icon .at-chat-icon{width:19px;height:19px;}
#atAdminChatPanel .at-chat-icon-btn{width:33px;height:33px;min-height:33px;}
#atAdminChatPanel .at-admin-chat-select{padding:7px 9px;gap:7px;}
#atAdminChatPanel .at-admin-chat-select select{min-height:35px;padding:4px 6px;}
#atAdminChatPanel .at-chat-composer{padding:7px 9px;gap:7px;}
#atAdminChatPanel .at-chat-composer textarea{height:38px;min-height:38px;resize:none;}
#atAdminChatPanel .at-chat-composer button{width:38px;height:38px;min-height:38px;}
#atAdminChatPanel .at-chat-status:empty{display:none;}
#atAdminChatPanel .at-chat-status:not(:empty){padding:5px 9px;min-height:0;}
@media(max-width:640px){
 #atChatPanel.at-chat-panel{height:calc(100dvh - 153px - env(safe-area-inset-bottom,0px));max-height:730px;min-height:200px;}
 #atChatPanel .at-chat-header{padding:5px 7px;gap:5px;}
 #atChatPanel .at-chat-title b{font-size:12px;}
 #atChatPanel .at-chat-type-tabs button{font-size:10.5px;padding:5px 4px;}
 #atChatPanel .at-chat-options{padding:5px 7px;}
 #atChatPanel .at-chat-messages{padding:9px 7px;}
 #atChatPanel .at-chat-composer{padding:6px;gap:5px;}
}
@media(max-height:550px){
 #atChatPanel.at-chat-panel{height:calc(100dvh - 150px);min-height:160px;}
}

#atAdminChatPanel .at-admin-chat-meta{align-items:center;gap:4px;min-height:30px;}
#atAdminChatPanel .at-admin-chat-meta b{flex:1;min-width:25px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
#atAdminChatPanel .at-admin-chat-meta-actions{display:flex;gap:3px;align-items:center;flex-shrink:0;}
#atAdminChatPanel .at-admin-chat-meta-actions small{max-width:105px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
#atAdminChatPanel .at-admin-chat-meta-actions button{display:grid;place-items:center;width:30px;height:30px;min-height:30px;padding:0;border:0;border-radius:7px;color:#a7e8d5;background:transparent;}
#atAdminChatPanel .at-admin-chat-meta-actions button:hover{background:#245148;}
#atAdminChatPanel .at-admin-chat-meta-actions .at-chat-icon{width:15px;height:15px;}
#atAdminChatPanel .at-admin-chat-item{padding:8px 10px;margin-bottom:7px;}

/* V4.97 — chat acessível: textos e controles ampliados (substitui V4.70 compacto). */
#atChatPanel.at-chat-panel{height:min(780px,calc(100dvh - 102px));}
#atChatPanel .at-chat-header{min-height:58px;padding:9px 11px;gap:9px;}
#atChatPanel .at-chat-title b{font-size:16px;line-height:1.3}
#atChatPanel .at-chat-type-tabs{gap:7px}
#atChatPanel .at-chat-type-tabs button{min-height:43px;padding:9px 11px;font-size:14px;gap:7px}
#atChatPanel .at-chat-type-tabs button .at-chat-icon{width:18px;height:18px}
#atChatPanel .at-chat-icon-btn.at-chat-close{width:44px;height:44px;min-height:44px}
#atChatPanel .at-chat-icon-btn.at-chat-close .at-chat-icon{width:20px;height:20px}
#atChatPanel .at-chat-options{min-height:58px;padding:9px 10px;gap:7px}
#atChatPanel .at-chat-options select{height:44px;min-height:44px;padding:8px;font-size:14px}
#atChatPanel .at-chat-context-empty{font-size:13px;min-height:44px}
#atChatPanel .at-chat-archive-toggle{flex-basis:44px;width:44px;height:44px;min-height:44px}
#atChatPanel .at-chat-archive-toggle .at-chat-icon{height:19px;width:19px}
#atChatPanel .at-chat-squad-name,#atChatPanel .at-chat-squad-channel{font-size:13px;min-height:44px}
#atChatPanel .at-chat-pinned{font-size:13px;max-height:65px;padding:9px}
#atChatPanel .at-chat-messages{gap:11px;padding:13px 10px}
#atChatPanel .at-chat-avatar{flex-basis:34px;width:34px;height:34px}
#atChatPanel .at-chat-message-content{padding:10px 12px}
#atChatPanel .at-chat-author{font-size:13px;min-height:27px}
#atChatPanel .at-chat-author small{font-size:12px}
#atChatPanel .at-chat-text{font-size:16px;line-height:1.5;margin-top:4px}
#atChatPanel .at-chat-linked,#atChatPanel .at-chat-system,#atChatPanel .at-chat-empty,#atChatPanel .at-chat-deleted{font-size:13px}
#atChatPanel .at-chat-respond{width:44px;height:44px;min-height:44px!important;flex-basis:44px}
#atChatPanel .at-chat-respond .at-chat-icon{width:19px;height:19px}
#atChatPanel .at-chat-reply{font-size:13px;padding:8px 12px}
#atChatPanel .at-chat-reply .at-chat-icon-btn{height:44px;min-height:44px;width:44px}
#atChatPanel .at-chat-composer{gap:8px;padding:10px}
#atChatPanel .at-chat-composer textarea{height:50px;min-height:50px;max-height:140px;padding:12px;font-size:16px;line-height:24px;resize:vertical}
#atChatPanel .at-chat-composer button{width:50px;height:50px;min-height:50px}
#atChatPanel .at-chat-composer button .at-chat-icon{width:24px;height:24px}
#atChatPanel .at-chat-status:not(:empty){font-size:12px;min-height:0;padding:6px 10px}
#atChatPanel .at-chat-emoji-grid button.at-chat-emoji-item{min-height:42px;height:42px}
#atAdminChatPanel .at-chat-header{min-height:55px;padding:10px}
#atAdminChatPanel .at-chat-title b{font-size:16px}
#atAdminChatPanel .at-chat-icon-btn{width:44px;height:44px;min-height:44px}
#atAdminChatPanel .at-admin-chat-select label{font-size:14px}
#atAdminChatPanel .at-admin-chat-select select{min-height:44px;font-size:14px}
#atAdminChatPanel .at-admin-chat-item{font-size:15px;line-height:1.5;padding:12px}
#atAdminChatPanel .at-admin-chat-meta small{font-size:12px}
#atAdminChatPanel .at-admin-chat-meta-actions button{width:44px;height:44px;min-height:44px}
#atAdminChatPanel .at-admin-chat-actions button,#atAdminChatPanel .at-admin-chat-player button{min-height:44px;font-size:14px;padding:9px 12px}
#atAdminChatPanel .at-chat-composer textarea{height:50px;min-height:50px;font-size:16px;line-height:24px;padding:10px}
#atAdminChatPanel .at-chat-composer button{height:50px;width:50px;min-height:50px}
#atAdminChatPanel .at-admin-chat-moderate{font-size:14px}
@media(max-width:640px){
 #atChatPanel.at-chat-panel{height:min(780px,calc(100dvh - 145px - env(safe-area-inset-bottom,0px)));min-height:210px}
 #atChatPanel .at-chat-header{flex-wrap:wrap;gap:6px;padding:8px 9px}
 #atChatPanel .at-chat-title{flex:1;min-width:70px}
 #atChatPanel .at-chat-title b{font-size:16px}
 #atChatPanel .at-chat-type-tabs{order:3;flex:0 0 100%;gap:8px}
 #atChatPanel .at-chat-type-tabs button{font-size:14px;min-height:44px}
 #atChatPanel .at-chat-options{padding:8px;gap:6px}
 #atChatPanel .at-chat-options select{font-size:14px}
 #atChatPanel .at-chat-composer{padding:8px;gap:6px}
 #atChatPanel .at-chat-composer button{width:48px;height:48px;min-height:48px}
 #atChatPanel .at-chat-text{font-size:16px}
 #atChatPanel .at-chat-author{flex-wrap:wrap;gap:3px}
}
@media(max-height:500px){#atChatPanel.at-chat-panel{height:calc(100dvh - 90px);min-height:0}#atChatPanel .at-chat-options{min-height:0}}

#atChatPanel .at-chat-more{min-height:44px;padding:9px 13px;font-size:14px}
#atChatPanel .at-chat-more .at-chat-icon{height:18px;width:18px}
#atChatPanel .at-chat-tab-count{font-size:12px;min-height:23px;min-width:23px}
#atChatPanel .at-chat-emoji-title{font-size:14px}
#atChatPanel .at-chat-emoji-title small{font-size:12px}
