.dash-notifications-host {
    display: contents;
}

.ascent-sidebar-notifications-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 0;
    border-radius: var(--dash-radius-md, 0.5rem);
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
}

.ascent-sidebar-notifications-btn:hover,
.ascent-sidebar-notifications-btn:focus-visible {
    background: var(--dash-sidebar-hover-bg, rgba(255, 255, 255, 0.08));
    color: #fff;
    outline: none;
}

.ascent-sidebar-notifications-btn__icon {
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
}

.ascent-sidebar-notifications-btn__icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.ascent-sidebar-notifications-btn__badge {
    position: absolute;
    top: -0.15rem;
    right: -0.2rem;
    min-width: 0.95rem;
    height: 0.95rem;
    padding: 0 0.2rem;
    border-radius: 999px;
    background: var(--color-negative);
    color: #fff;
    font-size: 0.5625rem;
    font-weight: 700;
    line-height: 0.95rem;
    text-align: center;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.35);
}

.ascent-sidebar-notifications-btn--nav {
    width: 100%;
    height: auto;
    padding: 0.625rem 0.75rem;
    margin-bottom: 0.25rem;
    justify-content: flex-start;
}

.dash-scope .dash-sidebar--collapsed .ascent-sidebar-notifications-btn--nav {
    justify-content: center;
    width: 100%;
    padding: 9px 0;
    margin-bottom: 0;
    border-radius: 7px;
}

.ascent-sidebar-notifications-btn--nav .ascent-sidebar-notifications-btn__icon {
    font-size: 1.125rem;
}

.ascent-sidebar-notifications-btn--nav .ascent-sidebar-notifications-btn__badge {
    top: 0.35rem;
    left: 1.65rem;
    right: auto;
}

.dash-scope .dash-sidebar--collapsed .ascent-sidebar-notifications-btn--nav .ascent-sidebar-notifications-btn__badge {
    top: 0.2rem;
    left: 50%;
    right: auto;
    transform: translateX(0.5rem);
}

.dash-scope .dash-sidebar--icon-footer .ascent-sidebar-notifications-btn {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
}

.dash-scope .dash-sidebar--icon-footer .ascent-sidebar-notifications-btn:hover,
.dash-scope .dash-sidebar--icon-footer .ascent-sidebar-notifications-btn:focus-visible,
.dash-scope .dash-sidebar--icon-footer .ascent-sidebar-notifications-btn[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.dash-scope .dash-sidebar--icon-footer .ascent-sidebar-notifications-btn__badge {
    top: -2px;
    right: -2px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    border: 1.5px solid #2f5d83;
    background: #e05252;
    box-shadow: none;
    font-size: 9px;
    line-height: 12px;
}

/* Sidebar notifications pop-out (design/sidebar.js notif-panel) */
.dash-scope .notif-panel {
    position: fixed;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    width: 288px;
    max-width: calc(100vw - 24px);
    max-height: min(28rem, calc(100vh - 24px));
    padding: 6px;
    background: var(--color-card-bg, #fff);
    border-radius: 14px;
    border: 0.5px solid var(--color-card-border, rgba(16, 120, 190, 0.12));
    box-shadow:
        0 18px 44px rgba(10, 34, 58, 0.22),
        0 2px 8px rgba(10, 34, 58, 0.10);
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
    transition: opacity 0.14s ease, transform 0.14s ease;
}

.dash-scope .notif-panel.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dash-scope .notif-panel:focus,
.dash-scope .notif-panel:focus-visible {
    outline: none;
}

.dash-scope .notif-panel__body {
    min-height: 0;
    overflow: auto;
}

.dash-scope .notif-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px 9px;
    border-bottom: 0.5px solid var(--color-card-border, rgba(16, 120, 190, 0.12));
}

.dash-scope .notif-panel__title {
    font-family: var(--font-title, Montserrat, sans-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-secondary, #4a7a95);
}

.dash-scope .notif-panel__all {
    padding: 0;
    border: 0;
    background: none;
    font-family: var(--font-body, Lato, sans-serif);
    font-size: 11px;
    font-weight: 700;
    color: var(--color-brand-blue, #1078be);
    cursor: pointer;
}

.dash-scope .notif-panel__all:hover,
.dash-scope .notif-panel__all:focus-visible {
    text-decoration: underline;
    outline: none;
}

.dash-scope .notif-panel__all:disabled {
    cursor: default;
    text-decoration: none;
    opacity: 0.55;
}

.dash-scope .notif-panel__empty {
    padding: 14px 10px 12px;
    font-family: var(--font-body, Lato, sans-serif);
    font-size: 12.5px;
    color: var(--color-text-muted, #8aacbf);
}

.dash-scope .notif-panel__empty--error {
    color: var(--color-negative, #c0392b);
}

.dash-scope .notif-panel__actions {
    padding: 0 10px 10px;
    text-align: center;
}

.dash-scope .notif-panel__retry {
    padding: 0.375rem 0.875rem;
    border: 1px solid var(--color-card-border, rgba(16, 120, 190, 0.12));
    border-radius: var(--dash-radius-md, 0.5rem);
    background: var(--color-card-bg, #fff);
    color: var(--color-text-primary, #0d2d45);
    font-family: var(--font-body, Lato, sans-serif);
    font-size: 0.8125rem;
    cursor: pointer;
}

.dash-scope .notif-panel__retry:hover,
.dash-scope .notif-panel__retry:focus-visible {
    background: var(--color-hover-bg, rgba(16, 120, 190, 0.06));
    outline: none;
}

.dash-scope .notif-item {
    display: flex;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border: 0;
    border-radius: 10px;
    background: none;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.14s;
    color: inherit;
}

.dash-scope .notif-item:hover,
.dash-scope .notif-item:focus-visible {
    background: rgba(16, 120, 190, 0.06);
    outline: none;
}

.dash-scope .notif-item__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
    background: var(--color-brand-blue, #1078be);
}

.dash-scope .notif-item--read .notif-item__dot {
    background: var(--color-text-muted, #8aacbf);
    opacity: 0.45;
}

.dash-scope .notif-item__body {
    min-width: 0;
}

.dash-scope .notif-item__text {
    font-family: var(--font-body, Lato, sans-serif);
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--color-text-primary, #0d2d45);
}

.dash-scope .notif-item__meta {
    font-family: var(--font-body, Lato, sans-serif);
    font-size: 10.5px;
    color: var(--color-text-muted, #8aacbf);
    margin-top: 2px;
}

.dash-scope .notif-item__preview {
    font-family: var(--font-body, Lato, sans-serif);
    font-size: 12px;
    color: var(--color-text-secondary, #4a7a95);
    line-height: 1.4;
    margin-top: 4px;
}
