.staff-page-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
}

:root[data-theme="dark"] .staff-page-header {
    background: rgba(15, 23, 42, 0.88);
}

.staff-page-header-inner {
    width: calc(100% - 32px);
    max-width: none;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    position: relative;
    min-height: 56px;
}

.staff-page-header-inner.staff-page-header-utility-only {
    min-height: 48px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.staff-page-header-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.staff-page-header-brand img {
    display: block;
    height: 26px;
    width: auto;
}

.staff-page-header-inner.has-staff-nav-trigger {
    position: relative;
    padding-left: 112px;
}

.staff-page-header-session {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
    position: relative;
    z-index: 1;
}

.staff-header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: var(--surface-card-muted);
    flex: 0 0 auto;
}

.staff-header-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-session-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    background: var(--surface-card-muted);
    color: var(--text-secondary);
}

.staff-page-theme-control {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.staff-page-theme-control select {
    min-height: 32px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    background: var(--surface-card-muted);
    padding: 0 8px;
}

:root[data-theme="dark"] .staff-page-theme-control select {
    color: #f8fafc;
    color-scheme: dark;
}

.staff-page-header-extra {
    display: flex;
    align-items: center;
    gap: 10px;
}

.staff-page-hidden {
    display: none !important;
}

.has-staff-fixed-header {
    padding-top: 60px;
}

@media (max-width: 900px) {
    .staff-page-header-inner,
    .staff-page-header-session {
        display: grid;
    }

    .staff-page-header-inner.has-staff-nav-trigger {
        padding-left: 64px;
    }

    .staff-page-header-session,
    .staff-page-header-extra {
        justify-content: stretch;
    }

    .has-staff-fixed-header {
        padding-top: 68px;
    }
}
