:root{font-family:system-ui,Segoe UI,Roboto,sans-serif;line-height:1.5;font-weight:400;color:#e8e8ef;background-color:#0e1621;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*,*:before,*:after{box-sizing:border-box}html{height:100%;min-height:-webkit-fill-available;overflow:hidden;-webkit-text-size-adjust:100%;text-size-adjust:100%;color-scheme:dark}body{margin:0;height:100%;min-height:100svh;min-height:-webkit-fill-available;display:flex;flex-direction:column;overflow:hidden;overscroll-behavior:none;overscroll-behavior-y:contain;touch-action:manipulation;-webkit-tap-highlight-color:transparent}#root{flex:1 1 auto;min-height:0;min-height:100svh;min-height:-webkit-fill-available;display:flex;flex-direction:column;overflow:hidden;width:100%;max-width:100vw;position:relative}@media(display-mode:standalone),(display-mode:fullscreen){html,body{height:100%;max-height:100%;min-height:100%}#root{flex:1 1 auto;min-height:0;height:100%;max-height:100%;min-height:100%}}button{font:inherit;cursor:pointer}input{font:inherit}@media(max-width:768px){html{font-size:106.25%}}@media(max-width:768px){#root input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=button]):not([type=submit]):not([type=reset]),#root textarea,#root select{font-size:max(17px,1rem)!important}}:root{--tg-bg: #0e1621;--tg-bg-secondary: #17212b;--tg-bg-elevated: #242f3d;--tg-border: #2b5278;--tg-accent: #5288c1;--tg-accent-hover: #6ab3f8;--tg-text: #f5f5f5;--tg-text-secondary: #8eb2cd;--tg-bubble-in: #182533;--tg-bubble-out: #2b5278;--tg-safe-bottom: env(safe-area-inset-bottom, 0px);--tg-safe-top: env(safe-area-inset-top, 0px);--tg-header-h: 56px;--tg-header-offset: calc(var(--tg-header-h) + var(--tg-safe-top))}html,body,#root{background-color:var(--tg-bg)}.tg-app{flex:1;display:flex;flex-direction:column;min-height:0;width:100%;max-width:100vw;overflow:hidden;background:var(--tg-bg);color:var(--tg-text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;isolation:isolate}@media(display-mode:standalone),(display-mode:fullscreen){.tg-app{flex:1 1 auto;min-height:0;height:100%}}.tg-header{flex-shrink:0;position:fixed;top:0;left:0;right:0;z-index:50;box-sizing:border-box;height:var(--tg-header-offset);min-height:var(--tg-header-offset);max-width:100vw;padding:0 .5rem 0 calc(.75rem + env(safe-area-inset-left,0px));padding-right:calc(.5rem + env(safe-area-inset-right,0px));padding-top:var(--tg-safe-top);background:var(--tg-bg-secondary);border-bottom:1px solid rgba(43,82,120,.35);display:flex;align-items:center;justify-content:space-between;gap:.5rem;box-shadow:0 1px #00000040;transform:translateZ(0);backface-visibility:hidden}.tg-call-error-banner{position:fixed;top:var(--tg-header-offset);left:0;right:0;z-index:45;display:flex;align-items:center;gap:.65rem;padding:.55rem .75rem;padding-left:calc(.75rem + env(safe-area-inset-left,0px));padding-right:calc(.75rem + env(safe-area-inset-right,0px));background:#1e293bf7;border-bottom:1px solid rgba(248,113,113,.35);color:#fecaca}.tg-missed-call-banner{display:flex;align-items:center;gap:.55rem;flex-shrink:0;padding:.45rem .65rem;padding-left:calc(.75rem + env(safe-area-inset-left,0px));padding-right:calc(.65rem + env(safe-area-inset-right,0px));background:linear-gradient(90deg,#b4530938,#1e1b2deb);border-bottom:1px solid rgba(251,191,36,.35);color:var(--tg-text, #e8e8ef)}.tg-missed-call-banner__icon{font-size:1.15rem;line-height:1;flex-shrink:0}.tg-missed-call-banner__text{flex:1;min-width:0;display:flex;flex-direction:column;gap:.08rem}.tg-missed-call-banner__title{font-weight:600;font-size:.84rem;letter-spacing:-.01em}.tg-missed-call-banner__time{font-size:.76rem;color:var(--tg-text-secondary, #a8a8b8)}.tg-missed-call-banner__actions{display:flex;align-items:center;gap:.25rem;flex-shrink:0}.tg-missed-call-banner__call{padding:.28rem .5rem!important;font-size:.78rem!important}.tg-missed-call-banner__close{border:none;background:transparent;color:var(--tg-text-secondary, #a8a8b8);font-size:1.35rem;line-height:1;padding:.15rem .35rem;border-radius:6px;cursor:pointer}.tg-missed-call-banner__close:hover{color:var(--tg-text, #fff);background:#ffffff0f}.tg-header-logo{width:40px;height:40px;flex-shrink:0;border-radius:10px;object-fit:contain;display:block}.tg-header-title{font-weight:600;font-size:1.05rem;letter-spacing:-.02em}.tg-chat-title-press{-webkit-user-select:none;user-select:none;touch-action:manipulation;cursor:pointer}.tg-back{width:40px;height:40px;border:none;border-radius:50%;background:transparent;color:var(--tg-accent-hover);font-size:1.35rem;line-height:1;display:flex;align-items:center;justify-content:center;flex-shrink:0}.tg-back:active{background:#ffffff0f}.tg-header-actions{display:flex;align-items:center;gap:.35rem;min-width:0}button.tg-header-search-icon{flex-shrink:0;border:none;background:transparent;padding:.28rem .32rem;margin:0;font-size:1.08rem;line-height:1;color:var(--tg-text-secondary);cursor:pointer;border-radius:10px;-webkit-tap-highlight-color:transparent}button.tg-header-search-icon:active{opacity:.72}button.tg-header-search-thread{flex-shrink:0;border:none;background:transparent;color:var(--tg-text-secondary);padding:.22rem .4rem;font-size:.82rem;font-weight:600;cursor:pointer;border-radius:8px;-webkit-tap-highlight-color:transparent}button.tg-header-search-thread:active{opacity:.75}.tg-header-call-wrap{flex-shrink:0;margin-right:.45rem}@media(min-width:769px){.tg-header-call-wrap{margin-right:.55rem}}.tg-header-meta{font-size:.72rem;color:var(--tg-text-secondary);line-height:1.25;text-align:right;max-width:140px;overflow:hidden}.tg-header-avatar-btn{padding:0;margin:0;border:none;background:transparent;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}.tg-header-avatar-btn:active{opacity:.85}.tg-header-avatar-btn:focus-visible{outline:2px solid var(--tg-accent-hover);outline-offset:2px}.tg-header-scan-btn{flex-shrink:0;padding:.35rem .5rem;font-size:.82rem;font-weight:600;border-radius:10px;white-space:nowrap}@media(max-width:380px){.tg-header-scan-btn{padding:.32rem .4rem;font-size:.76rem}}.tg-qr-scan-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:130;background:#000000b8;display:flex;align-items:center;justify-content:center;padding:1rem;padding-bottom:calc(1rem + var(--tg-safe-bottom));padding-top:calc(1rem + var(--tg-safe-top));box-sizing:border-box}.tg-qr-scan-modal{width:100%;max-width:400px;background:var(--tg-bg-secondary);border-radius:14px;border:1px solid rgba(43,82,120,.45);padding:1rem;max-height:min(90dvh,640px);overflow-y:auto;box-shadow:0 16px 48px #00000073}.tg-qr-scan-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.35rem}.tg-qr-scan-title{margin:0;font-size:1.05rem;font-weight:600}.tg-qr-scan-close{flex-shrink:0;width:2.25rem;height:2.25rem;border:none;border-radius:10px;background:#ffffff14;color:var(--tg-text);font-size:1.35rem;line-height:1;cursor:pointer}.tg-qr-scan-close:hover{background:#ffffff1f}.tg-qr-scan-hint{font-size:.8rem;color:var(--tg-text-secondary);line-height:1.45;margin:0 0 .75rem}.tg-qr-scan-video-wrap{position:relative;background:#0a0f14;border-radius:12px;overflow:hidden;aspect-ratio:1;max-height:min(52dvh,320px);margin:0 auto}.tg-qr-scan-video{display:block;width:100%;height:100%;object-fit:cover}.tg-qr-scan-canvas{display:none}.tg-qr-scan-err{color:#f87171;font-size:.8rem;margin:.5rem 0 0;line-height:1.35}.tg-qr-scan-actions{display:flex;flex-direction:column;gap:.5rem;margin-top:.85rem}.tg-qr-scan-file-input{display:none}.tg-body{flex:1;display:flex;min-height:0;min-width:0;width:100%;max-width:100vw;overflow:hidden;padding-top:var(--tg-header-offset)}.tg-body.tg-body--call-banner{padding-top:calc(var(--tg-header-offset) + 2.85rem)}@media(min-width:769px){.tg-sidebar{width:min(380px,38vw);flex-shrink:0;border-right:1px solid rgba(43,82,120,.35);display:flex;flex-direction:column;min-width:280px;background:var(--tg-bg-secondary)}.tg-main{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;background:var(--tg-bg)}}@media(max-width:768px){.tg-sidebar{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;width:100%;max-width:100vw;overflow:hidden;background:var(--tg-bg-secondary)}.tg-main{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;width:100%;max-width:100vw;overflow:hidden;background:var(--tg-bg)}.tg-main.tg-hidden-mobile,.tg-sidebar.tg-hidden-mobile{display:none!important}.tg-header-actions .tg-btn-ghost{padding:.48rem .62rem;font-size:.82rem}.tg-header-actions{gap:.15rem}.tg-header-call-wrap{margin-right:.15rem}.tg-header-meta{display:none}.tg-header{padding-left:calc(.65rem + env(safe-area-inset-left,0px));padding-right:calc(.75rem + env(safe-area-inset-right,0px))}.tg-back{width:44px;height:44px;font-size:1.48rem}.tg-header-logo{width:44px;height:44px}.tg-tab{padding:.72rem .45rem;font-size:.9rem}.tg-composer-sticker-inline{width:2.25rem;height:2.25rem}.tg-input-msg{font-size:16px}.tg-app .tg-search,.tg-app .tg-input-msg{font-size:max(17px,1rem)!important}}.tg-sidebar-tabs{display:flex;flex-shrink:0}.tg-admin-subtabs{background:#00000024}.tg-admin-subtabs .tg-tab{font-size:.8rem;padding:.52rem .35rem}.tg-tabs{display:flex;border-bottom:1px solid rgba(43,82,120,.25);flex-shrink:0}.tg-tab{flex:1;padding:.65rem .4rem;border:none;background:transparent;color:var(--tg-text-secondary);font-size:.85rem;font-weight:500;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:.35rem;flex-wrap:wrap;min-width:0}.tg-tab-label{min-width:0}.tg-tab-badge{flex-shrink:0;min-width:1.15rem;padding:.12rem .38rem;border-radius:999px;font-size:.68rem;font-weight:800;line-height:1.2;background:var(--tg-accent);color:#fff}.tg-tab.tg-active{color:var(--tg-accent-hover);box-shadow:inset 0 -2px 0 var(--tg-accent)}.tg-admin-stickers.tg-list{padding:.5rem .65rem .9rem;box-sizing:border-box}.tg-admin-stickers-help{margin:0 0 .65rem;border-radius:10px;border:1px solid rgba(43,82,120,.35);background:#5288c114;padding:.45rem .65rem;font-size:.8rem;color:var(--tg-text-secondary);line-height:1.45}.tg-admin-stickers-help summary{cursor:pointer;font-weight:600;color:var(--tg-text);list-style:none;padding:.2rem 0}.tg-admin-stickers-help summary::-webkit-details-marker{display:none}.tg-admin-stickers-help summary:before{content:"▸ ";opacity:.75}.tg-admin-stickers-help[open] summary:before{content:"▾ "}.tg-admin-stickers-help p{margin:.5rem 0 .1rem}.tg-admin-stickers-code{font-size:.78rem;padding:.08rem .22rem;border-radius:6px;background:#00000040}.tg-admin-stickers-alert{margin:0 0 .65rem;padding:.55rem .65rem;border-radius:10px;background:#f871711f;border:1px solid rgba(248,113,113,.35);color:#f87171;font-size:.86rem;line-height:1.35}.tg-admin-stickers-card{padding:.75rem .65rem;border-radius:14px;border:1px solid rgba(43,82,120,.4);background:linear-gradient(165deg,#5288c124,#00000014);margin-bottom:1rem}.tg-admin-stickers-card-title{margin:0 0 .65rem;font-size:.98rem;font-weight:700;letter-spacing:.01em}.tg-admin-stickers-field{display:block;margin-bottom:.75rem}.tg-admin-stickers-label{display:block;font-size:.84rem;font-weight:600;margin-bottom:.2rem}.tg-admin-stickers-field-hint{display:block;font-size:.72rem;color:var(--tg-text-secondary);margin-bottom:.35rem;line-height:1.3}.tg-admin-stickers-input{display:block;width:100%;box-sizing:border-box}.tg-admin-stickers-toggle{display:flex;align-items:flex-start;gap:.55rem;margin-bottom:.85rem;cursor:pointer;font-size:.84rem;line-height:1.35;padding:.35rem 0;-webkit-tap-highlight-color:transparent}.tg-admin-stickers-checkbox{width:1.15rem;height:1.15rem;margin-top:.12rem;flex-shrink:0;accent-color:var(--tg-accent-hover)}.tg-admin-stickers-file-block{position:relative;margin-bottom:.85rem;border-radius:14px;transition:box-shadow .12s ease}.tg-admin-stickers-file-block--drop{box-shadow:0 0 0 2px var(--tg-accent-hover)}.tg-admin-stickers-file-block--drop .tg-admin-stickers-dropzone{border-color:var(--tg-accent-hover);background:#5288c129}.tg-admin-stickers-file-block--drop .tg-admin-stickers-picked{outline:2px dashed var(--tg-accent-hover);outline-offset:2px;border-radius:12px}.tg-admin-stickers-file-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;pointer-events:none}.tg-admin-stickers-dropzone{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.25rem;min-height:7.5rem;padding:1rem .75rem;border-radius:12px;border:2px dashed rgba(82,136,193,.55);background:#00000026;color:var(--tg-text);cursor:pointer;font-family:inherit;-webkit-tap-highlight-color:transparent;transition:border-color .12s ease,background .12s ease}.tg-admin-stickers-dropzone:hover{border-color:var(--tg-accent-hover);background:#5288c11a}.tg-admin-stickers-dropzone:active{transform:scale(.99)}.tg-admin-stickers-dropzone-icon{font-size:2rem;font-weight:300;line-height:1;opacity:.9}.tg-admin-stickers-dropzone-title{font-size:.95rem;font-weight:700}.tg-admin-stickers-dropzone-sub{font-size:.78rem;color:var(--tg-text-secondary);text-align:center;max-width:16rem;line-height:1.35}.tg-admin-stickers-picked{display:flex;flex-direction:column;gap:.5rem}.tg-admin-stickers-preview{border-radius:12px;overflow:hidden;background:#00000040;display:flex;align-items:center;justify-content:center;max-height:160px}.tg-admin-stickers-preview-media{max-width:100%;max-height:160px;width:auto;height:auto;object-fit:contain;vertical-align:middle}.tg-admin-stickers-picked-meta{display:flex;flex-direction:column;gap:.15rem}.tg-admin-stickers-picked-name{font-size:.86rem;font-weight:600;word-break:break-word}.tg-admin-stickers-picked-size{font-size:.76rem;color:var(--tg-text-secondary)}.tg-admin-stickers-derived-id{display:flex;flex-wrap:wrap;align-items:baseline;gap:.35rem .5rem;padding:.45rem .5rem;border-radius:10px;background:#0003;font-size:.82rem;line-height:1.35}.tg-admin-stickers-derived-id-label{font-weight:600;color:var(--tg-text-secondary)}.tg-admin-stickers-derived-id-code{font-size:.88rem;font-weight:700;padding:.12rem .35rem;border-radius:6px;background:#5288c138;color:var(--tg-accent-hover)}.tg-admin-stickers-derived-id-hint{font-size:.72rem;color:var(--tg-text-secondary)}.tg-admin-stickers-picked-actions{display:flex;flex-wrap:wrap;gap:.4rem}.tg-admin-stickers-picked-btn{min-height:44px;padding:.45rem .65rem!important;font-size:.86rem!important}.tg-admin-stickers-submit{width:100%;min-height:48px;font-size:.95rem!important;font-weight:600!important;padding:.65rem 1rem!important}.tg-admin-stickers-library-title{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin:0 0 .45rem;font-size:.9rem;font-weight:700}.tg-admin-stickers-library-count{min-width:1.5rem;padding:.1rem .4rem;border-radius:999px;font-size:.72rem;font-weight:800;background:#5288c159;color:var(--tg-text);text-align:center}.tg-admin-stickers-empty{margin-top:.25rem!important}.tg-admin-stickers-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.35rem}.tg-admin-stickers-row{display:flex;align-items:center;gap:.55rem;padding:.5rem;border-radius:12px;border:1px solid rgba(255,255,255,.06);background:#0000001f}.tg-admin-stickers-row-preview{width:52px;height:52px;flex-shrink:0;border-radius:10px;background:#00000040;overflow:hidden;display:flex;align-items:center;justify-content:center}.tg-admin-stickers-row-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:.12rem}.tg-admin-stickers-row-id{font-weight:700;font-size:.9rem}.tg-admin-stickers-row-src{font-size:.72rem}.tg-admin-stickers-row-delete{flex-shrink:0;min-height:44px;min-width:44px;padding:.4rem .55rem!important;font-size:.82rem!important}.tg-toolbar{padding:.5rem .65rem;display:flex;gap:.4rem;flex-shrink:0}.tg-botfather-shortcut{padding:0 .65rem .5rem;flex-shrink:0}.tg-botfather-shortcut__btn{width:100%;display:flex;align-items:center;gap:.55rem;padding:.5rem .65rem;border-radius:12px;border:1px solid rgba(43,82,120,.55);background:#5288c11f;color:var(--tg-text);cursor:pointer;text-align:left;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.tg-botfather-shortcut__btn:hover{background:#5288c12e}.tg-botfather-shortcut__btn:active{filter:brightness(1.05)}.tg-botfather-shortcut__icon{font-size:1.35rem;line-height:1;flex-shrink:0}.tg-botfather-shortcut__text{display:flex;flex-direction:column;gap:.12rem;min-width:0}.tg-botfather-shortcut__title{font-weight:700;font-size:.88rem}.tg-botfather-shortcut__sub{font-size:.72rem;color:var(--tg-text-secondary);line-height:1.3}.tg-btn-primary{flex:1;padding:.55rem .75rem;border-radius:10px;border:none;background:var(--tg-accent);color:#fff;font-weight:600;font-size:.88rem;cursor:pointer}.tg-btn-primary:active{filter:brightness(1.08)}.tg-btn-ghost{padding:.45rem .65rem;border-radius:10px;border:1px solid rgba(43,82,120,.6);background:transparent;color:var(--tg-text-secondary);font-size:.82rem;cursor:pointer}.tg-search{width:100%;padding:.55rem .75rem;border-radius:10px;border:none;background:var(--tg-bg);color:var(--tg-text);font-size:.9rem}.tg-search::placeholder{color:var(--tg-text-secondary);opacity:.75}.tg-list{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y}.tg-ptr-spacer{display:flex;align-items:center;justify-content:center;overflow:hidden;transition:height .08s ease-out}.tg-ptr-spacer__text{font-size:.78rem;color:var(--tg-text-secondary);margin-top:.15rem}.tg-chat-row-avatar-btn{padding:0;margin:0;border:none;background:transparent;border-radius:50%;cursor:pointer;display:flex;flex-shrink:0;align-items:center;justify-content:center}.tg-chat-row-avatar-btn:active{opacity:.88}.tg-chat-row-avatar-btn:focus-visible{outline:2px solid var(--tg-accent-hover);outline-offset:2px}.tg-chat-row-avatar-static{display:flex;flex-shrink:0;align-items:center;justify-content:center}.tg-chat-row{width:100%;text-align:left;padding:.65rem .85rem;border:none;border-bottom:1px solid rgba(255,255,255,.04);background:transparent;color:inherit;cursor:pointer;display:flex;gap:.65rem;align-items:flex-start}.tg-chat-row:active,.tg-chat-row.tg-selected{background:#5288c11f}.tg-chat-row--group{border-left:3px solid rgba(167,139,250,.65);padding-left:calc(.85rem - 3px);background:#6366f112}.tg-chat-row--group:active,.tg-chat-row--group.tg-selected{background:#6366f129}.tg-chat-row--pinned{background:#5288c11a}.tg-chat-row--pinned.tg-selected,.tg-chat-row--pinned:active{background:#5288c12e}.tg-chat-pin-icon{flex-shrink:0;font-size:.72rem;line-height:1;opacity:.88}.tg-chat-swipe{position:relative;width:100%;overflow:hidden;flex-shrink:0;border-bottom:1px solid rgba(255,255,255,.04)}.tg-chat-swipe-actions{position:absolute;right:0;top:0;bottom:0;display:flex;flex-direction:row-reverse;align-items:stretch;width:168px;z-index:0}.tg-chat-swipe-act{flex:1;min-width:0;border:none;padding:0 .2rem;font-size:.68rem;font-weight:700;line-height:1.15;cursor:pointer;color:#fff}.tg-chat-swipe-act--danger{background:#b91c1c}.tg-chat-swipe-act--edit{background:#355a8a}.tg-chat-swipe-act--pin{background:#4a5568}.tg-chat-swipe-act:disabled{opacity:.45;cursor:not-allowed}.tg-chat-swipe-front{position:relative;z-index:1;transition:transform .2s ease-out;will-change:transform;touch-action:pan-y;box-sizing:border-box}.tg-chat-swipe-front.tg-chat-row{border-bottom:none}.tg-chat-swipe-front--drag{transition:none}.tg-chat-swipe-front.tg-chat-row{background-color:var(--tg-bg-secondary)}.tg-chat-swipe-front.tg-chat-row--group:not(.tg-chat-row--pinned){background-image:linear-gradient(#6366f112,#6366f112)}.tg-chat-swipe-front.tg-chat-row--pinned:not(.tg-chat-row--group):not(.tg-selected){background-image:linear-gradient(#5288c11a,#5288c11a)}.tg-chat-swipe-front.tg-chat-row--pinned.tg-chat-row--group:not(.tg-selected){background-image:linear-gradient(#5288c11a,#5288c11a)}.tg-chat-swipe-front.tg-chat-row.tg-selected:not(.tg-chat-row--group){background-image:linear-gradient(#5288c11f,#5288c11f)}.tg-chat-swipe-front.tg-chat-row--group.tg-selected:not(.tg-chat-row--pinned){background-image:linear-gradient(#6366f129,#6366f129)}.tg-chat-swipe-front.tg-chat-row--pinned.tg-selected:not(.tg-chat-row--group){background-image:linear-gradient(#5288c12e,#5288c12e)}.tg-chat-swipe-front.tg-chat-row--pinned.tg-chat-row--group.tg-selected{background-image:linear-gradient(#5288c12e,#5288c12e)}.tg-avatar-ph--group{border-radius:14px;background:linear-gradient(145deg,#4f46e5,#7c3aed 55%,#a78bfa);font-size:1.25rem;line-height:1;box-shadow:0 2px 8px #4f46e559}.tg-avatar{width:48px;height:48px;border-radius:50%;object-fit:cover;flex-shrink:0;background:var(--tg-bg-elevated)}.tg-avatar-ph{width:48px;height:48px;border-radius:50%;background:var(--tg-accent);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1.1rem;flex-shrink:0}.tg-chat-row-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:.12rem}.tg-chat-row-line1{display:flex;align-items:flex-start;justify-content:space-between;gap:.5rem;min-width:0}.tg-chat-row-meta{flex-shrink:0;display:flex;align-items:center;gap:.35rem}.tg-chat-row-time{font-size:.68rem;color:var(--tg-text-secondary);opacity:.9;white-space:nowrap}.tg-unread-badge{min-width:1.15rem;padding:.1rem .38rem;border-radius:999px;font-size:.68rem;font-weight:800;line-height:1.2;background:var(--tg-accent);color:#fff}.tg-chat-row-title{font-weight:600;font-size:.95rem;display:flex;align-items:center;gap:.35rem;min-width:0;flex:1}.tg-chat-row-title-text--unread{font-weight:700}.tg-badge-group{font-size:.62rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#ddd6fe;background:#8b5cf659;border:1px solid rgba(167,139,250,.45);padding:.15rem .45rem;border-radius:6px;flex-shrink:0;line-height:1.2}.tg-chat-row-preview{font-size:.8rem;color:var(--tg-text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tg-chat-row-preview--unread{color:var(--tg-text);font-weight:600}.tg-chat-row-preview--missed{color:#fb923c}.tg-thread-head{flex-shrink:0;padding:.5rem .75rem;padding-left:calc(.75rem + env(safe-area-inset-left,0px));padding-right:calc(.75rem + env(safe-area-inset-right,0px));border-bottom:1px solid rgba(43,82,120,.35);background:var(--tg-bg-secondary);display:flex;align-items:center;justify-content:space-between;gap:.5rem;max-width:100vw;box-sizing:border-box}.tg-thread-title{font-weight:600;font-size:1rem}.tg-thread-sub{font-size:.78rem;color:var(--tg-text-secondary);margin-top:.1rem}.tg-messages{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:.65rem .75rem;padding-left:calc(.75rem + env(safe-area-inset-left,0px));padding-right:calc(.75rem + env(safe-area-inset-right,0px));display:flex;flex-direction:column;gap:.35rem;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;background:var(--tg-bg)}.tg-msg-wrap{display:flex;flex-direction:row;align-items:flex-end;gap:.28rem;min-width:0;width:100%;max-width:min(100%,480px);box-sizing:border-box;align-self:flex-start;content-visibility:auto;contain-intrinsic-size:72px 1px;transform-origin:50% 45%;backface-visibility:hidden}.tg-msg-wrap--out{align-self:flex-end;flex-direction:row-reverse}.tg-msg-wrap--highlight{animation:tg-msg-wrap-highlight 1.35s ease-out;border-radius:14px}@keyframes tg-msg-wrap-highlight{0%{box-shadow:0 0 #5288c100}18%{box-shadow:0 0 0 3px #5288c18c}to{box-shadow:0 0 #5288c100}}.tg-msg-day-sep{align-self:stretch;display:flex;justify-content:center;width:100%;margin:.4rem 0 .25rem;flex-shrink:0}.tg-msg-day-sep span{font-size:.72rem;font-weight:600;color:var(--tg-text-secondary);padding:.22rem .75rem;border-radius:999px;background:#ffffff12;line-height:1.2}.tg-msg-wrap .tg-msg{max-width:min(calc(100% - 2.75rem),420px);min-width:0;flex:0 1 auto;width:fit-content}.tg-msg-avatar{flex-shrink:0;width:32px;height:32px;border-radius:50%;overflow:hidden;background:var(--tg-bg-elevated);align-self:flex-end;margin-bottom:.12rem}.tg-msg-avatar-btn{display:block;width:100%;height:100%;padding:0;margin:0;border:none;border-radius:50%;background:transparent;cursor:pointer;overflow:hidden}.tg-msg-avatar-btn:active{opacity:.88}.tg-msg-avatar-img{width:100%;height:100%;object-fit:cover;display:block}.tg-msg-avatar-ph{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:700;color:#fff;background:linear-gradient(145deg,#3b6ea5,#2d4a6e)}.tg-msg-wrap--out .tg-msg-avatar-ph{background:linear-gradient(145deg,#4f8fd4,#355a8a)}.tg-msg-name-row{display:flex;align-items:center;flex-wrap:wrap;gap:.25rem;margin-bottom:.12rem}.tg-msg-friend-plus{display:inline-flex;align-items:center;justify-content:center;min-width:.95rem;height:.95rem;padding:0 .12rem;border-radius:4px;font-size:.62rem;font-weight:800;line-height:1;color:#fff;background:linear-gradient(135deg,#22c55e,#16a34a);flex-shrink:0}.tg-msg{max-width:min(78%,420px);padding:.45rem .65rem .35rem;border-radius:12px 12px 4px;font-size:.92rem;line-height:1.4;align-self:flex-start;background:var(--tg-bubble-in);user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:manipulation}.tg-msg.tg-out{align-self:flex-end;border-radius:12px 12px 12px 4px;background:var(--tg-bubble-out)}.tg-msg.tg-msg--sticker-only{padding:0;background:transparent!important;box-shadow:none;border-radius:0}.tg-msg.tg-msg--sticker-only .tg-msg-sticker-wrap{margin:0 0 .15rem}.tg-msg.tg-msg--sticker-only .tg-msg-sticker-img,.tg-msg.tg-msg--sticker-only video.tg-msg-sticker-img{border-radius:0;box-shadow:none;outline:none}.tg-msg-reply{display:flex;align-items:stretch;gap:.35rem;margin-bottom:.35rem;max-width:100%;min-width:0;border:none;padding:0;background:transparent;color:inherit;font:inherit;text-align:left;width:100%;cursor:pointer;border-radius:8px;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.tg-msg-reply:hover{background:#ffffff0a}.tg-msg-reply:focus-visible{outline:2px solid var(--tg-accent);outline-offset:2px}.tg-msg-reply-bar{flex-shrink:0;width:3px;border-radius:2px;background:var(--tg-accent);opacity:.85}.tg-msg-reply-inner{display:flex;flex-direction:column;gap:.08rem;min-width:0}.tg-msg-reply-name{font-size:.68rem;font-weight:700;color:var(--tg-accent-hover);line-height:1.2}.tg-msg-reply-preview{font-size:.72rem;line-height:1.25;color:var(--tg-text-secondary);opacity:.95;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tg-msg-text{user-select:text;-webkit-user-select:text;white-space:pre-wrap;word-break:break-word}@media(hover:none)and (pointer:coarse){.tg-msg-text{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.tg-msg-name-row,.tg-msg-meta{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}}.tg-msg-text .tg-msg-link{color:var(--tg-accent-hover, #6ab3f8);text-decoration:underline;text-underline-offset:.12em;word-break:break-all;cursor:pointer;-webkit-tap-highlight-color:transparent}.tg-msg-text .tg-msg-link:active{opacity:.82}.tg-msg.tg-out .tg-msg-text .tg-msg-link{color:#b8d9ff}.tg-msg.tg-out .tg-msg-text .tg-msg-link:active{opacity:.88}.tg-msg-name{font-size:.7rem;color:var(--tg-accent-hover);margin-bottom:0}.tg-msg-meta{display:flex;align-items:center;justify-content:flex-end;gap:.28rem;margin-top:.2rem}.tg-msg-reactions{display:flex;flex-wrap:wrap;gap:.28rem;margin-top:.38rem;justify-content:flex-end}.tg-msg-reaction-pill{display:inline-flex;align-items:center;gap:.22rem;padding:.12rem .42rem;border-radius:999px;border:1px solid rgba(43,82,120,.55);background:#0000001f;color:inherit;font-size:inherit;cursor:pointer;line-height:1.15;-webkit-tap-highlight-color:transparent}.tg-msg-reaction-pill--self{border-color:#6ab3f88c;background:#5288c138}.tg-msg-reaction-pill:hover{filter:brightness(1.08)}.tg-msg-reaction-pill:active{filter:brightness(1.14)}.tg-msg-reaction-emoji{font-size:1.05rem;line-height:1}.tg-msg-reaction-count{font-size:.68rem;font-weight:700;opacity:.88;min-width:.75rem;text-align:center}.tg-msg-context-reactions{display:flex;flex-wrap:wrap;gap:.25rem;padding:.4rem .5rem .45rem;border-bottom:1px solid rgba(43,82,120,.38)}.tg-msg-context-emoji{width:2.1rem;height:2.1rem;padding:0;border:none;border-radius:8px;background:#ffffff12;font-size:1.2rem;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.tg-msg-context-emoji:hover{background:#ffffff1f}.tg-msg-time{font-size:.65rem;opacity:.65}.tg-msg-edited{font-size:.6rem;opacity:.55;margin-right:.15rem}.tg-msg-context-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1200;background:transparent}.tg-msg-context-menu{position:fixed;z-index:1201;min-width:188px;max-width:calc(100vw - 16px);padding:.35rem 0;border-radius:12px;background:var(--tg-bg-secondary);border:1px solid rgba(43,82,120,.45);box-shadow:0 8px 28px #00000059;box-sizing:border-box;-webkit-overflow-scrolling:touch}.tg-msg-context-item{display:block;width:100%;padding:.55rem 1rem;border:none;background:transparent;color:var(--tg-text);font-size:.9rem;text-align:left;cursor:pointer}.tg-msg-context-item:hover{background:#ffffff0f}.tg-msg-context-item:disabled{opacity:.45;cursor:not-allowed}.tg-msg-context-item--danger{color:#f87171}.tg-msg-receipt{font-size:.68rem;line-height:1;flex-shrink:0;-webkit-user-select:none;user-select:none}.tg-msg-receipt--sent{opacity:.55;color:#ffffffbf}.tg-msg.tg-out .tg-msg-receipt--sent{color:#ffffffb8}.tg-msg-receipt--read{display:inline-flex;align-items:center;opacity:.95;color:var(--tg-accent-hover)}.tg-msg-receipt--read .tg-msg-receipt-check+.tg-msg-receipt-check{margin-left:-.32em}.tg-composer{flex-shrink:0;margin-bottom:0;padding-top:.4rem;padding-bottom:calc(.32rem + max(env(safe-area-inset-bottom,0px),12px));padding-left:calc(.55rem + env(safe-area-inset-left,0px));padding-right:calc(.55rem + env(safe-area-inset-right,0px));border-top:1px solid rgba(43,82,120,.35);background:var(--tg-bg-secondary);max-width:100%;width:100%;align-self:stretch;box-sizing:border-box}@supports (-webkit-touch-callout: none){@media(max-width:768px){html,body,#root{background-color:var(--tg-bg-secondary)!important}.tg-app{background:var(--tg-bg);flex:1 1 auto;min-height:0;height:100%;max-height:100%}.tg-composer{position:fixed;left:0;right:0;bottom:var(--ios-keyboard-inset, 0px);z-index:20;margin:0;padding-bottom:max(.18rem,constant(safe-area-inset-bottom),env(safe-area-inset-bottom,0px))}.tg-messages{scroll-padding-bottom:calc(var(--tg-composer-pad, 5.75rem) + var(--ios-keyboard-inset, 0px) + 6px);padding-bottom:calc(var(--tg-composer-pad, 5.75rem) + var(--ios-keyboard-inset, 0px) + 8px)}}}.tg-composer-quote{display:flex;align-items:flex-start;gap:.35rem;margin-bottom:.4rem;padding:.4rem .5rem;border-radius:10px;background:#2b527859;border:1px solid rgba(43,82,120,.55)}.tg-composer-quote-inner{flex:1;min-width:0;display:flex;flex-direction:column;gap:.12rem}.tg-composer-quote-label{font-size:.62rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--tg-text-secondary)}.tg-composer-quote-name{font-size:.78rem;font-weight:600;color:var(--tg-accent-hover)}.tg-composer-quote-text{font-size:.78rem;color:var(--tg-text-secondary);line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.tg-composer-quote-clear{flex-shrink:0;width:1.65rem;height:1.65rem;border:none;border-radius:8px;background:transparent;color:var(--tg-text-secondary);font-size:1.25rem;line-height:1;cursor:pointer;padding:0}.tg-composer-quote-clear:hover{background:#ffffff14;color:var(--tg-text)}.tg-composer-row{display:flex;gap:.35rem;align-items:center;min-width:0;width:100%;box-sizing:border-box}.tg-composer-extras{margin-bottom:.45rem;border-radius:12px;background:var(--tg-bg);border:1px solid rgba(43,82,120,.45);overflow:hidden;max-height:min(42vh,320px);display:flex;flex-direction:column}.tg-composer-extras-tabs{display:flex;flex-shrink:0;border-bottom:1px solid rgba(43,82,120,.35)}.tg-composer-extras-tab{flex:1;padding:.45rem .5rem;border:none;background:transparent;color:var(--tg-text-secondary);font-size:.8rem;font-weight:600;cursor:pointer}.tg-composer-extras-tab--active{color:var(--tg-accent-hover);box-shadow:inset 0 -2px 0 var(--tg-accent)}.tg-composer-extras-scroll{overflow-y:auto;overflow-x:hidden;padding:.45rem .55rem .55rem;-webkit-overflow-scrolling:touch}.tg-emoji-cat{margin-bottom:.5rem}.tg-emoji-cat-name{font-size:.65rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--tg-text-secondary);margin-bottom:.28rem}.tg-emoji-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:.15rem}@media(max-width:380px){.tg-emoji-grid{grid-template-columns:repeat(7,1fr)}}.tg-emoji-cell{border:none;border-radius:8px;background:transparent;font-size:1.35rem;line-height:1.2;padding:.2rem;cursor:pointer}.tg-emoji-cell:active{background:#ffffff14}.tg-sticker-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.35rem}.tg-sticker-cell{aspect-ratio:1;border:none;border-radius:12px;background:#0003;padding:.25rem;cursor:pointer;display:flex;align-items:center;justify-content:center}.tg-sticker-cell:active{filter:brightness(1.12)}.tg-sticker-img{width:100%;height:100%;object-fit:contain;display:block}video.tg-sticker-img{pointer-events:none;background:transparent}.tg-sticker-img--animated{animation:tg-sticker-wobble 1.1s ease-in-out infinite alternate}@keyframes tg-sticker-wobble{0%{transform:scale(1) rotate(-2deg)}to{transform:scale(1.06) rotate(2deg)}}.tg-msg-sticker-wrap{display:block;margin:0 -.15rem .2rem}.tg-msg-sticker-img{width:min(180px,72vw);height:auto;max-height:180px;object-fit:contain;display:block;border-radius:10px}video.tg-msg-sticker-img{pointer-events:none;background:transparent}.tg-msg-sticker-img--animated{animation:tg-sticker-wobble 1.2s ease-in-out infinite alternate}.tg-composer-input-wrap{position:relative;flex:1 1 0;min-width:0;display:flex;align-items:stretch}.tg-composer-sticker-inline{position:absolute;right:.35rem;top:50%;transform:translateY(-50%);width:2rem;height:2rem;padding:0;border:none;border-radius:50%;background:transparent;color:var(--tg-text-secondary);opacity:.38;cursor:pointer;display:flex;align-items:center;justify-content:center}.tg-composer-sticker-inline:hover:not(:disabled){opacity:.52;background:#ffffff0f}.tg-composer-sticker-inline:active:not(:disabled){opacity:.68}.tg-composer-sticker-inline:disabled{opacity:.2;cursor:not-allowed}.tg-composer-sticker-inline--on{opacity:.75;color:var(--tg-accent-hover);background:#5288c133}.tg-composer-sticker-inline-icon{width:1.15em;height:1.15em;display:block}.tg-composer-pending{display:flex;align-items:center;gap:.5rem;margin-bottom:.4rem;padding:.35rem .5rem;border-radius:10px;background:#0003;font-size:.82rem;color:var(--tg-text-secondary)}.tg-composer-pending-thumb{width:40px;height:40px;object-fit:cover;border-radius:6px;flex-shrink:0}.tg-composer-pending-thumb--apk{display:inline-flex;align-items:center;justify-content:center;font-size:1.35rem;background:#22c55e2e;border:1px solid rgba(34,197,94,.35)}.tg-composer-pending-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tg-composer-pending-clear{flex-shrink:0;width:28px;height:28px;border:none;border-radius:8px;background:#ffffff14;color:var(--tg-text);font-size:1.1rem;line-height:1;cursor:pointer}.tg-attach{width:36px;height:36px;flex-shrink:0;border:none;border-radius:50%;background:#ffffff0f;color:var(--tg-text-secondary);cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}.tg-attach:active:not(:disabled){background:#ffffff1a}.tg-attach-icon{width:22px;height:22px;display:block;opacity:.92}.tg-attach:disabled{opacity:.4;cursor:not-allowed}.tg-msg-photo-wrap{display:block;margin-bottom:.35rem;max-width:min(280px,100%);padding:0;border:none;background:transparent;cursor:zoom-in;border-radius:10px;text-align:left}.tg-msg-photo-wrap:focus-visible{outline:2px solid var(--tg-accent);outline-offset:2px}.tg-msg-photo{display:block;width:100%;max-height:240px;object-fit:contain;border-radius:10px;vertical-align:middle;pointer-events:none}.tg-msg-video{display:block;width:100%;max-width:min(320px,100%);max-height:min(240px,50vh);border-radius:10px;background:#000}.tg-call-overlay .tg-btn-primary:disabled{opacity:.5;cursor:not-allowed}.tg-call-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:6000;display:flex;align-items:center;justify-content:center;padding:1rem;padding-top:calc(1rem + env(safe-area-inset-top,0px));padding-bottom:calc(1rem + env(safe-area-inset-bottom,0px));background:#0000008c;box-sizing:border-box}.tg-lightbox{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2500;background:#000000ed;display:flex;flex-direction:column;align-items:stretch;justify-content:center;padding:env(safe-area-inset-top,0) env(safe-area-inset-right,0) env(safe-area-inset-bottom,0) env(safe-area-inset-left,0)}.tg-lightbox-close{position:absolute;top:calc(.5rem + env(safe-area-inset-top,0px));right:calc(.5rem + env(safe-area-inset-right,0px));z-index:2;width:44px;height:44px;border:none;border-radius:12px;background:#ffffff1f;color:#fff;font-size:1.75rem;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}.tg-lightbox-reset{position:absolute;top:calc(.5rem + env(safe-area-inset-top,0px));left:calc(.5rem + env(safe-area-inset-left,0px));z-index:2;padding:.45rem .65rem;border:none;border-radius:10px;background:#ffffff1f;color:#e8e8ef;font-size:.82rem;font-weight:600;cursor:pointer}.tg-lightbox-save{position:absolute;top:calc(.5rem + env(safe-area-inset-top,0px));left:calc(4.25rem + env(safe-area-inset-left,0px));z-index:2;width:44px;height:44px;border:none;border-radius:12px;background:#ffffff1f;color:#fff;font-size:1.15rem;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}.tg-lightbox-stage{flex:1;width:100%;min-height:0;display:flex;align-items:center;justify-content:center;touch-action:none;overflow:hidden;padding:2.75rem .5rem .25rem}.tg-lightbox-img{max-width:100%;max-height:min(88vh,100%);width:auto;height:auto;object-fit:contain;transform-origin:center center;will-change:transform;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.tg-lightbox-hint{flex-shrink:0;margin:0;padding:.35rem 1rem calc(.5rem + env(safe-area-inset-bottom,0px));text-align:center;font-size:.72rem;color:#ffffff73;line-height:1.35}.tg-msg-file{display:inline-block;margin-bottom:.35rem;color:var(--tg-accent);font-weight:500;text-decoration:none;word-break:break-word;font:inherit;text-align:left;cursor:pointer;background:transparent;border:none;padding:0}.tg-msg-file:hover{text-decoration:underline}.tg-msg-file--apk{display:inline-flex;flex-direction:column;align-items:flex-start;gap:.12rem;color:#86efac}.tg-msg-file--apk:hover{text-decoration:none}.tg-msg-file--apk:hover .tg-msg-file-apk-line{text-decoration:underline}.tg-msg-file-apk-line{font-weight:600}.tg-msg-file-apk-sub{font-size:.72rem;font-weight:500;color:var(--tg-text-secondary, #8eb2cd)}.tg-msg.tg-out .tg-msg-file--apk{color:#bbf7d0}.tg-msg.tg-out .tg-msg-file-apk-sub{color:#ffffffb8}.tg-chat-search-dialog{position:fixed;left:50%;top:10%;transform:translate(-50%);width:min(440px,92vw);max-height:78vh;overflow:auto;background:var(--tg-bg-secondary);border-radius:14px;padding:.85rem 1rem 1rem;z-index:1251;border:1px solid rgba(43,82,120,.45);box-shadow:0 16px 48px #00000073;box-sizing:border-box}.tg-chat-search-dialog__head{display:flex;justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.55rem}.tg-chat-search-dialog__input{width:100%;margin-bottom:.45rem;border-radius:12px}.tg-chat-search-dialog__hint{font-size:.82rem;margin:.25rem 0;color:var(--tg-text-secondary)}.tg-chat-search-dialog__list{list-style:none;margin:.4rem 0 0;padding:0}.tg-chat-search-dialog__li{border-bottom:1px solid rgba(255,255,255,.07)}.tg-chat-search-dialog__hit{width:100%;text-align:left;padding:.55rem 0;border:none;background:transparent;color:inherit;cursor:pointer;font:inherit}.tg-chat-search-dialog__meta{display:block;font-size:.72rem;opacity:.78}.tg-chat-search-dialog__snippet{display:block;margin-top:.2rem;font-size:.86rem;line-height:1.35}.tg-doc-preview-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2600;background:#0000008c;display:flex;align-items:center;justify-content:center;padding:1rem;padding-bottom:calc(1rem + env(safe-area-inset-bottom,0px));box-sizing:border-box}.tg-doc-preview-card{width:100%;max-width:720px;max-height:min(90dvh,900px);background:var(--tg-bg-secondary);border-radius:14px;border:1px solid rgba(43,82,120,.45);display:flex;flex-direction:column;overflow:hidden}.tg-doc-preview-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.65rem .85rem;border-bottom:1px solid rgba(43,82,120,.35)}.tg-doc-preview-title{font-size:.92rem;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tg-doc-preview-close{flex-shrink:0;border:none;background:transparent;color:inherit;font-size:1.5rem;line-height:1;cursor:pointer;padding:.15rem .35rem}.tg-doc-preview-body{flex:1;min-height:220px;max-height:62vh;background:#0a0f16}.tg-doc-preview-frame{width:100%;height:min(62vh,560px);border:none;display:block}.tg-doc-preview-hint{margin:0;padding:1rem;font-size:.88rem;color:var(--tg-text-secondary);line-height:1.45}.tg-doc-preview-actions{display:flex;flex-wrap:wrap;gap:.5rem;padding:.65rem .85rem;border-top:1px solid rgba(43,82,120,.35)}.tg-input-msg{flex:1 1 0;min-width:0;min-height:40px;max-height:min(42vh,260px);padding:.5rem .75rem;border-radius:22px;border:none;background:var(--tg-bg);color:var(--tg-text);font-size:.95rem;line-height:1.35;resize:none;overflow-y:auto;box-sizing:border-box}.tg-composer-input-wrap .tg-input-msg{width:100%;padding-right:2.35rem}@media(min-width:769px){.tg-input-msg--desktop{display:block;line-height:1.38;min-height:2.5rem}}.tg-send{min-width:36px;height:36px;padding:0 .65rem;border-radius:50%;border:none;background:var(--tg-accent);color:#fff;font-weight:600;font-size:.82rem;cursor:pointer;flex-shrink:0;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:.2rem}.tg-send:disabled{opacity:.45;cursor:not-allowed}.tg-send:not(:disabled):active{filter:brightness(1.06)}.tg-send__icon{width:20px;height:20px;display:block;flex-shrink:0}.tg-send__label{font-size:.78rem;font-weight:600}@media(min-width:769px){.tg-send{min-width:auto;height:40px;border-radius:12px;padding:0 .85rem}}@media(max-width:768px){.tg-send{padding:0;width:40px;min-width:40px;height:40px}.tg-send__icon{width:22px;height:22px}.tg-attach{width:40px;height:40px}.tg-attach-icon{width:24px;height:24px}.tg-send__label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}}.tg-empty{flex:1;display:flex;align-items:center;justify-content:center;color:var(--tg-text-secondary);font-size:.95rem;padding:2rem;text-align:center}.tg-friend-row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.65rem .85rem;border-bottom:1px solid rgba(255,255,255,.04)}.tg-friend-row button{font-size:.8rem}.tg-more-section{padding:1rem .85rem;border-bottom:1px solid rgba(43,82,120,.25)}.tg-more-section h3{margin:0 0 .5rem;font-size:.85rem;color:var(--tg-text-secondary);font-weight:600;text-transform:uppercase;letter-spacing:.04em}.tg-more-section p{margin:0 0 .65rem;font-size:.88rem;color:var(--tg-text-secondary);line-height:1.45}.tg-more-install-hero .tg-more-install-primary{width:100%;margin-top:.25rem;margin-bottom:.35rem;padding:.72rem 1rem;font-size:.92rem;font-weight:600}.tg-more-install-hint{margin:0 0 .5rem!important;font-size:.84rem!important;color:var(--tg-text-secondary);line-height:1.5!important}.tg-more-install-sub{margin:0!important;font-size:.78rem!important;color:var(--tg-text-secondary);opacity:.9;line-height:1.45!important}.tg-more-install-done{margin:0!important;font-size:.88rem!important;color:#86efac!important;font-weight:600;line-height:1.45!important}.tg-more-ios-steps,.tg-more-android-steps ol{margin:.65rem 0 0;padding-left:1.25rem;font-size:.84rem;color:var(--tg-text-secondary);line-height:1.55}.tg-more-ios-steps li,.tg-more-android-steps li{margin-bottom:.4rem}.tg-more-android-steps{margin-top:.65rem}.tg-call-mic-row{display:flex;align-items:center;justify-content:center;gap:.45rem;margin-top:.75rem;font-size:.82rem;color:var(--tg-text-secondary)}.tg-call-mic-dot{width:9px;height:9px;border-radius:50%;background:#94a3b8a6;flex-shrink:0}.tg-call-mic-dot--live{background:#4ade80;box-shadow:0 0 #4ade8080;animation:tg-mic-pulse 1.15s ease-in-out infinite}@keyframes tg-mic-pulse{0%,to{box-shadow:0 0 #4ade8073;opacity:1}50%{box-shadow:0 0 0 6px #4ade8000;opacity:.85}}.tg-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0000008c;z-index:120;display:flex;align-items:center;justify-content:center;padding:1rem;padding-bottom:calc(1rem + var(--tg-safe-bottom))}.tg-modal{width:100%;max-width:400px;max-height:90dvh;overflow-y:auto;background:var(--tg-bg-secondary);border-radius:12px;border:1px solid rgba(43,82,120,.5);padding:1rem;display:flex;flex-direction:column;gap:.65rem}.tg-profile-page{flex:1;min-height:0;width:100%;max-width:100vw;display:flex;flex-direction:column;overflow:hidden;background:var(--tg-bg);color:var(--tg-text);position:relative}.tg-profile-page--site{background:radial-gradient(ellipse 120% 80% at 50% -20%,rgba(82,136,193,.22),transparent 55%),radial-gradient(ellipse 70% 50% at 100% 40%,rgba(99,102,241,.08),transparent 45%),var(--tg-bg)}.tg-profile-page__head{flex-shrink:0;position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:.5rem;min-height:var(--tg-header-offset);padding:var(--tg-safe-top) calc(.75rem + env(safe-area-inset-right,0px)) calc(.5rem + env(safe-area-inset-bottom,0px)) calc(.75rem + env(safe-area-inset-left,0px));background:var(--tg-bg-secondary);border-bottom:1px solid rgba(43,82,120,.35)}.tg-profile-page__back{flex-shrink:0;padding:.4rem .5rem;font:inherit;font-size:.95rem;color:var(--tg-accent);background:transparent;border:none;cursor:pointer}.tg-profile-page__back:hover{color:var(--tg-accent-hover)}.tg-profile-page__brand{font-weight:600;font-size:1rem}.tg-profile-page__main{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;padding:1rem 1.1rem calc(1.75rem + var(--tg-safe-bottom));max-width:min(36rem,100%);margin:0 auto;width:100%;box-sizing:border-box}.tg-profile-page__loading,.tg-profile-page__error{margin:1.5rem 0;text-align:center;font-size:.95rem}.tg-profile-page__error{color:#f87171}.tg-profile-page__hero-card{margin-bottom:1rem;padding:1.1rem 1rem 1rem;border-radius:18px;background:linear-gradient(135deg,rgba(82,136,193,.18) 0%,rgba(23,33,43,.92) 42%,var(--tg-bg-secondary) 100%);border:1px solid rgba(82,136,193,.35);box-shadow:0 12px 40px #00000038}.tg-profile-page__hero-row{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:1rem}.tg-profile-page__identity{display:flex;align-items:center;gap:.85rem;min-width:0;flex:1 1 12rem}.tg-profile-page__identity-text{min-width:0;text-align:left}.tg-profile-page__hero-card .tg-profile-page__avatar-wrap{margin-bottom:0;flex-shrink:0}.tg-profile-page__hero-card .tg-profile-page__avatar,.tg-profile-page__hero-card .tg-profile-page__avatar-ph{width:72px;height:72px;font-size:1.65rem}.tg-profile-page__hero-card .tg-profile-page__name{margin:0 0 .2rem;font-size:clamp(1.2rem,4vw,1.45rem);font-weight:700;letter-spacing:-.02em;line-height:1.2}.tg-profile-page__hero-card .tg-profile-page__uin{margin:0;font-size:.82rem;opacity:.88}.tg-profile-page__hero-actions{display:flex;flex-direction:column;align-items:stretch;gap:.55rem;flex-shrink:0;width:min(100%,15rem)}@media(max-width:520px){.tg-profile-page__hero-row{flex-direction:column;align-items:stretch}.tg-profile-page__hero-actions{width:100%;flex-direction:row;flex-wrap:wrap;align-items:center;order:-1}.tg-profile-page__identity{order:0}.tg-profile-page__btn-write{flex:1 1 10rem;min-width:0}.tg-profile-page__hero-icon-row{margin-left:auto}}.tg-profile-page__btn-write{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;padding:.72rem 1.1rem;border:none;border-radius:12px;font:inherit;font-size:.95rem;font-weight:700;cursor:pointer;color:#fff;background:linear-gradient(135deg,#5288c1,#3d6a9e);box-shadow:0 4px 18px #5288c159;transition:filter .15s ease,transform .12s ease}.tg-profile-page__btn-write:hover:not(:disabled){filter:brightness(1.06)}.tg-profile-page__btn-write:active:not(:disabled){transform:scale(.98)}.tg-profile-page__btn-write:disabled{opacity:.55;cursor:not-allowed}.tg-profile-page__btn-write--secondary{color:var(--tg-text);background:#ffffff14;border:1px solid rgba(43,82,120,.45);box-shadow:none;font-weight:600}.tg-profile-page__btn-write--secondary:hover:not(:disabled){background:#ffffff1f}.tg-profile-page__hero-icon-row{display:flex;gap:.35rem;justify-content:flex-end}.tg-profile-page__icon-btn{width:2.65rem;height:2.65rem;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;border:1px solid rgba(43,82,120,.45);background:#0000002e;color:var(--tg-accent-hover);cursor:pointer;transition:background .15s ease,color .15s ease}.tg-profile-page__icon-btn:hover{background:#5288c133;color:var(--tg-text)}.tg-profile-page__icon-btn:active{transform:scale(.96)}.tg-profile-page__about{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .35rem;margin:0 0 1.25rem;padding:.45rem .65rem;font-size:.76rem;line-height:1.4;color:var(--tg-text-secondary);opacity:.92;border-radius:10px;background:#0000001f;border:1px solid rgba(43,82,120,.22)}.tg-profile-page__about-chip{font-weight:500}.tg-profile-page__about-sep{opacity:.45;-webkit-user-select:none;user-select:none}.tg-profile-page__wall{padding:1.35rem 1.15rem 1.25rem;margin-bottom:1.35rem;border-radius:20px;background:linear-gradient(180deg,rgba(82,136,193,.12) 0%,var(--tg-bg-secondary) 18%);border:1px solid rgba(82,136,193,.38);box-shadow:0 16px 48px #0003}.tg-profile-page__wall-head{margin-bottom:1.1rem}.tg-profile-page__wall-kicker{display:inline-block;font-size:.65rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--tg-accent-hover);margin-bottom:.35rem}.tg-profile-page__wall-title{margin:0 0 .4rem;font-size:clamp(1.65rem,5.5vw,2.1rem);font-weight:800;letter-spacing:-.03em;line-height:1.1;background:linear-gradient(90deg,#e8eef8,#9ec5f0);-webkit-background-clip:text;background-clip:text;color:transparent}@supports not (background-clip: text){.tg-profile-page__wall-title{color:var(--tg-text)}}.tg-profile-page__wall-lead{margin:0;font-size:.86rem;color:var(--tg-text-secondary);line-height:1.45;max-width:26rem}.tg-profile-page__wall-muted{margin:.5rem 0 0;font-size:.88rem;color:var(--tg-text-secondary)}.tg-profile-page__wall-textarea{width:100%;min-height:88px;margin-bottom:.45rem;border-radius:14px}.tg-profile-page__wall-err{color:#f87171;font-size:.82rem;margin:.35rem 0 0}.tg-profile-page__wall-submit{margin-top:.55rem}.tg-profile-page__wall-more-wrap{display:flex;justify-content:center;margin-top:.85rem}.tg-profile-page__wall-more{min-width:10rem;font-weight:600}.tg-profile-wall-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.65rem}.tg-profile-wall-card{margin:0;padding:.75rem .85rem;border-radius:14px;background:#00000029;border:1px solid rgba(43,82,120,.35);box-shadow:0 2px 12px #0000001f}.tg-profile-wall-card__head{display:flex;align-items:flex-start;justify-content:space-between;gap:.5rem;margin-bottom:.35rem}.tg-profile-wall-card__head .tg-profile-wall__meta{margin-bottom:0}.tg-profile-wall-card__del{flex-shrink:0;padding:.22rem .45rem;font:inherit;font-size:.72rem;font-weight:600;color:#fca5a5;background:#f871711f;border:1px solid rgba(248,113,113,.35);border-radius:8px;cursor:pointer}.tg-profile-wall-card__del:hover:not(:disabled){background:#f8717133}.tg-profile-wall-card__del:disabled{opacity:.55;cursor:not-allowed}.tg-profile-page__gallery-card{padding:.85rem 1rem;margin-bottom:1.15rem;background:#0000001f;border-radius:14px;border:1px solid rgba(43,82,120,.28)}.tg-profile-page__h2--soft{font-size:.88rem;font-weight:600;color:var(--tg-text-secondary);margin-bottom:.55rem}.tg-profile-page__backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:1rem;padding-bottom:calc(1rem + var(--tg-safe-bottom, 0px));background:#050a129e;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.tg-profile-page__sheet{width:100%;max-width:22rem;max-height:min(90dvh,540px);overflow-y:auto;border-radius:16px;padding:1rem 1.05rem 1.15rem;background:var(--tg-bg-secondary);border:1px solid rgba(43,82,120,.45);box-shadow:0 24px 64px #00000073;box-sizing:border-box}.tg-profile-page__sheet-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.65rem}.tg-profile-page__sheet-title{margin:0;font-size:1.05rem;font-weight:700}.tg-profile-page__sheet-close{flex-shrink:0;width:2.25rem;height:2.25rem;border:none;border-radius:10px;background:#ffffff14;color:var(--tg-text);font-size:1.35rem;line-height:1;cursor:pointer}.tg-profile-page__sheet-close:hover{background:#ffffff1f}.tg-profile-page__sheet-hint{margin:0 0 .75rem;font-size:.8rem;color:var(--tg-text-secondary);line-height:1.4}.tg-profile-page__sheet-qr-wrap{display:flex;justify-content:center;margin-bottom:1rem}.tg-profile-page__sheet-qr-img{display:block;border-radius:12px;background:#fff}.tg-profile-page__sheet-btn{width:100%}.tg-profile-page__sheet-url{margin:0 0 .85rem;font-size:.72rem;word-break:break-all;color:var(--tg-text-secondary);line-height:1.35;max-height:3.2rem;overflow:hidden}.tg-profile-page__share-grid{display:flex;flex-direction:column;gap:.4rem}.tg-profile-page__share-opt{display:flex;align-items:center;gap:.55rem;width:100%;padding:.65rem .75rem;border-radius:12px;border:1px solid rgba(43,82,120,.35);background:#0000001f;color:var(--tg-text);font:inherit;font-size:.9rem;font-weight:600;text-align:left;cursor:pointer;transition:background .12s ease}.tg-profile-page__share-opt:hover{background:#5288c126}.tg-profile-page__share-opt-emoji{font-size:1.15rem;width:1.5rem;text-align:center;flex-shrink:0}.tg-profile-page__toast{position:fixed;bottom:calc(1rem + var(--tg-safe-bottom, 0px));left:50%;transform:translate(-50%);z-index:2100;padding:.55rem 1rem;border-radius:999px;font-size:.85rem;font-weight:600;color:#fff;background:#0f172aeb;border:1px solid rgba(82,136,193,.4);box-shadow:0 8px 28px #00000059;pointer-events:none}.tg-profile-page__head-logout{flex-shrink:0;padding:.35rem .5rem;font:inherit;font-size:.82rem;color:#fca5a5;background:transparent;border:1px solid rgba(248,113,113,.45);border-radius:8px;cursor:pointer;max-width:5rem;white-space:nowrap}.tg-profile-page__head-logout:active{opacity:.9}.tg-profile-page__badge-self{display:inline-block;margin-top:.35rem;padding:.2rem .55rem;font-size:.7rem;font-weight:600;color:#a5b4fc;background:#6366f133;border-radius:999px;border:1px solid rgba(129,140,248,.35)}.tg-profile-page__avatar-wrap{display:flex;justify-content:center;margin-bottom:.75rem}.tg-profile-page__avatar{width:96px;height:96px;border-radius:50%;object-fit:cover;border:2px solid rgba(43,82,120,.5)}.tg-profile-page__avatar-ph{width:96px;height:96px;border-radius:50%;background:var(--tg-bg-elevated);display:flex;align-items:center;justify-content:center;font-size:2rem;font-weight:600;color:var(--tg-text-secondary);border:2px solid rgba(43,82,120,.35)}.tg-profile-page__edit{margin-top:.75rem;padding:1rem;border-radius:14px;background:#0000001a;border:1px solid rgba(43,82,120,.28)}.tg-profile-page__h2{margin:0 0 .75rem;font-size:1rem;font-weight:600}.tg-profile-page__guest-hint{text-align:center;font-size:.9rem;color:var(--tg-text-secondary);margin-top:1rem}.tg-profile-page__link{font:inherit;color:var(--tg-accent);background:none;border:none;cursor:pointer;text-decoration:underline;padding:0}.tg-profile-page__link:hover{color:var(--tg-accent-hover)}.tg-profile-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:.45rem}.tg-profile-gallery__item{display:block;border-radius:10px;overflow:hidden;aspect-ratio:1;background:#0003}.tg-profile-gallery__item img{width:100%;height:100%;object-fit:cover;display:block}.tg-profile-wall{list-style:none;margin:0;padding:0}.tg-profile-wall__meta{display:flex;justify-content:space-between;gap:.5rem;font-size:.82rem;margin-bottom:.35rem;flex:1;min-width:0}.tg-profile-wall__date{color:var(--tg-text-secondary);font-size:.75rem}.tg-profile-wall__img{max-width:100%;max-height:220px;border-radius:10px;margin-bottom:.35rem;display:block}.tg-profile-wall__body{margin:0;font-size:.9rem;line-height:1.45;white-space:pre-wrap;word-break:break-word}.tg-profile-wall-form{margin-top:.75rem;padding-top:.65rem;border-top:1px solid rgba(43,82,120,.28)}.tg-profile-wall-file{display:inline-block;font-size:.82rem;color:var(--tg-accent);cursor:pointer;text-decoration:underline}
