/* PE-Class v1.15.70 — iPad 홈 외부 스크롤 차단 + 종목 현황 내부 스크롤
 * iPad로 판별된 홈 대시보드에만 적용하며 PC·모바일·다른 탭은 변경하지 않습니다.
 */
@media (min-width:720px) and (max-width:1366px){
  html.homeDashboardViewport.pe87Ipad,
  html.homeDashboardViewport.pe87IpadRuntime{
    width:100%;
    height:100dvh!important;
    min-height:0!important;
    max-height:100dvh!important;
    overflow:hidden!important;
    overscroll-behavior:none!important;
  }
  html.homeDashboardViewport.pe87Ipad body.homeDashboardApp,
  html.homeDashboardViewport.pe87IpadRuntime body.homeDashboardApp{
    width:100%;
    height:100dvh!important;
    min-height:0!important;
    max-height:100dvh!important;
    overflow:hidden!important;
    overscroll-behavior:none!important;
  }
  html.homeDashboardViewport.pe87Ipad body.homeDashboardApp .pe87Shell,
  html.homeDashboardViewport.pe87IpadRuntime body.homeDashboardApp .pe87Shell{
    height:calc(100dvh - 76px)!important;
    min-height:0!important;
    max-height:calc(100dvh - 76px)!important;
    margin-top:0!important;
    overflow:hidden!important;
  }
  html.homeDashboardViewport.pe87Ipad body.homeDashboardApp .pe87Main,
  html.homeDashboardViewport.pe87IpadRuntime body.homeDashboardApp .pe87Main{
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
    overflow:hidden!important;
    overscroll-behavior:none!important;
  }
  html.homeDashboardViewport.pe87Ipad body.homeDashboardApp #app,
  html.homeDashboardViewport.pe87IpadRuntime body.homeDashboardApp #app{
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
    overflow:hidden!important;
  }
  html.homeDashboardViewport.pe87Ipad body.homeDashboardApp .homeDashboard,
  html.homeDashboardViewport.pe87IpadRuntime body.homeDashboardApp .homeDashboard{
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
    overflow:hidden!important;
  }
  html.homeDashboardViewport.pe87Ipad body.homeDashboardApp .homeDashboardGrid,
  html.homeDashboardViewport.pe87IpadRuntime body.homeDashboardApp .homeDashboardGrid{
    height:auto!important;
    min-height:0!important;
    max-height:100%!important;
    overflow:hidden!important;
    align-self:stretch;
  }
  html.homeDashboardViewport.pe87Ipad body.homeDashboardApp .homeSportsCard,
  html.homeDashboardViewport.pe87IpadRuntime body.homeDashboardApp .homeSportsCard{
    display:grid!important;
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
    overflow:hidden!important;
    grid-template-rows:auto minmax(0,1fr)!important;
  }
  html.homeDashboardViewport.pe87Ipad body.homeDashboardApp .homeSportsList,
  html.homeDashboardViewport.pe87IpadRuntime body.homeDashboardApp .homeSportsList{
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y!important;
    scrollbar-gutter:stable;
  }
}

/* 921px 이상 iPad는 고정 헤더 높이와 본문 시작점을 정확히 맞춥니다. */
@media (min-width:921px) and (max-width:1366px){
  html.homeDashboardViewport.pe87Ipad body.homeDashboardApp .pe87Shell,
  html.homeDashboardViewport.pe87IpadRuntime body.homeDashboardApp .pe87Shell{
    margin-top:76px!important;
  }
}
