.header-account-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-center {
    position: relative;
    color: var(--lk-text, var(--title, #111));
}

:root[data-portal-session="authenticated"] .notification-center[hidden] {
    display: block !important;
    visibility: hidden;
    pointer-events: none;
}

.notification-bell {
    position: relative;
    width: 44px;
    height: 44px;
    border: 1px solid var(--lk-line, #d8d5ce);
    border-radius: 14px;
    background: var(--lk-soft, #fff);
    color: currentColor;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.notification-bell svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notification-bell:hover { border-color: #aaa; }
.notification-bell:focus-visible,
.notification-popover button:focus-visible,
.notification-popover a:focus-visible {
    outline: 3px solid #FFEE00;
    outline-offset: 2px;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 2px solid var(--lk-page-bg, #fff);
    border-radius: 999px;
    background: #FFEE00;
    color: #090909;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.lk-tab__count {
    width: 24px;
    min-width: 24px;
    height: 18px;
    margin: -3px 0 0 6px;
    padding: 0;
    border-radius: 999px;
    background: #FFEE00;
    color: #090909;
    display: inline-grid;
    place-items: center;
    font-size: 10px;
    line-height: 1;
}

.lk-tab__count[hidden] {
    display: inline-grid !important;
    visibility: hidden;
}

.notification-popover {
    position: absolute;
    z-index: 1100;
    top: calc(100% + 10px);
    right: 0;
    width: min(360px, calc(100vw - 24px));
    overflow: hidden;
    border: 1px solid var(--lk-line, #ddd);
    border-radius: 16px;
    background: var(--lk-soft, #fff);
    color: var(--lk-text, #111);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.notification-popover__head {
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--lk-line, #eee);
    font-size: 14px;
}

.notification-popover__body { min-height: 88px; }

.notification-preview-item {
    width: 100%;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding: 11px 14px;
    border: 0;
    border-bottom: 1px solid var(--lk-line, #eee);
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.notification-preview-item:hover { background: var(--lk-soft-2, #f7f6f2); }
.notification-priority { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 8px; border: 1px solid #d6c300; border-radius: 7px; background: #FFEE00; color: #292600; font-size: 11px; font-weight: 900; line-height: 1.3; letter-spacing: 0; text-transform: none; }
.notification-priority__icon { display: inline-grid; place-items: center; flex: 0 0 13px; width: 13px; height: 13px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 10px; font-weight: 900; line-height: 1; }
.notification-preview-item--important { background: linear-gradient(110deg, rgba(255, 238, 0, .13), transparent); }
.notification-preview-item--important .notification-preview-item__icon { background: #FFEE00; color: #292600; border-color: #d6c300; }
.notification-preview-item .notification-priority { margin-bottom: 6px; font-size: 10px; }
.notification-preview-item__icon {
    width: 34px;
    height: 34px;
    border: 1px solid var(--lk-line, #ddd);
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 800;
}
.notification-preview-item__content {
    display: block;
    min-width: 0;
}
.notification-preview-item__title,
.notification-preview-item__body { display: block; }
.notification-preview-item__title { font-size: 13px; line-height: 1.3; }
.notification-preview-item__body {
    margin-top: 3px;
    color: var(--lk-muted, #777);
    font-size: 11px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-popover__all {
    min-height: 44px;
    background: #FFEE00;
    color: #090909;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}
.notification-popover__all:hover { color: #090909; filter: brightness(.97); }

.notification-preview-status {
    min-height: 88px;
    padding: 22px 18px;
    color: var(--lk-muted, #777);
    display: grid;
    place-items: center;
    gap: 8px;
    text-align: center;
    font-size: 12px;
    line-height: 1.4;
}
.notification-preview-status button {
    border: 1px solid var(--lk-line, #ddd);
    border-radius: 9px;
    background: transparent;
    color: inherit;
    padding: 7px 10px;
    font-weight: 800;
    cursor: pointer;
}

:root[data-theme="dark"] .notification-bell,
:root[data-theme="dark"] .notification-popover {
    background: #151515;
    border-color: #343434;
    color: #fff;
}
:root[data-theme="dark"] .notification-preview-item:hover { background: #202020; }

@media (max-width: 767px) {
    .notification-popover {
        position: fixed;
        top: 76px;
        right: 12px;
        left: 12px;
        width: auto;
    }
}
