/* Community Hub v9.7.7 — Messenger composer clearance and spacing.
   The Android WebView sets --hcm-messenger-nav-clearance from the actual nav rectangle.
   Mobile web/PWA uses the safe fallback. Desktop has no bottom tab bar. */
@media (max-width:950px) {
  body.hcm972-messenger-page .mainwrap main.content {
    box-sizing:border-box!important;
    min-height:0!important;
    padding-top:0!important;
    padding-bottom:var(--hcm-messenger-nav-clearance, 92px)!important;
    overflow:hidden!important;
  }
  body.hcm972-messenger-page .mainwrap main.content > .hcm976-messenger {
    box-sizing:border-box!important;
    flex:1 1 auto!important;
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
    overflow:hidden!important;
    margin:0!important;
  }
  body.hcm972-messenger-page .hcm976-chat-stage {
    display:flex!important;
    flex-direction:column!important;
    min-height:0!important;
    max-height:100%!important;
    overflow:hidden!important;
  }
  body.hcm972-messenger-page .hcm976-chat-head {
    padding:8px 13px!important;
    min-height:58px!important;
    gap:10px!important;
  }
  body.hcm972-messenger-page .hcm976-chat-head .avatar {
    width:36px!important;height:36px!important;min-width:36px!important;
  }
  body.hcm972-messenger-page .hcm976-chat-identity strong{font-size:15px!important;line-height:1.25!important}
  body.hcm972-messenger-page .hcm976-chat-identity small{font-size:11px!important;line-height:1.2!important}
  body.hcm972-messenger-page .hcm976-chat-stage > .hcm976-message-history {
    flex:1 1 0!important;
    min-height:0!important;
    height:0!important;
    overflow-y:auto!important;
    padding:12px 13px 18px!important;
    gap:3px!important;
    scroll-padding-bottom:18px;
  }
  body.hcm972-messenger-page .hcm976-day {margin:11px 0 13px!important}
  body.hcm972-messenger-page .hcm976-chat-stage .bubblemsg {
    margin:2px 0 3px!important;
    padding:9px 12px 7px!important;
    max-width:84%!important;
    border-radius:16px 16px 16px 5px!important;
  }
  body.hcm972-messenger-page .hcm976-chat-stage .bubblemsg.mine {
    border-radius:16px 16px 5px 16px!important;
  }
  body.hcm972-messenger-page .hcm976-message-meta {margin-top:4px!important}
  body.hcm972-messenger-page .hcm976-chat-stage > .hcm976-message-composer {
    position:relative!important;
    flex:0 0 auto!important;
    min-height:62px!important;
    padding:8px 12px 10px!important;
    margin:0!important;
    z-index:4!important;
    box-sizing:border-box!important;
    display:flex!important;
    align-items:center!important;
    gap:9px!important;
    background:#15291f!important;
    border-top:1px solid #365444!important;
  }
  body.hcm972-messenger-page .hcm976-message-composer input[name="body"] {
    min-width:0!important;
    height:43px!important;
    min-height:43px!important;
    flex:1 1 auto!important;
    font-size:16px!important;
  }
  body.hcm972-messenger-page .hcm976-attach{width:40px!important;height:40px!important}
  body.hcm972-messenger-page .hcm976-message-composer > button.primary{width:43px!important;height:43px!important}
}
@media (min-width:951px) {
  body.hcm972-messenger-page {--hcm-messenger-nav-clearance:0px}
}
