/* Mobile scroll compatibility patch for the new live shell. */
@media (max-width: 820px) {
  html:has(body.khn#khLiveRoot#khLiveRoot#khLiveRoot#khLiveRoot#khLiveRoot#khLiveRoot),
  html:has(body.khn#khLiveRoot#khLiveRoot#khLiveRoot#khLiveRoot#khLiveRoot#khLiveRoot) body,
  body.khn#khLiveRoot#khLiveRoot#khLiveRoot#khLiveRoot#khLiveRoot#khLiveRoot {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.khn#khLiveRoot#khLiveRoot#khLiveRoot#khLiveRoot#khLiveRoot#khLiveRoot .app-shell,
  body.khn#khLiveRoot#khLiveRoot#khLiveRoot#khLiveRoot#khLiveRoot#khLiveRoot .app-shell.sidebar-collapsed {
    display: block !important;
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
  }

  body.khn#khLiveRoot#khLiveRoot#khLiveRoot#khLiveRoot#khLiveRoot#khLiveRoot .workspace {
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
    display: block !important;
  }

  body.khn#khLiveRoot#khLiveRoot#khLiveRoot#khLiveRoot#khLiveRoot#khLiveRoot .page-content {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: auto !important;
    scrollbar-gutter: auto !important;
    touch-action: pan-y !important;
  }

  body.khn#khLiveRoot#khLiveRoot#khLiveRoot#khLiveRoot#khLiveRoot#khLiveRoot #tasksView {
    min-height: max-content !important;
    padding-bottom: calc(150px + env(safe-area-inset-bottom)) !important;
  }

  body.khn#khLiveRoot#khLiveRoot#khLiveRoot#khLiveRoot#khLiveRoot#khLiveRoot #taskList {
    min-height: 1px !important;
  }
}
