/* Toomotions AI widget: all styles scoped to #tm-ai-root */
#tm-ai-root,#tm-ai-root *{box-sizing:border-box}
#tm-ai-root{--tm-ai-primary:#2563eb;--tm-ai-primary-hover:#1d4ed8;--tm-ai-ink:#172033;--tm-ai-muted:#667085;--tm-ai-border:#e5e7eb;--tm-ai-shadow:0 18px 55px rgba(15,23,42,.18);font-family:inherit;color:var(--tm-ai-ink);position:relative;z-index:99990}
#tm-ai-root button,#tm-ai-root textarea{font:inherit}
#tm-ai-launcher{position:fixed;right:24px;bottom:24px;width:60px;height:60px;border:0;border-radius:50%;background:var(--tm-ai-primary);color:#fff;box-shadow:0 8px 24px rgba(37,99,235,.32);cursor:pointer;display:grid;place-items:center;transition:transform .18s,background .18s}
#tm-ai-launcher:hover{background:var(--tm-ai-primary-hover);transform:translateY(-2px)}
#tm-ai-launcher svg{width:27px;height:27px}
#tm-ai-panel{position:fixed;right:24px;bottom:96px;width:min(390px,calc(100vw - 28px));height:min(600px,calc(100vh - 125px));min-height:390px;background:#fff;border:1px solid var(--tm-ai-border);border-radius:18px;box-shadow:var(--tm-ai-shadow);overflow:hidden;display:none;flex-direction:column}
#tm-ai-panel.tm-ai-open{display:flex;animation:tm-ai-pop .16s ease-out}
@keyframes tm-ai-pop{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}
.tm-ai-header{display:flex;align-items:center;gap:11px;padding:15px 16px;color:#fff;background:var(--tm-ai-primary)}
.tm-ai-avatar{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border-radius:12px;background:rgba(255,255,255,.17)}
.tm-ai-avatar svg{width:22px;height:22px}
.tm-ai-heading{min-width:0;flex:1}.tm-ai-heading strong{display:block;font-size:15px;font-weight:700;line-height:1.3}.tm-ai-heading span{display:block;font-size:11px;opacity:.88;margin-top:2px}
.tm-ai-head-btn{border:0;background:transparent;color:#fff;width:32px;height:32px;border-radius:8px;cursor:pointer;font-size:22px;line-height:1}.tm-ai-head-btn:hover{background:rgba(255,255,255,.15)}
.tm-ai-messages{flex:1;min-height:0;overflow-y:auto;padding:16px;background:#fff;display:flex;flex-direction:column;gap:13px}
.tm-ai-welcome{padding:7px 1px 2px}.tm-ai-welcome h3{font-size:19px;line-height:1.3;margin:0 0 7px;color:var(--tm-ai-ink)}.tm-ai-welcome p{font-size:13px;line-height:1.55;color:var(--tm-ai-muted);margin:0 0 15px}
.tm-ai-prompts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tm-ai-prompt{text-align:left;border:1px solid var(--tm-ai-border);border-radius:11px;background:#fff;padding:10px;color:var(--tm-ai-ink);cursor:pointer;font-size:12px;line-height:1.35}
.tm-ai-prompt:hover{border-color:#93b4ff;background:#f7faff}.tm-ai-prompt b{display:block;font-size:12px;margin-bottom:3px}.tm-ai-prompt span{color:var(--tm-ai-muted)}
.tm-ai-message{max-width:88%;padding:10px 12px;border-radius:13px;font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.tm-ai-message.tm-ai-user{align-self:flex-end;color:#fff;background:var(--tm-ai-primary);border-bottom-right-radius:4px}
.tm-ai-message.tm-ai-assistant{align-self:flex-start;color:var(--tm-ai-ink);background:#f1f5f9;border-bottom-left-radius:4px}
.tm-ai-message.tm-ai-error{color:#9f1d1d;background:#fef2f2}
.tm-ai-typing{display:flex;align-items:center;gap:4px;width:max-content;padding:12px 14px;border-radius:13px;background:#f1f5f9}
.tm-ai-typing i{width:6px;height:6px;background:#8793a5;border-radius:50%;animation:tm-ai-bounce 1s infinite ease-in-out}
.tm-ai-typing i:nth-child(2){animation-delay:.15s}.tm-ai-typing i:nth-child(3){animation-delay:.3s}
@keyframes tm-ai-bounce{0%,60%,100%{transform:translateY(0);opacity:.55}30%{transform:translateY(-4px);opacity:1}}
.tm-ai-notice{min-height:17px;padding:0 15px 7px;color:var(--tm-ai-muted);font-size:11px;background:#fff}
.tm-ai-compose{padding:10px 12px 12px;border-top:1px solid var(--tm-ai-border);background:#fff}
.tm-ai-compose-inner{display:flex;align-items:flex-end;gap:8px;padding:7px 8px 7px 12px;border:1px solid #d9dee8;border-radius:13px;background:#fff}
.tm-ai-compose-inner:focus-within{border-color:#8aafff;box-shadow:0 0 0 3px rgba(37,99,235,.09)}
#tm-ai-input{flex:1;min-width:0;max-height:110px;min-height:25px;resize:none;border:0;outline:0;padding:3px 0;color:var(--tm-ai-ink);font-size:13px;line-height:1.45;background:transparent}
#tm-ai-input::placeholder{color:#98a2b3}
#tm-ai-send{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border:0;border-radius:9px;color:#fff;background:var(--tm-ai-primary);cursor:pointer}
#tm-ai-send:disabled{opacity:.45;cursor:not-allowed}#tm-ai-send svg{width:17px;height:17px}
.tm-ai-footnote{margin:7px 2px 0;text-align:center;color:#98a2b3;font-size:10px}
@media(max-width:520px){#tm-ai-launcher{right:16px;bottom:16px;width:56px;height:56px}#tm-ai-panel{right:8px;bottom:82px;width:calc(100vw - 16px);height:min(640px,calc(100vh - 100px));min-height:360px;border-radius:16px}}
@media(prefers-reduced-motion:reduce){#tm-ai-root *{animation-duration:.01ms!important;transition-duration:.01ms!important}}
