#tgwc{--tg-red:#d71936;--tg-ink:#18191c;font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:1.5;color:var(--tg-ink);position:fixed;right:24px;bottom:24px;z-index:99990;text-align:left;letter-spacing:normal;font-weight:400}
#tgwc *{box-sizing:border-box}
#tgwc{pointer-events:none}
#tgwc-panel,#tgwc-launch{pointer-events:auto}
#tgwc [hidden]{display:none!important}
#tgwc button,#tgwc textarea,#tgwc a{font-family:inherit;font-size:inherit;line-height:inherit;letter-spacing:normal}
#tgwc button{cursor:pointer;border:0;text-transform:none;margin:0;min-height:0;box-shadow:none;font-weight:600}
#tgwc button:disabled{opacity:.5;cursor:wait}
#tgwc button:focus-visible,#tgwc a:focus-visible,#tgwc summary:focus-visible{outline:3px solid #ff8596;outline-offset:3px}
#tgwc-launch{display:flex;align-items:center;gap:10px;color:#fff;background:var(--tg-red);border-radius:30px;padding:16px 21px;box-shadow:0 5px 25px #0004;font-weight:700}
#tgwc-launch:hover{background:#b9152e}
#tgwc-panel{position:absolute;right:0;bottom:76px;width:380px;height:min(640px,calc(100dvh - 130px));max-height:640px;display:flex;flex-direction:column;background:#fff;border:1px solid #ddd;border-radius:18px;box-shadow:0 12px 60px #0005;overflow:hidden}
#tgwc .tgwc-head{display:flex;align-items:center;justify-content:space-between;background:#18191c;color:#fff;padding:20px 20px 17px;flex-shrink:0;border-bottom:3px solid var(--tg-red)}
#tgwc .tgwc-head strong{font-size:21px;letter-spacing:-.6px;font-weight:900;color:#fff}
#tgwc .tgwc-head strong span{color:#ff4260;margin-left:6px;font-size:13px;letter-spacing:1px}
#tgwc .tgwc-head p{margin:5px 0 0;font-size:12px;color:#d9dade;line-height:1.4}
#tgwc .tgwc-head i{display:inline-block;width:6px;height:6px;background:#6add9d;border-radius:50%;margin-right:4px}
#tgwc-close{color:#fff;background:#ffffff13;border-radius:50%;width:36px;height:36px;font-size:25px;font-weight:400}
#tgwc .tgwc-toolbar{display:flex;justify-content:space-between;align-items:center;padding:11px 18px;border-bottom:1px solid #ececef;font-size:12px;color:#656570;flex-shrink:0}
#tgwc-reset{background:transparent;color:#555;font-size:12px;padding:4px;text-decoration:underline;text-underline-offset:3px}
#tgwc-log{padding:18px 16px 8px;overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:75px;scrollbar-width:thin}
#tgwc .tgwc-message{padding:12px 14px;margin-bottom:12px;border-radius:13px;max-width:94%;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.55;font-weight:400}
#tgwc .tgwc-assistant{background:#f0f1f3;border-bottom-left-radius:3px;color:#23252a}
#tgwc .tgwc-user{background:#d71936;color:white;margin-left:auto;border-bottom-right-radius:3px}
#tgwc-prompts{display:flex;gap:7px;flex-wrap:wrap;padding:0 16px 12px}
#tgwc-prompts button{border:1px solid #e1e1e5;border-radius:20px;background:#fff;color:#3d3d46;font-size:12px;font-weight:400;padding:7px 11px}
#tgwc-prompts button:hover{border-color:var(--tg-red);color:var(--tg-red)}
#tgwc-status{font-size:12px;line-height:1.45;padding:0 18px;color:#7f2635;margin:0;flex-shrink:0}
#tgwc-status:not(:empty){padding-bottom:10px}
#tgwc-form{display:flex;gap:8px;margin:0 14px 8px;padding:7px;border:1px solid #cccdd2;border-radius:12px;background:#fff;flex-shrink:0}
#tgwc-form:focus-within{border-color:var(--tg-red);box-shadow:0 0 0 1px var(--tg-red)}
#tgwc-input{display:block;background:#fff;border:0;outline:0;box-shadow:none;resize:none;min-height:40px;max-height:80px;width:100%;padding:9px 5px;color:#18191c;font-size:16px;line-height:22px;border-radius:0;font-weight:400}
#tgwc-send{border-radius:8px;flex-shrink:0;width:40px;height:40px;display:grid;place-items:center;background:var(--tg-red);color:white;padding:0}
#tgwc .tgwc-links{display:flex;justify-content:space-between;gap:8px;padding:4px 18px 11px;flex-shrink:0}
#tgwc .tgwc-links a{font-size:12px;color:#5a2530;font-weight:600;text-decoration:underline;text-underline-offset:3px}
#tgwc .tgwc-privacy{background:#f7f7f8;padding:9px 18px;border-top:1px solid #eee;font-size:11px;color:#60636b;flex-shrink:0;max-height:145px;overflow:auto}
#tgwc .tgwc-privacy summary{cursor:pointer;font-size:11px;padding:0;font-weight:400}
#tgwc .tgwc-privacy p{margin:7px 0 0;font-size:11px;line-height:1.5}
#tgwc .tgwc-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:600px){#tgwc{left:14px;right:14px;bottom:calc(16px + env(safe-area-inset-bottom,0px))}#tgwc #tgwc-launch{padding:13px 17px;font-size:13px;margin-left:auto;width:max-content}#tgwc-panel{width:100%;bottom:66px;height:min(600px,calc(100dvh - 112px - env(safe-area-inset-bottom,0px)));border-radius:15px}#tgwc .tgwc-head{padding:15px 17px}#tgwc .tgwc-links{padding-left:15px;padding-right:15px}}
@media(max-height:500px){#tgwc-panel{position:fixed;inset:8px 14px 8px auto;height:calc(100dvh - 16px);max-height:none}#tgwc .tgwc-head{padding:8px 15px}#tgwc .tgwc-toolbar{padding:5px 15px}}
@media(prefers-reduced-motion:reduce){#tgwc *{scroll-behavior:auto}}

#tgwc .tgwc-recording{margin:0;padding:5px 16px;font-size:11px;line-height:1.4;color:#555;background:#fff;}
