.topbar-profile-trigger,
.topbar-profile-trigger:hover,
.topbar-profile-trigger:focus-visible {
    opacity: 1 !important;
    filter: none !important;
    background: var(--zn-member-bg-app) !important;
}

.topbar-profile-trigger .topbar-profile-image,
.topbar-profile-trigger .topbar-profile-fallback {
    opacity: 1 !important;
    filter: none !important;
    background-color: var(--zn-member-bg-app);
}

.messages-brand-row {
    position: relative;
}

.user-profile-menu.profile-menu-hidden-trigger {
    position: absolute;
    top: calc(100% + 10px);
    right: auto;
    left: 0;
    z-index: 24;
    width: 0;
    height: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.user-profile-menu .user-profile-menu-panel {
    position: absolute;
    top: 0;
    right: auto;
    left: 0;
    z-index: 1;
    width: min(390px, calc(100vw - 24px));
    max-height: min(700px, calc(100dvh - 24px));
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    overflow: auto;
    border: 1px solid var(--zn-member-border);
    border-radius: 16px;
    opacity: 1 !important;
    background: var(--zn-member-bg-app) !important;
    box-shadow: var(--zn-member-shadow);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.user-profile-menu [hidden] {
    display: none !important;
}

.user-profile-menu[data-profile-menu-active-view="menu"] .user-profile-menu-panel {
    width: min(320px, calc(100vw - 24px));
    overflow: hidden;
}

.user-profile-menu .profile-menu-view {
    min-width: 0;
}

.user-profile-menu .profile-menu-main,
.user-profile-menu .profile-menu-detail-view {
    display: grid;
    gap: 12px;
}

.user-profile-menu .profile-menu-main {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.user-profile-menu .profile-menu-main .profile-menu-header {
    padding: 2px 4px 12px;
    border-bottom: 1px solid var(--zn-member-border-soft);
}

.user-profile-menu .profile-menu-main .mini-profile-copy {
    max-width: none;
}

.user-profile-menu .profile-menu-list {
    display: grid;
    gap: 2px;
}

.user-profile-menu .profile-menu-item {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
    color: var(--zn-member-text-primary);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 620;
    text-align: left;
    background: transparent;
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease;
}

.user-profile-menu .profile-menu-item:hover,
.user-profile-menu .profile-menu-item:focus-visible {
    color: var(--zn-member-text-primary);
    background: var(--zn-member-bg-surface-hover);
}

.user-profile-menu .profile-menu-item:focus-visible,
.user-profile-menu .profile-menu-back:focus-visible {
    outline: 2px solid var(--zn-member-accent);
    outline-offset: 1px;
}

.user-profile-menu .profile-menu-item-leading {
    position: relative;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: var(--zn-member-text-secondary);
    background: var(--zn-member-bg-surface-faint);
}

.user-profile-menu .profile-menu-item-icon {
    width: 18px;
    height: 18px;
}

.user-profile-menu .profile-menu-item-label {
    min-width: 0;
    flex: 1 1 auto;
}

.user-profile-menu .profile-menu-item-chevron,
.user-profile-menu .profile-form-disclosure > summary::after {
    flex: 0 0 auto;
    color: var(--zn-member-text-muted);
    font-size: 1.1rem;
    line-height: 1;
}

.user-profile-menu .profile-menu-notification-item {
    width: 100%;
    justify-self: stretch;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.user-profile-menu .profile-menu-notification-item .notification-mobile-setup {
    width: 100%;
}

body[class*="user-body-"] .user-profile-menu .profile-menu-notification-item .notification-enable-button {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 48px;
    justify-content: flex-start;
    gap: 12px;
    padding: 8px 10px;
    border: 0 !important;
    border-radius: 10px;
    color: var(--zn-member-text-primary) !important;
    background: transparent !important;
}

body[class*="user-body-"] .user-profile-menu .profile-menu-notification-item .notification-enable-button:hover,
body[class*="user-body-"] .user-profile-menu .profile-menu-notification-item .notification-enable-button:focus-visible {
    color: var(--zn-member-text-primary) !important;
    background: var(--zn-member-bg-surface-hover) !important;
}

.user-profile-menu .profile-menu-notification-item .notification-bell-dot {
    top: 6px;
    right: 5px;
}

.user-profile-menu .profile-menu-logout-form {
    width: 100%;
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid var(--zn-member-border-soft);
}

.user-profile-menu .profile-menu-logout {
    color: var(--zn-danger);
}

.user-profile-menu .profile-menu-logout .profile-menu-item-leading {
    color: var(--zn-danger);
    background: color-mix(in srgb, var(--zn-danger) 9%, transparent);
}

.user-profile-menu .profile-menu-logout:hover,
.user-profile-menu .profile-menu-logout:focus-visible {
    color: var(--zn-danger);
    background: color-mix(in srgb, var(--zn-danger) 9%, transparent);
}

.user-profile-menu .profile-menu-view-header {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--zn-member-border-soft);
}

.user-profile-menu .profile-menu-view-header h3 {
    margin: 0;
    color: var(--zn-member-text-primary);
    font-size: 1rem;
    line-height: 1.2;
}

.user-profile-menu .profile-menu-view-header h3:focus {
    outline: none;
}

.user-profile-menu .profile-menu-back {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    color: var(--zn-member-text-secondary);
    background: transparent;
    cursor: pointer;
}

.user-profile-menu .profile-menu-back:hover {
    color: var(--zn-member-text-primary);
    background: var(--zn-member-bg-surface-hover);
}

.user-profile-menu .profile-menu-back-icon {
    width: 18px;
    height: 18px;
}

.user-profile-menu .profile-menu-detail-view > .profile-security-content {
    padding: 4px 2px 2px;
}

.user-profile-menu .profile-menu-detail-view .profile-security-heading {
    display: grid;
    justify-content: stretch;
    gap: 4px;
}

.user-profile-menu .profile-menu-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-profile-menu .mini-profile {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-profile-menu .mini-profile-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--zn-member-bg-app);
}

.user-profile-menu .mini-profile-avatar-image,
.user-profile-menu .mini-profile-avatar-fallback {
    width: 100%;
    height: 100%;
    opacity: 1 !important;
    object-fit: cover;
}

.user-profile-menu .mini-profile-avatar-image {
    display: block;
    object-position: center;
    border-radius: inherit;
}

.user-profile-menu .mini-profile-avatar-fallback {
    display: grid;
    place-items: center;
    color: var(--zn-member-accent-text);
    background: var(--zn-member-bg-app);
    font-weight: 700;
}

.user-profile-menu .mini-profile-copy {
    min-width: 0;
    max-width: 100px;
}

.user-profile-menu .mini-profile-copy strong,
.user-profile-menu .mini-profile-copy span {
    display: block;
    overflow-wrap: anywhere;
}

.user-profile-menu .mini-profile-copy strong {
    color: var(--zn-member-text-primary);
    overflow: hidden;
    font-size: 0.9rem;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-profile-menu .mini-profile-copy span {
    color: var(--zn-member-text-muted);
    overflow: hidden;
    font-size: 0.72rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-profile-menu .profile-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 2px 2px;
}

.user-profile-menu .profile-form-disclosure {
    min-width: 0;
}

.user-profile-menu .profile-form-disclosure:not(:first-of-type),
.user-profile-menu .profile-appearance-mode {
    padding-top: 12px;
    border-top: 1px solid var(--zn-member-border);
}

.user-profile-menu .profile-form-disclosure > summary {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    min-height: 2.35rem;
    padding-right: 2px;
    cursor: pointer;
    list-style: none;
}

.user-profile-menu .profile-form-disclosure > summary::-webkit-details-marker {
    display: none;
}

.user-profile-menu .profile-form-disclosure > summary::after {
    content: "›";
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: center;
    transform: rotate(90deg);
    transition: transform 160ms ease;
}

.user-profile-menu .profile-form-disclosure[open] > summary::after {
    transform: rotate(-90deg);
}

.user-profile-menu .profile-form-disclosure[open] > summary {
    padding-bottom: 0;
}

.user-profile-menu .profile-form-disclosure-heading strong {
    color: var(--zn-member-text-primary);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 620;
}

.user-profile-menu .profile-form-disclosure-description {
    margin-block: 0.5rem;
    color: var(--zn-member-text-muted);
    font-size: 0.75rem;
    line-height: 1.35;
}

.user-profile-menu .profile-form-disclosure-content {
    display: grid;
    gap: 10px;
}

.user-profile-menu .profile-form-disclosure:not([open]) > .profile-form-disclosure-content {
    display: none;
}

.user-profile-menu .profile-form-disclosure-content > .form-field {
    gap: 7px;
}

.user-profile-menu .profile-form-disclosure-content > .form-field > span,
.user-profile-menu .profile-form-disclosure-content > .form-field > label {
    color: var(--zn-member-text-secondary);
    font-size: 0.9rem;
}

.user-profile-menu .profile-form-disclosure-content > .form-field .form-input {
    min-height: 44px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 0.94rem;
}

.user-profile-menu input[type="password"],
.user-profile-menu input[type="text"],
.user-profile-menu select,
.user-profile-menu textarea {
    font-size: 16px;
}

.user-profile-menu .profile-timezone-status {
    margin-top: -6px;
    color: var(--zn-member-text-muted);
    font-size: 0.75rem;
    line-height: 1.35;
}

.user-profile-menu .profile-timezone-field {
    position: relative;
}

.user-profile-menu .profile-timezone-combobox {
    position: relative;
}

.user-profile-menu .profile-timezone-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.user-profile-menu .profile-timezone-trigger-icon {
    position: relative;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.user-profile-menu .profile-timezone-trigger-icon::before,
.user-profile-menu .profile-timezone-trigger-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid var(--zn-member-text-muted);
    border-bottom: 1.5px solid var(--zn-member-text-muted);
    transform: translate(-50%, -65%) rotate(45deg);
    transition: transform 150ms ease;
}

.user-profile-menu .profile-timezone-trigger-icon::after {
    display: none;
}

.user-profile-menu .profile-timezone-trigger[aria-expanded="true"] .profile-timezone-trigger-icon::before,
.user-profile-menu .profile-timezone-trigger[aria-expanded="true"] .profile-timezone-trigger-icon::after {
    top: 50%;
    left: 50%;
    display: block;
    width: 10px;
    height: 0;
    border: 0;
    border-top: 1.5px solid var(--zn-member-text-muted);
}

.user-profile-menu .profile-timezone-trigger[aria-expanded="true"] .profile-timezone-trigger-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.user-profile-menu .profile-timezone-trigger[aria-expanded="true"] .profile-timezone-trigger-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.user-profile-menu .profile-timezone-dropdown {
    position: absolute;
    z-index: 12;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    padding: 8px;
    border: 1px solid var(--zn-member-border);
    border-radius: 12px;
    background: var(--zn-member-bg-pane, #fff);
    box-shadow: 0 16px 34px rgb(15 23 42 / 20%);
}

.user-profile-menu .user-profile-menu-panel:has(.profile-timezone-trigger[aria-expanded="true"]),
.user-profile-menu .profile-menu-detail-view:has(.profile-timezone-trigger[aria-expanded="true"]),
.user-profile-menu .profile-menu-detail-view > .profile-form:has(.profile-timezone-trigger[aria-expanded="true"]) {
    overflow: visible !important;
}

.user-profile-menu .profile-timezone-search-wrap {
    position: relative;
}

.user-profile-menu .profile-timezone-search-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 13px;
    width: 10px;
    height: 10px;
    border: 2px solid var(--zn-member-text-muted);
    border-radius: 50%;
    transform: translateY(-60%);
    pointer-events: none;
}

.user-profile-menu .profile-timezone-search-wrap::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: calc(50% + 5px);
    right: 10px;
    width: 7px;
    border-top: 2px solid var(--zn-member-text-muted);
    transform: rotate(45deg);
    pointer-events: none;
}

.user-profile-menu .profile-timezone-search {
    width: 100%;
    padding-right: 38px !important;
}

.user-profile-menu .profile-timezone-listbox {
    max-height: min(240px, 38vh);
    overflow-y: auto;
    padding-top: 5px;
    overscroll-behavior: contain;
}

.user-profile-menu .profile-timezone-option {
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--zn-member-text-primary);
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.35;
}

.user-profile-menu .profile-timezone-option:is(:hover, .is-active) {
    background: var(--zn-member-bg-surface-faint);
}

.user-profile-menu .profile-timezone-option[aria-selected="true"] {
    background: var(--zn-member-selected-surface-background, var(--zn-member-accent-surface));
    color: var(--zn-member-selected-surface-text, var(--zn-member-text-primary));
    font-weight: 700;
}

@media (max-width: 760px) {
    .user-profile-menu .profile-timezone-trigger.suppress-pointer-focus:focus {
        border-color: var(--zn-member-border-strong);
        outline: none;
    }

    .user-profile-menu .profile-timezone-mobile-dialog {
        inset: auto 0 auto;
        top: var(--profile-timezone-mobile-top, 16px);
        width: calc(100vw - 32px);
        max-width: 480px;
        height: var(--profile-timezone-mobile-dialog-height, min(560px, calc(100dvh - 32px)));
        max-height: var(--profile-timezone-mobile-dialog-height, calc(100dvh - 32px));
        margin: 0 auto;
        padding: 0;
        overflow: hidden;
        border: 1px solid var(--zn-member-border);
        border-radius: 16px;
        color: var(--zn-member-text-primary);
        background: var(--zn-member-bg-app);
        box-shadow: 0 24px 64px rgb(3 8 15 / 36%);
        transition: top 180ms ease, height 180ms ease, max-height 180ms ease;
    }

    .user-profile-menu .profile-timezone-mobile-dialog::backdrop {
        background: rgb(3 8 15 / 64%);
    }

    .user-profile-menu .profile-timezone-mobile-surface {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        min-height: 0;
    }

    .user-profile-menu .profile-timezone-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 16px 16px 12px;
        border-bottom: 1px solid var(--zn-member-border);
        background: var(--zn-member-bg-app);
    }

    .user-profile-menu .profile-timezone-mobile-header > [data-profile-timezone-mobile-summary] {
        min-width: 0;
        display: grid;
        gap: 3px;
        flex: 1 1 auto;
    }

    .user-profile-menu .profile-timezone-mobile-header strong {
        font-size: 1.05rem;
    }

    .user-profile-menu .profile-timezone-mobile-header [data-profile-timezone-mobile-count] {
        color: var(--zn-member-text-muted);
        font-size: 0.75rem;
    }

    .user-profile-menu .profile-timezone-mobile-search-wrap {
        min-width: 0;
        flex: 1 1 auto;
    }

    .user-profile-menu .profile-timezone-mobile-search {
        width: 100%;
        min-height: 42px;
    }

    .user-profile-menu .profile-timezone-mobile-actions {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 6px;
    }

    .user-profile-menu .profile-timezone-mobile-search-toggle,
    .user-profile-menu .profile-timezone-mobile-close {
        position: relative;
        width: 42px;
        min-width: 42px;
        height: 42px;
        padding: 0;
        border: 1px solid var(--zn-member-border);
        border-radius: 10px;
        color: var(--zn-member-text-primary);
        background: var(--zn-member-bg-surface-faint);
        font: inherit;
        cursor: pointer;
    }

    .user-profile-menu .profile-timezone-mobile-search-toggle > span::before {
        content: "";
        position: absolute;
        top: 11px;
        left: 11px;
        width: 12px;
        height: 12px;
        border: 2px solid currentcolor;
        border-radius: 50%;
    }

    .user-profile-menu .profile-timezone-mobile-search-toggle > span::after {
        content: "";
        position: absolute;
        top: 25px;
        left: 24px;
        width: 8px;
        border-top: 2px solid currentcolor;
        transform: rotate(45deg);
        transform-origin: left center;
    }

    .user-profile-menu .profile-timezone-mobile-close {
        font-size: 1.65rem;
        font-weight: 400;
        line-height: 1;
    }

    @media (prefers-reduced-motion: reduce) {
        .user-profile-menu .profile-timezone-mobile-dialog {
            transition: none;
        }
    }

    .user-profile-menu .profile-timezone-mobile-list {
        min-height: 0;
        flex: 1 1 auto;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 6px 14px 18px;
        scroll-padding-block: 6px 18px;
        -webkit-overflow-scrolling: touch;
    }

    .user-profile-menu .profile-timezone-mobile-option {
        width: 100%;
        min-height: 48px;
        display: flex;
        align-items: center;
        padding: 11px 12px;
        border: 0;
        border-bottom: 1px solid var(--zn-member-border-soft, var(--zn-member-border));
        border-radius: 0;
        color: var(--zn-member-text-primary);
        background: transparent;
        font: inherit;
        font-size: 0.94rem;
        text-align: left;
        cursor: pointer;
    }

    .user-profile-menu .profile-timezone-mobile-option[aria-selected="true"] {
        color: var(--zn-member-selected-surface-text, var(--zn-member-text-primary));
        background: var(--zn-member-selected-surface-background, var(--zn-member-accent-surface));
        font-weight: 700;
    }

}

.user-profile-menu .profile-timezone-help {
    color: var(--zn-member-text-muted) !important;
    font-size: 0.75rem !important;
    line-height: 1.35;
}

.user-profile-menu .profile-appearance-mode {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.user-profile-menu .profile-appearance-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.user-profile-menu .profile-appearance-copy strong {
    color: var(--zn-member-text-primary);
    font-size: 0.9rem;
}

.user-profile-menu .profile-appearance-copy > span {
    color: var(--zn-member-text-muted);
    font-size: 0.74rem;
    line-height: 1.35;
}

.user-profile-menu .profile-appearance-switch {
    position: relative;
    width: 48px;
    height: 28px;
    flex: 0 0 48px;
    cursor: pointer;
}

.user-profile-menu .profile-appearance-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.user-profile-menu .profile-appearance-switch > span {
    position: absolute;
    inset: 0;
    border: 1px solid var(--zn-member-border-strong);
    border-radius: 999px;
    background: var(--zn-member-bg-surface-active);
    transition: background 160ms ease, border-color 160ms ease;
}

.user-profile-menu .profile-appearance-switch > span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--zn-member-text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 160ms ease, background 160ms ease;
}

.user-profile-menu .profile-appearance-switch input:checked + span {
    border-color: #35B8E7;
    background: #000028;
}

.user-profile-menu .profile-appearance-switch input:checked + span::after {
    background: #FFFFFF;
    transform: translateX(20px);
}

.user-profile-menu .profile-appearance-switch input:focus-visible + span {
    outline: 2px solid #35B8E7;
    outline-offset: 3px;
}

.user-profile-menu .profile-security-device {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--zn-member-border);
    border-radius: 14px;
    background: var(--zn-member-bg-surface-faint);
}

.user-profile-menu .profile-security-toggle {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0;
    border: 0;
    color: var(--zn-member-text-primary);
    font: inherit;
    font-weight: 700;
    text-align: left;
    background: transparent;
    cursor: pointer;
}

.user-profile-menu .profile-security-toggle:focus-visible {
    outline: 2px solid var(--zn-member-accent);
    outline-offset: 3px;
    border-radius: 10px;
}

.user-profile-menu .profile-security-chevron {
    flex: 0 0 auto;
    color: var(--zn-member-text-muted);
    font-size: 1.05rem;
    line-height: 1;
    transition: transform 160ms ease;
}

.user-profile-menu .profile-security-toggle[aria-expanded="true"] .profile-security-chevron {
    transform: rotate(90deg);
}

.user-profile-menu .profile-security-content,
.user-profile-menu .profile-security-actions {
    display: grid;
    gap: 10px;
}

.user-profile-menu .profile-security-content {
    padding-top: 2px;
}

.user-profile-menu .profile-security-actions + .profile-security-actions {
    padding-top: 12px;
    border-top: 1px solid var(--zn-member-border);
}

.user-profile-menu .profile-security-disclosure > summary {
    position: relative;
    grid-template-columns: minmax(0, 1fr) 18px;
    padding-right: 2px;
    cursor: pointer;
    list-style: none;
}

.user-profile-menu .profile-security-disclosure > summary::-webkit-details-marker {
    display: none;
}

.user-profile-menu .profile-security-disclosure > summary::after {
    content: "";
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    width: 8px;
    height: 8px;
    margin-right: 3px;
    border-right: 2px solid var(--zn-member-text-muted);
    border-bottom: 2px solid var(--zn-member-text-muted);
    transform: rotate(45deg);
    transition: transform 160ms ease;
}

.user-profile-menu .profile-security-disclosure[open] > summary::after {
    transform: rotate(225deg);
}

.user-profile-menu .profile-security-disclosure[open] > summary {
    padding-bottom: 10px;
}

.user-profile-menu .profile-security-disclosure-content {
    display: grid;
    gap: 10px;
}

.user-profile-menu .profile-security-disclosure:not([open]) > .profile-security-disclosure-content {
    display: none;
}

.user-profile-menu .profile-security-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.user-profile-menu .profile-security-heading strong {
    color: var(--zn-member-text-primary);
    font-size: 0.94rem;
}

.user-profile-menu .profile-security-heading span,
.user-profile-menu .profile-passkey-copy span {
    color: var(--zn-member-text-muted);
    font-size: 0.75rem;
    line-height: 1.35;
}

.user-profile-menu .profile-pwa-install-guide {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid var(--zn-member-border);
    border-radius: 10px;
    color: var(--zn-member-text-muted);
    background: var(--zn-member-bg-surface-hover);
    font-size: 0.75rem;
    line-height: 1.4;
}

.user-profile-menu .profile-pwa-install-guide strong {
    color: var(--zn-member-text-primary);
    font-size: 0.8rem;
}

.user-profile-menu .profile-passkey-list {
    display: grid;
    gap: 8px;
}

.user-profile-menu .profile-passkey-unavailable {
    padding: 10px 12px;
    border: 1px solid var(--zn-member-border);
    border-radius: 10px;
    color: var(--zn-member-text-muted);
    background: var(--zn-member-bg-surface-hover);
    font-size: 0.78rem;
    line-height: 1.4;
}

.user-profile-menu .profile-passkey-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.user-profile-menu .profile-passkey-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.user-profile-menu .profile-passkey-copy strong,
.user-profile-menu .profile-passkey-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-profile-menu .profile-avatar-editor {
    margin: 2px 0 0;
}

.user-profile-menu .profile-avatar-picker-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.user-profile-menu .profile-avatar-preview {
    width: 64px;
    height: 64px;
    overflow: hidden;
    border: 1px solid var(--zn-member-border-soft);
    border-radius: 50%;
    background: var(--zn-member-bg-app);
}

.user-profile-menu .profile-avatar-preview img,
.user-profile-menu .profile-avatar-preview span {
    width: 100%;
    height: 100%;
}

.user-profile-menu .profile-avatar-preview img {
    display: block;
    object-fit: cover;
    object-position: center;
}

.user-profile-menu .profile-avatar-preview span {
    display: grid;
    place-items: center;
    color: var(--zn-member-accent-text);
    font-size: 1.2rem;
    font-weight: 700;
}

.user-profile-menu .profile-avatar-preview [hidden] {
    display: none;
}

.user-profile-menu .profile-avatar-dropzone {
    min-width: 0;
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px dashed var(--zn-member-border);
    border-radius: 12px;
    color: var(--zn-member-text-primary);
    background: var(--zn-member-bg-app);
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.user-profile-menu .profile-avatar-dropzone:hover,
.user-profile-menu .profile-avatar-dropzone:focus-within {
    border-color: color-mix(in srgb, var(--zn-success) 70%, var(--zn-member-border));
    background: color-mix(in srgb, var(--zn-success) 7%, var(--zn-member-bg-app));
}

.user-profile-menu .profile-avatar-upload-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    color: var(--zn-success);
}

.user-profile-menu .profile-avatar-dropzone-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.user-profile-menu .profile-avatar-dropzone-copy strong,
.user-profile-menu .profile-avatar-dropzone-copy span {
    overflow-wrap: anywhere;
}

.user-profile-menu .profile-avatar-dropzone-copy strong {
    font-size: 0.88rem;
}

.user-profile-menu .profile-avatar-dropzone-copy span {
    color: var(--zn-member-text-muted);
    font-size: 0.72rem;
    line-height: 1.35;
}

.user-profile-menu .profile-avatar-progress {
    display: grid;
    gap: 7px;
    margin-top: 14px;
}

.user-profile-menu .profile-avatar-progress[hidden] {
    display: none;
}

.user-profile-menu .profile-avatar-progress-copy {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--zn-member-text-secondary);
    font-size: 0.8rem;
}

.user-profile-menu .profile-avatar-progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: color-mix(in srgb, var(--zn-member-border) 50%, transparent);
}

.user-profile-menu .profile-avatar-progress-track > span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--zn-success);
    transition: width 0.18s ease;
}

.user-profile-menu .profile-avatar-progress.is-processing .profile-avatar-progress-track > span {
    width: 42%;
    animation: profile-avatar-processing 1.35s ease-in-out infinite alternate;
}

.user-profile-menu .profile-avatar-progress.is-error .profile-avatar-progress-copy {
    color: var(--zn-danger);
}

.user-profile-menu .profile-avatar-progress.is-error .profile-avatar-progress-track > span {
    width: 100% !important;
    background: var(--zn-danger);
}

@keyframes profile-avatar-processing {
    from { transform: translateX(-30%); }
    to { transform: translateX(170%); }
}

@media (prefers-reduced-motion: reduce) {
    .user-profile-menu .profile-avatar-progress.is-processing .profile-avatar-progress-track > span {
        width: 100%;
        animation: none;
        opacity: 0.6;
    }
}

.user-profile-menu .profile-save-button {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    border-radius: 12px;
    font-size: 0.94rem;
}

.user-profile-menu .profile-menu-header > .user-header-actions {
    width: auto;
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin: 0;
    padding: 0;
}

body[class*="user-body-"] .user-profile-menu .profile-menu-header .notification-settings-compact,
body[class*="user-body-"] .user-profile-menu .profile-menu-header .notification-enable-button,
body[class*="user-body-"] .user-profile-menu .profile-menu-header .user-header-logout-button {
    width: auto;
    min-width: 0;
    height: 38px;
    min-height: 38px;
}

body[class*="user-body-"] .user-profile-menu .profile-menu-header .notification-enable-button,
body[class*="user-body-"] .user-profile-menu .profile-menu-header .user-header-logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 8px;
    border-width: 1px !important;
    box-shadow: none !important;
}

body[class*="user-body-"] .user-profile-menu .profile-menu-header .notification-enable-button,
body[class*="user-body-"] .user-profile-menu .profile-menu-header .notification-settings[data-state="active"] .notification-enable-button,
body[class*="user-body-"] .user-profile-menu .profile-menu-header .notification-settings.is-notification-active .notification-enable-button {
    border-color: var(--zn-success) !important;
    color: var(--zn-success) !important;
    background: var(--zn-member-bg-app) !important;
    box-shadow: none !important;
}

body[class*="user-body-"] .user-profile-menu .profile-menu-header .notification-enable-button:hover,
body[class*="user-body-"] .user-profile-menu .profile-menu-header .notification-enable-button:focus-visible {
    color: color-mix(in srgb, var(--zn-success) 82%, var(--zn-member-text-primary)) !important;
    background: color-mix(in srgb, var(--zn-success) 8%, var(--zn-member-bg-app)) !important;
}

body[class*="user-body-"] .user-profile-menu .profile-menu-header .user-header-logout-button {
    border-color: var(--zn-danger) !important;
    color: var(--zn-danger) !important;
    background: var(--zn-member-bg-app) !important;
    box-shadow: none !important;
}

body[class*="user-body-"] .user-profile-menu .profile-menu-header .user-header-logout-button:hover,
body[class*="user-body-"] .user-profile-menu .profile-menu-header .user-header-logout-button:focus-visible {
    background: color-mix(in srgb, var(--zn-danger) 8%, var(--zn-member-bg-app)) !important;
}

/* Detached notification settings panel. It is moved under body while open. */
.notification-mobile-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: var(--z-layer-modal, 1600);
    width: min(500px, calc(100vw - 32px));
    max-height: min(760px, calc(100dvh - 32px));
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 26px;
    border: 1px solid var(--zn-member-border);
    border-radius: 16px;
    background: var(--zn-member-bg-shell);
    color: var(--zn-member-text-primary);
    box-shadow: var(--zn-member-shadow);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translate(-50%, -50%);
}

.notification-mobile-panel[hidden] {
    display: none;
}

.notification-mobile-panel > * {
    flex: 0 0 auto;
}

.notification-mobile-panel .notification-settings-header {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--zn-member-border-soft);
}

.notification-mobile-panel .notification-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.notification-mobile-panel .notification-copy h3 {
    margin: 0;
    color: var(--zn-member-text-primary);
    font-size: 1.45rem;
    line-height: 1.2;
}

.notification-mobile-panel .notification-copy > span {
    color: var(--zn-member-text-secondary);
    font-size: 0.9rem;
}

.notification-mobile-panel .notification-status {
    color: var(--zn-success);
    font-size: 0.82rem;
    font-weight: 650;
}

.notification-mobile-panel[data-state="blocked"] .notification-status {
    color: var(--zn-danger);
}

.notification-mobile-panel .notification-panel-close {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border-color: var(--zn-member-border);
    border-radius: 10px;
    background: var(--zn-member-bg-app);
    color: var(--zn-member-text-primary);
    cursor: pointer;
}

.notification-mobile-panel .notification-panel-close:hover,
.notification-mobile-panel .notification-panel-close:focus-visible {
    background: var(--zn-member-bg-surface-hover);
    border-color: var(--zn-member-border-strong);
}

.notification-mobile-panel .notification-panel-close-icon {
    width: 20px;
    height: 20px;
}

.notification-mobile-panel .notification-instruction-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.notification-mobile-panel .notification-instruction-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    padding: 3px;
    border-radius: 50%;
    background: var(--zn-member-bg-surface-strong);
    color: var(--zn-member-text-secondary);
}

.notification-mobile-panel .notification-instruction {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.45;
}

.notification-mobile-panel .notification-device-health {
    display: grid;
    gap: 10px;
}

.notification-mobile-panel .notification-device-details > summary {
    display: none;
}

.notification-mobile-panel .notification-device-chevron {
    width: 18px;
    height: 18px;
    transition: transform 0.16s ease;
}

.notification-mobile-panel .notification-device-details[open] .notification-device-chevron {
    transform: rotate(180deg);
}

.notification-mobile-panel .notification-device-details[open],
.notification-mobile-panel .notification-debug-details[open] {
    height: auto;
    min-height: max-content;
    max-height: none;
}

.notification-mobile-panel .notification-device-details:not([open]) > :not(summary),
.notification-mobile-panel .notification-debug-details:not([open]) > :not(summary) {
    display: none !important;
}

.notification-mobile-panel .notification-debug-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.notification-mobile-panel .notification-debug-grid > div {
    min-height: 78px;
    padding: 13px 14px;
    border-color: var(--zn-member-border);
    border-radius: 10px;
    background: var(--zn-member-bg-app);
}

.notification-mobile-panel .notification-debug-grid dt {
    margin: 0 0 8px;
    font-size: 0.76rem;
}

.notification-mobile-panel .notification-debug-grid dd {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.notification-mobile-panel .notification-debug-grid .notification-debug-row-wide {
    grid-column: 1 / -1;
}

.notification-mobile-panel .notification-mobile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.notification-mobile-panel .notification-action-button {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    padding: 10px 14px;
    border: 1px solid var(--zn-member-border) !important;
    border-radius: 12px !important;
    background: var(--zn-member-bg-app) !important;
    color: var(--zn-member-text-primary) !important;
    font-size: 0.82rem;
    line-height: 1.25;
    text-align: left;
    white-space: normal;
    box-shadow: none !important;
}

.notification-mobile-panel .notification-action-button:hover,
.notification-mobile-panel .notification-action-button:focus-visible {
    border-color: var(--zn-member-accent-border-strong) !important;
    background: var(--zn-member-bg-surface-hover) !important;
}

.notification-mobile-panel .notification-action-button:disabled {
    color: var(--zn-member-text-muted) !important;
    opacity: 0.72;
}

.notification-mobile-panel .notification-action-icon {
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    color: var(--zn-success);
}

.notification-mobile-panel .notification-action-icon-blue {
    color: var(--zn-member-accent);
}

.notification-mobile-panel .notification-action-icon-danger {
    color: var(--zn-danger);
}

.notification-mobile-panel .notification-debug-details {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--zn-member-border);
    border-radius: 12px;
    background: var(--zn-member-bg-app);
    overflow: hidden;
}

.notification-mobile-panel .notification-debug-details > summary {
    width: 100%;
    box-sizing: border-box;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border: 0;
    border-radius: 0;
    color: var(--zn-member-text-primary);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.notification-mobile-panel .notification-debug-details[open] > summary {
    margin-bottom: 0;
    border-bottom: 1px solid var(--zn-member-border-soft);
}

.notification-mobile-panel .notification-debug-details > .notification-debug-grid {
    padding: 10px;
}

.notification-mobile-panel .notification-debug-chevron {
    width: 18px;
    height: 18px;
    transition: transform 0.16s ease;
}

.notification-mobile-panel .notification-debug-details[open] .notification-debug-chevron {
    transform: rotate(180deg);
}

.notification-mobile-panel .notification-toggle-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    gap: 0;
    border: 1px solid var(--zn-member-border);
    border-radius: 12px;
    background: var(--zn-member-bg-app);
}

.notification-mobile-panel .notification-toggle {
    min-width: 0;
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--zn-member-text-primary);
    font-size: 0.8rem;
}

.notification-mobile-panel .notification-toggle + .notification-toggle {
    border-left: 1px solid var(--zn-member-border-soft);
}

.notification-mobile-panel .notification-toggle input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    accent-color: var(--zn-member-accent);
}

@media (max-width: 760px) {
    .notification-mobile-panel {
        top: calc(env(safe-area-inset-top) + 12px);
        right: 12px;
        bottom: calc(var(--bottom-nav-height, 78px) + var(--safe-bottom, env(safe-area-inset-bottom, 0px)) + 12px);
        left: 12px;
        width: auto;
        max-height: none;
        gap: 14px;
        padding: 16px;
        border-radius: 14px;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scroll-padding-bottom: 18px;
        transform: none;
    }

    .notification-mobile-panel .notification-settings-header {
        position: sticky;
        top: -16px;
        z-index: 2;
        margin: -16px -16px 0;
        padding: 16px 16px 12px;
        background: var(--zn-member-bg-shell);
    }

    .notification-mobile-panel .notification-copy h3 {
        font-size: 1.2rem;
    }

    .notification-mobile-panel .notification-copy > span {
        font-size: 0.78rem;
    }

    .notification-mobile-panel .notification-device-details {
        overflow: hidden;
        border: 1px solid var(--zn-member-border);
        border-radius: 12px;
        background: var(--zn-member-bg-app);
    }

    .notification-mobile-panel .notification-device-details > summary {
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 0 14px;
        color: var(--zn-member-text-primary);
        font-size: 0.9rem;
        font-weight: 700;
        cursor: pointer;
        list-style: none;
    }

    .notification-mobile-panel .notification-device-details > summary::-webkit-details-marker {
        display: none;
    }

    .notification-mobile-panel .notification-device-details[open] > summary {
        border-bottom: 1px solid var(--zn-member-border-soft);
    }

    .notification-mobile-panel .notification-device-health {
        padding: 10px;
    }

    .notification-mobile-panel .notification-mobile-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .notification-mobile-panel .notification-action-button {
        min-height: 54px !important;
        gap: 8px;
        padding: 8px 10px !important;
        font-size: 0.74rem;
    }

    .notification-mobile-panel .notification-action-icon {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }
}

@media (max-width: 340px) {
    .notification-mobile-panel .notification-mobile-actions,
    .notification-mobile-panel .notification-debug-grid,
    .notification-mobile-panel .notification-toggle-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .notification-mobile-panel .notification-toggle + .notification-toggle {
        border-top: 1px solid var(--zn-member-border-soft);
        border-left: 0;
    }
}

.user-profile-menu .profile-action-label {
    display: inline;
    font-size: 0.72rem;
    font-weight: 650;
    white-space: nowrap;
}

html[data-user-sidebar-state="collapsed"] [data-user-sidebar-root] .user-profile-menu,
body.user-sidebar-collapsed [data-user-sidebar-root] .user-profile-menu {
    top: 0;
    left: calc(100% + 10px);
}

@media (max-width: 760px) {
    .user-profile-menu.profile-menu-hidden-trigger {
        top: calc(100% + 8px);
        left: 0;
    }

    .user-profile-menu .user-profile-menu-panel {
        gap: 12px;
        max-height: calc(
            100dvh
            - var(--bottom-nav-height, 78px)
            - var(--safe-bottom, env(safe-area-inset-bottom, 0px))
            - env(safe-area-inset-top, 0px)
            - 76px
        );
        padding: 14px 14px max(24px, calc(env(safe-area-inset-bottom, 0px) + 18px));
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scroll-padding-bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 18px));
    }

    .user-profile-menu .mini-profile-avatar {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .user-profile-menu .mini-profile-copy strong {
        font-size: 1.05rem;
    }

    .user-profile-menu .mini-profile-copy span {
        font-size: 0.8rem;
    }

    .user-profile-menu .profile-action-label {
        display: none;
    }

    body[class*="user-body-"] .user-profile-menu .profile-menu-header .notification-enable-button,
    body[class*="user-body-"] .user-profile-menu .profile-menu-header .user-header-logout-button {
        width: 42px;
        padding: 0;
    }

    .user-profile-menu .profile-avatar-picker-row {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: 12px;
    }

    .user-profile-menu .profile-avatar-preview {
        width: 56px;
        height: 56px;
    }

    .user-profile-menu .profile-avatar-dropzone {
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
        min-height: 56px;
        padding: 10px 12px;
    }
}

/* Messaging route profile presentation. */
@media (max-width: 760px) {
    body.user-body-messaging .profile-menu-panel {
        right: auto;
        left: 0;
    }

    body.user-body-messaging .mini-profile {
        display: none;
    }

    body.user-body-messaging .profile-menu-panel .mini-profile {
        display: flex;
    }

    body.user-body-messaging .profile-details {
        padding: 0;
        border: 0;
        background: transparent;
    }

    body.user-body-messaging .profile-details > summary {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 0.76rem;
        color: var(--zn-member-accent);
    }

    body.user-body-messaging .notification-settings {
        padding: 10px 12px;
    }

    body.user-body-messaging .notification-settings-compact {
        width: 42px;
        height: 42px;
        padding: 0;
        border: 0;
        background: transparent;
    }

    body.user-body-messaging .notification-settings-header {
        align-items: center;
        min-height: 42px;
    }

    body.user-body-messaging .notification-enable-button {
        width: 42px;
        height: 42px;
    }

    body.user-body-messaging .notification-toggle {
        font-size: 0.78rem;
    }

    body.user-body-messaging .notification-status {
        font-size: 0.7rem;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
}

@media (max-width: 980px) {
    body.user-body-messaging .profile-menu-panel > .user-header-actions .notification-settings-compact,
    body.user-body-messaging .profile-menu-panel > .user-header-actions .notification-enable-button,
    body.user-body-messaging .profile-menu-panel > .user-header-actions .user-header-logout-button {
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
    }

    body.user-body-messaging .profile-menu-hidden-trigger {
        right: auto;
        left: 0;
    }

    body.user-body-messaging .profile-menu-panel {
        right: auto;
        left: 0;
    }

    body.user-body-messaging .topbar-profile-image,
    body.user-body-meetings .meeting-brand-row .topbar-profile-image {
        transform: scale(1.08);
    }
}

@media (min-width: 761px) and (max-width: 980px) {
    body.user-body-messaging .conversation-pane:has(.profile-menu-hidden-trigger[open]) {
        position: relative;
        z-index: 20;
    }

    body.user-body-messaging .conversation-hub:has(.profile-menu-hidden-trigger[open]) {
        overflow: visible;
    }

    body.user-body-messaging .profile-menu-panel {
        max-height: calc(100dvh - 102px - env(safe-area-inset-bottom));
        overflow: auto;
    }
}

body.user-body-messaging .profile-menu-panel > .user-header-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: -2px 0 0;
    padding: 0 2px 2px;
}

body.user-body-messaging .profile-menu-panel > .user-header-actions .notification-settings-compact,
body.user-body-messaging .profile-menu-panel > .user-header-actions .notification-enable-button,
body.user-body-messaging .profile-menu-panel > .user-header-actions .user-header-logout-button {
    width: 38px;
    height: 38px;
}

body.user-body-messaging .profile-menu-panel > .user-header-actions .notification-znode-icon,
body.user-body-messaging .profile-menu-panel > .user-header-actions .notification-bell-icon,
body.user-body-messaging .profile-menu-panel > .user-header-actions .notification-bell-icon svg,
body.user-body-messaging .profile-menu-panel > .user-header-actions .user-header-logout-icon {
    width: 18px;
    height: 18px;
}

/* Detail headers stay outside their content's scroll area. */
.user-profile-menu .user-profile-menu-panel {
    overflow: hidden;
}
.user-profile-menu .profile-menu-detail-view {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}
.user-profile-menu .profile-menu-detail-view > :not(.profile-menu-view-header) {
    min-height: 0;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scroll-padding-block: 8px;
}
.user-profile-menu .profile-notification-content {
    position: static;
    inset: auto;
    width: 100%;
    max-height: none;
    padding: 0;
    gap: 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    overflow: visible !important;
    min-width: 0;
}
.user-profile-menu .profile-notification-content .notification-status {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}
.user-profile-menu .profile-menu-view-header {
    position: static;
    flex: 0 0 auto;
    padding-block: 8px 12px;
    background: var(--zn-member-bg-app);
    border-bottom: 1px solid var(--zn-member-border);
}
.user-profile-menu .profile-storage-section {
    gap: 8px;
}
.user-profile-menu .profile-storage-section .profile-security-heading {
    gap: 8px;
}
.user-profile-menu .profile-storage-section .profile-security-heading span {
    font-size: 13px;
    line-height: 18px;
}
@media (min-width: 761px) {
    .user-profile-menu .user-profile-menu-panel {
        position: fixed;
        width: min(390px, calc(100vw - 24px));
        z-index: 100;
        box-shadow: 0 22px 60px rgba(3, 8, 15, 0.38);
    }
}
.user-profile-menu[popover] {
    margin: 0;
    color: var(--zn-member-text-primary);
    overflow: visible;
}
.user-profile-menu[popover]::backdrop {
    background: transparent;
    pointer-events: none;
}
