@use "@/common/styles/colors" @use "@/common/styles/breakpoints" .topnav flex-shrink: 0 border-bottom: 1px solid colors.$border background-color: colors.$background position: sticky top: 0 z-index: 40 .topnav-inner max-width: 68rem margin: 0 auto height: 3.5rem padding: 0 2rem display: flex align-items: center gap: 2rem @media (max-width: breakpoints.$mobile) padding: 0 1rem gap: 1rem .topnav-brand display: flex align-items: center gap: 0.5rem cursor: pointer user-select: none flex-shrink: 0 span font-size: 1rem font-weight: 700 letter-spacing: -0.02em @media (max-width: breakpoints.$mobile) span display: none .topnav-links display: flex align-items: center gap: 0.25rem flex: 1 min-width: 0 overflow-x: auto scrollbar-width: none &::-webkit-scrollbar display: none .topnav-link display: flex align-items: center gap: 0.45rem padding: 0.375rem 0.75rem border-radius: 0.625rem color: colors.$muted font-size: 0.875rem font-weight: 500 white-space: nowrap transition: color 0.15s ease, background-color 0.15s ease &:hover color: colors.$text &.active color: colors.$text background-color: colors.$surface-hover .topnav-account position: relative flex-shrink: 0 .topnav-user display: flex align-items: center gap: 0.5rem background: none border: none border-radius: 0.625rem padding: 0.3rem 0.5rem 0.3rem 0.3rem color: colors.$subtext font-family: inherit font-size: 0.875rem font-weight: 500 cursor: pointer transition: background-color 0.15s ease, color 0.15s ease svg width: 1rem height: 1rem color: colors.$muted &:hover, &.open background-color: colors.$surface-hover color: colors.$text @media (max-width: breakpoints.$mobile) .topnav-username display: none .topnav-avatar display: flex align-items: center justify-content: center width: 1.625rem height: 1.625rem flex-shrink: 0 border-radius: 0.5rem background-color: colors.$primary-tint color: colors.$primary font-size: 0.75rem font-weight: 700 .topnav-menu position: absolute top: calc(100% + 0.5rem) right: 0 min-width: 11rem background-color: colors.$surface-raised border: 1px solid colors.$border-strong border-radius: 0.75rem padding: 0.25rem box-shadow: colors.$shadow-lg z-index: 50 .topnav-menu-item display: flex align-items: center gap: 0.625rem width: 100% background: none border: none border-radius: 0.5rem padding: 0.5rem 0.625rem color: colors.$subtext font-family: inherit font-size: 0.875rem font-weight: 500 text-align: left cursor: pointer svg width: 1rem height: 1rem &:hover background-color: colors.$surface-hover color: colors.$text &.danger:hover background-color: colors.$error-tint color: colors.$error .topnav-menu-divider height: 1px background-color: colors.$border margin: 0.25rem 0