.global-user-header {
    position: sticky;
    top: 0;
    z-index: 35;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    min-height: 64px;
    padding: 10px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}
.notification-bell, .notification-close {
    display: grid;
    place-items: center;
    position: relative;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--ink);
    background: var(--panel);
    cursor: pointer;
}
.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 19px;
    padding: 1px 4px;
    border-radius: 10px;
    background: var(--atlas-gold);
    color: #17202a;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}
.notification-count[hidden] { display: none; }
.atlas-header-brand { display: grid; gap: 2px; margin-right: auto; color: var(--ink); min-width: 0; }
.atlas-header-brand strong { font-family: var(--valcrena-font-display); font-size: 26px; line-height: 1; }
.atlas-header-brand small { color: var(--muted); font-size: 11px; }
.atlas-header-brand:hover { text-decoration: none; }
.global-search { flex: 0 1 340px; min-width: 0; }
.global-search input { width: 100%; min-width: 0; }
.global-user-menu { position: relative; min-width: 0; max-width: min(440px, 75%); }
.global-user-menu summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.global-user-menu summary::-webkit-details-marker { display: none; }
.global-user-menu summary strong { min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.global-user-menu .avatar { background: var(--panel); border: 1px solid var(--line); color: var(--ink); }
.global-user-menu .avatar img { width: 100%; height: 100%; object-fit: cover; }
.global-user-actions { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 40px)); padding: 8px; display: grid; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.global-user-identity { padding: 10px; display: grid; gap: 4px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.global-user-identity small { color: var(--muted); }
.global-user-actions a, .global-user-actions button { display: block; padding: 10px; width: 100%; text-align: left; color: var(--ink); border: 0; background: transparent; font: inherit; cursor: pointer; }
.global-user-actions a:hover, .global-user-actions button:hover { background: var(--surface-soft); text-decoration: none; }
.global-user-actions form { margin: 0; border-top: 1px solid var(--line); }
.notification-drawer { position: fixed; inset: 0 0 0 auto; width: min(440px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; border-left: 1px solid var(--line); color: var(--ink); background: var(--panel); }
.notification-drawer[open] { display: flex; flex-direction: column; }
.notification-drawer::backdrop { background: rgb(0 0 0 / 25%); }
.notification-drawer > header, .notification-drawer > footer { padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.notification-drawer h2 { font-size: 18px; margin: 0; }
.notification-drawer > footer { border-top: 1px solid var(--line); border-bottom: 0; }
.notification-items { flex: 1; overflow-y: auto; }
.notification-row { display: grid; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; overflow-wrap: anywhere; }
.notification-row.unread { border-left-color: var(--atlas-gold); background: var(--surface-soft); }
.notification-row h2, .notification-row h3 { font-size: 14px; margin: 0; }
.notification-row p { font-size: 13px; margin: 6px 0; }
.notification-row small { color: var(--muted); }
.notification-items > p { margin: 24px; }
.notification-close { font-size: 24px; }
@media (max-width: 980px) { .global-user-header { top: 64px; margin-bottom: 18px; } }
@media (max-width: 560px) {
    .global-user-header { gap: 10px; }
    .atlas-header-brand { flex: 0 0 auto; }
    .atlas-header-brand strong { font-size: 20px; }
    .atlas-header-brand small { display: none; }
    .global-search { flex: 1 1 auto; }
    .global-user-menu { flex: 0 0 auto; max-width: none; }
    .global-user-menu summary { gap: 6px; }
    .global-user-menu summary strong { display: none; }
}
