/* Таймлайн на основе карточек dashbox и кнопок исходного шаблона. */
.notifications__toolbar,
.notifications__actions,
.notifications__event-head,
.notifications__event-footer,
.notifications__detail-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
}
.notifications__toolbar {
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--hithd-border);
}
.notifications__intro.section__text { margin: 0; width: auto; font-size: 15px; }
.notifications__actions form,
.notifications__detail-actions form { margin: 0; }
.notifications__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    color: var(--hithd-muted);
    font-size: 14px;
    line-height: 20px;
}
.notifications__link svg { flex-shrink: 0; width: 18px; height: 18px; stroke: currentColor; }
.notifications__link:hover { color: var(--hithd-accent); }
.notifications .notifications__button {
    width: auto;
    min-width: 160px;
    height: 44px;
    margin: 0;
    padding: 0 24px;
}
.notifications__read {
    padding: 10px 16px;
    border: 1px solid var(--hithd-border);
    border-radius: 24px;
    color: var(--hithd-text);
}
.notifications__read:hover { border-color: var(--hithd-accent); }
.notifications__day + .notifications__day { margin-top: 12px; }
.notifications__date {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 0 16px;
    color: var(--hithd-text);
    font-size: 15px;
    font-weight: 500;
    line-height: 24px;
}
.notifications__date svg { width: 40px; height: 22px; stroke: var(--hithd-muted); }
.notifications__timeline { margin: 0; padding: 0; list-style: none; }
.notifications__event {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 20px;
    padding-bottom: 20px;
}
.notifications__event::before {
    content: '';
    position: absolute;
    top: -16px;
    bottom: 0;
    left: 19px;
    width: 2px;
    background: var(--hithd-border);
}
.notifications__event:last-child::before { bottom: 20px; }
.notifications__marker {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-top: 20px;
    border: 1px solid var(--hithd-border);
    border-radius: 50%;
    background: var(--hithd-background);
    color: var(--hithd-muted);
}
.notifications__marker svg { width: 20px; height: 20px; stroke: currentColor; }
.notifications__event--unread .notifications__marker {
    border-color: var(--hithd-accent);
    color: var(--hithd-accent);
}
.notifications .notifications__card {
    position: relative;
    margin-top: 0;
    padding: 20px 24px;
    border: 1px solid var(--hithd-border);
    gap: 12px;
}
.notifications__card-link { border-radius: inherit; }
.notifications__card-link:focus-visible { outline-offset: -4px !important; }
.notifications__card .notifications__read { position: relative; z-index: 4; }
.notifications__event--unread .notifications__card { border-color: rgba(var(--hithd-accent-rgb), .35); }
.notifications__event-head,
.notifications__event-footer { justify-content: space-between; width: 100%; }
.notifications__title {
    min-width: 0;
    margin: 0;
    color: var(--hithd-text);
    font-size: 17px;
    font-weight: 500;
    line-height: 26px;
    overflow-wrap: anywhere;
}
.notifications__event-head .notifications__title { flex: 1 1 240px; }
.notifications__status {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--hithd-muted);
    font-size: 12px;
    line-height: 20px;
}
.notifications__status--unread { color: var(--hithd-accent); }
.notifications__status--unread::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.notifications__time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--hithd-muted);
    font-size: 13px;
    line-height: 22px;
}
.notifications__time svg { width: 18px; height: 18px; stroke: currentColor; }
.notifications__pagination { display: flex; justify-content: center; margin: 12px 0 0 60px; }
.notifications .notifications__empty { align-items: center; gap: 16px; margin: 0; padding: 48px 20px; text-align: center; }
.notifications__empty-icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--hithd-background); }
.notifications__empty-icon svg { stroke: var(--hithd-accent); }
.notifications__empty .section__text { margin: 0; max-width: 400px; font-size: 15px; }
.notifications .notifications__detail { margin-top: 0; border: 1px solid var(--hithd-border); }
.notifications__detail-meta { flex-wrap: wrap; gap: 12px 20px; border-bottom-color: var(--hithd-border); }
.notifications__detail-body { width: 100%; min-width: 0; padding: 28px 30px; }
.notifications__detail-title { margin: 0; color: var(--hithd-text); font-size: 26px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.notifications__subtitle { margin: 28px 0 12px; color: var(--hithd-muted); font-size: 14px; font-weight: 400; line-height: 22px; }
.notifications__content-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--hithd-border); border-radius: 12px; overflow: hidden; }
.notifications__content-list li + li { border-top: 1px solid var(--hithd-border); }
.notifications__content-list a { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 14px 18px; color: var(--hithd-text); font-size: 16px; line-height: 24px; }
.notifications__content-list a:hover { color: var(--hithd-accent); background: var(--hithd-background); }
.notifications__content-list a:focus-visible { outline-offset: -4px !important; }
.notifications__content-list span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.notifications__content-list svg { flex-shrink: 0; width: 20px; height: 20px; stroke: var(--hithd-accent); }
.notifications__content-list svg:last-child { stroke: var(--hithd-muted); }
.notifications__detail-actions { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--hithd-border); }
@media (max-width: 575.98px) {
    .notifications__toolbar { align-items: flex-start; gap: 16px; margin-bottom: 24px; }
    .notifications__toolbar > .notifications__actions { gap: 12px; }
    .notifications__event { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding-bottom: 16px; }
    .notifications__event::before { left: 15px; }
    .notifications__event:last-child::before { bottom: 16px; }
    .notifications__marker { width: 32px; height: 32px; margin-top: 16px; }
    .notifications__marker svg { width: 16px; height: 16px; }
    .notifications__date { gap: 12px; }
    .notifications__date svg { width: 32px; }
    .notifications .notifications__card { padding: 16px; }
    .notifications__event-head { gap: 8px; }
    .notifications__title { font-size: 16px; line-height: 24px; }
    .notifications__event-footer { align-items: flex-start; gap: 8px; }
    .notifications__event-footer > .notifications__actions { gap: 12px; }
    .notifications__pagination { margin-left: 44px; }
    .notifications__detail-meta { padding: 18px 20px; }
    .notifications__detail-body { padding: 24px 20px; }
    .notifications__detail-title { font-size: 22px; }
    .notifications__detail-actions { gap: 16px; }
}
