/* ============================================================================
   УВЕДОМЛЕНИЯ - СТИЛИ
   ============================================================================ */

/* Кнопка колокольчика в шапке */
.notifications-bell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.notifications-bell:hover {
    background: var(--surface-control);
    color: var(--text-primary);
}

.notifications-bell i {
    font-size: var(--font-size-base);
    position: relative;
    z-index: 1;
}

/* Desktop chrome (app rail header): зона как gc-btn-icon-sm (32), глиф 18 не сжимаем */
.notifications-bell--chrome {
    width: var(--gc-dropdown-icon-toggle-size-sm);
    height: var(--gc-dropdown-icon-toggle-size-sm);
    min-width: var(--gc-dropdown-icon-toggle-size-sm);
    min-height: var(--gc-dropdown-icon-toggle-size-sm);
    border-radius: var(--gc-btn-icon-radius-sm);
    padding: 0;
    background-color: transparent;
    border: none;
    color: var(--text-primary);
    box-shadow: none;
    transition:
        background-color var(--transition-fast) var(--ease-in-out),
        color var(--transition-fast) var(--ease-in-out);
}

.notifications-bell--chrome:hover,
.notifications-bell--chrome:focus-visible,
.notifications-bell--chrome[aria-current="page"],
.gc-app-desktop-notifications:has(.notifications-dropdown.show) .notifications-bell--chrome {
    background-color: var(--surface-row-hover);
    color: var(--text-primary);
}

.notifications-bell--chrome:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px var(--surface-canvas),
        0 0 0 4px rgba(var(--accent-link-rgb), 0.4);
}

.notifications-bell--chrome i {
    font-size: var(--font-size-18);
}

/* Счётчик в ряд с глифом. Клик — вся кнопка; фон ховера только у числа. */
.notifications-bell--chrome.notifications-bell--with-count {
    width: auto;
    gap: var(--space-1-5);
    padding-inline: var(--space-2);
}

.notifications-bell--chrome.notifications-bell--with-count:hover,
.notifications-bell--chrome.notifications-bell--with-count:focus-visible,
.notifications-bell--chrome.notifications-bell--with-count[aria-current="page"],
.notifications-bell--chrome.notifications-bell--with-count[aria-expanded="true"],
.gc-app-desktop-notifications:has(.notifications-dropdown.show) .notifications-bell--chrome.notifications-bell--with-count {
    background-color: transparent;
}

.notifications-bell__count {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--space-6);
    height: calc(var(--space-4) + var(--space-1));
    padding-inline: var(--space-2);
    border-radius: var(--radius-full);
    background-color: var(--accent-link);
    font-size: var(--font-size-13);
    font-weight: 500;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--text-on-solid);
    transition: background-color var(--transition-fast) var(--ease-in-out);
}

.notifications-bell--chrome.notifications-bell--with-count:hover .notifications-bell__count,
.notifications-bell--chrome.notifications-bell--with-count:focus-visible .notifications-bell__count,
.notifications-bell--chrome.notifications-bell--with-count[aria-current="page"] .notifications-bell__count,
.notifications-bell--chrome.notifications-bell--with-count[aria-expanded="true"] .notifications-bell__count,
.gc-app-desktop-notifications:has(.notifications-dropdown.show) .notifications-bell--chrome.notifications-bell--with-count .notifications-bell__count {
    background-color: var(--accent-link-hover);
    color: var(--text-on-solid);
}

/* Точка на углу: кольцо = фон rail (Surface/Primary), не серый hover кнопки */
.notifications-bell-dot {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--accent-link);
    box-shadow: 0 0 0 2px var(--surface-primary);
    transform: translate(38%, -38%);
    pointer-events: none;
}

.notifications-bell-dot.hidden {
    display: none;
}

/* App rail: панель fixed справа от stack — позиция через notifications.js + gcPositionRailSidePanel */
@media (min-width: 992px) {
    .notifications-dropdown.notifications-dropdown--rail-anchor {
        position: static;
        margin: 0;
        z-index: auto;
    }

    .notifications-dropdown--rail-anchor .notifications-dropdown-panel {
        z-index: var(--z-notification);
    }
}

/* Бейдж: тот же овальный counter, что .gc-badge-counter (badges.css) */
.notifications-badge {
    position: absolute;
    top: var(--space-product-2);
    right: var(--space-product-2);
    z-index: 2;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: calc(var(--space-4) + var(--space-1) + var(--space-2)); /* 28 */
    height: calc(var(--space-4) + var(--space-1)); /* 20 */
    padding: 0 var(--space-2);
    border: none;
    border-radius: var(--radius-full);
    background: var(--accent-link);
    color: var(--text-on-solid);
    font-size: var(--font-size-11);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    line-height: 1;
    pointer-events: none;
    box-shadow: 0 0 0 2px var(--surface-panel);
    transform: translate(18%, -18%);
}

.notifications-badge.hidden {
    display: none;
}

/* Мобильный навбар: точка на 40×40 icon, без кольца (серый фон кнопки) */
.gc-nav-icon .notifications-bell-dot {
    transform: translate(12%, -12%);
    box-shadow: none;
}

.gc-three-col-subheader__notify {
    position: relative;
}

.gc-three-col-subheader__notify .notifications-bell-dot {
    transform: translate(12%, -12%);
    box-shadow: none;
}

/* Якорь в разметке (десктоп переносит #notificationsDropdown в навбар; узел остаётся в DOM) */
.notifications-dropdown-host {
    position: static;
}

/* Корень: класс .show — единая точка открытия (десктоп и адаптив) */
.notifications-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px; /* Отступ от кнопки на десктопе */
    z-index: var(--z-modal);
    display: none;
    pointer-events: none;
}

.notifications-dropdown.show {
    display: block;
    pointer-events: auto;
}

/* Затемнение — только на адаптиве (как ::before у gc-modal) */
.notifications-dropdown-backdrop {
    display: none;
}

/* Визуальная «карточка» под колокольчиком / нижний sheet на мобильных */
.notifications-dropdown-panel {
    width: 380px;
    max-height: 480px;
    color: var(--gc-dropdown-menu-text);
    background: var(--gc-dropdown-menu-bg);
    border: 1px solid var(--gc-dropdown-menu-border);
    border-radius: var(--radius-16);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(var(--gc-dropdown-menu-blur)) saturate(var(--gc-dropdown-menu-saturate));
    -webkit-backdrop-filter: blur(var(--gc-dropdown-menu-blur)) saturate(var(--gc-dropdown-menu-saturate));
}

@media (min-width: 768px) {
    .notifications-dropdown.show:not(.notifications-dropdown--rail-anchor) .notifications-dropdown-panel {
        animation: dropdown-fade-in 0.2s ease;
    }
}

@keyframes dropdown-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Заголовок dropdown */
.notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-4);
    border-bottom: 1px solid var(--gc-dropdown-menu-border);
    flex-shrink: 0; /* Не сжимается */
}

.notifications-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gc-dropdown-menu-text);
    margin: 0;
}

.notifications-actions {
    display: flex;
    gap: var(--space-2);
}

.notifications-action-btn {
    background: transparent;
    border: none;
    color: var(--gc-dropdown-menu-text-muted);
    font-size: var(--font-size-14);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-8);
    transition: all 0.2s;
}

.notifications-action-btn:hover {
    background: var(--gc-dropdown-item-hover-bg);
    color: var(--accent-link);
}

/* Список уведомлений */
.notifications-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    max-height: 400px;
}

@media (min-width: 992px) {
    .notifications-dropdown--rail-anchor .notifications-list {
        max-height: none;
    }
}

.notifications-list::-webkit-scrollbar {
    width: 6px;
}

.notifications-list::-webkit-scrollbar-track {
    background: transparent;
}

.notifications-list::-webkit-scrollbar-thumb {
    background: var(--gc-dropdown-item-icon-border);
    border-radius: var(--radius-8);
}

@supports not (backdrop-filter: blur(1px)) {
    .notifications-dropdown-panel {
        background: var(--gc-dropdown-menu-bg-fallback);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* Контент внутри glass-панели — chromatic on-dark */
.notifications-dropdown-panel .notification-item {
    border-bottom: 1px solid var(--gc-dropdown-menu-border);
}

.notifications-dropdown-panel .notification-item:hover {
    background: var(--gc-dropdown-item-hover-bg);
}

.notifications-dropdown-panel .notification-message {
    color: var(--gc-dropdown-menu-text);
}

.notifications-dropdown-panel .notification-time,
.notifications-dropdown-panel .notification-delete-btn,
.notifications-dropdown-panel .notification-icon i,
.notifications-dropdown-panel .notification-avatar-placeholder,
.notifications-dropdown-panel .notification-avatar-placeholder i,
.notifications-dropdown-panel .notification-avatar-small-placeholder {
    color: var(--gc-dropdown-menu-text-muted);
}

.notifications-dropdown-panel .notification-avatar-main,
.notifications-dropdown-panel .notification-avatar-placeholder,
.notifications-dropdown-panel .notification-avatar-small,
.notifications-dropdown-panel .notification-avatar-small-placeholder,
.notifications-dropdown-panel .notification-icon-user-avatar,
.notifications-dropdown-panel .notification-icon {
    background: var(--gc-dropdown-item-icon-bg);
    border-color: var(--gc-dropdown-item-icon-border);
}

.notifications-dropdown-panel .notification-avatar-small,
.notifications-dropdown-panel .notification-avatar-small-placeholder,
.notifications-dropdown-panel .notification-icon-user-avatar {
    border-color: var(--gc-dropdown-menu-bg-fallback);
}

.notifications-dropdown-panel .notifications-close-mobile {
    background: var(--gc-dropdown-item-icon-bg);
    color: var(--gc-dropdown-menu-text);
}

/* Одно уведомление */
.notification-item {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-4);
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-subtle);
    /* Меньше задержка/двойной тап на iOS при клике по строке в скролле */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: var(--surface-control);
}

/* Непрочитанные уведомления без фона - только точка */
/* .notification-item.unread - без стилей, для семантики */

/* Аватар уведомления */
.notification-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.notification-avatar-main {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface-control);
    box-sizing: border-box;
}

/* Плейсхолдер если нет аватарки (нейтральный фон — без per-type hex из JS) */
.notification-avatar .notification-avatar-placeholder {
    display: none;
}

.notification-avatar.notification-avatar--fallback .notification-avatar-main {
    display: none !important;
}

.notification-avatar.notification-avatar--fallback .notification-avatar-placeholder {
    display: flex;
}

.notification-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-20);
    font-weight: 600;
    line-height: 1;
    background: var(--surface-control);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.notification-avatar-placeholder i {
    color: var(--text-secondary);
}

/* Маленькая аватарка пользователя в правом нижнем углу */
.notification-avatar-small {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--surface-panel);
    object-fit: cover;
    background: var(--surface-control);
    box-sizing: border-box;
}

/* Маленький плейсхолдер */
.notification-avatar-small-placeholder {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--surface-panel);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-12);
    font-weight: 600;
    line-height: 1;
    color: var(--text-secondary);
    background: var(--surface-control);
    box-shadow: inset 0 0 0 1px var(--border-subtle);
}

/* Маленькая аватарка для иконки */
.notification-icon-user-avatar {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--surface-panel);
    object-fit: cover;
    background: var(--surface-control);
}

/* Fallback иконка (если нет аватарок) */
.notification-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
    background: var(--surface-control);
    position: relative;
}

.notification-icon i {
    color: var(--text-secondary);
}

/* Контент уведомления */
.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-message {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-line;
}

.notification-time {
    font-size: var(--font-size-14);
    color: var(--text-secondary);
}

/* Индикатор непрочитанного — по центру аватара при flex-start */
.notification-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-link);
    flex-shrink: 0;
    margin-top: calc((var(--gc-list-media-size) - 8px) / 2);
}

/* Многострочная строка: аватар и actions к верху, не «плавают» по центру */
.gc-notifications-row {
    align-items: flex-start;
}

.gc-notifications-row > .gc-list-item-trigger {
    align-items: flex-start;
}

.gc-notifications-row > .gc-list-actions {
    padding-top: var(--space-1);
}

/* Короткий заголовок — одна строка */
.gc-notifications-row .gc-list-content--multiline > .gc-list-title,
.gc-notifications-row .gc-list-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gc-notifications-row--unread .gc-list-title {
    font-weight: 500;
}

/* Развёрнутая подпись: до 5 строк, с \\n из заявки/причины */
.gc-notifications-row .gc-list-content--multiline > .gc-notifications-row__body,
.gc-notifications-row .gc-notifications-row__body {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-line;
}

.gc-notifications-row .gc-notifications-row__time {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (hover: hover) and (pointer: fine) {
    .gc-notifications-row .gc-list-actions {
        opacity: 0;
        transition: opacity var(--transition-fast) var(--ease-in-out);
    }

    .gc-notifications-row:hover .gc-list-actions,
    .gc-notifications-row:focus-within .gc-list-actions {
        opacity: 1;
    }
}

/*
 * Inbox ≥992: плавающая карточка справа от app rail.
 * Свой inset space/2 и radius-16 (оболочка rail — full-bleed, без скругления).
 * Surface/Primary. z-index ниже rail (1025) — выезд из-под него, не из края окна.
 */
@media (min-width: 992px) {
    .gc-notifications-column {
        --gc-notifications-column-width: var(--layout-context-rail-chrome-width);
        --gc-notifications-column-inset: var(--space-2);
        position: fixed;
        top: var(--gc-notifications-column-inset);
        left: calc(var(--layout-app-rail-chrome-width) + var(--gc-notifications-column-inset));
        bottom: var(--gc-notifications-column-inset);
        z-index: 1024;
        display: flex;
        flex-direction: column;
        width: var(--gc-notifications-column-width);
        height: calc(100dvh - (var(--gc-notifications-column-inset) * 2));
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        overflow: hidden;
        color: var(--text-primary);
        background: var(--surface-primary);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-16);
        animation: gc-notifications-column-in var(--transition-base) var(--ease-out) both;
    }

    .gc-notifications-column--leave {
        animation: gc-notifications-column-out var(--transition-base) var(--ease-in) both;
        pointer-events: none;
    }
}

.gc-notifications-column__header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex: 0 0 auto;
    height: var(--layout-app-chrome-header-height);
    padding-inline: var(--space-4);
    box-sizing: border-box;
    border-bottom: 1px solid var(--border-subtle);
}

.gc-notifications-column__title {
    margin: 0;
    min-width: 0;
    flex: 1 1 auto;
    font-size: var(--font-size-15);
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gc-notifications-column__icon-btn {
    flex: 0 0 auto;
}

.gc-notifications-column__scroll {
    flex: 1 1 auto;
    min-height: 0;
}

.gc-notifications-column__body {
    min-height: 100%;
    box-sizing: border-box;
}

.gc-notifications-column__status {
    margin: 0;
    padding: var(--space-2) var(--space-3);
    color: var(--text-secondary);
    font-size: var(--font-size-13);
}

.gc-notifications-column__footer {
    flex: 0 0 auto;
    padding: var(--gc-panel-inset);
    border-top: 1px solid var(--border-subtle);
}

.gc-notifications-column__all {
    width: 100%;
}

@keyframes gc-notifications-column-in {
    from {
        transform: translateX(calc(-100% - var(--gc-notifications-column-inset, var(--space-2))));
    }
    to {
        transform: translateX(0);
    }
}

@keyframes gc-notifications-column-out {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-100% - var(--gc-notifications-column-inset, var(--space-2))));
    }
}

@media (prefers-reduced-motion: reduce) {
    .gc-notifications-column,
    .gc-notifications-column--leave {
        animation: none;
    }
}

/* Кнопка удаления уведомления */
.notification-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s;
    font-size: 12px;
}

.notification-item {
    position: relative;
}

.notification-item:hover .notification-delete-btn {
    opacity: 1;
}

.notification-delete-btn:hover {
    background: var(--ui-danger-soft);
    color: var(--danger-color);
}

/* Скрываем точку непрочитанного когда есть кнопка удаления */
.notification-item:hover .notification-unread-dot {
    opacity: 0;
}

/* Пустое состояние */
.notifications-empty {
    padding: 60px 20px;
    text-align: center;
}

.notifications-empty-icon {
    font-size: 48px;
    color: var(--text-secondary);
    opacity: 0.3;
    margin-bottom: 16px;
}

.notifications-empty-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Футер с кнопкой "показать все" */
.notifications-footer {
    padding: var(--space-2) var(--space-4);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.notifications-show-all {
    font-size: 14px;
    color: var(--accent-link);
    text-decoration: none;
    font-weight: 600;
}

.notifications-show-all:hover {
    text-decoration: underline;
}

/* Скелетон загрузки (список уведомлений) */
.notifications-skeleton {
    display: flex;
    flex-direction: column;
}

.notifications-skeleton-row {
    display: flex;
    gap: var(--space-2);
    align-items: flex-start;
    padding: var(--space-4) var(--space-4);
    border-bottom: 1px solid var(--gc-dropdown-menu-border);
}

.notifications-skeleton-row:last-child {
    border-bottom: none;
}

.notifications-skeleton-row__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding-top: 2px;
}

/*
 * Панель уведомлений — always-dark glass; скелетон не должен
 * следовать data-theme (иначе в light — светлые полосы на тёмном фоне).
 */
.notifications-dropdown-panel .gc-skeleton {
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--text-on-solid) 8%, transparent) 0%,
        color-mix(in srgb, var(--text-on-solid) 16%, transparent) 50%,
        color-mix(in srgb, var(--text-on-solid) 8%, transparent) 100%
    );
    background-size: 200% 100%;
}

@media (prefers-reduced-motion: reduce) {
    .notifications-dropdown-panel .gc-skeleton {
        animation: none;
        background: color-mix(in srgb, var(--text-on-solid) 12%, transparent);
    }
}

/* ============================================================================
   АДАПТИВНОСТЬ — тот же узел .notifications-dropdown.show, оверлей как gc-modal
   ============================================================================ */

@media (max-width: 767.98px) {
    /* Как .gc-modal: верхний inset (modal.css — .modal-dialog padding-top) + нижний sheet */
    .notifications-dropdown {
        position: fixed !important;
        top: calc(0px - env(safe-area-inset-top, 0px)) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: calc(100dvh + env(safe-area-inset-top, 0px)) !important;
        min-height: calc(100dvh + env(safe-area-inset-top, 0px)) !important;
        margin-top: 0 !important;
        max-height: none !important;
        z-index: var(--z-notification);
        overflow: hidden !important;
        box-sizing: border-box;
        padding-top: calc(env(safe-area-inset-top, 0px) + var(--space-4));
    }

    .notifications-dropdown.show {
        display: flex !important;
        flex-direction: column;
        background-color: color-mix(in srgb, var(--fill-emphasis) 50%, transparent);
    }

    [data-theme='light'] .notifications-dropdown.show {
        background-color: color-mix(in srgb, var(--fill-emphasis) 40%, transparent);
    }

    .notifications-dropdown-backdrop {
        display: block;
        position: relative;
        flex: 1 1 auto;
        min-height: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        border: none;
        border-radius: 0;
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
        background-color: transparent;
        z-index: 0;
        pointer-events: auto;
    }

    .notifications-dropdown-panel {
        position: relative;
        flex: 0 0 auto;
        z-index: 1;
        width: 100%;
        max-width: 100%;
        max-height: calc(
            100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - var(--space-4)
        );
        min-height: 0;
        border-radius: var(--radius-16) var(--radius-16) 0 0;
        border: 1px solid var(--gc-dropdown-menu-border);
        border-bottom: none;
        box-shadow: var(--shadow-xl);
        animation: notifications-mobile-sheet-in var(--transition-base) ease-out;
    }

    .notifications-header {
        padding: var(--space-4);
        flex-shrink: 0;
    }

    .notifications-list {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        max-height: none;
        -webkit-overflow-scrolling: touch;
    }

    .notification-item {
        padding: var(--space-4) var(--space-4);
    }

    /* Кнопка закрытия на мобильном */
    .notifications-close-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: var(--gc-dropdown-item-icon-bg);
        border: none;
        border-radius: 50%;
        color: var(--gc-dropdown-menu-text);
        cursor: pointer;
    }
}

@keyframes notifications-mobile-sheet-in {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    .notifications-close-mobile {
        display: none;
    }
}

/* ============================================================================
   СТРАНИЦА ВСЕХ УВЕДОМЛЕНИЙ
   ============================================================================ */

.notifications-page {
    max-width: 640px;
    margin: 0 auto;
}

.notifications-page .notification-item {
    border-radius: var(--radius-16);
    margin-bottom: 8px;
    border: 1px solid var(--border-subtle);
}

.notifications-page .notification-item:last-child {
    border-bottom: 1px solid var(--border-subtle);
}

/* Группы по дате */
.notifications-date-group {
    margin-bottom: 24px;
}

.notifications-date-title {
    font-size: var(--font-size-14);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-left: 4px;
}

