/* HALA WIN V26 - restore normal home layout + reliable smartphone vertical swipe */

/* IMPORTANT: do not turn .purple-home into a 100dvh inner scroller.
   The original app relies on normal document scrolling and lazy-loaded cards. */
html.hala-native-home-scroll,
body.hala-native-home-scroll {
  width:100%!important;
  height:auto!important;
  min-height:100%!important;
  max-height:none!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior-y:auto!important;
  touch-action:auto!important;
  pointer-events:auto!important;
}

body.hala-native-home-scroll #app {
  height:auto!important;
  min-height:100vh!important;
  max-height:none!important;
  overflow:visible!important;
  pointer-events:auto!important;
}

body.hala-native-home-scroll .purple-home {
  height:auto!important;
  min-height:100vh!important;
  max-height:none!important;
  overflow:visible!important;
  overflow-x:hidden!important;
  pointer-events:auto!important;
}

/* Undo the V25 inner-scroll class/shape if a cached DOM still contains it. */
body.hala-native-home-scroll .hala-main-scroll-root {
  height:auto!important;
  min-height:100vh!important;
  max-height:none!important;
  overflow:visible!important;
  overflow-x:hidden!important;
  -webkit-overflow-scrolling:auto!important;
  overscroll-behavior:initial!important;
  touch-action:auto!important;
}

/* Floating widgets stay tappable. Do not let them apply a page-wide touch lock. */
body.hala-native-home-scroll .van-floating-bubble,
body.hala-native-home-scroll .float,
body.hala-native-home-scroll .float-entry,
body.hala-native-home-scroll [class*="float-entry"] {
  pointer-events:auto!important;
}

body.hala-native-home-scroll .hala-stale-overlay {
  display:none!important;
  pointer-events:none!important;
}
