.view-mode{position:absolute;top:10px;left:50%;transform:translateX(-50%);z-index:4;padding:7px 10px;white-space:nowrap;background:#ffffffdf;font-size:10px;line-height:1.4;letter-spacing:.02em;pointer-events:none}
#upload-own{display:block;width:100%;min-height:40px;margin-top:12px;background:#111;color:#fff;font-size:11px;line-height:1.5;padding:9px 12px;text-transform:uppercase}
#upload-own:hover{background:#303136}
#wardrobe{top:110px}#buy{top:435px}
.look{width:68px;height:77px;padding:8px 10px}.look span{display:block;font-size:9px;margin-top:6px;white-space:nowrap}.look canvas{width:48px;height:48px}
#upload-summary{display:none;left:1105px;top:435px;width:375px;padding:30px 26px;clip-path:polygon(0 8px,265px 8px,275px 0,100% 0,100% calc(100% - 8px),10px calc(100% - 8px),0 100%)}
#upload-summary h2{font-size:13px;font-weight:400;text-transform:uppercase}#upload-summary p{font-size:12px;line-height:1.7;margin-top:14px;color:#55585f}
#upload-summary .action{width:100%;margin-top:14px;min-height:40px;padding:0 8px}#upload-summary .secondary{background:var(--chip);color:#111}
#art.upload-mode #upload-summary{display:block}#art.upload-mode #buy,#art.upload-mode #looks,#art.upload-mode #deg,#art.upload-mode #fit-status{display:none!important}
#art.upload-mode #stage{cursor:default;touch-action:pan-y}
#upload-editor{width:min(1000px,calc(100% - 32px));max-height:94dvh;padding:24px;overscroll-behavior:contain}
#upload-editor .dialog-top{margin-bottom:18px}#upload-editor h2{font-size:15px;text-transform:none}#upload-editor .editor-label{font-size:12px;line-height:1.5}
.editor-body{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px;align-items:start}
.editor-picture{display:flex;justify-content:center;align-items:center;min-width:0;background:#e1e2e5;overflow:hidden}
#editor-preview{display:block;height:min(72dvh,680px);width:auto;max-width:100%;aspect-ratio:9/16;touch-action:none;cursor:grab}
#editor-preview.moving{cursor:grabbing}
.editor-controls{min-width:0}.editor-intro{font-family:Tinos,Georgia,serif;font-size:17px;line-height:1.4;margin-bottom:14px}
.upload-drop{border:1px dashed #aeb1b7;padding:12px;background:#f6f7f8}.upload-drop.over{border:2px solid #111;padding:11px}
#pick-garment{width:100%;min-height:44px;background:#111;color:white;font-size:13px}
#upload-filename{font-size:11px;color:#55585f;line-height:1.5;margin-top:8px;overflow-wrap:anywhere;user-select:text}
#upload-error{color:#a31818;font-size:12px;line-height:1.5;margin-top:8px}#upload-error:empty{display:none}
#upload-message{font-size:11px;line-height:1.6;color:#55585f;margin:12px 0}
#overlay-controls{border:0;min-width:0}#overlay-controls:disabled{opacity:.45}
.editor-field{display:block;margin-top:10px}.editor-field>span{display:flex;justify-content:space-between;align-items:center;font-size:12px;line-height:1.6;gap:10px}.editor-field output{color:#55585f;min-width:38px;text-align:right;font-variant-numeric:tabular-nums}
.editor-field input[type=range]{display:block;width:100%;height:24px;accent-color:#111;cursor:pointer}
.editor-field select{width:100%;min-height:40px;margin-top:5px;border:1px solid #b9bcc2;background:white;padding:8px;font:14px "IBM Plex Mono",monospace;color:#111}
.editor-field.check{display:flex;align-items:center;gap:8px;min-height:32px;font-size:12px}.editor-field.check input{width:18px;height:18px;accent-color:#111}
.editor-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}.editor-buttons button{min-height:42px;padding:6px 8px;background:var(--chip);font-size:11px}.editor-buttons #apply-upload{grid-column:1/-1;background:#111;color:white;font-size:13px;min-height:46px}
.editor-buttons button:disabled{opacity:.4;cursor:not-allowed}
.editor-privacy{font-size:10px;line-height:1.5;color:#55585f;margin-top:12px}
@media(max-width:767px){
  #wardrobe{margin-top:12px}.look{width:68px;height:77px}
  #upload-summary{order:6;padding:28px 24px;margin-bottom:0}#upload-summary .action{height:44px}
  #upload-own{min-height:44px;font-size:12px}
  #upload-editor{width:calc(100% - 16px);max-height:96dvh;padding:16px}#upload-editor .dialog-top{margin-bottom:12px;gap:8px}#upload-editor h2{font-size:13px}
  .editor-body{grid-template-columns:1fr;gap:16px}.editor-picture{width:100%}
  #editor-preview{height:min(58dvh,500px);max-width:100%}
  .editor-intro{font-size:17px}.editor-field>span{font-size:13px}.editor-field input[type=range]{height:36px}.editor-field select{font-size:16px;min-height:44px}
  .editor-field.check{min-height:44px;font-size:13px}.editor-buttons button{min-height:44px}.editor-privacy{font-size:11px}
  .view-mode{font-size:9px;top:8px;max-width:95%;white-space:normal;text-align:center}
}

.wardrobe-item small{display:block;font-size:8px;line-height:1.4;color:#55585f;margin-top:2px}

.editor-controls{max-height:min(72dvh,680px);overflow:auto;padding-right:6px;overscroll-behavior:contain}
.editor-controls>#apply-upload{position:sticky;top:0;z-index:2;display:block;width:100%;min-height:46px;background:#111;color:#fff;font-size:13px;margin-bottom:12px;padding:8px}
.editor-controls>#apply-upload:disabled{opacity:.4;cursor:not-allowed}
@media(max-width:767px){#editor-preview{height:40dvh}.editor-controls{max-height:36dvh;padding-right:4px}.editor-body{gap:12px}}

#show360{display:block;width:100%;min-height:40px;margin-top:12px;border:1px solid #111;background:#fff;font-size:11px;padding:8px}
#show360:hover{background:#eceef1}
#buy,#upload-summary{top:480px}
#auto-fit{display:block;width:100%;min-height:44px;background:#eceef1;border:1px solid #111;font-size:12px;margin:8px 0;padding:8px}
@media(max-width:767px){#show360{min-height:44px;font-size:12px}}
