/* MISTER FAST V61.4.2B — Mobile Mini Header Alignment
 * Scope locked: Mini header only.
 * Keeps auth behavior unchanged. No Sidebar, room tabs, messages, composer or map changes.
 */
@media (max-width:700px){
  .mf514-chat-head{
    flex:0 0 66px!important;
    min-height:66px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    column-gap:6px!important;
    padding:6px 7px!important;
    overflow:hidden!important;
  }

  .mf514-chat-head .mf612-native-account-host,
  .mf514-chat-head .mf545-chat-brand{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    display:grid!important;
    grid-template-columns:46px minmax(0,1fr)!important;
    align-items:center!important;
    gap:6px!important;
    margin:0!important;
    overflow:hidden!important;
  }

  .mf514-chat-head .mf612-native-avatar,
  .mf514-chat-head .mf545-auth-state span{
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
    border-radius:13px!important;
    font-size:19px!important;
  }

  .mf514-chat-head .mf612-native-copy{
    min-width:0!important;
    width:100%!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
    gap:0!important;
    overflow:hidden!important;
  }

  .mf514-chat-head .mf612-native-copy b{
    display:block!important;
    width:100%!important;
    margin:0!important;
    color:#082d63!important;
    font-size:17px!important;
    line-height:1.08!important;
    font-weight:900!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  .mf514-chat-head .mf6135-auth-action{
    display:inline-block!important;
    align-self:flex-start!important;
    margin:2px 0 0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    font-size:10px!important;
    line-height:1.05!important;
    white-space:nowrap!important;
  }

  .mf514-chat-head-actions{
    min-width:0!important;
    margin:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:5px!important;
    overflow:visible!important;
  }

  .mf514-chat-head-actions em{
    display:block!important;
    min-width:42px!important;
    max-width:48px!important;
    margin:0!important;
    font-size:11px!important;
    line-height:1!important;
    font-weight:900!important;
    text-align:right!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:clip!important;
  }

  .mf514-chat-head-actions button,
  .mf514-expand-toggle{
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    padding:0!important;
    border-radius:12px!important;
  }

  .mf514-chat-head .mf6123-room-compact{display:none!important}
}

@media (max-width:420px){
  .mf514-chat-head{
    grid-template-columns:minmax(0,1fr) auto!important;
    padding-left:6px!important;
    padding-right:6px!important;
    column-gap:4px!important;
  }
  .mf514-chat-head .mf612-native-account-host,
  .mf514-chat-head .mf545-chat-brand{
    grid-template-columns:44px minmax(0,1fr)!important;
    gap:5px!important;
  }
  .mf514-chat-head .mf612-native-avatar,
  .mf514-chat-head .mf545-auth-state span{
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
  }
  .mf514-chat-head .mf612-native-copy b{font-size:16px!important}
  .mf514-chat-head-actions em{min-width:38px!important;max-width:42px!important;font-size:10px!important}
  .mf514-chat-head-actions button,.mf514-expand-toggle{width:34px!important;height:34px!important;min-width:34px!important}
}
