/* Universal image workspace, opt-in only. Existing controls and render handlers remain intact. */
body.dz-large-workspace{--layout-standard:100%;--dz-source-width:clamp(145px,16%,220px)}
body.dz-large-workspace.layout-standard>main{max-width:none!important;width:100%;padding-inline:clamp(12px,2vw,32px)}
body.dz-large-workspace .dz-large-layout{display:grid!important;grid-template-columns:minmax(0,3fr) minmax(260px,1fr)!important;gap:16px;max-width:none!important;align-items:start}
.dz-large-layout>*{min-width:0}.dz-large-layout>:is(nav,details,.fashion-navigation,.beauty-nav,.photo74-nav){grid-column:1/-1}
.dz-large-workspace .dz-large-pair{display:grid!important;grid-template-columns:var(--dz-source-width) minmax(0,1fr)!important;gap:14px;align-items:start}
.dz-large-pair>*{min-width:0;margin-inline:0}.dz-large-pair> :first-child img{max-height:190px!important;object-fit:contain!important}.dz-large-pair> :first-child :is(button.re-original,button.photo-upload-target,button.fashion-upload-target){min-height:100px!important;height:auto!important;aspect-ratio:4/3!important}
.dz-large-pair> :nth-child(2){min-width:0;max-height:none!important;aspect-ratio:auto!important}
.dz-large-workspace .dz-large-pair :is(.re-preview,.photo36-empty){min-height:500px;aspect-ratio:auto!important;height:clamp(500px,65vh,850px)}
.dz-large-workspace .dz-large-pair :is(canvas,#fashionResult,.hc27-pair img,.m416-pair img){max-width:100%;max-height:78vh!important;height:auto!important;object-fit:contain!important;aspect-ratio:auto!important}
.dz-large-workspace .dz-large-pair> :nth-child(2) img:not([hidden]){max-width:100%;max-height:78vh!important;object-fit:contain!important}
.dz-large-workspace .fashion-preview figure:nth-child(2):has(img[hidden])::before{min-height:500px;aspect-ratio:auto!important}
.dz-large-workspace .dz-large-pair #results{display:grid;grid-template-columns:minmax(0,1fr);min-height:500px}
.dz-large-workspace .dz-large-output{min-height:500px;min-width:0}.dz-large-output img:not([hidden]){max-width:100%;max-height:78vh;object-fit:contain}
.dz-large-workspace .dz-large-pair.dz-equal{grid-template-columns:repeat(2,minmax(0,1fr))!important}.dz-equal> :first-child img{max-height:78vh!important}
.dz-viewbar{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0;align-items:center}.dz-viewbar button{font:inherit;font-size:13px;color:inherit;background:var(--dz-panel,transparent);border:1px solid var(--dz-line,#b9c4d2);border-radius:8px;padding:7px 10px;cursor:pointer}.dz-viewbar button[aria-pressed=true]{outline:2px solid currentColor;outline-offset:-2px}.dz-viewbar button:disabled{opacity:.45;cursor:default}
.dz-view-dialog{width:min(96vw,1500px);max-width:96vw;max-height:95vh;background:var(--dz-panel,#fff);color:var(--dz-text,#142b46);border:1px solid #aab4c0;border-radius:12px;padding:12px}.dz-view-dialog::backdrop{background:#000b}.dz-view-stage{position:relative;display:grid;place-items:center;overflow:auto;height:75vh;background:#18202b}.dz-view-stage img{width:100%;height:100%;object-fit:contain;grid-area:1/1}.dz-view-stage img+img{clip-path:inset(0 0 0 var(--dz-split,50%))}.dz-view-dialog input{width:100%}.dz-view-stage.dz-zoom img{width:150%;height:150%;max-width:none;max-height:none}
body.dz-large-workspace.studio-app .studio-work.studio-two:not(.hide-properties){--inspector-width:clamp(270px,25vw,400px)}body.dz-large-workspace #resultMain{max-height:82vh!important}
@media(max-width:900px){body.dz-large-workspace .dz-large-layout{grid-template-columns:minmax(0,1fr)!important}.dz-large-workspace .dz-large-pair{grid-template-columns:140px minmax(0,1fr)!important}.dz-large-workspace .dz-large-pair :is(.re-preview,.photo36-empty),.dz-large-output{min-height:340px;height:auto}}
@media(max-width:550px){.dz-large-workspace .dz-large-pair,.dz-large-workspace .dz-large-pair.dz-equal{grid-template-columns:minmax(0,1fr)!important}.dz-large-pair> :first-child img{max-height:140px!important}.dz-large-workspace .dz-large-pair :is(.re-preview,.photo36-empty),.dz-large-output{min-height:280px}.dz-view-stage{height:60vh}}
