: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}.tgAdminMenuHeader{display:flex;align-items:center;gap:10px}.tgAdminMenuBack{width:28px;height:28px;border-radius:8px;border:none;background:#ffffff14;color:#ffffffdb;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.tgAdminMenuBack:hover{background:#ffffff1f}.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}.tgAuthDebug{max-width:820px;margin:0 auto;width:100%;display:flex;flex-direction:column;gap:14px}.tgAuthDebugTitle{font-weight:900;font-size:18px;color:#ffffffeb}.tgAuthDebugCard{background:#1e1e1e;border-radius:16px;padding:12px 14px;border:1px solid rgba(255,255,255,.06)}.tgAuthDebugLabel{font-size:13px;font-weight:700;color:#ffffffd1;margin-bottom:8px}.tgAuthDebugRow{display:flex;align-items:center;justify-content:space-between;gap:12px}.tgAuthDebugMeta{font-size:12px;color:#ffffff8c}.tgAuthDebugError{color:#ff3b30;font-size:12px;margin-bottom:6px}.tgAuthDebugCode{margin:0;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:12px;line-height:1.45;color:#ffffffd1;white-space:pre-wrap;word-break:break-word}.tgAdminStaff{max-width:none;margin:0;width:100%;display:flex;flex-direction:column;gap:16px;min-height:0;padding-top:0;flex:1 1 auto}.tgAdminStaffHeader{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;position:relative;z-index:2;background:#262626fa;padding:12px 16px;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}.tgAdminStaffHeaderLeft{display:flex;align-items:center;gap:12px;min-width:0;flex-wrap:nowrap}.tgAdminStaffDetailHeader{display:inline-flex;align-items:center;gap:10px}.tgAdminStaffBack{width:34px;height:34px;border-radius:999px;border:1px solid rgba(255,255,255,.08);background:#ffffff0f;color:#ffffffdb;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.tgAdminStaffBack:hover{background:#ffffff1a}.tgAdminStaffTitle{display:flex;flex-direction:column;gap:4px}.tgAdminStaffTitle.tgAdminStaffTitleDetail{display:flex;flex-direction:row;align-items:center;gap:10px;flex-wrap:nowrap}.tgAdminStaffTitleText{font-weight:900;font-size:20px;color:#ffffffeb}.tgAdminStaffSubtitle{font-size:12px;color:#ffffff8c}.tgAdminStaffHeaderFilters{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.tgAdminStaffForm{display:flex;flex-direction:column;gap:16px;margin:0 16px 16px;animation:tgAdminFade .18s ease}.tgAdminStaffField{display:flex;flex-direction:column;gap:8px;font-size:13px;color:#ffffffb3}.tgAdminStaffFieldReadonly .tgAdminStaffValue{background:#ffffff0f;border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:10px 12px;color:#ffffffe6}.tgAdminStaffInput,.tgAdminStaffSelect{background:#ffffff0f;border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:10px 12px;color:#ffffffe6;outline:none}.tgAdminStaffInput::placeholder{color:#ffffff73}.tgAdminStaffSelect{-webkit-appearance:none;-moz-appearance:none;appearance:none}.tgAdminStaffRow{display:flex;align-items:center;gap:12px}.tgAdminStaffBtn,.tgAdminStaffBtnPrimary{border:1px solid rgba(255,255,255,.12);background:#ffffff14;color:#ffffffeb;border-radius:12px;padding:10px 14px;cursor:pointer;transition:background .18s ease,border-color .18s ease;white-space:nowrap}.tgAdminStaffBtn:hover,.tgAdminStaffBtnPrimary:hover{background:#ffffff1f}.tgAdminStaffBtnPrimary{background:#0a84ff2e;border-color:#0a84ff66}.tgAdminStaffActions{display:flex;justify-content:flex-end}@keyframes tgAdminFade{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.tgAdminStaffIconBtn{width:34px;height:34px;border-radius:999px;border:1px solid rgba(255,255,255,.08);background:#ffffff0f;color:#ffffffdb;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background .18s ease,border-color .18s ease}.tgAdminStaffIconBtn:hover{background:#ffffff1a}.tgAdminStaffIconBtn.isActive{border-color:#0a84ff99;background:#0a84ff38;color:#ddebff}.tgAdminStaffIconBtnSubmit{transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease}.tgAdminStaffIconBtnSubmit.isReady{border-color:#34c759b3;background:#34c75938;color:#e9fff1}.tgAdminStaffSearchWrap,.tgAdminStaffFilterWrap{position:relative;display:inline-flex;align-items:center;gap:8px}.tgAdminStaffSearch{background:#ffffff0f;border-radius:12px;padding:8px 12px;border:1px solid rgba(255,255,255,.06);width:0;opacity:0;overflow:hidden;pointer-events:none;transition:width .2s ease,opacity .2s ease}.tgAdminStaffSearch.isOpen{width:240px;opacity:1;pointer-events:auto}.tgAdminStaffSearch input{width:100%;background:transparent;border:none;outline:none;color:#ffffffeb;font-size:14px}.tgAdminStaffFilterMenu{position:absolute;top:42px;right:0;min-width:160px;background:#1e1e1e;border:1px solid rgba(255,255,255,.08);border-radius:12px;box-shadow:0 18px 40px #00000073;padding:6px;z-index:3}.tgAdminStaffFilterItem{width:100%;text-align:left;background:transparent;border:none;color:#ffffffdb;padding:8px 10px;border-radius:8px;font-size:13px;cursor:pointer}.tgAdminStaffFilterItem:hover{background:#ffffff0f}.tgAdminStaffFilterItem.isActive{background:#0a84ff38;color:#ddebff}.tgAdminStaffList{display:flex;flex-direction:column;gap:10px;background:#171717;border-radius:20px;padding:12px;margin:0 16px 16px;border:1px solid rgba(255,255,255,.04)}.tgAdminAccessList{display:flex;flex-direction:column;gap:12px;margin:0 16px 16px}.tgAdminAccessIcon{width:34px;height:34px;border-radius:999px;background:#ff3b30d9;border:1px solid rgba(255,59,48,.6);color:#fff;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 6px 14px #ff3b3040}.tgAdminCameras .tgAdminAccessIcon{background:#5e5ce6d9;border-color:#5e5ce699;box-shadow:0 6px 14px #5e5ce640}.tgAdminCameraList{display:flex;flex-direction:column;gap:10px;margin:0 16px 16px}.tgAdminCameraThumb{width:42px;height:42px;border-radius:12px;background:#ffffff0f;border:1px solid rgba(255,255,255,.08);display:inline-flex;align-items:center;justify-content:center;color:#34c759;font-size:16px;overflow:hidden}.tgAdminCameraThumb img{width:100%;height:100%;object-fit:cover;display:block}.tgAdminStaffRow.isInactive .tgAdminCameraThumb{color:#fff6}.tgAdminCameraDetail{display:grid;gap:14px;margin:0 16px 16px}.tgAdminCameraPreview{background:#171717;border:1px solid rgba(255,255,255,.08);border-radius:18px;min-height:140px;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#ffffff80}.tgAdminCameraPreview img{width:100%;height:auto;display:block;object-fit:cover}.tgAdminCameraActions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.tgAdminStaffBtnDanger{border-color:#ff3b3080;background:#ff3b302e;color:#ffecec}.tgAdminAccessRow{background:#171717;border-radius:18px;padding:12px;border:1px solid rgba(255,255,255,.04);display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.tgAdminAccessUser{display:flex;align-items:center;gap:12px;min-width:220px}.tgAdminAccessName{font-size:14px;font-weight:700;color:#ffffffeb}.tgAdminAccessSub{font-size:12px;color:#ffffff8c}.tgAdminAccessChecks{display:flex;flex-wrap:wrap;gap:10px 14px;justify-content:flex-end;flex:1 1 auto}.tgAdminAccessCheck{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#ffffffc7;background:#ffffff0f;border:1px solid rgba(255,255,255,.08);border-radius:999px;padding:6px 10px;cursor:pointer;transition:background .18s ease,border-color .18s ease,color .18s ease}.tgAdminAccessCheck input{accent-color:#34C759}.tgAdminAccessCheck.isActive{background:#34c7592e;border-color:#34c75959;color:#e9fff1}.tgAdminAccessCheck input:disabled+span{opacity:.7}.tgMoreCameras{display:flex;flex-direction:column;height:100%;width:100%}.tgMoreCameras .tgAdminStaffHeader{width:100%;align-self:stretch}.tgMoreCameras .tgAdminStaffHeaderLeft{flex:1 1 auto}.tgMoreCameras .tgAdminAccessIcon{background:#5e5ce6d9;border-color:#5e5ce699;box-shadow:0 6px 14px #5e5ce640}.tgMoreCameraGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;padding:0 16px 16px}.tgMoreCameraTile{background:#171717;border:1px solid rgba(255,255,255,.06);border-radius:16px;padding:10px;display:flex;flex-direction:column;gap:8px;cursor:pointer;transition:transform .18s ease,border-color .18s ease,background .18s ease}.tgMoreCameraTile:hover{transform:translateY(-2px);background:#1e1e1e;border-color:#ffffff1f}.tgMoreCameraPreview{border-radius:12px;overflow:hidden;background:#ffffff0f;border:1px solid rgba(255,255,255,.08);min-height:110px;display:flex;align-items:center;justify-content:center;color:#ffffff80}.tgMoreCameraPreview img{width:100%;height:100%;object-fit:cover;display:block}.tgMoreCameraName{font-size:14px;font-weight:700;color:#ffffffeb}.tgMoreCameraStatus{font-size:12px;color:#fff9}.tgMoreCameraStatus.isActive{color:#34c759}.tgMoreCameraStatus.isInactive{color:#ffffff80}.tgMoreCameraCard{display:grid;gap:14px;margin:0 16px 16px}.tgAdminStaffRow{display:flex;align-items:center;gap:14px;padding:12px 14px;border-radius:16px;background:#222;border:1px solid rgba(255,255,255,.08);cursor:pointer;transition:background .18s ease,border-color .18s ease,transform .18s ease}.tgAdminStaffRow:hover{background:#282828;border-color:#ffffff29;transform:translateY(-1px)}.tgAdminStaffRow.isInactive{opacity:.6}.tgAdminStaffAvatar{flex:0 0 auto}.tgAdminStaffMeta{display:flex;flex-direction:column;gap:6px;min-width:0}.tgAdminStaffTop{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.tgAdminStaffName{font-size:16px;font-weight:700;color:#fffffff0}.tgAdminStaffBadge{font-size:11px;font-weight:800;padding:4px 8px;border-radius:999px;background:#0a84ff38;color:#cfe2ff}.tgAdminStaffBadgeMuted{background:#ff950033;color:#ffd7a6}.tgAdminStaffSub{font-size:12px;color:#fff9;display:flex;gap:6px;flex-wrap:wrap}.tgAdminStaffEmpty{padding:18px;text-align:center;color:#fff9;background:#1e1e1e;border-radius:16px;border:1px dashed rgba(255,255,255,.08)}.tgAdminStaffBody{position:relative;min-height:220px;flex:1 1 auto;min-height:0;overflow:auto;padding-bottom:16px}.tgAdminStaffPane{transition:opacity .22s ease,transform .22s ease}.tgAdminStaffPane.isHidden{opacity:0;transform:translateY(8px);pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0}.tgAdminStaffPane.isActive{opacity:1;transform:translateY(0);position:relative}.tgAdminStaffDetail{display:grid;gap:12px;margin:0 16px 16px}.tgAdminStaffCard{background:#262626fa;border-radius:18px;padding:14px 16px;border:1px solid rgba(255,255,255,.12)}.tgAdminStaffCardTitle{font-weight:800;font-size:13px;color:#ffffffdb;margin-bottom:10px}.tgAdminStaffDetailRow{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 0;font-size:13px;color:#fff9;border-bottom:1px solid rgba(255,255,255,.05)}.tgAdminStaffDetailRow:last-child{border-bottom:none}.tgAdminStaffDetailRow strong{color:#ffffffeb;font-weight:700}.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}.tgMainEmpty.tgMainEmptyAdmin{padding:0;overflow:hidden}.tgMainEmpty.tgMainEmptyCameras{padding:0;align-items:stretch;justify-content:flex-start;overflow:hidden}.tgMainEmptyTitle{font-weight:900;color:#ffffff8c;font-size:14px}.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}.tgScrollDownBtn{position:absolute;right:20px;bottom:16px;width:44px;height:44px;border-radius:999px;border:1px solid rgba(255,255,255,.08);background:#2c2c2ef2;color:#ffffffe6;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 8px 24px #00000059;opacity:0;transform:translateY(8px);pointer-events:none;transition:opacity .18s ease,transform .18s ease;z-index:2}.tgScrollDownVisible{opacity:1;transform:translateY(0);pointer-events:auto}.tgScrollDownHidden{opacity:0;transform:translateY(8px);pointer-events:none}.tgScrollDownBadge{position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#2aabee;color:#fff;font-size:10px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}.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;overflow-anchor:none;-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);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}.tgChatBubbleHasReply .tgChatBubbleBody{flex-direction:column;align-items:stretch;justify-content:flex-start;gap:6px}.tgChatBubbleHasMedia{padding:6px}.tgChatBubbleHasMedia .tgChatBubbleBody{flex-direction:column;align-items:stretch;justify-content:flex-start;gap:8px}.tgChatBubbleHasMedia .tgChatBubbleMeta{align-self:flex-end}.tgChatBubbleHasVoice{padding:8px 10px}.tgChatBubbleHasVoice .tgChatBubbleBody{flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:2px}.tgChatBubbleHasVoice .tgChatBubbleMeta{align-self:flex-end;margin-top:-1px}.tgVoiceMetaTime{font-size:11px;font-weight:600;color:#ffffff8c}.tgVoiceMetaSep{opacity:.7;margin:0 2px}.tgVoicePlayIcon{transform:translate(1px)}.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}.tgReplyPreview{border-left:3px solid rgba(42,171,238,1);padding:6px 8px;margin-bottom:6px;background:#0000001f;border-radius:8px;width:100%;align-self:stretch}.tgReplyPreviewTitle{font-size:12px;font-weight:700;color:#2aabee;margin-bottom:2px}.tgReplyPreviewText{font-size:12px;color:#ffffffd1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tgVoice{display:inline-flex;flex-direction:column;gap:6px;min-width:280px;max-width:min(520px,78vw);-webkit-user-select:none;user-select:none}.tgVoiceTopRow{display:flex;align-items:center;gap:12px}.tgVoiceBottomRow{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-left:54px}.tgVoicePlay{width:38px;height:38px;border-radius:999px;border:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex:0 0 auto;position:relative;padding:0;line-height:0}.tgVoiceMe .tgVoicePlay,.tgVoiceOther .tgVoicePlay{background:#2aabee;color:#ffffffeb}.tgVoiceWave{position:relative;flex:1 1 auto;height:24px;border-radius:10px;cursor:pointer}.tgVoiceBars{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:flex-end;gap:2px;padding:0 2px;opacity:.35}.tgVoiceBarsFill{opacity:1;clip-path:inset(0 calc((1 - var(--tg-voice-progress, 0)) * 100%) 0 0)}.tgVoiceBar{width:2px;border-radius:999px;display:inline-block}.tgVoiceMe .tgVoiceBar{background:#ffffffeb}.tgVoiceOther .tgVoiceBar{background:#ffffffd9}.tgVoiceInfo{font-size:13px;font-weight:800;color:#ffffff94}.tgVoiceDotOnPlay{position:absolute;right:-2px;top:-2px;width:10px;height:10px;border-radius:999px;background:#2aabee;box-shadow:0 0 0 2px #1e1e1e;pointer-events:none}.tgVoiceAa{width:38px;height:30px;border-radius:10px;border:none;background:#ffffff14;color:#ffffffd9;font-weight:900;font-size:12px;cursor:pointer;flex:0 0 auto}.tgVoiceAaOn{background:#ffffff1f;color:#fffffff2}.tgVoiceTranscript{margin-top:8px;width:100%;padding:10px;border-radius:14px;background:#00000038;border:1px solid rgba(255,255,255,.1);color:#ffffffe0;font-size:14px;line-height:20px;box-sizing:border-box;max-width:100%;min-width:0;overflow-wrap:anywhere}.tgVoiceTranscriptHint{color:#ffffffb8;font-weight:750}.tgVoiceTranscriptError{color:#ffffffd1}.tgVoiceTranscriptText{color:#ffffffeb;font-weight:700;white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere;max-width:100%;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}.tgChatBubbleMetaInline .tgChatBubbleBody{padding-right:0}.tgMsgMainRow{display:flex;align-items:flex-end;gap:8px}.tgMsgMainText{flex:1 1 auto;min-width:0}.tgMsgMainMeta{display:inline-flex;align-items:center;gap:6px;color:#ffffff8c;font-size:11px;flex:0 0 auto;white-space:nowrap}.tgCtxMenuRoot{position:fixed;top:0;right:0;bottom:0;left:0;z-index:999}.tgCtxMenuBackdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000002e}.tgChatBubbleCtxActive{outline:2px solid rgba(42,171,238,.55);outline-offset:2px}.tgCtxMenu{position:absolute;background:#2c2c2efa;border:1px solid rgba(255,255,255,.08);border-radius:14px;overflow:hidden;box-shadow:0 16px 40px #00000059}.tgCtxMenuItem{width:100%;display:flex;align-items:center;gap:10px;padding:10px 12px;background:transparent;border:none;color:#ffffffeb;font-size:14px;cursor:pointer}.tgCtxMenuItem:hover{background:#ffffff14}.tgCtxMenuItemDanger{color:#ff3b30}.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}.tgReplyBar{display:flex;align-items:center;gap:10px;background:#1e1e1e;border-radius:14px;padding:8px 10px;margin-bottom:8px;border-left:3px solid rgba(42,171,238,1)}.tgReplyBarTitle{font-size:12px;font-weight:700;color:#2aabee}.tgReplyBarText{flex:1 1 auto;font-size:12px;color:#fffc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tgReplyBarClose{width:24px;height:24px;border:none;background:transparent;color:#fff9;border-radius:8px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.tgReplyBarClose:hover{background:#ffffff14}.tgMaintOverlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;background:#101010f5;display:flex;align-items:center;justify-content:center}.tgMaintContent{display:flex;flex-direction:column;align-items:center;gap:16px;padding:24px;text-align:center}.tgMaintGif{width:210px;height:210px}.tgMaintTitle{font-size:24px;font-weight:800;color:#fffffff2}.tgMaintSubtitle{font-size:15px;line-height:22px;color:#ffffffbf;max-width:360px}.tgMaintButton{margin-top:4px;padding:10px 16px;border-radius:14px;border:1px solid rgba(255,255,255,.15);background:#ffffff0f;color:#ffffffe6;cursor:pointer}.tgMaintButton:disabled{opacity:.6;cursor:default}.tgPinnedBar{margin:0;border-radius:0;background:#262626;border-bottom:1px solid rgba(255,255,255,.08)}.tgPinnedBarContent{display:flex;align-items:center;gap:10px;padding:10px 16px;cursor:pointer;color:#ffffffe6}.tgPinnedTextBox{flex:1 1 auto;min-width:0}.tgPinnedLabel{font-size:12px;font-weight:600;color:#2aabee;margin-bottom:2px}.tgPinnedText{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tgPinnedClose{border:none;background:transparent;color:#ffffffb3;cursor:pointer;padding:4px}.tgPinnedClose:hover{background:#ffffff14;border-radius:8px}.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)}}
