#tg-assistent,#tg-assistent *{box-sizing:border-box;font-family:"DM Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
#tg-assistent{--tg-blue:#5168BA;--tg-dark:#101927;--tg-text:#18202D;--tg-muted:#6F7784;position:fixed;right:26px;bottom:26px;z-index:9999999;color:var(--tg-text)}
.tg-assistent-launcher{height:58px;min-width:58px;padding:0 18px;display:flex;align-items:center;gap:11px;border:0;border-radius:999px;background:var(--tg-dark);color:#fff;box-shadow:0 18px 50px rgba(16,25,39,.24);cursor:pointer;transition:transform .25s ease,box-shadow .25s ease,background .25s ease}
.tg-assistent-launcher:hover{transform:translateY(-3px);box-shadow:0 22px 55px rgba(16,25,39,.3);background:var(--tg-blue)}
.tg-launcher-icon{width:24px;height:24px;display:flex;align-items:center;justify-content:center}
.tg-launcher-icon svg,.tg-brand-mark svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
.tg-launcher-text{font-size:13px;font-weight:600;white-space:nowrap}.tg-launcher-close{display:none;width:18px;height:18px;position:relative}.tg-launcher-close:before,.tg-launcher-close:after{content:"";position:absolute;top:8px;left:1px;width:16px;height:1px;background:#fff}.tg-launcher-close:before{transform:rotate(45deg)}.tg-launcher-close:after{transform:rotate(-45deg)}
.tg-assistent.is-open .tg-launcher-icon,.tg-assistent.is-open .tg-launcher-text{display:none}.tg-assistent.is-open .tg-launcher-close{display:block}
.tg-assistent-panel{position:absolute;right:0;bottom:72px;width:min(390px,calc(100vw - 32px));height:min(650px,calc(100vh - 120px));display:flex;flex-direction:column;background:#fff;border:1px solid rgba(16,25,39,.08);border-radius:20px;box-shadow:0 26px 80px rgba(16,25,39,.22);overflow:hidden;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(18px) scale(.98);transform-origin:bottom right;transition:opacity .25s ease,visibility .25s ease,transform .25s ease}
.tg-assistent.is-open .tg-assistent-panel{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0) scale(1)}
.tg-assistent-header{padding:22px 22px 20px;display:grid;grid-template-columns:42px 1fr 30px;gap:13px;align-items:start;background:var(--tg-dark);color:#fff}
.tg-brand-mark{width:42px;height:42px;padding:9px;border:1px solid rgba(255,255,255,.2);border-radius:13px;color:#fff}.tg-assistent-header strong{display:block;margin:1px 0 5px;font-size:17px;font-weight:600;line-height:1.2}.tg-assistent-header span{display:block;color:rgba(255,255,255,.68);font-size:12.5px;line-height:1.45}.tg-panel-close{width:30px;height:30px;position:relative;border:0;background:transparent;cursor:pointer}.tg-panel-close span{position:absolute!important;left:6px;top:14px;width:18px;height:1px;background:#fff!important}.tg-panel-close span:first-child{transform:rotate(45deg)}.tg-panel-close span:last-child{transform:rotate(-45deg)}
.tg-assistent-body{flex:1;overflow:auto;padding:20px;background:#fff}.tg-chat-stream{margin-bottom:16px}.tg-msg{display:flex;margin-bottom:10px}.tg-msg-bot{justify-content:flex-start}.tg-msg-bubble{max-width:86%;padding:12px 14px;border-radius:14px 14px 14px 4px;background:#F1F3F6;color:var(--tg-text);font-size:14px;line-height:1.5}
.tg-quick-actions{display:grid;gap:8px}.tg-quick-actions button{width:100%;min-height:57px;padding:0 14px;display:grid;grid-template-columns:30px 1fr 18px;align-items:center;gap:8px;border:1px solid #E5E8ED;border-radius:12px;background:#fff;text-align:left;cursor:pointer;transition:background .22s ease,border .22s ease,transform .22s ease}.tg-quick-actions button:hover{background:var(--tg-blue);border-color:var(--tg-blue);transform:translateX(3px)}.tg-quick-actions button span{color:var(--tg-blue);font-size:10px;font-weight:700}.tg-quick-actions button b{font-size:13.5px;font-weight:600;color:var(--tg-text)}.tg-quick-actions button i{font-style:normal;color:var(--tg-blue);font-size:17px;transition:transform .22s ease}.tg-quick-actions button:hover span,.tg-quick-actions button:hover b,.tg-quick-actions button:hover i{color:#fff}.tg-quick-actions button:hover i{transform:translateX(3px)}
.tg-flow h4,.tg-success h4{margin:12px 0 8px;font-size:20px;line-height:1.2;font-weight:600;letter-spacing:-.025em}.tg-flow>p,.tg-success p{margin:0 0 18px;color:var(--tg-muted);font-size:13px;line-height:1.55}.tg-back{padding:0;border:0;background:transparent;color:var(--tg-blue);font-size:12px;font-weight:600;cursor:pointer}
.tg-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}.tg-choice-grid button{min-height:70px;padding:14px;border:1px solid #E5E8ED;border-radius:12px;background:#fff;color:var(--tg-text);font-size:13px;font-weight:600;text-align:left;cursor:pointer;transition:.22s ease}.tg-choice-grid button:hover{background:var(--tg-dark);border-color:var(--tg-dark);color:#fff;transform:translateY(-2px)}.tg-subflow{margin-top:16px;padding:16px;border-radius:14px;background:#F5F6F8}.tg-subflow p{margin:0 0 12px;font-size:13px;line-height:1.55;color:var(--tg-text)}
.tg-primary,.tg-secondary{width:100%;min-height:46px;margin-top:8px;padding:0 16px;border-radius:999px;font-size:13px;font-weight:600;cursor:pointer;transition:.22s ease}.tg-primary{display:flex;align-items:center;justify-content:center;border:0;background:var(--tg-blue);color:#fff!important;text-decoration:none!important}.tg-primary:hover{background:var(--tg-dark);transform:translateY(-2px)}.tg-secondary{border:1px solid #DDE1E7;background:#fff;color:var(--tg-text)}.tg-secondary:hover{border-color:var(--tg-dark)}
.tg-faq-list{margin-top:16px;border-top:1px solid #E5E8ED}.tg-faq-list button{width:100%;min-height:55px;padding:12px 0;display:flex;align-items:center;justify-content:space-between;gap:15px;border:0;border-bottom:1px solid #E5E8ED;background:transparent;color:var(--tg-text);font-size:13.5px;font-weight:500;text-align:left;cursor:pointer}.tg-faq-list button span{width:26px;height:26px;flex:0 0 26px;display:flex;align-items:center;justify-content:center;border:1px solid #DDE1E7;border-radius:50%;color:var(--tg-blue);font-size:16px}.tg-faq-list button:hover{color:var(--tg-blue)}.tg-faq-answer{margin-top:14px;padding:15px;background:#F5F6F8;border-radius:12px;color:var(--tg-text);font-size:13px;line-height:1.58}
.tg-form{display:grid;gap:12px;margin-top:15px}.tg-form label{display:grid;gap:6px;color:var(--tg-text);font-size:12px;font-weight:600}.tg-form input,.tg-form textarea,.tg-form select{width:100%;padding:11px 12px;border:1px solid #DCE1E7;border-radius:10px;background:#fff;color:var(--tg-text);font:inherit;font-size:14px!important;font-weight:400!important;outline:none;transition:border .2s ease,box-shadow .2s ease}.tg-form input:focus,.tg-form textarea:focus,.tg-form select:focus{border-color:var(--tg-blue);box-shadow:0 0 0 3px rgba(81,104,186,.1)}.tg-form textarea{resize:vertical;min-height:90px}.tg-consent{display:flex!important;grid-template-columns:18px 1fr;align-items:flex-start;gap:8px!important;line-height:1.45}.tg-consent input{width:16px!important;height:16px!important;margin-top:2px}.tg-consent span{font-size:11px!important;font-weight:400!important;color:var(--tg-muted)}.tg-consent a{color:var(--tg-blue);text-decoration:underline}
.tg-success{text-align:center;padding:18px 4px}.tg-success-icon{width:54px;height:54px;margin:0 auto 14px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:rgba(81,104,186,.1);color:var(--tg-blue)}.tg-success-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.tg-assistent-footer{height:42px;padding:0 18px;display:flex;align-items:center;gap:7px;border-top:1px solid #ECEEF2;color:#8A9099;font-size:10.5px}.tg-status-dot{width:6px;height:6px;border-radius:50%;background:#56B37B}.tg-assistent-footer span:first-child{font-weight:700;color:#6E7580}.tg-assistent-footer span:nth-child(3){margin-left:auto}
.tg-form .tg-error{color:#B42318;font-size:12px}.tg-assistent .is-loading{opacity:.6;pointer-events:none}
@media(max-width:600px){#tg-assistent{right:14px;bottom:14px}.tg-launcher-text{display:none}.tg-assistent-launcher{width:56px;height:56px;padding:0;justify-content:center}.tg-assistent-panel{position:fixed;right:10px;left:10px;bottom:80px;width:auto;height:min(650px,calc(100vh - 100px));border-radius:18px}.tg-assistent-header{padding:19px}.tg-assistent-body{padding:17px}.tg-choice-grid{grid-template-columns:1fr 1fr}}
@media(prefers-reduced-motion:reduce){#tg-assistent *,#tg-assistent *:before,#tg-assistent *:after{transition:none!important;scroll-behavior:auto!important}}
