/*
 * Header — logo, notifications bell, user, log out. Collapses at ≤640px
 * to logo + bell + avatar + icon-only log out.
 */
.header {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    height: var(--header-h);
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.header__brand { display: flex; align-items: center; min-width: 0; }
.header__logo  {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-weight: 600;
    color: var(--color-text);
    border-radius: var(--radius);
}
.header__logo:hover { color: var(--color-text); }
.header__name  { font-size: var(--fs-md); white-space: nowrap; }

.header__tools { display: flex; align-items: center; gap: var(--sp-2); flex-shrink: 0; }
.header__user  { display: inline-flex; align-items: center; gap: var(--sp-2); min-width: 0; }
.header__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-primary-soft);
    color: var(--color-primary-hi);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
}
.header__userlabel {
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 16ch;
}
.header__logout { display: inline-flex; }

@media (max-width: 640px) {
    .header__userlabel,
    .header__logout-label { display: none; }
}
