/* v1.9.1 — full-height mobile chat workspace and persistent cloud-status dismissal */

@media (max-width:700px){
  body.profile-view{
    min-height:100dvh;
  }
  body.profile-view main.wrap{
    min-height:100dvh;
  }
  body.profile-view #my-garage.is-chat-view-v189{
    box-sizing:border-box;
    min-height:100dvh!important;
    height:100dvh!important;
    max-height:100dvh!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
    padding-bottom:6px!important;
  }
  body.profile-view #my-garage.is-chat-view-v189 > #garageWorkspaceTabsV189{
    flex:0 0 auto!important;
    margin:0 0 8px!important;
  }
  body.profile-view #my-garage.is-chat-view-v189 > .garage-chat-hub-v161{
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
  }
  body.profile-view #my-garage.is-chat-view-v189 .garage-chat-mode-tabs-v161{
    flex:0 0 auto!important;
    margin-bottom:8px!important;
  }
  body.profile-view #my-garage.is-chat-view-v189 .garage-chat-mode-panel-v161.is-active{
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    display:flex!important;
    overflow:hidden!important;
  }

  /* Community chat fills the remaining viewport. */
  body.profile-view #my-garage.is-chat-view-v189 .garage-community-chat-v161{
    flex:1 1 auto!important;
    min-height:0!important;
    height:100%!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
  }
  body.profile-view #my-garage.is-chat-view-v189 .garage-community-chat-v161 .community-chat-head,
  body.profile-view #my-garage.is-chat-view-v189 .garage-community-chat-v161 .chat-pinned,
  body.profile-view #my-garage.is-chat-view-v189 .garage-community-chat-v161 .chat-join,
  body.profile-view #my-garage.is-chat-view-v189 .garage-community-chat-v161 .chat-compose{
    flex:0 0 auto!important;
  }
  body.profile-view #my-garage.is-chat-view-v189 .garage-community-chat-v161 .chat-feed{
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    overflow-y:auto!important;
  }

  /* Direct messages use the full remaining viewport too. */
  body.profile-view #my-garage.is-chat-view-v189 .direct-messages-v161{
    flex:1 1 auto!important;
    min-height:0!important;
    height:100%!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
  }
  body.profile-view #my-garage.is-chat-view-v189 .dm-list-v161{
    flex:0 0 auto!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    height:auto!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
  }
  body.profile-view #my-garage.is-chat-view-v189 .dm-window-v161{
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
  }
  body.profile-view #my-garage.is-chat-view-v189 .dm-window-head-v161,
  body.profile-view #my-garage.is-chat-view-v189 .dm-compose-v161,
  body.profile-view #my-garage.is-chat-view-v189 .dm-note-v161{
    flex:0 0 auto!important;
  }
  body.profile-view #my-garage.is-chat-view-v189 .dm-messages-v161{
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    overflow-y:auto!important;
  }
}
