/* vAvtobyse 2.9.19 — iOS auth keyboard stability hotfix
   Scope: pre-login/document screens on iPhone/iPad only.
   Keeps Safari in charge of keyboard panning and removes competing layout jumps. */
@supports (-webkit-touch-callout: none) {
  html.vav-mobile-layout body.vav-document-mode {
    min-height:100svh!important;
    background-attachment:scroll!important;
    overflow-anchor:none!important;
  }

  html.vav-mobile-layout body.vav-document-mode .auth-flow-screen {
    min-height:100svh!important;
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
    overflow-anchor:none!important;
    scroll-behavior:auto!important;
  }

  /* Sticky headers and oversized scroll margins fight Safari's own keyboard
     viewport movement and can make the whole login card oscillate. */
  html.vav-mobile-layout body.vav-document-mode .auth-flow-screen .titlebar {
    position:relative!important;
    top:auto!important;
  }

  html.vav-mobile-layout body.vav-document-mode .auth-flow-screen input,
  html.vav-mobile-layout body.vav-document-mode .auth-flow-screen textarea,
  html.vav-mobile-layout body.vav-document-mode .auth-flow-screen select {
    scroll-margin-top:16px!important;
    scroll-margin-bottom:16px!important;
  }

  html.vav-mobile-layout.vav-ios-auth-focus body.vav-document-mode .auth-flow-screen,
  html.vav-mobile-layout body.vav-document-mode.vav-ios-auth-focus .auth-flow-screen {
    min-height:100svh!important;
  }
}
