#ch.tg .tg-menu-overlay:has(+ .tg-menu.tg-fwd-topics),#ch.tg .tg-menu-overlay:has(+ .tg-menu.tg-fwd-menu){z-index:75}
#ch.tg .tg-menu.tg-fwd-topics,#ch.tg .tg-menu.tg-fwd-menu{z-index:76}
#ch.tg .tg-popup.tg-fwd-popup{width:min(420px,calc(100% - 32px));height:min(640px,calc(100% - 48px));padding-bottom:0;overflow:hidden}
#ch.tg .tg-fwd-popup .tg-popup-body{padding:0;display:flex;flex-direction:column;overflow:hidden}
#ch.tg .tg-fwd-pick{display:flex;flex-direction:column;min-height:0;flex:1}
#ch.tg .tg-fwd-search{flex:none;margin:0 16px 8px;height:40px}
#ch.tg .tg-fwd-search .tg-search-input{flex:1;height:100%;font-size:15px;color:var(--tg-text)}
#ch.tg .tg-fwd-list{flex:1;min-height:0;overflow-y:auto;padding:0 0 8px}
#ch.tg .tg-fwd-row{min-height:60px;gap:14px;padding:6px 12px}
#ch.tg .tg-fwd-av{position:relative;display:inline-flex;flex:none;z-index:1}
#ch.tg .tg-fwd-av .tg-avatar{transition:transform .2s var(--tg-ease),box-shadow .2s var(--tg-ease)}
#ch.tg .tg-fwd-row.is-sel .tg-fwd-av .tg-avatar{transform:scale(.86);box-shadow:0 0 0 2px var(--tg-surface),0 0 0 4px var(--tg-primary)}
#ch.tg .tg-fwd-row.is-sel .tg-avatar-online{opacity:0}
#ch.tg .tg-fwd-tick{position:absolute;bottom:-2px;inset-inline-end:-2px;width:22px;height:22px;border-radius:50%;background:var(--tg-primary);color:var(--tg-primary-text);border:2px solid var(--tg-surface);display:grid;place-items:center;transform:scale(0);transition:transform .2s var(--tg-ease);z-index:2}
#ch.tg .tg-fwd-tick .tgico{font-size:15px}
#ch.tg .tg-fwd-row.is-sel .tg-fwd-tick{transform:scale(1)}
#ch.tg .tg-fwd-row .tg-row-title{font-weight:500}
#ch.tg .tg-fwd-foot{flex:none;display:none;padding:8px 10px 10px;border-top:1px solid var(--tg-border);background:var(--tg-surface)}
#ch.tg .tg-fwd-foot.show{display:block;animation:tg-fwd-up .2s var(--tg-ease)}
@keyframes tg-fwd-up{from{transform:translateY(100%);opacity:.4}to{transform:none;opacity:1}}
#ch.tg .tg-fwd-info{font-size:13px;color:var(--tg-text-2);padding:0 12px 6px}
#ch.tg .tg-fwd-foot-row{display:flex;align-items:center;gap:6px}
#ch.tg .tg-fwd-input{flex:1;min-width:0;height:44px;display:flex;align-items:center;padding:0 14px;border-radius:22px;background:var(--tg-input-bg);border:2px solid transparent;transition:border-color .2s}
#ch.tg .tg-fwd-input:focus-within{border-color:var(--tg-primary)}
#ch.tg input[type=text].tg-fwd-comment{flex:1;width:100%;height:100%;padding:0;border:0;background:none;box-shadow:none;outline:none;font-size:15px;color:var(--tg-text)}
#ch.tg .tg-fwd-send{width:44px;height:44px;background:var(--tg-primary);color:var(--tg-primary-text)}
#ch.tg .tg-fwd-send:hover{background:var(--tg-primary);filter:brightness(1.07)}
#ch.tg .tg-fwd-send .tgico{font-size:22px}
#ch.tg .tg-fwd-more .tgico{font-size:22px}

#ch.tg .tg-fwd{color:var(--tg-fwd-c,var(--tg-accent-c))}
#ch.tg .tg-fwd .tg-fwd-name{cursor:pointer;display:inline-flex;align-items:center;gap:3px}
#ch.tg .tg-fwd .tg-fwd-name:hover{text-decoration:underline}
#ch.tg .tg-fwd.is-hidden .tg-fwd-name{cursor:default;text-decoration:none}
#ch.tg .tg-fwd-hid{font-size:16px;opacity:.85}
#ch.tg .tg-chat.is-selecting .tg-fwd .tg-fwd-name{pointer-events:none}

#ch.tg .tg-service-pill.is-link{cursor:pointer;pointer-events:auto;transition:filter .15s}
#ch.tg .tg-service-pill.is-link:hover{filter:brightness(1.15)}
#ch.tg .tg-service-pill.is-link b{font-weight:600}
#ch.tg .tg-svc-q{font-weight:400;opacity:.92}
#ch.tg .tg-chat.is-selecting .tg-service-pill.is-link{pointer-events:none}

#ch.tg .tg-pins-panel{padding:6px 0 16px}
#ch.tg .tg-pins-item{align-items:flex-start;gap:12px;padding:8px 12px;min-height:60px}
#ch.tg .tg-pins-item .tg-avatar{margin-top:2px}
#ch.tg .tg-pins-top{display:flex;align-items:baseline;gap:8px;min-width:0}
#ch.tg .tg-pins-top .tg-row-title{flex:1;font-size:15px;font-weight:500}
#ch.tg .tg-pins-time{font-size:12.5px;color:var(--tg-text-2);flex:none}
#ch.tg .tg-pins-text{font-size:14.5px;line-height:1.4;color:var(--tg-text-2);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word}
#ch.tg .tg-pins-x{width:34px;height:34px;align-self:center;z-index:1;opacity:0;transition:opacity .15s}
#ch.tg .tg-pins-x .tgico{font-size:20px}
#ch.tg .tg-pins-item:hover .tg-pins-x{opacity:1}
#ch.tg .tg-pins-foot{padding:12px 16px 0;display:flex;justify-content:center}
#ch.tg .tg-pins-all{width:100%}

#ch.tg .tg-poll{width:320px;max-width:100%;min-width:240px;padding:2px 1px 0;user-select:none}
#ch.tg .tg-bubble.is-wide .tg-poll{width:min(320px,calc(100vw - 120px))}
#ch.tg .tg-poll-q{font-size:15.5px;font-weight:600;line-height:1.35;white-space:pre-wrap;word-break:break-word}
#ch.tg .tg-poll-type{display:flex;align-items:center;flex-wrap:wrap;gap:2px;min-height:20px;margin:2px 0 6px;font-size:14px;color:var(--tg-meta-c)}
#ch.tg .tg-poll-hint{width:30px;height:30px;margin:-6px auto -6px -6px;color:var(--tg-accent-c)}
#ch.tg .tg-poll-hint .tgico{font-size:20px}
#ch.tg .tg-poll-opts{display:flex;flex-direction:column;margin:0 -4px}
#ch.tg .tg-poll-opt{position:relative;display:flex;align-items:flex-start;gap:10px;min-height:38px;padding:6px 6px 9px;border-radius:8px;overflow:hidden}
#ch.tg .tg-poll-opt.can-vote{cursor:pointer}
#ch.tg .tg-poll-opt.can-vote:hover{background:color-mix(in srgb,var(--tg-accent-c) 9%,transparent)}
#ch.tg .tg-poll-radio{position:relative;z-index:1;width:20px;height:20px;flex:none;margin-top:1px;border-radius:50%;border:2px solid var(--tg-meta-c);display:grid;place-items:center;transition:background-color .15s,border-color .15s}
#ch.tg .tg-poll-radio.square{border-radius:6px}
#ch.tg .tg-poll-radio .tgico{font-size:14px;transform:scale(0);transition:transform .15s var(--tg-ease);color:var(--tg-in-bg)}
#ch.tg .tg-bubble.is-out .tg-poll-radio .tgico{color:var(--tg-out-bg)}
#ch.tg .tg-poll-opt.is-chosen .tg-poll-radio{background:var(--tg-accent-c);border-color:var(--tg-accent-c)}
#ch.tg .tg-poll-opt.is-chosen .tg-poll-radio .tgico{transform:scale(1)}
#ch.tg .tg-poll.is-voting .tg-poll-opts{opacity:.6;pointer-events:none;transition:opacity .2s}
#ch.tg .tg-poll-pct{position:relative;z-index:1;width:38px;flex:none;margin-inline-start:-6px;font-size:14px;font-weight:600;line-height:20px;text-align:end;animation:tg-fade-in .3s}
#ch.tg .tg-poll-main{position:relative;z-index:1;flex:1;min-width:0}
#ch.tg .tg-poll-text{font-size:15px;line-height:20px;word-break:break-word}
#ch.tg .tg-poll-line{height:4px;margin-top:7px}
#ch.tg .tg-poll-line i{display:block;height:4px;min-width:4px;max-width:100%;border-radius:2px;background:var(--tg-accent-c);transition:width .6s var(--tg-ease)}
#ch.tg .tg-poll-opt:not(.is-chosen):not(.is-correct) .tg-poll-line i{opacity:.55}
#ch.tg .tg-poll-badge{position:absolute;z-index:2;bottom:3px;inset-inline-start:20px;width:16px;height:16px;border-radius:50%;background:var(--tg-accent-c);display:grid;place-items:center;color:var(--tg-in-bg);animation:tg-poll-pop .25s var(--tg-ease)}
#ch.tg .tg-bubble.is-out .tg-poll-badge{color:var(--tg-out-bg)}
#ch.tg .tg-poll-badge .tgico{font-size:12px;font-weight:700}
#ch.tg .tg-poll.is-quiz .tg-poll-opt.is-wrong .tg-poll-line i,#ch.tg .tg-poll.is-quiz .tg-poll-opt.is-wrong .tg-poll-badge{background:var(--tg-danger);opacity:1}
#ch.tg .tg-poll.is-quiz .tg-poll-opt.is-wrong .tg-poll-badge{color:#fff}
#ch.tg .tg-poll.is-quiz .tg-poll-opt.is-correct .tg-poll-line i{background:var(--tg-online)}
#ch.tg .tg-bubble.is-out .tg-poll.is-quiz .tg-poll-opt.is-correct .tg-poll-line i{background:#fff}
#ch.tg .tg-poll.is-quiz .tg-poll-opt.is-correct .tg-poll-badge{background:var(--tg-online)}
#ch.tg .tg-bubble.is-out .tg-poll.is-quiz .tg-poll-opt.is-correct .tg-poll-badge{background:#fff}
@keyframes tg-poll-pop{from{transform:scale(0)}to{transform:none}}
#ch.tg .tg-poll-foot{position:relative;display:flex;align-items:center;justify-content:center;min-height:32px;margin:2px -9px -6px;padding:0 9px 4px}
#ch.tg .tg-poll-count{font-size:14px;color:var(--tg-meta-c);line-height:28px}
#ch.tg .tg-poll-btn{width:calc(100% + 18px);margin:0 -9px -4px;height:40px;border-radius:0 0 var(--tg-bubble-r) var(--tg-bubble-r);border-top:1px solid color-mix(in srgb,var(--tg-meta-c) 25%,transparent);color:var(--tg-accent-c);font-size:15px;font-weight:600}
#ch.tg .tg-poll-btn:hover{background:color-mix(in srgb,var(--tg-accent-c) 9%,transparent)}
#ch.tg .tg-poll-btn:disabled{opacity:.5}
#ch.tg .tg-poll-foot .tg-meta.is-poll{display:contents}
#ch.tg .tg-poll-foot .tg-meta.is-poll .tg-meta-sp{display:none}
#ch.tg .tg-poll-foot:has(.tg-poll-btn){flex-direction:column;align-items:stretch;justify-content:flex-start}
#ch.tg .tg-poll-foot:has(.tg-poll-btn) .tg-meta-in{position:static;order:-1;align-self:flex-end;margin:0 10px 3px;height:16px}
#ch.tg .tg-poll-foot:has(.tg-poll-count){justify-content:center;padding-inline-end:64px;padding-inline-start:64px}
#ch.tg .tg-bubble.has-poll-btn .tg-reactions{margin-top:4px}

#ch.tg .tg-popup.tg-pc-popup{width:min(440px,calc(100% - 32px));height:min(680px,calc(100% - 40px))}
#ch.tg .tg-pc{padding:6px 0 4px}
#ch.tg .tg-pc .tg-field{margin:6px 0 10px}
#ch.tg .tg-pc-cap{padding:6px 2px 4px;font-size:15px;font-weight:500;color:var(--tg-primary)}
#ch.tg .tg-pc-opts{display:flex;flex-direction:column}
#ch.tg .tg-pc-opt{position:relative;display:flex;align-items:center;gap:10px;height:48px;border-bottom:1px solid var(--tg-border);transition:border-color .15s}
#ch.tg .tg-pc-opt:focus-within{border-bottom-color:var(--tg-primary)}
#ch.tg .tg-pc-opt.is-correct{border-bottom-color:var(--tg-online)}
#ch.tg input[type=text].tg-pc-inp{flex:1;min-width:0;height:100%;padding:0 2px;border:0;border-radius:0;background:none;box-shadow:none;outline:none;font-size:15.5px;color:var(--tg-text)}
#ch.tg .tg-pc-inp::placeholder{color:var(--tg-text-3)}
#ch.tg .tg-pc-radio{display:none}
#ch.tg .tg-pc.is-quiz .tg-pc-radio{display:inline-block}
#ch.tg .tg-pc-radio .tg-cb-input:checked+.tg-cb-box{background:var(--tg-online);border-color:var(--tg-online)}
#ch.tg .tg-pc-del{width:32px;height:32px;opacity:0;pointer-events:none;transition:opacity .15s}
#ch.tg .tg-pc-del .tgico{font-size:18px}
#ch.tg .tg-pc-opt.has-text .tg-pc-del{opacity:.7;pointer-events:auto}
#ch.tg .tg-pc-opt.has-text:hover .tg-pc-del{opacity:1}
#ch.tg .tg-pc-left{padding:8px 2px 10px;font-size:13.5px;color:var(--tg-text-2)}
#ch.tg .tg-pc-sep{height:1px;background:var(--tg-border);margin:4px -16px 8px}
#ch.tg .tg-pc-set{margin:0 -12px;width:calc(100% + 24px);padding:8px 12px;gap:12px}
#ch.tg .tg-pc-set .tg-row-sub{white-space:normal}
#ch.tg .tg-pc-set.disabled{opacity:.45;pointer-events:none}
#ch.tg .tg-pc-exwrap{padding-top:8px}
#ch.tg .tg-pc-note{font-size:13px;color:var(--tg-text-2);margin:-4px 2px 4px}

#ch.tg .tg-popup.tg-voters-popup{width:min(400px,calc(100% - 32px));max-height:min(620px,calc(100% - 48px))}
#ch.tg .tg-voters{padding:0 0 8px}
#ch.tg .tg-voters-wait{display:flex;justify-content:center;padding:28px 0}
#ch.tg .tg-voters-q{font-size:16px;font-weight:600;line-height:1.4;padding:2px 2px 10px;word-break:break-word}
#ch.tg .tg-voters-sec{margin:0 -8px 10px;border-radius:12px;background:var(--tg-surface-2);padding:4px 0 6px}
#ch.tg .tg-voters-cap{display:flex;align-items:baseline;gap:8px;padding:8px 14px 4px;font-size:14.5px;font-weight:500;color:var(--tg-primary)}
#ch.tg .tg-voters-opt{flex:1;min-width:0;word-break:break-word}
#ch.tg .tg-voters-pct{flex:none;color:var(--tg-text-2);font-weight:400}
#ch.tg .tg-voters-sec.is-correct .tg-voters-cap{color:var(--tg-online)}
#ch.tg .tg-voters-none{padding:2px 14px 6px;font-size:14px;color:var(--tg-text-3)}
#ch.tg .tg-voters-row{min-height:44px;margin:0 4px;width:calc(100% - 8px);gap:14px;padding:4px 10px}
#ch.tg .tg-voters-row .tg-row-title{font-size:15px}

#ch.tg .tg-xsearch{z-index:2;padding:0 8px 0 12px}
#ch.tg .tg-xsearch .tg-search{flex:1;height:42px}
#ch.tg .tg-xsearch .tg-search-input{flex:1;height:100%;font-size:15.5px;color:var(--tg-text)}
#ch.tg .tg-xsearch-spin{width:18px;height:18px;border-width:2px;margin-inline-end:10px}
#ch.tg .tg-xsearch-back .tgico{font-size:24px}
#ch.tg .tg-sbar{display:flex;align-items:center;gap:4px;height:54px;padding:0 8px;border-radius:12px;background:var(--tg-input-surface);box-shadow:0 1px 8px 1px rgba(0,0,0,.14);animation:tg-slide-up .2s var(--tg-ease)}
#ch.tg .tg-sbar-cnt{font-size:15px;font-weight:500;color:var(--tg-text);padding:0 6px;white-space:nowrap}
#ch.tg .tg-sbar-sp{flex:1}
#ch.tg .tg-sbar .tg-btn-icon{color:var(--tg-text-2)}
#ch.tg .tg-sbar .tg-btn-icon:not(:disabled){color:var(--tg-primary)}
#ch.tg .tg-sbar .tg-btn-icon.active{background:rgba(var(--tg-primary-rgb),.12)}
#ch.tg .tg-sbar .tg-btn-icon .tgico{font-size:24px}
#ch.tg .tg-sresults{position:absolute;top:0;inset-inline:0;max-height:min(62%,440px);overflow-y:auto;background:var(--tg-surface);border-bottom:1px solid var(--tg-border);box-shadow:0 6px 18px -6px rgba(0,0,0,.35);padding:6px 0;opacity:0;transform:translateY(-8px);transition:opacity .16s var(--tg-ease),transform .16s var(--tg-ease)}
#ch.tg .tg-sresults.show{opacity:1;transform:none}
#ch.tg .tg-sres-row{position:relative;display:flex;align-items:center;gap:12px;margin:0 8px;padding:7px 10px;border-radius:10px;cursor:pointer}
#ch.tg .tg-sres-row:hover{background:var(--tg-hover)}
#ch.tg .tg-sres-row.active{background:var(--tg-surface-3)}
#ch.tg .tg-sres-row .tg-avatar{position:relative;z-index:1}
#ch.tg .tg-sres-main{position:relative;z-index:1;flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
#ch.tg .tg-sres-top{display:flex;align-items:baseline;gap:8px}
#ch.tg .tg-sres-name{flex:1;min-width:0;font-size:15px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#ch.tg .tg-sres-date{flex:none;font-size:12.5px;color:var(--tg-text-2)}
#ch.tg .tg-sres-t{font-size:14.5px;color:var(--tg-text-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#ch.tg .tg-sres-t mark.tg-hl{color:var(--tg-primary)}
#ch.tg .tg-sres-empty{padding:18px 16px;text-align:center;color:var(--tg-text-2);font-size:14.5px}
#ch.tg .tg-sres-wait{display:flex;justify-content:center;padding:10px}
#ch.tg .tg-sres-more{display:flex;margin:6px auto 2px;height:34px;font-size:14px}
#ch.tg mark.tg-smark{background:rgba(255,206,64,.55);color:inherit;border-radius:3px;padding:0 1px;margin:0 -1px;box-shadow:0 0 0 1px rgba(255,206,64,.55)}
#ch.tg[data-theme="light"] mark.tg-smark{background:rgba(255,196,0,.45);box-shadow:0 0 0 1px rgba(255,196,0,.45)}

#ch.tg .tg-gs-tabs{position:sticky;top:0;z-index:2;display:flex;gap:2px;padding:4px 10px 0;margin-bottom:4px;background:var(--tg-surface);border-bottom:1px solid var(--tg-border);overflow-x:auto;scrollbar-width:none}
#ch.tg .tg-gs-tabs::-webkit-scrollbar{display:none}
#ch.tg .tg-gs-tab{position:relative;flex:none;height:40px;padding:0 12px;border-radius:10px 10px 0 0;font-size:14.5px;font-weight:500;color:var(--tg-text-2);transition:color .15s}
#ch.tg .tg-gs-tab:hover{background:var(--tg-hover)}
#ch.tg .tg-gs-tab span{position:relative;z-index:1}
#ch.tg .tg-gs-tab.active{color:var(--tg-primary)}
#ch.tg .tg-gs-tab.active::after{content:"";position:absolute;bottom:0;inset-inline:8px;height:3px;border-radius:3px 3px 0 0;background:var(--tg-primary)}

#ch.tg .tg-msglink{display:flex;align-items:center;gap:10px;margin:6px 0 2px;padding:7px 10px 7px 8px;border-radius:8px;background:color-mix(in srgb,var(--tg-accent-c) 12%,transparent);border-inline-start:3px solid var(--tg-accent-c);min-width:220px;cursor:pointer;position:relative;overflow:hidden}
#ch.tg .tg-msglink.is-locked{cursor:default;opacity:.8}
#ch.tg .tg-msglink-ic{position:relative;z-index:1;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;flex:none;background:var(--tg-accent-c);color:var(--tg-in-bg)}
#ch.tg .tg-bubble.is-out .tg-msglink-ic{color:var(--tg-out-bg)}
#ch.tg .tg-msglink-ic .tgico{font-size:19px}
#ch.tg .tg-msglink-t{position:relative;z-index:1;flex:1;min-width:0;display:flex;flex-direction:column}
#ch.tg .tg-msglink-t b{font-size:14.5px;font-weight:600;color:var(--tg-accent-c);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#ch.tg .tg-msglink-t span{font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:.85}
#ch.tg .tg-ac-user-t span.online{color:var(--tg-primary)}
#ch.tg .tg-ac-all{background:var(--tg-av-6,var(--tg-primary))}
