#notification-count[hidden] { display: none !important; }
#notification-link { flex-shrink: 0; }
#notification-count { top: 0; right: 0; transform: translateY(-50%); }
.notification-settings > summary { cursor: pointer; display: list-item; }
.notification-settings > summary:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 4px; }
.notification-popover[hidden] { display: none !important; }
.notification-popover.card {
    position: fixed;
    z-index: 1045;
    width: min(480px, calc(100vw - 16px));
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px;
    background: var(--bs-body-bg, #212529);
    color: var(--bs-body-color, #f8f9fa);
}
.notification-popover .notification-settings { padding: 12px !important; }
.notification-delete { min-width: 36px; min-height: 36px; flex-shrink: 0; }
.notification-popover-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
#notification-popover-close { display: none; }
@media (max-width: 767.98px) {
    body.notification-drawer-open { overflow: hidden; }
    .notification-popover.card {
        inset: 0 0 0 auto;
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        padding: 0;
        border-radius: 0;
        overflow: hidden;
        z-index: 1060;
    }
    .notification-popover-header {
        flex-shrink: 0;
        margin: 0;
        padding: max(16px, env(safe-area-inset-top)) 16px 16px;
        border-bottom: 1px solid var(--bs-border-color, #495057);
    }
    #notification-popover-close { display: block; min-width: 24px; min-height: 24px; }
    .notification-popover-content {
        overflow-y: auto;
        overscroll-behavior: contain;
        min-height: 0;
        padding: 16px 16px max(16px, env(safe-area-inset-bottom));
    }
    @media (prefers-reduced-motion: no-preference) {
        .notification-popover:not([hidden]) { animation: notification-drawer-enter .2s ease-out; }
    }
}
@keyframes notification-drawer-enter { from { transform: translateX(100%); } to { transform: translateX(0); } }
