/* Native-looking discovery previews. All dimensions follow the moving device. */
.phone-v31{border:.35em solid #22252a;border-radius:2.65em;background:#08090a;box-shadow:0 0 0 .1em #92938b,0 1.4em 3.4em #0005;font-family:var(--ui-font-family)}
.phone-v31:before{top:.48em;width:30%;height:1.15em;background:#060708;border-radius:1em}
.phone-v31 .phone-screen{display:block;background:#090909;border-radius:2.2em}
.phone-v31 .phone-screen:after{bottom:.38em;left:34%;width:32%;height:.18em;opacity:1;background:white;z-index:12}
.phone-v31 .phone-status{position:absolute;top:0;left:0;right:0;height:2.35em;background:#090909;color:white;padding:1em 1.4em 0;z-index:6;align-items:flex-start}
.phone-v31 .phone-status>span:first-child{font-size:.66em;font-weight:600}
.phone-v31 .phone-signals{width:3.4em}.phone-v31 .phone-signals svg{height:1em;stroke-width:1.5}
.phone-v31 .story-screen{position:absolute;inset:0;display:block;background:#080808;color:white}
/* The story begins below the device status bar, including during zoom transitions. */
.phone-v31 .story-canvas{position:absolute;inset:2.35em 0 3.05em;margin:0;border-radius:.35em .35em .6em .6em;background:#5c4c3b}
.phone-v31 .story-photo{object-position:center;filter:none}
.phone-v31 .story-canvas:after{background:linear-gradient(180deg,#0009,transparent 23%,transparent 60%,#0008 100%)}
.phone-v31 .story-progress{top:.15em;left:.6em;right:.6em;gap:.22em}
.phone-v31 .story-progress i{height:.12em;background:#ffffff65}
.phone-v31 .story-progress i:first-child{background:#fff}
.phone-v31 .story-progress i:nth-child(2){background:linear-gradient(90deg,#fff 38%,#ffffff65 38%)}
.phone-v31 .story-user{top:.77em;left:.65em;right:.65em;gap:.45em}
.phone-v31 .story-avatar{display:grid;place-items:center;width:2.1em;height:2.1em;border-radius:50%;background:#f5f1e7;color:#433a30;flex:none;font-size:.76em;font-weight:700}
.phone-v31 .story-identity b{font-size:.73em;font-weight:600;letter-spacing:0;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.phone-v31 .story-identity small{font-size:.62em;line-height:1.4}
.phone-v31 .story-controls{gap:.45em}.phone-v31 .story-controls .phone-icon{width:1.05em;height:1.05em;stroke-width:1.5}
.phone-v31 .story-copy{position:absolute;z-index:2;left:1em;right:.8em;bottom:1.25em;display:flex;align-items:flex-start;flex-direction:column;gap:1em}
.phone-v31 .story-title{position:static;font-size:1.62em;line-height:1.03;font-weight:600;letter-spacing:-.035em;text-shadow:0 .1em .4em #0005}
.phone-v31 .story-shop{position:static;min-height:2.4em;width:max-content;max-width:100%;gap:.4em;padding:.5em .7em;border-radius:.45em;background:#fff;color:#15191f;box-shadow:0 .15em .5em #0002}
.phone-v31 .story-shop span{font-size:.85em;font-weight:650;line-height:1.1;white-space:nowrap}
.phone-v31 .story-shop .phone-icon{width:1.1em;height:1.1em;stroke-width:1.7}
.phone-v31 .story-reply{position:absolute;bottom:.72em;left:.7em;right:.7em;height:1.9em;padding:0;gap:.65em;color:white}
.phone-v31 .story-reply>span{font-size:.65em;border:1px solid #ffffff80;padding:.65em .9em;color:#ffffffdb}
.phone-v31 .story-reply .phone-icon{width:1.25em;height:1.25em;stroke-width:1.5}
/* The physical QR remains registered to its photograph at every device size. */
.phone-v31 .camera-screen{position:absolute;inset:2.35em 0 .8em;background:#090909;color:white;display:flex;flex-direction:column;min-height:0}
.camera-tools{display:flex;align-items:center;justify-content:space-between;padding:.35em 1em .6em;flex:none}
.camera-tools span{font-size:.72em;font-weight:500}.camera-tools .phone-icon{width:1.2em;height:1.2em;stroke-width:1.5}
.camera-view{position:relative;flex:1;min-height:0;overflow:hidden;background:#b7a08a;display:grid;grid-template-rows:minmax(0,1fr);place-items:center}
.camera-photo-scene{position:relative;width:100%;aspect-ratio:3/4;flex:none}
.camera-photo{display:block;width:100%;height:100%;object-fit:cover}
.camera-printed-qr{position:absolute;left:var(--qr-x);top:var(--qr-y);width:var(--qr-w);aspect-ratio:1;transform:translate(-50%,-50%);padding:.14em;background:#fff;border:1px solid #c3b28e;border-radius:.26em;box-shadow:0 .12em .35em #0002}
.camera-printed-qr img{display:block;width:100%;height:100%;object-fit:contain}
.camera-focus{position:absolute;left:var(--qr-x);top:var(--qr-y);width:calc(var(--qr-w) + 4%);aspect-ratio:1;transform:translate(-50%,-50%);color:#f5d777}
.camera-focus i{position:absolute;width:20%;height:20%;border:1.5px solid currentColor}
.camera-focus i:nth-child(1){top:0;left:0;border-right:0;border-bottom:0;border-radius:.2em 0 0 0}
.camera-focus i:nth-child(2){top:0;right:0;border-left:0;border-bottom:0;border-radius:0 .2em 0 0}
.camera-focus i:nth-child(3){bottom:0;left:0;border-top:0;border-right:0;border-radius:0 0 0 .2em}
.camera-focus i:nth-child(4){bottom:0;right:0;border-top:0;border-left:0;border-radius:0 0 .2em 0}
.camera-detected{display:flex;align-items:center;gap:.55em;background:#f5d777;color:#181814;margin:.6em .85em .1em;padding:.55em .65em;border-radius:.65em;flex:none}
.camera-detected>span{flex:1;min-width:0}.camera-detected b{display:block;font-size:.8em;font-weight:600}.camera-detected small{display:block;font-size:.55em;line-height:1.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.camera-detected .phone-icon{width:1.2em;height:1.2em}.camera-detected>.phone-icon:last-child{width:.8em}
.camera-bottom{flex:none;padding:.6em .9em .3em}.camera-modes{display:flex;justify-content:center;gap:1.45em;font-size:.55em;letter-spacing:.025em;margin-bottom:1em}.camera-modes b{color:#ffdc64;font-weight:600}
.camera-shutter-row{display:flex;align-items:center;justify-content:space-between;padding:0 .7em}.camera-shutter{display:block;width:3.5em;height:3.5em;border:2px solid white;border-radius:50%;background:white;box-shadow:inset 0 0 0 .2em #090909}
.camera-thumbnail{width:2.1em;height:2.1em;border-radius:.3em;overflow:hidden}.camera-thumbnail img{width:100%;height:100%;object-fit:cover}.camera-shutter-row>.phone-icon{width:1.8em;height:1.8em;padding:.2em;background:#ffffff20;border-radius:50%;stroke-width:1.5}
/* A compact preview of the existing guided conversation, with the same actions. */
.phone-v31.phone-ai .phone-screen{background:#f7f8fa;font-family:var(--ui-font-family)}
.phone-v31.phone-ai .phone-status{color:#1e293b;background:#f7f8fa}
.phone-v31.phone-ai .phone-screen:after{background:#1e293b}
.phone-v31 .mini-ai{position:absolute;inset:2.35em 0 .85em;gap:.6em;padding:0 .75em .4em;background:#f7f8fa;color:#1e293b}
.phone-v31 .mini-ai-head{gap:.55em;padding:.55em 0 .75em;border-color:#dee3e9}
.phone-v31 .mini-ai-avatar{width:2.05em;height:2.05em;background:#1e293b;color:#ffb581;border-radius:.65em}
.phone-v31 .mini-ai-head>span:nth-child(2){font-size:.82em;font-weight:700}
.phone-v31 .mini-ai-head small{font-size:.64em;color:#7d8793;margin-top:.15em}
.phone-v31 .mini-ai-head>.phone-icon{width:1em;height:1em}
.mini-conversation{display:flex;flex:1;min-height:0;flex-direction:column;gap:.7em}
.phone-v31 .mini-bubble{padding:.75em .85em;font-size:.77em;line-height:1.45;background:#e9edf2;border-radius:.9em .9em .9em .2em;box-shadow:none;margin-right:1em}
.phone-v31 .mini-bubble.user{background:#1e293b;color:white;margin-left:1.4em;margin-right:0;border-radius:.9em .9em .2em .9em}
.phone-v31 .mini-recommend{display:grid;grid-template-rows:minmax(0,1fr) auto;border:1px solid #dce2e8;border-radius:.8em;flex:1;min-height:0;box-shadow:0 .2em .7em #14203308}
.phone-v31 .mini-recommend img{object-fit:contain;background:#f4efe8}
.phone-v31[data-sector="entertainment"] .mini-recommend img{object-fit:cover}
.mini-product-info{padding:.55em .65em}.mini-product-info>small{font-size:.49em;color:#788490;display:block;letter-spacing:.025em;line-height:1.2}
.phone-v31 .mini-recommend p{font-size:.78em;margin:.25em 0 .6em;line-height:1.2;font-weight:600}
.phone-v31 .mini-recommend b{font-size:.72em;line-height:1.2;margin:0;padding:.65em .3em;border-radius:.4em;background:#f87317}
.mini-quick-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.3em;flex:none}
.mini-quick-actions span{font-size:.48em;padding:.5em .7em;border:1px solid #dce2e8;background:white;border-radius:2em;line-height:1;white-space:nowrap}
.phone-v31 .mini-composer{padding:.5em .65em;min-height:2.4em;box-shadow:none}
.phone-v31 .mini-composer span{font-size:.69em}
.discovery-shell .scenario-card .phone-v31{opacity:1;--device-height:min(370px,96cqh);width:calc(var(--device-height)*.49)}
.discovery-shell .scenario-card[data-scenario="social"] .scenario-label>span:first-child{display:flex;align-items:center;gap:.5em}
.discovery-instagram-mark{display:inline-block;width:1.2em;height:1.2em;object-fit:contain}
@media(max-width:850px){.discovery-shell .scenario-card .phone-v31{--device-height:min(350px,94cqh)}}
@media(prefers-reduced-motion:reduce){.discovery-shell .scenario-card .phone-v31{transition:none}}

/* Longer capability names remain readable in the compact scene switcher. */
@media(max-width:850px){.scenario-switcher button{flex:1;min-width:0;padding:7px 5px;font-size:10px;line-height:1.3;white-space:normal}}

/* Short portrait windows scroll the scene instead of collapsing its phone to zero. */
@media(max-width:850px) and (max-height:740px){
 .discovery-shell .scenario-grid{min-height:480px;flex-shrink:0}
 .discovery-shell .scenario-card{min-height:480px}
 .discovery-shell .scenario-visual{min-height:220px}
 .discovery-shell .scenario-card .phone-v31{--device-height:210px}
 .discovery-shell{height:auto;min-height:100svh}
 #exclusive-root .cx-discovery{overflow-y:auto}
}
