.notification-center[hidden] {
    display: none !important;
}

.notification-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sidebar-shell.is-notification-center-open {
    padding: 16px 14px 18px;
    overflow: hidden;
}

.sidebar-shell.is-notification-center-open .logo,
.sidebar-shell.is-notification-center-open .menu,
.sidebar-shell.is-notification-center-open .sidebar-footer,
.sidebar-shell.is-notification-center-open .mobile-sidebar-close,
.sidebar-shell.is-notification-center-open .page-scroll-top {
    display: none;
}

.notification-center {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    color: #edf3ff;
}

.notification-center-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 0 2px 13px;
    border-bottom: 1px solid rgba(151, 173, 215, 0.16);
}

.notification-center-back,
.notification-center-read-all,
.notification-center-tab,
.notification-center-load-more,
.notification-center-retry,
.notification-preview-main {
    font-family: inherit;
    cursor: pointer;
}

.notification-center-back {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-height: 36px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #e8efff;
}

.notification-center-back:hover,
.notification-center-back:focus-visible {
    border-color: rgba(142, 169, 222, 0.2);
    background: rgba(93, 121, 174, 0.16);
    color: #ffffff;
}

.notification-center-back svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notification-center-title {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #f6f8ff;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-center-read-all {
    min-height: 32px;
    margin-left: auto;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #bcd0f3;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
}

.notification-center-read-all:hover:not(:disabled),
.notification-center-read-all:focus-visible:not(:disabled) {
    border-color: rgba(137, 169, 226, 0.22);
    background: rgba(92, 120, 181, 0.16);
    color: #ffffff;
}

.notification-center-read-all:disabled {
    border-color: transparent;
    background: transparent;
    color: rgba(162, 180, 214, 0.44);
    box-shadow: none;
    opacity: 1;
    cursor: default;
}

.notification-center-controls {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 6px;
    padding: 14px 2px 12px;
}

.notification-center-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    padding: 3px;
    border: 1px solid rgba(131, 153, 201, 0.14);
    border-radius: 10px;
    background: rgba(20, 29, 46, 0.3);
}

.notification-center-tab {
    min-height: 31px;
    padding: 5px 9px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #adbbd4;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.1;
}

.notification-center-tab:hover,
.notification-center-tab:focus-visible {
    border-color: rgba(165, 178, 204, 0.28);
    background: rgba(122, 135, 160, 0.14);
    color: #edf4ff;
}

.notification-center-tab[aria-selected="true"] {
    border-color: rgba(165, 178, 204, 0.24);
    background: rgba(122, 135, 160, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
    color: #edf2ff;
}

.notification-center-tab[aria-selected="true"]:hover,
.notification-center-tab[aria-selected="true"]:focus-visible {
    border-color: rgba(181, 192, 215, 0.34);
    background: rgba(133, 146, 171, 0.26);
}

.notification-center-tab:focus-visible {
    outline: 2px solid rgba(201, 208, 220, 0.48);
    outline-offset: 2px;
}

.notification-module-filter {
    position: relative;
    margin-left: 0;
}

.notification-module-filter .project-filter-chip {
    min-height: 37px;
    max-width: 175px;
    padding-right: 10px;
}

.notification-module-filter-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-module-filter .project-filter-popover {
    position: absolute;
    top: calc(100% + 7px);
    right: auto;
    left: 0;
    z-index: 12;
    --project-filter-popover-width: 214px;
}

.notification-module-filter .project-filter-popover-option {
    min-height: 31px;
    color: #dce7fb;
    cursor: pointer;
}

.notification-center-scroll {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 2px 2px 4px;
    scrollbar-gutter: stable;
}

.notification-center-status {
    margin: 7px 4px 12px;
    color: #aebbd3;
    font-size: 13px;
    line-height: 1.45;
}

.notification-center-status[hidden] {
    display: none;
}

.notification-center-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.notification-center-empty {
    margin: 16px 4px;
    padding: 17px 15px;
    border: 1px dashed rgba(138, 162, 207, 0.2);
    border-radius: 13px;
    background: rgba(37, 49, 74, 0.25);
    color: #b8c5dc;
}

.notification-center-empty-title {
    display: block;
    margin-bottom: 6px;
    color: #eef4ff;
    font-size: 14px;
    font-weight: 700;
}

.notification-center-empty-copy {
    margin: 0;
    font-size: 12px;
    line-height: 1.48;
}

.notification-item {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 10px;
    width: 100%;
    padding: 11px 10px 11px 11px;
    overflow: hidden;
    border: 1px solid rgba(128, 150, 195, 0.12);
    border-radius: 12px;
    background: rgba(48, 63, 92, 0.28);
    color: #ecf3ff;
    text-align: left;
}

.notification-item:hover,
.notification-item:focus-visible {
    border-color: rgba(135, 166, 228, 0.28);
    background: rgba(61, 82, 123, 0.42);
}

.notification-item.is-read {
    border-color: rgba(119, 139, 179, 0.08);
    background: rgba(37, 48, 72, 0.2);
    color: #bdc9dc;
}

.notification-item-indicator {
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    width: 19px;
    padding-top: 4px;
}

.notification-item-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #7d9ff0;
    box-shadow: 0 0 0 3px rgba(125, 159, 240, 0.12);
}

.notification-item.is-read .notification-item-dot {
    width: 6px;
    height: 6px;
    background: #7e8ba3;
    box-shadow: none;
    opacity: 0.7;
}

.notification-item-main {
    min-width: 0;
}

.notification-item-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.notification-item-title-row,
.notification-item-meta {
    display: flex;
    align-items: baseline;
    gap: 7px;
    min-width: 0;
}

.notification-item-title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: inherit;
    font-size: 13px;
    font-weight: 720;
    line-height: 1.34;
}

.notification-item-count {
    flex: 0 0 auto;
    padding: 1px 5px;
    border-radius: 999px;
    background: rgba(127, 153, 210, 0.2);
    color: #d8e5ff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.35;
}

.notification-item-body {
    display: -webkit-box;
    margin: 4px 0 0;
    overflow: hidden;
    color: #b9c7de;
    font-size: 12px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.notification-item.is-read .notification-item-body {
    color: #96a5be;
}

.notification-item-meta {
    flex-wrap: wrap;
    margin-top: 7px;
    color: #8fa2c4;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.25;
}

.notification-item-severity {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.notification-item-severity::before {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
    content: "";
}

.notification-item[data-severity="success"] .notification-item-severity {
    color: #7fc99e;
}

.notification-item[data-severity="warning"] .notification-item-severity {
    color: #efc76e;
}

.notification-item[data-severity="error"] .notification-item-severity {
    color: #ef969c;
}

.notification-item[data-severity="info"] .notification-item-severity {
    color: #9cb9ee;
}

.notification-center-load-more,
.notification-center-retry {
    min-height: 36px;
    margin: 12px 3px 3px;
    padding: 7px 12px;
    border: 1px solid rgba(139, 165, 219, 0.18);
    border-radius: 9px;
    background: rgba(76, 98, 144, 0.2);
    color: #d9e6ff;
    font-size: 12px;
    font-weight: 650;
}

.notification-center-load-more:hover,
.notification-center-load-more:focus-visible,
.notification-center-retry:hover,
.notification-center-retry:focus-visible {
    border-color: rgba(153, 183, 240, 0.28);
    background: rgba(82, 109, 165, 0.35);
    color: #ffffff;
}

.notification-preview-region {
    position: fixed;
    z-index: 200;
    top: auto;
    bottom: 24px;
    right: 24px;
    left: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(312px, calc(100vw - 48px));
    pointer-events: none;
}

.notification-preview {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px 11px;
    border: 1px solid rgba(132, 161, 216, 0.3);
    border-radius: 12px;
    background: #203049;
    box-shadow: 0 14px 28px rgba(3, 8, 20, 0.3);
    color: #edf4ff;
    pointer-events: auto;
}

.notification-preview[data-severity="success"] {
    border-color: rgba(106, 207, 143, 0.42);
}

.notification-preview[data-severity="warning"] {
    border-color: rgba(229, 188, 91, 0.46);
}

.notification-preview[data-severity="error"] {
    border-color: rgba(233, 131, 143, 0.48);
}

.notification-preview-content {
    display: block;
    min-width: 0;
}

.notification-preview-main {
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
}

.notification-preview-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    font-weight: 740;
    line-height: 1.32;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.notification-preview-body {
    display: -webkit-box;
    margin: 3px 0 0;
    overflow: hidden;
    color: #c2d0e7;
    font-size: 12px;
    line-height: 1.32;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.notification-preview--transient {
    align-items: center;
}

.notification-preview-transient-message {
    display: -webkit-box;
    overflow: hidden;
    color: #e4ecfa;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.34;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.notification-preview-main:hover .notification-preview-title,
.notification-preview-main:focus-visible .notification-preview-title {
    color: #ffffff;
}

.notification-preview-close-icon {
    align-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #b7c4da;
    cursor: pointer;
}

.notification-preview-close-icon:hover,
.notification-preview-close-icon:focus-visible {
    background: rgba(123, 145, 189, 0.2);
    color: #ffffff;
}

.notification-preview-close-icon svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.notification-center-back:focus-visible,
.notification-center-read-all:focus-visible,
.notification-center-load-more:focus-visible,
.notification-center-retry:focus-visible,
.notification-preview-main:focus-visible,
.notification-preview-close-icon:focus-visible {
    outline: 2px solid rgba(160, 192, 248, 0.7);
    outline-offset: 2px;
}

@media (max-width: 900px) {
    :root.notification-center-open,
    :root.notification-center-open > body.notification-center-open {
        overflow: hidden;
        overscroll-behavior: none;
    }

    body.notification-center-open .layout > .sidebar > .sidebar-shell.is-notification-center-open {
        position: fixed;
        inset: 0;
        z-index: 620;
        width: 100%;
        min-height: 100dvh;
        height: 100dvh;
        max-height: none;
        overflow: hidden;
        scrollbar-gutter: auto;
        border-right: 0;
        border-bottom: 0;
    }

    .notification-center {
        min-height: 0;
    }

    .notification-module-filter .project-filter-popover {
        right: auto;
        left: 0;
    }

    .notification-preview-region {
        top: auto;
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: auto;
    }
}

@media (max-width: 420px) {
    .notification-center-controls {
        align-items: stretch;
    }

    .notification-module-filter {
        width: 100%;
        margin-left: 0;
    }

    .notification-module-filter .project-filter-chip {
        justify-content: space-between;
        width: 100%;
        max-width: none;
    }

    .notification-module-filter .project-filter-popover {
        right: auto;
        left: 0;
        width: 100%;
        max-width: none;
    }

    .notification-center-header {
        gap: 5px;
    }

    .notification-center-read-all {
        padding-right: 4px;
        padding-left: 4px;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .notification-center-back,
    .notification-center-read-all,
    .notification-center-tab,
    .notification-item,
    .notification-preview-main {
        transition: none;
    }
}
