#photo-editor{padding:28px 0 42px;max-width:1600px;margin:0 auto}#photo-editor[hidden]{display:none!important}.pe-heading{margin:0 0 24px}.pe-heading h1{margin:0 0 9px;font-size:38px;letter-spacing:-1.3px;color:#faf5f9;line-height:1.18}.pe-heading p{margin:0;color:#b8acbc;font-size:14px}.pe-workspace{display:grid;grid-template-columns:minmax(350px,440px) minmax(0,1fr);gap:16px;align-items:stretch}.pe-settings,.pe-preview{min-width:0;border:1px solid #302734;border-radius:12px;background:#161218;padding:22px}.pe-settings{display:flex;flex-direction:column;gap:22px}.pe-settings h2,.pe-preview h2{font-size:16px;font-weight:650;margin:0 0 15px;color:#f6edf6}.pe-upload-section{min-width:0}.pe-dropzone{position:relative;border:1px dashed #6c4a64;border-radius:10px;background:#201822;transition:border-color .18s,background .18s}.pe-dropzone.dragging{border-color:#ed459e;background:#382234}.pe-upload-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;min-height:134px;cursor:pointer;padding:15px;color:#ddc2d5}.pe-upload-empty svg{width:25px;height:25px}.pe-upload-empty strong{font-size:14px}.pe-upload-empty span{font-size:12px;color:#9e8f9f}.pe-dropzone>input{position:absolute;width:1px;height:1px;opacity:0;bottom:0;left:0}.pe-dropzone:focus-within{outline:2px solid #ed79b5;outline-offset:3px}.pe-uploaded{display:flex;align-items:center;gap:12px;padding:12px}.pe-uploaded[hidden],.pe-upload-empty[hidden]{display:none}.pe-uploaded img{width:76px;height:76px;object-fit:cover;border-radius:8px}.pe-uploaded>div{min-width:0;flex:1;display:flex;flex-direction:column;gap:7px}.pe-uploaded strong{font-size:12px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pe-uploaded span,.pe-file-help{font-size:11px;color:#a99bac}.pe-file-help{margin:9px 0 0}.pe-change{cursor:pointer;color:#f080b8;font-size:12px;text-decoration:underline;text-underline-offset:3px}.pe-customize{display:flex;flex-direction:column;gap:13px}.pe-customize h2{margin-bottom:1px}.pe-option-row{border:0;padding:0;margin:0;display:grid;grid-template-columns:80px minmax(0,1fr);align-items:center;min-width:0}.pe-option-row legend{float:left;padding:0;font-size:12px;color:#c8bbce;line-height:36px;width:80px}.pe-pills{display:flex;gap:5px;min-width:0}.pe-pills label{flex:1;min-width:0;position:relative;cursor:pointer}.pe-pills input{position:absolute;opacity:0;width:1px;height:1px}.pe-pills span{display:flex;align-items:center;justify-content:center;min-height:36px;padding:0 7px;font-size:11px;color:#cbbdcc;background:#27212c;border:1px solid #3a303d;border-radius:20px;white-space:nowrap}.pe-pills input:checked+span{background:#ec409c;border-color:#f363ae;color:#fff}.pe-pills input:focus-visible+span{outline:2px solid #f0a6ce;outline-offset:3px}.pe-select-row{display:grid;grid-template-columns:80px minmax(0,1fr);align-items:center;gap:0}.pe-select-row>label{font-size:12px;color:#c8bbce}.pe-select{position:relative;min-width:0}.pe-select select{appearance:none;-webkit-appearance:none;display:block;width:100%;height:40px;background:#241e28;color:#e1d5e3;border:1px solid #443849;border-radius:9px;padding:0 36px 0 13px;font:inherit;font-size:12px}.pe-select svg{width:16px;height:16px;position:absolute;right:13px;top:50%;transform:translateY(-50%);pointer-events:none;color:#c0a8c4}.pe-details{border-top:1px solid #342936;padding-top:18px}.pe-details>label{display:block;font-size:13px;font-weight:600;margin-bottom:10px}.pe-details>label span{font-weight:400;color:#9c8d9f;font-size:12px}.pe-details textarea{box-sizing:border-box;resize:vertical;width:100%;min-height:82px;max-height:240px;background:#241e28;color:#eee6f0;border:1px solid #443849;border-radius:10px;padding:13px;font:inherit;font-size:12px;line-height:1.6}.pe-details textarea::placeholder{color:#95879b}.pe-generate-row{display:flex;align-items:center;gap:12px;border:1px solid #302734;padding:6px;border-radius:10px}.pe-cost{display:flex;gap:8px;align-items:center;padding-left:9px;white-space:nowrap}.pe-cost>svg{width:20px;height:20px;color:#ef81be}.pe-cost strong{font-size:12px}.pe-cost strong span{font-weight:400}.pe-primary{flex:1;display:flex;align-items:center;justify-content:center;gap:9px;min-height:45px;border:1px solid #f35fae;background:#ed409d;color:white;border-radius:8px;font:inherit;font-size:13px;font-weight:600;cursor:pointer}.pe-primary svg{height:18px;width:18px}.pe-primary:hover:not(:disabled){background:#f254a8}.pe-primary:disabled{opacity:.48;cursor:not-allowed}.pe-primary.is-loading svg{animation:pe-rotate 2s linear infinite}.pe-status{font-size:12px;color:#c2adc5;line-height:1.6;margin:0}.pe-status.is-error{color:#f5a2b4}.pe-preview{display:flex;flex-direction:column;min-height:630px}.pe-canvas{flex:1;display:flex;align-items:center;justify-content:center;min-height:500px;min-width:0;padding:0 12px 18px}.pe-canvas>img{display:block;max-width:100%;max-height:650px;object-fit:contain;border-radius:9px;width:auto;height:auto}.pe-canvas>img[hidden]{display:none}.pe-placeholder{text-align:center;color:#a690ac;max-width:320px}.pe-placeholder[hidden]{display:none}.pe-placeholder>svg{height:42px;width:42px;color:#9f6e92;margin-bottom:8px}.pe-placeholder h3{font-size:17px;font-weight:550;color:#d8c9dc;margin:12px 0}.pe-placeholder p{font-size:13px;line-height:1.7;color:#99889e;margin:0}.pe-preview-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:2px}.pe-preview-actions button,.pe-preview-actions a{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #514153;border-radius:9px;background:transparent;padding:11px 17px;color:#e6dce9;font:inherit;font-size:12px;cursor:pointer;text-decoration:none}.pe-preview-actions svg{width:17px;height:17px}.pe-preview-actions button:disabled,.pe-preview-actions a[aria-disabled=true]{opacity:.35;cursor:not-allowed;pointer-events:none}.pe-preview-actions button:hover:not(:disabled),.pe-preview-actions a:hover{border-color:#c77ca9;background:#2a1c28}.pe-spinner{display:inline-block;width:32px;height:32px;border:2px solid #433043;border-top-color:#ef67ac;border-radius:50%;animation:pe-rotate .8s linear infinite}.pe-settings :is(button,select,textarea,a):focus-visible,.pe-preview-actions :is(button,a):focus-visible{outline:2px solid #ef8bc1;outline-offset:3px}.pe-settings input:disabled+span{cursor:wait;opacity:.7}.pe-settings:has(#pe-generate[aria-busy=true]) .pe-change{pointer-events:none;opacity:.5}@keyframes pe-rotate{to{transform:rotate(360deg)}}@media(min-width:1550px){.pe-workspace{grid-template-columns:440px minmax(0,1fr)}.pe-settings{padding:24px;gap:25px}.pe-pills span{font-size:12px;min-height:38px}.pe-canvas{min-height:620px}}@media(max-width:1000px){.pe-workspace{grid-template-columns:minmax(310px,370px) minmax(0,1fr)}.pe-settings,.pe-preview{padding:17px}.pe-option-row{display:block}.pe-option-row legend{float:none;width:auto;line-height:normal;margin-bottom:8px}.pe-canvas{padding-inline:0;min-height:400px}.pe-preview{min-height:0}}@media(max-width:700px){#photo-editor{padding-top:20px}.pe-heading h1{font-size:30px}.pe-workspace{grid-template-columns:1fr}.pe-preview{min-height:410px}.pe-canvas{min-height:300px}.pe-canvas>img{max-height:560px}.pe-option-row{display:grid}.pe-option-row legend{float:left;line-height:36px;width:80px;margin-bottom:0}.pe-settings{gap:20px}}@media(prefers-reduced-motion:reduce){.pe-spinner,.pe-primary.is-loading svg{animation:none}}

body.photo-editor-open main>:is(.home-controls,#gallery,#empty,#pagination){display:none!important}

/* All clothing and pose choices are visible without opening a menu. */
.pe-customize{gap:20px}.pe-choice-group{border:0;padding:0;margin:0;min-width:0}.pe-choice-group legend{font-size:13px;font-weight:550;color:#cbbdce;padding:0;margin-bottom:10px}.pe-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.pe-choice{position:relative;cursor:pointer;min-width:0}.pe-choice input{position:absolute;opacity:0;width:1px;height:1px}.pe-choice-content{display:flex;position:relative;align-items:center;justify-content:center;min-height:46px;padding:8px 5px;box-sizing:border-box;border:1px solid #403245;border-radius:9px;background:#241d29;color:#bfb1c5;font-size:11px;line-height:1.35;text-align:center;transition:background .15s,border-color .15s,color .15s}.pe-choice-content>svg{position:absolute;right:5px;top:5px;width:11px;height:11px;opacity:0;color:#f58cc3}.pe-choice:hover .pe-choice-content{border-color:#98708d;background:#302231;color:#f4e9f4}.pe-choice input:checked+.pe-choice-content{border-color:#e95caa;background:#472039;color:#fff;box-shadow:inset 0 0 0 1px #ed65b222}.pe-choice input:checked+.pe-choice-content>svg{opacity:1}.pe-choice input:focus-visible+.pe-choice-content{outline:2px solid #f0a6ce;outline-offset:3px}.pe-choice input:disabled+.pe-choice-content{opacity:.6;cursor:wait}@media(min-width:1550px){.pe-choice-content{font-size:12px;min-height:48px}}@media(max-width:360px){.pe-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

#pe-option-groups{display:flex;flex-direction:column;gap:20px}.pe-options-retry{align-self:flex-start;margin-top:10px;padding:8px 16px;border:1px solid #78526b;border-radius:8px;background:#302131;color:#efbddb;font:inherit;font-size:12px;cursor:pointer}

/* Mobile editing keeps preview and controls one tap apart. */
.pe-mobile-switch{display:none}
@media(max-width:700px){
#photo-editor{padding:16px 0 calc(104px + env(safe-area-inset-bottom));max-width:100%}
.pe-heading{margin-bottom:16px}.pe-heading h1{font-size:26px;letter-spacing:-.7px}.pe-heading p{font-size:12px;line-height:1.6}
.pe-mobile-switch{display:flex;gap:4px;padding:4px;margin-bottom:14px;border:1px solid #ffffff10;border-radius:12px;background:#171319}
.pe-mobile-switch button{flex:1;border:0;border-radius:8px;min-height:40px;font:inherit;font-size:13px;font-weight:600;background:transparent;color:#a89aaa}
.pe-mobile-switch button[aria-pressed=true]{background:#382333;color:#ffd9ed}
.pe-workspace{display:block}.pe-settings,.pe-preview{padding:16px;border-radius:14px}
.pe-settings{gap:20px}.pe-settings h2,.pe-preview h2{font-size:14px}
#photo-editor[data-mobile-view=edit] .pe-preview{display:none}
#photo-editor[data-mobile-view=preview] .pe-settings>:not(.pe-generate-row):not(.pe-status){display:none}
#photo-editor[data-mobile-view=preview] .pe-settings{padding:0;border:0;background:none;gap:0}
.pe-preview{min-height:0}.pe-canvas{min-height:260px;height:calc(100dvh - 340px);max-height:560px;padding:0 0 14px}
.pe-canvas>img{max-height:100%;max-width:100%;object-fit:contain}
.pe-preview-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.pe-preview-actions button,.pe-preview-actions a{min-height:44px;padding:10px;font-size:12px}
.pe-choice-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.pe-choice-content{min-height:46px;font-size:12px;border-radius:10px}
.pe-choice-group legend{font-size:13px}.pe-upload-empty{min-height:112px}.pe-uploaded img{width:64px;height:72px;object-fit:contain;background:#100e12}
.pe-select select,.pe-details textarea{font-size:16px}.pe-select select{height:44px}.pe-details textarea{min-height:92px}
body.photo-editor-open .pe-generate-row{position:fixed;left:0;right:0;bottom:0;z-index:45;margin:0;border:0;border-top:1px solid #ffffff12;border-radius:0;background:#17131af2;backdrop-filter:blur(18px);padding:12px 16px calc(12px + env(safe-area-inset-bottom));box-shadow:0 -8px 28px #0004;gap:16px}
.pe-primary{min-height:46px;font-size:13px;border-radius:11px}.pe-cost{padding-left:0}.pe-cost strong{font-size:12px}.pe-cost strong span{display:block;font-size:10px;color:#b3a2b4;margin-top:3px}
.pe-status:not([hidden]){padding:10px 0;margin-bottom:12px}
}
