.tg-mode{--tg-sidebar:#17212b;--tg-chat:#0e1621;--tg-hover:#202b36;--tg-active:#2b5278;--tg-search:#242f3d;--tg-in:#182533;--tg-out:#2b5278;--tg-text:#f5f5f5;--tg-muted:#6d7f8f;--tg-blue:#2481cc;--tg-green:#4fae4e;--tg-tick:#53d76a;--tg-composer:#17212b;--tg-border:#ffffff0f;background:var(--tg-sidebar);height:100%;min-height:0;color:var(--tg-text);overscroll-behavior:none;-webkit-user-select:none;user-select:none;flex-direction:column;width:100%;min-width:0;max-width:100%;max-height:100%;font-family:Roboto,Segoe UI,system-ui,sans-serif;display:flex;position:relative;overflow:hidden}.tg-mode.tg-day{--tg-sidebar:#fff;--tg-chat:#e6ebee;--tg-hover:#f4f4f5;--tg-active:#419fd9;--tg-search:#f1f1f1;--tg-in:#fff;--tg-out:#eeffde;--tg-text:#222;--tg-muted:#8d969c;--tg-blue:#3390ec;--tg-green:#4fae4e;--tg-tick:#4fae4e;--tg-composer:#fff;--tg-border:#00000014}.tg-toolbar{background:var(--tg-sidebar);z-index:4;flex-shrink:0;align-items:center;gap:4px;width:100%;min-width:0;max-width:100%;padding:6px 10px 6px 4px;display:flex}.tg-hamburger{width:42px;height:42px;color:var(--tg-muted);cursor:pointer;background:0 0;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;display:flex}.tg-hamburger:hover{background:var(--tg-hover);color:var(--tg-text)}.tg-toolbar-avatar{cursor:pointer;background:0 0;border:none;border-radius:50%;flex-shrink:0;padding:0;position:relative}.tg-toolbar-avatar .tg-live-dot{border:2px solid var(--tg-sidebar);width:11px;height:11px;box-shadow:none;position:absolute;bottom:-1px;right:-1px}.tg-live-dot{background:#5a6b78;border-radius:50%;flex-shrink:0;width:8px;height:8px}.tg-live-dot.on{background:var(--tg-green);box-shadow:0 0 0 3px #4fae4e40}.tg-drawer-backdrop{z-index:40;opacity:0;pointer-events:none;cursor:pointer;background:#00000073;border:none;margin:0;padding:0;transition:opacity .28s;position:absolute;inset:0}.tg-drawer-backdrop.open{opacity:1;pointer-events:auto}.tg-drawer{z-index:50;background:var(--tg-sidebar);pointer-events:none;flex-direction:column;width:20rem;max-width:80%;transition:transform .28s cubic-bezier(.32,.72,0,1);display:flex;position:absolute;top:0;bottom:0;left:0;overflow:hidden;transform:translate(-105%);box-shadow:4px 0 28px #00000061}.tg-drawer.open{pointer-events:auto;transform:translate(0,0)}.tg-drawer-body{-webkit-overflow-scrolling:touch;flex:1;min-height:0;overflow-y:auto}.tg-drawer-header{color:#fff;background:linear-gradient(165deg,#5b8fb5 0%,#3d6d94 46%,#2a4d6e 100%);flex-shrink:0;padding:22px 16px 14px}.tg-mode.tg-day .tg-drawer-header{background:linear-gradient(165deg,#64b5f6 0%,#42a5f5 40%,#1e88e5 100%)}.tg-drawer-header .tg-avatar-lg{margin-bottom:12px;box-shadow:0 2px 10px #00000047}.tg-drawer-identity{width:100%;color:inherit;text-align:left;cursor:pointer;background:0 0;border:none;align-items:center;gap:8px;padding:4px 0 0;display:flex}.tg-drawer-id-text{flex:1;min-width:0}.tg-drawer-name{white-space:nowrap;text-overflow:ellipsis;font-size:16px;font-weight:600;overflow:hidden}.tg-drawer-handle{opacity:.85;white-space:nowrap;text-overflow:ellipsis;margin-top:2px;font-size:13px;overflow:hidden}.tg-chevron{color:#ffffffe6;flex-shrink:0;justify-content:center;align-items:center;transition:transform .22s;display:flex}.tg-chevron.open{transform:rotate(180deg)}.tg-account-panel{border-bottom:0 solid var(--tg-border);max-height:0;transition:max-height .32s cubic-bezier(.32,.72,0,1);overflow:hidden}.tg-account-panel.open{border-bottom:1px solid var(--tg-border);max-height:min(48vh,440px)}.tg-account-scroll{-webkit-overflow-scrolling:touch;max-height:min(48vh,440px);overflow-y:auto}.tg-account-row{width:100%;color:var(--tg-text);text-align:left;cursor:pointer;background:0 0;border:none;align-items:center;gap:12px;padding:10px 16px;display:flex}.tg-account-row:hover{background:var(--tg-hover)}.tg-account-row.active{background:#5288c11f}.tg-account-meta{flex:1;min-width:0}.tg-account-name{white-space:nowrap;text-overflow:ellipsis;font-size:15px;font-weight:500;overflow:hidden}.tg-account-user{color:var(--tg-muted);white-space:nowrap;text-overflow:ellipsis;font-size:13px;overflow:hidden}.tg-account-check{flex-shrink:0;width:22px;height:22px}.tg-account-check circle{fill:var(--tg-blue)}.tg-account-check path{fill:none;stroke:#fff;stroke-width:2.2px;stroke-linecap:round;stroke-linejoin:round}.tg-add-plus{background:var(--tg-search);width:36px;height:36px;color:var(--tg-blue);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;font-size:22px;font-weight:400;line-height:1;display:flex}.tg-drawer-menu{padding:6px 0 12px}.tg-drawer-item{width:100%;color:var(--tg-text);cursor:pointer;text-align:left;background:0 0;border:none;align-items:center;gap:18px;padding:13px 20px;font-family:inherit;font-size:15px;display:flex}.tg-drawer-item:hover{background:var(--tg-hover)}.tg-item-icon{text-align:center;flex-shrink:0;width:24px;font-size:18px;line-height:1}.tg-night-item .tg-night-label{flex:1}.tg-switch{background:#5a6b78;border-radius:10px;flex-shrink:0;width:34px;height:20px;transition:background .2s;position:relative}.tg-switch:after{content:"";background:#fff;border-radius:50%;width:16px;height:16px;transition:transform .2s;position:absolute;top:2px;left:2px;box-shadow:0 1px 2px #00000040}.tg-switch.on{background:#5288c1}.tg-switch.on:after{transform:translate(14px)}.tg-toast{z-index:80;color:#fff;pointer-events:none;text-align:center;background:#212121eb;border-radius:8px;max-width:min(90%,320px);padding:10px 16px;font-size:13px;position:absolute;bottom:24px;left:50%;transform:translate(-50%)}.tg-shell{flex:1;width:100%;min-width:0;max-width:100%;min-height:0;display:flex;position:relative;overflow:hidden}.tg-sidebar{background:var(--tg-sidebar);z-index:2;flex-direction:column;width:100%;min-width:0;max-width:100%;min-height:0;display:flex;overflow:hidden}.tg-search-wrap{flex:1;min-width:0;padding:0;position:relative}.tg-search{background:var(--tg-search);width:100%;color:var(--tg-text);border:none;border-radius:22px;outline:none;padding:9px 14px 9px 38px;font-size:14px}.tg-search-wrap:before{content:"";pointer-events:none;border:1.7px solid #6d7f8f;border-radius:50%;width:14px;height:14px;position:absolute;top:50%;left:14px;transform:translateY(-50%)}.tg-search-wrap:after{content:"";pointer-events:none;background:#6d7f8f;width:6px;height:1.7px;position:absolute;top:calc(50% + 5px);left:25px;transform:rotate(45deg)}.tg-search::placeholder{color:#6d7f8f}.tg-dialog-list{-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;flex:1;max-width:100%;min-height:0;padding-bottom:72px;overflow:hidden auto}.tg-dialog{width:100%;color:inherit;text-align:left;cursor:pointer;background:0 0;border:none;align-items:center;gap:10px;padding:8px 12px;display:flex}.tg-dialog:hover{background:var(--tg-hover)}.tg-dialog.active{background:var(--tg-active)}.tg-avatar{object-fit:cover;color:#fff;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:54px;height:54px;font-size:18px;font-weight:600;display:flex;overflow:hidden}.tg-avatar img{object-fit:cover;width:100%;height:100%}.tg-avatar-sm{width:36px;height:36px;font-size:13px}.tg-avatar-lg{width:64px;height:64px;font-size:22px}.tg-dialog-body{flex:1;min-width:0}.tg-dialog-top,.tg-dialog-bottom{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.tg-dialog-title{white-space:nowrap;text-overflow:ellipsis;font-size:15px;font-weight:500;overflow:hidden}.tg-dialog-time{color:var(--tg-muted);flex-shrink:0;font-size:12px}.tg-dialog.active .tg-dialog-time{color:#ffffffb3}.tg-dialog-preview{color:var(--tg-muted);white-space:nowrap;text-overflow:ellipsis;min-width:0;font-size:14px;overflow:hidden}.tg-dialog.active .tg-dialog-preview{color:#ffffffbf}.tg-preview-you{color:var(--tg-blue)}.tg-dialog.active .tg-preview-you{color:#9fd2ff}.tg-unread{background:var(--tg-green);color:#fff;border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;min-width:20px;height:20px;padding:0 6px;font-size:12px;font-weight:600;display:inline-flex}.tg-unread.muted{background:#5a6b78}.tg-empty{text-align:center;color:var(--tg-muted);padding:28px 20px;font-size:14px;line-height:1.5}.tg-chat{background:var(--tg-chat);flex-direction:column;flex:1;width:100%;min-width:0;max-width:100%;min-height:0;display:flex;position:relative}.tg-chat-header{background:var(--tg-sidebar);border-bottom:1px solid var(--tg-border);z-index:2;flex-shrink:0;align-items:center;gap:12px;min-height:56px;padding:8px 16px;display:flex}.tg-back{width:40px;height:40px;color:var(--tg-blue);cursor:pointer;background:0 0;border:none;border-radius:50%;flex-shrink:0;font-size:22px;display:none}.tg-back:hover{background:var(--tg-hover)}.tg-chat-meta{flex:1;min-width:0}.tg-chat-name{white-space:nowrap;text-overflow:ellipsis;font-size:15px;font-weight:500;overflow:hidden}.tg-chat-sub{color:var(--tg-muted);font-size:13px}.tg-wallpaper{overscroll-behavior:contain;touch-action:pan-y;background-color:#0e1621;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'><g fill='none' stroke='%231a2c3d' stroke-width='1.4' opacity='0.55'><path d='M18 40c8-18 32-14 36 4'/><path d='M70 28c12 0 18 14 10 22'/><circle cx='160' cy='36' r='10'/><path d='M190 70l18 8-8 18'/><path d='M30 110c20-4 24 18 6 22'/><path d='M88 96h28l-8 16h-12z'/><path d='M140 120c16-10 30 8 14 18'/><path d='M40 170c8 12 28 8 28-6'/><path d='M110 168l22 6-6 16-16-4z'/><path d='M176 160c12 4 22-10 12-18'/><circle cx='58' cy='62' r='5'/><circle cx='200' cy='130' r='6'/><path d='M12 198c16-8 28 6 14 14'/></g></svg>");background-size:220px 220px;flex:1;min-height:0;padding:12px 12px 8px;overflow-y:auto}.tg-date-chip{justify-content:center;margin:10px 0;display:flex}.tg-date-chip span{color:#fff;background:#182533d9;border-radius:12px;padding:4px 12px;font-size:13px}.tg-row{flex-direction:column;margin:2px 8px 6px;display:flex}.tg-row.out{align-items:flex-end}.tg-row.in{align-items:flex-start}.tg-row.flash .tg-bubble{outline:2px solid #6ab3f3b3}.tg-bubble{-webkit-user-select:text;user-select:text;word-wrap:break-word;overflow-wrap:anywhere;white-space:pre-wrap;border-radius:12px;max-width:min(78%,32rem);padding:6px 8px 5px 10px;font-size:15px;line-height:1.35;position:relative;box-shadow:0 1px 1px #0000002e}.tg-row.in .tg-bubble{background:var(--tg-in);border-bottom-left-radius:4px}.tg-row.out .tg-bubble{background:var(--tg-out);border-bottom-right-radius:4px}.tg-mode.tg-day .tg-row.out .tg-bubble{color:#222}.tg-mode.tg-day .tg-msg-text{color:inherit}.tg-mode.tg-day .tg-row.out .tg-meta{color:#4fae4e}.tg-mode.tg-day .tg-wallpaper{background-color:#8ca8bc;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'><g fill='none' stroke='%237a9bb0' stroke-width='1.4' opacity='0.55'><path d='M18 40c8-18 32-14 36 4'/><path d='M70 28c12 0 18 14 10 22'/><circle cx='160' cy='36' r='10'/><path d='M190 70l18 8-8 18'/><path d='M30 110c20-4 24 18 6 22'/><path d='M88 96h28l-8 16h-12z'/><path d='M140 120c16-10 30 8 14 18'/><path d='M40 170c8 12 28 8 28-6'/><path d='M110 168l22 6-6 16-16-4z'/><path d='M176 160c12 4 22-10 12-18'/><circle cx='58' cy='62' r='5'/><circle cx='200' cy='130' r='6'/><path d='M12 198c16-8 28 6 14 14'/></g></svg>")}.tg-mode.tg-day .tg-date-chip span{color:#4a5560;background:#ffffffd1}.tg-mode.tg-day .tg-dialog.active .tg-dialog-title,.tg-mode.tg-day .tg-dialog.active .tg-dialog-preview,.tg-mode.tg-day .tg-dialog.active .tg-dialog-time,.tg-mode.tg-day .tg-dialog.active .tg-preview-you{color:#fff}.tg-sender{color:#6ab3f3;margin-bottom:2px;font-size:13px;font-weight:600;display:block}.tg-msg-text{color:var(--tg-text)}.tg-meta{float:right;color:#7da8d1;-webkit-user-select:none;user-select:none;align-items:center;gap:3px;margin:4px 0 0 10px;font-size:11px;line-height:1;display:inline-flex}.tg-row.in .tg-meta{color:var(--tg-muted)}.tg-ticks{width:18px;height:11px;display:inline-block}.tg-ticks path{fill:none;stroke:var(--tg-tick);stroke-width:1.7px;stroke-linecap:round;stroke-linejoin:round}.tg-placeholder{color:var(--tg-muted);background:var(--tg-chat);text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:10px;padding:24px;display:flex}.tg-placeholder-logo{background:#17212b;border-radius:50%;justify-content:center;align-items:center;width:88px;height:88px;font-size:42px;display:flex}.tg-composer{background:var(--tg-composer);flex-direction:column;flex-shrink:0;min-width:0;padding:6px 6px 10px;display:flex;position:relative}.tg-composer-row{align-items:flex-end;gap:4px;display:flex}.tg-composer textarea{resize:none;background:var(--tg-search);min-width:0;min-height:42px;max-height:160px;color:var(--tg-text);caret-color:var(--tg-blue);-webkit-user-select:text;user-select:text;border:none;border-radius:12px;outline:none;flex:1;padding:11px 14px;font-family:inherit;font-size:15px;line-height:1.35}.tg-icon-btn{width:42px;height:42px;color:var(--tg-muted);cursor:pointer;background:0 0;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.tg-icon-btn:hover,.tg-icon-btn.on{color:var(--tg-blue);background:var(--tg-hover)}.tg-file-hidden{display:none}.tg-send{color:#fff;cursor:pointer;background:#3390ec;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:46px;height:46px;display:flex;box-shadow:0 1px 4px #3390ec73}.tg-send:hover:not(:disabled){background:#40a7e3}.tg-send:disabled{opacity:.45;cursor:default;box-shadow:none}.tg-send svg{width:22px;height:22px;margin-left:2px}.tg-quote{width:100%;color:inherit;text-align:left;cursor:pointer;background:#0000002e;border:none;border-left:3px solid #6ab3f3;border-radius:0 6px 6px 0;flex-direction:column;align-items:flex-start;gap:1px;max-width:100%;margin:0 0 6px;padding:3px 8px;display:flex}.tg-row.out .tg-quote{background:#00000029;border-left-color:#9fd2ff}.tg-quote-name{color:var(--tg-blue);white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-size:13px;font-weight:600;overflow:hidden}.tg-quote-text{color:var(--tg-muted);white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-size:13px;overflow:hidden}.tg-react-row{flex-wrap:wrap;gap:4px;max-width:min(78%,32rem);margin:3px 4px 2px;display:flex}.tg-react-pill{color:var(--tg-text);cursor:pointer;background:#182533;border:1px solid #2b3a4a;border-radius:999px;align-items:center;gap:4px;padding:2px 8px;font-size:12px;line-height:1.3;display:inline-flex}.tg-react-pill.chosen{background:#3390ec38;border-color:#3d6d94}.tg-reply-bar{background:var(--tg-search);border-left:3px solid #6ab3f3;border-radius:0 8px 8px 0;align-items:center;gap:8px;margin:0 6px 6px 46px;padding:6px 8px 6px 10px;display:flex}.tg-reply-bar-body{flex-direction:column;flex:1;min-width:0;display:flex}.tg-reply-bar-label{color:var(--tg-blue);font-size:13px;font-weight:600}.tg-reply-bar-text{color:var(--tg-muted);white-space:nowrap;text-overflow:ellipsis;font-size:13px;overflow:hidden}.tg-reply-x{width:28px;height:28px;color:var(--tg-muted);cursor:pointer;background:0 0;border:none;border-radius:50%;font-size:20px}.tg-emoji-picker{border:1px solid var(--tg-border);z-index:8;background:#1c2733;border-radius:12px;grid-template-columns:repeat(8,1fr);gap:2px;width:min(280px,100% - 24px);max-height:220px;padding:8px;display:grid;position:absolute;bottom:62px;right:56px;overflow-y:auto;box-shadow:0 8px 24px #0006}.tg-emoji-cell{cursor:pointer;background:0 0;border:none;border-radius:8px;padding:6px 0;font-size:20px;line-height:1}.tg-emoji-cell:hover{background:var(--tg-hover)}.tg-ctx{z-index:80;border:1px solid var(--tg-border);background:#17212b;border-radius:12px;width:286px;padding:6px 0 4px;position:fixed;box-shadow:0 10px 32px #00000073}.tg-ctx-reacts{border-bottom:1px solid var(--tg-border);justify-content:space-between;margin-bottom:4px;padding:4px 10px 8px;display:flex}.tg-ctx-emo{cursor:pointer;background:0 0;border:none;border-radius:50%;width:36px;height:36px;font-size:22px}.tg-ctx-emo:hover{background:var(--tg-hover);transform:scale(1.12)}.tg-ctx-item{width:100%;color:var(--tg-text);text-align:left;cursor:pointer;background:0 0;border:none;align-items:center;gap:12px;padding:10px 16px;font-family:inherit;font-size:15px;display:flex}.tg-ctx-item:hover{background:var(--tg-hover)}.tg-ctx-item.danger{color:#e17076}.tg-ctx-expand{background:var(--tg-hover);width:36px;height:36px;color:var(--tg-text);cursor:pointer;border:none;border-radius:50%;font-size:16px;line-height:1}.tg-sheet-back{z-index:90;background:#0000008c;justify-content:center;align-items:flex-end;padding:0;display:flex;position:fixed;inset:0}.tg-sheet{width:min(480px,100%);max-height:min(82%, calc(var(--app-height,100%) - 16px));background:var(--tg-sidebar,#17212b);color:var(--tg-text,#f5f5f5);padding-bottom:max(10px, var(--app-safe-bottom,env(safe-area-inset-bottom,0px)));border-radius:16px 16px 0 0;flex-direction:column;display:flex;overflow:hidden;box-shadow:0 -12px 40px #00000073}.tg-sheet h3{margin:0;padding:16px 16px 8px;font-size:17px;font-weight:600}.tg-sheet .tg-search{margin:0 12px 8px}.tg-forward-list{overscroll-behavior:contain;flex:1;min-height:0;padding:4px 8px 8px;overflow-y:auto}.tg-forward-row{width:100%;color:inherit;text-align:left;cursor:pointer;font:inherit;background:0 0;border:0;border-radius:12px;align-items:center;gap:10px;padding:8px;display:flex}.tg-forward-row.is-static{cursor:default;position:relative}.tg-forward-row:hover{background:var(--tg-hover)}.tg-forward-row span{flex-direction:column;flex:1;min-width:0;display:flex}.tg-forward-row strong{white-space:nowrap;text-overflow:ellipsis;font-size:15px;font-weight:600;overflow:hidden}.tg-forward-row em{color:var(--tg-muted);font-size:12px;font-style:normal}.tg-sheet-actions{flex-shrink:0;justify-content:flex-end;gap:8px;padding:8px 12px 4px;display:flex}.tg-sheet-actions button{border:1px solid var(--tg-border);background:var(--tg-hover);min-height:44px;color:var(--tg-text);cursor:pointer;font:inherit;border-radius:12px;padding:8px 16px}.tg-ctx-av{color:#fff;background:#2b5278;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;font-size:13px;font-weight:700;display:inline-flex}.tg-ctx-av.lg{width:40px;height:40px}.tg-muted-note{color:var(--tg-muted);padding:16px 12px;font-size:13px;line-height:1.4}.tg-react-picker-grid{overscroll-behavior:contain;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px;padding:8px 12px 12px;display:grid;overflow-y:auto}.tg-react-picker-grid button{cursor:pointer;background:0 0;border:0;border-radius:10px;min-width:40px;min-height:40px;font-size:22px}.tg-react-picker-grid button:hover{background:var(--tg-hover)}@media (min-width:900px){.tg-sheet-back{align-items:center}.tg-sheet{border-radius:16px;max-height:min(70%,560px);margin-bottom:0}}.tg-mode.tg-day .tg-react-pill{color:#222;background:#fff;border-color:#d5dce0}.tg-mode.tg-day .tg-ctx,.tg-mode.tg-day .tg-emoji-picker{color:#222;background:#fff}.tg-busy-banner{color:#e17076;background:#e170761f;border-radius:10px;margin:8px 12px;padding:10px 12px;font-size:13px;line-height:1.4}@media (min-width:900px){.tg-sidebar{border-right:1px solid var(--tg-border);width:min(420px,38vw);min-width:280px}.tg-chat,.tg-chat.is-empty{display:flex}.tg-drawer{width:20rem;max-width:20rem}}@media (max-width:899px){.tg-mode,.tg-shell,.tg-sidebar,.tg-chat,.tg-toolbar,.tg-composer,.tg-chat-header,.tg-wallpaper{width:100%;min-width:0;max-width:100%}.tg-mode,.tg-shell{height:100%;min-height:0;overflow:hidden}.tg-drawer{width:80vw;max-width:80vw}.tg-back{justify-content:center;align-items:center;min-width:44px;min-height:44px;display:inline-flex}.tg-back-label{display:none}.tg-chat{z-index:3;transition:transform .22s;position:absolute;inset:0;transform:translate(100%)}.tg-shell.chat-open .tg-chat{transform:translate(0)}.tg-chat.is-empty{display:none}.tg-bubble{max-width:86%}.tg-row{margin-left:4px;margin-right:4px}.tg-toolbar-gear,.tg-toolbar-avatar{display:none!important}.tg-dialog-more{display:none}.tg-chat-header{min-height:52px;padding:6px 8px;padding-top:max(6px, var(--app-safe-top,env(safe-area-inset-top,0px)));grid-template-rows:auto;grid-template-columns:44px 42px minmax(0,1fr) auto;align-items:center;gap:8px;display:grid;overflow:hidden}.tg-chat-header>.tg-back{grid-area:1/1}.tg-chat-header>.tg-avatar{grid-area:1/2}.tg-chat-header>.tg-chat-meta,.tg-chat-header>.tg-chat-search{grid-area:1/3;min-width:0}.tg-chat-header>.tg-header-pin{display:none}.tg-chat-actions{flex-flow:row;grid-area:1/4;align-items:center;gap:0;max-width:42vw;display:flex;overflow-x:auto}.tg-chat-actions .tg-icon-btn{flex-shrink:0;min-width:44px;min-height:44px}.tg-hamburger,.tg-icon-btn{min-width:44px;min-height:44px}.tg-compose-fab{width:48px;height:48px;right:max(12px, var(--app-safe-right,env(safe-area-inset-right,0px)));bottom:max(16px, var(--app-safe-bottom,env(safe-area-inset-bottom,0px)));font-size:18px}.tg-toolbar{padding-top:max(6px, var(--app-safe-top,env(safe-area-inset-top,0px)))}.tg-composer{padding-bottom:max(10px, var(--app-safe-bottom,env(safe-area-inset-bottom,0px)));padding-left:max(6px, var(--app-safe-left,env(safe-area-inset-left,0px)));padding-right:max(6px, var(--app-safe-right,env(safe-area-inset-right,0px)))}.tg-drawer{padding-top:var(--app-safe-top,env(safe-area-inset-top,0px));padding-bottom:var(--app-safe-bottom,env(safe-area-inset-bottom,0px))}.tg-thread:not(.open){display:none}}.tg-dialog-more{width:32px;height:32px;color:var(--tg-muted);cursor:pointer;opacity:.85;background:0 0;border:none;border-radius:50%;flex-shrink:0;font-size:18px;line-height:1}.tg-dialog-more:hover{background:var(--tg-hover);color:var(--tg-text)}.tg-pin-mark,.tg-mute-mark{flex-shrink:0;margin-right:4px;font-size:12px}.tg-dialog-badges{flex-shrink:0;align-items:center;gap:6px;display:flex}.tg-chat-actions{flex-shrink:0;position:relative}.tg-chat-menu{z-index:20;border:1px solid var(--tg-border);background:#17212b;border-radius:12px;width:220px;padding:6px 0;position:absolute;top:calc(100% + 4px);right:0;box-shadow:0 10px 32px #00000073}.tg-mode.tg-day .tg-chat-menu{background:#fff}.tg-msg-pinned{color:var(--tg-blue);margin-bottom:4px;font-size:11px;display:block}.tg-fab-form{background:var(--tg-sidebar);border:1px solid var(--tg-border);z-index:6;border-radius:12px;gap:6px;width:min(260px,100% - 32px);padding:8px;display:flex;position:absolute;bottom:76px;right:16px;box-shadow:0 8px 24px #0003}.tg-pin-bar{border:0;border-bottom:1px solid var(--tg-border);background:var(--tg-sidebar);width:100%;color:var(--tg-text);text-align:left;cursor:pointer;align-items:center;gap:8px;padding:6px 14px;display:flex}.tg-pin-bar-ico{font-size:14px}.tg-pin-bar-body{flex-direction:column;min-width:0;display:flex}.tg-pin-bar-label{color:var(--tg-blue);font-size:12px;font-weight:700}.tg-pin-bar-text{color:var(--tg-muted);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.tg-comments-bar{color:var(--tg-blue);margin-top:4px;font-size:12px;font-weight:700}.tg-mode.tg-window .tg-hamburger,.tg-mode.tg-window .tg-toolbar-avatar{display:none}.tg-client-shell .tg-mode{height:100%;max-height:100%}.tg-client-shell .tg-toolbar{padding-top:max(6px, var(--app-safe-top,env(safe-area-inset-top,0px)))}.tg-client-shell .tg-chat-header{padding-top:max(8px, var(--app-safe-top,env(safe-area-inset-top,0px)))}.tg-client-shell .tg-composer{padding-bottom:max(10px, var(--app-safe-bottom,env(safe-area-inset-bottom,0px)));padding-left:max(6px, var(--app-safe-left,env(safe-area-inset-left,0px)));padding-right:max(6px, var(--app-safe-right,env(safe-area-inset-right,0px)))}.tg-client-shell .tg-compose-fab{bottom:max(16px, var(--app-safe-bottom,env(safe-area-inset-bottom,0px)))}.tg-client-shell .tg-drawer{padding-top:var(--app-safe-top,env(safe-area-inset-top,0px));padding-bottom:var(--app-safe-bottom,env(safe-area-inset-bottom,0px))}:is(html:has(.tg-mode),body:has(.tg-mode)){overscroll-behavior:none;overflow:hidden}.tg-chat-actions{flex-flow:row;align-items:center;gap:0;display:flex}.tg-thread{display:none}.tg-thread.open{z-index:8;background:var(--tg-sidebar);flex-direction:column;display:flex;position:absolute;inset:0}.tg-thread-header{padding:10px 12px;padding-top:max(10px, var(--app-safe-top,env(safe-area-inset-top,0px)));border-bottom:1px solid var(--tg-border);flex-shrink:0;align-items:center;gap:8px;display:flex}.tg-thread-title{flex:1;min-width:0;font-weight:600}.tg-thread-sub{color:var(--tg-muted);font-size:12px;font-weight:400}.tg-thread-list{overscroll-behavior:contain;flex:1;min-height:0;padding:8px;overflow-y:auto}.tg-dialog-more{opacity:0}.tg-dialog:hover .tg-dialog-more,.tg-dialog:focus-within .tg-dialog-more{opacity:.85}.tg-menu-scrim{z-index:19;cursor:default;background:0 0;border:0;position:fixed;inset:0}.tg-react-sheet-back,.tg-profile-back{z-index:70;background:#00000073;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.tg-react-sheet,.tg-profile-sheet{width:min(420px,100%);max-height:min(72%, calc(var(--app-height,100%) - 24px));background:var(--tg-sidebar);padding-bottom:max(12px, var(--app-safe-bottom,env(safe-area-inset-bottom,0px)));border-radius:16px 16px 0 0;flex-direction:column;display:flex;overflow:hidden}@media (min-width:900px){.tg-react-sheet-back,.tg-profile-back{align-items:center}.tg-react-sheet,.tg-profile-sheet{max-height:min(70%, calc(var(--app-height,100%) - 48px));border-radius:16px;box-shadow:0 18px 48px #0006}}.tg-react-tabs{flex-shrink:0;gap:6px;padding:12px 12px 8px;display:flex;overflow-x:auto}.tg-react-tab{background:var(--tg-hover);color:var(--tg-text);cursor:pointer;white-space:nowrap;border:0;border-radius:999px;min-height:36px;padding:6px 12px;font-size:13px}.tg-react-tab.on{background:var(--tg-blue);color:#fff}.tg-react-list{overscroll-behavior:contain;min-height:0;padding:4px 8px 12px;overflow-y:auto}.tg-react-row-user{border-radius:10px;align-items:center;gap:10px;padding:8px;display:flex}.tg-react-row-user .tg-react-name{flex:1;min-width:0}.tg-react-row-user strong{white-space:nowrap;text-overflow:ellipsis;font-size:14px;font-weight:600;display:block;overflow:hidden}.tg-react-row-user em{color:var(--tg-muted);font-size:12px;font-style:normal;display:block}.tg-profile-sheet{text-align:center;gap:8px;padding:20px 16px 16px}.tg-profile-sheet .tg-avatar-lg,.tg-profile-sheet .tg-avatar.tg-avatar-lg{width:96px;height:96px;margin:0 auto 8px;font-size:32px}.tg-profile-name{font-size:20px;font-weight:600}.tg-profile-sub{color:var(--tg-muted);font-size:13px}.tg-profile-actions{justify-content:center;gap:8px;margin-top:12px;display:flex}.tg-profile-actions button{border:1px solid var(--tg-border);background:var(--tg-hover);min-width:44px;min-height:44px;color:var(--tg-text);cursor:pointer;border-radius:12px;padding:8px 14px}.tg-chat-meta{cursor:pointer}.tg-compose-fab{color:#fff;cursor:pointer;z-index:5;background:#3390ec;border:0;border-radius:50%;width:48px;height:48px;font-size:18px;position:absolute;bottom:16px;right:16px;box-shadow:0 4px 12px #3390ec66}
