 .thas-root{--thas-accent:#1769e0;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;position:fixed;right:22px;bottom:22px;z-index:999999;color:#182230;font-size:14px;line-height:1.45}
.thas-root *{box-sizing:border-box}
.thas-launcher{border:0;border-radius:999px;background:var(--thas-accent);color:#fff;padding:14px 19px;font:600 14px/1.2 inherit;box-shadow:0 8px 28px #0002;cursor:pointer}
.thas-panel{position:absolute;right:0;bottom:0;width: min(370px, calc(100vw - 28px));height:min(550px, calc(100dvh - 40px));background:#fff;border:1px solid #e2e8f0;border-radius:18px;box-shadow:0 18px 60px #0003;display:flex;flex-direction:column;overflow:hidden}
.thas-panel[hidden],.thas-launcher[hidden]{display:none}
.thas-header{display:flex;align-items:center;gap:10px;padding:14px;background:var(--thas-accent);color:#fff}
.thas-avatar{width:38px;height:38px;flex:0 0 38px;border-radius:50%;background:#fff;color:var(--thas-accent);display:grid;place-items:center;font-weight:800}
.thas-heading{display:flex;flex-direction:column;min-width:0;flex:1}.thas-heading strong{font-size:14px}.thas-heading small{font-size:11px;opacity:.9}
.thas-close{border:0;background:transparent;color:#fff;font-size:28px;line-height:1;cursor:pointer;padding:2px 5px}
.thas-messages{padding:15px;display:flex;flex-direction:column;gap:12px;overflow-y:auto;flex:1;background:#fbfcfe}
.thas-row{display:flex;width:100%}.thas-row.is-user{justify-content:flex-end}
.thas-bubble{max-width:88%;padding:10px 12px;border-radius:14px;background:#eef2f7;color:#1f2937;white-space:pre-wrap;overflow-wrap:anywhere}
.thas-row.is-user .thas-bubble{background:var(--thas-accent);color:#fff;border-bottom-right-radius:5px}
.thas-row.is-assistant .thas-bubble{border-bottom-left-radius:5px}
.thas-bubble a{color:inherit;text-decoration:underline;font-weight:600}.thas-row.is-user .thas-bubble a{color:#fff}
.thas-form{display:flex;gap:8px;align-items:flex-end;padding:10px;border-top:1px solid #e5eaf0;background:#fff}
.thas-input{resize:none;max-height:90px;min-height:42px;flex:1;min-width:0;border:1px solid #d8dee8;border-radius:12px;padding:10px 11px;font:inherit;outline:none}
.thas-input:focus{border-color:var(--thas-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--thas-accent) 18%,transparent)}
.thas-send{width:42px;height:42px;border:0;border-radius:12px;background:var(--thas-accent);color:#fff;font-size:20px;cursor:pointer}.thas-send:disabled{opacity:.55;cursor:wait}
.thas-foot{font-size:10px;text-align:center;color:#7a8494;padding:0 8px 9px;background:#fff}
@media(max-width:480px){.thas-root{right:12px;bottom:12px}.thas-panel{width:calc(100vw - 24px);height:min(72dvh,600px);bottom:0}.thas-launcher{padding:13px 16px}}
