
/* v96 — force a real internal viewport so custom phone navigator actually moves */
body.v65-login .v65-screen{
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}

body.v65-login .v65-statusbar{
  flex:0 0 42px!important;
  height:42px!important;
}

/* Critical fix: fixed viewport height, not content-driven flex height */
body.v65-login .v65-phone-content{
  flex:0 0 calc(100% - 42px)!important;
  height:calc(100% - 42px)!important;
  min-height:0!important;
  max-height:calc(100% - 42px)!important;
  overflow-y:scroll!important;
  overflow-x:hidden!important;
  box-sizing:border-box!important;
  overscroll-behavior:contain!important;
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
  padding-right:25px!important;
  padding-bottom:24px!important;
  scroll-behavior:smooth!important;
}
body.v65-login .v65-phone-content::-webkit-scrollbar{
  display:none!important;
  width:0!important;
}

/* Give footer a reachable lower position; creates a useful scroll range */
body.v65-login .v96-phone-scroll-spacer{
  display:block!important;
  flex:0 0 110px!important;
  width:100%!important;
  height:110px!important;
  pointer-events:none!important;
}

/* Active rule track */
body.v65-login .v95-phone-rule{
  right:7px!important;
  top:56px!important;
  bottom:18px!important;
  width:5px!important;
  z-index:60!important;
  opacity:1!important;
  background:rgba(255,255,255,.17)!important;
}
body.v65-login .v95-phone-rule.inactive{
  opacity:.75!important;
}
body.v65-login .v95-phone-thumb{
  min-height:44px!important;
  background:linear-gradient(180deg,#ecfdf5,#6ee7b7 58%,#34d399)!important;
  box-shadow:0 2px 9px rgba(0,0,0,.26),0 0 0 1px rgba(255,255,255,.25)!important;
}

/* make it easier to drag */
body.v65-login .v95-phone-rule::before{
  content:""!important;
  position:absolute!important;
  top:0!important;bottom:0!important;
  left:-7px!important;right:-7px!important;
}

/* footer remains in normal scroll flow */
body.v65-login .v65-security,
body.v65-login .v65-homebar{
  position:relative!important;
  flex:none!important;
}

@media(max-height:760px) and (min-width:821px){
  body.v65-login .v96-phone-scroll-spacer{
    height:85px!important;
    flex-basis:85px!important;
  }
}
