.vm-mic { position: absolute; display: none; align-items: center; justify-content: center; border: none; border-radius: var(--r-full); background: var(--accent); color: var(--accent-fg); cursor: pointer; padding: 0; z-index: 5; }
      .vm-mic.vm-show { display: flex; }
      .vm-overlay { position: fixed; inset: 0; z-index: 9000; display: none; }
      .vm-recbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 84px; display: flex; align-items: center; gap: 12px; background: var(--vd-card,#161618); color: var(--vd-fg,#fff); padding: 10px 16px; border-radius: 999px; box-shadow: 0 8px 30px rgba(0,0,0,.5); font-size: 14px; z-index: 9001; }
      .vm-dot { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; animation: vm-pulse 1s infinite; }
      @keyframes vm-pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
      .vm-lockpanel { position: fixed; right: 18px; bottom: 84px; display: none; flex-direction: column; align-items: center; gap: 14px; z-index: 9001; color: #fff; }
      .vm-lockpanel.vm-show { display: flex; }
      .vm-lp-btn { width: 56px; height: 56px; border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; }
      .vm-lp-trash { background: #ef4444; color: #fff; }
      .vm-lp-send { background: var(--accent); color: var(--accent-fg); }
      .vm-lockbadge { position: fixed; left: 50%; transform: translateX(-50%); bottom: 84px; background: var(--vd-card,#161618); color: var(--vd-fg,#fff); padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 9001; display: none; align-items: center; gap: 10px; }
      .vm-lockbadge.vm-show { display: flex; }
      .vm-player { display: flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px 6px 4px 4px; }
      .vm-pp { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; border: none; background: var(--accent); color: var(--accent-fg); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .12s, filter .12s; }
      .vm-pp:hover { filter: brightness(1.08); }
      .vm-pp:active { transform: scale(.9); }
      .vm-wave { position: relative; display: flex; align-items: center; gap: 2px; height: 30px; flex: 0 1 auto; width: 120px; min-width: 46px; cursor: pointer; touch-action: none; }
      .vm-wave span { flex: 1 1 0; min-width: 2px; border-radius: 2px; background: currentColor; opacity: .3; transition: opacity .12s; }
      .vm-wave span.vm-on { opacity: 1; }
      .vm-meta { display: flex; align-items: center; gap: 5px; flex-shrink: 0; font-size: 11px; line-height: 1; opacity: .85; white-space: nowrap; }
      .vm-rate { background: transparent; border: 1px solid currentColor; border-radius: 999px; font-size: 10px; font-weight: 700; padding: 2px 6px; cursor: pointer; opacity: .7; color: inherit; }
      .vm-rate:hover { opacity: 1; }

      
      @media (max-width: 599px), (pointer: coarse) and (max-height: 500px) {
        .toast-stack {
          top: var(--sp-3) !important;
          bottom: auto !important;
          left: var(--sp-3);
          right: var(--sp-3);
          align-items: center;
        }
        .toast { min-width: 0 !important; max-width: 100% !important; width: 100%; }
      }

      
      @media (max-width: 599px), (pointer: coarse) and (max-height: 500px) {
        .mobile-header,
        .shell .mobile-header { background: var(--bg) !important; }
        .mobile-header { height: 44px !important; }
        .main textarea[title^="Type a message"] { min-height: 44px !important; }
        .main form:has(> textarea[title^="Type a message"]) { margin-bottom: 14px !important; }
        .vm-composer { margin-bottom: 14px !important; }
        nav[aria-label="Bottom navigation"] {
          background: var(--surface) !important;
          background: color-mix(in srgb, var(--surface) 62%, transparent) !important;
          backdrop-filter: blur(12px) !important;
          -webkit-backdrop-filter: blur(12px) !important;
          bottom: 40px !important;
          box-shadow: none !important;
        }
        nav[aria-label="Bottom navigation"]::before {
          content: "";
          position: absolute;
          z-index: -1;
          left: calc(-1 * var(--sp-3));
          right: calc(-1 * var(--sp-3));
          bottom: 100%;
          top: -44px;
          backdrop-filter: blur(12px);
          -webkit-backdrop-filter: blur(12px);
          mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .8) 45%, transparent 100%);
          -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .8) 45%, transparent 100%);
          pointer-events: none;
        }
        nav[aria-label="Bottom navigation"]::after {
          content: "";
          position: absolute;
          z-index: -1;
          left: calc(-1 * var(--sp-3));
          right: calc(-1 * var(--sp-3));
          top: 100%;
          bottom: -40px;
          backdrop-filter: blur(12px);
          -webkit-backdrop-filter: blur(12px);
          pointer-events: none;
        }
        button[aria-label="New chat"] {
          bottom: calc(96px + var(--sp-3)) !important;
          box-shadow: none !important;
          z-index: 45 !important;
        }
        .shell,
        .apk .shell { padding-bottom: 0 !important; }
        .main { padding-bottom: 0 !important; }
        .context-panel__body { padding-bottom: 120px !important; }
        .shell { background: var(--bg) !important; }
      }

      
      @media (hover: none) {
        .icon-btn:hover,
        .nav-rail button:hover,
        .mobile-header button:hover,
        .mobile-header__btn:hover,
        .mobile-back-btn:hover,
        .vm-disc-mob:hover {
          background: transparent !important;
        }
        .icon-btn:hover:after {
          opacity: 0 !important;
          transform: translateY(-50%) scale(0) !important;
        }
      }
      img, video, canvas { -webkit-tap-highlight-color: transparent; }

      
      button[title="Start call"],
      button[title="Join call"] {
        background: var(--surface) !important;
        border: none !important;
        color: var(--accent) !important;
      }
.vm-disc-btn svg { width: 22px; height: 22px; display: block; }
      .vm-disc-mob {
        width: 40px; height: 40px; border: none; background: transparent;
        color: var(--text); cursor: pointer; flex-shrink: 0;
        display: flex; align-items: center; justify-content: center;
        border-radius: var(--r-full);
        transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
      }
      .vm-disc-mob:hover { background: var(--surface-2); }
      .vm-disc-mob svg { width: 24px; height: 24px; display: block; }
      .vm-disc-mob--active { color: var(--accent); background: var(--accent-soft); }
      .vm-discover {
        position: fixed; inset: 0;
        background: rgba(0, 0, 0, .55);
        z-index: 100;
        display: flex; align-items: center; justify-content: center;
        padding: var(--sp-4);
        animation: vm-disc-overlay-in var(--dur) var(--ease);
      }
      @keyframes vm-disc-overlay-in { 0% { opacity: 0; } 100% { opacity: 1; } }
      .vm-disc-modal {
        width: 100%; max-width: 720px; max-height: 85vh;
        background: var(--surface);
        border-radius: var(--r-lg);
        box-shadow: var(--shadow-md);
        display: flex; flex-direction: column; overflow: hidden;
        animation: vm-disc-modal-in var(--dur) var(--ease);
      }
      @keyframes vm-disc-modal-in { 0% { opacity: 0; transform: translateY(8px) scale(.98); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
      .vm-disc-header {
        display: flex; align-items: center; justify-content: space-between;
        padding: var(--sp-5) var(--sp-6);
        flex-shrink: 0;
      }
      .vm-disc-title { font-size: var(--fs-xl); font-weight: var(--fw-bold); display: flex; align-items: center; gap: var(--sp-3); }
      .vm-disc-title svg { width: 22px; height: 22px; color: var(--accent); }
      .vm-disc-sub { font-size: var(--fs-xs); color: var(--text-muted); font-weight: var(--fw-regular); }
      .vm-disc-close {
        width: 40px; height: 40px; border-radius: var(--r-full);
        display: inline-flex; align-items: center; justify-content: center;
        color: var(--text-secondary); background: transparent; flex-shrink: 0;
        transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
      }
      .vm-disc-close:hover { background: var(--surface-2); color: var(--text); }
      
      .vm-disc-search {
        position: relative;
        margin: 0 var(--sp-6) var(--sp-3);
        padding-top: 18px;
        flex-shrink: 0;
      }
      .vm-disc-search label {
        position: absolute; left: 2px; top: 26px;
        color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.5;
        pointer-events: none;
        transition: top var(--dur) var(--ease), font-size var(--dur) var(--ease), color var(--dur) var(--ease);
      }
      .vm-disc-search--float label { top: 0; font-size: var(--fs-xs); color: var(--accent); }
      .vm-disc-search input {
        width: 100%;
        background: transparent; border: none; outline: none;
        border-bottom: 1px solid var(--border-strong);
        border-radius: 2px;
        padding: 8px 26px 8px 2px;
        color: var(--text); font-size: var(--fs-sm); font-family: inherit; line-height: 1.5;
        caret-color: var(--accent);
        transition: border-color var(--dur-fast) var(--ease);
      }
      .vm-disc-search input:focus { border-bottom-color: var(--accent); }
      .vm-disc-clear {
        position: absolute; right: 0; top: 27px;
        width: 22px; height: 22px; border-radius: var(--r-full); border: none;
        background: transparent; color: var(--text-muted);
        font-size: 11px; line-height: 1; cursor: pointer; flex-shrink: 0;
        display: none; align-items: center; justify-content: center;
      }
      .vm-disc-clear--show { display: inline-flex; }
      .vm-disc-clear:hover { color: var(--text); }
      .vm-disc-body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: var(--sp-6); }
      .vm-disc-grid > .vm-disc-card { min-width: 0; }
      .vm-disc-grid {
        display: grid; gap: var(--sp-4);
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        max-width: 1100px; margin: 0 auto;
      }
      .vm-disc-card {
        background: var(--surface);
        border-radius: var(--r-lg); padding: var(--sp-5);
        display: flex; flex-direction: column; gap: var(--sp-3);
        transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
      }
      .vm-disc-card:hover { background: var(--surface-2); }
      .vm-disc-card-top { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
      .vm-disc-avatar {
        width: 48px; height: 48px; border-radius: var(--r-md); flex-shrink: 0;
        display: inline-flex; align-items: center; justify-content: center;
        font-weight: var(--fw-bold); font-size: var(--fs-lg); color: #fff; overflow: hidden;
        background: var(--accent);
      }
      .vm-disc-avatar img { width: 100%; height: 100%; object-fit: cover; }
      .vm-disc-name { font-weight: var(--fw-semibold); font-size: var(--fs-md); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
      .vm-disc-members { font-size: var(--fs-xs); color: var(--text-muted); }
      .vm-disc-desc { font-size: var(--fs-sm); color: var(--text-secondary); min-height: 20px;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
      .vm-disc-join {
        align-self: flex-start; height: 34px; padding: 0 var(--sp-4);
        border-radius: var(--r-full); font-size: var(--fs-sm); font-weight: var(--fw-semibold);
        background: var(--accent); color: var(--accent-fg);
        transition: background-color var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
      }
      .vm-disc-join:hover:not(:disabled) { background: var(--accent-hover); }
      .vm-disc-join:disabled { opacity: .6; cursor: default; }
      .vm-disc-join--done { background: var(--surface-3); color: var(--text-secondary); }
      .vm-disc-foot {
        display: flex; align-items: center; justify-content: center; gap: var(--sp-4);
        padding: var(--sp-4) var(--sp-6); flex-shrink: 0;
      }
      .vm-disc-pagebtn {
        height: 36px; min-width: 36px; padding: 0 var(--sp-3);
        border-radius: var(--r-full); background: var(--surface-2); color: var(--text);
        font-size: var(--fs-sm); font-weight: var(--fw-medium);
        display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-1);
        transition: background-color var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
      }
      .vm-disc-pagebtn:hover:not(:disabled) { background: var(--surface-3); }
      .vm-disc-pagebtn:disabled { opacity: .4; cursor: default; }
      .vm-disc-pageinfo { font-size: var(--fs-sm); color: var(--text-secondary); min-width: 130px; text-align: center; }
      .vm-disc-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-2); color: var(--text-muted); padding: var(--sp-10); text-align: center; }
      .vm-disc-spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--accent); animation: vm-spin .7s linear infinite; }
      @keyframes vm-spin { to { transform: rotate(360deg); } }
      @media (max-width: 599px), (pointer: coarse) and (max-height: 500px) {
        .vm-disc-modal { max-width: calc(100vw - var(--sp-4)); max-height: 88vh; }
        .vm-disc-body { padding: var(--sp-4); }
        .vm-disc-search { margin: 0 var(--sp-4) var(--sp-2); }
        .vm-disc-grid { grid-template-columns: 1fr; }
      }
#vToBottom {
        position: fixed; width: 40px; height: 40px; padding: 0;
        background: var(--surface);
        border: none;
        border-radius: var(--r-md);
        box-shadow: var(--shadow-md);
        color: var(--text-secondary);
        display: flex; align-items: center; justify-content: center;
        cursor: pointer; z-index: 15;
        opacity: 0; visibility: hidden; transform: translateY(8px);
        transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
                    color var(--dur-fast) var(--ease),
                    visibility var(--dur);
      }
      #vToBottom.v--show { opacity: 1; visibility: visible; transform: translateY(0); }
      #vToBottom:hover { color: var(--accent); }
      #vToBottom svg { width: 20px; height: 20px; display: block; }
.vm-rl-pop {
        position: fixed; left: 50%; bottom: 28px;
        transform: translateX(-50%);
        background: var(--surface); color: var(--text);
        padding: var(--sp-3) var(--sp-5);
        border-radius: var(--r-md); box-shadow: var(--shadow-md);
        display: flex; align-items: center; gap: var(--sp-3);
        z-index: 300; max-width: 90vw;
        animation: vm-rl-in var(--dur) var(--ease);
      }
      .vm-rl-ic {
        width: 32px; height: 32px; border-radius: var(--r-full);
        background: var(--accent-soft); color: var(--accent);
        display: flex; align-items: center; justify-content: center; flex-shrink: 0;
      }
      .vm-rl-txt { display: flex; flex-direction: column; gap: 1px; }
      .vm-rl-txt strong { font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
      .vm-rl-txt span { font-size: var(--fs-xs); color: var(--text-secondary); }
      .vm-rl-out { animation: vm-rl-out .2s var(--ease) forwards; }
      @keyframes vm-rl-in { 0% { opacity: 0; transform: translateX(-50%) translateY(12px); } 100% { opacity: 1; transform: translateX(-50%) translateY(0); } }
      @keyframes vm-rl-out { 0% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(8px); } }
      @media (max-width: 599px), (pointer: coarse) and (max-height: 500px) { .vm-rl-pop { bottom: 18px; left: 16px; right: 16px; transform: none; max-width: none; } }
.vr-row {
        display: flex; flex-wrap: wrap; gap: 4px;
        margin-top: 4px; pointer-events: auto;
      }
      .vr-pill {
        display: inline-flex; align-items: center; gap: 4px;
        padding: 1px 8px; border-radius: 999px;
        background: rgba(127, 127, 127, 0.18);
        font-size: 12px; line-height: 20px; border: none;
        cursor: pointer; user-select: none;
        -webkit-tap-highlight-color: transparent;
        transition: background-color .12s ease, transform .12s ease;
      }
      .vr-pill:hover { background: rgba(127, 127, 127, 0.3); }
      .vr-pill:active { transform: scale(.92); }
      .vr-pill.vr-mine { background: var(--accent-soft, rgba(127,127,127,.25)); }
      .vr-pill .vr-n { font-size: 11px; font-weight: 600; opacity: .8; }
      .vr-picker {
        position: fixed; z-index: 8000;
        display: flex; gap: 2px; padding: 6px;
        background: var(--surface); border-radius: var(--r-lg, 14px);
        box-shadow: var(--shadow-md, 0 8px 30px rgba(0,0,0,.4));
        animation: vr-in .12s ease;
      }
      @keyframes vr-in { 0% { opacity: 0; transform: translateY(4px) scale(.96); } 100% { opacity: 1; transform: none; } }
      .vr-btn {
        width: 38px; height: 38px; border: none; border-radius: var(--r-md, 10px);
        background: transparent; font-size: 21px; line-height: 1; cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        transition: background-color .12s ease, transform .12s ease;
        -webkit-tap-highlight-color: transparent;
      }
      .vr-btn:hover { background: var(--surface-2); transform: scale(1.12); }
      .vr-btn:active { transform: scale(.9); }
      .vr-btn.vr-on { background: var(--accent-soft, rgba(127,127,127,.18)); }
      
      .vqr {
        position: absolute; bottom: 100%; left: -4px;
        margin-bottom: 6px;
        display: flex; gap: 2px; padding: 4px;
        background: var(--surface);
        border-radius: var(--r-full, 999px);
        box-shadow: var(--shadow-md, 0 8px 30px rgba(0,0,0,.4));
        white-space: nowrap;
      }
      .vqr__b {
        border: none; background: transparent; font-family: inherit;
        font-size: 17px; line-height: 1; padding: 4px 5px;
        border-radius: var(--r-full, 999px); cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        transition: background-color .12s ease, transform .12s ease;
        -webkit-tap-highlight-color: transparent;
      }
      .vqr__b:hover { background: var(--surface-2); transform: scale(1.2); }
      .vqr__b:active { transform: scale(.9); }
.vpro-card {
        margin: var(--sp-3) 0 var(--sp-2);
        padding: var(--sp-3) var(--sp-4);
        border-radius: var(--r-md, 12px);
        background: var(--surface-2);
        display: flex; flex-direction: column; gap: var(--sp-2);
        font-size: var(--fs-sm);
      }
      .vpro-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
      .vpro-date { font-weight: var(--fw-semibold); }
      .vpro-hint { font-size: var(--fs-xs); color: var(--text-secondary); }
      .vpro-btn {
        border: none; cursor: pointer; font-family: inherit; font-weight: var(--fw-semibold);
        font-size: var(--fs-sm); padding: 8px 16px; border-radius: var(--r-md, 10px);
        background: var(--accent); color: var(--accent-fg, #fff);
        transition: filter .12s ease, transform .12s ease;
        -webkit-tap-highlight-color: transparent;
      }
      .vpro-btn:hover { filter: brightness(1.08); }
      .vpro-btn:active { transform: scale(.97); }
      .vpro-btn.vpro-ghost { background: var(--surface-3); color: var(--text); }
      .vpro-overlay {
        position: fixed; inset: 0; z-index: 9500;
        background: rgba(0,0,0,.55);
        display: flex; align-items: center; justify-content: center;
        padding: var(--sp-4);
        animation: vpro-in .15s ease;
      }
      @keyframes vpro-in { 0% { opacity: 0; } 100% { opacity: 1; } }
      .vpro-modal {
        width: 100%; max-width: 420px; max-height: 88vh; overflow-y: auto;
        background: var(--surface); border-radius: var(--r-lg, 14px);
        box-shadow: var(--shadow-md, 0 8px 30px rgba(0,0,0,.4));
        padding: var(--sp-5) var(--sp-5) var(--sp-4);
        display: flex; flex-direction: column; gap: var(--sp-3);
        animation: vpro-pop .15s ease;
      }
      @keyframes vpro-pop { 0% { opacity: 0; transform: translateY(8px) scale(.97); } 100% { opacity: 1; transform: none; } }
      .vpro-title { font-size: var(--fs-lg); font-weight: var(--fw-bold); display: flex; align-items: center; justify-content: space-between; }
      .vpro-x { border: none; background: transparent; color: var(--text-secondary); font-size: 18px; cursor: pointer; padding: 4px 8px; border-radius: var(--r-full); }
      .vpro-x:hover { background: var(--surface-2); }
      .vpro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
      .vpro-opt {
        border: none; background: var(--surface-2); color: var(--text);
        border-radius: var(--r-md, 10px); padding: var(--sp-3); cursor: pointer; font-family: inherit;
        display: flex; flex-direction: column; gap: 2px; text-align: left;
        transition: background-color .12s ease;
      }
      .vpro-opt:hover { background: var(--surface-3); }
      .vpro-opt.vpro-sel { background: var(--accent-soft, var(--surface-3)); }
      .vpro-opt b { font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
      .vpro-opt span { font-size: var(--fs-xs); color: var(--text-secondary); }
      .vpro-total { display: flex; justify-content: space-between; font-size: var(--fs-sm); padding: var(--sp-2) 0; }
      .vpro-total b { font-size: var(--fs-md); }
      .vpro-note { font-size: var(--fs-xs); color: var(--text-muted); text-align: center; }
      .vpro-full {
        position: fixed; inset: 0; z-index: 9600; background: var(--bg, #121212);
        display: flex; align-items: center; justify-content: center; padding: var(--sp-4);
      }
      .vpro-act {
        max-width: 380px; width: 100%; text-align: center;
        display: flex; flex-direction: column; gap: var(--sp-4); align-items: center;
      }
      .vpro-spin {
        width: 34px; height: 34px; border-radius: 50%;
        border: 3px solid var(--surface-3); border-top-color: var(--accent);
        animation: vpro-rot .8s linear infinite;
      }
      @keyframes vpro-rot { to { transform: rotate(360deg); } }
      .vpro-big { font-size: var(--fs-xl); font-weight: var(--fw-bold); }
.vce-btn {
        width: 36px; height: 36px; border: none; background: transparent;
        color: var(--text-secondary); cursor: pointer; flex-shrink: 0;
        display: flex; align-items: center; justify-content: center;
        border-radius: var(--r-full);
        transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
        -webkit-tap-highlight-color: transparent;
      }
      .vce-btn:hover { background: var(--surface-2); color: var(--text); }
      .vce-btn svg { width: 21px; height: 21px; display: block; }
      .vce-pop {
        position: fixed; z-index: 8500;
        width: 320px; max-width: calc(100vw - 16px);
        max-height: 300px; overflow-y: auto;
        background: var(--surface); border-radius: var(--r-lg, 14px);
        box-shadow: var(--shadow-md, 0 8px 30px rgba(0,0,0,.4));
        padding: var(--sp-2);
        animation: vce-in .12s ease;
      }
      @keyframes vce-in { 0% { opacity: 0; transform: translateY(6px) scale(.97); } 100% { opacity: 1; transform: none; } }
      
      .vce-pop--out {
        animation: vce-out .14s ease forwards;
        pointer-events: none;
      }
      @keyframes vce-out { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(6px) scale(.97); } }
      .vce-sec {
        font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
        color: var(--text-muted); padding: var(--sp-2) var(--sp-2) var(--sp-1);
      }
      .vce-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
      .vce-e {
        border: none; background: transparent; cursor: pointer; font-family: inherit;
        font-size: 20px; line-height: 1; padding: 5px 0; border-radius: var(--r-md, 8px);
        display: flex; align-items: center; justify-content: center;
        transition: background-color .1s ease, transform .1s ease;
        -webkit-tap-highlight-color: transparent;
      }
      .vce-e:hover { background: var(--surface-2); transform: scale(1.15); }
      .vce-e:active { transform: scale(.9); }
      .vce-e img { width: 22px; height: 22px; object-fit: contain; display: block; }
      .vce-grid .vce-e { min-height: 32px; }
.vam-pop { position: fixed; z-index: 8600; width: 280px; max-width: calc(100vw - 16px);
        background: var(--surface-2, #232326); color: var(--text, #fff);
        border: 1px solid rgba(255,255,255,.14); border-radius: 10px;
        box-shadow: 0 8px 24px rgba(0,0,0,.45); overflow: hidden; }
      .vam-it { display: flex; align-items: center; gap: 8px; width: 100%;
        padding: 7px 10px; border: none; background: transparent; color: inherit;
        cursor: pointer; text-align: left; font: inherit; font-size: 13px; }
      .vam-it:hover, .vam-it.vam-on { background: var(--vd-tint3,rgba(255,255,255,.12)); }
      .vam-av { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
        display: flex; align-items: center; justify-content: center;
        font-size: 11px; font-weight: 700; color: #fff; }
      .vam-h { font-weight: 700; flex-shrink: 0; }
      .vam-n { opacity: .65; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vcg-pop {
        position: fixed; z-index: 8500;
        width: 360px; max-width: calc(100vw - 16px);
        height: 380px; max-height: calc(100vh - 24px);
        display: flex; flex-direction: column;
        background: var(--surface); border-radius: var(--r-lg, 14px);
        box-shadow: var(--shadow-md, 0 8px 30px rgba(0,0,0,.4));
        padding: var(--sp-2);
        animation: vce-in .12s ease;
      }
      .vcg-pop--out { animation: vce-out .14s ease forwards; pointer-events: none; }
      .vcg-bar { padding: 0 var(--sp-1) var(--sp-2); }
      .vcg-bar input {
        width: 100%; box-sizing: border-box; padding: 8px 10px;
        border-radius: var(--r-md, 8px); border: 1px solid var(--surface-2);
        background: var(--surface-2); color: var(--text); font: inherit; outline: none;
      }
      .vcg-bar input:focus { border-color: var(--accent); }
      .vcg-grid {
        flex: 1; overflow-y: auto;
        display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
        align-content: start;
      }
      .vcg-g {
        border: none; background: var(--surface-2); border-radius: var(--r-md, 8px);
        overflow: hidden; cursor: pointer; padding: 0; min-height: 64px;
        display: block; -webkit-tap-highlight-color: transparent;
      }
      .vcg-g img { width: 100%; height: 100%; min-height: 64px; object-fit: cover; display: block; }
      .vcg-g:hover { filter: brightness(1.15); }
      .vcg-note { display: none; color: var(--text-muted); font-size: 12px; text-align: center; padding: var(--sp-3) var(--sp-2); }
      .vcg-g { position: relative; }
      .vcg-star {
        position: absolute; top: 4px; right: 4px; width: 18px; height: 18px;
        border-radius: 6px; background: rgba(0,0,0,.55); color: #ffd75e;
        display: none; align-items: center; justify-content: center; pointer-events: none;
      }
      .vcg-star svg { width: 12px; height: 12px; display: block; }
      .vcg-fav .vcg-star { display: flex; }
      .vcg-favhead { grid-column: 1 / -1; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); padding: 6px 4px 2px; }
      .vcg-favhint { grid-column: 1 / -1; color: var(--text-muted); font-size: 12px; padding: 0 4px 6px; }
@media (pointer: coarse) and (max-width: 599px), (pointer: coarse) and (max-height: 500px) {
        [id^="msg-"] { touch-action: pan-y; }
      }
      .vsr-hint {
        position: fixed; z-index: 260;
        width: 34px; height: 34px; border-radius: var(--r-full, 50%);
        background: var(--accent); color: var(--accent-fg, #fff);
        display: flex; align-items: center; justify-content: center;
        pointer-events: none; opacity: 0; transform: scale(.5);
        transition: opacity .12s ease, transform .12s ease;
        box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,.25));
      }
      .vsr-hint svg { width: 18px; height: 18px; display: block; }
      .vsr-drag { transition: none !important; }
      .vsr-back { transition: transform .22s cubic-bezier(.22,.61,.36,1) !important; }
.list-row { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.vsj-card {
        position: fixed; z-index: 8400;
        background: var(--surface, #1b1b1f); border: 1px solid var(--surface-2, #2a2a30);
        border-radius: var(--r-md, 10px); box-shadow: 0 8px 30px rgba(0,0,0,.45);
        padding: 10px 12px; font-size: 13px; color: var(--text, #f0f0f2);
      }
      .vsj-title { font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 8px; min-width: 0; }
      .vsj-title .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
      .vsj-dot { width: 26px; height: 26px; border-radius: 999px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; }
      .vsj-sub { color: var(--text-muted, #9a9aa2); font-size: 11px; margin: 2px 0 6px 34px; }
      .vsj-desc { color: var(--text-secondary, #b4b4bc); font-size: 11.5px; line-height: 1.4; margin: 0 0 8px 34px; max-height: 44px; overflow: hidden; }
      .vsj-join {
        margin-left: 34px; border: none; border-radius: var(--r-full, 999px); cursor: pointer;
        background: var(--accent, #f97316); color: var(--accent-fg, #fff);
        font: inherit; font-weight: 600; font-size: 12px; padding: 5px 14px;
      }
      .vsj-join:disabled { opacity: .5; cursor: default; }
      .vsj-tag { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted, #9a9aa2); border: 1px solid var(--surface-2, #2a2a30); border-radius: 6px; padding: 1px 5px; margin-left: auto; flex-shrink: 0; }
.vtip{position:fixed;transform:translate(-50%,-100%);background:var(--bg-elevated,#1e1f25);color:var(--text-primary,#fff);padding:4px 10px;border-radius:8px;font-size:12px;font-weight:500;z-index:99999;pointer-events:none;opacity:0;transition:opacity .15s ease;box-shadow:0 4px 12px rgba(0,0,0,.35);white-space:nowrap;text-align:center}
.vsb-arrow{position:fixed;z-index:260;width:34px;height:34px;border-radius:var(--r-full,50%);background:var(--accent);color:var(--accent-fg,#fff);display:flex;align-items:center;justify-content:center;pointer-events:none;opacity:0;transform:scale(.5);transition:opacity .12s ease,transform .12s ease;box-shadow:var(--shadow-md,0 4px 12px rgba(0,0,0,.25))}
.vsb-arrow svg{width:18px;height:18px;display:block}
.vsb-drag{transition:none!important}
.vsb-back{transition:transform .22s cubic-bezier(.22,.61,.36,1)!important}
@media (pointer:coarse) and (max-width: 599px), (pointer: coarse) and (max-height: 500px) {
[id^="msg-"]{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
}
@media (max-width: 599px), (pointer: coarse) and (max-height: 500px) {body.vmsel .context-panel__header{display:none!important}}
@media (min-width: 600px) and (min-height: 501px), (min-width: 600px) and (pointer: fine), (min-width: 600px) and (pointer: none) {body.vmsel .main>*:not(aside.context-panel) .context-panel__header{display:none!important}}
body.vmsel .main :has(> button.mobile-back-btn){display:none!important}
body.vmsel .vm-composer{display:none!important}
.main>*:not(aside.context-panel):not(.context-menu){position:relative}
.main>*:not(aside.context-panel)>.context-panel__header{position:absolute;top:0;left:0;right:0;z-index:30}
.main .vm-pinbar{position:absolute;top:76px;left:0;right:0;z-index:29}
.main .vm-cwrap{position:absolute;bottom:0;left:0;right:0;z-index:30}
.main .vm-cwrap>form{background:color-mix(in srgb,var(--surface) 72%,transparent)!important;backdrop-filter:blur(16px) saturate(1.3);-webkit-backdrop-filter:blur(16px) saturate(1.3)}
.main .vm-cwrap>form textarea{min-height:40px!important;padding:9px 8px 10px!important;line-height:21px!important}
.main .vm-cwrap>form button{align-self:flex-end}
.main .vm-replybar{background:color-mix(in srgb,var(--surface) 72%,transparent)!important;backdrop-filter:blur(16px) saturate(1.3);-webkit-backdrop-filter:blur(16px) saturate(1.3);box-shadow:var(--shadow-md)}
.main .vm-mscroll{padding-top:88px!important;padding-bottom:calc(var(--vcomp-h,112px) + 10px)!important}
@media (min-width: 600px) and (min-height: 501px), (min-width: 600px) and (pointer: fine), (min-width: 600px) and (pointer: none) {
.main .vm-chatpill{background:color-mix(in srgb,var(--surface) 72%,transparent)!important;backdrop-filter:blur(16px) saturate(1.3);-webkit-backdrop-filter:blur(16px) saturate(1.3)}
}
body.vlsel aside.context-panel{position:relative}
@media (max-width: 599px), (pointer: coarse) and (max-height: 500px) {
.main>*:not(aside.context-panel)>.context-panel__header{margin:8px 10px 0;padding:5px 10px;border-radius:999px;background:color-mix(in srgb,var(--surface) 75%,transparent);backdrop-filter:blur(16px) saturate(1.3);-webkit-backdrop-filter:blur(16px) saturate(1.3)}
.main .vm-pinbar{top:72px}
.main .vm-cwrap{padding:0 10px calc(10px + env(safe-area-inset-bottom,0px))}
.main .vm-mscroll{padding-top:78px!important;padding-bottom:calc(var(--vcomp-h,100px) + 10px)!important}
}
[id^="msg-"].vms-on{background:var(--accent)!important;color:var(--accent-fg,#fff)!important}
[id^="msg-"].vms-on *{color:inherit!important}
[id^="msg-"].vms-on::after{content:"✓";position:absolute;top:4px;right:4px;min-width:18px;height:18px;border-radius:50%;background:var(--accent);color:var(--accent-fg,#fff);font-size:11px;line-height:18px;text-align:center;font-weight:700;padding:0 3px;z-index:3}
.vms-bar{position:absolute;left:0;right:0;z-index:400;display:flex;align-items:center;gap:10px;padding:14px 20px;background:transparent;box-shadow:none}
.vms-top{top:0;padding-top:calc(8px + env(safe-area-inset-top,0px));padding-bottom:10px}
.vms-bottom{bottom:0;padding-top:16px;padding-bottom:calc(20px + env(safe-area-inset-bottom,0px));justify-content:center;gap:30px;background:transparent}
.vms-x,.vms-act{display:flex;align-items:center;justify-content:center;border:none;background:transparent;color:var(--text);cursor:pointer;font-family:inherit;padding:10px;min-width:44px;min-height:44px;border-radius:var(--r-full,50%)}
.vms-x{width:42px;height:42px;background:color-mix(in srgb,var(--text) 9%,transparent)}
.vms-x svg{width:18px;height:18px}
.vms-act:disabled{opacity:.35}
.vms-act svg{width:22px;height:22px;display:block}
.vms-act.vms-lab{gap:8px;font-size:13px;font-weight:600;width:auto;padding:10px 18px;background:color-mix(in srgb,var(--surface) 78%,transparent);backdrop-filter:blur(14px) saturate(1.3);-webkit-backdrop-filter:blur(14px) saturate(1.3);box-shadow:none;color:var(--text)}
.vms-bar > .vls-dots{background:color-mix(in srgb,var(--text) 9%,transparent);border-radius:var(--r-full,999px);margin-left:auto}
.vms-act.vms-lab svg{width:19px;height:19px}
.vms-count{font-size:15px;font-weight:700;color:var(--text);padding:10px 20px;border-radius:var(--r-full,999px);background:color-mix(in srgb,var(--text) 9%,transparent)}
.vms-grp{display:flex;align-items:center;gap:2px;margin-left:auto;padding:2px;border-radius:var(--r-full,999px);background:color-mix(in srgb,var(--text) 9%,transparent)}
.vms-grp .vms-act{min-width:40px;min-height:40px;padding:8px}
body.vlsel .mobile-header{display:none!important}
body.vlsel aside.context-panel .vms-bar{position:static;order:-1;background:var(--surface);border-bottom:1px solid color-mix(in srgb,var(--text) 10%,transparent)}
.vls-dd{position:fixed;z-index:410;right:14px;top:calc(64px + env(safe-area-inset-top,0px));min-width:236px;background:var(--surface-2,var(--bg-elevated,#1e1f25));border-radius:12px;box-shadow:0 12px 32px rgba(0,0,0,.35);padding:6px;display:none;flex-direction:column}
.list-row{position:relative}
.list-row.vls-on{background:var(--accent-soft)!important}
.list-row.vls-on .avatar{position:relative;overflow:visible}
.list-row.vls-on .avatar img{border-radius:inherit}
.list-row.vls-on .avatar::after{content:"✓";position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;border-radius:50%;background:var(--accent);color:var(--accent-fg,#fff);font-size:11px;line-height:18px;text-align:center;font-weight:700;padding:0 3px;z-index:3;box-shadow:0 0 0 2px var(--bg)}
.vls-dd.vls-open{display:flex}
.vls-dd button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:none;background:transparent;color:var(--text);font-family:inherit;font-size:14px;font-weight:500;padding:10px 12px;border-radius:8px;cursor:pointer}
.vls-dd button:active{background:color-mix(in srgb,var(--text) 8%,transparent)}
.vls-dd svg{width:18px;height:18px;flex:none}
.vls-dd .vls-sep{height:1px;background:color-mix(in srgb,var(--text) 10%,transparent);margin:4px 8px}
.vls-grab{position:absolute;left:2px;top:50%;transform:translateY(-50%);width:30px;height:44px;display:none;align-items:center;justify-content:center;color:var(--text-secondary,var(--text));touch-action:none;cursor:grab;z-index:5}
.vls-grab svg{width:16px;height:16px}
body.vlsel .list-row.vls-pin .vls-grab{display:flex}
.list-row.vls-dragging{z-index:30;background:var(--accent-soft)!important;box-shadow:0 8px 24px rgba(0,0,0,.3)}
.vf-pill{position:absolute;border-radius:var(--r-full,999px);background:color-mix(in srgb,var(--text) 9%,transparent);backdrop-filter:blur(14px) saturate(1.3);-webkit-backdrop-filter:blur(14px) saturate(1.3);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--text) 12%,transparent),inset 0 1px 0 color-mix(in srgb,var(--text) 8%,transparent);transition:left .12s cubic-bezier(.4,0,.2,1),width .12s cubic-bezier(.4,0,.2,1),top .12s cubic-bezier(.4,0,.2,1),height .12s cubic-bezier(.4,0,.2,1);z-index:0;pointer-events:none}
.vfolders{position:relative}
.vfolders button{position:relative;z-index:1}
.vfolders .btn--primary{background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;color:var(--accent)!important}
.vfolders .btn--primary:hover:not(:disabled){background:transparent!important}
.vapk-btn{position:relative;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:none;background:transparent;color:var(--text);cursor:pointer;padding:0}
.vapk-btn svg{width:20px;height:20px}
.vapk-dot{position:absolute;top:5px;right:5px;min-width:16px;height:16px;border-radius:8px;background:var(--danger,#ef4444);color:#fff;font-size:10px;font-weight:700;line-height:16px;text-align:center;padding:0 3px}
.vapk-sheet,.vfw-sheet{position:fixed;inset:0;z-index:500;display:flex;align-items:flex-end;background:rgba(0,0,0,.45)}
@media (min-width: 600px) and (min-height: 501px), (min-width: 600px) and (pointer: fine), (min-width: 600px) and (pointer: none) {.vapk-sheet,.vfw-sheet{align-items:center;justify-content:center}}
.vapk-card{width:100%;max-width:440px;background:var(--surface,var(--bg-elevated,#1e1f25));border-radius:18px 18px 0 0;padding:22px 20px;box-shadow:0 -10px 40px rgba(0,0,0,.4)}
.vapk-card h3{margin:0 0 6px;font-size:17px;color:var(--text)}
.vapk-card p{margin:0 0 18px;font-size:13.5px;line-height:1.5;color:var(--text-secondary,var(--text));opacity:.8}
.vapk-row{display:flex;gap:10px}
.vapk-btn2{flex:1;padding:11px 12px;border-radius:12px;border:none;font-family:inherit;font-size:14px;font-weight:700;cursor:pointer}
.vfw-card{width:100%;max-width:440px;max-height:72vh;background:var(--surface,var(--bg-elevated,#1e1f25));border-radius:18px 18px 0 0;display:flex;flex-direction:column;box-shadow:0 -10px 40px rgba(0,0,0,.4)}
@media (min-width: 600px) and (min-height: 501px), (min-width: 600px) and (pointer: fine), (min-width: 600px) and (pointer: none) {.vapk-card,.vfw-card{border-radius:18px}}
.vfw-head{padding:16px 18px 10px;display:flex;align-items:center;gap:10px}
.vfw-head h3{margin:0;font-size:16px;color:var(--text);flex:1}
.vfw-x{width:32px;height:32px;border:none;border-radius:50%;background:color-mix(in srgb,var(--text) 9%,transparent);color:var(--text);font-size:15px;cursor:pointer}
.vfw-search{margin:0 18px 10px;padding:10px 12px;border-radius:10px;border:1px solid color-mix(in srgb,var(--text) 14%,transparent);background:transparent;color:var(--text);font-family:inherit;font-size:14px;outline:none}
.vfw-list{overflow-y:auto;padding:0 10px 14px;flex:1}
.vfw-item{display:flex;align-items:center;gap:11px;width:100%;border:none;background:transparent;color:var(--text);font-family:inherit;text-align:left;padding:10px;border-radius:10px;cursor:pointer}
.vfw-item:active{background:color-mix(in srgb,var(--text) 8%,transparent)}
.vfw-av{width:36px;height:36px;border-radius:50%;background:var(--accent);color:var(--accent-fg,#fff);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:15px;flex:none}
.vfw-nm{font-size:14px;font-weight:600}
.vfw-sub{font-size:12px;opacity:.65}
.vcf-modal{position:fixed;inset:0;z-index:520;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.5);padding:24px}
.vcf-card{width:100%;max-width:340px;background:var(--surface,var(--bg-elevated,#1e1f25));border-radius:16px;padding:20px}
.vcf-card p{margin:0 0 16px;font-size:14px;color:var(--text);line-height:1.5}
.vcf-row{display:flex;gap:10px}
.auth-card__form .field:has(.secret-box){padding-top:0}
.auth-card__form .field:has(.secret-box)>.field__label{position:static;display:block;font-size:var(--fs-xs);color:var(--text-secondary);line-height:1.4;margin-bottom:var(--sp-1)}
body.vk-open nav[aria-label="Bottom navigation"] { display: none !important; }
    body.vk-open button[aria-label="New chat"] { display: none !important; }
@media (pointer: coarse) {
    .vce-btn {
        transition: width .18s ease, margin .18s ease, padding .18s ease, opacity .14s ease, transform .18s ease;
    }
    body.vtyping .vce-btn {
        width: 0 !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        opacity: 0 !important;
        transform: scale(.6) !important;
        pointer-events: none !important;
        overflow: hidden;
    }
}
.vm-pending-conv{opacity:.45 !important;filter:grayscale(1) !important;pointer-events:none !important;position:relative}
.vm-pending-badge{position:absolute;top:8px;right:10px;width:18px;height:18px;display:flex;align-items:center;justify-content:center;pointer-events:auto;cursor:help;z-index:5;opacity:.9}
.vm-jr-wrap{display:inline-flex;gap:8px;margin:6px 0}
.vm-jr-btn{border:none;border-radius:8px;padding:8px 16px;font-weight:600;cursor:pointer;font-size:13px}
.vm-jr-accept{background:#22c55e;color:#fff}
.vm-jr-deny{background:#ef4444;color:#fff}
.vm-jr-btn[disabled]{opacity:.5;cursor:default}
.vm-skel{display:flex;flex-direction:column;gap:var(--sp-2);padding:var(--sp-2) 0}
.vm-skel-b{align-self:flex-start;border-radius:18px;background:var(--surface-2);opacity:.55;animation:vmSkel 1.4s ease-in-out infinite}
.vm-skel-b.vm-skel-me{align-self:flex-end}
@keyframes vmSkel{0%,100%{opacity:.35}50%{opacity:.6}}
@media (prefers-reduced-motion:reduce) {.vm-skel-b{animation:none}}
.vm-fail{width:15px;height:15px;border-radius:50%;border:none;padding:0;margin:0;background:var(--danger,#ef4444);color:#fff;font:700 11px/15px Inter,system-ui,sans-serif;text-align:center;cursor:pointer}
.list-row__subtitle{min-width:0}
.vm-lr-prev{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.vm-lr-who{color:var(--text)}
.vm-lr-meta{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:4px;flex-shrink:0;align-self:stretch;min-width:0}
.vm-lr-time{font-size:11px;line-height:1;color:var(--text-muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.vm-lr-time:empty{display:none}
@media (min-width: 600px) and (min-height: 501px), (min-width: 600px) and (pointer: fine), (min-width: 600px) and (pointer: none) {.toast-stack{top:var(--sp-5);bottom:auto;right:auto;left:50%;transform:translateX(-50%);align-items:center}}
@media (max-width: 599px), (pointer: coarse) and (max-height: 500px) {.toast-stack{top:calc(env(safe-area-inset-top,0px) + 78px)!important;left:50%!important;right:auto!important;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 32px)}}
html[data-vnet] .vnet-host{font-size:0!important;line-height:normal}
html[data-vnet] .vnet-host::after{content:var(--vnet);font-size:var(--fs-md,16px);font-weight:600;color:var(--text-secondary);animation:vnetPulse 1.6s ease-in-out infinite}
.mobile-header .vnet-host::after{font-size:18px}
@keyframes vnetPulse{0%,100%{opacity:1}50%{opacity:.55}}
@media (prefers-reduced-motion:reduce) {html[data-vnet] .vnet-host::after{animation:none}}
html[data-vnet] .vnet-sub{font-size:0!important}
html[data-vnet] .vnet-sub::after{content:var(--vnet);font-size:var(--fs-xs,13px);animation:vnetPulse 1.6s ease-in-out infinite}

html[data-vnav] .main > div[style*="overflow-y: auto"] {
    padding-bottom: var(--vnav-clear, 112px) !important;
}
html[data-vnav] .main > div[style*="overflow-y: auto"] > :last-child {
    margin-bottom: 0;
}
.list-row__main {
    min-width: 0;
}
.list-row__title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vm-chatpill {
    min-width: 0;
    max-width: calc(100% - 24px);
}
.vm-chatpill * {
    min-width: 0;
}
.vm-chatpill > div > div:first-child,
.vm-chatpill [class*="title"] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.modal .row > div[style*="width: 64px"] {
    flex-shrink: 0;
}
.modal .row > div:not([style*="width: 64px"]) {
    min-width: 0;
    overflow-wrap: anywhere;
}
.modal__actions {
    flex-wrap: wrap;
    row-gap: var(--sp-2);
}
@media (max-width: 599px), (pointer: coarse) and (max-height: 500px) {
    html nav[aria-label="Bottom navigation"] {
        bottom: max(40px, calc(env(safe-area-inset-bottom, 0px) + 12px)) !important;
    }
    html:not(.apk) .mobile-header {
        padding-top: calc(8px + env(safe-area-inset-top, 0px));
        height: calc(44px + env(safe-area-inset-top, 0px));
    }
    html:not(.apk) .shell {
        padding-left: env(safe-area-inset-left, 0px);
        padding-right: env(safe-area-inset-right, 0px);
    }
    html:not(.apk) .vm-chatpill {
        margin-top: env(safe-area-inset-top, 0px);
    }
    html:not(.apk) .vm-cwrap {
        padding-bottom: calc(var(--sp-3) + env(safe-area-inset-bottom, 0px)) !important;
    }
    .vm-mscroll {
        touch-action: pan-y pinch-zoom;
    }
    .overlay:has(> .card.modal) {
        padding: 0;
        align-items: flex-end;
    }
    .overlay > .card.modal {
        width: 100%;
        max-width: none;
        max-height: calc(100dvh - 12px - env(safe-area-inset-top, 0px));
        border-radius: var(--r-lg) var(--r-lg) 0 0;
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    }
    .overlay > .card.modal > div[style*="max-height: 60vh"] {
        max-height: calc(100dvh - 180px - env(safe-area-inset-top, 0px)) !important;
    }
    .modal__actions {
        justify-content: flex-end;
    }
    .modal__actions > .btn {
        margin-right: 0 !important;
    }
    .list-row {
        min-width: 0;
    }
    .list-row > button,
    .list-row > .btn {
        flex-shrink: 0;
    }
}
@media (pointer: coarse) and (max-height: 500px) {
    html nav[aria-label="Bottom navigation"] {
        bottom: max(8px, env(safe-area-inset-bottom, 0px)) !important;
        max-width: 320px !important;
        padding: 2px !important;
    }
    html nav[aria-label="Bottom navigation"] button {
        font-size: 0 !important;
        gap: 0 !important;
        padding: 6px 10px !important;
    }
    html:not(.apk) .mobile-header {
        height: calc(40px + env(safe-area-inset-top, 0px));
        padding-top: calc(4px + env(safe-area-inset-top, 0px));
    }
}
html[data-vlist="compact"] {
    --context-panel-width: 76px;
}
html[data-vlist="compact"] aside.context-panel {
    width: 76px !important;
    min-width: 76px !important;
    flex-basis: 76px !important;
    overflow: hidden;
}
html[data-vlist="compact"] aside.context-panel > :not(.context-panel__body) {
    display: none !important;
}
html[data-vlist="compact"] aside.context-panel .list-row {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
    gap: 0;
}
html[data-vlist="compact"] aside.context-panel .list-row {
    position: relative;
}
html[data-vlist="compact"] aside.context-panel .list-row > :not(:first-child):not(.vm-lr-meta) {
    display: none !important;
}
html[data-vlist="compact"] aside.context-panel .list-row > .vm-lr-meta {
    position: absolute;
    top: 4px;
    right: 6px;
    align-self: auto;
    pointer-events: none;
}
html[data-vlist="compact"] aside.context-panel .vm-lr-time {
    display: none;
}
.vlist-tg {
    display: none;
}
html[data-vlist] .vlist-tg {
    display: flex;
    position: fixed;
    z-index: 45;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: var(--r-full);
    background: transparent;
    color: var(--text-secondary, var(--text));
    cursor: pointer;
}
.vlist-tg:hover {
    background: var(--surface-2);
}
html[data-vlist="compact"] aside.context-panel .context-panel__body {
    padding-top: 56px;
}
html[data-vlist="open"] aside.context-panel .context-panel__header > .btn {
    visibility: hidden;
}
:where(button, a, [tabindex], [role="button"], summary, .list-row):focus-visible {
    outline: 2px solid var(--accent, #f97316);
    outline-offset: 2px;
}
.list-row:focus-visible {
    outline-offset: -2px;
}
.list-row[style*="flex-wrap: wrap"] > .list-row__main {
    flex: 1 1 140px;
}
.list-row[style*="flex-wrap: wrap"] > .row {
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin-left: auto;
}
@media (max-width: 599px), (pointer: coarse) and (max-height: 500px) {
    .list-row[style*="flex-wrap: wrap"] > .row {
        margin-left: 60px;
        row-gap: var(--sp-2);
    }
}

:root {
    --bubble-in: var(--surface-2);
    --bubble-out: var(--surface-2);
    --bubble-shadow: none;
}
[data-theme="dark"] {
    --text-muted: #8b8b93;
}
[data-theme="light"] {
    --text-muted: #66656d;
    --border: #d6d3ce;
    --accent: #c2410c;
    --accent-hover: #9a3412;
    --accent-active: #7c2d12;
    --accent-soft: rgba(194, 65, 12, .1);
    --accent-fg: #ffffff;
    --bubble-in: #ffffff;
    --bubble-out: #e7e4df;
    --bubble-shadow: 0 1px 1px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .03);
}
[id^="msg-"][style*="var(--bubble-"] {
    box-shadow: var(--bubble-shadow);
}
[id^="msg-"] {
    font-size: calc(1em * var(--msg-scale, 1));
}
.vcmp-ce {
    font-size: calc(1em * var(--msg-scale, 1));
}
.vtxt-demo {
    align-self: flex-start;
    max-width: 100%;
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--r-lg);
    background: var(--bubble-in);
    box-shadow: var(--bubble-shadow);
    font-size: calc(1em * var(--msg-scale, 1));
}
[data-theme="light"] {
    --vd-bg0: #f1f0ee;
    --vd-card: #ffffff;
    --vd-card2: #faf9f7;
    --vd-btn: #e3e2df;
    --vd-fg: #26262a;
    --vd-muted: #55545c;
    --vd-dim: #66656d;
}
[data-theme="light"] #vulpine-pin-lock {
    background: radial-gradient(circle at 50% 30%, #ffffff, #e9e7e3) !important;
}
[data-theme="light"] .vp-kpad-btn {
    border-color: rgba(0, 0, 0, .08);
    background: linear-gradient(145deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .02));
    color: var(--text);
}
[data-theme="light"] .vp-kpad-btn:hover {
    background: linear-gradient(145deg, rgba(0, 0, 0, .09), rgba(0, 0, 0, .04));
    border-color: rgba(0, 0, 0, .14);
}
[data-theme="light"] .vp-kpad-btn:active {
    background: linear-gradient(145deg, rgba(0, 0, 0, .14), rgba(0, 0, 0, .07));
}
[data-theme="light"] .vp-dot {
    border-color: rgba(0, 0, 0, .3);
}
:root {
    --bg-elevated: var(--vd-card2,#1e1f25);
    --text-primary: var(--text);
}
[data-theme="light"] {
    --vd-tint1: rgba(0, 0, 0, .05);
    --vd-tint2: rgba(0, 0, 0, .06);
    --vd-tint3: rgba(0, 0, 0, .08);
    --bg-elevated: #ffffff;
}
.avatar {
    color: #ffffff;
}

:root {
    --ease: cubic-bezier(.32, .72, 0, 1);
    --ease-ios: cubic-bezier(.32, .72, 0, 1);
    --ease-pop: cubic-bezier(.34, 1.36, .64, 1);
    --ease-in: cubic-bezier(.4, 0, 1, 1);
    --dur-fast: .16s;
    --dur: .24s;
    --dur-slow: .38s;
}
@keyframes v-fade-in {
    from { opacity: 0; }
}
@keyframes v-fade-out {
    to { opacity: 0; }
}
@keyframes v-pop-in {
    from { opacity: 0; transform: scale(.94); }
}
@keyframes v-pop-out {
    to { opacity: 0; transform: scale(.96); }
}
@keyframes v-sheet-in {
    from { transform: translateY(100%); }
}
@keyframes v-sheet-out {
    to { transform: translateY(100%); }
}
@keyframes v-menu-in {
    from { opacity: 0; transform: scale(.86); }
}
@keyframes v-menu-out {
    to { opacity: 0; transform: scale(.92); }
}
@keyframes v-toast-bottom {
    from { opacity: 0; transform: translate(-50%, 18px) scale(.96); }
}
@keyframes v-toast-top {
    from { opacity: 0; transform: translate(-50%, -18px) scale(.96); }
}
@keyframes v-push-in {
    from { transform: translateX(100%); }
}
@keyframes v-push-under {
    to { transform: translateX(-28%); }
}
@keyframes v-pop-over {
    to { transform: translateX(100%); }
}
@keyframes v-pop-under {
    from { transform: translateX(-28%); }
}
@keyframes v-scrim-in {
    from { background-color: transparent; }
}
@keyframes v-scrim-out {
    to { background-color: transparent; }
}
@keyframes v-dim {
    to { opacity: .22; }
}
@keyframes v-undim {
    from { opacity: .22; }
    to { opacity: 0; }
}
@keyframes v-react {
    0% { transform: scale(.3); opacity: 0; }
    60% { transform: scale(1.16); opacity: 1; }
    100% { transform: scale(1); }
}
.overlay {
    animation: v-fade-in var(--dur) var(--ease);
}
.modal,
.overlay > .modal {
    animation: v-pop-in .28s var(--ease);
}
.context-menu {
    animation: v-menu-in .2s var(--ease-pop);
    transform-origin: var(--vcm-o, top left);
}
.nav-rail .menu {
    animation: v-menu-in .18s var(--ease-pop);
    transform-origin: left bottom;
}
.vtoast {
    animation: v-toast-bottom .3s var(--ease);
}
.vtoast.vtoast-top {
    animation-name: v-toast-top;
}
.vr-pill.vrx-pop {
    animation: v-react .34s var(--ease-pop);
}
[data-vghost] {
    pointer-events: none !important;
}
[data-vghost].overlay {
    animation: v-fade-out .22s var(--ease-in) forwards;
}
[data-vghost].overlay > .modal {
    animation: v-pop-out .22s var(--ease-in) forwards;
}
[data-vghost].context-menu,
[data-vghost].menu {
    animation: v-menu-out .14s var(--ease-in) forwards;
}
.vcm-scrim {
    position: fixed;
    inset: 0;
    z-index: 149;
    pointer-events: none;
    background: rgba(0, 0, 0, .2);
    -webkit-backdrop-filter: blur(6px) saturate(1.1);
    backdrop-filter: blur(6px) saturate(1.1);
    animation: v-fade-in .2s var(--ease);
}
[data-theme="light"] .vcm-scrim {
    background: rgba(0, 0, 0, .08);
}
.vcm-scrim.vcm-out {
    animation: v-fade-out .16s var(--ease-in) forwards;
}
.vnav-ghost {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    will-change: transform;
    contain: layout paint;
}
.vnav-ghost::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #000;
    opacity: 0;
}
.vnav-ghost.vnav-under {
    animation: v-push-under var(--dur-slow) var(--ease) forwards;
}
.vnav-ghost.vnav-under::after {
    animation: v-dim var(--dur-slow) var(--ease) forwards;
}
.vnav-ghost.vnav-over {
    z-index: 3;
    box-shadow: -10px 0 30px rgba(0, 0, 0, .28);
    animation: v-pop-over var(--dur-slow) var(--ease) forwards;
}
html.vnav-push .shell {
    animation: v-push-in var(--dur-slow) var(--ease);
    box-shadow: -10px 0 30px rgba(0, 0, 0, .28);
}
html.vnav-pop .shell {
    animation: v-pop-under var(--dur-slow) var(--ease);
}
.field__label {
    top: 26px;
    transform-origin: left top;
    transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}
.field--float .field__label {
    top: 26px;
    font-size: var(--fs-sm);
    transform: translateY(-26px) scale(.93);
}
.field--has-prefix.field--float .field__label {
    left: 18px;
    transform: translate(-16px, -26px) scale(.93);
}
.auth-card__form .field:has(.secret-box) > .field__label {
    transform: none;
}
@media (max-width: 599px), (pointer: coarse) and (max-height: 500px) {
    .overlay > .card.modal {
        animation: v-sheet-in var(--dur-slow) var(--ease);
        touch-action: none;
    }
    .overlay > .card.modal [style*="overflow-y: auto"],
    .overlay > .card.modal textarea {
        touch-action: pan-y;
    }
    .overlay > .card.modal::before {
        content: "";
        display: block;
        width: 36px;
        height: 5px;
        border-radius: 3px;
        margin: -8px auto 12px;
        background: color-mix(in srgb, var(--text) 22%, transparent);
    }
    .overlay:has(> .card.modal) {
        animation: v-scrim-in var(--dur-slow) var(--ease);
    }
    [data-vghost].overlay:has(> .card.modal) {
        animation: v-scrim-out .26s var(--ease-in) forwards;
    }
    [data-vghost].overlay > .card.modal {
        animation: v-sheet-out .26s var(--ease-in) forwards;
    }
    .nav-rail {
        left: 0 !important;
        transform: translateX(-100%);
        transition: transform var(--dur) var(--ease) !important;
    }
    .nav-rail.nav-rail--open {
        transform: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

:root {
    --accent-solid: #f97316;
    --glass-bg: color-mix(in srgb, var(--surface) 62%, transparent);
    --glass-bg-strong: color-mix(in srgb, var(--surface) 82%, transparent);
    --glass-blur: blur(20px) saturate(1.8);
    --glass-stroke: inset 0 0 0 .5px color-mix(in srgb, var(--text) 14%, transparent);
    --glass-hl: inset 0 1px 0 color-mix(in srgb, #ffffff 10%, transparent);
    --glass-shadow: 0 8px 28px rgba(0, 0, 0, .3);
    --glass-ring: var(--glass-stroke), var(--glass-hl), var(--glass-shadow);
}
[data-theme="light"] {
    --accent-solid: #c2410c;
    --glass-bg: rgba(255, 255, 255, .66);
    --glass-bg-strong: rgba(255, 255, 255, .88);
    --glass-stroke: inset 0 0 0 .5px rgba(0, 0, 0, .08);
    --glass-hl: inset 0 1px 0 rgba(255, 255, 255, .75);
    --glass-shadow: 0 8px 28px rgba(0, 0, 0, .1);
}
html.lowfx {
    --glass-blur: none;
    --glass-bg: color-mix(in srgb, var(--surface) 94%, transparent);
    --glass-bg-strong: var(--surface);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    :root,
    [data-theme="light"] {
        --glass-bg: var(--surface);
        --glass-bg-strong: var(--surface);
    }
}
html nav[aria-label="Bottom navigation"] {
    background: var(--glass-bg) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    backdrop-filter: var(--glass-blur) !important;
    box-shadow: var(--glass-ring) !important;
}
html nav[aria-label="Bottom navigation"]::before,
html nav[aria-label="Bottom navigation"]::after {
    display: none !important;
}
.main .vm-cwrap > form,
.main .vm-replybar,
.vm-pinbar {
    background: var(--glass-bg) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    backdrop-filter: var(--glass-blur) !important;
    box-shadow: var(--glass-ring) !important;
}
.context-menu,
.nav-rail .menu,
.vce-pop,
.vcg-pop,
.vam-pop,
.vr-picker,
.vls-dd,
.toast {
    background: var(--glass-bg-strong) !important;
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-ring) !important;
}
.context-menu {
    border-radius: 14px;
}
.vtoast:not(.vtoast-err) {
    background: var(--glass-bg-strong) !important;
    color: var(--text) !important;
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-ring) !important;
}
.vtoast.vtoast-top {
    top: calc(env(safe-area-inset-top, 0px) + 68px) !important;
}
.vtoast:not(.vtoast-top) {
    bottom: 104px !important;
}
.toast-stack {
    bottom: 104px !important;
}
.vf-pill {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: color-mix(in srgb, var(--text) 10%, transparent) !important;
    transition: left .28s var(--ease), width .28s var(--ease), opacity .2s !important;
}
#vToBottom {
    background: var(--glass-bg-strong) !important;
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-ring) !important;
}
.secret-box {
    word-break: normal !important;
    overflow-wrap: anywhere;
}
.list-row {
    position: relative;
}
.list-row:has(.vm-lr-meta > span + span) .list-row__title {
    font-weight: 700;
}
aside .list-row--active {
    background: color-mix(in srgb, var(--accent-solid) 16%, transparent) !important;
}
@media (hover: hover) and (pointer: fine) {
    aside .list-row:not(.list-row--active):hover {
        background: color-mix(in srgb, var(--text) 5%, transparent);
    }
}
@media (max-width: 599px), (pointer: coarse) and (max-height: 500px) {
    aside .list-row--active {
        background: transparent !important;
    }
}
:root,
[data-theme="light"],
[data-theme="dark"] {
    --bubble-out: var(--bubble-in);
}
[id^="msg-"][style*="align-self: flex-end"]:has(+ [id^="msg-"][style*="align-self: flex-end"]) {
    border-bottom-right-radius: 6px !important;
}
[id^="msg-"][style*="align-self: flex-end"] + [id^="msg-"][style*="align-self: flex-end"] {
    border-top-right-radius: 6px !important;
    margin-top: calc(3px - var(--sp-2));
}
[id^="msg-"][style*="align-self: flex-end"]:not(:has(+ [id^="msg-"][style*="align-self: flex-end"])) {
    border-bottom-right-radius: 5px !important;
}
[id^="msg-"][style*="align-self: flex-start"]:has(+ [id^="msg-"][style*="align-self: flex-start"]) {
    border-bottom-left-radius: 6px !important;
}
[id^="msg-"][style*="align-self: flex-start"] + [id^="msg-"][style*="align-self: flex-start"] {
    border-top-left-radius: 6px !important;
    margin-top: calc(3px - var(--sp-2));
}
[id^="msg-"][style*="align-self: flex-start"]:not(:has(+ [id^="msg-"][style*="align-self: flex-start"])) {
    border-bottom-left-radius: 5px !important;
}
.context-menu .menu__item {
    width: 100%;
}
@media (hover: hover) and (pointer: fine) {
    .vcm-scrim {
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
    }
}
@media (max-width: 599px), (pointer: coarse) and (max-height: 500px) {
    .main > *:not(aside.context-panel) > .context-panel__header {
        background: var(--glass-bg) !important;
        -webkit-backdrop-filter: var(--glass-blur) !important;
        backdrop-filter: var(--glass-blur) !important;
        box-shadow: var(--glass-ring) !important;
    }
    .main > *:not(aside.context-panel) > .context-panel__header .vm-chatpill {
        background: transparent !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
    }
}

.vsp {
    border-radius: 4px;
    background: color-mix(in srgb, var(--text) 70%, transparent);
    color: transparent;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: background .28s var(--ease), color .28s var(--ease);
}
.vsp:not(.vsp-on) * {
    opacity: 0;
}
.vsp.vsp-on {
    background: color-mix(in srgb, var(--text) 8%, transparent);
    color: inherit;
    cursor: auto;
    user-select: text;
    -webkit-user-select: text;
}
.vsp:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}
.vrte-sp {
    border-radius: 4px;
    background: color-mix(in srgb, var(--text) 18%, transparent);
}
.vcb-lang {
    position: absolute;
    top: 7px;
    left: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--text-muted);
    text-transform: lowercase;
    pointer-events: none;
}
.vrte-selbar {
    position: fixed;
    z-index: 160;
    display: none;
    gap: 2px;
    padding: 4px;
    border-radius: 12px;
    background: var(--glass-bg-strong);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-ring);
    animation: v-menu-in .16s var(--ease-pop);
}
.vrte-sb-b {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font: 700 13px/1 var(--font-sans);
    cursor: pointer;
}
.vrte-sb-b:hover {
    background: color-mix(in srgb, var(--text) 10%, transparent);
}
.vrte-sb-b[title="Italic"] {
    font-style: italic;
}
.vrte-sb-b[title="Underline"] {
    text-decoration: underline;
}
.vrte-sb-b[title="Strikethrough"] {
    text-decoration: line-through;
}
.vrte-sb-b[title="Code"] {
    font-family: var(--font-mono);
}
@media (pointer: coarse) {
    .vrte-sb-b {
        min-width: 40px;
        height: 40px;
    }
}
