/* Keep the cabinet rail below the shared desktop sticky header. */
@media (min-width: 701px) {
  .public-layout:has(.full-cabinet) {
    /* Existing desktop header inner height + its two borders + cabinet gap. */
    --cabinet-rail-top: calc(var(--site-header-inset) + 67px + 2px + 26px);
  }
  .full-cabinet .workspace-console > .workspace-rail {
    position: sticky;
    top: var(--cabinet-rail-top);
    align-self: start;
    min-height: 0;
    max-height: calc(100dvh - var(--cabinet-rail-top) - var(--site-header-inset));
    overflow-y: auto;
    scroll-padding-block: 12px;
  }
}
