/* V36.7.44 — portrait reset: prevent stale inline landscape height from shrinking the drawer. */
@media (orientation: portrait) and (max-width: 600px) {
  html body #app-sidebar.app-sidebar {
    position: fixed !important;
    top: calc(var(--v36-header-height, 168px) + 6px) !important;
    bottom: calc(7px + env(safe-area-inset-bottom, 0px)) !important;
    left: 6px !important;
    right: auto !important;
    width: min(78vw, 270px) !important;
    max-width: calc(100vw - 12px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  html body #app-sidebar > .sidebar-heading,
  html body #app-sidebar > .sidebar-foot { flex: 0 0 auto !important; }
  html body #app-sidebar > #main-tabs-nav,
  html body #app-sidebar > #main-tabs-nav.tabs-nav {
    display: flex !important;
    position: relative !important;
    inset: auto !important;
    flex: 1 1 0% !important;
    width: 100% !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    flex-direction: column !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain !important;
    touch-action: pan-y !important;
  }
}
