/* MyNotes v1.27: keep desktop sidebar stationary while page content scrolls. */
@media (min-width:761px){
  .shell{display:flex!important;align-items:stretch!important;min-height:100vh!important}
  .shell>.sidebar{position:sticky!important;top:0!important;left:auto!important;flex:0 0 var(--mynotes-sidebar-width,250px)!important;width:var(--mynotes-sidebar-width,250px)!important;height:100vh!important;min-height:100vh!important;max-height:100vh!important;overflow-y:auto!important;overscroll-behavior:contain!important;align-self:flex-start!important;z-index:20!important}
  .shell>.main{flex:1 1 0!important;width:auto!important;min-width:0!important;max-width:none!important;overflow:visible!important}
  .shell>.sidebar .mynotes-footer-v126{margin-top:auto!important}
}
/* Mobile uses the existing slide-out drawer rather than pinning it on screen. */
@media (max-width:760px){
  .shell>.sidebar{position:fixed!important;top:0!important;left:0!important;height:100dvh!important;max-height:100dvh!important;overflow-y:auto!important}
}
