/* Editing uses the screen; marketing/case-study widths remain unchanged. */
html body.wx-unified{--wx-workspace-width:1680px;--wx-workspace-gutter:clamp(16px,2.5vw,48px)}
html body.wx-unified :is(#pageProductImage,#pagePhotoEdit,#pagePhotoID,#pagePhotoRestore,#pageBeauty) > div:first-child,
html body.wx-unified :is(.poster-shell,.overlay-workspace,.studio-main){width:100%;max-width:var(--wx-workspace-width)!important;box-sizing:border-box;margin-inline:auto;padding-inline:var(--wx-workspace-gutter)!important}
html body.wx-unified .poster-hero{margin-bottom:24px;padding-bottom:24px}
html body.wx-unified .poster-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:24px!important;align-items:start}
html body.wx-unified #pageProductImage .tool-panel-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;overflow:visible}
html body.wx-unified #pageProductImage .tool-panel-left{max-width:none;width:auto;overflow:visible}
html body.wx-unified #pageProductImage .tool-panel-right{width:auto;max-width:none}
html body.wx-unified .wx-priority-prompt{margin-top:0!important;margin-bottom:16px!important}
html body.wx-unified .wx-priority-prompt .wx-rich-editor{min-height:112px;max-height:180px}
html body.wx-unified .wx-priority-prompt .wx-rich-editor:focus-within{min-height:200px;max-height:50dvh}
html body.wx-unified .wx-primary-upload .pr-upload-area{padding:16px;min-height:110px}
html body.wx-unified .wx-primary-upload .pr-upload-area>img{max-height:200px;object-fit:contain}
html body.wx-unified .wx-priority-submit{width:100%;margin:0 0 16px}
html body.wx-unified .wx-layout-options{border:1px solid var(--wx-ui-line);border-radius:10px;margin:16px 0 0;background:#fff;min-width:0}
html body.wx-unified .wx-layout-options>summary{padding:14px 16px;min-height:48px;box-sizing:border-box;cursor:pointer;font-size:14px;font-weight:600;line-height:1.5;list-style-position:inside;overflow-wrap:anywhere}
html body.wx-unified .wx-layout-options>summary:hover{background:var(--wx-ui-soft);border-radius:10px}
html body.wx-unified .wx-layout-options[open]>summary{border-bottom:1px solid var(--wx-ui-line)}
html body.wx-unified .wx-layout-options-body{padding:16px;min-width:0}
html body.wx-unified .wx-layout-options-body>.wx-reference-panel{margin:0;border:0;padding:0;background:transparent;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
html body.wx-unified .wx-layout-options-body>.pt-step:last-child{border-bottom:0}
html body.wx-unified .poster-controls .pt-mode-switch{margin-bottom:16px}
html body.wx-unified .poster-controls>.pt-step{padding:12px 0;margin:0}
html body.wx-unified .poster-stage{position:static}
html body.wx-unified #pageRawImg .ap-font{max-width:var(--wx-workspace-width)!important;width:100%;box-sizing:border-box;padding-inline:var(--wx-workspace-gutter)!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
html body.wx-unified #pageRawImg .wx-template-raw-header{margin-bottom:16px!important}
html body.wx-unified[data-site-page=tryon]>main{max-width:var(--wx-workspace-width)!important;padding-inline:var(--wx-workspace-gutter);box-sizing:border-box}
html body.wx-unified[data-site-page=tryon] main>.layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
html body.wx-unified[data-site-page=tryon] .cost-note{margin-bottom:20px}
html body.wx-unified .overlay-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}
/* Upload and mode options can share a row in tools with no free-form prompt. */
@media(min-width:1000px){
 html body.wx-unified :is(#photoRestoreContent,#beautyContent,#photoIDContent){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}
 html body.wx-unified :is(#photoRestoreContent,#beautyContent,#photoIDContent)>:not(.pr-section){grid-column:1/-1}
}
@media(max-width:999px){
 html body.wx-unified :is(.poster-grid,.overlay-layout),html body.wx-unified #pageProductImage .tool-panel-layout,
 html body.wx-unified[data-site-page=tryon] main>.layout{grid-template-columns:minmax(0,1fr)!important}
 html body.wx-unified #pageRawImg .ap-font{display:flex!important;flex-direction:column;gap:20px}
 html body.wx-unified #pageRawImg .ap-font>.ap-card:not(#rawImgResult){order:1}
 html body.wx-unified #pageRawImg .ap-font>#rawImgResult{order:2}
 html body.wx-unified #pageRawImg .ap-font>.vorta-cases{order:3}
 html body.wx-unified .wx-layout-options-body{padding:12px}
 html body.wx-unified .wx-layout-options-body>.wx-reference-panel{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:600px){
 html body.wx-unified .poster-controls{padding:16px!important}
 html body.wx-unified :is(.poster-shell,.overlay-workspace,.studio-main){padding-inline:16px!important}
 html body.wx-unified .wx-priority-prompt .wx-rich-editor{min-height:104px}
 html body.wx-unified .wx-layout-options>summary{font-size:14px;padding:12px}
}

@media(max-width:600px){html body.wx-unified .poster-shell{padding-top:16px!important}html body.wx-unified .poster-hero{padding-top:0;padding-bottom:16px;margin-bottom:16px}html body.wx-unified .poster-hero .wx-module-toolbar{margin-top:12px;margin-bottom:0}}
/* Spacious product workspace: one page scroll, clear material and writing surfaces. */
html body.wx-unified #pageProductImage>div:first-child{max-width:1480px!important}
html body.wx-unified #pageProductImage .wx-product-workspace{grid-template-columns:minmax(340px, .85fr) minmax(0,1.25fr);grid-template-rows:minmax(320px,auto) auto;gap:28px;align-items:start;height:auto}
html body.wx-unified #pageProductImage .wx-product-workspace>.tool-panel-left{grid-column:1;grid-row:1/3;padding:24px;overflow:visible;max-height:none;scrollbar-gutter:auto;border:0;background:var(--wx-ui-soft);border-radius:16px}
html body.wx-unified #pageProductImage .wx-product-workspace>.tool-panel-right{grid-column:2;grid-row:1;padding:24px;min-height:320px;overflow:visible;border-radius:16px;align-self:stretch}
html body.wx-unified #pageProductImage .wx-product-composer{grid-column:2;grid-row:2;min-width:0;padding:24px;border:1px solid var(--wx-ui-line);border-radius:16px;background:#fff;box-shadow:none;display:grid;grid-template-columns:1fr 1fr;gap:16px;align-self:start}
html body.wx-unified #pageProductImage .wx-product-composer>.wx-priority-prompt{display:contents}
html body.wx-unified #pageProductImage .wx-product-composer .tool-input-label,html body.wx-unified #pageProductImage .wx-product-composer .wx-rich-wrap{grid-column:1/-1}
html body.wx-unified #pageProductImage .wx-product-composer .tool-input-label{font-size:16px;line-height:1.5;margin:0}
html body.wx-unified #pageProductImage .wx-product-composer .wx-rich-editor{min-height:144px;max-height:240px;padding:16px;font-size:16px;line-height:1.7}
html body.wx-unified #pageProductImage .wx-product-composer .wx-rich-editor:focus-within{min-height:180px;max-height:340px}
html body.wx-unified #pageProductImage .wx-product-composer .wx-rich-tools{margin:8px 0 0}
html body.wx-unified #pageProductImage .wx-product-composer .wx-prompt-tools{margin:0}
html body.wx-unified #pageProductImage .wx-product-composer .wx-prompt-tools button{background:#fff!important;color:var(--wx-ui-text,#171717)!important;box-shadow:none!important;border:1px solid var(--wx-ui-line)!important;min-height:48px;padding:12px 20px}
html body.wx-unified #pageProductImage .wx-product-composer #piSubmitBtn{margin:0!important;min-height:48px;padding:12px 20px;align-self:end;font-size:14px}
html body.wx-unified #pageProductImage .tool-input-group{margin-bottom:24px}
html body.wx-unified #pageProductImage #piUploadArea{min-height:144px!important;padding:20px!important;background:#fff}
html body.wx-unified #pageProductImage #piUploadPreview{max-height:220px!important;object-fit:contain}
html body.wx-unified #pageProductImage #piTemplatePicker{padding:24px 0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none}
html body.wx-unified #pageProductImage .pi-template-heading h3{font-size:17px}
html body.wx-unified #pageProductImage .pi-template-strip{gap:12px;margin:16px 0}
html body.wx-unified #pageProductImage .pi-template-strip img{height:144px!important;object-fit:contain;object-position:top;background:white}
html body.wx-unified #pageProductImage .pi-template-primary{background:white!important;color:#171717!important;border:1px solid var(--wx-ui-line)!important;box-shadow:none!important;min-height:48px}
html body.wx-unified #pageProductImage .wx-layout-options{margin-top:16px;background:transparent;border-width:1px 0 0;border-radius:0}
html body.wx-unified #pageProductImage .wx-layout-options>summary{padding:20px 0;min-height:60px;font-size:14px}
html body.wx-unified #pageProductImage .wx-layout-options-body{padding:0 0 20px}
html body.wx-unified #pageProductImage #piEmptyState{padding:56px 24px!important}
html body.wx-unified #pageProductImage #piResult img{max-height:520px;object-fit:contain}
@media(max-width:999px){
 html body.wx-unified #pageProductImage .wx-product-workspace{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto;gap:24px}
 html body.wx-unified #pageProductImage .wx-product-workspace>.tool-panel-left{grid-column:1;grid-row:1}
 html body.wx-unified #pageProductImage .wx-product-composer{grid-column:1;grid-row:2}
 html body.wx-unified #pageProductImage .wx-product-workspace>.tool-panel-right{grid-column:1;grid-row:3;min-height:280px}
}
@media(max-width:600px){
 html body.wx-unified #pageProductImage .wx-product-workspace>.tool-panel-left,html body.wx-unified #pageProductImage .wx-product-workspace>.tool-panel-right,html body.wx-unified #pageProductImage .wx-product-composer{padding:20px}
 html body.wx-unified #pageProductImage .pi-template-strip img{height:110px!important}
 html body.wx-unified #pageProductImage .wx-product-composer{gap:12px}
 html body.wx-unified #pageProductImage .wx-product-composer .wx-prompt-tools button,html body.wx-unified #pageProductImage .wx-product-composer #piSubmitBtn{width:100%;padding:12px 8px;font-size:13px}
}
@media(min-width:1000px){
 html body.wx-unified #pageProductImage .wx-product-workspace{grid-template-rows:auto auto}
 html body.wx-unified #pageProductImage .wx-product-composer{grid-row:1}
 html body.wx-unified #pageProductImage .wx-product-workspace>.tool-panel-right{grid-row:2}
 html body.wx-unified #pageProductImage .wx-module-toolbar{display:inline-flex;margin:0 0 0 16px;vertical-align:middle}
}
