.assistant-demo { padding-block:clamp(2rem,4vw,3.5rem) 0; color:#16394e; scroll-margin-top:6rem; }
.assistant-office { position:absolute; height:100%; aspect-ratio:16/9; left:50%; transform:translateX(-50%); container-type:inline-size; }
.assistant-office > img { display:block; width:100%; height:100%; }
.assistant-history { position:absolute; left:20.05%; top:27.4%; width:50.15%; height:42.95%; }
.assistant-draft { position:absolute; right:34.15%; top:71.85%; width:39.6%; height:3.2%; display:none; align-items:center; padding-inline:.6cqw; overflow:hidden; white-space:nowrap; background:#f8f8ff; color:#374157; font-size:.91cqw; }
.assistant-demo.is-playing .assistant-draft:not(:empty) { display:flex; }
.assistant-step p { margin:0; }
@media (min-width:651px) {
    /* Uncover each photographed bubble in place. The final frame is the original product image. */
    .assistant-history { display:grid; grid-template-rows:18% 33% 15% 34%; }
    .assistant-step { position:relative; }
    .assistant-step p { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
    .assistant-demo.is-playing .assistant-step::after { content:""; position:absolute; inset:0; background:#f1f5fd; transition:opacity .32s ease; }
    .assistant-demo.is-playing .assistant-step.is-shown::after { opacity:0; }
}
@media (max-width:650px) {
    .assistant-demo .product-monitor-stage { aspect-ratio:1.18; }
    .assistant-history { display:flex; flex-direction:column; gap:.22rem; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; padding:.2rem; background:#f1f5fd; color:#293850; font-size:clamp(.72rem,2.7vw,.87rem); line-height:1.55; }
    .assistant-step p { width:fit-content; max-width:96%; padding:.2rem .35rem; border-radius:.32rem; }
    .assistant-question p { margin-inline-end:auto; background:#d8eeea; }
    .assistant-answer p { margin-inline-start:auto; background:#fff; border:1px solid #dde3ee; }
    .assistant-answer small { display:block; color:#414875; font-size:.9em; }
    .assistant-demo.is-playing .assistant-step:not(.is-shown) { display:none; }
    .assistant-draft { font-size:.63rem; }
}
@media (prefers-reduced-motion:reduce) {
    .assistant-demo.is-playing .assistant-step::after { transition:none; }
}
