/* VANTAGE UNIVERSAL MOBILE SCROLL — 20 November 2026
 * Single shared mobile containment rule for every original White Slate tool.
 * Do not constrain the focus shell to the viewport: its full content height
 * must contribute to the scroll range of the original .workspace.
 * Keep the header and bottom tool dock as independent, always accessible rows.
 * All changes are purely layout; no business or CRM data code is touched.
 */
@media(max-width:700px){
 html,body{
  width:100%!important;height:100%!important;
  overflow:hidden!important
 }
 #app{
  width:100%!important;max-width:100vw!important;
  height:100dvh!important;min-height:0!important;overflow:hidden!important;
  display:grid!important;grid-template-rows:126px minmax(0,1fr)!important
 }
 #app>.body{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:minmax(0,1fr) 68px!important;
  min-height:0!important;min-width:0!important;
  width:100%!important;max-width:100%!important;overflow:hidden!important
 }
 #app>.body>.workspace{
  position:relative!important;grid-column:1!important;grid-row:1!important;
  display:block!important;width:100%!important;max-width:100%!important;
  height:100%!important;min-height:0!important;max-height:none!important;
  overflow-x:hidden!important;overflow-y:auto!important;
  -webkit-overflow-scrolling:touch!important;overscroll-behavior-y:contain!important;
  touch-action:auto!important;scroll-padding-bottom:35px!important
 }
 #app>.body>#tool-rail{
  grid-column:1!important;grid-row:2!important;
  position:relative!important;top:auto!important;right:auto!important;
  bottom:auto!important;left:auto!important;
  z-index:12!important;display:flex!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  height:68px!important;min-height:68px!important;max-height:68px!important;
  overflow-x:auto!important;overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch!important
 }
 /* This is the root cause. An absolute focus panel is excluded from scroll height.
    Existing Geography/Route/Adoption exceptions are now redundant but harmless. */
 #app>.body>.workspace .focus-shell{
  position:relative!important;top:auto!important;right:auto!important;
  bottom:auto!important;left:auto!important;inset:auto!important;
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;
  height:auto!important;min-height:100%!important;max-height:none!important;
  overflow:visible!important;transform:none!important
 }
 #app>.body>.workspace .focus-shell .focus-layout{
  position:relative!important;inset:auto!important;
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  flex:0 0 auto!important;overflow:visible!important
 }
 #app>.body>.workspace .focus-shell .focus-primary,
 #app>.body>.workspace .focus-shell .focus-body{
  min-width:0!important;max-width:100%!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  overflow:visible!important
 }
 #app>.body>.workspace .focus-shell .focus-body{
  padding-bottom:calc(35px + env(safe-area-inset-bottom,0px))!important
 }
 #app>.body>.workspace .fullview{
  position:relative!important;inset:auto!important;
  height:auto!important;min-height:100%!important;max-height:none!important;
  overflow:visible!important
 }
 /* Preserve horizontal navigation and intentional nested scrolling.
    Do not use touch-action:pan-y on the whole canvas: tabs and ladder need swipes. */
 #app>.body>.workspace .ws-tabs,
 #app>.body>.workspace .context-trail,
 #app>.body>.workspace .wp-category-tabs,
 #app>.body>.workspace .ws-adoption-steps{
  -webkit-overflow-scrolling:touch!important
 }
}
