/* The real agent and the scroll illustration have independent typing states. */
.chat-demo .chat-typing{visibility:visible;color:#c5d6b7}
.chat-demo .chat-typing[hidden]{display:none}
.chat-demo button,.voice-actions button{min-height:44px}.chat-header button{min-width:44px}.chat-suggestions button{min-height:44px}
.chat-form textarea{font-size:16px}
.chat-demo,.voice-demo{scroll-margin-top:74px}
.mobile-nav{max-height:calc(100dvh - 100px);overflow-y:auto;overscroll-behavior:contain}
@media(max-width:800px), (max-height:600px) and (orientation:landscape){
 .atelier .header nav,.atelier .header .nav-cta{display:none}.atelier .menu-toggle{display:block}
 .story-nav a,.menu-toggle,.scenario-switch button{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
 .atelier #atender .chapter-stage,.atelier #convertir .chapter-stage{height:auto;min-height:0;position:relative;top:auto;display:flex;flex-direction:column;gap:35px;padding-bottom:85px}
 .atelier #atender .chapter-copy,.atelier #convertir .chapter-copy{transform:none!important;opacity:1!important}
 .atelier .chat-demo,.atelier .voice-demo{margin-top:0}
 .atelier .voice-floating-stop{bottom:max(12px,env(safe-area-inset-bottom));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right))}
 .atelier .experience .demo-scroll .demo-panel{top:62px}
 .atelier .chapter-base{pointer-events:none}
 .atelier .contact{min-height:0}
 .atelier .header{padding-left:max(6%,env(safe-area-inset-left));padding-right:max(6%,env(safe-area-inset-right))}
}
/* A short screen cannot pin an entire conversation: all messages remain readable. */
@media(max-height:599px){
 .experience-scroll,.experience .demo-scroll{height:auto!important}
 .atelier .experience-scroll .experience,.atelier .experience .demo-scroll .demo-panel{position:relative;top:0;overflow:visible}
}
@media(max-height:600px) and (orientation:landscape){
 .atelier .cinema-scroll{height:auto}.atelier .cinema-stage{height:600px;min-height:600px;position:relative}
 .atelier .cinema-heading{top:115px;transform:none;opacity:1}.atelier .cinema-heading h1{font-size:clamp(5rem,14vw,8rem)}.atelier .cinema-heading>span{font-size:clamp(2rem,5vw,3rem)}
 .atelier .cinema-side{top:350px;opacity:1;justify-content:center;gap:80px}.atelier .cinema-side>span{max-width:200px}.atelier .cinema-actions{bottom:75px;flex-direction:row;gap:40px}.atelier .cinema-bottom{bottom:20px}
 .atelier .chapter-copy h3{font-size:4rem}.atelier .chapter-copy{width:100%}
 .atelier #fidelizar .chapter-stage{height:calc(100svh - 50px);min-height:0;top:50px}
 .atelier #fidelizar .putt-picture{inset:0 36% 0 0;height:100%;aspect-ratio:auto}
 .atelier #fidelizar .chapter-copy{top:8%;left:65%;right:3%;width:auto;max-width:none}
 .atelier #fidelizar .chapter-copy h3{font-size:clamp(1.8rem,4.7vw,3rem)}
 .atelier #fidelizar .chapter-copy .eyebrow{font-size:.6rem;margin-bottom:8px}
 .atelier #fidelizar .chapter-copy>p:last-child{font-size:.72rem;line-height:1.5;margin-top:10px}
 .atelier #fidelizar .chapter-base{bottom:10px;font-size:.55rem}
 .atelier #fidelizar .chapter-shade{background:linear-gradient(90deg,transparent 45%,#142419 67%)}
 .atelier .method-view,.atelier .faq-portrait{position:relative;min-height:0;max-height:350px}
 .world-dialog .scene-hero{height:650px;min-height:650px}.world-dialog .scene-title{top:90px}.world-dialog .scene-title h2{font-size:2.5rem}
 .world-dialog .close-world{position:sticky;top:12px;float:right;margin:12px 5% 0 0;min-height:44px;z-index:120}
}
@media(max-width:360px){
 .atelier .experience h2,.atelier .team-title h2,.atelier .method-heading h2,.atelier .faq h2,.reels-heading h2{font-size:3rem}
 .scenario-switch{flex-wrap:wrap}.voice-transcript-head{flex-wrap:wrap}.voice-demo .call-top{flex-wrap:wrap;gap:8px}
 .chat-header{padding:14px}.chat-body{padding:14px}.chat-footer{padding:12px 14px}
 .atelier #fidelizar .chapter-copy h3{font-size:3rem}
}
@media(max-width:800px) and (max-height:700px) and (orientation:portrait){
 .atelier #fidelizar .chapter-stage{min-height:0;height:calc(100svh - 50px)}
 .atelier #fidelizar .chapter-copy{top:5%}
 .atelier #fidelizar .chapter-copy h3{font-size:2.7rem}
 .atelier #fidelizar .chapter-copy>p:last-child{margin-top:12px;font-size:.8rem}
 .atelier #fidelizar .putt-picture{bottom:9%}
}
