/* Android can keep visualViewport.height at its keyboard-open value after the
   chat-list search field is hidden. Saved Messages must use the real dynamic
   viewport whenever its composer is not actively editing. */
@media (max-width: 760px) {
  body.chat-active:not(:has(#chatInput:focus)) #chatView,
  body:has(#chatConversationPane[data-conversation="saved"]:not(.hidden)):not(:has(#chatInput:focus)) #chatView {
    top: 0 !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
  }

  body:has(#chatConversationPane[data-conversation="saved"]:not(.hidden)):not(:has(#chatInput:focus)) #chatConversationPane {
    height: 100% !important;
    min-height: 0 !important;
  }
}
