/*
 * nav.css — Shared navigation bar for Ray pages.
 *
 * The bar is injected by /s/nav.js (RayNav.init) as a
 * <header id="rayNav"> element containing:
 *   - optional left-side prepend element (e.g. index.html's sidebar toggle)
 *   - <div class="nav-links"> with nav pill links
 *   - <div class="spacer">
 *   - <div class="user-info"> with avatar, name, settings, sign-out
 *
 * Individual .nav-link pill styling lives in common.css.
 * Toolbar button base styling (.btn-toolbar) also lives in common.css.
 */

header#rayNav {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

header#rayNav .nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
}

header#rayNav .spacer {
    flex: 1;
}

header#rayNav .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8125rem;
}

header#rayNav .user-info .user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.6875rem;
    font-weight: 600;
    overflow: hidden;
    flex-shrink: 0;
}

header#rayNav .user-info .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

header#rayNav .user-info .user-name {
    color: var(--text-secondary);
    white-space: nowrap;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

header#rayNav .settings-btn svg,
header#rayNav .logout-btn svg,
header#rayNav .help-btn svg {
    width: 14px;
    height: 14px;
}

header#rayNav.hidden {
    display: none;
}

/*
 * Help ("?") button — rendered only on web (not in the macOS desktop shell),
 * at the end of the nav-links row.
 */
.nav-links .help-btn.nav-help-btn {
    margin-left: 4px;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.nav-links .help-btn.nav-help-btn svg {
    width: 14px;
    height: 14px;
}
