/* A single viewport: a scrollable message list and a non-overlapping composer. */
.immersive,.immersive *{box-sizing:border-box}
.immersive .app-shell{grid-template-rows:88px minmax(0,1fr) 24px}
.immersive .app-footer{min-height:0;padding:0 20px!important;background:none}
#footer-status{display:none}
.immersive .app-footer button{font-size:11px;padding:2px 4px}
.immersive .brand-header{height:88px}
.host-layer.team{left:28%;width:40%;height:64%;bottom:12%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px}
.team-portraits{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;height:75%;max-height:410px}
.team-portraits figure{margin:0;width:46%;height:100%;overflow:hidden;border-radius:110px 110px 24px 24px;border:1px solid #ffffff35;background:#25272a;position:relative}
.team-portraits img{width:100%;height:100%;object-fit:cover;object-position:center 25%;display:block}
.team-portraits .team-secondary img{width:150%;max-width:none;height:135%;object-fit:cover;object-position:60% 32%;position:absolute;left:-32%;top:-10%}
.team .host-name{position:static;transform:none;white-space:normal;text-align:center;gap:5px}
.team .host-name strong{font-size:clamp(21px,2.3vw,32px)}
.team .host-name span{font-size:16px}
.immersive:not([data-screen=welcome]) .team{left:3%;width:46%;height:58%;bottom:18%}
@media(min-width:701px) and (max-width:1100px){.immersive:not([data-screen=welcome]) .team{display:none}}
.immersive .flow{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:0;width:min(580px,100%);flex:none;min-width:0;min-height:0;overflow:hidden;margin:0 0 0 auto;height:100%;padding:12px 18px}
.immersive .flow .paul-mini{min-height:48px;display:flex;padding:0 0 8px 36px;border-bottom:1px solid #ffffff18}
.immersive .flow .dialogue{display:flex;flex-direction:column;justify-content:flex-start;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 0!important;gap:14px;scroll-padding-bottom:12px;overflow-wrap:anywhere}
.immersive .conversation>*{flex-shrink:0}
.immersive .bubble{max-width:94%;width:fit-content;padding:12px 14px;margin:0;border-radius:16px}
.immersive .bubble.user{align-self:flex-end;border-bottom-right-radius:4px}
.immersive .bubble.assistant{align-self:flex-start;border-bottom-left-radius:4px}
.immersive .bubble p{font-size:16px;line-height:1.5;margin:5px 0 0;white-space:pre-wrap}
.immersive .bubble span{font-size:11px}
.chat-invitation{margin:18px 4px;color:#c9cbd0;line-height:1.5}
.immersive .replay-inline{align-self:flex-start;border:0;background:transparent;color:#c9cbd0;font-size:12px;text-decoration:underline;padding:4px}
.immersive .compact-dock,.immersive .flow .voice-dock{display:flex;flex-direction:column;gap:7px;min-height:0;flex:none;margin:0;padding:10px 0 0;border-top:1px solid #ffffff18}
.immersive .welcome .compact-dock{padding:18px;gap:12px;width:min(380px,100%)}
.immersive .compact-dock .composer-mini{display:flex;flex-direction:column;gap:6px;align-items:stretch;margin:0;padding:10px;background:#23262c;border:1px solid #ffffff32;border-radius:18px;min-height:0;overflow:visible}
.immersive .compact-dock .composer-mini textarea{display:block;width:100%;min-width:0;min-height:48px;height:auto;max-height:112px;padding:4px 3px;font:16px/22px Arial,sans-serif;resize:none;overflow-y:auto;color:white;border:0;border-radius:0;outline:none}
.composer-actions{display:flex;align-items:center;gap:8px;width:100%}
.immersive .composer-actions button{border:0;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;min-width:44px;padding:8px;color:white;background:#343840;flex-shrink:0}
.immersive .composer-actions .talk-button{min-width:0;font-size:13px;flex-direction:row}
.immersive .composer-actions .send-button{margin-left:auto;background:var(--brand,#e2001a)}
.immersive .composer-actions svg{width:21px;height:21px}
.immersive .composer-actions .listening{background:var(--brand,#e2001a);box-shadow:0 0 0 3px #e2001a33}
.immersive .speech-state{min-height:0;margin:0;font-size:12px;line-height:1.4;text-align:left}
.immersive .speech-state:empty{display:none}
.immersive .closed-dock{padding-top:10px;margin:0}
.immersive .contact-page{color:#fff}
.contact-page h1{font-size:26px;margin:4px 0}
.contact-page>p{line-height:1.5;font-size:15px}
.contact-page .download-link{flex:none;margin:8px 0}
.contact-page .contact-form{margin-top:8px;padding-bottom:12px}
.contact-page .contact-form textarea{color:#202229;background:#f6f6f6}
.immersive:not([data-screen=welcome]):not(.is-exploring) .atelier-controls{display:none}
@media(max-width:700px){
 .immersive{position:fixed;left:0;right:0;top:var(--viewport-top,0);height:var(--app-height,100dvh);width:100%;overflow:hidden}
 .immersive .app-shell{height:100%;grid-template-rows:64px minmax(0,1fr) 20px}
 .immersive .brand-header{height:64px;min-height:0;padding:4px 12px;gap:8px}
 .header-brand{height:52px;width:125px}.header-brand img{height:60px;width:125px}
 .header-actions{gap:7px}.immersive .restart{width:40px;height:40px}
 #explore-workshop{display:none}
 .immersive main{padding:0 10px;min-height:0;overflow:hidden;display:flex}
 .immersive .welcome{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:0;height:100%;min-height:0;padding:0;overflow:hidden}
 .immersive .welcome-intro{min-height:0;max-height:none;height:100%;overflow-y:auto;margin:0;width:100%;padding:10px 3px 14px;pointer-events:auto}
 .atelier-eyebrow{font-size:10px;letter-spacing:1px}
 .welcome-intro h1{font-size:30px;line-height:1.05;letter-spacing:-1px;margin:7px 0 0}
 .mobile-workshop{height:215px;margin-top:8px;position:relative}
 .mobile-workshop .team{left:12%;top:0;bottom:auto;width:88%;height:100%;max-height:none;gap:9px}
 .team-portraits{height:155px;max-height:none;gap:8px}
 .team-portraits figure{width:40%;border-radius:65px 65px 18px 18px}
 .team .host-name strong{font-size:21px}.team .host-name span{font-size:13px}
 .mobile-workshop .team .host-name{position:static;transform:none}
 .mobile-workshop .atelier-controls{width:42px;bottom:36px;left:0}
 .mobile-workshop .view-buttons button{width:40px;height:36px}
 .reception-choices{display:none}
 .immersive .welcome .compact-dock{position:static;bottom:auto;width:100%;height:auto;min-height:0;max-height:none;margin:0;padding:12px;gap:9px;border-radius:18px;flex:none;background:#15181df7}
 .immersive .welcome-prompt{font-size:18px;line-height:1.25;margin:0;text-align:left}
 .immersive .flow{display:grid;width:100%;height:100%;max-height:100%;min-height:0;margin:0;padding:8px 10px;border-radius:18px;grid-template-rows:auto minmax(0,1fr) auto}
 .immersive .flow .paul-mini{min-height:44px;padding:0 0 7px 32px;gap:9px}
 .immersive .flow .paul-mini img{width:32px;height:32px}
 .immersive .flow .paul-mini .back-control{left:-6px}
 .immersive .flow .dialogue{padding:12px 0!important;gap:12px}
 .immersive .compact-dock .composer-mini{padding:8px;gap:5px;border-radius:15px}
 .immersive .flow .compact-dock{padding-top:8px;gap:6px}
 .immersive .composer-actions{gap:7px}
 .immersive .composer-actions .talk-button{min-width:0}
 .immersive .app-footer{justify-content:flex-end;min-height:0;padding:0 12px!important;gap:0}
 .immersive[data-screen=contact-page] .flow{grid-template-rows:auto minmax(0,1fr)}
 .immersive:not([data-screen=welcome]):not(.is-exploring) .team{display:none}
 .immersive dialog[open]{max-height:calc(var(--app-height,100dvh) - 20px)}
}
@media(max-width:700px) and (max-height:550px){
 .immersive .app-shell{grid-template-rows:52px minmax(0,1fr) 18px}
 .immersive .brand-header{height:52px}.header-brand{height:45px}
 .immersive .flow .paul-mini{min-height:36px;padding-bottom:4px}
 .immersive .compact-dock .composer-mini textarea{max-height:68px;min-height:40px}
 .immersive .composer-actions button{min-height:40px;height:40px;min-width:40px}
}

.voice-feedback{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;min-width:0;margin-top:8px}.voice-feedback [role="status"]{flex:1 1 180px;min-width:0;font-size:.875rem;line-height:1.4;overflow-wrap:anywhere;color:#c7c9ce}.voice-feedback .error{color:#ffafb8}.voice-feedback .replay-inline{flex:0 0 auto}

/* Credit shares the existing footer row without moving the conversation. */
.immersive .app-footer{flex-wrap:nowrap;justify-content:space-between;gap:8px}
.immersive .studio-credit{min-width:0;margin-right:auto;white-space:nowrap;font-size:11px;line-height:1.4;color:#d3d5d9}
.immersive .studio-credit a{color:inherit;font-weight:600;text-decoration:underline;text-underline-offset:2px}
.immersive .studio-credit a:hover{color:#fff}
.immersive .studio-credit a:focus-visible{outline:2px solid #fff;outline-offset:2px;border-radius:2px}
.immersive .app-footer #about{flex-shrink:0}

/* Social links stay inside the scrollable menu body on small screens. */
.immersive .menu-socials{display:flex;justify-content:center;align-items:center;gap:14px;margin-top:16px;padding-top:16px;border-top:1px solid #ddd}
.immersive .menu-socials a{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 44px;border:1px solid #ddd;border-radius:50%;background:#f0f0f0;color:#24262b;text-decoration:none}
.immersive .menu-socials a:hover{color:var(--brand,#e2001a);border-color:var(--brand,#e2001a);background:#fff}
.immersive .menu-socials svg{width:24px;height:24px}

/* Compact feedback occupies the existing waiting row only. */
.immersive .reply-wait{display:flex;align-items:center;gap:10px;max-width:100%;margin:0;padding:12px 14px;border-radius:16px;background:#272b33;color:#e0e2e7;font-size:14px;line-height:1.4}
.reply-wait>span:last-child{min-width:0;overflow-wrap:anywhere}
.wait-dots{display:inline-flex;gap:4px;flex:0 0 auto}
.wait-dots i{width:5px;height:5px;border-radius:50%;background:currentColor;animation:reply-pulse 1.2s ease-in-out infinite}
.wait-dots i:nth-child(2){animation-delay:.15s}.wait-dots i:nth-child(3){animation-delay:.3s}
@keyframes reply-pulse{0%,80%,100%{opacity:.35}40%{opacity:1}}
@media(prefers-reduced-motion:reduce){.wait-dots i{animation:none;opacity:.7}}
