/* Keep the mobile conversation in the visible viewport; only its history scrolls.
   The page's global 100vh minimum can otherwise outgrow Safari's dynamic viewport. */
@media(max-width: 760px) {
  html:has(.redesigned-app .cabinet-chat-route) { height: 100%; overflow: hidden; overscroll-behavior-y: none; }
  body:has(.redesigned-app .cabinet-chat-route) { height: 100dvh; min-height: 0; overflow: hidden; }
  .redesigned-app .cabinet-navigation.cabinet-chat-route { height: 100dvh; min-height: 0; overflow: hidden; }
  .redesigned-app .cabinet-navigation.cabinet-chat-route .workspace,
  .redesigned-app .cabinet-navigation.cabinet-chat-route #cabinet-main.main-content,
  .redesigned-app .cabinet-navigation.cabinet-chat-route .cc-full { height: 100%; min-height: 0; }
  .redesigned-app .cabinet-navigation.cabinet-chat-route .cc-messages { overscroll-behavior-y: contain; }
  .redesigned-app .cabinet-navigation.cabinet-chat-route .cc-full .cc-header { padding-top: calc(17px + env(safe-area-inset-top, 0px)); }
}
