/* Existing functions remain available from their logical V3 entry page.
   The sidebar uses two independent regions: scrolling work navigation and fixed utilities. */
.sidebar#sidebar{display:flex;flex-direction:column;overflow-x:hidden;overflow-y:hidden}
.sidebar#sidebar .brand{flex:0 0 auto}
.sidebar#sidebar .primary-nav#workspace-primary-nav{
  flex:1 1 auto;overflow-x:hidden;overflow-y:auto;min-height:0;
  scrollbar-width:thin;scrollbar-color:#64736b transparent;
  overscroll-behavior:contain;padding-bottom:9px}
.sidebar#sidebar .sidebar-bottom{
  flex:0 0 auto;margin-top:auto;max-height:min(42dvh,310px);
  overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
  border-top:1px solid #ffffff28}
@media(max-width:820px){
  .sidebar#sidebar .primary-nav#workspace-primary-nav{max-height:none;overflow-y:auto}
  .sidebar#sidebar .sidebar-bottom{max-height:min(43dvh,285px)}
}
