/* ============================================================
   SocialNet — мобильная адаптация
   Подключается ПОСЛЕ main.css и extras.css (см. inc/extras.php),
   поэтому переопределяет их без правки основных файлов.
   Брейкпоинты: 768px (планшет/телефон), 480px (маленький телефон).
   ============================================================ */

/* ---------- То, что на десктопе скрыто ---------- */
.chat-back,
.mnav,
.mnav-overlay,
.mnav-sheet { display: none; }

/* ============================================================
   ШАПКА (все экраны): единый набор линейных иконок
   ============================================================ */
.header-brand-mobile {
    display: block;
    flex: 0 0 auto;
    font-size: 22px;
    white-space: nowrap;
}

/* Иконки-кнопки: одинаковый размер, цвет, наведение */
.hicon,
.header-search-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    box-sizing: border-box;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
html body .header-user .hicon:hover,
html body .header-search-toggle:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    transform: none;
    border-color: transparent;
}
.hicon svg,
.header-search-toggle svg,
.header-more-menu svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}
.hicon svg.is-filled { fill: currentColor; stroke: none; }
html body .header-user .header-message-icon,
html body .header-user .header-messages:hover .header-message-icon {
    width: 22px; height: 22px; color: inherit; transform: none;
}
.header-user .notif-badge { top: 1px; right: 0; }
.header-search-wrap.open .header-search-toggle { color: #fff; }

.header-user { gap: 4px; }
.header-user .theme-toggle {
    width: 40px; height: 40px;
    margin: 0 4px;
    border: 0;
    background: transparent;
    color: var(--muted);
}
.header-user .theme-toggle:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    transform: none;
}
.theme-toggle svg {
    width: 21px; height: 21px;
    fill: none; stroke: currentColor;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.header-user .user-link {
    margin-left: 4px;
    padding: 3px 12px 3px 3px;
    border-radius: 999px;
    transition: background 0.15s ease;
}
.header-user .user-link:hover { background: rgba(99, 102, 241, 0.08); }
.header-user .user-link img { width: 36px; height: 36px; }

/* Выпадающее меню «⋯» */
.header-more { position: relative; }
.header-more.open .header-more-toggle {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
}
.header-more-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 300;
    min-width: 220px;
    padding: 6px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.header-more.open .header-more-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.header-more-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}
.header-more-menu a svg { color: var(--muted); width: 20px; height: 20px; }
.header-more-menu a:hover { background: var(--bg); }
.header-more-menu a:hover svg { color: var(--primary); }
.header-more-menu a.is-danger,
.header-more-menu a.is-danger svg { color: #dc2626; }
html.theme-dark .header-more-menu a.is-danger,
html.theme-dark .header-more-menu a.is-danger svg { color: #fca5a5; }
.header-more-sep { height: 1px; margin: 6px 4px; background: var(--border); }

/* ============================================================
   ПРОФИЛЬ (все экраны)
   ============================================================ */

/* Обложка (фиолетовая полоса на всю ширину) убрана. Аватар раньше заходил
   на неё (margin-top: -80px), поэтому отступы шапки профиля пересчитаны.
   Чтобы вернуть обложку, удалите правило .profile-cover ниже и верните
   прежние отступы. */
html body .profile-cover { display: none; }
html body .profile-header { margin-top: 0; padding: 0; align-items: center; }

/* Слева шапка и записи, справа «Информация» с верхом на уровне аватара */
.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 0 24px;
    align-items: start;
    margin-top: 28px;
}
.profile-col { min-width: 0; }
.profile-col .profile-main { margin-top: 32px; }
.profile-layout .profile-sidebar { min-width: 0; }
html body .profile-info,
html body .profile-actions { padding-top: 0; }
.profile-actions { margin: 18px 0 0; }

/* Заголовки: градиент растягивался на весь блок, и короткое имя оказывалось
   в самой светлой части — низкий контраст. Теперь обычный тёмный цвет. */
html body .profile-info h1,
html body .profile-main h2,
html body .messages-page h1,
html body .friends-page h1,
html body .members-header h1 {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: currentColor;
    color: var(--text);
}
html body .profile-info h1 { font-size: 32px; line-height: 1.15; margin-bottom: 8px; }

/* Статистика покрупнее */
.profile-stats-inline { gap: 24px; margin-top: 14px; font-size: 15px; color: var(--muted); }
.profile-stats-inline li { display: flex; align-items: baseline; gap: 6px; }
.profile-stats-inline strong { font-size: 20px; font-weight: 700; color: var(--text); }

/* ---------- Общая страховка от «ухода вправо» ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img, video, iframe, canvas, svg { max-width: 100%; }
/* clip, а не hidden: не ломает position: sticky у шапки */
@supports (overflow: clip) {
    html { overflow-x: clip; }
}
@supports not (overflow: clip) {
    body { overflow-x: hidden; }
}

@media (max-width: 768px) {

    :root {
        --sn-safe-top: env(safe-area-inset-top, 0px);
        --sn-safe-bottom: env(safe-area-inset-bottom, 0px);
        --sn-header-h: calc(57px + var(--sn-safe-top));
        --sn-nav-h: 60px;
    }

    /* Нижняя навигация не должна перекрывать контент и футер */
    body.logged-in { padding-bottom: calc(var(--sn-nav-h) + var(--sn-safe-bottom)); }

    /* Фоновые размытые «пятна» на телефоне: тяжёлые для GPU */
    body::before, body::after { display: none !important; }

    /* ======================= ШАПКА ======================= */
    html body .site-header { padding-top: var(--sn-safe-top); }

    .header-inner {
        gap: 8px;
        padding: 8px 12px;
        min-width: 0;
    }

    .header-brand-mobile {
        display: block;
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 20px;
    }

    /* Вошедший пользователь: вся навигация уезжает вниз, в шапке остаётся
       название, поиск и аватар */
    body.logged-in .main-nav { display: none; }

    body.logged-in .header-user { margin-left: 0; gap: 8px; flex: 0 0 auto; }
    body.logged-in .header-user > a:not(.user-link),
    body.logged-in .header-user > .header-more,
    body.logged-in .header-user > .theme-toggle,
    body.logged-in .header-user > .btn-logout { display: none !important; }
    .header-user .user-link span { display: none; }
    .header-user .user-link img { width: 38px; height: 38px; }

    /* Гость: меню занимает оставшееся место и прокручивается внутри себя */
    body:not(.logged-in) .main-nav { flex: 0 1 auto; min-width: 0; overflow-x: auto; }
    body:not(.logged-in) .main-nav ul { flex-wrap: nowrap; white-space: nowrap; gap: 12px; }

    /* Поиск: единое поведение на всей ширине до 768px
       (раньше от 601 до 768px форма вылезала за экран) */
    .header-search-wrap { position: static !important; margin-right: 0; }
    .header-search-wrap .header-search {
        position: fixed;
        top: calc(var(--sn-header-h) + 6px);
        left: 12px;
        right: 12px;
        width: auto;
        transform: translateY(-12px) scale(0.97);
        transform-origin: top center;
        border-radius: 16px;
        padding: 8px 8px 8px 18px;
        z-index: 999;
        visibility: hidden;
    }
    .header-search-wrap.open .header-search {
        transform: translateY(0) scale(1);
        visibility: visible;
    }
    .header-search-wrap .header-search input[type="search"] { min-width: 0; }

    /* ======================= НИЖНЯЯ НАВИГАЦИЯ ======================= */
    .mnav {
        display: flex;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 900;
        height: calc(var(--sn-nav-h) + var(--sn-safe-bottom));
        padding: 0 4px var(--sn-safe-bottom);
        background: rgba(255, 255, 255, 0.92);
        -webkit-backdrop-filter: blur(16px) saturate(180%);
        backdrop-filter: blur(16px) saturate(180%);
        border-top: 1px solid rgba(229, 231, 235, 0.8);
        box-shadow: 0 -4px 24px rgba(79, 70, 229, 0.08);
        transition: transform 0.2s ease;
    }
    html.theme-dark .mnav {
        background: rgba(15, 23, 42, 0.92);
        border-top-color: rgba(51, 65, 85, 0.8);
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
    }

    .mnav-item {
        position: relative;
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 6px 2px;
        background: none;
        border: 0;
        font: inherit;
        font-size: 11px;
        font-weight: 600;
        line-height: 1;
        color: var(--muted);
        text-decoration: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .mnav-item svg {
        width: 24px; height: 24px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.9;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: transform 0.15s ease;
    }
    .mnav-item:active svg { transform: scale(0.88); }
    .mnav-item.is-active { color: var(--primary); }
    .mnav-item.is-active svg { fill: rgba(99, 102, 241, 0.14); }
    .mnav-item span {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mnav-badge {
        position: absolute;
        top: 3px;
        left: calc(50% + 4px);
        min-width: 17px;
        height: 17px;
        padding: 0 5px;
        box-sizing: border-box;
        border-radius: 9px;
        background: #ef4444;
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        line-height: 17px;
        text-align: center;
        box-shadow: 0 0 0 2px var(--card);
    }

    /* Пока открыта клавиатура или идёт переписка — панель не мешает */
    body.mnav-hidden .mnav { transform: translateY(110%); }
    body.sn-chat-open { padding-bottom: 0 !important; }
    body.sn-chat-open .mnav { display: none; }
    body:has(.messages-page.has-chat) { padding-bottom: 0 !important; }
    body:has(.messages-page.has-chat) .mnav { display: none; }

    /* ======================= ШТОРКА «ЕЩЁ» ======================= */
    .mnav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1000;
        background: rgba(15, 23, 42, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0.2s;
    }
    .mnav-overlay.is-open { opacity: 1; visibility: visible; }

    .mnav-sheet {
        display: block;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 1001;
        max-height: 86vh;
        max-height: 86dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 8px 16px calc(16px + var(--sn-safe-bottom));
        background: var(--card);
        color: var(--text);
        border-radius: 22px 22px 0 0;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
        transform: translateY(100%);
        visibility: hidden;
        transition: transform 0.25s ease, visibility 0.25s;
    }
    .mnav-sheet.is-open { transform: translateY(0); visibility: visible; }

    .mnav-handle {
        width: 40px; height: 4px;
        margin: 0 auto 12px;
        border-radius: 2px;
        background: var(--border);
    }

    .mnav-profile {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px 4px 14px;
        color: var(--text);
        text-decoration: none;
    }
    .mnav-profile img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
    .mnav-profile span { display: flex; flex-direction: column; min-width: 0; }
    .mnav-profile strong {
        font-size: 17px;
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .mnav-profile small { color: var(--muted); font-size: 13px; margin-top: 2px; }

    .mnav-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    .mnav-grid a,
    .mnav-grid button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 76px;
        padding: 10px 4px;
        box-sizing: border-box;
        background: var(--bg);
        border: 1px solid var(--border);
        border-radius: 14px;
        color: var(--text);
        font: inherit;
        font-size: 12px;
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .mnav-grid a:active,
    .mnav-grid button:active { background: var(--border); }
    .mnav-grid i { font-style: normal; font-size: 24px; line-height: 1; }
    .mnav-grid span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    /* Пункты основного меню WordPress, если они есть (добавляет mobile.js) */
    .mnav-extra:empty { display: none; }
    .mnav-extra {
        display: flex;
        flex-direction: column;
        margin-top: 12px;
        border-top: 1px solid var(--border);
    }
    .mnav-extra a {
        padding: 13px 4px;
        border-bottom: 1px solid var(--border);
        color: var(--text);
        text-decoration: none;
        font-size: 15px;
    }

    .mnav-logout {
        display: block;
        margin-top: 14px;
        padding: 13px;
        text-align: center;
        border: 1px solid var(--border);
        border-radius: 14px;
        color: #dc2626;
        font-weight: 600;
        text-decoration: none;
    }
    html.theme-dark .mnav-logout { color: #fca5a5; }

    /* ======================= ОБЩИЕ ЭЛЕМЕНТЫ ======================= */
    .container { padding: 12px; }
    .feed-layout { padding: 12px; gap: 14px; }
    .feed-main, .feed-layout > * { min-width: 0; }

    /* iOS приближает страницу при фокусе на полях со шрифтом < 16px */
    body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]),
    body textarea,
    body select { font-size: 16px !important; }

    /* Нормальная зона нажатия для кнопок */
    .btn { min-height: 40px; }
    .btn.btn-sm { min-height: 34px; }
    .btn, .composer-file-btn { touch-action: manipulation; }

    /* Лента: композер и карточки */
    .post-composer { padding: 12px; border-radius: 14px; }
    .post-composer textarea { min-height: 76px; }
    .composer-actions { flex-wrap: wrap; gap: 8px; }
    .composer-draft-status { order: 3; flex-basis: 100%; }
    .composer-actions .btn-primary { margin-left: auto; }

    html body .post-card { border-radius: 14px; }
    .post-card { padding: 14px; }
    .post-header { gap: 10px; min-width: 0; }
    .post-meta, .author-name { min-width: 0; overflow-wrap: anywhere; }
    .post-content { overflow-wrap: anywhere; word-break: break-word; }
    .post-thumbnail img, .post-content img { max-width: 100%; height: auto; }
    .post-actions { flex-wrap: wrap; gap: 4px 6px; }
    .post-actions > * { min-height: 36px; }
    .post-comments-form { gap: 8px; }

    /* Профиль */
    .profile-avatar-big img { width: 104px; height: 104px; }
    .profile-actions { flex-wrap: wrap; gap: 8px; }
    .profile-actions { margin-top: 16px; justify-content: center; }
    .profile-actions .btn { flex: 1 1 calc(50% - 8px); text-align: center; }
    html body .profile-info h1 { font-size: 26px; }
    .profile-stats-inline { justify-content: center; flex-wrap: wrap; gap: 8px 20px; }
    .profile-meta li { flex-wrap: wrap; gap: 2px 8px; }
    .profile-meta li > span:first-child { min-width: 96px; }
    .profile-sidebar, .profile-main { min-width: 0; }
    .profile-layout { grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
    .profile-col .profile-main { margin-top: 20px; }
    .profile-layout .profile-sidebar { margin-top: 4px; }
    .profile-content { margin-top: 20px; gap: 16px; }

    /* Друзья, участники, поиск */
    .friend-card { padding: 12px; gap: 10px; }
    .friends-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .friends-tabs::-webkit-scrollbar { display: none; }
    .friends-tabs > * { flex: 0 0 auto; white-space: nowrap; }

    /* Галерея / видео / музыка */
    .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .videos-grid { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 12px; }
    /* minmax(320px, …) на экране 360px давал горизонтальный скролл */
    .music-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }

    /* Модальные окна и всплывашки */
    .sn-modal { max-height: 85vh; max-height: 85dvh; }
    .sn-toast { bottom: calc(var(--sn-nav-h) + var(--sn-safe-bottom) + 16px); max-width: calc(100vw - 32px); text-align: center; }
    body.sn-chat-open .sn-toast,
    body:has(.messages-page.has-chat) .sn-toast { bottom: calc(80px + var(--sn-safe-bottom)); }

    /* Вход и регистрация */
    .auth-page { padding: 20px 12px; min-height: auto; }

    /* Подвал */
    .site-footer { font-size: 13px; }

    /* ======================= СООБЩЕНИЯ ======================= */
    .messages-page h1 { font-size: 22px; margin-bottom: 12px; }
    .messages-layout { display: block; min-height: 0; border-radius: 14px; }
    .dialogs-list { max-height: none; border-bottom: 0; }
    .dialog-item { padding: 12px 14px; }
    .dialog-info { min-width: 0; }
    .dialog-name, .dialog-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    /* Диалог открыт: только чат на весь экран, как в мессенджере */
    .messages-page:not(.has-chat) .chat-window { display: none; }
    .messages-page.has-chat { padding: 0; }
    .messages-page.has-chat > h1 { display: none; }
    .messages-page.has-chat .dialogs-list { display: none; }
    .messages-page.has-chat .messages-layout { border-radius: 0; box-shadow: none; background: transparent; }

    /* ИСПРАВЛЕНО: пропадало поле ввода. Окно чата имело высоту
       100dvh − шапка, но вокруг него оставались отступы внешнего .container
       и <main>, а ниже — подвал. Форма уезжала за нижний край экрана.
       Теперь окно чата закреплено между шапкой и низом экрана (или верхом
       клавиатуры — переменные выставляет mobile.js), и форма видна всегда. */
    html body .messages-page.has-chat .messages-layout,
    html.theme-dark body .messages-page.has-chat .messages-layout {
        /* backdrop-filter у предка сделал бы position: fixed относительным к нему */
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        overflow: visible;
        min-height: 0;
    }
    .messages-page.has-chat .chat-window {
        position: fixed;
        left: 0;
        right: 0;
        top: var(--sn-chat-top, var(--sn-header-h));
        bottom: var(--sn-kb, 0px);
        z-index: 90;
        height: auto;
        max-height: none;
        min-height: 0;
        background: var(--card);
    }
    .messages-page.has-chat .chat-header,
    .messages-page.has-chat .chat-typing,
    .messages-page.has-chat .chat-blocked-notice,
    .messages-page.has-chat .chat-form { flex: 0 0 auto; }
    .messages-page.has-chat .chat-body { flex: 1 1 auto; min-height: 0; }
    body.sn-chat-open .site-footer,
    body:has(.messages-page.has-chat) .site-footer { display: none; }

    /* Форма ввода: в main.css (≤600px) была сетка из 3 колонок, а кнопка
       эмодзи попадала в одну ячейку со скрепкой и перекрывала её. */
    .chat-form {
        display: flex !important;
        align-items: flex-end;
        gap: 6px;
        padding: 8px 10px;
    }
    .chat-form > * { grid-area: auto !important; }
    .chat-form .chat-file-btn { flex: 0 0 38px; width: 38px; height: 38px; font-size: 18px; }
    .chat-form textarea {
        flex: 1 1 auto;
        min-width: 0;
        min-height: 40px;
        max-height: 120px;
        padding: 9px 12px;
    }
    .chat-form button[type="submit"] { flex: 0 0 auto; min-height: 40px; padding: 8px 12px; font-size: 13px; }

    .chat-header { padding: 8px 12px; gap: 10px; min-width: 0; }
    .chat-header > div { min-width: 0; }
    .chat-header .chat-name {
        display: block;
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .chat-back {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 36px; height: 36px;
        margin-left: -4px;
        border-radius: 50%;
        color: var(--text);
        font-size: 22px;
        text-decoration: none;
    }
    .chat-back:active { background: var(--bg); }
    .chat-clear-btn { flex: 0 0 auto; padding: 6px 10px; font-size: 12px; }

    .chat-body { padding: 12px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
    .chat-message { max-width: 85%; }
    .chat-message .chat-bubble { overflow-wrap: anywhere; }
    .chat-form { padding-bottom: calc(10px + var(--sn-safe-bottom)) !important; }

    /* ======================= ГРУППЫ ======================= */
    .groups-page, .group-page { padding-left: 12px; padding-right: 12px; }
    .group-create { padding: 16px; }
    .group-create > * { min-width: 0; }
}

/* ---------- Маленькие телефоны ---------- */
@media (max-width: 480px) {
    /* Узкий экран: «Отправить» → стрелка, чтобы полю ввода хватало места */
    .chat-form button[type="submit"] { width: 44px; padding: 0; font-size: 0 !important; }
    .chat-form button[type="submit"]::after { content: "➤"; font-size: 18px; line-height: 1; }
    .groups-grid { grid-template-columns: minmax(0, 1fr) !important; }
    .mnav-grid { grid-template-columns: repeat(3, 1fr); }
    .profile-actions .btn { flex-basis: 100%; }
    .header-brand-mobile { font-size: 18px; }
    .edit-profile-form { padding: 16px; }
    .sn-emoji-panel { grid-template-columns: repeat(7, 1fr); }
}

@media (max-width: 360px) {
    .mnav-item { font-size: 10px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Ландшафт на телефоне: нижняя панель ниже, чат занимает всю высоту */
@media (max-width: 900px) and (max-height: 480px) and (orientation: landscape) {
    :root { --sn-nav-h: 48px; }
    .mnav-item span { display: none; }
    .mnav-sheet { max-height: 92vh; }
}

/* Уважаем «уменьшить анимацию» */
@media (prefers-reduced-motion: reduce) {
    .mnav, .mnav-sheet, .mnav-overlay, .mnav-item svg { transition: none; }
}
