body.tr-workspace-design .app-shell .topbar .desktop-nav.desktop-nav {
  align-items: center;
  flex-wrap: wrap !important;
  gap: 7px !important;
  padding-block: 5px 8px !important;
}

body.tr-workspace-design :is(.app-shell .topbar .desktop-nav.desktop-nav, .mobile-nav-popover .mobile-bottom-nav.mobile-nav-menu) > button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px !important;
  min-height: 44px !important;
  padding: 8px 11px !important;
  border: 1px solid #d6e1ef !important;
  border-radius: 9px !important;
  background: #f8fafd !important;
  box-shadow: 0 1px 2px #102c4d0a !important;
  color: #304968 !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    color 140ms ease,
    border-color 140ms ease,
    background-color 140ms ease,
    transform 150ms cubic-bezier(.2,.75,.3,1) !important;
}

body.tr-workspace-design :is(.app-shell .topbar .desktop-nav.desktop-nav, .mobile-nav-popover .mobile-bottom-nav.mobile-nav-menu) > button::before {
  content: '' !important;
  position: absolute;
  z-index: -1;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  border-radius: inherit;
  background: linear-gradient(145deg, #2360bb, #133c80) !important;
  opacity: 0;
  transform: scale(.95) !important;
  transition: opacity 150ms ease, transform 175ms cubic-bezier(.2,.75,.3,1) !important;
  pointer-events: none;
}

body.tr-workspace-design :is(.app-shell .topbar .desktop-nav.desktop-nav, .mobile-nav-popover .mobile-bottom-nav.mobile-nav-menu) > button::after {
  content: none !important;
}

body.tr-workspace-design :is(.app-shell .topbar .desktop-nav.desktop-nav, .mobile-nav-popover .mobile-bottom-nav.mobile-nav-menu) > button[aria-current='page'] {
  border-color: #19488f !important;
  box-shadow: 0 2px 5px #18478333 !important;
  color: #fff !important;
}

body.tr-workspace-design :is(.app-shell .topbar .desktop-nav.desktop-nav, .mobile-nav-popover .mobile-bottom-nav.mobile-nav-menu) > button[aria-current='page']::before {
  opacity: 1;
  transform: scale(1) !important;
}

body.tr-workspace-design :is(.app-shell .topbar .desktop-nav.desktop-nav, .mobile-nav-popover .mobile-bottom-nav.mobile-nav-menu) > button > span {
  color: inherit !important;
  font-size: 13px !important;
  font-weight: 550 !important;
  line-height: 1.2;
}

body.tr-workspace-design :is(.app-shell .topbar .desktop-nav.desktop-nav, .mobile-nav-popover .mobile-bottom-nav.mobile-nav-menu) > button > .nav-icon {
  display: block !important;
  flex: 0 0 16px !important;
  width: 16px !important;
  height: 16px !important;
  color: inherit !important;
}

body.tr-workspace-design :is(.app-shell .topbar .desktop-nav.desktop-nav, .mobile-nav-popover .mobile-bottom-nav.mobile-nav-menu) > button:active {
  transform: scale(.97) !important;
}

body.tr-workspace-design :is(.app-shell .topbar .desktop-nav.desktop-nav, .mobile-nav-popover .mobile-bottom-nav.mobile-nav-menu) > button:focus-visible {
  outline: 2px solid #2462b9 !important;
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  body.tr-workspace-design :is(.app-shell .topbar .desktop-nav.desktop-nav, .mobile-nav-popover .mobile-bottom-nav.mobile-nav-menu) > button:not([aria-current='page']):hover {
    border-color: #a9c4e8 !important;
    background-color: #edf4ff !important;
    color: #174b92 !important;
  }
}

@media (max-width: 1200px) {
  body.tr-workspace-design .app-shell .topbar .desktop-nav.desktop-nav {
    gap: 5px !important;
  }

  body.tr-workspace-design .app-shell .topbar .desktop-nav.desktop-nav > button {
    padding-inline: 8px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.tr-workspace-design :is(.app-shell .topbar .desktop-nav.desktop-nav, .mobile-nav-popover .mobile-bottom-nav.mobile-nav-menu) > button,
  body.tr-workspace-design :is(.app-shell .topbar .desktop-nav.desktop-nav, .mobile-nav-popover .mobile-bottom-nav.mobile-nav-menu) > button::before {
    transition: none !important;
    transform: none !important;
  }
}

@media (forced-colors: active) {
  body.tr-workspace-design :is(.app-shell .topbar .desktop-nav.desktop-nav, .mobile-nav-popover .mobile-bottom-nav.mobile-nav-menu) > button[aria-current='page'] {
    border-color: Highlight !important;
    color: LinkText !important;
    text-decoration: underline;
  }
}
