/* Staff desktop navigation: share the available height between all visible links.
   Retain the existing scrollable drawer on mobile/short or zoomed viewports. */
@media (min-width: 1024px) and (min-height: 700px) {
  #root#root#root .lms-staff-sidebar > :first-child {
    height: 64px;
    min-height: 64px;
    flex-shrink: 0;
    padding-inline: 18px;
  }

  #root#root#root .lms-staff-sidebar > nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 0;
    padding: 10px 12px;
    overflow: visible;
  }

  #root#root#root .lms-staff-sidebar > nav > * {
    margin-block: 0;
  }

  /* Keep resource links in the same height distribution as the main menu. */
  #root#root#root .lms-staff-sidebar > nav > div {
    display: contents;
  }

  #root#root#root .lms-staff-sidebar nav :is(a, button) {
    flex: 1 1 auto;
    min-height: 24px;
    max-height: 40px;
    padding-block: 3px;
    padding-inline: 12px;
    gap: 10px;
    font-size: 13px;
    line-height: 1.25;
  }

  #root#root#root .lms-staff-sidebar nav :is(a, button) > svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  #root#root#root .lms-staff-sidebar nav > div > p {
    flex: 0 0 auto;
    margin: 6px 0 2px;
    padding: 8px 12px 2px;
    border-top: 1px solid #ffffff1a;
    font-size: 10px;
    line-height: 14px;
  }

  #root#root#root .lms-staff-sidebar > :last-child {
    flex-shrink: 0;
    padding: 10px 12px;
  }

  #root#root#root .lms-staff-sidebar > :last-child > a {
    margin-bottom: 6px;
    padding: 4px 8px;
  }

  #root#root#root .lms-staff-sidebar > :last-child > a :is(img, .w-10) {
    width: 32px;
    height: 32px;
  }

  #root#root#root .lms-staff-sidebar > :last-child > button {
    min-height: 32px;
    padding-block: 5px;
    font-size: 13px;
  }
}
