/* Preserve child IDs used by existing tools while folding the whole group. */
.pro-sidebar #nav-website-work-group.sg-closed > div { display:none; }
[data-sidebar="compact"] .pro-sidebar #nav-website-work-group.sg-closed > div { display:block; }
@media (max-width:1100px), (max-width:1366px) and (hover:none) and (pointer:coarse) {
  .pro-sidebar #nav-website-work-group.sg-closed > div,
  [data-sidebar="compact"] .pro-sidebar #nav-website-work-group.sg-closed > div { display:none; }
}
.pro-shell .nav-drawer .pro-sidebar .top-links{align-items:stretch;width:100%;margin-inline:0}
.pro-shell .nav-drawer .pro-sidebar .top-links a{justify-content:flex-start;width:100%;text-align:left}

/* Shared desktop glass lives on the header, above both scroll containers.
   Desktop only; retain the separate phone/Fold/coarse-touch glass controls. */
@media (width > 1366px),
       (width > 1100px) and (hover: hover),
       (width > 1100px) and (pointer: fine) {
  /* Keep the strips' zero net layout height; a single backdrop surface avoids
     nested backdrop roots that leave the scrolling sidebar text unfiltered. */
  .pro-shell .hdr-glass {
    visibility: hidden;
  }
  .pro-shell .pro-topbar,
  .cabinet-shell.signed-in .pro-topbar {
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--l);
  }
  .pro-shell .pro-topbar::before {
    display: none;
  }

  /* Unchanged v1 spacing fix. */
  :root:not([data-sidebar="compact"]) .pro-shell
    #pro-sidebar:has(> .side-guest) > #sidebar-navigation {
    padding-bottom: 0;
    margin-bottom: 20px;
  }

  :root:not([data-sidebar="compact"]) .pro-shell
    #pro-sidebar > #sidebar-navigation + .side-guest {
    margin-top: auto;
  }
}
