#siteHeader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 72px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    transition: border-color 150ms var(--ease-standard);
}

#siteHeader.is-scrolled {
    border-bottom-color: var(--border-strong);
}

.site-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0.75rem 1.5rem 0.75rem 0;
    margin-right: 0.5rem;
}

.site-header__nav {
    display: flex;
    align-items: stretch;
    height: 100%;
    gap: 0;
    margin-left: auto;
}

.site-header__nav-link {
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding: 0 0.85rem;
    border-bottom: 2px solid transparent;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.16px;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-interactive);
}

.site-header__nav-link:hover {
    color: var(--text);
    background: var(--bg);
    text-decoration: none;
}

.site-header__nav-link.active {
    color: var(--text);
    font-weight: 600;
    border-bottom-color: var(--accent);
}

.nav-dropdown { position: relative; display: flex; align-items: stretch; }

.nav-dropdown__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-dropdown__chevron {
    width: 14px;
    height: 14px;
    transition: transform 150ms var(--ease-standard);
    flex-shrink: 0;
}

.nav-dropdown--open .nav-dropdown__chevron { transform: rotate(180deg); }

.nav-dropdown__menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--elevation-overlay);
    padding: 0.4rem 0;
    z-index: 200;
}

.nav-dropdown--open .nav-dropdown__menu { display: block; }

.nav-dropdown__user {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0.5rem 1rem 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-mono);
}

.nav-dropdown__item {
    display: block;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition-interactive);
}

.nav-dropdown__item:hover { background: var(--bg); text-decoration: none; }

.nav-dropdown__item--danger { color: var(--error); }
.nav-dropdown__item--danger:hover { background: var(--error-bg); }

.nav-dropdown__sep {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0.3rem 0;
}

/* ── Notification bell ───────────────────────────────────────────────────── */

.notif-trigger {
    position: relative;
    padding: 0 1rem;
}

.notif-trigger svg {
    width: 20px;
    height: 20px;
}

.notif-badge[hidden] { display: none; }

.notif-badge {
    position: absolute;
    top: 10px;
    right: 6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--error);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    font-family: var(--font-mono);
    border: 2px solid var(--surface);
}

.nav-dropdown__menu--wide {
    min-width: 340px;
    max-width: 400px;
    max-height: 420px;
    overflow-y: auto;
    padding: 0;
}

.nav-dropdown__label {
    padding: 0.85rem 1rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.32px;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.notif-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: var(--transition-interactive);
}

.notif-item:last-child { border-bottom: none; }

.notif-item:hover { background: var(--bg); text-decoration: none; }

.notif-item__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.notif-item__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.notif-item__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 0.35rem;
    background: var(--accent);
    color: var(--accent-text);
    font-size: 0.68rem;
    font-weight: 700;
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.notif-item__meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.notif-item__preview {
    font-size: 0.8rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notif-item__time {
    font-size: 0.68rem;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    margin-top: 0.1rem;
}

.notif-empty {
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}
