/* Viewport-bound notification center, independent of the filtered navbar. */
#notificationMenuDropdown {
    position: fixed !important;
    inset: auto;
    margin: 0;
    z-index: 80;
    width: min(24rem, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    background: var(--bg-body, #020617) !important;
    color: var(--text-main, #f8fafc);
    backdrop-filter: none;
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .5);
}
#notificationMenuDropdown.hidden { display: none; }
#notificationMenuDropdown:not(.hidden) { display: flex; flex-direction: column; }
.notification-center-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    padding: 10px 14px;
    border-bottom: 1px solid var(--glass-panel-border);
    background: var(--bg-body);
}
.notification-center-heading h2 { font-size: 14px; font-weight: 700; }
#notificationMenuClose {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    color: var(--text-muted);
}
#notificationMenuClose:hover { background: var(--theme-accent-bg); color: var(--text-main); }
#notificationMenuClose:focus-visible { outline: 2px solid var(--theme-accent); outline-offset: 2px; }
.notification-center-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}
#notificationListContainer { max-height: none; overflow: visible; }
#desktopPushControlCard { background: var(--bg-body) !important; }
#desktopPushControlCard > div:first-child { align-items: flex-start; }
#desktopPushControlCard > div:first-child > div { min-width: 0; }
#pushStatusIndicatorDot, #pushStatusBadge { flex-shrink: 0; }
#pushStatusIndicatorDot { margin-top: 5px; }
#pushStatusTitle { overflow-wrap: anywhere; }
#pushStatusDesc { overflow-wrap: anywhere; }
#pushActionContainer { display: block; }
#pushActionContainer button { min-height: 40px; }
#notificationListContainer a > div > div { flex: 1; min-width: 0; }
.notification-center-footer { flex-shrink: 0; background: var(--bg-body); }
@media (max-width: 639px) {
    #notificationMenuDropdown { border-radius: 16px; }
    #notificationMenuClose { width: 40px; height: 40px; }
    #pushActionContainer button { min-height: 44px; }
    #pushActionContainer .flex { flex-wrap: wrap; }
    #pushActionContainer p { text-align: left; line-height: 1.5; }
    .notification-center-footer { min-height: 44px; display: flex; align-items: center; justify-content: center; }
}
