/* A stable, viewport-sized demonstration with room for the current action. */
#tour-guide.collection-walkthrough{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;height:min(850px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);overflow:hidden}
#tour-guide.collection-walkthrough .walkthrough-header{padding:8px 16px;gap:12px}
#tour-guide.collection-walkthrough .walkthrough-header .demo-voice{flex:1;display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:12px;border:0;padding:0;margin:0;letter-spacing:0;font-weight:400;min-width:0}
#tour-guide.collection-walkthrough .demo-voice-heading{min-width:0;gap:8px}
#tour-guide.collection-walkthrough .demo-voice-heading strong{font-size:12px}
#tour-guide.collection-walkthrough #demo-pip-avatar,#tour-guide.collection-walkthrough #demo-pip-avatar svg{width:36px;height:36px}
#tour-guide.collection-walkthrough .demo-voice-actions{margin:0;flex-wrap:nowrap;gap:6px}
#tour-guide.collection-walkthrough .demo-voice-actions button{font-size:11px;padding:7px 10px;white-space:nowrap}
#tour-guide.collection-walkthrough .walkthrough-chapters{padding:4px 16px 8px}
#tour-guide.collection-walkthrough .walkthrough-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px 20px;gap:24px;align-items:stretch}
#tour-guide.collection-walkthrough .walkthrough-copy{min-height:0;padding:0;overflow:auto;overscroll-behavior:contain}
#tour-guide.collection-walkthrough #tour-step,#tour-guide.collection-walkthrough .walkthrough-safety{display:none}
#tour-guide.collection-walkthrough #tour-title{font-size:28px;line-height:1.15;max-width:none;letter-spacing:-.6px}
#tour-guide.collection-walkthrough #tour-description{font-size:14px;line-height:1.5;margin:14px 0 0;max-width:none}
#tour-guide.collection-walkthrough .demo-demonstration{margin-top:14px;padding:12px}
#tour-guide.collection-walkthrough .walkthrough-visual{position:relative;top:auto;display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-height:0;align-self:stretch;padding:12px}
#tour-guide.collection-walkthrough #demo-visual-note{display:none}
#tour-guide.collection-walkthrough .walkthrough-gallery,#tour-guide.collection-walkthrough .walkthrough-gallery:not(.is-pack){height:100%;min-height:0;max-height:100%}
#tour-guide.collection-walkthrough .walkthrough-gallery .walkthrough-photo-group{min-height:0;height:100%}
#tour-guide.collection-walkthrough .walkthrough-gallery figure,#tour-guide.collection-walkthrough .walkthrough-gallery figure:first-child{min-height:0;max-height:100%}
#tour-guide.collection-walkthrough .walkthrough-gallery canvas,#tour-guide.collection-walkthrough .walkthrough-gallery figure:first-child canvas{max-height:100%;max-width:100%;width:auto;height:auto;object-fit:contain}
#tour-guide.collection-walkthrough .walkthrough-gallery.is-pack .walkthrough-photo-group{grid-template-rows:auto repeat(3,minmax(0,1fr));height:100%}
#tour-guide.collection-walkthrough .walkthrough-gallery.is-pack figure{height:100%;max-height:100%}
#tour-guide.collection-walkthrough .demo-inspect{min-height:0;max-height:100%;height:100%}
#tour-guide.collection-walkthrough .walkthrough-footer{position:relative;bottom:auto;padding:10px 16px;flex-wrap:nowrap}
#tour-guide.collection-walkthrough #demo-ready-actions{margin-top:12px}
#tour-guide.collection-walkthrough .is-outro-focus{outline:2px solid #ad8b4c;outline-offset:3px}
#tour-guide.collection-walkthrough #demo-install-card{padding:10px 12px}
#tour-guide.collection-walkthrough #demo-install-card p{margin-bottom:8px}
/* Phone scenes show the setting Pip is using, alongside the large live result. */
@media(max-width:760px){
 #tour-guide.collection-walkthrough{width:calc(100vw - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px)}
 #tour-guide.collection-walkthrough .walkthrough-header{padding:5px 8px;gap:5px}
 #tour-guide.collection-walkthrough .walkthrough-header .demo-voice{gap:5px}
 #tour-guide.collection-walkthrough .demo-voice-heading{gap:5px}
 #tour-guide.collection-walkthrough .demo-voice-heading strong{font-size:11px}
 #tour-guide.collection-walkthrough #demo-voice-status{font-size:10px;max-width:100px;line-height:1.2}
 #tour-guide.collection-walkthrough #demo-pip-avatar,#tour-guide.collection-walkthrough #demo-pip-avatar svg{width:28px;height:28px}
 #tour-guide.collection-walkthrough .demo-voice-actions{gap:4px}
 #tour-guide.collection-walkthrough .demo-voice-actions button{font-size:10px;padding:5px 7px}
 #tour-guide.collection-walkthrough .walkthrough-header #tour-exit{font-size:10px;padding:5px;gap:3px}
 #tour-guide.collection-walkthrough .walkthrough-chapters{padding:2px 8px 6px;gap:6px}
 #tour-guide.collection-walkthrough .walkthrough-body{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(150px,1fr) auto auto;gap:10px;padding:8px 10px;overflow:auto}
 #tour-guide.collection-walkthrough .walkthrough-copy{display:contents}
 #tour-guide.collection-walkthrough #tour-title{grid-row:1;font-size:23px;line-height:1.15}
 #tour-guide.collection-walkthrough .walkthrough-visual{grid-row:2;order:0;position:relative;top:auto;min-height:0;padding:8px;box-shadow:none;z-index:auto}
 #tour-guide.collection-walkthrough #demo-scene-label{display:none}
 #tour-guide.collection-walkthrough .walkthrough-visual-bar{margin-bottom:6px;min-height:0}
 #tour-guide.collection-walkthrough #demo-action{font-size:12px;line-height:1.35}
 body[data-studio-layout=phone] #tour-guide.collection-walkthrough .walkthrough-gallery,body[data-studio-layout=phone] #tour-guide.collection-walkthrough .walkthrough-gallery.is-pack{height:100%;min-height:0}
 body[data-studio-layout=phone] #tour-guide.collection-walkthrough .demo-phone-controls{margin-top:6px;gap:5px}
 #tour-guide.collection-walkthrough #demo-phone-version{min-height:36px}
 #tour-guide.collection-walkthrough #demo-phone-count{margin-bottom:0}
 #tour-guide.collection-walkthrough .demo-demonstration{grid-row:3;margin:0;padding:8px}
 #tour-guide.collection-walkthrough #demo-tool-location{font-size:11px;margin-bottom:4px}
 #tour-guide.collection-walkthrough #demo-demonstration-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 #tour-guide.collection-walkthrough .demo-demonstration-field:not(.is-active){display:none}
 #tour-guide.collection-walkthrough .demo-demonstration-field{padding:5px;gap:3px}
 #tour-guide.collection-walkthrough .demo-demonstration-field.is-active:only-child,#tour-guide.collection-walkthrough[data-scene=details] .demo-demonstration-field,#tour-guide.collection-walkthrough[data-scene=finish] .demo-demonstration-field{grid-column:1/-1}
 #tour-guide.collection-walkthrough .demo-demonstration-field output{min-height:32px;padding:5px 7px;font-size:13px;line-height:1.35}
 #tour-guide.collection-walkthrough .demo-demonstration-field output i{width:18px;height:18px}
 #tour-guide.collection-walkthrough .demo-slider-field{padding:5px;gap:3px}
 #tour-guide.collection-walkthrough .demo-slider-field output{padding:0;min-height:0}
 #tour-guide.collection-walkthrough #tour-description{grid-row:4;margin:0;font-size:13px;line-height:1.45}
 #tour-guide.collection-walkthrough:has(#demo-demonstration:not([hidden])) #tour-description{display:none}
 #tour-guide.collection-walkthrough[data-scene=export] #tour-description{display:none}
 #tour-guide.collection-walkthrough #demo-export-status{grid-row:3;margin:0;font-size:11px;line-height:1.4}
 #tour-guide.collection-walkthrough #demo-ready-actions{grid-row:4;display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0}
 #tour-guide.collection-walkthrough #demo-download,#tour-guide.collection-walkthrough #demo-use-photos{padding:8px;font-size:12px;min-height:44px;margin:0}
 #tour-guide.collection-walkthrough #demo-quality-note{display:none}
 #tour-guide.collection-walkthrough #demo-install-card{display:grid;grid-template-columns:1fr auto;gap:2px 10px;margin:0;padding:8px;align-items:center}
 #tour-guide.collection-walkthrough #demo-install-card strong{font-size:12px;line-height:1.3}
 #tour-guide.collection-walkthrough #demo-install-card p{grid-column:1;line-height:1.35;font-size:11px;margin:0}
 #tour-guide.collection-walkthrough #demo-install-app{grid-column:2;grid-row:1/3;font-size:12px;width:auto;max-width:140px;padding:8px;gap:5px}
 #tour-guide.collection-walkthrough .walkthrough-footer{padding:6px 8px;gap:5px}
 #tour-guide.collection-walkthrough .walkthrough-footer button{min-height:44px;padding:7px 9px}
 #tour-guide.collection-walkthrough .walkthrough-navigation{gap:5px}
}
/* Compact laptop windows and phone landscape still retain usable controls. */
@media(min-width:761px) and (max-height:700px){
 #tour-guide.collection-walkthrough{width:calc(100vw - 24px)}
 #tour-guide.collection-walkthrough .walkthrough-body{padding:8px 14px;gap:18px}
 #tour-guide.collection-walkthrough #tour-title{font-size:23px}
 #tour-guide.collection-walkthrough #tour-description{font-size:12px;margin-top:8px}
 #tour-guide.collection-walkthrough .demo-demonstration-field:not(.is-active){display:none}
 #tour-guide.collection-walkthrough .demo-demonstration{padding:8px;margin-top:8px}
 #tour-guide.collection-walkthrough .demo-demonstration-field{padding:4px}
 #tour-guide.collection-walkthrough .demo-demonstration-field output{min-height:30px;padding:4px 6px}
 #tour-guide.collection-walkthrough #demo-tool-location{margin-bottom:5px}
 #tour-guide.collection-walkthrough #demo-ready-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:6px}
 #tour-guide.collection-walkthrough #demo-download,#tour-guide.collection-walkthrough #demo-use-photos{margin:0;padding:6px 8px;font-size:11px}
 #tour-guide.collection-walkthrough #demo-quality-note{display:none}
 #tour-guide.collection-walkthrough #demo-install-card{margin:0;padding:6px 8px}
 #tour-guide.collection-walkthrough #demo-install-card p{margin:2px 0}
 #tour-guide.collection-walkthrough #demo-export-status{margin:6px 0;font-size:11px}
}
@media(prefers-reduced-motion:reduce){#tour-guide.collection-walkthrough .is-outro-focus{transition:none}}
@media(max-width:760px){
 #tour-guide.collection-walkthrough .demo-voice-heading{flex:none}
 #tour-guide.collection-walkthrough .demo-voice-heading strong{display:none}
 #tour-guide.collection-walkthrough #demo-voice-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 #tour-guide.collection-walkthrough .demo-voice-actions{flex:none}
 #tour-guide.collection-walkthrough[data-scene=export] .demo-phone-controls{display:none}
}
@media(max-width:370px) and (max-height:650px){
 #tour-guide.collection-walkthrough .walkthrough-body{gap:6px;padding:6px 8px}
 #tour-guide.collection-walkthrough #tour-title{font-size:20px}
 #tour-guide.collection-walkthrough #demo-tool-location{display:none}
 #tour-guide.collection-walkthrough .demo-demonstration{padding:6px}
 #tour-guide.collection-walkthrough #demo-action{font-size:11px}
 #tour-guide.collection-walkthrough #demo-install-card p{display:none}
 #tour-guide.collection-walkthrough #demo-install-app{grid-row:1;max-width:150px}
}
@media(min-width:761px) and (max-height:450px){
 #tour-guide.collection-walkthrough{grid-template-rows:auto minmax(0,1fr) auto}
 #tour-guide.collection-walkthrough .walkthrough-chapters{display:none}
 #tour-guide.collection-walkthrough #demo-scene-label{display:none}
 #tour-guide.collection-walkthrough:has(#demo-demonstration:not([hidden])) #tour-description,#tour-guide.collection-walkthrough[data-scene=export] #tour-description{display:none}
 #tour-guide.collection-walkthrough #demo-install-card{display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px}
 #tour-guide.collection-walkthrough #demo-install-card p{display:none}
 #tour-guide.collection-walkthrough #demo-install-app{width:auto;padding:6px;font-size:11px}
}

#tour-guide.collection-walkthrough[data-scene=savedlooks] .demo-demonstration-field{grid-column:1/-1}
@media(min-width:761px) and (max-width:1050px) and (min-height:451px){
 #tour-guide.collection-walkthrough .walkthrough-chapters{display:flex;overflow-x:auto;gap:6px;scrollbar-width:thin}
 #tour-guide.collection-walkthrough .walkthrough-chapters button{flex:0 0 auto;min-width:94px;padding:8px;white-space:nowrap}
}

@media(min-width:761px) and (max-height:450px){
 body[data-studio-layout=phone] #tour-guide.collection-walkthrough .demo-phone-controls{display:none}
 body[data-studio-layout=phone] #tour-guide.collection-walkthrough .walkthrough-gallery,body[data-studio-layout=phone] #tour-guide.collection-walkthrough .walkthrough-gallery.is-pack{height:100%;max-height:100%}
 #tour-guide.collection-walkthrough[data-scene=savedlooks] .demo-phone-controls{display:none}
 body[data-studio-layout=phone] #tour-guide.collection-walkthrough[data-scene=savedlooks] .walkthrough-gallery{height:100%;max-height:100%}
}

/* Use the existing status space while Pip explains draft recovery. */
#tour-guide.collection-walkthrough:is([data-demo-cue="export:autosave"],[data-demo-cue="export:goodbye"]) #tour-description{display:block;grid-row:3;margin:8px 0;padding:10px 12px;border-radius:8px;background:#f1eee3;color:#203e33;font-size:14px;line-height:1.5}
#tour-guide.collection-walkthrough:is([data-demo-cue="export:autosave"],[data-demo-cue="export:goodbye"]) #demo-export-status{display:none}
@media(max-width:760px){#tour-guide.collection-walkthrough:is([data-demo-cue="export:autosave"],[data-demo-cue="export:goodbye"]) #tour-description{margin:0;padding:7px 9px;font-size:12px;line-height:1.4}}

@media(min-width:761px) and (max-height:450px){
 #tour-guide.collection-walkthrough[data-scene=export] .demo-phone-controls{display:none}
 body[data-studio-layout=phone] #tour-guide.collection-walkthrough[data-scene=export] .walkthrough-gallery{height:100%;max-height:100%}
 #tour-guide.collection-walkthrough:is([data-demo-cue="export:autosave"],[data-demo-cue="export:goodbye"]) #tour-description{font-size:12px;line-height:1.4;padding:6px 8px;margin:4px 0}
}
