/* v12.1.4 — Chat header: clear identity row + contained actions, not one overflowing row */
body.hcm972-messenger-page .hcm1214-chat-actions{display:flex;align-items:center;gap:8px;min-width:0}
body.hcm972-messenger-page .hcm1214-chat-actions>*{flex:0 0 auto;margin:0!important}
body.hcm972-messenger-page .hcm1214-chat-actions form{display:flex;align-items:center}
body.hcm972-messenger-page .hcm1214-chat-actions .hcm100-chat-tools{display:flex;gap:8px;align-items:center;flex:0 0 auto;min-width:max-content}
body.hcm972-messenger-page .hcm1214-chat-actions button,
body.hcm972-messenger-page .hcm1214-chat-actions select{min-height:38px;white-space:nowrap;font-size:13px!important;line-height:1.3!important}
@media(max-width:950px){
 body.hcm972-messenger-page .hcm976-chat-stage>.hcm976-chat-head{
  display:grid!important;grid-template-columns:38px 44px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;align-items:center!important;
  gap:8px 10px!important;min-height:0!important;height:auto!important;
  padding:10px 12px 9px!important;overflow:hidden!important;
 }
 body.hcm972-messenger-page .hcm976-chat-head>.hcm976-mobile-back{grid-column:1!important;grid-row:1!important;min-width:0!important;justify-self:center!important;margin:0!important}
 body.hcm972-messenger-page .hcm976-chat-head>.avatar,
 body.hcm972-messenger-page .hcm976-chat-head>.avatar-wrap,
 body.hcm972-messenger-page .hcm976-chat-head>.hcm-avatar-wrap,
 body.hcm972-messenger-page .hcm976-chat-head>.hcm1107-presence-avatar{grid-column:2!important;grid-row:1!important;justify-self:center!important;margin:0!important}
 body.hcm972-messenger-page .hcm976-chat-head>.hcm976-chat-identity{
  grid-column:3!important;grid-row:1!important;min-width:0!important;
  display:flex!important;flex-direction:column!important;justify-content:center!important;
  margin:0!important;padding:0!important;overflow:hidden!important
 }
 body.hcm972-messenger-page .hcm976-chat-head .hcm976-chat-identity strong{
  display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
  font-size:16px!important;line-height:1.25!important;max-width:100%!important
 }
 body.hcm972-messenger-page .hcm976-chat-head .hcm976-chat-identity small{
  display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  font-size:11px!important;line-height:1.5!important
 }
 body.hcm972-messenger-page .hcm976-chat-head>.hcm1214-chat-actions{
  grid-column:1/-1!important;grid-row:2!important;min-width:0!important;width:100%!important;
  display:flex!important;flex-wrap:nowrap!important;gap:7px!important;
  overflow-x:auto!important;overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch;scrollbar-width:none;
  padding:3px 1px 5px!important;align-self:stretch!important;
 }
 body.hcm972-messenger-page .hcm976-chat-head>.hcm1214-chat-actions::-webkit-scrollbar{display:none}
 body.hcm972-messenger-page .hcm1214-chat-actions .hcm100-chat-tools{display:flex!important;gap:7px!important}
 body.hcm972-messenger-page .hcm1214-chat-actions button,
 body.hcm972-messenger-page .hcm1214-chat-actions a,
 body.hcm972-messenger-page .hcm1214-chat-actions select{
  padding:7px 11px!important;min-height:36px!important;height:auto!important;
  font-size:12px!important;border-radius:11px!important;box-sizing:border-box!important
 }
 body.hcm972-messenger-page .hcm1214-chat-actions label{display:flex!important;align-items:center!important;gap:5px!important;margin:0!important;font-size:12px!important;white-space:nowrap!important}
 body.hcm972-messenger-page .hcm1214-chat-actions form{white-space:nowrap!important;max-width:none!important;min-width:max-content!important}
 body.hcm972-messenger-page .hcm1214-chat-actions .hcm12-folder-select select{max-width:120px!important;width:auto!important}
 body.hcm972-messenger-page .hcm976-chat-head>.avatar{width:42px!important;height:42px!important;min-width:42px!important}
}
