#mario-ai{font:14px/1.5 system-ui,sans-serif;position:fixed;right:24px;bottom:20px;z-index:10010;color:#17253c;text-align:left}#mario-ai *{box-sizing:border-box}#mario-ai button,#mario-ai textarea{font:inherit}#mario-ai button{cursor:pointer}#mario-ai [hidden]{display:none!important}#mario-ai .mario-launcher{display:flex;gap:12px;align-items:center;background:#fff;border:1px solid #d9e3f3;border-radius:24px;padding:10px 18px 10px 8px;box-shadow:0 8px 35px #081c3c30;color:#122640;min-height:70px;position:relative}.mario-character{width:70px;height:85px;display:block;position:relative;margin-top:-25px;overflow:visible}.mario-character img{width:90px;height:110px;object-fit:contain;position:absolute;bottom:-8px;left:-10px;transform-origin:50% 95%;animation:mario-greet 6s ease-in-out infinite}.mario-label strong{display:block;font-size:17px;letter-spacing:-.3px}.mario-label span{font-size:12px;color:#60718b}.mario-online{width:8px;height:8px;border-radius:50%;background:#24ad82;margin-left:4px;box-shadow:0 0 0 4px #e5f8f1}#mario-panel{width:390px;height:min(660px,calc(100dvh - 44px));display:flex;flex-direction:column;background:#fff;border:1px solid #d9e3f3;border-radius:22px;box-shadow:0 20px 65px #07173545;overflow:hidden}#mario-panel header{display:flex;align-items:center;gap:12px;padding:18px;background:#102a51;color:white;margin:0}#mario-panel header strong{font-size:20px}#mario-panel header p{margin:0;font-size:12px;color:#c9d9ed}.mario-head-avatar{width:48px;height:48px;border-radius:50%;background:#e7effb;overflow:hidden}.mario-head-avatar img{width:60px;height:73px;object-fit:contain;margin-left:-6px;transform-origin:50% 95%;animation:mario-breathe 4s ease-in-out infinite}#mario-ai .mario-close{margin-left:auto;border:0;color:#fff;background:transparent;font-size:27px;width:40px;height:40px}.mario-notice{font-size:11px;color:#63738a;background:#f2f6fb;padding:10px 18px}.mario-messages{overflow:auto;overscroll-behavior:contain;flex:1;min-height:120px;padding:20px 16px;background:#f9fbff}.mario-message{max-width:92%;padding:12px 14px;margin-bottom:12px;border-radius:16px;background:#eaf0f9;border:1px solid #e0e8f3;overflow-wrap:anywhere}.mario-message p{margin:0;white-space:pre-wrap}.mario-message a{display:block;margin-top:10px;color:#1d59b0;text-decoration:underline;font-size:12px}.mario-user{margin-left:auto;background:#275ee7;border-color:#275ee7;color:white}.mario-waiting{color:#647691;animation:mario-pulse 1.4s infinite}.mario-suggestions{display:flex;gap:6px;flex-wrap:wrap;padding:10px 16px;background:white}#mario-ai .mario-suggestions button{font-size:11px;background:#f3f7ff;border:1px solid #d2dff2;border-radius:14px;padding:7px 9px;color:#204980}#mario-ai .mario-form{display:flex;gap:8px;padding:12px 16px;border-top:1px solid #e4ebf5;margin:0}#mario-ai textarea{width:100%;min-height:44px;max-height:110px;resize:vertical;border:1px solid #d2dff2;border-radius:12px;background:#fff;color:#17253c;padding:10px;line-height:1.5;margin:0}#mario-ai .mario-form button{border:0;border-radius:12px;background:#275ee7;color:#fff;font-size:24px;width:46px;flex-shrink:0}#mario-ai button:disabled{opacity:.5;cursor:wait}#mario-panel footer{display:flex;justify-content:space-between;gap:12px;padding:0 18px 14px;font-size:11px;color:#63738a;margin:0}#mario-panel footer a{color:#2d5796}#mario-ai .mario-reset{border:0;background:none;color:#63738a;padding:0;font-size:11px}#mario-ai :focus-visible{outline:3px solid #25a3c2;outline-offset:3px}.mario-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}#mario-ai.is-open .mario-launcher{display:none}#mario-ai.is-thinking .mario-head-avatar img{animation:mario-thinking .6s ease-in-out infinite}.whatsapp-float{bottom:130px!important;right:24px!important;max-width:220px}@keyframes mario-greet{0%,65%,100%{transform:rotate(0) translateY(0)}70%{transform:rotate(-4deg) translateY(-3px)}77%{transform:rotate(4deg) translateY(-5px)}84%{transform:rotate(-3deg) translateY(-3px)}91%{transform:rotate(2deg) translateY(-2px)}}@keyframes mario-breathe{50%{transform:translateY(-2px) scale(1.02)}}@keyframes mario-thinking{50%{transform:rotate(2deg) translateY(-2px)}}@keyframes mario-pulse{50%{opacity:.55}}@media(max-width:600px){#mario-ai{right:12px;bottom:12px}#mario-panel{width:min(390px,calc(100vw - 24px));height:min(650px,calc(100dvh - 24px))}#mario-ai .mario-launcher{padding-right:14px}.mario-character{width:57px}.mario-label strong{font-size:15px}.whatsapp-float{bottom:117px!important;right:12px!important;font-size:11px!important;max-width:170px}}@media(prefers-reduced-motion:reduce){#mario-ai *{animation:none!important;scroll-behavior:auto!important}}
/* Mario expression stage */
#mario-panel{height:min(750px,calc(100dvh - 44px))}.mario-stage{display:flex;align-items:center;justify-content:center;gap:16px;flex-shrink:0;height:126px;padding:8px 20px 0;background:linear-gradient(120deg,#e8f1ff,#f3f8ff);border-bottom:1px solid #dce7f7;overflow:hidden}.mario-face-wrap{position:relative;width:122px;height:122px;flex-shrink:0}.mario-face{width:122px;height:122px;object-fit:contain;transform-origin:50% 90%;animation:mario-breathe 4s ease-in-out infinite}.mario-stage strong{display:block;color:#102a51;font-size:18px}.mario-expression-label{display:block;max-width:180px;font-size:12px;color:#496488;margin-top:4px}.mario-idea-glow{position:absolute;top:0;right:0;font-size:24px;opacity:0;transform:scale(.5)}.mario-thinking-dots{display:none;gap:4px;margin-top:12px}.mario-thinking-dots i{width:5px;height:5px;border-radius:50%;background:#5084d5;animation:mario-dot 1.2s infinite}.mario-thinking-dots i:nth-child(2){animation-delay:.2s}.mario-thinking-dots i:nth-child(3){animation-delay:.4s}#mario-ai[data-expression=thinking] .mario-face{animation:mario-thought 3s ease-in-out infinite}#mario-ai[data-expression=thinking] .mario-thinking-dots{display:flex}#mario-ai[data-expression=hello] .mario-face,#mario-ai[data-expression=goodbye] .mario-face{animation:mario-wave 1.8s ease-in-out infinite}#mario-ai[data-expression=idea] .mario-face{animation:mario-idea-nod 2.8s ease-in-out infinite}#mario-ai[data-expression=idea] .mario-idea-glow{opacity:1;transform:scale(1);animation:mario-bulb 2s ease-in-out infinite}#mario-ai[data-expression=smile] .mario-face{animation:mario-smile 3s ease-in-out infinite}#mario-ai[data-expression=concern] .mario-face{animation:mario-listen 4s ease-in-out infinite}#mario-ai[data-expression=explaining] .mario-face{animation:mario-explain 2s ease-in-out infinite}.mario-head-avatar img{width:48px;height:48px;margin:0;object-fit:cover}.mario-character img{width:88px;height:88px;bottom:-4px}.whatsapp-float{z-index:1000!important}body:has(#mario-ai.is-open) .whatsapp-float{visibility:hidden}#mario-ai .mario-stage img{max-width:none}@keyframes mario-thought{0%,100%{transform:rotate(0)}35%{transform:rotate(-3deg) translateY(-2px)}70%{transform:rotate(2deg)}}@keyframes mario-wave{0%,100%{transform:rotate(0)}25%{transform:rotate(-3deg)}75%{transform:rotate(3deg) translateY(-2px)}}@keyframes mario-idea-nod{0%,100%{transform:translateY(0)}25%{transform:translateY(-4px) scale(1.025)}45%{transform:translateY(1px)}}@keyframes mario-smile{50%{transform:translateY(-2px) scale(1.025)}}@keyframes mario-listen{50%{transform:rotate(-2deg)}}@keyframes mario-explain{30%{transform:rotate(1.5deg)}70%{transform:translateY(-2px) rotate(-1deg)}}@keyframes mario-dot{50%{opacity:.3;transform:translateY(-3px)}}@keyframes mario-bulb{50%{filter:drop-shadow(0 0 9px #efc334);transform:scale(1.12)}}@media(max-width:600px){#mario-panel{height:min(750px,calc(100dvh - 24px))}.mario-stage{height:116px}.mario-face-wrap,.mario-face{width:112px;height:112px}.mario-expression-label{max-width:150px}}@media(max-height:620px){.mario-stage{height:78px}.mario-face-wrap,.mario-face{width:80px;height:80px}.mario-notice{font-size:10px;padding:6px 14px}}@media(prefers-reduced-motion:reduce){#mario-ai .mario-face,#mario-ai .mario-thinking-dots i,#mario-ai .mario-idea-glow{animation:none!important}}
/* Premium transitions and language onboarding */
#mario-ai .mario-face-wrap{isolation:isolate}.mario-face,.mario-face-transition{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.mario-face-transition{opacity:0;pointer-events:none;transform-origin:50% 90%}#mario-ai .mario-face.is-entering{animation:mario-face-enter .62s cubic-bezier(.22,.68,.22,1.05) both!important}#mario-ai .mario-face-transition.is-leaving{animation:mario-face-leave .62s cubic-bezier(.22,.68,.22,1.05) both}.mario-stage{position:relative;background:radial-gradient(ellipse at 28% 95%,#b4d3ff75,transparent 65%),linear-gradient(120deg,#e7f1ff,#f9fcff)}.mario-stage:after{content:'';position:absolute;bottom:0;left:24px;right:24px;height:1px;background:linear-gradient(90deg,transparent,#81acdf50,transparent)}#mario-panel{animation:mario-panel-enter .38s cubic-bezier(.2,.8,.2,1);border-color:#b8cce7}#mario-panel header{background:linear-gradient(115deg,#102a51,#1b3f6d)}.mario-message{animation:mario-message-enter .32s ease-out}.mario-language-picker{padding:18px 4px}.mario-language-picker>p{font-size:15px;line-height:1.7;font-weight:600;color:#163454;margin:0 0 12px}.mario-language-picker .mario-language-english{font-size:13px;font-weight:400;color:#617591}.mario-language-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:24px}#mario-ai .mario-language-options button{display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid #c1d3ec;border-radius:14px;color:#193d6d;background:linear-gradient(#fff,#edf4ff);padding:15px 9px;box-shadow:0 4px 12px #1745700a;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;font-weight:600}#mario-ai .mario-language-options button:hover{transform:translateY(-2px);border-color:#417ce0;box-shadow:0 8px 20px #17457018}.mario-language-options img{width:22px;height:16px;border-radius:2px;object-fit:cover}.mario-language-options button span:last-child{font-size:15px;color:#527cae}.mario-stage .mario-expression-label{transition:color .3s ease}#mario-ai[data-expression=idea] .mario-stage{background:radial-gradient(ellipse at 25% 60%,#fff2b780,transparent 65%),linear-gradient(120deg,#eff5ff,#fff)}#mario-ai[data-expression=reassuring] .mario-face{animation:mario-listen 4s ease-in-out infinite}#mario-ai[data-expression=excited] .mario-face,#mario-ai[data-expression=celebrate] .mario-face{animation:mario-idea-nod 2.8s ease-in-out infinite}#mario-ai[data-expression=listening] .mario-face,#mario-ai[data-expression=curious] .mario-face{animation:mario-listen 5s ease-in-out infinite}#mario-ai[data-expression=apology] .mario-face,#mario-ai[data-expression=focused] .mario-face{animation:mario-breathe 4s ease-in-out infinite}#mario-ai .mario-launcher{transition:transform .25s ease,box-shadow .25s ease}#mario-ai .mario-launcher:hover{transform:translateY(-3px);box-shadow:0 14px 40px #081c3c35}#mario-ai .mario-form button{transition:background .2s ease,transform .2s ease}#mario-ai .mario-form button:hover:enabled{background:#174ebf;transform:translateY(-1px)}@keyframes mario-face-enter{from{opacity:0;transform:translateY(4px) scale(.96) rotate(-1.5deg)}to{opacity:1;transform:translateY(0) scale(1) rotate(0)}}@keyframes mario-face-leave{from{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-3px) scale(1.02) rotate(1deg)}}@keyframes mario-panel-enter{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes mario-message-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){#mario-ai .mario-face.is-entering,#mario-ai .mario-face-transition.is-leaving,#mario-ai .mario-message,#mario-panel{animation:none!important}#mario-ai .mario-face{opacity:1!important}#mario-ai .mario-face-transition{opacity:0!important}#mario-ai *{transition:none!important}}
.mario-answer-origin{display:block;font-size:10px;color:#647b99;border-top:1px solid #d5e1f1;margin-top:10px;padding-top:7px;letter-spacing:.1px}
#mario-ai .mario-inline-citation{display:inline;margin:0;font-size:inherit}

/* Larger Mario portrait and a roomier conversation on desktop. */
@media(min-width:601px){#mario-panel{width:460px}.mario-stage{height:180px}.mario-face-wrap{width:176px;height:176px}#mario-ai .mario-character{width:100px;height:100px}#mario-ai .mario-character img{width:124px;height:124px;left:-12px;bottom:-5px}.mario-label strong{font-size:19px}}
@media(max-width:600px){.mario-stage{height:152px}.mario-face-wrap{width:148px;height:148px}#mario-ai .mario-character{width:78px;height:82px}#mario-ai .mario-character img{width:105px;height:105px;left:-12px}.whatsapp-float{bottom:125px!important}.mario-stage{gap:10px;padding-inline:12px}.mario-stage strong{font-size:18px}}
@media(max-height:660px){.mario-stage{height:96px}.mario-face-wrap{width:92px;height:92px}}

#mario-ai .mario-voice-toggle{margin-left:auto;border:1px solid #ffffff45;background:#ffffff12;color:white;border-radius:10px;width:36px;height:36px;padding:0;font-size:17px;flex-shrink:0}#mario-ai .mario-voice-toggle+.mario-close{margin-left:0}.mario-onboarding-note{display:block;margin-top:16px;font-size:11px;line-height:1.5;color:#617591}#mario-ai .mario-language-options img{width:34px;height:24px;flex-shrink:0}#mario-ai.is-speaking .mario-stage{background:radial-gradient(ellipse at 28% 70%,#c6ddff,transparent 65%),linear-gradient(120deg,#edf5ff,#fff)}
