/* M6 final swipe-only refinement: continuous physical-sheet gesture.
   This layer intentionally does not restyle Offline / Practice / Demo / fonts / slide layout. */

@media(max-width:900px),(pointer:coarse){
  .slide-shell.cz-swipe-deck-v5{
    position:relative;
    overscroll-behavior-x:none;
    touch-action:pan-y;
  }
  html.cz-slide-zoomed .slide-shell.cz-swipe-deck-v5{touch-action:auto}

  .cz-swipe-sheet-current{
    position:relative;
    will-change:transform;
    backface-visibility:hidden;
  }

  .cz-swipe-sheet-preview{
    position:absolute;
    z-index:2;
    overflow:hidden;
    pointer-events:none!important;
    user-select:none;
    -webkit-user-select:none;
    background:var(--bg,#f5f7fb);
    will-change:transform;
    backface-visibility:hidden;
    contain:layout paint style;
    box-shadow:0 0 34px rgba(15,23,42,.16);
  }
  .cz-swipe-sheet-preview *{pointer-events:none!important}
  .cz-swipe-sheet-preview>.authored-slide-stage,
  .cz-swipe-sheet-preview>.slide-stage{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:100%!important;
    min-height:0!important;
    margin:0!important;
    box-sizing:border-box!important;
  }
  .cz-swipe-sheet-preview>.authored-slide-stage{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:hidden!important;
  }
  .cz-swipe-sheet-preview .cz-slide-host{
    width:min(100%,var(--cz-authored-fit-w,1080px))!important;
    max-width:100%!important;
    margin:auto!important;
  }
  .cz-swipe-sheet-preview .cz-slide-canvas{
    width:100%!important;
    aspect-ratio:16/9!important;
  }
  .cz-swipe-sheet-preview-fallback{width:100%;height:100%;background:var(--card,#fff)}

  .cz-swipe-sheet-dragging,
  .cz-swipe-sheet-dragging *{
    cursor:grabbing!important;
  }
  .cz-swipe-sheet-settling .cz-swipe-sheet-current,
  .cz-swipe-sheet-settling .cz-swipe-sheet-preview{
    pointer-events:none!important;
  }
}

/* The same semantic sheet motion applies in physical landscape tablets/phones. */
@media(orientation:landscape) and (max-width:1400px){
  .slide-shell.cz-swipe-deck-v5{touch-action:pan-y;overscroll-behavior-x:none}
  html.cz-slide-zoomed .slide-shell.cz-swipe-deck-v5{touch-action:auto}
}
