/* Keep the brand, search and quick actions on one row at every width. */
header .top-bar > .top-bar-row {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
header .top-bar .repo-identity {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 220px;
  gap: 10px;
}
header .top-bar .portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
  color: #1b4773;
  text-decoration: none;
}
header .top-bar .portal-brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
header .top-bar .brand-logo {
  display: block;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
}
/* A vector version of the brand's two square frames stays sharp at any scale. */
header .top-bar .brand-logo svg {
  display: block;
  width: 100%;
  height: 100%;
}
header .top-bar .repo-breadcrumb {
  flex-wrap: nowrap;
  white-space: nowrap;
  color: inherit;
  font-size: 19px;
  line-height: 1.25;
}
header .top-bar .repo-owner {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
header .top-bar .portal-brand__version {
  display: inline-block;
  margin-left: 3px;
  padding: 3px 5px;
  border-radius: 6px;
  background: #eaf2f8;
  color: #285f92;
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums;
}
header .top-bar .portal-brand:hover {
  color: #285f92;
}
header .top-bar .portal-brand:hover .portal-brand__version {
  background: #e0edf7;
}
header .top-bar .repo-section {
  display: block;
  box-sizing: border-box;
  max-width: 165px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #728197;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
header .top-bar .global-search {
  flex: 0 1 340px;
  min-width: 170px;
}
header .top-bar .global-search input {
  min-width: 0;
  width: 100%;
}
header .top-bar .company-switcher-bar {
  flex: 0 1 240px;
  min-width: 0;
  width: auto;
  margin-left: 0;
}
header .top-bar .company-switcher,
header .top-bar .company-switcher__toggle-label {
  min-width: 0;
}
header .top-bar .company-switcher__name {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
header .top-bar .company-switcher .admin-dropdown__menu .company-switcher__name {
  max-width: none;
  white-space: normal;
}
header .top-bar .portal-switcher {
  flex: 0 1 170px;
  min-width: 0;
  width: auto;
  margin-left: 0;
}
header .top-bar .portal-switcher .admin-dropdown__toggle {
  min-width: 0;
}
header .top-bar .portal-switcher__label {
  min-width: 0;
}
header .top-bar .portal-switcher__value {
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
header .top-bar .portal-online,
header .top-bar .staff-workday-toggle {
  flex: 0 0 auto;
  align-self: center;
}
header .top-bar .top-bar-actions {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  flex-wrap: nowrap;
  justify-content: flex-start;
  justify-content: safe flex-end;
  overflow-x: auto;
  overflow-y: hidden;
  min-height: 48px;
  padding: 7px 3px 8px;
  gap: 5px;
  scrollbar-width: thin;
  scrollbar-color: #ced8e3 transparent;
  overscroll-behavior-x: contain;
}
header .top-bar .top-bar-actions .icon-button--task-notifications {
  width: auto;
  padding: 0 10px;
  gap: 6px;
}
header .top-bar .top-bar-actions > * {
  flex-shrink: 0;
}
header .top-bar .top-bar-actions::-webkit-scrollbar,
header #primary-navigation::-webkit-scrollbar {
  height: 4px;
}
header .top-bar .top-bar-actions::-webkit-scrollbar-thumb,
header #primary-navigation::-webkit-scrollbar-thumb {
  background: #ced8e3;
  border-radius: 4px;
}
header #primary-navigation {
  flex-direction: row;
  flex-wrap: nowrap;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #ced8e3 transparent;
  overscroll-behavior-x: contain;
}
header #primary-navigation .tab-link {
  box-sizing: border-box;
}
header #primary-navigation .tab-nav-row,
header #primary-navigation .tab-link {
  flex: 0 0 auto;
  flex-wrap: nowrap;
}
header #primary-navigation:focus-visible,
header .top-bar .portal-brand:focus-visible {
  outline: 2px solid #285376;
  outline-offset: 2px;
}
@media (max-width: 1500px) {
  header .top-bar .global-search {
    flex-basis: 240px;
  }
  header .top-bar .top-bar-actions {
    justify-content: flex-start;
  }
  header .top-bar .profile-name {
    display: none;
  }
}
@media (max-width: 1024px) {
  header .top-bar {
    padding-bottom: 10px;
  }
  header .top-bar .repo-identity {
    max-width: 200px;
  }
  header .top-bar .top-bar-actions {
    min-height: 48px;
    gap: 5px;
  }
  header .top-bar .company-switcher .admin-dropdown__menu,
  header .top-bar .portal-switcher .admin-dropdown__menu {
    position: fixed;
    top: var(--mobile-header-height, 72px);
    left: 12px;
    right: auto;
    box-sizing: border-box;
    min-width: 0;
    width: calc(100vw - 48px);
    max-width: 360px;
    max-height: calc(100dvh - 170px);
    overflow-y: auto;
    margin-top: 0;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
  }
  header .top-bar .admin-dropdown--manage-mobile {
    display: none;
  }
}
@media (max-width: 768px) {
  header .top-bar > .top-bar-row {
    gap: 8px;
  }
  header .top-bar .brand-logo {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }
  header .top-bar .repo-identity {
    gap: 7px;
  }
  header .top-bar .portal-brand {
    gap: 7px;
  }
  header .top-bar .repo-breadcrumb {
    font-size: 16px;
  }
  header .top-bar .repo-section {
    display: none;
  }
  header .top-bar .company-switcher-bar,
  header .top-bar .portal-switcher {
    flex: 0 0 36px;
    width: 36px;
  }
  header .top-bar .company-switcher .admin-dropdown__toggle,
  header .top-bar .portal-switcher .admin-dropdown__toggle,
  header .top-bar .company-switcher__static {
    box-sizing: border-box;
    width: 36px;
    min-width: 0;
    height: 36px;
    padding: 0;
    justify-content: center;
  }
  header .top-bar .company-switcher__toggle-label,
  header .top-bar .portal-switcher__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  header .top-bar .company-switcher .admin-dropdown__chevron,
  header .top-bar .portal-switcher .admin-dropdown__chevron {
    display: none;
  }
  header .top-bar .top-bar-actions .icon-button--task-notifications {
    width: 46px;
    padding: 0;
  }
  header .top-bar .portal-online {
    padding: 7px 8px;
  }
  header .top-bar .portal-online span {
    display: none;
  }
  header .top-bar .staff-workday-toggle {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
  }
  header .top-bar .staff-workday-toggle > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
