
.mt-assistant{position:fixed;right:clamp(12px,3vw,28px);bottom:clamp(12px,3vw,28px);z-index:99990;font-family:inherit}
.mt-assistant-launch{display:flex;align-items:center;gap:9px;background:#19162d;color:#fff;border:1px solid #6d57d8;border-radius:999px;padding:13px 19px;box-shadow:0 12px 32px #0004;cursor:pointer;font-weight:700;font-size:14px}
.mt-assistant-launch span:first-child{color:#c6b7ff;font-size:19px}
.mt-assistant-panel{position:absolute;bottom:65px;right:0;width:min(390px,calc(100vw - 24px));max-height:min(640px,calc(100dvh - 100px));background:#fff;color:#19172b;border:1px solid #dedce8;border-radius:18px;box-shadow:0 22px 75px #0004;overflow:hidden;display:flex;flex-direction:column}
.mt-assistant-panel[hidden]{display:none}
.mt-assistant-panel header{display:flex;align-items:center;justify-content:space-between;background:#1d1931;color:#fff;padding:17px 18px;gap:10px}
.mt-assistant-panel header strong{display:block;font-size:16px}.mt-assistant-panel header small{display:block;color:#c8c3d7;font-size:11px;margin-top:3px}
.mt-assistant-close{background:transparent;border:0;color:#fff;font-size:26px;cursor:pointer;padding:0 6px}
.mt-assistant-messages{padding:16px;overflow-y:auto;min-height:170px;max-height:340px;overscroll-behavior:contain}
.mt-assistant-bubble{padding:12px 14px;border-radius:13px;margin:0 0 12px;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.mt-assistant-bubble.bot{background:#f2f0fa}.mt-assistant-bubble.user{background:#e4f2e9;margin-left:30px}
.mt-assistant-options{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:15px}
.mt-assistant-options a,.mt-assistant-options button,.mt-assistant-fallback{border:1px solid #bcb0ee;background:#fff;color:#42308a;border-radius:10px;padding:8px 10px;font-size:12px;font-weight:650;text-decoration:none;cursor:pointer;line-height:1.4}
.mt-assistant-options a:hover,.mt-assistant-options button:hover{background:#f0ecff}
.mt-assistant-form{padding:12px 15px 8px;border-top:1px solid #eee}.mt-assistant-form label{display:block;font-size:12px;font-weight:700;margin-bottom:8px}
.mt-assistant-form>div{display:flex;gap:7px}.mt-assistant-form input{width:100%;min-width:0;border:1px solid #c9c6d2;border-radius:9px;padding:10px;font-size:13px;color:#1d1931;background:white}
.mt-assistant-form button{background:#6347ca;color:#fff;border:0;border-radius:9px;padding:10px 13px;font-size:12px;cursor:pointer}
.mt-assistant-note{font-size:10px;line-height:1.5;color:#666;padding:0 15px 12px;margin:0}
.mt-assistant button:focus-visible,.mt-assistant a:focus-visible,.mt-assistant input:focus-visible{outline:3px solid #8b74ef;outline-offset:2px}
@media(max-width:480px){.mt-assistant{right:12px;bottom:12px}.mt-assistant-launch{padding:11px 15px}.mt-assistant-panel{bottom:58px;max-height:calc(100dvh - 88px)}}
@media(prefers-reduced-motion:reduce){.mt-assistant *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* v2.3: force viewport layout independent of the legacy widget CSS */
.mt-assistant.mt-assistant-fullscreen{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;z-index:2147483646!important;transform:none!important}
.mt-assistant.mt-assistant-fullscreen .mt-assistant-panel{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-height:none!important;max-width:none!important;bottom:0!important;right:0!important;border-radius:0!important;margin:0!important;display:flex!important;flex-direction:column!important}
.mt-assistant.mt-assistant-fullscreen .mt-assistant-messages{flex:1 1 auto!important;max-height:none!important;min-height:0!important;overflow-y:auto!important}
.mt-assistant.mt-assistant-open .mt-assistant-launch{visibility:hidden!important;pointer-events:none!important}

/* v3.0 premium AI consultation polish */
.mt-assistant-panel{border-radius:22px;box-shadow:0 28px 90px rgba(24,18,55,.24)}
.mt-assistant-panel header{padding:20px 22px;background:linear-gradient(120deg,#1d1931,#30234f)}
.mt-assistant-panel header strong{font-size:18px;letter-spacing:-.02em}
.mt-assistant-panel header small{font-size:12px}
.mt-assistant-messages{padding:22px!important;background:linear-gradient(180deg,#faf9ff,#fff 48%)}
.mt-assistant-bubble{font-size:14px;line-height:1.72;padding:15px 17px;border-radius:16px;max-width:95%;box-sizing:border-box}
.mt-assistant-bubble.bot{background:#f2effb;border-top-left-radius:5px;color:#25203c}
.mt-assistant-bubble.user{background:#e8f5ed;border-top-right-radius:5px;margin-left:auto;max-width:88%}
.mt-assistant-bubble strong{font-weight:750;color:#27204c}
.mt-ai-list-line{display:inline-block;padding-left:3px}
.mt-assistant-options{gap:9px}
.mt-assistant-options button,.mt-assistant-options a,.mt-ai-suggestions button{transition:background .18s ease,transform .18s ease}
.mt-assistant-options button:hover,.mt-assistant-options a:hover,.mt-ai-suggestions button:hover{transform:translateY(-1px)}
.mt-ai-suggestions{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 20px}
.mt-ai-suggestions button{background:#fff;border:1px solid #c9bff1;color:#4b3296;border-radius:999px;padding:9px 12px;font-size:12px;font-weight:700;cursor:pointer}
.mt-ai-typing{display:flex;align-items:center;gap:5px;width:max-content;background:#f2effb;border-radius:15px;padding:16px 18px;margin:0 0 12px}
.mt-ai-typing span{height:7px;width:7px;border-radius:50%;background:#765bd5;animation:mt-ai-pulse 1.15s infinite ease-in-out}
.mt-ai-typing span:nth-child(2){animation-delay:.15s}.mt-ai-typing span:nth-child(3){animation-delay:.3s}
@keyframes mt-ai-pulse{0%,70%,100%{opacity:.3;transform:translateY(0)}35%{opacity:1;transform:translateY(-4px)}}
.mt-assistant-form{background:#fff;padding:15px 20px 10px;border-top:1px solid #ece9f4}
.mt-assistant-form input{font-size:14px;padding:13px 14px;border-radius:12px}
.mt-assistant-form button{font-size:13px;font-weight:700;padding:12px 18px;border-radius:12px}
.mt-assistant-note{background:#fff;padding:2px 20px 14px;font-size:11px}
.mt-assistant.mt-assistant-fullscreen .mt-assistant-messages{max-width:900px!important}
@media(max-width:640px){.mt-assistant-messages{padding:16px!important}.mt-assistant-form{padding:12px}.mt-assistant-note{padding:2px 12px 10px}.mt-assistant-bubble{font-size:13px}}
@media(prefers-reduced-motion:reduce){.mt-ai-typing span{animation:none}}

/* v3.1: optional, consent-based project handoff */
.mt-assistant .mt-ai-handoff{margin:16px 0;padding:16px;border:1px solid rgba(96,62,160,.2);border-radius:14px;background:#f8f5ff;color:#29213b}
.mt-assistant .mt-ai-handoff strong{display:block;margin-bottom:6px}
.mt-assistant .mt-ai-handoff p{margin:0 0 12px;font-size:13px;line-height:1.5}
.mt-assistant .mt-ai-handoff a{display:inline-flex;text-decoration:none;background:#51329a;color:white;border-radius:9px;padding:10px 12px;font-size:13px;font-weight:650}
.mt-ai-prefill-note{font-size:13px;color:#6542a2;margin:6px 0 8px}
