{$t.common?.brand}
{#if showSearchDropdown}
{#if isSearchLoading}
{$t.common?.loading || "Loading..."}
{:else if groupedSearchResults.length === 0}
{$t.common?.not_found || "No results found"}
{:else} {#each groupedSearchResults as section}
{section.label}
{#each section.items as result} {/each}
{/each} {/if}
{/if}
{#if globalEnvironments.length > 0}
{/if}
(e.key === "Enter" || e.key === " ") && handleActivityClick()} role="button" tabindex="0" aria-label={$t.common?.activity} > {#if activeCount > 0} {activeCount} {/if}
(e.key === "Enter" || e.key === " ") && toggleUserMenu(e)} role="button" tabindex="0" aria-label={$t.common?.user_menu} > {#if user} {user.username ? user.username.charAt(0).toUpperCase() : "U"} {:else} U {/if}
{user?.username || $t.common?.user}
{#if canOpenSettings}
{ window.location.href = ROUTES.settings.general(); }} onkeydown={(e) => (e.key === "Enter" || e.key === " ") && (window.location.href = ROUTES.settings.general())} role="button" tabindex="0" > {$t.nav?.settings}
{/if}
(e.key === "Enter" || e.key === " ") && handleLogout()} role="button" tabindex="0" > {$t.common?.logout}