.header-notifications { position: relative; flex: 0 0 auto; font-size: .83rem; text-align: start; }
.notification-trigger { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; cursor: pointer; list-style: none; border: 1px solid #d5dfeb; border-radius: 12px; color: #536b83; background: linear-gradient(#fff, #eef3f8); }
.notification-trigger::-webkit-details-marker { display: none; }
.notification-trigger>svg { width: 23px; height: 23px; }
.notification-trigger:hover, .header-notifications[open] .notification-trigger { color: #315777; border-color: #9fb8d0; background: #e9f1f8; }
.notification-badge { position: absolute; top: -5px; inset-inline-start: -6px; min-width: 20px; padding: 1px 5px; border: 2px solid #fff; border-radius: 12px; color: #783f47; background: #f3dfe2; font-size: .67rem; font-weight: 700; line-height: 1.5; text-align: center; }
.notification-panel { position: absolute; top: calc(100% + 9px); inset-inline-end: 0; width: 350px; max-width: calc(100vw - 24px); max-height: min(460px, calc(100dvh - var(--site-header-height, 140px) - 24px)); overflow: auto; z-index: 1250; border: 1px solid #d1ddea; border-radius: 14px; background: #fff; box-shadow: 0 12px 32px #263e6026; overscroll-behavior: contain; }
.header-notifications.is-enhanced .notification-panel { position: fixed; inset-inline-end: auto; }
.notification-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border-bottom: 1px solid #dce5ef; background: #edf3f9; }
.notification-heading strong { font-size: .91rem; }
.notification-heading>span { color: #6b7c8e; font-size: .76rem; }
.notification-list { display: grid; gap: 4px; padding: 6px; }
.notification-list:empty { padding: 0; }
.notification-entry { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 8px; background: #f5f1f9; color: #3b5f80; line-height: 1.75; text-decoration: none; }
.notification-entry:nth-child(5n+2) { background: #edf4fa; }
.notification-entry:nth-child(5n+3) { background: #f2f7ee; }
.notification-entry:nth-child(5n+4) { background: #fbf5eb; }
.notification-entry:nth-child(5n+5) { background: #fcf0ed; }
.notification-entry>strong { flex: 0 0 auto; min-width: 25px; padding-inline: 5px; border: 1px solid #d3deea; border-radius: 8px; background: #ffffffc9; font-size: .8rem; text-align: center; }
.notification-entry:hover { box-shadow: inset 0 0 0 1px #b4c8db; }
.notification-empty { margin: 0; padding: 23px 13px; text-align: center; color: #6d7f8e; }
.notification-footer { display: block; padding: 9px 13px; border-top: 1px solid #dce5ef; text-align: center; color: #426b91; font-size: .78rem; }
.notification-footer:hover { background: #f4f8fc; }
.notification-trigger:focus-visible, .notification-panel a:focus-visible { outline: 2px solid #6386a1; outline-offset: 2px; }
.notification-panel a:focus-visible { outline-offset: -2px; }
.header-notifications [hidden] { display: none; }
@media (max-width: 600px) {
 .notification-panel { position: fixed; left: 12px; right: 12px; top: calc(var(--site-header-height, 140px) + 6px); width: auto; }
 .header-notifications.is-enhanced .notification-panel { right: auto; width: 350px; }
 .notification-trigger { width: 36px; height: 36px; }
}
