/* ─── Responsive supporting components ─── */
    /* ─── Advertiser bar ─── */
    .adv-bar {
      display: flex; align-items: center; justify-content: space-between;
      padding: 6px 14px 6px 12px;
      background: rgba(247,144,48,.06);
      border-top: 1px solid rgba(247,144,48,.18);
    }
    .adv-bar-label { font-size: 11.5px; color: #f79030; font-weight: 500; display:flex; align-items:center; gap:5px; }
    .adv-bar-label .ti { font-size:14px; }
    .adv-broadcast-btn {
      display: flex; align-items: center; gap: 5px;
      padding: 5px 12px; border-radius: 9px; font-size: 12px; font-weight: 600;
      background: linear-gradient(135deg,#f79030,#e06010);
      color: #fff; border: none; cursor: pointer;
      box-shadow: 0 3px 12px rgba(247,144,48,.35);
      transition: transform .15s var(--ease), box-shadow .15s;
    }
    .adv-broadcast-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 18px rgba(247,144,48,.45); }
    .adv-broadcast-btn .ti { font-size: 13px; }
    /* ─── Pending attachments ─── */
    .pending-area {
      display: flex; flex-wrap: wrap; gap: 8px;
      padding: 10px 14px 6px;
      width: 100%; max-width: 880px; margin: 0 auto;
      box-sizing: border-box;
      border-top: 1px solid var(--border);
      background: var(--bg2);
    }
    .reply-bar {
      display: flex; align-items: center; gap: 10px;
      padding: 8px 18px;
      width: 100%; box-sizing: border-box;
      border-top: 1px solid var(--border);
      background: var(--surface);
    }
    .reply-bar-icon { font-size: 18px; color: var(--accent); flex: 0 0 auto; }
    .reply-bar-info { flex: 1 1 0; min-width: 0; border-left: 2px solid var(--accent); padding-left: 10px; }
    .reply-bar-name { font-size: 12.5px; font-weight: 700; color: var(--accent); }
    .reply-bar-text { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .reply-bar-close {
      width: 28px; height: 28px; border: none; background: transparent; color: var(--muted);
      cursor: pointer; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
    }
    .reply-bar-close:hover { background: var(--surface3); color: var(--text); }
    .msg-reply {
      display: block; border-left: 2px solid rgba(255,255,255,.45);
      padding: 2px 8px; margin-bottom: 5px;
      cursor: pointer; font-size: 12.5px; min-width: 0;
    }
    .msg-reply-name { font-weight: 700; display: block; }
    .msg-reply-text { opacity: .75; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
    .msg-row.in .msg-reply { border-color: var(--accent); }
    .msg-row.in .msg-reply-name { color: var(--accent); }
    .msg-row.flash .msg-bubble { animation: msgFlash 1.2s ease; }
    @keyframes msgFlash { 0%, 55% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 3px transparent; } }
    .pending-item {
      position: relative; width: 76px; height: 76px;
      border-radius: 11px; overflow: visible; flex-shrink: 0;
      background: var(--bg3);
    }
    .pending-item img, .pending-item video {
      width: 76px; height: 76px; object-fit: cover;
      border-radius: 11px; display: block;
    }
    .pending-item-file {
      width: 76px; height: 76px; border-radius: 11px;
      display: flex; flex-direction: column; align-items: center;
      justify-content: center; gap: 4px; border: 1px solid var(--border);
    }
    .pending-item-file i { font-size: 22px; color: var(--accent); }
    .pending-item-file span { font-size: 9px; color: var(--muted);
      text-align: center; padding: 0 4px;
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70px; }
    .pending-remove {
      position: absolute; top: -7px; right: -7px;
      width: 20px; height: 20px; border-radius: 50%;
      background: var(--bg4); border: 1.5px solid var(--border);
      color: var(--text); font-size: 12px; line-height: 1;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; z-index: 2; font-weight: 700;
      transition: background .14s, color .14s;
    }
    .pending-remove:hover { background: var(--red); color: #fff; border-color: var(--red); }
    /* ─── Attach panel ─── */
    .attach-panel {
      display: none; gap: 10px; padding: 10px 14px 8px;
      width: 100%; max-width: 880px; margin: 0 auto;
      box-sizing: border-box;
      background: var(--bg2); border-top: 1px solid var(--border);
      animation: attachIn .16s var(--ease);
    }
    .attach-panel.open { display: flex; }
    @keyframes attachIn {
      from { opacity:0; transform:translateY(6px); }
      to   { opacity:1; transform:translateY(0); }
    }
    .attach-opt {
      display: flex; flex-direction: column; align-items: center; gap: 5px;
      padding: 10px 18px; border-radius: 14px;
      border: 1px solid var(--border); background: var(--bg3);
      color: var(--text); font-size: 11.5px; font-weight: 500;
      transition: background .15s var(--ease), border-color .15s;
      min-width: 72px; cursor: pointer;
    }
    .attach-opt i { font-size: 24px; }
    .attach-opt.photo i { color: #4f9cf9; }
    .attach-opt.video i { color: #a78bfa; }
    .attach-opt.doc   i { color: #34d399; }
    .attach-opt:hover { background: var(--bg4); border-color: rgba(255,255,255,.14); }
    [hidden] { display: none !important; }
    .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

    /* ─── VK-style adaptive application frame ───
       VKUI widths: mobile <768, small tablet 768–1023,
       tablet 1024–1279, desktop >=1280. */
    :root {
      --vk-frame-max: 1280px;
      --vk-mobile-nav: 58px;
      --vk-topbar: 48px;
      --sidebar: 220px;
      --list: 360px;
      --profile: 300px;
      --bg: #222222;
      --bg2: #141414;
      --bg3: #292929;
      --bg4: #333333;
      --rail-bg: #19191a;
      --surface: #222222;
      --surface2: #292929;
      --surface3: #333333;
      --border: #363738;
      --border-strong: #444546;
      --text: #e1e3e6;
      --text2: #c5c7ca;
      --muted: #828282;
      --accent: #71aaeb;
      --accent-d: #5181b8;
      --accent-soft: rgba(113,170,235,.15);
      --input-bg: #292929;
      --bubble-in: #292929;
      --chat-base: #141414;
    }
    html, body { width: 100%; min-width: 0; overscroll-behavior: none; }
    body {
      background: var(--bg2);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
      font-size: 13px; line-height: 1.38; letter-spacing: 0;
    }
    .app {
      width: min(100%, var(--vk-frame-max)); min-width: 0;
      height: 100vh; height: var(--adminova-viewport-height, 100dvh); margin-inline: auto;
      grid-template-columns: var(--sidebar) var(--list) minmax(0, 1fr);
      grid-template-rows: var(--vk-topbar) minmax(0, 1fr);
      background: var(--bg);
    }
    .app.profile-open { grid-template-columns: var(--sidebar) var(--list) minmax(0, 1fr) var(--profile); }
    .sidebar, .list-pane, .content-pane, .profile-pane,
    .wall-pane, .notif-pane, .stats-pane, .settings-pane { min-width: 0; min-height: 0; }
    .vk-topbar { grid-column: 1 / -1; grid-row: 1; }
    .sidebar { grid-column: 1; grid-row: 2; }
    #secMessages > .list-pane { grid-column: 2; grid-row: 2; }
    #secMessages > .content-pane { grid-column: 3; grid-row: 2; }
    #secMessages > .profile-pane { grid-column: 4; grid-row: 2; }
    .wall-pane, .notif-pane, .stats-pane, .settings-pane { grid-column: 2 / -1 !important; }
    .wall-pane, .notif-pane, .stats-pane, .settings-pane { grid-row: 2; }
    .wall-head-inner, .wall-feed { width: min(100%, 640px); }

    .vk-topbar {
      position: relative; z-index: 90; display: grid;
      grid-template-columns: var(--sidebar) var(--list) minmax(0, 1fr);
      align-items: center; min-width: 0; height: var(--vk-topbar);
      background: #222222; border-bottom: 1px solid var(--border);
    }
    .vk-topbar-brand {
      height: 100%; display: flex; align-items: center; gap: 9px;
      padding: 0 14px; color: var(--text); font-weight: 600; font-size: 14px;
    }
    .vk-mark {
      width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto;
      display: inline-flex; align-items: center; justify-content: center;
      background: #0077ff; color: #fff; font-weight: 800; font-size: 13px; letter-spacing: -.6px;
    }
    .vk-topbar-section { display: none; min-width: 0; font-size: 15px; font-weight: 600; }
    .vk-topbar-search { padding: 0 12px 0 0; min-width: 0; }
    .vk-global-search {
      width: 100%; max-width: 320px; height: 34px; display: flex; align-items: center; gap: 8px;
      padding: 0 12px; border-radius: 8px; background: var(--input-bg); color: var(--muted);
    }
    .vk-global-search i { font-size: 16px; }
    .vk-global-search input {
      width: 100%; min-width: 0; border: 0; outline: 0; background: transparent;
      color: var(--text); font-size: 13px;
    }
    .vk-topbar-community {
      min-width: 0; height: 100%; padding: 0 14px; display: flex; align-items: center;
      justify-content: flex-end; gap: 9px; color: var(--text2);
    }
    .vk-topbar-community-name {
      max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
      font-size: 12.5px; font-weight: 500;
    }
    .vk-topbar-community-ava {
      width: 30px; height: 30px; border-radius: 50%; overflow: hidden;
      display: flex; align-items: center; justify-content: center;
      background: #447bba; color: #fff; font-size: 11px; font-weight: 700;
    }
    .vk-topbar-community-ava img { width: 100%; height: 100%; object-fit: cover; }

    /* VK visual density and component geometry. */
    .sb-logo-row { display: none !important; }
    .sb-comm-btn {
      margin: 8px; width: calc(100% - 16px) !important; padding: 9px 10px !important;
      border: 0 !important; border-radius: 10px; background: var(--surface) !important;
    }
    .snav { padding: 4px 8px !important; gap: 2px; }
    .snav-btn {
      padding: 8px 10px !important; gap: 11px !important; border-radius: 8px !important;
      font-size: 13px !important; font-weight: 400 !important;
    }
    .snav-btn i { font-size: 19px !important; }
    .snav-btn.active { font-weight: 500 !important; background: var(--accent-soft); }
    .list-title, .stats-title, .settings-head-bar { font-size: 16px !important; font-weight: 600 !important; }
    .search-wrap { min-height: 34px; border-radius: 8px; background: var(--input-bg); }
    .ftab, .wtab, .sptab { border-radius: 8px; font-size: 12.5px; }
    .dialog-row { margin: 0 6px 1px; padding: 9px 10px; border-radius: 8px; }
    .dlg-photo, .dlg-initials { width: 46px; height: 46px; }
    .dlg-name { font-size: 13.5px; font-weight: 600; }
    .dlg-preview { font-size: 12.5px; }
    .icon-btn { border-radius: 8px; }
    .chat-hdr, .chat-composer { max-width: none; background: var(--surface); backdrop-filter: none; }
    .chat-hdr-name { font-size: 14px; font-weight: 600; }
    .chat-history { background-color: var(--chat-base) !important; }
    .chat-inner, .composer-inner, .reply-bar-inner, .adv-bar-inner { max-width: 720px; }
    .msg-bubble { font-size: 13px; line-height: 1.4; box-shadow: none; }
    .msg-row.out .msg-bubble { background: #2b5278; }
    .composer-area { min-height: 38px; padding: 7px 13px; border-radius: 9px; }
    .send-btn { width: 38px; height: 38px; border-radius: 9px; box-shadow: none; }
    .wall-head, .notif-head, .stats-head, .settings-head-bar { background: var(--surface); }
    .wall-card, .stat-card, .chart-card, .settings-group, .notif-item {
      background: var(--surface); border-color: var(--border); box-shadow: none;
    }
    .wall-card, .stat-card, .chart-card { border-radius: 12px; }
    .settings-group { border-radius: 12px; }
    .wall-create-btn { border-radius: 8px; background: #447bba; }

    /* Adminova supernova: solid white canvas in the light theme and solid
       black canvas in the dark theme. */
    .vk-mark, .ton618-login-icon, .ton618-preview-icon, .adminova-brand-icon {
      background-repeat: no-repeat;
      background-position: center;
      background-size: cover;
      background-color: #000;
    }
    .vk-mark { font-size: 0; }
    html[data-theme="light"] .vk-mark,
    html[data-theme="light"] .ton618-login-icon,
    html[data-theme="light"] .adminova-brand-icon,
    .ton618-preview-icon.light { background-image: url('../assets/brand/adminova-light-150x150.png'); }
    html[data-theme="dark"] .vk-mark,
    html[data-theme="dark"] .ton618-login-icon,
    html[data-theme="dark"] .adminova-brand-icon,
    .ton618-preview-icon.dark { background-image: url('../assets/brand/adminova-dark-150x150.png'); }
    .ton618-login-icon {
      display: block; width: 68px; height: 68px; border-radius: 16px;
      box-shadow: 0 8px 28px rgba(0,0,0,.28);
    }
    .theme-picker { display: flex; flex-direction: column; }
    .theme-option {
      width: 100%; display: flex; align-items: center; gap: 11px;
      padding: 10px 12px; border: 0; border-top: 1px solid var(--border);
      background: transparent; color: var(--text); text-align: left;
    }
    .theme-option:first-child { border-top: 0; }
    .theme-option:hover { background: rgba(113,170,235,.08); }
    .theme-option.active { background: var(--accent-soft); }
    .theme-option-icon {
      width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px;
      overflow: hidden; display: flex; align-items: center; justify-content: center;
    }
    .theme-option-icon.auto { background: var(--bg4); color: var(--accent); font-size: 20px; }
    .theme-option-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; }
    .theme-option-copy strong { font-size: 13px; font-weight: 500; }
    .theme-option-copy small { margin-top: 1px; color: var(--muted); font-size: 11.5px; }
    .theme-option-check { color: var(--accent); font-size: 18px; opacity: 0; }
    .theme-option.active .theme-option-check { opacity: 1; }

    html[data-theme="dark"] { color-scheme: dark; }
    html[data-theme="light"] {
      color-scheme: light;
      --bg: #ffffff;
      --bg2: #edeef0;
      --bg3: #f2f3f5;
      --bg4: #e5e7eb;
      --rail-bg: #f5f6f8;
      --surface: #ffffff;
      --surface2: #f2f3f5;
      --surface3: #e5e7eb;
      --border: #dce1e6;
      --border-strong: #c9d0d8;
      --text: #000000;
      --text2: #2c2d2e;
      --muted: #818c99;
      --accent: #2688eb;
      --accent-d: #0077ff;
      --accent-soft: rgba(38,136,235,.12);
      --input-bg: #f2f3f5;
      --bubble-in: #ffffff;
      --chat-base: #e9edf2;
      --chat-bg: radial-gradient(ellipse at 82% 8%, rgba(38,136,235,.10), transparent 48%), radial-gradient(ellipse at 12% 92%, rgba(106,78,196,.055), transparent 46%), linear-gradient(145deg, #f3f6f9 0%, #e7ebf0 100%);
      --empty-chat-bg: #f5f6f8;
      --date-pill: rgba(255,255,255,.84);
      --shadow: 0 2px 8px rgba(0,0,0,.08);
      --shadow-lg: 0 16px 40px rgba(0,0,0,.16);
    }
    html[data-theme="light"] body,
    html[data-theme="light"] .app,
    html[data-theme="light"] .wall-scroll,
    html[data-theme="light"] .stats-pane,
    html[data-theme="light"] .settings-pane { background: var(--bg2); }
    html[data-theme="light"] .vk-topbar,
    html[data-theme="light"] .list-pane,
    html[data-theme="light"] .content-pane,
    html[data-theme="light"] .chat-hdr,
    html[data-theme="light"] .chat-composer { background: var(--surface) !important; }
    html[data-theme="light"] .sidebar { background: var(--rail-bg) !important; }
    html[data-theme="light"] .ctx-menu {
      background: rgba(255,255,255,.98);
      border-color: var(--border);
      color: var(--text);
      box-shadow: 0 16px 40px rgba(0,0,0,.18), 0 0 0 .5px rgba(0,0,0,.04);
    }
    html[data-theme="light"] .ctx-item:hover { background: var(--surface2); }
    html[data-theme="light"] .ctx-sep { background: var(--border); }
    html[data-theme="light"] .dialog-row:hover,
    html[data-theme="light"] .snav-btn:hover { background: rgba(0,0,0,.045); }
    html[data-theme="light"] .dialog-row.active,
    html[data-theme="light"] .snav-btn.active { background: var(--accent-soft); }
    html[data-theme="light"] .wall-card,
    html[data-theme="light"] .stat-card,
    html[data-theme="light"] .chart-card,
    html[data-theme="light"] .settings-group,
    html[data-theme="light"] .notif-item { box-shadow: 0 1px 2px rgba(0,0,0,.05); }
    html[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,.16); }
    html[data-theme="light"] .online-dot { border-color: var(--surface); }

    @media (min-width: 1280px) {
      .app { border-inline: 1px solid var(--border); box-shadow: 0 0 48px rgba(0,0,0,.18); }
    }

    @media (min-width: 1024px) and (max-width: 1279px) {
      :root { --sidebar: 200px; --list: 340px; }
      .app.profile-open { grid-template-columns: var(--sidebar) var(--list) minmax(0, 1fr); }
      .app.profile-open .profile-pane {
        position: fixed; inset-block: var(--vk-topbar) 0; inset-inline-end: 0; z-index: 70;
        display: flex; width: min(var(--profile), calc(100vw - var(--sidebar))) !important;
        box-shadow: -16px 0 40px rgba(0,0,0,.38);
      }
      .profile-close-btn { display: flex; }
    }

    @media (min-width: 600px) and (min-height: 600px) and (max-width: 1023px) {
      :root { --sidebar: 72px; --list: clamp(300px, 38vw, 360px); }
      .app, .app.profile-open { grid-template-columns: var(--sidebar) var(--list) minmax(0, 1fr); }
      .vk-topbar { grid-template-columns: var(--sidebar) var(--list) minmax(0, 1fr); }
      .vk-topbar-brand { justify-content: center; padding: 0; }
      .vk-topbar-brand > span:last-child { display: none; }
      .sidebar { width: var(--sidebar) !important; }
      .sb-comm-btn { justify-content: center !important; padding-inline: 10px !important; }
      .sb-comm-btn > span:not(#sbCommAva), .sb-comm-btn > i,
      .sidebar > div, .sb-logout-row { display: none !important; }
      .snav { align-items: center; padding-inline: 8px !important; }
      .snav-btn { width: 48px !important; height: 48px; justify-content: center; padding: 0 !important; }
      .snav-btn > span:not(.snav-badge) { display: none !important; }
      .snav-badge { position: absolute; inset-block-start: 2px; inset-inline-end: 0; }
      .app.profile-open .profile-pane {
        position: fixed; inset-block: var(--vk-topbar) 0; inset-inline-end: 0; z-index: 70;
        display: flex; width: min(var(--profile), calc(100vw - var(--sidebar))) !important;
        box-shadow: -16px 0 40px rgba(0,0,0,.38);
      }
      .profile-close-btn { display: flex; }
    }

    @media (max-width: 599px), (max-width: 999px) and (max-height: 599px) {
      :root {
        --sidebar: 0px; --list: 100%;
        --vk-topbar: calc(48px + env(safe-area-inset-top, 0px));
      }
      html, body { height: 100%; min-height: 100%; overflow: hidden; }
      body { background: var(--bg); }
      .app, .app.profile-open {
        width: 100%; height: 100vh; height: var(--adminova-viewport-height, 100dvh); margin: 0;
        padding: 0 0 calc(var(--vk-mobile-nav) + env(safe-area-inset-bottom, 0px));
        grid-template-columns: minmax(0, 1fr);
      }
      .vk-topbar {
        grid-template-columns: 46px minmax(0, 1fr) 46px;
        width: 100%; padding-top: env(safe-area-inset-top, 0px); box-sizing: border-box;
      }
      .vk-topbar-brand { grid-column: 1; justify-content: center; padding: 0; }
      .vk-topbar-brand > span:last-child { display: none; }
      .vk-topbar-search { display: none; }
      .vk-topbar-section {
        grid-column: 2; display: block; overflow: hidden; text-overflow: ellipsis;
        white-space: nowrap; text-align: center;
      }
      .vk-topbar-community { grid-column: 3; padding: 0 8px 0 0; }
      .vk-topbar-community-name { display: none; }
      .sidebar {
        position: fixed !important; inset: auto 0 0 !important; z-index: 100;
        width: 100% !important; height: calc(var(--vk-mobile-nav) + env(safe-area-inset-bottom, 0px)) !important;
        padding: 4px max(6px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(6px, env(safe-area-inset-left, 0px)) !important;
        display: flex; flex-direction: row !important; align-items: stretch;
        border: 0 !important; border-top: 1px solid var(--border) !important;
        background: color-mix(in srgb, var(--rail-bg) 94%, transparent) !important;
        backdrop-filter: blur(18px);
      }
      .sb-comm-btn, .sidebar > div, .sb-logout-row { display: none !important; }
      .snav {
        width: 100%; min-width: 0; height: 100%; padding: 0 !important; overflow: visible;
        flex: 1 1 0 !important;
        display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 !important;
      }
      .snav-btn {
        width: 100% !important; height: 100% !important; min-width: 0;
        padding: 3px 2px 2px !important; border-radius: 9px !important;
        display: flex !important; flex-direction: column; align-items: center; justify-content: center;
        gap: 1px !important; font-size: 10px !important; line-height: 1.1;
      }
      .snav-btn[hidden] { display: none !important; }
      .snav:has(> .snav-btn[hidden]) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
      .snav-btn i { font-size: 22px !important; }
      .snav-btn > span:not(.snav-badge) {
        display: block !important; width: 100%; overflow: hidden; text-overflow: ellipsis;
        white-space: nowrap !important; text-align: center;
      }
      .snav-badge {
        position: absolute; inset-block-start: 0; inset-inline-start: calc(50% + 7px);
        min-width: 17px !important; height: 17px !important; padding-inline: 4px !important; font-size: 9px !important;
      }
      .section-panel, .wall-pane, .notif-pane, .stats-pane, .settings-pane {
        grid-column: 1 !important; width: 100%; max-width: 100%;
      }
      .list-pane { grid-column: 1; width: 100% !important; border-inline-end: 0 !important; }
      #dlgFilterRow {
        flex-wrap: nowrap !important; overflow-x: auto; overflow-y: hidden;
        scroll-snap-type: x proximity; scrollbar-width: none;
      }
      #dlgFilterRow::-webkit-scrollbar { display: none; }
      #dlgFilterRow > *, #dlgFilterRow .ftab { flex: 0 0 auto; scroll-snap-align: start; }
      .content-pane {
        position: fixed !important;
        inset: var(--vk-topbar) 0 calc(var(--vk-mobile-nav) + env(safe-area-inset-bottom, 0px)) 0 !important;
        z-index: 50; width: 100%; height: auto;
        transform: translateX(100%); transition: transform .22s var(--ease);
      }
      .content-pane.open { transform: translateX(0); }
      .chat-back { display: flex !important; }
      .app.mobile-detail-open { padding-bottom: 0; }
      .app.mobile-detail-open .sidebar {
        transform: translateY(110%); visibility: hidden; pointer-events: none;
      }
      .app.mobile-detail-open .content-pane,
      .app.mobile-detail-open .profile-pane { inset-block-end: 0 !important; }
      .profile-pane, .app.profile-open .profile-pane {
        position: fixed; inset: var(--vk-topbar) 0 calc(var(--vk-mobile-nav) + env(safe-area-inset-bottom, 0px)) 0;
        z-index: 75; width: 100% !important; max-width: 100%; display: flex; border: 0;
      }
      .profile-close-btn { display: flex; }
      .wall-pane, .notif-pane, .stats-pane, .settings-pane { height: 100%; }
      .wall-head-inner { width: 100%; max-width: none; padding-inline: 12px; }
      .wall-tabs, .stats-period-tabs {
        min-width: 0; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none;
      }
      .wall-tabs::-webkit-scrollbar, .stats-period-tabs::-webkit-scrollbar { display: none; }
      .wtab, .sptab { flex: 0 0 auto; }
      .wall-feed { width: 100%; max-width: none; padding-block-start: 8px; gap: 8px; }
      .wall-card, .notif-item { border-inline: 0; border-radius: 0; }
      .notif-scroll { padding-inline: 0; }
      .stats-head { min-width: 0; padding: 12px; }
      .stats-title { width: 100%; font-size: 18px; }
      .stats-period-tabs { order: 3; width: 100%; }
      .stats-head-right { margin-inline-start: auto; }
      .stats-custom-range { width: 100%; margin: 0; overflow-x: auto; }
      .stats-cards-row {
        display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px; padding: 10px 12px;
      }
      .stat-card { min-width: 0; }
      .stats-body { display: flex; flex-direction: column; min-height: auto; }
      .stats-charts, .stats-demo { flex: 0 0 auto; overflow: visible; border-inline-end: 0; }
      .chart-card { margin-inline: 0; border-inline: 0; border-radius: 0; }
      .chart-title { align-items: flex-start; gap: 8px; }
      .chart-legend { flex-wrap: wrap; justify-content: flex-end; gap: 5px 8px; }
      .settings-head-bar { padding: 14px 16px; font-size: 18px; }
      .settings-pane > .settings-group, .settings-pane > .settings-danger {
        margin-inline: 0; border-inline: 0; border-radius: 0;
      }
      .settings-logout { width: calc(100% - 24px); margin-inline: 12px; }
      .chat-header, .composer-inner, .reply-bar-inner, .adv-bar-inner { max-width: 100%; }
      .chat-history { padding: 14px 10px !important; }
      .msg-row { max-width: 86%; }
      .lightbox-body { max-width: 100%; max-height: 100%; }
      .orbit-overlay { padding: 0; align-items: flex-end; }
      .orbit-modal {
        width: 100%; max-width: none; max-height: min(92%, 720px);
        border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px);
      }
      button, [role="button"], .ftab, .wtab, .sptab { touch-action: manipulation; }
    }

    @media (max-width: 359px) {
      .snav-btn { font-size: 9px !important; }
      .stats-cards-row { grid-template-columns: 1fr; }
      .wall-create-btn { padding-inline: 10px; }
    }

    @media (max-width: 420px) {
      .chat-hdr { gap: 7px !important; padding: 8px 9px !important; }
      .chat-hdr-ava { width: 36px !important; height: 36px !important; }
      .chat-hdr-actions { gap: 0 !important; }
      .chat-hdr-actions .icon-btn { width: 34px !important; height: 34px !important; }
      .chat-composer { gap: 6px !important; padding: 8px 8px max(8px, env(safe-area-inset-bottom, 0px)) !important; }
      .chat-composer > .tmpl-btn { width: 36px !important; height: 36px !important; }
      .composer-area { min-width: 0; padding-inline: 10px !important; }
      .composer-inp { min-width: 0; font-size: 16px !important; }
      .send-btn { width: 38px !important; height: 38px !important; }
      .adv-broadcast-btn { padding-inline: 9px; }
    }

    @media (max-width: 999px) and (max-height: 500px) and (orientation: landscape) {
      :root {
        --vk-mobile-nav: 48px;
        --vk-topbar: calc(44px + env(safe-area-inset-top, 0px));
      }
      .snav-btn > span:not(.snav-badge) { display: none !important; }
      .snav-btn i { font-size: 21px !important; }
      .chat-hdr { padding-block: 5px !important; }
      .chat-hdr-ava { width: 32px !important; height: 32px !important; }
      .profile-pane { overflow-y: auto; }
    }

    @media (prefers-reduced-motion: reduce) {
      .content-pane, .sidebar { transition: none !important; }
    }

    html.preview-font-scaled .app,
    html.preview-font-scaled button,
    html.preview-font-scaled input,
    html.preview-font-scaled textarea,
    html.preview-font-scaled select {
      font-size: calc(1em * var(--preview-font-scale, 1));
    }
    .preview-keyboard-surface {
      position: fixed; z-index: 10000; inset: auto 0 0; height: var(--preview-keyboard-height, 0px);
      padding: 10px 8px; display: grid; align-content: center; gap: 7px;
      background: color-mix(in srgb, var(--surface2) 96%, #8c9199); border-top: 1px solid var(--border);
      box-shadow: 0 -8px 28px rgba(0,0,0,.2); color: var(--text); font-size: 12px; text-align: center;
    }
    .preview-keyboard-row { word-spacing: 14px; }
    .preview-keyboard-space { width: 48%; margin: 0 auto; padding: 7px; border-radius: 7px; background: var(--surface); }

    html.preview-hinge-vertical.preview-posture-book .app {
      grid-template-columns: var(--sidebar) calc(50% - var(--sidebar) - var(--preview-hinge-size)/2) var(--preview-hinge-size) minmax(0,1fr);
    }
    html.preview-hinge-vertical.preview-posture-book .app.profile-open {
      grid-template-columns: var(--sidebar) calc(50% - var(--sidebar) - var(--preview-hinge-size)/2) var(--preview-hinge-size) minmax(0,1fr) var(--profile);
    }
    html.preview-hinge-vertical.preview-posture-book #secMessages > .content-pane { grid-column: 4; }
    html.preview-hinge-vertical.preview-posture-book #secMessages > .profile-pane { grid-column: 5; }
    html.preview-hinge-vertical.preview-posture-book .wall-pane,
    html.preview-hinge-vertical.preview-posture-book .notif-pane,
    html.preview-hinge-vertical.preview-posture-book .stats-pane,
    html.preview-hinge-vertical.preview-posture-book .settings-pane { grid-column: 2 / -1 !important; }
    html.preview-hinge-horizontal.preview-posture-tabletop .app {
      height: calc(var(--adminova-viewport-height,100dvh)/2 - var(--preview-hinge-size)/2);
    }
