/* Final Android WebView fallback: some devices keep both 100dvh and
   visualViewport.height at the old keyboard-open size. Pinning both physical
   viewport edges gives the chat shell a definite full height without either. */
@media (max-width: 760px) {
  html body.chat-active #chatView,
  html body:has(#chatConversationPane:not(.hidden)) #chatView {
    position: fixed !important;
    inset: 0 !important;
    width: min(100%, 720px) !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    transform: none !important;
  }

  html body.chat-active #chatConversationPane,
  html body:has(#chatConversationPane:not(.hidden)) #chatConversationPane {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
  }
}
