/* Approved concept 01: mobile browser casting. Desktop/native retain their layout. */
.editorial-mobile-control,.editorial-casting-mobile-label,.editorial-next-mobile,.editorial-step-short,.editorial-mobile-menu-link{display:none}
.editorial-header nav .editorial-mobile-menu-link{display:none}
@media(max-width:600px){
 body.editorial-web .editorial-header{height:60px;min-height:60px}
 body.editorial-web .editorial-flow{scroll-margin-top:60px}
 body.editorial-web .editorial-account .credits-link,
 body.editorial-web .editorial-account .editorial-avatar{display:none}
 body.editorial-web .editorial-header nav{top:60px}
 body.editorial-web .editorial-header nav .editorial-mobile-menu-link{display:block}

 body.editorial-web:has(#panel-model:not([hidden])) .editorial-flow{padding:0 16px 110px}
 body.editorial-web:has(#panel-model:not([hidden])) .flow-main{padding:0;min-height:0}
 body.editorial-web #panel-model .stage-visual{height:auto;min-height:0;background:none;overflow:visible}
 body.editorial-web #panel-model .stage-visual>img,
 body.editorial-web #panel-model .stage-copy{display:none}
 body.editorial-web #panel-model .stage-visual::after{display:none}
 body.editorial-web #panel-model .stage-navigation{display:block;position:static;inset:auto;padding:0;pointer-events:auto}
 body.editorial-web #panel-model .progress-top{display:flex;position:static;inset:auto;min-height:32px;padding:4px 0 0;margin:0;align-items:center}
 body.editorial-web #panel-model .progress-top #progress-title,
 body.editorial-web #panel-model .progress-top .step-track,
 body.editorial-web #panel-model .progress-top #editorial-reset,
 body.editorial-web #panel-model #editorial-top-back>span{display:none}
 body.editorial-web #panel-model #editorial-top-back{min-height:32px;padding:0;gap:0;font-size:12px;color:#aaa}
 body.editorial-web #panel-model .editorial-flow-rail{display:grid;position:static;inset:auto;margin:0 0 12px;background:none;border-top:0;border-bottom:1px solid #343434}
 body.editorial-web #panel-model .editorial-flow-rail>span{padding:10px 2px 9px;gap:4px;font-size:10.5px;letter-spacing:0;text-transform:none;flex-wrap:nowrap;border-top:0;border-bottom:2px solid transparent;white-space:nowrap}
 body.editorial-web .editorial-step-long{display:none}
 body.editorial-web .editorial-step-short{display:inline}
 body.editorial-web #panel-model .editorial-flow-rail>span.is-current{padding-top:10px;border-top:0;border-bottom-color:#f0eee8}
 body.editorial-web #panel-model .editorial-flow-rail small{font-size:9px}
 body.editorial-web #panel-model .atelier-workspace{padding:0}
 body.editorial-web #panel-model .editorial-casting-top{display:grid!important;grid-template-columns:1fr auto 36px;align-items:center!important;gap:8px!important;margin:0 0 4px!important}
 body.editorial-web #panel-model .editorial-casting-top h3{font-size:clamp(24px,6.5vw,32px);line-height:1.1;letter-spacing:-.055em}
 body.editorial-web .editorial-mobile-control{display:inline-flex;align-items:center;justify-content:center;border:0;background:none;color:#eeeae3;padding:0;min-height:44px;font-size:12px;white-space:nowrap}
 body.editorial-web #editorial-mobile-search{width:36px}
 body.editorial-web #panel-model .editorial-cast-search{display:none;grid-column:1/-1;min-height:44px;margin:0;max-width:none;width:100%;box-sizing:border-box}
 body.editorial-web #panel-model.is-search-open .editorial-cast-search{display:flex}
 body.editorial-web #panel-model .editorial-cast-search input{font-size:16px}
 body.editorial-web #panel-model .editorial-casting-tabs{display:flex;gap:24px;margin:0 0 12px;padding:0;border-bottom:1px solid #343434}
 body.editorial-web #panel-model .editorial-casting-tabs .atelier-tab{font-size:14px;min-height:40px;padding:6px 0 8px;flex:none}
 body.editorial-web #panel-model .editorial-casting-tabs>a,
 body.editorial-web .editorial-casting-desktop-label{display:none}
 body.editorial-web .editorial-casting-mobile-label{display:inline}
 body.editorial-web #panel-model .atelier-cast-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;overflow:visible;scroll-snap-type:none;padding:0;min-height:0}
 body.editorial-web #panel-model .atelier-reference,
 body.editorial-web #panel-model .editorial-saved-cast{width:100%;height:auto;aspect-ratio:auto;min-width:0;max-width:none;flex:none;position:relative;padding:0;border-radius:2px;overflow:hidden}
 body.editorial-web #panel-model .atelier-reference img,
 body.editorial-web #panel-model .editorial-saved-cast img{display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;object-position:center 28%;border:0;outline:0;border-radius:0}
 body.editorial-web #panel-model .atelier-reference>span{font-size:11px;left:0;right:0;bottom:0;padding:28px 12px 12px;letter-spacing:.06em;background:linear-gradient(transparent,#080809b8)}
 body.editorial-web #panel-model .atelier-reference.is-selected img{border:0;outline:0}
 body.editorial-web #panel-model .atelier-reference.is-selected:before{top:10px;right:10px;width:24px;height:24px;background:#f0eee8;color:#141414;font-size:14px}
 body.editorial-web #panel-model #model-drop{display:none}
 body.editorial-web #panel-model .editorial-cast-selection:has(#editorial-cast-empty:not([hidden])){display:none}
 body.editorial-web #panel-model .editorial-cast-selection{margin-top:16px}
 body.editorial-web .flow-main:has(#panel-model:not([hidden])) #step-footer{position:fixed;left:0;right:0;bottom:0;z-index:35;display:grid;grid-template-columns:minmax(0,1fr) minmax(118px,42%);gap:12px;align-items:center;margin:0;padding:12px 16px max(12px,env(safe-area-inset-bottom));border-top:1px solid #343434;background:#090a0bf5;box-sizing:border-box}
 body.editorial-web .flow-main:has(#panel-model:not([hidden])) #step-back{display:none}
 body.editorial-web .flow-main:has(#panel-model:not([hidden])) #editorial-footer-cast{display:flex;flex-direction:row-reverse;justify-content:flex-end;min-width:0;gap:8px;font-size:11px}
 body.editorial-web .flow-main:has(#panel-model:not([hidden])) .editorial-footer-count{min-width:0;flex:1 1 0;white-space:normal;line-height:1.3}
 body.editorial-web .flow-main:has(#panel-model:not([hidden])) .editorial-footer-thumbs{padding:0}
 body.editorial-web .flow-main:has(#panel-model:not([hidden])) .editorial-footer-thumbs img{display:none;margin:0;width:28px;height:36px;border:0;border-radius:1px}
 body.editorial-web .flow-main:has(#panel-model:not([hidden])) .editorial-footer-thumbs img:first-child{display:block}
 body.editorial-web .flow-main:has(#panel-model:not([hidden])) .editorial-footer-add{display:none}
 body.editorial-web .flow-main:has(#panel-model:not([hidden])) #step-next{justify-content:center;min-width:0;min-height:48px;padding:10px 12px;gap:0;background:#f0eee8;color:#111;border-color:#f0eee8;border-radius:2px;font-size:15px}
 body.editorial-web .flow-main:has(#panel-model:not([hidden])) #step-next:disabled{background:#202122;border-color:#353637;color:#858585}
 body.editorial-web #panel-model~#step-footer .editorial-next-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 body.editorial-web .editorial-next-mobile{display:inline}
 /* Text-only actions throughout this phone browser workflow. */
 body.editorial-web #step-next::after,
 body.editorial-web .line-arrow,
 body.editorial-web .atelier-tab>span[aria-hidden],
 body.editorial-web .editorial-mood-decoration,
 body.editorial-web .editorial-final-cta-icon{display:none!important;content:none!important}
}
@media(max-width:360px){
 body.editorial-web #panel-model .editorial-casting-top{grid-template-columns:1fr auto;gap:4px!important}
 body.editorial-web #panel-model .editorial-casting-top h3{font-size:26px}
 body.editorial-web #editorial-mobile-search{grid-column:2;grid-row:2;justify-self:end}
 body.editorial-web #editorial-mobile-upload{grid-column:1;grid-row:2;justify-content:flex-start}
}
