.vsm-modal-open { overflow: hidden; }
.vsm-dialog { position: fixed; inset: 0; z-index: 1000000; }
.vsm-dialog[hidden] { display: none; }
.vsm-dialog-backdrop { position: absolute; inset: 0; background: rgba(2,6,23,.82); backdrop-filter: blur(10px); }
.vsm-dialog-panel { position: relative; width: min(520px,calc(100vw - 28px)); max-height: min(720px,calc(100vh - 40px)); margin: 20px auto; overflow: hidden; display: flex; flex-direction: column; color: #e2e8f0; background: #0b1424; border: 1px solid rgba(255,255,255,.11); border-radius: 20px; box-shadow: 0 28px 90px rgba(0,0,0,.55); }
.vsm-dialog-panel header { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.vsm-dialog-panel h2 { margin: 0; color: #fff; font: 900 19px Orbitron,Cairo,sans-serif; }
.vsm-dialog-panel header p { margin: 4px 0 0; color: #74839b; font-size: 12px; }
.vsm-dialog-panel header button { border: 0; color: #94a3b8; background: transparent; font-size: 27px; cursor: pointer; }
.vsm-share-search { margin: 14px 14px 8px; padding: 11px 13px; outline: none; color: #fff; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.1); border-radius: 11px; }
.vsm-share-search:focus { border-color: #f7ab39; }
.vsm-dialog-panel nav { display: flex; gap: 5px; padding: 0 14px 10px; }
.vsm-dialog-panel nav button { flex: 1; padding: 9px; border: 0; border-radius: 9px; color: #94a3b8; background: rgba(255,255,255,.04); font-weight: 800; cursor: pointer; }
.vsm-dialog-panel nav button.is-active { color: #07101d; background: #f7ab39; }
.vsm-share-list { min-height: 180px; overflow: auto; padding: 4px 14px 16px; }
.vsm-destination { display: flex; align-items: center; gap: 11px; padding: 10px; border-bottom: 1px solid rgba(255,255,255,.06); }
.vsm-destination img { width: 44px; height: 44px; object-fit: cover; border-radius: 13px; background: #020617; }
.vsm-destination > span { flex: 1; min-width: 0; }
.vsm-destination strong,.vsm-destination small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vsm-destination small,.vsm-empty { color: #74839b; }
.vsm-empty { padding: 30px 14px; text-align: center; }

.vsm-shared-card { display: grid; grid-template-columns: 82px minmax(0,1fr) auto; align-items: center; gap: 11px; width: min(360px,100%); padding: 0; overflow: hidden; text-align: start; color: inherit; background: rgba(2,6,23,.5); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; cursor: pointer; }
.vsm-shared-card:hover { border-color: rgba(247,171,57,.55); }
.vsm-shared-card > img { width: 82px; height: 90px; object-fit: cover; background: #020617; }
.vsm-shared-card > span { min-width: 0; padding-block: 9px; }
.vsm-shared-card strong,.vsm-shared-card span span,.vsm-shared-label { display: block; overflow: hidden; text-overflow: ellipsis; }
.vsm-shared-card strong { color: #fff; white-space: nowrap; font-size: 13px; }
.vsm-shared-card span span { margin-top: 5px; max-height: 34px; color: #a8b4c7; font-size: 11px; line-height: 1.4; }
.vsm-shared-label { margin-bottom: 5px; color: #f7ab39; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.vsm-shared-card > i { margin-inline-end: 10px; color: #f7ab39; }
.vsm-forwarded { display: block; margin-bottom: 4px; font-size: 9px; font-style: italic; opacity: .62; }
.vsm-reply-quote { display: block; width: 100%; margin-bottom: 7px; padding: 7px 9px; text-align: start; border: 0; border-inline-start: 3px solid #f7ab39; border-radius: 7px; color: inherit; background: rgba(0,0,0,.18); cursor: pointer; }
.vsm-reply-quote strong,.vsm-reply-quote span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.vsm-message-menu { position: absolute; inset-block-start: 3px; inset-inline-end: 4px; opacity: 0; padding: 2px 5px; color: inherit; background: rgba(2,6,23,.48); border: 0; border-radius: 7px; cursor: pointer; transition: opacity .15s; }
[data-message-id]:hover > .vsm-message-menu,[data-message-id]:focus-within > .vsm-message-menu { opacity: 1; }
.vsm-popmenu { position: fixed; z-index: 1000001; display: grid; min-width: 145px; padding: 5px; background: #111c2e; border: 1px solid rgba(255,255,255,.13); border-radius: 11px; box-shadow: 0 15px 35px rgba(0,0,0,.45); }
.vsm-popmenu > button { padding: 8px 10px; text-align: start; color: #dce5f1; background: transparent; border: 0; border-radius: 7px; cursor: pointer; }
.vsm-popmenu > button:hover { background: rgba(247,171,57,.12); color: #f7ab39; }
.vsm-popmenu > button.is-danger { color: #fb7185; }
.vsm-reaction-picker { display: flex; gap: 3px; padding: 4px; }
.vsm-reaction-picker button { flex: 1; padding: 5px 2px; border: 0; border-radius: 6px; background: rgba(255,255,255,.05); cursor: pointer; }
.vsm-reactions { display: flex; flex-wrap: wrap; gap: 3px; margin: 5px 0 -13px; }
.vsm-reaction-chip { padding: 3px 7px; color: #fff; background: #17243a; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; font-size: 10px; cursor: pointer; }
.vsm-seen { align-self: flex-end; margin-top: 3px; font-size: 8px; opacity: .62; }
.vsm-highlight { animation: vsm-highlight 1.2s ease; }
@keyframes vsm-highlight { 50% { box-shadow: 0 0 0 3px rgba(247,171,57,.7),0 0 35px rgba(247,171,57,.25); } }

.vsm-chat-search-toggle,.vsm-image-button { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; color: #94a3b8; background: rgba(255,255,255,.05); border: 0; border-radius: 8px; cursor: pointer; }
.vsm-chat-search-toggle:hover,.vsm-image-button:hover { color: #f7ab39; }
.vsm-message-search { width: calc(100% - 22px); margin: 9px 11px 0; padding: 9px 11px; outline: none; color: #fff; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; }
.vsm-message-search[hidden] { display: none; }
.vsm-typing { padding: 5px 9px; color: #f7ab39; font-size: 10px; font-weight: 800; }
.vsm-typing[hidden] { display: none; }
.vsm-reply-preview,.vsm-image-preview { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; padding: 8px 10px; color: #dbe5f1; background: #0f172a; border: 1px solid rgba(247,171,57,.22); border-radius: 10px; }
.vsm-reply-preview > span,.vsm-image-preview > span { flex: 1; min-width: 0; }
.vsm-reply-preview strong,.vsm-reply-preview small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vsm-reply-preview strong { color: #f7ab39; font-size: 10px; }
.vsm-reply-preview small { color: #94a3b8; font-size: 10px; }
.vsm-reply-preview > button { border: 0; color: #94a3b8; background: transparent; font-size: 19px; cursor: pointer; }
.vsm-image-preview img { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; }
#quick_chat_input { resize: none; max-height: 88px; line-height: 1.35; }
.vsm-audio-progress { height: 4px; accent-color: #f7ab39; cursor: pointer; }
.vsm-audio-time { white-space: nowrap; }
#quick_chat_window.vsm-dragging { outline: 2px dashed #f7ab39; outline-offset: -8px; }
.vsm-shared-panel { display: grid; gap: 7px; margin-top: 18px; padding-top: 16px; text-align: start; border-top: 1px solid rgba(255,255,255,.08); }
.vsm-shared-panel h3 { margin: 0 0 4px; color: #fff; font-size: 12px; text-transform: uppercase; }
.vsm-shared-panel button { padding: 7px 8px; text-align: start; color: #94a3b8; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); border-radius: 8px; font-size: 11px; cursor: pointer; }
.vsm-shared-panel button:hover:not(:disabled) { color: #f7ab39; border-color: rgba(247,171,57,.28); }
.vsm-shared-panel button:disabled { opacity: .45; cursor: default; }

@media (max-width: 1180px) { .vss-messenger { grid-template-columns: minmax(230px,290px) minmax(0,1fr); } }
@media (max-width: 767px) {
    .vss-messenger { display: block; height: calc(100dvh - 100px); min-height: 540px; }
    .vss-messenger .vss-conversations { height: 100%; max-height: none; }
    .vss-messenger .vss-chat-host { display: none; height: 100%; min-height: 0; }
    .vss-messenger.is-chat-active .vss-conversations { display: none; }
    .vss-messenger.is-chat-active .vss-chat-host { display: block; }
    .vsm-shared-card { grid-template-columns: 68px minmax(0,1fr) auto; }
    .vsm-shared-card > img { width: 68px; height: 78px; }
}

/* Messenger 3.0 shell */
.vss-messenger { position: relative; height: calc(var(--vsm-visual-height,100dvh) - 132px); min-height: 560px; grid-template-columns: clamp(300px,22%,340px) minmax(0,1fr) clamp(300px,22%,340px); overflow: hidden; background: #07101c; border-color: rgba(148,163,184,.14); border-radius: 18px; box-shadow: 0 24px 70px rgba(0,0,0,.25); }
.vss-messenger.is-info-hidden { grid-template-columns: clamp(300px,22%,340px) minmax(0,1fr); }
.vsm-keyboard-open .vss-messenger { min-height: 0; }
.vss-messenger.is-info-hidden .vss-chat-info { display: none; }
.vss-conversations { min-height: 0; overflow: hidden; background: #091422; border-inline-end-color: rgba(148,163,184,.12); }
.vss-messenger-head { position: sticky; top: 0; z-index: 3; padding: 18px 16px 14px; background: rgba(9,20,34,.96); backdrop-filter: blur(16px); }
.vss-messenger-head h1 { font-size: 19px; letter-spacing: .02em; }
.vss-messenger-head .vss-search { height: 40px; border-radius: 12px; background: #050c16; }
.vss-conversation-list { padding: 8px; overflow-y: auto; overscroll-behavior: contain; }
.vss-conversation { position: relative; min-height: 68px; padding: 9px 10px; gap: 11px; border: 1px solid transparent; border-radius: 13px; text-align: start; }
.vss-conversation:hover { background: rgba(255,255,255,.045); }
.vss-conversation.is-active { background: rgba(247,171,57,.08); border-color: rgba(247,171,57,.22); }
.vss-conversation img { width: 46px; height: 46px; border-radius: 50%; }
.vsm-conversation-avatar { position: relative; flex: 0 0 46px; width: 46px; height: 46px; }
.vsm-conversation-avatar img { display: block; }
.vsm-presence-dot { position: absolute; inset-inline-end: -1px; bottom: -1px; width: 12px; height: 12px; border: 2px solid #091422; border-radius: 50%; background: #526174; opacity: 0; }
.vsm-presence-dot.is-online { background: #22c55e; opacity: 1; }
.vsm-info-presence.is-online,#quick_chat_subtitle.is-online { color: #4ade80 !important; }
.vss-conversation .vss-row-copy { min-width: 0; padding-inline-end: 42px; }
.vss-conversation .vss-row-copy strong,.vss-conversation .vss-row-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vss-conversation .vss-chip { position: absolute; inset-inline-end: 10px; bottom: 10px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; }
.vsm-conversation-time { position: absolute; inset-inline-end: 10px; top: 11px; color: #64748b; font-size: 10px; font-variant-numeric: tabular-nums; }
.vss-chat-host { min-width: 0; min-height: 0; overflow: hidden; background: #07101c; }
.vsm-chat-window { min-width: 0; min-height: 0; overflow: hidden; background: #07101c !important; }
.vss-chat-host .vsm-chat-window { position: relative !important; inset: auto !important; display: flex; flex-direction: column; width: 100%; height: 100%; transform: none !important; transition: none !important; }
.vsm-chat-header { position: relative; z-index: 8; flex: 0 0 auto; min-height: 62px; padding: 10px 14px !important; background: rgba(12,25,41,.96) !important; backdrop-filter: blur(16px); border-bottom-color: rgba(148,163,184,.12) !important; }
.vsm-chat-header > button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; }
.vsm-chat-header #quick_chat_avatar { width: 38px; height: 38px; }
.vsm-chat-header #quick_chat_name { font-size: 14px; }
.vsm-chat-search-toggle,.vsm-info-toggle { flex: 0 0 auto; color: #94a3b8; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.06); }
.vsm-chat-search-toggle:hover,.vsm-info-toggle:hover { color: #f7ab39; border-color: rgba(247,171,57,.25); }
.vsm-message-search { z-index: 7; flex: 0 0 auto; width: calc(100% - 24px); margin: 9px 12px 0; padding: 10px 13px; color: #e5e7eb; background: #0d1a2b; border: 1px solid rgba(148,163,184,.16); border-radius: 11px; outline: none; }
.vsm-message-search:focus { border-color: rgba(247,171,57,.5); }
.vsm-messages { flex: 1 1 auto; min-height: 0; padding: 18px clamp(14px,3vw,38px) 24px !important; gap: 3px !important; overflow-y: auto !important; overflow-x: hidden; overscroll-behavior: contain; scroll-behavior: auto; background: radial-gradient(circle at 70% 15%,rgba(247,171,57,.035),transparent 32%),#07101c; }
.vsm-empty-chat { margin: auto; color: #64748b; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-align: center; }
.vsm-message-row { max-width: 64% !important; padding: 9px 11px 7px !important; margin-block: 1px; border-radius: 15px !important; transition: transform .18s ease,background-color .18s ease,box-shadow .18s ease; isolation: isolate; }
.vsm-message-row.is-me { align-self: flex-end !important; color: #e5edf7 !important; background: #152437 !important; border: 1px solid rgba(247,171,57,.24) !important; border-end-end-radius: 5px !important; }
.vsm-message-row.is-friend { align-self: flex-start !important; color: #e5edf7 !important; background: #111f31 !important; border: 1px solid rgba(148,163,184,.11) !important; border-end-start-radius: 5px !important; }
.vsm-message-row.is-clustered { margin-top: 0; }
.vsm-message-row.is-clustered.is-me { border-start-end-radius: 7px !important; }
.vsm-message-row.is-clustered.is-friend { border-start-start-radius: 7px !important; }
.vsm-message-row.is-cluster-end { margin-bottom: 7px; }
.vsm-message-text { font-size: 13px; line-height: 1.48; overflow-wrap: anywhere; }
.vsm-message-time { align-self: flex-end; margin-top: 4px !important; color: #8190a3 !important; opacity: 1 !important; font-size: 9px !important; font-variant-numeric: tabular-nums; }
.vsm-edited,.vsm-seen { color: #718096; font-size: 9px; }
.vsm-seen { align-self: flex-end; margin-top: 1px; }
.vsm-forwarded { color: #94a3b8; font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.vsm-date-separator,.vsm-unread-separator { align-self: stretch; display: flex; align-items: center; gap: 10px; margin: 13px 0; color: #708197; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.vsm-date-separator::before,.vsm-date-separator::after,.vsm-unread-separator::before,.vsm-unread-separator::after { content: ""; flex: 1; height: 1px; background: rgba(148,163,184,.12); }
.vsm-unread-separator { color: #f7ab39; }
.vsm-unread-separator::before,.vsm-unread-separator::after { background: rgba(247,171,57,.28); }
.vsm-system-message { align-self: stretch; }
.vsm-hover-actions { position: absolute; top: 50%; z-index: 5; display: flex; gap: 3px; padding: 3px; opacity: 0; pointer-events: none; transform: translateY(-50%); background: #0c1726; border: 1px solid rgba(148,163,184,.15); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: opacity .15s ease; }
.vsm-message-row.is-me .vsm-hover-actions { inset-inline-end: calc(100% + 7px); }
.vsm-message-row.is-friend .vsm-hover-actions { inset-inline-start: calc(100% + 7px); }
.vsm-message-row:hover .vsm-hover-actions,.vsm-message-row:focus-within .vsm-hover-actions { opacity: 1; pointer-events: auto; }
.vsm-hover-actions button { width: 29px; height: 28px; display: grid; place-items: center; color: #94a3b8; border: 0; border-radius: 7px; background: transparent; cursor: pointer; }
.vsm-hover-actions button:hover { color: #f7ab39; background: rgba(247,171,57,.1); }
.vsm-hover-actions span { position: absolute; clip: rect(0 0 0 0); }
.vsm-popmenu,.vsm-portal-picker { position: fixed; z-index: 100005; padding: 6px; background: #0c1726; border: 1px solid rgba(148,163,184,.18); border-radius: 12px; box-shadow: 0 18px 55px rgba(0,0,0,.5); }
.vsm-popmenu { display: grid; min-width: 150px; }
.vsm-popmenu button { padding: 9px 11px; color: #dbe4ef; background: transparent; border: 0; border-radius: 8px; text-align: start; cursor: pointer; }
.vsm-popmenu button:hover { background: rgba(255,255,255,.06); }
.vsm-popmenu .is-danger { color: #fb7185; }
.vsm-portal-picker { display: flex; gap: 3px; }
.vsm-portal-picker button { width: 39px; height: 39px; font-size: 19px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; transition: transform .12s ease,background .12s ease; }
.vsm-portal-picker button:hover,.vsm-portal-picker button.is-own { transform: scale(1.12); background: rgba(247,171,57,.13); }
.vsm-reactions { position: absolute; bottom: -12px; inset-inline-end: 7px; z-index: 3; display: flex; gap: 3px; }
.vsm-reaction-chip { min-height: 22px; padding: 1px 6px; color: #dbe4ef; background: #0a1524; border: 1px solid rgba(148,163,184,.2); border-radius: 999px; font-size: 11px; box-shadow: 0 3px 8px rgba(0,0,0,.3); }
.vsm-reaction-chip.is-own { border-color: rgba(247,171,57,.6); background: #211a10; }
.vsm-reply-quote { width: 100%; margin-bottom: 7px; padding: 6px 8px; display: grid; gap: 1px; color: #cbd5e1; background: rgba(2,6,23,.32); border: 0; border-inline-start: 2px solid #f7ab39; border-radius: 7px; text-align: start; cursor: pointer; }
.vsm-reply-quote strong { color: #f7ab39; font-size: 10px; }
.vsm-reply-quote span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.vsm-highlight { animation: vsm-highlight 1.8s ease; }
@keyframes vsm-highlight { 20% { box-shadow: 0 0 0 3px rgba(247,171,57,.5),0 0 30px rgba(247,171,57,.22); } }
.vsm-message-image { width: min(320px,100%) !important; height: auto; max-height: 420px; border-radius: 11px !important; }
.vsm-shared-card { width: min(360px,100%); grid-template-columns: 70px minmax(0,1fr) auto; background: #0a1524; border-color: rgba(148,163,184,.14); border-radius: 12px; }
.vsm-shared-card > img { width: 70px; height: 72px; }
.vsm-shared-card.is-unavailable { opacity: .78; }
.vsm-shared-label { color: #f7ab39; }
.vsm-composer-shell { flex: 0 0 auto; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important; background: rgba(12,25,41,.97) !important; border-top-color: rgba(148,163,184,.12) !important; }
.vsm-composer-row { align-items: flex-end !important; gap: 6px !important; padding: 6px !important; background: #07101c !important; border-color: rgba(148,163,184,.15) !important; border-radius: 15px !important; }
.vsm-composer-row > button { width: 36px !important; height: 36px !important; border-radius: 10px !important; }
.vsm-composer-input { min-height: 36px; max-height: 118px; padding: 8px 7px !important; resize: none; overflow-y: auto; line-height: 20px; }
.vsm-typing { margin: 0 4px 7px; color: #94a3b8; font-size: 11px; }
.vsm-reply-preview,.vsm-image-preview,.vsm-recording { margin-bottom: 8px; padding: 8px 10px; display: flex; align-items: center; gap: 9px; background: #0a1625; border: 1px solid rgba(148,163,184,.14); border-radius: 11px; }
.vsm-reply-preview > span { min-width: 0; flex: 1; display: grid; }
.vsm-reply-preview strong { color: #f7ab39; font-size: 10px; }
.vsm-reply-preview small { overflow: hidden; color: #94a3b8; text-overflow: ellipsis; white-space: nowrap; }
.vsm-reply-preview > button { color: #94a3b8; border: 0; background: transparent; font-size: 18px; }
.vsm-image-preview img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.vsm-image-preview > span { min-width: 0; flex: 1; overflow: hidden; color: #94a3b8; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.vsm-recording { color: #cbd5e1; }
.vsm-recording time { flex: 1; font-variant-numeric: tabular-nums; }
.vsm-record-dot { width: 8px; height: 8px; border-radius: 50%; background: #fb7185; animation: vsm-pulse 1s infinite; }
@keyframes vsm-pulse { 50% { opacity: .3; } }
.vsm-recording button,.vsm-edit-panel button { padding: 7px 10px; color: #cbd5e1; background: rgba(255,255,255,.05); border: 1px solid rgba(148,163,184,.14); border-radius: 8px; }
.vsm-recording .is-primary,.vsm-edit-panel .is-primary { color: #111827; background: #f7ab39; border-color: #f7ab39; }
.vsm-scroll-bottom { position: absolute; z-index: 9; inset-inline-end: 20px; bottom: 86px; min-width: 38px; height: 38px; padding: 0 11px; display: flex; align-items: center; gap: 6px; color: #111827; background: #f7ab39; border: 0; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.vsm-scroll-bottom[hidden] { display: none; }
.vsm-scroll-bottom span { font-size: 10px; font-weight: 800; }
.vss-chat-info { min-width: 0; padding: 22px 18px; overflow-y: auto; background: #091422; border-inline-start: 1px solid rgba(148,163,184,.12); text-align: center; }
.vss-chat-info > img { width: 76px; height: 76px; object-fit: cover; border-radius: 50%; border: 2px solid rgba(247,171,57,.35); }
.vss-chat-info h2 { margin: 12px 0 4px; color: #f8fafc; font-size: 16px; }
.vss-chat-info > p { margin: 0 0 15px; color: #7f8da0; font-size: 11px; }
.vsm-info-back { display: none; }
.vsm-shared-panel { margin-top: 18px; text-align: start; }
.vsm-lightbox { position: fixed; inset: 0; z-index: 100020; display: grid; place-items: center; padding: 40px; background: rgba(2,6,12,.94); backdrop-filter: blur(8px); }
.vsm-lightbox[hidden] { display: none; }
.vsm-lightbox img { max-width: min(94vw,1400px); max-height: 90dvh; object-fit: contain; border-radius: 12px; box-shadow: 0 30px 90px rgba(0,0,0,.6); }
.vsm-lightbox button { position: absolute; top: max(16px,env(safe-area-inset-top)); inset-inline-end: 20px; width: 42px; height: 42px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 50%; font-size: 26px; }
.vsm-edit-dialog { position: fixed; inset: 0; z-index: 100030; display: grid; place-items: center; padding: 18px; }
.vsm-edit-panel { position: relative; z-index: 1; width: min(440px,100%); padding: 18px; background: #0c1726; border: 1px solid rgba(148,163,184,.18); border-radius: 16px; box-shadow: 0 25px 80px rgba(0,0,0,.55); }
.vsm-edit-panel h2 { margin: 0 0 12px; color: #fff; font-size: 17px; }
.vsm-edit-panel textarea { width: 100%; padding: 11px; resize: vertical; color: #e5edf7; background: #07101c; border: 1px solid rgba(148,163,184,.18); border-radius: 10px; outline: none; }
.vsm-edit-panel > div { margin-top: 12px; display: flex; justify-content: flex-end; gap: 8px; }
.vsm-dragging::after { content: "Drop image to send"; position: absolute; inset: 68px 12px 82px; z-index: 20; display: grid; place-items: center; color: #f7ab39; background: rgba(7,16,28,.92); border: 2px dashed rgba(247,171,57,.55); border-radius: 16px; font-weight: 800; }

[dir="rtl"] .vsm-chat-header > button:first-child i,[dir="rtl"] .vsm-info-back i { transform: rotate(180deg); }
[dir="rtl"] .vsm-shared-card > i { transform: rotate(180deg); }

@media (min-width: 768px) and (max-width: 1199px) {
    .vss-messenger { height: calc(100dvh - 132px); min-height: 560px; grid-template-columns: minmax(250px,300px) minmax(0,1fr); }
    .vss-conversations { max-height: none; border-bottom: 0; }
    .vss-chat-host { min-height: 0; }
    .vss-chat-info { display: block; position: absolute; z-index: 20; top: 0; bottom: 0; inset-inline-end: 0; width: min(330px,42vw); box-shadow: -20px 0 50px rgba(0,0,0,.35); }
    .vss-messenger.is-info-hidden .vss-chat-info { display: none; }
}

@media (max-width: 767px) {
    #quick_chat_sidebar { height: var(--vsm-visual-height,100dvh) !important; max-height: var(--vsm-visual-height,100dvh); overflow: hidden; }
    #quick_chat_sidebar > #quick_chat_window { height: 100%; min-height: 0; }
    body[data-pc-page="vs"] #view_messages { width: calc(100% + (var(--pc-page-gutter) * 2)); margin-inline: calc(var(--pc-page-gutter) * -1); }
    .vss-messenger { display: block; height: calc(var(--vsm-visual-height,100dvh) - 84px); min-height: 0; border: 0; border-radius: 0; }
    .vss-messenger .vss-conversations { height: 100%; max-height: none; border: 0; }
    .vss-messenger .vss-chat-host,.vss-messenger .vss-chat-info { display: none; height: 100%; min-height: 0; }
    .vss-messenger[data-vsm-mobile-view="chat"] .vss-conversations,
    .vss-messenger[data-vsm-mobile-view="info"] .vss-conversations { display: none; }
    .vss-messenger[data-vsm-mobile-view="chat"] .vss-chat-host { display: block; }
    .vss-messenger[data-vsm-mobile-view="info"] .vss-chat-host { display: none; }
    .vss-messenger[data-vsm-mobile-view="info"] .vss-chat-info { display: block; position: absolute; inset: 0; z-index: 30; padding-top: max(15px,env(safe-area-inset-top)); }
    .vsm-info-back { width: 100%; margin-bottom: 18px; padding: 9px; display: flex; align-items: center; gap: 7px; color: #cbd5e1; background: rgba(255,255,255,.04); border: 1px solid rgba(148,163,184,.12); border-radius: 10px; }
    .vsm-chat-header { min-height: 58px; padding-top: max(8px,env(safe-area-inset-top)) !important; }
    .vsm-chat-header > button { width: 40px; height: 40px; }
    .vsm-messages { padding: 14px 10px 24px !important; }
    .vsm-message-row { max-width: 86% !important; }
    .vsm-hover-actions { display: none; }
    .vsm-popmenu.is-mobile { top: auto !important; right: 8px !important; bottom: max(8px,env(safe-area-inset-bottom)); left: 8px !important; padding: 10px; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .vsm-popmenu.is-mobile button { padding: 13px; text-align: center; }
    .vsm-portal-picker.is-mobile { top: auto !important; right: 50% !important; bottom: max(18px,env(safe-area-inset-bottom)); left: auto !important; transform: translateX(50%); }
    .vsm-composer-shell { padding-inline: 8px !important; }
    .vsm-composer-row > button { width: 40px !important; height: 40px !important; }
    .vsm-recording { flex-wrap: wrap; }
    .vsm-lightbox { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .vsm-message-row,.vsm-hover-actions,.vsm-portal-picker button { transition: none; }
    .vsm-highlight,.vsm-record-dot { animation: none; }
}
