.header-notification-modal {
    align-items: center;
    background: rgba(15, 23, 42, 0.55);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 100200;
}

.header-notification-modal.is-open {
    display: flex;
}

.header-notification-modal__dialog {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.25);
    max-height: 85vh;
    max-width: 620px;
    overflow: hidden;
    width: 100%;
}

.header-notification-modal__header {
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 16px 18px;
}

.header-notification-modal__header h2 {
    color: #0f172a;
    font-size: 19px;
    margin: 0;
}

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

.header-notification-modal__view-all {
    background: #2647c8;
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
    text-decoration: none;
    white-space: nowrap;
}

.header-notification-modal__view-all:hover,
.header-notification-modal__view-all:focus-visible {
    background: #1f3cae;
    color: #fff;
}

.header-notification-modal__close {
    align-items: center;
    background: #f1f5f9;
    border: 0;
    border-radius: 50%;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.header-notification-modal__close:hover {
    background: #e2e8f0;
}

.header-notification-modal__body {
    max-height: calc(85vh - 76px);
    overflow-y: auto;
    padding: 14px;
}

.header-notification-modal__state {
    align-items: center;
    color: #475569;
    display: flex;
    justify-content: center;
    min-height: 120px;
    text-align: center;
}

.header-notification-modal__list {
    display: grid;
    gap: 10px;
}

.header-notification-modal__item {
    --notification-accent: #2647c8;
    --notification-soft-bg: #f8fbff;
    --notification-border: #dbeafe;
    --notification-chip-bg: #eef2ff;
    --notification-chip-color: #1e3a8a;
    border: 1px solid var(--notification-border);
    background: var(--notification-soft-bg);
    border-radius: 12px;
    padding: 12px;
}

.header-notification-modal__item.is-unread {
    box-shadow: inset 0 0 0 1px var(--notification-border);
}

.header-notification-modal__item[data-type="info"] {
    --notification-accent: #2563eb;
    --notification-soft-bg: #f4f8ff;
    --notification-border: #bfdbfe;
    --notification-chip-bg: #dbeafe;
    --notification-chip-color: #1e40af;
}

.header-notification-modal__item[data-type="warning"] {
    --notification-accent: #d97706;
    --notification-soft-bg: #fffbeb;
    --notification-border: #fde68a;
    --notification-chip-bg: #fef3c7;
    --notification-chip-color: #92400e;
}

.header-notification-modal__item[data-type="alert"] {
    --notification-accent: #ea580c;
    --notification-soft-bg: #fff7ed;
    --notification-border: #fdba74;
    --notification-chip-bg: #ffedd5;
    --notification-chip-color: #9a3412;
}

.header-notification-modal__item[data-type="error"] {
    --notification-accent: #dc2626;
    --notification-soft-bg: #fef2f2;
    --notification-border: #fecaca;
    --notification-chip-bg: #fee2e2;
    --notification-chip-color: #991b1b;
}

.header-notification-modal__item[data-type="success"] {
    --notification-accent: #16a34a;
    --notification-soft-bg: #f0fdf4;
    --notification-border: #bbf7d0;
    --notification-chip-bg: #dcfce7;
    --notification-chip-color: #166534;
}

.header-notification-modal__item-meta {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.header-notification-modal__item-date {
    color: #64748b;
    font-size: 12px;
}

.header-notification-modal__item-type {
    background: var(--notification-chip-bg);
    border-radius: 999px;
    color: var(--notification-chip-color);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
}

.header-notification-modal__item-title {
    color: #0f172a;
    font-size: 15px;
    margin: 9px 0 6px;
}

.header-notification-modal__item-message {
    color: #334155;
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
}

.header-notification-modal__item-link {
    color: var(--notification-accent);
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    margin-top: 10px;
    text-decoration: none;
}

.header-notification-modal__item-link:hover {
    text-decoration: underline;
}

@media (max-width: 1279px) {
    .header-notification-modal {
        padding: 12px;
    }

    .header-notification-modal__dialog {
        max-height: 90vh;
    }

    .header-notification-modal__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-notification-modal__header-actions {
        justify-content: space-between;
        width: 100%;
    }

    .header-notification-modal__body {
        max-height: calc(90vh - 108px);
    }
}
