#ta-chat{--ta-color:#d15116;position:fixed;right:20px;bottom:20px;z-index:99999;font-family:inherit;font-size:15px;line-height:1.45}
#ta-chat *{box-sizing:border-box}
#ta-chat .ta-bubble{width:60px;height:60px;border-radius:50%;border:0;cursor:pointer;background:var(--ta-color);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 20px rgba(0,0,0,.2);transition:transform .2s}
#ta-chat .ta-bubble:hover{transform:scale(1.06)}
#ta-chat .ta-panel{position:absolute;right:0;bottom:76px;width:370px;max-width:calc(100vw - 40px);height:540px;max-height:calc(100vh - 120px);background:#fff;border-radius:16px;box-shadow:0 12px 40px rgba(0,0,0,.22);display:flex;flex-direction:column;overflow:hidden}
#ta-chat .ta-panel[hidden]{display:none}
#ta-chat .ta-head{background:var(--ta-color);color:#fff;padding:14px 16px;display:flex;justify-content:space-between;align-items:center}
#ta-chat .ta-title{font-weight:700;font-size:16px}
#ta-chat .ta-sub{font-size:12px;opacity:.85}
#ta-chat .ta-x{background:none;border:0;color:#fff;font-size:26px;line-height:1;cursor:pointer;padding:0 4px}
#ta-chat .ta-msgs{flex:1;overflow-y:auto;padding:14px;background:#f7f5f2;display:flex;flex-direction:column;gap:8px}
#ta-chat .ta-msg{max-width:85%;padding:9px 13px;border-radius:14px;word-wrap:break-word;color:#222}
#ta-chat .ta-assistant{background:#fff;align-self:flex-start;border-bottom-left-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.06)}
#ta-chat .ta-user{background:var(--ta-color);color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
#ta-chat .ta-msg a{color:inherit;text-decoration:underline;word-break:break-all}
#ta-chat .ta-typing span{display:inline-block;width:7px;height:7px;margin:0 2px;border-radius:50%;background:#bbb;animation:taDot 1s infinite}
#ta-chat .ta-typing span:nth-child(2){animation-delay:.15s}
#ta-chat .ta-typing span:nth-child(3){animation-delay:.3s}
@keyframes taDot{0%,80%,100%{opacity:.3}40%{opacity:1}}
#ta-chat .ta-quick{display:flex;gap:8px;padding:8px 12px 0;background:#fff}
#ta-chat .ta-quick a{flex:1;text-align:center;font-size:13px;padding:6px 8px;border:1px solid var(--ta-color);color:var(--ta-color);border-radius:20px;text-decoration:none}
#ta-chat .ta-quick a:hover{background:var(--ta-color);color:#fff}
#ta-chat .ta-form{display:flex;gap:8px;padding:10px 12px;background:#fff;border-top:1px solid #eee;margin:0}
#ta-chat .ta-form textarea{flex:1;resize:none;min-height:0!important;height:42px;margin:0;line-height:1.4;border:1px solid #ddd;border-radius:10px;padding:9px 11px;font:inherit;font-size:14px;max-height:120px;outline:none;color:#222;background:#fff}
#ta-chat .ta-form textarea:focus{border-color:var(--ta-color)}
#ta-chat .ta-form button{border:0;height:42px;padding:0;align-self:flex-end;background:var(--ta-color);color:#fff;border-radius:10px;width:42px;cursor:pointer;display:flex;align-items:center;justify-content:center}
@media (max-width:600px){
#ta-chat{right:14px;bottom:14px;font-size:14px}
#ta-chat .ta-bubble{width:52px;height:52px}
#ta-chat .ta-bubble svg{width:24px;height:24px}
#ta-chat .ta-panel{position:fixed;right:10px;left:auto;bottom:76px;width:calc(100vw - 20px);max-width:340px;height:60vh;height:min(60dvh,460px);max-height:460px;border-radius:14px}
#ta-chat .ta-head{padding:10px 14px}
#ta-chat .ta-title{font-size:15px}
#ta-chat .ta-msgs{padding:10px}
#ta-chat .ta-msg{padding:8px 11px}
#ta-chat .ta-quick{padding:6px 10px 0}
#ta-chat .ta-quick a{font-size:12px;padding:5px 6px}
#ta-chat .ta-form{padding:8px 10px}
#ta-chat .ta-form textarea{font-size:16px}
}
