
/* ===== BEGIN mig-web-all.css ===== */

/* =========================================================
!CLEANUP v334: оставлены последние рабочие версии связанных блоков!
Удалены старые конфликтующие участки: JS: устаревший v270.2 close-dedupe, CSS: Профиль группы v230, CSS: Профиль группы v260, CSS: Профиль группы v261, CSS: Профиль группы v270, CSS: Групповые настройки v275, CSS: Групповые настройки v276, CSS: v319, CSS: v320, CSS: v321, CSS: v325, CSS: v326, CSS: v327.
Важно: базовые блоки и блоки, от которых зависят последние версии, не удалялись.
========================================================= */
/* MIG WEB v305 unified CSS: only files linked from index.html */
/* =========================================================
!КАРТА CSS-БЛОКОВ НАЧАЛО!
Стили размечены смысловыми зонами: база, чат-лист, чат, composer, профиль собеседника, профиль группы, мой профиль, настройки группы.
Порядок CSS сохранён, чтобы каскад и !important-правки v1/v2/v... продолжали работать как раньше.
!КАРТА CSS-БЛОКОВ КОНЕЦ!
========================================================= */


/* =========================================================
!БАЗА / ЧАТ-ЛИСТ / ЧАТ / COMPOSER НАЧАЛО!
В этом объединённом CSS находятся базовая сетка, sidebar, chat-list, message-list, composer и ранние emoji/voice правки.
!Чат-лист изменение базовое v305/v167!
========================================================= */
/* ===== index-v167-composer.css ===== */
:root{color-scheme:dark;--safe-top-viewport: 0px;--safe-bottom-viewport: 0px;--bg: #0e1621;--bg-elev: #17212b;--panel: #17212b;--panel-soft: #1f2936;--panel-strong: #1a2430;--line: rgba(255,255,255,.06);--line-strong: rgba(255,255,255,.08);--text: #e7ecf2;--muted: #8f9fb0;--muted-2: #74879b;--accent: #64a8ff;--accent-strong: #3390ec;--badge: #5aa8ff;--bubble: #182533;--bubble-mine: #2b5378;--bubble-mine-2: #2f608c;--green: #67c15e;--shadow: 0 10px 30px rgba(0,0,0,.22)}*{box-sizing:border-box}html,body,#root{margin:0;height:100%;font-family:Inter,system-ui,Arial,sans-serif;background:var(--bg);color:var(--text)}body{background:radial-gradient(circle at top left,rgba(81,139,255,.12),transparent 28%),radial-gradient(circle at bottom right,rgba(90,168,255,.08),transparent 24%),linear-gradient(180deg,#0e1621,#101923)}button,input,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}img{display:block}.app-shell{height:var(--app-height, 100dvh);display:grid;grid-template-columns:clamp(260px,25vw,380px) minmax(0,1fr) clamp(280px,21vw,336px);background:transparent}.glass{-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.sidebar,.right-panel,.chat-panel{min-width:0;min-height:0}.sidebar,.chat-panel{border-right:1px solid var(--line)}.sidebar{display:flex;flex-direction:column;background:#17212bf5}.chat-panel{display:flex;flex-direction:column;min-height:0;height:var(--app-height, 100dvh);background:#0e162194;overflow:hidden}.right-panel{min-height:0;overflow:auto}.sidebar-top{padding:12px;border-bottom:1px solid var(--line);background:#17212be6}.sidebar-header,.chat-header,.chat-header-left,.header-actions,.composer-row,.modal-head,.settings-profile,.bubble-footer,.chat-row-head,.chat-row-meta,.composer-reply{display:flex;align-items:center}.sidebar-header{justify-content:space-between;gap:12px;margin-bottom:12px}.sidebar-user{display:flex;align-items:center;gap:12px;min-width:0}.brand-title{font-size:16px;line-height:1.15;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand-subtitle{color:var(--muted);font-size:12px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.search-box{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:12px;background:#202b36;color:var(--muted);border:1px solid rgba(255,255,255,.03)}.search-box:focus-within,.side-input:focus{box-shadow:inset 0 0 0 1px #64a8ff8c}.search-box input,.side-input,.composer input,.login-card input,.modal-card input,.modal-card textarea{width:100%;background:transparent;border:0;outline:none;color:var(--text)}/* !Чат-лист начало! */
.chat-list-scroll{overflow:auto;padding:6px 8px 10px;min-height:0}.chat-row{width:100%;display:flex;align-items:center;gap:10px;border:0;background:transparent;color:inherit;text-align:left;padding:8px 10px;border-radius:12px;transition:background .16s ease,transform .16s ease}.chat-row:hover,.side-item:hover,.icon-btn:hover,.emoji-btn:hover{background:#ffffff0d}.chat-row.active{background:var(--accent-strong)}.chat-row.active .chat-time,.chat-row.active .chat-preview,.chat-row.active .brand-subtitle{color:#ffffffd1}.chat-row-main{min-width:0;flex:1}.chat-row-head,.chat-row-meta,.bubble-footer,.composer-reply{justify-content:space-between;gap:8px}.chat-title{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-time,.chat-preview,.settings-sub{color:var(--muted);font-size:12px}.chat-preview{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:clamp(120px,15vw,260px)}.chat-preview.typing{color:#71d38b}.chat-badges{display:flex;gap:6px;align-items:center;flex-shrink:0}.badge{min-width:22px;height:22px;display:grid;place-items:center;padding:0 7px;background:var(--badge);border-radius:999px;font-size:12px;font-weight:700;color:#fff}.badge-mention{background:var(--green)}/* !Чат-лист конец! */

/* !Чат-панель / сообщения начало! */
.chat-panel{display:flex;flex-direction:column;min-width:0;background:linear-gradient(180deg,#111a23d1,#111a23d1),radial-gradient(circle at center,rgba(255,255,255,.03) 1px,transparent 1px);background-size:auto,24px 24px}.chat-header{position:sticky;top:0;z-index:5;justify-content:space-between;padding:12px 18px;border-bottom:1px solid var(--line);background:#17212bd1}.chat-header-left{gap:12px;min-width:0}.chat-header-title{font-size:16px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-header-subtitle{color:var(--muted);font-size:13px}.chat-header-badges{display:flex;align-items:center;gap:8px;margin-left:8px;flex-wrap:wrap}.header-pill{display:inline-flex;align-items:center;gap:4px;padding:5px 9px;border-radius:999px;background:#ffffff0d;color:var(--muted);font-size:12px;white-space:nowrap}.header-actions{gap:4px}.pinned-banner{display:flex;gap:8px;align-items:center;border:0;background:#17212bb8;color:inherit;padding:10px 18px;border-bottom:1px solid var(--line);text-align:left}.pinned-banner span{color:var(--muted)}.message-list{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px clamp(12px,2vw,24px) 10px;scroll-padding-bottom:96px}.message-anchor.flash{animation:flash 1.4s ease;border-radius:18px}@keyframes flash{0%{background:#64a8ff52}to{background:transparent}}.day-pill{position:sticky;top:10px;z-index:1;width:fit-content;margin:12px auto;padding:6px 12px;border-radius:999px;background:#17212bd6;color:var(--muted);font-size:12px;box-shadow:var(--shadow)}.message-row{display:flex;align-items:flex-end;gap:8px;margin:2px 0}.message-row.mine{justify-content:flex-end}.bubble{position:relative;max-width:min(72%,760px);padding:7px 10px 6px;border-radius:16px;box-shadow:0 6px 18px #00000024}.bubble.other{background:var(--bubble);border-bottom-left-radius:5px}.bubble.mine{background:linear-gradient(180deg,var(--bubble-mine),var(--bubble-mine-2));border-bottom-right-radius:5px}.bubble-sender{color:#87ccff;font-size:13px;margin-bottom:3px;font-weight:700}.bubble-text{white-space:pre-wrap;line-height:1.42;word-break:break-word}.reply-preview,.bubble-file{display:flex;align-items:center;gap:8px;width:100%;border:0;background:#ffffff0f;color:inherit;border-radius:10px;padding:8px 10px;margin-bottom:8px;text-align:left}.reply-preview small{display:block;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:320px}.bubble-image{max-width:100%;border-radius:12px;margin-top:8px}.bubble-audio{width:280px;max-width:100%;margin-top:8px}.bubble-footer{margin-top:4px;justify-content:flex-end}.bubble-meta{display:inline-flex;align-items:center;gap:4px;color:#ffffffb8;font-size:12px}.reaction-bar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:8px}.reaction-chip{display:flex;align-items:center;gap:5px;border:0;border-radius:999px;background:#ffffff14;color:inherit;padding:5px 10px}.reaction-chip.active{outline:1px solid rgba(100,168,255,.9);background:#3390ec2e}.bubble-hover-tools{position:absolute;top:-16px;right:10px;display:flex;align-items:center;gap:4px;padding:4px 6px;border-radius:999px;background:#17212bf2;box-shadow:var(--shadow);opacity:0;transform:translateY(4px);pointer-events:none;transition:opacity .16s ease,transform .16s ease}.message-row:hover .bubble-hover-tools,.message-row:focus-within .bubble-hover-tools{opacity:1;transform:translateY(0);pointer-events:auto}.emoji-btn,.icon-btn,.media-thumb,.side-item,.send-btn{border:0;color:inherit;background:transparent}.icon-btn{width:36px;height:36px;border-radius:50%;display:grid;place-items:center}.icon-btn.tiny{width:26px;height:26px}.emoji-btn{border-radius:10px;padding:3px 6px}.status-muted{opacity:.65}/* !Чат-панель / сообщения конец! */

/* !Composer начало! */
.composer{position:sticky;bottom:0;z-index:4;border-top:1px solid var(--line);padding:10px 12px 12px;background:#17212be6;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.composer-reply{background:#ffffff0d;border-radius:14px;padding:10px 12px;margin-bottom:10px}.composer-reply div{display:flex;flex-direction:column;gap:4px}.composer-reply span{color:var(--muted);font-size:13px}.composer-row{gap:8px;background:#17212b;border-radius:16px;padding:8px;border:1px solid rgba(255,255,255,.03)}.composer-row input{min-width:0;flex:1;padding:10px 4px}.send-btn{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:var(--accent-strong);color:#fff;box-shadow:0 6px 14px #3390ec59}/* !Composer конец! */

/* !Правая панель / карточки профиля начало! */
.right-panel{padding:14px;overflow:auto;background:#121b23e6}.profile-card,.side-block,.modal-card,.login-card{border:1px solid var(--line);border-radius:22px;background:#17212bf0}.profile-card{padding:22px 18px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px}.profile-card h3{margin:4px 0 0}.profile-card p{margin:0;color:var(--muted)}.side-block{margin-top:14px;padding:14px}.side-title{display:flex;align-items:center;gap:8px;font-weight:700;margin-bottom:10px}.side-input{background:#202b36;padding:12px 14px;border-radius:12px;margin-bottom:10px;border:1px solid rgba(255,255,255,.03)}.side-list{display:flex;flex-direction:column;gap:8px}.side-item{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:10px;border-radius:14px;text-align:left}.side-item span{color:var(--muted);font-size:13px}.media-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.media-thumb{aspect-ratio:1;border-radius:14px;overflow:hidden}.media-thumb img{width:100%;height:100%;object-fit:cover}.avatar{border-radius:50%;object-fit:cover;background:#2d4a68;flex-shrink:0}.avatar-fallback{display:grid;place-items:center;font-weight:700;background:linear-gradient(135deg,#4f9cf8,#2b5278)}.login-screen{min-height:100%;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at top,rgba(79,156,248,.23),transparent 24%),linear-gradient(180deg,#0d151f,#0e1621)}.login-card{width:min(100%,430px);padding:28px;box-shadow:var(--shadow)}.login-logo{width:92px;height:92px;display:block;border-radius:24px;object-fit:cover;box-shadow:0 10px 30px #00000047;margin:0 auto 14px}.login-card h1{margin:0 0 8px}.login-card p{color:var(--muted);margin:0 0 18px}.login-card form{display:flex;flex-direction:column;gap:12px}.login-card input,.modal-card input,.modal-card textarea{background:#202b36;border-radius:14px;padding:14px;color:inherit;border:1px solid rgba(255,255,255,.03)}.primary-btn{border:0;background:var(--accent-strong);color:#fff;border-radius:14px;padding:14px 18px;font-weight:700}.error-text{color:#ff8f8f;font-size:14px}.empty-chat,.empty-state{height:100%;display:grid;place-items:center;color:var(--muted);gap:8px}.empty-state{padding:30px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:20px}.modal-card{width:min(100%,520px);padding:18px}.modal-head{justify-content:space-between}.field-label{display:block;margin:12px 0 8px;color:var(--muted);font-size:13px}.settings-title{font-weight:700}.mobile-only{display:none}@media (max-width: 1180px){.app-shell{grid-template-columns:minmax(270px,34vw) 1fr}.right-panel{display:none}}@media (max-width: 820px){html,body,#root{overflow:hidden}.app-shell{grid-template-columns:1fr;position:relative;overflow:hidden;height:100dvh}.sidebar,.chat-panel{grid-column:1;grid-row:1;height:100%}.sidebar{display:flex}.chat-panel{position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(100%);transition:transform .22s ease;background-color:var(--bg);height:100dvh}.chat-panel.mobile-open{transform:translate(0)}.mobile-only{display:grid}.bubble{max-width:87%}.chat-list-scroll{padding-bottom:calc(20px + env(safe-area-inset-bottom))}.composer{padding-bottom:calc(12px + env(safe-area-inset-bottom))}}.sidebar-top{padding:14px 12px 10px}.sidebar-toolbar{display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px;align-items:center;margin-bottom:12px}.search-box-main{min-width:0;padding:10px 12px;border-radius:22px}.sidebar-account-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--line);border-radius:18px;background:#202b368c}.icon-btn-soft{background:#ffffff09;border:1px solid rgba(255,255,255,.045)}.chat-list-scroll{padding:6px 8px 10px}.chat-row{gap:10px;padding:9px 10px;border-radius:12px}.online-dot{position:absolute;right:1px;bottom:1px;width:12px;height:12px;border-radius:50%;background:#5edb73;border:2px solid #1a2430}.chat-title{font-size:15px;font-weight:600}.chat-preview{max-width:245px}.pin-mini{color:var(--muted);font-size:10px}.chat-header{position:sticky;top:0;z-index:5;padding:10px 16px}.chat-header-left .avatar{box-shadow:0 0 0 1px #ffffff0f}.pinned-banner{gap:10px;padding:9px 16px}.message-list{padding:14px 16px 20px}.message-row{gap:6px;margin:2px 0}.bubble{max-width:min(68%,640px);padding:6px 10px 5px;border-radius:16px}.bubble.other{background:#182533f2}.bubble.mine{background:linear-gradient(180deg,#2c5277,#2b5b84)}.bubble-text{font-size:15px;line-height:1.36}.bubble-footer{margin-top:2px}.bubble-meta{font-size:11px}.bubble-hover-tools.mine{right:auto;left:10px}.reply-preview,.bubble-file{border-radius:12px;margin-bottom:6px}.reaction-chip{padding:4px 9px}.composer{padding:10px 12px 12px}.composer-row{border-radius:22px;padding:7px}.composer-row input{padding:10px 6px}.right-panel{padding:12px}.profile-card,.side-block{border-radius:18px}.side-item{gap:4px}.side-item small{color:var(--muted-2);font-size:12px}@media (max-width: 1080px){.app-shell{grid-template-columns:360px minmax(320px,1fr)}.right-panel{display:none}}@media (max-width: 760px){.sidebar{border-right:0}.chat-panel{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;transform:translate(100%);transition:transform .22s ease}.chat-panel.mobile-open{transform:translate(0)}.app-shell{display:block}.message-list{padding-bottom:calc(22px + env(safe-area-inset-bottom))}.composer{padding-bottom:max(6px,calc(env(safe-area-inset-bottom) + 2px))}.bubble{max-width:84%}}.sidebar-toolbar{display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px;margin-bottom:12px}.search-box-main{min-width:0}.sidebar-account-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--line);border-radius:20px;background:#ffffff08}.sidebar-user-meta{min-width:0}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.section-title{font-size:17px;font-weight:700}.section-subtitle{color:var(--muted);font-size:12px;margin-top:3px}.chip-btn{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:999px;border:1px solid var(--line);background:#ffffff08;color:var(--text)}.chat-list-scroll{padding:10px 8px 16px}.chat-row{padding:11px 12px;border-radius:18px}.chat-row.active{background:linear-gradient(180deg,#3390ecf5,#367dcdf5);box-shadow:0 8px 24px #2068b559}.chat-row.active .glyph-mini,.chat-row.active .badge{background:#ffffff29;color:#fff}.chat-title{font-size:15px}.chat-time{font-size:12px;flex-shrink:0}.chat-preview{max-width:100%}.chat-avatar-wrap{position:relative;flex-shrink:0}.online-dot{position:absolute;right:1px;bottom:1px;width:12px;height:12px;border-radius:50%;background:var(--green);border:2px solid var(--panel)}.glyph-mini{width:20px;height:20px;display:grid;place-items:center;border-radius:50%;color:var(--muted);background:#ffffff0a}.pin-mini{color:var(--muted)}.chat-header{position:sticky;top:0;z-index:5;padding:12px 16px;background:#141d26e6}.chat-header-title{font-size:15px}.chat-header-subtitle{font-size:12px}.message-list{padding:18px 22px 28px}.message-row{margin:2px 0 8px}.bubble{max-width:min(67%,720px);padding:9px 11px 6px;border-radius:18px}.bubble-text{font-size:15px}.bubble-footer{gap:6px;justify-content:flex-end}.bubble-edited{color:#ffffff94;font-size:12px}.composer{padding:10px 12px calc(10px + env(safe-area-inset-bottom))}.composer-row{padding:7px;border-radius:18px}.right-panel{padding:14px;display:flex;flex-direction:column;gap:14px}.profile-stats{display:grid;width:100%;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.profile-stat{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 12px;border-radius:14px;background:#ffffff0a;color:var(--muted);font-size:13px}.side-empty{color:var(--muted);font-size:13px;padding:10px 4px 2px}.media-empty{padding-top:12px}.empty-chat{flex:1;display:grid;place-items:center;padding:32px}.empty-chat-card{max-width:420px;padding:24px 28px;border:1px solid var(--line);border-radius:24px;background:#17212bb3;text-align:center}.empty-chat-title{font-size:22px;font-weight:700;margin-bottom:8px}.empty-chat-subtitle{color:var(--muted);line-height:1.5}@media (max-width: 1200px){.app-shell{grid-template-columns:360px minmax(320px,1fr)}.right-panel{display:none}}@media (max-width: 760px){.sidebar-top{padding-top:calc(12px + env(safe-area-inset-top))}.message-list{padding:14px 12px 20px}.bubble{max-width:84%}.empty-chat-card{padding:18px 20px;border-radius:20px}}.filter-row{display:flex;gap:8px;margin-top:12px;overflow:auto;padding-bottom:2px}.filter-row::-webkit-scrollbar{display:none}.filter-chip{border:0;color:var(--muted);background:#ffffff0a;border-radius:999px;padding:8px 12px;white-space:nowrap}.filter-chip.active{color:#fff;background:#3390ecf2;box-shadow:0 8px 18px #3390ec38}.chat-row-main{display:flex;flex-direction:column;justify-content:center;gap:4px}.chat-row{min-height:78px}.chat-row-head{align-items:baseline}.chat-preview{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.chat-header{position:sticky;top:0;z-index:5;gap:12px}.chat-header-badges{display:flex;gap:8px;margin-left:auto;flex-wrap:wrap}.header-pill{display:inline-flex;align-items:center;padding:7px 11px;border-radius:999px;background:#ffffff0d;color:var(--muted);font-size:12px;white-space:nowrap}.message-avatar-slot{width:32px;flex:0 0 32px}.avatar-spacer{width:32px;height:32px}.message-row.compact{margin-top:1px}.bubble.compact{border-top-left-radius:12px}.message-row.mine .bubble.compact{border-top-right-radius:12px}.side-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:8px;border:1px solid var(--line);border-radius:18px;margin-top:14px;background:#17212bd1}.side-tab{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;border-radius:12px;background:transparent;color:var(--muted);min-height:40px}.side-tab.active{color:#fff;background:#3390ecf0}.side-empty{min-height:88px;display:grid;place-items:center;gap:8px;color:var(--muted);text-align:center;padding:18px 12px}.media-empty{min-height:120px}@media (max-width: 900px){.chat-header-badges{display:none}}@media (max-width: 760px){.chat-row{min-height:74px}.filter-row{margin-top:10px}.message-list{padding-left:12px;padding-right:12px}.bubble{max-width:86%}}@media (max-width: 1320px){.app-shell{grid-template-columns:clamp(250px,28vw,340px) minmax(0,1fr) 300px}.bubble{max-width:min(78%,680px)}}@media (max-width: 1080px){.app-shell{grid-template-columns:clamp(240px,34vw,320px) minmax(0,1fr)}.right-panel{display:none}.chat-preview{max-width:min(32vw,220px)}.chat-header-badges{display:none}}@media (max-width: 900px){.sidebar-top{padding:12px 10px 8px}.sidebar-account-card{padding:10px}.chat-header{padding:10px 12px}.header-actions .icon-btn:nth-child(2){display:inline-flex}.bubble{max-width:82%}}@media (max-width: 760px){.sidebar-toolbar{grid-template-columns:36px minmax(0,1fr) 36px;gap:8px}.icon-btn{width:34px;height:34px}.sidebar-account-card{border-radius:16px}.section-head{gap:8px}.chip-btn{display:none}.chat-row{padding:8px}.chat-title{font-size:14px}.chat-preview,.chat-time{font-size:11px}.chat-header-left{gap:10px}.chat-header-title{font-size:14px}.chat-header-subtitle{font-size:11px}.header-actions{gap:4px;flex-wrap:nowrap}.header-actions .mobile-hide-action{display:none}.header-actions .call-audio-btn,.header-actions .call-video-btn,.header-actions .profile-btn{display:inline-flex}.message-list{padding:10px 10px 8px}.bubble{max-width:88%;padding:6px 9px 5px}.bubble-text{font-size:14px}.composer{padding:8px 10px calc(10px + env(safe-area-inset-bottom))}.composer-row{padding:6px;border-radius:18px}.send-btn{width:38px;height:38px}}@media (max-width: 420px){.sidebar-top{padding:10px 8px 8px}.chat-list-scroll{padding:4px 6px 10px}.chat-avatar-wrap .avatar{width:48px!important;height:48px!important}.filter-row{overflow:auto;padding-bottom:2px;scrollbar-width:none}.filter-row::-webkit-scrollbar{display:none}}html,body,#root{overflow:hidden}.app-shell{width:100%;max-width:100vw;overflow:hidden}.sidebar,.chat-panel,.right-panel,.message-list,.chat-list-scroll{overscroll-behavior:contain}.chat-panel{width:minmax(0,1fr)}.message-list{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:14px 18px 10px;scroll-behavior:smooth}.message-list-top{position:sticky;top:0;z-index:6;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none;margin-bottom:6px}.history-loader{padding:6px 12px;border-radius:999px;color:var(--muted);background:#141c26d1;border:1px solid var(--line);font-size:12px}.sticky-day-pill{position:sticky;top:0;margin:0 auto;z-index:5;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#141c26c7;border:1px solid rgba(255,255,255,.06)}.chat-header{position:sticky;top:0;z-index:9;min-width:0;padding:10px 16px}.chat-header-left{min-width:0;flex:1 1 auto;overflow:hidden}.chat-header-left>div:nth-child(3){min-width:0}.chat-header-badges{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}.header-actions{flex:0 0 auto}.pinned-banner{position:sticky;top:64px;z-index:8;margin:8px 12px 0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.composer{position:sticky;bottom:0;z-index:9;padding-bottom:max(12px,env(safe-area-inset-bottom))}.composer-row,.composer input,.chat-row,.message-row,.bubble,.message-anchor,.empty-chat,.empty-chat-card,.right-panel,.profile-card,.side-block,.side-tabs{min-width:0}.chat-row{overflow:hidden}.chat-preview,.chat-title{display:block;min-width:0}.right-panel{overflow-x:hidden}@media (max-width: 1279px){.app-shell{grid-template-columns:clamp(248px,29vw,332px) minmax(0,1fr)}.right-panel{display:none}}@media (max-width: 920px){.app-shell{grid-template-columns:minmax(0,1fr)}.sidebar{width:100%;max-width:100%}.chat-panel{display:none}.chat-panel.mobile-open{display:flex;position:fixed;top:0;right:0;bottom:0;left:0;height:var(--app-height, 100dvh);z-index:30;width:100vw;max-width:100vw;background:#0e1621fa}.sidebar:not(.mobile-open){display:flex}.chat-header{padding-top:max(18px,calc(env(safe-area-inset-top) + 12px))}.pinned-banner{top:calc(60px + env(safe-area-inset-top));margin-left:10px;margin-right:10px}.message-list{padding-left:10px;padding-right:10px;padding-bottom:8px}.composer{padding:8px 10px max(6px,calc(env(safe-area-inset-bottom) + 2px));border-top:1px solid var(--line)}.chat-header-badges,.header-actions .icon-btn:nth-child(2){display:inline-flex}.header-actions{gap:6px}.chat-header .icon-btn,.composer .icon-btn,.send-btn{flex:0 0 auto}}@media (max-width: 640px){.sidebar-top{padding:10px}.sidebar-toolbar{gap:8px}.search-box-main{min-width:0}.sidebar-account-card{padding:10px}.chat-list-scroll{padding:4px 6px 8px}.chat-row{padding:8px;border-radius:10px}.chat-avatar-wrap .avatar{width:48px;height:48px}.chat-header{padding-left:10px;padding-right:10px}.chat-header-left{gap:8px}.chat-header-subtitle{max-width:52vw}.message-list{padding-top:10px}.bubble{max-width:min(88vw,560px)}.composer-row{gap:6px}}.unread-boundary{display:flex;align-items:center;gap:10px;margin:10px 0 8px;color:#89c6ff;font-size:12px}.unread-boundary:before,.unread-boundary:after{content:"";height:1px;background:#64a8ff47;flex:1}.unread-boundary span{padding:5px 10px;border-radius:999px;background:#3390ec1f;border:1px solid rgba(100,168,255,.24);white-space:nowrap}.scroll-to-bottom-btn{position:absolute;right:18px;bottom:calc(84px + env(safe-area-inset-bottom));z-index:8;display:inline-flex;align-items:center;gap:6px;border:0;padding:10px 12px;border-radius:999px;color:#fff;background:#275991f2;box-shadow:0 10px 24px #0000003d}.scroll-to-bottom-btn span{min-width:18px;height:18px;display:grid;place-items:center;padding:0 4px;border-radius:999px;background:#ffffff29;font-size:11px;font-weight:700}.message-context-menu{position:fixed;z-index:40;width:210px;display:flex;flex-direction:column;gap:2px;padding:6px;border-radius:16px;background:#17212bfa;border:1px solid var(--line-strong);box-shadow:var(--shadow)}.menu-item{display:flex;align-items:center;gap:10px;width:100%;border:0;padding:10px 12px;border-radius:12px;background:transparent;color:var(--text);text-align:left}.menu-item:hover{background:#ffffff0d}.menu-item.danger{color:#ff9d9d}.side-tabs{grid-template-columns:repeat(4,1fr)}.side-item.static{cursor:default}.mobile-panel-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;background:#070b106b;display:none}.mobile-panel-head{display:none}@media (max-width: 1080px){.mobile-panel-overlay{display:block}.right-panel-mobile{position:absolute;inset:0 0 0 auto;width:min(100vw,420px);height:100dvh;background:#121b23fa;padding-top:calc(10px + env(safe-area-inset-top));overflow-y:auto}.mobile-panel-head{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;padding:8px 4px 12px;margin-bottom:8px;background:#121b23fa}.mobile-panel-title{font-size:18px;font-weight:700;padding-left:8px}}@media (max-width: 760px){.scroll-to-bottom-btn{right:12px;bottom:calc(78px + env(safe-area-inset-bottom));padding:10px}.message-context-menu{width:min(210px,calc(100vw - 24px))}.bubble-hover-tools{display:none}.sidebar-top{padding-top:max(24px,calc(env(safe-area-inset-top) + 16px))}.chat-header{padding-top:max(18px,calc(env(safe-area-inset-top) + 12px))}.chat-header-left>div:nth-child(3){min-width:0;overflow:hidden}.chat-header-subtitle{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.composer{padding-bottom:max(6px,calc(env(safe-area-inset-bottom) + 2px))}.right-panel-mobile{width:100vw}}.bubble-hover-tools{display:none!important}.message-context-menu{width:min(280px,calc(100vw - 24px));padding:8px;gap:8px;border-radius:18px}.message-context-reactions{display:flex;align-items:center;gap:6px;padding:2px 2px 8px;border-bottom:1px solid rgba(255,255,255,.06)}.context-reaction-btn{width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:999px;background:#ffffff0a;color:var(--text);font-size:18px}.context-reaction-btn:hover{background:#ffffff1a}.message-context-actions{display:flex;flex-direction:column;gap:2px}:root{--app-height: 100dvh}.app-shell{height:var(--app-height);min-height:var(--app-height);max-height:var(--app-height);overflow:hidden}.chat-panel{overflow:hidden}.message-list{overscroll-behavior:contain}.message-context-menu{max-width:min(296px,calc(100vw - 24px));overflow:hidden}.message-context-reactions{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;width:100%}.context-reaction-btn{width:100%;min-width:0}.delete-modal-card{width:min(360px,calc(100vw - 24px))}.delete-modal-text{color:var(--muted);margin-bottom:12px}.delete-modal-actions{display:flex;flex-direction:column;gap:6px}@media (max-width: 760px){.app-shell{height:var(--app-height);min-height:var(--app-height);max-height:var(--app-height)}.sidebar-top{padding-top:max(24px,calc(env(safe-area-inset-top) + 16px))}.chat-header{padding-top:max(18px,calc(env(safe-area-inset-top) + 12px))}.message-list{padding-bottom:8px}.composer{padding:8px 10px max(3px,env(safe-area-inset-bottom),calc(var(--safe-bottom-viewport)))}.composer-row{min-height:48px}.mobile-panel-overlay{padding-top:0}.right-panel-mobile{height:var(--app-height);max-height:var(--app-height);padding-top:max(8px,env(safe-area-inset-top));padding-bottom:max(4px,env(safe-area-inset-bottom))}.message-context-menu{max-width:min(296px,calc(100vw - 20px))}}.call-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:90;background:#0c121c9e;display:flex;align-items:center;justify-content:center;padding:24px}.call-card{width:min(760px,100%);border-radius:28px;padding:20px;display:flex;flex-direction:column;gap:16px}.call-title{font-size:14px;color:var(--muted)}.call-peer-name{font-size:28px;font-weight:700}.call-status-line{font-size:14px;color:var(--muted);margin-top:4px}.call-media-grid{position:relative;min-height:360px;border-radius:24px;overflow:hidden;background:linear-gradient(180deg,#0a1828b8,#142437e0)}.call-media-grid.audio-only{display:flex;align-items:center;justify-content:center}.call-video{width:100%;height:100%;object-fit:cover;background:#ffffff0a}.call-video.local{position:absolute;right:18px;bottom:18px;width:180px;height:126px;border-radius:18px;border:1px solid rgba(255,255,255,.18);background:#0000005c}.call-audio-avatar{width:112px;height:112px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:42px;font-weight:700;background:#ffffff1f;color:#fff}.call-actions-row{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.call-action-btn{min-width:54px;height:54px;border-radius:999px;border:none;display:inline-flex;align-items:center;justify-content:center;background:#ffffff1f;color:#fff}.call-action-btn.wide{min-width:160px;padding:0 18px;gap:8px}.call-action-btn.success{background:#2ea043}.call-action-btn.danger{background:#d73a49}.call-action-btn.off{background:#ffffff14;color:#ffffffa8}@media (max-width: 820px){.call-overlay{padding:12px}.call-card{min-height:calc(var(--app-height) - 24px);justify-content:space-between}.call-peer-name{font-size:24px}.call-media-grid{min-height:50vh}.call-video.local{width:124px;height:92px;right:12px;bottom:12px}}@media (max-width: 760px){.sidebar{height:var(--app-height);min-height:var(--app-height);max-height:var(--app-height);padding-bottom:max(0px,env(safe-area-inset-bottom),var(--safe-bottom-viewport))}.sidebar-top{position:sticky;top:0;z-index:6}.chat-panel.mobile-open{height:var(--app-height);min-height:var(--app-height);max-height:var(--app-height)}.chat-header{min-height:64px}.header-actions{margin-left:auto}}@media (max-width: 420px){.header-actions{gap:2px}.icon-btn.call-audio-btn,.icon-btn.call-video-btn,.icon-btn.profile-btn{width:32px;height:32px}.chat-header-left{gap:8px}}@supports (padding: max(0px)){@media (max-width: 920px){.app-shell,.chat-panel,.chat-panel.mobile-open,.sidebar{height:var(--app-height, 100dvh);min-height:var(--app-height, 100dvh)}.sidebar-top{padding-top:max(8px,env(safe-area-inset-top))!important}.chat-header{padding-top:max(6px,env(safe-area-inset-top))!important;min-height:56px}.message-list{padding-bottom:10px}.composer{margin-top:auto;padding-bottom:max(0px,env(safe-area-inset-bottom))!important;background:#121b23fa}.composer-row{min-height:54px}.header-actions{gap:8px;flex-shrink:0}.header-actions .call-audio-btn,.header-actions .call-video-btn,.header-actions .profile-btn{display:inline-flex!important}.header-actions .mobile-hide-action{display:none!important}}}.chat-header-left{min-width:0;flex:1}.chat-header-left>div:last-child{min-width:0}.chat-header-title,.chat-header-subtitle{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media (max-width: 920px){.header-actions{gap:4px!important}.chat-header{gap:8px}.icon-btn{width:38px;height:38px}}@media (max-width: 920px){.app-shell,.sidebar,.chat-panel,.chat-panel.mobile-open{height:var(--app-height, 100dvh)!important;min-height:var(--app-height, 100dvh)!important;max-height:var(--app-height, 100dvh)!important}.sidebar-top{padding-top:max(0px,env(safe-area-inset-top))!important}.chat-header{padding-top:max(0px,env(safe-area-inset-top))!important;min-height:56px!important}.message-list{padding-bottom:12px!important}.composer{position:sticky!important;bottom:0!important;margin-top:0!important;padding-bottom:max(0px,env(safe-area-inset-bottom))!important}.header-actions .call-audio-btn,.header-actions .call-video-btn,.header-actions .profile-btn{display:inline-flex!important}}:root{--keyboard-offset: 0px;--visual-viewport-height: 100dvh}@media (max-width: 920px){.app-shell,.sidebar,.chat-panel,.chat-panel.mobile-open{height:var(--app-height, 100dvh)!important;min-height:var(--app-height, 100dvh)!important;max-height:var(--app-height, 100dvh)!important}.chat-panel.mobile-open{display:flex!important;flex-direction:column!important;position:fixed!important;top:0!important;right:0!important;bottom:0!important;left:0!important;width:100vw!important;background:#0e1621fa!important;padding-top:0!important}.chat-header{position:sticky!important;top:0!important;z-index:12!important;min-height:72px!important;padding:max(8px,env(safe-area-inset-top)) 12px 10px!important;gap:10px!important}.chat-header-left{min-width:0!important;gap:10px!important}.chat-header-left .avatar{width:48px!important;height:48px!important}.chat-header-title{font-size:17px!important;line-height:1.15!important}.chat-header-subtitle{font-size:13px!important;line-height:1.15!important;max-width:42vw!important}.header-actions{flex-shrink:0!important;gap:6px!important}.header-actions .icon-btn{width:40px!important;height:40px!important}.header-actions .call-audio-btn,.header-actions .call-video-btn,.header-actions .profile-btn{display:inline-flex!important}.header-actions .mobile-hide-action{display:none!important}.pinned-banner{top:calc(max(8px,env(safe-area-inset-top)) + 72px)!important}.message-list{flex:1 1 auto!important;min-height:0!important;padding:10px 10px calc(86px + env(safe-area-inset-bottom) + var(--keyboard-offset))!important;scroll-padding-bottom:calc(86px + env(safe-area-inset-bottom) + var(--keyboard-offset))!important}.composer{position:fixed!important;left:0!important;right:0!important;bottom:var(--keyboard-offset)!important;z-index:20!important;margin:0!important;padding:8px 10px max(8px,env(safe-area-inset-bottom))!important;background:#121b23fa!important;border-top:1px solid var(--line)!important}.composer-row{min-height:56px!important;border-radius:22px!important}.composer .send-btn{width:48px!important;height:48px!important;flex:0 0 auto!important}.scroll-to-bottom-btn{bottom:calc(96px + env(safe-area-inset-bottom) + var(--keyboard-offset))!important}}@media (max-width: 920px){:root{--mobile-header-height: calc(70px + env(safe-area-inset-top)) ;--mobile-composer-height: calc(88px + env(safe-area-inset-bottom)) }.app-shell,.sidebar,.chat-panel,.chat-panel.mobile-open{height:var(--app-height, 100svh)!important;min-height:var(--app-height, 100svh)!important;max-height:var(--app-height, 100svh)!important}.chat-panel.mobile-open{position:fixed!important;top:0!important;right:0!important;bottom:0!important;left:0!important;width:100vw!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;background:#0e1621fa!important}.chat-header{position:fixed!important;top:0!important;left:0!important;right:0!important;z-index:20!important;height:var(--mobile-header-height)!important;min-height:var(--mobile-header-height)!important;padding:calc(env(safe-area-inset-top) + 10px) 12px 10px!important;gap:10px!important;background:#0e1621f5!important;-webkit-backdrop-filter:blur(16px)!important;backdrop-filter:blur(16px)!important}.chat-header-left{min-width:0!important;flex:1 1 auto!important;gap:10px!important}.chat-header-left .avatar{width:44px!important;height:44px!important;flex-shrink:0!important}.chat-header-title{font-size:16px!important;line-height:1.15!important}.chat-header-subtitle{font-size:12px!important;line-height:1.2!important;max-width:36vw!important}.header-actions{margin-left:auto!important;gap:6px!important;flex-shrink:0!important}.icon-btn.call-audio-btn,.icon-btn.call-video-btn,.icon-btn.profile-btn{display:inline-flex!important;width:40px!important;height:40px!important}.message-list{flex:1 1 auto!important;min-height:0!important;padding-top:calc(var(--mobile-header-height) + 12px)!important;padding-bottom:calc(var(--mobile-composer-height) + 12px)!important;scroll-padding-top:calc(var(--mobile-header-height) + 12px)!important;scroll-padding-bottom:calc(var(--mobile-composer-height) + 12px)!important}.composer{position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:21!important;margin:0!important;padding:8px 10px calc(8px + env(safe-area-inset-bottom))!important;background:#0e1621f5!important;-webkit-backdrop-filter:blur(16px)!important;backdrop-filter:blur(16px)!important}.composer-row{min-height:54px!important;border-radius:20px!important}.scroll-to-bottom-btn{bottom:calc(var(--mobile-composer-height) + 18px)!important}.mobile-hide-action{display:none!important}}@media (max-width: 820px){.app-shell,.chat-panel{height:var(--app-height, 100vh)!important}.chat-panel.mobile-open{display:flex;flex-direction:column}.chat-header{flex:0 0 auto;padding-top:max(10px,env(safe-area-inset-top));padding-bottom:10px;min-height:72px}.message-list{flex:1 1 auto;min-height:0;padding-bottom:calc(96px + var(--keyboard-offset, 0px));scroll-padding-bottom:calc(96px + var(--keyboard-offset, 0px))}.composer{position:fixed!important;left:0;right:0;bottom:var(--keyboard-offset, 0px)!important;z-index:20;padding:8px 12px max(8px,env(safe-area-inset-bottom))!important;background:#17212bf0}.chat-panel.mobile-open .composer{left:0;right:0}.composer-row{min-height:60px;border-radius:20px}.header-actions{gap:8px}.header-actions .icon-btn{width:46px;height:46px}}@media (max-width: 920px){.chat-panel.mobile-open{position:fixed!important;top:0!important;right:0!important;bottom:0!important;left:0!important;width:100vw!important;height:100dvh!important;min-height:100dvh!important;max-height:100dvh!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;padding:0!important}.chat-panel.mobile-open .chat-header{position:fixed!important;left:0!important;right:0!important;top:0!important;z-index:40!important;min-height:calc(64px + env(safe-area-inset-top))!important;padding:calc(env(safe-area-inset-top) + 10px) 12px 10px!important;background:#0e1621f5!important;-webkit-backdrop-filter:blur(16px)!important;backdrop-filter:blur(16px)!important;border-bottom:1px solid var(--line)!important}.chat-panel.mobile-open .message-list{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important;padding-top:calc(env(safe-area-inset-top) + 86px)!important;padding-bottom:calc(env(safe-area-inset-bottom) + 96px)!important;margin:0!important;scroll-padding-bottom:calc(env(safe-area-inset-bottom) + 112px)!important}.chat-panel.mobile-open .composer{position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:41!important;margin:0!important;padding:8px 10px calc(env(safe-area-inset-bottom) + 8px)!important;background:#17212bf5!important;-webkit-backdrop-filter:blur(14px)!important;backdrop-filter:blur(14px)!important;border-top:1px solid var(--line)!important}.chat-panel.mobile-open .composer-row{min-height:56px!important}.chat-panel.mobile-open .header-actions{gap:8px!important;flex-wrap:nowrap!important}.chat-panel.mobile-open .header-actions .call-audio-btn,.chat-panel.mobile-open .header-actions .call-video-btn,.chat-panel.mobile-open .header-actions .profile-btn{display:inline-flex!important}}@media (max-width: 920px){.chat-panel.mobile-open{position:fixed!important;top:0!important;right:0!important;bottom:0!important;left:0!important;width:100vw!important;height:var(--app-height, 100vh)!important;min-height:var(--app-height, 100vh)!important;max-height:var(--app-height, 100vh)!important;overflow:hidden!important;padding-bottom:0!important}.chat-panel.mobile-open .chat-header{position:fixed!important;top:0!important;left:0!important;right:0!important;z-index:25!important;min-height:calc(72px + env(safe-area-inset-top))!important;padding-top:calc(env(safe-area-inset-top) + 10px)!important;padding-bottom:10px!important}.chat-panel.mobile-open .message-list{padding-top:calc(82px + env(safe-area-inset-top))!important;padding-bottom:calc(92px + var(--composer-bottom, 0px))!important;scroll-padding-bottom:calc(92px + var(--composer-bottom, 0px))!important;min-height:0!important}.chat-panel.mobile-open .composer{position:fixed!important;left:0!important;right:0!important;bottom:var(--composer-bottom, 0px)!important;z-index:30!important;margin:0!important;padding:8px 10px max(6px,env(safe-area-inset-bottom))!important;background:#0e1621f5!important;border-top:1px solid var(--line)!important;transform:none!important}.chat-panel.mobile-open .composer-row{min-height:56px!important}.chat-panel.mobile-open .scroll-to-bottom-btn{bottom:calc(96px + var(--composer-bottom, 0px))!important}}:root{--tg-bottom-gap: 6px;--tg-composer-height: 64px;--tg-composer-side: 10px}.chat-panel,.chat-panel.mobile-open,html,body,#root{background-color:#0e1621!important}.chat-panel .composer,.chat-panel footer.composer{background:transparent!important;background-image:none!important;border:0!important;border-top:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}.chat-panel .composer:before,.chat-panel .composer:after,.chat-panel footer.composer:before,.chat-panel footer.composer:after{content:none!important;display:none!important}@media (max-width: 920px){.chat-panel.mobile-open{overflow:hidden!important}.chat-panel.mobile-open .chat-header{position:fixed!important;left:0!important;right:0!important;top:0!important;z-index:40!important;min-height:calc(64px + env(safe-area-inset-top))!important;padding:calc(env(safe-area-inset-top) + 10px) 12px 10px!important;background:#0e1621f5!important;border-bottom:1px solid var(--line)!important;backdrop-filter:blur(16px)!important;-webkit-backdrop-filter:blur(16px)!important}.chat-panel.mobile-open .message-list{padding-top:calc(env(safe-area-inset-top) + 86px)!important;padding-bottom:calc(var(--tg-composer-height) + env(safe-area-inset-bottom) + 20px)!important;scroll-padding-bottom:calc(var(--tg-composer-height) + env(safe-area-inset-bottom) + 20px)!important;background:transparent!important}.chat-panel.mobile-open .composer,.chat-panel.mobile-open footer.composer{position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:120!important;background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;padding:0!important;margin:0!important;min-height:0!important;overflow:visible!important;pointer-events:none!important}.chat-panel.mobile-open .composer-reply{position:fixed!important;left:var(--tg-composer-side)!important;right:var(--tg-composer-side)!important;bottom:calc(var(--tg-composer-height) + env(safe-area-inset-bottom) + 10px)!important;z-index:121!important;margin:0!important;background:#17212bf5!important;border:1px solid rgba(255,255,255,.05)!important;border-radius:16px!important;box-shadow:0 8px 18px #0000002e!important;pointer-events:auto!important}.chat-panel.mobile-open .composer-row{position:fixed!important;left:var(--tg-composer-side)!important;right:var(--tg-composer-side)!important;bottom:max(var(--tg-bottom-gap),env(safe-area-inset-bottom))!important;z-index:122!important;margin:0!important;min-height:var(--tg-composer-height)!important;padding:8px!important;background:#17212b!important;border:1px solid rgba(255,255,255,.03)!important;border-radius:24px!important;box-shadow:0 10px 24px #00000038!important;pointer-events:auto!important}.chat-panel.mobile-open .composer-row input{padding:12px 6px!important}.chat-panel.mobile-open .scroll-to-bottom-btn{bottom:calc(var(--tg-composer-height) + env(safe-area-inset-bottom) + 26px)!important;z-index:90!important}}:root{--safari-zone-gap: max(10px, env(safe-area-inset-bottom));--tg-composer-height: 64px;--tg-composer-side: 10px}@media (max-width: 920px){.chat-panel.mobile-open{overflow:hidden!important;padding-bottom:0!important}.chat-panel.mobile-open .composer,.chat-panel.mobile-open footer.composer{position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:120!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important;pointer-events:none!important}.chat-panel.mobile-open .composer:before,.chat-panel.mobile-open .composer:after,.chat-panel.mobile-open footer.composer:before,.chat-panel.mobile-open footer.composer:after{content:none!important;display:none!important}.chat-panel.mobile-open .composer-row{position:fixed!important;left:var(--tg-composer-side)!important;right:var(--tg-composer-side)!important;bottom:var(--safari-zone-gap)!important;z-index:122!important;min-height:var(--tg-composer-height)!important;margin:0!important;padding:8px!important;background:#17212b!important;border:1px solid rgba(255,255,255,.03)!important;border-radius:24px!important;box-shadow:0 10px 24px #00000038!important;pointer-events:auto!important}.chat-panel.mobile-open .composer-reply{position:fixed!important;left:var(--tg-composer-side)!important;right:var(--tg-composer-side)!important;bottom:calc(var(--tg-composer-height) + var(--safari-zone-gap) + 10px)!important;z-index:121!important;margin:0!important;background:#17212bf5!important;border:1px solid rgba(255,255,255,.05)!important;border-radius:16px!important;box-shadow:0 8px 18px #0000002e!important;pointer-events:auto!important}.chat-panel.mobile-open .message-list{padding-bottom:calc(var(--tg-composer-height) + var(--safari-zone-gap) + 22px)!important;scroll-padding-bottom:calc(var(--tg-composer-height) + var(--safari-zone-gap) + 22px)!important}.chat-panel.mobile-open .scroll-to-bottom-btn{bottom:calc(var(--tg-composer-height) + var(--safari-zone-gap) + 28px)!important}}:root{--safari-zone-gap-full: env(safe-area-inset-bottom);--tg-composer-height-full: 64px;--tg-header-height-full: calc(64px + env(safe-area-inset-top)) ;--tg-composer-side-full: 10px}@media (max-width: 920px){html,body,#root,.app-shell{height:calc(100dvh - var(--safari-zone-gap-full))!important;min-height:calc(100dvh - var(--safari-zone-gap-full))!important;max-height:calc(100dvh - var(--safari-zone-gap-full))!important;overflow:hidden!important}.sidebar,.chat-panel,.chat-panel.mobile-open{height:calc(100dvh - var(--safari-zone-gap-full))!important;min-height:calc(100dvh - var(--safari-zone-gap-full))!important;max-height:calc(100dvh - var(--safari-zone-gap-full))!important}.chat-panel.mobile-open{position:fixed!important;inset:0 auto var(--safari-zone-gap-full) 0!important;width:100vw!important;background:#0e1621!important;overflow:hidden!important;padding:0!important}.chat-panel.mobile-open .chat-header{position:absolute!important;left:0!important;right:0!important;top:0!important;z-index:40!important;min-height:var(--tg-header-height-full)!important;padding:calc(env(safe-area-inset-top) + 10px) 12px 10px!important;background:#0e1621f5!important;border-bottom:1px solid var(--line)!important;backdrop-filter:blur(16px)!important;-webkit-backdrop-filter:blur(16px)!important}.chat-panel.mobile-open .message-list{position:absolute!important;left:0!important;right:0!important;top:calc(env(safe-area-inset-top) + 74px)!important;bottom:calc(var(--tg-composer-height-full) + 16px)!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important;padding:10px 10px 14px!important;scroll-padding-bottom:14px!important;margin:0!important;background:transparent!important}.chat-panel.mobile-open .composer,.chat-panel.mobile-open footer.composer{position:absolute!important;left:0!important;right:0!important;bottom:0!important;z-index:120!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important;pointer-events:none!important;min-height:0!important}.chat-panel.mobile-open .composer:before,.chat-panel.mobile-open .composer:after,.chat-panel.mobile-open footer.composer:before,.chat-panel.mobile-open footer.composer:after{content:none!important;display:none!important}.chat-panel.mobile-open .composer-row{position:absolute!important;left:var(--tg-composer-side-full)!important;right:var(--tg-composer-side-full)!important;bottom:10px!important;z-index:122!important;min-height:var(--tg-composer-height-full)!important;margin:0!important;padding:8px!important;background:#17212b!important;border:1px solid rgba(255,255,255,.03)!important;border-radius:24px!important;box-shadow:0 10px 24px #00000038!important;pointer-events:auto!important}.chat-panel.mobile-open .composer-reply{position:absolute!important;left:var(--tg-composer-side-full)!important;right:var(--tg-composer-side-full)!important;bottom:calc(var(--tg-composer-height-full) + 20px)!important;z-index:121!important;margin:0!important;background:#17212bf5!important;border:1px solid rgba(255,255,255,.05)!important;border-radius:16px!important;box-shadow:0 8px 18px #0000002e!important;pointer-events:auto!important}.chat-panel.mobile-open .scroll-to-bottom-btn{bottom:calc(var(--tg-composer-height-full) + 30px)!important;z-index:90!important}.chat-panel.mobile-open .pinned-banner{top:calc(env(safe-area-inset-top) + 74px)!important}}:root{--tg-front-bottom-gap: max(6px, env(safe-area-inset-bottom))}html,body,#root{background:#0e1621!important}@media (max-width: 920px){html,body,#root,.app-shell{height:100dvh!important;min-height:100dvh!important;max-height:100dvh!important;overflow:hidden!important;background:#0e1621!important}.app-shell{position:relative!important}.app-shell:after{content:""!important;position:fixed!important;left:0!important;right:0!important;bottom:0!important;height:calc(env(safe-area-inset-bottom) + 22px)!important;background:#0e1621!important;z-index:1!important;pointer-events:none!important;display:block!important}.sidebar,.chat-panel,.chat-panel.mobile-open,.right-panel,.sidebar-top,.chat-header,.message-list,.composer,footer.composer{position:relative;z-index:2}.sidebar,.chat-panel,.chat-panel.mobile-open{height:100dvh!important;min-height:100dvh!important;max-height:100dvh!important;background:#0e1621!important}.chat-panel.mobile-open{position:fixed!important;top:0!important;right:0!important;bottom:0!important;left:0!important;width:100vw!important;overflow:hidden!important;padding:0!important;background:transparent!important;z-index:20!important}.sidebar{background:#17212bf5!important}.sidebar-top{background:#17212be6!important}.chat-panel.mobile-open .chat-header{position:fixed!important;left:0!important;right:0!important;top:0!important;z-index:40!important;background:#0e1621f5!important}.chat-panel.mobile-open .message-list{position:absolute!important;left:0!important;right:0!important;top:calc(env(safe-area-inset-top) + 74px)!important;bottom:calc(88px + env(safe-area-inset-bottom))!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important;padding:10px!important;margin:0!important;background:transparent!important}.chat-panel.mobile-open .composer,.chat-panel.mobile-open footer.composer{position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:120!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important;pointer-events:none!important}.chat-panel.mobile-open .composer:before,.chat-panel.mobile-open .composer:after,.chat-panel.mobile-open footer.composer:before,.chat-panel.mobile-open footer.composer:after{content:none!important;display:none!important}.chat-panel.mobile-open .composer-row{position:fixed!important;left:10px!important;right:10px!important;bottom:max(6px,env(safe-area-inset-bottom))!important;z-index:130!important;min-height:64px!important;margin:0!important;padding:8px!important;background:#17212b!important;border:1px solid rgba(255,255,255,.03)!important;border-radius:24px!important;box-shadow:0 10px 24px #00000038!important;pointer-events:auto!important}.chat-panel.mobile-open .composer-reply{position:fixed!important;left:10px!important;right:10px!important;bottom:calc(74px + env(safe-area-inset-bottom))!important;z-index:131!important;margin:0!important;background:#17212bf5!important;border:1px solid rgba(255,255,255,.05)!important;border-radius:16px!important;box-shadow:0 8px 18px #0000002e!important;pointer-events:auto!important}.chat-panel.mobile-open .scroll-to-bottom-btn{bottom:calc(100px + env(safe-area-inset-bottom))!important;z-index:90!important}}@media (max-width: 920px){.chat-panel.mobile-open{background:#0e1621!important;isolation:isolate!important}.chat-panel.mobile-open:after{content:"";position:fixed;left:0;right:0;bottom:0;height:calc(env(safe-area-inset-bottom) + 30px);background:#0e1621;z-index:999;pointer-events:none}.chat-panel.mobile-open .message-list{background:#0e1621!important}}html,body,#root,.app-shell{height:100vh!important;min-height:100vh!important;max-height:100vh!important;overflow:hidden!important;background:#0e1621!important}*{padding-bottom:initial!important}@media (max-width: 920px){.chat-panel.mobile-open{position:fixed!important;top:0!important;right:0!important;bottom:0!important;left:0!important;height:100vh!important;background:#0e1621!important;overflow:hidden!important;z-index:10!important}.chat-panel.mobile-open .chat-header{position:absolute!important;top:0;left:0;right:0;height:64px;z-index:20}.chat-panel.mobile-open .message-list{position:absolute!important;top:64px;bottom:72px;left:0;right:0;overflow:auto!important;background:#0e1621!important}.chat-panel.mobile-open .composer,.chat-panel.mobile-open footer.composer{all:unset!important}.chat-panel.mobile-open .composer-row{position:absolute!important;left:10px;right:10px;bottom:8px;height:56px;z-index:30;background:#17212b!important;border-radius:24px!important;padding:8px}.chat-panel.mobile-open .composer-reply{position:absolute!important;left:10px;right:10px;bottom:70px;z-index:31}}@media (max-width: 920px){.chat-panel,.chat-panel.mobile-open{position:fixed!important;top:0!important;right:0!important;bottom:0!important;left:0!important;height:100vh!important;max-height:100vh!important;min-height:100vh!important;background:#0e1621!important;z-index:50!important;overflow:hidden!important}.chat-panel:after,.chat-panel:before,.chat-panel.mobile-open:after,.chat-panel.mobile-open:before{display:none!important;content:none!important}.chat-panel.mobile-open .message-list{top:64px!important;bottom:72px!important;height:auto!important;background:#0e1621!important}.chat-panel.mobile-open .composer,.chat-panel.mobile-open footer.composer{display:none!important}.chat-panel.mobile-open .composer-row{position:absolute!important;bottom:8px!important;left:10px!important;right:10px!important;z-index:100!important}.chat-panel.mobile-open .composer-reply{position:absolute!important;bottom:70px!important;left:10px!important;right:10px!important;z-index:101!important}}.app-shell.without-right-panel{grid-template-columns:clamp(260px,25vw,380px) minmax(0,1fr)}.app-shell.with-right-panel{grid-template-columns:clamp(260px,25vw,380px) minmax(0,1fr) clamp(280px,21vw,336px)}.right-panel{background:#121b23f5;border-left:1px solid var(--line);min-width:280px}.right-panel-head{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;padding:12px 12px 10px;background:#121b23fa;border-bottom:1px solid var(--line)}.right-panel-title{font-size:17px;font-weight:700}.chat-header-left,.chat-header-title,.chat-header-subtitle,.chat-title,.chat-preview,.brand-title,.brand-subtitle,.side-title,.side-item,.menu-item,.call-peer-name,.call-status-line,.profile-card h3,.profile-card p{min-width:0;overflow-wrap:anywhere}.chat-header-title,.chat-header-subtitle,.chat-title,.chat-preview,.brand-title,.brand-subtitle{overflow:hidden;text-overflow:ellipsis}.pinned-banner strong,.pinned-banner span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-card,.side-block,.call-card,.modal-card,.login-card,.message-context-menu{max-width:100%}.message-context-menu{width:min(280px,calc(100vw - 24px))}.call-card{max-height:calc(100vh - 32px);overflow:auto}.call-media-grid{min-height:min(360px,50vh)}@media (max-width: 1180px){.app-shell.without-right-panel{grid-template-columns:minmax(270px,34vw) 1fr}.app-shell.with-right-panel{grid-template-columns:minmax(270px,34vw) 1fr clamp(280px,30vw,336px)}}@media (max-width: 1080px){.right-panel-head{display:none}}@media (max-width: 920px){.chat-panel.mobile-open{background:#0e1621!important;isolation:isolate}.chat-panel.mobile-open .chat-header{background:#0e1621fa!important}.chat-panel.mobile-open .message-list{background:#0e1621!important}.mobile-panel-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:200;background:#070b108a;display:block}.right-panel-mobile{position:absolute;top:0!important;right:0!important;bottom:0!important;left:0!important;width:100%!important;height:100%!important;max-width:100%!important;background:#121b23fa!important;padding-bottom:12px}.mobile-panel-head{display:flex}.message-context-menu{position:fixed;z-index:260;max-height:calc(100vh - 24px);overflow:auto}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:250;padding:12px;align-items:center;justify-content:center;}.modal-card.delete-modal-card{width:min(100%,420px);max-height:calc(100vh - 24px);overflow:auto}.call-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:240;padding:12px;align-items:center;justify-content:center;background:#0c121cb8}.call-card{width:min(100%,460px);max-height:calc(100vh - 24px);overflow:auto;border-radius:24px}.call-peer-name{font-size:22px;line-height:1.1}.header-actions{flex-shrink:0}.profile-card,.side-block{overflow:hidden}}.chat-panel,.chat-panel.mobile-open,.message-list,.right-panel,.right-panel-mobile,.profile-card,.side-block,.side-tabs,.side-item,.mobile-panel-head,.modal-card,.call-card,.delete-modal-card{min-width:0}.right-panel{padding:0;background:#121b23f0;border-left:1px solid var(--line)}.right-panel-head{position:sticky;top:0;z-index:6;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 14px 12px;background:#121b23fa;border-bottom:1px solid var(--line)}.right-panel-title,.mobile-panel-title{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-card{margin:14px;padding:22px 18px 18px}.profile-card h3,.profile-card p{max-width:100%;overflow:hidden;text-overflow:ellipsis}.profile-stats{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.profile-stat{min-width:0;display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 10px;border-radius:16px;background:#ffffff0a;text-align:center}.profile-stat span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.side-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:8px;margin:0 14px 14px}.side-tab{min-width:0;min-height:44px;padding:8px 6px;display:flex;align-items:center;justify-content:center;gap:6px;text-align:center;white-space:nowrap;overflow:hidden}.side-tab span{min-width:0;overflow:hidden;text-overflow:ellipsis}.side-tab svg{flex:0 0 auto}.side-block{margin:0 14px 14px}.side-list{min-width:0}.side-item,.side-item.static{min-width:0;max-width:100%;overflow:hidden}.side-item strong,.side-item span,.side-item small{display:block;width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis}.side-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.composer{padding:10px 12px 12px;background:transparent;border-top:0}.composer-row{min-height:56px;gap:8px;padding:8px 10px;border-radius:24px;background:#17212b;border:1px solid rgba(255,255,255,.035);box-shadow:0 8px 22px #0000002e}.composer-row input{min-width:0;flex:1;padding:12px 6px;font-size:15px}.composer-row .icon-btn{width:38px;height:38px;flex:0 0 auto}.send-btn{width:44px;height:44px;flex:0 0 auto}.composer-reply{margin-bottom:8px;border-radius:16px;background:#17212bf0;border:1px solid rgba(255,255,255,.04)}.message-context-menu,.delete-modal-card,.call-card,.call-overlay{z-index:1000}.call-overlay{padding:16px}@media (max-width: 1080px){.mobile-panel-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;background:#070b1042;display:block}.right-panel-mobile{position:fixed;top:0;right:0;bottom:0;width:min(92vw,380px);max-width:380px;height:100vh;background:#121b23fb;border-left:1px solid var(--line);box-shadow:-12px 0 32px #00000047;overflow-y:auto;padding-top:calc(10px + env(safe-area-inset-top))}.mobile-panel-head{position:sticky;top:0;z-index:6;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px 12px;margin:0;background:#121b23fb;border-bottom:1px solid var(--line)}.profile-card,.side-tabs,.side-block{margin-left:12px;margin-right:12px}}@media (max-width: 760px){.chat-panel.mobile-open{background:#0e1621!important;overflow:hidden}.chat-panel.mobile-open .chat-header{position:sticky;top:0;z-index:30;background:#0e1621fa}.chat-panel.mobile-open .message-list{position:relative;z-index:1;padding-top:12px;padding-left:12px;padding-right:12px;padding-bottom:calc(84px + env(safe-area-inset-bottom));background:#0e1621}.chat-panel.mobile-open .composer{position:fixed;left:0;right:0;bottom:0;z-index:40;background:transparent;padding:8px 10px max(8px,env(safe-area-inset-bottom))}.chat-panel.mobile-open .composer-row{margin:0}.mobile-panel-overlay{background:#070b102e}.right-panel-mobile{width:min(94vw,360px)}.side-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.side-tab{min-height:46px}.message-context-menu{max-width:min(280px,calc(100vw - 24px))}.call-overlay{align-items:stretch;justify-content:stretch;padding:10px}.call-card{width:100%;max-width:none;min-height:auto;align-self:center}}@media (max-width: 920px){.chat-header .header-actions{gap:8px!important;justify-content:flex-end!important;align-items:center!important}.chat-header .header-actions .icon-btn,.chat-header .header-actions .call-audio-btn,.chat-header .header-actions .call-video-btn,.chat-header .header-actions .profile-btn{width:40px!important;height:40px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}.chat-header .header-actions .icon-btn svg,.chat-header .header-actions .call-audio-btn svg,.chat-header .header-actions .call-video-btn svg,.chat-header .header-actions .profile-btn svg{margin:0 auto!important;transform:translate(0)!important}}.login-card{width:min(100%,460px)}.login-card form{display:flex;flex-direction:column;gap:14px}.auth-switch{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 18px;padding:6px;border-radius:16px;background:#ffffff0a;border:1px solid rgba(255,255,255,.04)}.auth-switch-btn{min-height:42px;border:0;border-radius:12px;background:transparent;color:var(--muted);font-weight:700}.auth-switch-btn.active{background:var(--accent-strong);color:#fff}.login-card input{min-height:60px;padding:0 18px;display:flex;align-items:center;line-height:1.2}.primary-btn{min-height:56px;width:100%;display:inline-flex;align-items:center;justify-content:center;line-height:1;padding:0 18px}.primary-btn span{line-height:1}@media (max-width: 640px){.login-card{width:min(100%,100%);padding:24px}.login-card input{min-height:56px}.primary-btn{min-height:54px}}.emoji-picker{position:absolute;left:12px;bottom:72px;width:min(360px,calc(100vw - 24px));border:1px solid var(--line);border-radius:20px;background:#17212bf2;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 16px 40px #00000047;padding:10px;z-index:50}.emoji-picker-tabs{display:flex;gap:6px;overflow-x:auto;padding-bottom:8px;margin-bottom:8px;border-bottom:1px solid rgba(255,255,255,.06);scrollbar-width:none}.emoji-picker-tabs::-webkit-scrollbar{display:none}.emoji-tab{min-width:36px;height:36px;border:0;border-radius:12px;background:transparent;color:var(--text);display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}.emoji-tab.active{background:#3390ec2b}.emoji-picker-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;max-height:220px;overflow:auto}.emoji-picker-item{border:0;background:transparent;border-radius:12px;min-height:38px;font-size:22px;display:inline-flex;align-items:center;justify-content:center}.emoji-picker-item:hover{background:#ffffff0d}.emoji-picker-empty{grid-column:1 / -1;color:var(--muted);text-align:center;padding:16px 8px;font-size:13px}@media (max-width: 920px){.emoji-picker{position:fixed;left:10px;right:10px;width:auto;bottom:76px;max-width:none;z-index:10020}.emoji-picker-grid{grid-template-columns:repeat(8,minmax(0,1fr))}}.chat-panel .composer{overflow:visible!important}.chat-panel .emoji-picker,.chat-bounded-emoji-picker,.emoji-picker{left:12px!important;right:12px!important;width:min(360px,calc(100% - 24px))!important;max-width:calc(100% - 24px)!important;bottom:74px!important;z-index:500!important}.telegram-composer-row,.composer-row{background:#17212b!important;border:1px solid rgba(255,255,255,.03)!important;border-radius:22px!important;box-shadow:0 10px 24px #0000002e!important}.composer-row{min-height:56px!important;padding:8px!important;gap:8px!important}.composer-row .icon-btn,.composer-row .send-btn{width:40px!important;height:40px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:50%!important}.composer-row input{min-width:0!important;flex:1!important;line-height:1.2!important;padding:10px 4px!important;align-self:center!important}.mobile-panel-overlay{position:fixed!important;top:0!important;right:0!important;bottom:0!important;left:0!important;z-index:80!important;background:#070b1052!important;display:flex!important;justify-content:flex-end!important;align-items:stretch!important}.right-panel-mobile{position:relative!important;width:min(92vw,420px)!important;max-width:420px!important;height:100%!important;background:#121b23!important;border-left:1px solid var(--line)!important;box-shadow:-12px 0 30px #00000038!important;overflow-y:auto!important}.mobile-panel-head{position:sticky!important;top:0!important;z-index:5!important;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:10px 10px 12px!important;background:#121b23!important;border-bottom:1px solid var(--line)!important}.call-overlay,.modal-overlay{position:absolute!important;top:0!important;right:0!important;bottom:0!important;left:0!important;z-index:200!important}@media (max-width: 920px){.chat-panel.mobile-open .emoji-picker,.chat-panel.mobile-open .chat-bounded-emoji-picker{position:fixed!important;left:12px!important;right:12px!important;width:auto!important;max-width:none!important;bottom:84px!important;z-index:600!important}.chat-panel.mobile-open .header-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important}.chat-panel.mobile-open .header-actions .icon-btn,.chat-panel.mobile-open .header-actions .call-audio-btn,.chat-panel.mobile-open .header-actions .call-video-btn,.chat-panel.mobile-open .header-actions .profile-btn{width:40px!important;height:40px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}}.chat-panel,.chat-panel.mobile-open,.composer,.composer-row{position:relative}@media (min-width: 921px){.chat-panel .emoji-picker,.chat-panel .chat-bounded-emoji-picker,.composer .emoji-picker,.composer-row .emoji-picker{position:absolute!important;left:12px!important;right:auto!important;bottom:74px!important;width:min(360px,calc(100% - 24px))!important;max-width:calc(100% - 24px)!important;z-index:700!important}}@media (max-width: 920px){.mobile-panel-overlay{position:fixed!important;top:0!important;right:0!important;bottom:0!important;left:0!important;z-index:220!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:14px!important;background:#070b106b!important;backdrop-filter:blur(10px)!important;-webkit-backdrop-filter:blur(10px)!important}.mobile-panel-overlay>.right-panel-mobile,.mobile-panel-overlay .right-panel-mobile{position:relative!important;inset:auto!important;margin:0 auto!important;width:min(100%,420px)!important;min-width:0!important;max-width:420px!important;height:auto!important;max-height:min(82vh,760px)!important;border-radius:22px!important;background:#121b23!important;border:1px solid rgba(255,255,255,.06)!important;box-shadow:0 24px 60px #00000057!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}.mobile-panel-head{position:sticky!important;top:0!important;z-index:5!important;flex:0 0 auto!important;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:14px 14px 12px!important;background:#121b23!important;border-bottom:1px solid var(--line)!important}.mobile-panel-title{display:flex!important;align-items:center!important;line-height:1.05!important;font-size:20px!important;font-weight:700!important}.right-panel-mobile{overflow-y:auto!important;-webkit-overflow-scrolling:touch!important}.right-panel-mobile .profile-card{margin:14px!important}.right-panel-mobile .side-tabs,.right-panel-mobile .side-block{margin:0 14px 14px!important}}.call-overlay{position:fixed!important;top:0!important;right:0!important;bottom:0!important;left:0!important;z-index:140!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:20px!important;background:radial-gradient(circle at 50% 0%,rgba(86,142,214,.1),transparent 38%),linear-gradient(180deg,#101820,#0b1218)!important}.call-card{width:min(860px,calc(100vw - 40px))!important;min-height:640px!important;max-height:calc(100vh - 40px)!important;border-radius:22px!important;padding:22px 24px 20px!important;background:linear-gradient(180deg,#0b1521fa,#0a121cfa),radial-gradient(circle at center,rgba(255,255,255,.03) 1px,transparent 1px)!important;background-size:auto,24px 24px!important;border:1px solid rgba(255,255,255,.06)!important;box-shadow:0 18px 50px #00000059!important;display:flex!important;flex-direction:column!important;gap:16px!important;overflow:hidden!important}.call-card-top{display:flex!important;justify-content:center!important;align-items:center!important;text-align:center!important;padding-top:8px!important}.call-card-top>div{width:100%!important}.call-title{font-size:13px!important;color:#ffffffb8!important;margin-bottom:6px!important}.call-peer-name{font-size:40px!important;line-height:1.02!important;font-weight:700!important;margin:0!important}.call-status-line{font-size:15px!important;color:#ffffffb8!important;margin-top:6px!important}.call-media-grid{position:relative!important;flex:1 1 auto!important;min-height:420px!important;border-radius:20px!important;overflow:hidden!important;background:linear-gradient(180deg,#0b1521f0,#0a121cfa),radial-gradient(circle at center,rgba(255,255,255,.03) 1px,transparent 1px)!important;background-size:auto,24px 24px!important;border:1px solid rgba(255,255,255,.05)!important;display:flex!important;align-items:center!important;justify-content:center!important}.call-media-grid.audio-only{flex-direction:column!important;gap:18px!important}.call-video.remote{width:100%!important;height:100%!important;object-fit:cover!important;background:#111a23!important}.call-video.local{position:absolute!important;right:18px!important;bottom:18px!important;width:170px!important;height:120px!important;border-radius:16px!important;border:1px solid rgba(255,255,255,.16)!important;box-shadow:0 12px 30px #00000047!important;background:#111a23!important}.call-audio-avatar{width:124px!important;height:124px!important;border-radius:999px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:48px!important;font-weight:700!important;color:#fff!important;background:linear-gradient(135deg,#66b5ff,#2e6cab)!important;box-shadow:0 10px 28px #154e8f5c!important;border:1px solid rgba(255,255,255,.12)!important}.call-actions-row{display:flex!important;justify-content:center!important;align-items:flex-end!important;gap:22px!important;flex-wrap:wrap!important;padding-top:6px!important}.call-action-btn{width:54px!important;min-width:54px!important;height:54px!important;border-radius:999px!important;border:0!important;background:#ffffff1a!important;color:#fff!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;box-shadow:none!important}.call-action-btn svg{width:20px!important;height:20px!important}.call-action-btn.success{background:#57c66c!important}.call-action-btn.danger{background:#e04b52!important}.call-action-btn.off{background:#ffffff14!important;color:#ffffffb8!important}.call-action-btn.wide{min-width:150px!important;width:auto!important;padding:0 16px!important;gap:8px!important;font-weight:600!important}@media (min-width: 901px){.call-card{width:min(760px,calc(100vw - 40px))!important;min-height:520px!important;gap:14px!important}.call-media-grid.audio-only{min-height:300px!important}.call-actions-row{gap:18px!important}}@media (max-width: 900px){.call-overlay{padding:0!important;background:linear-gradient(180deg,#0b1521fc,#0a121cfc),radial-gradient(circle at center,rgba(255,255,255,.025) 1px,transparent 1px)!important;background-size:auto,22px 22px!important}.call-card{width:100%!important;min-height:100vh!important;max-height:none!important;border-radius:0!important;padding:max(16px,calc(env(safe-area-inset-top) + 8px)) 18px max(16px,calc(env(safe-area-inset-bottom) + 8px))!important;gap:18px!important;justify-content:space-between!important;background:transparent!important;border:0!important;box-shadow:none!important}.call-card-top{padding-top:10px!important}.call-title{font-size:14px!important;margin-bottom:8px!important}.call-peer-name{font-size:28px!important}.call-status-line{font-size:16px!important}.call-media-grid{min-height:52vh!important;background:transparent!important;border:0!important}.call-media-grid.audio-only{justify-content:flex-start!important;padding-top:22px!important;gap:18px!important}.call-audio-avatar{width:132px!important;height:132px!important;font-size:50px!important}.call-video.local{right:14px!important;bottom:14px!important;width:96px!important;height:128px!important;border-radius:12px!important}.call-actions-row{gap:16px 18px!important;max-width:360px!important;margin:0 auto!important}.call-action-btn{width:62px!important;min-width:62px!important;height:62px!important}.call-action-btn.wide{min-width:162px!important;height:56px!important;border-radius:999px!important}}.call-overlay{position:fixed!important;top:0!important;right:0!important;bottom:0!important;left:0!important;z-index:1000!important;padding:20px!important;background:#0b0f1aad!important;-webkit-backdrop-filter:blur(18px)!important;backdrop-filter:blur(18px)!important;display:flex!important;align-items:center!important;justify-content:center!important}.call-overlay-audio{background:radial-gradient(circle at 18% 18%,rgba(0,109,255,.28),transparent 34%),radial-gradient(circle at 82% 82%,rgba(10,61,142,.22),transparent 32%),linear-gradient(180deg,#081521,#0b1c2d 54%,#09131f)!important}.call-overlay-video{background:radial-gradient(circle at 24% 16%,rgba(44,116,62,.3),transparent 30%),radial-gradient(circle at 78% 84%,rgba(22,89,49,.26),transparent 34%),linear-gradient(180deg,#112218,#16311f,#0d1a12)!important}.call-screen{position:relative;width:min(100%,430px);height:min(92vh,874px);border-radius:34px;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 24px 80px #00000073;color:#fff;isolation:isolate}.call-screen-audio{background:linear-gradient(180deg,#07182dfa,#0a2039f5)}.call-screen-video{background:linear-gradient(180deg,#112515f0,#122819eb)}.call-screen-noise,.call-screen-glow{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.call-screen-noise{opacity:.16;background-image:radial-gradient(rgba(255,255,255,.22) .65px,transparent .65px);background-size:16px 16px;mix-blend-mode:soft-light}.call-screen-glow-1{background:radial-gradient(circle at 50% 34%,rgba(38,149,255,.18),transparent 36%)}.call-screen-video .call-screen-glow-1{background:radial-gradient(circle at 50% 35%,rgba(95,220,131,.17),transparent 38%)}.call-screen-glow-2{background:radial-gradient(circle at 50% 78%,rgba(255,255,255,.08),transparent 26%)}.call-screen-topbar,.call-screen-center,.call-bottom-panel,.call-video-stage,.call-local-preview-wrap{position:relative;z-index:2}.call-screen-topbar{display:flex;align-items:flex-start;justify-content:space-between;padding:18px 18px 0;gap:12px}.call-desktop-window-controls{display:none}.call-top-center{flex:1;text-align:center;padding-top:0}.call-top-meta-line{display:none;align-items:center;justify-content:center;gap:6px;font-size:11px;line-height:1;letter-spacing:.02em;color:#ffffffb8;margin-bottom:6px}.call-top-title{font-size:18px;line-height:1.2;font-weight:700}.call-top-subtitle{margin-top:6px;font-size:13px;line-height:1.3;color:#ffffffbf}.call-top-icon{width:34px;height:34px;border-radius:50%;border:none;background:#ffffff1f;color:#fff;display:inline-flex;align-items:center;justify-content:center}.call-top-back{background:transparent}.call-top-icon-desktop-only{display:none}.call-top-actions-right{display:flex;gap:8px;min-width:76px;justify-content:flex-end}.call-screen-center{flex:1;display:flex;align-items:center;justify-content:center;padding:18px 22px 8px}.call-avatar-shell{position:relative;width:162px;height:162px;border-radius:50%;display:flex;align-items:center;justify-content:center}.call-avatar-photo,.call-avatar-fallback{position:relative;z-index:3;width:128px;height:128px;border-radius:50%;object-fit:cover;background:linear-gradient(135deg,#ffffff2e,#ffffff14);display:flex;align-items:center;justify-content:center;font-size:46px;font-weight:700;box-shadow:0 12px 34px #0000004d}.call-avatar-ring{position:absolute;top:12px;right:12px;bottom:12px;left:12px;border-radius:50%;border:2px solid rgba(71,168,255,.3);opacity:0}.call-avatar-shell.video-tone .call-avatar-ring{border-color:#5cdf845c}.call-avatar-shell.is-ringing .call-avatar-ring-1{animation:callPulseSoft 2.2s ease-out infinite}.call-avatar-shell.is-ringing .call-avatar-ring-2{animation:callPulseSoft 2.2s ease-out .8s infinite}.call-avatar-shell.is-speaking .call-avatar-ring-1{animation:callPulseSide 1.8s ease-out infinite}.call-avatar-shell.is-speaking .call-avatar-ring-2{animation:callPulseSide 1.8s ease-out .45s infinite}@keyframes callPulseSoft{0%{transform:scale(.96);opacity:.65}to{transform:scale(1.24);opacity:0}}@keyframes callPulseSide{0%{transform:scale(.94);opacity:.62}70%{transform:scale(1.18);opacity:.16}to{transform:scale(1.24);opacity:0}}.call-bottom-panel{padding:0 18px 20px}.call-secondary-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 28px;margin-bottom:18px}.call-secondary-actions.active-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 18px;width:min(352px,100%);margin:0 auto 18px}.call-mini-action{border:none;background:none;color:#fff;display:flex;flex-direction:column;align-items:center;gap:8px;font-size:11px;line-height:1.2;opacity:.98}.call-mini-action svg,.call-mini-action:before{width:44px;height:44px;padding:12px;border-radius:50%;background:#ffffff24;box-sizing:border-box}.call-answer-row,.call-end-state-row{display:flex;justify-content:center;gap:18px}.call-answer-btn{min-width:114px;border:none;border-radius:999px;padding:14px 18px;display:flex;align-items:center;justify-content:center;gap:10px;color:#fff;font-weight:600;box-shadow:0 10px 30px #00000038}.call-answer-btn.accept{background:#63cf7a}.call-answer-btn.decline{background:#e04f53}.call-answer-btn.single{position:relative;min-width:auto;width:64px;height:64px;border-radius:50%;padding:0;flex-direction:column;gap:0}.call-answer-btn.single span{position:absolute;transform:translateY(52px);font-size:12px;white-space:nowrap}.call-video-stage{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;background:#0f1218}.call-video-main,.call-video-fallback,.call-video-fallback-image{width:100%;height:100%}.call-video-main,.call-local-preview{object-fit:cover;background:#0d1117}.call-video-fallback{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#12151c4d,#06080c94)}.call-video-fallback-image{object-fit:cover;filter:blur(1px) brightness(.84)}.call-video-fallback-avatar{width:164px;height:164px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:56px;font-weight:700;background:#ffffff24;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.call-local-preview-wrap{position:fixed;touch-action:none;cursor:grab;left:18px;top:118px;width:86px;height:114px;border-radius:16px;overflow:hidden;background:#ffffff1f;border:1px solid rgba(255,255,255,.18);box-shadow:0 10px 28px #00000047}.call-local-preview-wrap:active{cursor:grabbing}.call-local-preview-wrap.is-live{width:94px;height:126px}.call-local-preview,.call-local-preview-fallback{width:100%;height:100%}.call-local-preview-fallback{display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;background:#ffffff24}@media (min-width: 980px){.call-screen{width:min(100%,1180px);height:min(88vh,720px);border-radius:20px}.call-screen-audio,.call-screen-video{background:linear-gradient(180deg,#06101eeb,#0b1726e6)}.call-screen-video{background:linear-gradient(180deg,#0e1c139e,#0a120d7a)}.call-screen-noise{opacity:.12;background-size:22px 22px}.call-screen-topbar{padding:14px 18px 0;align-items:flex-start}.call-desktop-window-controls{display:flex;gap:7px;align-items:center;min-width:74px;padding-top:7px}.call-desktop-dot{width:8px;height:8px;border-radius:50%;display:block}.call-desktop-dot.red{background:#ff5f57}.call-desktop-dot.yellow{background:#febc2e}.call-desktop-dot.green{background:#28c840}.call-top-back{display:none}.call-top-center{text-align:left;padding-top:2px}.call-top-meta-line{display:flex;justify-content:flex-start;margin-bottom:5px}.call-top-title{font-size:14px;font-weight:600}.call-top-subtitle{font-size:11px;margin-top:3px}.call-top-actions-right{min-width:132px;gap:8px;padding-top:2px}.call-top-icon{width:30px;height:30px;background:#ffffff1a}.call-top-icon-desktop-only{display:inline-flex}.call-screen-center{align-items:flex-start;padding-top:124px}.call-avatar-shell{width:146px;height:146px}.call-avatar-photo,.call-avatar-fallback{width:110px;height:110px}.call-avatar-ring{top:8px;right:8px;bottom:8px;left:8px}.call-avatar-shell.is-speaking .call-avatar-ring-1,.call-avatar-shell.is-speaking .call-avatar-ring-2{border-width:3px}.call-bottom-panel{margin-top:auto;padding:0 22px 18px}.call-secondary-actions{width:min(460px,100%);margin:0 auto 16px}.call-secondary-actions.active-actions{width:min(620px,100%);grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.call-mini-action{font-size:11px}.call-mini-action svg,.call-mini-action:before{width:40px;height:40px;padding:10px;background:#ffffff29}.call-answer-row,.call-end-state-row{width:min(620px,100%);margin:0 auto}.call-answer-btn{min-width:148px;padding:12px 18px;font-size:13px}.call-answer-btn.single{width:54px;height:54px}.call-answer-btn.single span{transform:translateY(48px);font-size:11px}.call-local-preview-wrap{right:26px;bottom:88px;width:112px;height:144px;border-radius:14px}.call-local-preview-wrap.is-live{width:120px;height:154px}.call-screen-video .call-screen-topbar{background:linear-gradient(180deg,rgba(9,11,16,.46),transparent);padding-bottom:18px}.call-screen-video .call-screen-center{padding-top:0;justify-content:center;align-items:flex-start}.call-screen-video.call-screen-live .call-screen-center{display:none}.call-screen-video.call-screen-live .call-bottom-panel{padding-bottom:14px}}@media (max-width: 700px){.call-overlay{padding:0!important}.call-screen{width:100%;height:100%;min-height:100dvh;border-radius:0}.call-screen-topbar{padding-top:18px}.call-top-title{font-size:17px}.call-top-subtitle{font-size:12px}.call-secondary-actions.active-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.call-mini-action{font-size:11px}.call-answer-btn{min-width:124px;padding:14px 16px}}.call-overlay-floating{align-items:flex-end!important;justify-content:flex-end!important;padding:12px!important;pointer-events:none;background:transparent!important}.call-overlay-floating .call-screen{pointer-events:auto}.call-overlay-floating .call-screen{width:118px;height:168px;border-radius:18px;box-shadow:0 18px 44px #00000057}.call-screen-pip{max-width:420px}.call-avatar-ring-3{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;border:1px solid rgba(255,255,255,.14);opacity:.2}.call-avatar-shell.is-ringing .call-avatar-ring-3{animation:callPulseSoft 2.2s ease-out 1.2s infinite}.call-avatar-shell.is-speaking .call-avatar-ring-3{animation:callPulseSide 1.8s ease-out .9s infinite}.call-answer-btn.neutral{background:#856cffeb}.incoming-video-row .call-answer-btn{min-width:120px}.call-flyout{position:absolute;top:72px;right:18px;z-index:4;width:min(280px,calc(100% - 36px));border-radius:18px;background:#0c111adb;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.1);box-shadow:0 20px 48px #00000052;padding:12px;color:#fff}.call-flyout-title{font-size:13px;font-weight:700;margin:2px 4px 10px}.call-flyout-item{width:100%;border:none;background:#ffffff0f;color:#fff;border-radius:12px;padding:10px 12px;display:flex;align-items:center;gap:10px;margin-top:8px}.call-flyout-hint{margin-top:10px;font-size:12px;line-height:1.35;color:#fff9}.call-device-row{display:flex;flex-direction:column;gap:8px;margin-top:8px}.call-device-label{display:flex;align-items:center;gap:8px;font-size:12px;color:#ffffffb8;padding:0 4px}.call-device-select{width:100%;border:none;outline:none;background:#ffffff0f;color:#fff;border-radius:12px;padding:11px 12px;font:inherit}.call-device-select:disabled{opacity:.55}.call-device-select option{color:#111}.call-dtmf-display{min-height:40px;border-radius:14px;background:#ffffff0f;display:flex;align-items:center;justify-content:center;font-size:18px;letter-spacing:.18em;margin:6px 0 12px}.call-dtmf-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.call-dtmf-key{border:none;border-radius:16px;background:#ffffff14;color:#fff;min-height:52px;font-size:22px;font-weight:700}.call-stats-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.call-stats-grid div{background:#ffffff0f;border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:4px}.call-stats-grid span{font-size:11px;color:#ffffff9e}.call-stats-grid strong{font-size:14px;font-weight:700}.call-local-preview-toolbar{position:absolute;top:6px;right:6px;z-index:2}.call-top-icon.small{width:26px;height:26px;background:#06080c73}.is-blurred-preview{filter:blur(.7px) saturate(1.08)}.call-toast{position:absolute;left:50%;bottom:148px;transform:translate(-50%);z-index:5;background:#0c1018d1;border:1px solid rgba(255,255,255,.12);color:#fff;border-radius:999px;padding:10px 14px;font-size:12px;line-height:1.2;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.call-desktop-shortcuts{display:none}.audio-active-actions{grid-template-columns:repeat(5,minmax(0,1fr))!important}.video-active-actions{grid-template-columns:repeat(7,minmax(0,1fr))!important}@media (min-width: 980px){.call-screen-topbar{padding:12px 16px 0}.call-top-title{font-size:13px;font-weight:700}.call-top-subtitle{font-size:11px;color:#ffffffb3}.call-screen-center{padding-top:108px}.call-local-preview-wrap{width:138px;height:182px;right:22px;bottom:96px;border-radius:18px}.call-local-preview-wrap.is-live{width:146px;height:194px}.call-bottom-panel{padding:0 18px 18px}.call-secondary-actions.active-actions{width:min(780px,100%);gap:12px}.call-mini-action{gap:7px}.call-desktop-shortcuts{display:block;position:absolute;left:18px;bottom:14px;z-index:3;font-size:10px;color:#ffffff73;letter-spacing:.02em}}@media (max-width: 979px){.call-flyout{top:auto;bottom:132px;left:12px;right:12px;width:auto}.audio-active-actions,.video-active-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important}.call-answer-row.incoming-video-row{gap:10px}.call-answer-row.incoming-video-row .call-answer-btn{min-width:0;flex:1;padding-left:12px;padding-right:12px}.call-local-preview-wrap,.call-local-preview-wrap.is-live{width:98px;height:132px;right:16px;bottom:132px}.call-toast{bottom:168px;max-width:calc(100% - 32px);text-align:center}}:root{--ui-button-lh:1.22;--ui-chip-lh:1.18}button,.icon-btn,.send-btn,.profile-btn,.profile-stat,.filter-chip,.side-tab,.header-pill,.context-reaction-btn,.message-context-actions button,.emoji-tab,.emoji-picker-item,.chat-row,.sidebar-account-card,.modal-card button{line-height:var(--ui-button-lh)!important}button>span,.icon-btn>span,.send-btn>span,.profile-btn>span,.profile-stat>span,.filter-chip>span,.side-tab>span,.header-pill>span,.message-context-actions button>span{display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:var(--ui-button-lh)!important;transform:none!important}button svg,.icon-btn svg,.send-btn svg,.profile-btn svg,.profile-stat svg,.filter-chip svg,.side-tab svg,.header-pill svg,.context-reaction-btn svg,.message-context-actions button svg,.chat-header .header-actions .icon-btn svg{display:block!important;flex:0 0 auto!important;margin:0!important;transform:none!important;vertical-align:middle!important}.side-tabs{align-items:stretch!important}.side-tab{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:42px!important;padding:0 16px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.right-panel .side-tabs,.right-panel-mobile .side-tabs{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;gap:8px!important;padding:8px!important}.right-panel .side-tab,.right-panel-mobile .side-tab{flex:0 0 auto!important;min-width:max-content!important;max-width:none!important}.right-panel .side-tab span,.right-panel-mobile .side-tab span{transform:none!important;line-height:var(--ui-button-lh)!important}.sidebar-account-card,.sidebar-account-card *,.chat-row,.chat-row *,.search-box,.search-box *,.chat-header,.chat-header *,.modal-card,.modal-card *,.profile-card,.profile-card *,.side-block,.side-block *{transform:none}.chat-title,.chat-row-head .chat-title,.chat-header-title,.settings-title{line-height:1.2!important}.chat-preview,.chat-time,.settings-sub,.chat-header-subtitle,.bubble-meta,.bubble-sender,.field-label{line-height:1.25!important}.bubble{padding:8px 11px 7px!important}.bubble-text{font-size:15px!important;line-height:1.42!important}.reply-preview,.bubble-file,.composer-reply{line-height:1.25!important}.message-context-menu{width:min(320px,calc(100vw - 24px))!important;max-width:min(320px,calc(100vw - 24px))!important;padding:10px!important;border-radius:20px!important}.message-context-reactions{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:8px!important;padding:2px 0 10px!important;margin-bottom:2px!important}.context-reaction-btn{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;font-size:20px!important;line-height:1!important;display:grid!important;place-items:center!important}.emoji-picker{width:min(380px,calc(100vw - 24px))!important;padding:12px!important}.emoji-picker-grid{grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:8px!important}.emoji-picker-item{min-height:42px!important;font-size:24px!important;line-height:1!important}.profile-stats{gap:12px!important}.profile-stat{display:flex!important;align-items:center!important;justify-content:center!important;min-height:46px!important;padding:0 16px!important;overflow:hidden!important;text-overflow:ellipsis!important}.call-mini-action,.call-mini-action span,.call-answer-btn,.call-answer-btn span,.call-action-btn,.call-action-label{line-height:1.22!important;transform:none!important}.call-answer-btn.single{width:64px!important;height:64px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;position:relative!important;overflow:visible!important}.call-answer-btn.single span{position:absolute!important;left:50%!important;bottom:-24px!important;transform:translate(-50%)!important;font-size:12px!important;white-space:nowrap!important}.call-actions-row{align-items:start!important}.call-action-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important}.call-mini-action{gap:10px!important;justify-content:flex-start!important}.call-mini-action svg,.call-mini-action:before{flex:0 0 auto!important}@media (max-width: 900px){.call-overlay{padding:0!important}.call-card{min-height:100dvh!important;min-height:100svh!important;padding-top:calc(env(safe-area-inset-top) + 20px)!important;padding-bottom:calc(env(safe-area-inset-bottom) + 20px)!important;box-sizing:border-box!important}.call-card-top{padding-top:4px!important}.call-top-title,.call-peer-name{line-height:1.14!important}.call-top-subtitle,.call-status-line,.call-title{line-height:1.25!important}.call-screen-topbar{padding-top:calc(env(safe-area-inset-top) + 10px)!important;box-sizing:border-box!important}.call-video-stage,.call-screen-video{padding-top:0!important}.call-actions-row{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px 22px!important;max-width:340px!important;width:100%!important}.call-mini-action{width:100%!important}.call-answer-row,.call-end-state-row{padding-top:8px!important}}:root{--ios-top-offset:max(env(safe-area-inset-top), var(--safe-top-viewport, 0px))}.sidebar-account-card,.chip-btn,.filter-chip,.side-tab,.profile-stat,.chat-row,.message-context-actions button,.context-reaction-btn,.emoji-picker-item,.chat-header .header-actions .icon-btn,.chat-header .header-actions .call-audio-btn,.chat-header .header-actions .call-video-btn,.chat-header .header-actions .profile-btn,.composer-row .icon-btn,.send-btn{transform:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;vertical-align:middle!important}.chip-btn,.filter-chip,.side-tab,.profile-stat,.message-context-actions button,.chat-row,.sidebar-account-card,.composer-row input,.bubble,.bubble-text,.bubble-sender,.bubble-meta,.chat-title,.chat-preview,.chat-time,.brand-title,.brand-subtitle{line-height:normal!important}.sidebar-account-card{min-height:64px!important}.chip-btn{min-height:44px!important;gap:8px!important;padding:0 16px!important}.filter-chip{min-height:42px!important;padding:0 20px!important}.side-tab{min-height:46px!important;padding:0 18px!important}.profile-stat{min-height:50px!important;padding:0 14px!important}.chat-row{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:center!important}.chat-row-head{align-items:flex-start!important}.chat-title{font-size:15px!important;line-height:1.22!important}.chat-preview{font-size:14px!important;line-height:1.28!important}.chat-time{font-size:13px!important;line-height:1.2!important}.brand-title{font-size:15px!important;line-height:1.2!important}.brand-subtitle{font-size:13px!important;line-height:1.24!important}.bubble{padding:10px 12px 8px!important;min-width:0!important}.bubble-text{font-size:16px!important;line-height:1.36!important}.bubble-sender,.bubble-meta,.bubble-footer,.reply-preview,.bubble-file{line-height:1.24!important}.message-row,.message-row *{transform:none!important}.message-context-menu{width:min(356px,calc(100vw - 20px))!important;max-width:min(356px,calc(100vw - 20px))!important;padding:12px!important}.message-context-reactions{grid-template-columns:repeat(7,40px)!important;justify-content:space-between!important;gap:8px!important}.context-reaction-btn{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;font-size:21px!important;line-height:1!important;border-radius:14px!important}.message-context-actions button{min-height:48px!important;justify-content:flex-start!important;gap:12px!important;font-size:15px!important}.emoji-picker{width:min(392px,calc(100vw - 20px))!important}.emoji-picker-item{min-height:46px!important;font-size:26px!important}.chat-header .header-actions{align-items:center!important}.chat-header .header-actions .icon-btn,.chat-header .header-actions .call-audio-btn,.chat-header .header-actions .call-video-btn,.chat-header .header-actions .profile-btn{width:42px!important;height:42px!important}@media (max-width: 900px){html,body,#root,.app-shell{height:var(--app-height, 100svh)!important;min-height:var(--app-height, 100svh)!important;max-height:var(--app-height, 100svh)!important;overflow:hidden!important}.sidebar,.chat-panel,.chat-panel.mobile-open,.right-panel-mobile{height:var(--app-height, 100svh)!important;min-height:var(--app-height, 100svh)!important;max-height:var(--app-height, 100svh)!important}.chat-panel.mobile-open .chat-header{top:0!important;min-height:calc(56px + var(--ios-top-offset))!important;padding:calc(var(--ios-top-offset) + 8px) 12px 8px!important;box-sizing:border-box!important}.chat-panel.mobile-open .message-list{padding-top:10px!important;padding-bottom:calc(98px + env(safe-area-inset-bottom) + var(--keyboard-offset, 0px))!important;scroll-padding-bottom:calc(110px + env(safe-area-inset-bottom) + var(--keyboard-offset, 0px))!important}.chat-panel.mobile-open .composer,.chat-panel.mobile-open footer.composer{position:fixed!important;left:0!important;right:0!important;bottom:var(--keyboard-offset, 0px)!important;padding:8px 10px max(8px,env(safe-area-inset-bottom))!important;z-index:120!important;box-sizing:border-box!important}.composer-row{min-height:56px!important;padding:8px 10px!important}.composer-row input{font-size:16px!important;line-height:1.25!important;padding:10px 6px!important}.sidebar-top{padding-top:calc(var(--ios-top-offset) + 8px)!important}.call-overlay{padding:0!important}.call-card,.call-screen{min-height:var(--app-height, 100svh)!important;height:var(--app-height, 100svh)!important;padding-top:calc(var(--ios-top-offset) + 12px)!important;padding-bottom:calc(env(safe-area-inset-bottom) + 16px)!important;box-sizing:border-box!important}.call-screen-topbar,.call-card-top{padding-top:0!important;margin-top:0!important}.call-top-title,.call-peer-name{line-height:1.16!important}.call-top-subtitle,.call-status-line,.call-title{line-height:1.24!important}.call-actions-row{align-items:start!important;gap:18px 18px!important}.call-action-btn,.call-mini-action{justify-self:center!important}}:root{--ios-top-offset-final: max(env(safe-area-inset-top), var(--safe-top-viewport, 0px))}.sidebar-account-card,.sidebar-user,.sidebar-user-meta,.chat-row,.chat-row-main,.chat-row-head,.chat-row-meta,.chat-header,.chat-header-left,.chat-header-meta,.profile-stats,.profile-stat,.filter-chip,.side-tab,.menu-item,.message-context-reactions,.context-reaction-btn,.composer-row,.composer-row input,.send-btn,.send-btn svg,.icon-btn,.icon-btn svg,.header-actions .icon-btn,.header-actions .icon-btn svg,.bubble,.bubble-text,.bubble-footer,.bubble-meta,.bubble-sender,.call-top-icon,.call-top-icon svg,.call-action-btn,.call-action-btn svg,.call-action-label,.call-mini-action,.call-mini-action svg{transform:none!important;translate:none!important}.sidebar-account-card{min-height:72px!important;padding:14px 16px!important;gap:14px!important;align-items:center!important}.sidebar-user{display:flex!important;align-items:center!important;gap:14px!important;min-width:0!important;flex:1 1 auto!important}.sidebar-user-meta{display:flex!important;flex-direction:column!important;justify-content:center!important;gap:2px!important;min-width:0!important}.sidebar-user-meta .brand-title,.sidebar-user-meta .brand-subtitle,.chat-title,.chat-preview,.chat-time,.chat-header-title,.chat-header-subtitle,.field-label,.settings-title,.settings-sub,.bubble-text,.bubble-meta,.bubble-sender,.filter-chip,.side-tab,.profile-stat,.menu-item{line-height:1.24!important}.chat-row{grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;column-gap:12px!important;padding:12px 14px!important}.chat-row-main{min-width:0!important}.chat-row-head,.chat-row-meta{display:flex!important;align-items:center!important}.chat-row-head{justify-content:space-between!important;gap:10px!important}.chat-title{font-size:16px!important;font-weight:700!important}.chat-preview{font-size:14px!important;opacity:.92!important}.chat-time{font-size:13px!important;white-space:nowrap!important}.online-dot{right:0!important;bottom:0!important}.filter-chip,.side-tab,.profile-stat,.menu-item,.message-context-actions button,.send-btn,.icon-btn,.header-actions .icon-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important}.filter-chip,.side-tab,.profile-stat{min-height:44px!important;padding:0 18px!important;white-space:nowrap!important}.profile-stats{grid-template-columns:1fr 1fr!important;gap:10px!important}.profile-stat{overflow:hidden!important;text-overflow:ellipsis!important;font-size:14px!important}.bubble{max-width:min(72%,760px)!important;padding:9px 12px 8px!important;border-radius:18px!important}.bubble-text{font-size:15px!important;line-height:1.38!important}@media (min-width: 901px){.bubble-text{font-size:16px!important}}.composer-row{align-items:center!important;min-height:54px!important;padding:6px 10px!important}.composer-row input,.composer-row textarea{align-self:center!important;margin:0!important;padding:10px 6px!important;line-height:1.25!important;font-size:16px!important}.send-btn,.send-btn svg,.icon-btn,.icon-btn svg,.header-actions .icon-btn,.header-actions .icon-btn svg,.menu-item svg,.profile-stat svg,.filter-chip svg,.side-tab svg{vertical-align:middle!important;flex:0 0 auto!important}.message-context-menu{width:min(292px,calc(100vw - 24px))!important;max-width:min(292px,calc(100vw - 24px))!important;max-height:min(252px,calc(100vh - 24px))!important;overflow:hidden!important;padding:8px!important;border-radius:18px!important}.message-context-reactions{display:flex!important;justify-content:space-between!important;gap:6px!important;padding:2px 2px 8px!important}.context-reaction-btn{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;border-radius:12px!important;font-size:20px!important}.message-context-actions button{min-height:42px!important;padding:9px 10px!important;justify-content:flex-start!important;font-size:14px!important}@media (min-width: 901px){.call-overlay{background:transparent!important;padding:26px!important;align-items:center!important;justify-content:center!important;pointer-events:none!important}.call-screen,.call-flyout,.call-toast{pointer-events:auto!important}.call-screen{width:min(1150px,calc(100vw - 72px))!important;height:min(84vh,760px)!important;border-radius:28px!important}.call-screen:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:#0a121b85!important;-webkit-backdrop-filter:blur(10px)!important;backdrop-filter:blur(10px)!important}.call-screen-noise,.call-screen-glow{opacity:.45!important}.call-desktop-window-controls{display:none!important}.call-screen-topbar{padding:18px 22px 0!important}.call-top-back{display:none!important}.call-top-center{text-align:left!important}.call-top-actions-right{min-width:auto!important}}.call-top-icon,.call-top-icon svg,.call-action-btn,.call-action-btn svg,.call-action-label{line-height:1.15!important;align-items:center!important;justify-content:center!important}.call-action-label{display:block!important;margin-top:10px!important;font-size:13px!important;text-align:center!important}@media (max-width: 900px){:root{--tg-bottom-gap: 0px !important;--safari-zone-gap: 0px !important;--safari-zone-gap-full: 0px !important}html,body,#root,.app-shell,.sidebar,.chat-panel,.chat-panel.mobile-open{height:var(--app-height, 100dvh)!important;min-height:var(--app-height, 100dvh)!important;max-height:var(--app-height, 100dvh)!important;overflow:hidden!important}.sidebar-top{padding-top:calc(var(--ios-top-offset-final) + 8px)!important}.chat-panel.mobile-open .chat-header{top:0!important;min-height:calc(60px + var(--ios-top-offset-final))!important;padding:calc(var(--ios-top-offset-final) + 8px) 12px 8px!important}.chat-panel.mobile-open .message-list{padding-top:calc(var(--ios-top-offset-final) + 76px)!important;padding-bottom:calc(84px + var(--keyboard-offset, 0px))!important;scroll-padding-bottom:calc(96px + var(--keyboard-offset, 0px))!important}.chat-panel.mobile-open .composer,.chat-panel.mobile-open footer.composer{left:0!important;right:0!important;bottom:var(--keyboard-offset, 0px)!important;padding:6px 10px 8px!important;background:#0e1621f5!important;border-top:1px solid var(--line)!important;pointer-events:auto!important}.chat-panel.mobile-open .composer-row{min-height:52px!important;padding:6px 10px!important;border-radius:18px!important}.chat-panel.mobile-open .composer-row input,.chat-panel.mobile-open .composer-row textarea{font-size:16px!important;line-height:1.25!important;padding:8px 6px!important}.call-overlay{background:#0c121c2e!important;padding:0!important}.call-screen{width:100%!important;height:var(--app-height, 100dvh)!important;min-height:var(--app-height, 100dvh)!important;border-radius:0!important;padding-top:calc(var(--ios-top-offset-final) + 6px)!important;padding-bottom:12px!important}.call-screen-topbar{padding:0 14px!important;min-height:48px!important;align-items:flex-start!important}.call-top-back{display:inline-flex!important}.call-desktop-window-controls{display:none!important}.call-top-center{text-align:center!important;padding-top:0!important}.call-top-title{font-size:15px!important;line-height:1.15!important}.call-top-subtitle{font-size:13px!important;line-height:1.22!important}.call-top-actions-right{gap:8px!important}.call-action-label{font-size:12px!important;margin-top:8px!important}}.sidebar-account-card{width:100%!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important}.sidebar-account-card>.icon-btn{flex:0 0 auto!important}.sidebar-user{min-width:0!important;flex:1 1 auto!important}.sidebar-user-meta{padding-left:2px!important}.sidebar-user-meta .brand-title{font-size:16px!important;line-height:1.18!important}.sidebar-user-meta .brand-subtitle{font-size:13px!important;line-height:1.22!important;margin-top:4px!important}.settings-profile{display:flex!important;align-items:center!important;gap:16px!important;padding:6px 0 14px!important}.settings-profile>div{min-width:0!important}.settings-title{font-size:16px!important;line-height:1.18!important}.settings-sub{font-size:13px!important;line-height:1.22!important;margin-top:4px!important}.modal-card input,.modal-card textarea,.side-input,.search-box input,.composer-row input,.composer-row textarea{display:block!important;line-height:1.25!important;padding-top:0!important;padding-bottom:0!important}.modal-card input,.side-input,.search-box input{min-height:54px!important;padding-left:20px!important;padding-right:20px!important}.modal-card textarea{padding:18px 20px!important;min-height:154px!important}.field-label{margin:8px 0 10px!important}.chat-row{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important}.chat-avatar-wrap,.chat-row-main{align-self:center!important}.chat-row-head,.chat-row-meta{align-items:center!important}.chat-row-meta{margin-top:4px!important}.chat-preview{line-height:1.22!important}.chat-row .chat-title,.chat-row .chat-preview,.chat-row .chat-time{transform:none!important;position:static!important}.profile-stats{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}.profile-stat{min-width:0!important;padding:0 12px!important;gap:8px!important}.profile-stat span{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:13px!important;line-height:1.18!important}.message-context-menu{width:min(248px,calc(100vw - 20px))!important;max-width:min(248px,calc(100vw - 20px))!important;max-height:min(214px,calc(100vh - 20px))!important;overflow:hidden!important}.message-context-reactions{gap:8px!important;justify-content:flex-start!important}.context-reaction-btn{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;font-size:22px!important}.message-context-actions button{min-height:40px!important;font-size:13px!important}.icon-btn,.icon-btn svg,.header-actions .icon-btn,.header-actions .icon-btn svg,.send-btn,.send-btn svg,.filter-chip,.filter-chip svg,.side-tab,.side-tab svg,.profile-stat,.profile-stat svg,.menu-item,.menu-item svg,.call-top-icon,.call-top-icon svg,.call-action-btn,.call-action-btn svg{display:inline-flex!important;align-items:center!important;justify-content:center!important;vertical-align:middle!important;transform:none!important;translate:none!important}.icon-btn svg,.header-actions .icon-btn svg,.send-btn svg,.filter-chip svg,.side-tab svg,.profile-stat svg,.menu-item svg,.call-top-icon svg,.call-action-btn svg{display:block!important;margin:0!important}@media (min-width: 901px){.call-overlay{left:0!important;right:0!important;padding:18px 24px 18px 394px!important;justify-content:flex-start!important;align-items:center!important;background:transparent!important}.app-shell.with-right-panel .call-overlay{padding-right:356px!important}.call-screen{width:min(980px,calc(100vw - 460px))!important;height:min(74vh,690px)!important;min-height:620px!important}.call-screen:before{background:#0a121b61!important}.call-desktop-window-controls,.call-top-icon[aria-label=Ещё]{display:none!important}.call-actions-grid{gap:18px!important;grid-template-columns:repeat(7,minmax(72px,1fr))!important}}@media (max-width: 900px){html,body,#root,.app-shell,.sidebar,.chat-panel,.chat-panel.mobile-open{height:100dvh!important;min-height:100dvh!important;max-height:100dvh!important}.sidebar-top{padding-top:max(8px,env(safe-area-inset-top))!important}.chat-panel.mobile-open .chat-header{min-height:64px!important;padding:max(8px,env(safe-area-inset-top)) 12px 8px!important}.chat-panel.mobile-open .message-list{padding-top:calc(max(8px,env(safe-area-inset-top)) + 64px)!important;padding-bottom:86px!important;scroll-padding-bottom:98px!important}.chat-panel.mobile-open .composer,.chat-panel.mobile-open footer.composer{bottom:0!important;padding:6px 10px!important;background:#0e1621f5!important}.chat-panel.mobile-open .composer-row{min-height:50px!important;border-radius:18px!important}.chat-panel.mobile-open .composer-row input,.chat-panel.mobile-open .composer-row textarea{min-height:34px!important;line-height:1.2!important;padding:0 6px!important}.call-overlay{background:transparent!important}.call-screen{height:100dvh!important;min-height:100dvh!important;padding-top:max(8px,env(safe-area-inset-top))!important;padding-bottom:10px!important}.call-screen-topbar{padding:0 14px!important}.call-top-actions-right .call-top-icon:nth-child(n+3){display:none!important}}:root{--search-toolbar-btn: 56px}.sidebar-toolbar{grid-template-columns:56px minmax(0,1fr) 56px!important;gap:10px!important}.search-box-main,.search-box{min-height:48px!important;height:48px!important;padding:0 16px!important;border-radius:22px!important}.search-box-main input,.search-box input{min-height:46px!important;height:46px!important;padding:0 6px!important;line-height:1.2!important}.sidebar-top{padding-bottom:12px!important}.sidebar-account-card{padding:16px 18px!important;gap:18px!important}.sidebar-user-meta{padding-left:6px!important}.filter-row{margin-top:14px!important;padding:0 4px 6px!important;gap:10px!important}.filter-chip{min-height:44px!important;padding:0 18px!important;border-radius:18px!important}.profile-card{padding:24px 18px 20px!important}.profile-stats{margin-top:14px!important;gap:12px!important}.profile-stat{min-height:52px!important;padding:0 16px!important}.message-context-menu{width:min(232px,calc(100vw - 20px))!important;max-width:min(232px,calc(100vw - 20px))!important;padding:8px!important;border-radius:18px!important}.message-context-reactions{display:grid!important;grid-template-columns:repeat(6,1fr)!important;gap:6px!important;justify-content:initial!important}.context-reaction-btn{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;font-size:17px!important;border-radius:12px!important}.message-context-actions button{min-height:38px!important;font-size:12px!important;gap:10px!important}.composer,footer.composer{background:transparent!important;border:0!important;box-shadow:none!important}.composer-row{min-height:54px!important;padding:8px 10px!important;border-radius:22px!important;background:#1f2b39f5!important;border:1px solid rgba(255,255,255,.06)!important;box-shadow:inset 0 1px #ffffff05!important}.composer-row input,.composer-row textarea{min-height:36px!important;padding:0 8px!important;background:transparent!important;border:0!important;box-shadow:none!important;line-height:1.25!important}.call-desktop-window-controls{display:none!important}@media (min-width: 901px){.call-overlay{background:transparent!important;padding:16px 24px 16px 394px!important}.call-screen{width:min(980px,calc(100vw - 460px))!important;height:min(72vh,680px)!important;min-height:610px!important}.call-screen:before{background:#0a121b2e!important;-webkit-backdrop-filter:blur(6px)!important;backdrop-filter:blur(6px)!important}}.call-mini-action{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;line-height:1.15!important}.call-mini-action svg{display:block!important;width:20px!important;height:20px!important;padding:0!important;margin:0!important;position:relative!important;z-index:1!important;background:transparent!important}.call-mini-action:before{content:""!important;display:block!important;width:44px!important;height:44px!important;border-radius:999px!important;background:#ffffff24!important;position:absolute!important;top:0!important;left:50%!important;transform:translate(-50%)!important;z-index:0!important}.call-mini-action{position:relative!important;padding-top:12px!important}.call-mini-action span{display:block!important;margin-top:12px!important;text-align:center!important}.call-secondary-actions.active-actions{width:min(760px,100%)!important;gap:18px 24px!important}@media (max-width: 900px){html,body,#root,.app-shell,.sidebar,.chat-panel,.chat-panel.mobile-open{height:100svh!important;min-height:100svh!important;max-height:100svh!important}.app-shell,.sidebar,.chat-panel,.chat-panel.mobile-open{padding-bottom:0!important;margin-bottom:0!important}.sidebar-account-card{padding:16px 18px!important}.chat-panel.mobile-open .chat-header{padding-top:max(6px,env(safe-area-inset-top))!important}.chat-panel.mobile-open .message-list{padding-top:calc(max(6px,env(safe-area-inset-top)) + 62px)!important;padding-bottom:82px!important;scroll-padding-bottom:94px!important}.chat-panel.mobile-open .composer,.chat-panel.mobile-open footer.composer{bottom:0!important;padding:4px 10px!important;background:#0e1621fa!important;border-top:0!important}.chat-panel.mobile-open .composer-row{min-height:50px!important;border-radius:20px!important}}.message-context-menu{width:min(336px,calc(100vw - 24px))!important;max-width:min(336px,calc(100vw - 24px))!important}.message-context-reactions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;padding:14px 14px 12px!important}.context-reaction-btn{width:34px!important;height:34px!important;font-size:18px!important;flex:0 0 34px!important;display:flex!important;align-items:center!important;justify-content:center!important}.message-context-actions{padding:6px 10px 12px!important}.bubble-footer{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important}.bubble-flags{display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important}.bubble-pin-indicator{display:inline-flex!important;align-items:center!important;justify-content:center!important;color:#7ab6ff!important;opacity:.95!important}.message-row.selecting .bubble{box-shadow:0 0 0 1px #4a9fff42 inset!important}.message-row.selected .bubble{box-shadow:0 0 0 2px #4a9fff7a inset ! important,0 12px 28px #0000002e!important}@media (max-width: 640px){.message-context-menu{width:min(320px,calc(100vw - 20px))!important;max-width:min(320px,calc(100vw - 20px))!important}.message-context-reactions{gap:7px!important;padding:12px 12px 10px!important}.context-reaction-btn{width:32px!important;height:32px!important;flex-basis:32px!important;font-size:17px!important}.menu-item{min-height:40px!important;padding:0 12px!important;gap:10px!important}}.message-context-menu{width:min(336px,calc(100vw - 24px))!important;max-width:min(336px,calc(100vw - 24px))!important;max-height:min(420px,calc(100vh - 24px))!important;overflow:hidden!important}.message-context-reactions{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;padding:10px 10px 8px!important}.context-reaction-btn{width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;flex:0 0 28px!important;font-size:16px!important;border-radius:10px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}.menu-item{min-height:42px!important;padding:0 14px!important;display:flex!important;align-items:center!important;gap:12px!important}.menu-item svg{flex:0 0 auto!important}@media (max-width: 640px){.message-context-menu{width:min(320px,calc(100vw - 20px))!important;max-width:min(320px,calc(100vw - 20px))!important}.message-context-reactions{gap:5px!important;padding:10px 10px 8px!important}.context-reaction-btn{width:26px!important;height:26px!important;min-width:26px!important;min-height:26px!important;flex-basis:26px!important;font-size:15px!important;border-radius:9px!important}.menu-item{min-height:40px!important;padding:0 12px!important;gap:10px!important}}.message-context-menu{width:min(264px,calc(100vw - 20px))!important;max-width:min(264px,calc(100vw - 20px))!important;border-radius:28px!important}.message-context-reactions{display:flex!important;flex-wrap:nowrap!important;gap:6px!important;padding:14px 14px 10px!important;overflow:hidden!important}.context-reaction-btn{width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;flex:0 0 28px!important;font-size:16px!important;line-height:1!important}.message-context-actions{padding:4px 12px 12px!important}.message-context-actions .menu-item{min-height:40px!important;padding:0 12px!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;line-height:1.15!important}.message-context-actions .menu-item svg{width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;flex:0 0 18px!important}.bubble-footer{align-items:center!important}.bubble-meta{display:flex!important;align-items:center!important;gap:6px!important}.bubble-pin-indicator{display:inline-flex!important;width:14px!important;height:14px!important;align-items:center!important;justify-content:center!important;color:#c5ccd8b8!important;opacity:1!important}.bubble-pin-indicator svg{width:11px!important;height:11px!important;transform:rotate(-28deg)!important;stroke-width:2.2!important}.selection-toolbar{display:flex!important;align-items:center!important;gap:14px!important;min-height:56px!important;padding:0 18px!important;border-radius:26px!important;margin:10px 14px 8px!important;background:#202125f0!important;border:1px solid rgba(255,255,255,.07)!important}.selection-toolbar-title{flex:1 1 auto!important;font-size:18px!important;line-height:1!important;font-weight:700!important;color:#f4f7fb!important;display:flex!important;align-items:center!important}.selection-toolbar-actions{display:flex!important;align-items:center!important;gap:8px!important;margin-left:auto!important}.selection-toolbar-btn{width:40px!important;height:40px!important;border-radius:12px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;color:#eef3fb!important;background:transparent!important}.selection-toolbar-btn svg{width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;transform:none!important}.selection-toolbar-btn.danger{color:#ff5d5d!important}@media (max-width: 640px){.selection-toolbar{min-height:52px!important;margin:8px 10px 6px!important;padding:0 14px!important;border-radius:22px!important;gap:10px!important}.selection-toolbar-title{font-size:16px!important}.selection-toolbar-btn{width:36px!important;height:36px!important}.selection-toolbar-btn svg{width:20px!important;height:20px!important}.message-context-menu{width:min(256px,calc(100vw - 16px))!important;max-width:min(256px,calc(100vw - 16px))!important}.message-context-reactions{gap:5px!important;padding:12px 12px 8px!important}}.message-row.selecting.mine .bubble{margin-left:0!important}.message-row.selecting{gap:10px!important}.message-select-toggle{align-self:center!important;width:30px!important;min-width:30px!important;height:30px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:transparent!important;border:0!important;padding:0!important;margin:0 2px!important;flex:0 0 30px!important}.message-select-toggle-circle{width:28px!important;height:28px!important;border-radius:999px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:#ffffff24!important;border:2px solid rgba(255,255,255,.24)!important;box-shadow:0 4px 12px #0000002e!important;color:transparent!important}.message-select-toggle.selected .message-select-toggle-circle{background:#8e7dff!important;border-color:#cfc6ff!important;color:#fff!important}.message-select-toggle svg{width:16px!important;height:16px!important;transform:none!important}.message-row.selecting .message-avatar-slot{display:none!important}.message-row.selecting.mine{justify-content:flex-start!important}.bubble-pin-indicator{display:inline-flex!important;width:13px!important;height:13px!important;align-items:center!important;justify-content:center!important;color:#d2d6dfc2!important;opacity:1!important}.bubble-pin-indicator svg{width:11px!important;height:11px!important;transform:rotate(-34deg)!important;stroke-width:2.4!important}@media (max-width:640px){.message-select-toggle{width:28px!important;min-width:28px!important;height:28px!important;flex-basis:28px!important}.message-select-toggle-circle{width:26px!important;height:26px!important}}.message-context-menu{width:min(242px,calc(100vw - 20px))!important;max-width:min(242px,calc(100vw - 20px))!important}.message-context-reactions{flex-wrap:nowrap!important;gap:6px!important;padding:12px 12px 8px!important}.context-reaction-btn{width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;font-size:16px!important;flex:0 0 28px!important}.message-context-actions{padding:4px 10px 10px!important}.message-context-actions .menu-item{min-height:38px!important;padding:0 10px!important;font-size:14px!important;gap:10px!important}.selection-toolbar{min-height:54px!important;justify-content:center!important}.selection-toolbar-title{display:flex!important;align-items:center!important;line-height:1.1!important}.selection-toolbar-actions,.selection-toolbar-btn{display:flex!important;align-items:center!important;justify-content:center!important}.selection-toolbar-btn{width:44px!important;height:44px!important;border-radius:14px!important}.selection-toolbar-btn svg{width:22px!important;height:22px!important;transform:none!important}.delete-modal-card,.forward-modal-card{width:min(420px,calc(100vw - 32px))!important;max-width:min(420px,calc(100vw - 32px))!important}.delete-modal-actions{display:flex!important;flex-direction:column!important;gap:10px!important}.delete-modal-actions .menu-item{justify-content:flex-start!important;text-align:left!important;padding:0 16px!important}.delete-modal-actions .menu-item span,.delete-modal-actions .menu-item strong,.delete-modal-actions .menu-item{line-height:1.15!important}.forward-chat-list{display:flex;flex-direction:column;gap:8px;margin-top:12px}.forward-chat-item{display:flex;align-items:center;gap:12px;min-height:56px;padding:10px 12px;border-radius:16px;background:#ffffff0a;border:1px solid rgba(255,255,255,.05);text-align:left}.forward-chat-meta{display:flex;flex-direction:column;gap:2px;min-width:0}.forward-chat-meta strong{font-size:15px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.forward-chat-meta span{font-size:12px;color:var(--muted);line-height:1.1}.bubble-pin-indicator{color:#d2d7e1b8!important}.bubble-pin-indicator svg{transform:rotate(-35deg)!important}@media (max-width:640px){.message-context-menu{width:min(234px,calc(100vw - 16px))!important;max-width:min(234px,calc(100vw - 16px))!important}.selection-toolbar{min-height:50px!important;padding:0 12px!important}.selection-toolbar-btn{width:38px!important;height:38px!important}.selection-toolbar-btn svg{width:20px!important;height:20px!important}.delete-modal-card,.forward-modal-card{width:min(360px,calc(100vw - 24px))!important;max-width:min(360px,calc(100vw - 24px))!important}}.message-context-menu{width:min(320px,calc(100vw - 24px))!important;max-width:min(320px,calc(100vw - 24px))!important}.message-context-reactions{padding-right:6px!important}.delete-modal-card,.forward-modal-card{width:min(380px,calc(100vw - 32px))!important;max-width:min(380px,calc(100vw - 32px))!important;padding-bottom:18px!important}.delete-modal-actions .menu-item:last-child,.forward-chat-list .forward-chat-item:last-child{margin-bottom:6px!important}@media (max-width:640px){.message-context-menu{width:min(300px,calc(100vw - 18px))!important;max-width:min(300px,calc(100vw - 18px))!important}.delete-modal-card,.forward-modal-card{width:min(344px,calc(100vw - 24px))!important;max-width:min(344px,calc(100vw - 24px))!important;padding-bottom:16px!important}}.message-context-menu{width:256px!important;min-width:256px!important;max-width:min(256px,calc(100vw - 20px))!important}.message-context-reactions{width:100%!important;box-sizing:border-box!important;justify-content:flex-start!important;flex-wrap:nowrap!important;overflow:hidden!important}.message-context-actions{width:100%!important;box-sizing:border-box!important}.message-context-actions .menu-item{width:100%!important;box-sizing:border-box!important;white-space:nowrap!important}.delete-modal-card{width:min(332px,calc(100vw - 32px))!important;max-width:min(332px,calc(100vw - 32px))!important;padding-bottom:20px!important}.forward-modal-card{width:min(372px,calc(100vw - 32px))!important;max-width:min(372px,calc(100vw - 32px))!important;padding-bottom:18px!important}.delete-modal-actions,.forward-chat-list{padding-bottom:8px!important}.delete-modal-actions .menu-item:last-child,.forward-chat-list .forward-chat-item:last-child{margin-bottom:8px!important}@media (max-width:640px){.message-context-menu{width:min(252px,calc(100vw - 16px))!important;min-width:min(252px,calc(100vw - 16px))!important;max-width:min(252px,calc(100vw - 16px))!important}.delete-modal-card{width:min(320px,calc(100vw - 24px))!important;max-width:min(320px,calc(100vw - 24px))!important}.forward-modal-card{width:min(344px,calc(100vw - 24px))!important;max-width:min(344px,calc(100vw - 24px))!important}}.message-context-menu{width:max-content!important;min-width:0!important;max-width:calc(100vw - 20px)!important}.message-context-reactions{width:max-content!important;max-width:100%!important;display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start!important;overflow:hidden!important}.message-context-actions{width:100%!important}.message-context-actions .menu-item{width:100%!important;box-sizing:border-box!important}@media (max-width:640px){.message-context-menu{max-width:calc(100vw - 16px)!important}}@media (max-width: 920px){html,body{width:100%!important;height:100%!important;min-height:100%!important;max-height:none!important;overflow:hidden!important;background:#0e1621!important;overscroll-behavior:none!important;-webkit-text-size-adjust:100%!important}#root,.app-shell,.sidebar,.chat-panel,.chat-panel.mobile-open{width:100%!important;height:100%!important;min-height:100%!important;max-height:none!important;overflow:hidden!important;background:#0e1621!important}html:before,html:after,body:before,body:after,#root:before,#root:after,.app-shell:before,.app-shell:after,.sidebar:before,.sidebar:after,.chat-panel:before,.chat-panel:after,.chat-panel.mobile-open:before,.chat-panel.mobile-open:after{content:none!important;display:none!important;height:0!important}.chat-panel.mobile-open{position:fixed!important;top:0!important;right:0!important;bottom:0!important;left:0!important;width:100vw!important;height:100%!important;min-height:100%!important;max-height:none!important;padding:0!important;margin:0!important;background:#0e1621!important}.chat-panel.mobile-open .chat-header{top:0!important}.chat-panel.mobile-open .message-list{bottom:84px!important;padding-bottom:96px!important;scroll-padding-bottom:96px!important;background:#0e1621!important}.chat-panel.mobile-open .composer,.chat-panel.mobile-open footer.composer{left:0!important;right:0!important;bottom:0!important;padding:6px 10px 8px!important;margin:0!important;background:#0e1621f5!important;border-top:1px solid var(--line)!important;box-shadow:none!important}.chat-panel.mobile-open .composer-row{margin:0!important;min-height:52px!important}}@media (max-width: 920px){.app-shell:before,.app-shell:after,.chat-panel.mobile-open:before,.chat-panel.mobile-open:after,.chat-panel.mobile-open .composer:before,.chat-panel.mobile-open .composer:after,.chat-panel.mobile-open footer.composer:before,.chat-panel.mobile-open footer.composer:after{content:none!important;display:none!important}.chat-panel.mobile-open{position:fixed!important;top:0!important;right:0!important;bottom:0!important;left:0!important;width:100vw!important;height:var(--app-height, 100dvh)!important;min-height:var(--app-height, 100dvh)!important;max-height:var(--app-height, 100dvh)!important;display:flex!important;flex-direction:column!important;padding:0!important;margin:0!important;overflow:hidden!important;background:#0e1621!important;z-index:40!important}.chat-panel.mobile-open .chat-header,.chat-panel.mobile-open .pinned-banner,.chat-panel.mobile-open .selection-toolbar,.chat-panel.mobile-open .composer-reply,.chat-panel.mobile-open .composer,.chat-panel.mobile-open footer.composer{position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;flex:0 0 auto!important;width:auto!important}.chat-panel.mobile-open .chat-header{z-index:3!important;min-height:calc(64px + env(safe-area-inset-top))!important;padding:calc(env(safe-area-inset-top) + 10px) 12px 10px!important}.chat-panel.mobile-open .pinned-banner{margin:0 10px!important;top:auto!important}.chat-panel.mobile-open .selection-toolbar{margin:0!important}.chat-panel.mobile-open .message-list{position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;flex:1 1 auto!important;min-height:0!important;height:auto!important;margin:0!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important;padding:10px 10px 12px!important;scroll-padding-bottom:12px!important;background:transparent!important}.chat-panel.mobile-open .composer,.chat-panel.mobile-open footer.composer{display:block!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;background:transparent!important;pointer-events:auto!important;z-index:3!important}.chat-panel.mobile-open .composer-reply{margin:0 10px 8px!important;border-radius:16px!important;z-index:3!important}.chat-panel.mobile-open .composer-row{position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;width:auto!important;min-height:56px!important;margin:0 10px calc(env(safe-area-inset-bottom) + 8px)!important;z-index:3!important}.chat-panel.mobile-open .scroll-to-bottom-btn{bottom:calc(84px + env(safe-area-inset-bottom))!important;z-index:4!important}}@media (max-width: 920px){.chat-panel.mobile-open .composer,.chat-panel.mobile-open footer.composer{position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:120!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important;pointer-events:none!important;min-height:0!important}.chat-panel.mobile-open .composer-row{position:fixed!important;left:10px!important;right:10px!important;bottom:var(--keyboard-offset, 0px)!important;z-index:122!important;min-height:64px!important;margin:0!important;padding:8px!important;background:#17212b!important;border:1px solid rgba(255,255,255,.03)!important;border-radius:24px!important;box-shadow:0 10px 24px #00000038!important;pointer-events:auto!important;transform:none!important}.chat-panel.mobile-open .composer-reply{position:fixed!important;left:10px!important;right:10px!important;bottom:calc(74px + var(--keyboard-offset, 0px))!important;z-index:121!important;margin:0!important;background:#17212bf5!important;border:1px solid rgba(255,255,255,.05)!important;border-radius:16px!important;box-shadow:0 8px 18px #0000002e!important;pointer-events:auto!important}.chat-panel.mobile-open .message-list{padding-bottom:calc(92px + var(--keyboard-offset, 0px))!important;scroll-padding-bottom:calc(108px + var(--keyboard-offset, 0px))!important}.chat-panel.mobile-open .scroll-to-bottom-btn{bottom:calc(96px + var(--keyboard-offset, 0px))!important}}@media (max-width: 920px){.chat-panel.mobile-open .composer,.chat-panel.mobile-open footer.composer{display:none!important;content:none!important;background:transparent!important;border:0!important;box-shadow:none!important;min-height:0!important;height:0!important;padding:0!important;margin:0!important;overflow:hidden!important;pointer-events:none!important}.chat-panel.mobile-open .chat-composer-stack{position:fixed!important;left:0!important;right:0!important;bottom:var(--keyboard-offset, 0px)!important;z-index:122!important;padding:0 10px!important;pointer-events:none!important;display:flex!important;flex-direction:column!important;gap:10px!important}.chat-panel.mobile-open .chat-composer-stack .composer-reply,.chat-panel.mobile-open .chat-composer-stack .composer-row{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;top:auto!important;margin:0!important;pointer-events:auto!important}.chat-panel.mobile-open .chat-composer-stack .composer-row{min-height:64px!important}.chat-panel.mobile-open .message-list{padding-bottom:calc(92px + var(--keyboard-offset, 0px))!important;scroll-padding-bottom:calc(108px + var(--keyboard-offset, 0px))!important}.chat-panel.mobile-open .scroll-to-bottom-btn{bottom:calc(96px + var(--keyboard-offset, 0px))!important}}@media (max-width: 920px){html,body,#root,.app-shell,.chat-panel.mobile-open{min-height:100dvh!important;height:100dvh!important;max-height:100dvh!important}.app-shell:before,.app-shell:after,.chat-panel:before,.chat-panel:after,.chat-panel.mobile-open:before,.chat-panel.mobile-open:after,.chat-panel.mobile-open .composer,.chat-panel.mobile-open footer.composer,.chat-panel.mobile-open .composer:before,.chat-panel.mobile-open .composer:after,.chat-panel.mobile-open footer.composer:before,.chat-panel.mobile-open footer.composer:after{content:none!important;display:none!important;height:0!important;min-height:0!important;max-height:0!important;padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;background:transparent!important}.chat-panel.mobile-open{position:fixed!important;top:0!important;right:0!important;bottom:0!important;left:0!important;width:100vw!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;padding:0!important;margin:0!important;background:#0e1621!important}.chat-panel.mobile-open .chat-header,.chat-panel.mobile-open .pinned-banner,.chat-panel.mobile-open .selection-toolbar{flex:0 0 auto!important;position:relative!important;z-index:5!important}.chat-panel.mobile-open .message-list{flex:1 1 auto!important;min-height:0!important;height:auto!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important;padding-bottom:calc(84px + var(--keyboard-offset, 0px))!important;scroll-padding-bottom:calc(96px + var(--keyboard-offset, 0px))!important}.chat-panel.mobile-open .chat-composer-stack{position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:122!important;display:flex!important;flex-direction:column!important;gap:8px!important;padding:0 10px calc(var(--keyboard-offset, 0px))!important;pointer-events:none!important;background:transparent!important}.chat-panel.mobile-open .chat-composer-stack .composer-reply,.chat-panel.mobile-open .chat-composer-stack .composer-row{pointer-events:auto!important;position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;margin:0!important}.chat-panel.mobile-open .chat-composer-stack .composer-row{min-height:64px!important}.chat-panel.mobile-open .scroll-to-bottom-btn{bottom:calc(92px + var(--keyboard-offset, 0px))!important}}@media (max-width: 920px){html,body,#root,.app-shell,.chat-panel.mobile-open{height:var(--app-height, 100dvh)!important;min-height:var(--app-height, 100dvh)!important;max-height:var(--app-height, 100dvh)!important;overflow:hidden!important}.app-shell:before,.app-shell:after,.chat-panel.mobile-open:before,.chat-panel.mobile-open:after,.chat-panel.mobile-open .composer,.chat-panel.mobile-open footer.composer,.chat-panel.mobile-open .composer:before,.chat-panel.mobile-open .composer:after,.chat-panel.mobile-open footer.composer:before,.chat-panel.mobile-open footer.composer:after{content:none!important;display:none!important;height:0!important;min-height:0!important;max-height:0!important;padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;background:transparent!important}.chat-panel.mobile-open{position:fixed!important;top:0!important;right:0!important;bottom:0!important;left:0!important;width:100vw!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;padding:0!important;margin:0!important;background:#0e1621!important}.chat-panel.mobile-open .chat-header,.chat-panel.mobile-open .pinned-banner,.chat-panel.mobile-open .selection-toolbar{flex:0 0 auto!important;position:relative!important;z-index:5!important}.chat-panel.mobile-open .message-list{position:relative!important;top:auto!important;bottom:auto!important;left:auto!important;right:auto!important;flex:1 1 auto!important;min-height:0!important;height:auto!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important;padding-top:calc(var(--ios-top-offset-final, 0px) + 12px)!important;padding-bottom:18px!important;scroll-padding-bottom:18px!important;margin:0!important;background:#0e1621!important}.chat-panel.mobile-open .chat-composer-stack{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;z-index:20!important;display:flex!important;flex-direction:column!important;gap:8px!important;margin-top:auto!important;padding:8px 10px max(0px,env(safe-area-inset-bottom))!important;transform:translateY(calc(-1 * var(--keyboard-offset, 0px)))!important;pointer-events:none!important;background:#0e1621!important;border-top:1px solid var(--line)!important}.chat-panel.mobile-open .chat-composer-stack .composer-reply,.chat-panel.mobile-open .chat-composer-stack .composer-row{position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;margin:0!important;pointer-events:auto!important}.chat-panel.mobile-open .chat-composer-stack .composer-row{min-height:52px!important;padding:6px 10px!important;border-radius:18px!important}.chat-panel.mobile-open .scroll-to-bottom-btn{bottom:calc(84px + var(--keyboard-offset, 0px))!important}}@media (max-width: 920px){.chat-panel.mobile-open .chat-composer-stack{padding-bottom:0!important;margin-bottom:0!important;border-bottom:0!important}.chat-panel.mobile-open .chat-composer-stack .composer-row{margin-bottom:0!important}.chat-panel.mobile-open .composer,.chat-panel.mobile-open footer.composer{padding-bottom:0!important;margin-bottom:0!important}}@media (max-width: 920px){.chat-panel.mobile-open{--safari-zone-gap: 0px !important;--safari-zone-gap-full: 0px !important;--tg-bottom-gap: 0px !important;position:fixed!important;top:0!important;right:0!important;bottom:0!important;left:0!important;width:100vw!important;height:var(--app-height, 100dvh)!important;min-height:var(--app-height, 100dvh)!important;max-height:var(--app-height, 100dvh)!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;margin:0!important;padding:0!important;transform:none!important;background:#0e1621!important}.chat-panel.mobile-open:before,.chat-panel.mobile-open:after,.chat-panel.mobile-open .composer,.chat-panel.mobile-open footer.composer,.chat-panel.mobile-open .composer:before,.chat-panel.mobile-open .composer:after,.chat-panel.mobile-open footer.composer:before,.chat-panel.mobile-open footer.composer:after{content:none!important;display:none!important}.chat-panel.mobile-open .chat-header,.chat-panel.mobile-open .pinned-banner,.chat-panel.mobile-open .selection-toolbar{flex:0 0 auto!important;position:relative!important;z-index:5!important}.chat-panel.mobile-open .message-list{position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;flex:1 1 auto!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important;margin:0!important;padding-top:calc(var(--ios-top-offset-final, 0px) + 12px)!important;padding-bottom:calc(84px + var(--keyboard-offset, 0px))!important;scroll-padding-bottom:calc(96px + var(--keyboard-offset, 0px))!important;background:#0e1621!important}.chat-panel.mobile-open .chat-composer-stack{position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:122!important;display:flex!important;flex-direction:column!important;gap:8px!important;margin:0!important;padding:8px 10px 0!important;transform:translateY(calc(-1 * var(--keyboard-offset, 0px)))!important;pointer-events:none!important;background:#0e1621!important;border-top:1px solid var(--line)!important;box-sizing:border-box!important}.chat-panel.mobile-open .chat-composer-stack .composer-reply,.chat-panel.mobile-open .chat-composer-stack .composer-row{position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;margin:0!important;pointer-events:auto!important}.chat-panel.mobile-open .chat-composer-stack .composer-row{min-height:52px!important}.chat-panel.mobile-open .scroll-to-bottom-btn{bottom:calc(92px + var(--keyboard-offset, 0px))!important}}@media (max-width: 920px){html,body,#root,.app-shell,.chat-panel,.chat-panel.mobile-open{min-height:0!important}.app-shell{height:var(--app-height, 100dvh)!important;min-height:0!important;max-height:var(--app-height, 100dvh)!important;overflow:hidden!important}.chat-panel,.chat-panel.mobile-open{height:100%!important;min-height:0!important;max-height:100%!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}.chat-panel.mobile-open .message-list{flex:1 1 auto!important;min-height:0!important;height:auto!important;max-height:none!important;overflow-y:auto!important}.chat-panel.mobile-open .chat-composer-stack{flex:0 0 auto!important;min-height:0!important}}@media (max-width: 900px){html,body,#root,.app-shell,.sidebar,.chat-panel,.chat-panel.mobile-open{height:calc(var(--app-height, 100dvh) + env(safe-area-inset-bottom))!important;min-height:calc(var(--app-height, 100dvh) + env(safe-area-inset-bottom))!important;max-height:calc(var(--app-height, 100dvh) + env(safe-area-inset-bottom))!important}.app-shell,.sidebar,.chat-panel,.chat-panel.mobile-open,.right-panel-mobile,.chat-layout,.chat-root{padding-bottom:0!important;margin-bottom:0!important}.app-shell:before,.app-shell:after,.chat-panel:before,.chat-panel:after,.chat-panel.mobile-open:before,.chat-panel.mobile-open:after,.sidebar:before,.sidebar:after{display:none!important;content:none!important}.sidebar{overflow:hidden!important}.chat-list-scroll{padding-bottom:12px!important;margin-bottom:0!important}.chat-panel.mobile-open .message-list{padding-bottom:calc(84px + var(--keyboard-offset, 0px))!important;scroll-padding-bottom:calc(96px + var(--keyboard-offset, 0px))!important;margin-bottom:0!important}.chat-panel.mobile-open .composer,.chat-panel.mobile-open footer.composer{bottom:var(--keyboard-offset, 0px)!important;padding-bottom:8px!important;margin-bottom:0!important}.chat-panel.mobile-open .chat-composer-stack,.chat-panel.mobile-open .composer-row,.chat-panel.mobile-open .composer-reply,.chat-panel.mobile-open .selection-toolbar,.scroll-to-bottom-btn{margin-bottom:0!important}}:root{--ios-top-safe: max(env(safe-area-inset-top), var(--safe-top-viewport, 0px))}@media (max-width: 920px){html,body,#root,.app-shell,.sidebar,.chat-panel,.chat-panel.mobile-open{padding-top:0!important;margin-top:0!important}.sidebar-top{padding-top:calc(var(--ios-top-safe) + 8px)!important}.chat-header{padding-top:calc(var(--ios-top-safe) + 8px)!important;min-height:calc(56px + var(--ios-top-safe))!important}.pinned-banner{top:calc(56px + var(--ios-top-safe))!important}.login-shell,.login-screen,.auth-shell,.auth-screen,.mobile-panel-overlay,.right-panel-mobile{padding-top:calc(var(--ios-top-safe) + 8px)!important}}@media (max-width: 920px){.sidebar{padding-top:var(--ios-top-safe)!important;box-sizing:border-box!important}.sidebar-top,.chat-list-scroll{padding-top:8px!important}}@media (max-width: 900px){.sidebar{padding-top:0!important;overflow:hidden!important}.sidebar-top{position:sticky!important;top:0!important;z-index:30!important;padding-top:calc(var(--ios-top-offset-final) + 8px)!important;background:#17212bf5!important;-webkit-backdrop-filter:blur(18px)!important;backdrop-filter:blur(18px)!important}.chat-list-scroll{min-height:0!important;flex:1 1 auto!important;padding-top:10px!important;scroll-padding-top:calc(var(--ios-top-offset-final) + 92px)!important}.chat-list-scroll:before{content:"";display:block;height:calc(var(--ios-top-offset-final) + 8px)!important}}@media (max-width: 920px){.mobile-panel-overlay{align-items:flex-start!important;justify-content:center!important;padding:calc(var(--ios-top-offset-final, env(safe-area-inset-top)) + 6px) 10px 8px!important}.mobile-panel-overlay>.right-panel-mobile,.mobile-panel-overlay .right-panel-mobile{width:min(100%,420px)!important;max-width:420px!important;max-height:calc(100dvh - var(--ios-top-offset-final, env(safe-area-inset-top)) - 14px)!important;margin:0 auto!important;border-radius:22px!important}.mobile-panel-head{padding:8px 12px!important;min-height:auto!important}.mobile-panel-title{line-height:1.02!important}.right-panel-mobile .profile-card{margin:8px 12px 10px!important}.right-panel-mobile .side-tabs,.right-panel-mobile .side-block{margin:0 12px 10px!important}.modal-backdrop{align-items:flex-start!important;justify-content:center!important;padding:calc(var(--ios-top-offset-final, env(safe-area-inset-top)) + 10px) 12px 12px!important}.modal-card.glass:not(.delete-modal-card):not(.forward-modal-card){width:min(calc(100vw - 24px),640px)!important;max-width:min(calc(100vw - 24px),640px)!important;border-radius:24px!important;margin:0 auto!important}.chat-list-scroll{padding-top:2px!important;scroll-padding-top:calc(var(--ios-top-offset-final, 0px) + 84px)!important}.chat-list-scroll:before{height:0!important;display:none!important;content:none!important}}@media (max-width: 920px){.mobile-panel-overlay{align-items:flex-start!important;justify-content:flex-start!important;padding:calc(var(--ios-top-offset-final, env(safe-area-inset-top)) + 8px) 12px 10px!important}.mobile-panel-overlay>.right-panel-mobile,.mobile-panel-overlay .right-panel-mobile{width:min(calc(100vw - 24px),640px)!important;max-width:min(calc(100vw - 24px),640px)!important;max-height:calc(100dvh - var(--ios-top-offset-final, env(safe-area-inset-top)) - 18px)!important;height:auto!important;margin:0 auto!important;border-radius:24px!important}.mobile-panel-head{padding:6px 12px!important;min-height:auto!important}.mobile-panel-title{line-height:1!important;margin:0!important}.right-panel-mobile .profile-card{margin:6px 12px 8px!important}.right-panel-mobile .side-tabs,.right-panel-mobile .side-block{margin:0 12px 8px!important}.sidebar{overscroll-behavior-y:contain!important}.sidebar-top{overscroll-behavior:none!important;-webkit-overflow-scrolling:auto!important;transform:translateZ(0)}}@media (max-width: 920px){.sidebar{display:flex!important;flex-direction:column!important;overflow:hidden!important;overscroll-behavior:none!important;-webkit-overflow-scrolling:auto!important}.sidebar-top{position:relative!important;top:auto!important;flex:0 0 auto!important;z-index:35!important;transform:none!important;will-change:auto!important;-webkit-overflow-scrolling:auto!important;overscroll-behavior:none!important;padding-top:calc(var(--ios-top-offset-final, env(safe-area-inset-top)) + 8px)!important;padding-bottom:8px!important;background:#17212bfa!important;-webkit-backdrop-filter:blur(18px)!important;backdrop-filter:blur(18px)!important}.chat-list-scroll{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior-y:contain!important;padding-top:0!important;margin-top:0!important;scroll-padding-top:0!important}.chat-list-scroll:before{display:none!important;content:none!important;height:0!important}.mobile-panel-overlay{align-items:flex-start!important;justify-content:flex-start!important;padding:calc(var(--ios-top-offset-final, env(safe-area-inset-top)) + 2px) 12px 4px!important}.mobile-panel-overlay>.right-panel-mobile,.mobile-panel-overlay .right-panel-mobile{width:min(calc(100vw - 24px),640px)!important;max-width:min(calc(100vw - 24px),640px)!important;max-height:calc(100dvh - var(--ios-top-offset-final, env(safe-area-inset-top)) - 6px)!important;height:auto!important;margin:0 auto!important;border-radius:24px!important}.mobile-panel-head{padding:2px 12px 4px!important;min-height:auto!important}.mobile-panel-title{line-height:1!important;margin:0!important}.right-panel-mobile .profile-card{margin:4px 12px 6px!important}.right-panel-mobile .side-tabs,.right-panel-mobile .side-block{margin:0 12px 6px!important}}.sidebar{display:flex;flex-direction:column;overflow:hidden!important}.sidebar-top{position:relative!important;top:auto!important;flex:0 0 auto!important;z-index:35!important;transform:none!important;will-change:auto!important}.chat-list-scroll{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior-y:contain!important}.sidebar-menu-wrap{position:relative;display:flex;align-items:center}.sidebar-menu-popover{position:absolute;top:calc(100% + 8px);left:0;min-width:188px;display:flex;flex-direction:column;gap:4px;padding:8px;z-index:80;border-radius:16px;background:#17212bf5;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:0 12px 28px #00000057}.sidebar-menu-item{display:flex;align-items:center;gap:10px;border:none;background:transparent;color:inherit;padding:10px 12px;border-radius:12px;font-size:14px;line-height:1.2;text-align:left;cursor:pointer}.sidebar-menu-item:hover{background:#ffffff0f}.sidebar-menu-item.danger{color:#ffb4b4}.sidebar-menu-item span{line-height:1.2}.admin-page{height:100%;display:flex;align-items:stretch;justify-content:stretch;padding:18px}.admin-page-card{width:100%;border-radius:24px;padding:22px;display:flex;flex-direction:column;gap:18px;background:#17212bb8}.admin-page-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.admin-page-title{font-size:24px;font-weight:800;line-height:1.1}.admin-page-subtitle{font-size:14px;color:var(--muted);margin-top:6px;line-height:1.35}.admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.admin-tile{border-radius:20px;padding:18px;background:#ffffff0a}.admin-tile-title{font-size:16px;font-weight:700;line-height:1.2}.admin-tile-sub{margin-top:8px;font-size:13px;line-height:1.4;color:var(--muted)}@media (max-width:900px){.sidebar-menu-popover{min-width:170px;left:0;right:auto}.admin-page{padding:12px}.admin-page-card{padding:16px;border-radius:20px}.admin-page-title{font-size:20px}.admin-grid{grid-template-columns:1fr;gap:10px}}.sidebar{display:flex!important;flex-direction:column!important;overflow:hidden!important}.sidebar-top{flex:0 0 auto!important;position:relative!important;top:auto!important;z-index:35!important;padding-top:calc(var(--ios-top-offset-final, env(safe-area-inset-top)) + 8px)!important;padding-bottom:8px!important;margin:0!important;background:#17212bfa!important;-webkit-backdrop-filter:blur(18px)!important;backdrop-filter:blur(18px)!important}.chat-list-scroll{flex:1 1 auto!important;min-height:0!important;height:0!important;overflow-y:auto!important;overflow-x:hidden!important;margin-top:0!important;padding-top:0!important;scroll-padding-top:0!important}.chat-list-scroll:before{display:none!important;content:none!important;height:0!important}.call-screen-mini{width:180px!important;height:236px!important;border-radius:20px!important;box-shadow:0 18px 44px #00000061!important}.call-screen-mini .call-screen-topbar,.call-screen-mini .call-screen-center,.call-screen-mini .call-secondary-actions,.call-screen-mini .call-answer-row,.call-screen-mini .call-flyout,.call-screen-mini .call-local-preview-wrap,.call-screen-mini .call-top-actions-right,.call-screen-mini .call-top-back,.call-screen-mini .call-desktop-window-controls,.call-screen-mini .call-screen-noise,.call-screen-mini .call-screen-glow{display:none!important}.call-screen-mini .call-bottom-panel{padding:0 10px 12px!important}.call-screen-mini .call-end-state-row{width:100%!important}.call-screen-mini .call-answer-btn.single{width:48px!important;height:48px!important}.call-screen-mini .call-top-center{text-align:center!important;padding-top:14px!important}.call-screen-mini .call-top-title{font-size:14px!important}.call-screen-mini .call-top-subtitle{font-size:11px!important}.call-screen-mini .call-video-stage{top:0!important;right:0!important;bottom:0!important;left:0!important}.call-screen-mini .call-video-main{width:100%;height:100%;object-fit:cover}.call-screen-mini .call-video-fallback{display:flex!important}.call-screen-mini .call-top-meta-line{display:none!important}.call-overlay-floating .call-video-main{object-fit:cover}.call-overlay-floating .call-video-stage{top:0!important;right:0!important;bottom:0!important;left:0!important}.call-overlay-floating .call-bottom-panel,.call-overlay-floating .call-screen-topbar,.call-overlay-floating .call-screen-center,.call-overlay-floating .call-local-preview-wrap{display:none!important}.call-overlay-floating .call-video-fallback{display:flex!important}.call-video-mini-feed{display:none}.call-overlay-floating .call-video-main{display:none!important}.call-overlay-floating .call-video-mini-feed{display:block!important;width:100%;height:100%;object-fit:cover}.call-mini-audio-card{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:linear-gradient(180deg,#121a28db,#0a101ceb);z-index:3}.call-mini-audio-avatar{width:64px;height:64px;border-radius:999px;object-fit:cover;box-shadow:0 8px 20px #00000047}.call-mini-audio-avatar-fallback{display:flex;align-items:center;justify-content:center;background:#ffffff24;color:#fff;font-weight:700;font-size:26px}.call-mini-audio-name{font-size:13px;font-weight:700;color:#fff;max-width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.call-mini-audio-time{font-size:12px;color:#ffffffc7}.call-screen-mini .call-video-stage,.call-screen-mini .call-video-mini-feed{display:block!important}.call-screen-mini .call-bottom-panel,.call-screen-mini .call-video-fallback{display:none!important}@media (min-width: 921px){.call-end-state-row{margin-top:-8px!important}.call-end-state-row .call-answer-btn.single{transform:translateY(-8px)}}.sidebar-head-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.chip-btn.active{background:#2b7eff2e;border-color:#2b7eff57;color:#7db0ff}.bubble-call-card{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:18px;background:#ffffff14;min-width:240px}.bubble-call-card.missed{background:#ff545424}.bubble-call-card.busy{background:#ffab2c24}.bubble-call-icon{width:38px;height:38px;border-radius:19px;display:flex;align-items:center;justify-content:center;background:#ffffff1a;font-size:18px;flex:0 0 auto}.bubble-call-copy{min-width:0;display:flex;flex-direction:column;gap:2px}.bubble-call-title{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bubble-call-subtitle{font-size:12px;opacity:.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media (max-width: 900px){.call-history-page{padding:12px}.call-history-card{padding:16px;border-radius:20px}.call-history-title{font-size:22px}.call-history-row{padding:12px}.call-history-row-top,.call-history-row-bottom{flex-direction:column;align-items:flex-start}}.call-history-page{height:100%;overflow:auto;padding:12px 12px 20px;background:var(--panel)}.call-history-appbar{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:12px;padding:10px 12px;margin:0 auto 10px;max-width:920px;border-radius:18px;background:#181c24eb;-webkit-backdrop-filter:saturate(140%) blur(12px);backdrop-filter:saturate(140%) blur(12px)}.call-history-appbar-title{font-size:20px;font-weight:700}.call-history-list{display:flex;flex-direction:column;gap:8px;max-width:920px;margin:0 auto}.call-history-row{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border:none;border-radius:18px;background:#ffffff0f;color:inherit;text-align:left;cursor:pointer;transition:background .15s ease,transform .15s ease}.call-history-row:hover{background:#ffffff17}.call-history-row-main{display:flex;flex-direction:column;min-width:0;flex:1;gap:3px}.call-history-peer{font-size:16px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.call-history-subline{display:flex;align-items:center;gap:8px;min-width:0}.call-history-subline-text{font-size:14px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.call-history-subline-text.missed,.call-history-subline-text.declined{color:#ff8e8e}.call-history-subline-text.busy{color:#ffc775}.call-history-call-btn{width:42px;height:42px;flex:0 0 42px;border:none;border-radius:999px;display:flex;align-items:center;justify-content:center;background:#6ea8ff2e;color:#9bc3ff;cursor:pointer;transition:background .15s ease,transform .15s ease}.call-history-call-btn:hover{background:#6ea8ff47}.call-history-call-btn:active{transform:scale(.97)}.empty-call-history{padding:28px 18px;border-radius:18px;background:#ffffff0d;text-align:center;color:var(--muted)}@media (max-width: 900px){.call-history-page{padding:10px 10px 18px}.call-history-appbar{padding:10px 12px;border-radius:16px}.call-history-appbar-title{font-size:18px}.call-history-row{padding:11px 12px;border-radius:16px}.call-history-peer{font-size:15px}.call-history-subline-text{font-size:13px}.call-history-call-btn{width:40px;height:40px;flex-basis:40px}}.bubble-call-app{display:flex;flex-direction:column;gap:6px;min-width:220px}.bubble-call-app-title-row{display:flex;align-items:center;gap:8px}.bubble-call-app-kind{display:inline-flex;align-items:center;justify-content:center;color:#8fb7ff;opacity:.95}.bubble.mine .bubble-call-app-kind{color:#d7e9ff}.bubble-call-app-title{font-size:15px;line-height:1.25;font-weight:500;color:var(--text)}.bubble-call-app-bottom-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap;color:var(--subtext);font-size:12.5px;line-height:1.2}.bubble-call-app-status-icon{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;transform-origin:center center}.bubble-call-app-status-icon.connected{color:#34a853}.bubble-call-app-status-icon.failed{color:#d9534f}.bubble-call-app-status-icon.outgoing:not(.declined){transform:rotate(0)}.bubble-call-app-status-icon.incoming:not(.declined){transform:rotate(180deg)}.bubble-call-app-status-text{color:var(--subtext)}.bubble-call-app-time{color:var(--subtext);margin-left:2px}.bubble.mine .bubble-call-app-time,.bubble.mine .bubble-call-app-status-text{color:#ffffffc7}.bubble.mine .bubble-call-app-title{color:#fff}.bubble.mine .bubble-call-app-status-icon.connected{color:#9de17f}.bubble.mine .bubble-call-app-status-icon.failed{color:#ffd0cd}.message-row.call-message-row{padding-left:0!important;gap:0!important}.message-row.call-message-row:not(.mine){justify-content:flex-start!important}.message-row.call-message-row .bubble{margin-left:0!important}.call-history-selection-toolbar{position:sticky;top:66px;z-index:3;max-width:920px;margin:0 auto 10px}.call-history-row.selected{background:#6ea8ff2e;box-shadow:inset 0 0 0 1px #9bc3ff57}.call-history-row.selected:hover{background:#6ea8ff38}@media (max-width: 900px){.call-history-selection-toolbar{top:60px}}.call-history-page.selection-mode .call-history-appbar{display:none!important}.call-history-page.selection-mode .call-history-selection-toolbar{position:sticky;top:0!important;z-index:8;margin:0 auto 12px!important}@media (max-width: 900px){.call-history-page.selection-mode .call-history-selection-toolbar{top:0!important;margin:0 0 10px!important;border-radius:0 0 18px 18px!important}}.call-history-row{align-items:center!important;min-height:96px}.call-history-row>.avatar,.call-history-row>.avatar-fallback,.call-history-row>.call-history-row-main,.call-history-row>.call-history-call-btn{align-self:center!important}.call-history-row>.avatar,.call-history-row>.avatar-fallback{display:block;margin:0}.call-history-row-main{justify-content:center;min-height:52px;gap:4px}.call-history-peer,.call-history-subline{margin:0}.call-history-peer,.call-history-subline-text{line-height:1.15}.call-history-call-btn{margin:0}@media (max-width: 900px){.call-history-row{min-height:88px}}.call-history-row>.avatar-fallback{display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;line-height:1!important;padding:0!important;overflow:hidden}.call-history-row>.avatar-fallback:before{content:none!important}.call-history-row>.avatar,.call-history-row>.avatar-fallback{width:48px!important;height:48px!important;flex:0 0 48px!important}.call-history-row>.avatar-fallback{font-size:20px!important;letter-spacing:0!important}.call-history-row-main{padding-top:0!important;padding-bottom:0!important}@media (max-width: 900px){.call-history-page{padding-top:calc(10px + env(safe-area-inset-top))}.call-history-appbar{top:0}.call-history-page.selection-mode .call-history-selection-toolbar{top:0!important}}@media (max-width: 900px){.call-history-page.selection-mode .call-history-selection-toolbar{top:calc(env(safe-area-inset-top) + 8px)!important;margin:0 12px 10px!important;width:auto!important;max-width:none!important;border-radius:20px!important}}@media (max-width: 900px){.call-history-page{padding-top:calc(env(safe-area-inset-top) + 10px)!important}.call-history-page.selection-mode .call-history-selection-toolbar{position:sticky!important;top:calc(env(safe-area-inset-top) + 0px)!important;left:auto!important;right:auto!important;margin:0 auto 10px!important;width:calc(100% - 20px)!important;max-width:none!important;border-radius:16px!important;transform:none!important}.call-history-page.selection-mode .call-history-list{margin-top:0!important}}@media (max-width: 900px){.call-history-page.selection-mode .call-history-selection-toolbar{position:sticky!important;top:0!important;left:auto!important;right:auto!important;width:auto!important;max-width:none!important;margin:0 12px 10px!important;border-radius:20px!important;transform:none!important;z-index:8!important}.call-history-page.selection-mode .call-history-list{padding-top:0!important;margin-top:0!important}.chat-panel.mobile-open .message-list{position:fixed!important;left:0!important;right:0!important;top:calc(64px + var(--ios-top-offset, 0px))!important;bottom:calc(max(var(--keyboard-offset, 0px),env(safe-area-inset-bottom)) + 88px)!important;height:auto!important;max-height:none!important;min-height:0!important;margin:0!important;padding:10px 10px 8px!important;scroll-padding-bottom:8px!important;overflow:auto!important}.chat-panel.mobile-open .composer,.chat-panel.mobile-open footer.composer{position:fixed!important;left:0!important;right:0!important;bottom:0!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important;pointer-events:none!important;z-index:120!important}.chat-panel.mobile-open .composer-row{position:fixed!important;left:10px!important;right:10px!important;bottom:calc(max(var(--keyboard-offset, 0px),env(safe-area-inset-bottom)) + 12px)!important;min-height:64px!important;margin:0!important;z-index:130!important;pointer-events:auto!important}.chat-panel.mobile-open .composer-reply{position:fixed!important;left:10px!important;right:10px!important;bottom:calc(max(var(--keyboard-offset, 0px),env(safe-area-inset-bottom)) + 86px)!important;z-index:131!important}.chat-panel.mobile-open .selection-toolbar:not(.call-history-selection-toolbar){position:fixed!important;left:10px!important;right:10px!important;bottom:calc(max(var(--keyboard-offset, 0px),env(safe-area-inset-bottom)) + 28px)!important;margin:0!important;z-index:135!important}.chat-panel.mobile-open .scroll-to-bottom-btn{bottom:calc(max(var(--keyboard-offset, 0px),env(safe-area-inset-bottom)) + 94px)!important}}@media (max-width: 900px){.call-history-page.selection-mode .call-history-selection-toolbar{position:sticky!important;top:0!important;margin:0 12px 10px!important;left:auto!important;right:auto!important;width:auto!important;z-index:8!important}.call-history-page.selection-mode .call-history-list{padding-top:0!important}.chat-panel.mobile-open .composer,.chat-panel.mobile-open footer.composer{display:none!important;height:0!important;min-height:0!important;max-height:0!important;padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;background:transparent!important;overflow:hidden!important;pointer-events:none!important}.chat-panel.mobile-open .chat-composer-stack{position:fixed!important;left:0!important;right:0!important;bottom:0!important;padding:0 10px max(env(safe-area-inset-bottom),8px)!important;margin:0!important;display:flex!important;flex-direction:column!important;gap:0!important;background:transparent!important;border:0!important;transform:none!important;z-index:122!important;pointer-events:none!important}.chat-panel.mobile-open .chat-composer-stack .composer-reply,.chat-panel.mobile-open .chat-composer-stack .composer-row{position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;margin:0!important;pointer-events:auto!important;transform:none!important}.chat-panel.mobile-open .chat-composer-stack .composer-reply{margin:0 0 8px!important}.chat-panel.mobile-open .chat-composer-stack .composer-reply:empty,.chat-panel.mobile-open .chat-composer-stack .composer-reply[hidden]{display:none!important;margin:0!important;padding:0!important;min-height:0!important;border:0!important}.chat-panel.mobile-open .chat-composer-stack .composer-row{min-height:64px!important}.chat-panel.mobile-open .message-list{position:fixed!important;left:0!important;right:0!important;top:calc(64px + var(--ios-top-offset, 0px))!important;bottom:calc(72px + max(env(safe-area-inset-bottom),8px))!important;height:auto!important;max-height:none!important;min-height:0!important;margin:0!important;padding:10px 10px 0!important;scroll-padding-bottom:0!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important}.chat-panel.mobile-open .selection-toolbar:not(.call-history-selection-toolbar){position:fixed!important;left:10px!important;right:10px!important;bottom:max(env(safe-area-inset-bottom),8px)!important;margin:0!important;z-index:135!important}.chat-panel.mobile-open .scroll-to-bottom-btn{bottom:calc(86px + max(env(safe-area-inset-bottom),8px))!important;z-index:136!important}body,.app-shell,.chat-panel,.chat-panel *,.sidebar,.right-panel{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}input,textarea{-webkit-user-select:text!important;user-select:text!important;-webkit-touch-callout:none!important}.chat-panel.mobile-open .chat-composer-stack,.chat-panel.mobile-open .chat-composer-stack *,.chat-panel.mobile-open .composer-row,.chat-panel.mobile-open .composer-input-wrap,.chat-panel.mobile-open .composer-input,.chat-panel.mobile-open .composer-send,.chat-panel.mobile-open .message-list,.chat-panel.mobile-open .selection-toolbar{outline:none!important;box-shadow:none!important;-webkit-tap-highlight-color:transparent!important}}@media (max-width: 900px){.chat-panel.mobile-open .chat-composer-stack{position:fixed!important;left:0!important;right:0!important;bottom:0!important;padding:0 10px!important;margin:0!important;gap:0!important;transform:translateY(-14px)!important;z-index:10000!important;pointer-events:none!important;background:transparent!important;border:0!important}.chat-panel.mobile-open .chat-composer-stack .composer-row{position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;margin:0!important;min-height:64px!important;pointer-events:auto!important;transform:none!important}.chat-panel.mobile-open .chat-composer-stack .composer-reply{position:relative!important;margin:0 0 8px!important;pointer-events:auto!important;transform:none!important}.chat-panel.mobile-open .message-list{bottom:98px!important;padding-bottom:0!important;scroll-padding-bottom:0!important}.chat-panel.mobile-open .scroll-to-bottom-btn{bottom:106px!important}}@media (max-width: 900px){.chat-panel.mobile-open .message-list{bottom:74px!important;padding-bottom:0!important;scroll-padding-bottom:0!important}.chat-panel.mobile-open .chat-composer-stack{bottom:0!important;transform:translateY(-4px)!important;padding-bottom:0!important}.chat-panel.mobile-open .chat-composer-stack .composer-row{min-height:62px!important}.chat-panel.mobile-open .selection-toolbar:not(.call-history-selection-toolbar){bottom:2px!important}.chat-panel.mobile-open .scroll-to-bottom-btn{bottom:82px!important}}@supports (-webkit-touch-callout: none){@media (max-width: 900px){.chat-panel.mobile-open .message-list{bottom:72px!important}.chat-panel.mobile-open .chat-composer-stack{transform:translateY(-3px)!important}}}.scroll-to-bottom-btn{width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;padding:0!important;border-radius:50%!important;justify-content:center!important;align-items:center!important;gap:0!important;right:20px!important;bottom:calc(86px + env(safe-area-inset-bottom))!important;background:#275991f5!important}.scroll-to-bottom-btn span{position:absolute!important;top:-6px!important;right:-6px!important;min-width:18px!important;height:18px!important;padding:0 5px!important;border-radius:999px!important;display:grid!important;place-items:center!important;font-size:10px!important;line-height:18px!important;background:#3390ec!important;color:#fff!important;box-shadow:0 2px 8px #00000047!important}@media (max-width: 920px){.scroll-to-bottom-btn{width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;border-radius:50%!important;right:20px!important;bottom:calc(var(--mobile-composer-height) + 75px + var(--keyboard-offset, 0px))!important}}@supports (-webkit-touch-callout: none){@media (max-width: 920px){.chat-panel.mobile-open .scroll-to-bottom-btn,.scroll-to-bottom-btn{bottom:calc(var(--mobile-composer-height) + 85px + var(--keyboard-offset, 0px))!important}}}@supports (-webkit-touch-callout: none){@media (max-width: 920px){.chat-panel.mobile-open .scroll-to-bottom-btn,.scroll-to-bottom-btn{bottom:calc(var(--mobile-composer-height) + 30px + var(--keyboard-offset, 0px))!important}}}.chat-header-peer{display:inline-flex!important;align-items:center!important;gap:12px!important;min-width:0!important;max-width:100%!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;color:inherit!important;text-align:left!important;cursor:pointer!important;font:inherit!important;-webkit-tap-highlight-color:transparent!important}.chat-header-peer-text{display:flex!important;flex-direction:column!important;min-width:0!important;line-height:1.15!important}.chat-header-peer .chat-header-title,.chat-header-peer .chat-header-subtitle{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.chat-header-peer:active{opacity:.78!important}@media (min-width:901px){.app-shell.with-right-panel{grid-template-columns:clamp(260px,31vw,360px) minmax(0,1fr) clamp(520px,46vw,628px)!important}.right-panel:not(.right-panel-mobile){display:flex!important;flex-direction:column!important;min-width:520px!important;max-width:628px!important;height:100dvh!important;max-height:100dvh!important;overflow-y:auto!important;overflow-x:hidden!important;background:#111b24!important;border-left:1px solid rgba(255,255,255,.08)!important;box-shadow:-18px 0 32px #00000038!important;z-index:60!important}.right-panel:not(.right-panel-mobile) .right-panel-head{display:flex!important;min-height:88px!important;padding:0 16px!important;align-items:center!important;justify-content:space-between!important;background:#111b24!important;border-bottom:1px solid rgba(255,255,255,.08)!important;position:sticky!important;top:0!important;z-index:5!important}.right-panel:not(.right-panel-mobile) .right-panel-title{font-size:24px!important;line-height:1.2!important;font-weight:500!important;color:#fff!important}.right-panel:not(.right-panel-mobile) .profile-card{margin:40px 22px 42px!important;padding:36px 26px 30px!important;border-radius:24px!important;background:#192530e0!important}.right-panel:not(.right-panel-mobile) .profile-card h3{margin-top:18px!important;font-size:28px!important;line-height:1.25!important}.right-panel:not(.right-panel-mobile) .profile-card p{font-size:24px!important;line-height:1.3!important}.right-panel:not(.right-panel-mobile) .profile-stats{display:grid!important;grid-template-columns:1fr 1fr!important;gap:18px!important;margin-top:32px!important}.right-panel:not(.right-panel-mobile) .profile-stat{min-height:78px!important;border-radius:20px!important;font-size:20px!important}.right-panel:not(.right-panel-mobile) .side-tabs{margin:0 22px 42px!important;padding:12px!important;border-radius:22px!important;overflow-x:auto!important;scrollbar-width:none!important}.right-panel:not(.right-panel-mobile) .side-tabs::-webkit-scrollbar{display:none!important}.right-panel:not(.right-panel-mobile) .side-tab{min-height:66px!important;padding:0 24px!important;border-radius:16px!important;font-size:24px!important;flex:0 0 auto!important}.right-panel:not(.right-panel-mobile) .side-block{margin:0 22px 24px!important;padding:26px 34px!important;border-radius:24px!important;background:#192530e0!important}.right-panel:not(.right-panel-mobile) .side-title{font-size:22px!important;margin-bottom:26px!important}.right-panel:not(.right-panel-mobile) .side-item.static strong{font-size:22px!important}.right-panel:not(.right-panel-mobile) .side-item.static span{font-size:20px!important}}@media (min-width: 901px){.app-shell.with-right-panel{grid-template-columns:clamp(260px,31vw,360px) minmax(0,1fr) clamp(280px,30vw,336px)!important}.right-panel:not(.right-panel-mobile){width:clamp(280px,30vw,336px)!important;min-width:280px!important;max-width:336px!important}.right-panel:not(.right-panel-mobile) .right-panel-head{min-height:72px!important;padding:0 14px!important}.right-panel:not(.right-panel-mobile) .right-panel-title{font-size:20px!important}.right-panel:not(.right-panel-mobile) .profile-card{margin:24px 14px!important;padding:24px 16px 20px!important;border-radius:22px!important}.right-panel:not(.right-panel-mobile) .profile-card .avatar,.right-panel:not(.right-panel-mobile) .profile-card .avatar-fallback{width:76px!important;height:76px!important;flex:0 0 76px!important;font-size:32px!important}.right-panel:not(.right-panel-mobile) .profile-card h3{margin-top:14px!important;font-size:22px!important}.right-panel:not(.right-panel-mobile) .profile-card p{font-size:16px!important}.right-panel:not(.right-panel-mobile) .profile-stats{gap:12px!important;margin-top:22px!important}.right-panel:not(.right-panel-mobile) .profile-stat{min-height:58px!important;border-radius:18px!important;font-size:15px!important;padding:0 12px!important}.right-panel:not(.right-panel-mobile) .side-tabs{margin:0 14px 24px!important;padding:8px!important;border-radius:20px!important}.right-panel:not(.right-panel-mobile) .side-tab{min-height:50px!important;padding:0 14px!important;border-radius:14px!important;font-size:16px!important}.right-panel:not(.right-panel-mobile) .side-block{margin:0 14px 18px!important;padding:22px 20px!important;border-radius:22px!important}.right-panel:not(.right-panel-mobile) .side-title{font-size:17px!important;margin-bottom:20px!important}.right-panel:not(.right-panel-mobile) .side-item.static strong{font-size:17px!important}.right-panel:not(.right-panel-mobile) .side-item.static span{font-size:15px!important}}@media (min-width: 901px){.app-shell.with-right-panel{grid-template-columns:clamp(260px,31vw,360px) minmax(0,1fr) clamp(430px,31vw,470px)!important}.right-panel:not(.right-panel-mobile){width:clamp(430px,31vw,470px)!important;min-width:430px!important;max-width:470px!important;flex:0 0 clamp(430px,31vw,470px)!important}.right-panel:not(.right-panel-mobile) .right-panel-head{min-height:64px!important;height:64px!important;padding:0 16px!important}.right-panel:not(.right-panel-mobile) .right-panel-title{font-size:18px!important;line-height:1.2!important;font-weight:500!important}.right-panel:not(.right-panel-mobile) .profile-card{margin:32px 16px!important;padding:28px 20px 22px!important;border-radius:20px!important}.right-panel:not(.right-panel-mobile) .profile-card .avatar,.right-panel:not(.right-panel-mobile) .profile-card .avatar-fallback{width:96px!important;height:96px!important;flex:0 0 96px!important;font-size:40px!important}.right-panel:not(.right-panel-mobile) .profile-card h3{margin-top:18px!important;font-size:24px!important;line-height:1.25!important}.right-panel:not(.right-panel-mobile) .profile-card p{font-size:18px!important;line-height:1.3!important}.right-panel:not(.right-panel-mobile) .profile-stats{gap:14px!important;margin-top:26px!important}.right-panel:not(.right-panel-mobile) .profile-stat{min-height:58px!important;border-radius:16px!important;font-size:15px!important;padding:0 12px!important}.right-panel:not(.right-panel-mobile) .side-tabs{margin:0 16px 32px!important;padding:8px!important;border-radius:18px!important;display:flex!important;grid-template-columns:none!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:auto!important}.right-panel:not(.right-panel-mobile) .side-tab{min-height:50px!important;padding:0 18px!important;border-radius:14px!important;font-size:17px!important;flex:0 0 auto!important}.right-panel:not(.right-panel-mobile) .side-block{margin:0 16px 18px!important;padding:22px 24px!important;border-radius:20px!important}}.chat-header-peer,.chat-header-peer *{text-align:left!important}.chat-header-peer{justify-content:flex-start!important}.chat-header-peer-text{align-items:flex-start!important;justify-content:center!important;text-align:left!important;flex:1 1 auto!important}.chat-header-peer .chat-header-title,.chat-header-peer .chat-header-subtitle{text-align:left!important;align-self:stretch!important;width:100%!important}@media (max-width: 900px){.chat-header-peer-text,.chat-header-peer .chat-header-title,.chat-header-peer .chat-header-subtitle{text-align:left!important;align-items:flex-start!important}}.call-screen .call-secondary-actions.active-actions,.call-overlay .call-secondary-actions.active-actions,.call-secondary-actions.active-actions.video-active-actions,.call-secondary-actions.active-actions.audio-active-actions{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(74px,1fr))!important;width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;padding-left:clamp(18px,4vw,42px)!important;padding-right:clamp(18px,4vw,42px)!important;box-sizing:border-box!important;gap:0!important;justify-items:center!important;align-items:start!important}.call-screen .call-secondary-actions.active-actions .call-mini-action,.call-overlay .call-secondary-actions.active-actions .call-mini-action,.call-secondary-actions.active-actions.video-active-actions .call-mini-action,.call-secondary-actions.active-actions.audio-active-actions .call-mini-action{width:100%!important;min-width:0!important;display:flex!important;align-items:center!important;justify-content:flex-start!important}@media (min-width: 901px){.call-screen .call-secondary-actions.active-actions,.call-overlay .call-secondary-actions.active-actions,.call-secondary-actions.active-actions.video-active-actions,.call-secondary-actions.active-actions.audio-active-actions{grid-template-columns:repeat(6,minmax(78px,1fr))!important;padding-left:28px!important;padding-right:28px!important}}@media (max-width: 900px){.call-screen .call-secondary-actions.active-actions,.call-overlay .call-secondary-actions.active-actions,.call-secondary-actions.active-actions.video-active-actions,.call-secondary-actions.active-actions.audio-active-actions{grid-template-columns:repeat(3,minmax(74px,1fr))!important;padding-left:12px!important;padding-right:12px!important;row-gap:14px!important}}.call-screen.call-screen-audio .call-top-icon-desktop-only,.call-overlay-audio .call-top-icon-desktop-only{display:none!important}.call-screen .call-secondary-actions.active-actions.audio-active-actions .call-mini-action,.call-overlay .call-secondary-actions.active-actions.audio-active-actions .call-mini-action,.call-secondary-actions.active-actions.audio-active-actions .call-mini-action{width:100%!important;min-width:0!important;display:flex!important;align-items:center!important;justify-content:flex-start!important}.call-screen.call-screen-audio .call-top-actions-right .call-top-icon[aria-label=Устройства],.call-screen.call-screen-audio .call-top-actions-right .call-top-icon[aria-label=Статистика],.call-overlay-audio .call-top-actions-right .call-top-icon[aria-label=Устройства],.call-overlay-audio .call-top-actions-right .call-top-icon[aria-label=Статистика]{display:inline-flex!important;pointer-events:auto!important;opacity:1!important;visibility:visible!important}.call-screen.call-screen-audio .call-top-actions-right .call-top-icon[aria-label="Поверх всех окон"],.call-overlay-audio .call-top-actions-right .call-top-icon[aria-label="Поверх всех окон"]{display:none!important}.call-screen.call-screen-audio .call-top-actions-right,.call-overlay-audio .call-top-actions-right{display:flex!important;gap:10px!important;justify-content:flex-end!important;align-items:center!important}.call-screen .call-secondary-actions.active-actions.audio-active-actions,.call-overlay .call-secondary-actions.active-actions.audio-active-actions,.call-secondary-actions.active-actions.audio-active-actions{display:grid!important;grid-template-columns:repeat(4,minmax(72px,1fr))!important;width:100%!important;max-width:none!important;margin:0 0 18px!important;padding-left:clamp(22px,4vw,56px)!important;padding-right:clamp(22px,4vw,56px)!important;box-sizing:border-box!important;gap:0!important;justify-items:center!important;align-items:start!important}@media (max-width:900px){.call-screen .call-secondary-actions.active-actions.audio-active-actions,.call-overlay .call-secondary-actions.active-actions.audio-active-actions,.call-secondary-actions.active-actions.audio-active-actions{grid-template-columns:repeat(4,minmax(58px,1fr))!important;padding-left:10px!important;padding-right:10px!important}}.chat-panel.mobile-open{overscroll-behavior-x:contain;touch-action:pan-y}.composer-row.voice-recording-active{gap:10px!important}.voice-recording-bar{flex:1 1 auto;min-width:0;height:46px;border-radius:23px;background:#1f2e3cf5;border:1px solid rgba(255,255,255,.08);display:flex;align-items:center;gap:10px;padding:0 12px;color:#dce8f6;overflow:hidden;user-select:none;-webkit-user-select:none}.voice-recording-bar.cancel-ready{background:#4a232af5;border-color:#ff5b5b52}.voice-record-dot{width:9px;height:9px;border-radius:999px;background:#ff4d5e;box-shadow:0 0 #ff4d5e8c;animation:voicePulse 1.2s infinite;flex:0 0 auto}@keyframes voicePulse{0%{box-shadow:0 0 #ff4d5e73;opacity:1}70%{box-shadow:0 0 0 8px #ff4d5e00;opacity:.72}to{box-shadow:0 0 #ff4d5e00;opacity:1}}.voice-record-time{min-width:42px;font-variant-numeric:tabular-nums;font-size:14px;color:#f2f6fb}.voice-record-waveform{flex:1 1 auto;min-width:44px;height:32px;display:flex;align-items:center;gap:3px;overflow:hidden}.voice-record-waveform i{width:3px;border-radius:999px;background:#50a6ffeb;display:inline-block;transition:height .12s ease}.voice-slide-hint{flex:0 0 auto;color:#a9b7c7;font-size:13px;white-space:nowrap}.voice-recording-bar.cancel-ready .voice-slide-hint{color:#ffb6b6}.voice-hold-btn.recording{background:#ef4b55!important;color:#fff!important;transform:scale(1.04)}.voice-bubble-player{width:min(310px,68vw);min-width:210px;display:flex;align-items:center;gap:10px;padding:4px 0 2px}.voice-play-btn{width:38px;height:38px;border-radius:999px;border:0;background:#4a9deff0;color:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex:0 0 auto}.voice-wave-wrap{flex:1;min-width:0;cursor:pointer}.voice-waveform-line{height:30px;display:flex;align-items:center;gap:3px}.voice-waveform-line i{width:3px;border-radius:999px;background:#9bacbe8c;display:inline-block}.voice-waveform-line i.active{background:#4a9deffa}.voice-progress-text{margin-top:1px;font-size:12px;color:#dce6f2b8;font-variant-numeric:tabular-nums}@media (max-width: 900px){.voice-slide-hint{font-size:12px}.voice-bubble-player{width:min(286px,70vw);min-width:190px}}.voice-recording-bar.locked,.mig-voice-locked .voice-recording-bar{background:#1b3042fa!important;border-color:#50a6ff5c!important}.voice-cancel-inline{border:0;background:transparent;color:#4aa3ff;font-weight:800;letter-spacing:.02em;padding:6px 2px 6px 8px;white-space:nowrap}.mig-voice-locked .voice-hold-btn,.voice-hold-btn.voice-locked{background:#2f91e8!important;color:#fff!important;transform:scale(1.05)}.voice-record-waveform{gap:1.4px!important;height:30px!important}.voice-record-waveform i,.voice-waveform-line i{width:2.2px!important;min-width:2.2px!important;border-radius:999px!important}@media (max-width: 900px){.voice-cancel-inline{font-size:12px;padding-left:4px}.voice-record-waveform{gap:1.1px!important}.voice-record-waveform i,.voice-waveform-line i{width:2px!important;min-width:2px!important}}.voice-hold-btn,.send-btn.voice-hold-btn{touch-action:none!important;-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important;pointer-events:auto!important}.composer-row.voice-preview-active,.composer-row.voice-uploading-active{gap:8px}.voice-preview-bar{flex:1;min-width:0;height:44px;border-radius:22px;background:#ffffffeb;display:flex;align-items:center;gap:8px;padding:4px 10px 4px 6px;box-shadow:0 4px 18px #00000014}.voice-preview-delete{flex:0 0 auto;color:#e54b4b}.voice-preview-audio{width:96px;max-width:30%;height:30px}.voice-preview-waveform{flex:1;min-width:60px;display:flex;align-items:center;justify-content:center;gap:2px;height:32px;overflow:hidden}.voice-preview-waveform i{width:3px;min-width:3px;border-radius:999px;background:#67a8d8;opacity:.95}.voice-preview-duration,.voice-upload-progress{flex:0 0 auto;font-size:12px;color:#536471;font-variant-numeric:tabular-nums}.voice-upload-progress{color:#2481cc;font-weight:700}.voice-hold-btn{touch-action:none;-webkit-user-select:none;user-select:none}@media (max-width: 900px){.voice-preview-audio{display:none}.voice-preview-bar{height:42px}.voice-preview-waveform i{width:2px;min-width:2px}}.voice-recording-bar.locked{position:relative;overflow:visible}.voice-recording-bar.paused .voice-record-dot{animation:none;opacity:.45}.voice-lock-floating-controls{position:absolute;right:8px;bottom:calc(100% + 10px);display:flex;flex-direction:column;gap:8px;align-items:center;z-index:20}.voice-lock-round-btn{width:42px;height:42px;border-radius:999px;border:0;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;background:#fffffff5;box-shadow:0 10px 28px #0f172a2e;color:#2481cc}.voice-lock-round-btn.primary{background:#2481cc;color:#fff}.voice-lock-round-btn:active{transform:scale(.96)}@media (max-width: 700px){.voice-lock-floating-controls{right:4px;bottom:calc(100% + 8px)}.voice-lock-round-btn{width:40px;height:40px}}.composer-row.voice-recording-active{position:relative!important;overflow:visible!important}.voice-recording-bar.locked{position:relative!important;overflow:visible!important;padding-right:12px!important}.voice-recording-bar.locked .voice-lock-floating-controls{display:none!important}.voice-lock-side-controls{position:absolute!important;right:10px!important;bottom:calc(100% + 8px)!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:8px!important;z-index:80!important;pointer-events:auto!important}.voice-lock-side-controls .voice-lock-round-btn{width:44px!important;height:44px!important;border-radius:999px!important;box-shadow:0 12px 26px #00000038!important}@media (max-width: 700px){.voice-lock-side-controls{right:8px!important;bottom:calc(100% + 7px)!important;gap:7px!important}.voice-lock-side-controls .voice-lock-round-btn{width:42px!important;height:42px!important}}.voice-record-preview-inline{width:34px!important;height:34px!important;border:0!important;border-radius:999px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;background:#4a9def3d!important;color:#58a8ff!important;font-size:17px!important;line-height:1!important;padding:0!important;margin-left:2px!important}.voice-app-like-lock-controls{position:absolute!important;right:6px!important;bottom:calc(100% + 8px)!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:0!important;z-index:90!important}.voice-app-like-lock-controls .voice-app-round-btn.preview{display:none!important}.voice-app-like-lock-controls .voice-app-round-btn.pause-toggle{width:42px!important;height:42px!important;border-radius:999px!important;border:0!important;background:#2c3b4ef5!important;color:#fff!important;box-shadow:0 10px 24px #00000038!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:21px!important;font-weight:800!important}.voice-recording-bar.locked .voice-slide-hint{display:none!important}.voice-recording-bar.locked{padding-right:18px!important}@media (max-width:700px){.voice-app-like-lock-controls{right:4px!important;bottom:calc(100% + 7px)!important}.voice-app-like-lock-controls .voice-app-round-btn.pause-toggle{width:40px!important;height:40px!important}.voice-record-preview-inline{width:32px!important;height:32px!important}}.composer-row.voice-recording-active{position:relative!important;gap:14px!important;align-items:flex-end!important}.composer-row.voice-recording-active .voice-recording-bar.locked{height:54px!important;min-height:54px!important;border-radius:27px!important;background:#223444fa!important;border:0!important;padding:0 18px 0 22px!important;gap:8px!important;box-shadow:none!important}.composer-row.voice-recording-active .voice-recording-bar.locked .voice-record-time{min-width:auto!important;font-size:22px!important;line-height:1!important;color:#f4f8ff!important;font-variant-numeric:tabular-nums!important}.composer-row.voice-recording-active .voice-recording-bar.locked .voice-record-dot{width:8px!important;height:8px!important;margin-left:2px!important;background:#ff263a!important;box-shadow:none!important;animation:voicePulse 1.2s infinite!important}.composer-row.voice-recording-active:has(.voice-record-action-zone.paused) .voice-recording-bar.locked .voice-record-dot,.composer-row.voice-recording-active .voice-recording-bar.locked.paused .voice-record-dot{background:#8fa0b0!important;animation:none!important;opacity:1!important}.composer-row.voice-recording-active .voice-recording-bar.locked .voice-record-waveform{display:none!important}.voice-record-spacer{flex:1 1 auto!important;min-width:20px!important}.composer-row.voice-recording-active .voice-recording-bar.locked .voice-slide-hint,.voice-cancel-text{margin-left:auto!important;border:0!important;background:transparent!important;color:#4a9dff!important;font-weight:800!important;font-size:16px!important;letter-spacing:.02em!important;white-space:nowrap!important;padding:0 2px!important}.voice-record-preview-inline{width:40px!important;height:40px!important;border:0!important;border-radius:999px!important;display:none!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;background:#304d69fa!important;color:#58a8ff!important;padding:0!important;margin-left:12px!important;box-shadow:none!important}.composer-row.voice-recording-active:has(.voice-record-action-zone.paused) .voice-record-preview-inline,.composer-row.voice-recording-active .voice-recording-bar.locked.paused .voice-record-preview-inline{display:inline-flex!important}.voice-record-action-zone{position:relative!important;flex:0 0 auto!important;width:60px!important;height:88px!important;display:flex!important;align-items:flex-end!important;justify-content:center!important}.voice-record-action-zone .send-btn.voice-hold-btn{width:58px!important;height:58px!important;border-radius:999px!important;background:#4a9dff!important;color:#fff!important;box-shadow:none!important;transform:none!important;flex:0 0 auto!important}.voice-record-action-zone .send-btn.voice-hold-btn.voice-locked{background:#4a9dff!important}.voice-app-like-lock-controls{position:absolute!important;right:6px!important;bottom:66px!important;z-index:120!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;pointer-events:auto!important}.voice-app-like-lock-controls .voice-app-round-btn.pause-toggle{width:42px!important;height:42px!important;border-radius:999px!important;border:0!important;background:#253748f5!important;color:#fff!important;box-shadow:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:18px!important;font-weight:900!important;line-height:1!important;padding:0!important}@media (max-width:700px){.composer-row.voice-recording-active{gap:10px!important}.composer-row.voice-recording-active .voice-recording-bar.locked{height:54px!important;min-height:54px!important;padding-left:18px!important;padding-right:14px!important}.composer-row.voice-recording-active .voice-recording-bar.locked .voice-record-time{font-size:21px!important}.voice-record-action-zone{width:58px!important;height:88px!important}.voice-record-action-zone .send-btn.voice-hold-btn{width:56px!important;height:56px!important}.voice-app-like-lock-controls{right:6px!important;bottom:64px!important}.voice-app-like-lock-controls .voice-app-round-btn.pause-toggle{width:40px!important;height:40px!important}.voice-record-preview-inline{width:38px!important;height:38px!important;margin-left:10px!important}}.chat-composer-stack,.composer-row.voice-recording-active{overflow:visible!important}.composer-row.voice-recording-active{position:relative!important;display:flex!important;align-items:center!important;gap:10px!important;min-height:74px!important;height:74px!important;padding:9px 8px 9px 16px!important;box-sizing:border-box!important}.composer-row.voice-recording-active .voice-recording-bar.locked{flex:1 1 auto!important;height:54px!important;min-height:54px!important;max-height:54px!important;border-radius:28px!important;display:flex!important;align-items:center!important;padding:0 18px 0 22px!important;margin:0!important;background:#223444fa!important;box-sizing:border-box!important}.composer-row.voice-recording-active .voice-recording-bar.locked .voice-record-time{order:1!important;font-size:22px!important;line-height:1!important;min-width:0!important;margin:0!important}.composer-row.voice-recording-active .voice-recording-bar.locked .voice-record-dot{order:2!important;width:8px!important;height:8px!important;margin:0 0 0 10px!important;flex:0 0 auto!important}.composer-row.voice-recording-active .voice-recording-bar.locked .voice-record-preview-inline{order:1!important;margin:0 12px 0 0!important;width:40px!important;height:40px!important;flex:0 0 40px!important}.composer-row.voice-recording-active:has(.voice-record-action-zone.paused) .voice-recording-bar.locked .voice-record-preview-inline,.composer-row.voice-recording-active.paused .voice-recording-bar.locked .voice-record-preview-inline{display:inline-flex!important}.composer-row.voice-recording-active .voice-recording-bar.locked .voice-record-spacer{order:3!important;flex:1 1 auto!important}.composer-row.voice-recording-active .voice-recording-bar.locked .voice-slide-hint,.composer-row.voice-recording-active .voice-recording-bar.locked .voice-cancel-text{order:4!important;display:inline-flex!important;align-items:center!important;margin-left:auto!important;color:#4a9dff!important;font-weight:800!important;font-size:16px!important;line-height:1!important;white-space:nowrap!important}.voice-record-action-zone{position:relative!important;width:62px!important;height:74px!important;flex:0 0 62px!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;overflow:visible!important}.voice-record-action-zone .send-btn.voice-hold-btn{width:58px!important;height:58px!important;min-width:58px!important;min-height:58px!important;margin:0!important;border-radius:999px!important;flex:0 0 auto!important}.voice-app-like-lock-controls{position:absolute!important;right:10px!important;bottom:64px!important;z-index:200!important;display:flex!important;align-items:center!important;justify-content:center!important;pointer-events:auto!important}.voice-app-like-lock-controls .voice-app-round-btn.pause-toggle{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;border-radius:999px!important;background:#253748fa!important;color:#fff!important}@media (max-width: 700px){.composer-row.voice-recording-active{height:74px!important;min-height:74px!important;padding:9px 8px 9px 16px!important;gap:8px!important}.voice-record-action-zone{width:60px!important;flex-basis:60px!important;height:74px!important}.voice-record-action-zone .send-btn.voice-hold-btn{width:56px!important;height:56px!important;min-width:56px!important;min-height:56px!important}.voice-app-like-lock-controls{right:9px!important;bottom:62px!important}.voice-app-like-lock-controls .voice-app-round-btn.pause-toggle{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important}.composer-row.voice-recording-active .voice-recording-bar.locked .voice-record-time{font-size:21px!important}}.composer-row.voice-recording-active{min-height:60px!important;height:60px!important;padding:4px 8px 4px 16px!important;align-items:center!important;gap:8px!important}.composer-row.voice-recording-active .voice-recording-bar.locked{height:46px!important;min-height:46px!important;max-height:46px!important;border-radius:24px!important;padding-left:16px!important;padding-right:14px!important}.composer-row.voice-recording-active .voice-recording-bar.locked .voice-record-time{font-size:19px!important}.composer-row.voice-recording-active .voice-recording-bar.locked .voice-record-dot{width:7px!important;height:7px!important;margin-left:8px!important}.voice-record-preview-inline{width:34px!important;height:34px!important;flex-basis:34px!important;margin-right:8px!important}.composer-row.voice-recording-active .send-btn.voice-hold-btn,.composer-row.voice-recording-active .send-btn.voice-hold-btn.voice-locked{width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;margin:0!important;align-self:center!important}.voice-app-like-lock-controls{right:11px!important;bottom:54px!important}.voice-app-like-lock-controls .voice-app-round-btn.pause-toggle{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important}.composer-row.voice-paused .voice-recording-bar.locked .voice-record-dot{background:#8fa0b0!important;animation:none!important}@media (max-width:700px){.composer-row.voice-recording-active{height:60px!important;min-height:60px!important;padding:4px 8px 4px 16px!important}.composer-row.voice-recording-active .voice-recording-bar.locked{height:46px!important;min-height:46px!important;max-height:46px!important}.composer-row.voice-recording-active .send-btn.voice-hold-btn,.composer-row.voice-recording-active .send-btn.voice-hold-btn.voice-locked{width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important}.voice-app-like-lock-controls{right:11px!important;bottom:54px!important}.voice-app-like-lock-controls .voice-app-round-btn.pause-toggle{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important}.composer-row.voice-recording-active .voice-recording-bar.locked .voice-record-time{font-size:19px!important}}.chat-panel .composer:has(.composer-row.voice-recording-active),.chat-panel footer.composer:has(.composer-row.voice-recording-active){min-height:56px!important;height:auto!important;padding-top:2px!important;padding-bottom:calc(2px + env(safe-area-inset-bottom))!important;box-sizing:border-box!important}.chat-composer-stack:has(.composer-row.voice-recording-active){min-height:52px!important;height:52px!important}.composer-row.voice-recording-active{height:52px!important;min-height:52px!important;max-height:52px!important;padding:2px 6px 2px 14px!important;gap:7px!important;box-sizing:border-box!important}.composer-row.voice-recording-active .voice-recording-bar.locked{height:40px!important;min-height:40px!important;max-height:40px!important;border-radius:22px!important;padding-left:14px!important;padding-right:12px!important}.composer-row.voice-recording-active .voice-recording-bar.locked .voice-record-time{font-size:18px!important}.composer-row.voice-recording-active .voice-recording-bar.locked .voice-record-dot{width:7px!important;height:7px!important;margin-left:7px!important}.composer-row.voice-recording-active .voice-record-preview-inline{width:30px!important;height:30px!important;min-width:30px!important;flex-basis:30px!important;margin-right:7px!important}.composer-row.voice-recording-active .send-btn.voice-hold-btn,.composer-row.voice-recording-active .send-btn.voice-hold-btn.voice-locked{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;max-width:48px!important;max-height:48px!important;margin:0!important}.voice-app-like-lock-controls{right:12px!important;bottom:48px!important}.voice-app-like-lock-controls .voice-app-round-btn.pause-toggle{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important}@media (max-width:700px){.chat-panel.mobile-open .composer:has(.composer-row.voice-recording-active),.chat-panel.mobile-open footer.composer:has(.composer-row.voice-recording-active){min-height:56px!important;padding-top:2px!important;padding-bottom:calc(2px + env(safe-area-inset-bottom))!important}.chat-composer-stack:has(.composer-row.voice-recording-active){height:52px!important;min-height:52px!important}.composer-row.voice-recording-active{height:52px!important;min-height:52px!important;max-height:52px!important;padding:2px 6px 2px 14px!important}.composer-row.voice-recording-active .voice-recording-bar.locked{height:40px!important;min-height:40px!important;max-height:40px!important}.composer-row.voice-recording-active .send-btn.voice-hold-btn,.composer-row.voice-recording-active .send-btn.voice-hold-btn.voice-locked{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important}.voice-app-like-lock-controls{right:12px!important;bottom:48px!important}.voice-app-like-lock-controls .voice-app-round-btn.pause-toggle{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important}}.chat-panel .composer:has(.composer-row.voice-recording-active),.chat-panel footer.composer:has(.composer-row.voice-recording-active){min-height:46px!important;height:auto!important;padding-top:2px!important;padding-bottom:2px!important}.chat-composer-stack:has(.composer-row.voice-recording-active){height:46px!important;min-height:46px!important;max-height:46px!important}.composer-row.voice-recording-active{height:46px!important;min-height:46px!important;max-height:46px!important;padding:1px 6px 1px 14px!important;gap:7px!important}.composer-row.voice-recording-active .voice-recording-bar.locked{height:34px!important;min-height:34px!important;max-height:34px!important;border-radius:18px!important;padding-top:0!important;padding-bottom:0!important}.composer-row.voice-recording-active .voice-recording-bar.locked .voice-record-time{font-size:17px!important;line-height:1!important}.composer-row.voice-recording-active .voice-record-preview-inline{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;font-size:15px!important}.composer-row.voice-recording-active .send-btn.voice-hold-btn,.composer-row.voice-recording-active .send-btn.voice-hold-btn.voice-locked{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}.voice-app-like-lock-controls{right:11px!important;bottom:44px!important}.voice-app-like-lock-controls .voice-app-round-btn.pause-toggle{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;font-size:16px!important}@media (max-width:700px){.chat-panel.mobile-open .composer:has(.composer-row.voice-recording-active),.chat-panel.mobile-open footer.composer:has(.composer-row.voice-recording-active){min-height:46px!important;padding-top:2px!important;padding-bottom:2px!important}.chat-composer-stack:has(.composer-row.voice-recording-active){height:46px!important;min-height:46px!important;max-height:46px!important}.composer-row.voice-recording-active{height:46px!important;min-height:46px!important;max-height:46px!important;padding:1px 6px 1px 14px!important}.composer-row.voice-recording-active .voice-recording-bar.locked{height:34px!important;min-height:34px!important;max-height:34px!important}.composer-row.voice-recording-active .send-btn.voice-hold-btn,.composer-row.voice-recording-active .send-btn.voice-hold-btn.voice-locked{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}.voice-app-like-lock-controls{right:11px!important;bottom:44px!important}.voice-app-like-lock-controls .voice-app-round-btn.pause-toggle{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important}}.composer-row:not(.voice-recording-active):not(.voice-preview-active):not(.voice-uploading-active){min-height:42px!important;height:42px!important;max-height:42px!important;padding:3px 7px!important;gap:6px!important;border-radius:19px!important}.composer-row:not(.voice-recording-active):not(.voice-preview-active):not(.voice-uploading-active) input,.composer-row:not(.voice-recording-active):not(.voice-preview-active):not(.voice-uploading-active) textarea{min-height:30px!important;height:30px!important;max-height:30px!important;line-height:30px!important;padding:0 6px!important}.composer-row:not(.voice-recording-active):not(.voice-preview-active):not(.voice-uploading-active) .icon-btn,.composer-row:not(.voice-recording-active):not(.voice-preview-active):not(.voice-uploading-active) .send-btn{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important}.chat-composer-stack:not(:has(.composer-row.voice-recording-active)):not(:has(.composer-row.voice-preview-active)){min-height:42px!important}.chat-panel .composer:not(:has(.composer-row.voice-recording-active)):not(:has(.composer-row.voice-preview-active)),.chat-panel footer.composer:not(:has(.composer-row.voice-recording-active)):not(:has(.composer-row.voice-preview-active)){min-height:44px!important;padding-top:3px!important;padding-bottom:3px!important}@media (max-width: 920px){.chat-panel.mobile-open .composer-row:not(.voice-recording-active):not(.voice-preview-active):not(.voice-uploading-active){min-height:42px!important;height:42px!important;max-height:42px!important;padding:3px 7px!important}.chat-panel.mobile-open .composer:not(:has(.composer-row.voice-recording-active)):not(:has(.composer-row.voice-preview-active)),.chat-panel.mobile-open footer.composer:not(:has(.composer-row.voice-recording-active)):not(:has(.composer-row.voice-preview-active)){min-height:44px!important;padding-top:3px!important;padding-bottom:3px!important}.chat-panel.mobile-open .message-list{bottom:56px!important;padding-bottom:68px!important;scroll-padding-bottom:68px!important}}.composer-row:not(.voice-recording-active):not(.voice-preview-active):not(.voice-uploading-active){align-items:center!important;overflow:visible!important}.composer-row:not(.voice-recording-active):not(.voice-preview-active):not(.voice-uploading-active) .send-btn,.composer-row:not(.voice-recording-active):not(.voice-preview-active):not(.voice-uploading-active) .send-btn.voice-hold-btn{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;max-width:36px!important;max-height:36px!important;margin:0!important;align-self:center!important;position:relative!important;top:0!important;right:auto!important;bottom:auto!important;left:auto!important;transform:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 36px!important;border-radius:999px!important}.composer-row:not(.voice-recording-active):not(.voice-preview-active):not(.voice-uploading-active) .send-btn svg,.composer-row:not(.voice-recording-active):not(.voice-preview-active):not(.voice-uploading-active) .send-btn.voice-hold-btn svg{width:18px!important;height:18px!important;display:block!important;margin:0!important;transform:none!important}@media (max-width: 920px){.chat-panel.mobile-open .composer-row:not(.voice-recording-active):not(.voice-preview-active):not(.voice-uploading-active){align-items:center!important;overflow:visible!important}.chat-panel.mobile-open .composer-row:not(.voice-recording-active):not(.voice-preview-active):not(.voice-uploading-active) .send-btn,.chat-panel.mobile-open .composer-row:not(.voice-recording-active):not(.voice-preview-active):not(.voice-uploading-active) .send-btn.voice-hold-btn{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;max-width:36px!important;max-height:36px!important;margin:0!important;align-self:center!important;position:relative!important;top:0!important;bottom:auto!important;transform:none!important;flex:0 0 36px!important}}.voice-app-like-lock-controls{bottom:56px!important}@media (max-width:700px){.voice-app-like-lock-controls{bottom:56px!important}}.voice-app-like-lock-controls{bottom:66px!important}@media (max-width:700px){.voice-app-like-lock-controls{bottom:66px!important}}.voice-app-like-lock-controls .voice-app-round-btn.pause-toggle.resume-mode{font-size:0!important;line-height:1!important}.voice-app-like-lock-controls .voice-app-round-btn.pause-toggle.resume-mode:before{content:"";width:20px!important;height:20px!important;display:block!important;background-repeat:no-repeat!important;background-position:center!important;background-size:20px 20px!important;background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"/><path d="M19 10v2a7 7 0 0 1-14 0v-2"/><line x1="12" x2="12" y1="19" y2="22"/></svg>')!important}.voice-app-like-lock-controls .voice-app-round-btn.pause-toggle.resume-mode svg{display:none!important}.voice-app-like-lock-controls .voice-app-round-btn.pause-toggle:not(.resume-mode){font-size:0!important;line-height:1!important}.voice-app-like-lock-controls .voice-app-round-btn.pause-toggle:not(.resume-mode):before{content:""!important;width:18px!important;height:18px!important;display:block!important;background-repeat:no-repeat!important;background-position:center!important;background-size:18px 18px!important;background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><rect x="7" y="5" width="3.6" height="14" rx="1.2" fill="white"/><rect x="13.4" y="5" width="3.6" height="14" rx="1.2" fill="white"/></svg>')!important}.voice-app-like-lock-controls .voice-app-round-btn.pause-toggle:not(.resume-mode) svg,.voice-app-like-lock-controls .voice-app-round-btn.pause-toggle:not(.resume-mode) .voice-pause-bars{display:none!important}.emoji-picker,.emoji-picker-item,.emoji-tab,.context-reaction-btn,.message-bubble,.composer-input,textarea,input{font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,Segoe UI,"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}.emoji-picker-item,.emoji-tab,.context-reaction-btn{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;font-variant-emoji:emoji}.emoji-picker-item{font-size:26px!important;filter:saturate(1.08) contrast(1.02);transition:transform .12s ease,background-color .12s ease,filter .12s ease}.emoji-picker-item:hover{transform:scale(1.16);filter:saturate(1.14) contrast(1.04)}.emoji-tab{font-size:22px!important}
/* V63 Apple-like image emoji renderer */.emoji-picker-item,.emoji-tab{font-family:inherit!important}.mig-apple-like-emoji{width:30px;height:30px;object-fit:contain;display:block;pointer-events:none;user-select:none;filter:saturate(1.04) contrast(1.03)}.mig-emoji-tab-img{width:26px;height:26px}.emoji-picker-item .mig-apple-like-emoji{width:31px;height:31px}.mig-apple-like-emoji-fallback{font-size:28px;line-height:1}.emoji-picker-item:hover .mig-apple-like-emoji{transform:scale(1.08);transition:transform .12s ease}
/* V64: render Apple-like image emoji inside sent/received messages and reactions too. */
.bubble-text .mig-emoji-text,.reply-preview .mig-emoji-text{display:inline;white-space:pre-wrap;overflow-wrap:anywhere}.bubble-text .mig-apple-like-emoji-inline,.reply-preview .mig-apple-like-emoji-inline{width:1.28em;height:1.28em;display:inline-block;vertical-align:-.24em;margin:0 .035em;object-fit:contain}.reaction-chip .mig-apple-like-emoji-reaction{width:18px;height:18px;display:block;object-fit:contain}
/* V65 web built fallback: category icons rendered by CSS masks if runtime JS uses mig-emoji-tab-icon. */
.mig-emoji-tab-icon{width:21px;height:21px;display:block;background:currentColor;-webkit-mask:center/contain no-repeat;mask:center/contain no-repeat;}
.mig-emoji-tab-icon-recent{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");}
.mig-emoji-tab-icon-smileys{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 10h.01M16 10h.01M8 15c1.2 1 2.5 1.5 4 1.5s2.8-.5 4-1.5'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 10h.01M16 10h.01M8 15c1.2 1 2.5 1.5 4 1.5s2.8-.5 4-1.5'/%3E%3C/svg%3E");}
.mig-emoji-tab-icon-gestures{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 11V5a2 2 0 0 1 4 0v5M12 10V4a2 2 0 0 1 4 0v7M16 11V6a2 2 0 0 1 4 0v8a8 8 0 0 1-16 0v-3a2 2 0 0 1 4 0z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 11V5a2 2 0 0 1 4 0v5M12 10V4a2 2 0 0 1 4 0v7M16 11V6a2 2 0 0 1 4 0v8a8 8 0 0 1-16 0v-3a2 2 0 0 1 4 0z'/%3E%3C/svg%3E");}
.mig-emoji-tab-icon-hearts{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.6l-1-1a5.5 5.5 0 0 0-7.8 7.8l1 1L12 21l7.8-7.6 1-1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.6l-1-1a5.5 5.5 0 0 0-7.8 7.8l1 1L12 21l7.8-7.6 1-1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E");}
.mig-emoji-tab-icon-animals{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='13' r='5'/%3E%3Cpath d='M5 8 3.5 4M17 8 18.5 4M9 13h.01M13 13h.01M10 16c1 .6 2 .6 3 0'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='13' r='5'/%3E%3Cpath d='M5 8 3.5 4M17 8 18.5 4M9 13h.01M13 13h.01M10 16c1 .6 2 .6 3 0'/%3E%3C/svg%3E");}
.mig-emoji-tab-icon-food{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 3v7M8 3v7M6 3v18M15 3v18M15 3c4 2 4 8 0 9'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 3v7M8 3v7M6 3v18M15 3v18M15 3c4 2 4 8 0 9'/%3E%3C/svg%3E");}
.mig-emoji-tab-icon-activity{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18'/%3E%3C/svg%3E");}
.mig-emoji-tab-icon-objects{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 22h4M12 2a7 7 0 0 0-4 12c1 1 1 2 1 3h6c0-1 0-2 1-3a7 7 0 0 0-4-12z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 22h4M12 2a7 7 0 0 0-4 12c1 1 1 2 1 3h6c0-1 0-2 1-3a7 7 0 0 0-4-12z'/%3E%3C/svg%3E");}
.mig-emoji-tab-icon-flags{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 22V4M5 4h13l-2 5 2 5H5'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 22V4M5 4h13l-2 5 2 5H5'/%3E%3C/svg%3E");}

/* V67: actual built composer Apple-like emoji renderer */
.composer-emoji-input-wrap{position:relative;flex:1 1 auto;min-width:0;height:40px;display:flex;align-items:center;overflow:hidden}
.composer-emoji-input-wrap .composer-emoji-input-real,.composer-row input.composer-emoji-input-real{width:100%!important;height:40px!important;min-width:0!important;background:transparent!important;color:transparent!important;-webkit-text-fill-color:transparent!important;text-shadow:none!important;caret-color:var(--text,#e8eef5)!important;position:relative!important;z-index:2!important;border:0!important;outline:none!important;padding:0!important;box-shadow:none!important;font:inherit!important;line-height:40px!important}
.composer-emoji-input-render{position:absolute;inset:0;z-index:1;pointer-events:none;display:flex;align-items:center;min-width:0;color:var(--text,#e8eef5);white-space:pre;overflow:hidden;text-overflow:clip;font:inherit;line-height:40px}
.composer-emoji-input-render.placeholder{color:var(--muted,#8b98a8);opacity:.78}
.composer-emoji-input-render .mig-emoji-text{display:inline-flex;align-items:center;min-width:0;white-space:pre}
.composer-emoji-input-render .mig-apple-like-emoji-inline{width:1.25em;height:1.25em;display:inline-block;vertical-align:-.23em;margin:0 .035em;object-fit:contain;flex:0 0 auto}

/* MIG v68: composer emoji selection + reply overlay fix */
.composer-row .composer-emoji-input-wrap input.composer-emoji-input-real::selection{color:transparent!important;-webkit-text-fill-color:transparent!important;background:rgba(74,157,255,.32)!important}.composer-row .composer-emoji-input-wrap input.composer-emoji-input-real::-moz-selection{color:transparent!important;background:rgba(74,157,255,.32)!important}.composer-row .composer-emoji-input-wrap input.composer-emoji-input-real:focus,.composer-row .composer-emoji-input-wrap input.composer-emoji-input-real:active{color:transparent!important;-webkit-text-fill-color:transparent!important}.composer-row .composer-emoji-input-wrap:focus-within .composer-emoji-input-render{z-index:3}.composer-row .composer-emoji-input-wrap:focus-within input.composer-emoji-input-real{z-index:4}@media (max-width:920px){.chat-panel.mobile-open .chat-composer-stack{gap:0!important;padding-bottom:max(6px,env(safe-area-inset-bottom))!important}.chat-panel.mobile-open .chat-composer-stack .composer-row{z-index:2!important}.chat-panel.mobile-open .chat-composer-stack .composer-reply{position:absolute!important;left:10px!important;right:10px!important;bottom:calc(100% + 6px)!important;z-index:1!important;min-height:0!important;max-height:46px!important;padding:7px 10px!important;margin:0!important;overflow:hidden!important;border-radius:14px!important;background:rgba(23,33,43,.98)!important;box-shadow:0 8px 18px rgba(0,0,0,.2)!important}.chat-panel.mobile-open .chat-composer-stack .composer-reply div{min-width:0!important;gap:1px!important}.chat-panel.mobile-open .chat-composer-stack .composer-reply strong{font-size:12px!important;line-height:14px!important}.chat-panel.mobile-open .chat-composer-stack .composer-reply span{display:block!important;max-width:calc(100vw - 82px)!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:12px!important;line-height:14px!important}.chat-panel.mobile-open .message-list{padding-bottom:calc(92px + env(safe-area-inset-bottom) + var(--keyboard-offset,0px))!important;scroll-padding-bottom:calc(108px + env(safe-area-inset-bottom) + var(--keyboard-offset,0px))!important}}

/* MIG WEB v69: iPhone keyboard positioning polish */
@media (max-width:760px){@supports (-webkit-touch-callout:none){.chat-panel.mobile-open .composer:has(.composer-row.voice-recording-active),.chat-panel.mobile-open footer.composer:has(.composer-row.voice-recording-active){padding-bottom:max(6px,calc(env(safe-area-inset-bottom) + 2px))!important;transform:translateY(-7px)!important;will-change:transform!important}.chat-panel.mobile-open .composer:has(.composer-row.voice-recording-active) .composer-row.voice-recording-active{margin-bottom:0!important}.chat-panel.mobile-open .composer:focus-within:not(:has(.composer-row.voice-recording-active)):not(:has(.composer-row.voice-preview-active)):not(:has(.composer-row.voice-uploading-active)),.chat-panel.mobile-open footer.composer:focus-within:not(:has(.composer-row.voice-recording-active)):not(:has(.composer-row.voice-preview-active)):not(:has(.composer-row.voice-uploading-active)){transform:translateY(4px)!important;padding-bottom:max(2px,env(safe-area-inset-bottom))!important;will-change:transform!important}.chat-panel.mobile-open .composer:focus-within:not(:has(.composer-row.voice-recording-active)):not(:has(.composer-row.voice-preview-active)):not(:has(.composer-row.voice-uploading-active)) .composer-row{margin-bottom:0!important}}}

/* MIG WEB v70: raise iPhone voice recording bar and lift desktop reply preview */
@media (min-width:901px){.chat-composer-stack .composer-reply{position:absolute!important;left:12px!important;right:12px!important;bottom:calc(100% + 74px)!important;margin:0!important;z-index:20!important;max-height:58px!important;overflow:hidden!important;box-shadow:0 12px 28px rgba(0,0,0,.24)!important;backdrop-filter:blur(14px)!important;-webkit-backdrop-filter:blur(14px)!important}.chat-composer-stack:has(.composer-reply){position:relative!important}}
@media (max-width:760px){@supports (-webkit-touch-callout:none){.chat-panel.mobile-open .chat-composer-stack:has(.composer-row.voice-recording-active){transform:translateY(-42px)!important;padding-bottom:0!important;z-index:10030!important}.chat-panel.mobile-open .chat-composer-stack:has(.composer-row.voice-recording-active) .composer-row.voice-recording-active{margin-bottom:0!important;min-height:64px!important}.chat-panel.mobile-open .chat-composer-stack:has(.composer-row.voice-recording-active) .voice-recording-bar,.chat-panel.mobile-open .chat-composer-stack:has(.composer-row.voice-recording-active) .voice-app-like-lock-controls{transform:none!important}.chat-panel.mobile-open .message-list:has(~ .composer .chat-composer-stack .composer-row.voice-recording-active){bottom:118px!important}}}

/* MIG WEB v71: desktop reply card returned down to composer; iPhone keyboard composer lowered */
@media (min-width:901px){.chat-composer-stack:has(.composer-reply){position:relative!important}.chat-composer-stack .composer-reply{position:absolute!important;left:12px!important;right:12px!important;bottom:calc(100% + 6px)!important;margin:0!important;z-index:20!important}}
@media (max-width:760px){@supports (-webkit-touch-callout:none){.chat-panel.mobile-open .composer:focus-within:not(:has(.composer-row.voice-recording-active)):not(:has(.composer-row.voice-preview-active)):not(:has(.composer-row.voice-uploading-active)),.chat-panel.mobile-open footer.composer:focus-within:not(:has(.composer-row.voice-recording-active)):not(:has(.composer-row.voice-preview-active)):not(:has(.composer-row.voice-uploading-active)),.chat-panel.mobile-open .chat-composer-stack:focus-within:not(:has(.composer-row.voice-recording-active)):not(:has(.composer-row.voice-preview-active)):not(:has(.composer-row.voice-uploading-active)){transform:translateY(16px)!important;padding-bottom:max(0px,env(safe-area-inset-bottom))!important;will-change:transform!important}}}

/* MIG WEB v81: desktop emoji popup width fix. */
@media (min-width: 921px){.chat-panel .emoji-picker,.chat-bounded-emoji-picker,.emoji-picker{width:min(430px,calc(100vw - 24px))!important;max-width:430px!important}.emoji-picker-tabs{gap:7px!important;padding-left:2px!important;padding-right:2px!important}}

/* MIG V83: App-like voice transcription UI, fixed deployed layout */
.voice-bubble-player{
  width:min(330px,72vw)!important;
  min-width:210px!important;
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr)!important;
  grid-auto-rows:auto!important;
  column-gap:10px!important;
  row-gap:7px!important;
  align-items:center!important;
  padding:4px 0 2px!important;
}
.voice-bubble-player>.voice-play-btn{grid-column:1!important;grid-row:1!important;align-self:center!important;justify-self:start!important;}
.voice-bubble-player>.voice-wave-wrap{grid-column:2!important;grid-row:1!important;min-width:0!important;width:100%!important;}
.voice-bubble-player>audio{display:none!important;}
.voice-bubble-player>.voice-transcribe-btn,
.voice-bubble-player>.voice-transcript-status,
.voice-bubble-player>.voice-transcript-text{
  grid-column:2!important;
  margin:0!important;
  max-width:100%!important;
  position:static!important;
  z-index:auto!important;
}
.voice-bubble-player>.voice-transcribe-btn{
  justify-self:start!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
  min-height:28px!important;
  padding:6px 11px 6px 8px!important;
  border-radius:999px!important;
  background:rgba(74,157,239,.16)!important;
  color:#58a8ff!important;
  font-size:12.5px!important;
  font-weight:750!important;
  line-height:1!important;
  box-shadow:inset 0 0 0 1px rgba(74,157,239,.13)!important;
  -webkit-tap-highlight-color:transparent!important;
}
.voice-bubble-player>.voice-transcribe-btn::before{
  content:'A';
  width:18px;
  height:18px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  background:rgba(74,157,239,.92);
  color:#fff;
  font-size:11px;
  font-weight:900;
  letter-spacing:-.6px;
}
.voice-bubble-player>.voice-transcript-status{
  justify-self:start!important;
  min-height:28px!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
  padding:5px 10px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.06)!important;
  color:rgba(220,230,242,.78)!important;
  font-size:12.5px!important;
  font-weight:700!important;
  line-height:1!important;
}
.voice-bubble-player>.voice-transcript-status::before{
  content:'';
  width:14px;
  height:14px;
  border-radius:999px;
  border:2px solid currentColor;
  border-right-color:transparent;
  opacity:.9;
  animation:migVoiceTranscriptSpin .75s linear infinite;
}
.voice-bubble-player>.voice-transcript-status::after{
  content:'•••';
  display:inline-block;
  width:18px;
  overflow:hidden;
  letter-spacing:1px;
  opacity:.8;
  animation:migVoiceTranscriptDots 1.2s steps(4,end) infinite;
}
@keyframes migVoiceTranscriptSpin{to{transform:rotate(360deg)}}
@keyframes migVoiceTranscriptDots{0%{width:0}33%{width:6px}66%{width:12px}100%{width:18px}}
.voice-bubble-player>.voice-transcript-text{
  padding:8px 10px!important;
  border-radius:13px!important;
  background:rgba(255,255,255,.07)!important;
  color:rgba(244,248,255,.96)!important;
  font-size:14px!important;
  line-height:1.36!important;
  white-space:pre-wrap!important;
  word-break:break-word!important;
  overflow-wrap:anywhere!important;
}
.bubble.mine .voice-bubble-player>.voice-transcribe-btn{background:rgba(255,255,255,.18)!important;color:#fff!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)!important;}
.bubble.mine .voice-bubble-player>.voice-transcribe-btn::before{background:rgba(255,255,255,.24)!important;}
.bubble.mine .voice-bubble-player>.voice-transcript-status{background:rgba(255,255,255,.13)!important;color:rgba(255,255,255,.84)!important;}
.bubble.mine .voice-bubble-player>.voice-transcript-text{background:rgba(255,255,255,.13)!important;color:#fff!important;}
@media (max-width:700px){.voice-bubble-player{width:min(310px,78vw)!important;min-width:190px!important;}}
.voice-bubble-player{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;gap:8px 10px!important;width:min(430px,72vw)!important;min-width:min(300px,72vw)!important;padding:4px 0 2px!important}.voice-bubble-player>audio{display:none!important}.voice-main-row{flex:1 0 100%;display:flex;align-items:center;gap:10px;width:100%;min-width:0}.voice-bubble-player>.voice-play-btn{flex:0 0 auto}.voice-bubble-player>.voice-wave-wrap{flex:1 1 0;min-width:0}.voice-transcribe-btn,.voice-transcript-status,.voice-transcript-text{margin-left:48px!important;max-width:calc(100% - 48px)!important}.voice-transcribe-btn{display:inline-flex!important;align-items:center;gap:7px;border-radius:999px!important;padding:7px 12px!important;font-size:13px!important;font-weight:700!important}.voice-transcribe-btn:before{content:"";width:14px;height:14px;flex:0 0 auto;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M8 13h8'/%3E%3Cpath d='M8 17h6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M8 13h8'/%3E%3Cpath d='M8 17h6'/%3E%3C/svg%3E") center/contain no-repeat}.voice-transcript-status{display:inline-flex!important;align-items:center;gap:8px;font-size:13px!important;font-weight:700!important}.voice-transcript-status:before{content:"";width:18px;height:6px;border-radius:999px;background:currentColor;opacity:.78;animation:migVoiceTranscriptPulse 1s infinite ease-in-out}@keyframes migVoiceTranscriptPulse{0%,100%{transform:scaleX(.45);opacity:.35}50%{transform:scaleX(1);opacity:1}}.voice-transcript-text{flex:1 0 calc(100% - 48px);box-sizing:border-box;border-radius:18px;padding:12px 14px!important;background:rgba(255,255,255,.07);color:rgba(245,248,252,.94);font-size:14px!important;line-height:1.45!important;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.bubble.mine .voice-transcript-text{background:rgba(0,0,0,.12);color:#fff}@media (max-width:700px){.voice-bubble-player{width:min(420px,78vw)!important;min-width:min(280px,78vw)!important}}
.voice-bubble-player{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:stretch!important;gap:8px!important;width:min(430px,72vw)!important;min-width:min(300px,72vw)!important;padding:4px 0 2px!important}.voice-bubble-player>audio{display:none!important}.voice-main-row{flex:0 0 auto!important;display:flex!important;align-items:center!important;gap:10px!important;width:100%!important;min-width:0!important}.voice-main-row>.voice-play-btn{flex:0 0 auto!important}.voice-main-row>.voice-wave-wrap{flex:1 1 auto!important;min-width:0!important}.voice-transcribe-action{flex:0 0 auto!important;min-width:58px!important;height:52px!important;padding:0 14px!important;border:0!important;border-radius:18px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:rgba(88,111,158,.62)!important;color:rgba(245,248,255,.96)!important;box-shadow:none!important;font-weight:900!important;font-size:22px!important;line-height:1!important;letter-spacing:-1px!important;cursor:pointer!important;-webkit-tap-highlight-color:transparent!important}.voice-transcribe-action:active{transform:scale(.97)!important}.voice-transcribe-action.is-open{font-size:28px!important}.voice-transcribe-action.is-processing{opacity:.78!important;cursor:default!important}.voice-transcribe-symbol{display:inline-block;transform:translateY(-1px)}.voice-collapse-icon{display:inline-block;transform:translateY(3px);font-size:30px;line-height:1}.voice-transcript-text{flex:none!important;box-sizing:border-box!important;width:calc(100% - 64px)!important;max-width:calc(100% - 64px)!important;margin:0 0 0 64px!important;border-radius:18px!important;padding:12px 14px!important;background:rgba(255,255,255,.07)!important;color:rgba(245,248,252,.94)!important;font-size:14px!important;line-height:1.45!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;word-break:break-word!important}.bubble.mine .voice-transcript-text{background:rgba(0,0,0,.12)!important;color:#fff!important}.voice-transcript-status,.voice-transcript-error{width:calc(100% - 64px)!important;max-width:calc(100% - 64px)!important;margin:0 0 0 64px!important;display:inline-flex!important;align-items:center!important;gap:8px!important;color:rgba(245,248,252,.78)!important;font-size:13px!important;font-weight:700!important}.voice-transcript-error{color:rgba(255,215,215,.92)!important}.voice-transcript-dots{display:inline-flex;align-items:center;gap:4px}.voice-transcript-dots i{display:block;width:5px;height:5px;border-radius:999px;background:currentColor;opacity:.35;animation:migVoiceTranscribeDot 1.05s infinite ease-in-out}.voice-transcript-dots i:nth-child(2){animation-delay:.14s}.voice-transcript-dots i:nth-child(3){animation-delay:.28s}@keyframes migVoiceTranscribeDot{0%,100%{transform:translateY(0);opacity:.35}50%{transform:translateY(-4px);opacity:1}}@media (max-width:700px){.voice-bubble-player{width:min(420px,78vw)!important;min-width:min(280px,78vw)!important}.voice-transcribe-action{min-width:58px!important;height:52px!important;border-radius:17px!important}.voice-transcript-text,.voice-transcript-status,.voice-transcript-error{width:calc(100% - 64px)!important;max-width:calc(100% - 64px)!important;margin-left:64px!important}}

/* MIG Web v86: smaller App-like transcription buttons */
.voice-transcribe-action{min-width:42px!important;width:42px!important;height:38px!important;padding:0!important;border-radius:14px!important;font-size:18px!important;letter-spacing:-.8px!important}.voice-transcribe-action.is-open{font-size:20px!important}.voice-collapse-icon{font-size:22px!important;transform:translateY(2px)!important}.voice-transcribe-symbol{transform:translateY(-1px)!important}.voice-main-row{gap:8px!important}@media (max-width:700px){.voice-transcribe-action{min-width:42px!important;width:42px!important;height:38px!important;border-radius:14px!important;font-size:18px!important}.voice-transcribe-action.is-open{font-size:20px!important}.voice-collapse-icon{font-size:22px!important}}

/* MIG Web v87: compact transcription controls next to waveform, transcripts closed by default */
.voice-main-row{align-items:center!important;justify-content:flex-start!important;gap:8px!important}.voice-main-row>.voice-wave-wrap{flex:0 1 auto!important;width:min(280px,calc(100vw - 210px))!important;min-width:150px!important}.voice-transcribe-action{flex:0 0 32px!important;min-width:32px!important;width:32px!important;height:30px!important;padding:0!important;border-radius:11px!important;font-size:14px!important;letter-spacing:-.6px!important;margin-left:2px!important;background:rgba(88,111,158,.58)!important}.voice-transcribe-action.is-open{font-size:15px!important}.voice-collapse-icon{font-size:17px!important;transform:translateY(1px)!important}.voice-transcribe-symbol{transform:translateY(-.5px)!important}.voice-transcript-text,.voice-transcript-status,.voice-transcript-error{width:calc(100% - 54px)!important;max-width:calc(100% - 54px)!important;margin-left:54px!important}@media(max-width:700px){.voice-main-row>.voice-wave-wrap{width:min(250px,calc(100vw - 190px))!important;min-width:128px!important}.voice-transcribe-action{flex-basis:30px!important;min-width:30px!important;width:30px!important;height:28px!important;border-radius:10px!important;font-size:13px!important}.voice-transcribe-action.is-open{font-size:14px!important}.voice-collapse-icon{font-size:16px!important}.voice-transcript-text,.voice-transcript-status,.voice-transcript-error{width:calc(100% - 54px)!important;max-width:calc(100% - 54px)!important;margin-left:54px!important}}

/* MIG Web v89: transcription button lives inside waveform area on desktop/iPhone */
.voice-main-row{align-items:flex-start!important;gap:8px!important;overflow:visible!important}.voice-main-row>.voice-wave-wrap{position:relative!important;flex:1 1 auto!important;min-width:0!important;max-width:100%!important;overflow:visible!important;padding-right:34px!important;box-sizing:border-box!important}.voice-waveform-line{width:100%!important;max-width:100%!important;overflow:hidden!important}.voice-wave-wrap .voice-transcribe-action{position:absolute!important;right:0!important;top:-4px!important;z-index:3!important;flex:none!important;width:26px!important;min-width:26px!important;height:24px!important;min-height:24px!important;padding:0!important;margin:0!important;border-radius:9px!important;font-size:11px!important;line-height:1!important;letter-spacing:-.5px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}.voice-wave-wrap .voice-transcribe-action.is-open{font-size:12px!important}.voice-wave-wrap .voice-transcribe-symbol{transform:translateY(-.5px)!important}.voice-wave-wrap .voice-collapse-icon{font-size:13px!important;line-height:1!important;transform:translateY(.5px)!important}.voice-progress-text{margin-top:4px!important}@media (max-width:700px){.voice-main-row{gap:7px!important;overflow:visible!important}.voice-main-row>.voice-wave-wrap{padding-right:31px!important;overflow:visible!important}.voice-wave-wrap .voice-transcribe-action{right:0!important;top:-3px!important;width:24px!important;min-width:24px!important;height:22px!important;min-height:22px!important;border-radius:8px!important;font-size:10px!important}.voice-wave-wrap .voice-transcribe-action.is-open{font-size:11px!important}.voice-wave-wrap .voice-collapse-icon{font-size:12px!important}}

/* MIG Web v90: final App-like transcription button position: attached to waveform, never outside bubble */
.voice-bubble-player{width:min(430px,76vw)!important;min-width:min(300px,76vw)!important;max-width:100%!important;overflow:hidden!important;box-sizing:border-box!important}.voice-main-row{align-items:center!important;gap:8px!important;width:100%!important;min-width:0!important;overflow:hidden!important}.voice-main-row>.voice-play-btn{flex:0 0 auto!important}.voice-main-row>.voice-wave-wrap{position:relative!important;flex:1 1 auto!important;width:auto!important;min-width:0!important;max-width:100%!important;padding-right:0!important;overflow:hidden!important;cursor:pointer!important}.voice-wave-action-row{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;width:100%!important;min-width:0!important;max-width:100%!important;overflow:hidden!important}.voice-wave-action-row>.voice-waveform-line{flex:0 1 auto!important;width:auto!important;max-width:calc(100% - 42px)!important;min-width:42px!important;overflow:hidden!important}.voice-wave-action-row>.voice-transcribe-action{position:static!important;right:auto!important;top:auto!important;flex:0 0 34px!important;width:34px!important;min-width:34px!important;height:30px!important;min-height:30px!important;margin:0!important;padding:0!important;border-radius:11px!important;font-size:14px!important;letter-spacing:-.7px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:rgba(88,111,158,.62)!important;color:rgba(245,248,255,.96)!important}.voice-wave-action-row>.voice-transcribe-action.is-open{font-size:15px!important}.voice-wave-action-row .voice-collapse-icon{font-size:17px!important;line-height:1!important;transform:translateY(1px)!important}.voice-wave-action-row .voice-transcribe-symbol{transform:translateY(-.5px)!important}.voice-progress-text{margin-top:4px!important}@media(max-width:700px){.voice-bubble-player{width:min(420px,78vw)!important;min-width:min(255px,78vw)!important}.voice-main-row{gap:7px!important}.voice-wave-action-row{gap:5px!important}.voice-wave-action-row>.voice-waveform-line{max-width:calc(100% - 38px)!important;min-width:34px!important}.voice-wave-action-row>.voice-transcribe-action{flex-basis:32px!important;width:32px!important;min-width:32px!important;height:29px!important;min-height:29px!important;border-radius:10px!important;font-size:13px!important}}

/* MIG Web v91: keep voice bubble width fixed by waveform, not by transcript text */
.bubble:has(.voice-bubble-player){width:var(--voice-player-fixed-width,350px)!important;max-width:min(var(--voice-player-fixed-width,350px),72vw)!important;box-sizing:border-box!important;overflow:hidden!important}.voice-bubble-player{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;overflow:hidden!important}.voice-main-row{width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden!important}.voice-main-row>.voice-play-btn{flex:0 0 42px!important}.voice-main-row>.voice-wave-wrap{flex:0 1 var(--voice-wave-fixed-width,240px)!important;width:var(--voice-wave-fixed-width,240px)!important;min-width:0!important;max-width:calc(100% - 50px)!important;overflow:hidden!important;padding-right:34px!important;box-sizing:border-box!important}.voice-waveform-line{width:100%!important;max-width:100%!important;overflow:hidden!important}.voice-transcript-text,.voice-transcript-status,.voice-transcript-error{width:calc(100% - 52px)!important;max-width:calc(100% - 52px)!important;margin-left:52px!important;box-sizing:border-box!important}.voice-transcript-text{overflow-wrap:anywhere!important;word-break:break-word!important}@media (max-width:700px){.bubble:has(.voice-bubble-player){width:min(var(--voice-player-fixed-width,330px),82vw)!important;max-width:82vw!important}.voice-main-row>.voice-wave-wrap{max-width:calc(100% - 49px)!important;padding-right:31px!important}.voice-transcript-text,.voice-transcript-status,.voice-transcript-error{width:calc(100% - 52px)!important;max-width:calc(100% - 52px)!important;margin-left:52px!important}}
/* MIG Web v92: App-matched voice waveform geometry */
.voice-waveform-line{height:28px!important;gap:1.15px!important;align-items:center!important;}
.voice-waveform-line i{width:3.2px!important;min-width:3.2px!important;border-radius:999px!important;}
.voice-preview-waveform{height:28px!important;gap:1.15px!important;align-items:center!important;}
.voice-preview-waveform i{width:3.2px!important;min-width:3.2px!important;border-radius:999px!important;}
@media (max-width:700px){.voice-waveform-line i,.voice-preview-waveform i{width:3px!important;min-width:3px!important;}}

/* v93 runtime media upload/viewer/profile gallery */
.mig-media-toast{position:fixed;left:50%;bottom:88px;transform:translateX(-50%) translateY(12px);z-index:11000;background:rgba(20,31,43,.96);color:#fff;border:1px solid rgba(255,255,255,.1);border-radius:999px;padding:10px 16px;font-weight:700;opacity:0;pointer-events:none;transition:.2s ease;box-shadow:0 12px 40px rgba(0,0,0,.35)}.mig-media-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.bubble-photo-button{display:block;border:0;background:transparent;padding:0;margin:2px 0 0;cursor:pointer;border-radius:16px;overflow:hidden;max-width:min(340px,64vw)}.bubble-photo-button .bubble-image,.bubble-image{display:block;width:100%;max-width:min(340px,64vw);max-height:420px;object-fit:cover;border-radius:16px;background:rgba(255,255,255,.06);cursor:pointer}
.mig-photo-preview,.mig-photo-viewer{position:fixed;inset:0;z-index:10050;background:rgba(4,10,18,.78);backdrop-filter:blur(18px);display:flex;align-items:center;justify-content:center;padding:18px}.mig-photo-preview-card{width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 28px);background:rgba(23,38,51,.98);border:1px solid rgba(255,255,255,.08);border-radius:26px;box-shadow:0 26px 80px rgba(0,0,0,.45);overflow:hidden;display:flex;flex-direction:column}.mig-photo-preview-head{height:58px;display:flex;align-items:center;gap:12px;padding:0 14px;border-bottom:1px solid rgba(255,255,255,.06)}.mig-photo-preview-head strong{font-size:16px;flex:1}.mig-photo-preview-head span{font-size:12px;color:var(--muted)}.mig-photo-close{border:0;background:rgba(255,255,255,.08);color:var(--text);width:38px;height:38px;border-radius:999px;font-size:24px}.mig-photo-preview-img{padding:12px;display:flex;justify-content:center;align-items:center;min-height:220px;background:rgba(0,0,0,.18)}.mig-photo-preview-img img{max-width:100%;max-height:min(58dvh,560px);object-fit:contain;border-radius:18px;box-shadow:0 12px 40px rgba(0,0,0,.32)}.mig-photo-preview-meta{padding:10px 16px 2px;display:flex;flex-direction:column;gap:2px;min-width:0}.mig-photo-preview-meta span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mig-photo-preview-meta small{color:var(--muted)}.mig-photo-progress{height:3px;background:rgba(255,255,255,.08);margin:10px 16px 0;border-radius:99px;overflow:hidden}.mig-photo-progress i{display:block;height:100%;width:0;background:#58a7ff;border-radius:99px;transition:width .2s ease}.mig-photo-preview-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:14px 16px 16px}.mig-photo-cancel{border:0;background:rgba(255,255,255,.08);color:var(--text);border-radius:999px;padding:11px 17px;font-weight:700}.mig-photo-send{border:0;background:#4da2ff;color:#fff;border-radius:999px;width:48px;height:48px;font-weight:900;font-size:20px}.mig-photo-viewer{background:rgba(2,7,13,.92);padding:68px 14px 24px}.mig-photo-viewer img{max-width:100%;max-height:calc(100dvh - 110px);object-fit:contain;border-radius:14px;box-shadow:0 20px 80px rgba(0,0,0,.65)}.mig-photo-viewer-top{position:absolute;top:12px;left:12px;right:12px;height:48px;display:flex;align-items:center;gap:10px;color:white}.mig-photo-viewer-top>div{flex:1;min-width:0;display:flex;flex-direction:column}.mig-photo-viewer-top strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mig-photo-viewer-top span{font-size:12px;color:rgba(255,255,255,.65)}.mig-photo-viewer-top button,.mig-photo-download{border:0;background:rgba(255,255,255,.1);color:white;width:42px;height:42px;border-radius:999px;display:flex;align-items:center;justify-content:center;text-decoration:none;font-size:24px}.mig-profile-gallery{margin-top:10px}.mig-profile-gallery-grid{grid-template-columns:repeat(3,1fr)}
@media(max-width:760px){.bubble-image{max-width:min(300px,72vw);border-radius:15px}.mig-photo-preview{padding:8px}.mig-photo-preview-card{width:calc(100vw - 16px);border-radius:22px}.mig-photo-preview-head{height:54px}.mig-photo-preview-img{padding:8px;min-height:180px}.mig-photo-viewer{padding:64px 8px 18px}.mig-profile-gallery-grid{grid-template-columns:repeat(3,1fr)}}

/* =========================================================
!БАЗА / ЧАТ-ЛИСТ / ЧАТ / COMPOSER КОНЕЦ!
========================================================= */

/* =========================================================
!ПРОФИЛЬ СОБЕСЕДНИКА НАЧАЛО!
Связанные стили overlay-профиля, hero, avatar/wallpaper, close, tabs и старые suppression-правки.
!Профиль собеседника изменение v94!
========================================================= */
/* MIG V94: App-like user/interlocutor profile */
.app-profile-panel{--profile-card-bg:rgba(26,40,54,.84);--profile-card-border:rgba(255,255,255,.06);overflow-y:auto;padding-bottom:max(18px,env(safe-area-inset-bottom))}.app-profile-topbar{position:sticky;top:0;z-index:5;backdrop-filter:blur(18px)}.app-profile-hero{position:relative;min-height:220px;margin:12px 12px 10px;border-radius:26px;overflow:hidden;background:radial-gradient(circle at 18% 10%,rgba(75,151,242,.36),transparent 40%),linear-gradient(135deg,rgba(42,68,91,.92),rgba(17,29,42,.94));border:1px solid var(--profile-card-border);box-shadow:0 18px 46px rgba(0,0,0,.22)}.app-profile-wallpaper{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:scale(1.02)}.app-profile-hero-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(7,13,21,.05) 0%,rgba(7,13,21,.28) 48%,rgba(7,13,21,.74) 100%)}.app-profile-identity{position:absolute;left:18px;right:86px;bottom:18px;display:flex;align-items:flex-end;gap:14px;min-width:0}.app-profile-identity .avatar{flex:0 0 auto;border:3px solid rgba(255,255,255,.16);box-shadow:0 12px 30px rgba(0,0,0,.26)}.app-profile-title-block{min-width:0}.app-profile-name{font-size:25px;line-height:1.1;font-weight:800;letter-spacing:-.02em;color:rgba(241,247,255,.98);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 2px 10px rgba(0,0,0,.28)}.app-profile-status{margin-top:5px;font-size:14px;color:rgba(215,229,244,.82);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.app-profile-notify{position:absolute;right:18px;bottom:20px;width:56px;height:56px;border:0;border-radius:50%;display:grid;place-items:center;cursor:pointer;color:#fff;background:linear-gradient(135deg,#4b97f2,#2f75c9);box-shadow:0 14px 30px rgba(56,136,230,.28)}.app-profile-notify.muted{background:linear-gradient(135deg,rgba(237,92,100,.95),rgba(165,54,68,.95))}.app-profile-card{margin:10px 12px;border-radius:22px;background:var(--profile-card-bg)!important;border:1px solid var(--profile-card-border);overflow:hidden}.app-profile-info-row,.app-profile-section-row{width:100%;display:flex;align-items:center;gap:14px;padding:14px 16px;border:0;border-bottom:1px solid rgba(255,255,255,.055);background:transparent;color:inherit;text-align:left}.app-profile-info-row:last-child,.app-profile-section-row:last-child{border-bottom:0}.app-profile-section-row{cursor:pointer}.app-profile-section-row:hover{background:rgba(255,255,255,.035)}.app-profile-info-icon,.app-profile-section-icon{width:31px;height:31px;border-radius:11px;display:grid;place-items:center;color:#7dbbff;background:rgba(86,151,221,.12);flex:0 0 auto}.app-profile-info-text,.app-profile-section-text{min-width:0;display:flex;flex-direction:column;gap:3px}.app-profile-info-text strong,.app-profile-section-text strong{color:rgba(240,247,255,.96);font-size:15px;line-height:1.25;word-break:break-word}.app-profile-info-text span,.app-profile-section-text span{color:rgba(181,197,214,.78);font-size:12.5px}.app-profile-tabs-scroll{display:flex;align-items:center;gap:8px;overflow-x:auto;padding:2px 12px 8px;scrollbar-width:none}.app-profile-tabs-scroll::-webkit-scrollbar{display:none}.app-profile-chip{flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:0 13px;border:1px solid rgba(255,255,255,.08);border-radius:999px;color:rgba(211,225,239,.85);background:rgba(34,51,68,.86);cursor:pointer;font-weight:650;font-size:13px}.app-profile-chip.active{color:#eaf5ff;border-color:rgba(88,166,255,.34);background:rgba(69,125,194,.38)}.app-profile-content-card{margin-top:0}.app-profile-empty{padding:28px 16px;text-align:center;color:rgba(181,197,214,.78)}.app-profile-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:2px 2px 6px}.app-profile-side-tabs{margin:10px 12px}.app-my-profile-modal{width:min(540px,calc(100vw - 26px));max-height:min(760px,calc(100vh - 26px));padding:0!important;overflow:hidden;border-radius:28px!important}.app-my-profile-body{overflow-y:auto;max-height:calc(min(760px,100vh - 26px) - 58px);padding-bottom:18px}.app-my-profile-hero{position:relative;min-height:230px;background:radial-gradient(circle at 18% 8%,rgba(76,152,243,.32),transparent 44%),linear-gradient(135deg,rgba(42,68,91,.96),rgba(17,29,42,.96));overflow:hidden}.app-my-profile-hero .app-profile-wallpaper{opacity:.92}.app-my-profile-identity{position:absolute;left:20px;right:20px;bottom:20px;display:flex;align-items:flex-end;gap:15px;min-width:0}.app-my-profile-identity .avatar{border:3px solid rgba(255,255,255,.16);box-shadow:0 12px 30px rgba(0,0,0,.26)}.app-my-profile-fields{margin:12px;padding:14px;border-radius:22px;background:rgba(26,40,54,.82);border:1px solid rgba(255,255,255,.06)}.app-my-profile-fields input,.app-my-profile-fields textarea{width:100%;margin:6px 0 12px;border-radius:16px;background:rgba(9,18,30,.55)}.app-my-profile-actions{display:flex;gap:10px;padding:0 12px 4px}.app-my-profile-actions .primary-btn{flex:1}@media(max-width:920px){.right-panel-mobile.app-profile-panel{inset:0!important;width:100vw!important;max-width:none!important;border-radius:0!important}.right-panel-mobile .app-profile-hero{margin:0 0 10px;border-radius:0 0 28px 28px;min-height:226px}.right-panel-mobile .app-profile-card{margin-left:10px;margin-right:10px}.right-panel-mobile .app-profile-tabs-scroll{padding-left:10px;padding-right:10px}}@media(max-width:520px){.app-profile-name{font-size:22px}.app-profile-identity{left:14px;right:76px;bottom:14px;gap:12px}.app-profile-notify{right:14px;bottom:16px;width:50px;height:50px}.app-profile-hero{min-height:210px}.app-my-profile-modal{width:100vw;max-height:100dvh;height:100dvh;border-radius:0!important}.app-my-profile-body{max-height:calc(100dvh - 58px)}}
/* MIG V95: real App-profile port from Android App_v53 */
:root{--mig-profile-bg:#0e1621;--mig-profile-surface:#17212b;--mig-profile-surface-2:#202b36;--mig-profile-divider:rgba(255,255,255,.075);--mig-profile-text:#edf6ff;--mig-profile-muted:#93a4b7;--mig-profile-primary:#54a5f7}
.right-panel.app-profile-panel{background:var(--mig-profile-bg)!important;color:var(--mig-profile-text)!important;overflow-y:auto!important;overflow-x:hidden!important;padding-bottom:max(18px,env(safe-area-inset-bottom))!important}.right-panel.app-profile-panel .app-profile-topbar,.app-my-profile-modal .modal-head{height:56px!important;min-height:56px!important;padding:0 14px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;background:var(--mig-profile-surface)!important;border-bottom:1px solid var(--mig-profile-divider)!important;box-shadow:none!important;backdrop-filter:none!important}.right-panel.app-profile-panel .right-panel-title,.right-panel.app-profile-panel .mobile-panel-title,.app-my-profile-modal .modal-head h3{font-size:20px!important;line-height:1.2!important;font-weight:650!important;color:var(--mig-profile-text)!important;margin:0!important}.app-profile-hero,.app-my-profile-hero{position:relative!important;height:220px!important;min-height:220px!important;margin:0!important;border-radius:0!important;overflow:hidden!important;background:var(--mig-profile-surface-2)!important;border:0!important;box-shadow:none!important}.app-profile-wallpaper{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;transform:none!important;opacity:1!important}.app-profile-hero-shade{position:absolute!important;inset:0!important;background:linear-gradient(180deg,rgba(0,0,0,.02) 0%,rgba(0,0,0,.20) 48%,rgba(0,0,0,.56) 100%)!important}.app-profile-identity,.app-my-profile-identity{position:absolute!important;left:18px!important;right:84px!important;bottom:18px!important;display:flex!important;align-items:flex-end!important;gap:14px!important;min-width:0!important}.app-my-profile-identity{right:18px!important}.app-profile-identity .avatar,.app-my-profile-identity .avatar,.app-profile-identity .avatar-fallback,.app-my-profile-identity .avatar-fallback{width:76px!important;height:76px!important;min-width:76px!important;border-radius:50%!important;border:0!important;box-shadow:none!important;background:var(--mig-profile-primary)!important}.app-my-profile-identity .avatar,.app-my-profile-identity .avatar-fallback{width:88px!important;height:88px!important;min-width:88px!important}.app-profile-name{font-size:28px!important;line-height:1.12!important;font-weight:800!important;letter-spacing:-.02em!important;color:#fff!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;text-shadow:0 1px 7px rgba(0,0,0,.45)!important}.app-profile-status{margin-top:4px!important;font-size:16px!important;line-height:1.25!important;color:rgba(235,245,255,.78)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;text-shadow:0 1px 5px rgba(0,0,0,.38)!important}.app-profile-notify,.app-profile-image-fab{position:absolute!important;right:18px!important;bottom:18px!important;width:56px!important;height:56px!important;border-radius:50%!important;border:0!important;display:grid!important;place-items:center!important;color:#fff!important;background:var(--mig-profile-primary)!important;box-shadow:0 8px 20px rgba(0,0,0,.22)!important;cursor:pointer!important;z-index:4!important}.app-profile-notify.muted{background:#e35d68!important}.app-profile-card{margin:0!important;padding:0!important;border-radius:0!important;background:var(--mig-profile-surface)!important;border:0!important;box-shadow:none!important;overflow:hidden!important}.app-profile-card+.app-profile-card,.app-my-profile-edit-card{margin-top:14px!important}.app-profile-card-title{padding:14px 16px 8px!important;font-size:17px!important;line-height:1.25!important;color:var(--mig-profile-text)!important;font-weight:700!important}.app-profile-info-row,.app-profile-section-row{width:100%!important;display:flex!important;align-items:center!important;gap:14px!important;min-height:60px!important;padding:14px 18px!important;border:0!important;border-bottom:1px solid var(--mig-profile-divider)!important;background:transparent!important;color:inherit!important;text-align:left!important;box-sizing:border-box!important}.app-profile-info-row:last-child,.app-profile-section-row:last-child{border-bottom:0!important}.app-profile-info-icon,.app-profile-section-icon{width:28px!important;height:28px!important;min-width:28px!important;border-radius:0!important;background:transparent!important;color:var(--mig-profile-primary)!important;display:grid!important;place-items:center!important;font-size:22px!important}.app-profile-info-text,.app-profile-section-text{min-width:0!important;display:flex!important;flex-direction:column!important;gap:2px!important}.app-profile-info-text strong,.app-profile-section-text strong{font-size:16px!important;font-weight:450!important;line-height:1.25!important;color:var(--mig-profile-text)!important;white-space:normal!important;word-break:break-word!important}.app-profile-info-text span,.app-profile-section-text span{font-size:13px!important;line-height:1.25!important;color:var(--mig-profile-muted)!important}.app-profile-tabs-scroll{display:flex!important;align-items:center!important;gap:8px!important;overflow-x:auto!important;padding:8px 10px!important;background:var(--mig-profile-bg)!important;scrollbar-width:none!important}.app-profile-tabs-scroll::-webkit-scrollbar{display:none!important}.app-profile-chip{min-height:36px!important;flex:0 0 auto!important;border-radius:999px!important;border:1px solid rgba(255,255,255,.09)!important;background:var(--mig-profile-surface)!important;color:#cad6e4!important;padding:0 13px!important;display:inline-flex!important;align-items:center!important;gap:7px!important;font-size:14px!important;font-weight:550!important;cursor:pointer!important}.app-profile-chip.active{background:rgba(84,165,247,.18)!important;border-color:rgba(84,165,247,.42)!important;color:#eaf5ff!important}.app-profile-content-card{margin-top:0!important}.app-profile-empty{padding:28px 18px!important;text-align:center!important;color:var(--mig-profile-muted)!important}.profile-gallery-block{margin-top:10px!important}.app-profile-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important;padding:4px!important}.app-profile-side-tabs{margin:8px 10px!important}.app-my-profile-modal{width:min(540px,calc(100vw - 24px))!important;max-height:min(820px,calc(100dvh - 24px))!important;padding:0!important;overflow:hidden!important;border-radius:20px!important;background:var(--mig-profile-bg)!important;position:relative!important}.app-my-profile-body{max-height:calc(min(820px,100dvh - 24px) - 56px)!important;overflow-y:auto!important;padding-bottom:16px!important;background:var(--mig-profile-bg)!important}.app-my-profile-edit-card{padding-bottom:14px!important}.app-profile-field{display:flex!important;flex-direction:column!important;gap:7px!important;padding:8px 14px!important;color:var(--mig-profile-muted)!important;font-size:13px!important;font-weight:600!important}.app-profile-field span{display:flex!important;gap:8px!important;align-items:center!important;color:var(--mig-profile-muted)!important}.app-profile-field input,.app-profile-field textarea,.app-my-profile-fields input,.app-my-profile-fields textarea{width:100%!important;box-sizing:border-box!important;border-radius:12px!important;border:1px solid rgba(255,255,255,.10)!important;background:#0f1924!important;color:var(--mig-profile-text)!important;padding:12px 13px!important;font-size:15px!important;outline:none!important;resize:vertical!important}.app-profile-save-btn{margin:8px 14px 0!important;width:calc(100% - 28px)!important;min-height:44px!important;border-radius:12px!important;border:0!important;background:var(--mig-profile-primary)!important;color:white!important;font-weight:700!important;font-size:15px!important;cursor:pointer!important}@media (min-width:901px){.app-shell.with-right-panel{grid-template-columns:clamp(260px,31vw,360px) minmax(0,1fr) clamp(360px,30vw,430px)!important}.right-panel:not(.right-panel-mobile).app-profile-panel{min-width:360px!important;max-width:430px!important;background:var(--mig-profile-bg)!important;border-left:1px solid var(--mig-profile-divider)!important}}@media (max-width:920px){.right-panel-mobile.app-profile-panel{inset:0!important;width:100vw!important;max-width:none!important;border-radius:0!important;background:var(--mig-profile-bg)!important}.right-panel-mobile .app-profile-hero{height:220px!important;min-height:220px!important;margin:0!important;border-radius:0!important}}@media (max-width:520px){.app-profile-name{font-size:24px!important}.app-profile-status{font-size:15px!important}.app-profile-identity{left:18px!important;right:82px!important;bottom:18px!important;gap:12px!important}.app-profile-notify,.app-profile-image-fab{right:18px!important;bottom:18px!important;width:52px!important;height:52px!important}.app-my-profile-modal{width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important}.app-my-profile-body{max-height:calc(100dvh - 56px)!important}}
/* MIG V95 compatibility for current built dist SettingsModal markup */
.app-my-profile-modal .app-my-profile-fields::before{content:'Редактирование';display:block;margin:0 0 12px;font-size:17px;font-weight:700;color:var(--mig-profile-text)}
.app-my-profile-modal .app-profile-card:not(.app-my-profile-edit-card)::before{content:'Информация';display:block;padding:14px 16px 8px;font-size:17px;line-height:1.25;color:var(--mig-profile-text);font-weight:700}
.app-my-profile-modal .app-my-profile-fields{margin:14px 0 0!important;padding:14px!important;border-radius:0!important;background:var(--mig-profile-surface)!important;border:0!important}.app-my-profile-actions{padding:12px 14px 0!important}.app-my-profile-actions .primary-btn{width:100%!important;min-height:44px!important;border-radius:12px!important;background:var(--mig-profile-primary)!important;color:white!important;font-weight:700!important}

/* v100: My profile entry point fixes */
.sidebar-account-card-clickable { cursor: pointer; transition: background .16s ease, transform .16s ease; }
.sidebar-account-card-clickable:hover { background: rgba(255,255,255,.075) !important; }
.sidebar-account-card-clickable:active { transform: scale(.995); }
.sidebar-account-card-clickable .icon-btn { cursor: pointer; }

/* MIG v102: My Profile layer + visual polish, force opaque top layer */
.mig-my-profile-overlay{position:fixed!important;inset:0!important;z-index:2147483000!important;background:rgba(3,8,14,.74)!important;backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important;isolation:isolate!important;pointer-events:auto!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:12px!important;box-sizing:border-box!important}.mig-my-profile-overlay *{box-sizing:border-box!important}.mig-my-profile-panel{position:relative!important;z-index:2147483001!important;background:#0f1720!important;color:#edf6ff!important;opacity:1!important;isolation:isolate!important;pointer-events:auto!important;box-shadow:0 34px 110px rgba(0,0,0,.68),0 0 0 1px rgba(255,255,255,.10)!important;border:1px solid rgba(255,255,255,.08)!important}.mig-my-profile-panel:before{content:''!important;position:absolute!important;inset:0!important;z-index:-1!important;background:#0f1720!important;border-radius:inherit!important}.mig-my-profile-topbar,.mig-my-profile-scroll,.mig-my-profile-section,.mig-my-profile-field input,.mig-my-profile-field textarea,.mig-my-profile-save,.mig-my-profile-info-row,.mig-my-profile-hint-row{position:relative!important;z-index:2!important}.mig-my-profile-scroll{background:#0f1720!important;scrollbar-width:thin!important;scrollbar-color:rgba(148,166,184,.35) transparent!important}.mig-my-profile-scroll::-webkit-scrollbar{width:7px!important}.mig-my-profile-scroll::-webkit-scrollbar-track{background:transparent!important}.mig-my-profile-scroll::-webkit-scrollbar-thumb{background:rgba(148,166,184,.35)!important;border-radius:999px!important}.mig-my-profile-topbar{background:#101a24!important;border-bottom:1px solid rgba(255,255,255,.09)!important;box-shadow:0 10px 28px rgba(0,0,0,.20)!important}.mig-my-profile-topbtn{background:#162331!important;color:#edf6ff!important;box-shadow:none!important}.mig-my-profile-topbtn:hover{background:#213348!important}.mig-my-profile-hero{background:#152230!important;border-bottom:1px solid rgba(255,255,255,.09)!important}.mig-my-profile-wallpaper-fallback{background:radial-gradient(circle at 18% 8%,rgba(84,165,247,.42),transparent 36%),radial-gradient(circle at 90% 12%,rgba(72,112,190,.20),transparent 32%),linear-gradient(145deg,#223b52 0%,#142130 58%,#0f1720 100%)!important}.mig-my-profile-hero-shade{background:linear-gradient(180deg,rgba(0,0,0,.02) 0%,rgba(0,0,0,.14) 46%,rgba(0,0,0,.70) 100%)!important}.mig-my-profile-name{font-size:29px!important;font-weight:850!important;letter-spacing:-.035em!important}.mig-my-profile-status{color:rgba(238,247,255,.84)!important}.mig-my-profile-camera{background:linear-gradient(135deg,#58aaff,#3c8fe7)!important;box-shadow:0 14px 28px rgba(31,120,220,.28),0 8px 22px rgba(0,0,0,.32)!important}.mig-my-profile-section{margin:12px 12px 0!important;border:1px solid rgba(255,255,255,.07)!important;border-radius:20px!important;overflow:hidden!important;background:#17232f!important;box-shadow:0 10px 28px rgba(0,0,0,.12)!important}.mig-my-profile-section-title{padding:16px 18px 8px!important;background:#17232f!important}.mig-my-profile-field{background:#17232f!important}.mig-my-profile-field input,.mig-my-profile-field textarea{background:#0d1722!important;color:#edf6ff!important;opacity:1!important}.mig-my-profile-field textarea{min-height:96px!important}.mig-my-profile-save{background:linear-gradient(135deg,#5badff,#4899f0)!important;box-shadow:0 10px 22px rgba(67,150,232,.22)!important}.mig-my-profile-info-row,.mig-my-profile-hint-row{background:#17232f!important}.mig-my-profile-info-icon{width:34px!important;min-width:34px!important;height:34px!important;border-radius:12px!important;background:rgba(84,165,247,.13)!important}.mig-my-profile-info-text strong{font-weight:550!important}.mig-my-profile-hint-row{align-items:flex-start!important;border-top:1px solid rgba(255,255,255,.07)!important}@media (min-width:900px){.mig-my-profile-panel{width:min(620px,calc(100vw - 32px))!important;height:min(860px,calc(100dvh - 32px))!important;max-height:calc(100dvh - 32px)!important;border-radius:24px!important}.mig-my-profile-overlay{padding:16px!important}}@media (max-width:640px){.mig-my-profile-overlay{padding:0!important;background:#0f1720!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;align-items:stretch!important;justify-content:stretch!important}.mig-my-profile-panel{width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;border:0!important;box-shadow:none!important}.mig-my-profile-section{margin:10px 10px 0!important;border-radius:18px!important}.mig-my-profile-topbar{padding-top:env(safe-area-inset-top)!important;height:calc(58px + env(safe-area-inset-top))!important;min-height:calc(58px + env(safe-area-inset-top))!important;align-items:flex-end!important;padding-bottom:9px!important}.mig-my-profile-hero{height:232px!important;min-height:232px!important}}

/* MIG V114: keep outgoing messages on the right in selection mode */
.message-row.mine,
.message-row.selecting.mine,
.message-row.selected.mine {
  justify-content: flex-end !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  align-self: stretch !important;
}
.message-row.selecting.mine .bubble,
.message-row.selected.mine .bubble {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.message-row.selecting.mine .message-select-toggle,
.message-row.selected.mine .message-select-toggle {
  order: 0 !important;
}
.message-row.selecting.mine .bubble,
.message-row.selected.mine .bubble {
  order: 1 !important;
}

/* MIG V117: profile above chat without lowering chat containers globally */
#profile-root{position:fixed!important;inset:0!important;z-index:2147483647!important;pointer-events:none!important;isolation:isolate!important;contain:paint!important}
#profile-root.active{pointer-events:auto!important}
#profile-root .mig-my-profile-overlay,.mig-my-profile-portal.mig-my-profile-overlay,.mig-my-profile-overlay{position:fixed!important;inset:0!important;z-index:2147483647!important;background:rgba(3,8,14,.72)!important;backdrop-filter:blur(10px)!important;-webkit-backdrop-filter:blur(10px)!important;display:flex!important;align-items:center!important;justify-content:center!important;pointer-events:auto!important;isolation:isolate!important}
#profile-root .mig-my-profile-panel,.mig-my-profile-panel{position:relative!important;z-index:2147483647!important;background:#0f1720!important;opacity:1!important;isolation:isolate!important}
body.mig-my-profile-open .date-divider,body.mig-my-profile-open .chat-date,body.mig-my-profile-open .message-date,body.mig-my-profile-open .sticky-date,body.mig-my-profile-open .voice-transcribe-action,body.mig-my-profile-open .voice-transcribe-btn,body.mig-my-profile-open .voice-transcript-toggle,body.mig-my-profile-open .message-select-toggle{z-index:0!important;pointer-events:none!important}
body.mig-my-profile-open .context-menu,body.mig-my-profile-open .photo-preview-overlay,body.mig-my-profile-open .photo-viewer-overlay{display:none!important}
@media(min-width:901px){#profile-root .mig-my-profile-overlay,.mig-my-profile-portal.mig-my-profile-overlay{padding:32px!important}#profile-root .mig-my-profile-panel{width:468px!important;min-width:468px!important;max-width:468px!important;height:min(760px,calc(100dvh - 72px))!important;max-height:calc(100dvh - 72px)!important;border-radius:22px!important;overflow:hidden!important;border:1px solid rgba(255,255,255,.12)!important;box-shadow:0 34px 110px rgba(0,0,0,.72),0 0 0 1px rgba(255,255,255,.05) inset!important}}
@media(max-width:640px){#profile-root .mig-my-profile-overlay,.mig-my-profile-portal.mig-my-profile-overlay{padding:0!important;background:#0f1720!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}#profile-root .mig-my-profile-panel{width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;border:0!important;box-shadow:none!important}}


/* MIG v119: force "Мой профиль" above voice-transcribe-action/day-pill */
html body .modal-card.glass.mig-my-profile-overridden,
html body .modal-card.mig-my-profile-overridden,
html body .mig-my-profile-overridden,
html body .mig-my-profile,
html body .my-profile-window,
html body .account-window {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  isolation: isolate !important;
  transform: none !important;
  will-change: auto !important;
  contain: none !important;
  background: #0f1720 !important;
}

/* Keep the inner profile content above its own background */
html body .modal-card.glass.mig-my-profile-overridden *,
html body .modal-card.mig-my-profile-overridden *,
html body .mig-my-profile-overridden *,
html body .mig-my-profile * {
  position: relative;
  z-index: 2147483647;
}

/* Force problematic chat floating/sticky controls below any profile layer */
html body .voice-transcribe-action,
html body .day-pill,
html body .chat-day-pill,
html body .date-pill,
html body .voice-transcript-toggle,
html body .voice-transcript-action {
  position: relative !important;
  z-index: 0 !important;
  transform: none !important;
  will-change: auto !important;
  contain: none !important;
  isolation: auto !important;
}

/* If date pill was sticky/fixed, disable that while keeping visual position sane */
html body .day-pill,
html body .chat-day-pill,
html body .date-pill {
  position: relative !important;
}

/* Extra guard: profile parent/backdrop layers */
html body .modal-backdrop:has(.mig-my-profile-overridden),
html body .modal-root:has(.mig-my-profile-overridden),
html body .settings-modal:has(.mig-my-profile-overridden),
html body .profile-modal:has(.mig-my-profile-overridden) {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483646 !important;
  isolation: isolate !important;
}


/* MIG v120: Desktop "Мой профиль" centered window, chat visible behind */
@media (min-width: 769px) {
  html body .modal-card.glass.mig-my-profile-overridden,
  html body .modal-card.mig-my-profile-overridden,
  html body .mig-my-profile-overridden,
  html body .mig-my-profile,
  html body .my-profile-window,
  html body .account-window {
    position: fixed !important;
    inset: auto !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: 430px !important;
    max-width: calc(100vw - 48px) !important;
    min-width: 360px !important;
    height: auto !important;
    max-height: calc(100vh - 80px) !important;
    overflow: hidden auto !important;
    border-radius: 18px !important;
    z-index: 2147483647 !important;
    isolation: isolate !important;
    background: #0f1720 !important;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.62) !important;
    contain: none !important;
  }

  /* Dimmed desktop backdrop while keeping chat visible */
  html body:has(.mig-my-profile-overridden)::before,
  html body:has(.mig-my-profile)::before,
  html body:has(.my-profile-window)::before,
  html body:has(.account-window)::before {
    content: "" !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483646 !important;
    background: rgba(0, 0, 0, 0.36) !important;
    pointer-events: none !important;
  }

  /* Keep problematic floating chat controls below the centered profile window */
  html body .voice-transcribe-action,
  html body .day-pill,
  html body .chat-day-pill,
  html body .date-pill,
  html body .voice-transcript-toggle,
  html body .voice-transcript-action {
    z-index: 1 !important;
  }
}

/* Mobile stays full-screen/app-like */
@media (max-width: 768px) {
  html body .modal-card.glass.mig-my-profile-overridden,
  html body .modal-card.mig-my-profile-overridden,
  html body .mig-my-profile-overridden,
  html body .mig-my-profile,
  html body .my-profile-window,
  html body .account-window {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483647 !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    border-radius: 0 !important;
    background: #0f1720 !important;
  }
}

/* v121: increase profile window size and remove blue modal backdrop */
@media (min-width: 769px) {
  .modal-card.glass.mig-my-profile-overridden,
  .mig-my-profile-overridden,
  .mig-my-profile {
    width: 520px !important;
    max-width: calc(100vw - 32px) !important;
    min-width: 420px !important;
    max-height: calc(100vh - 40px) !important;
  }
}



/* v123: iPhone safe-area for My Profile */
@supports (padding-top: env(safe-area-inset-top)) {
  .modal-card.glass.mig-my-profile-overridden,
  .mig-my-profile-overridden,
  .mig-my-profile {
    padding-top: calc(env(safe-area-inset-top) + 8px) !important;
  }
}


/* MIG v130: REAL FIX - avatar/wallpaper picker lives INSIDE My Profile layer, above its content */
html body .mig-my-profile-panel,
html body .modal-card.glass.mig-my-profile-overridden,
html body .modal-card.mig-my-profile-overridden{
  position:relative!important;
  overflow:hidden!important;
  isolation:isolate!important;
}
html body .mig-my-profile-panel > .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-inside-profile,
html body .modal-card.mig-my-profile-overridden > .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-inside-profile,
html body .modal-card.glass.mig-my-profile-overridden > .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-inside-profile{
  position:absolute!important;
  inset:0!important;
  z-index:2147483647!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:max(16px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom))!important;
  box-sizing:border-box!important;
  background:rgba(3,8,14,.52)!important;
  backdrop-filter:blur(8px)!important;
  -webkit-backdrop-filter:blur(8px)!important;
  pointer-events:auto!important;
  transform:none!important;
  -webkit-transform:none!important;
}
html body .mig-my-profile-panel > .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-inside-profile .mig-profile-media-sheet,
html body .modal-card.mig-my-profile-overridden > .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-inside-profile .mig-profile-media-sheet,
html body .modal-card.glass.mig-my-profile-overridden > .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-inside-profile .mig-profile-media-sheet{
  position:relative!important;
  z-index:1!important;
  width:min(520px,calc(100% - 28px))!important;
  max-height:calc(100% - 28px)!important;
  overflow-y:auto!important;
  border-radius:24px!important;
  background:#101923!important;
  border:1px solid rgba(255,255,255,.12)!important;
  box-shadow:0 28px 90px rgba(0,0,0,.68)!important;
  transform:none!important;
  -webkit-transform:none!important;
}
html body .mig-profile-media-host-open .mig-my-profile-scroll{
  pointer-events:none!important;
}
@media (max-width:640px){
  html body .mig-my-profile-panel > .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-inside-profile,
  html body .modal-card.mig-my-profile-overridden > .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-inside-profile,
  html body .modal-card.glass.mig-my-profile-overridden > .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-inside-profile{
    padding:max(14px,env(safe-area-inset-top)) 14px max(14px,env(safe-area-inset-bottom))!important;
  }
  html body .mig-my-profile-panel > .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-inside-profile .mig-profile-media-sheet,
  html body .modal-card.mig-my-profile-overridden > .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-inside-profile .mig-profile-media-sheet,
  html body .modal-card.glass.mig-my-profile-overridden > .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-inside-profile .mig-profile-media-sheet{
    width:100%!important;
    max-height:calc(100% - 28px)!important;
    border-radius:24px!important;
  }
}

/* MIG v131: fix profile center after media picker + remove native upload inputs */
html body .modal-card.glass.mig-my-profile-overridden,
html body .modal-card.mig-my-profile-overridden,
html body .mig-my-profile-overridden{
  position:fixed!important;
  top:50%!important;
  left:50%!important;
  right:auto!important;
  bottom:auto!important;
  transform:translate(-50%,-50%)!important;
  margin:0!important;
  width:646px!important;
  max-width:calc(100vw - 32px)!important;
  height:auto!important;
  max-height:calc(100dvh - 32px)!important;
  overflow:hidden auto!important;
  border-radius:24px!important;
  z-index:2147483000!important;
  background:#0f1720!important;
  isolation:isolate!important;
}
html body .mig-my-profile-portal.mig-my-profile-overlay{position:fixed!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:16px!important;box-sizing:border-box!important;background:rgba(0,0,0,.34)!important;z-index:2147483000!important;}
html body .mig-my-profile-portal .mig-my-profile-panel{position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;transform:none!important;margin:auto!important;width:min(646px,calc(100vw - 32px))!important;max-height:calc(100dvh - 32px)!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;border-radius:24px!important;background:#0f1720!important;isolation:isolate!important;}
html body .mig-profile-media-file,
html body input.mig-profile-media-file,
html body .mig-profile-media-sheet input[type="file"],
html body .mig-profile-media-sheet input[type="file"].mig-profile-media-file{display:none!important;visibility:hidden!important;opacity:0!important;position:absolute!important;width:0!important;height:0!important;max-width:0!important;max-height:0!important;overflow:hidden!important;pointer-events:none!important;appearance:none!important;-webkit-appearance:none!important;}
html body .modal-card.mig-my-profile-overridden > .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-inside-profile,
html body .modal-card.glass.mig-my-profile-overridden > .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-inside-profile,
html body .mig-my-profile-panel > .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-inside-profile{position:absolute!important;inset:0!important;z-index:2147483100!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:max(16px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom))!important;background:rgba(3,8,14,.54)!important;backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important;box-sizing:border-box!important;}
html body .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-inside-profile .mig-profile-media-sheet{position:relative!important;z-index:1!important;width:min(520px,calc(100% - 28px))!important;max-height:calc(100% - 28px)!important;overflow-y:auto!important;border-radius:24px!important;background:#101923!important;}
@media(max-width:640px){html body .modal-card.glass.mig-my-profile-overridden,html body .modal-card.mig-my-profile-overridden,html body .mig-my-profile-overridden{inset:0!important;top:0!important;left:0!important;transform:none!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:100dvh!important;border-radius:0!important;}html body .mig-my-profile-portal.mig-my-profile-overlay{padding:0!important;background:#0f1720!important;}html body .mig-my-profile-portal .mig-my-profile-panel{width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;}}

/* MIG V143: left-align media action text and use stable flex layout */
.mig-profile-media-action,
.mig-profile-media-check{
  justify-content:flex-start!important;
  text-align:left!important;
}
.mig-profile-media-action > span:last-child,
.mig-profile-media-check > span:last-child{
  flex:1 1 auto!important;
  align-items:flex-start!important;
  text-align:left!important;
}
.mig-profile-media-action strong,
.mig-profile-media-action em,
.mig-profile-media-check strong,
.mig-profile-media-check em{
  width:100%!important;
  display:block!important;
  text-align:left!important;
}

/* MIG v148.2: peer profile close + wallpaper/avatar-as-wallpaper behavior */
.mig-peer-profile-drawer{position:relative!important;}
.mig-peer-profile-topbar{position:sticky!important;top:0!important;z-index:1200!important;}
.mig-peer-profile-close{position:relative!important;z-index:1300!important;pointer-events:auto!important;}
.mig-peer-profile-hero-shade{pointer-events:none!important;}
.mig-peer-profile-wallpaper-fallback{position:absolute!important;inset:0!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;}
.mig-peer-profile-hero.avatar-as-wallpaper .mig-peer-profile-identity{right:18px!important;}
.mig-peer-profile-hero.avatar-as-wallpaper .mig-peer-profile-avatar-dom{display:none!important;}


/* WEB V159: composer spacing fix.
   Removes the visible extra gap between the inline image emoji and text in the input,
   and tightens composer action spacing. */
.composer-row {
  gap: 6px !important;
}
.composer-row .icon-btn,
.composer-row .emoji-toggle-btn {
  margin: 0 !important;
  flex: 0 0 36px !important;
}
.composer-emoji-input-render,
.composer-emoji-input-render .mig-emoji-text,
.mig-composer-emoji-text {
  gap: 0 !important;
  letter-spacing: 0 !important;
  word-spacing: 0 !important;
}
.composer-emoji-input-render .mig-apple-like-emoji-inline,
.mig-apple-like-emoji-composer {
  margin-left: 0 !important;
  margin-right: 0.01em !important;
}
.composer-emoji-input-render img + span,
.mig-composer-emoji-text img + span {
  margin-left: 0 !important;
}


/* WEB V160: composer input left offset fix.
   Removes the unnecessary blank space before the placeholder/message text. */
.composer-row .composer-emoji-input-wrap {
  padding-left: 0 !important;
  margin-left: 0 !important;
}
.composer-row .composer-emoji-input-wrap input.composer-emoji-input-real,
.composer-row input.composer-emoji-input-real,
.composer-row input {
  padding-left: 0 !important;
  margin-left: 0 !important;
  text-indent: 0 !important;
}
.composer-emoji-input-render {
  padding-left: 0 !important;
  margin-left: 0 !important;
  text-indent: 0 !important;
}
.composer-emoji-input-render.placeholder {
  padding-left: 0 !important;
  margin-left: 0 !important;
}
.mig-composer-emoji-text,
.composer-emoji-input-render .mig-emoji-text {
  margin-left: 0 !important;
  padding-left: 0 !important;
  text-indent: 0 !important;
}


/* WEB V161: exact composer placeholder offset fix.
   The gap before "Сообщение" was caused by icon button box width + row gap.
   Make action icons compact and move input start closer to the paperclip. */
.composer-row {
  gap: 2px !important;
  padding-left: 8px !important;
}
.composer-row .icon-btn,
.composer-row .emoji-toggle-btn {
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 36px !important;
  flex: 0 0 34px !important;
  margin: 0 !important;
}
.composer-row .composer-emoji-input-wrap {
  flex: 1 1 auto !important;
  margin-left: -2px !important;
  padding-left: 0 !important;
}
.composer-row .composer-emoji-input-real,
.composer-row .composer-emoji-input-render {
  left: 0 !important;
  transform: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
  text-indent: 0 !important;
}
.composer-row .composer-emoji-input-render.placeholder {
  padding-left: 0 !important;
  margin-left: 0 !important;
}
@media (max-width: 920px) {
  .chat-panel.mobile-open .chat-composer-stack .composer-row {
    gap: 2px !important;
    padding-left: 8px !important;
  }
  .chat-panel.mobile-open .composer-row .icon-btn,
  .chat-panel.mobile-open .composer-row .emoji-toggle-btn {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    flex-basis: 34px !important;
  }
}


/* WEB V162: composer caret/text sync fix.
   Plain text uses the real input, emoji text uses overlay.
   This removes the fake "space" between typed text and caret. */
.composer-emoji-input-wrap.plain-text .composer-emoji-input-render.hide-overlay {
  display: none !important;
}
.composer-emoji-input-wrap.plain-text input.composer-emoji-input-real.plain-mode {
  color: var(--text, #e8eef5) !important;
  -webkit-text-fill-color: var(--text, #e8eef5) !important;
  caret-color: var(--text, #e8eef5) !important;
  text-shadow: none !important;
}
.composer-emoji-input-wrap.has-emoji input.composer-emoji-input-real.emoji-mode {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  caret-color: var(--text, #e8eef5) !important;
}
.composer-emoji-input-wrap.has-emoji .composer-emoji-input-render.show-overlay {
  display: flex !important;
}
.composer-emoji-input-wrap.plain-text input.composer-emoji-input-real::placeholder {
  color: var(--muted, #8b98a8) !important;
  -webkit-text-fill-color: var(--muted, #8b98a8) !important;
  opacity: .78 !important;
}


/* WEB V163: emoji-mode caret spacing fix.
   Keeps emoji from overlapping, while removing the fake trailing gap before caret. */
.composer-emoji-input-wrap.has-emoji {
  font-variant-ligatures: none !important;
}
.composer-emoji-input-wrap.has-emoji input.composer-emoji-input-real.emoji-mode {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  caret-color: var(--text, #e8eef5) !important;
  letter-spacing: 0 !important;
  word-spacing: 0 !important;
  font: inherit !important;
}
.composer-emoji-input-wrap.has-emoji .composer-emoji-input-render.show-overlay {
  display: block !important;
  white-space: pre !important;
  line-height: 40px !important;
  letter-spacing: 0 !important;
  word-spacing: 0 !important;
}
.composer-emoji-input-wrap.has-emoji .mig-composer-emoji-text {
  display: inline !important;
  white-space: pre !important;
  letter-spacing: 0 !important;
  word-spacing: 0 !important;
}
.composer-emoji-input-wrap.has-emoji .mig-composer-emoji-text > span {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
}
.composer-emoji-input-wrap.has-emoji .mig-apple-like-emoji-composer {
  width: 1.18em !important;
  height: 1.18em !important;
  display: inline-block !important;
  vertical-align: -0.21em !important;
  margin: 0 0.03em !important;
  padding: 0 !important;
  object-fit: contain !important;
}
.composer-emoji-input-wrap.has-emoji .mig-apple-like-emoji-composer + .mig-apple-like-emoji-composer,
.composer-emoji-input-wrap.has-emoji .mig-apple-like-emoji-fallback + .mig-apple-like-emoji-fallback {
  margin-left: 0.04em !important;
}


/* WEB V164: clean Telegram-like composer overlay.
   Always use transparent input + visible overlay; emoji is exactly 1em to prevent fake trailing gap. */
.composer-emoji-input-wrap {
  position: relative !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}
.composer-emoji-input-real,
.composer-row .composer-emoji-input-wrap input.composer-emoji-input-real {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  caret-color: var(--text, #e8eef5) !important;
  font: inherit !important;
  letter-spacing: 0 !important;
  word-spacing: 0 !important;
  text-indent: 0 !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}
.composer-emoji-input-render {
  display: flex !important;
  align-items: center !important;
  white-space: pre !important;
  font: inherit !important;
  letter-spacing: 0 !important;
  word-spacing: 0 !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
  text-indent: 0 !important;
  pointer-events: none !important;
}
.composer-emoji-input-render.placeholder {
  display: flex !important;
  opacity: .72 !important;
  color: var(--muted, #8b98a8) !important;
}
.mig-composer-emoji-text {
  display: inline !important;
  font: inherit !important;
  white-space: pre !important;
  letter-spacing: 0 !important;
  word-spacing: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.mig-composer-emoji-text > span {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
}
.mig-apple-like-emoji-composer {
  width: 1em !important;
  height: 1em !important;
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: -0.15em !important;
  object-fit: contain !important;
}


/* WEB V165: native composer input.
   Removes overlay text renderer in the composer to eliminate fake trailing gaps after text/emoji. */
.composer-emoji-input-wrap.native-input-mode {
  position: relative !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}
.composer-emoji-input-wrap.native-input-mode .composer-emoji-input-render {
  display: none !important;
}
.composer-emoji-input-wrap.native-input-mode input.composer-emoji-input-real.native-visible-input,
.composer-row .composer-emoji-input-wrap.native-input-mode input.composer-emoji-input-real.native-visible-input {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  height: 40px !important;
  min-width: 0 !important;
  background: transparent !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  color: var(--text, #e8eef5) !important;
  -webkit-text-fill-color: var(--text, #e8eef5) !important;
  caret-color: var(--text, #e8eef5) !important;
  text-shadow: none !important;
  font: inherit !important;
  line-height: 40px !important;
  letter-spacing: 0 !important;
  word-spacing: 0 !important;
  text-indent: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.composer-emoji-input-wrap.native-input-mode input.native-visible-input::placeholder {
  color: var(--muted, #8b98a8) !important;
  -webkit-text-fill-color: var(--muted, #8b98a8) !important;
  opacity: .78 !important;
}


/* WEB V167 FINAL composer fix, cache-busted main CSS. */
.composer-row{gap:4px!important}
.composer-emoji-input-wrap{position:relative!important;flex:1 1 auto!important;min-width:0!important;height:40px!important;display:flex!important;align-items:center!important;margin-left:0!important;padding-left:0!important}
.composer-emoji-input-wrap.plain-text .composer-emoji-input-render.hide-overlay{display:none!important}
.composer-emoji-input-wrap.plain-text input.composer-emoji-input-real.plain-mode{position:relative!important;z-index:2!important;width:100%!important;height:40px!important;color:var(--text,#e8eef5)!important;-webkit-text-fill-color:var(--text,#e8eef5)!important;caret-color:var(--text,#e8eef5)!important;background:transparent!important;border:0!important;outline:none!important;box-shadow:none!important;text-shadow:none!important;font:inherit!important;line-height:40px!important;letter-spacing:0!important;word-spacing:0!important;text-indent:0!important;padding:0!important;margin:0!important}
.composer-emoji-input-wrap.plain-text input.composer-emoji-input-real.plain-mode::placeholder{color:var(--muted,#8b98a8)!important;-webkit-text-fill-color:var(--muted,#8b98a8)!important;opacity:.78!important}
.composer-emoji-input-wrap.has-emoji input.composer-emoji-input-real.emoji-mode{position:relative!important;z-index:2!important;width:100%!important;height:40px!important;color:transparent!important;-webkit-text-fill-color:transparent!important;caret-color:transparent!important;background:transparent!important;border:0!important;outline:none!important;box-shadow:none!important;text-shadow:none!important;font:inherit!important;line-height:40px!important;letter-spacing:0!important;word-spacing:0!important;text-indent:0!important;padding:0!important;margin:0!important}
.composer-emoji-input-wrap.has-emoji input.composer-emoji-input-real.emoji-mode::selection{color:transparent!important;-webkit-text-fill-color:transparent!important;background:transparent!important}
.composer-emoji-input-wrap.has-emoji input.composer-emoji-input-real.emoji-mode::-moz-selection{color:transparent!important;background:transparent!important}
.composer-emoji-input-wrap.has-emoji .composer-emoji-input-render.show-overlay{position:absolute!important;inset:0!important;z-index:1!important;pointer-events:none!important;display:flex!important;align-items:center!important;white-space:pre!important;overflow:hidden!important;font:inherit!important;line-height:40px!important;letter-spacing:0!important;word-spacing:0!important;color:var(--text,#e8eef5)!important}
.composer-emoji-input-wrap.has-emoji .mig-composer-emoji-text{display:inline-flex!important;align-items:center!important;white-space:pre!important;gap:0!important;letter-spacing:0!important;word-spacing:0!important}
.composer-emoji-input-wrap.has-emoji .mig-composer-emoji-text>span{display:inline!important;margin:0!important;padding:0!important}
.composer-emoji-input-wrap.has-emoji .mig-apple-like-emoji-composer{width:1.08em!important;height:1.08em!important;display:inline-block!important;vertical-align:-.18em!important;margin:0 .015em!important;padding:0!important;object-fit:contain!important;flex:0 0 auto!important}
.composer-emoji-input-wrap.has-emoji .mig-composer-fake-caret{position:absolute!important;top:8px!important;width:1px!important;height:24px!important;background:var(--text,#e8eef5)!important;border-radius:1px!important;pointer-events:none!important;z-index:4!important;animation:migComposerCaretBlinkV167 1s steps(1) infinite!important}
@keyframes migComposerCaretBlinkV167{0%,48%{opacity:1}49%,100%{opacity:0}}


/* WEB V168: composer caret + selection visibility fix */
.composer-emoji-input-wrap.plain-text input.composer-emoji-input-real.plain-mode::selection {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: rgba(51, 144, 236, .42) !important;
}
.composer-emoji-input-wrap.plain-text input.composer-emoji-input-real.plain-mode::-moz-selection {
  color: #ffffff !important;
  background: rgba(51, 144, 236, .42) !important;
}

/* For emoji overlay mode, native selection is transparent; runtime script draws the visual highlight. */
.composer-emoji-input-wrap.has-emoji .mig-composer-selection-layer {
  position: absolute !important;
  top: 7px !important;
  height: 26px !important;
  background: rgba(51, 144, 236, .38) !important;
  border-radius: 5px !important;
  pointer-events: none !important;
  z-index: 0 !important;
}
.composer-emoji-input-wrap.has-emoji .composer-emoji-input-render.show-overlay {
  z-index: 1 !important;
}
.composer-emoji-input-wrap.has-emoji .mig-composer-fake-caret {
  display: block !important;
  opacity: 1;
  position: absolute !important;
  top: 8px !important;
  width: 2px !important;
  height: 24px !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 1px rgba(0,0,0,.15) !important;
  border-radius: 2px !important;
  pointer-events: none !important;
  z-index: 6 !important;
  animation: migComposerCaretBlinkV168 1s steps(1) infinite !important;
}
@keyframes migComposerCaretBlinkV168 {
  0%, 52% { opacity: 1; }
  53%, 100% { opacity: 0; }
}

/* MIG v169: peer profile wallpaper on wide mobile/tablet screens */
@media (min-width:700px) and (max-width:1100px){html body .mig-peer-profile-hero,html body .app-profile-hero{height:clamp(300px,38vw,380px)!important;min-height:clamp(300px,38vw,380px)!important}}

/* WEB V201: peer profile wallpaper initial cover, no bars, no delayed writer */
html body .mig-peer-profile-hero.mig-wallpaper-v201-fixed{position:relative!important;overflow:hidden!important;background:#121d27!important;max-height:none!important;}
html body .mig-peer-profile-hero.mig-wallpaper-v201-fixed .mig-peer-profile-wallpaper-fallback{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-width:100%!important;min-height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;transform:none!important;background-size:cover!important;background-position:center center!important;background-repeat:no-repeat!important;background-color:#121d27!important;}
html body .mig-peer-profile-hero.mig-wallpaper-v201-fixed .mig-peer-profile-hero-shade{position:absolute!important;inset:0!important;pointer-events:none!important;background:linear-gradient(180deg,rgba(0,0,0,.02) 0%,rgba(0,0,0,.10) 45%,rgba(0,0,0,.50) 100%)!important;}
html body .mig-peer-profile-hero.mig-wallpaper-v201-fixed .mig-peer-profile-identity{z-index:3!important;}
html body .mig-peer-profile-hero.mig-wallpaper-v201-fixed .mig-peer-profile-notify{z-index:4!important;}
@media (max-width:600px){html body .mig-peer-profile-hero.mig-wallpaper-v201-fixed{height:clamp(214px,39vw,245px)!important;min-height:clamp(214px,39vw,245px)!important;}}
@media (min-width:901px){html body .mig-peer-profile-drawer:not(.right-panel-mobile) .mig-peer-profile-hero.mig-wallpaper-v201-fixed{height:clamp(214px,52vw,260px)!important;min-height:clamp(214px,52vw,260px)!important;}}
@media (min-width:601px) and (max-width:900px){html body .mig-peer-profile-hero.mig-wallpaper-v201-fixed{height:clamp(300px,34vw,390px)!important;min-height:clamp(300px,34vw,390px)!important;}}

/* MIG WEB v215: remove old counters row and restore Telegram-like active tabs */
.mig-peer-profile-stats{display:none!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important;visibility:hidden!important;}
.mig-peer-profile-tabs-scroll{display:flex!important;align-items:center!important;gap:10px!important;overflow-x:auto!important;padding:10px 14px!important;background:#0f1720!important;scrollbar-width:none!important;}
.mig-peer-profile-tabs-scroll::-webkit-scrollbar{display:none!important;}
.mig-peer-profile-chip{min-height:46px!important;padding:0 18px!important;border-radius:999px!important;border:1px solid rgba(255,255,255,.10)!important;background:#172431!important;color:rgba(238,246,255,.78)!important;font-size:16px!important;font-weight:700!important;box-shadow:none!important;}
.mig-peer-profile-chip.active,.mig-peer-profile-chip[data-tab="media"].active{background:#2f8cff!important;color:#fff!important;border-color:#2f8cff!important;box-shadow:0 8px 18px rgba(47,140,255,.24)!important;}

/* !Профиль собеседника изменение v223: hide hard-closed panel! */
/* WEB v223: fully hide hard-closed peer profile panel */
.right-panel[data-mig-peer-profile-closed="1"],
.right-panel-mobile[data-mig-peer-profile-closed="1"]{
  display:none!important;visibility:hidden!important;pointer-events:none!important;
  width:0!important;min-width:0!important;max-width:0!important;flex:0 0 0!important;overflow:hidden!important;
}

/* !Профиль собеседника изменение v96 real! */
/* ===== mig-profile-v96-real.css ===== */
/* MIG v97: rebuilt interlocutor profile. Old profile UI is replaced in DOM. */
.mig-peer-profile-drawer{background:#0f1720!important;color:#eef6ff!important;overflow-y:auto!important;overflow-x:hidden!important;padding:0!important}.mig-peer-profile-topbar{position:sticky!important;top:0!important;z-index:30!important;min-height:56px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:0 12px 0 18px!important;background:rgba(15,23,32,.94)!important;border-bottom:1px solid rgba(255,255,255,.08)!important;backdrop-filter:blur(18px)!important}.mig-peer-profile-topbar-title{font-size:18px!important;font-weight:700!important;color:#eef6ff!important}.mig-peer-profile-close{width:38px!important;height:38px!important;border-radius:999px!important;border:0!important;background:rgba(255,255,255,.08)!important;color:#e8f3ff!important;display:grid!important;place-items:center!important;cursor:pointer!important;font-size:24px!important;line-height:1!important}.mig-peer-profile-screen{padding:0 0 max(22px,env(safe-area-inset-bottom))!important;background:#0f1720!important;min-height:100%!important}.mig-peer-profile-hero{position:relative!important;height:220px!important;margin:0!important;overflow:hidden!important;background:#1d2b38!important;border-bottom:1px solid rgba(255,255,255,.08)!important}.mig-peer-profile-wallpaper,.mig-peer-profile-wallpaper-fallback{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;background-size:cover!important;background-position:center!important}.mig-peer-profile-wallpaper-fallback{background:linear-gradient(135deg,rgba(42,91,130,.38),rgba(23,34,46,.96)),radial-gradient(circle at 20% 10%,rgba(93,174,255,.26),transparent 42%)!important}.mig-peer-profile-hero-shade{position:absolute!important;inset:0!important;background:linear-gradient(180deg,rgba(0,0,0,.08) 0%,rgba(0,0,0,.10) 45%,rgba(0,0,0,.50) 100%)!important}.mig-peer-profile-identity{position:absolute!important;left:16px!important;right:88px!important;bottom:16px!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:10px!important;min-width:0!important}.mig-peer-profile-identity .avatar,.mig-peer-profile-identity .avatar-fallback,.mig-peer-profile-avatar-dom{width:72px!important;height:72px!important;min-width:72px!important;border-radius:999px!important;border:2px solid rgba(255,255,255,.28)!important;box-shadow:0 12px 26px rgba(0,0,0,.28)!important;overflow:hidden!important;background:#4f9cff!important;color:#fff!important;display:grid!important;place-items:center!important;font-size:30px!important;font-weight:800!important}.mig-peer-profile-avatar-dom img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}.mig-peer-profile-title-block{min-width:0!important;max-width:100%!important;text-shadow:0 1px 8px rgba(0,0,0,.32)!important}.mig-peer-profile-name{font-size:26px!important;line-height:1.12!important;font-weight:800!important;color:#fff!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important}.mig-peer-profile-status{margin-top:4px!important;font-size:16px!important;line-height:1.25!important;color:rgba(238,246,255,.78)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.mig-peer-profile-notify{position:absolute!important;right:18px!important;bottom:18px!important;width:56px!important;height:56px!important;border:0!important;border-radius:999px!important;display:grid!important;place-items:center!important;background:#4f9cff!important;color:white!important;box-shadow:0 12px 28px rgba(35,126,238,.34)!important;cursor:pointer!important;font-size:22px!important}.mig-peer-profile-notify.muted{background:#ef5350!important}.mig-peer-profile-notify-menu{margin:8px 12px 0!important;background:#172431!important;border:1px solid rgba(255,255,255,.08)!important;border-radius:16px!important;overflow:hidden!important;box-shadow:0 16px 34px rgba(0,0,0,.22)!important}.mig-peer-profile-notify-menu button{width:100%!important;text-align:left!important;padding:13px 16px!important;border:0!important;border-bottom:1px solid rgba(255,255,255,.06)!important;background:transparent!important;color:#eef6ff!important;font-size:15px!important}.mig-peer-profile-notify-menu button:last-child{border-bottom:0!important}.mig-peer-profile-notify-menu .danger{color:#ff7878!important}.mig-peer-profile-info-list{margin:0!important;background:#121d27!important;border-top:1px solid rgba(255,255,255,.06)!important;border-bottom:1px solid rgba(255,255,255,.06)!important}.mig-peer-profile-info-row{min-height:62px!important;display:flex!important;align-items:center!important;gap:16px!important;padding:10px 16px!important;background:transparent!important;border-bottom:1px solid rgba(255,255,255,.065)!important}.mig-peer-profile-info-row:last-child{border-bottom:0!important}.mig-peer-profile-info-icon{width:28px!important;min-width:28px!important;display:grid!important;place-items:center!important;color:#70b3ff!important;font-size:19px!important}.mig-peer-profile-info-text{min-width:0!important;display:flex!important;flex-direction:column!important;gap:3px!important}.mig-peer-profile-info-text strong{font-size:16px!important;line-height:1.25!important;color:#eef6ff!important;font-weight:600!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.mig-peer-profile-info-text span{font-size:13px!important;color:rgba(238,246,255,.55)!important}.mig-peer-profile-tabs-scroll{display:flex!important;gap:8px!important;overflow-x:auto!important;scrollbar-width:none!important;padding:10px 10px 8px!important;background:#0f1720!important}.mig-peer-profile-tabs-scroll::-webkit-scrollbar{display:none!important}.mig-peer-profile-chip{flex:0 0 auto!important;display:inline-flex!important;align-items:center!important;gap:6px!important;min-height:38px!important;padding:0 13px!important;border-radius:999px!important;border:1px solid rgba(255,255,255,.09)!important;background:#172431!important;color:rgba(238,246,255,.78)!important;font-size:14px!important;font-weight:600!important;cursor:pointer!important}.mig-peer-profile-chip.active{background:#2f8cff!important;color:#fff!important;border-color:#2f8cff!important;box-shadow:0 8px 18px rgba(47,140,255,.22)!important}.mig-peer-profile-section-card{margin:0!important;background:#121d27!important;border-top:1px solid rgba(255,255,255,.06)!important;border-bottom:1px solid rgba(255,255,255,.06)!important}.mig-peer-profile-section-row{width:100%!important;min-height:64px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:10px 14px 10px 16px!important;border:0!important;background:transparent!important;color:#eef6ff!important;text-align:left!important;cursor:pointer!important}.mig-peer-profile-section-left{display:flex!important;align-items:center!important;gap:15px!important;min-width:0!important}.mig-peer-profile-section-icon{width:34px!important;height:34px!important;border-radius:12px!important;display:grid!important;place-items:center!important;background:rgba(79,156,255,.16)!important;color:#70b3ff!important}.mig-peer-profile-section-text{min-width:0!important;display:flex!important;flex-direction:column!important;gap:3px!important}.mig-peer-profile-section-text strong{font-size:16px!important;color:#eef6ff!important;font-weight:700!important}.mig-peer-profile-section-text span{font-size:13px!important;color:rgba(238,246,255,.55)!important}.mig-peer-profile-section-chevron{color:rgba(238,246,255,.45)!important;font-size:28px!important}.mig-peer-profile-empty{padding:18px 16px!important;font-size:14px!important;color:rgba(238,246,255,.58)!important}.mig-peer-profile-gallery-block{margin:10px 0 0!important;padding:12px 12px 16px!important;background:#121d27!important;border-top:1px solid rgba(255,255,255,.06)!important;border-bottom:1px solid rgba(255,255,255,.06)!important}.mig-peer-profile-gallery-title{display:flex!important;align-items:center!important;gap:8px!important;margin:0 0 10px!important;color:#eef6ff!important;font-weight:700!important}.mig-peer-profile-gallery-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}.mig-peer-profile-media-thumb{aspect-ratio:1/1!important;border:0!important;padding:0!important;border-radius:10px!important;overflow:hidden!important;background:#1b2a38!important}.mig-peer-profile-media-thumb img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}@media (min-width:901px){.mig-peer-profile-drawer:not(.right-panel-mobile){width:clamp(360px,32vw,430px)!important;min-width:360px!important;max-width:430px!important}.app-shell.with-right-panel{grid-template-columns:clamp(260px,31vw,360px) minmax(0,1fr) clamp(360px,32vw,430px)!important}}@media (max-width:900px){.mig-peer-profile-drawer{width:100%!important;max-width:100%!important;height:100dvh!important}.mig-peer-profile-topbar{padding-left:max(14px,env(safe-area-inset-left))!important;padding-right:max(10px,env(safe-area-inset-right))!important}.mig-peer-profile-hero{height:220px!important}.mig-peer-profile-name{font-size:25px!important}.mig-peer-profile-status{font-size:15px!important}}

/* MIG V114: keep outgoing messages on the right in selection mode */
.message-row.mine,
.message-row.selecting.mine,
.message-row.selected.mine {
  justify-content: flex-end !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  align-self: stretch !important;
}
.message-row.selecting.mine .bubble,
.message-row.selected.mine .bubble {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.message-row.selecting.mine .message-select-toggle,
.message-row.selected.mine .message-select-toggle {
  order: 0 !important;
}
.message-row.selecting.mine .bubble,
.message-row.selected.mine .bubble {
  order: 1 !important;
}


/* MIG v119: force "Мой профиль" above voice-transcribe-action/day-pill */
html body .modal-card.glass.mig-my-profile-overridden,
html body .modal-card.mig-my-profile-overridden,
html body .mig-my-profile-overridden,
html body .mig-my-profile,
html body .my-profile-window,
html body .account-window {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  isolation: isolate !important;
  transform: none !important;
  will-change: auto !important;
  contain: none !important;
  background: #0f1720 !important;
}

/* Keep the inner profile content above its own background */
html body .modal-card.glass.mig-my-profile-overridden *,
html body .modal-card.mig-my-profile-overridden *,
html body .mig-my-profile-overridden *,
html body .mig-my-profile * {
  position: relative;
  z-index: 2147483647;
}

/* Force problematic chat floating/sticky controls below any profile layer */
html body .voice-transcribe-action,
html body .day-pill,
html body .chat-day-pill,
html body .date-pill,
html body .voice-transcript-toggle,
html body .voice-transcript-action {
  position: relative !important;
  z-index: 0 !important;
  transform: none !important;
  will-change: auto !important;
  contain: none !important;
  isolation: auto !important;
}

/* If date pill was sticky/fixed, disable that while keeping visual position sane */
html body .day-pill,
html body .chat-day-pill,
html body .date-pill {
  position: relative !important;
}

/* Extra guard: profile parent/backdrop layers */
html body .modal-backdrop:has(.mig-my-profile-overridden),
html body .modal-root:has(.mig-my-profile-overridden),
html body .settings-modal:has(.mig-my-profile-overridden),
html body .profile-modal:has(.mig-my-profile-overridden) {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483646 !important;
  isolation: isolate !important;
}


/* MIG v120: Desktop "Мой профиль" centered window, chat visible behind */
@media (min-width: 769px) {
  html body .modal-card.glass.mig-my-profile-overridden,
  html body .modal-card.mig-my-profile-overridden,
  html body .mig-my-profile-overridden,
  html body .mig-my-profile,
  html body .my-profile-window,
  html body .account-window {
    position: fixed !important;
    inset: auto !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: 430px !important;
    max-width: calc(100vw - 48px) !important;
    min-width: 360px !important;
    height: auto !important;
    max-height: calc(100vh - 80px) !important;
    overflow: hidden auto !important;
    border-radius: 18px !important;
    z-index: 2147483647 !important;
    isolation: isolate !important;
    background: #0f1720 !important;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.62) !important;
    contain: none !important;
  }

  /* Dimmed desktop backdrop while keeping chat visible */
  html body:has(.mig-my-profile-overridden)::before,
  html body:has(.mig-my-profile)::before,
  html body:has(.my-profile-window)::before,
  html body:has(.account-window)::before {
    content: "" !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483646 !important;
    background: rgba(0, 0, 0, 0.36) !important;
    pointer-events: none !important;
  }

  /* Keep problematic floating chat controls below the centered profile window */
  html body .voice-transcribe-action,
  html body .day-pill,
  html body .chat-day-pill,
  html body .date-pill,
  html body .voice-transcript-toggle,
  html body .voice-transcript-action {
    z-index: 1 !important;
  }
}

/* Mobile stays full-screen/app-like */
@media (max-width: 768px) {
  html body .modal-card.glass.mig-my-profile-overridden,
  html body .modal-card.mig-my-profile-overridden,
  html body .mig-my-profile-overridden,
  html body .mig-my-profile,
  html body .my-profile-window,
  html body .account-window {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483647 !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    border-radius: 0 !important;
    background: #0f1720 !important;
  }
}

/* v121: increase profile window size and remove blue modal backdrop */
@media (min-width: 769px) {
  .modal-card.glass.mig-my-profile-overridden,
  .mig-my-profile-overridden,
  .mig-my-profile {
    width: 520px !important;
    max-width: calc(100vw - 32px) !important;
    min-width: 420px !important;
    max-height: calc(100vh - 40px) !important;
  }
}



/* v123: iPhone safe-area for My Profile */
@supports (padding-top: env(safe-area-inset-top)) {
  .modal-card.glass.mig-my-profile-overridden,
  .mig-my-profile-overridden,
  .mig-my-profile {
    padding-top: calc(env(safe-area-inset-top) + 8px) !important;
  }
}

/* MIG v148.2: peer profile close + wallpaper/avatar-as-wallpaper behavior */
.mig-peer-profile-drawer{position:relative!important;}
.mig-peer-profile-topbar{position:sticky!important;top:0!important;z-index:1200!important;}
.mig-peer-profile-close{position:relative!important;z-index:1300!important;pointer-events:auto!important;}
.mig-peer-profile-hero-shade{pointer-events:none!important;}
.mig-peer-profile-wallpaper-fallback{position:absolute!important;inset:0!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;}
.mig-peer-profile-hero.avatar-as-wallpaper .mig-peer-profile-identity{right:18px!important;}
.mig-peer-profile-hero.avatar-as-wallpaper .mig-peer-profile-avatar-dom{display:none!important;}

/* MIG v169: peer profile wallpaper on wide mobile/tablet screens */
@media (min-width:700px) and (max-width:1100px){html body .mig-peer-profile-hero,html body .app-profile-hero{height:clamp(300px,38vw,380px)!important;min-height:clamp(300px,38vw,380px)!important}}

/* MIG WEB v215: remove old counters row and restore Telegram-like active tabs */
.mig-peer-profile-stats{display:none!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important;visibility:hidden!important;}
.mig-peer-profile-tabs-scroll{display:flex!important;align-items:center!important;gap:10px!important;overflow-x:auto!important;padding:10px 14px!important;background:#0f1720!important;scrollbar-width:none!important;}
.mig-peer-profile-tabs-scroll::-webkit-scrollbar{display:none!important;}
.mig-peer-profile-chip{min-height:46px!important;padding:0 18px!important;border-radius:999px!important;border:1px solid rgba(255,255,255,.10)!important;background:#172431!important;color:rgba(238,246,255,.78)!important;font-size:16px!important;font-weight:700!important;box-shadow:none!important;}
.mig-peer-profile-chip.active,.mig-peer-profile-chip[data-tab="media"].active{background:#2f8cff!important;color:#fff!important;border-color:#2f8cff!important;box-shadow:0 8px 18px rgba(47,140,255,.24)!important;}

/* !Профиль собеседника изменение v98 polish! */
/* ===== mig-profile-v98-polish.css ===== */
/* MIG v98: profile polish and full old-peer-profile suppression */
.mig-peer-profile-v98 .profile-card,.mig-peer-profile-v98 .profile-stats,.mig-peer-profile-v98 .app-profile-card,.mig-peer-profile-v98 .app-profile-hero{display:none!important}
.mig-peer-profile-v98 .mig-peer-profile-identity{flex-direction:row!important;align-items:flex-end!important;gap:14px!important;right:82px!important}
.mig-peer-profile-v98 .mig-peer-profile-avatar-dom{width:76px!important;height:76px!important;min-width:76px!important}
.mig-peer-profile-v98 .mig-peer-profile-name{font-size:25px!important;letter-spacing:-.02em!important}
.mig-peer-profile-v98 .mig-peer-profile-actions{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:10px!important;padding:12px!important;background:#0f1720!important}
.mig-peer-profile-v98 .mig-peer-profile-actions button{min-height:70px!important;border:0!important;border-radius:18px!important;background:#121d27!important;color:#dcecff!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:7px!important;font-size:13px!important;font-weight:650!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.055)!important;cursor:pointer!important}
.mig-peer-profile-v98 .mig-peer-profile-action-icon{width:32px!important;height:32px!important;border-radius:999px!important;background:rgba(79,156,255,.16)!important;color:#70b3ff!important;display:grid!important;place-items:center!important;font-size:18px!important}
.mig-peer-profile-v98 .mig-peer-profile-stats{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:1px!important;margin:0!important;background:rgba(255,255,255,.06)!important;border-top:1px solid rgba(255,255,255,.06)!important;border-bottom:1px solid rgba(255,255,255,.06)!important}
.mig-peer-profile-v98 .mig-peer-profile-stats div{min-height:62px!important;background:#121d27!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important}
.mig-peer-profile-v98 .mig-peer-profile-stats strong{font-size:20px!important;line-height:1!important;color:#eef6ff!important}.mig-peer-profile-v98 .mig-peer-profile-stats span{font-size:12px!important;color:rgba(238,246,255,.55)!important}
.mig-peer-profile-v98 .mig-peer-profile-tab-content{min-height:132px!important;padding:0!important}.mig-peer-profile-v98 .mig-peer-profile-gallery-grid.embedded{padding:6px!important}.mig-peer-profile-v98 .mig-peer-profile-media-thumb{border-radius:8px!important;background:#1b2a38!important;color:#70b3ff!important;display:grid!important;place-items:center!important}.mig-peer-profile-v98 .mig-peer-profile-notify-menu[hidden]{display:none!important}
.app-my-profile-modal{background:#0f1720!important;border-radius:22px!important;overflow:hidden!important}.app-my-profile-modal .modal-head{background:#121d27!important;border-bottom:1px solid rgba(255,255,255,.08)!important}.app-my-profile-body{background:#0f1720!important}.app-my-profile-hero{height:236px!important;min-height:236px!important;border-radius:0!important;margin:0!important}.app-my-profile-edit-card .app-profile-card-title,.app-profile-card .app-profile-card-title{font-size:17px!important;font-weight:750!important}.app-profile-save-btn{box-shadow:0 10px 26px rgba(47,140,255,.22)!important}
@media(max-width:900px){.mig-peer-profile-v98 .mig-peer-profile-actions{padding-left:max(12px,env(safe-area-inset-left))!important;padding-right:max(12px,env(safe-area-inset-right))!important}.mig-peer-profile-v98 .mig-peer-profile-actions button{min-height:64px!important}.mig-peer-profile-v98 .mig-peer-profile-identity{left:max(16px,env(safe-area-inset-left))!important;right:82px!important}.mig-peer-profile-v98 .mig-peer-profile-hero{height:226px!important}}
@media(max-width:520px){.mig-peer-profile-v98 .mig-peer-profile-avatar-dom{width:70px!important;height:70px!important;min-width:70px!important}.mig-peer-profile-v98 .mig-peer-profile-name{font-size:23px!important}.mig-peer-profile-v98 .mig-peer-profile-actions{gap:8px!important}.mig-peer-profile-v98 .mig-peer-profile-actions button{min-height:60px!important;border-radius:16px!important;font-size:12px!important}.mig-peer-profile-v98 .mig-peer-profile-action-icon{width:28px!important;height:28px!important}}

/* MIG V114: keep outgoing messages on the right in selection mode */
.message-row.mine,
.message-row.selecting.mine,
.message-row.selected.mine {
  justify-content: flex-end !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  align-self: stretch !important;
}
.message-row.selecting.mine .bubble,
.message-row.selected.mine .bubble {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.message-row.selecting.mine .message-select-toggle,
.message-row.selected.mine .message-select-toggle {
  order: 0 !important;
}
.message-row.selecting.mine .bubble,
.message-row.selected.mine .bubble {
  order: 1 !important;
}


/* MIG v119: force "Мой профиль" above voice-transcribe-action/day-pill */
html body .modal-card.glass.mig-my-profile-overridden,
html body .modal-card.mig-my-profile-overridden,
html body .mig-my-profile-overridden,
html body .mig-my-profile,
html body .my-profile-window,
html body .account-window {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  isolation: isolate !important;
  transform: none !important;
  will-change: auto !important;
  contain: none !important;
  background: #0f1720 !important;
}

/* Keep the inner profile content above its own background */
html body .modal-card.glass.mig-my-profile-overridden *,
html body .modal-card.mig-my-profile-overridden *,
html body .mig-my-profile-overridden *,
html body .mig-my-profile * {
  position: relative;
  z-index: 2147483647;
}

/* Force problematic chat floating/sticky controls below any profile layer */
html body .voice-transcribe-action,
html body .day-pill,
html body .chat-day-pill,
html body .date-pill,
html body .voice-transcript-toggle,
html body .voice-transcript-action {
  position: relative !important;
  z-index: 0 !important;
  transform: none !important;
  will-change: auto !important;
  contain: none !important;
  isolation: auto !important;
}

/* If date pill was sticky/fixed, disable that while keeping visual position sane */
html body .day-pill,
html body .chat-day-pill,
html body .date-pill {
  position: relative !important;
}

/* Extra guard: profile parent/backdrop layers */
html body .modal-backdrop:has(.mig-my-profile-overridden),
html body .modal-root:has(.mig-my-profile-overridden),
html body .settings-modal:has(.mig-my-profile-overridden),
html body .profile-modal:has(.mig-my-profile-overridden) {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483646 !important;
  isolation: isolate !important;
}


/* MIG v120: Desktop "Мой профиль" centered window, chat visible behind */
@media (min-width: 769px) {
  html body .modal-card.glass.mig-my-profile-overridden,
  html body .modal-card.mig-my-profile-overridden,
  html body .mig-my-profile-overridden,
  html body .mig-my-profile,
  html body .my-profile-window,
  html body .account-window {
    position: fixed !important;
    inset: auto !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: 430px !important;
    max-width: calc(100vw - 48px) !important;
    min-width: 360px !important;
    height: auto !important;
    max-height: calc(100vh - 80px) !important;
    overflow: hidden auto !important;
    border-radius: 18px !important;
    z-index: 2147483647 !important;
    isolation: isolate !important;
    background: #0f1720 !important;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.62) !important;
    contain: none !important;
  }

  /* Dimmed desktop backdrop while keeping chat visible */
  html body:has(.mig-my-profile-overridden)::before,
  html body:has(.mig-my-profile)::before,
  html body:has(.my-profile-window)::before,
  html body:has(.account-window)::before {
    content: "" !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483646 !important;
    background: rgba(0, 0, 0, 0.36) !important;
    pointer-events: none !important;
  }

  /* Keep problematic floating chat controls below the centered profile window */
  html body .voice-transcribe-action,
  html body .day-pill,
  html body .chat-day-pill,
  html body .date-pill,
  html body .voice-transcript-toggle,
  html body .voice-transcript-action {
    z-index: 1 !important;
  }
}

/* Mobile stays full-screen/app-like */
@media (max-width: 768px) {
  html body .modal-card.glass.mig-my-profile-overridden,
  html body .modal-card.mig-my-profile-overridden,
  html body .mig-my-profile-overridden,
  html body .mig-my-profile,
  html body .my-profile-window,
  html body .account-window {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483647 !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    border-radius: 0 !important;
    background: #0f1720 !important;
  }
}

/* v121: increase profile window size and remove blue modal backdrop */
@media (min-width: 769px) {
  .modal-card.glass.mig-my-profile-overridden,
  .mig-my-profile-overridden,
  .mig-my-profile {
    width: 520px !important;
    max-width: calc(100vw - 32px) !important;
    min-width: 420px !important;
    max-height: calc(100vh - 40px) !important;
  }
}



/* v123: iPhone safe-area for My Profile */
@supports (padding-top: env(safe-area-inset-top)) {
  .modal-card.glass.mig-my-profile-overridden,
  .mig-my-profile-overridden,
  .mig-my-profile {
    padding-top: calc(env(safe-area-inset-top) + 8px) !important;
  }
}

/* MIG v148.7: keep only the new peer profile overlay visible */
html body .right-panel.mig-peer-profile-dom-overlayed > .mig-peer-profile-overlay-dom,
html body .right-panel-mobile.mig-peer-profile-dom-overlayed > .mig-peer-profile-overlay-dom{display:flex!important;}
html body .mig-peer-profile-hero.avatar-as-wallpaper .mig-peer-profile-avatar-dom{display:none!important;}

/* WEB V201: peer profile wallpaper initial cover, no bars, no delayed writer */
html body .mig-peer-profile-hero.mig-wallpaper-v201-fixed{position:relative!important;overflow:hidden!important;background:#121d27!important;max-height:none!important;}
html body .mig-peer-profile-hero.mig-wallpaper-v201-fixed .mig-peer-profile-wallpaper-fallback{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-width:100%!important;min-height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;transform:none!important;background-size:cover!important;background-position:center center!important;background-repeat:no-repeat!important;background-color:#121d27!important;}
html body .mig-peer-profile-hero.mig-wallpaper-v201-fixed .mig-peer-profile-hero-shade{position:absolute!important;inset:0!important;pointer-events:none!important;background:linear-gradient(180deg,rgba(0,0,0,.02) 0%,rgba(0,0,0,.10) 45%,rgba(0,0,0,.50) 100%)!important;}
html body .mig-peer-profile-hero.mig-wallpaper-v201-fixed .mig-peer-profile-identity{z-index:3!important;}
html body .mig-peer-profile-hero.mig-wallpaper-v201-fixed .mig-peer-profile-notify{z-index:4!important;}
@media (max-width:600px){html body .mig-peer-profile-hero.mig-wallpaper-v201-fixed{height:clamp(214px,39vw,245px)!important;min-height:clamp(214px,39vw,245px)!important;}}
@media (min-width:901px){html body .mig-peer-profile-drawer:not(.right-panel-mobile) .mig-peer-profile-hero.mig-wallpaper-v201-fixed{height:clamp(214px,52vw,260px)!important;min-height:clamp(214px,52vw,260px)!important;}}
@media (min-width:601px) and (max-width:900px){html body .mig-peer-profile-hero.mig-wallpaper-v201-fixed{height:clamp(300px,34vw,390px)!important;min-height:clamp(300px,34vw,390px)!important;}}

/* WEB v211: permanently hide/delete any legacy peer profile DOM behind the new overlay */
html body .right-panel.mig-peer-profile-dom-overlayed > :not(.mig-peer-profile-overlay-dom),
html body .right-panel-mobile.mig-peer-profile-dom-overlayed > :not(.mig-peer-profile-overlay-dom),
html body .mig-peer-profile-drawer.mig-peer-profile-dom-overlayed > :not(.mig-peer-profile-overlay-dom){
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
html body .right-panel.mig-peer-profile-dom-overlayed > .mig-peer-profile-overlay-dom,
html body .right-panel-mobile.mig-peer-profile-dom-overlayed > .mig-peer-profile-overlay-dom,
html body .mig-peer-profile-drawer.mig-peer-profile-dom-overlayed > .mig-peer-profile-overlay-dom{
  display:flex!important;
  flex-direction:column!important;
  width:100%!important;
  min-height:100%!important;
}

/* WEB v216 peer profile tab contents */
.mig-peer-profile-file-list{display:flex;flex-direction:column;gap:8px;padding:4px 0;}
.mig-peer-profile-file-row{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border-radius:16px;border:1px solid rgba(139,164,184,.16);background:rgba(22,35,47,.72);color:#e8f1fb;text-decoration:none;text-align:left;box-sizing:border-box;}
.mig-peer-profile-file-row:hover{background:rgba(35,54,70,.82);}
.mig-peer-profile-file-icon{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(70,151,245,.16);font-size:18px;flex:0 0 auto;}
.mig-peer-profile-file-main{min-width:0;display:flex;flex-direction:column;gap:3px;}
.mig-peer-profile-file-main strong{font-size:15px;font-weight:700;color:#e8f1fb;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.mig-peer-profile-file-main small{font-size:12px;color:#8fa0af;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.mig-peer-profile-tabs-scroll .mig-peer-profile-chip.active{background:#3390ec!important;border-color:#3390ec!important;color:#fff!important;}

/* WEB v217: peer profile header actions cleanup + hero message button + white bell */
html body .mig-peer-profile-actions{display:none!important;}
html body .mig-peer-profile-message-hero{
  position:absolute!important;
  right:92px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  z-index:5!important;
  min-height:42px!important;
  padding:0 16px!important;
  border:1px solid rgba(255,255,255,.26)!important;
  border-radius:999px!important;
  background:rgba(15,23,32,.62)!important;
  color:#fff!important;
  font-weight:800!important;
  font-size:14px!important;
  line-height:1!important;
  white-space:nowrap!important;
  box-shadow:0 8px 22px rgba(0,0,0,.24)!important;
  backdrop-filter:blur(10px)!important;
  -webkit-backdrop-filter:blur(10px)!important;
}
html body .mig-peer-profile-message-hero:active{transform:translateY(-50%) scale(.98)!important;}
html body .mig-peer-profile-notify{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#fff!important;
  font-size:0!important;
}
html body .mig-peer-profile-notify svg{
  width:26px!important;
  height:26px!important;
  display:block!important;
  stroke:#fff!important;
  fill:none!important;
  stroke-width:2!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
html body .mig-peer-profile-file-row[href^="http"] .mig-peer-profile-file-main strong{
  word-break:break-word!important;
}
html body .mig-peer-profile-file-row .mig-peer-profile-file-main small{
  word-break:break-word!important;
}
@media (max-width:600px){
  html body .mig-peer-profile-message-hero{
    right:84px!important;
    top:42%!important;
    max-width:calc(100% - 176px)!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    font-size:13px!important;
    min-height:38px!important;
    padding:0 12px!important;
  }
}
@media (max-width:420px){
  html body .mig-peer-profile-message-hero{
    font-size:0!important;
    width:44px!important;
    min-width:44px!important;
    padding:0!important;
  }
  html body .mig-peer-profile-message-hero::before{
    content:'✉';
    font-size:19px!important;
    line-height:1!important;
  }
}


/* WEB v218: peer profile hero circular message button above notify + centered close */
html body .mig-peer-profile-actions{display:none!important;}
html body .mig-peer-profile-message-hero{
  position:absolute!important;
  right:18px!important;
  bottom:88px!important;
  top:auto!important;
  transform:none!important;
  z-index:5!important;
  width:56px!important;
  height:56px!important;
  min-width:56px!important;
  min-height:56px!important;
  max-width:56px!important;
  max-height:56px!important;
  padding:0!important;
  border:0!important;
  border-radius:999px!important;
  background:#4f9cff!important;
  color:#fff!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-shadow:0 12px 28px rgba(35,126,238,.34)!important;
  font-size:0!important;
  line-height:1!important;
  cursor:pointer!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
html body .mig-peer-profile-message-hero:active{transform:scale(.96)!important;}
html body .mig-peer-profile-message-hero svg{
  width:27px!important;
  height:27px!important;
  display:block!important;
  stroke:#fff!important;
  fill:none!important;
  stroke-width:2!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
html body .mig-peer-profile-notify{
  right:18px!important;
  bottom:18px!important;
  width:56px!important;
  height:56px!important;
  min-width:56px!important;
  min-height:56px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#fff!important;
  font-size:0!important;
  padding:0!important;
}
html body .mig-peer-profile-notify svg{
  width:26px!important;
  height:26px!important;
  display:block!important;
  stroke:#fff!important;
  fill:none!important;
  stroke-width:2!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
html body .mig-peer-profile-close{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  padding:0!important;
  line-height:1!important;
  font-size:0!important;
  font-family:Arial,Helvetica,sans-serif!important;
}
html body .mig-peer-profile-close::before{
  content:'×'!important;
  display:block!important;
  font-size:32px!important;
  line-height:1!important;
  font-weight:400!important;
  color:#e8f3ff!important;
  transform:translateY(-1px)!important;
}
@media(max-width:600px){
  html body .mig-peer-profile-message-hero{right:14px!important;bottom:82px!important;width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;max-width:52px!important;max-height:52px!important;}
  html body .mig-peer-profile-notify{right:14px!important;bottom:16px!important;width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;}
}


/* WEB v219: close button behavior/centering + Telegram-like voice rows */
html body .mig-peer-profile-close{
  display:grid!important;
  place-items:center!important;
  text-align:center!important;
  line-height:1!important;
}
html body .mig-peer-profile-close svg,
html body .mig-peer-profile-close::before,
html body .mig-peer-profile-close::after{
  margin:auto!important;
}
html body .mig-peer-profile-voice-list{
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
  padding:8px 10px 14px!important;
}
html body .mig-peer-profile-voice-row{
  min-height:74px!important;
  border-radius:10px!important;
  background:rgba(255,255,255,.035)!important;
  border:1px solid rgba(255,255,255,.045)!important;
  padding:10px 14px 10px 14px!important;
  gap:12px!important;
  align-items:center!important;
}
html body .mig-peer-profile-voice-play{
  width:56px!important;
  height:56px!important;
  min-width:56px!important;
  border-radius:999px!important;
  display:grid!important;
  place-items:center!important;
  background:#3d9be3!important;
  color:white!important;
}
html body .mig-peer-profile-voice-play svg{
  width:30px!important;
  height:30px!important;
  fill:currentColor!important;
  transform:translateX(2px)!important;
}
html body .mig-peer-profile-voice-row .mig-peer-profile-file-main strong{
  font-size:16px!important;
  font-weight:800!important;
  color:#eef6ff!important;
}
html body .mig-peer-profile-voice-row .mig-peer-profile-file-main small{
  font-size:14px!important;
  color:rgba(238,246,255,.56)!important;
}


/* WEB v220: full close collapse + in-profile voice playback (no download) */
html body .mig-peer-profile-voice-row{
  width:100%!important;
  cursor:pointer!important;
  text-align:left!important;
  color:inherit!important;
}
html body button.mig-peer-profile-voice-row{
  border:1px solid rgba(255,255,255,.045)!important;
  font:inherit!important;
}
html body .mig-peer-profile-voice-play .pause{display:none!important;transform:none!important;}
html body .mig-peer-profile-voice-row.playing .mig-peer-profile-voice-play .play{display:none!important;}
html body .mig-peer-profile-voice-row.playing .mig-peer-profile-voice-play .pause{display:block!important;}
html body .right-panel[aria-hidden="true"].mig-peer-profile-drawer,
html body .right-panel[style*="width: 0px"],
html body .right-panel-mobile[aria-hidden="true"].mig-peer-profile-drawer{
  display:none!important;
  width:0!important;
  min-width:0!important;
  max-width:0!important;
  flex:0 0 0!important;
  overflow:hidden!important;
  visibility:hidden!important;
  pointer-events:none!important;
}


/* WEB v221: reopen-safe close, no legacy flash, left-aligned voice titles */
html body .mig-peer-profile-awaiting-render{
  visibility:hidden!important;
}
html body .mig-peer-profile-voice-row .mig-peer-profile-file-main{
  align-items:flex-start!important;
  justify-content:center!important;
  text-align:left!important;
  flex:1 1 auto!important;
}
html body .mig-peer-profile-voice-row .mig-peer-profile-file-main strong,
html body .mig-peer-profile-voice-row .mig-peer-profile-file-main small{
  display:block!important;
  width:100%!important;
  text-align:left!important;
  margin-left:0!important;
  align-self:flex-start!important;
}


/* WEB v222: peer profile lifecycle + voice tab alignment */
.mig-peer-profile-awaiting-render { visibility: hidden !important; }
.mig-peer-profile-voice-row .mig-peer-profile-file-main,
.mig-peer-profile-voice-row .mig-peer-profile-file-main strong,
.mig-peer-profile-voice-row .mig-peer-profile-file-main small {
  text-align: left !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}
.mig-peer-profile-voice-row .mig-peer-profile-file-main {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
}

/* =========================================================
!ПРОФИЛЬ СОБЕСЕДНИКА КОНЕЦ!
========================================================= */

/* =========================================================
!ПРОФИЛЬ ГРУППЫ НАЧАЛО!
Связанные стили группы: topbar, hero, avatar, actions, info rows, tabs, участники.

/* УДАЛЕНО: устаревший блок заменён более поздней версией ниже. */

/* УДАЛЕНО: устаревший блок заменён более поздней версией ниже. */

/* УДАЛЕНО: устаревший блок заменён более поздней версией ниже. */
!Мой профиль изменение v101!
========================================================= */
/* ===== mig-my-profile-v101.css ===== */
/* MIG v101: new My Profile overlay for Web */
.mig-my-profile-overridden.modal-card{width:min(560px,100vw - 24px)!important;height:min(860px,100dvh - 24px)!important;max-height:calc(100dvh - 24px)!important;padding:0!important;border-radius:22px!important;overflow:hidden!important;background:#0f1720!important;color:#edf6ff!important;border:1px solid rgba(255,255,255,.08)!important;box-shadow:0 24px 80px rgba(0,0,0,.45)!important;display:flex!important;flex-direction:column!important}.mig-my-profile-overridden .modal-head{height:58px!important;min-height:58px!important;padding:0 12px!important;background:rgba(15,23,32,.98)!important;border-bottom:1px solid rgba(255,255,255,.08)!important;display:flex!important;align-items:center!important;gap:10px!important}.mig-my-profile-overridden .modal-head h3{font-size:19px!important;font-weight:800!important;margin:0!important;color:#edf6ff!important}.mig-my-profile-overridden .mig-my-profile-scroll{flex:1!important;overflow-y:auto!important;background:#0f1720!important;padding-bottom:max(22px,env(safe-area-inset-bottom))!important}.mig-my-profile-hero{position:relative!important;height:232px!important;min-height:232px!important;overflow:hidden!important;background:#1d2b38!important;border-bottom:1px solid rgba(255,255,255,.08)!important}.mig-my-profile-wallpaper,.mig-my-profile-wallpaper-fallback{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important}.mig-my-profile-wallpaper-fallback{background:linear-gradient(135deg,rgba(33,104,161,.48),rgba(15,23,32,.96)),radial-gradient(circle at 24% 15%,rgba(84,165,247,.32),transparent 45%)!important}.mig-my-profile-hero-shade{position:absolute!important;inset:0!important;background:linear-gradient(180deg,rgba(0,0,0,.04) 0%,rgba(0,0,0,.16) 45%,rgba(0,0,0,.62) 100%)!important}.mig-my-profile-identity{position:absolute!important;left:18px!important;right:92px!important;bottom:18px!important;display:flex!important;flex-direction:column!important;gap:12px!important;align-items:flex-start!important}.mig-my-profile-avatar{width:88px!important;height:88px!important;border-radius:999px!important;border:2px solid rgba(255,255,255,.30)!important;box-shadow:0 12px 28px rgba(0,0,0,.30)!important;overflow:hidden!important;display:grid!important;place-items:center!important;background:#54a5f7!important;color:#fff!important;font-size:35px!important;font-weight:850!important}.mig-my-profile-avatar img{width:100%!important;height:100%!important;object-fit:cover!important}.mig-my-profile-name{font-size:27px!important;line-height:1.05!important;font-weight:850!important;letter-spacing:-.025em!important;color:#fff!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important;text-shadow:0 1px 8px rgba(0,0,0,.35)!important}.mig-my-profile-status{margin-top:4px!important;font-size:16px!important;line-height:1.25!important;color:rgba(235,245,255,.80)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important;text-shadow:0 1px 8px rgba(0,0,0,.35)!important}.mig-my-profile-camera{position:absolute!important;right:18px!important;bottom:18px!important;width:54px!important;height:54px!important;border-radius:999px!important;border:0!important;background:#54a5f7!important;color:#fff!important;box-shadow:0 10px 24px rgba(0,0,0,.30)!important;display:grid!important;place-items:center!important;font-size:22px!important}.mig-my-profile-section{margin-top:14px!important;background:#17212b!important;border-top:1px solid rgba(255,255,255,.07)!important;border-bottom:1px solid rgba(255,255,255,.07)!important}.mig-my-profile-section-title{padding:15px 18px 8px!important;font-size:17px!important;font-weight:800!important;color:#edf6ff!important}.mig-my-profile-overridden label.field-label{display:flex!important;align-items:center!important;gap:9px!important;padding:10px 16px 7px!important;margin:0!important;color:#91a4b7!important;font-size:13px!important;font-weight:700!important}.mig-my-profile-overridden input,.mig-my-profile-overridden textarea{width:calc(100% - 32px)!important;margin:0 16px 10px!important;box-sizing:border-box!important;border-radius:13px!important;border:1px solid rgba(255,255,255,.10)!important;background:#0f1720!important;color:#edf6ff!important;padding:13px 14px!important;font-size:15px!important;outline:none!important;resize:vertical!important}.mig-my-profile-overridden input:focus,.mig-my-profile-overridden textarea:focus{border-color:rgba(84,165,247,.75)!important;box-shadow:0 0 0 3px rgba(84,165,247,.12)!important}.mig-my-profile-overridden .primary-btn{margin:10px 16px 16px!important;width:calc(100% - 32px)!important;min-height:46px!important;border-radius:14px!important;border:0!important;background:#54a5f7!important;color:#fff!important;font-size:15px!important;font-weight:800!important}.mig-my-profile-info-row{min-height:62px!important;display:flex!important;align-items:center!important;gap:14px!important;padding:13px 18px!important;border-top:1px solid rgba(255,255,255,.07)!important;box-sizing:border-box!important}.mig-my-profile-section-title+.mig-my-profile-info-row{border-top:0!important}.mig-my-profile-info-icon{width:30px!important;min-width:30px!important;color:#54a5f7!important;display:grid!important;place-items:center!important;font-size:20px!important}.mig-my-profile-info-text{min-width:0!important;display:flex!important;flex-direction:column!important;gap:3px!important}.mig-my-profile-info-text span{font-size:13px!important;color:#91a4b7!important}.mig-my-profile-info-text strong{font-size:16px!important;line-height:1.25!important;font-weight:500!important;color:#edf6ff!important;word-break:break-word!important}.mig-my-profile-overridden .settings-profile,.mig-my-profile-overridden>label.field-label,.mig-my-profile-overridden>input,.mig-my-profile-overridden>textarea,.mig-my-profile-overridden>.primary-btn{display:none!important}@media(max-width:640px){.mig-my-profile-overridden.modal-card{width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;border:0!important}.mig-my-profile-hero{height:224px!important;min-height:224px!important}.mig-my-profile-name{font-size:25px!important}.mig-my-profile-camera{width:52px!important;height:52px!important}}

/* MIG v102: stronger layer and opaque profile cards */
.mig-my-profile-overlay{z-index:2147483000!important;background:rgba(3,8,14,.74)!important;backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important;isolation:isolate!important}.mig-my-profile-panel{z-index:2147483001!important;background:#0f1720!important;opacity:1!important;isolation:isolate!important;box-shadow:0 34px 110px rgba(0,0,0,.68),0 0 0 1px rgba(255,255,255,.10)!important}.mig-my-profile-panel:before{content:''!important;position:absolute!important;inset:0!important;z-index:-1!important;background:#0f1720!important;border-radius:inherit!important}.mig-my-profile-scroll{background:#0f1720!important}.mig-my-profile-section{margin:12px 12px 0!important;border:1px solid rgba(255,255,255,.07)!important;border-radius:20px!important;background:#17232f!important;overflow:hidden!important}.mig-my-profile-field input,.mig-my-profile-field textarea{background:#0d1722!important;opacity:1!important}.mig-my-profile-info-row,.mig-my-profile-hint-row,.mig-my-profile-field,.mig-my-profile-section-title{background:#17232f!important}@media(min-width:900px){.mig-my-profile-panel{width:min(620px,calc(100vw - 32px))!important;height:min(860px,calc(100dvh - 32px))!important}}@media(max-width:640px){.mig-my-profile-overlay{background:#0f1720!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}.mig-my-profile-panel{width:100vw!important;height:100dvh!important;border-radius:0!important}}

/* MIG V114: keep outgoing messages on the right in selection mode */
.message-row.mine,
.message-row.selecting.mine,
.message-row.selected.mine {
  justify-content: flex-end !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  align-self: stretch !important;
}
.message-row.selecting.mine .bubble,
.message-row.selected.mine .bubble {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.message-row.selecting.mine .message-select-toggle,
.message-row.selected.mine .message-select-toggle {
  order: 0 !important;
}
.message-row.selecting.mine .bubble,
.message-row.selected.mine .bubble {
  order: 1 !important;
}


/* MIG v119: force "Мой профиль" above voice-transcribe-action/day-pill */
html body .modal-card.glass.mig-my-profile-overridden,
html body .modal-card.mig-my-profile-overridden,
html body .mig-my-profile-overridden,
html body .mig-my-profile,
html body .my-profile-window,
html body .account-window {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  isolation: isolate !important;
  transform: none !important;
  will-change: auto !important;
  contain: none !important;
  background: #0f1720 !important;
}

/* Keep the inner profile content above its own background */
html body .modal-card.glass.mig-my-profile-overridden *,
html body .modal-card.mig-my-profile-overridden *,
html body .mig-my-profile-overridden *,
html body .mig-my-profile * {
  position: relative;
  z-index: 2147483647;
}

/* Force problematic chat floating/sticky controls below any profile layer */
html body .voice-transcribe-action,
html body .day-pill,
html body .chat-day-pill,
html body .date-pill,
html body .voice-transcript-toggle,
html body .voice-transcript-action {
  position: relative !important;
  z-index: 0 !important;
  transform: none !important;
  will-change: auto !important;
  contain: none !important;
  isolation: auto !important;
}

/* If date pill was sticky/fixed, disable that while keeping visual position sane */
html body .day-pill,
html body .chat-day-pill,
html body .date-pill {
  position: relative !important;
}

/* Extra guard: profile parent/backdrop layers */
html body .modal-backdrop:has(.mig-my-profile-overridden),
html body .modal-root:has(.mig-my-profile-overridden),
html body .settings-modal:has(.mig-my-profile-overridden),
html body .profile-modal:has(.mig-my-profile-overridden) {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483646 !important;
  isolation: isolate !important;
}


/* MIG v120: Desktop "Мой профиль" centered window, chat visible behind */
@media (min-width: 769px) {
  html body .modal-card.glass.mig-my-profile-overridden,
  html body .modal-card.mig-my-profile-overridden,
  html body .mig-my-profile-overridden,
  html body .mig-my-profile,
  html body .my-profile-window,
  html body .account-window {
    position: fixed !important;
    inset: auto !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: 430px !important;
    max-width: calc(100vw - 48px) !important;
    min-width: 360px !important;
    height: auto !important;
    max-height: calc(100vh - 80px) !important;
    overflow: hidden auto !important;
    border-radius: 18px !important;
    z-index: 2147483647 !important;
    isolation: isolate !important;
    background: #0f1720 !important;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.62) !important;
    contain: none !important;
  }

  /* Dimmed desktop backdrop while keeping chat visible */
  html body:has(.mig-my-profile-overridden)::before,
  html body:has(.mig-my-profile)::before,
  html body:has(.my-profile-window)::before,
  html body:has(.account-window)::before {
    content: "" !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483646 !important;
    background: rgba(0, 0, 0, 0.36) !important;
    pointer-events: none !important;
  }

  /* Keep problematic floating chat controls below the centered profile window */
  html body .voice-transcribe-action,
  html body .day-pill,
  html body .chat-day-pill,
  html body .date-pill,
  html body .voice-transcript-toggle,
  html body .voice-transcript-action {
    z-index: 1 !important;
  }
}

/* Mobile stays full-screen/app-like */
@media (max-width: 768px) {
  html body .modal-card.glass.mig-my-profile-overridden,
  html body .modal-card.mig-my-profile-overridden,
  html body .mig-my-profile-overridden,
  html body .mig-my-profile,
  html body .my-profile-window,
  html body .account-window {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483647 !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    border-radius: 0 !important;
    background: #0f1720 !important;
  }
}

/* v121: increase profile window size and remove blue modal backdrop */
@media (min-width: 769px) {
  .modal-card.glass.mig-my-profile-overridden,
  .mig-my-profile-overridden,
  .mig-my-profile {
    width: 520px !important;
    max-width: calc(100vw - 32px) !important;
    min-width: 420px !important;
    max-height: calc(100vh - 40px) !important;
  }
}



/* v123: iPhone safe-area for My Profile */
@supports (padding-top: env(safe-area-inset-top)) {
  .modal-card.glass.mig-my-profile-overridden,
  .mig-my-profile-overridden,
  .mig-my-profile {
    padding-top: calc(env(safe-area-inset-top) + 8px) !important;
  }
}

/* MIG v169: peer profile wallpaper on wide mobile/tablet screens */
@media (min-width:700px) and (max-width:1100px){html body .mig-peer-profile-hero,html body .app-profile-hero{height:clamp(300px,38vw,380px)!important;min-height:clamp(300px,38vw,380px)!important}}

/* ===== mig-my-profile-v103-layer-fix.css ===== */
/* MIG v113: My Profile as a separate full-screen window in #profile-root. No React root hiding. */
#profile-root {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  pointer-events: none !important;
  background: transparent !important;
  isolation: isolate !important;
  contain: paint !important;
}
#profile-root.active {
  pointer-events: auto !important;
}
body.mig-my-profile-open {
  overflow: hidden !important;
}
#profile-root .mig-my-profile-overlay,
.mig-my-profile-portal.mig-my-profile-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  background: #071019 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  isolation: isolate !important;
  contain: paint !important;
  pointer-events: auto !important;
  opacity: 1 !important;
}
#profile-root .mig-my-profile-panel {
  position: relative !important;
  z-index: 1 !important;
  width: min(620px, calc(100vw - 32px)) !important;
  height: min(860px, calc(100dvh - 32px)) !important;
  max-height: calc(100dvh - 32px) !important;
  background: #0f1720 !important;
  opacity: 1 !important;
  transform: translateZ(0) !important;
  -webkit-transform: translateZ(0) !important;
  isolation: isolate !important;
  overflow: hidden !important;
  box-shadow: 0 34px 110px rgba(0,0,0,.78), 0 0 0 1px rgba(255,255,255,.10) !important;
}
#profile-root .mig-my-profile-topbar { background: #101a24 !important; }
#profile-root .mig-my-profile-scroll { background: #0f1720 !important; }
#profile-root .mig-my-profile-section,
#profile-root .mig-my-profile-field,
#profile-root .mig-my-profile-info-row,
#profile-root .mig-my-profile-hint-row { background: #17232f !important; }
#profile-root .mig-my-profile-field input,
#profile-root .mig-my-profile-field textarea { background: #0d1722 !important; }
#profile-root .mig-my-profile-topbar,
#profile-root .mig-my-profile-scroll,
#profile-root .mig-my-profile-hero,
#profile-root .mig-my-profile-section,
#profile-root .mig-my-profile-field,
#profile-root .mig-my-profile-field input,
#profile-root .mig-my-profile-field textarea,
#profile-root .mig-my-profile-save,
#profile-root .mig-my-profile-info-row,
#profile-root .mig-my-profile-hint-row {
  opacity: 1 !important;
  background-clip: padding-box !important;
}
body.mig-my-profile-open .date-divider,
body.mig-my-profile-open .voice-transcribe-action,
body.mig-my-profile-open .context-menu,
body.mig-my-profile-open .photo-preview-overlay,
body.mig-my-profile-open .photo-viewer-overlay {
  pointer-events: none !important;
}
@media (max-width: 640px) {
  #profile-root .mig-my-profile-overlay,
  .mig-my-profile-portal.mig-my-profile-overlay {
    padding: 0 !important;
    background: #0f1720 !important;
  }
  #profile-root .mig-my-profile-panel {
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }
}

/* MIG V114: keep outgoing messages on the right in selection mode */
.message-row.mine,
.message-row.selecting.mine,
.message-row.selected.mine {
  justify-content: flex-end !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  align-self: stretch !important;
}
.message-row.selecting.mine .bubble,
.message-row.selected.mine .bubble {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.message-row.selecting.mine .message-select-toggle,
.message-row.selected.mine .message-select-toggle {
  order: 0 !important;
}
.message-row.selecting.mine .bubble,
.message-row.selected.mine .bubble {
  order: 1 !important;
}


/* MIG v119: force "Мой профиль" above voice-transcribe-action/day-pill */
html body .modal-card.glass.mig-my-profile-overridden,
html body .modal-card.mig-my-profile-overridden,
html body .mig-my-profile-overridden,
html body .mig-my-profile,
html body .my-profile-window,
html body .account-window {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  isolation: isolate !important;
  transform: none !important;
  will-change: auto !important;
  contain: none !important;
  background: #0f1720 !important;
}

/* Keep the inner profile content above its own background */
html body .modal-card.glass.mig-my-profile-overridden *,
html body .modal-card.mig-my-profile-overridden *,
html body .mig-my-profile-overridden *,
html body .mig-my-profile * {
  position: relative;
  z-index: 2147483647;
}

/* Force problematic chat floating/sticky controls below any profile layer */
html body .voice-transcribe-action,
html body .day-pill,
html body .chat-day-pill,
html body .date-pill,
html body .voice-transcript-toggle,
html body .voice-transcript-action {
  position: relative !important;
  z-index: 0 !important;
  transform: none !important;
  will-change: auto !important;
  contain: none !important;
  isolation: auto !important;
}

/* If date pill was sticky/fixed, disable that while keeping visual position sane */
html body .day-pill,
html body .chat-day-pill,
html body .date-pill {
  position: relative !important;
}

/* Extra guard: profile parent/backdrop layers */
html body .modal-backdrop:has(.mig-my-profile-overridden),
html body .modal-root:has(.mig-my-profile-overridden),
html body .settings-modal:has(.mig-my-profile-overridden),
html body .profile-modal:has(.mig-my-profile-overridden) {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483646 !important;
  isolation: isolate !important;
}


/* MIG v120: Desktop "Мой профиль" centered window, chat visible behind */
@media (min-width: 769px) {
  html body .modal-card.glass.mig-my-profile-overridden,
  html body .modal-card.mig-my-profile-overridden,
  html body .mig-my-profile-overridden,
  html body .mig-my-profile,
  html body .my-profile-window,
  html body .account-window {
    position: fixed !important;
    inset: auto !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: 430px !important;
    max-width: calc(100vw - 48px) !important;
    min-width: 360px !important;
    height: auto !important;
    max-height: calc(100vh - 80px) !important;
    overflow: hidden auto !important;
    border-radius: 18px !important;
    z-index: 2147483647 !important;
    isolation: isolate !important;
    background: #0f1720 !important;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.62) !important;
    contain: none !important;
  }

  /* Dimmed desktop backdrop while keeping chat visible */
  html body:has(.mig-my-profile-overridden)::before,
  html body:has(.mig-my-profile)::before,
  html body:has(.my-profile-window)::before,
  html body:has(.account-window)::before {
    content: "" !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483646 !important;
    background: rgba(0, 0, 0, 0.36) !important;
    pointer-events: none !important;
  }

  /* Keep problematic floating chat controls below the centered profile window */
  html body .voice-transcribe-action,
  html body .day-pill,
  html body .chat-day-pill,
  html body .date-pill,
  html body .voice-transcript-toggle,
  html body .voice-transcript-action {
    z-index: 1 !important;
  }
}

/* Mobile stays full-screen/app-like */
@media (max-width: 768px) {
  html body .modal-card.glass.mig-my-profile-overridden,
  html body .modal-card.mig-my-profile-overridden,
  html body .mig-my-profile-overridden,
  html body .mig-my-profile,
  html body .my-profile-window,
  html body .account-window {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483647 !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    border-radius: 0 !important;
    background: #0f1720 !important;
  }
}

/* v121: increase profile window size and remove blue modal backdrop */
@media (min-width: 769px) {
  .modal-card.glass.mig-my-profile-overridden,
  .mig-my-profile-overridden,
  .mig-my-profile {
    width: 520px !important;
    max-width: calc(100vw - 32px) !important;
    min-width: 420px !important;
    max-height: calc(100vh - 40px) !important;
  }
}



/* v123: iPhone safe-area for My Profile */
@supports (padding-top: env(safe-area-inset-top)) {
  .modal-card.glass.mig-my-profile-overridden,
  .mig-my-profile-overridden,
  .mig-my-profile {
    padding-top: calc(env(safe-area-inset-top) + 8px) !important;
  }
}

/* MIG v169: peer profile wallpaper on wide mobile/tablet screens */
@media (min-width:700px) and (max-width:1100px){html body .mig-peer-profile-hero,html body .app-profile-hero{height:clamp(300px,38vw,380px)!important;min-height:clamp(300px,38vw,380px)!important}}

/* ===== mig-my-profile-v124-media-picker.css ===== */
/* MIG v124: My Profile avatar/wallpaper picker like App */
.mig-my-profile-media-row{width:100%!important;min-height:62px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;padding:13px 18px!important;border:0!important;border-top:1px solid rgba(255,255,255,.07)!important;background:transparent!important;color:#edf6ff!important;font-size:16px!important;cursor:pointer!important;text-align:left!important}.mig-my-profile-media-row span{display:flex!important;align-items:center!important;gap:14px!important}.mig-my-profile-media-row svg{color:#54a5f7!important}.mig-profile-media-sheet-backdrop{position:fixed!important;inset:0!important;z-index:13000!important;background:rgba(0,0,0,.42)!important;backdrop-filter:blur(8px)!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;padding:16px!important;box-sizing:border-box!important}.mig-profile-media-sheet{width:min(520px,100%)!important;border-radius:24px!important;background:#101923!important;color:#edf6ff!important;border:1px solid rgba(255,255,255,.10)!important;box-shadow:0 24px 80px rgba(0,0,0,.5)!important;padding:0 0 max(14px,env(safe-area-inset-bottom))!important;overflow:hidden!important;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}.mig-profile-media-sheet-head{min-height:70px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:12px 14px 10px 18px!important;border-bottom:1px solid rgba(255,255,255,.08)!important}.mig-profile-media-sheet-head div{min-width:0!important;display:flex!important;flex-direction:column!important;gap:4px!important}.mig-profile-media-sheet-head strong{font-size:18px!important;line-height:1.15!important}.mig-profile-media-sheet-head span{font-size:13px!important;color:#91a4b7!important}.mig-profile-media-close{width:40px!important;height:40px!important;border-radius:999px!important;border:0!important;background:rgba(255,255,255,.08)!important;color:#e8f3ff!important;display:grid!important;place-items:center!important;cursor:pointer!important;font-size:24px!important}.mig-profile-media-preview{position:relative!important;height:168px!important;margin:14px 16px!important;border-radius:20px!important;overflow:hidden!important;background:#1c2b38!important;border:1px solid rgba(255,255,255,.08)!important}.mig-profile-media-wallpaper-preview{position:absolute!important;inset:0!important}.mig-profile-media-wallpaper-preview img,.mig-profile-media-wallpaper-preview div{width:100%!important;height:100%!important;object-fit:cover!important;background:linear-gradient(135deg,rgba(33,104,161,.50),rgba(15,23,32,.96)),radial-gradient(circle at 24% 15%,rgba(84,165,247,.32),transparent 45%)!important}.mig-profile-media-wallpaper-preview:after{content:""!important;position:absolute!important;inset:0!important;background:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.56))!important}.mig-profile-media-avatar-preview{position:absolute!important;left:18px!important;bottom:16px!important;width:72px!important;height:72px!important;border-radius:999px!important;overflow:hidden!important;border:2px solid rgba(255,255,255,.32)!important;box-shadow:0 10px 22px rgba(0,0,0,.35)!important;background:#243446!important;display:grid!important;place-items:center!important;font-size:28px!important;font-weight:800!important;color:#fff!important}.mig-profile-media-avatar-preview img{width:100%!important;height:100%!important;object-fit:cover!important}.mig-profile-media-file{display:none!important}.mig-profile-media-action,.mig-profile-media-check{width:calc(100% - 32px)!important;margin:8px 16px!important;min-height:62px!important;border-radius:18px!important;border:1px solid rgba(255,255,255,.09)!important;background:#17222d!important;color:#edf6ff!important;display:flex!important;align-items:center!important;gap:13px!important;padding:12px 14px!important;text-align:left!important;cursor:pointer!important}.mig-profile-media-action:disabled,.mig-profile-media-check:disabled{opacity:.65!important;cursor:default!important}.mig-profile-media-action-icon,.mig-profile-media-checkbox{width:38px!important;height:38px!important;min-width:38px!important;border-radius:999px!important;display:grid!important;place-items:center!important;background:rgba(84,165,247,.14)!important;color:#54a5f7!important}.mig-profile-media-action span:last-child,.mig-profile-media-check span:last-child{min-width:0!important;display:flex!important;flex-direction:column!important;gap:3px!important}.mig-profile-media-action strong,.mig-profile-media-check strong{font-size:15px!important;line-height:1.2!important}.mig-profile-media-action em,.mig-profile-media-check em{font-style:normal!important;font-size:13px!important;color:#91a4b7!important;line-height:1.25!important}.mig-profile-media-checkbox{border:2px solid rgba(84,165,247,.55)!important;background:transparent!important}.mig-profile-media-check.checked .mig-profile-media-checkbox{background:#54a5f7!important;color:#fff!important;border-color:#54a5f7!important}.mig-profile-media-checkmark{font-weight:900!important}.mig-profile-media-status{min-height:22px!important;margin:8px 18px 2px!important;color:#91a4b7!important;font-size:13px!important}.mig-profile-media-status.error{color:#ff8f8f!important}@media (max-width:640px){.mig-profile-media-sheet-backdrop{padding:0!important}.mig-profile-media-sheet{width:100%!important;border-radius:24px 24px 0 0!important;border-left:0!important;border-right:0!important;border-bottom:0!important}.mig-profile-media-preview{height:158px!important}}

/* MIG v132: save button inside profile avatar/wallpaper picker */
html body .mig-profile-media-save{width:100%!important;min-height:52px!important;margin-top:12px!important;border:0!important;border-radius:18px!important;background:#54a5f7!important;color:#fff!important;font-size:16px!important;font-weight:800!important;cursor:pointer!important;box-shadow:0 14px 28px rgba(84,165,247,.24)!important;}
html body .mig-profile-media-save:disabled{opacity:.62!important;cursor:default!important;}

/* MIG V143: left-align media action text and use stable flex layout */
.mig-profile-media-action,
.mig-profile-media-check{
  justify-content:flex-start!important;
  text-align:left!important;
}
.mig-profile-media-action > span:last-child,
.mig-profile-media-check > span:last-child{
  flex:1 1 auto!important;
  align-items:flex-start!important;
  text-align:left!important;
}
.mig-profile-media-action strong,
.mig-profile-media-action em,
.mig-profile-media-check strong,
.mig-profile-media-check em{
  width:100%!important;
  display:block!important;
  text-align:left!important;
}


/* MIG v144: profile wallpaper crop/position editor */
.mig-wallpaper-crop-backdrop{position:fixed!important;inset:0!important;z-index:2147483647!important;background:rgba(0,0,0,.56)!important;backdrop-filter:blur(9px)!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:16px!important;box-sizing:border-box!important;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;color:#edf6ff!important}.mig-wallpaper-crop-sheet{width:min(560px,100%)!important;border-radius:24px!important;background:#101923!important;border:1px solid rgba(255,255,255,.10)!important;box-shadow:0 24px 90px rgba(0,0,0,.56)!important;overflow:hidden!important}.mig-wallpaper-crop-head{min-height:72px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:14px 16px 12px 18px!important;border-bottom:1px solid rgba(255,255,255,.08)!important}.mig-wallpaper-crop-head div{display:flex!important;flex-direction:column!important;gap:4px!important;min-width:0!important}.mig-wallpaper-crop-head strong{font-size:18px!important;line-height:1.15!important}.mig-wallpaper-crop-head span{font-size:13px!important;color:#91a4b7!important;line-height:1.25!important}.mig-wallpaper-crop-close{width:40px!important;height:40px!important;border-radius:999px!important;border:0!important;background:rgba(255,255,255,.08)!important;color:#e8f3ff!important;display:grid!important;place-items:center!important;cursor:pointer!important;font-size:24px!important}.mig-wallpaper-crop-stage{margin:16px!important;border-radius:20px!important;overflow:hidden!important;background:#17222d!important;border:1px solid rgba(255,255,255,.09)!important;touch-action:none!important}.mig-wallpaper-crop-canvas{display:block!important;width:100%!important;aspect-ratio:1200/520!important;cursor:grab!important;touch-action:none!important;user-select:none!important}.mig-wallpaper-crop-canvas:active{cursor:grabbing!important}.mig-wallpaper-crop-controls{padding:0 18px 8px!important}.mig-wallpaper-crop-controls label{display:flex!important;flex-direction:column!important;gap:8px!important;color:#91a4b7!important;font-size:13px!important}.mig-wallpaper-crop-zoom{width:100%!important;accent-color:#54a5f7!important}.mig-wallpaper-crop-actions{display:flex!important;gap:10px!important;justify-content:flex-end!important;padding:12px 16px max(16px,env(safe-area-inset-bottom))!important}.mig-wallpaper-crop-actions button{height:44px!important;border-radius:14px!important;border:0!important;padding:0 18px!important;font-size:15px!important;font-weight:750!important;cursor:pointer!important}.mig-wallpaper-crop-cancel{background:rgba(255,255,255,.08)!important;color:#edf6ff!important}.mig-wallpaper-crop-apply{background:#54a5f7!important;color:#07111b!important}@media (max-width:640px){.mig-wallpaper-crop-backdrop{align-items:flex-end!important;padding:0!important}.mig-wallpaper-crop-sheet{width:100%!important;border-radius:24px 24px 0 0!important;border-left:0!important;border-right:0!important;border-bottom:0!important}.mig-wallpaper-crop-head span{font-size:12.5px!important}.mig-wallpaper-crop-stage{margin:14px!important}.mig-wallpaper-crop-actions{justify-content:stretch!important}.mig-wallpaper-crop-actions button{flex:1 1 0!important}}

/* MIG v145: avatar editor uses a separate square/circle crop window */
.mig-avatar-crop-stage{width:min(360px,calc(100% - 32px))!important;margin:16px auto!important;border-radius:50%!important;box-shadow:0 0 0 999px rgba(0,0,0,.18), inset 0 0 0 3px rgba(84,165,247,.95)!important}.mig-avatar-crop-canvas{aspect-ratio:1/1!important;border-radius:50%!important}.mig-avatar-crop-sheet .mig-wallpaper-crop-head div{text-align:left!important}@media (max-width:640px){.mig-avatar-crop-stage{width:min(330px,calc(100vw - 44px))!important}}

/* MIG v147: clickable existing avatar/wallpaper previews open crop editors */
.mig-profile-media-avatar-preview,.mig-profile-media-wallpaper-preview{cursor:pointer!important;position:relative!important;}
.mig-profile-media-avatar-preview::after,.mig-profile-media-wallpaper-preview::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;transition:background .16s ease, box-shadow .16s ease;}
.mig-profile-media-avatar-preview:hover::after,.mig-profile-media-wallpaper-preview:hover::after{background:rgba(255,255,255,.08);box-shadow:inset 0 0 0 1px rgba(255,255,255,.18);}
.mig-profile-media-avatar-preview:active::after,.mig-profile-media-wallpaper-preview:active::after{background:rgba(255,255,255,.14);}

/* MIG v148: restore avatar preview above wallpaper; previous clickable-preview rule accidentally overrode absolute positioning */
.mig-profile-media-preview{position:relative!important;}
.mig-profile-media-wallpaper-preview{position:absolute!important;inset:0!important;z-index:1!important;cursor:pointer!important;}
.mig-profile-media-avatar-preview{position:absolute!important;left:18px!important;bottom:16px!important;width:72px!important;height:72px!important;z-index:3!important;cursor:pointer!important;border-radius:999px!important;overflow:hidden!important;border:2px solid rgba(255,255,255,.32)!important;box-shadow:0 10px 22px rgba(0,0,0,.35)!important;background:#243446!important;display:grid!important;place-items:center!important;font-size:28px!important;font-weight:800!important;color:#fff!important;}
.mig-profile-media-avatar-preview img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;}
.mig-profile-media-avatar-preview span{display:grid!important;place-items:center!important;width:100%!important;height:100%!important;}
.mig-profile-media-wallpaper-preview::after{z-index:2!important;}
.mig-profile-media-avatar-preview::after{z-index:4!important;}

/* MIG v169: peer profile wallpaper on wide mobile/tablet screens */
@media (min-width:700px) and (max-width:1100px){html body .mig-peer-profile-hero,html body .app-profile-hero{height:clamp(300px,38vw,380px)!important;min-height:clamp(300px,38vw,380px)!important}}

/* ===== mig-my-profile-v128-media-sheet-above-profile.css ===== */
/* MIG v128: real media sheet layer fix inside #profile-root */
html body #profile-root{
  position:fixed!important;
  inset:0!important;
  z-index:2147483000!important;
  pointer-events:none!important;
  isolation:isolate!important;
  contain:none!important;
  overflow:visible!important;
}
html body #profile-root.active,
html body #profile-root:has(.mig-profile-media-sheet-backdrop){
  pointer-events:auto!important;
}
html body #profile-root .mig-my-profile-overlay,
html body .mig-my-profile-portal.mig-my-profile-overlay{
  z-index:100!important;
  isolation:auto!important;
  contain:none!important;
}
html body #profile-root .mig-my-profile-panel,
html body #profile-root .modal-card.glass.mig-my-profile-overridden,
html body #profile-root .modal-card.mig-my-profile-overridden,
html body .modal-card.glass.mig-my-profile-overridden,
html body .modal-card.mig-my-profile-overridden{
  z-index:110!important;
  isolation:auto!important;
  contain:none!important;
}
html body #profile-root .mig-profile-media-sheet-backdrop,
html body .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-portal{
  position:fixed!important;
  inset:0!important;
  z-index:1000000!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:max(16px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom))!important;
  box-sizing:border-box!important;
  background:rgba(0,0,0,.38)!important;
  backdrop-filter:blur(8px)!important;
  -webkit-backdrop-filter:blur(8px)!important;
  pointer-events:auto!important;
  isolation:isolate!important;
  contain:none!important;
  transform:none!important;
  -webkit-transform:none!important;
}
html body #profile-root .mig-profile-media-sheet-backdrop .mig-profile-media-sheet,
html body .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-portal .mig-profile-media-sheet{
  position:relative!important;
  z-index:1000001!important;
  width:min(520px,calc(100vw - 32px))!important;
  max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;
  overflow-y:auto!important;
  border-radius:24px!important;
  transform:none!important;
  -webkit-transform:none!important;
}
@media (max-width:640px){
  html body #profile-root .mig-profile-media-sheet-backdrop,
  html body .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-portal{
    padding:max(14px,env(safe-area-inset-top)) 14px max(14px,env(safe-area-inset-bottom))!important;
  }
  html body #profile-root .mig-profile-media-sheet-backdrop .mig-profile-media-sheet,
  html body .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-portal .mig-profile-media-sheet{
    width:100%!important;
    max-height:calc(100dvh - max(28px,env(safe-area-inset-top)) - max(28px,env(safe-area-inset-bottom)))!important;
    border-radius:24px!important;
  }
}


/* MIG v129: FINAL - media picker is a body-level top layer, profile window is pushed below it */
html body:has(.mig-profile-media-sheet-force-top) .modal-card.glass.mig-my-profile-overridden,
html body:has(.mig-profile-media-sheet-force-top) .modal-card.mig-my-profile-overridden,
html body:has(.mig-profile-media-sheet-force-top) .mig-my-profile-overridden,
html body:has(.mig-profile-media-sheet-force-top) .mig-my-profile-portal.mig-my-profile-overlay,
html body:has(.mig-profile-media-sheet-force-top) .mig-my-profile-panel,
html body:has(.mig-profile-media-sheet-force-top) #profile-root {
  z-index: 2147482000 !important;
}
html body > .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-force-top,
html body > .mig-profile-media-sheet-backdrop[data-mig-profile-media-top="1"] {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)) !important;
  box-sizing: border-box !important;
  background: rgba(0,0,0,.44) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  isolation: isolate !important;
  contain: none !important;
  transform: none !important;
  -webkit-transform: none !important;
  pointer-events: auto !important;
}
html body > .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-force-top .mig-profile-media-sheet,
html body > .mig-profile-media-sheet-backdrop[data-mig-profile-media-top="1"] .mig-profile-media-sheet {
  position: relative !important;
  z-index: 1 !important;
  width: min(520px, calc(100vw - 32px)) !important;
  max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
  overflow-y: auto !important;
  border-radius: 24px !important;
  background: #101923 !important;
  box-shadow: 0 28px 90px rgba(0,0,0,.62) !important;
  transform: none !important;
  -webkit-transform: none !important;
}
@media (max-width:640px){
  html body > .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-force-top,
  html body > .mig-profile-media-sheet-backdrop[data-mig-profile-media-top="1"]{
    padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom)) !important;
  }
  html body > .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-force-top .mig-profile-media-sheet,
  html body > .mig-profile-media-sheet-backdrop[data-mig-profile-media-top="1"] .mig-profile-media-sheet{
    width:100% !important;
    max-height: calc(100dvh - max(28px, env(safe-area-inset-top)) - max(28px, env(safe-area-inset-bottom))) !important;
    border-radius:24px !important;
  }
}


/* MIG v130: REAL FIX - avatar/wallpaper picker lives INSIDE My Profile layer, above its content */
html body .mig-my-profile-panel,
html body .modal-card.glass.mig-my-profile-overridden,
html body .modal-card.mig-my-profile-overridden{
  position:relative!important;
  overflow:hidden!important;
  isolation:isolate!important;
}
html body .mig-my-profile-panel > .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-inside-profile,
html body .modal-card.mig-my-profile-overridden > .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-inside-profile,
html body .modal-card.glass.mig-my-profile-overridden > .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-inside-profile{
  position:absolute!important;
  inset:0!important;
  z-index:2147483647!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:max(16px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom))!important;
  box-sizing:border-box!important;
  background:rgba(3,8,14,.52)!important;
  backdrop-filter:blur(8px)!important;
  -webkit-backdrop-filter:blur(8px)!important;
  pointer-events:auto!important;
  transform:none!important;
  -webkit-transform:none!important;
}
html body .mig-my-profile-panel > .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-inside-profile .mig-profile-media-sheet,
html body .modal-card.mig-my-profile-overridden > .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-inside-profile .mig-profile-media-sheet,
html body .modal-card.glass.mig-my-profile-overridden > .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-inside-profile .mig-profile-media-sheet{
  position:relative!important;
  z-index:1!important;
  width:min(520px,calc(100% - 28px))!important;
  max-height:calc(100% - 28px)!important;
  overflow-y:auto!important;
  border-radius:24px!important;
  background:#101923!important;
  border:1px solid rgba(255,255,255,.12)!important;
  box-shadow:0 28px 90px rgba(0,0,0,.68)!important;
  transform:none!important;
  -webkit-transform:none!important;
}
html body .mig-profile-media-host-open .mig-my-profile-scroll{
  pointer-events:none!important;
}
@media (max-width:640px){
  html body .mig-my-profile-panel > .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-inside-profile,
  html body .modal-card.mig-my-profile-overridden > .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-inside-profile,
  html body .modal-card.glass.mig-my-profile-overridden > .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-inside-profile{
    padding:max(14px,env(safe-area-inset-top)) 14px max(14px,env(safe-area-inset-bottom))!important;
  }
  html body .mig-my-profile-panel > .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-inside-profile .mig-profile-media-sheet,
  html body .modal-card.mig-my-profile-overridden > .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-inside-profile .mig-profile-media-sheet,
  html body .modal-card.glass.mig-my-profile-overridden > .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-inside-profile .mig-profile-media-sheet{
    width:100%!important;
    max-height:calc(100% - 28px)!important;
    border-radius:24px!important;
  }
}

/* MIG v131: fix profile center after media picker + remove native upload inputs */
html body .modal-card.glass.mig-my-profile-overridden,
html body .modal-card.mig-my-profile-overridden,
html body .mig-my-profile-overridden{
  position:fixed!important;
  top:50%!important;
  left:50%!important;
  right:auto!important;
  bottom:auto!important;
  transform:translate(-50%,-50%)!important;
  margin:0!important;
  width:646px!important;
  max-width:calc(100vw - 32px)!important;
  height:auto!important;
  max-height:calc(100dvh - 32px)!important;
  overflow:hidden auto!important;
  border-radius:24px!important;
  z-index:2147483000!important;
  background:#0f1720!important;
  isolation:isolate!important;
}
html body .mig-my-profile-portal.mig-my-profile-overlay{position:fixed!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:16px!important;box-sizing:border-box!important;background:rgba(0,0,0,.34)!important;z-index:2147483000!important;}
html body .mig-my-profile-portal .mig-my-profile-panel{position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;transform:none!important;margin:auto!important;width:min(646px,calc(100vw - 32px))!important;max-height:calc(100dvh - 32px)!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;border-radius:24px!important;background:#0f1720!important;isolation:isolate!important;}
html body .mig-profile-media-file,
html body input.mig-profile-media-file,
html body .mig-profile-media-sheet input[type="file"],
html body .mig-profile-media-sheet input[type="file"].mig-profile-media-file{display:none!important;visibility:hidden!important;opacity:0!important;position:absolute!important;width:0!important;height:0!important;max-width:0!important;max-height:0!important;overflow:hidden!important;pointer-events:none!important;appearance:none!important;-webkit-appearance:none!important;}
html body .modal-card.mig-my-profile-overridden > .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-inside-profile,
html body .modal-card.glass.mig-my-profile-overridden > .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-inside-profile,
html body .mig-my-profile-panel > .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-inside-profile{position:absolute!important;inset:0!important;z-index:2147483100!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:max(16px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom))!important;background:rgba(3,8,14,.54)!important;backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important;box-sizing:border-box!important;}
html body .mig-profile-media-sheet-backdrop.mig-profile-media-sheet-inside-profile .mig-profile-media-sheet{position:relative!important;z-index:1!important;width:min(520px,calc(100% - 28px))!important;max-height:calc(100% - 28px)!important;overflow-y:auto!important;border-radius:24px!important;background:#101923!important;}
@media(max-width:640px){html body .modal-card.glass.mig-my-profile-overridden,html body .modal-card.mig-my-profile-overridden,html body .mig-my-profile-overridden{inset:0!important;top:0!important;left:0!important;transform:none!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:100dvh!important;border-radius:0!important;}html body .mig-my-profile-portal.mig-my-profile-overlay{padding:0!important;background:#0f1720!important;}html body .mig-my-profile-portal .mig-my-profile-panel{width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;}}

/* MIG v169: peer profile wallpaper on wide mobile/tablet screens */
@media (min-width:700px) and (max-width:1100px){html body .mig-peer-profile-hero,html body .app-profile-hero{height:clamp(300px,38vw,380px)!important;min-height:clamp(300px,38vw,380px)!important}}

/* ===== mig-my-profile-v139-info-button-fix.css ===== */

/* MIG v139: My Profile info view/edit button fix */
html body .mig-my-profile-overridden .mig-my-profile-section .mig-my-profile-save,
html body .mig-my-profile-overridden .mig-my-profile-section button.mig-my-profile-edit-toggle,
html body .mig-my-profile-overridden .mig-my-profile-section button.mig-my-profile-info-save,
html body .mig-my-profile-panel .mig-my-profile-section .mig-my-profile-save,
html body .mig-my-profile-panel .mig-my-profile-section button.mig-my-profile-edit-toggle,
html body .mig-my-profile-panel .mig-my-profile-section button.mig-my-profile-info-save {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: calc(100% - 32px) !important;
  min-height: 54px !important;
  margin: 14px 16px 16px !important;
  padding: 0 18px !important;
  box-sizing: border-box !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: #54a5f7 !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 17px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  text-align: center !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  box-shadow: none !important;
  outline: none !important;
}
html body .mig-my-profile-overridden .mig-my-profile-section .mig-my-profile-save:active,
html body .mig-my-profile-panel .mig-my-profile-section .mig-my-profile-save:active {
  transform: scale(.99) !important;
}
html body .mig-my-profile-overridden .mig-my-profile-section .mig-my-profile-save:disabled,
html body .mig-my-profile-panel .mig-my-profile-section .mig-my-profile-save:disabled {
  opacity: .72 !important;
  cursor: default !important;
}
html body .mig-my-profile-info-status {
  margin: -6px 16px 16px !important;
  color: rgba(237,246,255,.72) !important;
  font-size: 13px !important;
}
html body .mig-my-profile-info-status.error {
  color: #ff7b88 !important;
}

/* MIG v169: peer profile wallpaper on wide mobile/tablet screens */
@media (min-width:700px) and (max-width:1100px){html body .mig-peer-profile-hero,html body .app-profile-hero{height:clamp(300px,38vw,380px)!important;min-height:clamp(300px,38vw,380px)!important}}

/* =========================================================
!МОЙ ПРОФИЛЬ КОНЕЦ!
========================================================= */

/* =========================================================
!ПРОФИЛЬ ГРУППЫ / ПОЗДНИЕ CSS-ПАТЧИ НАЧАЛО!
Здесь собраны поздние v270-v330 правки группы: масштаб, крестик, collapse, settings screens, hero-buttons, add-members modal.

/* УДАЛЕНО: устаревший блок заменён более поздней версией ниже. */

/* УДАЛЕНО: устаревший блок заменён более поздней версией ниже. */

/* УДАЛЕНО: устаревший блок заменён более поздней версией ниже. */
/* MIG WEB v283: final consolidated cleanup, no overlay/runtime chain */
.mig-peer-profile-close::before,
.mig-peer-profile-close::after,
.mig-group-profile-close::before,
.mig-group-profile-close::after {
  content: none !important;
}
.mig-peer-profile-close {
  font-size: 0 !important;
  line-height: 0 !important;
}
.mig-peer-profile-close svg,
.mig-peer-profile-close .icon,
.mig-peer-profile-close [data-icon] {
  display: block !important;
}
/* only one close button inside profile header */
.mig-peer-profile-panel .mig-peer-profile-close ~ .mig-peer-profile-close,
.mig-peer-profile .mig-peer-profile-close ~ .mig-peer-profile-close,
.mig-group-profile .mig-peer-profile-close ~ .mig-peer-profile-close {
  display: none !important;
}
/* keep profile as right Web panel, not fullscreen */
.mig-peer-profile-panel,
.peer-profile-panel,
.group-profile-panel {
  max-width: 460px !important;
  width: min(460px, 42vw) !important;
  min-width: 360px !important;
}
@media (max-width: 920px) {
  .mig-peer-profile-panel,
  .peer-profile-panel,
  .group-profile-panel {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
  }
}
/* normalize huge group profile text/buttons from earlier experimental patches */
.mig-group-profile, .mig-peer-profile-panel {
  --mig-profile-title-size: 22px;
  --mig-profile-subtitle-size: 15px;
}
.mig-group-profile h1,
.mig-peer-profile-panel h1,
.mig-peer-profile-title {
  font-size: var(--mig-profile-title-size) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.01em !important;
}
.mig-group-profile .mig-profile-action,
.mig-group-profile .group-profile-action,
.mig-peer-profile-panel .mig-profile-action,
.mig-peer-profile-panel .group-profile-action {
  min-height: 64px !important;
  border-radius: 16px !important;
  font-size: 13px !important;
}
.mig-group-profile-tabs,
.mig-profile-tabs,
.group-profile-tabs {
  position: sticky !important;
  top: 0 !important;
  z-index: 8 !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}
.mig-group-profile-tabs::-webkit-scrollbar,
.mig-profile-tabs::-webkit-scrollbar,
.group-profile-tabs::-webkit-scrollbar { display:none !important; }

/* !Профиль группы legacy Telegram-card CSS удалён v336 начало! */
/* Удалён старый v270.2 блок масштаба/hero/actions. Единая система ниже: v335/v336 unified renderer. */
/* !Профиль группы legacy Telegram-card CSS удалён v336 конец! */

/* ===== mig-web-v281-media-tabs-polish.css ===== */
/* MIG Web v281: group media/files/links polish */
.mig-peer-profile-panel .mig-group-media-grid,
.mig-group-profile .mig-group-media-grid,
.mig-profile-media-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)) !important;
  gap: 6px !important;
  padding: 10px 12px 16px !important;
}
.mig-peer-profile-panel .mig-group-media-item,
.mig-group-profile .mig-group-media-item,
.mig-profile-media-item {
  min-height: 92px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: rgba(255,255,255,.045) !important;
  border: 1px solid rgba(255,255,255,.06) !important;
}
.mig-group-profile-tabs,
.mig-peer-profile-tabs,
.mig-profile-tabs {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.mig-group-profile-tabs::-webkit-scrollbar,
.mig-peer-profile-tabs::-webkit-scrollbar,
.mig-profile-tabs::-webkit-scrollbar { display: none !important; }
.mig-group-tab-empty,
.mig-media-tab-empty {
  padding: 28px 18px !important;
  text-align: center !important;
  color: rgba(205,220,235,.72) !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
}
.mig-group-media-loading {
  padding: 14px !important;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
}
.mig-group-media-loading > i {
  height: 82px !important;
  border-radius: 10px !important;
  display: block !important;
  background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)) !important;
  background-size: 200% 100% !important;
  animation: migMediaShimmer 1.2s linear infinite !important;
}
@keyframes migMediaShimmer { from{background-position:200% 0} to{background-position:-200% 0} }
.mig-group-file-row,
.mig-group-link-row {
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  padding:10px 14px !important;
  border-bottom:1px solid rgba(255,255,255,.06) !important;
  color:#eaf3ff !important;
  text-decoration:none !important;
}
.mig-group-file-row small,
.mig-group-link-row small { color:rgba(190,210,230,.72) !important; display:block !important; margin-top:2px !important; }


/* !Профиль группы legacy hero buttons v318 удалены v336 начало! */
/* Удалены старые hero FAB-кнопки v318. Модальное окно настроек v318 оставлено ниже. */
/* !Профиль группы legacy hero buttons v318 удалены v336 конец! */
.mig-v318-settings-root{
  position:fixed!important;
  inset:0!important;
  z-index:100000!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:18px!important;
  color:#fff!important;
  font-family:inherit!important;
}
.mig-v318-backdrop{
  position:absolute!important;
  inset:0!important;
  background:rgba(3,8,14,.56)!important;
  backdrop-filter:blur(10px)!important;
  -webkit-backdrop-filter:blur(10px)!important;
}
.mig-v318-settings-card{
  position:relative!important;
  width:min(430px,calc(100vw - 24px))!important;
  max-height:min(720px,calc(100dvh - 24px))!important;
  overflow:hidden!important;
  border-radius:12px!important;
  background:#172331!important;
  border:1px solid rgba(118,152,184,.28)!important;
  box-shadow:0 24px 80px rgba(0,0,0,.52)!important;
}
.mig-v318-settings-header{
  height:44px!important;
  min-height:44px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  padding:0 10px!important;
  background:#172331!important;
  border-bottom:1px solid rgba(255,255,255,.07)!important;
}
.mig-v318-settings-header h2{
  margin:0!important;
  font-size:13px!important;
  font-weight:850!important;
  color:#6fc3ff!important;
}
.mig-v318-settings-close{
  width:34px!important;
  height:34px!important;
  border:0!important;
  border-radius:50%!important;
  background:transparent!important;
  color:#c9d9e6!important;
  font-size:24px!important;
  line-height:34px!important;
  cursor:pointer!important;
  display:grid!important;
  place-items:center!important;
}
.mig-v318-settings-close:hover{background:rgba(255,255,255,.08)!important}
.mig-v318-settings-list{
  overflow:auto!important;
  max-height:calc(min(720px,calc(100dvh - 24px)) - 44px)!important;
}
.mig-v318-settings-row{
  width:100%!important;
  min-height:54px!important;
  border:0!important;
  border-bottom:1px solid rgba(255,255,255,.07)!important;
  background:#172331!important;
  color:#fff!important;
  padding:6px 9px!important;
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr) 20px!important;
  align-items:center!important;
  gap:10px!important;
  text-align:center!important;
  cursor:pointer!important;
  font-family:inherit!important;
}
.mig-v318-settings-row:hover{background:#1d2c3a!important}
.mig-v318-settings-row:last-child{border-bottom:0!important}
.mig-v318-settings-icon{
  width:28px!important;
  height:28px!important;
  border-radius:50%!important;
  background:#24445e!important;
  display:grid!important;
  place-items:center!important;
  font-size:15px!important;
  justify-self:center!important;
}
.mig-v318-settings-text{
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:2px!important;
}
.mig-v318-settings-text b{
  display:block!important;
  max-width:100%!important;
  color:#fff!important;
  font-size:14px!important;
  line-height:1.12!important;
  font-weight:850!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.mig-v318-settings-text small{
  display:block!important;
  max-width:100%!important;
  color:#7ed0ff!important;
  font-size:11px!important;
  line-height:1.15!important;
  font-weight:500!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.mig-v318-settings-arrow{color:#7ed0ff!important;font-size:20px!important;line-height:1!important}
.mig-v318-toast{
  position:fixed!important;
  left:50%!important;
  bottom:28px!important;
  transform:translateX(-50%) translateY(20px)!important;
  background:rgba(20,31,42,.96)!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.1)!important;
  border-radius:999px!important;
  padding:10px 16px!important;
  font-size:14px!important;
  font-weight:700!important;
  opacity:0!important;
  transition:.2s ease!important;
  z-index:100001!important;
  box-shadow:0 12px 40px rgba(0,0,0,.35)!important;
}
.mig-v318-toast.show{opacity:1!important;transform:translateX(-50%) translateY(0)!important}

@media(max-width:900px){
  .mig-v318-hero-actions{right:22px!important;bottom:54px!important;gap:12px!important}
  .mig-v318-btn{width:48px!important;height:48px!important}
}
@media(max-width:420px){
  .mig-v318-hero-actions{right:18px!important;bottom:48px!important;gap:10px!important}
  .mig-v318-btn{width:46px!important;height:46px!important}
}




/* УДАЛЕНО: устаревший блок заменён более поздней версией ниже. */

/* УДАЛЕНО: устаревший блок заменён более поздней версией ниже. */

/* УДАЛЕНО: устаревший блок заменён более поздней версией ниже. */

/* УДАЛЕНО: устаревший блок заменён более поздней версией ниже. */

/* УДАЛЕНО: устаревший блок заменён более поздней версией ниже. */

/* УДАЛЕНО: устаревший блок заменён более поздней версией ниже. */
/* ===== MIG WEB v328 PREEMPT LEGACY GROUP SETTINGS TABS ===== */
.mig-v328-kill-legacy-settings-tab{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
  width:0!important;
  max-width:0!important;
  height:0!important;
  max-height:0!important;
  overflow:hidden!important;
}
body:has(.mig-v325-screen-root) .mig-v276-screen,
body:has(.mig-v325-screen-root) .mig-v276-subscreen,
body:has(.mig-v325-screen-root) .mig-v276-settings-screen,
body:has(.mig-v325-screen-root) .mig-v275-screen,
body:has(.mig-v325-screen-root) .mig-v275-subscreen,
body:has(.mig-v325-screen-root) .group-settings-screen,
body:has(.mig-v325-screen-root) .group-settings-subscreen,
body:has(.mig-v325-screen-root) [data-mig-v276-screen],
body:has(.mig-v325-screen-root) [data-group-settings-screen]{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}


/* !Профиль группы изменение v329: full name + add members modal! */
/* ===== MIG WEB v329 GROUP FULL NAME + ADD MEMBERS MODAL ===== */

/* Полное название группы: без троеточий, с автоуменьшением через JS */
.mig-v329-full-group-name{
  max-width:calc(100% - 135px)!important;
  min-height:38px!important;
  max-height:78px!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  display:block!important;
  line-height:1.05!important;
  word-break:break-word!important;
  overflow-wrap:anywhere!important;
  -webkit-line-clamp:unset!important;
  line-clamp:unset!important;
}

/* Опустить hero-кнопки ниже */
.mig-v318-hero-actions{
  right:18px!important;
  top:auto!important;
  bottom:18px!important;
  transform:none!important;
  gap:12px!important;
}

.mig-v318-btn{
  width:54px!important;
  height:54px!important;
}

.mig-v318-btn svg{
  width:26px!important;
  height:26px!important;
}

@media(max-width:900px){
  .mig-v318-hero-actions{
    right:14px!important;
    bottom:16px!important;
  }
}

/* Модальное окно добавления участников */
.mig-v329-add-root{
  position:fixed!important;
  inset:0!important;
  z-index:100000!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:18px!important;
  color:#fff!important;
}
.mig-v329-add-backdrop{
  position:absolute!important;
  inset:0!important;
  background:rgba(3,8,14,.56)!important;
  backdrop-filter:blur(10px)!important;
  -webkit-backdrop-filter:blur(10px)!important;
}
.mig-v329-add-card{
  position:relative!important;
  width:min(560px,calc(100vw - 28px))!important;
  height:min(86dvh,760px)!important;
  overflow:hidden!important;
  border-radius:18px!important;
  background:#0f1b25!important;
  border:1px solid rgba(118,152,184,.24)!important;
  box-shadow:0 26px 90px rgba(0,0,0,.58)!important;
  display:flex!important;
  flex-direction:column!important;
}
.mig-v329-add-head{
  height:64px!important;
  min-height:64px!important;
  display:grid!important;
  grid-template-columns:52px 1fr 52px!important;
  align-items:center!important;
  padding:0 14px!important;
  background:#0f1b25!important;
  border-bottom:1px solid rgba(255,255,255,.08)!important;
}
.mig-v329-add-head h2{
  margin:0!important;
  font-size:22px!important;
  font-weight:900!important;
  color:#fff!important;
}
.mig-v329-add-back,.mig-v329-add-done{
  width:42px!important;
  height:42px!important;
  border:0!important;
  border-radius:50%!important;
  background:transparent!important;
  color:#65bdff!important;
  font-size:34px!important;
  cursor:pointer!important;
  display:grid!important;
  place-items:center!important;
}
.mig-v329-add-done{font-size:28px!important}
.mig-v329-add-back:hover,.mig-v329-add-done:hover{background:rgba(255,255,255,.07)!important}
.mig-v329-add-search{
  padding:12px 16px!important;
  border-bottom:1px solid rgba(255,255,255,.07)!important;
}
.mig-v329-add-search input{
  width:100%!important;
  height:44px!important;
  border:0!important;
  outline:0!important;
  border-radius:14px!important;
  background:#172633!important;
  color:#fff!important;
  font-size:16px!important;
  padding:0 14px!important;
}
.mig-v329-add-selected{
  display:flex!important;
  gap:8px!important;
  flex-wrap:wrap!important;
  padding:10px 16px!important;
  border-bottom:1px solid rgba(255,255,255,.07)!important;
}
.mig-v329-add-selected span{
  height:32px!important;
  border-radius:16px!important;
  background:#236da8!important;
  color:#fff!important;
  padding:0 10px!important;
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  font-size:14px!important;
  cursor:pointer!important;
}
.mig-v329-add-list{
  flex:1!important;
  overflow:auto!important;
  padding:8px 0!important;
}
.mig-v329-add-empty{
  padding:32px 18px!important;
  color:#94aabe!important;
  text-align:center!important;
  font-size:16px!important;
}
.mig-v329-add-user{
  width:100%!important;
  min-height:68px!important;
  border:0!important;
  background:transparent!important;
  color:#fff!important;
  padding:8px 18px!important;
  display:flex!important;
  align-items:center!important;
  gap:13px!important;
  text-align:left!important;
  cursor:pointer!important;
}
.mig-v329-add-user:hover{background:rgba(255,255,255,.04)!important}
.mig-v329-add-user.selected{background:rgba(51,144,236,.14)!important}
.mig-v329-add-avatar{
  width:46px!important;
  height:46px!important;
  border-radius:50%!important;
  background:#3390ec!important;
  display:grid!important;
  place-items:center!important;
  font-size:18px!important;
  font-weight:900!important;
  flex:0 0 auto!important;
}
.mig-v329-add-main{
  min-width:0!important;
  flex:1!important;
  display:flex!important;
  flex-direction:column!important;
  gap:4px!important;
}
.mig-v329-add-main b{
  font-size:16px!important;
  font-weight:850!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.mig-v329-add-main small{
  color:#9eb4c8!important;
  font-size:13px!important;
}
.mig-v329-add-user i{
  width:22px!important;
  height:22px!important;
  border-radius:50%!important;
  border:2px solid #637789!important;
}
.mig-v329-add-user.selected i{
  border-color:#62b6ff!important;
  background:#62b6ff!important;
  box-shadow:inset 0 0 0 5px #101923!important;
}

@media(max-width:700px){
  .mig-v329-add-root{padding:0!important}
  .mig-v329-add-card{
    width:100vw!important;
    height:100dvh!important;
    border-radius:0!important;
    border:0!important;
  }
}



/* !Профиль группы изменение v330: remove legacy add members! */
/* ===== MIG WEB v330 REMOVE LEGACY ADD MEMBERS BUTTON ===== */
.mig-group-app-add-members{
  display:none!important;
}

/* =========================================================
!ПРОФИЛЬ ГРУППЫ / ПОЗДНИЕ CSS-ПАТЧИ КОНЕЦ!
!CSS-БЛОКИ КОНЕЦ!
========================================================= */

/* !Профиль группы v335 unified renderer начало! */
html body .mig-group-profile-overlay .mig-group-unified-topbar{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;
  min-height:56px!important;
  padding:0 12px!important;
}
html body .mig-group-profile-overlay .mig-group-unified-topbar .mig-peer-profile-topbar-title{
  justify-self:start!important;
  min-width:0!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
html body .mig-group-profile-overlay .mig-group-unified-close{
  position:static!important;
  order:0!important;
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  margin:0!important;
}
html body .mig-group-profile-overlay .mig-group-unified-edit{
  justify-self:end!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  max-width:38px!important;
  padding:0!important;
  border:0!important;
  border-radius:50%!important;
  background:#3f4a55!important;
  color:#d6dee7!important;
  font-size:0!important;
  line-height:1!important;
  cursor:pointer!important;
  box-shadow:none!important;
}
html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero{
  position:relative!important;
  height:220px!important;
  min-height:220px!important;
  border-radius:0 0 24px 24px!important;
  overflow:hidden!important;
}
html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero .mig-peer-profile-message-hero,
html body .mig-group-profile-overlay .mig-v318-hero-actions,
html body .mig-group-profile-overlay .mig-group-app-actions,
html body .mig-group-profile-overlay .mig-group-app-add-members{
  display:none!important;
}
html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero .mig-peer-profile-notify{
  right:18px!important;
  bottom:86px!important;
}
html body .mig-group-profile-overlay .mig-group-unified-add-members{
  position:absolute!important;
  right:18px!important;
  bottom:18px!important;
  z-index:8!important;
  width:58px!important;
  height:58px!important;
  border:0!important;
  border-radius:999px!important;
  display:grid!important;
  place-items:center!important;
  background:#3390ec!important;
  color:#fff!important;
  box-shadow:0 12px 28px rgba(51,144,236,.34)!important;
  cursor:pointer!important;
}
html body .mig-group-profile-overlay .mig-group-unified-add-members svg{
  width:29px!important;
  height:29px!important;
  fill:currentColor!important;
  display:block!important;
}
html body .mig-group-profile-overlay .mig-peer-profile-screen > .mig-v276-screen,
html body .mig-group-profile-overlay .mig-peer-profile-screen > .mig-v276-subscreen,
html body .mig-group-profile-overlay .mig-peer-profile-screen > .mig-v276-settings-screen,
html body .mig-group-profile-overlay .mig-peer-profile-screen > .mig-v275-screen,
html body .mig-group-profile-overlay .mig-peer-profile-screen > .mig-v275-subscreen,
html body .mig-group-profile-overlay .mig-peer-profile-screen > .group-settings-screen,
html body .mig-group-profile-overlay .mig-peer-profile-screen > .group-settings-subscreen,
html body .mig-group-profile-overlay .mig-peer-profile-screen > .mig-group-settings-card:not(.mig-v318-settings-card),
html body .mig-group-profile-overlay .mig-peer-profile-screen > .group-settings-card:not(.mig-v318-settings-card),
html body .mig-group-profile-overlay .mig-peer-profile-screen > .mig-group-settings-list:not(.mig-v318-settings-list),
html body .mig-group-profile-overlay .mig-peer-profile-screen > .group-settings-list:not(.mig-v318-settings-list){
  display:none!important;
}
html body .mig-group-profile-overlay .mig-group-unified-edit svg{
  width:20px!important;
  height:20px!important;
  display:block!important;
  pointer-events:none!important;
}
@media (max-width:600px){
  html body .mig-group-profile-overlay .mig-group-unified-edit{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    max-width:38px!important;
    padding:0!important;
    font-size:0!important;
  }
  html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero{
    height:210px!important;
    min-height:210px!important;
  }
}
/* !Профиль группы v335 unified renderer конец! */


/* !Профиль группы v336 unified layout начало! */
html body .mig-group-profile-overlay,
html body .mig-group-profile-overlay .mig-peer-profile-screen{
  background:#0f1720!important;
  background-image:none!important;
  color:#eef6ff!important;
}
html body .mig-group-profile-overlay .mig-peer-profile-screen{
  display:flex!important;
  flex-direction:column!important;
  min-height:100%!important;
  padding:0 0 max(22px,env(safe-area-inset-bottom))!important;
  overflow-x:hidden!important;
}
html body .mig-group-profile-overlay .mig-group-unified-topbar{
  position:sticky!important;
  top:0!important;
  z-index:40!important;
  order:0!important;
}
html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero{
  order:1!important;
  flex:0 0 auto!important;
  background:#111c26!important;
}
html body .mig-group-profile-overlay .mig-group-profile-info-list{
  order:2!important;
  flex:0 0 auto!important;
  margin:0!important;
  background:#101923!important;
}
html body .mig-group-profile-overlay .mig-v276-settings-block{
  order:3!important;
  flex:0 0 auto!important;
  margin:12px 12px 10px!important;
  padding:14px!important;
  border:1px solid rgba(255,255,255,.08)!important;
  border-radius:18px!important;
  background:#121d27!important;
  box-shadow:none!important;
  color:#eef6ff!important;
}
html body .mig-group-profile-overlay .mig-v276-title{
  margin:0 0 12px!important;
  font-size:15px!important;
  line-height:1.2!important;
  font-weight:900!important;
  color:#66b3ff!important;
  letter-spacing:.01em!important;
}
html body .mig-group-profile-overlay .mig-v276-grid{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:8px!important;
}
html body .mig-group-profile-overlay .mig-v276-setting-row{
  width:100%!important;
  min-height:58px!important;
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr) 20px!important;
  align-items:center!important;
  gap:12px!important;
  padding:10px 12px!important;
  border:1px solid rgba(255,255,255,.07)!important;
  border-radius:14px!important;
  background:#172431!important;
  color:#eef6ff!important;
  text-align:left!important;
  cursor:pointer!important;
}
html body .mig-group-profile-overlay .mig-v276-setting-row:active{transform:scale(.99)!important;}
html body .mig-group-profile-overlay .mig-v276-ico{
  width:34px!important;
  height:34px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:12px!important;
  background:rgba(51,144,236,.14)!important;
  font-size:18px!important;
  line-height:1!important;
}
html body .mig-group-profile-overlay .mig-v276-main{
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  gap:3px!important;
}
html body .mig-group-profile-overlay .mig-v276-main b{
  display:block!important;
  min-width:0!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  color:#eef6ff!important;
  font-size:14px!important;
  line-height:1.18!important;
  font-weight:850!important;
}
html body .mig-group-profile-overlay .mig-v276-main small{
  display:block!important;
  min-width:0!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  color:rgba(238,246,255,.58)!important;
  font-size:12px!important;
  line-height:1.2!important;
}
html body .mig-group-profile-overlay .mig-v276-chev{
  justify-self:end!important;
  color:rgba(238,246,255,.44)!important;
  font-size:22px!important;
  line-height:1!important;
}
html body .mig-group-profile-overlay .mig-peer-profile-tabs-scroll{
  order:4!important;
  flex:0 0 auto!important;
  margin:0 12px!important;
  padding:5px!important;
  min-height:48px!important;
  border:1px solid rgba(255,255,255,.08)!important;
  border-radius:18px!important;
  background:#111c26!important;
}
html body .mig-group-profile-overlay .mig-peer-profile-section-card{
  order:5!important;
  flex:0 0 auto!important;
  margin:0 12px 14px!important;
  border:1px solid rgba(255,255,255,.08)!important;
  border-top:0!important;
  border-radius:0 0 18px 18px!important;
  background:#101923!important;
  overflow:hidden!important;
}
html body .mig-group-profile-overlay .mig-group-app-members-title{
  padding:14px 18px 8px!important;
  color:#66b3ff!important;
  font-size:13px!important;
  font-weight:900!important;
  text-transform:uppercase!important;
}
html body .mig-group-profile-overlay .mig-group-app-member-row{
  min-height:64px!important;
  padding:8px 18px!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  border-top:1px solid rgba(255,255,255,.06)!important;
  background:#101923!important;
}
html body .mig-group-profile-overlay .mig-group-profile-member-avatar{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  max-width:42px!important;
  flex:0 0 42px!important;
  border-radius:50%!important;
  overflow:hidden!important;
  display:grid!important;
  place-items:center!important;
  background:#1f3447!important;
  color:#ffffff!important;
  font-size:17px!important;
  font-weight:800!important;
  line-height:42px!important;
}
html body .mig-group-profile-overlay .mig-group-profile-member-avatar img{
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  display:block!important;
  object-fit:cover!important;
  border-radius:50%!important;
}
html body .mig-group-profile-overlay .mig-v318-hero-host,
html body .mig-group-profile-overlay .mig-v318-hero-actions,
html body .mig-group-profile-overlay .mig-group-app-actions,
html body .mig-group-profile-overlay .mig-group-app-add-members,
html body .mig-group-profile-overlay .group-profile-card,
html body .mig-group-profile-overlay .telegram-group-card,
html body .mig-group-profile-overlay .mig-group-legacy-card{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
@media(max-width:600px){
  html body .mig-group-profile-overlay .mig-v276-settings-block{margin:10px 8px 8px!important;padding:12px!important;border-radius:16px!important;}
  html body .mig-group-profile-overlay .mig-v276-setting-row{min-height:54px!important;padding:9px 10px!important;grid-template-columns:32px minmax(0,1fr) 18px!important;}
  html body .mig-group-profile-overlay .mig-peer-profile-tabs-scroll{margin:0 8px!important;}
  html body .mig-group-profile-overlay .mig-peer-profile-section-card{margin:0 8px 12px!important;}
}
/* !Профиль группы v336 unified layout конец! */

/* !Профиль группы v337 hero layout начало! */
html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero{
  height:176px!important;
  min-height:176px!important;
  padding:0!important;
  display:block!important;
  border-radius:0 0 24px 24px!important;
  box-sizing:border-box!important;
}
html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero .mig-peer-profile-identity{
  position:absolute!important;
  left:18px!important;
  right:88px!important;
  bottom:18px!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:12px!important;
  min-width:0!important;
  max-width:calc(100% - 124px)!important;
  width:auto!important;
  white-space:normal!important;
}
html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero .mig-peer-profile-avatar-dom,
html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero .mig-peer-profile-avatar-dom .avatar,
html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero .mig-peer-profile-avatar-dom .avatar-fallback{
  flex:0 0 72px!important;
  width:72px!important;
  min-width:72px!important;
  height:72px!important;
  min-height:72px!important;
  border-radius:22px!important;
}
html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero .mig-peer-profile-title-block{
  flex:1 1 auto!important;
  min-width:0!important;
  max-width:100%!important;
  width:auto!important;
  display:block!important;
  writing-mode:horizontal-tb!important;
  text-orientation:mixed!important;
}
html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero .mig-peer-profile-name,
html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero .mig-v329-full-group-name{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-height:none!important;
  writing-mode:horizontal-tb!important;
  text-orientation:mixed!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  line-height:1.12!important;
  font-size:24px!important;
}
html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero .mig-peer-profile-status{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  font-size:15px!important;
  line-height:1.22!important;
}
html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero .mig-peer-profile-notify{
  display:none!important;
}
html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero .mig-group-unified-add-members{
  right:18px!important;
  bottom:24px!important;
  width:54px!important;
  height:54px!important;
  min-width:54px!important;
}
@media(max-width:600px){
  html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero{
    height:168px!important;
    min-height:168px!important;
  }
  html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero .mig-peer-profile-identity{
    left:14px!important;
    right:76px!important;
    bottom:16px!important;
    gap:10px!important;
    max-width:calc(100% - 96px)!important;
  }
  html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero .mig-peer-profile-avatar-dom,
  html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero .mig-peer-profile-avatar-dom .avatar,
  html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero .mig-peer-profile-avatar-dom .avatar-fallback{
    flex-basis:64px!important;
    width:64px!important;
    min-width:64px!important;
    height:64px!important;
    min-height:64px!important;
    border-radius:18px!important;
  }
  html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero .mig-peer-profile-name,
  html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero .mig-v329-full-group-name{
    font-size:22px!important;
  }
  html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero .mig-group-unified-add-members{
    right:14px!important;
    bottom:20px!important;
    width:50px!important;
    height:50px!important;
    min-width:50px!important;
  }
}
/* !Профиль группы v337 hero layout конец! */

/* !Профиль группы — участники avatar crop fix v340 начало! */
html body .mig-group-profile-overlay .mig-group-app-member-row .mig-group-profile-member-avatar{
  width:48px!important;
  height:48px!important;
  min-width:48px!important;
  min-height:48px!important;
  max-width:48px!important;
  max-height:48px!important;
  flex:0 0 48px!important;
  aspect-ratio:1/1!important;
  box-sizing:border-box!important;
  padding:0!important;
  border:0!important;
  border-radius:999px!important;
  overflow:hidden!important;
  position:relative!important;
  display:block!important;
  line-height:48px!important;
  text-align:center!important;
}
html body .mig-group-profile-overlay .mig-group-app-member-row .mig-group-profile-member-avatar img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;
  max-width:none!important;
  max-height:none!important;
  aspect-ratio:1/1!important;
  object-fit:cover!important;
  object-position:center center!important;
  border-radius:999px!important;
  display:block!important;
  transform:none!important;
}
/* !Профиль группы — участники avatar crop fix v340 конец! */


/* !Профиль группы v342 add-members bottom-right начало! */
html body .mig-group-profile-overlay{
  position:relative!important;
}
html body .mig-group-profile-overlay > .mig-group-unified-add-members,
html body .mig-group-profile-overlay .mig-peer-profile-screen > .mig-group-unified-add-members{
  position:fixed!important;
  right:max(18px,env(safe-area-inset-right))!important;
  bottom:max(18px,env(safe-area-inset-bottom))!important;
  z-index:80!important;
  width:58px!important;
  height:58px!important;
  min-width:58px!important;
  min-height:58px!important;
  border:0!important;
  border-radius:999px!important;
  display:grid!important;
  place-items:center!important;
  background:#3390ec!important;
  color:#fff!important;
  box-shadow:0 14px 30px rgba(51,144,236,.38)!important;
}
html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero > .mig-group-unified-add-members{
  display:none!important;
}
html body .mig-group-profile-overlay .mig-peer-profile-screen > .mig-group-unified-add-members svg{
  width:29px!important;
  height:29px!important;
  fill:currentColor!important;
}
@media(min-width:901px){
  html body .app-shell.with-right-panel .mig-group-profile-overlay .mig-peer-profile-screen > .mig-group-unified-add-members{
    right:24px!important;
    bottom:24px!important;
  }
}
/* !Профиль группы v342 add-members bottom-right конец! */

/* !Профиль группы изменение v345: убрать скругления hero и плашки вкладок начало! */
html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero{
  border-radius:0!important;
}
html body .mig-group-profile-overlay .mig-peer-profile-tabs-scroll,
html body .mig-group-profile-overlay .mig-group-profile-tabs,
html body .mig-group-profile-overlay .mig-peer-profile-tabs,
html body .mig-group-profile-overlay .mig-profile-tabs,
html body .mig-group-profile-overlay .group-profile-tabs{
  border-radius:0!important;
}
/* !Профиль группы изменение v345: убрать скругления hero и плашки вкладок конец! */

/* !Профиль группы изменение v346: участники на всю ширину и выравнивание имен влево начало! */
html body .mig-group-profile-overlay .mig-peer-profile-section-card{
  width:100%!important;
  max-width:100%!important;
  margin:0 0 14px 0!important;
  box-sizing:border-box!important;
  border-left:0!important;
  border-right:0!important;
}
html body .mig-group-profile-overlay .mig-group-app-members-title{
  text-align:left!important;
  padding-left:28px!important;
  padding-right:28px!important;
}
html body .mig-group-profile-overlay .mig-group-app-member-row{
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  box-sizing:border-box!important;
  justify-content:flex-start!important;
  text-align:left!important;
  padding-left:28px!important;
  padding-right:28px!important;
}
html body .mig-group-profile-overlay .mig-group-app-member-row > *{
  text-align:left!important;
}
html body .mig-group-profile-overlay .mig-group-app-member-row .mig-group-member-info,
html body .mig-group-profile-overlay .mig-group-app-member-row .mig-peer-profile-member-info,
html body .mig-group-profile-overlay .mig-group-app-member-row .mig-member-info,
html body .mig-group-profile-overlay .mig-group-app-member-row .member-info,
html body .mig-group-profile-overlay .mig-group-app-member-row .mig-group-profile-member-info{
  flex:1 1 auto!important;
  min-width:0!important;
  max-width:none!important;
  text-align:left!important;
  align-items:flex-start!important;
  justify-content:center!important;
}
html body .mig-group-profile-overlay .mig-group-app-member-row b,
html body .mig-group-profile-overlay .mig-group-app-member-row strong,
html body .mig-group-profile-overlay .mig-group-app-member-row .mig-group-member-name,
html body .mig-group-profile-overlay .mig-group-app-member-row .mig-peer-profile-member-name,
html body .mig-group-profile-overlay .mig-group-app-member-row .member-name{
  display:block!important;
  width:100%!important;
  text-align:left!important;
}
html body .mig-group-profile-overlay .mig-group-app-member-row small,
html body .mig-group-profile-overlay .mig-group-app-member-row .mig-group-member-role,
html body .mig-group-profile-overlay .mig-group-app-member-row .mig-peer-profile-member-role,
html body .mig-group-profile-overlay .mig-group-app-member-row .member-role{
  display:block!important;
  width:100%!important;
  text-align:left!important;
}
/* !Профиль группы изменение v346: участники на всю ширину и выравнивание имен влево конец! */

/* !Профиль группы изменение v347: вкладки на всю ширину профиля начало! */
html body .mig-group-profile-overlay .mig-peer-profile-tabs-scroll,
html body .mig-group-profile-overlay .mig-group-profile-tabs,
html body .mig-group-profile-overlay .mig-peer-profile-tabs,
html body .mig-group-profile-overlay .mig-profile-tabs,
html body .mig-group-profile-overlay .group-profile-tabs{
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  box-sizing:border-box!important;
  border-left:0!important;
  border-right:0!important;
  border-radius:0!important;
}
html body .mig-group-profile-overlay .mig-peer-profile-tabs-scroll{
  padding-left:20px!important;
  padding-right:20px!important;
}
@media(max-width:600px){
  html body .mig-group-profile-overlay .mig-peer-profile-tabs-scroll,
  html body .mig-group-profile-overlay .mig-group-profile-tabs,
  html body .mig-group-profile-overlay .mig-peer-profile-tabs,
  html body .mig-group-profile-overlay .mig-profile-tabs,
  html body .mig-group-profile-overlay .group-profile-tabs{
    margin:0!important;
    width:100%!important;
    max-width:100%!important;
  }
  html body .mig-group-profile-overlay .mig-peer-profile-tabs-scroll{
    padding-left:20px!important;
    padding-right:20px!important;
  }
}
/* !Профиль группы изменение v347: вкладки на всю ширину профиля конец! */

/* !Профиль группы изменение v349: avatar as full hero wallpaper начало! */
html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero.mig-group-avatar-wallpaper{
  position:relative!important;
  height:220px!important;
  min-height:220px!important;
  padding:0!important;
  overflow:hidden!important;
  background:#0f1720!important;
  border-radius:0!important;
}
html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero.mig-group-avatar-wallpaper .mig-peer-profile-wallpaper-fallback{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  background-size:cover!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  transform:none!important;
}
html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero.mig-group-avatar-wallpaper .mig-peer-profile-hero-shade{
  position:absolute!important;
  inset:0!important;
  background:linear-gradient(180deg,rgba(0,0,0,.06) 0%,rgba(0,0,0,.14) 45%,rgba(0,0,0,.66) 100%)!important;
  pointer-events:none!important;
}
html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero.mig-group-avatar-wallpaper .mig-peer-profile-avatar-dom{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero.mig-group-avatar-wallpaper .mig-peer-profile-identity{
  position:absolute!important;
  left:24px!important;
  right:24px!important;
  bottom:24px!important;
  display:block!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  padding:0!important;
  margin:0!important;
  text-align:left!important;
  z-index:3!important;
}
html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero.mig-group-avatar-wallpaper .mig-peer-profile-title-block{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  text-align:left!important;
  writing-mode:horizontal-tb!important;
  text-shadow:0 2px 10px rgba(0,0,0,.62)!important;
}
html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero.mig-group-avatar-wallpaper .mig-peer-profile-name,
html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero.mig-group-avatar-wallpaper .mig-v329-full-group-name{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  text-align:left!important;
  font-size:28px!important;
  line-height:1.08!important;
  font-weight:900!important;
  color:#fff!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}
html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero.mig-group-avatar-wallpaper .mig-peer-profile-status{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  margin-top:6px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  text-align:left!important;
  font-size:17px!important;
  line-height:1.2!important;
  font-weight:700!important;
  color:rgba(255,255,255,.88)!important;
}
@media(max-width:600px){
  html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero.mig-group-avatar-wallpaper{
    height:210px!important;
    min-height:210px!important;
  }
  html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero.mig-group-avatar-wallpaper .mig-peer-profile-identity{
    left:18px!important;
    right:18px!important;
    bottom:18px!important;
  }
  html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero.mig-group-avatar-wallpaper .mig-peer-profile-name,
  html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero.mig-group-avatar-wallpaper .mig-v329-full-group-name{
    font-size:26px!important;
  }
  html body .mig-group-profile-overlay .mig-peer-profile-hero.mig-group-app-hero.mig-group-avatar-wallpaper .mig-peer-profile-status{
    font-size:16px!important;
  }
}
/* !Профиль группы изменение v349: avatar as full hero wallpaper конец! */


/* !Профиль группы ссылка приглашения начало! */
/* !Профиль группы ссылка приглашения конец! */

/* !Чат / профиль изменение v352: граница шапки чата на всю ширину начало! */
/* v354: старую fixed-полоску v352 полностью отключаем: она рисовалась поверх сообщений. */
html body .chat-header::after{
  content:none!important;
  display:none!important;
}
/* !Чат / профиль изменение v352: граница шапки чата на всю ширину конец! */

/* !Чат / профиль изменение v354: нижняя грань шапки без лишней полосы начало! */
html body .app-shell.with-right-panel .chat-panel{
  overflow:visible!important;
}
html body .app-shell.with-right-panel .chat-header{
  position:sticky!important;
  overflow:visible!important;
  border-bottom:0!important;
}
html body .app-shell.with-right-panel .chat-header::before{
  content:''!important;
  position:absolute!important;
  left:0!important;
  right:-36px!important;
  bottom:-1px!important;
  height:1px!important;
  background:var(--line, rgba(255,255,255,.08))!important;
  pointer-events:none!important;
  z-index:1!important;
}
@media(max-width:900px){
  html body .app-shell.with-right-panel .chat-header::before{
    right:0!important;
  }
}
/* !Чат / профиль изменение v354: нижняя грань шапки без лишней полосы конец! */

/* !Sidebar search v353 start! */
.sidebar-toolbar{grid-template-columns:40px minmax(0,1fr)!important;}
.sidebar-toolbar .search-box-main{width:100%!important;max-width:none!important;}
/* !Sidebar search v353 end! */

/* !Чат-лист FAB Сообщение+ начало v355! */
.sidebar{position:relative;}
.chatlist-compose-fab-wrap{position:absolute;right:18px;bottom:20px;z-index:1200;display:flex;flex-direction:column;align-items:flex-end;gap:12px;pointer-events:none;}
.chatlist-compose-fab{width:64px;height:64px;border-radius:50%;border:0;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#3398f2,#247bd8);color:#fff;box-shadow:0 12px 30px rgba(0,0,0,.36);font-weight:900;font-size:26px;cursor:pointer;pointer-events:auto;transition:transform .16s ease,background .16s ease,box-shadow .16s ease;}
.chatlist-compose-fab:hover{transform:translateY(-1px);box-shadow:0 16px 34px rgba(0,0,0,.42);}
.chatlist-compose-fab.active{background:#7464c9;}
.chatlist-compose-fab-plus{line-height:1;letter-spacing:-.08em;transform:translateX(-1px);}
.chatlist-compose-fab-x{font-size:48px;line-height:1;font-weight:500;margin-top:-4px;}
.chatlist-compose-menu{min-width:320px;padding:16px 14px;border-radius:22px;background:rgba(30,30,30,.94);box-shadow:0 18px 48px rgba(0,0,0,.44);backdrop-filter:blur(18px);display:flex;flex-direction:column;gap:4px;pointer-events:auto;}
.chatlist-compose-menu-item{width:100%;height:52px;border:0;background:transparent;color:#fff;display:flex;align-items:center;gap:18px;padding:0 12px;border-radius:14px;font-size:18px;font-weight:800;text-align:left;cursor:pointer;}
.chatlist-compose-menu-item:hover{background:rgba(255,255,255,.08);}
.chatlist-compose-menu-icon{width:34px;display:flex;align-items:center;justify-content:center;font-size:24px;filter:grayscale(1);opacity:.82;}
@media (max-width:760px){.chatlist-compose-fab-wrap{right:18px;bottom:calc(18px + env(safe-area-inset-bottom));}.chatlist-compose-menu{min-width:300px;max-width:calc(100vw - 36px);}}
/* !Чат-лист FAB Сообщение+ конец v355! */


/* MIG WEB v356: compact Telegram-like chat-list compose FAB/menu + working modal */
.chatlist-compose-fab-wrap{right:18px!important;bottom:18px!important;gap:10px!important;z-index:1250!important;}
.chatlist-compose-fab{width:52px!important;height:52px!important;font-size:20px!important;box-shadow:0 10px 22px rgba(0,0,0,.32)!important;}
.chatlist-compose-fab-x{font-size:38px!important;line-height:1!important;margin-top:-2px!important;}
.chatlist-compose-fab-plus{font-size:18px!important;letter-spacing:-.04em!important;transform:none!important;}
.chatlist-compose-menu{min-width:236px!important;max-width:260px!important;border-radius:18px!important;padding:8px!important;gap:2px!important;box-shadow:0 16px 38px rgba(0,0,0,.34)!important;}
.chatlist-compose-menu-item{min-height:48px!important;padding:0 12px!important;gap:14px!important;font-size:16px!important;font-weight:750!important;border-radius:12px!important;}
.chatlist-compose-menu-icon{width:28px!important;min-width:28px!important;font-size:21px!important;filter:grayscale(1) brightness(1.25)!important;opacity:.8!important;}
@media (max-width:760px){.chatlist-compose-fab-wrap{right:16px!important;bottom:calc(16px + env(safe-area-inset-bottom))!important;}.chatlist-compose-menu{min-width:236px!important;max-width:calc(100vw - 32px)!important;}}
.mig-v356-compose-root{position:fixed;inset:0;z-index:10050;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(0,0,0,.36);}
.mig-v356-compose-backdrop{position:absolute;inset:0;}
.mig-v356-compose-modal{position:relative;width:min(430px,calc(100vw - 28px));max-height:min(720px,calc(100dvh - 28px));display:flex;flex-direction:column;overflow:hidden;border-radius:20px;background:#101b25;border:1px solid rgba(255,255,255,.08);box-shadow:0 24px 70px rgba(0,0,0,.46);color:#f4f8ff;}
.mig-v356-compose-modal header{height:56px;display:flex;align-items:center;gap:10px;padding:0 12px;border-bottom:1px solid rgba(255,255,255,.08);}
.mig-v356-compose-modal h2{flex:1;margin:0;font-size:18px;line-height:1.1;font-weight:800;}
.mig-v356-compose-close,.mig-v356-compose-next{border:0;background:transparent;color:#55a8ff;cursor:pointer;font-weight:800;font-size:15px;}
.mig-v356-compose-close{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;color:#d9e7f7;font-size:30px;background:rgba(255,255,255,.06);}
.mig-v356-compose-next:empty{visibility:hidden;}
.mig-v356-compose-next:disabled{opacity:.55;cursor:default;}
.mig-v356-compose-title{display:flex;flex-direction:column;gap:7px;padding:12px 14px 10px;color:#8ea0b3;font-size:13px;font-weight:650;}
.mig-v356-compose-title input,.mig-v356-compose-search input{width:100%;box-sizing:border-box;border:0;outline:0;border-radius:14px;background:#192838;color:#fff;padding:12px 14px;font-size:16px;}
.mig-v356-compose-search{padding:10px 14px;border-bottom:1px solid rgba(255,255,255,.07);}
.mig-v356-compose-selected{display:flex;gap:8px;overflow-x:auto;padding:8px 14px;border-bottom:1px solid rgba(255,255,255,.07);}
.mig-v356-compose-selected button{flex:0 0 auto;border:0;border-radius:999px;background:#24384b;color:#eaf4ff;padding:7px 10px;font-size:13px;display:inline-flex;gap:7px;align-items:center;}
.mig-v356-compose-selected span{color:#55a8ff;font-weight:900;}
.mig-v356-compose-list{overflow:auto;padding:6px 0;min-height:160px;}
.mig-v356-compose-empty{padding:24px 18px;color:#8ea0b3;text-align:center;font-weight:650;}
.mig-v356-compose-user{width:100%;min-height:62px;display:flex;align-items:center;gap:12px;padding:8px 16px;border:0;background:transparent;color:#fff;text-align:left;cursor:pointer;}
.mig-v356-compose-user:hover{background:rgba(255,255,255,.045);}
.mig-v356-compose-avatar{width:44px;height:44px;border-radius:50%;background:#2f80d0;display:grid;place-items:center;overflow:hidden;flex:0 0 44px;font-weight:850;font-size:18px;}
.mig-v356-compose-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block;}
.mig-v356-compose-user-main{min-width:0;display:flex;flex-direction:column;gap:2px;}
.mig-v356-compose-user-main b{font-size:16px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.mig-v356-compose-user-main small{font-size:13px;color:#9fb0c2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.mig-v356-compose-user i{margin-left:auto;width:22px;height:22px;border-radius:50%;border:2px solid rgba(255,255,255,.25);box-sizing:border-box;}
.mig-v356-compose-user.selected i{border-color:#55a8ff;background:#55a8ff;box-shadow:inset 0 0 0 4px #101b25;}
.mig-v356-compose-toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);z-index:10080;background:rgba(20,28,38,.96);color:#fff;border-radius:999px;padding:10px 16px;font-size:14px;font-weight:750;box-shadow:0 12px 30px rgba(0,0,0,.35);}

/* MIG WEB v357: compose menu smaller typography + blue centered close FAB */
.chatlist-compose-fab{
  width:50px!important;
  height:50px!important;
  min-width:50px!important;
  min-height:50px!important;
  background:linear-gradient(135deg,#3aa0f3,#2688e6)!important;
  color:#fff!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  line-height:1!important;
}
.chatlist-compose-fab.active{
  background:linear-gradient(135deg,#3aa0f3,#2688e6)!important;
}
.chatlist-compose-fab-x{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
  font-size:32px!important;
  line-height:1!important;
  font-weight:600!important;
  transform:translateY(-1px)!important;
}
.chatlist-compose-menu{
  min-width:220px!important;
  max-width:240px!important;
  padding:7px!important;
  border-radius:17px!important;
}
.chatlist-compose-menu-item{
  min-height:42px!important;
  height:42px!important;
  padding:0 10px!important;
  gap:12px!important;
  font-size:14px!important;
  line-height:1.15!important;
  font-weight:750!important;
  border-radius:11px!important;
}
.chatlist-compose-menu-icon{
  width:26px!important;
  min-width:26px!important;
  font-size:19px!important;
}
@media (max-width:760px){
  .chatlist-compose-menu{min-width:220px!important;max-width:calc(100vw - 32px)!important;}
}
/* MIG WEB v357 end */

/* MIG WEB v370: hide message list while initial open position is applied, so chat opens directly at first unread/last without visible scrolling */
.message-list.mig-open-positioning{visibility:hidden!important;scroll-behavior:auto!important;}
.message-list.mig-open-positioning *{scroll-behavior:auto!important;}

/* v372: do not hide message list while opening chats; prevents blank right/slow message rendering */
.message-list.mig-open-positioning{visibility:visible!important;opacity:1!important;}

/* MIG v374 open chat instant anchor: hide only during initial positioning */
.message-list.mig-chat-open-positioning{opacity:0!important;transition:none!important;scroll-behavior:auto!important;}
.message-list{scroll-behavior:auto;}

/* MIG v375: hide message list only while initial unread/last anchor is positioned */
html.mig-chat-initial-positioning .message-list, body.mig-chat-initial-positioning .message-list, .message-list.mig-chat-initial-positioning-list{opacity:0!important;visibility:hidden!important;transition:none!important;scroll-behavior:auto!important;overflow-anchor:none!important;}
.message-list{scroll-behavior:auto!important;overflow-anchor:none;}

/* MIG WEB v377: hide message list only during instant initial anchor positioning */
.message-list.mig-open-anchor-lock{visibility:hidden!important;scroll-behavior:auto!important;overflow-anchor:none!important;}

/* MIG WEB v379: force-hide unread divider after the first unread message is actually viewed/listened */
.message-anchor[data-mig-read-sent="1"] .unread-boundary,
.message-anchor.mig-read-visible-anchor .unread-boundary,
.unread-boundary.mig-unread-boundary-cleared,
.unread-boundary[data-mig-cleared="1"]{
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}


/* MIG WEB v380: Telegram-like outgoing status ticks */
.mig-message-status{width:14px!important;height:14px!important;stroke-width:2.25!important;vertical-align:-2px!important;flex:0 0 auto!important;}
.mig-status-sent,.mig-status-delivered{color:rgba(255,255,255,.64)!important;opacity:1!important;}
.mig-status-read{color:#4ea4ff!important;opacity:1!important;}
.bubble-meta .mig-status-read,.bubble-meta .mig-status-delivered,.bubble-meta .mig-status-sent{display:inline-block!important;}
.message-list .unread-boundary.mig-unread-boundary-cleared,.message-list .unread-boundary[data-mig-cleared="1"]{display:none!important;visibility:hidden!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;}

/* MIG WEB v412 final iPhone keyboard override: old inline top/bottom is ignored by !important CSS. */
@media (max-width:760px){
  html.mig-v412-keyboard-open .chat-panel.mobile-open{overflow:hidden!important;}
  html.mig-v412-keyboard-open .chat-panel.mobile-open .composer{
    position:fixed!important;left:0!important;right:0!important;
    bottom:var(--mig-v412-keyboard-inset,0px)!important;
    z-index:2147482400!important;margin:0!important;padding:8px 12px 0!important;
    transform:translateY(0)!important;border-top:0!important;box-shadow:none!important;
    background:transparent!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  }
  html.mig-v412-keyboard-open .chat-panel.mobile-open .chat-composer-stack{bottom:auto!important;margin-bottom:0!important;padding-bottom:0!important;transform:none!important;background:transparent!important;}
  html.mig-v412-keyboard-open .chat-panel.mobile-open .composer-row{margin-bottom:0!important;}
  html.mig-v412-keyboard-open .message-list{padding-bottom:calc(var(--mig-v412-composer-height,64px) + 10px)!important;scroll-padding-bottom:calc(var(--mig-v412-composer-height,64px) + 18px)!important;}
  .mig-chat-down-btn-v396,.mig-chat-down-btn-v402,.mig-chat-down-btn-v404,.mig-chat-down-btn-v408,.mig-chat-down-btn-v409,.mig-chat-down-btn-v410,.mig-chat-down-btn-v411,.mig-chat-down-btn-v412,.mig-chat-down-btn-v412-final{
    position:fixed!important;top:auto!important;left:auto!important;right:16px!important;
    bottom:calc(var(--mig-v412-keyboard-inset,0px) + var(--mig-v412-composer-height,64px) + 12px)!important;
    z-index:2147482500!important;transform:none!important;
  }
}

/* ===== MIG WEB V422 SUPERADMIN CLEAN COMPACT LAYOUT =====
   Clean replacement: removes old admin-tabs grid/flex/absolute dashboard rules.
   Keeps one segmented tab bar, one filter pills row, compact stacked Telegram layout. */
.admin-page{
  --sa-bg: var(--bg,#0e1621);
  --sa-panel: rgba(23,33,43,.72);
  --sa-panel-2: rgba(27,39,51,.68);
  --sa-line: rgba(255,255,255,.040);
  --sa-line-2: rgba(255,255,255,.060);
  --sa-pill: rgba(255,255,255,.050);
  --sa-pill-hover: rgba(255,255,255,.075);
  --sa-pill-active: rgba(51,144,236,.16);
  --sa-text: var(--text,#eef5fc);
  --sa-muted: var(--muted,#8fa2b7);
  flex:1!important;
  min-height:0!important;
  height:100%!important;
  overflow:hidden!important;
  background:var(--sa-bg)!important;
  color:var(--sa-text)!important;
}
.admin-page .mig-v415-admin{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
  background:var(--sa-bg)!important;
  color:var(--sa-text)!important;
  font-family:inherit!important;
}
.admin-page .mig-v415-top{
  height:56px!important;
  min-height:56px!important;
  box-sizing:border-box!important;
  padding:0 16px!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  background:rgba(18,27,35,.96)!important;
  border-bottom:1px solid var(--sa-line)!important;
  box-shadow:none!important;
}
.admin-page .mig-v415-top h2{
  flex:1 1 auto!important;
  margin:0!important;
  padding:0!important;
  max-width:none!important;
  font-size:15px!important;
  line-height:1.2!important;
  font-weight:700!important;
  letter-spacing:0!important;
  color:var(--sa-text)!important;
}
.admin-page .mig-v415-top button,
.admin-page .mig-v415-admin-back{
  appearance:none!important;
  width:36px!important;
  min-width:36px!important;
  height:36px!important;
  min-height:36px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:50%!important;
  display:inline-grid!important;
  place-items:center!important;
  background:var(--sa-pill)!important;
  color:var(--sa-text)!important;
  box-shadow:none!important;
  outline:none!important;
  font-size:20px!important;
  line-height:1!important;
}
.admin-page .mig-v415-admin-back{font-size:26px!important;font-weight:700!important;}
.admin-page .mig-v415-top button:hover,
.admin-page .mig-v415-admin-back:hover{background:var(--sa-pill-hover)!important;}
.admin-page .mig-v415-admin main{
  flex:1 1 auto!important;
  min-height:0!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:7px!important;
  padding:10px 18px 16px!important;
  overflow:auto!important;
  background:var(--sa-bg)!important;
  scrollbar-width:thin!important;
  scrollbar-color:rgba(148,166,184,.30) transparent!important;
}
.admin-page .mig-v415-admin main::-webkit-scrollbar{width:6px!important;height:6px!important;}
.admin-page .mig-v415-admin main::-webkit-scrollbar-track{background:transparent!important;}
.admin-page .mig-v415-admin main::-webkit-scrollbar-thumb{background:rgba(148,166,184,.30)!important;border-radius:999px!important;}

/* Native stacked sections */
.admin-page .mig-v415-card,
.admin-page .mig-v415-stats,
.admin-page .mig-v415-user,
.admin-page .mig-v415-chat,
.admin-page .mig-v415-loading,
.admin-page .mig-v415-error{
  width:100%!important;
  max-width:none!important;
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  gap:4px!important;
  margin:0!important;
  padding:9px 12px!important;
  border:1px solid var(--sa-line)!important;
  border-radius:13px!important;
  background:var(--sa-panel)!important;
  box-shadow:none!important;
  outline:0!important;
  color:var(--sa-text)!important;
}
.admin-page .mig-v415-card:hover,
.admin-page .mig-v415-user:hover,
.admin-page .mig-v415-chat:hover{
  background:var(--sa-panel-2)!important;
  border-color:var(--sa-line-2)!important;
}
.admin-page .mig-v415-stats{padding:10px 12px!important;gap:3px!important;}
.admin-page .mig-v415-stats h3{
  margin:0 0 2px!important;
  padding:0!important;
  font-size:13.5px!important;
  line-height:1.2!important;
  font-weight:700!important;
  color:var(--sa-text)!important;
}
.admin-page .mig-v415-stats p{
  display:inline!important;
  margin:0 14px 0 0!important;
  padding:0!important;
  font-size:12px!important;
  line-height:1.28!important;
  color:var(--sa-muted)!important;
}

/* Search uses shared input rhythm */
.admin-page .mig-v415-search{
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
}
.admin-page .mig-v415-search input{
  width:100%!important;
  height:38px!important;
  min-height:38px!important;
  box-sizing:border-box!important;
  margin:0!important;
  padding:0 13px!important;
  border:0!important;
  border-radius:13px!important;
  background:rgba(255,255,255,.040)!important;
  color:var(--sa-text)!important;
  box-shadow:none!important;
  outline:0!important;
  font:inherit!important;
  font-size:13.5px!important;
  line-height:38px!important;
}
.admin-page .mig-v415-search input::placeholder{color:rgba(143,162,183,.86)!important;}
.admin-page .mig-v415-search input:hover,
.admin-page .mig-v415-search input:focus{background:rgba(255,255,255,.060)!important;}

/* ONE segmented tabs container: no grid dashboard, no justify-between, no old min-width */
.admin-page .mig-v415-tabs,
.admin-page .mig-v415-tabs.sub{
  position:static!important;
  inset:auto!important;
  top:auto!important;
  left:auto!important;
  right:auto!important;
  bottom:auto!important;
  transform:none!important;
  float:none!important;
  clear:both!important;
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  box-sizing:border-box!important;
  margin:0!important;
  padding:3px!important;
  gap:3px!important;
  border:0!important;
  border-radius:15px!important;
  background:rgba(255,255,255,.026)!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.admin-page .mig-v415-tabs button,
.admin-page .mig-v415-tabs.sub button{
  position:static!important;
  flex:1 1 0!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  height:28px!important;
  min-height:28px!important;
  box-sizing:border-box!important;
  margin:0!important;
  padding:0 8px!important;
  border:0!important;
  border-radius:12px!important;
  background:transparent!important;
  color:var(--sa-muted)!important;
  box-shadow:none!important;
  outline:0!important;
  font:inherit!important;
  font-size:12px!important;
  line-height:28px!important;
  font-weight:700!important;
  text-align:center!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.admin-page .mig-v415-tabs button:hover,
.admin-page .mig-v415-tabs.sub button:hover{background:var(--sa-pill-hover)!important;color:var(--sa-text)!important;}
.admin-page .mig-v415-tabs button.active,
.admin-page .mig-v415-tabs.sub button.active{
  background:var(--sa-pill-active)!important;
  color:#dcecff!important;
}

/* ONE filters pills row */
.admin-page .mig-v415-flow,
.admin-page .mig-v415-flow.small{
  position:static!important;
  inset:auto!important;
  transform:none!important;
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  box-sizing:border-box!important;
  gap:4px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.admin-page .mig-v415-chip,
.admin-page .mig-v415-flow.small .mig-v415-chip,
.admin-page .mig-v415-actions button{
  appearance:none!important;
  position:static!important;
  flex:0 0 auto!important;
  width:auto!important;
  max-width:100%!important;
  min-width:0!important;
  height:27px!important;
  min-height:27px!important;
  box-sizing:border-box!important;
  margin:0!important;
  padding:0 9px!important;
  border:0!important;
  border-radius:999px!important;
  background:var(--sa-pill)!important;
  color:var(--sa-muted)!important;
  box-shadow:none!important;
  outline:0!important;
  font:inherit!important;
  font-size:12px!important;
  line-height:27px!important;
  font-weight:700!important;
  white-space:nowrap!important;
}
.admin-page .mig-v415-chip:hover,
.admin-page .mig-v415-actions button:hover{background:var(--sa-pill-hover)!important;color:var(--sa-text)!important;}
.admin-page .mig-v415-chip.active{background:var(--sa-pill-active)!important;color:#dcecff!important;}

/* Action row is inline, not separate admin row */
.admin-page .mig-v415-actions{
  position:static!important;
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:4px!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  box-sizing:border-box!important;
  margin:3px 0 0!important;
  padding:3px 0 0!important;
  border-top:1px solid rgba(255,255,255,.026)!important;
  background:transparent!important;
  box-shadow:none!important;
}
.admin-page main > .mig-v415-actions{
  margin:0!important;
  padding:0!important;
  border-top:0!important;
}
.admin-page .mig-v415-actions button.danger,
.admin-page button.danger{
  background:rgba(214,76,76,.090)!important;
  color:rgba(255,181,181,.94)!important;
}
.admin-page .mig-v415-actions button.danger:hover,
.admin-page button.danger:hover{background:rgba(214,76,76,.135)!important;}

/* Compact stacked cards */
.admin-page .mig-v415-list{
  display:flex!important;
  flex-direction:column!important;
  gap:6px!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  box-sizing:border-box!important;
  margin:0!important;
  padding:0!important;
}
.admin-page .mig-v415-row{
  position:static!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  gap:8px!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.admin-page .mig-v415-row .grow{
  flex:1 1 auto!important;
  min-width:0!important;
  max-width:100%!important;
  display:flex!important;
  flex-direction:column!important;
  gap:1px!important;
  margin:0!important;
  padding:0!important;
}
.admin-page .mig-v415-row input[type=checkbox]{
  appearance:auto!important;
  width:16px!important;
  min-width:16px!important;
  height:16px!important;
  min-height:16px!important;
  flex:0 0 16px!important;
  margin:1px 0 0!important;
  padding:0!important;
  opacity:.62!important;
  accent-color:#6f8296!important;
}
.admin-page .mig-v415-card strong,
.admin-page .mig-v415-user strong,
.admin-page .mig-v415-chat strong{
  display:block!important;
  margin:0!important;
  padding:0!important;
  font-size:13.5px!important;
  line-height:1.15!important;
  font-weight:700!important;
  color:var(--sa-text)!important;
}
.admin-page .mig-v415-card p,
.admin-page .mig-v415-user p,
.admin-page .mig-v415-chat p,
.admin-page .mig-v415-card span,
.admin-page .mig-v415-card small,
.admin-page .mig-v415-user span,
.admin-page .mig-v415-user small,
.admin-page .mig-v415-chat span,
.admin-page .mig-v415-chat small{
  display:block!important;
  margin:1px 0 0!important;
  padding:0!important;
  font-size:11.8px!important;
  line-height:1.22!important;
  color:rgba(166,181,197,.86)!important;
  overflow-wrap:anywhere!important;
}
.admin-page .mig-v415-user > p,
.admin-page .mig-v415-chat > p,
.admin-page .mig-v415-card > p{
  color:rgba(230,238,247,.72)!important;
  margin-top:3px!important;
}
.admin-page .mig-v415-loading{padding:10px 12px!important;color:var(--sa-muted)!important;}
.admin-page .mig-v415-error{background:rgba(214,76,76,.10)!important;color:#ffb5b5!important;border-color:rgba(214,76,76,.16)!important;}
.admin-page *:focus-visible{outline:1px solid rgba(255,255,255,.12)!important;outline-offset:2px!important;}

@media (min-width:1200px){
  .admin-page .mig-v415-admin main{padding-left:20px!important;padding-right:20px!important;}
}
@media (max-width:900px){
  .admin-page .mig-v415-top{height:54px!important;min-height:54px!important;padding:0 12px!important;}
  .admin-page .mig-v415-admin main{padding:8px 10px 14px!important;gap:6px!important;}
  .admin-page .mig-v415-stats p{display:block!important;margin-right:0!important;}
  .admin-page .mig-v415-tabs,.admin-page .mig-v415-tabs.sub{overflow-x:auto!important;scrollbar-width:none!important;}
  .admin-page .mig-v415-tabs::-webkit-scrollbar,.admin-page .mig-v415-tabs.sub::-webkit-scrollbar{display:none!important;}
  .admin-page .mig-v415-tabs button,.admin-page .mig-v415-tabs.sub button{font-size:11.5px!important;padding:0 7px!important;}
  .admin-page .mig-v415-card,.admin-page .mig-v415-stats,.admin-page .mig-v415-user,.admin-page .mig-v415-chat{padding:8px 10px!important;}
}


/* ===== MIG WEB V423 SUPERADMIN NATIVE MOUNT + CLEAN TABS FIX =====
   Fixes: old admin page no longer leaves an empty blue container; tab/filter rows no longer overlap.
*/
.admin-page.mig-v423-native-admin-page{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  background:var(--bg,#0e1621)!important;
}
.admin-page.mig-v423-admin-closed{
  display:none!important;
  pointer-events:none!important;
  visibility:hidden!important;
}
.admin-page.mig-v423-native-admin-page .mig-v415-admin{
  position:relative!important;
  inset:auto!important;
  z-index:auto!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
}
.admin-page.mig-v423-native-admin-page .mig-v415-admin main{
  display:flex!important;
  flex-direction:column!important;
  gap:7px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:10px 18px 16px!important;
}
.admin-page.mig-v423-native-admin-page .mig-v415-search{
  flex:0 0 auto!important;
  height:38px!important;
  min-height:38px!important;
  margin:0!important;
  padding:0!important;
}
.admin-page.mig-v423-native-admin-page .mig-v415-tabs,
.admin-page.mig-v423-native-admin-page .mig-v415-tabs.sub{
  flex:0 0 auto!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:center!important;
  width:100%!important;
  height:31px!important;
  min-height:31px!important;
  max-height:31px!important;
  margin:0!important;
  padding:3px!important;
  gap:3px!important;
  position:relative!important;
  top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;
  transform:none!important;
  overflow:hidden!important;
  border-radius:15px!important;
  background:rgba(255,255,255,.026)!important;
}
.admin-page.mig-v423-native-admin-page .mig-v415-tabs button,
.admin-page.mig-v423-native-admin-page .mig-v415-tabs.sub button{
  position:static!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-width:0!important;
  height:25px!important;
  min-height:25px!important;
  max-height:25px!important;
  margin:0!important;
  padding:0 8px!important;
  line-height:25px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
.admin-page.mig-v423-native-admin-page .mig-v415-flow:not(.small){
  flex:0 0 auto!important;
  clear:both!important;
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:4px!important;
  min-height:27px!important;
  margin:0!important;
  padding:0!important;
  position:relative!important;
  top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;
  transform:none!important;
  overflow:visible!important;
}
.admin-page.mig-v423-native-admin-page .mig-v415-actions{
  flex:0 0 auto!important;
  position:relative!important;
  margin:0!important;
  padding:0!important;
  border-top:0!important;
}
.admin-page.mig-v423-native-admin-page .mig-v415-card,
.admin-page.mig-v423-native-admin-page .mig-v415-user,
.admin-page.mig-v423-native-admin-page .mig-v415-chat{
  min-height:0!important;
}
.admin-page.mig-v423-native-admin-page .mig-v415-list{
  position:relative!important;
  flex:0 0 auto!important;
  margin-top:0!important;
  overflow:visible!important;
}
@media (max-width:900px){
  .admin-page.mig-v423-native-admin-page .mig-v415-admin main{padding:8px 10px 14px!important;}
}


/* ===== MIG WEB V424 SUPERADMIN TRUE NATIVE PROFILE FLOW =====
   Replaces the old admin dashboard DOM/CSS layer with one native settings/profile flow:
   one scroll container, one stacked content flow, one segmented tabs row, one filters row, compact cards.
*/
.admin-page.mig-v424-closed{display:none!important;visibility:hidden!important;pointer-events:none!important;background:transparent!important;}
.admin-page.mig-v424-native-admin-page,
.admin-page.mig-v424-native-admin-page *{box-sizing:border-box!important;}
.admin-page.mig-v424-native-admin-page{
  position:relative!important; inset:auto!important; z-index:auto!important;
  display:flex!important; flex-direction:column!important;
  width:100%!important; height:100%!important; min-height:0!important;
  overflow:hidden!important; background:var(--bg,#0e1621)!important; color:var(--text,#eef5fc)!important;
}
.admin-page.mig-v424-native-admin-page .mig-v424-native{
  position:relative!important; inset:auto!important; z-index:auto!important;
  width:100%!important; height:100%!important; min-height:0!important;
  display:flex!important; flex-direction:column!important;
  overflow:hidden!important; background:var(--bg,#0e1621)!important;
}
.admin-page.mig-v424-native-admin-page .mig-v424-top{
  flex:0 0 56px!important; height:56px!important; min-height:56px!important;
  display:flex!important; align-items:center!important; gap:10px!important;
  padding:0 16px!important; margin:0!important;
  background:#121b23!important; border-bottom:1px solid rgba(255,255,255,.035)!important;
  box-shadow:none!important; transform:none!important;
}
.admin-page.mig-v424-native-admin-page .mig-v424-top h2{margin:0!important;font-size:15px!important;line-height:1.2!important;font-weight:700!important;flex:1!important;color:var(--text,#eef5fc)!important;}
.admin-page.mig-v424-native-admin-page .mig-v424-top button{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;border:0!important;border-radius:50%!important;background:rgba(255,255,255,.045)!important;color:var(--text,#eef5fc)!important;display:grid!important;place-items:center!important;padding:0!important;margin:0!important;font-size:20px!important;box-shadow:none!important;}
.admin-page.mig-v424-native-admin-page .mig-v415-admin-back{font-size:25px!important;font-weight:700!important;line-height:1!important;}
.admin-page.mig-v424-native-admin-page .mig-v424-top button:hover{background:rgba(255,255,255,.075)!important;}
.admin-page.mig-v424-native-admin-page .mig-v424-scroll{
  position:relative!important; flex:1 1 auto!important; min-height:0!important;
  width:100%!important; max-width:none!important; margin:0!important;
  overflow-y:auto!important; overflow-x:hidden!important;
  display:block!important; padding:10px 18px 16px!important;
  background:var(--bg,#0e1621)!important; scrollbar-width:thin!important; scrollbar-color:rgba(148,166,184,.30) transparent!important;
}
.admin-page.mig-v424-native-admin-page .mig-v424-scroll::-webkit-scrollbar{width:6px!important}.admin-page.mig-v424-native-admin-page .mig-v424-scroll::-webkit-scrollbar-track{background:transparent!important}.admin-page.mig-v424-native-admin-page .mig-v424-scroll::-webkit-scrollbar-thumb{background:rgba(148,166,184,.30)!important;border-radius:999px!important}
.admin-page.mig-v424-native-admin-page .mig-v424-content{
  width:100%!important; max-width:none!important; margin:0!important; padding:0!important;
  display:flex!important; flex-direction:column!important; gap:6px!important;
  position:relative!important; inset:auto!important; transform:none!important; z-index:auto!important;
}
.admin-page.mig-v424-native-admin-page .mig-v424-section,
.admin-page.mig-v424-native-admin-page .mig-v424-user-card{
  width:100%!important; max-width:none!important; min-width:0!important;
  margin:0!important; padding:8px 11px!important;
  border:1px solid rgba(255,255,255,.038)!important; border-radius:13px!important;
  background:rgba(23,33,43,.74)!important; box-shadow:none!important; outline:0!important;
  position:relative!important; inset:auto!important; transform:none!important; z-index:auto!important;
}
.admin-page.mig-v424-native-admin-page .mig-v424-section-title{font-size:13px!important;font-weight:700!important;color:var(--text,#eef5fc)!important;margin:0 0 5px!important;line-height:1.18!important;}
.admin-page.mig-v424-native-admin-page .mig-v424-info-grid{display:flex!important;flex-wrap:wrap!important;gap:4px 13px!important;margin:0!important;padding:0!important;color:rgba(166,181,197,.88)!important;font-size:11.8px!important;line-height:1.25!important;}
.admin-page.mig-v424-native-admin-page .mig-v424-search{display:block!important;width:100%!important;height:38px!important;margin:0!important;padding:0!important;position:relative!important;}
.admin-page.mig-v424-native-admin-page .mig-v424-search input{display:block!important;width:100%!important;height:38px!important;min-height:38px!important;padding:0 13px!important;margin:0!important;border:0!important;border-radius:13px!important;background:rgba(255,255,255,.042)!important;color:var(--text,#eef5fc)!important;font:inherit!important;font-size:13px!important;line-height:38px!important;outline:0!important;box-shadow:none!important;}
.admin-page.mig-v424-native-admin-page .mig-v424-search input::placeholder{color:rgba(143,162,183,.82)!important;}
.admin-page.mig-v424-native-admin-page .mig-v424-tabs{
  display:flex!important; flex-wrap:nowrap!important; align-items:center!important; gap:3px!important;
  width:100%!important; height:31px!important; min-height:31px!important; margin:0!important; padding:3px!important;
  border:0!important; border-radius:15px!important; background:rgba(255,255,255,.026)!important;
  position:relative!important; inset:auto!important; transform:none!important; z-index:auto!important; overflow:hidden!important;
}
.admin-page.mig-v424-native-admin-page .mig-v424-tabs button{flex:1 1 0!important;min-width:0!important;height:25px!important;margin:0!important;padding:0 8px!important;border:0!important;border-radius:12px!important;background:transparent!important;color:rgba(166,181,197,.86)!important;font:inherit!important;font-size:12px!important;font-weight:700!important;line-height:25px!important;text-align:center!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;box-shadow:none!important;}
.admin-page.mig-v424-native-admin-page .mig-v424-tabs button.active{background:rgba(51,144,236,.14)!important;color:#dcecff!important;}
.admin-page.mig-v424-native-admin-page .mig-v424-tabs button:hover{background:rgba(255,255,255,.060)!important;color:var(--text,#eef5fc)!important;}
.admin-page.mig-v424-native-admin-page .mig-v424-filter-row,
.admin-page.mig-v424-native-admin-page .mig-v424-role-row,
.admin-page.mig-v424-native-admin-page .mig-v424-bulk-row,
.admin-page.mig-v424-native-admin-page .mig-v424-card-actions{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;gap:4px!important;width:100%!important;margin:0!important;padding:0!important;position:relative!important;inset:auto!important;transform:none!important;z-index:auto!important;background:transparent!important;border:0!important;box-shadow:none!important;}
.admin-page.mig-v424-native-admin-page .mig-v424-role-row{margin-top:5px!important;}
.admin-page.mig-v424-native-admin-page .mig-v424-card-actions{margin-top:6px!important;padding-top:5px!important;border-top:1px solid rgba(255,255,255,.025)!important;}
.admin-page.mig-v424-native-admin-page .mig-v424-pill,
.admin-page.mig-v424-native-admin-page .mig-v424-action{appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;width:auto!important;min-width:0!important;height:26px!important;min-height:26px!important;margin:0!important;padding:0 9px!important;border:0!important;border-radius:999px!important;background:rgba(255,255,255,.050)!important;color:rgba(166,181,197,.88)!important;font:inherit!important;font-size:11.8px!important;font-weight:700!important;line-height:26px!important;white-space:nowrap!important;box-shadow:none!important;outline:0!important;}
.admin-page.mig-v424-native-admin-page .mig-v424-pill.active{background:rgba(51,144,236,.16)!important;color:#dcecff!important;}
.admin-page.mig-v424-native-admin-page .mig-v424-pill:hover,
.admin-page.mig-v424-native-admin-page .mig-v424-action:hover{background:rgba(255,255,255,.075)!important;color:var(--text,#eef5fc)!important;}
.admin-page.mig-v424-native-admin-page .mig-v424-action.danger{background:rgba(214,76,76,.09)!important;color:rgba(255,181,181,.94)!important;}
.admin-page.mig-v424-native-admin-page .mig-v424-action.danger:hover{background:rgba(214,76,76,.135)!important;}
.admin-page.mig-v424-native-admin-page .mig-v424-list{display:flex!important;flex-direction:column!important;gap:6px!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;position:relative!important;inset:auto!important;transform:none!important;z-index:auto!important;overflow:visible!important;}
.admin-page.mig-v424-native-admin-page .mig-v424-card-main{display:flex!important;align-items:flex-start!important;gap:8px!important;width:100%!important;margin:0!important;padding:0!important;}
.admin-page.mig-v424-native-admin-page .mig-v424-card-main input[type=checkbox]{appearance:auto!important;width:16px!important;height:16px!important;min-width:16px!important;flex:0 0 16px!important;margin:1px 0 0!important;opacity:.62!important;accent-color:#6f8296!important;}
.admin-page.mig-v424-native-admin-page .mig-v424-card-body{flex:1 1 auto!important;min-width:0!important;display:flex!important;flex-direction:column!important;gap:1px!important;margin:0!important;padding:0!important;}
.admin-page.mig-v424-native-admin-page .mig-v424-user-head{display:flex!important;flex-direction:column!important;gap:1px!important;margin:0!important;padding:0!important;}
.admin-page.mig-v424-native-admin-page .mig-v424-user-head strong{font-size:13.4px!important;line-height:1.15!important;font-weight:700!important;color:var(--text,#eef5fc)!important;margin:0!important;padding:0!important;}
.admin-page.mig-v424-native-admin-page .mig-v424-user-head span,
.admin-page.mig-v424-native-admin-page .mig-v424-meta,
.admin-page.mig-v424-native-admin-page .mig-v424-bio{font-size:11.8px!important;line-height:1.22!important;color:rgba(166,181,197,.86)!important;margin:0!important;padding:0!important;overflow-wrap:anywhere!important;}
.admin-page.mig-v424-native-admin-page .mig-v424-bio{margin-top:4px!important;color:rgba(230,238,247,.72)!important;}
/* Hard-disable old injected dashboard/layout layer selectors for the new render. */
.admin-page.mig-v424-native-admin-page .mig-v415-card:not(.mig-v424-section),
.admin-page.mig-v424-native-admin-page .mig-v415-tabs,
.admin-page.mig-v424-native-admin-page .mig-v415-flow,
.admin-page.mig-v424-native-admin-page .mig-v415-actions,
.admin-page.mig-v424-native-admin-page .mig-v415-list{all:unset!important;display:contents!important;}
@media (max-width:900px){.admin-page.mig-v424-native-admin-page .mig-v424-top{height:54px!important;min-height:54px!important;padding:0 12px!important}.admin-page.mig-v424-native-admin-page .mig-v424-scroll{padding:8px 10px 14px!important}.admin-page.mig-v424-native-admin-page .mig-v424-info-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:4px 8px!important}}


/* ===== MIG WEB V426 SUPERADMIN SAFE NATIVE FLOW ===== */
.admin-page.mig-v426-native-admin-page{background:var(--bg,#0e1621)!important;overflow:hidden!important;}
.admin-page.mig-v426-native-admin-page .mig-v424-native{position:relative!important;display:grid!important;grid-template-rows:56px minmax(0,1fr)!important;width:100%!important;height:100%!important;background:var(--bg,#0e1621)!important;overflow:hidden!important;}
.admin-page.mig-v426-native-admin-page .mig-v424-top{position:sticky!important;top:0!important;z-index:10!important;height:56px!important;min-height:56px!important;display:flex!important;align-items:center!important;gap:12px!important;padding:0 16px!important;background:rgba(20,29,38,.96)!important;border-bottom:1px solid rgba(255,255,255,.045)!important;}
.admin-page.mig-v426-native-admin-page .mig-v424-scroll{grid-row:2!important;position:relative!important;width:100%!important;height:auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:10px 16px 18px!important;background:transparent!important;}
.admin-page.mig-v426-native-admin-page .mig-v424-content{position:relative!important;display:flex!important;flex-direction:column!important;gap:8px!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;}
.admin-page.mig-v426-native-admin-page .mig-v424-section,
.admin-page.mig-v426-native-admin-page .mig-v424-search,
.admin-page.mig-v426-native-admin-page .mig-v424-tabs,
.admin-page.mig-v426-native-admin-page .mig-v424-filter-row,
.admin-page.mig-v426-native-admin-page .mig-v424-bulk-row,
.admin-page.mig-v426-native-admin-page .mig-v424-list{position:relative!important;inset:auto!important;transform:none!important;z-index:auto!important;float:none!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;box-sizing:border-box!important;}
.admin-page.mig-v426-native-admin-page .mig-v424-tabs{display:flex!important;align-items:center!important;gap:4px!important;height:32px!important;min-height:32px!important;max-height:32px!important;padding:4px!important;border:0!important;border-radius:16px!important;background:rgba(255,255,255,.038)!important;box-shadow:none!important;overflow:hidden!important;}
.admin-page.mig-v426-native-admin-page .mig-v424-tabs button{position:relative!important;flex:1 1 0!important;min-width:0!important;height:24px!important;padding:0 8px!important;border-radius:12px!important;line-height:24px!important;z-index:1!important;}
.admin-page.mig-v426-native-admin-page .mig-v424-filter-row{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;gap:5px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important;}
.admin-page.mig-v426-native-admin-page .mig-v424-section,
.admin-page.mig-v426-native-admin-page .mig-v424-user-card{background:rgba(255,255,255,.032)!important;border:1px solid rgba(255,255,255,.045)!important;border-radius:14px!important;padding:9px 12px!important;box-shadow:none!important;}
.admin-page.mig-v426-closed{display:none!important;visibility:hidden!important;pointer-events:none!important;}
@media (max-width:760px){
  body.mig-v426-superadmin-open{overflow:hidden!important;}
  .admin-page.mig-v426-native-admin-page{position:fixed!important;inset:0!important;z-index:2147481200!important;width:100vw!important;height:100dvh!important;min-height:100dvh!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:var(--bg,#0e1621)!important;overflow:hidden!important;}
  .admin-page.mig-v426-native-admin-page .mig-v424-native{height:100dvh!important;grid-template-rows:calc(54px + env(safe-area-inset-top)) minmax(0,1fr)!important;}
  .admin-page.mig-v426-native-admin-page .mig-v424-top{height:calc(54px + env(safe-area-inset-top))!important;min-height:calc(54px + env(safe-area-inset-top))!important;padding:env(safe-area-inset-top) 12px 0!important;}
  .admin-page.mig-v426-native-admin-page .mig-v424-scroll{height:100%!important;padding:8px 10px calc(14px + env(safe-area-inset-bottom))!important;-webkit-overflow-scrolling:touch!important;}
}


/* MIG WEB V433 superadmin close cleanup */
.chat-panel > .empty-chat{height:100%!important;display:grid!important;place-items:center!important;padding:32px!important;box-sizing:border-box!important;}
.chat-panel > .empty-chat > .empty-chat-card{max-width:420px!important;}
.admin-page:empty,.admin-page-card:empty,.admin-page-head:empty{display:none!important;visibility:hidden!important;pointer-events:none!important;}

/* MIG V440: Telegram-style native empty chat card with clean chat bubble icon (no blue marks). */
.chat-panel > .empty-chat,
.empty-chat{
  height:100%!important;
  flex:1 1 auto!important;
  display:grid!important;
  place-items:center!important;
  padding:32px!important;
  box-sizing:border-box!important;
  pointer-events:none!important;
}
.empty-chat-card,
.empty-chat-card.glass{
  width:min(100%,440px)!important;
  max-width:440px!important;
  min-height:230px!important;
  padding:34px 34px 30px!important;
  border-radius:24px!important;
  border:1px solid rgba(255,255,255,.075)!important;
  background:linear-gradient(180deg,rgba(23,33,43,.72),rgba(18,28,38,.58))!important;
  box-shadow:0 18px 70px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.035)!important;
  backdrop-filter:blur(10px)!important;
  -webkit-backdrop-filter:blur(10px)!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  box-sizing:border-box!important;
  pointer-events:none!important;
}
.empty-chat-card::before,
.empty-chat-card.glass::before{
  content:""!important;
  width:96px!important;
  height:96px!important;
  margin:0 0 18px!important;
  display:block!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
  background-size:contain!important;
  opacity:.94!important;
  filter:drop-shadow(0 8px 18px rgba(0,0,0,.18))!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96' fill='none'%3E%3Cpath d='M77.5 43.8c0 19.3-16.3 35-36.4 35-6.3 0-12.2-1.5-17.4-4.2L8.9 80.5l5.6-14.1C8.4 60.3 4.7 52.4 4.7 43.8c0-19.3 16.3-35 36.4-35s36.4 15.7 36.4 35Z' stroke='%23d4dde7' stroke-width='7' stroke-linejoin='round'/%3E%3Cpath d='M70.3 21.2c11.7 3.2 20.1 13.3 20.1 25.2 0 7.1-3 13.6-8 18.4l3.7 10.1-10.5-4.2c-4.4 2-9.4 3.1-14.7 3.1' stroke='%23d4dde7' stroke-width='5.5' stroke-linecap='round' stroke-linejoin='round' opacity='.78'/%3E%3Ccircle cx='31.3' cy='44.4' r='4.2' fill='%23d4dde7'/%3E%3Ccircle cx='46.2' cy='44.4' r='4.2' fill='%23d4dde7'/%3E%3Ccircle cx='61.1' cy='44.4' r='4.2' fill='%23d4dde7'/%3E%3C/svg%3E")!important;
}
.empty-chat-title{
  margin:0 0 10px!important;
  color:#f3f7fb!important;
  font-size:25px!important;
  line-height:1.18!important;
  font-weight:800!important;
  letter-spacing:-.02em!important;
  text-shadow:0 2px 12px rgba(0,0,0,.22)!important;
}
.empty-chat-subtitle{
  margin:0!important;
  color:rgba(214,226,238,.76)!important;
  font-size:17px!important;
  line-height:1.35!important;
  font-weight:500!important;
}
@media (max-width:760px){
  .empty-chat{display:none!important;}
  .empty-chat-card{display:none!important;}
}

/* MIG WEB V441: empty chat subtitle restore */
.empty-chat-card .mig-v441-empty-subtitle,
.empty-chat-card .empty-chat-subtitle{
  display:block!important;
  margin:0!important;
  color:rgba(214,226,238,.76)!important;
  font-size:17px!important;
  line-height:1.35!important;
  font-weight:500!important;
  text-align:center!important;
}

/* ===== MIG WEB V442 SUPERADMIN MOBILE NATIVE CONTENT REPAIR ===== */
.admin-page.mig-v442-superadmin-page .admin-grid,
.admin-page.mig-v442-superadmin-page .empty-chat,
.admin-page.mig-v442-superadmin-page .empty-chat-card{display:none!important;}
.admin-page.mig-v442-superadmin-page .admin-page-card{display:flex!important;flex-direction:column!important;min-height:0!important;height:100%!important;overflow:hidden!important;}
.admin-page.mig-v442-superadmin-page .mig-v442-superadmin-host{display:flex!important;flex:1 1 auto!important;min-height:0!important;width:100%!important;overflow:hidden!important;}
.admin-page.mig-v442-superadmin-page .mig-v442-scroll{height:100%!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;}
@media (max-width: 900px){
  .admin-page.mig-v442-superadmin-page{height:100%!important;min-height:0!important;overflow:hidden!important;background:var(--bg,#0e1621)!important;}
  .admin-page.mig-v442-superadmin-page .admin-page-card{border-radius:0!important;border:0!important;background:var(--bg,#0e1621)!important;box-shadow:none!important;}
  .admin-page.mig-v442-superadmin-page .admin-page-head{flex:0 0 auto!important;min-height:58px!important;}
  .admin-page.mig-v442-superadmin-page .admin-page-subtitle{display:none!important;}
  .admin-page.mig-v442-superadmin-page .mig-v424-scroll{padding:10px 12px calc(18px + env(safe-area-inset-bottom,0px))!important;}
  .admin-page.mig-v442-superadmin-page .mig-v424-info-grid{grid-template-columns:1fr 1fr!important;}
  .admin-page.mig-v442-superadmin-page .mig-v424-tabs{height:32px!important;min-height:32px!important;}
  .admin-page.mig-v442-superadmin-page .mig-v424-user-card{padding:9px 10px!important;}
}


/* MIG WEB V443 superadmin mobile native side-page pipeline */
.admin-page.mig-v443-mobile-side-admin-page .mig-v424-native{display:contents!important;}
.admin-page.mig-v443-mobile-side-admin-page .mig-v443-superadmin-mobile-host{
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
  height:100%!important;
  background:transparent!important;
  overflow:hidden!important;
}
.admin-page.mig-v443-mobile-side-admin-page .mobile-side-page.profile-page-content.mig-v443-superadmin-mobile-host{
  position:relative!important;
  inset:auto!important;
  transform:none!important;
  z-index:auto!important;
}
.admin-page.mig-v443-mobile-side-admin-page .native-ios-scroll-container{
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior:contain!important;
}
.admin-page.mig-v443-mobile-side-admin-page .profile-page-content-inner{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
}
@media (max-width:900px){
  body:has(.admin-page.mig-v443-mobile-side-admin-page){overflow:hidden!important;}
  .admin-page.mig-v443-mobile-side-admin-page{
    position:fixed!important;
    inset:0!important;
    width:100vw!important;
    height:100dvh!important;
    min-height:100dvh!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:var(--bg,#0e1621)!important;
    overflow:hidden!important;
  }
  .admin-page.mig-v443-mobile-side-admin-page .admin-page-card{
    position:relative!important;
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    height:100dvh!important;
    min-height:100dvh!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    background:var(--bg,#0e1621)!important;
    overflow:hidden!important;
  }
  .admin-page.mig-v443-mobile-side-admin-page .admin-page-head{
    flex:0 0 auto!important;
    display:flex!important;
    align-items:center!important;
    min-height:calc(56px + env(safe-area-inset-top,0px))!important;
    height:calc(56px + env(safe-area-inset-top,0px))!important;
    padding:env(safe-area-inset-top,0px) 14px 0 18px!important;
    margin:0!important;
    border:0!important;
    background:var(--bg,#0e1621)!important;
    box-shadow:none!important;
    border-radius:0!important;
  }
  .admin-page.mig-v443-mobile-side-admin-page .admin-page-head h2,
  .admin-page.mig-v443-mobile-side-admin-page .admin-page-head .admin-page-title{
    margin:0!important;
    font-size:20px!important;
    line-height:1.2!important;
    font-weight:700!important;
    color:var(--text,#eef5fc)!important;
  }
  .admin-page.mig-v443-mobile-side-admin-page .admin-page-head button{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    min-height:42px!important;
    border-radius:50%!important;
    margin-left:auto!important;
    background:rgba(255,255,255,.045)!important;
    color:var(--text,#eef5fc)!important;
  }
  .admin-page.mig-v443-mobile-side-admin-page .admin-page-subtitle{display:none!important;}
  .admin-page.mig-v443-mobile-side-admin-page .mig-v443-superadmin-mobile-host{
    flex:1 1 auto!important;
    height:auto!important;
    min-height:0!important;
  }
  .admin-page.mig-v443-mobile-side-admin-page .mig-v424-scroll,
  .admin-page.mig-v443-mobile-side-admin-page .mig-v442-scroll{
    flex:1 1 auto!important;
    height:auto!important;
    min-height:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding:10px 16px calc(18px + env(safe-area-inset-bottom,0px))!important;
    margin:0!important;
    background:var(--bg,#0e1621)!important;
  }
  .admin-page.mig-v443-mobile-side-admin-page .mig-v424-content,
  .admin-page.mig-v443-mobile-side-admin-page .profile-page-content-inner{
    display:flex!important;
    flex-direction:column!important;
    gap:10px!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
  }
  .admin-page.mig-v443-mobile-side-admin-page .mig-v424-section,
  .admin-page.mig-v443-mobile-side-admin-page .mig-v424-user-card{
    border-radius:17px!important;
    padding:12px 13px!important;
    background:rgba(255,255,255,.040)!important;
    border:1px solid rgba(255,255,255,.045)!important;
  }
  .admin-page.mig-v443-mobile-side-admin-page .mig-v424-info-grid{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:7px 14px!important;
    font-size:14px!important;
    line-height:1.25!important;
  }
  .admin-page.mig-v443-mobile-side-admin-page .mig-v424-search{height:46px!important;min-height:46px!important;}
  .admin-page.mig-v443-mobile-side-admin-page .mig-v424-search input{
    height:46px!important;
    min-height:46px!important;
    line-height:46px!important;
    border-radius:15px!important;
    font-size:16px!important;
    padding:0 16px!important;
    background:rgba(255,255,255,.055)!important;
  }
  .admin-page.mig-v443-mobile-side-admin-page .mig-v424-tabs{
    height:38px!important;
    min-height:38px!important;
    padding:3px!important;
    border-radius:19px!important;
    background:rgba(255,255,255,.050)!important;
    gap:3px!important;
  }
  .admin-page.mig-v443-mobile-side-admin-page .mig-v424-tabs button{
    height:32px!important;
    line-height:32px!important;
    border-radius:16px!important;
    font-size:13px!important;
  }
  .admin-page.mig-v443-mobile-side-admin-page .mig-v424-filter-row,
  .admin-page.mig-v443-mobile-side-admin-page .mig-v424-role-row,
  .admin-page.mig-v443-mobile-side-admin-page .mig-v424-card-actions{
    gap:7px!important;
  }
  .admin-page.mig-v443-mobile-side-admin-page .mig-v424-pill,
  .admin-page.mig-v443-mobile-side-admin-page .mig-v424-action{
    height:31px!important;
    min-height:31px!important;
    line-height:31px!important;
    padding:0 12px!important;
    font-size:13px!important;
  }
  .admin-page.mig-v443-mobile-side-admin-page .mig-v424-list{gap:8px!important;}
}

/* MIG WEB V449: v444 return-list CSS disabled.
   The old block hid .chat-panel with !important after Superadmin close and blocked chats/call history on iPhone.
   Returning to list is handled by JS by removing .mobile-open only; no global panel hiding. */
@media (max-width:1024px){
  html.mig-v444-superadmin-return-list body,
  body.mig-v444-superadmin-return-list{overflow:hidden!important;}
  html.mig-v444-superadmin-return-list .sidebar,
  body.mig-v444-superadmin-return-list .sidebar{display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;}
}

/* MIG WEB V448: stale Superadmin return-list flag must not hide newly opened chat/call panels. */
@media (max-width:1024px){
  html.mig-v444-superadmin-return-list .chat-panel.mobile-open,
  body.mig-v444-superadmin-return-list .chat-panel.mobile-open{
    transform:translateX(0)!important;
    pointer-events:auto!important;
    visibility:visible!important;
    z-index:20!important;
  }
}

/* MIG WEB V449: if a Superadmin admin-page stays in DOM after close, it must not cover mobile navigation. */
@media (max-width:900px){
  body.mig-v449-superadmin-closed .admin-page.mig-v449-superadmin-stale{
    display:none!important;
    visibility:hidden!important;
    pointer-events:none!important;
    opacity:0!important;
    position:absolute!important;
    z-index:-1!important;
  }
}

/* MIG WEB V451: after Superadmin close, force iPhone back to real chat list, not empty chat panel. */
@media (max-width:1024px){
  html.mig-v451-after-superadmin-list,
  html.mig-v451-after-superadmin-list body,
  body.mig-v451-after-superadmin-list{overflow:hidden!important;}
  html.mig-v451-after-superadmin-list .app-shell,
  body.mig-v451-after-superadmin-list .app-shell{grid-template-columns:1fr!important;position:relative!important;overflow:hidden!important;height:100dvh!important;}
  html.mig-v451-after-superadmin-list .sidebar,
  body.mig-v451-after-superadmin-list .sidebar{
    display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;
    transform:none!important;position:relative!important;z-index:100!important;width:100%!important;height:100dvh!important;
  }
  /* v452: hide the chat panel even if React re-adds .mobile-open after Superadmin closes.
     The v451 selector used :not(.mobile-open), so a stale mobile-open empty panel stayed on top of the chat list. */
  html.mig-v451-after-superadmin-list .chat-panel,
  body.mig-v451-after-superadmin-list .chat-panel{
    transform:translateX(100%)!important;visibility:hidden!important;pointer-events:none!important;z-index:1!important;
  }
  html.mig-v451-after-superadmin-list .chat-panel.mobile-open,
  body.mig-v451-after-superadmin-list .chat-panel.mobile-open{
    transform:translateX(100%)!important;visibility:hidden!important;pointer-events:none!important;z-index:1!important;
  }
  html.mig-v451-after-superadmin-list .admin-page.mig-v450-superadmin-stale,
  body.mig-v451-after-superadmin-list .admin-page.mig-v450-superadmin-stale,
  html.mig-v451-after-superadmin-list .admin-page.mig-v449-superadmin-stale,
  body.mig-v451-after-superadmin-list .admin-page.mig-v449-superadmin-stale{
    display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;z-index:-1!important;
  }
}


/* MIG WEB V452: Superadmin iPhone list restore overlay fix.
   In v451 a stale .chat-panel.mobile-open could remain above the sidebar as a blank dark screen. */
@media (max-width:1024px){
  html.mig-v451-after-superadmin-list .chat-panel,
  body.mig-v451-after-superadmin-list .chat-panel,
  html.mig-v451-after-superadmin-list .chat-panel.mobile-open,
  body.mig-v451-after-superadmin-list .chat-panel.mobile-open{
    transform:translateX(100%)!important;
    visibility:hidden!important;
    pointer-events:none!important;
    opacity:0!important;
    z-index:1!important;
  }
  html.mig-v451-after-superadmin-list .sidebar,
  body.mig-v451-after-superadmin-list .sidebar{
    transform:translateX(0)!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    z-index:1000!important;
  }
}

/* MIG WEB V454: while returning from Superadmin to iPhone chat list, stale empty panel must not cover the list. */
@media (max-width:1024px){
  html.mig-v454-after-superadmin-chatlist .chat-panel.mobile-open:not(:has(.message-list)):not(:has(.call-history-page)):not(:has(.admin-page)),
  body.mig-v454-after-superadmin-chatlist .chat-panel.mobile-open:not(:has(.message-list)):not(:has(.call-history-page)):not(:has(.admin-page)){
    display:none!important;
    pointer-events:none!important;
  }
}


/* MIG WEB V456: removed v455 opening-panel CSS lock. Navigation unlock is JS-only and must not block iPhone UI. */


/* MIG WEB V462 Superadmin cleanup: stale old flags must never block native navigation. */
@media (max-width:1024px){
html.mig-v444-superadmin-return-list .chat-panel, body.mig-v444-superadmin-return-list .chat-panel,
html.mig-v451-after-superadmin-list .chat-panel, body.mig-v451-after-superadmin-list .chat-panel,
html.mig-v452-after-superadmin-list .chat-panel, body.mig-v452-after-superadmin-list .chat-panel,
html.mig-v453-after-superadmin-list .chat-panel, body.mig-v453-after-superadmin-list .chat-panel,
html.mig-v454-after-superadmin-chatlist .chat-panel, body.mig-v454-after-superadmin-chatlist .chat-panel{display:flex!important;visibility:visible!important;pointer-events:auto!important;opacity:1!important;}
}

/* MIG WEB V463: isolate Superadmin from empty chat and call history glass cards. */
.admin-page.mig-v463-superadmin-page{
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
  overflow:hidden!important;
}
.admin-page.mig-v463-superadmin-page > .mig-v463-superadmin-host{
  display:flex!important;
  flex:1 1 auto!important;
  min-height:0!important;
  width:100%!important;
  overflow:hidden!important;
  background:transparent!important;
  box-sizing:border-box!important;
}
.admin-page.mig-v463-superadmin-page > .mig-v463-superadmin-host .mig-v424-scroll{
  flex:1 1 auto!important;
  min-height:0!important;
  height:auto!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch!important;
}
.admin-page.mig-v463-superadmin-page > .mig-v463-superadmin-host .mig-v424-content{
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
}
.admin-page.mig-v463-superadmin-page .admin-page-card,
.admin-page.mig-v463-superadmin-page .empty-chat-card,
.admin-page.mig-v463-superadmin-page .call-history-appbar{
  pointer-events:auto!important;
}
.empty-chat-card.glass:not(.admin-page-card),
.call-history-appbar.glass:not(.admin-page-card){
  contain:layout paint!important;
}
@media (max-width:900px){
  .admin-page.mig-v463-superadmin-page{
    position:fixed!important;
    inset:0!important;
    width:100vw!important;
    height:100dvh!important;
    min-height:100dvh!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:var(--bg,#0e1621)!important;
    z-index:2147481200!important;
  }
  .admin-page.mig-v463-superadmin-page > .admin-page-head{
    flex:0 0 auto!important;
    min-height:calc(56px + env(safe-area-inset-top,0px))!important;
    height:calc(56px + env(safe-area-inset-top,0px))!important;
    padding:env(safe-area-inset-top,0px) 14px 0 18px!important;
    margin:0!important;
    border:0!important;
    background:var(--bg,#0e1621)!important;
    box-shadow:none!important;
    border-radius:0!important;
  }
  .admin-page.mig-v463-superadmin-page > .admin-page-card{
    display:none!important;
  }
  .admin-page.mig-v463-superadmin-page > .mig-v463-superadmin-host{
    height:auto!important;
  }
  .admin-page.mig-v463-superadmin-page > .mig-v463-superadmin-host .mig-v424-scroll{
    padding:10px 16px calc(18px + env(safe-area-inset-bottom,0px))!important;
    background:var(--bg,#0e1621)!important;
  }
}


/* MIG WEB V464 — isolated Superadmin page rebuilt with Call History style */
.chat-panel .admin-page.mig-v464-superadmin-page{
  position:relative!important;width:100%!important;height:100%!important;min-height:0!important;
  display:flex!important;flex-direction:column!important;padding:16px!important;box-sizing:border-box!important;
  background:transparent!important;overflow:hidden!important;color:var(--text,#e8eef5)!important;
}
.chat-panel .admin-page.mig-v464-superadmin-page>.admin-page-card.glass{
  display:block!important;position:absolute!important;inset:0!important;width:1px!important;height:1px!important;
  overflow:hidden!important;opacity:0!important;pointer-events:none!important;visibility:hidden!important;
}
.chat-panel .admin-page.mig-v464-superadmin-page>.mig-v463-superadmin-host,
.chat-panel .admin-page.mig-v464-superadmin-page>.mig-v464-superadmin-host{
  position:relative!important;inset:auto!important;z-index:5!important;width:100%!important;height:100%!important;min-height:0!important;
  display:flex!important;flex-direction:column!important;box-sizing:border-box!important;overflow:hidden!important;
  border:1px solid rgba(255,255,255,.055)!important;border-radius:26px!important;
  background:#121c27!important;box-shadow:0 18px 55px rgba(0,0,0,.20)!important;
  font-family:inherit!important;color:var(--text,#e8eef5)!important;
}
.mig-v464-superadmin-appbar{
  flex:0 0 auto!important;display:flex!important;align-items:center!important;gap:14px!important;
  min-height:72px!important;padding:14px 18px!important;box-sizing:border-box!important;
  border:0!important;border-bottom:1px solid rgba(255,255,255,.055)!important;border-radius:26px 26px 0 0!important;
  background:rgba(18,28,39,.94)!important;backdrop-filter:blur(16px)!important;-webkit-backdrop-filter:blur(16px)!important;
}
.mig-v464-superadmin-back,.mig-v464-superadmin-close{
  width:42px!important;height:42px!important;min-width:42px!important;border:1px solid rgba(255,255,255,.075)!important;
  border-radius:999px!important;background:rgba(255,255,255,.055)!important;color:#e8eef5!important;
  display:inline-grid!important;place-items:center!important;font:600 28px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  cursor:pointer!important;box-shadow:none!important;padding:0!important;appearance:none!important;-webkit-appearance:none!important;
}
.mig-v464-superadmin-back{font-size:30px!important;padding-bottom:3px!important;}
.mig-v464-superadmin-close{margin-left:auto!important;font-size:30px!important;padding-bottom:3px!important;}
.mig-v464-superadmin-back:hover,.mig-v464-superadmin-close:hover{background:rgba(255,255,255,.105)!important;}
.mig-v464-superadmin-heading{min-width:0!important;display:flex!important;flex-direction:column!important;gap:3px!important;}
.mig-v464-superadmin-title{font-size:24px!important;line-height:1.12!important;font-weight:800!important;letter-spacing:-.02em!important;color:#f2f6fb!important;}
.mig-v464-superadmin-subtitle{font-size:14px!important;line-height:1.25!important;color:rgba(170,185,202,.92)!important;}
.mig-v463-superadmin-host>.mig-v424-scroll,
.mig-v464-superadmin-host>.mig-v424-scroll,
.mig-v464-superadmin-scroll{
  flex:1 1 auto!important;min-height:0!important;height:auto!important;overflow:auto!important;padding:20px!important;box-sizing:border-box!important;
  background:transparent!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:thin!important;
}
.mig-v463-superadmin-host>.mig-v424-scroll::-webkit-scrollbar,.mig-v464-superadmin-host>.mig-v424-scroll::-webkit-scrollbar{width:7px!important;}
.mig-v463-superadmin-host>.mig-v424-scroll::-webkit-scrollbar-thumb,.mig-v464-superadmin-host>.mig-v424-scroll::-webkit-scrollbar-thumb{background:rgba(148,166,184,.28)!important;border-radius:999px!important;}
.mig-v464-superadmin-content,.mig-v424-content.mig-v464-superadmin-content{
  max-width:none!important;width:100%!important;margin:0!important;display:flex!important;flex-direction:column!important;gap:14px!important;
}
.mig-v424-section,.mig-v424-info,.mig-v424-loading,.mig-v415-loading,.mig-v415-error{
  border:1px solid rgba(255,255,255,.055)!important;border-radius:18px!important;background:rgba(255,255,255,.035)!important;
  padding:14px 16px!important;box-sizing:border-box!important;color:#e8eef5!important;
}
.mig-v424-section-title{font-size:15px!important;font-weight:800!important;margin-bottom:10px!important;color:#eef5fd!important;}
.mig-v424-info-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;gap:8px!important;}
.mig-v424-info-grid span{display:flex!important;align-items:center!important;min-height:34px!important;padding:8px 10px!important;border-radius:12px!important;background:rgba(255,255,255,.045)!important;color:rgba(224,234,245,.96)!important;font-size:13px!important;}
.mig-v424-search{display:block!important;width:100%!important;margin:0!important;}
.mig-v424-search input{width:100%!important;height:44px!important;border:1px solid rgba(255,255,255,.045)!important;border-radius:14px!important;background:rgba(255,255,255,.045)!important;color:#e8eef5!important;padding:0 14px!important;outline:none!important;box-sizing:border-box!important;font:500 14px/1.2 inherit!important;}
.mig-v424-search input::placeholder{color:rgba(160,177,196,.9)!important;}
.mig-v424-tabs,.mig-v424-filter-row,.mig-v424-bulk-row,.mig-v424-role-row,.mig-v424-card-actions{
  display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important;margin:0!important;
}
.mig-v424-tabs button,.mig-v424-pill,.mig-v424-action{
  height:36px!important;min-height:36px!important;border:1px solid rgba(255,255,255,.055)!important;border-radius:999px!important;
  background:rgba(255,255,255,.055)!important;color:#dce7f3!important;padding:0 13px!important;
  font:700 14px/1 inherit!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;box-shadow:none!important;cursor:pointer!important;
}
.mig-v424-tabs button.active,.mig-v424-pill.active{background:#3390ec!important;border-color:#3390ec!important;color:#fff!important;}
.mig-v424-action:hover,.mig-v424-pill:hover,.mig-v424-tabs button:hover{background:rgba(255,255,255,.11)!important;}
.mig-v424-action.danger,.mig-v424-card-actions .danger{border-color:rgba(255,120,120,.32)!important;color:#ffb2b2!important;background:rgba(255,83,83,.08)!important;}
.mig-v424-list{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(290px,1fr))!important;gap:12px!important;width:100%!important;}
.mig-v424-user-card{display:block!important;min-width:0!important;border:1px solid rgba(255,255,255,.055)!important;border-radius:18px!important;background:rgba(255,255,255,.035)!important;padding:14px!important;box-sizing:border-box!important;overflow:hidden!important;}
.mig-v424-card-main{display:flex!important;align-items:flex-start!important;gap:12px!important;min-width:0!important;}
.mig-v424-card-main>input[type=checkbox]{width:18px!important;height:18px!important;margin-top:3px!important;accent-color:#3390ec!important;flex:0 0 auto!important;}
.mig-v424-card-body{min-width:0!important;display:flex!important;flex-direction:column!important;gap:9px!important;flex:1 1 auto!important;}
.mig-v424-user-head{display:flex!important;align-items:baseline!important;gap:6px!important;min-width:0!important;flex-wrap:wrap!important;}
.mig-v424-user-head strong{font-size:16px!important;line-height:1.15!important;color:#f4f8fd!important;font-weight:800!important;}
.mig-v424-user-head span,.mig-v424-meta{font-size:13px!important;line-height:1.28!important;color:rgba(170,185,202,.93)!important;}
.mig-v424-bio{font-size:14px!important;line-height:1.35!important;color:rgba(226,236,247,.92)!important;word-break:break-word!important;}
.mig-v415-error{color:#ffb7b7!important;border-color:rgba(255,120,120,.28)!important;background:rgba(255,83,83,.08)!important;}
@media (max-width:820px){
  .chat-panel .admin-page.mig-v464-superadmin-page{padding:0!important;height:100dvh!important;background:#0f1822!important;}
  .chat-panel .admin-page.mig-v464-superadmin-page>.mig-v463-superadmin-host,
  .chat-panel .admin-page.mig-v464-superadmin-page>.mig-v464-superadmin-host{border-radius:0!important;border:0!important;height:100dvh!important;}
  .mig-v464-superadmin-appbar{border-radius:0!important;min-height:calc(64px + env(safe-area-inset-top))!important;padding:calc(10px + env(safe-area-inset-top)) 12px 10px!important;gap:10px!important;}
  .mig-v464-superadmin-title{font-size:20px!important;}
  .mig-v464-superadmin-subtitle{font-size:12px!important;}
  .mig-v464-superadmin-back,.mig-v464-superadmin-close{width:38px!important;height:38px!important;min-width:38px!important;}
  .mig-v463-superadmin-host>.mig-v424-scroll,.mig-v464-superadmin-host>.mig-v424-scroll{padding:12px!important;padding-bottom:calc(20px + env(safe-area-inset-bottom))!important;}
  .mig-v424-list{grid-template-columns:1fr!important;gap:10px!important;}
  .mig-v424-info-grid{grid-template-columns:1fr 1fr!important;}
  .mig-v424-tabs,.mig-v424-filter-row,.mig-v424-bulk-row{overflow:auto!important;flex-wrap:nowrap!important;padding-bottom:2px!important;scrollbar-width:none!important;}
  .mig-v424-tabs::-webkit-scrollbar,.mig-v424-filter-row::-webkit-scrollbar,.mig-v424-bulk-row::-webkit-scrollbar{display:none!important;}
}


/* MIG WEB V465: Superadmin stable isolated styling without v464 bridge */
.admin-page.mig-v463-superadmin-page{
  display:flex!important;flex-direction:column!important;min-height:0!important;overflow:hidden!important;
  background:var(--bg,#0e1621)!important;color:#e8eef5!important;
}
.admin-page.mig-v463-superadmin-page>.admin-page-card.glass{display:none!important;}
.admin-page.mig-v463-superadmin-page>.mig-v463-superadmin-host{
  display:flex!important;flex:1 1 auto!important;min-height:0!important;width:100%!important;overflow:hidden!important;
  border-radius:0!important;background:transparent!important;box-sizing:border-box!important;
}
.admin-page.mig-v463-superadmin-page>.mig-v463-superadmin-host>.mig-v424-scroll{
  display:block!important;flex:1 1 auto!important;min-height:0!important;height:100%!important;overflow-y:auto!important;overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch!important;padding:16px 18px 22px!important;box-sizing:border-box!important;
}
.admin-page.mig-v463-superadmin-page .mig-v424-content{display:flex!important;flex-direction:column!important;gap:12px!important;max-width:none!important;width:100%!important;margin:0!important;}
.admin-page.mig-v463-superadmin-page .mig-v424-section,.admin-page.mig-v463-superadmin-page .mig-v424-user-card{border:1px solid rgba(255,255,255,.055)!important;border-radius:18px!important;background:rgba(255,255,255,.035)!important;padding:14px!important;box-sizing:border-box!important;}
.admin-page.mig-v463-superadmin-page .mig-v424-info-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;gap:8px!important;}
.admin-page.mig-v463-superadmin-page .mig-v424-info-grid span{display:flex!important;align-items:center!important;min-height:34px!important;padding:8px 10px!important;border-radius:12px!important;background:rgba(255,255,255,.045)!important;color:rgba(224,234,245,.96)!important;font-size:13px!important;}
.admin-page.mig-v463-superadmin-page .mig-v424-search{display:block!important;width:100%!important;}
.admin-page.mig-v463-superadmin-page .mig-v424-search input{width:100%!important;height:44px!important;border:1px solid rgba(255,255,255,.045)!important;border-radius:14px!important;background:rgba(255,255,255,.045)!important;color:#e8eef5!important;padding:0 14px!important;outline:none!important;box-sizing:border-box!important;font:500 14px/1.2 inherit!important;}
.admin-page.mig-v463-superadmin-page .mig-v424-tabs,.admin-page.mig-v463-superadmin-page .mig-v424-filter-row,.admin-page.mig-v463-superadmin-page .mig-v424-bulk-row,.admin-page.mig-v463-superadmin-page .mig-v424-role-row,.admin-page.mig-v463-superadmin-page .mig-v424-card-actions{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;}
.admin-page.mig-v463-superadmin-page .mig-v424-tabs button,.admin-page.mig-v463-superadmin-page .mig-v424-pill,.admin-page.mig-v463-superadmin-page .mig-v424-action{appearance:none!important;border:1px solid rgba(255,255,255,.075)!important;border-radius:12px!important;background:rgba(255,255,255,.06)!important;color:#e8eef5!important;min-height:34px!important;padding:7px 11px!important;font:700 13px/1.1 inherit!important;}
.admin-page.mig-v463-superadmin-page .mig-v424-tabs button.active,.admin-page.mig-v463-superadmin-page .mig-v424-pill.active{background:#3390ec!important;border-color:#3390ec!important;color:#fff!important;}
.admin-page.mig-v463-superadmin-page .mig-v424-action.danger,.admin-page.mig-v463-superadmin-page .mig-v424-card-actions .danger{border-color:rgba(255,120,120,.32)!important;color:#ffb2b2!important;background:rgba(255,83,83,.08)!important;}
.admin-page.mig-v463-superadmin-page .mig-v424-list{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(290px,1fr))!important;gap:12px!important;width:100%!important;}
.admin-page.mig-v463-superadmin-page .mig-v424-card-main{display:flex!important;align-items:flex-start!important;gap:12px!important;min-width:0!important;}
.admin-page.mig-v463-superadmin-page .mig-v424-card-body{min-width:0!important;display:flex!important;flex-direction:column!important;gap:8px!important;flex:1 1 auto!important;}
.admin-page.mig-v463-superadmin-page .mig-v424-user-head{display:flex!important;align-items:baseline!important;gap:6px!important;flex-wrap:wrap!important;}
.admin-page.mig-v463-superadmin-page .mig-v424-user-head strong{font-size:16px!important;line-height:1.15!important;color:#f4f8fd!important;font-weight:800!important;}
.admin-page.mig-v463-superadmin-page .mig-v424-user-head span,.admin-page.mig-v463-superadmin-page .mig-v424-meta{font-size:13px!important;line-height:1.28!important;color:rgba(170,185,202,.93)!important;}
.admin-page.mig-v463-superadmin-page .mig-v424-bio{font-size:14px!important;line-height:1.35!important;color:rgba(226,236,247,.92)!important;word-break:break-word!important;}
@media(max-width:900px){
  .chat-panel.mobile-open .admin-page.mig-v463-superadmin-page,.admin-page.mig-v463-superadmin-page{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;min-height:100dvh!important;border-radius:0!important;margin:0!important;padding:0!important;z-index:2147481200!important;}
  .admin-page.mig-v463-superadmin-page>.admin-page-head{flex:0 0 auto!important;min-height:calc(56px + env(safe-area-inset-top,0px))!important;height:calc(56px + env(safe-area-inset-top,0px))!important;padding:env(safe-area-inset-top,0px) 14px 0 18px!important;margin:0!important;border-radius:0!important;background:#0f1822!important;}
  .admin-page.mig-v463-superadmin-page>.mig-v463-superadmin-host>.mig-v424-scroll{padding:12px 14px calc(20px + env(safe-area-inset-bottom,0px))!important;background:#0f1822!important;}
  .admin-page.mig-v463-superadmin-page .mig-v424-list{grid-template-columns:1fr!important;gap:10px!important;}
  .admin-page.mig-v463-superadmin-page .mig-v424-info-grid{grid-template-columns:1fr 1fr!important;}
  .admin-page.mig-v463-superadmin-page .mig-v424-tabs,.admin-page.mig-v463-superadmin-page .mig-v424-filter-row,.admin-page.mig-v463-superadmin-page .mig-v424-bulk-row{overflow:auto!important;flex-wrap:nowrap!important;padding-bottom:2px!important;scrollbar-width:none!important;}
}


/* MIG WEB V468: Superadmin visual rebuild, call-history-style isolated page */
.admin-page.mig-v463-superadmin-page{
  background:var(--panel)!important;
  padding:0!important;
  overflow:hidden!important;
}
.admin-page.mig-v463-superadmin-page>.admin-page-head{
  display:none!important;
}
.admin-page.mig-v463-superadmin-page>.mig-v463-superadmin-host{
  position:absolute!important;
  inset:0!important;
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
  background:var(--panel)!important;
  color:var(--text)!important;
}
.admin-page.mig-v463-superadmin-page .mig-v468-superadmin-page{
  height:100%!important;
  min-height:0!important;
  overflow:auto!important;
  padding:12px 12px 20px!important;
  box-sizing:border-box!important;
  background:var(--panel)!important;
}
.admin-page.mig-v463-superadmin-page .mig-v468-appbar{
  position:sticky!important;
  top:0!important;
  z-index:10!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  max-width:920px!important;
  margin:0 auto 10px!important;
  padding:10px 12px!important;
  min-height:52px!important;
  border-radius:18px!important;
  background:#181c24eb!important;
  border:1px solid rgba(255,255,255,.055)!important;
  -webkit-backdrop-filter:saturate(140%) blur(12px)!important;
  backdrop-filter:saturate(140%) blur(12px)!important;
  box-sizing:border-box!important;
}
.admin-page.mig-v463-superadmin-page .mig-v468-back{
  width:38px!important;
  height:38px!important;
  flex:0 0 38px!important;
  border:0!important;
  border-radius:999px!important;
  display:grid!important;
  place-items:center!important;
  background:rgba(255,255,255,.08)!important;
  color:#eef5fd!important;
  font:700 30px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  cursor:pointer!important;
}
.admin-page.mig-v463-superadmin-page .mig-v468-title-wrap{
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  gap:2px!important;
}
.admin-page.mig-v463-superadmin-page .mig-v468-title{
  font-size:20px!important;
  line-height:1.15!important;
  font-weight:800!important;
  color:#f4f8fd!important;
}
.admin-page.mig-v463-superadmin-page .mig-v468-subtitle{
  font-size:13px!important;
  line-height:1.2!important;
  color:var(--muted)!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.admin-page.mig-v463-superadmin-page .mig-v468-content{
  max-width:920px!important;
  margin:0 auto!important;
  padding:0!important;
  width:100%!important;
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
}
.admin-page.mig-v463-superadmin-page .mig-v424-section,
.admin-page.mig-v463-superadmin-page .mig-v424-info,
.admin-page.mig-v463-superadmin-page .mig-v415-loading,
.admin-page.mig-v463-superadmin-page .mig-v415-error{
  border-radius:18px!important;
  background:rgba(255,255,255,.06)!important;
  border:1px solid rgba(255,255,255,.055)!important;
  padding:12px 14px!important;
}
.admin-page.mig-v463-superadmin-page .mig-v424-info-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(120px,1fr))!important;
  gap:8px!important;
}
.admin-page.mig-v463-superadmin-page .mig-v424-info-grid span{
  min-height:32px!important;
  padding:7px 10px!important;
  border-radius:12px!important;
  background:rgba(255,255,255,.055)!important;
  font-size:13px!important;
}
.admin-page.mig-v463-superadmin-page .mig-v424-search input{
  height:44px!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.06)!important;
  border:1px solid rgba(255,255,255,.055)!important;
}
.admin-page.mig-v463-superadmin-page .mig-v424-tabs,
.admin-page.mig-v463-superadmin-page .mig-v424-filter-row,
.admin-page.mig-v463-superadmin-page .mig-v424-bulk-row{
  display:flex!important;
  gap:8px!important;
  flex-wrap:wrap!important;
  align-items:center!important;
}
.admin-page.mig-v463-superadmin-page .mig-v424-tabs button,
.admin-page.mig-v463-superadmin-page .mig-v424-pill,
.admin-page.mig-v463-superadmin-page .mig-v424-action{
  border:1px solid rgba(255,255,255,.075)!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.07)!important;
  color:#e8eef5!important;
  min-height:38px!important;
  padding:8px 13px!important;
  font:700 14px/1.1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  cursor:pointer!important;
}
.admin-page.mig-v463-superadmin-page .mig-v424-tabs button.active,
.admin-page.mig-v463-superadmin-page .mig-v424-pill.active{
  background:#3390ec!important;
  border-color:#3390ec!important;
  color:#fff!important;
}
.admin-page.mig-v463-superadmin-page .mig-v424-action.danger,
.admin-page.mig-v463-superadmin-page .mig-v424-card-actions .danger{
  border-color:rgba(255,120,120,.32)!important;
  color:#ffb2b2!important;
  background:rgba(255,83,83,.08)!important;
}
.admin-page.mig-v463-superadmin-page .mig-v424-list{
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
  width:100%!important;
}
.admin-page.mig-v463-superadmin-page .mig-v424-user-card{
  display:block!important;
  width:100%!important;
  border:0!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.06)!important;
  padding:12px 14px!important;
  box-sizing:border-box!important;
  transition:background .15s ease!important;
}
.admin-page.mig-v463-superadmin-page .mig-v424-user-card:hover{background:rgba(255,255,255,.09)!important;}
.admin-page.mig-v463-superadmin-page .mig-v424-card-main{
  display:flex!important;
  align-items:flex-start!important;
  gap:12px!important;
}
.admin-page.mig-v463-superadmin-page .mig-v424-card-main>input[type=checkbox]{
  width:18px!important;height:18px!important;margin-top:5px!important;accent-color:#3390ec!important;
}
.admin-page.mig-v463-superadmin-page .mig-v424-card-body{
  min-width:0!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:5px 12px!important;
  align-items:center!important;
  width:100%!important;
}
.admin-page.mig-v463-superadmin-page .mig-v424-user-head,
.admin-page.mig-v463-superadmin-page .mig-v424-meta,
.admin-page.mig-v463-superadmin-page .mig-v424-bio{
  grid-column:1!important;
}
.admin-page.mig-v463-superadmin-page .mig-v424-role-row,
.admin-page.mig-v463-superadmin-page .mig-v424-card-actions{
  grid-column:2!important;
  display:flex!important;
  gap:8px!important;
  flex-wrap:wrap!important;
  justify-content:flex-end!important;
}
.admin-page.mig-v463-superadmin-page .mig-v424-user-head strong{
  font-size:16px!important;
  font-weight:800!important;
  color:#f4f8fd!important;
}
.admin-page.mig-v463-superadmin-page .mig-v424-user-head span,
.admin-page.mig-v463-superadmin-page .mig-v424-meta{
  color:var(--muted)!important;
  font-size:13px!important;
}
.admin-page.mig-v463-superadmin-page .mig-v424-bio{
  color:#dbe8f4!important;
  font-size:14px!important;
  line-height:1.35!important;
}
.admin-page.mig-v463-superadmin-page .mig-v467-chat-head,
.admin-page.mig-v463-superadmin-page .mig-v467-message{
  background:rgba(255,255,255,.06)!important;
  border:1px solid rgba(255,255,255,.055)!important;
}
@media(max-width:760px){
  .chat-panel.mobile-open .admin-page.mig-v463-superadmin-page,
  .admin-page.mig-v463-superadmin-page{
    position:fixed!important;
    inset:0!important;
    z-index:2147481200!important;
    height:100dvh!important;
    width:100vw!important;
    border-radius:0!important;
  }
  .admin-page.mig-v463-superadmin-page .mig-v468-superadmin-page{
    padding:calc(8px + env(safe-area-inset-top,0px)) 8px calc(18px + env(safe-area-inset-bottom,0px))!important;
  }
  .admin-page.mig-v463-superadmin-page .mig-v468-appbar{
    margin-bottom:8px!important;
    border-radius:16px!important;
  }
  .admin-page.mig-v463-superadmin-page .mig-v468-subtitle{display:none!important;}
  .admin-page.mig-v463-superadmin-page .mig-v424-info-grid{grid-template-columns:1fr 1fr!important;}
  .admin-page.mig-v463-superadmin-page .mig-v424-tabs,
  .admin-page.mig-v463-superadmin-page .mig-v424-filter-row,
  .admin-page.mig-v463-superadmin-page .mig-v424-bulk-row{
    overflow:auto!important;
    flex-wrap:nowrap!important;
    scrollbar-width:none!important;
    padding-bottom:2px!important;
  }
  .admin-page.mig-v463-superadmin-page .mig-v424-tabs::-webkit-scrollbar,
  .admin-page.mig-v463-superadmin-page .mig-v424-filter-row::-webkit-scrollbar,
  .admin-page.mig-v463-superadmin-page .mig-v424-bulk-row::-webkit-scrollbar{display:none!important;}
  .admin-page.mig-v463-superadmin-page .mig-v424-card-body{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:7px!important;
  }
  .admin-page.mig-v463-superadmin-page .mig-v424-role-row,
  .admin-page.mig-v463-superadmin-page .mig-v424-card-actions{
    justify-content:flex-start!important;
  }
}


/* MIG WEB V469: Superadmin real isolated overlay. No empty-chat-card/call-history/admin-card inheritance. */
body.mig-v469-superadmin-open .admin-page.mig-v463-superadmin-page,
body.mig-v469-superadmin-open .admin-page.mig-v463-superadmin-page > .admin-page-head,
body.mig-v469-superadmin-open .admin-page.mig-v463-superadmin-page > .admin-page-card,
body.mig-v469-superadmin-open .admin-page.mig-v463-superadmin-page > .mig-v463-superadmin-host{
  display:none!important; visibility:hidden!important; pointer-events:none!important;
}
body.mig-v469-superadmin-open .empty-chat-card.glass,
body.mig-v469-superadmin-open .call-history-appbar.glass{
  contain:layout style!important;
}
#mig-v469-superadmin-root{position:fixed;z-index:2147482800;top:0;right:0;bottom:0;left:384px;background:#0f1822;color:#eaf2ff;font-family:inherit;display:flex;flex-direction:column;overflow:hidden;}
#mig-v469-superadmin-root *{box-sizing:border-box;}
#mig-v469-superadmin-root .sa-appbar{height:72px;min-height:72px;display:flex;align-items:center;gap:12px;padding:0 22px;border-bottom:1px solid rgba(255,255,255,.06);background:rgba(18,29,41,.94);}
#mig-v469-superadmin-root .sa-close{width:42px;height:42px;border:0;border-radius:50%;background:rgba(255,255,255,.07);color:#eaf2ff;font-size:26px;font-weight:700;display:flex;align-items:center;justify-content:center;cursor:pointer;}
#mig-v469-superadmin-root .sa-title{font-size:22px;line-height:1.05;font-weight:900;letter-spacing:-.02em;}
#mig-v469-superadmin-root .sa-subtitle{font-size:13px;color:#91a2b7;margin-top:3px;}
#mig-v469-superadmin-root .sa-scroll{flex:1 1 auto;overflow:auto;padding:18px 22px 28px;display:flex;flex-direction:column;gap:14px;}
#mig-v469-superadmin-root .sa-card{border:1px solid rgba(148,163,184,.12);border-radius:18px;background:rgba(28,42,57,.72);box-shadow:0 18px 50px rgba(0,0,0,.18);}
#mig-v469-superadmin-root .sa-stats{padding:14px;display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:10px;}
#mig-v469-superadmin-root .sa-stat{min-height:44px;border-radius:13px;background:rgba(255,255,255,.045);display:flex;align-items:center;padding:0 13px;color:#dce8f6;font-weight:650;}
#mig-v469-superadmin-root .sa-search{height:48px;width:100%;border:1px solid rgba(148,163,184,.10);border-radius:16px;background:rgba(28,42,57,.72);color:#eaf2ff;padding:0 16px;font:600 15px/1.2 inherit;outline:none;}
#mig-v469-superadmin-root .sa-tabs,#mig-v469-superadmin-root .sa-filters{display:flex;align-items:center;gap:9px;flex-wrap:wrap;}
#mig-v469-superadmin-root .sa-btn{appearance:none;border:1px solid rgba(148,163,184,.13);border-radius:14px;background:rgba(255,255,255,.055);color:#eaf2ff;min-height:38px;padding:9px 14px;font:800 14px/1 inherit;cursor:pointer;}
#mig-v469-superadmin-root .sa-btn.active{background:#3390ec;border-color:#3390ec;color:#fff;}
#mig-v469-superadmin-root .sa-btn.danger{background:rgba(255,86,86,.09);border-color:rgba(255,120,120,.28);color:#ffb2b2;}
#mig-v469-superadmin-root .sa-list{display:flex;flex-direction:column;gap:8px;}
#mig-v469-superadmin-root .sa-row{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:12px;align-items:center;min-height:72px;padding:12px 14px;border:1px solid rgba(148,163,184,.10);border-radius:17px;background:rgba(28,42,57,.62);}
#mig-v469-superadmin-root .sa-row:hover{background:rgba(36,52,68,.74);}
#mig-v469-superadmin-root .sa-check{width:19px;height:19px;accent-color:#3390ec;}
#mig-v469-superadmin-root .sa-name{font-weight:900;font-size:16px;color:#f2f7ff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
#mig-v469-superadmin-root .sa-meta{font-size:13px;color:#9fb0c5;margin-top:3px;}
#mig-v469-superadmin-root .sa-bio{font-size:14px;color:#d7e2ef;margin-top:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
#mig-v469-superadmin-root .sa-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;}
#mig-v469-superadmin-root .sa-actions .sa-btn{min-height:34px;padding:8px 11px;font-size:13px;}
#mig-v469-superadmin-root .sa-error{padding:12px 14px;border-radius:14px;background:rgba(255,70,70,.10);border:1px solid rgba(255,90,90,.20);color:#ffc6c6;}
#mig-v469-superadmin-root .sa-empty{padding:18px;border-radius:16px;background:rgba(255,255,255,.035);color:#9fb0c5;}
#mig-v469-superadmin-root .sa-chat-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;}
#mig-v469-superadmin-root .sa-chat-title{font-size:20px;font-weight:900;}
#mig-v469-superadmin-root .sa-settings{display:grid;grid-template-columns:minmax(280px,460px) minmax(320px,1fr);gap:14px;align-items:start;}
#mig-v469-superadmin-root .sa-field{display:flex;flex-direction:column;gap:7px;margin-bottom:11px;color:#9fb0c5;font-size:13px;font-weight:700;}
#mig-v469-superadmin-root .sa-input,#mig-v469-superadmin-root .sa-textarea{width:100%;border:1px solid rgba(148,163,184,.10);border-radius:13px;background:rgba(9,18,29,.35);color:#eaf2ff;padding:10px 12px;font:600 14px/1.25 inherit;outline:none;}
#mig-v469-superadmin-root .sa-textarea{min-height:88px;resize:vertical;}
#mig-v469-superadmin-root .sa-message{max-width:760px;border-radius:16px;background:rgba(28,42,57,.72);border:1px solid rgba(148,163,184,.10);padding:10px 12px;}
#mig-v469-superadmin-root .sa-message-meta{font-size:12px;color:#91a2b7;margin-bottom:5px;}
#mig-v469-superadmin-root .sa-message-body{white-space:pre-wrap;line-height:1.35;color:#eef6ff;}
@media(max-width:900px){#mig-v469-superadmin-root{left:0;}#mig-v469-superadmin-root .sa-stats{grid-template-columns:repeat(2,minmax(0,1fr));}#mig-v469-superadmin-root .sa-settings{grid-template-columns:1fr;}#mig-v469-superadmin-root .sa-row{grid-template-columns:24px minmax(0,1fr);align-items:flex-start;}#mig-v469-superadmin-root .sa-actions{grid-column:2;justify-content:flex-start;}#mig-v469-superadmin-root .sa-appbar{height:calc(60px + env(safe-area-inset-top,0px));min-height:calc(60px + env(safe-area-inset-top,0px));padding-top:env(safe-area-inset-top,0px);}#mig-v469-superadmin-root .sa-scroll{padding:12px 12px calc(18px + env(safe-area-inset-bottom,0px));}}

/* MIG WEB V470: Superadmin full chat page and group/channel settings modal. */
#mig-v469-superadmin-root .sa-chat-page{height:100%;min-height:0;display:flex;flex-direction:column;gap:12px;}
#mig-v469-superadmin-root .sa-chat-appbar{min-height:70px;display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid rgba(148,163,184,.12);border-radius:18px;background:rgba(28,42,57,.72);}
#mig-v469-superadmin-root .sa-round{width:42px;height:42px;border:0;border-radius:50%;background:rgba(255,255,255,.07);color:#eaf2ff;font-size:26px;font-weight:900;display:flex;align-items:center;justify-content:center;cursor:pointer;}
#mig-v469-superadmin-root .sa-avatar,#mig-v469-superadmin-root .sa-member-avatar{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#3390ec,#6aa7ff);color:#fff;font-weight:900;flex:0 0 auto;}
#mig-v469-superadmin-root .sa-chat-titlebox{min-width:0;flex:1 1 auto;}
#mig-v469-superadmin-root .sa-chat-layout{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:12px;}
#mig-v469-superadmin-root .sa-messages-pane{min-height:0;overflow:auto;padding:18px;border:1px solid rgba(148,163,184,.10);border-radius:18px;background:rgba(9,18,29,.32);display:flex;flex-direction:column;gap:10px;}
#mig-v469-superadmin-root .sa-side-pane{min-height:0;overflow:auto;border:1px solid rgba(148,163,184,.10);border-radius:18px;background:rgba(28,42,57,.55);padding:12px;}
#mig-v469-superadmin-root .sa-side-title{font-weight:900;color:#f2f7ff;margin-bottom:10px;}
#mig-v469-superadmin-root .sa-member{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px;border-radius:14px;background:rgba(255,255,255,.035);margin-bottom:8px;}
#mig-v469-superadmin-root .sa-member-avatar{width:38px;height:38px;font-size:14px;}
#mig-v469-superadmin-root .sa-bubble{max-width:min(720px,86%);padding:10px 12px;border-radius:18px;background:rgba(28,42,57,.82);border:1px solid rgba(148,163,184,.10);align-self:flex-start;}
#mig-v469-superadmin-root .sa-message-meta{display:flex;gap:8px;align-items:center;color:#91a2b7;font-size:12px;margin-bottom:5px;}
#mig-v469-superadmin-root .sa-message-body{white-space:pre-wrap;line-height:1.38;color:#eef6ff;}
#mig-v469-superadmin-root .sa-chat-footer{min-height:54px;display:flex;align-items:center;border:1px solid rgba(148,163,184,.10);border-radius:18px;background:rgba(28,42,57,.55);padding:10px 14px;}
#mig-v469-superadmin-root .sa-readonly{width:100%;border-radius:14px;background:rgba(255,255,255,.045);color:#9fb0c5;padding:11px 14px;font-weight:650;}
#mig-v469-superadmin-root .sa-modal-backdrop{position:absolute;inset:0;z-index:20;background:rgba(2,8,15,.62);backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;padding:24px;}
#mig-v469-superadmin-root .sa-modal{width:min(920px,96vw);max-height:min(760px,92vh);display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(148,163,184,.16);border-radius:24px;background:#121c27;box-shadow:0 26px 90px rgba(0,0,0,.45);}
#mig-v469-superadmin-root .sa-modal-head{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid rgba(148,163,184,.10);}
#mig-v469-superadmin-root .sa-modal-title{font-size:22px;font-weight:900;color:#f2f7ff;}
#mig-v469-superadmin-root .sa-close.small{width:40px;height:40px;font-size:25px;}
#mig-v469-superadmin-root .sa-modal-body{overflow:auto;padding:16px;display:grid;grid-template-columns:minmax(280px,420px) minmax(0,1fr);gap:14px;}
#mig-v469-superadmin-root .sa-modal-section{padding:14px;}
#mig-v469-superadmin-root .sa-modal-members{display:flex;flex-direction:column;gap:8px;}
#mig-v469-superadmin-root .modal-actions{justify-content:flex-start;}
@media(max-width:900px){#mig-v469-superadmin-root .sa-chat-layout{grid-template-columns:1fr;}#mig-v469-superadmin-root .sa-side-pane{display:none;}#mig-v469-superadmin-root .sa-modal-backdrop{padding:0;align-items:stretch;}#mig-v469-superadmin-root .sa-modal{width:100vw;max-height:none;height:100%;border-radius:0;}#mig-v469-superadmin-root .sa-modal-body{grid-template-columns:1fr;padding:12px;}#mig-v469-superadmin-root .sa-chat-appbar{border-radius:0 0 18px 18px;}#mig-v469-superadmin-root .sa-bubble{max-width:94%;}}


/* ===== mig-web-v478-group-settings-tabs-click-restore.css ===== */
.mig-v275-screen-root{position:fixed!important;inset:0!important;z-index:2147483200!important;pointer-events:none!important;display:block!important}.mig-v275-screen-root.open{pointer-events:auto!important}.mig-v275-backdrop{position:absolute!important;inset:0!important;background:rgba(0,0,0,.48)!important;backdrop-filter:blur(6px)!important}.mig-v275-sheet{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-48%) scale(.98)!important;width:min(680px,calc(100vw - 28px))!important;max-height:min(760px,calc(100vh - 36px))!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;border-radius:22px!important;background:#172433!important;border:1px solid rgba(148,163,184,.22)!important;box-shadow:0 28px 80px rgba(0,0,0,.55)!important;opacity:0!important;transition:opacity .16s ease,transform .16s ease!important;color:#edf6ff!important}.mig-v275-screen-root.open .mig-v275-sheet{opacity:1!important;transform:translate(-50%,-50%) scale(1)!important}.mig-v275-sheet header{height:58px!important;display:flex!important;align-items:center!important;gap:12px!important;padding:0 14px!important;border-bottom:1px solid rgba(148,163,184,.13)!important;background:rgba(14,24,35,.72)!important}.mig-v275-sheet h2{margin:0!important;flex:1!important;text-align:center!important;font-size:20px!important;font-weight:900!important;color:#eef7ff!important}.mig-v275-back,.mig-v275-done{width:38px!important;height:38px!important;border:0!important;border-radius:50%!important;background:rgba(43,59,76,.75)!important;color:#8fd2ff!important;font-size:24px!important;font-weight:900!important;display:flex!important;align-items:center!important;justify-content:center!important;cursor:pointer!important}.mig-v275-body{padding:14px!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important}.mig-v275-section{border-radius:18px!important;background:rgba(21,33,47,.74)!important;border:1px solid rgba(148,163,184,.12)!important;padding:10px!important;margin:0 0 12px!important}.mig-v275-section h3{margin:4px 6px 10px!important;color:#8fd2ff!important;font-size:15px!important}.mig-v275-row,.mig-v275-switchrow,.mig-v275-input{width:100%!important;box-sizing:border-box!important;border:0!important;border-radius:15px!important;background:rgba(30,45,62,.82)!important;color:#eef7ff!important;margin:8px 0!important;padding:12px!important;display:flex!important;align-items:center!important;gap:12px!important;text-align:left!important}.mig-v275-row{cursor:pointer!important}.mig-v275-row .i{width:34px!important;height:34px!important;border-radius:50%!important;background:rgba(61,139,220,.22)!important;display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 34px!important}.mig-v275-row .m{display:flex!important;flex-direction:column!important;gap:2px!important;flex:1!important}.mig-v275-row b,.mig-v275-switchrow b{font-size:15px!important;color:#f2f8ff!important}.mig-v275-row small,.mig-v275-switchrow small{font-size:13px!important;color:#8fa3b8!important}.mig-v275-row .chev{color:#8fd2ff!important;font-size:24px!important}.mig-v275-input{flex-direction:column!important;align-items:stretch!important}.mig-v275-input span{font-size:13px!important;color:#8fd2ff!important}.mig-v275-input input,.mig-v275-input textarea{width:100%!important;box-sizing:border-box!important;border:1px solid rgba(148,163,184,.14)!important;background:#101b29!important;color:#edf6ff!important;border-radius:12px!important;padding:11px 12px!important;font:inherit!important;outline:none!important}.mig-v275-input textarea{min-height:110px!important;resize:vertical!important}.mig-v275-linkbox,.mig-v275-loading,.mig-v275-error{padding:12px!important;border-radius:14px!important;background:#101b29!important;color:#b9c8da!important;word-break:break-word!important}.mig-v275-error{color:#ffb4b4!important}.mig-v275-toast{position:fixed!important;left:50%!important;bottom:36px!important;transform:translate(-50%,12px)!important;opacity:0!important;z-index:2147483300!important;background:rgba(17,27,40,.96)!important;border:1px solid rgba(148,163,184,.2)!important;color:#eef7ff!important;border-radius:999px!important;padding:10px 16px!important;box-shadow:0 12px 36px rgba(0,0,0,.42)!important;transition:opacity .18s ease,transform .18s ease!important;text-align:center!important;display:flex!important;align-items:center!important;justify-content:center!important}.mig-v275-toast.show{opacity:1!important;transform:translate(-50%,0)!important}@media(max-width:760px){.mig-v275-sheet{left:0!important;right:0!important;bottom:0!important;top:auto!important;width:100%!important;max-height:calc(100dvh - 22px)!important;transform:translateY(18px)!important;border-radius:22px 22px 0 0!important}.mig-v275-screen-root.open .mig-v275-sheet{transform:translateY(0)!important}.mig-v275-sheet h2{font-size:18px!important}.mig-v275-body{padding:12px!important}}

/* ===== MIG WEB v483: lightweight group settings modal styles ===== */
.mig-v483-settings-root{position:fixed!important;inset:0!important;z-index:2147483500!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:18px!important;color:#e7eef7!important;font-family:inherit!important}.mig-v483-backdrop{position:absolute!important;inset:0!important;background:rgba(0,0,0,.46)!important;backdrop-filter:blur(6px)!important}.mig-v483-card{position:relative!important;width:min(440px,calc(100vw - 32px))!important;max-height:min(720px,calc(100dvh - 40px))!important;overflow:hidden!important;border-radius:22px!important;background:#17212b!important;border:1px solid rgba(148,163,184,.18)!important;box-shadow:0 24px 80px rgba(0,0,0,.5)!important;display:flex!important;flex-direction:column!important}.mig-v483-head{height:58px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0 54px!important;border-bottom:1px solid rgba(255,255,255,.08)!important;background:rgba(255,255,255,.03)!important}.mig-v483-head h2{margin:0!important;font-size:17px!important;font-weight:800!important;letter-spacing:.1px!important}.mig-v483-close{position:absolute!important;right:12px!important;top:10px!important;width:38px!important;height:38px!important;border:0!important;border-radius:50%!important;background:transparent!important;color:#aebdca!important;font-size:28px!important;line-height:38px!important;display:grid!important;place-items:center!important;cursor:pointer!important}.mig-v483-close:hover{background:rgba(255,255,255,.08)!important;color:#fff!important}.mig-v483-list{overflow:auto!important;-webkit-overflow-scrolling:touch!important;padding:8px!important}.mig-v483-row{width:100%!important;min-height:62px!important;border:0!important;border-radius:14px!important;background:transparent!important;color:inherit!important;display:grid!important;grid-template-columns:44px 1fr 22px!important;align-items:center!important;text-align:left!important;padding:8px 10px!important;cursor:pointer!important}.mig-v483-row:hover{background:rgba(255,255,255,.065)!important}.mig-v483-ico{width:34px!important;height:34px!important;border-radius:12px!important;background:rgba(51,144,236,.16)!important;display:grid!important;place-items:center!important;font-size:18px!important}.mig-v483-main{display:flex!important;flex-direction:column!important;gap:3px!important;min-width:0!important}.mig-v483-main b{font-size:15px!important;line-height:1.2!important;font-weight:800!important;color:#eef6ff!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.mig-v483-main small{font-size:12px!important;line-height:1.25!important;font-weight:500!important;color:#91a4b8!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.mig-v483-chev{font-size:24px!important;line-height:1!important;color:#7c93a8!important;text-align:right!important}@media(max-width:760px){.mig-v483-settings-root{align-items:flex-end!important;padding:8px!important}.mig-v483-card{width:100%!important;max-height:calc(100dvh - 18px)!important;border-radius:22px 22px 16px 16px!important}.mig-v483-head{height:56px!important}.mig-v483-list{padding:8px 8px 12px!important}.mig-v483-row{min-height:60px!important}}

/* v558: deterministic chat opening, no anchor/smooth jitter */
.message-list,.message-list *{scroll-margin:0!important}.message-list{scroll-behavior:auto!important;overflow-anchor:none!important}.message-list.mig-v558-opened{scroll-behavior:auto!important;overflow-anchor:none!important}

/* v564 canonical chat opening: hide transient top position until the first unread/last-message anchor is placed */
.message-list.mig-v564-opening-lock{visibility:hidden!important;opacity:0!important;pointer-events:none!important;transition:none!important;scroll-behavior:auto!important;overflow-anchor:none!important;}
.message-list.mig-v564-positioned{scroll-behavior:auto!important;overflow-anchor:none!important;}

/* MIG v674: notification menu must be a floating popup, not an inline block */
.mig-peer-profile-screen{position:relative!important;}
.mig-peer-profile-notify-menu{
  position:absolute!important;
  top:176px!important;
  right:14px!important;
  left:auto!important;
  width:min(292px,calc(100% - 28px))!important;
  margin:0!important;
  padding:6px!important;
  z-index:90!important;
  background:#172431!important;
  border:1px solid rgba(139,160,182,.22)!important;
  border-radius:15px!important;
  overflow:hidden!important;
  box-shadow:0 18px 48px rgba(0,0,0,.45)!important;
  transform-origin:top right!important;
}
.mig-peer-profile-notify-menu[hidden]{display:none!important;}
.mig-peer-profile-notify-menu::before{
  content:""!important;
  position:absolute!important;
  top:-7px!important;
  right:26px!important;
  width:14px!important;
  height:14px!important;
  background:#172431!important;
  border-left:1px solid rgba(139,160,182,.22)!important;
  border-top:1px solid rgba(139,160,182,.22)!important;
  transform:rotate(45deg)!important;
}
.mig-peer-profile-notify-menu button{
  position:relative!important;
  z-index:1!important;
  width:100%!important;
  min-height:42px!important;
  padding:10px 12px!important;
  border:0!important;
  border-radius:10px!important;
  background:transparent!important;
  color:#eef6ff!important;
  font-size:14px!important;
  line-height:1.25!important;
  font-weight:600!important;
  text-align:left!important;
  cursor:pointer!important;
  white-space:normal!important;
  border-bottom:0!important;
}
.mig-peer-profile-notify-menu button+button{margin-top:2px!important;}
.mig-peer-profile-notify-menu button:hover,
.mig-peer-profile-notify-menu button:focus-visible{background:rgba(255,255,255,.07)!important;outline:0!important;}
.mig-peer-profile-notify-menu .danger{color:#ff6b6b!important;}
@media (max-width:900px){
  .mig-peer-profile-notify-menu{
    top:174px!important;
    right:max(12px,env(safe-area-inset-right))!important;
    width:min(286px,calc(100% - 24px))!important;
  }
}

/* ===== MIG WEB v685: wheel-scrollable tab strips in peer/group profiles ===== */
.mig-peer-profile-tabs-scroll,
.mig-peer-profile-tabs,
.mig-profile-tabs,
.mig-group-profile-tabs,
.group-profile-tabs,
.mig-v415-tabs,
.mig-v424-tabs{
  overflow-x:auto!important;
  overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior-x:contain!important;
  overscroll-behavior-y:contain!important;
  scroll-behavior:auto!important;
}
.mig-peer-profile-tabs-scroll > *,
.mig-peer-profile-tabs > *,
.mig-profile-tabs > *,
.mig-group-profile-tabs > *,
.group-profile-tabs > *,
.mig-v415-tabs > *,
.mig-v424-tabs > *{
  flex-shrink:0!important;
}

/* MIG WEB v687: hide chat/group/channel compose FAB while call UI is active */
html.mig-call-ui-active .chatlist-compose-fab-wrap,
body.mig-call-ui-active .chatlist-compose-fab-wrap,
body:has(.call-screen) .chatlist-compose-fab-wrap,
body:has(.call-overlay) .chatlist-compose-fab-wrap,
body:has(.call-card) .chatlist-compose-fab-wrap,
body:has(.call-screen-mini) .chatlist-compose-fab-wrap,
body:has(.call-overlay-floating) .chatlist-compose-fab-wrap{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
/* MIG v733 Telegram-style forum layout: topics are rendered INSIDE the existing left chat-list/sidebar, not as a third column */
.sidebar{position:relative!important;overflow:hidden!important;}
.mig-tg-forum-column{
  position:absolute!important;
  inset:0!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  height:auto!important;
  background:#17212b!important;
  color:#f4f4f5!important;
  border-right:0!important;
  z-index:45!important;
  display:none!important;
  flex-direction:column!important;
  box-shadow:none!important;
  font-family:inherit!important;
  overflow:hidden!important;
}
.mig-tg-forum-column.is-open{display:flex!important;}
.mig-tg-forum-mode .chat-panel{margin-left:0!important;width:auto!important;}
.mig-tg-forum-head{height:58px!important;display:flex!important;align-items:center!important;gap:12px!important;padding:0 12px!important;border-bottom:1px solid rgba(255,255,255,.08)!important;background:#17212b!important;box-sizing:border-box!important;flex:0 0 auto!important;}
.mig-tg-forum-back,.mig-tg-forum-search{width:38px!important;height:38px!important;border:0!important;border-radius:999px!important;background:transparent!important;color:#d8d8d8!important;font-size:25px!important;cursor:pointer!important;flex:0 0 auto!important;display:grid!important;place-items:center!important;}
.mig-tg-forum-back:hover,.mig-tg-forum-search:hover{background:rgba(255,255,255,.08)!important;}
.mig-tg-forum-titlebox{min-width:0!important;flex:1!important;}
.mig-tg-forum-title{font-weight:700!important;font-size:16px!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.mig-tg-forum-sub{font-size:13px!important;color:#8f9fb0!important;margin-top:2px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.mig-tg-forum-list{overflow:auto!important;-webkit-overflow-scrolling:touch!important;padding:6px 8px 12px!important;flex:1 1 auto!important;min-height:0!important;}
.mig-tg-topic-row{width:100%!important;min-height:64px!important;border:0!important;background:transparent!important;color:inherit!important;display:grid!important;grid-template-columns:48px minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;text-align:left!important;padding:7px 8px!important;cursor:pointer!important;border-radius:12px!important;box-sizing:border-box!important;margin:0 0 2px!important;}
.mig-tg-topic-row:hover{background:rgba(255,255,255,.055)!important;}
.mig-tg-topic-row.is-active{background:#7668d6!important;color:#fff!important;}
.mig-tg-topic-row.is-active .mig-tg-topic-preview,.mig-tg-topic-row.is-active .mig-tg-topic-line em{color:rgba(255,255,255,.82)!important;}
.mig-tg-topic-avatar{width:44px!important;height:44px!important;border-radius:999px!important;background:linear-gradient(135deg,#3488df,#7a5cff)!important;display:grid!important;place-items:center!important;font-size:21px!important;font-weight:800!important;color:white!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.22)!important;}
.mig-tg-topic-main{min-width:0!important;display:flex!important;flex-direction:column!important;gap:4px!important;}
.mig-tg-topic-line{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important;}
.mig-tg-topic-line b{font-size:15px!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;min-width:0!important;}
.mig-tg-topic-line em{margin-left:auto!important;font-style:normal!important;font-size:12px!important;color:#8f9fb0!important;flex:0 0 auto!important;}
.mig-tg-topic-preview{font-size:13px!important;line-height:1.25!important;color:#8f9fb0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important;}
.mig-tg-topic-badges{display:flex!important;align-items:center!important;gap:5px!important;min-width:20px!important;flex:0 0 auto!important;}
.mig-tg-topic-unread{min-width:22px!important;height:22px!important;border-radius:999px!important;background:#8b8b8b!important;color:#fff!important;display:grid!important;place-items:center!important;font-size:12px!important;font-weight:700!important;padding:0 6px!important;}
.mig-tg-topic-pin,.mig-tg-topic-muted{font-size:13px!important;color:#c8c8c8!important;}
.mig-tg-topic-closed{font-size:11px!important;border-radius:999px!important;padding:2px 6px!important;background:rgba(255,255,255,.09)!important;color:#bbb!important;}
.mig-tg-topic-empty{padding:34px 18px!important;color:#8f9fb0!important;text-align:center!important;}
.mig-tg-topic-skeleton{height:52px!important;margin:8px 4px!important;border-radius:14px!important;background:linear-gradient(90deg,rgba(255,255,255,.05),rgba(255,255,255,.11),rgba(255,255,255,.05))!important;background-size:220% 100%!important;animation:migTgSk 1.2s linear infinite!important;}
@keyframes migTgSk{to{background-position:-220% 0}}
.mig-tg-topic-back-inline{width:40px!important;height:40px!important;margin-right:4px!important;border:0!important;border-radius:999px!important;background:transparent!important;color:#e7e7e7!important;font-size:31px!important;line-height:1!important;cursor:pointer!important;}
.mig-tg-topic-back-inline:hover{background:rgba(255,255,255,.08)!important;}
@media(min-width:900px){
  .mig-tg-forum-mode .sidebar > .sidebar-top,
  .mig-tg-forum-mode .sidebar > .chat-list-scroll,
  .mig-tg-forum-mode .sidebar > .chat-list,
  .mig-tg-forum-mode .sidebar > .dialogs-list{visibility:hidden!important;pointer-events:none!important;}
}
@media(max-width:899px){
  .mig-tg-forum-column{position:fixed!important;left:0!important;right:0!important;top:0!important;bottom:0!important;width:100%!important;z-index:1000!important;padding-top:env(safe-area-inset-top)!important;}
  .mig-tg-forum-mode .chat-panel{margin-left:0!important;width:100%!important;}
  .mig-tg-topic-open .mig-tg-forum-column{transform:translateX(-100%)!important;transition:transform .22s ease!important;}
  .mig-tg-forum-column{transition:transform .22s ease!important;}
  .mig-tg-topic-row{min-height:68px!important;}
  .mig-tg-topic-preview{max-width:70vw!important;}
}/* MIG v734 Telegram-style topic profile panel */
.mig-tg-forum-titlebox{cursor:pointer!important;border-radius:10px!important;padding:4px 6px!important;margin-left:-6px!important;}
.mig-tg-forum-titlebox:hover{background:rgba(255,255,255,.07)!important;}
.mig-topic-profile-panel{position:fixed!important;right:0!important;top:0!important;bottom:0!important;width:360px!important;max-width:42vw!important;background:#111111!important;color:#f2f2f2!important;z-index:900!important;box-shadow:-1px 0 0 rgba(255,255,255,.08),-14px 0 30px rgba(0,0,0,.22)!important;display:none!important;flex-direction:column!important;font-family:inherit!important;overflow:hidden!important;}
.mig-topic-profile-panel.is-open{display:flex!important;}
.mig-topic-profile-open .chat-panel{padding-right:min(360px,42vw)!important;box-sizing:border-box!important;}
.mig-topic-profile-head{height:58px!important;display:flex!important;align-items:center!important;gap:12px!important;padding:0 14px!important;background:#222!important;border-bottom:1px solid rgba(255,255,255,.05)!important;flex:0 0 auto!important;}
.mig-topic-profile-close,.mig-topic-profile-edit,.mig-topic-profile-save{width:38px!important;height:38px!important;border:0!important;border-radius:999px!important;background:transparent!important;color:#d8d8d8!important;font-size:28px!important;display:grid!important;place-items:center!important;cursor:pointer!important;}
.mig-topic-profile-edit,.mig-topic-profile-save{font-size:22px!important;margin-left:auto!important;}
.mig-topic-profile-close:hover,.mig-topic-profile-edit:hover,.mig-topic-profile-save:hover{background:rgba(255,255,255,.08)!important;}
.mig-topic-profile-head-title{font-size:19px!important;font-weight:700!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.mig-topic-profile-hero{display:flex!important;flex-direction:column!important;align-items:center!important;padding:26px 16px 24px!important;}
.mig-topic-profile-avatar{width:112px!important;height:112px!important;border-radius:999px!important;background:linear-gradient(135deg,#ff9b35,#ff4d4f)!important;display:grid!important;place-items:center!important;font-size:64px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.22)!important;}
.mig-topic-profile-title{margin-top:14px!important;font-size:20px!important;font-weight:800!important;text-align:center!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.mig-topic-profile-sub{margin-top:3px!important;font-size:13px!important;color:#a7a7a7!important;text-align:center!important;}
.mig-topic-profile-card{margin:8px 14px 16px!important;border-radius:18px!important;background:#222!important;overflow:hidden!important;}
.mig-topic-profile-row{width:100%!important;min-height:58px!important;border:0!important;background:transparent!important;color:#f2f2f2!important;display:grid!important;grid-template-columns:38px minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;padding:8px 14px!important;text-align:left!important;cursor:pointer!important;}
.mig-topic-profile-row:hover{background:rgba(255,255,255,.06)!important;}
.mig-topic-profile-row span{font-size:22px!important;color:#9aa5b1!important;text-align:center!important;}
.mig-topic-profile-row b{font-size:14px!important;font-weight:700!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.mig-topic-profile-row em{font-style:normal!important;font-size:13px!important;color:#a0a0a0!important;margin-left:8px!important;}
.mig-topic-profile-tabs{display:flex!important;gap:4px!important;margin:0 14px 14px!important;background:#222!important;border-radius:999px!important;padding:4px!important;overflow:auto!important;}
.mig-topic-profile-tabs button{border:0!important;background:transparent!important;color:#aaa!important;border-radius:999px!important;font-weight:700!important;padding:9px 14px!important;white-space:nowrap!important;cursor:pointer!important;}
.mig-topic-profile-tabs button.is-active{background:#3a3455!important;color:#bda8ff!important;}
.mig-topic-profile-content{flex:1!important;display:grid!important;place-items:center!important;min-height:180px!important;}
.mig-topic-profile-loader{width:42px!important;height:42px!important;border-radius:50%!important;border:4px solid rgba(138,116,255,.28)!important;border-top-color:#8a74ff!important;animation:migTopicSpin .8s linear infinite!important;}
@keyframes migTopicSpin{to{transform:rotate(360deg)}}
.mig-topic-edit-help{padding:22px 24px 12px!important;color:#b8b8b8!important;font-weight:700!important;font-size:14px!important;}
.mig-topic-edit-avatar{width:96px!important;height:96px!important;border-radius:999px!important;margin:18px auto!important;background:linear-gradient(135deg,#ff9b35,#ff4d4f)!important;display:grid!important;place-items:center!important;font-size:58px!important;}
.mig-topic-edit-field{display:block!important;margin:12px 22px 18px!important;border:1px solid rgba(255,255,255,.16)!important;border-radius:18px!important;padding:8px 14px!important;}
.mig-topic-edit-field span{display:block!important;color:#9aa5b1!important;font-size:12px!important;margin-bottom:4px!important;}
.mig-topic-edit-field input{width:100%!important;background:transparent!important;border:0!important;outline:0!important;color:#fff!important;font-size:16px!important;font-weight:700!important;}
.mig-topic-emoji-grid{flex:1!important;overflow:auto!important;display:grid!important;grid-template-columns:repeat(8,1fr)!important;gap:6px!important;padding:14px 18px 28px!important;background:#222!important;}
.mig-topic-emoji-grid button{width:34px!important;height:34px!important;border:0!important;border-radius:9px!important;background:transparent!important;font-size:24px!important;display:grid!important;place-items:center!important;cursor:pointer!important;}
.mig-topic-emoji-grid button:hover{background:rgba(255,255,255,.08)!important;}
.mig-topic-toast{position:fixed!important;left:50%!important;bottom:34px!important;transform:translateX(-50%) translateY(20px)!important;opacity:0!important;background:rgba(32,38,46,.96)!important;color:#fff!important;border-radius:16px!important;padding:11px 18px!important;z-index:2000!important;transition:.2s ease!important;box-shadow:0 10px 30px rgba(0,0,0,.25)!important;}
.mig-topic-toast.show{opacity:1!important;transform:translateX(-50%) translateY(0)!important;}
@media(max-width:899px){.mig-topic-profile-panel{width:100%!important;max-width:none!important;z-index:1200!important;}.mig-topic-profile-open .chat-panel{padding-right:0!important;}.mig-topic-emoji-grid{grid-template-columns:repeat(7,1fr)!important;}}

/* MIG v735 Telegram Forum DialogList Integration + Mig visual style
   Keeps the permanent avatar rail visible and renders forum topics only inside the dialog-list area. */
:root{--mig-tg-rail-w:0px;}
.mig-tg-forum-column{
  left:var(--mig-tg-rail-w,0px)!important;
  right:0!important;
  inset-inline-start:var(--mig-tg-rail-w,0px)!important;
  width:auto!important;
  background:#17212b!important;
  z-index:46!important;
}
.sidebar.mig-tg-has-rail .mig-tg-forum-column{border-left:1px solid rgba(255,255,255,.055)!important;}
.mig-tg-forum-mode .sidebar > .mig-tg-forum-column{visibility:visible!important;pointer-events:auto!important;}
.mig-tg-forum-head{
  background:#17212b!important;
  height:58px!important;
  padding:0 8px!important;
  gap:8px!important;
}
.mig-tg-forum-back{font-size:29px!important;color:#d7e0ea!important;}
.mig-tg-forum-search,.mig-tg-forum-menu{width:38px!important;height:38px!important;border:0!important;border-radius:999px!important;background:transparent!important;color:#d7e0ea!important;font-size:22px!important;display:grid!important;place-items:center!important;cursor:pointer!important;flex:0 0 auto!important;}
.mig-tg-forum-menu{font-size:25px!important;line-height:1!important;}
.mig-tg-forum-search:hover,.mig-tg-forum-menu:hover,.mig-tg-forum-back:hover{background:rgba(255,255,255,.08)!important;}
.mig-tg-forum-titlebox{padding:4px 6px!important;border-radius:10px!important;cursor:pointer!important;}
.mig-tg-forum-title{font-size:15.5px!important;font-weight:800!important;color:#f4f7fb!important;}
.mig-tg-forum-sub{font-size:12.5px!important;color:#9eacbc!important;}
.mig-tg-forum-list{padding:4px 8px 12px!important;background:#17212b!important;}
.mig-tg-topic-row{min-height:62px!important;border-radius:12px!important;margin:1px 0!important;padding:6px 8px!important;grid-template-columns:0 minmax(0,1fr) auto!important;gap:0!important;}
.mig-tg-topic-avatar{display:none!important;}
.mig-tg-topic-line b{font-size:15px!important;font-weight:800!important;color:#f3f6fb!important;}
.mig-tg-topic-preview{font-size:13.2px!important;color:#a5b2c1!important;}
.mig-tg-topic-row.is-active{background:linear-gradient(135deg,#7165d8,#8575ee)!important;color:#fff!important;box-shadow:none!important;}
.mig-tg-topic-row.is-active .mig-tg-topic-line b,.mig-tg-topic-row.is-active .mig-tg-topic-preview{color:#fff!important;}
.mig-tg-topic-row.is-active .mig-tg-topic-line em{color:rgba(255,255,255,.78)!important;}
.mig-tg-topic-unread{background:#8894a2!important;min-width:21px!important;height:21px!important;font-size:11.5px!important;}
.mig-tg-topic-row.is-active .mig-tg-topic-unread{background:rgba(255,255,255,.28)!important;}
.mig-tg-topic-pin{color:#e8e5ff!important;font-size:15px!important;}
/* Hide dialog-list area only, never the persistent avatar rail. */
@media(min-width:900px){
  .mig-tg-forum-mode .sidebar.mig-tg-has-rail > .sidebar-top,
  .mig-tg-forum-mode .sidebar.mig-tg-has-rail > .chat-list-scroll,
  .mig-tg-forum-mode .sidebar.mig-tg-has-rail > .chat-list,
  .mig-tg-forum-mode .sidebar.mig-tg-has-rail > .dialogs-list{visibility:hidden!important;pointer-events:none!important;}
  .mig-tg-forum-mode .sidebar.mig-tg-has-rail > *:not(.mig-tg-forum-column){z-index:1!important;}
  .mig-tg-forum-mode .sidebar.mig-tg-has-rail .mig-tg-forum-column{z-index:4!important;}
}
@media(max-width:899px){
  .mig-tg-forum-column{left:0!important;inset-inline-start:0!important;}
}


/* MIG v739 forum layout correction from real Telegram screenshot.
   Fixes clipped topic rows, removes desktop double-back in chat header,
   keeps forum list strictly inside dialog-list/sidebar area with Mig colors. */
:root{--mig-tg-rail-w:0px;}
.mig-tg-forum-column{
  box-sizing:border-box!important;
  overflow:hidden!important;
  background:#15212c!important;
}
.mig-tg-forum-list{
  box-sizing:border-box!important;
  padding:6px 10px 14px 10px!important;
  overflow-x:hidden!important;
}
.mig-tg-topic-row{
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:8px!important;
  padding:8px 10px 8px 12px!important;
  margin:2px 0!important;
  min-height:58px!important;
  overflow:hidden!important;
}
.mig-tg-topic-avatar{display:none!important;}
.mig-tg-topic-main{min-width:0!important;width:100%!important;overflow:hidden!important;}
.mig-tg-topic-line{min-width:0!important;width:100%!important;display:flex!important;}
.mig-tg-topic-line b{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.mig-tg-topic-line em{flex:0 0 auto!important;margin-left:8px!important;}
.mig-tg-topic-preview{display:block!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.mig-tg-topic-badges{flex:0 0 auto!important;max-width:74px!important;overflow:hidden!important;}
.mig-tg-forum-head{box-sizing:border-box!important;overflow:hidden!important;}
.mig-tg-forum-titlebox{min-width:0!important;overflow:hidden!important;}
.mig-tg-topic-chat-head .mig-tg-topic-back-inline{display:none!important;}
@media(max-width:899px){.mig-tg-topic-chat-head .mig-tg-topic-back-inline{display:grid!important;}}
@media(min-width:900px){
  .mig-tg-forum-mode .sidebar{overflow:hidden!important;}
  .mig-tg-forum-mode .chat-panel{margin-left:0!important;width:auto!important;}
}


/* MIG v742: real Telegram-like forum shell inside sidebar.
   Permanent quick-chat avatar rail stays at the far left; topics occupy only the dialog-list area. */
@media(min-width:900px){
  .mig-tg-forum-column{
    inset:0!important;
    left:0!important;
    right:0!important;
    display:none!important;
    grid-template-columns:76px minmax(0,1fr)!important;
    grid-template-rows:1fr!important;
    background:#17212b!important;
  }
  .mig-tg-forum-column.is-open{display:grid!important;flex-direction:unset!important;}
  .mig-tg-forum-rail{
    grid-column:1!important;
    grid-row:1!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    gap:9px!important;
    padding:9px 8px 12px!important;
    background:#111b24!important;
    border-right:1px solid rgba(255,255,255,.06)!important;
    overflow:auto!important;
    box-sizing:border-box!important;
  }
  .mig-tg-forum-pane{
    grid-column:2!important;
    grid-row:1!important;
    min-width:0!important;
    min-height:0!important;
    display:flex!important;
    flex-direction:column!important;
    background:#17212b!important;
    overflow:hidden!important;
  }
  .mig-tg-forum-head{height:58px!important;padding:0 10px!important;background:#17212b!important;}
  .mig-tg-forum-list{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;padding:5px 8px 12px!important;background:#17212b!important;}
  .mig-tg-rail-menu,.mig-tg-rail-chat{
    width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;
    border:0!important;border-radius:50%!important;background:transparent!important;color:#dce7f2!important;
    display:grid!important;place-items:center!important;cursor:pointer!important;position:relative!important;padding:0!important;
    font:inherit!important;overflow:visible!important;
  }
  .mig-tg-rail-menu{font-size:24px!important;margin-bottom:4px!important;color:#b8c7d5!important;}
  .mig-tg-rail-menu:hover,.mig-tg-rail-chat:hover{background:rgba(255,255,255,.07)!important;}
  .mig-tg-rail-chat img{width:44px!important;height:44px!important;border-radius:50%!important;object-fit:cover!important;display:block!important;}
  .mig-tg-rail-chat span{width:44px!important;height:44px!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:linear-gradient(135deg,#377fce,#7b66e7)!important;font-weight:800!important;color:#fff!important;font-size:18px!important;}
  .mig-tg-rail-chat.is-active:before{content:""!important;position:absolute!important;left:-8px!important;top:9px!important;bottom:9px!important;width:4px!important;border-radius:999px!important;background:#7b66e7!important;}
  .mig-tg-rail-chat.is-active img,.mig-tg-rail-chat.is-active span{outline:2px solid #7b66e7!important;outline-offset:2px!important;}
  .mig-tg-forum-back{font-size:28px!important;}
  .mig-tg-topic-row{
    grid-template-columns:minmax(0,1fr) auto!important;
    min-height:62px!important;
    border-radius:13px!important;
    padding:7px 10px 7px 12px!important;
    margin:1px 0!important;
    background:transparent!important;
  }
  .mig-tg-topic-row:hover{background:rgba(255,255,255,.055)!important;}
  .mig-tg-topic-row.is-active{background:linear-gradient(135deg,#7467dc,#856ff0)!important;}
  .mig-tg-topic-line b{font-size:15px!important;font-weight:800!important;line-height:1.18!important;}
  .mig-tg-topic-preview{font-size:13.2px!important;line-height:1.25!important;color:#a6b3c3!important;}
  .mig-tg-topic-line em{font-size:12px!important;color:#8e9dad!important;}
  .mig-tg-forum-mode .sidebar > *:not(.mig-tg-forum-column){visibility:hidden!important;pointer-events:none!important;}
  .mig-tg-forum-mode .sidebar > .mig-tg-forum-column{visibility:visible!important;pointer-events:auto!important;}
}
@media(max-width:899px){
  .mig-tg-forum-rail{display:none!important;}
  .mig-tg-forum-pane{display:flex!important;flex-direction:column!important;min-height:100%!important;}
}

/* MIG v742: allow the original sidebar soft-button menu to stay visible when opened from mig-tg-rail-menu. */
.mig-tg-forum-mode .sidebar .sidebar-menu-popover,
.mig-tg-forum-mode .sidebar .sidebar-menu-wrap,
.mig-tg-forum-mode .sidebar .context-menu,
.mig-tg-forum-mode .sidebar [class*=menu-popover],
.mig-tg-forum-mode .sidebar [class*=MenuPopover],
html.mig-tg-proxy-menu-open .sidebar .sidebar-menu-popover,
html.mig-tg-proxy-menu-open .sidebar .sidebar-menu-wrap,
html.mig-tg-proxy-menu-open .sidebar .context-menu,
html.mig-tg-proxy-menu-open .sidebar [class*=menu-popover],
html.mig-tg-proxy-menu-open .sidebar [class*=MenuPopover]{
  visibility:visible!important;
  pointer-events:auto!important;
  opacity:1!important;
  z-index:2147483600!important;
}
html.mig-tg-proxy-menu-open .mig-tg-forum-column{pointer-events:auto!important;}

/* MIG v743: fallback for mig-tg-rail-menu uses the same menu items when the hidden native sidebar button cannot open its React menu. */
.mig-tg-rail-fallback-menu{
  position:fixed!important;z-index:2147483647!important;width:220px!important;padding:8px!important;border-radius:16px!important;
  background:#17212b!important;border:1px solid rgba(255,255,255,.08)!important;box-shadow:0 16px 44px rgba(0,0,0,.42)!important;
  color:#dce8f4!important;font-family:inherit!important;
}
.mig-tg-rail-fallback-menu button{
  width:100%!important;height:38px!important;border:0!important;background:transparent!important;border-radius:11px!important;
  color:#dce8f4!important;display:flex!important;align-items:center!important;gap:10px!important;padding:0 10px!important;
  font:600 14px/1.2 inherit!important;text-align:left!important;cursor:pointer!important;
}
.mig-tg-rail-fallback-menu button:hover{background:rgba(255,255,255,.07)!important;}
.mig-tg-rail-fallback-menu button span{width:22px!important;display:grid!important;place-items:center!important;color:#9fb0c2!important;}
.mig-tg-rail-fallback-menu button b{font-weight:650!important;}
.mig-tg-rail-fallback-menu button.danger,.mig-tg-rail-fallback-menu button.danger span{color:#ff8b8b!important;}

/* MIG v745 topic profile panel — Telegram-like behavior, Mig visual style */
.mig-tg-topic-header-title{cursor:pointer!important;border-radius:8px!important;padding:2px 4px!important;margin-left:-4px!important;}
.mig-tg-topic-header-title:hover{background:rgba(255,255,255,.065)!important;}
.mig-topic-profile-panel{background:linear-gradient(180deg,#17212b 0%,#111b25 100%)!important;color:#eef5ff!important;border-left:1px solid rgba(116,152,190,.18)!important;box-shadow:-16px 0 34px rgba(0,0,0,.28)!important;}
.mig-topic-profile-head{background:#17212b!important;border-bottom:1px solid rgba(125,156,190,.14)!important;}
.mig-topic-profile-head-title{color:#f5f8fc!important;}
.mig-topic-profile-avatar,.mig-topic-edit-avatar{background:linear-gradient(135deg,#2d9cff,#8569f0)!important;color:white!important;}
.mig-topic-profile-card,.mig-topic-profile-tabs{background:#202c39!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;}
.mig-topic-profile-tabs button.is-active{background:#2f8ee8!important;color:#fff!important;}
.mig-topic-profile-row:hover{background:rgba(47,142,232,.13)!important;}
.mig-topic-profile-content{display:block!important;overflow:auto!important;padding:10px 14px 18px!important;}
.mig-topic-profile-empty{min-height:150px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:8px!important;color:#9eacbc!important;text-align:center!important;}
.mig-topic-profile-empty b{color:#eaf2fb!important;font-size:16px!important;}
.mig-topic-profile-empty span{font-size:13px!important;}
.mig-topic-profile-items{display:flex!important;flex-direction:column!important;gap:8px!important;}
.mig-topic-profile-item{border-radius:14px!important;background:#202c39!important;padding:10px 12px!important;display:flex!important;flex-direction:column!important;gap:3px!important;}
.mig-topic-profile-item b{font-size:14px!important;color:#f2f7ff!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.mig-topic-profile-item span{font-size:12px!important;color:#8fa2b7!important;}
.mig-topic-edit-field{margin:12px 16px!important;display:flex!important;flex-direction:column!important;gap:6px!important;border:1px solid rgba(144,164,184,.24)!important;border-radius:16px!important;padding:10px 14px!important;background:#17212b!important;}
.mig-topic-edit-field span{font-size:12px!important;color:#9eacbc!important;}
.mig-topic-edit-field input{border:0!important;background:transparent!important;color:#fff!important;font:inherit!important;font-weight:700!important;outline:none!important;}
.mig-topic-edit-help{padding:20px 18px 6px!important;color:#aab6c4!important;font-weight:700!important;}
.mig-topic-emoji-grid{display:grid!important;grid-template-columns:repeat(8,1fr)!important;gap:7px!important;padding:12px 16px 20px!important;overflow:auto!important;}
.mig-topic-emoji-grid button{height:34px!important;border:0!important;border-radius:9px!important;background:#202c39!important;font-size:20px!important;cursor:pointer!important;}
.mig-topic-emoji-grid button:hover{background:#2d3d4f!important;}
@media(max-width:899px){.mig-topic-emoji-grid{grid-template-columns:repeat(7,1fr)!important;}}

/* MIG v768: forum group header must look like normal group header: avatar, title, members/online. */
.mig-tg-forum-titlebox{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  min-width:0!important;
  flex:1 1 auto!important;
  padding:4px 6px!important;
  border-radius:12px!important;
}
.mig-tg-forum-group-avatar{
  width:38px!important;
  height:38px!important;
  flex:0 0 38px!important;
  border-radius:50%!important;
  overflow:hidden!important;
  display:grid!important;
  place-items:center!important;
  background:linear-gradient(135deg,#367fcf,#7965e8)!important;
  color:#fff!important;
  font-weight:800!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22)!important;
}
.mig-tg-forum-group-avatar img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block!important;
}
.mig-tg-forum-group-avatar b{font-size:16px!important;line-height:1!important;}
.mig-tg-forum-group-text{display:flex!important;flex-direction:column!important;min-width:0!important;flex:1 1 auto!important;}
.mig-tg-forum-group-text .mig-tg-forum-title{font-size:15.5px!important;font-weight:800!important;line-height:1.15!important;color:#f4f7fb!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.mig-tg-forum-group-text .mig-tg-forum-sub{font-size:12.5px!important;line-height:1.2!important;color:#9eacbc!important;margin-top:2px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}

/* MIG v769: forum header + light typography pass */
.mig-tg-forum-titlebox{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important;flex:1 1 auto!important;padding:4px 6px!important;border-radius:12px!important;cursor:pointer!important;}
.mig-tg-forum-group-avatar{width:38px!important;height:38px!important;flex:0 0 38px!important;border-radius:50%!important;overflow:hidden!important;display:grid!important;place-items:center!important;background:linear-gradient(135deg,#367fcf,#7965e8)!important;color:#fff!important;font-weight:500!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.22)!important;}
.mig-tg-forum-group-avatar img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;}
.mig-tg-forum-group-avatar b{font-size:16px!important;line-height:1!important;font-weight:500!important;}
.mig-tg-forum-group-text{display:flex!important;flex-direction:column!important;min-width:0!important;flex:1 1 auto!important;}
.mig-tg-forum-group-text .mig-tg-forum-title{font-size:15.5px!important;font-weight:500!important;line-height:1.15!important;color:#f4f7fb!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.mig-tg-forum-group-text .mig-tg-forum-sub{font-size:12.5px!important;line-height:1.2!important;color:#9eacbc!important;margin-top:2px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.chat-title,.chat-header-title,.brand-title,.bubble-sender,.side-title,.chat-row-head b,.chat-row-head strong,.chat-row b,.chat-row strong,.mig-tg-topic-line b,.mig-topic-profile-title,.mig-topic-profile-head-title,.profile-card h3,.side-item b,.side-item strong,.settings-title,.modal-card h2,.login-card h2{font-weight:500!important;}
button,button b,button strong,.icon-btn,.send-btn,.chatlist-compose-menu-item,.mig-v356-compose-close,.mig-v356-compose-next{font-weight:500!important;}
.badge,.mig-tg-topic-unread{font-weight:500!important;}

/* MIG WEB v770: Telegram-style forum header + stable group profile, Mig colors */
.mig-tg-forum-head{height:56px!important;padding:0 10px!important;background:#17212b!important;display:grid!important;grid-template-columns:42px minmax(0,1fr)42px 38px!important;align-items:center!important;gap:4px!important;border-bottom:1px solid rgba(255,255,255,.08)!important;box-sizing:border-box!important;}
.mig-tg-forum-back{font-size:34px!important;font-weight:300!important;color:#c9d4df!important;width:42px!important;height:42px!important;line-height:42px!important;background:transparent!important;border:0!important;border-radius:999px!important;display:grid!important;place-items:center!important;padding:0!important;}
.mig-tg-forum-search,.mig-tg-forum-menu{font-weight:400!important;color:#c9d4df!important;background:transparent!important;border:0!important;border-radius:999px!important;width:42px!important;height:42px!important;display:grid!important;place-items:center!important;}
.mig-tg-forum-titlebox{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;min-width:0!important;gap:1px!important;padding:2px 4px!important;margin:0!important;border-radius:8px!important;cursor:pointer!important;}
.mig-tg-forum-titlebox:hover{background:rgba(255,255,255,.06)!important;}
.mig-tg-forum-titlebox .mig-tg-forum-group-avatar,.mig-tg-forum-titlebox .mig-tg-forum-group-text{display:contents!important;}
.mig-forum-v770-title{font-size:16px!important;line-height:1.12!important;font-weight:500!important;color:#f1f6fb!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.mig-forum-v770-sub{font-size:13px!important;line-height:1.12!important;font-weight:400!important;color:#9badbd!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin-top:2px!important;}
.mig-tg-forum-title,.mig-tg-topic-line b,.chat-title,.chat-header-title,.chat-name,.sidebar b,.sidebar strong,button,b,strong{font-weight:500!important;}
.mig-forum-group-profile-panel-v770{position:fixed!important;right:0!important;top:0!important;bottom:0!important;width:390px!important;max-width:min(390px,100vw)!important;z-index:2147483200!important;background:#0f1a24!important;color:#edf4fb!important;border-left:1px solid rgba(255,255,255,.09)!important;box-shadow:-24px 0 60px rgba(0,0,0,.28)!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;}
.mig-forum-gp-head{height:58px!important;background:#17212b!important;border-bottom:1px solid rgba(255,255,255,.08)!important;display:grid!important;grid-template-columns:48px 1fr!important;align-items:center!important;padding:0 12px!important;box-sizing:border-box!important;}
.mig-forum-gp-head b{font-size:18px!important;font-weight:500!important;}
.mig-forum-gp-close{width:40px!important;height:40px!important;border:0!important;background:rgba(255,255,255,.08)!important;color:#dce6f0!important;border-radius:999px!important;font-size:30px!important;line-height:1!important;font-weight:300!important;cursor:pointer!important;}
.mig-forum-gp-hero{padding:24px 18px 18px!important;text-align:center!important;background:linear-gradient(180deg,#17212b,#111d27)!important;border-bottom:1px solid rgba(255,255,255,.07)!important;}
.mig-forum-group-hero-avatar{width:112px!important;height:112px!important;border-radius:50%!important;margin:0 auto 14px!important;background:linear-gradient(135deg,#3487df,#7a66e8)!important;display:grid!important;place-items:center!important;overflow:hidden!important;color:#fff!important;font-size:42px!important;box-shadow:0 12px 36px rgba(45,140,255,.22),inset 0 1px 0 rgba(255,255,255,.25)!important;}
.mig-forum-group-hero-avatar img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;}
.mig-forum-gp-title{font-size:24px!important;line-height:1.12!important;font-weight:500!important;color:#fff!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.mig-forum-gp-sub{font-size:14px!important;color:#a8b5c4!important;margin-top:6px!important;font-weight:400!important;}
.mig-forum-gp-card{margin:14px!important;border-radius:18px!important;background:#1a2835!important;overflow:hidden!important;border:1px solid rgba(255,255,255,.06)!important;}
.mig-forum-gp-row{display:grid!important;grid-template-columns:38px 1fr!important;align-items:center!important;gap:8px!important;padding:13px 14px!important;border-bottom:1px solid rgba(255,255,255,.07)!important;}
.mig-forum-gp-row:last-child{border-bottom:0!important;}
.mig-forum-gp-row > span{font-size:22px!important;opacity:.95!important;}
.mig-forum-gp-row b{font-size:14px!important;font-weight:500!important;color:#edf4fb!important;display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.mig-forum-gp-row small{font-size:12px!important;color:#91a1b2!important;font-weight:400!important;}
.mig-forum-gp-tabs{display:flex!important;gap:8px!important;padding:4px 14px 12px!important;overflow-x:auto!important;}
.mig-forum-gp-tabs button{border:1px solid rgba(255,255,255,.08)!important;background:#1a2835!important;color:#c8d4e0!important;border-radius:18px!important;padding:9px 14px!important;font-size:14px!important;font-weight:500!important;white-space:nowrap!important;}
.mig-forum-gp-tabs button.active{background:#2d8cff!important;color:#fff!important;border-color:#2d8cff!important;}
.mig-forum-gp-body{padding:18px 20px!important;display:flex!important;flex-direction:column!important;gap:5px!important;color:#edf4fb!important;}
.mig-forum-gp-body b{font-size:15px!important;font-weight:500!important;color:#edf4fb!important;}
.mig-forum-gp-body small{font-size:13px!important;color:#95a5b5!important;font-weight:400!important;}
@media(max-width:900px){.mig-forum-group-profile-panel-v770{width:100%!important;}.mig-tg-forum-head{grid-template-columns:42px minmax(0,1fr)42px 38px!important;}}

/* v771 forum header loading fix */
.mig-tg-forum-head{display:flex;align-items:center;gap:10px;height:56px;padding:0 10px;border-bottom:1px solid rgba(255,255,255,.06);}
.mig-tg-forum-titlebox{flex:1;min-width:0;cursor:pointer;display:flex;flex-direction:column;justify-content:center;line-height:1.15;}
.mig-tg-forum-title,.mig-forum-v770-title{font-weight:500!important;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#eef5ff;}
.mig-tg-forum-sub,.mig-forum-v770-sub{font-weight:400!important;font-size:13px;color:rgba(220,230,242,.76);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px;}
.mig-tg-forum-back,.mig-tg-forum-search,.mig-tg-forum-menu{flex:0 0 auto;}

/* Mig forum topic list search / rows v773 */
.mig-tg-topic-searchbox{display:none;align-items:center;gap:8px;margin:8px 10px 10px;padding:8px 10px;border-radius:14px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.06);box-shadow:inset 0 1px 0 rgba(255,255,255,.03)}
.mig-tg-topic-searchbox.is-open{display:flex}
.mig-tg-topic-search-ico{opacity:.72;font-size:18px;line-height:1}
.mig-tg-topic-search-input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:#eaf2fb;font:inherit;font-weight:400!important}
.mig-tg-topic-search-input::placeholder{color:rgba(234,242,251,.48)}
.mig-tg-topic-search-clear{width:28px;height:28px;border:0;border-radius:50%;background:rgba(255,255,255,.08);color:#cbd6e2;cursor:pointer;font-size:18px;font-weight:400!important}
.mig-tg-topic-row{transition:background .14s ease, transform .12s ease, opacity .12s ease; font-weight:400!important}
.mig-tg-topic-row.is-pressing{transform:scale(.992);background:rgba(80,150,235,.18)!important}
.mig-tg-topic-row.mig-topic-filter-hidden{display:none!important}
.mig-tg-topic-search-empty{padding:22px 14px;text-align:center;color:rgba(234,242,251,.78);font-weight:400!important}
.mig-tg-topic-search-empty small{display:block;margin-top:5px;color:rgba(234,242,251,.45);font-weight:400!important}
.mig-tg-topic-line b,.mig-tg-forum-title,.mig-tg-topic-preview,.mig-tg-topic-unread,.mig-tg-forum-head button{font-weight:400!important}

/* Mig forum topic profile data v774 */
.mig-topic-profile-media-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;padding:10px!important;box-sizing:border-box!important}.mig-topic-profile-media-tile{aspect-ratio:1/1!important;border:0!important;border-radius:10px!important;background:rgba(37,53,69,.82)!important;overflow:hidden!important;display:grid!important;place-items:center!important;color:#d9e8f5!important;font-weight:500!important;cursor:pointer!important}.mig-topic-profile-media-tile img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}.mig-topic-profile-data-list{display:flex!important;flex-direction:column!important;gap:7px!important;padding:10px!important}.mig-topic-profile-data-row{display:flex!important;align-items:center!important;gap:10px!important;border:1px solid rgba(148,163,184,.10)!important;background:rgba(21,34,47,.72)!important;color:#e9f2fb!important;border-radius:14px!important;padding:10px!important;text-align:left!important;cursor:pointer!important}.mig-topic-profile-data-row:hover{background:rgba(40,58,76,.78)!important}.mig-topic-profile-data-icon{width:34px!important;height:34px!important;border-radius:12px!important;background:rgba(51,144,236,.18)!important;display:grid!important;place-items:center!important;flex:0 0 34px!important}.mig-topic-profile-data-row b{display:block!important;max-width:260px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-weight:500!important}.mig-topic-profile-data-row em{display:block!important;margin-top:3px!important;color:#91a5b8!important;font-style:normal!important;font-size:12px!important;max-width:260px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.mig-topic-profile-empty b{font-weight:500!important}

/* MIG v775 forum topic create/edit */
.mig-topic-create-btn{position:absolute;right:14px;bottom:16px;z-index:7;border:0;border-radius:999px;background:linear-gradient(135deg,#3797f0,#7b61ff);color:#fff;box-shadow:0 12px 28px rgba(27,122,255,.32);height:44px;min-width:44px;padding:0 16px;display:flex;align-items:center;gap:8px;cursor:pointer;font:inherit;font-weight:400!important}
.mig-topic-create-btn span{font-size:22px;line-height:1}.mig-topic-create-btn b{font-weight:400!important}.mig-topic-create-btn:hover{filter:brightness(1.06)}
.mig-topic-ce-open{overflow:hidden}.mig-topic-ce-modal{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center}.mig-topic-ce-backdrop{position:absolute;inset:0;background:rgba(5,10,16,.55);backdrop-filter:blur(4px)}.mig-topic-ce-card{position:relative;width:min(430px,calc(100vw - 28px));max-height:calc(100vh - 40px);overflow:auto;background:#162331;border:1px solid rgba(255,255,255,.08);box-shadow:0 24px 70px rgba(0,0,0,.45);border-radius:24px;color:#eef6ff}.mig-topic-ce-head{height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;border-bottom:1px solid rgba(255,255,255,.07)}.mig-topic-ce-head b{font-weight:400!important;font-size:18px}.mig-topic-ce-close,.mig-topic-ce-save{width:38px;height:38px;border:0;border-radius:50%;background:transparent;color:#dbe8f5;font-size:28px;cursor:pointer}.mig-topic-ce-save{font-size:22px;color:#5eb5ff}.mig-topic-ce-save:disabled{opacity:.5}.mig-topic-ce-help{padding:18px 22px 8px;color:#9dacbd}.mig-topic-ce-avatar{width:92px;height:92px;margin:6px auto 18px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#2d8cff,#7b61ff);font-size:48px;box-shadow:0 16px 32px rgba(49,139,255,.22)}.mig-topic-ce-field{display:block;margin:0 22px 18px;border:1px solid rgba(255,255,255,.14);border-radius:16px;padding:9px 14px;background:rgba(255,255,255,.03)}.mig-topic-ce-field span{display:block;font-size:12px;color:#9dacbd;margin-bottom:4px}.mig-topic-ce-field input{width:100%;border:0;outline:0;background:transparent;color:#fff;font:inherit;font-size:16px}.mig-topic-ce-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;padding:0 20px 22px}.mig-topic-ce-grid button{height:38px;border:0;border-radius:12px;background:rgba(255,255,255,.06);font-size:22px;cursor:pointer}.mig-topic-ce-grid button:hover{background:rgba(55,151,240,.18)}
@media(max-width:700px){.mig-topic-create-btn{right:18px;bottom:calc(18px + env(safe-area-inset-bottom));height:48px}.mig-topic-create-btn b{display:none}.mig-topic-ce-card{align-self:flex-end;width:100%;max-height:86vh;border-radius:24px 24px 0 0}}


/* MIG WEB v776: show editable topic icons in topic list */
.mig-tg-topic-row .mig-tg-topic-avatar{
  display:none!important;
}
.mig-tg-topic-line{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  min-width:0!important;
}
.mig-tg-topic-title-icon{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  width:22px!important;
  min-width:22px!important;
  height:22px!important;
  font-size:18px!important;
  line-height:1!important;
  filter:drop-shadow(0 1px 0 rgba(0,0,0,.22));
}
.mig-tg-topic-row[data-topic-icon] .mig-tg-topic-line b{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.mig-tg-topic-row.is-active .mig-tg-topic-title-icon{
  filter:drop-shadow(0 1px 0 rgba(0,0,0,.24));
}

/* MIG WEB v779: system/service messages are centered events, not user bubbles */
.message-row.mig-service-event-row{
  width:100%!important;
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  margin:10px 0!important;
  padding:0!important;
  gap:0!important;
  pointer-events:auto!important;
}
.message-row.mig-service-event-row .avatar,
.message-row.mig-service-event-row > img,
.message-row.mig-service-event-row .bubble-sender,
.message-row.mig-service-event-row .bubble-footer,
.message-row.mig-service-event-row .bubble-meta,
.message-row.mig-service-event-row .bubble-hover-tools,
.message-row.mig-service-event-row .reply-preview,
.message-row.mig-service-event-row .reaction-bar{
  display:none!important;
}
.message-row.mig-service-event-row .bubble,
.message-row.mig-service-event-row .mig-service-event-bubble{
  max-width:min(86%,760px)!important;
  width:auto!important;
  padding:6px 12px!important;
  border-radius:999px!important;
  background:rgba(7,12,18,.42)!important;
  border:0!important;
  box-shadow:none!important;
  color:rgba(255,255,255,.94)!important;
  text-align:center!important;
  font-size:16px!important;
  line-height:1.28!important;
  font-weight:600!important;
  margin:0 auto!important;
}
.message-row.mig-service-event-row .bubble-text{
  text-align:center!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:anywhere!important;
  font-weight:600!important;
}
.message-row.mig-service-event-row + .message-row.mig-service-event-row{ margin-top:4px!important; }
.day-pill{
  background:rgba(7,12,18,.42)!important;
  color:rgba(255,255,255,.94)!important;
  font-weight:600!important;
  font-size:16px!important;
  padding:6px 13px!important;
  box-shadow:none!important;
}
@media(max-width:700px){
  .message-row.mig-service-event-row .bubble,
  .message-row.mig-service-event-row .mig-service-event-bubble{font-size:14px!important;max-width:92%!important;}
  .day-pill{font-size:14px!important;}
}

/* MIG WEB v780: stronger centered service events + stable topic profile */
.message-row.mig-service-event-row-v780,
.message-row[data-mig-service-event="1"],
[class*="message-row"].mig-service-event-row-v780,
[class*="MessageRow"].mig-service-event-row-v780{
  width:100%!important;
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  align-self:center!important;
  margin:8px 0!important;
  padding:0!important;
  gap:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.message-row[data-mig-service-event="1"] .message-avatar-slot,
.message-row[data-mig-service-event="1"] .message-avatar,
.message-row[data-mig-service-event="1"] .avatar-slot,
.message-row[data-mig-service-event="1"] .avatar-wrap,
.message-row[data-mig-service-event="1"] .avatar,
.message-row[data-mig-service-event="1"] > img,
.message-row[data-mig-service-event="1"] .bubble-sender,
.message-row[data-mig-service-event="1"] .bubble-footer,
.message-row[data-mig-service-event="1"] .bubble-meta,
.message-row[data-mig-service-event="1"] .bubble-hover-tools,
.message-row[data-mig-service-event="1"] .reply-preview,
.message-row[data-mig-service-event="1"] .reaction-bar,
.message-row[data-mig-service-event="1"] .mig-message-status,
.message-row[data-mig-service-event="1"] .message-select-toggle{
  display:none!important;
  opacity:0!important;
  visibility:hidden!important;
  width:0!important;
  min-width:0!important;
  max-width:0!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
  pointer-events:none!important;
}
.message-row[data-mig-service-event="1"] .bubble,
.message-row[data-mig-service-event="1"] [class*="bubble"],
.message-row[data-mig-service-event="1"] .mig-service-event-bubble{
  max-width:min(88%,820px)!important;
  width:auto!important;
  min-width:0!important;
  padding:5px 12px!important;
  margin:0 auto!important;
  border-radius:999px!important;
  background:rgba(5,9,14,.44)!important;
  border:0!important;
  box-shadow:none!important;
  color:rgba(255,255,255,.94)!important;
  text-align:center!important;
  font-size:16px!important;
  line-height:1.28!important;
  font-weight:500!important;
  transform:none!important;
}
.message-row[data-mig-service-event="1"] .bubble-text,
.message-row[data-mig-service-event="1"] .message-text,
.message-row[data-mig-service-event="1"] [class*="text"]{
  display:block!important;
  text-align:center!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  font-weight:500!important;
}
html.mig-topic-profile-open .mig-hidden-by-topic-profile,
body.mig-topic-profile-open .mig-hidden-by-topic-profile{
  display:none!important;
}
.mig-topic-profile-panel.is-open .mig-topic-profile-empty{
  min-height:160px!important;
}
@media(max-width:700px){
  .message-row[data-mig-service-event="1"] .bubble,
  .message-row[data-mig-service-event="1"] [class*="bubble"]{font-size:14px!important;max-width:94%!important;}
}

/* v781: topic profile media loader must never keep the panel in an endless spinner */
.mig-topic-profile-empty-final{min-height:160px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:rgba(230,238,247,.72);text-align:center}
.mig-topic-profile-empty-final b{font-weight:600;color:rgba(245,248,252,.92)}

/* MIG WEB v808: topic header uses topic icon and full title */
.mig-tg-topic-chat-head .mig-tg-topic-header-icon{width:42px!important;height:42px!important;border-radius:50%!important;display:grid!important;place-items:center!important;flex:0 0 42px!important;margin-right:10px!important;background:linear-gradient(135deg,rgba(51,144,236,.95),rgba(42,171,238,.70))!important;color:#fff!important;font-size:22px!important;line-height:1!important;box-shadow:0 2px 8px rgba(0,0,0,.20)!important;}
.mig-tg-topic-chat-head [data-mig-topic-hidden-avatar="1"]{display:none!important;}
.mig-tg-topic-chat-head .mig-tg-topic-header-title{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;max-width:none!important;line-height:1.18!important;display:block!important;}
.mig-tg-topic-chat-head .chat-header-title,.mig-tg-topic-chat-head .chat-title,.mig-tg-topic-chat-head .chat-name{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;max-width:none!important;}
.mig-tg-topic-chat-head .chat-header-info,.mig-tg-topic-chat-head .chat-title-block,.mig-tg-topic-chat-head [class*=title]{min-width:0!important;max-width:none!important;}
@media(max-width:899px){.mig-tg-topic-chat-head .mig-tg-topic-header-icon{width:38px!important;height:38px!important;flex-basis:38px!important;font-size:20px!important;margin-right:8px!important}.mig-tg-topic-chat-head .mig-tg-topic-header-title{font-size:16px!important;line-height:1.16!important;}}


/* MIG WEB v809: topic header title is one-line; topic search is throttled in JS */
.mig-tg-topic-chat-head .mig-tg-topic-header-title,
.mig-tg-topic-chat-head .chat-header-title,
.mig-tg-topic-chat-head .chat-title,
.mig-tg-topic-chat-head .chat-name{
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  max-width:min(62vw,720px)!important;
  line-height:1.18!important;
  display:block!important;
}
.mig-tg-topic-chat-head .chat-header-left{min-width:0!important;max-width:calc(100% - 90px)!important;}
.mig-tg-topic-chat-head .chat-header-info,
.mig-tg-topic-chat-head .chat-title-block{min-width:0!important;max-width:100%!important;}
@media(max-width:899px){
  .mig-tg-topic-chat-head .mig-tg-topic-header-title,
  .mig-tg-topic-chat-head .chat-header-title,
  .mig-tg-topic-chat-head .chat-title,
  .mig-tg-topic-chat-head .chat-name{max-width:calc(100vw - 150px)!important;}
}


/* MIG WEB v810: topic header one-line full title, no ellipsis; robust topic search open */
.mig-tg-topic-chat-head{overflow:visible!important;}
.mig-tg-topic-chat-head .chat-header-left,
.mig-tg-topic-chat-head .chat-header-info,
.mig-tg-topic-chat-head .chat-title-block,
.mig-tg-topic-chat-head [class*="title"],
.mig-tg-topic-chat-head [class*="Title"]{
  min-width:0!important;
  max-width:none!important;
  overflow:visible!important;
}
.mig-tg-topic-chat-head .mig-tg-topic-header-title,
.mig-tg-topic-chat-head .chat-header-title.mig-tg-topic-header-title,
.mig-tg-topic-chat-head .chat-title.mig-tg-topic-header-title,
.mig-tg-topic-chat-head .chat-name.mig-tg-topic-header-title{
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
  max-width:none!important;
  width:auto!important;
  min-width:max-content!important;
  display:inline-block!important;
  flex:0 0 auto!important;
}
.mig-tg-topic-searchbox.is-open{display:flex!important;}
.mig-topic-filter-hidden{display:none!important;}

/* MIG WEB v814: topic chat header must show topic icon only, never the group avatar */
.mig-tg-topic-chat-head .chat-avatar:not(.mig-tg-topic-header-icon),
.mig-tg-topic-chat-head .chat-header-avatar:not(.mig-tg-topic-header-icon),
.mig-tg-topic-chat-head .avatar:not(.mig-tg-topic-header-icon),
.mig-tg-topic-chat-head [class*="avatar"]:not(.mig-tg-topic-header-icon),
.mig-tg-topic-chat-head [class*="Avatar"]:not(.mig-tg-topic-header-icon),
.mig-tg-topic-chat-head img:not(.mig-tg-topic-header-icon){
  display:none!important;
}
.mig-tg-topic-chat-head .mig-tg-topic-header-icon{
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
}



/* MIG WEB v912: full group profile from topics list, no compact fallback */
.mig-forum-group-profile-full-v912{position:fixed!important;top:0!important;right:0!important;bottom:0!important;width:min(620px,100vw)!important;max-width:100vw!important;background:#0f1b25!important;color:#eaf2fb!important;z-index:10080!important;box-shadow:-12px 0 40px rgba(0,0,0,.42)!important;overflow-y:auto!important;border-left:1px solid rgba(255,255,255,.08)!important;padding:0!important;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif!important}.mig-forum-group-profile-full-v912 *{box-sizing:border-box}.mig-forum-full-top{height:84px;display:flex;align-items:center;gap:18px;padding:0 20px;background:#101b25;border-bottom:1px solid rgba(255,255,255,.06);position:sticky;top:0;z-index:2}.mig-forum-full-top b{font-size:24px;font-weight:800}.mig-forum-gp-close,.mig-forum-full-edit{width:52px;height:52px;border:0;border-radius:999px;background:#2a3644;color:#edf6ff;font-size:34px;line-height:1;display:grid;place-items:center;cursor:pointer}.mig-forum-full-edit{margin-left:auto;font-size:27px}.mig-forum-full-hero{position:relative;height:288px;background:#122334;overflow:hidden}.mig-forum-full-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.mig-forum-full-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,10,17,.04) 0%,rgba(5,10,17,.32) 44%,rgba(5,10,17,.86) 100%)}.mig-forum-full-title{position:absolute;left:22px;right:22px;bottom:58px;font-size:34px;line-height:1.08;font-weight:900;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.55);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mig-forum-full-sub{position:absolute;left:22px;right:22px;bottom:25px;font-size:22px;font-weight:800;color:#fff;text-shadow:0 2px 10px rgba(0,0,0,.52)}.mig-forum-full-info{border-top:1px solid rgba(255,255,255,.06);border-bottom:1px solid rgba(255,255,255,.06)}.mig-forum-full-row{min-height:84px;display:flex;align-items:center;gap:20px;padding:13px 28px;border-bottom:1px solid rgba(255,255,255,.06);background:rgba(16,30,42,.9)}.mig-forum-full-row:last-child{border-bottom:0}.mig-forum-full-row>span{width:34px;text-align:center;font-size:27px}.mig-forum-full-row div{min-width:0}.mig-forum-full-row b{display:block;font-size:22px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mig-forum-full-row small{display:block;margin-top:5px;color:#96a8b9;font-size:18px}.mig-forum-full-tabs{display:flex;gap:12px;overflow-x:auto;padding:12px 28px;background:#101b25;scrollbar-width:none}.mig-forum-full-tabs::-webkit-scrollbar{display:none}.mig-forum-full-tabs button{flex:0 0 auto;border:1px solid rgba(255,255,255,.12);background:#172635;color:#dce8f5;border-radius:999px;padding:16px 24px;font-size:20px;font-weight:800}.mig-forum-full-tabs button.active{background:#2f95ff;border-color:#2f95ff;color:white}.mig-forum-full-body{padding:18px 20px 120px;background:#101b25;min-height:420px}.mig-forum-full-admin-title{color:#65b8ff;font-size:18px;font-weight:900;text-transform:uppercase;margin:10px 18px 18px}.mig-forum-full-member{height:88px;border:1px solid rgba(255,255,255,.06);border-radius:18px;background:rgba(12,25,36,.74);display:flex;align-items:center;gap:18px;padding:12px 18px;margin:10px 0}.mig-forum-full-member img,.mig-forum-full-member>span{width:54px;height:54px;border-radius:999px;object-fit:cover;display:grid;place-items:center;background:#38506a;color:#fff;font-size:22px;font-weight:900;flex:0 0 auto}.mig-forum-full-member b{display:block;font-size:19px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mig-forum-full-member small{display:block;margin-top:5px;color:#91a2b4;font-size:15px}.mig-forum-full-empty{padding:36px 18px;color:#91a2b4;font-size:18px;text-align:center}.mig-forum-full-add{position:fixed;right:28px;bottom:28px;width:72px;height:72px;border:0;border-radius:999px;background:#2f95ff;color:#fff;font-size:28px;box-shadow:0 12px 34px rgba(47,149,255,.32);z-index:10082}@media(max-width:920px){.mig-forum-group-profile-full-v912{left:0!important;width:100vw!important}.mig-forum-full-top{height:84px;padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}.mig-forum-full-hero{height:288px}.mig-forum-full-title{font-size:32px}.mig-forum-full-sub{font-size:22px}.mig-forum-full-add{right:max(26px,env(safe-area-inset-right));bottom:max(26px,env(safe-area-inset-bottom))}}


/* MIG WEB v913: final forum profile/desktop shell stability fix */
.mig-forum-group-profile-panel-v770{display:none!important;visibility:hidden!important;pointer-events:none!important;}
@media(min-width:900px){
  html.mig-tg-forum-mode .mig-tg-forum-column{display:grid!important;visibility:visible!important;opacity:1!important;transform:none!important;pointer-events:auto!important;}
  html.mig-tg-forum-mode .mig-tg-forum-column.is-open{display:grid!important;}
  html.mig-tg-forum-mode .mig-tg-forum-rail{display:flex!important;visibility:visible!important;opacity:1!important;}
  html.mig-tg-forum-mode .mig-tg-forum-pane{display:flex!important;visibility:visible!important;opacity:1!important;}
}

/* MIG WEB v914: stable desktop forum shell + native group profile from topic list */
.mig-forum-group-profile-panel-v770,.mig-forum-group-profile-full-v912{display:none!important;visibility:hidden!important;pointer-events:none!important;}
@media(min-width:900px){
  html.mig-tg-forum-mode .mig-tg-forum-column,
  body .mig-tg-forum-column.is-open{
    display:grid!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
    transform:none!important;
    grid-template-columns:76px minmax(0,1fr)!important;
    background:#17212b!important;
  }
  html.mig-tg-forum-mode .mig-tg-forum-column .mig-tg-forum-rail,
  body .mig-tg-forum-column.is-open .mig-tg-forum-rail{display:flex!important;visibility:visible!important;opacity:1!important;}
  html.mig-tg-forum-mode .mig-tg-forum-column .mig-tg-forum-pane,
  body .mig-tg-forum-column.is-open .mig-tg-forum-pane{display:flex!important;visibility:visible!important;opacity:1!important;}
}

/* MIG WEB v920: clean full forum group profile panel */
.mig-forum-group-profile-v920{position:fixed;right:0;top:0;width:min(560px,100vw);height:100vh;background:#0f1d27;color:#e9f2fb;z-index:2147483600;box-shadow:-12px 0 32px rgba(0,0,0,.38);overflow:auto;border-left:1px solid rgba(255,255,255,.08)}
@media (max-width:760px){.mig-forum-group-profile-v920{left:0;right:0;width:100vw}}
.mig-forum-group-profile-v920 .mig-forum-full-top{height:84px;display:flex;align-items:center;gap:18px;padding:0 20px;background:#0d1822;font-size:24px;font-weight:700;position:sticky;top:0;z-index:2}
.mig-forum-group-profile-v920 .mig-forum-gp-close,.mig-forum-group-profile-v920 .mig-forum-full-edit{width:52px;height:52px;border:0;border-radius:50%;background:#263541;color:#eaf3fb;font-size:34px;line-height:1;cursor:pointer}.mig-forum-group-profile-v920 .mig-forum-full-edit{margin-left:auto;font-size:24px}
.mig-forum-group-profile-v920 .mig-forum-full-hero{position:relative;height:288px;background:#142635;overflow:hidden}.mig-forum-group-profile-v920 .mig-forum-full-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.mig-forum-group-profile-v920 .mig-forum-full-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.1),rgba(0,0,0,.78))}.mig-forum-group-profile-v920 .mig-forum-full-title{position:absolute;left:22px;right:22px;bottom:54px;font-size:32px;font-weight:800;line-height:1.1}.mig-forum-group-profile-v920 .mig-forum-full-sub{position:absolute;left:22px;bottom:24px;font-size:20px;font-weight:700;color:#eef6ff}
.mig-forum-group-profile-v920 .mig-forum-full-info{border-top:1px solid rgba(255,255,255,.08);border-bottom:1px solid rgba(255,255,255,.08)}.mig-forum-group-profile-v920 .mig-forum-full-row{display:flex;gap:22px;align-items:center;padding:18px 28px;border-bottom:1px solid rgba(255,255,255,.06)}.mig-forum-group-profile-v920 .mig-forum-full-row:last-child{border-bottom:0}.mig-forum-group-profile-v920 .mig-forum-full-row span{font-size:28px;width:30px;text-align:center}.mig-forum-group-profile-v920 .mig-forum-full-row b{display:block;font-size:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mig-forum-group-profile-v920 .mig-forum-full-row small{display:block;color:#9eb0bd;font-size:18px;margin-top:4px}.mig-forum-group-profile-v920 .mig-forum-full-tabs{display:flex;gap:14px;overflow-x:auto;padding:10px 28px 14px;border-bottom:1px solid rgba(255,255,255,.06)}.mig-forum-group-profile-v920 .mig-forum-full-tabs button{border:1px solid rgba(255,255,255,.14);background:#162735;color:#e8f2fa;border-radius:30px;padding:14px 24px;font-weight:700;font-size:20px;white-space:nowrap}.mig-forum-group-profile-v920 .mig-forum-full-tabs button.active{background:#3396f6;border-color:#3396f6;color:white}.mig-forum-group-profile-v920 .mig-forum-full-body{padding:24px 20px 120px}.mig-forum-group-profile-v920 .mig-forum-full-admin-title{color:#68b8ff;font-weight:900;font-size:18px;margin:0 0 14px 8px}.mig-forum-group-profile-v920 .mig-forum-full-member{display:flex;align-items:center;gap:16px;padding:12px 18px;border:1px solid rgba(255,255,255,.07);border-radius:18px;margin:10px 0;background:#101f2b}.mig-forum-group-profile-v920 .mig-forum-full-member img,.mig-forum-group-profile-v920 .mig-forum-full-member span{width:52px;height:52px;border-radius:50%;object-fit:cover;background:#34485a;display:flex;align-items:center;justify-content:center;font-weight:800}.mig-forum-group-profile-v920 .mig-forum-full-member b{display:block;font-size:18px}.mig-forum-group-profile-v920 .mig-forum-full-member small{color:#9eb0bd;font-size:15px}.mig-forum-group-profile-v920 .mig-forum-full-add{position:fixed;right:28px;bottom:28px;width:76px;height:76px;border-radius:50%;border:0;background:#3499f8;color:#fff;font-size:30px;box-shadow:0 10px 28px rgba(0,0,0,.35)}

/* MIG WEB v921: visible final forum group profile panel, not hidden by old v913/v914 rules */
.mig-forum-group-profile-v921{display:block!important;visibility:visible!important;pointer-events:auto!important;position:fixed!important;right:0!important;top:0!important;width:min(560px,100vw)!important;height:100vh!important;background:#0f1d27!important;color:#e9f2fb!important;z-index:2147483600!important;box-shadow:-12px 0 32px rgba(0,0,0,.38)!important;overflow:auto!important;border-left:1px solid rgba(255,255,255,.08)!important;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif!important;}
@media (max-width:760px){.mig-forum-group-profile-v921{left:0!important;right:0!important;width:100vw!important;}}
.mig-forum-group-profile-v921 *{box-sizing:border-box!important;}
.mig-forum-group-profile-v921 .mig-forum-full-top{height:84px!important;display:flex!important;align-items:center!important;gap:18px!important;padding:0 20px!important;background:#0d1822!important;font-size:24px!important;font-weight:700!important;position:sticky!important;top:0!important;z-index:2!important;}
.mig-forum-group-profile-v921 .mig-forum-gp-close,.mig-forum-group-profile-v921 .mig-forum-full-edit{width:52px!important;height:52px!important;border:0!important;border-radius:50%!important;background:#263541!important;color:#eaf3fb!important;font-size:34px!important;line-height:1!important;cursor:pointer!important;display:grid!important;place-items:center!important;}.mig-forum-group-profile-v921 .mig-forum-full-edit{margin-left:auto!important;font-size:24px!important;}
.mig-forum-group-profile-v921 .mig-forum-full-hero{position:relative!important;height:288px!important;background:#142635!important;overflow:hidden!important;}.mig-forum-group-profile-v921 .mig-forum-full-cover{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;}.mig-forum-group-profile-v921 .mig-forum-full-shade{position:absolute!important;inset:0!important;background:linear-gradient(180deg,rgba(0,0,0,.1),rgba(0,0,0,.78))!important;}.mig-forum-group-profile-v921 .mig-forum-full-title{position:absolute!important;left:22px!important;right:22px!important;bottom:54px!important;font-size:32px!important;font-weight:800!important;line-height:1.1!important;color:white!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}.mig-forum-group-profile-v921 .mig-forum-full-sub{position:absolute!important;left:22px!important;bottom:24px!important;font-size:20px!important;font-weight:700!important;color:#eef6ff!important;}
.mig-forum-group-profile-v921 .mig-forum-full-info{border-top:1px solid rgba(255,255,255,.08)!important;border-bottom:1px solid rgba(255,255,255,.08)!important;}.mig-forum-group-profile-v921 .mig-forum-full-row{display:flex!important;gap:22px!important;align-items:center!important;padding:18px 28px!important;border-bottom:1px solid rgba(255,255,255,.06)!important;background:transparent!important;}.mig-forum-group-profile-v921 .mig-forum-full-row:last-child{border-bottom:0!important;}.mig-forum-group-profile-v921 .mig-forum-full-row span{font-size:28px!important;width:30px!important;text-align:center!important;}.mig-forum-group-profile-v921 .mig-forum-full-row b{display:block!important;font-size:22px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}.mig-forum-group-profile-v921 .mig-forum-full-row small{display:block!important;color:#9eb0bd!important;font-size:18px!important;margin-top:4px!important;}.mig-forum-group-profile-v921 .mig-forum-full-tabs{display:flex!important;gap:14px!important;overflow-x:auto!important;padding:10px 28px 14px!important;border-bottom:1px solid rgba(255,255,255,.06)!important;}.mig-forum-group-profile-v921 .mig-forum-full-tabs button{border:1px solid rgba(255,255,255,.14)!important;background:#162735!important;color:#e8f2fa!important;border-radius:30px!important;padding:14px 24px!important;font-weight:700!important;font-size:20px!important;white-space:nowrap!important;}.mig-forum-group-profile-v921 .mig-forum-full-tabs button.active{background:#3396f6!important;border-color:#3396f6!important;color:white!important;}.mig-forum-group-profile-v921 .mig-forum-full-body{padding:24px 20px 120px!important;}.mig-forum-group-profile-v921 .mig-forum-full-admin-title{color:#68b8ff!important;font-weight:900!important;font-size:18px!important;margin:0 0 14px 8px!important;}.mig-forum-group-profile-v921 .mig-forum-full-member{display:flex!important;align-items:center!important;gap:16px!important;padding:12px 18px!important;border:1px solid rgba(255,255,255,.07)!important;border-radius:18px!important;margin:10px 0!important;background:#101f2b!important;}.mig-forum-group-profile-v921 .mig-forum-full-member img,.mig-forum-group-profile-v921 .mig-forum-full-member span{width:52px!important;height:52px!important;border-radius:50%!important;object-fit:cover!important;background:#34485a!important;display:flex!important;align-items:center!important;justify-content:center!important;font-weight:800!important;}.mig-forum-group-profile-v921 .mig-forum-full-member b{display:block!important;font-size:18px!important;}.mig-forum-group-profile-v921 .mig-forum-full-member small{color:#9eb0bd!important;font-size:15px!important;}.mig-forum-group-profile-v921 .mig-forum-full-add{position:fixed!important;right:28px!important;bottom:28px!important;width:76px!important;height:76px!important;border-radius:50%!important;border:0!important;background:#3499f8!important;color:#fff!important;font-size:30px!important;box-shadow:0 10px 28px rgba(0,0,0,.35)!important;}

/* MIG WEB v922: clean native-sized group profile opened from topics-list header and "Информация о группе" */
.mig-forum-native-group-profile-v922{display:block!important;visibility:visible!important;pointer-events:auto!important;position:fixed!important;right:0!important;top:0!important;bottom:0!important;width:440px!important;max-width:min(440px,100vw)!important;background:#0e1b25!important;color:#eaf2fb!important;z-index:2147483600!important;box-shadow:-12px 0 34px rgba(0,0,0,.42)!important;overflow-y:auto!important;border-left:1px solid rgba(255,255,255,.08)!important;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif!important;}
.mig-forum-native-group-profile-v922 *{box-sizing:border-box!important;}
.mig-forum-v922-close,.mig-forum-v922-edit{width:42px!important;height:42px!important;border:0!important;border-radius:999px!important;background:#2a3644!important;color:#edf6ff!important;font-size:31px!important;line-height:1!important;display:grid!important;place-items:center!important;cursor:pointer!important;flex:0 0 auto!important;}
.mig-forum-v922-edit{margin-left:auto!important;font-size:21px!important;}
.mig-forum-v922-hero{position:relative!important;height:150px!important;background:#132432!important;overflow:hidden!important;}
.mig-forum-v922-cover{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;}
.mig-forum-v922-shade{position:absolute!important;inset:0!important;background:linear-gradient(180deg,rgba(5,10,17,.03) 0%,rgba(5,10,17,.28) 42%,rgba(5,10,17,.88) 100%)!important;}
.mig-forum-v922-title{position:absolute!important;left:16px!important;right:16px!important;bottom:42px!important;font-size:24px!important;line-height:1.08!important;font-weight:900!important;color:#fff!important;text-shadow:0 2px 12px rgba(0,0,0,.65)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.mig-forum-v922-sub{position:absolute!important;left:16px!important;right:16px!important;bottom:18px!important;font-size:16px!important;font-weight:800!important;color:#fff!important;text-shadow:0 2px 10px rgba(0,0,0,.55)!important;}
.mig-forum-v922-info{border-top:1px solid rgba(255,255,255,.06)!important;border-bottom:1px solid rgba(255,255,255,.06)!important;background:#10202b!important;}
.mig-forum-v922-row{min-height:66px!important;display:flex!important;align-items:center!important;gap:18px!important;padding:12px 22px!important;border-bottom:1px solid rgba(255,255,255,.06)!important;background:transparent!important;}
.mig-forum-v922-row:last-child{border-bottom:0!important;}
.mig-forum-v922-row>span{width:27px!important;text-align:center!important;font-size:25px!important;flex:0 0 auto!important;}
.mig-forum-v922-row div{min-width:0!important;}
.mig-forum-v922-row b{display:block!important;font-size:18px!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#eaf2fb!important;}
.mig-forum-v922-row small{display:block!important;margin-top:4px!important;color:#96a8b9!important;font-size:14px!important;}
.mig-forum-v922-tabs{display:flex!important;gap:10px!important;overflow-x:auto!important;padding:10px 18px!important;background:#101b25!important;border-bottom:1px solid rgba(255,255,255,.06)!important;scrollbar-width:none!important;}
.mig-forum-v922-tabs::-webkit-scrollbar{display:none!important;}
.mig-forum-v922-tabs button{flex:0 0 auto!important;border:1px solid rgba(255,255,255,.12)!important;background:#172635!important;color:#dce8f5!important;border-radius:999px!important;padding:12px 18px!important;font-size:16px!important;font-weight:800!important;white-space:nowrap!important;}
.mig-forum-v922-tabs button.active{background:#2f95ff!important;border-color:#2f95ff!important;color:white!important;}
.mig-forum-v922-body{padding:18px 14px 110px!important;background:#101b25!important;min-height:360px!important;}
.mig-forum-v922-admin-title{color:#65b8ff!important;font-size:14px!important;font-weight:900!important;text-transform:uppercase!important;margin:0 10px 12px!important;}
.mig-forum-v922-member{height:70px!important;border:1px solid rgba(255,255,255,.06)!important;border-radius:14px!important;background:rgba(12,25,36,.74)!important;display:flex!important;align-items:center!important;gap:13px!important;padding:10px 14px!important;margin:8px 0!important;}
.mig-forum-v922-member img,.mig-forum-v922-member>span{width:46px!important;height:46px!important;border-radius:999px!important;object-fit:cover!important;display:grid!important;place-items:center!important;background:#38506a!important;color:#fff!important;font-size:18px!important;font-weight:900!important;flex:0 0 auto!important;}
.mig-forum-v922-member b{display:block!important;font-size:16px!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#edf5ff!important;}
.mig-forum-v922-member small{display:block!important;margin-top:3px!important;color:#91a2b4!important;font-size:13px!important;}
.mig-forum-v922-empty{padding:32px 18px!important;color:#91a2b4!important;font-size:16px!important;text-align:center!important;}
.mig-forum-v922-add{position:fixed!important;right:24px!important;bottom:24px!important;width:60px!important;height:60px!important;border:0!important;border-radius:999px!important;background:#2f95ff!important;color:#fff!important;font-size:25px!important;box-shadow:0 12px 34px rgba(47,149,255,.32)!important;z-index:2147483601!important;}
@media(max-width:760px){.mig-forum-native-group-profile-v922{left:0!important;right:0!important;width:100vw!important;max-width:100vw!important;}.mig-forum-v922-hero{height:180px!important;}.mig-forum-v922-title{font-size:27px!important;bottom:47px!important;}.mig-forum-v922-sub{font-size:17px!important;}.mig-forum-v922-add{right:max(22px,env(safe-area-inset-right))!important;bottom:max(22px,env(safe-area-inset-bottom))!important;}}


/* MIG WEB v924: final canonical forum group profile sizing/layout.
   Desktop: native right-side profile panel. Phones/tablets: modal overlay with same content. */
.mig-forum-native-group-profile-v922,.mig-forum-native-group-profile-v924{
  display:block!important;visibility:visible!important;pointer-events:auto!important;position:fixed!important;right:0!important;top:0!important;bottom:0!important;width:440px!important;max-width:min(440px,100vw)!important;background:#0e1b25!important;color:#eaf2fb!important;z-index:2147483600!important;box-shadow:-12px 0 34px rgba(0,0,0,.42)!important;overflow-y:auto!important;border-left:1px solid rgba(255,255,255,.08)!important;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif!important;border-radius:0!important;
}
.mig-forum-native-group-profile-v922 *,.mig-forum-native-group-profile-v924 *{box-sizing:border-box!important;}
.mig-forum-v922-close,.mig-forum-v922-edit{width:42px!important;height:42px!important;border:0!important;border-radius:999px!important;background:#2a3644!important;color:#edf6ff!important;font-size:31px!important;line-height:1!important;display:grid!important;place-items:center!important;cursor:pointer!important;flex:0 0 auto!important;}
.mig-forum-v922-edit{margin-left:auto!important;font-size:21px!important;}
.mig-forum-v922-hero{position:relative!important;height:150px!important;background:#132432!important;overflow:hidden!important;}
.mig-forum-v922-cover{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;}
.mig-forum-v922-shade{position:absolute!important;inset:0!important;background:linear-gradient(180deg,rgba(5,10,17,.03) 0%,rgba(5,10,17,.28) 42%,rgba(5,10,17,.88) 100%)!important;}
.mig-forum-v922-title{position:absolute!important;left:16px!important;right:16px!important;bottom:42px!important;font-size:24px!important;line-height:1.08!important;font-weight:900!important;color:#fff!important;text-shadow:0 2px 12px rgba(0,0,0,.65)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.mig-forum-v922-sub{position:absolute!important;left:16px!important;right:16px!important;bottom:18px!important;font-size:16px!important;font-weight:800!important;color:#fff!important;text-shadow:0 2px 10px rgba(0,0,0,.55)!important;}
.mig-forum-v922-info{border-top:1px solid rgba(255,255,255,.06)!important;border-bottom:1px solid rgba(255,255,255,.06)!important;background:#10202b!important;}
.mig-forum-v922-row{min-height:66px!important;display:flex!important;align-items:center!important;gap:18px!important;padding:12px 22px!important;border-bottom:1px solid rgba(255,255,255,.06)!important;background:transparent!important;}
.mig-forum-v922-row:last-child{border-bottom:0!important;}
.mig-forum-v922-row>span{width:27px!important;text-align:center!important;font-size:25px!important;flex:0 0 auto!important;}
.mig-forum-v922-row div{min-width:0!important;}
.mig-forum-v922-row b{display:block!important;font-size:18px!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#eaf2fb!important;}
.mig-forum-v922-row small{display:block!important;margin-top:4px!important;color:#96a8b9!important;font-size:14px!important;}
.mig-forum-v922-tabs{display:flex!important;gap:10px!important;overflow-x:auto!important;padding:10px 18px!important;background:#101b25!important;border-bottom:1px solid rgba(255,255,255,.06)!important;scrollbar-width:none!important;}
.mig-forum-v922-tabs::-webkit-scrollbar{display:none!important;}
.mig-forum-v922-tabs button{flex:0 0 auto!important;border:1px solid rgba(255,255,255,.12)!important;background:#172635!important;color:#dce8f5!important;border-radius:999px!important;padding:12px 18px!important;font-size:16px!important;font-weight:800!important;white-space:nowrap!important;}
.mig-forum-v922-tabs button.active{background:#2f95ff!important;border-color:#2f95ff!important;color:white!important;}
.mig-forum-v922-body{padding:18px 14px 110px!important;background:#101b25!important;min-height:360px!important;}
.mig-forum-v922-admin-title{color:#65b8ff!important;font-size:14px!important;font-weight:900!important;text-transform:uppercase!important;margin:0 10px 12px!important;}
.mig-forum-v922-member{height:70px!important;border:1px solid rgba(255,255,255,.06)!important;border-radius:14px!important;background:rgba(12,25,36,.74)!important;display:flex!important;align-items:center!important;gap:13px!important;padding:10px 14px!important;margin:8px 0!important;}
.mig-forum-v922-member img,.mig-forum-v922-member>span{width:46px!important;height:46px!important;border-radius:999px!important;object-fit:cover!important;display:grid!important;place-items:center!important;background:#38506a!important;color:#fff!important;font-size:18px!important;font-weight:900!important;flex:0 0 auto!important;}
.mig-forum-v922-member b{display:block!important;font-size:16px!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#edf5ff!important;}
.mig-forum-v922-member small{display:block!important;margin-top:3px!important;color:#91a2b4!important;font-size:13px!important;}
.mig-forum-v922-empty{padding:32px 18px!important;color:#91a2b4!important;font-size:16px!important;text-align:center!important;}
.mig-forum-v922-add{position:fixed!important;right:24px!important;bottom:24px!important;width:60px!important;height:60px!important;border:0!important;border-radius:999px!important;background:#2f95ff!important;color:#fff!important;font-size:25px!important;box-shadow:0 12px 34px rgba(47,149,255,.32)!important;z-index:2147483601!important;}
@media(max-width:900px){
  .mig-forum-native-group-profile-v922,.mig-forum-native-group-profile-v924{left:50%!important;right:auto!important;top:50%!important;bottom:auto!important;transform:translate(-50%,-50%)!important;width:min(440px,calc(100vw - 18px))!important;max-width:calc(100vw - 18px)!important;max-height:calc(100dvh - 18px)!important;border-radius:22px!important;border:1px solid rgba(255,255,255,.12)!important;box-shadow:0 20px 80px rgba(0,0,0,.68)!important;overflow:auto!important;}
  .mig-forum-native-group-profile-v922:before,.mig-forum-native-group-profile-v924:before{content:""!important;position:fixed!important;inset:-200vh!important;background:rgba(0,0,0,.46)!important;z-index:-1!important;}
  .mig-forum-v922-hero{height:170px!important;}
  .mig-forum-v922-title{font-size:25px!important;bottom:46px!important;}
  .mig-forum-v922-sub{font-size:16px!important;}
  .mig-forum-v922-add{position:sticky!important;float:right!important;right:auto!important;bottom:auto!important;margin:0 18px 18px auto!important;display:grid!important;place-items:center!important;}
}


/* MIG WEB v925: forum group profile uses native group profile topbar */
html body .mig-forum-native-group-profile-v925{
  position:fixed!important;top:0!important;right:0!important;bottom:0!important;z-index:2147482500!important;
  width:clamp(360px,32vw,430px)!important;max-width:430px!important;min-width:360px!important;
  background:#0f1720!important;color:#eef6ff!important;overflow:auto!important;border-left:1px solid rgba(255,255,255,.08)!important;
  box-shadow:-18px 0 38px rgba(0,0,0,.28)!important;
}
html body .mig-forum-native-group-profile-v925 .mig-peer-profile-topbar.mig-group-unified-topbar{
  display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;
  height:56px!important;min-height:56px!important;padding:0 12px!important;position:sticky!important;top:0!important;z-index:60!important;
  background:#101b25!important;border-bottom:1px solid rgba(255,255,255,.06)!important;
}
html body .mig-forum-native-group-profile-v925 .mig-peer-profile-topbar-title{
  min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  color:#edf5ff!important;font-size:18px!important;font-weight:800!important;line-height:1!important;text-align:left!important;
}
html body .mig-forum-native-group-profile-v925 .mig-peer-profile-close,
html body .mig-forum-native-group-profile-v925 .mig-group-unified-edit{
  width:38px!important;height:38px!important;min-width:38px!important;border-radius:999px!important;border:0!important;
  display:grid!important;place-items:center!important;background:#263340!important;color:#eaf3ff!important;font-size:28px!important;line-height:1!important;cursor:pointer!important;
}
html body .mig-forum-native-group-profile-v925 .mig-group-unified-edit{font-size:22px!important;}
html body .mig-forum-native-group-profile-v925 @media(max-width:900px){
  html body .mig-forum-native-group-profile-v925{left:0!important;right:0!important;width:100vw!important;max-width:100vw!important;min-width:0!important;border-left:0!important;border-radius:0!important;}
  html body .mig-forum-native-group-profile-v925 .mig-peer-profile-topbar.mig-group-unified-topbar{height:64px!important;min-height:64px!important;padding-left:max(14px,env(safe-area-inset-left))!important;padding-right:max(14px,env(safe-area-inset-right))!important;}
}

/* MIG WEB v926: forum group profile must use the real native group profile only.
   Hide/remove any legacy custom forum profile panels left from old patches. */
html body .mig-forum-native-group-profile-v922,
html body .mig-forum-native-group-profile-v924,
html body .mig-forum-native-group-profile-v925,
html body .mig-forum-group-profile-panel-v770,
html body .mig-forum-group-profile-v918-fallback,
html body .mig-forum-group-profile-v920,
html body .mig-forum-group-profile-v921,
html body .mig-forum-group-profile-v923{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}

/* MIG WEB v927: final forum column close rules */
html:not(.mig-tg-forum-mode) body .mig-tg-forum-column,
body .mig-tg-forum-column:not(.is-open){display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;}
html.mig-tg-forum-mode body .mig-tg-forum-column.is-open{visibility:visible!important;opacity:1!important;pointer-events:auto!important;}

/* ===== END mig-web-all.css ===== */

/* v1009 profile layout fixes */
html body .right-panel.mig-peer-profile-drawer,html body .right-panel-mobile.mig-peer-profile-drawer,html body .mig-peer-profile-drawer.mig-peer-profile-v98{z-index:2147483300!important;}
html body .right-panel.mig-peer-profile-drawer{position:relative!important;}
html body .right-panel-mobile.mig-peer-profile-drawer{position:fixed!important;}


/* MIG WEB v1010: pinned banner must stay inside chat column, not under/right profile panel */
.chat-panel{position:relative!important;overflow:hidden!important;}
.chat-panel .mig-pinned-message-bar,.chat-panel [class*=Pinned],.chat-panel [class*=pinned],.chat-panel .pinned-banner{max-width:100%!important;left:0!important;right:0!important;width:auto!important;box-sizing:border-box!important;}
.right-panel .mig-pinned-message-bar,.right-panel [class*=Pinned],.right-panel [class*=pinned]{display:none!important;}
html.mig-right-profile-closed-v1010 body .right-panel,body.mig-right-profile-closed-v1010 .right-panel{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;padding:0!important;border:0!important;width:0!important;min-width:0!important;max-width:0!important;}
html.mig-right-profile-closed-v1010 body .app-shell,body .app-shell.mig-right-profile-closed-v1010{grid-template-columns:clamp(260px,25vw,380px) minmax(0,1fr) 0px!important;}
@media(max-width:1180px){html.mig-right-profile-closed-v1010 body .app-shell,body .app-shell.mig-right-profile-closed-v1010{grid-template-columns:minmax(270px,34vw) 1fr!important;}}
@media(max-width:820px){html.mig-right-profile-closed-v1010 body .app-shell,body .app-shell.mig-right-profile-closed-v1010{grid-template-columns:1fr!important;}}
