#tgp-chat-widget-root{--tgp-gold:#C9A84C;--tgp-gold-light:#E8C96A;--tgp-bg:#17181b;--tgp-bg2:#1f2024;--tgp-bg3:#26272c;--tgp-text:#F5F0E8;--tgp-text-muted:#9b968c;--tgp-border:rgba(255, 255, 255, 0.08);--tgp-border-strong:rgba(255, 255, 255, 0.14);--tgp-bubble-size:58px;--tgp-bubble-gap:16px;--tgp-side-gap:20px;--tgp-bubble-bottom:20px;position:fixed;bottom:0;z-index:999999;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif}#tgp-chat-widget-root,#tgp-chat-widget-root *,#tgp-chat-widget-root *::before,#tgp-chat-widget-root *::after{box-sizing:border-box}#tgp-chat-widget-root button{-webkit-appearance:none;appearance:none;font:inherit;-webkit-tap-highlight-color:#fff0}#tgp-chat-widget-root textarea{-webkit-appearance:none;appearance:none;font:inherit}#tgp-chat-widget-root.tgp-chat-pos-right{right:var(--tgp-side-gap);--tgp-bubble-bottom:100px}#tgp-chat-widget-root.tgp-chat-pos-left{left:var(--tgp-side-gap);--tgp-bubble-bottom:20px}#tgp-chat-widget-root .tgp-chat-panel{position:absolute;bottom:calc(var(--tgp-bubble-bottom) + var(--tgp-bubble-size) + var(--tgp-bubble-gap));width:360px;max-width:calc(100vw - 40px);height:500px;max-height:calc(100vh - var(--tgp-bubble-bottom) - var(--tgp-bubble-size) - var(--tgp-bubble-gap) - 20px);background:linear-gradient(180deg,var(--tgp-bg2) 0%,var(--tgp-bg) 100%);border:1px solid var(--tgp-border);border-radius:18px;box-shadow:0 20px 60px rgb(0 0 0 / .55),0 2px 8px rgb(0 0 0 / .3),inset 0 1px 0 rgb(255 255 255 / .04);display:flex;flex-direction:column;min-height:0;overflow:hidden;opacity:0;transform:translateY(12px) scale(.96);pointer-events:none;transition:opacity 0.22s cubic-bezier(.2,.8,.2,1),transform 0.22s cubic-bezier(.2,.8,.2,1);transform-origin:bottom var(--tgp-panel-origin,right)}#tgp-chat-widget-root.tgp-chat-pos-right .tgp-chat-panel{right:0;--tgp-panel-origin:right}#tgp-chat-widget-root.tgp-chat-pos-left .tgp-chat-panel{left:0;--tgp-panel-origin:left}#tgp-chat-widget-root .tgp-chat-panel.open{opacity:1;transform:translateY(0) scale(1);pointer-events:auto}#tgp-chat-widget-root .tgp-chat-panel-header{background:var(--tgp-bg3);border-bottom:1px solid var(--tgp-border);padding:14px 16px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}#tgp-chat-widget-root .tgp-chat-panel-title{display:flex;align-items:center;gap:9px;color:var(--tgp-text);font-weight:600;font-size:14px;letter-spacing:.01em}#tgp-chat-widget-root .tgp-chat-online-dot{width:8px;height:8px;border-radius:50%;background:#3fbf60;box-shadow:0 0 0 3px rgb(63 191 96 / .2)}#tgp-chat-widget-root .tgp-chat-close-btn{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:30px;height:30px;background-color:#fff0;background-image:none;border:1px solid #fff0;border-radius:8px;color:var(--tgp-text-muted);cursor:pointer;transition:background-color 0.15s ease,color 0.15s ease,border-color 0.15s ease}#tgp-chat-widget-root .tgp-chat-close-btn:hover{background-color:rgb(255 255 255 / .06);border-color:var(--tgp-border-strong);color:var(--tgp-text)}#tgp-chat-widget-root .tgp-chat-close-btn svg{display:block}#tgp-chat-widget-root .tgp-chat-messages{flex:1;min-height:0;overflow-y:auto;padding:16px 14px;display:flex;flex-direction:column;gap:10px;scrollbar-width:thin;scrollbar-color:var(--tgp-border-strong) #fff0}#tgp-chat-widget-root .tgp-chat-messages::-webkit-scrollbar{width:6px}#tgp-chat-widget-root .tgp-chat-messages::-webkit-scrollbar-thumb{background:var(--tgp-border-strong);border-radius:6px}#tgp-chat-widget-root .tgp-chat-msg-row{display:flex}#tgp-chat-widget-root .tgp-chat-msg-user{justify-content:flex-end}#tgp-chat-widget-root .tgp-chat-msg-admin{justify-content:flex-start}#tgp-chat-widget-root .tgp-chat-msg-system{justify-content:center}#tgp-chat-widget-root .tgp-chat-msg-bubble{max-width:80%;padding:9px 12px;border-radius:14px;background:var(--tgp-bg3);border:1px solid var(--tgp-border);color:var(--tgp-text);position:relative;font-size:13px;line-height:1.45;box-shadow:0 1px 2px rgb(0 0 0 / .2)}#tgp-chat-widget-root .tgp-chat-msg-admin .tgp-chat-msg-bubble{border-bottom-left-radius:4px}#tgp-chat-widget-root .tgp-chat-msg-user .tgp-chat-msg-bubble{background:linear-gradient(135deg,var(--tgp-gold-light),var(--tgp-gold));color:#1a1a1a;border-color:#fff0;border-bottom-right-radius:4px}#tgp-chat-widget-root .tgp-chat-msg-row.tgp-chat-msg-system .tgp-chat-msg-bubble.tgp-chat-msg-system{background:#fff0;border:none;color:var(--tgp-text-muted);font-size:11px;font-style:italic;text-align:center;box-shadow:none}#tgp-chat-widget-root .tgp-chat-msg-auto .tgp-chat-msg-bubble{border-color:var(--tgp-gold)}#tgp-chat-widget-root .tgp-chat-msg-text{white-space:pre-wrap;word-break:break-word}#tgp-chat-widget-root .tgp-chat-msg-quote{font-size:11px;opacity:.75;border-left:2px solid currentColor;padding-left:6px;margin-bottom:4px}#tgp-chat-widget-root .tgp-chat-msg-image{max-width:180px;max-height:180px;border-radius:10px;display:block;margin-top:6px}#tgp-chat-widget-root .tgp-chat-msg-meta{font-size:9px;opacity:.6;margin-top:4px}#tgp-chat-widget-root .tgp-chat-msg-reply-btn{position:absolute;top:-9px;right:6px;font-size:9px;background:var(--tgp-bg3);border:1px solid var(--tgp-border-strong);border-radius:5px;padding:2px 6px;cursor:pointer;color:var(--tgp-text-muted);opacity:0;transition:opacity 0.15s ease,color 0.15s ease}#tgp-chat-widget-root .tgp-chat-msg-reply-btn:hover{color:var(--tgp-text)}#tgp-chat-widget-root .tgp-chat-msg-bubble:hover .tgp-chat-msg-reply-btn{opacity:1}#tgp-chat-widget-root .tgp-chat-reply-preview{align-items:center;justify-content:space-between;padding:8px 14px;background:var(--tgp-bg3);border-top:1px solid var(--tgp-border);font-size:11px;color:var(--tgp-text-muted);flex-shrink:0}#tgp-chat-widget-root .tgp-chat-reply-cancel{background:none;border:none;cursor:pointer;font-size:16px;line-height:1;color:var(--tgp-text-muted);transition:color 0.15s ease}#tgp-chat-widget-root .tgp-chat-reply-cancel:hover{color:var(--tgp-text)}#tgp-chat-widget-root .tgp-chat-input-bar{display:flex;align-items:flex-end;gap:8px;padding:12px;border-top:1px solid var(--tgp-border);background:var(--tgp-bg2);flex:0 0 auto}#tgp-chat-widget-root .tgp-chat-attach-btn{display:flex;align-items:center;justify-content:center;border:1px solid var(--tgp-border);background-color:var(--tgp-bg3);background-image:none;border-radius:10px;width:36px;height:36px;cursor:pointer;color:var(--tgp-text-muted);flex-shrink:0;transition:border-color 0.15s ease,color 0.15s ease,background-color 0.15s ease}#tgp-chat-widget-root .tgp-chat-attach-btn:hover{color:var(--tgp-text);border-color:var(--tgp-border-strong)}#tgp-chat-widget-root .tgp-chat-attach-btn.has-file{border-color:var(--tgp-gold);color:var(--tgp-gold);background-color:rgb(201 168 76 / .12)}#tgp-chat-widget-root .tgp-chat-attach-btn svg{display:block}#tgp-chat-widget-root #tgp-chat-front-input{flex:1 1 auto;align-self:flex-end;resize:none;border-radius:10px;border:1px solid var(--tgp-border);background:var(--tgp-bg3);color:var(--tgp-text);padding:9px 12px;font-size:13px;line-height:1.4;height:36px;min-height:36px;max-height:90px;transition:border-color 0.15s ease,background-color 0.15s ease}#tgp-chat-widget-root #tgp-chat-front-input::placeholder{color:var(--tgp-text-muted)}#tgp-chat-widget-root #tgp-chat-front-input:focus{outline:none;border-color:var(--tgp-gold);background:var(--tgp-bg)}#tgp-chat-widget-root #tgp-chat-front-input:disabled{opacity:.5}#tgp-chat-widget-root .tgp-chat-send-btn{display:flex;align-items:center;justify-content:center;border:none;background-color:var(--tgp-gold);background-image:linear-gradient(135deg,var(--tgp-gold-light),var(--tgp-gold));color:#1a1a1a;border-radius:10px;width:36px;height:36px;flex-shrink:0;cursor:pointer;box-shadow:0 2px 8px rgb(201 168 76 / .35);transition:transform 0.12s ease,box-shadow 0.12s ease}#tgp-chat-widget-root .tgp-chat-send-btn svg{display:block;transform:translateX(-1px)}#tgp-chat-widget-root .tgp-chat-send-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px rgb(201 168 76 / .45)}#tgp-chat-widget-root .tgp-chat-send-btn:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}#tgp-chat-widget-root .tgp-chat-bubble{position:absolute;bottom:var(--tgp-bubble-bottom);width:var(--tgp-bubble-size);height:var(--tgp-bubble-size);border-radius:50%;border:none;background:linear-gradient(135deg,var(--tgp-gold-light),var(--tgp-gold));color:#1a1a1a;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 8px 24px rgb(0 0 0 / .35),0 2px 8px rgb(201 168 76 / .4);transition:transform 0.18s cubic-bezier(.2,.8,.2,1),box-shadow 0.18s ease}#tgp-chat-widget-root.tgp-chat-pos-right .tgp-chat-bubble{right:0}#tgp-chat-widget-root.tgp-chat-pos-left .tgp-chat-bubble{left:0}#tgp-chat-widget-root .tgp-chat-bubble:hover{transform:scale(1.06);box-shadow:0 10px 28px rgb(0 0 0 / .4),0 2px 10px rgb(201 168 76 / .5)}#tgp-chat-widget-root .tgp-chat-bubble-icon{position:absolute;display:flex;align-items:center;justify-content:center;transition:opacity 0.18s ease,transform 0.18s ease}#tgp-chat-widget-root .tgp-chat-bubble-icon-close{opacity:0;transform:rotate(-45deg) scale(.6)}#tgp-chat-widget-root .tgp-chat-bubble.open .tgp-chat-bubble-icon-chat{opacity:0;transform:rotate(45deg) scale(.6)}#tgp-chat-widget-root .tgp-chat-bubble.open .tgp-chat-bubble-icon-close{opacity:1;transform:rotate(0) scale(1)}#tgp-chat-widget-root .tgp-chat-bubble-dot{position:absolute;top:2px;right:2px;width:12px;height:12px;border-radius:50%;background:#ff4d4f;border:2px solid var(--tgp-bg);box-shadow:0 0 0 2px rgb(255 77 79 / .25)}#tgp-chat-widget-root.tgp-chat-pos-left .tgp-chat-bubble-dot{right:auto;left:2px}@media (max-width:480px){#tgp-chat-widget-root .tgp-chat-panel{width:calc(100vw - 24px);max-height:calc(100vh - var(--tgp-bubble-bottom) - var(--tgp-bubble-size) - var(--tgp-bubble-gap) - 40px)}#tgp-chat-widget-root.tgp-chat-pos-right .tgp-chat-panel{right:-6px}#tgp-chat-widget-root.tgp-chat-pos-left .tgp-chat-panel{left:-6px}}