@media (min-width: 901px) {
  .top-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0 !important;
    width: max-content !important;
    max-width: 100% !important;
    white-space: nowrap !important;
  }

  .top-nav-link,
  .top-nav-link:first-child,
  .top-nav-link:last-child {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    min-height: 0 !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-right: 1px solid rgba(50, 44, 38, 0.18) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
    font-size: clamp(0.78rem, 0.82vw, 0.92rem) !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  .top-nav-link:last-child {
    padding-right: 0 !important;
    border-right: 0 !important;
  }

  .top-nav-link:hover,
  .top-nav-link.is-current {
    color: var(--accent, #c96a3d) !important;
  }

  .top-nav-link.is-current {
    font-weight: 700 !important;
  }

  .header-actions .top-nav,
  .desktop-support-stack .top-nav {
    justify-self: end !important;
  }

  .workspace-tier-switcher,
  .primary-switcher.workspace-tier-switcher,
  .value-tier-switcher.workspace-tier-switcher {
    width: 128px !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 5px !important;
    border: 1px solid rgba(56, 47, 40, 0.1) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.78) !important;
    box-shadow: inset 0 1px 2px rgba(50, 39, 28, 0.05), 0 10px 22px rgba(50, 39, 28, 0.08) !important;
    overflow: hidden !important;
    position: relative !important;
  }

  .workspace-tier-switcher::before,
  .primary-switcher.workspace-tier-switcher::before,
  .value-tier-switcher.workspace-tier-switcher::before {
    content: "" !important;
    position: absolute !important;
    z-index: 0 !important;
    left: 5px !important;
    top: 5px !important;
    bottom: 5px !important;
    width: calc(50% - 5px) !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #e08952, #bf5a31) !important;
    box-shadow: 0 8px 18px rgba(201, 106, 61, 0.22) !important;
    transform: translateX(0) !important;
    transition: transform 220ms ease !important;
  }

  .workspace-tier-switcher:has([data-analysis-mode="advanced"].active)::before,
  .primary-switcher.workspace-tier-switcher:has([data-analysis-mode="advanced"].active)::before,
  .value-tier-switcher.workspace-tier-switcher:has([data-value-tier="pro"].active)::before {
    transform: translateX(100%) !important;
  }

  .workspace-tier-switcher .tab-button,
  .primary-switcher.workspace-tier-switcher .tab-button,
  .value-tier-switcher.workspace-tier-switcher .tab-button {
    position: relative !important;
    z-index: 1 !important;
    min-height: 30px !important;
    padding: 6px 8px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: rgba(31, 28, 24, 0.82) !important;
    font-size: 0.7rem !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    transform: none !important;
  }

  .workspace-tier-switcher .tab-button.active,
  .primary-switcher.workspace-tier-switcher .tab-button.active,
  .value-tier-switcher.workspace-tier-switcher .tab-button.active {
    color: #fffaf4 !important;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .top-nav-link,
  .top-nav-link:first-child,
  .top-nav-link:last-child {
    padding: 0 8px !important;
    font-size: 0.78rem !important;
  }
}
