@font-face{font-family:tg-medium;src:url(/assets/fonts/rmedium.ttf) format("truetype");font-weight:500}*{box-sizing:border-box;margin:0;padding:0}:root{--font:Roboto,-apple-system,"Helvetica Neue","Segoe UI",sans-serif;--font-medium:"tg-medium",Roboto,-apple-system,sans-serif;--radius-bubble:18px}body{font-family:var(--font);background:var(--page-bg,#0b0e12);display:flex;justify-content:center;align-items:center;min-height:100vh}#phone{width:100%;max-width:430px;height:100dvh;max-height:932px;overflow:hidden;position:relative;background:var(--windowBackgroundWhite);color:var(--chats_name);outline:none}@media (min-width:500px){#phone{border-radius:24px;box-shadow:0 24px 80px rgba(0,0,0,.55)}}.view{position:absolute;inset:0;display:none;flex-direction:column}.view.active{display:flex}.icon{display:inline-block;width:24px;height:24px;background-color:var(--ic,currentColor);-webkit-mask:var(--mask) center /contain no-repeat;mask:var(--mask) center /contain no-repeat;flex:none}#list-header{padding:10px 10px 4px;background:var(--windowBackgroundWhite);flex:none}.searchbar{display:flex;align-items:center;gap:10px;background:var(--searchbar-bg,rgba(117,120,122,.12));border-radius:22px;height:42px;padding:0 14px;color:var(--chats_message)}.searchbar input{flex:1 1;border:0;background:transparent;outline:none;font:15.5px var(--font);color:var(--chats_name)}.searchbar input::placeholder{color:var(--chats_message)}#search-clear{visibility:hidden;cursor:pointer}#folder-tabs{display:flex;align-items:center;gap:4px;padding:2px 6px 0;overflow-x:auto;scrollbar-width:none;background:var(--windowBackgroundWhite)}#folder-tabs::-webkit-scrollbar{display:none}.ftab{position:relative;padding:10px 14px 11px;font:15px var(--font-medium);color:var(--actionBarTabUnactiveText);white-space:nowrap;cursor:pointer;display:flex;align-items:center;gap:6px}.ftab.active{color:var(--actionBarTabActiveText)}.ftab.active:after{content:"";position:absolute;left:12px;right:12px;bottom:0;height:3px;border-radius:3px 3px 0 0;background:var(--actionBarTabLine)}.ftab .tab-badge{min-width:18px;height:18px;border-radius:9px;background:var(--chats_unreadCounter);color:var(--chats_unreadCounterText);font:11px var(--font-medium);display:flex;align-items:center;justify-content:center;padding:0 5px}#chat-list{flex:1 1;overflow-y:auto;background:var(--windowBackgroundWhite)}.crow{display:flex;align-items:center;gap:12px;padding:9px 12px;cursor:pointer;position:relative}.crow:hover{background:var(--row-hover,rgba(117,120,122,.08))}.avatar{width:54px;height:54px;border-radius:50%;color:#fff;font:20px var(--font-medium);display:flex;align-items:center;justify-content:center;flex:none;text-transform:uppercase}.avatar svg{width:30px;height:30px;fill:#fff}.crow-main{flex:1 1;min-width:0}.crow-name-row{display:flex;align-items:center;gap:5px}.crow-name{font:16px var(--font-medium);color:var(--chats_name);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vbadge{width:17px;height:17px;border-radius:50%;background:var(--chats_verifiedBackground);display:flex;align-items:center;justify-content:center;flex:none}.vbadge svg{width:9px;height:9px;fill:var(--chats_verifiedCheck)}.crow .icon.mute-badge{width:17px;height:17px;--ic:var(--chats_muteIcon)}.crow-msg{font:15px var(--font);color:var(--chats_message);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:4px}.crow-msg .sender{color:var(--chats_nameMessage);font-weight:500}.crow-msg .icon{width:16px;height:16px;--ic:var(--chats_message)}.crow-right{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex:none}.crow-time{font:12.5px var(--font);color:var(--chats_date)}.crow-sub{display:flex;align-items:center;gap:4px;height:21px}.crow-sub .icon{width:17px;height:17px;--ic:var(--chats_pinnedIcon)}.badge{min-width:21px;height:21px;border-radius:11px;background:var(--chats_unreadCounter);color:var(--chats_unreadCounterText);font:12.5px var(--font-medium);display:flex;align-items:center;justify-content:center;padding:0 6px}.badge.muted{background:var(--chats_unreadCounterMuted)}.crow.pinned{background:var(--chats_pinnedOverlay)}#fab{position:absolute;right:16px;bottom:16px;width:56px;height:56px;border-radius:50%;background:var(--chats_actionBackground);display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:5;box-shadow:0 4px 12px rgba(0,0,0,.18)}#fab:active{background:var(--chats_actionPressedBackground)}#fab .icon{width:24px;height:24px;--ic:var(--chats_actionIcon)}#fab-menu{position:absolute;right:16px;bottom:84px;background:var(--menu-bg,#fff);border-radius:12px;box-shadow:0 8px 30px rgba(0,0,0,.28);padding:6px 0;display:none;z-index:6;min-width:190px;overflow:hidden}#fab-menu.open{display:block}.fmi{display:flex;align-items:center;gap:14px;padding:10px 18px;font:15px var(--font);color:var(--menu-item,#444);cursor:pointer}.fmi:hover{background:var(--menu-item-hover,rgba(117,120,122,.1))}.fmi .avatar{width:26px;height:26px;font:13px var(--font-medium)}.fmi .avatar svg{width:15px;height:15px;fill:#fff}#chat-header{display:flex;align-items:center;gap:12px;padding:8px 8px 8px 6px;background:var(--actionBarDefault);flex:none;box-shadow:0 1px 0 var(--divider)}#chat-header .hbtn{padding:6px;cursor:pointer;border-radius:50%}#chat-header .hbtn .icon{--ic:var(--actionBarDefaultIcon)}#chat-header .havatar{width:40px;height:40px;font:16px var(--font-medium)}#chat-header .havatar svg{width:22px;height:22px}.htitle{flex:1 1;min-width:0}.hname{font:16.5px var(--font-medium);color:var(--actionBarDefaultTitle)}.hstatus{font:13.5px var(--font);color:var(--chat_status)}.hstatus.offline{color:var(--actionBarDefaultSubtitle)}#chat-body{flex:1 1;overflow-y:auto;padding:8px 10px 10px;display:flex;flex-direction:column;gap:2px;position:relative}.sep{font:13px var(--font-medium);margin:8px 0}.sep,.service{align-self:center;background:var(--chat_serviceBackground);color:var(--chat_serviceText);border-radius:14px;padding:4px 12px}.service{font:13px var(--font);margin:4px 0;max-width:80%;text-align:center}.bubble{max-width:78%;padding:7px 10px 5px 12px;border-radius:var(--radius-bubble);position:relative;font:15.5px/1.35 var(--font);white-space:pre-wrap;word-break:break-word}.bubble.in{align-self:flex-start;background:var(--chat_inBubble);color:var(--chat_inText);border-bottom-left-radius:6px}.bubble.out{align-self:flex-end;background:linear-gradient(160deg,var(--chat_outBubble),var(--chat_outBubbleGradient));color:var(--chat_outText)}.bubble .author{color:var(--chat_inReplyNameText);font-weight:500;display:block;margin-bottom:1px}.bubble .meta{float:right;display:inline-flex;align-items:center;gap:3px;margin:6px -4px -2px 8px;font:11.5px var(--font)}.bubble.in .meta{color:var(--chat_inTimeText)}.bubble.out .meta{color:var(--chat_outTimeText)}.bubble .meta .icon{width:15px;height:15px}.bubble.in .meta .icon{--ic:var(--chat_inTimeText)}.bubble.out .meta .icon{--ic:var(--chat_outSentCheck)}.bubble .views{font-size:11.5px;opacity:.85;display:block;text-align:right;margin-top:1px}.bubble.media{padding:4px 6px}.bubble .mediabox{width:240px;height:150px;border-radius:14px;display:flex;align-items:center;justify-content:center;color:var(--chat_inText);background:var(--chat_inBubble);position:relative}.bubble.out .mediabox{background:var(--chat_outBubble);color:#fff}.bubble .mediabox .icon{width:42px;height:42px;opacity:.9}.bubble .mediabox .playbtn{width:48px;height:48px;border-radius:50%;background:rgba(0,0,0,.35);display:flex;align-items:center;justify-content:center}.bubble .mediabox .playbtn .icon{width:22px;height:22px;--ic:#fff}.bubble .mediabox .cap{position:absolute;bottom:6px;left:10px;font:12px var(--font);opacity:.9}.voice{gap:10px;padding:8px 4px}.voice,.voice .voice-btn{display:flex;align-items:center}.voice .voice-btn{width:40px;height:40px;border-radius:50%;background:var(--chat_inReplyLine);justify-content:center;flex:none}.voice .voice-btn .icon{width:20px;height:20px;--ic:#fff}.voice .bars{display:flex;align-items:center;gap:2.5px;height:26px}.voice .bars i{display:block;width:3px;border-radius:2px;background:var(--chat_inTimeText)}#composer{display:flex;align-items:flex-end;gap:6px;padding:6px 8px;background:var(--chat_messagePanelBackground);flex:none}#composer .cbtn{padding:8px;cursor:pointer;border-radius:50%}#composer .cbtn .icon{--ic:var(--chat_messagePanelIcons)}#composer-input{flex:1 1;border:0;outline:none;background:transparent;font:15.5px var(--font);color:var(--chat_messagePanelText);padding:10px 4px;min-width:0}#composer-input::placeholder{color:var(--chat_messagePanelHint)}#send-btn .icon{transition:background-color .15s}#send-btn.active .icon{--ic:var(--chat_messagePanelSend)}#settings-header{background:var(--actionBarDefault);padding:10px 16px 16px;flex:none}#settings-profile{display:flex;align-items:center;gap:16px;margin-top:6px}#settings-profile .avatar{width:62px;height:62px;font:24px var(--font-medium)}#settings-profile .pname{font:21px var(--font-medium);color:var(--chats_name)}#settings-profile .pstatus{font:14px var(--font);color:var(--chat_status);margin-top:2px}#settings-list{flex:1 1;overflow-y:auto;background:var(--windowBackgroundGray)}.sgroup{margin-top:12px}.srow{display:flex;align-items:center;gap:18px;padding:10px 16px;background:var(--windowBackgroundWhite);cursor:pointer;min-height:56px}.srow:hover{background:var(--row-hover,rgba(117,120,122,.06))}.sicon{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none;color:#fff}.sicon svg{width:24px;height:24px;fill:currentColor}.slabel{flex:1 1;font:15.5px var(--font);color:var(--chats_name)}.sright{font:14px var(--font)}.sheader,.sright{color:var(--chats_message)}.sheader{padding:14px 16px 6px;font:13px var(--font-medium)}#theme-toggle{position:absolute;top:10px;right:10px;width:34px;height:34px;border-radius:50%;display:none;align-items:center;justify-content:center;cursor:pointer;z-index:10}.bubble{border-bottom-left-radius:6px}.bubble.out{border-bottom-right-radius:6px}.bubble.out,.bubble.tailed.in{border-bottom-left-radius:var(--radius-bubble)}.bubble.tailed.out{border-bottom-right-radius:var(--radius-bubble)}.tail{position:absolute;bottom:0;width:11px;height:20px;pointer-events:none}.tail-in{left:-8px;fill:var(--chat_inBubble)}.tail-out{right:-8px;transform:scaleX(-1);fill:var(--chat_outBubbleGradient)}.crow-msg.typing{color:var(--chats_nameMessage)}#conn-banner{position:absolute;top:0;left:0;right:0;background:#E9554F;color:#fff;font:13px var(--font-medium);text-align:center;padding:6px;z-index:20}#conn-banner:empty{display:none}#contacts-sheet,#login-sheet{position:absolute;inset:0;background:var(--wallpaper);display:none;align-items:center;justify-content:center;z-index:15}.sheet-card{background:var(--windowBackgroundWhite);border-radius:18px;padding:28px 26px;width:300px;text-align:center;box-shadow:0 12px 40px rgba(0,0,0,.25)}.sheet-card.wide{width:320px;max-height:70%;display:flex;flex-direction:column;padding:0;overflow:hidden}.sheet-logo-img{width:92px;height:88px;object-fit:contain;margin:0 auto 10px;display:block}.sheet-card h2{font:20px var(--font-medium);color:var(--chats_name);margin-bottom:8px}.sheet-card p{font:14px var(--font);color:var(--chats_message);margin-bottom:16px}.sheet-card input{width:100%;border:0;outline:none;border-bottom:2px solid var(--chats_unreadCounter);background:transparent;font:16px var(--font);color:var(--chats_name);padding:8px 2px;text-align:center;margin-bottom:18px}.sheet-card button{width:100%;border:0;border-radius:12px;background:var(--chats_actionBackground);color:var(--chats_actionIcon);font:15px var(--font-medium);padding:12px;cursor:pointer}.sheet-card button:hover{background:var(--chats_actionPressedBackground)}.sheet-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;font:17px var(--font-medium);color:var(--chats_name);border-bottom:1px solid var(--divider)}#contacts-list{overflow-y:auto}.cavatar{width:42px!important;height:42px!important;font:16px var(--font-medium)!important}.cavatar svg{width:22px;height:22px}.contacts-fab{position:absolute;right:16px;bottom:84px;width:44px;height:44px;border-radius:50%;border:0;background:var(--chats_actionBackground);display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:5;box-shadow:0 4px 12px rgba(0,0,0,.18)}.load-older{align-self:center;border:0;border-radius:14px;background:var(--chat_serviceBackground);color:var(--chat_serviceText);font:12.5px var(--font-medium);padding:6px 14px;margin:6px 0 2px;cursor:pointer}.load-older:disabled{opacity:.6;cursor:default}#room-sheet{inset:0;background:var(--wallpaper);display:none;z-index:15}#room-sheet,.godown{position:absolute;align-items:center;justify-content:center}.godown{right:14px;bottom:76px;width:44px;height:44px;border-radius:50%;border:0;background:var(--chat_goDownButton,#fff);display:flex;cursor:pointer;z-index:5;box-shadow:0 2px 8px rgba(0,0,0,.22);transform:rotate(-90deg)}.bubble .bubble-photo{max-width:240px;max-height:260px;border-radius:12px;display:block;margin:2px 0}.bubble .bubble-file{display:flex;align-items:center;gap:8px;text-decoration:none;font:14px var(--font);padding:6px 2px}.sep.unread{background:var(--chats_unreadCounter);color:var(--chats_unreadCounterText);width:-moz-fit-content;width:fit-content}.srow.added .slabel{color:var(--chats_message)}.srow.added{opacity:.75}.bmenu{position:absolute;top:-34px;background:var(--menu-bg,#fff);border-radius:10px;box-shadow:0 4px 16px rgba(0,0,0,.25);display:flex;overflow:hidden;z-index:8}.bubble.in .bmenu{left:0}.bubble.out .bmenu{right:0}.bmenu-item{display:flex;align-items:center;gap:6px;padding:8px 12px;font:13px var(--font);color:var(--menu-item,#444);cursor:pointer}.bmenu-item:hover{background:var(--menu-item-hover,rgba(117,120,122,.1))}.edited{font-size:10.5px;opacity:.8;margin-right:4px}.deleted-text{font-style:italic;opacity:.75}.header-popup{position:absolute;top:52px;right:10px;background:var(--menu-bg,#fff);border-radius:10px;box-shadow:0 4px 16px rgba(0,0,0,.25);z-index:9;overflow:hidden}.hpopup-item{display:flex;align-items:center;gap:8px;padding:10px 16px;font:14px var(--font);color:var(--menu-item,#444);cursor:pointer;white-space:nowrap}.hpopup-item:hover{background:var(--menu-item-hover,rgba(117,120,122,.1))}.editing-hint{color:var(--chat_serviceText);font:12.5px var(--font)}.editing-hint,.recording-hint{position:absolute;left:10px;bottom:58px;background:var(--chat_serviceBackground);border-radius:10px;padding:5px 10px;z-index:6}.recording-hint{color:#E9554F;font:12.5px var(--font-medium);display:flex;align-items:center;gap:6px}.rec-dot{width:8px;height:8px;border-radius:50%;background:#E9554F;animation:recPulse 1s infinite}@keyframes recPulse{0%,to{opacity:1}50%{opacity:.3}}#send-btn.recording .icon{--ic:#E9554F}