.tg-icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;vertical-align:middle;pointer-events:none}.tg-icon-button{display:inline-flex;align-items:center;justify-content:center;padding:9px!important;min-width:40px;min-height:40px;border:0!important;background:transparent!important;color:#8ea8bb;border-radius:50%!important}.tg-icon-button:hover{background:#ffffff12!important;color:#d9edff}.tg-icon-button:focus-visible{outline:2px solid #59b4ea;outline-offset:2px}.tg-icon-button:disabled{opacity:.35;cursor:default}
#chat .chat-conversation-head{background:#17212b;border-bottom:1px solid #0d1720;gap:10px}#chat .chat-sidebar{background:#17212b}#chat .chat-sidebar-head{background:#17212b}#chat .chat-messages{background:#0e1621}#chat .chat-message{background:#182533;border:0;border-radius:13px 13px 13px 3px;box-shadow:0 1px 1px #0002;animation:tg-message-enter .15s ease-out}#chat .chat-message.mine{background:#2b5278;border-radius:13px 13px 3px 13px}#chat .chat-sender{color:#7cb8e1}#chat .rich-quote{background:#ffffff0a;border-left:3px solid #6ab3e5;border-radius:4px;text-align:left}#chat .chat-message p{line-height:1.42;overflow-wrap:anywhere}#chat .chat-message p a{color:#85c9f7;text-decoration:none}#chat .chat-message p a:hover{text-decoration:underline}#chat .rich-message-footer{font-size:11px;color:#93b0c9}#chat .rich-file{display:flex;align-items:center;gap:12px;background:transparent!important;text-decoration:none;max-width:100%;padding:8px 3px}#chat .rich-file>.tg-icon{box-sizing:content-box;width:24px;height:24px;padding:11px;border-radius:50%;background:#4b9ed3;color:white}#chat .rich-file span{overflow-wrap:anywhere}#chat-title,#chat-peer-avatar{cursor:pointer}#chat-title{border-radius:4px}#chat-title:focus-visible{outline:2px solid #59b4ea}
#chat .rich-call-buttons{gap:1px;align-items:center}#chat .rich-call-buttons>button,#chat #chat-attach,#chat #chat-emoji,#chat #chat-back,#chat #chat-exit{background:transparent;border:0;color:#8dabc1;padding:9px;min-width:36px;min-height:36px}#chat #chat-form{background:#17212b;border-top:1px solid #101923}#chat #chat-body{background:transparent;border:0;box-shadow:none}#chat .message-more{border:0!important;background:transparent!important;min-width:28px;min-height:26px;color:#9ebbd0}#chat .message-more>.tg-icon{width:19px;height:19px}#chat .telegram-voice{min-width:230px;gap:10px}#chat .telegram-voice>button:first-child{width:44px;height:44px;background:#4b9ed3;border:0;border-radius:50%;padding:11px;color:white}#chat .telegram-voice>div{flex:1;min-width:90px}.tg-audio-speed{font-size:11px!important;padding:4px!important;border:0!important;background:#ffffff12!important;border-radius:14px!important;white-space:nowrap}.tg-call-message>.tg-icon{color:#64c694;margin-right:10px}
#context-message-menu{width:226px;background:#17212bf5;border-color:#ffffff09;border-radius:8px;padding:5px;box-shadow:0 5px 24px #0007}#context-message-menu>button{padding:8px 12px;min-height:35px;font-size:13px;gap:14px}.context-icon .tg-icon{width:20px;height:20px;stroke-width:1.6}.context-emoji{padding-bottom:7px}.context-reactions button{transition:transform .12s ease,background .12s ease}.context-reactions button:active{transform:scale(.92)}
.tg-library{position:fixed;inset:0 0 0 auto;box-sizing:border-box;width:min(420px,100vw);height:100dvh;max-height:100dvh;max-width:100vw;margin:0;padding:0;background:#17212b;color:#e1ebf4;border:0;border-left:1px solid #ffffff12;overflow:auto;animation:tg-panel-enter .18s ease-out}.tg-library::backdrop{background:#0006}.tg-library>header,.tg-media-viewer>header{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:12px;padding:8px 12px;background:#17212b}.tg-library>header h2{font-size:17px;margin:0;flex:1}.tg-peer-info{text-align:center;padding:22px 18px;background:#263d50}.tg-peer-info .chat-avatar{width:84px;height:84px;font-size:28px;margin:0 auto}.tg-peer-info .chat-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.tg-peer-info h3{margin:14px 0 5px;font-size:18px}.tg-peer-info p{margin:0;color:#b1c6d6;font-size:13px}.tg-profile-actions{display:flex;justify-content:center;gap:12px;margin-top:18px}.tg-profile-actions button{background:#ffffff0a!important;color:#bce0f7}.tg-library-sections{display:grid;padding:14px 0}.tg-library-sections button{display:flex;align-items:center;gap:22px;width:100%;border:0;border-radius:0;background:transparent;color:inherit;padding:14px 22px;text-align:left}.tg-library-sections button:hover{background:#ffffff0a}.tg-library-sections button small{margin-left:auto;color:#8ea7bb}.tg-library-sections button .tg-icon{color:#9eb0be}.tg-library-search{display:flex;gap:8px;padding:8px 14px}.tg-library-search input{min-width:0;flex:1;border:0;border-radius:20px;background:#243241;color:white;padding:11px 15px}.tg-library-search button{padding:8px;border:0;border-radius:8px;background:#2b5278;color:white}.tg-library-tabs{display:flex;gap:4px;overflow-x:auto;scrollbar-width:thin;padding:6px 12px;border-bottom:1px solid #ffffff0c}.tg-library-tabs button{flex:none;padding:9px 10px;background:transparent;border:0;color:#91a9bc;font-size:12px;border-radius:0;border-bottom:2px solid transparent}.tg-library-tabs button.active{color:#64b3e6;border-bottom-color:#64b3e6}.tg-library-content{padding:10px 14px}.tg-library-content.tg-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:3px}.tg-library-item{min-width:0;padding:12px 0;border-bottom:1px solid #ffffff09}.tg-library-item>strong{display:block;overflow-wrap:anywhere;font-size:13px}.tg-library-item>a{display:block;color:#7ac0ee;font-size:13px;overflow-wrap:anywhere;margin:6px 0}.tg-library-item>p{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.tg-library-item>audio{width:100%;height:40px}.tg-library-item>footer{display:flex;align-items:center;gap:8px;margin-top:8px}.tg-library-item>footer small{color:#8ca4b6;font-size:10px;flex:1}.tg-library-item>footer button{border:0;border-radius:8px;background:#2b5278;color:#c7e6fa;padding:6px 9px;font-size:11px}.tg-media-grid .tg-library-item{padding:0;border:0}.tg-media-grid .tg-library-item>button{position:relative;display:flex;width:100%;aspect-ratio:1;padding:0!important;background:#243547!important;border:0;border-radius:0!important;overflow:hidden}.tg-media-grid img,.tg-media-grid video{width:100%;height:100%;object-fit:cover}.tg-media-grid .tg-library-item>button>.tg-icon{position:absolute;right:7px;bottom:7px;background:#0008;color:white;border-radius:50%;padding:4px}.tg-media-grid .tg-library-item>footer{padding:4px;display:block}.tg-media-grid .tg-library-item>footer small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-bottom:4px}.tg-library-empty,.tg-library-error{grid-column:1/-1;padding:20px;font-size:13px}.tg-library-error{color:#ffb8a5}#tg-library-more{display:block;margin:16px auto;padding:11px 18px;border:0;border-radius:10px;background:#2b5278;color:white}#tg-library-more[hidden]{display:none}
.tg-media-viewer{box-sizing:border-box;position:fixed;inset:0;width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;margin:0;padding:0;border:0;background:#080c12f5;color:white;overflow:hidden;animation:tg-viewer-enter .16s ease-out}.tg-media-viewer::backdrop{background:#000}.tg-media-viewer>header{height:48px;background:#101923e8}.tg-media-viewer>header>span{flex:1;color:#c6d6e5;font-size:13px}.tg-media-viewer>header>a{padding:10px;color:#dbe7f1}.tg-media-viewer>footer{position:absolute;bottom:0;left:0;right:0;padding:16px 60px;max-height:18vh;overflow:auto;font-size:12px;text-align:center;background:#101923e8;color:#bacbd8;white-space:pre-wrap}.tg-media-stage{position:absolute;top:64px;bottom:75px;left:48px;right:48px;display:flex;align-items:center;justify-content:center;overflow:auto;touch-action:pan-y pinch-zoom}.tg-media-stage img,.tg-media-stage video{max-width:100%;max-height:100%;object-fit:contain}.tg-media-stage.zoomed{display:block}.tg-media-stage.zoomed img{max-width:none;max-height:none;width:200%;cursor:zoom-out}.tg-media-viewer>button{position:absolute;top:48%;z-index:3;background:#ffffff12!important;color:#d9e7f3}.tg-media-viewer>button:nth-child(2){left:5px}.tg-media-viewer>button:nth-child(4){right:5px}
@keyframes tg-panel-enter{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:translateX(0)}}@keyframes tg-message-enter{from{opacity:.4;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes tg-viewer-enter{from{opacity:0;transform:scale(.985)}to{opacity:1;transform:scale(1)}}@media(max-width:700px){.tg-library{width:100vw;border:0}.tg-media-stage{left:0;right:0}.tg-media-viewer>footer{padding:12px 20px}#chat .chat-conversation-head{gap:5px;padding-left:8px;padding-right:5px}#chat .rich-call-buttons>button{padding:6px;min-width:31px}#chat .rich-call-buttons .tg-icon{width:19px;height:19px}#chat .telegram-voice{min-width:200px}#chat #chat-peer-avatar{width:34px;height:34px}#chat #chat-title{font-size:14px}}@media(prefers-reduced-motion:reduce){.tg-library,.tg-media-viewer,#chat .chat-message{animation:none!important}.context-reactions button{transition:none!important}.tg-media-stage{scroll-behavior:auto}}

.tg-media-month{grid-column:1/-1;margin:7px 0;padding:8px 2px;font-size:13px;font-weight:500;text-transform:capitalize;color:#bacbd9}.tg-media-grid .tg-media-month{padding:9px 12px}.tg-library-content.tg-media-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.tg-library-item>.tg-icon{float:left;padding:10px;margin:0 12px 8px 0;background:#3e91c6;color:white;border-radius:10px}.tg-library-item:after{content:"";display:table;clear:both}

.tg-library .telegram-voice{display:flex;align-items:center;gap:9px;min-width:0;margin:7px 0}.tg-library .telegram-voice>button:first-child{width:42px;height:42px;flex:none;border:0;border-radius:50%;background:#4b9ed3;color:white}.tg-library .telegram-voice>div{flex:1;min-width:90px}.tg-library .voice-time{font-size:11px;color:#91bad8}.tg-waveform{display:none;gap:2px;align-items:center;height:29px;overflow:hidden}.tg-waveform i{flex:1;min-width:1px;background:#7cb1d5;border-radius:1px}.tg-waveform i.played{background:#d5ecfc}.tg-wave-ready{position:relative}.tg-wave-ready .tg-waveform{display:flex}.tg-wave-ready input[type=range]{position:absolute;left:0;right:0;top:0;opacity:.01;height:30px;width:100%;margin:0;cursor:pointer}.tg-wave-ready input[type=range]:focus-visible{opacity:.6}
