/* Desktop application shell: navigation never moves with page content. */
@media (min-width:901px){
  html,body{min-height:100%;}
  html body #sidebar{
    position:fixed!important;
    inset:0 auto 0 0!important;
    width:300px!important;
    height:100dvh!important;
    overflow:hidden!important;
    z-index:100!important;
  }
  html body #sidebar nav{min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;}
  html body main{
    /* The existing desktop grid already reserves the 300px sidebar column. */
    margin-left:0!important;
    min-height:100dvh!important;
    padding:116px 34px 42px!important;
  }
  html body main>header{
    position:fixed!important;
    /* Fixed relative to the main content column, not a second sidebar offset. */
    inset:0 0 auto 0!important;
    width:auto!important;
    margin:0!important;
    z-index:90!important;
  }
  html body .header-popover{z-index:110!important;}
}
