.oa-notification-badge[hidden],
.oa-notification-preview [hidden],
.oa-notification-preview[hidden] {
    display: none !important;
}

body.oa-sidebar-07 .header-btn.oa-notification-trigger[aria-expanded="true"] {
    color: #18181b;
    background: #f4f4f5;
}

.oa-notification-preview {
    position: fixed;
    inset: var(--notification-preview-top, 52px) min(var(--notification-preview-right, 12px), max(8px, 100vw - 408px)) auto auto;
    z-index: 1600;
    display: flex;
    flex-direction: column;
    width: min(400px, calc(100vw - 16px));
    max-height: min(520px, calc(100vh - var(--notification-preview-top, 52px) - 12px));
    max-height: min(520px, calc(100dvh - var(--notification-preview-top, 52px) - 12px));
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    color: #27272a;
    background: #fff;
    box-shadow: 0 12px 32px rgba(24, 24, 27, .15), 0 2px 6px rgba(24, 24, 27, .08);
    text-align: left;
    line-height: 1.5;
}

.oa-notification-preview-heading,
.oa-notification-preview-footer {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 8px 14px;
}

.oa-notification-preview-heading {
    justify-content: space-between;
    border-bottom: 1px solid #e4e4e7;
}

.oa-notification-preview-heading h2 {
    margin: 0;
    color: #18181b;
    font-size: 16px;
    font-weight: 650;
}

.oa-notification-preview-close,
.oa-notification-preview-retry {
    border: 0;
    border-radius: 6px;
    color: #3f3f46;
    background: #f4f4f5;
    font: inherit;
    cursor: pointer;
}

.oa-notification-preview-close {
    padding: 0;
    width: 32px;
    height: 32px;
    font-size: 21px;
    line-height: 1;
}

.oa-notification-preview-feedback {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 14px;
}

.oa-notification-preview-status {
    margin: 0;
    color: #52525b;
    font-size: 13px;
}

.oa-notification-preview-retry {
    padding: 4px 8px;
    font-size: 13px;
}

.oa-notification-preview-list {
    flex: 0 1 auto;
    min-height: 0;
    margin: 0;
    padding: 0 4px;
    overflow: auto;
    overscroll-behavior: contain;
    list-style: none;
    scroll-padding-block: 4px;
}

.oa-notification-preview-item {
    margin: 0;
    padding: 0;
}

.oa-notification-preview-item + .oa-notification-preview-item {
    border-top: 1px solid #f4f4f5;
}

.oa-notification-preview-entry {
    display: grid;
    width: 100%;
    gap: 3px;
    box-sizing: border-box;
    padding: 9px 10px;
    border: 0;
    border-radius: 6px;
    color: #27272a;
    background: transparent;
    text-align: left;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
}

.oa-notification-preview-entry:hover,
.oa-notification-preview-close:hover,
.oa-notification-preview-retry:hover {
    color: #18181b;
    background: #f4f4f5;
}

.oa-notification-preview-title,
.oa-notification-preview-content {
    overflow: hidden;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.oa-notification-preview-title {
    color: #18181b;
    font-size: 14px;
    font-weight: 620;
}

.oa-notification-preview-content {
    color: #52525b;
    font-size: 13px;
}

.oa-notification-preview-content:empty { display: none; }

.oa-notification-preview-entry[aria-expanded="true"] .oa-notification-preview-content {
    display: block;
    white-space: pre-wrap;
}

.oa-notification-preview-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #71717a;
    font-size: 11px;
}

.oa-notification-preview-item[data-unread="true"] .oa-notification-preview-read-state {
    color: #b91c1c;
    font-weight: 650;
}

.oa-notification-preview a.oa-notification-preview-entry .oa-notification-preview-title::after {
    margin-left: .35em;
    content: '›';
    color: #52525b;
    font-size: 12px;
}

.oa-notification-preview-entry[aria-expanded] .oa-notification-preview-title::after {
    margin-left: .35em;
    content: '⌄';
    color: #52525b;
    font-size: 12px;
}

.oa-notification-preview-entry[aria-expanded="true"] .oa-notification-preview-title::after { content: '⌃'; }

.oa-notification-preview-footer {
    justify-content: center;
    border-top: 1px solid #e4e4e7;
}

.oa-notification-preview-all {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 8px;
    border-radius: 6px;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.oa-notification-preview-all:hover { background: #eff6ff; }

.oa-notification-preview :focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: -2px;
}

@media (max-width: 440px) {
    .oa-notification-preview {
        left: 8px;
        right: 8px;
        width: auto;
    }
}
