.notification-menu {
    align-items: stretch;
    display: flex;
    position: relative;
}
.notification-menu > summary {
    align-items: center;
    border-radius: 0;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    list-style: none;
    min-height: 53px;
    min-width: 48px;
    padding: 0 10px;
    position: relative;
}
.notification-menu > summary::-webkit-details-marker { display: none; }
.notification-menu > summary:hover,
.notification-menu[open] > summary { background: rgba(255,255,255,.14); }
.notification-menu > summary > svg { display: block; fill: none; height: 19px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; width: 19px; }
.notification-menu > summary b {
    background: #e94743;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 17px;
    min-width: 17px;
    padding: 0 4px;
    position: absolute;
    right: 1px;
    text-align: center;
    top: 4px;
}
.notification-dropdown {
    background: #fff;
    border: 1px solid var(--cs-line-strong);
    border-radius: 0 0 6px 6px;
    box-shadow: var(--cs-shadow-raised);
    color: var(--cs-text);
    max-height: min(520px, calc(100vh - 80px));
    overflow-y: auto;
    position: absolute;
    right: 0;
    top: 53px;
    width: min(430px, calc(100vw - 20px));
    z-index: 150;
}
.notification-dropdown > header,
.notification-dropdown > footer {
    align-items: center;
    background: var(--cs-surface-alt);
    display: flex;
    justify-content: space-between;
    padding: 9px 11px;
}
.notification-dropdown > header { border-bottom: 1px solid var(--cs-line); }
.notification-dropdown > footer { border-top: 1px solid var(--cs-line); justify-content: center; }
.notification-dropdown > header strong { color: var(--cs-ink); font-size: 12px; }
.notification-dropdown a { color: var(--cs-primary-dark); text-decoration: none; }
.notification-item {
    align-items: start;
    background: #fff;
    border-bottom: 1px solid var(--cs-line);
    box-sizing: border-box;
    display: grid;
    gap: 8px;
    grid-template-columns: 9px minmax(0, 1fr);
    padding: 9px 11px;
    width: 100%;
}
.notification-item:hover { background: #f7fafc; }
.notification-item.unread { background: #eef7fc; }
.notification-kind {
    background: var(--cs-primary);
    border-radius: 50%;
    display: block;
    height: 7px;
    margin-top: 4px;
    width: 7px;
}
.notification-kind.warning { background: var(--cs-accent); }
.notification-item > span { display: grid; gap: 2px; min-width: 0; width: 100%; }
.notification-item strong { color: var(--cs-ink); font-size: 10px; line-height: 1.3; }
.notification-item small { color: var(--cs-muted); font-size: 9px; line-height: 1.35; overflow-wrap: anywhere; }
.notification-item time { color: var(--cs-muted); font-size: 8px; }
.notification-empty { color: var(--cs-muted); margin: 0; padding: 16px; text-align: center; }
@media (max-width: 980px) {
    .notification-menu > summary { min-height: 38px; }
    .notification-dropdown { top: 38px; }
}
@media (max-width: 720px) {
    .notification-menu { width: 100%; }
    .notification-menu > summary { justify-content: flex-start; min-height: 40px; width: 100%; }
    .notification-dropdown { left: 0; right: auto; top: 40px; width: 100%; }
}
