#thai-root{--thai-accent:#087f6c;--thai-ink:#152d36;--thai-line:#dce7e7;--thai-bottom:22px;position:fixed;right:22px;bottom:calc(var(--thai-bottom) + env(safe-area-inset-bottom,0px));z-index:999990;font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--thai-ink);text-align:left;letter-spacing:normal;box-sizing:border-box}
#thai-root[data-position=left]{right:auto;left:22px}#thai-root *,#thai-root *:before,#thai-root *:after{box-sizing:border-box}#thai-root [hidden]{display:none!important}#thai-root button,#thai-root input,#thai-root select,#thai-root textarea{font:inherit;letter-spacing:normal;text-transform:none;margin:0;box-shadow:none;max-width:100%;border-radius:10px}#thai-root button{cursor:pointer;min-height:38px;padding:8px 13px;border:1px solid var(--thai-line);background:#fff;color:var(--thai-ink);font-weight:600;line-height:1.3}#thai-root button:hover{filter:brightness(.97)}#thai-root button:disabled{cursor:wait;opacity:.55}#thai-root :focus-visible{outline:3px solid #52bfae;outline-offset:3px}#thai-root a{color:var(--thai-accent);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}#thai-root p{font:inherit;margin:0 0 12px;color:inherit}#thai-root h3{margin:0 0 8px;font:700 21px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--thai-ink)}#thai-root small{font-size:11px;line-height:1.45}#thai-root #thai-launcher{border:0;border-radius:100px;display:flex;align-items:center;gap:10px;padding:14px 20px;background:var(--thai-accent);color:white;box-shadow:0 8px 25px #173c3933;font-size:14px;min-height:54px}#thai-root #thai-panel{margin:0;padding:0;position:absolute;bottom:70px;right:0;width:402px;height:min(704px,calc(100dvh - 112px));max-height:calc(100vh - 112px);display:flex;flex-direction:column;overflow:hidden;border:1px solid #d7e2e3;background:#fff;border-radius:22px;box-shadow:0 18px 70px #17333d33;text-align:left}#thai-root[data-position=left] #thai-panel{right:auto;left:0}#thai-root .thai-head{flex:none;display:flex;align-items:center;gap:10px;padding:17px 16px;color:#fff;background:var(--thai-accent);border:0}#thai-root .thai-avatar{position:relative;display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:13px;background:#ffffff24;font-weight:800;font-size:26px}#thai-root .thai-avatar span{position:absolute;right:-5px;bottom:-3px;background:#e0fff4;border:2px solid var(--thai-accent);color:#185a4d;font-size:8px;line-height:14px;padding:0 3px;border-radius:6px}#thai-root .thai-head-title{flex:1;min-width:0}#thai-root .thai-head-title strong{display:block;font-size:15px;line-height:1.3;overflow-wrap:anywhere;color:#fff}#thai-root .thai-head-title small{display:flex;align-items:center;gap:5px;margin-top:4px;color:#ecfff9;font-size:11px}#thai-root .thai-head-title i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#b4f4cf}#thai-root .thai-icon{background:#ffffff17;border:1px solid #ffffff22;color:white;width:32px;height:32px;min-height:32px;font-size:24px;padding:0;font-weight:400}#thai-root .thai-view{padding:20px;overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:0}#thai-root #thai-intro{display:flex;flex-direction:column;gap:4px}#thai-root .thai-welcome-title{font-size:26px;font-weight:750;letter-spacing:-.7px;line-height:1.2;margin:4px 0 8px}#thai-root .thai-notice{background:#f1f7f6;border:1px solid #deebe7;border-radius:13px;padding:15px;margin:8px 0 12px;font-size:12px;line-height:1.55}#thai-root .thai-notice strong{display:block;font-size:13px;margin-bottom:7px}#thai-root .thai-notice p{margin-bottom:9px}#thai-root .thai-primary{display:block;width:100%;border:0;border-radius:10px;background:var(--thai-accent);color:#fff;padding:13px 16px;text-align:center;font-weight:650;font-size:14px;text-decoration:none;line-height:1.35;min-height:44px}#thai-root .thai-contact-link{text-align:center;font-size:12px;margin:12px 0 0}#thai-root #thai-workspace{display:flex;flex:1;min-height:0;flex-direction:column}#thai-root .thai-tools{display:flex;flex:none;gap:6px;padding:11px 12px;background:#fff;border-bottom:1px solid var(--thai-line);overflow-x:auto}#thai-root .thai-tools button{flex:1;white-space:nowrap;font-size:12px;padding:8px 10px;min-height:34px;background:#f4f8f7;border-color:#e0ebe8;color:#25574e;border-radius:8px}#thai-root .thai-chat-view{display:flex;flex:1;min-height:0;flex-direction:column}#thai-root #thai-feed{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:18px 14px;background:#f7faf9}#thai-root .thai-bubble{max-width:94%;padding:12px 13px;border-radius:13px;margin:0 0 12px;background:#fff;border:1px solid #e1e9e6;overflow-wrap:anywhere}#thai-root .thai-bubble>p{white-space:pre-wrap;font-size:13px;line-height:1.6;margin:0}#thai-root .thai-bubble-label{font-size:10px;text-transform:uppercase;letter-spacing:.6px;font-weight:700;display:block;margin-bottom:6px;color:#58766c}#thai-root .thai-bubble-user{margin-left:auto;background:#e2f4ee;border-color:#d2eade;max-width:90%}#thai-root .thai-bubble-user .thai-bubble-label{color:#39715c}#thai-root #thai-chat-form{display:flex;align-items:center;gap:8px;padding:12px 13px;border-top:1px solid var(--thai-line);margin:0;background:#fff;flex:none}#thai-root #thai-message-input{resize:none;border:1px solid #dbe7e2;background:#f6f9f8;color:var(--thai-ink);min-height:46px;max-height:110px;flex:1;width:100%;padding:10px 12px;font-size:13px;line-height:1.5}#thai-root .thai-send{width:39px;height:39px;min-height:39px;flex:none;border:0;background:var(--thai-accent);color:#fff;font-size:24px;border-radius:11px;padding:0}#thai-root .thai-foot{display:flex;flex-wrap:wrap;justify-content:center;gap:5px 14px;padding:7px 10px 10px;flex:none;border-top:1px solid #f0f3f2;background:#fff}#thai-root .thai-foot button{padding:2px 0;font-size:10px;min-height:22px;border:0;color:#657c75;background:transparent;font-weight:500;text-decoration:underline}#thai-root .thai-foot a{font-size:10px;align-self:center;color:#657c75}#thai-root #thai-status{padding:9px 14px;font-size:12px;line-height:1.5;background:#eaf5f0;color:#255849;border-top:1px solid #d7e9df;flex:none;max-height:110px;overflow:auto}#thai-root #thai-status.thai-error{background:#fff1ee;color:#943c29;border-color:#f3c6b9}#thai-root .thai-back{border:0;padding:0;margin-bottom:14px;min-height:24px;font-size:12px;color:#497166;background:none}#thai-root label{display:block;font-size:12px;font-weight:650;margin:12px 0 5px;color:var(--thai-ink)}#thai-root label span{font-weight:400;color:#667d76}#thai-root .thai-view input:not([type=checkbox]),#thai-root .thai-view select,#thai-root .thai-view textarea{display:block;width:100%;min-height:42px;padding:10px 11px;border:1px solid #cdded7;color:var(--thai-ink);background:#fff;font-size:14px;margin-top:5px;line-height:1.4}#thai-root .thai-view select:disabled{background:#f1f4f2;color:#6e7b75}#thai-root .thai-view textarea{resize:vertical}#thai-root .thai-view .thai-primary{margin-top:18px}#thai-root .thai-form-pair{display:flex;gap:10px}#thai-root .thai-form-pair label{width:50%}#thai-root .thai-consent{display:flex;align-items:flex-start;gap:9px;font-size:11px;margin-top:16px;line-height:1.5}#thai-root .thai-consent input{width:17px;height:17px;min-width:17px;margin-top:2px;accent-color:var(--thai-accent)}#thai-root .thai-quote{margin-top:12px}#thai-root .thai-price-card{border:1px solid #d2e7dc;background:#fafdfb;border-radius:11px;padding:12px;margin-bottom:9px}#thai-root .thai-price-card>small{display:block;color:#5b7469;margin-bottom:4px}#thai-root .thai-price-card>strong{display:block;font-size:14px;line-height:1.35;margin:4px 0}#thai-root .thai-price-card>span{display:block;font-size:12px;color:#5a7468}#thai-root .thai-price-card p{font-size:11px;margin:8px 0 0;line-height:1.5}#thai-root .thai-price-line{display:flex;align-items:baseline;gap:10px;margin-top:10px;flex-wrap:wrap}#thai-root .thai-price-line b{font-size:22px;letter-spacing:-.7px;color:#1d5e48}#thai-root .thai-price-line small{font-size:10px;color:#526d60}#thai-root .thai-quote-note{display:block;font-size:10px!important;color:#607369;margin:7px 0!important;line-height:1.5!important}#thai-root .thai-inline-action{font-size:12px;padding:8px 10px;min-height:34px;margin-top:10px;background:#eff8f2;border-color:#c6dece;color:#265c3b}#thai-root .thai-references{margin-top:10px;border-top:1px solid #e5ede7;padding-top:8px}#thai-root .thai-references small{display:block;color:#5d746a}#thai-root .thai-references a{font-size:11px;display:block;margin-top:4px}#thai-root .thai-typing p{color:#638075}#thai-root .thai-honeypot,#thai-root .thai-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#thai-root #thai-handover-summary{font-size:12px;line-height:1.6;background:#f8fbf9}#thai-root #thai-catalog-message{font-size:12px;margin-top:16px}
@media(max-width:520px){#thai-root{right:12px;bottom:calc(var(--thai-bottom) + env(safe-area-inset-bottom,0px))}#thai-root[data-position=left]{left:12px}#thai-root #thai-launcher{padding:12px 15px;font-size:12px;min-height:48px}#thai-root #thai-panel,#thai-root[data-position=left] #thai-panel{position:fixed;inset:0;width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0;box-shadow:none;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}#thai-root .thai-head{padding:15px 17px}#thai-root .thai-head-title strong{font-size:16px}#thai-root .thai-view input:not([type=checkbox]),#thai-root .thai-view textarea,#thai-root .thai-view select,#thai-root #thai-message-input{font-size:16px}#thai-root #thai-feed{padding:18px 15px}#thai-root .thai-bubble{max-width:94%}#thai-root .thai-bubble>p{font-size:14px}#thai-root .thai-tools button{font-size:12px;min-height:37px}#thai-root .thai-foot button{min-height:30px;font-size:11px}}
@media(prefers-reduced-motion:reduce){#thai-root *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

#thai-root form{margin:0;padding:0;border:0;background:transparent}#thai-root #thai-panel{float:none;clear:none}#thai-root .thai-price-card{width:auto;float:none}#thai-root .thai-view p{font-size:13px}

/* v1.0.1: selection chips wrap on small screens instead of widening the conversation. */
#thai-root .thai-catalog-choices { display:flex; flex-direction:column; gap:7px; margin:10px 0; min-width:0; }
#thai-root .thai-catalog-choice { text-align:left; white-space:normal; overflow-wrap:anywhere; width:100%; }
