/* PE-Class v1.21.32 — synchronous iPad PAPS landscape shell
 *
 * An iPad Home Screen scene can restore the CSS landscape viewport before
 * focus/visibility/resize updates the Foundation orientation attributes.  The
 * legacy shell then combines wide media queries with stale portrait state and
 * stacks the 225px rail above the workspace for one or two visible frames.
 * This PAPS-only contract follows the synchronous CSS viewport and stable
 * hardware marker, so the first style calculation already has healthy outer
 * geometry without changing zoom, viewport metadata, focus, or application
 * state.
 */
@media (min-width: 769px) and (max-width: 1440px) and (orientation: landscape) {
  html.pePapsIpadHardware12126[data-pe-tab="paps"]:not(.pe87FoldWide):not([data-pe-fold-wide="true"]),
  html.pePapsIpadHardware12126[data-pe-tab="paps"]:not(.pe87FoldWide):not([data-pe-fold-wide="true"]) body {
    width: 100% !important;
    height: 100dvh !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  html.pePapsIpadHardware12126[data-pe-tab="paps"]:not(.pe87FoldWide):not([data-pe-fold-wide="true"]) {
    --pe-paps-landscape-resume-contract: 12132;
  }

  html.pePapsIpadHardware12126[data-pe-tab="paps"]:not(.pe87FoldWide):not([data-pe-fold-wide="true"]) .pe87Top {
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    width: 100% !important;
    height: 76px !important;
    z-index: 5000 !important;
  }

  html.pePapsIpadHardware12126[data-pe-tab="paps"]:not(.pe87FoldWide):not([data-pe-fold-wide="true"]) .pe87Shell {
    position: fixed !important;
    inset: 76px 0 0 0 !important;
    display: grid !important;
    grid-template-columns: 225px minmax(0, 1fr) !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  html.pePapsIpadHardware12126[data-pe-tab="paps"]:not(.pe87FoldWide):not([data-pe-fold-wide="true"]) .pe87Side {
    position: relative !important;
    top: auto !important;
    z-index: 50 !important;
    width: 225px !important;
    min-width: 225px !important;
    max-width: 225px !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 13px 11px !important;
    border-right: 1px solid #d9e1ea !important;
    border-bottom: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: #fff !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html.pePapsIpadHardware12126[data-pe-tab="paps"]:not(.pe87FoldWide):not([data-pe-fold-wide="true"]) .sideTabs {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  html.pePapsIpadHardware12126[data-pe-tab="paps"]:not(.pe87FoldWide):not([data-pe-fold-wide="true"]) .sideTabs .tab {
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    white-space: normal !important;
  }

  html.pePapsIpadHardware12126[data-pe-tab="paps"]:not(.pe87FoldWide):not([data-pe-fold-wide="true"]) .sideTree {
    display: block !important;
  }

  html.pePapsIpadHardware12126[data-pe-tab="paps"]:not(.pe87FoldWide):not([data-pe-fold-wide="true"]) .pe87Main {
    width: auto !important;
    height: calc(100dvh - 76px) !important;
    max-height: calc(100dvh - 76px) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }
}
