/* App switcher: the brand opens a menu of the apps the person may use. The sidebar is dark in both themes, so is the menu. */
.app-switcher { position: relative; min-width: 0; }

.app-switcher-btn {
    background: none;
    border: 0;
    font: inherit;
    font-weight: 800;
    color: #F4F5F6;
    cursor: pointer;
    text-align: left;
    max-width: 100%;
}
.app-switcher-btn:hover .app-switcher-caret { border-color: #F4F5F6; }
.app-switcher-btn:focus-visible { outline: 0; box-shadow: var(--focus-ring); border-radius: var(--radius); }

.app-switcher-caret {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    margin: 0 0 3px 0.15rem;
    border-right: 2px solid rgba(237, 238, 240, 0.5);
    border-bottom: 2px solid rgba(237, 238, 240, 0.5);
    transform: rotate(45deg);
    transition: transform var(--speed);
}
.app-switcher-btn[aria-expanded="true"] .app-switcher-caret { transform: rotate(225deg); margin-bottom: 0; }

.app-menu {
    position: fixed;
    z-index: 2000;
    min-width: 230px;
    max-width: calc(100vw - 16px);
    padding: 0.4rem;
    background: #1A1D20;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: var(--modal-shadow);
}
.app-menu[hidden] { display: none; }

.app-menu-label {
    padding: 0.35rem 0.6rem 0.4rem;
    font: 700 0.68rem var(--sans);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(237, 238, 240, 0.5);
}

.app-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0.6rem;
    border-radius: var(--radius);
    color: #EDEEF0;
    font: 600 0.875rem var(--sans);
    text-decoration: none;
    white-space: nowrap;
}
.app-menu-item:hover, .app-menu-item:focus-visible { background: rgba(255, 255, 255, 0.08); outline: 0; }
.app-menu-item.current { color: var(--amber); }
.app-menu-here { font: 700 0.68rem var(--sans); letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; }
.app-menu-sep { height: 1px; margin: 0.35rem 0.3rem; background: rgba(255, 255, 255, 0.1); }
