.chatlist-wrap{background:0 0;height:100%;min-height:0;position:relative}.chatlist-header{background:0 0;border-bottom:none;flex-shrink:0;align-items:center;gap:10px;padding:8px 10px;display:flex}.chatlist-wrap.view-fwd{animation:.26s cubic-bezier(.22,.9,.28,1) both clViewFwd}.chatlist-wrap.view-back{animation:.26s cubic-bezier(.22,.9,.28,1) both clViewBack}@keyframes clViewFwd{0%{opacity:0;transform:translate(16%)scale(.985)}to{opacity:1;transform:none}}@keyframes clViewBack{0%{opacity:0;transform:translate(-16%)scale(.985)}to{opacity:1;transform:none}}.chatlist-wrap.view-fwd .tg-settings-list>*,.chatlist-wrap.view-back .tg-settings-list>*{animation:.32s cubic-bezier(.22,.9,.28,1) both clRowIn}.chatlist-wrap .tg-settings-list>:nth-child(2){animation-delay:30ms}.chatlist-wrap .tg-settings-list>:nth-child(3){animation-delay:60ms}.chatlist-wrap .tg-settings-list>:nth-child(4){animation-delay:90ms}.chatlist-wrap .tg-settings-list>:nth-child(5){animation-delay:.12s}@keyframes clRowIn{0%{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){.chatlist-wrap.view-fwd,.chatlist-wrap.view-back,.chatlist-wrap .tg-settings-list>*{animation:none}}.chatlist-title{text-align:center;width:100%;min-height:46px;font-family:var(--font);letter-spacing:-.02em;color:var(--text);flex-shrink:0;justify-content:center;align-items:center;gap:8px;margin:0;padding:14px 16px 6px;font-size:21px;font-weight:750;line-height:1.3;transition:color .2s;display:flex}.chatlist-title.connecting{letter-spacing:-.02em;color:var(--text-dim);gap:8px;font-size:21px;font-weight:750}.chatlist-title .ct-dot{background:var(--accent);border-radius:50%;flex-shrink:0;width:9px;height:9px;animation:1.15s ease-in-out infinite ct-breathe}@keyframes ct-breathe{0%,to{opacity:.35;transform:scale(.82)}50%{opacity:1;transform:scale(1)}}@media (prefers-reduced-motion:reduce){.chatlist-title .ct-dot{opacity:1;animation:none}}.chatlist-menu-avatar{cursor:pointer;border-radius:50%;flex:none;padding:0;transition:opacity .15s,transform .15s;box-shadow:0 1px 3px #00000059}.chatlist-menu-avatar:hover{opacity:.85;transform:scale(1.04)}.chatlist-menu-avatar:active{transform:scale(.97)}.context-backdrop>.context-menu.compact{-webkit-backdrop-filter:blur(56px)saturate(190%)brightness(1.06);backdrop-filter:blur(56px)saturate(190%)brightness(1.06);background-color:#0c1423cc;background-image:linear-gradient(145deg,#ffffff1f,#ffffff0e);border-color:#fff3;box-shadow:inset 0 1px #ffffff29,0 20px 48px #00000080,0 4px 14px #00000047}.tg-search{-webkit-backdrop-filter:blur(24px)saturate(180%);backdrop-filter:blur(24px)saturate(180%);background-color:#0f192b80;background-image:linear-gradient(135deg,#ffffff1a,#ffffff0a);border:1px solid #ffffff1a;border-radius:21px;flex:auto;align-items:center;gap:7px;min-width:0;height:42px;padding:0 8px 0 10px;transition:background-image .15s,border-color .15s;display:flex}.tg-search:focus-within{background-image:linear-gradient(135deg,#ffffff2b,#ffffff12);border-color:#4f8bff73}.tg-search-icon{color:var(--text-dim);flex:none;justify-content:center;align-items:center;display:flex}.tg-search-input{min-width:0;color:var(--text);font-size:15px;font-family:var(--font);background:0 0;border:none;outline:none;flex:auto;margin:0;padding:0}.tg-search-input::placeholder{color:var(--text-faint)}.tg-search-clear{width:22px;height:22px;color:var(--text-dim);cursor:pointer;background:#ffffff1f;border:none;border-radius:50%;flex:none;justify-content:center;align-items:center;padding:0;transition:background .15s,color .15s;display:flex}.tg-search-clear:hover{color:var(--text);background:#ffffff38}.chatlist-list{-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#ffffff24 transparent;flex:1;padding:2px 6px 8px;overflow-y:auto}.chatlist-list::-webkit-scrollbar{width:5px}.chatlist-list::-webkit-scrollbar-track{background:0 0}.chatlist-list::-webkit-scrollbar-thumb{background:#ffffff24;border-radius:3px}.chatlist-item{cursor:pointer;text-align:left;width:100%;color:var(--text);font-family:var(--font);background:0 0;border:none;border-radius:14px;align-items:center;gap:12px;margin-bottom:1px;padding:8px 10px;transition:background .13s;display:flex}.chatlist-item.reordering{will-change:transform;z-index:1;transition:transform .3s cubic-bezier(.22,.9,.28,1),background .13s;position:relative}.chatlist-item:hover{background:#ffffff0e}.chatlist-item:active{background:#ffffff17}.chatlist-avatar-wrap{flex-shrink:0;justify-content:center;align-items:center;display:flex}.chatlist-info{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.chatlist-top-row{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.chatlist-name{color:var(--text);white-space:nowrap;text-overflow:ellipsis;letter-spacing:-.01em;min-width:0;font-size:15.5px;font-weight:600;overflow:hidden}.chatlist-name .emoji,.chatlist-preview .emoji{vertical-align:-3px;width:18px;height:18px}.chatlist-muted-icon{color:var(--text-dim);vertical-align:-2px;align-items:center;margin-left:5px;display:inline-flex}.chatlist-muted-icon svg{display:block}.chatlist-time{color:var(--text-dim);white-space:nowrap;font-variant-numeric:tabular-nums;flex-shrink:0;margin-left:auto;font-size:13px}.chatlist-bottom-row{justify-content:space-between;align-items:center;gap:8px;display:flex}.chatlist-preview{color:var(--text-dim);white-space:nowrap;text-overflow:ellipsis;direction:ltr;flex:1;align-items:baseline;min-width:0;font-size:14px;display:flex;overflow:hidden}.chatlist-you{color:var(--text);direction:ltr;unicode-bidi:isolate;flex:none;margin-right:2px;font-weight:650}.chatlist-preview-message{text-overflow:ellipsis;white-space:nowrap;unicode-bidi:isolate;flex:auto;min-width:0;overflow:hidden}.chatlist-activity{color:var(--accent);font-weight:inherit;font-size:inherit;align-items:center;gap:5px;animation:.22s ease-out cl-activity-in;display:inline-flex}.chatlist-activity .typing-dots i{background:currentColor}.chatlist-activity .typing-dots{gap:2px;margin-left:3px;transform:none}.chatlist-activity .typing-dots i{width:4px;height:4px}@keyframes cl-activity-in{0%{opacity:0;transform:translateY(1px)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){.chatlist-activity{animation:none}}.chatlist-item.unread .chatlist-name{color:var(--text);font-weight:700}.chatlist-item.unread .chatlist-preview{color:var(--text);font-weight:500}.chatlist-badge{background:var(--accent);color:#fff;font-variant-numeric:tabular-nums;border-radius:11.5px;flex-shrink:0;justify-content:center;align-items:center;min-width:23px;height:23px;padding:0 7px;font-size:12px;font-weight:700;display:inline-flex}.chatlist-item.active,.chatlist-item.active:hover{background:#4f8bff1f}.chatlist-item.active .chatlist-name{color:var(--accent);font-weight:700}.chatlist-item.active .chatlist-you{color:var(--accent);font-weight:650}.chatlist-item.active .chatlist-preview{color:var(--text)}.chatlist-item.active.unread .chatlist-preview{color:var(--accent);font-weight:550}.chatlist-item.active .chatlist-time{color:var(--text-dim)}.chatlist-item.active .chatlist-badge{background:var(--accent);color:#fff}.chatlist-loading{flex:1;justify-content:center;align-items:center;display:flex}.chatlist-error{text-align:center;color:var(--danger);flex:1;justify-content:center;align-items:center;padding:0 24px;font-size:14px;display:flex}.chatlist-empty{color:var(--text-dim);text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:6px;padding:24px;font-size:15px;display:flex}.chatlist-empty-art{color:var(--text-faint);justify-content:center;align-items:center;margin-bottom:10px;display:flex}.chatlist-empty-sub{color:var(--text-faint);max-width:240px;font-size:13px}.chatlist-empty-bubble{width:72px;height:72px;color:var(--accent-2);margin-bottom:10px;font-size:52px;line-height:1}.chatlist-empty-bubble .emoji{vertical-align:middle;width:52px;height:52px}@media (min-width:769px){.chat-layout{gap:10px;padding:16px}.chat-sidebar{-webkit-backdrop-filter:blur(48px)saturate(200%)brightness(1.08);backdrop-filter:blur(48px)saturate(200%)brightness(1.08);background-color:#0f192b94;background-image:linear-gradient(135deg,#ffffff1a,#ffffff0a);border:1px solid #ffffff1f;border-radius:22px;flex:0 0 360px;max-width:360px;overflow:hidden;box-shadow:inset 0 1px #ffffff1f,0 6px 20px #04080c38}.chat-panel{min-width:0;box-shadow:none;background:0 0;border-radius:0;flex:1;overflow:hidden}.chatlist-header{padding:10px 14px}}@media (max-width:768px){.chatlist-header{padding-top:2px}.chatlist-title{padding:calc(14px + var(--safe-top,0px)) 12px 8px;min-height:calc(48px + var(--safe-top,0px));font-size:19px}.chatlist-title.connecting{font-size:19px}.chatlist-item{border-radius:11px;gap:9px;padding:5px 7px}.chatlist-avatar-wrap .avatar{width:46px!important;height:46px!important;font-size:18px!important}.chatlist-info{gap:2px}.chatlist-name{font-size:14px}.chatlist-preview{font-size:12.5px}.chatlist-time{font-size:11.5px}.chatlist-badge{border-radius:10px;min-width:20px;height:20px;padding:0 6px;font-size:11px}.chatlist-empty-bubble{width:58px;height:58px;font-size:42px}.chatlist-empty-bubble .emoji{width:42px;height:42px}}.tg-new-chat-btn{color:#fff;background:linear-gradient(135deg, var(--accent), var(--accent-2));cursor:pointer;border:none;border-radius:50%;flex:none;place-items:center;width:40px;height:40px;transition:transform .12s,box-shadow .12s,opacity .15s;display:grid;box-shadow:0 2px 10px #4f8bff66}.tg-new-chat-btn:hover{opacity:.9;transform:scale(1.05);box-shadow:0 3px 14px #4f8bff80}.tg-new-chat-btn:active{transform:scale(.92)}.tg-new-chat-btn svg{width:21px;height:21px}.tg-header-icon-btn{width:40px;height:40px;color:var(--text-dim);box-shadow:none;cursor:pointer;background:0 0;border:none;border-radius:50%;place-items:center;transition:background .15s,color .15s;display:grid}.tg-header-icon-btn:hover{color:var(--text);background:#ffffff14}.tg-header-icon-btn:active{transform:scale(.92)}.chatlist-id-tag{letter-spacing:.02em;color:var(--accent);background:#4f8bff1a;border:1px solid #4f8bff2e;border-radius:10px;align-items:center;padding:1px 8px;font-size:12.5px;font-weight:600;display:inline-flex}.tg-settings-panel{flex-direction:column;height:100%;display:flex}.tg-settings-header{gap:8px}.tg-settings-title{color:var(--text);flex:1;font-size:18px;font-weight:600}.tg-settings-header .chatlist-menu-avatar{color:var(--text-dim);border-radius:50%;place-items:center;transition:background .15s,color .15s;display:grid}.tg-settings-header .chatlist-menu-avatar:hover{color:var(--text);background:#ffffff14}.tg-settings-profile{cursor:pointer;border-bottom:1px solid #ffffff0f;align-items:center;gap:14px;padding:16px;transition:background .15s;display:flex}.tg-settings-profile:hover{background:#ffffff08}.tg-settings-profile .avatar-btn{flex-shrink:0}.tg-profile-photo-btn{color:var(--accent-2);text-align:start;margin-top:5px;padding:0;font-size:13px;font-weight:600}.tg-profile-photo-btn:hover{color:var(--text);text-decoration:underline}.tg-profile-photo-btn:disabled{cursor:wait;opacity:.65}.tg-settings-file-input{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.tg-settings-profile .avatar-remove-btn{color:#fff;cursor:pointer;background:#ff5050d9;border:none;border-radius:50%;flex-shrink:0;place-items:center;width:24px;height:24px;margin-left:-6px;padding:0;transition:background .15s,transform .15s;display:grid;position:relative}.tg-settings-profile .avatar-remove-btn svg{background:#ffffff40;border-radius:50%;width:14px;height:14px;padding:2px;display:block}.tg-settings-profile .avatar-remove-btn:hover{background:#ff3232;transform:scale(1.1)}.tg-settings-profile .avatar-remove-btn:active{transform:scale(.95)}.tg-profile-info{flex:1;min-width:0}.tg-profile-name{color:var(--text);font-size:16px;font-weight:600}.tg-profile-phone{color:var(--text-dim);font-size:13px}.tg-settings-list{flex:1;padding:4px 0;overflow-y:auto}.tg-settings-row{cursor:pointer;text-align:left;background:0 0;border:none;align-items:center;gap:14px;width:100%;padding:11px 16px;transition:background .12s;display:flex}.tg-settings-row:hover{background:#ffffff0a}.tg-settings-row:active{background:#ffffff14}.tg-settings-row-icon{width:38px;height:38px;color:var(--accent);background:#4f8bff1f;border-radius:50%;flex-shrink:0;place-items:center;display:grid}.tg-settings-row-icon svg{width:19px;height:19px}.tg-settings-row-content{flex:1;min-width:0}.tg-settings-row-title{color:var(--text);font-size:15px;font-weight:500;display:block}.tg-settings-row-sub{color:var(--text-dim);margin-top:1px;font-size:12px;display:block}.tg-settings-row-arrow{color:var(--text-faint);flex-shrink:0;font-size:20px}.tg-settings-footer{padding:14px 12px calc(16px + var(--safe-bottom));border-top:1px solid #ffffff0f}.tg-signout{width:100%;color:var(--text);font-family:var(--font);text-align:left;cursor:pointer;background:#ffffff09;border:1px solid #ffffff0f;border-radius:14px;align-items:center;gap:12px;padding:10px 12px;transition:background .16s,border-color .16s;display:flex}.tg-signout:hover{background:#ff64641a;border-color:#ff64643d}.tg-signout:active{background:#ff646429}.tg-signout-icon{width:38px;height:38px;color:var(--danger);background:#ff646424;border-radius:12px;flex:none;place-items:center;display:grid}.tg-signout-icon svg{width:19px;height:19px}.tg-signout-text{flex-direction:column;flex:auto;gap:1px;min-width:0;display:flex}.tg-signout-text strong{color:var(--danger);font-size:14.5px;font-weight:600}.tg-signout-text span{color:var(--text-dim);font-size:12px}.tg-signout-arrow{color:var(--text-faint);flex:none;font-size:20px;line-height:1}.tg-settings-face{flex:none;place-items:center;display:grid}.tg-settings-profile.readonly,.tg-settings-profile.readonly:hover{cursor:default;background:0 0}.tg-settings-section.account-identity{padding-top:14px}.tg-account-photo{flex-wrap:wrap;align-items:center;gap:16px;display:flex}.tg-account-photo .avatar-btn.account{cursor:pointer;background:0 0;border:none;border-radius:50%;padding:0;display:block;position:relative}.tg-account-photo .avatar-btn.account:disabled{opacity:.6;cursor:progress}.tg-account-photo .avatar-cam{background:var(--accent);color:#fff;border:2px solid #16202f;border-radius:50%;place-items:center;width:26px;height:26px;display:grid;position:absolute;bottom:-2px;right:-2px}.tg-account-photo .avatar-cam svg{width:13px;height:13px}.tg-account-photo-actions{flex-direction:column;gap:8px;min-width:150px;display:flex}.tg-account-photo-actions .tg-settings-btn.small{padding:8px 12px;font-size:13px}.tg-perm-card{background:#ffffff0a;border:1px solid #ffffff12;border-radius:14px;align-items:flex-start;gap:10px;margin-bottom:12px;padding:12px;display:flex}.tg-perm-dot{background:var(--text-faint);border-radius:50%;flex:none;width:9px;height:9px;margin-top:4px}.tg-perm-card.granted .tg-perm-dot{background:#3ddc84;box-shadow:0 0 0 3px #3ddc8429}.tg-perm-card.denied .tg-perm-dot{background:var(--danger);box-shadow:0 0 0 3px #ff646429}.tg-perm-card.default .tg-perm-dot{background:var(--accent);box-shadow:0 0 0 3px var(--accent-glow)}.tg-perm-text{flex-direction:column;gap:3px;min-width:0;display:flex}.tg-perm-text strong{color:var(--text);font-size:14px;font-weight:600}.tg-perm-text span{color:var(--text-dim);font-size:12.5px;line-height:1.4}.tg-settings-content{flex:1;padding:8px 0;overflow-y:auto}.tg-settings-section{border-bottom:1px solid #ffffff0a;padding:10px 16px}.tg-settings-section-title{color:var(--text-dim);text-transform:uppercase;letter-spacing:.04em;margin:0 0 10px;font-size:12px;font-weight:600}.tg-settings-section input[type=text],.tg-settings-section input[type=email],.tg-settings-section input[type=password]{width:100%;color:var(--text);font-size:14px;font-family:var(--font);background:#0003;border:1px solid #ffffff14;border-radius:10px;outline:none;margin-bottom:8px;padding:10px 12px;transition:border-color .15s}.tg-settings-section input:focus{border-color:var(--accent)}.tg-settings-section input::placeholder{color:var(--text-faint)}.tg-settings-section .tg-username-field{background:#0003;border:1px solid #ffffff14;border-radius:10px;width:100%;min-height:0;margin-bottom:8px;padding:0 12px}.tg-settings-section .tg-username-field input{width:auto;min-width:0;color:var(--text);font:inherit;background:0 0;border:0;border-radius:0;outline:none;margin:0;padding:10px 0 10px 2px;font-size:14px}.tg-settings-section .tg-username-field:focus-within{border-color:var(--accent)}.tg-settings-section .tg-username-field input::placeholder{color:var(--text-faint)}.tg-settings-fields{gap:8px;display:flex}.tg-settings-fields input{flex:1}.tg-settings-btn{color:var(--text);cursor:pointer;background:#ffffff14;border:1px solid #ffffff14;border-radius:10px;align-items:center;gap:6px;padding:9px 16px;font-size:13px;font-weight:500;transition:background .12s;display:inline-flex}.tg-settings-btn:hover{background:#ffffff1f}.tg-settings-btn.primary{background:linear-gradient(135deg, var(--accent), var(--accent-2));color:#fff;border:none}.tg-settings-btn.danger{color:var(--danger);border-color:#ff646433}.tg-settings-btn.danger:hover{background:#ff64641f}.tg-settings-btn.small{padding:5px 10px;font-size:12px}.tg-settings-btn:disabled{opacity:.5;cursor:not-allowed}.tg-settings-actions{gap:8px;margin-top:10px;display:flex}.tg-settings-toggle{cursor:pointer;justify-content:space-between;align-items:center;padding:8px 0;display:flex}.tg-settings-toggle span:first-child{color:var(--text);font-size:14px}.tg-settings-toggle input[type=checkbox]{display:none}.tg-settings-toggle .switch{background:#ffffff26;border-radius:11px;width:40px;height:22px;transition:background .2s;position:relative}.tg-settings-toggle .switch:after{content:"";background:#fff;border-radius:50%;width:18px;height:18px;transition:transform .2s;position:absolute;top:2px;left:2px}.tg-settings-toggle input:checked+.switch{background:var(--accent)}.tg-settings-toggle input:checked+.switch:after{transform:translate(18px)}.tg-settings-hint{color:var(--text-dim);margin:6px 0;font-size:12px}.tg-settings-badge{border-radius:16px;margin-bottom:6px;padding:5px 12px;font-size:12px;font-weight:600;display:inline-flex}.tg-settings-badge.installed{color:var(--success);background:#3ddc8426}.tg-settings-badge.installable,.tg-settings-badge.waiting{color:var(--accent);background:#4f8bff26}.tg-settings-badge:not(.installed):not(.installable):not(.waiting){color:var(--text-dim);background:#ffffff14}.tg-settings-cache{color:var(--text-dim);margin-bottom:8px;font-size:13px}.tg-settings-loading{justify-content:center;padding:16px;display:flex}.tg-settings-error{color:var(--danger);padding:10px;font-size:13px}.tg-settings-users{flex-direction:column;gap:6px;display:flex}.tg-settings-user{background:#ffffff08;border:1px solid #ffffff0d;border-radius:10px;align-items:center;gap:10px;padding:8px;display:flex}.tg-settings-user-info{flex:1;min-width:0}.tg-settings-user-name{color:var(--text);align-items:center;gap:5px;font-size:13px;font-weight:600;display:flex}.tg-settings-owner{color:var(--accent);background:#4f8bff26;border-radius:3px;padding:1px 5px;font-size:10px;font-weight:600}.tg-settings-user-email{color:var(--text-dim);font-size:11px}.tg-settings-user-actions{gap:5px;display:flex}.settings-toast{z-index:1000;border-radius:10px;padding:10px 18px;font-size:13px;font-weight:500;animation:.15s fadeIn;position:fixed;bottom:20px;left:50%;transform:translate(-50%)}.settings-toast.ok{color:var(--success);background:#3ddc8426;border:1px solid #3ddc844d}.settings-toast.err{color:var(--danger);background:#ff646426;border:1px solid #ff64644d}.tg-profile-view{padding:0}.tg-profile-hero{border-bottom:1px solid #ffffff0f;flex-direction:column;align-items:center;padding:24px 16px 20px;display:flex}.tg-profile-hero .avatar{width:100px;height:100px;margin-bottom:12px;font-size:40px}.tg-profile-hero-avatar{cursor:default;background:0 0;border:none;border-radius:50%;padding:0;display:inline-flex;position:relative}.tg-profile-hero-avatar:not(:disabled){cursor:pointer}.tg-profile-hero-avatar:not(:disabled):hover .avatar{filter:brightness(.86)}.tg-profile-hero-avatar .avatar{transition:filter .18s}.tg-profile-hero-avatar-edit{background:var(--accent);color:#fff;border:2px solid var(--bg,#0b1220);cursor:pointer;border-radius:50%;place-items:center;width:30px;height:30px;transition:filter .15s,transform .15s;display:grid;position:absolute;bottom:14px;right:4px;box-shadow:0 2px 8px #00000059}.tg-profile-hero-avatar-edit:hover{filter:brightness(1.12);transform:scale(1.06)}.tg-profile-hero-avatar-edit:disabled{opacity:.55;cursor:default}.tg-profile-hero-name{color:var(--text);text-align:center;font-size:20px;font-weight:600}.tg-profile-hero-status{color:var(--text-dim);margin-top:4px;font-size:14px}.tg-profile-info-row{border-bottom:1px solid #ffffff0a;justify-content:space-between;align-items:center;padding:10px 0;display:flex}.tg-profile-info-row:last-child{border-bottom:none}.tg-profile-info-label{color:var(--text-dim);font-size:14px}.tg-profile-info-value{color:var(--text);font-size:14px;font-weight:500}.tg-profile-id-tag{color:var(--accent);letter-spacing:.02em;background:#4f8bff1f;border:1px solid #4f8bff33;border-radius:20px;align-items:center;margin-top:10px;padding:6px 16px;font-size:15px;font-weight:600;display:inline-flex}.tg-profile-media-tabs{scrollbar-width:none;border-bottom:1px solid #ffffff0f;justify-content:flex-start;gap:6px;padding:10px 12px;display:flex;overflow-x:auto}.tg-profile-media-tab{color:var(--text-dim);cursor:pointer;white-space:nowrap;background:#ffffff0a;border:1px solid #0000;border-radius:999px;flex-direction:row;flex-shrink:0;align-items:center;gap:5px;padding:7px 12px;font-size:13px;font-weight:550;line-height:1;transition:background .12s,color .12s,border-color .12s;display:inline-flex}.tg-profile-media-count{font-variant-numeric:tabular-nums;opacity:.85}.tg-profile-media-sentinel{height:1px}.tg-profile-media-more{justify-content:center;padding:14px 0;display:flex}.tg-profile-media-tab:hover{background:#ffffff0a}.tg-profile-media-tab svg{width:18px;height:18px}.tg-profile-media-empty{color:var(--text-dim);justify-content:center;align-items:center;padding:32px;font-size:14px;display:flex}.tg-profile-media-tile{aspect-ratio:1;cursor:pointer;background:#ffffff0a;border-radius:10px;justify-content:center;align-items:center;transition:transform .12s,box-shadow .12s;display:flex;position:relative;overflow:hidden}.tg-profile-media-tile:hover{z-index:1;transform:translateY(-1px);box-shadow:0 6px 16px #00000059}.tg-profile-media-tile:active{transform:scale(.97)}.tg-profile-media-tile .att-img.gallery-tile{object-fit:cover;border-radius:10px;width:100%;height:100%}.tg-profile-media-tile .media-load{text-align:center;border-radius:10px;flex-direction:column;gap:5px;width:100%;height:100%;padding:4px;font-size:10.5px}.tg-profile-media-tile .att-video-wrapper,.tg-profile-media-tile .att-video{object-fit:cover;border-radius:10px;width:100%;height:100%}.tg-profile-media-tile .skel-wrap{width:100%;height:100%}.tg-profile-media-icon{color:var(--text-faint)}.tg-profile-media-list{flex-direction:column;display:flex}.tg-profile-media-row{padding:6px 10px;transition:background .12s;display:block}.tg-profile-media-row .voice-player,.tg-profile-media-row .music-player{width:100%;max-width:none}.tg-profile-media-row .att-file{min-width:0}.tg-profile-media-row .att-video-wrapper,.tg-profile-media-row .att-video{width:100%;max-width:none}.tg-profile-media-row:hover{background:#ffffff0a}.tg-profile-media-row-icon{width:36px;height:36px;color:var(--accent);background:#4f8bff1f;border-radius:50%;flex-shrink:0;place-items:center;display:grid}.tg-profile-media-row-info{flex:1;min-width:0}.tg-profile-media-row-title{color:var(--text);white-space:nowrap;text-overflow:ellipsis;font-size:14px;font-weight:500;display:block;overflow:hidden}.tg-profile-media-row-sub{color:var(--text-dim);font-size:12px;display:block}.tg-settings-content{animation:.2s cubic-bezier(.4,0,.2,1) slideInRight}@keyframes slideInRight{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:translate(0)}}.tg-profile-view{animation:.2s cubic-bezier(.4,0,.2,1) slideInRight}@media (max-width:768px){.tg-profile-hero{padding:16px 12px 14px}.tg-profile-hero .avatar{width:72px;height:72px;margin-bottom:8px;font-size:30px}.tg-profile-hero-name{font-size:17px}.tg-profile-hero-status{font-size:12.5px}.tg-profile-id-tag{border-radius:16px;margin-top:8px;padding:4px 12px;font-size:13px}.tg-profile-info-row{padding:8px 12px}.tg-profile-info-label,.tg-profile-info-value{font-size:13px}.tg-profile-media-tabs{padding:8px 12px}.tg-profile-media-tab{padding:6px 10px;font-size:11px}.tg-profile-media-tab svg{width:16px;height:16px}.tg-profile-media-row{padding:8px 12px}.tg-profile-media-row-icon{width:32px;height:32px}.tg-profile-media-row-title{font-size:13px}.tg-profile-media-row-sub{font-size:11px}.tg-profile-media-empty{padding:24px;font-size:13px}.tg-settings-row{gap:12px;padding:9px 12px}.tg-settings-row-icon{width:34px;height:34px}.tg-settings-row-icon svg{width:17px;height:17px}.tg-settings-row-title{font-size:14px}.tg-settings-row-sub{font-size:11.5px}.tg-settings-profile{gap:12px;padding:12px}.tg-settings-title{font-size:16px}.tg-settings-footer{padding:8px 12px}.tg-settings-logout{padding:9px;font-size:13px}}.chatlist-item.menu-open{background:#ffffff17}.chatlist-toast{z-index:30;max-width:calc(100% - 24px);color:var(--text);-webkit-backdrop-filter:blur(18px)saturate(160%);backdrop-filter:blur(18px)saturate(160%);pointer-events:none;background:#121c2ef0;border:1px solid #ffffff24;border-radius:999px;align-items:center;gap:7px;padding:7px 13px;font-size:12px;font-weight:600;animation:.24s cubic-bezier(.2,.9,.3,1) hdrToastIn;display:inline-flex;position:absolute;bottom:16px;left:50%;transform:translate(-50%);box-shadow:0 10px 26px #0000006b}.chatlist-toast svg{width:13px;height:13px;color:var(--success)}.chatlist-toast.err{border-color:#ff6b6b6b}.chatlist-toast.err svg{color:var(--danger)}.tg-profile-hero{background:#ffffff09;border:1px solid #ffffff12;border-radius:22px;flex-direction:column;align-items:center;gap:3px;margin:10px 10px 8px;padding:20px 16px 18px;display:flex;position:relative;box-shadow:inset 0 1px #ffffff0d}.tg-profile-hero:before{content:"";background:var(--accent);opacity:.85;border-radius:999px;width:64px;height:2px;position:absolute;top:-1px;left:50%;transform:translate(-50%)}.tg-profile-hero-avatar{background:0 0;border:none;border-radius:50%;padding:0;display:inline-flex;position:relative}.tg-avatar-open{cursor:default;background:0 0;border:none;border-radius:50%;padding:0;display:inline-flex}.tg-avatar-open:not(:disabled){cursor:zoom-in}.tg-avatar-open:disabled{cursor:default}.tg-profile-hero-avatar.photo .tg-avatar-open:not(:disabled):hover .avatar,.tg-profile-hero-avatar.photo .tg-avatar-open:focus-visible .avatar{box-shadow:0 0 0 3px #4f8bff6b,0 8px 22px #0006}.tg-avatar-open .avatar{transition:box-shadow .18s}.tg-profile-hero-avatar .avatar,.tg-profile-hero .avatar{margin-bottom:10px}.tg-profile-media-tabs{scrollbar-width:none;background:#00000038;border:1px solid #ffffff12;border-radius:14px;gap:3px;margin:0 10px 8px;padding:4px;display:flex;overflow-x:auto}.tg-profile-media-tabs::-webkit-scrollbar{display:none}.tg-profile-media-tab{min-height:34px;color:var(--text-dim);white-space:nowrap;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:11px;flex:none;align-items:center;gap:6px;padding:7px 11px;font-size:13px;font-weight:600;line-height:1;transition:background .14s,color .14s,box-shadow .14s;display:inline-flex}.tg-profile-media-tab:hover{color:var(--text);background:#ffffff0d}.tg-profile-media-tab.active{color:var(--text);background:#4f8bff26;box-shadow:inset 0 0 0 1px #4f8bff66}.tg-profile-media-tab svg{opacity:.9;width:17px;height:17px}.tg-profile-media-count{text-align:center;font-variant-numeric:tabular-nums;opacity:1;background:#ffffff14;border-radius:999px;min-width:18px;padding:2px 5px;font-size:10.5px;font-weight:700;line-height:1}.tg-profile-media-tab.active .tg-profile-media-count{background:var(--accent);color:#fff}.tg-profile-media-content{min-height:120px;padding:0 10px 18px}.tg-profile-media-empty{color:var(--text-dim);text-align:center;border:1px dashed #ffffff1a;border-radius:18px;flex-direction:column;justify-content:center;align-items:center;gap:6px;margin:4px 0;padding:34px 20px;font-size:13.5px;display:flex}.tg-profile-media-grid{grid-template-columns:repeat(auto-fill,minmax(94px,1fr));gap:6px;padding:0;display:grid}.tg-profile-media-tile{aspect-ratio:1;background:#ffffff0d;border-radius:14px;transition:box-shadow .14s;box-shadow:inset 0 0 0 1px #ffffff0d}.tg-profile-media-tile:hover{transform:none;box-shadow:inset 0 0 0 1px #ffffff1a,0 0 0 2px #4f8bff80}.tg-profile-media-tile:active{transform:none;box-shadow:inset 0 0 0 1px #ffffff1a,0 0 0 3px #4f8bff99}.tg-profile-media-tile .att-img.gallery-tile,.tg-profile-media-tile .media-load,.tg-profile-media-tile .att-video{border-radius:14px}.tg-profile-media-grid.vn-grid{grid-template-columns:repeat(auto-fill,minmax(148px,1fr));justify-items:center;gap:8px}.tg-profile-media-note{touch-action:pan-y;border-radius:20px;justify-content:center;align-items:center;width:100%;padding:8px 0;transition:background .14s;display:flex}.tg-profile-media-note:hover{background:#ffffff0b}.tg-profile-media-list{flex-direction:column;gap:8px;display:flex}.tg-profile-media-row{touch-action:pan-y;background:#ffffff09;border:1px solid #ffffff0f;border-radius:16px;padding:8px 10px;transition:background .14s,border-color .14s;display:block}.tg-profile-media-row:hover{background:#ffffff0f;border-color:#ffffff1a}.group-member-list{flex-direction:column;gap:6px;display:flex}.group-member-row{background:#ffffff08;border:1px solid #ffffff0e;border-radius:16px;padding:4px 6px 4px 4px}.group-member-row:hover{background:#ffffff0e;border-color:#ffffff1a}.group-member-open{text-align:left;cursor:pointer;background:0 0;border:none;flex:1;align-items:center;gap:10px;min-width:0;padding:6px 4px;display:flex}@media (max-width:768px){.tg-profile-hero{border-radius:18px;margin:8px 8px 6px;padding:16px 12px 14px}.tg-profile-media-tabs{gap:2px;margin:0 8px 6px}.tg-profile-media-tab{min-height:32px;padding:6px 9px;font-size:12px}.tg-profile-media-content{padding:0 8px 16px}.tg-profile-media-grid{grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:5px}.tg-profile-media-grid.vn-grid{grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:6px}.tg-profile-media-row{border-radius:14px}}.tg-panel-header{-webkit-backdrop-filter:blur(32px)saturate(180%)brightness(1.06);backdrop-filter:blur(32px)saturate(180%)brightness(1.06);z-index:3;background-color:#0f192b6b;background-image:linear-gradient(135deg,#ffffff14,#ffffff08);border-bottom:none;flex-shrink:0;align-items:center;gap:10px;min-height:58px;padding:9px 12px;display:flex;position:relative;box-shadow:inset 0 1px #ffffff14}.tg-settings-header,.tg-settings-header.tg-panel-header{box-shadow:none;background:0 0}html.perf-mode .tg-panel-header{-webkit-backdrop-filter:none;backdrop-filter:none;background-color:#1a2438;background-image:none}html.perf-mode .tg-settings-header,html.perf-mode .tg-settings-header.tg-panel-header{background:0 0}.tg-panel-back{width:40px;height:40px;color:var(--text);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:50%;flex:none;place-items:center;transition:background .15s,border-color .15s,transform .12s;display:grid}.tg-panel-back svg{width:22px;height:22px}.tg-panel-back:hover{background:#ffffff14;border-color:#ffffff1f}.tg-panel-back:active{transform:scale(.93)}.tg-panel-header .tg-settings-title{letter-spacing:.01em;white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;font-size:19px;font-weight:650;overflow:hidden}.tg-panel-spacer{flex:none;width:40px}@media (max-width:768px){.tg-panel-header{padding:calc(12px + var(--safe-top,0px)) 12px 9px}}.tg-action-card{background:#ffffff09;border:1px solid #ffffff12;border-radius:18px;flex-direction:column;margin:10px 10px 8px;display:flex;overflow:hidden}.tg-action-row{width:100%;color:var(--text);font-family:var(--font);text-align:left;cursor:pointer;background:0 0;border:none;align-items:center;gap:12px;padding:12px 14px;transition:background .14s;display:flex}.tg-action-row+.tg-action-row{border-top:1px solid #ffffff0f}.tg-action-row:hover{background:#ffffff0d}.tg-action-row:active{background:#ffffff14}.tg-action-row-icon{width:34px;height:34px;color:var(--accent);background:#4f8bff24;border-radius:11px;flex:none;place-items:center;display:grid}.tg-action-row-label{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.tg-action-row-title{font-size:14.5px;font-weight:600}.tg-action-row-sub{color:var(--text-dim);font-size:12px}.tg-action-row-chevron{color:var(--text-faint);flex:none;font-size:20px;line-height:1}.tg-action-row.danger .tg-action-row-icon{color:var(--danger);background:#ff6b6b24}.tg-action-row.danger .tg-action-row-title{color:var(--danger)}.tg-group-manage-card{background:#ffffff09;border:1px solid #ffffff12;border-radius:16px;flex-direction:column;gap:12px;padding:12px;display:flex}.tg-field{flex-direction:column;gap:6px;display:flex}.tg-field-label{letter-spacing:.04em;text-transform:uppercase;color:var(--text-dim);font-size:11.5px;font-weight:600}.tg-group-manage-card input[type=text]{margin-bottom:0}.tg-toggle-copy{flex-direction:column;gap:2px;min-width:0;margin-right:auto;display:flex}.tg-toggle-title{font-size:14px}.tg-toggle-sub{color:var(--text-dim);font-size:12px}.tg-group-manage-actions{margin-top:14px}.tg-group-manage-actions .btn-soft{flex:1;justify-content:center}@media (max-width:768px){.tg-action-card{border-radius:16px;margin:8px 8px 6px}}.tg-profile-msg-btn{background:var(--accent);color:#fff;min-height:42px;font-family:var(--font);cursor:pointer;border:none;border-radius:999px;justify-content:center;align-items:center;gap:8px;margin-top:14px;padding:0 26px;font-size:14.5px;font-weight:600;transition:filter .15s,transform .12s;display:inline-flex}.tg-profile-msg-btn:hover{filter:brightness(1.08)}.tg-profile-msg-btn:active{transform:scale(.97)}.tg-profile-self-note{min-height:42px;color:var(--text-dim);background:#ffffff0a;border:1px solid #ffffff17;border-radius:999px;align-items:center;margin-top:14px;padding:0 22px;font-size:13.5px;font-weight:600;display:inline-flex}.tg-profile-missing{color:var(--text-dim);text-align:center;flex-direction:column;align-items:center;gap:14px;padding:48px 24px;display:flex}.tg-profile-missing p{margin:0;font-size:14px}.tg-bubble-preview{background:#00000038;border:1px solid #ffffff12;border-radius:16px;flex-direction:column;gap:7px;margin:4px 0 16px;padding:14px 12px;display:flex}.tg-bubble-preview-bubble{max-width:84%;padding:calc(10px * var(--bubble-scale)) calc(13px * var(--bubble-scale));border-radius:calc(20px * var(--bubble-scale));font-size:calc(15px * var(--bubble-scale));color:var(--text);overflow-wrap:break-word;background:#ffffff17;border:1px solid #ffffff1f;border-top-left-radius:6px;align-self:flex-start;line-height:1.4}.tg-bubble-preview-bubble.mine{border-top-left-radius:calc(20px * var(--bubble-scale));background:#4f6ef761;border-color:#ffffff2e;border-top-right-radius:6px;align-self:flex-end}.tg-appearance-slider{align-items:center;gap:12px;display:flex}.tg-wallpaper-toolbar{justify-content:space-between;align-items:center;gap:10px;margin:4px 0 12px;display:flex}.tg-wallpaper-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0 12px;display:grid}.tg-wallpaper-card{min-width:0;color:var(--text-dim);cursor:pointer;text-align:left;background:#ffffff0a;border:1px solid #ffffff17;border-radius:13px;padding:5px;transition:border-color .16s,background .16s,transform .16s}.tg-wallpaper-card:hover{background:#ffffff14;transform:translateY(-1px)}.tg-wallpaper-card.selected{border-color:var(--accent);color:var(--text);background:#4f8bff24;box-shadow:0 0 0 2px #4f8bff2e}.tg-wallpaper-thumb{aspect-ratio:.78;background-color:var(--bg);background-position:50%;background-size:cover;border-radius:9px;width:100%;display:block}.tg-wallpaper-card>span:last-child{text-overflow:ellipsis;white-space:nowrap;padding:7px 3px 3px;font-size:12px;display:block;overflow:hidden}.tg-wallpaper-upload{justify-content:center;width:100%}.tg-appearance-divider{background:#ffffff12;height:1px;margin:20px 0 4px}@media (max-width:380px){.tg-wallpaper-grid{gap:7px}.tg-wallpaper-card>span:last-child{font-size:11px}}.tg-appearance-slider input[type=range]{appearance:none;cursor:pointer;background:#ffffff29;border-radius:999px;outline:none;flex:1;min-width:0;height:4px;margin:0}.tg-appearance-slider input[type=range]::-webkit-slider-thumb{appearance:none;background:var(--accent);cursor:grab;border:2px solid #ffffff38;border-radius:50%;width:20px;height:20px;box-shadow:0 2px 8px #0006}.tg-appearance-slider input[type=range]::-moz-range-thumb{background:var(--accent);cursor:grab;border:2px solid #ffffff38;border-radius:50%;width:20px;height:20px;box-shadow:0 2px 8px #0006}.tg-appearance-slider input[type=range]:focus-visible{box-shadow:0 0 0 3px #4f8bff59}.tg-appearance-cap{color:var(--text-dim);flex:none;font-weight:600;line-height:1}.tg-appearance-cap.small{font-size:12px}.tg-appearance-cap.big{font-size:20px}.tg-appearance-foot{justify-content:space-between;align-items:center;margin-top:12px;display:flex}.tg-appearance-value{color:var(--text);font-variant-numeric:tabular-nums;font-size:14px;font-weight:600}.chatlist-tabs{z-index:2;background:#ffffff0b;border:1px solid #ffffff12;border-radius:13px;flex-shrink:0;align-items:stretch;margin:8px 10px 4px;padding:3px;display:flex;position:relative}.chatlist-tabs-thumb{pointer-events:none;background:#ffffff21;border-radius:10px;width:calc(33.3333% - 2px);transition:transform .26s cubic-bezier(.22,.9,.28,1);position:absolute;top:3px;bottom:3px;left:3px;transform:translate(0);box-shadow:0 1px 2px #00000042,inset 0 1px #ffffff21}.chatlist-tabs.groups .chatlist-tabs-thumb{transform:translate(100%)}.chatlist-tabs.public .chatlist-tabs-thumb{transform:translate(200%)}.chatlist-tab{z-index:1;cursor:pointer;min-width:0;height:32px;color:var(--text-dim);font-family:var(--font);letter-spacing:.1px;-webkit-tap-highlight-color:transparent;background:0 0;border:0;border-radius:10px;flex:1 1 0;justify-content:center;align-items:center;gap:7px;padding:0 8px;font-size:13.5px;font-weight:600;transition:color .22s;display:flex;position:relative}.chatlist-tab.active,.chatlist-tab:hover{color:var(--text)}.chatlist-tab-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chatlist-tab-badge{background:var(--accent);color:#fff;text-align:center;font-variant-numeric:tabular-nums;border-radius:999px;flex:none;min-width:19px;height:19px;padding:0 6px;font-size:11px;font-weight:700;line-height:19px;box-shadow:0 1px 4px #0000004d}.chatlist-body{touch-action:pan-y;will-change:transform;flex-direction:column;flex:1;min-height:0;transition:transform .28s cubic-bezier(.22,.9,.28,1);display:flex}.chatlist-body>.chatlist-empty{flex:1}html.perf-mode .chatlist-tabs{background:#ffffff0f}.tg-settings-page{padding:12px 12px calc(24px + var(--safe-bottom));box-sizing:border-box;flex-direction:column;gap:12px;width:100%;max-width:640px;margin:0 auto;display:flex}.tg-settings-page .tg-settings-section{background:#ffffff09;border:1px solid #ffffff12;border-radius:18px;padding:14px;box-shadow:inset 0 1px #ffffff0d}.tg-settings-page .tg-settings-section-title{letter-spacing:.07em;text-transform:uppercase;color:var(--text-dim);align-items:center;gap:8px;margin:0 0 12px;font-size:11.5px;font-weight:650;display:flex}.tg-settings-page .tg-settings-section-title:before{content:"";background:var(--accent);border-radius:2px;flex:none;width:3px;height:12px}.tg-settings-page .tg-settings-hint{color:var(--text-dim);margin:0 0 10px;font-size:12.5px;line-height:1.5}.tg-settings-page .tg-settings-hint+.tg-settings-hint{margin-top:-4px}.tg-settings-page input[type=text],.tg-settings-page input[type=email],.tg-settings-page input[type=password]{width:100%;min-height:44px;color:var(--text);appearance:none;background:#050a146b;border:1px solid #ffffff1a;border-radius:13px;margin-bottom:10px;padding:11px 13px;font-size:14.5px;transition:border-color .15s,box-shadow .15s,background .15s}.tg-settings-page input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-glow);background:#050a148c;outline:none}.tg-settings-page input::placeholder{color:var(--text-faint)}.tg-settings-page input:last-child{margin-bottom:0}.tg-settings-page .tg-settings-section .tg-username-field{background:#050a146b;border:1px solid #ffffff1a;border-radius:13px;width:100%;min-height:44px;margin-bottom:10px;padding:0 12px}.tg-settings-page .tg-settings-section .tg-username-field input{width:auto;min-width:0;min-height:0;box-shadow:none;color:var(--text);font:inherit;background:0 0;border:0;border-radius:0;margin:0;padding:11px 0 11px 2px;font-size:14.5px}.tg-settings-page .tg-settings-section .tg-username-field input:focus{box-shadow:none;background:0 0;border:0}.tg-settings-page .tg-settings-section>.tg-settings-btn{border-radius:13px;justify-content:center;width:100%;min-height:44px;margin-top:12px;font-size:14px;font-weight:560}.tg-settings-page .tg-settings-section>.tg-settings-btn.small{width:auto;min-height:34px;font-size:13px}.tg-settings-page .tg-settings-section>.tg-settings-btn:first-child{margin-top:0}.tg-settings-page .tg-settings-actions{gap:8px;margin-top:12px;display:flex}.tg-settings-page .tg-settings-actions .tg-settings-btn{border-radius:13px;flex:1 1 0;justify-content:center;min-height:44px;margin-top:0;font-size:14px;font-weight:560}.tg-settings-page .tg-settings-fields{grid-template-columns:1fr 1fr;gap:10px;display:grid}.tg-settings-page .tg-settings-fields input{margin-bottom:0}.tg-settings-page .tg-settings-toggle{background:#ffffff0a;border:1px solid #ffffff0f;border-radius:14px;margin:0 0 8px;padding:10px 12px;transition:background .15s}.tg-settings-page .tg-settings-toggle span:first-child{padding-right:12px;font-size:14.5px;font-weight:520}.tg-settings-page .tg-toggle-copy{flex-direction:column;gap:2px;min-width:0;padding-right:12px;display:flex}.tg-settings-page .tg-toggle-title{color:var(--text);font-size:14.5px;font-weight:550}.tg-settings-page .tg-toggle-sub{color:var(--text-dim);font-size:12.5px;line-height:1.4}.tg-settings-page .tg-settings-toggle .switch{flex:none}.tg-settings-page .tg-settings-cache{color:var(--text-dim);background:#ffffff0a;border-radius:13px;justify-content:space-between;align-items:center;padding:11px 13px;font-size:13.5px;display:flex}.tg-settings-page .tg-settings-badge{border-radius:999px;align-items:center;margin-bottom:10px;padding:5px 11px;font-size:12px;font-weight:600;display:inline-flex}@media (max-width:420px){.tg-settings-page{padding:10px 10px calc(20px + var(--safe-bottom))}.tg-settings-page .tg-settings-section{border-radius:16px;padding:12px}.tg-settings-page .tg-settings-fields{grid-template-columns:minmax(0,1fr)}}.tg-settings-lead{align-items:center;gap:14px;padding:4px 2px 0;display:flex}.tg-settings-lead-icon{color:#fff;background:hsl(var(--row-hue,210) 72% 56%);width:44px;height:44px;box-shadow:inset 0 1px 0 #ffffff3d, 0 6px 16px hsl(var(--row-hue,210) 72% 40% / .32);border-radius:14px;flex:none;place-items:center;display:grid}.tg-settings-lead-icon svg{width:21px;height:21px}.tg-settings-lead-copy{min-width:0}.tg-settings-lead-copy h2{letter-spacing:-.01em;color:var(--text);margin:0;font-size:19px;font-weight:620}.tg-settings-lead-copy p{color:var(--text-dim);margin:2px 0 0;font-size:12.8px;line-height:1.45}.tg-settings-page .tg-settings-section-title:before{display:none}.chatlist-call-tag{background:color-mix(in srgb, var(--accent) 22%, transparent);border:1px solid color-mix(in srgb, var(--accent) 38%, transparent);height:18px;color:color-mix(in srgb, var(--accent) 40%, #fff);letter-spacing:.3px;text-transform:uppercase;white-space:nowrap;border-radius:999px;flex-shrink:0;align-items:center;gap:5px;padding:0 7px 0 6px;font-size:10.5px;font-weight:700;animation:.28s both clCallTagIn;display:inline-flex}.chatlist-call-dot{background:var(--accent);width:6px;height:6px;box-shadow:0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent);border-radius:50%;animation:1.8s cubic-bezier(.4,0,.2,1) infinite clCallPulse}@keyframes clCallPulse{0%{box-shadow:0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent);opacity:1}70%{opacity:.72;box-shadow:0 0 0 5px #0000}to{opacity:1;box-shadow:0 0 #0000}}@keyframes clCallTagIn{0%{opacity:0;transform:scale(.85)}to{opacity:1;transform:scale(1)}}.chatlist-name{flex:0 auto}html.perf-mode .chatlist-call-dot,html.perf-mode .chatlist-call-tag{animation:none}@media (prefers-reduced-motion:reduce){.chatlist-call-dot,.chatlist-call-tag{animation:none}}.tg-settings-page .tg-settings-section{background:#ffffff0a;border-radius:20px;padding:15px 14px 14px}.tg-card-head{flex-direction:column;gap:4px;margin-bottom:12px;display:flex}.tg-settings-page .tg-card-head .tg-settings-section-title{letter-spacing:.075em;color:#d8e4f8a8;margin:0;font-size:11.5px;font-weight:650}.tg-settings-page .tg-card-head .tg-settings-hint{margin:0}.tg-settings-page .tg-settings-toggle{cursor:pointer;align-items:center;min-height:58px;margin:0 0 10px;padding:11px 13px}.tg-settings-page .tg-settings-toggle:last-of-type{margin-bottom:0}.tg-account-hero{text-align:center;flex-direction:column;align-items:center;gap:12px;padding:8px 0 4px;display:flex}.tg-account-hero .avatar-btn.account{background:0 0;border:none;border-radius:50%;padding:0;display:block}.tg-account-hero .avatar-btn.account:disabled{opacity:.6;cursor:progress}.tg-account-hero-copy{flex-direction:column;align-items:center;gap:2px;min-width:0;max-width:100%;display:flex}.tg-account-hero-copy strong{letter-spacing:-.01em;color:var(--text);text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:16.5px;font-weight:620;overflow:hidden}.tg-account-hero-copy span{color:var(--text-dim);text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:12.5px;overflow:hidden}.tg-account-hero .tg-account-photo-actions{flex-direction:row;gap:8px;min-width:0}.tg-account-hero .tg-settings-btn.small{min-height:36px;padding:0 16px}.tg-size-presets{flex-wrap:wrap;gap:6px;margin:0 0 12px;display:flex}.tg-size-preset{min-width:70px;height:38px;color:var(--text-dim);font-family:var(--font);cursor:pointer;-webkit-tap-highlight-color:transparent;background:#ffffff0b;border:1px solid #ffffff17;border-radius:12px;flex:auto;padding:0 12px;font-size:13px;font-weight:560;transition:background .15s,color .15s,border-color .15s,transform .12s}.tg-size-preset:hover{color:var(--text);background:#ffffff14}.tg-size-preset:active{transform:scale(.97)}.tg-size-preset.active{background:linear-gradient(135deg, var(--accent), var(--accent-2));color:#fff;border-color:#fff3;box-shadow:inset 0 1px #ffffff38,0 6px 16px #4f8bff47}.tg-install-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;display:flex}.tg-install-row .tg-settings-badge{margin-bottom:0}.tg-install-row .tg-settings-btn{margin-top:0}.tg-settings-page .tg-settings-cache{margin-bottom:2px}.tg-settings-page .tg-settings-cache strong{color:var(--text);font-variant-numeric:tabular-nums;font-weight:600}.tg-settings-page .tg-settings-section>.tg-settings-btn.danger{margin-top:14px}.tg-settings-page .tg-settings-section>.tg-settings-btn.danger:before{content:none}@media (max-width:420px){.tg-settings-page .tg-settings-section{border-radius:17px;padding:13px 12px 12px}.tg-size-preset{min-width:60px;padding:0 8px;font-size:12.5px}}.tg-settings-page .tg-settings-section{-webkit-backdrop-filter:blur(30px)saturate(170%);backdrop-filter:blur(30px)saturate(170%);background-color:#0f192b6b;background-image:linear-gradient(135deg,#ffffff13,#ffffff05);border:1px solid #ffffff16;box-shadow:inset 0 1px #ffffff12,0 10px 26px #03070e42}html.perf-mode .tg-settings-page .tg-settings-section{-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;background-color:#0e1626f0;background-image:none}.tg-settings-page .tg-settings-toggle{background:#ffffff09;border:1px solid #ffffff0e;border-radius:14px;transition:background .15s,border-color .15s}.tg-settings-page .tg-settings-toggle:hover{background:#ffffff0f}.tg-settings-page .tg-settings-toggle:active{background:#ffffff16}.tg-settings-page .tg-settings-toggle .switch{border-radius:13px;width:44px;height:26px}.tg-settings-page .tg-settings-toggle .switch:after{width:20px;height:20px;top:3px;left:3px}.tg-settings-page .tg-settings-toggle input:checked+.switch:after{transform:translate(18px)}.tg-settings-page .tg-perm-card{background:#ffffff0b;border:1px solid #ffffff13;border-radius:15px;margin-bottom:13px;padding:13px 14px}.tg-settings-page .tg-settings-btn{transition:background .15s,transform .12s,border-color .15s}.tg-settings-page .tg-settings-btn:active{transform:scale(.985)}.tg-settings-page .tg-settings-btn.primary{background-image:linear-gradient(135deg, var(--accent), var(--accent-2));color:#fff;border-color:#ffffff2e;box-shadow:inset 0 1px #ffffff38,0 8px 20px #4f8bff47}.tg-settings-page{gap:14px}@media (prefers-reduced-motion:reduce){.tg-settings-page .tg-settings-btn:active{transform:none}}.tg-push-test{color:var(--text-dim);background:#ffffff0a;border:1px solid #ffffff1a;border-radius:12px;margin:0;padding:10px 12px;font-size:12.5px;font-weight:540;line-height:1.4}.tg-push-test.ok{color:#b8f0cf;background:#58d68d1a;border-color:#58d68d57}.tg-push-test.bad{color:#ffc4c4;background:#ff60601a;border-color:#ff787857}.tg-notify-btn{width:40px;height:40px;color:var(--text);-webkit-backdrop-filter:blur(24px)saturate(180%)brightness(1.06);backdrop-filter:blur(24px)saturate(180%)brightness(1.06);cursor:pointer;background-color:#0f192b6b;background-image:linear-gradient(135deg,#ffffff1a,#ffffff09);border:1px solid #ffffff1f;border-radius:50%;flex:none;place-items:center;transition:transform .12s,border-color .15s;display:grid;position:relative}.tg-notify-btn:hover{border-color:#fff3;transform:scale(1.05)}.tg-notify-btn:active{transform:scale(.92)}.tg-notify-btn svg{width:20px;height:20px}.tg-notify-btn.has-unread{color:#fff;border-color:#f0364a73}.tg-notify-badge{color:#fff;text-align:center;font-variant-numeric:tabular-nums;background:#f0364a;border-radius:999px;min-width:18px;height:18px;padding:0 5px;font-size:11px;font-weight:700;line-height:18px;animation:.34s cubic-bezier(.2,1.4,.4,1) both notifBadgePop;position:absolute;top:-3px;right:-3px;box-shadow:0 0 0 2px #0a1220eb}@keyframes notifBadgePop{0%{opacity:0;transform:scale(.4)}to{opacity:1;transform:none}}.chatlist-fab{right:16px;bottom:calc(18px + var(--safe-bottom));z-index:5;color:#fff;background:linear-gradient(135deg, var(--accent), var(--accent-2));cursor:pointer;border:none;border-radius:50%;place-items:center;width:54px;height:54px;transition:transform .14s,box-shadow .14s,opacity .15s;animation:.28s cubic-bezier(.22,.9,.28,1) both clFabIn;display:grid;position:absolute;box-shadow:0 10px 26px #4f8bff6b}.chatlist-create{right:16px;bottom:calc(18px + var(--safe-bottom));z-index:5;position:absolute}.chatlist-create .chatlist-fab{position:relative;bottom:auto;right:auto}.chatlist-create .chatlist-fab-game{background:linear-gradient(135deg,#6f7bd4,#c25fae);width:44px;height:44px;position:absolute;bottom:64px;right:0;box-shadow:0 8px 20px #6f7bd46b}.chatlist-create .chatlist-fab-game:hover{box-shadow:0 10px 24px #6f7bd485}.chatlist-create .chatlist-fab-game svg{width:21px;height:21px}.chatlist-create .chatlist-create-menu{bottom:120px}.chatlist-create-menu{-webkit-backdrop-filter:blur(56px)saturate(190%)brightness(1.06);backdrop-filter:blur(56px)saturate(190%)brightness(1.06);background-color:#0c1423cc;background-image:linear-gradient(145deg,#ffffff1f,#ffffff0e);border:1px solid #fff3;border-radius:18px;width:clamp(150px,42vw,176px);padding:6px;animation:.16s ease-out both clCreateMenuIn;position:absolute;bottom:66px;right:0;box-shadow:inset 0 1px #ffffff29,0 20px 48px #00000080,0 4px 14px #00000047}.chatlist-create-menu button{width:100%;color:var(--text);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:12px;align-items:center;gap:10px;padding:11px 12px;display:flex}.chatlist-create-menu button:hover{background:#ffffff14}.chatlist-create-menu button svg{color:var(--accent-2);flex:none}@keyframes clCreateMenuIn{0%{opacity:0;transform:translateY(6px)scale(.96)}to{opacity:1;transform:none}}@keyframes clFabIn{0%{opacity:0;transform:translateY(10px)scale(.9)}to{opacity:1;transform:none}}.chatlist-fab:hover{transform:scale(1.05);box-shadow:0 12px 30px #4f8bff85}.chatlist-fab:active{transform:scale(.92)}.chatlist-fab svg{width:24px;height:24px}@media (max-width:768px){.chatlist-create{right:14px;bottom:calc(16px + var(--safe-bottom))}.chatlist-fab{right:14px;bottom:calc(16px + var(--safe-bottom));width:50px;height:50px}.chatlist-create .chatlist-fab{bottom:auto;right:auto}.chatlist-create .chatlist-fab-game{width:42px;height:42px;bottom:60px}.chatlist-create .chatlist-create-menu{bottom:112px}.chatlist-create-menu{border-radius:15px;padding:4px;bottom:60px}.chatlist-create-menu button{gap:8px;padding:9px 10px;font-size:13px}}.chatlist-badge.muted,.chatlist-item.active .chatlist-badge.muted{color:var(--text-dim);background:#9db0c642}.tg-notify-header{background:0 0;justify-content:space-between}.tg-new-chat-header,.tg-new-chat-header.tg-panel-header{box-shadow:none;background:0 0}.tg-notify-actions{flex:none;align-items:center;gap:6px;display:flex}.tg-notify-action{width:36px;height:36px;color:var(--text-dim);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:50%;place-items:center;transition:background .15s,color .15s,border-color .15s;display:grid}.tg-notify-action:hover:not(:disabled){color:var(--text);background-color:#ffffff12;background-image:linear-gradient(135deg,#ffffff24,#ffffff0d);border-color:#ffffff29}.tg-notify-action:active:not(:disabled){transform:scale(.92)}.tg-notify-action:disabled{opacity:.34;cursor:default}.tg-notify-body{padding:0}.notif-list{-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#ffffff24 transparent;flex-direction:column;flex:1;min-height:0;padding:2px 6px 12px;display:flex;overflow-y:auto}.notif-list::-webkit-scrollbar{width:5px}.notif-list::-webkit-scrollbar-thumb{background:#ffffff24;border-radius:3px}.notif-row{width:100%;color:var(--text);font-family:var(--font);text-align:left;cursor:pointer;background:0 0;border:none;border-radius:14px;align-items:center;gap:12px;margin-bottom:2px;padding:10px;transition:background .13s;animation:.32s cubic-bezier(.22,.9,.28,1) both clRowIn;display:flex;position:relative}.notif-row:hover{background-color:#ffffff0d}.notif-row:active{background-color:#ffffff17}.notif-row:first-child{animation-delay:0s}.notif-row:nth-child(2){animation-delay:35ms}.notif-row:nth-child(3){animation-delay:70ms}.notif-row:nth-child(4){animation-delay:.105s}.notif-row:nth-child(5){animation-delay:.14s}.notif-row:nth-child(6){animation-delay:.175s}.notif-row:nth-child(7){animation-delay:.21s}.notif-row:nth-child(8){animation-delay:.245s}.notif-row.unread{background:linear-gradient(135deg,#4f8bff21,#4f8bff0a)}.notif-face{flex:none;place-items:center;display:grid;position:relative}.notif-face-mark{color:#fff;background:#f0364a;border-radius:50%;place-items:center;width:20px;height:20px;display:grid;position:absolute;bottom:-3px;right:-3px;box-shadow:0 0 0 2px #0a1220eb}.notif-info{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.notif-top{align-items:baseline;gap:8px;display:flex}.notif-title{min-width:0;color:var(--text);text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:14.5px;font-weight:600;overflow:hidden}.notif-row.unread .notif-title{color:#fff}.notif-time{color:var(--text-faint);font-variant-numeric:tabular-nums;flex:none;font-size:11.5px}.notif-body{color:var(--text-dim);text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.notif-row.unread .notif-body{color:#cfe0f5}.notif-dot{background:#f0364a;border-radius:50%;flex:none;width:9px;height:9px;box-shadow:0 0 8px #f0364a99}@media (max-width:768px){.notif-row{gap:11px;padding:9px 8px}.notif-title{font-size:14px}.notif-body{font-size:12.5px}}html.perf-mode .notif-row,html.perf-mode .tg-notify-badge,html.perf-mode .chatlist-fab{animation:none}@media (prefers-reduced-motion:reduce){.notif-row,.tg-notify-badge,.chatlist-fab{animation:none}}
.chat-header .who .name{line-height:1.25}.chat-header .who .status{line-height:1.2}@media (min-width:769px){.chat-header{--hdr-h:48px;gap:9px;width:100%;max-width:696px;margin:8px auto 0;padding:0}}.composer-wrap{-webkit-backdrop-filter:none;box-shadow:none;background:0 0;border-top:none}@media (min-width:769px){.composer-wrap{padding:10px 16px calc(10px + var(--safe-bottom));margin:0}}.composer{align-items:flex-end;gap:8px;width:100%;max-width:696px;margin-left:auto;margin-right:auto;display:flex;position:relative}.tg-input-pill{-webkit-backdrop-filter:blur(48px)saturate(200%)brightness(1.08);backdrop-filter:blur(48px)saturate(200%)brightness(1.08);background:linear-gradient(135deg,#ffffff1a,#ffffff0a),#0f192b94;border:1px solid #ffffff1f;border-radius:22px;flex:1;align-items:center;gap:2px;min-width:0;min-height:42px;padding:3px 5px;transition:border-color .15s,box-shadow .15s,background .15s;display:flex;box-shadow:inset 0 1px #ffffff1f,0 6px 20px #04080c38}.tg-pill-btn{width:34px;height:34px;color:var(--text-dim);cursor:pointer;background:0 0;border:none;border-radius:50%;flex:none;place-items:center;transition:background .15s,color .15s,transform .12s;display:grid}.tg-pill-btn:hover{color:var(--text);background:#ffffff14}.tg-pill-btn:active{transform:scale(.9)}.tg-pill-btn.emoji-active{color:var(--accent);background:#4f8bff29}.ep-toggle-glyphs{place-items:center;width:20px;height:20px;display:grid;position:relative}.ep-glyph{will-change:opacity, transform;place-items:center;transition:opacity .18s,transform .18s cubic-bezier(.22,.9,.28,1);display:grid;position:absolute;inset:0}.ep-glyph-dismiss{opacity:0;transform:scale(.6)rotate(-35deg)}.ep-toggle-glyphs.is-open .ep-glyph-smile{opacity:0;transform:scale(.6)rotate(35deg)}.ep-toggle-glyphs.is-open .ep-glyph-dismiss{opacity:1;transform:none}@media (prefers-reduced-motion:reduce){.ep-glyph{transition:opacity .12s linear}.ep-glyph,.ep-toggle-glyphs.is-open .ep-glyph-smile,.ep-toggle-glyphs.is-open .ep-glyph-dismiss{transform:none}}.tg-input-mirror{flex:1;min-width:0;position:relative}.tg-input-mirror-text,.tg-input-mirror .text-input{letter-spacing:normal;word-spacing:normal;white-space:pre-wrap;word-break:break-word;overflow-wrap:break-word;text-align:start;width:100%;padding:8px 4px;font-family:inherit;font-size:15px;line-height:1.35}.tg-input-mirror-text{pointer-events:none;color:var(--text);-webkit-user-select:none;user-select:none;position:absolute;inset:0;overflow:hidden}.tg-input-mirror-text .emoji.-input{vertical-align:baseline;pointer-events:none;width:auto;height:auto;display:inline;position:relative}.tg-input-mirror-text .emoji.-input .emoji-adv{visibility:hidden}.tg-input-mirror-text .emoji.-input .emoji-img{object-fit:contain;pointer-events:none;-webkit-user-select:none;user-select:none;width:1.25em;height:1.25em;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.tg-input-mirror-text .rti-mark{color:var(--text-faint)}.tg-input-mirror-text .rti-bold{font-weight:inherit;text-shadow:0 0 .6px,.25px 0}.tg-input-mirror-text .rti-italic{font-style:italic}.tg-input-mirror-text .rti-underline{text-underline-offset:2px;text-decoration:underline}.tg-input-mirror-text .rti-strike{text-decoration:line-through}.tg-input-mirror-text .rti-code{color:var(--accent-2);background:#ffffff17;border-radius:4px;box-shadow:0 0 0 2px #ffffff17,0 0 0 3px #ffffff0d}.tg-input-mirror-text .rti-link{color:var(--accent-2);text-underline-offset:2px;text-decoration:underline}.tg-input-mirror-text .rti-spoiler{filter:blur(2.4px);background:#ffffff21;border-radius:5px;box-shadow:0 0 0 2px #ffffff21}.tg-input-mirror .text-input{z-index:1;resize:none;scrollbar-width:none;-ms-overflow-style:none;min-height:30px;max-height:96px;box-shadow:none;-webkit-backdrop-filter:none;color:#0000;caret-color:var(--text);background:0 0;border:none;border-radius:0;outline:none;display:block;position:relative;overflow-y:auto}.tg-input-mirror .text-input::-webkit-scrollbar{width:0;height:0;display:none}.tg-input-mirror .text-input::placeholder{color:var(--text-faint)}.tg-input-mirror .text-input::selection{background:#4f8bff47}.tg-input-mirror .text-input:focus{box-shadow:none;background:0 0;border:none;outline:none}html.perf-mode .tg-input-mirror .text-input{background:0 0}.tg-pill-btn.send-btn{background:linear-gradient(135deg, var(--accent), var(--accent-2));color:#fff;box-shadow:inset 0 1px 0 #ffffff40, 0 4px 12px var(--accent-glow);animation:.18s cubic-bezier(.2,.9,.3,1.4) popIn}.tg-pill-btn.send-btn:hover{background:linear-gradient(135deg, var(--accent-2), var(--accent));color:#fff}.composer .round{width:46px;height:46px;color:var(--text-dim);background:0 0;border-radius:50%;flex-shrink:0;place-items:center;transition:background .15s,color .15s,transform .12s,box-shadow .15s;display:grid}.composer .round:hover{color:var(--text);background:#ffffff14}.composer .round:active{transform:scale(.9)}.composer .round.send{background:linear-gradient(135deg, var(--accent), var(--accent-2));color:#fff;box-shadow:inset 0 1px 0 #ffffff40, 0 5px 16px var(--accent-glow)}.reply-bar{max-width:696px;margin-left:auto;margin-right:auto}.tg-ep{inset-inline-start:0;z-index:30;-webkit-backdrop-filter:blur(34px)saturate(185%)brightness(1.08);backdrop-filter:blur(34px)saturate(185%)brightness(1.08);background:radial-gradient(at 8% 0,#4f8bff29,#0000 44%),linear-gradient(145deg,#1f3048c7,#0a111ed1);border:1px solid #ffffff29;border-radius:20px;flex-direction:column;width:min(382px,100% - 16px);height:min(420px,60vh);max-height:420px;animation:.16s ease-in-out tgEpUp;display:flex;position:absolute;bottom:calc(100% + 10px);overflow:hidden;box-shadow:inset 0 1px #ffffff29,0 22px 54px #0308107a,0 4px 14px #4f8bff14}@keyframes tgEpUp{0%{opacity:0;transform-origin:0 100%;transform:scale(.92)translateY(6px)}to{opacity:1;transform-origin:0 100%;transform:scale(1)translateY(0)}}.tg-ep-menu{scrollbar-width:none;border-bottom:1px solid #ffffff1a;flex:none;align-items:center;gap:2px;height:49px;min-height:49px;padding:0 8px;display:flex;overflow-x:auto}.tg-ep-menu::-webkit-scrollbar{display:none}.tg-ep-menu-btn{width:34px;height:34px;color:var(--text-dim);cursor:pointer;background:0 0;border:none;border-radius:11px;flex:none;place-items:center;transition:background .14s,color .14s,transform .14s;display:grid}.tg-ep-menu-btn svg{width:21px;height:21px;transition:transform .16s}.tg-ep-menu-btn:hover{color:var(--text);background:#ffffff17;transform:translateY(-1px)}.tg-ep-menu-btn:hover svg{transform:scale(1.08)}.tg-ep-menu-btn.active{color:var(--accent);background:#4f8bff2e;box-shadow:inset 0 0 0 1px #72a8ff2e}.tg-ep-scroll{-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#ffffff24 transparent;flex:1;min-height:0;padding:2px 10px 10px;overflow-y:auto}.tg-ep-scroll::-webkit-scrollbar{width:5px}.tg-ep-scroll::-webkit-scrollbar-track{background:0 0}.tg-ep-scroll::-webkit-scrollbar-thumb{background:#ffffff24;border-radius:3px}.tg-ep-head{z-index:1;letter-spacing:.01em;color:var(--text-dim);background-color:#0000;background-image:none;margin:0;padding:8px 2px 4px;font-size:13px;font-weight:500;position:sticky;top:0}.tg-ep-block{contain:layout}.tg-ep-grid{grid-template-columns:repeat(auto-fill,minmax(42px,1fr));gap:4px;padding-bottom:4px;display:grid}.tg-ep-emoji{cursor:pointer;background:0 0;border:none;border-radius:10px;place-items:center;width:42px;height:42px;transition:background .1s,transform 80ms;display:grid}.tg-ep-emoji img.emoji{pointer-events:none;width:26px;height:26px}.tg-ep-emoji:hover{background:#ffffff17}.tg-ep-emoji:active{background:#4f8bff40;transform:scale(.88)}:root{--ep-dock-h:clamp(180px, var(--kb-height,42vh), 46vh)}@media (max-width:768px){#app-root>.composer-wrap.emoji-dock{max-height:none;padding-bottom:calc(max(0px, var(--ep-dock-h) - var(--kb-inset,0px)) + 4px)}#app-root:has(>.composer-wrap.emoji-dock)>.messages{padding-bottom:calc(60px + max(0px, var(--ep-dock-h) - var(--kb-inset,0px)))}#app-root>.composer-wrap.emoji-dock.kb-handover{transition:none}.tg-ep{inset-inline:auto;width:100vw;max-width:none;max-height:none;height:var(--ep-dock-h);border-color:#ffffff29 currentColor currentColor;border-bottom-style:none;border-bottom-width:medium;border-left-style:none;border-left-width:medium;border-right-style:none;border-right-width:medium;border-radius:0;animation:.2s cubic-bezier(.22,.9,.28,1) tgEpDockUp;position:absolute;inset:calc(100% + 4px) auto auto 50%;transform:translate(-50%);box-shadow:0 -12px 34px #0308102e}.tg-ep-scroll{-webkit-overflow-scrolling:touch}}@keyframes tgEpDockUp{0%{opacity:.4;translate:0 14px}to{opacity:1;translate:0}}@media (max-width:768px){.composer-wrap{padding:4px 8px calc(4px + var(--composer-bottom-space,0px));transition:padding-bottom .18s cubic-bezier(.22,.9,.28,1)}.tg-input-pill{border-radius:19px}.composer{max-width:none}.chat-header{--hdr-h:48px;gap:6px;width:100%;max-width:min(100% - 16px,580px);margin:4px auto 0;padding:0}.hdr-actions .icon-btn{width:34px;height:34px}.hdr-actions .icon-btn svg{width:16px;height:16px}.hdr-back svg{width:18px;height:18px}.hdr-profile{gap:8px;padding:0 11px 0 8px}.chat-header .who .name{font-size:16px}.chat-header .who .status{height:16px;font-size:11.5px}.pinned-bar{width:100%;max-width:min(100% - 16px,580px);margin:4px auto 0}.pb-pin{padding:0 6px 0 0}.pb-pin:before{margin:0 7px 0 9px}}#app-root>.chat-header,#app-root>.pinned-bar,#app-root>.conn-banner,#app-root>.composer-wrap{z-index:40;position:absolute;left:0;right:0}#app-root>.chat-header{top:0}#app-root>.pinned-bar{top:56px}#app-root>.conn-banner{top:99px}#app-root>.composer-wrap{bottom:0}#app-root>.messages{--msg-band:108px;padding-top:var(--msg-band);overflow-anchor:none;z-index:1;padding-bottom:78px;position:absolute;inset:0}#app-root:has(>.pinned-bar.has-music:not(.has-pins))>.messages{--msg-band:114px}#app-root:has(>.pinned-bar.has-pins.has-music)>.messages{--msg-band:155px}@media (max-width:768px){#app-root>.pinned-bar{top:52px}#app-root>.conn-banner{top:100px}#app-root>.messages{--msg-band:104px;padding-bottom:60px}#app-root:has(>.pinned-bar.has-music:not(.has-pins))>.messages{--msg-band:110px}#app-root:has(>.pinned-bar.has-pins.has-music)>.messages{--msg-band:151px}}html:has(.call-banner) #app-root>.messages{--msg-band:152px}html:has(.call-banner):has(#app-root>.pinned-bar) #app-root>.messages{--msg-band:198px}@media (max-width:768px){html:has(.call-banner) #app-root>.messages{--msg-band:144px}html:has(.call-banner):has(#app-root>.pinned-bar) #app-root>.messages{--msg-band:186px}}.pb-gcall{align-items:center;gap:10px;min-height:44px;padding:0 7px 0 10px;display:flex}.pb-gcall-mark{color:#eaf1ff;background:#4f8bff3d;border:1px solid #4f8bff6b;border-radius:50%;flex-shrink:0;place-items:center;width:30px;height:30px;display:grid;position:relative}.pb-gcall-ping{background:var(--accent-2);border-radius:50%;width:8px;height:8px;animation:1.9s cubic-bezier(.4,0,.2,1) infinite pbGcallPing;position:absolute;top:-1px;right:-1px;box-shadow:0 0 0 2px #0a121ebf}@keyframes pbGcallPing{0%,to{opacity:1;transform:scale(1)}50%{opacity:.55;transform:scale(.78)}}.pb-gcall-copy{flex-direction:column;flex:1;justify-content:center;min-width:0;line-height:1.25;display:flex}.pb-gcall-copy strong{color:var(--accent-2);text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;font-weight:650;overflow:hidden}.pb-gcall-copy span{color:var(--text-dim);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.pb-gcall-btn{background:var(--accent);color:#fff;height:28px;font-family:var(--font);letter-spacing:.1px;cursor:pointer;-webkit-tap-highlight-color:transparent;border:0;border-radius:999px;flex-shrink:0;padding:0 15px;font-size:12.5px;font-weight:650;transition:transform .12s,filter .16s;box-shadow:0 2px 10px #4f8bff52}.pb-gcall-btn:hover{filter:brightness(1.08)}.pb-gcall-btn:active{transform:scale(.95)}.pb-gcall.joined .pb-gcall-mark{color:var(--text);background:#ffffff17;border-color:#ffffff24}.pb-gcall.joined .pb-gcall-ping{display:none}.pb-gcall.joined .pb-gcall-copy strong{color:var(--text)}.pb-gcall.joined .pb-gcall-btn{color:var(--text);box-shadow:none;background:#ffffff1f;border:1px solid #ffffff24}html.perf-mode .pb-gcall-ping{animation:none}@media (prefers-reduced-motion:reduce){.pb-gcall-ping{animation:none}}#app-root:has(>.pinned-bar.has-gcall:not(.has-pins):not(.has-music))>.messages{--msg-band:156px}#app-root:has(>.pinned-bar.has-pins.has-gcall:not(.has-music))>.messages{--msg-band:156px}#app-root:has(>.pinned-bar.has-music.has-gcall:not(.has-pins))>.messages{--msg-band:162px}#app-root:has(>.pinned-bar.has-pins.has-music.has-gcall)>.messages{--msg-band:203px}@media (max-width:768px){#app-root:has(>.pinned-bar.has-gcall:not(.has-pins):not(.has-music))>.messages{--msg-band:112px}#app-root:has(>.pinned-bar.has-pins.has-gcall:not(.has-music))>.messages{--msg-band:152px}#app-root:has(>.pinned-bar.has-music.has-gcall:not(.has-pins))>.messages{--msg-band:158px}#app-root:has(>.pinned-bar.has-pins.has-music.has-gcall)>.messages{--msg-band:199px}}.tg-ep-switch{border-bottom:1px solid #ffffff1a;flex:none;align-items:center;gap:5px;height:48px;padding:7px 10px 6px;display:flex}.tg-ep-switch-btn{height:30px;color:var(--text-dim);font-family:var(--font);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:9px;align-items:center;gap:6px;padding:0 12px;font-size:13px;font-weight:600;transition:background .14s,color .14s;display:inline-flex;position:relative}.tg-ep-switch-btn svg{width:16px;height:16px}.tg-ep-switch-btn:hover{color:var(--text);background:#ffffff14}.tg-ep-switch-btn.active{color:var(--text);background:linear-gradient(135deg,#4f8bff3d,#4fd1ff1a);border-color:#77abff33;box-shadow:inset 0 1px #ffffff17}.tg-ep-new-badge{background:var(--tg-accent,#4f8bff);color:#fff;letter-spacing:.05em;text-transform:uppercase;border-radius:999px;align-items:center;height:15px;margin-inline-start:2px;padding:0 5px;font-size:9px;font-weight:800;line-height:1;display:inline-flex}.tg-ep-pack-btn{padding:0}.tg-ep-menu-btn .tg-ep-pack-icon{width:26px;height:26px}.tg-ep-sticker-grid{grid-template-columns:repeat(auto-fill,minmax(46px,1fr))}.tg-ep-sticker{cursor:pointer;background:0 0;border:none;border-radius:10px;place-items:center;width:46px;height:46px;padding:3px;transition:background .1s,transform 80ms;display:grid}.tg-ep-sticker:hover{background:#ffffff12}.tg-ep-sticker:active{background:#4f8bff40;transform:scale(.88)}.tg-ep-empty{color:var(--text-dim);text-align:center;margin:0;padding:22px 14px;font-size:13px;line-height:1.5}@media (max-width:768px){.tg-ep-switch{z-index:3;-webkit-backdrop-filter:blur(24px)saturate(180%);backdrop-filter:blur(24px)saturate(180%);background:linear-gradient(135deg,#22334bd1,#0e1727e0);border:1px solid #ffffff2e;border-radius:999px;gap:2px;width:auto;max-width:calc(100% - 24px);height:38px;padding:0 6px;position:absolute;bottom:12px;left:50%;transform:translate(-50%);box-shadow:0 6px 18px #0000006b,inset 0 1px #ffffff0f}.tg-ep-switch-btn{height:28px;padding:0 10px}.tg-ep-switch-btn span:not(.tg-ep-new-badge){font-size:12.5px}.tg-ep-scroll{padding-bottom:62px}}
.tg-settings{width:100%;max-width:420px;height:100%;max-height:100vh;-webkit-backdrop-filter:var(--overlay-blur);backdrop-filter:var(--overlay-blur);background:linear-gradient(#18243cb8,#0d1525c7);border-radius:16px;flex-direction:column;display:flex;overflow:hidden}.tg-settings-head{border-bottom:1px solid #ffffff0f;flex-shrink:0;justify-content:space-between;align-items:center;padding:12px 16px;display:flex}.tg-settings-head h2{color:var(--text);margin:0;font-size:18px;font-weight:600}.tg-settings-subhead{gap:8px}.tg-settings-subhead h2{font-size:16px}.tg-settings-profile{cursor:pointer;border-bottom:1px solid #ffffff0f;align-items:center;gap:14px;padding:16px;transition:background .15s;display:flex}.tg-settings-profile .avatar-btn{flex-shrink:0}.tg-profile-info{flex:1;min-width:0}.tg-profile-name{color:var(--text);white-space:nowrap;text-overflow:ellipsis;font-size:16px;font-weight:600;overflow:hidden}.tg-profile-phone{color:var(--text-dim);white-space:nowrap;text-overflow:ellipsis;font-size:14px;overflow:hidden}.tg-settings-list{flex:1;padding:8px 0;overflow-y:auto}.tg-settings-row{cursor:pointer;text-align:left;background:0 0;border:none;align-items:center;gap:14px;width:100%;padding:12px 16px;transition:background .12s;display:flex}.tg-settings-row-icon{width:40px;height:40px;color:var(--accent);background:#4f8bff1f;border-radius:50%;flex-shrink:0;place-items:center;display:grid}.tg-settings-row-content{flex:1;min-width:0}.tg-settings-row-title{color:var(--text);font-size:15px;font-weight:500;display:block}.tg-settings-row-sub{color:var(--text-dim);margin-top:2px;font-size:13px;display:block}.tg-settings-row-arrow{color:var(--text-faint);flex-shrink:0;font-size:20px}.tg-settings-logout{width:100%;color:var(--danger);cursor:pointer;background:#ff64641a;border:1px solid #ff646433;border-radius:12px;justify-content:center;align-items:center;gap:8px;padding:12px;font-size:15px;font-weight:500;transition:background .15s;display:flex}.tg-settings-content{flex:1;padding:12px 0;overflow-y:auto}.tg-settings-section{border-bottom:1px solid #ffffff0a;padding:12px 16px}.tg-settings-section-title{color:var(--text-dim);margin:0 0 12px;font-size:13px;font-weight:600}.tg-settings-section input[type=text],.tg-settings-section input[type=email],.tg-settings-section input[type=password]{width:100%;color:var(--text);font-size:15px;font-family:var(--font);background:#0003;border:1px solid #ffffff14;border-radius:12px;outline:none;margin-bottom:10px;padding:12px 14px;transition:border-color .15s,box-shadow .15s}.tg-settings-section input:focus{border-color:var(--accent);box-shadow:0 0 0 2px #4f8bff33}.tg-settings-section input::placeholder{color:var(--text-faint)}.tg-settings-fields{gap:10px;display:flex}.tg-settings-fields input{flex:1}.tg-settings-btn{color:var(--text);cursor:pointer;background:#ffffff14;border:1px solid #ffffff14;border-radius:10px;align-items:center;gap:6px;padding:10px 18px;font-size:14px;font-weight:500;transition:background .12s;display:inline-flex}.tg-settings-btn:active{transform:scale(.98)}.tg-settings-btn.primary{background:linear-gradient(135deg, var(--accent), var(--accent-2));color:#fff;border:none}.tg-settings-btn.danger{color:var(--danger);border-color:#ff646433}.tg-settings-btn.small{padding:6px 12px;font-size:13px}.tg-settings-btn:disabled{opacity:.5;cursor:not-allowed}.tg-settings-actions{gap:10px;margin-top:12px;display:flex}.tg-settings-toggle{cursor:pointer;justify-content:space-between;align-items:center;padding:10px 0;display:flex}.tg-settings-toggle span:first-child{color:var(--text);font-size:15px}.tg-settings-toggle input[type=checkbox]{display:none}.tg-settings-toggle .switch{background:#ffffff26;border-radius:12px;width:44px;height:24px;transition:background .2s;position:relative}.tg-settings-toggle .switch:after{content:"";background:#fff;border-radius:50%;width:18px;height:18px;transition:transform .2s;position:absolute;top:3px;left:3px}.tg-settings-toggle input:checked+.switch{background:var(--accent)}.tg-settings-toggle input:checked+.switch:after{transform:translate(20px)}.tg-settings-hint{color:var(--text-dim);align-items:center;gap:6px;margin:8px 0;font-size:13px;display:flex}.tg-settings-badge{border-radius:20px;align-items:center;margin-bottom:8px;padding:6px 14px;font-size:13px;font-weight:600;display:inline-flex}.tg-settings-badge.installed{color:var(--success);background:#3ddc8426}.tg-settings-badge.installable,.tg-settings-badge.waiting{color:var(--accent);background:#4f8bff26}.tg-settings-badge:not(.installed):not(.installable):not(.waiting){color:var(--text-dim);background:#ffffff14}.tg-settings-cache{color:var(--text-dim);flex-direction:column;gap:4px;margin-bottom:10px;font-size:14px;display:flex}.tg-settings-push{margin-top:10px}.tg-settings-push-ok{color:var(--success);align-items:center;gap:6px;font-size:14px;display:inline-flex}.tg-settings-loading{justify-content:center;padding:20px;display:flex}.tg-settings-error{color:var(--danger);padding:12px;font-size:14px}.tg-devices-heading{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.tg-devices-list{flex-direction:column;gap:8px;margin-top:12px;display:flex}.tg-device{background:#ffffff08;border:1px solid #ffffff12;border-radius:12px;align-items:center;gap:10px;padding:11px 10px;display:flex}.tg-device.current{background:#4f8bff17;border-color:#4f8bff80}.tg-device-icon{color:var(--accent);flex-shrink:0;place-items:center;display:grid}.tg-device-info{min-width:0;color:var(--text-dim);flex-direction:column;flex:1;gap:2px;font-size:12px;display:flex}.tg-device-info strong{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-size:14px;overflow:hidden}.tg-device-online,.tg-device-current{color:var(--success);white-space:nowrap;font-weight:600}.tg-device-current{font-size:11px}.tg-settings-users{flex-direction:column;gap:8px;display:flex}.tg-settings-user{background:#ffffff08;border:1px solid #ffffff0d;border-radius:12px;align-items:center;gap:12px;padding:10px;display:flex}.tg-settings-user-info{flex:1;min-width:0}.tg-settings-user-name{color:var(--text);align-items:center;gap:6px;font-size:14px;font-weight:600;display:flex}.tg-settings-owner{color:var(--accent);background:#4f8bff26;border-radius:4px;padding:2px 6px;font-size:11px;font-weight:600}.tg-settings-user-email{color:var(--text-dim);font-size:12px}.tg-settings-user-id{color:var(--text-faint);font-size:11px}.tg-settings-user-actions{gap:6px;display:flex}@media (max-width:768px){.tg-settings{border-radius:20px 20px 0 0;max-width:100%;max-height:90vh}}.tg-settings-content{padding:10px 0 22px}.tg-settings-profile{background:#ffffff0a;border:1px solid #ffffff12;border-radius:20px;gap:12px;margin:4px 10px 2px;padding:14px;position:relative;box-shadow:inset 0 1px #ffffff0d}.tg-settings-profile:hover{background:#ffffff0e}.tg-settings-list{flex-direction:column;gap:2px;padding:8px 10px 12px;display:flex}.tg-settings-row{border-radius:16px;gap:13px;padding:10px 12px;transition:background .14s}.tg-settings-row:hover{background:#ffffff0f}.tg-settings-row:active{background:#ffffff1a}.tg-settings-row-icon{background:color-mix(in srgb, hsl(var(--row-hue,215) 85% 62%) 16%, transparent);width:38px;height:38px;color:hsl(var(--row-hue,215) 88% 72%);box-shadow:inset 0 0 0 1px color-mix(in srgb, hsl(var(--row-hue,215) 85% 62%) 28%, transparent);border-radius:13px}.tg-settings-row-icon svg{width:19px;height:19px}.tg-settings-row-title{font-size:14.5px;font-weight:600}.tg-settings-row-sub{color:var(--text-dim);margin-top:2px;font-size:12px}.tg-settings-row-arrow{color:var(--text-faint);opacity:.75;font-size:18px;line-height:1}.tg-settings-section{background:#ffffff09;border:1px solid #ffffff12;border-radius:18px;margin:10px;padding:14px 14px 13px;box-shadow:inset 0 1px #ffffff0b}.tg-settings-section-title{letter-spacing:.02em;color:var(--text-dim);margin:0 0 12px;font-size:11.5px;font-weight:700}.tg-settings-hint{color:var(--text-dim);margin:8px 0;font-size:12px;line-height:1.45}.tg-settings-section input[type=text],.tg-settings-section input[type=email],.tg-settings-section input[type=password]{background:#00000038;border:1px solid #ffffff14;border-radius:12px;padding:11px 12px}.tg-settings-section input[type=text]:focus,.tg-settings-section input[type=email]:focus,.tg-settings-section input[type=password]:focus{border-color:#4f8bff8c;box-shadow:0 0 0 3px #4f8bff24}.tg-settings-btn{background:#ffffff0f;border:1px solid #ffffff1a;border-radius:12px;padding:9px 15px;font-size:13px;font-weight:600}.tg-settings-btn:hover{background:#ffffff1c}.tg-settings-btn.primary{background:var(--accent);color:#fff;border:1px solid #0000;box-shadow:0 4px 14px #00000047}.tg-settings-btn.primary:hover{filter:brightness(1.08)}.tg-settings-btn.danger{color:var(--danger);background:#ff6b6b17;border-color:#ff6b6b42}.tg-settings-btn.danger:hover{background:#ff6b6b29}.tg-settings-toggle{padding:7px 0}.tg-settings-toggle .switch{background:#ffffff24;box-shadow:inset 0 0 0 1px #ffffff0f}.tg-settings-toggle input:checked+.switch{background:var(--accent);box-shadow:inset 0 0 0 1px #ffffff1f}.tg-settings-footer{border-top:none;padding:10px}.tg-settings-logout{background:#ff6b6b17;border:1px solid #ff6b6b3d;border-radius:14px;padding:11px;font-size:14px;font-weight:600}.tg-settings-logout:hover{background:#ff6b6b2b}.tg-settings-user{background:#ffffff08;border:1px solid #ffffff0f;border-radius:14px}@media (max-width:768px){.tg-settings-profile{border-radius:18px;margin:2px 8px 0;padding:12px}.tg-settings-list{padding:6px 8px 10px}.tg-settings-row{padding:9px 10px}.tg-settings-row-icon{border-radius:12px;width:34px;height:34px}.tg-settings-row-icon svg{width:17px;height:17px}.tg-settings-section{border-radius:16px;margin:8px;padding:12px}.tg-settings-footer{padding:8px}}.tg-settings-choices{flex-direction:column;gap:8px;margin-top:4px;display:flex}.tg-settings-choice{width:100%;color:var(--text);text-align:left;cursor:pointer;background:#ffffff0a;border:1px solid #ffffff14;border-radius:14px;align-items:center;gap:10px;padding:12px 14px;transition:background .14s,border-color .14s;display:flex}.tg-settings-choice:hover{background:#ffffff12}.tg-settings-choice.selected{border-color:color-mix(in srgb, var(--accent) 45%, transparent);background:color-mix(in srgb, var(--accent) 14%, transparent)}.tg-settings-choice-name{flex:1;min-width:0;font-size:14.5px;font-weight:600}.tg-settings-choice-hint{color:var(--text-dim);font-size:12px}.tg-settings-choice svg{width:16px;height:16px;color:var(--accent);flex-shrink:0}
