/* Standalone app: let the browser size the fixed box before JS events arrive.
   Keyboard mode uses measured visualViewport dimensions instead. */
html[data-nexti-viewport-mode="standalone"][data-nexti-keyboard-open="false"] .app-mobile-layout--app {
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  max-width: none !important;
  transform: none !important;
  will-change: auto !important;
}
.app-mobile-layout--app .tm-mobile-chats {
  min-height: 0 !important;
  box-sizing: border-box;
}
.app-mobile-layout--app .tm-mobile-chats__surface {
  flex: 1 1 0 !important;
  height: auto !important;
  min-height: 0 !important;
}
.app-mobile-layout--app .tm-mobile-chats__tabs {
  padding-bottom: max(10px, var(--nexti-app-safe-bottom, env(safe-area-inset-bottom, 0px))) !important;
}
.app-mobile-layout--app .tm-mobile-chats__list,
.app-mobile-layout--app .tm-mobile-contacts,
.app-mobile-layout--app .tm-mobile-settings {
  padding-bottom: 8px !important;
}
