:root{--tg-bg: #141414;--tg-rail: #151515;--tg-list: #181818;--tg-chat: #1E1E1E;--tg-chatTop: #1b1b1b;--tg-input: #2a2a2a;--tg-input2: #242424;--tg-chip: rgba(255, 255, 255, .06);--tg-muted: rgba(255, 255, 255, .55);--tg-muted2: rgba(255, 255, 255, .38);--tg-active: rgba(255, 255, 255, .1);--tg-hover: rgba(255, 255, 255, .06);--tg-yellow: #f6c94c}.tgShell{height:100vh;width:100vw;display:flex;background:var(--tg-bg);padding:0;gap:0;overflow:hidden}.tgPane{border-radius:0;box-shadow:none}.tgRail{width:74px;padding:16px 12px;display:flex;flex-direction:column;gap:12px;background:#262626}.tgRailTop,.tgRailBottom{display:flex;flex-direction:column;gap:12px;align-items:center}.tgRailBtn{width:46px;height:46px;border-radius:18px;border:none;background:transparent;display:flex;align-items:center;justify-content:center;color:#ffffffeb;cursor:pointer}.tgRailBtn:hover{background:#1e1e1e}.tgRailBtnActive{background:#1e1e1e;box-shadow:inset 0 0 0 2px var(--tg-yellow);color:#fff}.tgRailAvatar{display:inline-flex;align-items:center;justify-content:center;border-radius:14px;overflow:hidden}.tgRailSpacer{flex:1}.tgCol{display:flex;flex-direction:column;min-width:0;min-height:0}.tgChats{width:360px;padding-bottom:8px;background:#262626;min-height:0}.tgChatsSwitch{position:relative;flex:1;min-height:0}.tgChatsView{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;min-height:0;transition:opacity .2s ease,transform .2s ease;will-change:opacity,transform;z-index:1;visibility:hidden}.tgChatsSwitchChats .tgChatsViewChats{opacity:1;transform:translate(0);pointer-events:auto;z-index:2;visibility:visible}.tgChatsSwitchChats .tgChatsViewMenu{opacity:0;transform:translate(10px);pointer-events:none;z-index:1;visibility:hidden}.tgChatsSwitchMenu .tgChatsViewMenu{opacity:1;transform:translate(0);pointer-events:auto;z-index:2;visibility:visible}.tgChatsSwitchMenu .tgChatsViewChats{opacity:0;transform:translate(-10px);pointer-events:none;z-index:1;visibility:hidden}.tgMoreMenu{padding:14px 16px 18px;min-height:0;overflow-y:auto;overflow-x:hidden}.tgMoreMenuHeader{font-weight:900;font-size:18px;color:#ffffffeb;margin-bottom:14px}.tgMoreMenuCard{border-radius:26px;border:none;overflow:hidden;background:#1e1e1e;margin-bottom:16px}.tgMoreMenuItem{width:100%;border:none;background:transparent;color:#ffffffeb;display:flex;align-items:center;justify-content:space-between;padding:12px 16px;min-height:48px;cursor:pointer}.tgMoreMenuItem:not(.isLast){border-bottom:1px solid rgba(255,255,255,.06)}.tgMoreMenuItem:hover{background:#ffffff0a}.tgMoreMenuItem.isUnavailable{opacity:.58}.tgMoreMenuItem.isUnavailable:hover{background:#ffffff05}.tgMoreMenuItem.isUnavailable .tgMoreMenuItemText{color:#ffffffb8}.tgMoreMenuItem.isUnavailable .tgMoreMenuChevron{opacity:0}.tgMoreMenuItemLeft{display:flex;align-items:center;gap:14px;min-width:0;flex:1}.tgMoreMenuIconBox{width:28px;height:28px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}.tgMoreMenuItemText{font-size:16px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tgMoreMenuItemRight{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto}.tgMoreMenuChevron{color:#ffffff73}.tgMoreMenuValue{font-size:14px;color:#ffffffb3;font-weight:700}.tgMoreMenuItem.isLogout .tgMoreMenuItemText{color:#ff3b30}.tgToastHost{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:9999;pointer-events:none}.tgToast{max-width:min(520px,calc(100vw - 44px));padding:12px 16px;border-radius:14px;background:#0000009e;color:#ffffffeb;font-weight:800;font-size:14px;letter-spacing:-.01em;text-align:center;box-shadow:0 14px 40px #00000073;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);opacity:0;transform:translateY(8px) scale(.98);transition:opacity .18s ease,transform .22s cubic-bezier(.22,1,.36,1)}.tgToast.tgToastOn{opacity:1;transform:translateY(0) scale(1)}.tgToast.tgToastOff{opacity:0;transform:translateY(8px) scale(.98)}@media(prefers-reduced-motion:reduce){.tgToast{transition:none}}.tgChatsHeader{padding:14px 16px 10px;display:flex;align-items:center;justify-content:space-between;gap:10px}.tgChatsTitleBtn{display:inline-flex;align-items:center;gap:8px;background:transparent;border:none;cursor:pointer;color:#ffffffeb;font-weight:800;font-size:14px}.tgIconBtn{width:38px;height:38px;border-radius:14px;border:none;background:#ffffff0f;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#ffffffeb}.tgIconBtn:hover{background:#ffffff1a}.tgIconBtnActive{background:#ffffff1a;box-shadow:inset 0 0 0 2px #ffffff24}.tgSearch{padding:0 16px 12px}.tgSearch input{width:100%;height:38px;border-radius:16px;border:none;background:#ffffff0d;color:#ffffffeb;padding:0 12px;outline:none}.tgTabsPill{display:flex;gap:10px;background:#1e1e1e;border-radius:16px;margin:0 16px 4px;padding:6px}.tgTabPill{flex:1;height:32px;border-radius:12px;border:none;background:transparent;color:var(--tg-muted);cursor:pointer;font-weight:800}.tgTabPillActive{background:#ffffff14;color:#ffffffeb}.tgChatList{overflow:auto;padding:10px 10px 12px;flex:1;min-height:0}.tgListSwitcher{position:relative;flex:1;min-height:0;overflow:hidden}.tgListPane{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;min-height:0;transition:opacity .18s ease,transform .18s ease;will-change:opacity,transform}.tgListPaneChats{opacity:1;transform:translate(0);pointer-events:auto}.tgListPaneColleagues{opacity:0;transform:translate(10px);pointer-events:none}.tgListSwitcherColleagues .tgListPaneChats{opacity:0;transform:translate(-10px);pointer-events:none}.tgListSwitcherColleagues .tgListPaneColleagues{opacity:1;transform:translate(0);pointer-events:auto}.tgEmptyState{padding:18px 12px;color:#ffffff8c;font-size:13px;text-align:center}.tgChatItem{display:flex;gap:12px;padding:12px;border-radius:16px;cursor:pointer}.tgChatItem:hover{background:var(--tg-hover)}.tgChatItemActive{background:var(--tg-active)}.tgAvatar{width:44px;height:44px;border-radius:18px;position:relative;overflow:hidden;flex:0 0 auto;display:flex;align-items:center;justify-content:center}.tgAvatarText{color:#ffffffeb;font-weight:900;letter-spacing:.5px}.tgAvatarOverlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center}.tgOnlineDot{position:absolute;right:3px;bottom:3px;width:10px;height:10px;border-radius:999px;background:#34c759;box-shadow:0 0 0 2px #0000008c}.tgChatMeta{min-width:0;flex:1;display:flex;flex-direction:column;gap:6px}.tgChatTop{display:flex;align-items:center;justify-content:space-between;gap:10px}.tgChatName{font-weight:900;color:#ffffffeb;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tgChatTime{color:var(--tg-muted2);font-size:12px}.tgChatTime{display:inline-flex;align-items:center;gap:6px}.tgUnreadBadge{min-width:18px;height:18px;padding:0 6px;border-radius:999px;background:#2aabee;color:#fff;font-size:11px;font-weight:800;line-height:18px;text-align:center}.tgChatListChecks{margin-left:2px;color:#ffffffb3}.tgChatListChecksSaved,.tgChatNameSaved{color:#2aabee}.tgChatPreviewSaved{color:#2aabeed9}.tgChatPreview{color:var(--tg-muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tgMain{flex:1;min-width:0;display:flex;flex-direction:column;background:#262626;overflow:hidden;min-height:0}.tgMainEmpty{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:24px;background:#1e1e1e}.tgMainEmpty.tgMainEmptyScroll{align-items:stretch;justify-content:flex-start;overflow:auto;padding:18px}.tgMainEmptyTitle{font-weight:900;color:#ffffff8c;font-size:14px}.tgCameras{width:100%;max-width:none;margin:0;display:flex;flex-direction:column;min-height:0}.tgCamerasTop{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.tgCamerasBack,.tgCamerasLink{width:38px;height:38px;border-radius:14px;border:none;background:#ffffff0f;color:#ffffffeb;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.tgCamerasBack:hover,.tgCamerasLink:hover{background:#ffffff1a}.tgCamerasTitleBlock{min-width:0;flex:1}.tgCamerasTitle{font-weight:900;color:#ffffffeb;font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tgCamerasSubtitle{margin-top:4px;font-weight:800;color:#ffffff94;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tgCamGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}@media(max-width:1080px){.tgCamGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:740px){.tgCamGrid{grid-template-columns:1fr}}.tgCamCard{border:none;padding:0;text-align:left;cursor:pointer;border-radius:18px;overflow:hidden;background:#1e1e1e;border:1px solid rgba(255,255,255,.06);transition:transform .16s ease,background .16s ease,border-color .16s ease}.tgCamCard:hover{transform:translateY(-1px);background:#262626;border-color:#ffffff1a}.tgCamCardPreview{width:100%;background:#00000059;position:relative}.tgCamCardPreview:before{content:"";display:block;padding-top:56.25%}.tgCamCardImg{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover;display:block}.tgCamCardFallback{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#ffffffa6;font-weight:900;font-size:13px}.tgCamCardMeta{padding:12px 12px 14px}.tgCamCardTitle{font-weight:900;color:#ffffffeb;font-size:14px}.tgCamCardSub{margin-top:4px;font-weight:800;color:#ffffff94;font-size:12px}.tgCamView{flex:1;min-height:0;display:flex}.tgCamViewStage{width:100%;border-radius:18px;overflow:hidden;background:#00000073;border:1px solid rgba(255,255,255,.06);display:flex;align-items:center;justify-content:center;min-height:360px}.tgCamViewImg{width:100%;height:100%;object-fit:contain;display:block;background:#000}.tgCamViewError{padding:18px;text-align:center;color:#ffffffb3;max-width:520px}.tgCamViewErrorTitle{font-weight:900;color:#ffffffeb}.tgCamViewErrorDesc{margin-top:6px;font-weight:800;color:#ffffff94;font-size:13px;line-height:1.35}.tgMoreMenuItem.isActive{background:#ffffff0f}.tgAbout{width:100%;max-width:1200px;margin:0 auto}.tgAboutHeader{text-align:center;margin-bottom:18px}.tgAboutAppName{font-weight:900;font-size:22px;color:#ffffffeb}.tgAboutTagline{margin-top:6px;color:#fff9;font-size:14px}.tgAboutSectionTitle{font-weight:900;color:#ffffffbf;font-size:13px;margin:14px 0 10px}.tgAboutCards{display:flex;flex-direction:column;gap:10px}.tgAboutCard{background:#262626;border-radius:18px;padding:14px;display:flex;gap:12px;align-items:center}.tgAboutCardIcon{width:32px;height:32px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}.tgAboutCardText{min-width:0}.tgAboutCardTitle{font-weight:900;color:#ffffffeb;font-size:14px}.tgAboutCardDesc{margin-top:4px;color:#ffffff8c;font-size:13px}.tgAboutFooter{margin-top:18px;text-align:center}.tgAboutFooterLine{color:#ffffff73;font-size:12px;margin-top:6px}.tgAboutSplit{display:flex;align-items:stretch;gap:14px}.tgAboutLeft{flex:1 1 520px;min-width:0}.tgAboutRight{flex:0 0 auto;width:0px;overflow:hidden;opacity:0;transform:translate(16px);pointer-events:none;transition:width .42s cubic-bezier(.22,1,.36,1),opacity .28s ease,transform .42s cubic-bezier(.22,1,.36,1)}.tgAboutRightActive{width:380px;opacity:1;transform:translate(0);pointer-events:auto}.tgChangelogBlock{margin-top:14px;background:#1e1e1e;border-radius:18px;overflow:hidden}.tgChangelogTop{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border:none;cursor:pointer;background:#1e1e1e;color:#ffffffeb}.tgChangelogTop:hover{background:#262626}.tgChangelogTitle{font-weight:900}.tgChangelogChevron{display:inline-flex;opacity:.85;transform:rotate(0);transition:transform .22s ease,opacity .22s ease}.tgChangelogChevronOpen{transform:rotate(180deg);opacity:1}.tgChangelogBody{max-height:380px;transition:max-height .26s ease,opacity .22s ease;opacity:1}.tgChangelogClosed .tgChangelogBody{max-height:0px;opacity:0}.tgChangelogList{padding:10px 12px 12px;display:flex;flex-direction:column;gap:8px;max-height:360px;overflow-y:auto;overflow-x:hidden}.tgChangelogItem{text-align:left;border:none;background:#262626;color:#ffffffe6;border-radius:16px;padding:10px 12px;cursor:pointer;transition:transform .16s ease,background .16s ease}.tgChangelogItem:hover{background:#262626eb;transform:translateY(-1px)}.tgChangelogItemActive{outline:2px solid rgba(42,171,238,.45)}.tgChangelogItemTop{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.tgChangelogItemVersion{font-weight:900}.tgChangelogItemDate{font-weight:800;font-size:12px;color:#ffffff94}.tgChangelogItemName{margin-top:4px;font-weight:800;color:#ffffffc7}.tgReleaseCard{height:100%;background:#1e1e1e;border-radius:18px;padding:14px}.tgReleaseCardEmpty{background:transparent}.tgReleaseTop{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.tgReleaseTopLeft{min-width:0}.tgReleaseClose{width:34px;height:34px;border-radius:10px;border:none;background:#262626;color:#ffffffd9;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex:0 0 auto;transition:transform .16s ease,background .16s ease,color .16s ease}.tgReleaseClose:hover{background:#262626eb;color:#fffffff2;transform:translateY(-1px)}.tgReleaseTitle{font-weight:900;font-size:18px;color:#ffffffeb}.tgReleaseMeta{font-size:12px;font-weight:800;color:#ffffff94}.tgReleaseSubtitle{margin-top:6px;font-weight:900;color:#ffffffc7}.tgReleaseList{margin-top:12px;display:flex;flex-direction:column;gap:10px}.tgReleaseBullet{display:flex;align-items:flex-start;gap:10px;color:#ffffffc7;font-weight:750;line-height:1.35}.tgReleaseDot{width:8px;height:8px;border-radius:999px;background:#2aabee;margin-top:6px;flex:0 0 auto}.tgReleaseText{min-width:0}.tgReleaseEmpty{height:100%;background:#1e1e1e;border-radius:18px;padding:14px;color:#ffffffb3}.tgReleaseEmptyTitle{font-weight:900;color:#ffffffe6}.tgReleaseEmptyDesc{margin-top:6px;font-weight:750;color:#ffffff94}@media(max-width:920px){.tgAboutSplit{display:flex;flex-direction:column}.tgAboutRight{flex:1 1 auto;min-width:0;transform:translateY(10px)}.tgAboutRightActive{transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.tgAboutRight{transition:none;transform:none}.tgAboutRightActive{transform:none}}.tgMainHeader{height:62px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;background:#262626}.tgMainTitle{display:flex;align-items:center;gap:12px;min-width:0}.tgMainTitleText{min-width:0}.tgMainName{font-weight:900;font-size:16px;color:#ffffffeb}.tgMainStatus{font-size:12px;color:var(--tg-muted2);margin-top:2px}.tgMainActions{display:flex;gap:10px}.tgMessages{flex:1;position:relative;overflow:hidden;isolation:isolate;min-height:0;border-radius:20px 0 0 20px;background-color:#1e1e1e}.tgMessagesBg{position:absolute;top:0;right:0;bottom:0;left:0;z-index:0;pointer-events:none;background-color:transparent;background-position:0 0;background-repeat:repeat;background-size:50% auto;opacity:.1;background-image:url(/assets/first_background_chat-D6J8020L.png);background-image:image-set(url(/assets/first_background_chat-D6J8020L.png) 1x,url(/assets/first_background_chat-D6J8020L.png) 2x,url(/assets/first_background_chat-D6J8020L.png) 3x)}.tgMessagesScroll{height:100%;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;padding:10px 18px 12px;position:relative;z-index:1;background:transparent;display:flex;flex-direction:column}.tgMessagesInner{display:flex;flex-direction:column;flex:1 0 auto;justify-content:flex-end;position:relative;z-index:1}.tgChatMsgRow{display:flex;margin-bottom:3px;position:relative;z-index:1}.tgChatMsgGrouped{margin-bottom:2px}.tgChatMsgMe{justify-content:flex-end}.tgChatMsgOther{justify-content:flex-start}.tgChatMsgNew{animation:tgMsgIn .18s ease-out both}@keyframes tgMsgIn{0%{opacity:0}to{opacity:1}}.tgChatTypingBubble{display:inline-flex;align-items:center;gap:4px;padding:8px 12px;min-height:32px}.tgTypingDot{display:inline-block;font-size:18px;line-height:1;opacity:.35;animation:tgTypingPulse .9s ease-in-out infinite}.tgTypingDot2{animation-delay:.15s}.tgTypingDot3{animation-delay:.3s}@keyframes tgTypingPulse{0%,to{transform:translateY(0);opacity:.35}50%{transform:translateY(-2px);opacity:.85}}.tgDateChipWrap{display:flex;justify-content:center;position:relative;z-index:1;margin:10px 0}.tgDateChip{padding:4px 12px;border-radius:12px;background:#0000008c;color:#ffffffeb;font-size:12px;font-weight:600}.tgChatBubble{max-width:85%;min-width:0;padding:6px 10px;border-radius:18px;border:1px solid rgba(255,255,255,.14);-webkit-backdrop-filter:blur(0px);backdrop-filter:blur(0px);position:relative}.tgChatBubbleMe{background:transparent;border-color:#ffffff29}.tgChatBubbleMe:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:inherit;pointer-events:none;z-index:0;background-image:linear-gradient(180deg,#c14cff,#ff4fd8 32%,#2aabee);background-attachment:fixed;background-repeat:no-repeat;background-size:100vw 100vh;background-position:0 0}.tgChatBubbleOther{background:#2b2b2b;border-color:#3a3a3a}.tgChatBubbleBody{display:flex;flex-direction:row;align-items:flex-end;justify-content:space-between;gap:8px;position:relative;z-index:1}.tgChatBubbleHasMedia{padding:6px}.tgChatBubbleHasMedia .tgChatBubbleBody{flex-direction:column;align-items:stretch;justify-content:flex-start;gap:8px}.tgChatBubbleHasMedia .tgChatBubbleMeta{align-self:flex-end}.tgChatMediaGrid{display:grid;gap:2px;width:300px;max-width:100%;border-radius:14px;overflow:hidden;background:#ffffff0f}.tgChatMediaGridCount1{grid-template-columns:1fr;width:340px;max-width:100%}.tgChatMediaGridCount2,.tgChatMediaGridCount3,.tgChatMediaGridCount4{grid-template-columns:repeat(2,1fr)}.tgChatMediaGridCount5,.tgChatMediaGridCount6{grid-template-columns:repeat(3,1fr)}.tgChatMediaTile{position:relative;background:#0003;border:none;padding:0;cursor:pointer}.tgChatMediaTile:before{content:"";display:block;padding-top:100%}.tgChatMediaGridCount1 .tgChatMediaTile:before{padding-top:70%}.tgChatMediaGridCount1 .tgChatMediaTile{border-radius:14px}.tgChatMediaGridCount3 .tgChatMediaTileBig:before{padding-top:200%}.tgChatMediaGridCount3 .tgChatMediaTileBig{grid-row:span 2}.tgChatMediaImg,.tgChatMediaVideo{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover;background:#000}.tgChatMediaVideo{display:block}.tgChatMediaPlayOverlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;font-size:18px;color:#ffffffeb;text-shadow:0 6px 18px rgba(0,0,0,.65);background:radial-gradient(circle at center,#00000040,#0000 70%);pointer-events:none}.tgChatMediaFile{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;padding:10px;text-align:center}.tgChatMediaFileName{font-size:12px;font-weight:900;color:#ffffffd9;word-break:break-word}.tgChatBubbleText{color:#ffffffe6;font-size:16px;line-height:21px;white-space:pre-wrap;word-break:break-word;flex:1 1 auto;min-width:0}.tgChatBubbleMe .tgChatBubbleText{color:#fff}.tgChatBubbleOther .tgChatBubbleText{color:#ffffffeb}.tgChatBubbleMeta{display:inline-flex;justify-content:flex-end;align-items:center;gap:6px;color:#ffffff8c;font-size:11px;flex:0 0 auto}.tgChatBubbleMe .tgChatBubbleMeta{color:#ffffffc7}.tgChatBubbleOther .tgChatBubbleMeta{color:#ffffff8c}.tgReadIndicator{margin-left:4px;min-width:18px;height:14px;display:inline-flex;align-items:center}.tgSingleCheckContainer{width:14px;height:14px;display:inline-flex;align-items:center;justify-content:center}.tgDoubleCheckContainer{position:relative;width:20px;height:14px}.tgCheckIcon{color:currentColor}.tgCheckSingle{opacity:.55}.tgCheckFirst{position:absolute;left:0;top:0;opacity:.8}.tgCheckSecond{position:absolute;left:6px;top:0;opacity:.8}.tgMsg{display:flex;gap:12px;margin-bottom:16px}.tgMsgMe{flex-direction:row-reverse}.tgMsgBlock{max-width:min(720px,78%);min-width:0}.tgMsgTop{display:flex;align-items:baseline;gap:10px;margin-bottom:6px}.tgMsgName{font-weight:900;color:#ffffffeb;font-size:13px}.tgMsgTime{color:var(--tg-muted2);font-size:11px}.tgMsgText{color:#ffffffdb;font-size:13px;line-height:1.45;white-space:pre-wrap}.tgComposer{padding:12px 16px 16px;background-color:#262626}.tgComposerRow{display:flex;gap:10px;align-items:center;background:#1e1e1e;border:none;border-radius:20px;padding:10px 12px}.tgComposerIcon{width:38px;height:38px;border-radius:14px;border:none;background:transparent;color:#ffffffc7;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.tgComposerIcon:hover{background:#ffffff0f}.tgComposerIconActive{background:#ffffff14}.tgFileInputHidden{display:none}.tgEmojiWrap{position:relative;display:inline-flex}.tgEmojiPopover{position:absolute;left:0;bottom:calc(100% + 10px);width:320px;max-height:360px;overflow-y:auto;overflow-x:hidden;background:#1e1e1e;border-radius:18px;border:1px solid rgba(255,255,255,.06);box-shadow:0 14px 40px #0000008c;padding:0;z-index:50}.tgEmojiPopover *{box-sizing:border-box}.tgEmojiTop{position:sticky;top:0;z-index:10;padding:12px 12px 10px;background:#1e1e1e;border-top-left-radius:18px;border-top-right-radius:18px;border-bottom:1px solid rgba(255,255,255,.06)}.tgEmojiContent{padding:12px}.tgEmojiSearch{width:100%;height:34px;border-radius:14px;border:none;outline:none;padding:0 12px;background:#ffffff0f;color:#ffffffeb;font-size:13px}.tgEmojiSearch::placeholder{color:#ffffff61}.tgEmojiCats{margin-top:10px;display:flex;gap:6px;padding:6px;background:#ffffff0a;border-radius:16px;overflow:hidden}.tgEmojiCatBtn{width:34px;height:34px;border-radius:12px;border:none;background:transparent;cursor:pointer;font-size:18px;line-height:1;display:inline-flex;align-items:center;justify-content:center;color:#ffffffd1}.tgEmojiCatBtn:hover{background:#ffffff0f}.tgEmojiCatBtn.isActive{background:#ffffff14}.tgEmojiSection+.tgEmojiSection{margin-top:12px}.tgEmojiSectionTitle{font-size:12px;font-weight:900;color:#ffffffb3;margin:2px 4px 10px}.tgEmojiGrid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}.tgEmojiGridRecent{grid-template-columns:repeat(8,minmax(0,1fr))}.tgEmojiBtn{width:100%;aspect-ratio:1 / 1;border-radius:12px;border:none;background:transparent;cursor:pointer;font-size:20px;line-height:1;display:inline-flex;align-items:center;justify-content:center}.tgEmojiBtn:hover{background:#ffffff0f}.tgEmojiNoResults{padding:18px 10px 8px;color:#ffffff8c;font-weight:900;font-size:13px;text-align:center}.tgComposerInput{flex:1;min-width:0;border:none;outline:none;background:transparent;color:#ffffffeb;font-size:14px}.tgComposerInput::placeholder{color:#ffffff61}.tgComposerSend{width:44px;height:44px;border-radius:16px;border:none;background:#ffffff0f;color:#ffffffeb;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.tgComposerSend:hover{background:#ffffff1a}.tgRight{width:360px;padding-bottom:12px;background:#262626;min-height:0}.tgRight{transition:width .22s ease,opacity .22s ease;overflow:hidden}.tgRightClosed{width:0px;opacity:0;pointer-events:none}.tgRightOpen{width:360px;opacity:1}.tgRightHeader{height:62px;padding:0 16px;display:flex;align-items:center;justify-content:space-between}.tgRightTitle{font-weight:900;font-size:14px;color:#ffffffeb}.tgRightBody{padding:10px 16px 12px;display:flex;flex-direction:column;gap:12px;min-height:0;overflow:auto}.tgUserCard{border-radius:18px;background:#1e1e1e;border:1px solid rgba(255,255,255,.06);padding:14px}.tgUserCardTop{display:flex;align-items:center;gap:12px}.tgUserCardText{min-width:0}.tgUserCardName{font-weight:900;color:#ffffffeb;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tgUserCardPhone{margin-top:4px;font-size:12px;color:#ffffffa3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tgUserCardError{margin-top:10px;font-size:12px;color:#ffffffa6}.tgRightTabs{display:flex;gap:8px;padding:6px;background:#1e1e1e;border-radius:16px}.tgRightTab{flex:1;height:36px;border:none;border-radius:12px;background:transparent;color:#ffffffb3;font-weight:900;font-size:12px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px}.tgRightTab.isActive{background:#262626;color:#ffffffeb;box-shadow:none}.tgRightTabCount{min-width:20px;height:18px;padding:0 6px;border-radius:999px;background:#ffffff14;color:#ffffffb8;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:900}.tgRightTab.isActive .tgRightTabCount{background:#ffffff1a;color:#ffffffe0}.tgRightTabPanel{border-radius:18px;background:#1e1e1e;border:1px solid rgba(255,255,255,.06);padding:12px;min-height:140px}.tgRightMediaGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.tgRightMediaTile{position:relative;aspect-ratio:1 / 1;border-radius:14px;overflow:hidden;background:#ffffff0f;display:block;border:none;padding:0;cursor:pointer}.tgRightMediaImg{width:100%;height:100%;object-fit:cover;display:block}.tgRightMediaPlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;font-size:18px;color:#ffffffeb;text-shadow:0 6px 18px rgba(0,0,0,.65);background:radial-gradient(circle at center,#00000040,#0000 70%)}.tgMediaViewerOverlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:200;background:#000000bd;display:flex;flex-direction:column}.tgMediaViewerTop{height:56px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;background:#1e1e1eeb;border-bottom:1px solid rgba(255,255,255,.06)}.tgMediaViewerCounter{color:#ffffffeb;font-weight:900;font-size:13px}.tgMediaViewerActions{display:flex;align-items:center;gap:10px}.tgMediaViewerAction{color:#ffffffc7;font-weight:900;font-size:13px;text-decoration:none}.tgMediaViewerAction:hover{color:#ffffffeb}.tgMediaViewerIconBtn{width:38px;height:38px;border-radius:14px;border:none;background:#ffffff0f;color:#ffffffeb;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.tgMediaViewerIconBtn:hover{background:#ffffff1a}.tgMediaViewerBody{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:18px 18px 22px;gap:14px}.tgMediaViewerStage{position:relative;width:min(920px,calc(100vw - 140px));height:min(680px,calc(100vh - 140px));display:flex;align-items:center;justify-content:center;overflow:hidden}.tgMediaViewerImg,.tgMediaViewerVideo{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:16px;background:#00000059}.tgMediaViewerImgWrap{width:100%;height:100%;display:flex;align-items:center;justify-content:center;touch-action:none}.tgMediaViewerImgWrap.isZoomed{cursor:grab}.tgMediaViewerImgWrap.isZoomed:active{cursor:grabbing}.tgMediaViewerVideo{width:100%;height:100%}.tgMediaViewerCaption{position:absolute;left:0;right:0;bottom:-42px;text-align:center;color:#ffffffc7;font-size:13px;font-weight:600;padding:0 12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tgMediaViewerNav{width:44px;height:44px;border-radius:16px;border:none;background:#ffffff14;color:#ffffffeb;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.tgMediaViewerNav:hover{background:#ffffff1f}@media(max-width:820px){.tgMediaViewerStage{width:min(920px,calc(100vw - 40px));height:min(680px,calc(100vh - 120px))}.tgMediaViewerNav{display:none}}.tgRightEmpty{height:140px;display:flex;align-items:center;justify-content:center;color:#ffffff8c;font-weight:900;font-size:13px}.tgRightList{display:flex;flex-direction:column;gap:10px}.tgRightListRow{padding:10px 12px;border-radius:14px;background:#ffffff0f}.tgRightListTitle{font-weight:900;color:#ffffffe6;font-size:13px}.tgRightListSub{margin-top:4px;font-size:12px;color:#ffffff8c}.tgStories{padding:8px 16px 14px}.tgStoriesRow{display:flex;gap:10px;overflow:auto}.tgStory{width:44px;flex:0 0 auto;text-align:center;color:var(--tg-muted);font-size:11px}.tgStoryRing{width:44px;height:44px;border-radius:18px;border:2px solid rgba(255,255,255,.35);padding:2px;margin-bottom:6px}.tgStoryInner{width:100%;height:100%;border-radius:14px}.tgProfile{padding:6px 16px 12px}.tgRightSectionTitle{color:#ffffffb3;font-size:12px;font-weight:900;margin:10px 0}.tgProfileCard{border-radius:18px;border:none;background:#ffffff0d;padding:14px}.tgProfileRow{display:flex;align-items:center;gap:12px}.tgProfileName{font-weight:900;color:#ffffffeb}.tgProfileSub{color:var(--tg-muted2);font-size:12px;margin-top:2px}.tgMedia{padding:6px 16px 12px}.tgMediaGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.tgMediaTile{aspect-ratio:1 / 1;border-radius:14px;background:#ffffff14;border:none;overflow:hidden}.tgMediaFill{width:100%;height:100%}.tgRightOther{padding:6px 16px 12px}.tgRightRow{width:100%;height:44px;border-radius:16px;border:none;background:#ffffff0d;color:#ffffffe6;display:flex;align-items:center;gap:10px;padding:0 12px;cursor:pointer;margin-bottom:10px}.tgRightRow:hover{background:#ffffff14}.tgRightRowChevron{margin-left:auto;color:var(--tg-muted2);font-size:18px}@media(max-width:1180px){.tgRight{display:none}}@media(max-width:860px){.tgChats{display:none}.tgRail{width:64px}}:root{color-scheme:light dark;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji"}html,body{height:100%}body{margin:0;background:var(--bg);color:var(--text);overflow:hidden}*{box-sizing:border-box}a{color:inherit;text-decoration:none}button,input{font:inherit}.app-root{height:100vh;overflow:hidden}@keyframes shake{0%{transform:translate(0)}20%{transform:translate(-8px)}40%{transform:translate(8px)}60%{transform:translate(-6px)}80%{transform:translate(6px)}to{transform:translate(0)}}
