@import url('/shared/studio.css');
@import url('/shared/fitting.css');
#ml-panel { --ml-ink:#24251f;--ml-soft:#f6f5f1;--ml-line:#dedfd6;--ml-dim:#616457;--ml-rust:#ac3c24; color-scheme:light;box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(760px,calc(100vw - 40px));height:min(810px,calc(100dvh - 54px));max-width:none;max-height:none;padding:0;border:1px solid #d8d8ce;background:#fffefb;color:var(--ml-ink);border-radius:18px;box-shadow:0 28px 120px #22241c40;font:400 15px/1.45 -apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,sans-serif;text-shadow:none;text-align:left;letter-spacing:normal;overflow:hidden;user-select:text;cursor:auto;z-index:10000}
#ml-panel::backdrop{background:rgba(29,30,24,.41);backdrop-filter:blur(5px)}
#ml-panel:not([open]){display:none}#ml-panel *{box-sizing:border-box}
#ml-panel button,#ml-panel input,#ml-panel select,#ml-panel textarea{font-family:inherit;letter-spacing:inherit;cursor:auto}
#ml-panel button{cursor:pointer}#ml-panel button:disabled{cursor:default;opacity:.62}
#ml-panel :focus-visible{outline:2px solid #ad462b;outline-offset:2px}
#ml-panel button,#ml-panel a{touch-action:manipulation}
#ml-panel .ml-frame{height:100%;display:flex;flex-direction:column}
.ml-header{padding:18px 26px;display:flex;align-items:center;gap:15px;border-bottom:1px solid var(--ml-line)}
.ml-header>span,.ml-kicker{font:600 10px/1.35 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.13em;color:var(--ml-dim)}
.ml-wordmark{font:bold 24px/.9 Arial,sans-serif;letter-spacing:-2.2px}.ml-wordmark span{font-weight:400}.ml-wordmark i{color:var(--ml-rust);font-style:normal}
#ml-panel .ml-close{display:grid;place-items:center;margin-left:auto;width:38px;height:38px;border-radius:50%;background:var(--ml-soft);color:var(--ml-ink);border:1px solid var(--ml-line)}
.ml-tabs{display:flex;gap:4px;flex:none;padding:9px 22px;border-bottom:1px solid var(--ml-line)}
#ml-panel .ml-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 14px;min-height:40px;border:0;border-radius:7px;background:none;color:var(--ml-dim);font-size:14px}
#ml-panel .ml-tabs [aria-current=page]{background:var(--ml-ink);color:white}
.ml-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
#ml-panel .ml-content{max-width:100%;display:block;padding:28px 32px 38px;color:var(--ml-ink);background:transparent;min-height:0;position:static}
.ml-intro{margin:0 0 20px}.ml-kicker{display:flex;align-items:center;gap:7px}.ml-kicker i{width:6px;height:6px;border-radius:50%;background:#bf4a2c}
#ml-panel .ml-intro h2{font:500 clamp(29px,4vw,41px)/1.05 Arial,sans-serif;letter-spacing:-.055em;margin:10px 0 9px}
#ml-panel .ml-intro p,#ml-panel .ml-empty p,#ml-panel .ml-notice p,#ml-panel .ml-result p{color:var(--ml-dim);margin:0;line-height:1.5;max-width:58ch;font-size:14px}
#ml-panel h3{font:550 21px/1.18 Arial,sans-serif;letter-spacing:-.035em;margin:0 0 9px}
.ml-empty{background:var(--ml-soft);border:1px dashed #c7c9bb;border-radius:12px;text-align:center;display:grid;justify-items:center;align-content:center;padding:34px 22px;margin-top:24px}
.ml-empty-icon{height:55px;width:55px;display:grid;place-items:center;background:#e7e8df;color:#555d48;border-radius:50%;margin-bottom:16px}
.ml-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:16px}
#ml-panel .ml-btn,#ml-panel .ml-filters button,#ml-panel .ml-suggestions button{display:inline-flex;justify-content:center;align-items:center;gap:7px;text-align:center;border:1px solid #d4d5ca;border-radius:7px;background:#fffefb;color:var(--ml-ink);font-size:13px;font-weight:550;min-height:40px;padding:8px 13px}
#ml-panel .ml-btn:hover,#ml-panel .ml-filters button:hover,#ml-panel .ml-suggestions button:hover{border-color:#969a8a}
#ml-panel .ml-primary,#ml-panel .ml-filters [aria-pressed=true]{background:#292c23;color:white;border-color:#292c23}
#ml-panel .ml-back{background:none;border:0;color:var(--ml-dim);font-size:13px;padding:0 0 15px}
.ml-listhead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:15px 0 12px}.ml-listhead small{font-size:14px;color:var(--ml-dim)}
.ml-filters,.ml-suggestions{display:flex;flex-wrap:wrap;gap:6px}
#ml-panel .ml-filters button,#ml-panel .ml-suggestions button{border-radius:999px;font-size:12px;min-height:32px;font-weight:450}
.ml-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:15px;margin:20px 0 0}
#ml-panel .ml-item{color:var(--ml-ink);background:none;border:0;text-align:left;padding:0;min-width:0}.ml-item-img{display:grid;place-items:center;background:#efefe8;height:156px;border-radius:10px;overflow:hidden}.ml-item-img img,.ml-preview img,.ml-piece img{width:100%;height:100%;object-fit:contain;display:block}
.ml-item>span,.ml-piece small{display:block;margin:7px 0 2px;color:var(--ml-dim);font-size:11px}
.ml-item strong,.ml-piece b{display:block;font-size:14px;font-weight:550;overflow-wrap:anywhere}
#ml-panel label:not(.ml-sr){display:block;color:var(--ml-ink);font-size:13px;font-weight:550}
#ml-panel :is(input:not([type=file]):not([type=checkbox]):not([type=range]),select,textarea){display:block;color:var(--ml-ink);background:#fff;border:1px solid #cdd0c3;border-radius:6px;min-height:41px;padding:9px 11px;font-size:15px;line-height:1.3;min-width:0;width:100%;margin:5px 0 0}
#ml-panel textarea{resize:vertical;max-height:180px}#ml-panel .ml-check{display:flex;align-items:center;gap:7px;margin:12px 0;font-weight:450}#ml-panel input[type=checkbox]{accent-color:#33382a;width:16px;height:16px}
.ml-formcols{display:grid;grid-template-columns:1fr 1.25fr;gap:16px;margin:15px 0}.ml-formcols.ml-even{grid-template-columns:1fr 1fr}.ml-fields{display:grid;gap:10px}
#ml-panel .ml-upload{display:grid;justify-items:center;align-content:center;gap:9px;min-width:0;min-height:168px;background:var(--ml-soft);border:1px dashed #bfc1b6;border-radius:9px;padding:12px}
#ml-panel .ml-photo-choices{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
#ml-panel .ml-photo-choices label{position:relative;display:grid;place-items:center;padding:6px 12px;min-height:44px;border:1px solid var(--ml-line);border-radius:7px;background:#fff;text-align:center;overflow:hidden}
#ml-panel .ml-photo-choices .ml-camera-choice{background:#30372c;border-color:#30372c;color:white}
#ml-panel .ml-photo-choices input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
#ml-panel .ml-photo-choices label:focus-within{outline:2px solid #9b412a;outline-offset:2px}
@media (hover:hover) and (pointer:fine){#ml-panel .ml-photo-choices .ml-camera-choice{display:none}}
@media(max-width:620px){
  #ml-item-form>.ml-formcols{grid-template-columns:1fr}
  #ml-panel .ml-upload{grid-template-columns:minmax(52px,1fr) minmax(150px,1.6fr);align-items:center;min-height:120px}
  #ml-panel .ml-upload .ml-preview{height:92px}
  #ml-panel .ml-photo-choices{display:grid;grid-auto-flow:row;justify-content:stretch;justify-self:stretch}
  #ml-panel .ml-fields{grid-template-columns:1fr 1fr}
  #ml-panel .ml-fields :is(input:not([type=file]):not([type=checkbox]):not([type=range]),select){font-size:16px}
}
.ml-preview{height:100px;display:grid;place-items:center;max-width:100%}
.ml-suggestions{margin:9px 0 16px}
.ml-weather,.ml-result,.ml-notice{border:1px solid var(--ml-line);background:var(--ml-soft);border-radius:10px;padding:15px;margin:14px 0}
.ml-weather summary{display:flex;align-items:center;gap:11px;cursor:pointer;list-style:none}.ml-weather summary::-webkit-details-marker{display:none}.ml-weather summary b,.ml-weather summary small{display:block}.ml-weather summary small,.ml-weather-body small{font-size:12px;color:var(--ml-dim)}.ml-weather summary i{margin-left:auto}.ml-weather[open] summary i{transform:rotate(180deg)}
.ml-weather-body{border-top:1px solid var(--ml-line);padding-top:12px;margin-top:12px}.ml-weather-body>form{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap}.ml-weather-body>form>label:first-child{flex:1;min-width:120px}.ml-weather-body>form:last-child{margin-top:14px}.ml-weather-body p,.ml-weather-body a{font-size:13px;color:var(--ml-dim)}.ml-weather-body a{text-decoration:underline}.ml-cities:not(:empty){display:flex;flex-wrap:wrap;gap:5px;margin:8px 0}
.ml-demo-note{padding:10px 12px;background:#f8eedd;color:#594a32;font-size:13px;border-radius:6px;margin:14px 0}.ml-demo-note button{font:inherit;text-decoration:underline;color:inherit;background:none;border:none}
.ml-result{background:white;scroll-margin:18px}.ml-result h3{margin:8px 0 14px!important}.ml-result ul{padding:0 0 0 18px;margin:12px 0 0;color:var(--ml-dim);font-size:13px}.ml-pieces{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.ml-piece{min-width:0;display:flex;align-items:center;gap:10px;background:var(--ml-soft);padding:6px;border-radius:6px}.ml-piece>div{width:48px;height:50px;flex-shrink:0;display:grid;place-items:center}.ml-piece small{margin:0 0 2px}
.ml-tag{font-size:12px;color:var(--ml-dim);padding:5px 8px}
.ml-message{position:absolute;bottom:15px;left:50%;transform:translateX(-50%);max-width:calc(100% - 24px);width:max-content;z-index:5;pointer-events:none}.ml-message.on{background:#282b22;color:#fff;border-radius:7px;padding:9px 14px;font-size:13px;box-shadow:0 4px 16px #1111}
.ml-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#ml-panel #ml-form-msg{color:var(--ml-rust);font-size:13px;margin-top:10px}
@media(max-width:620px){#ml-panel{width:100%;height:100dvh;max-height:100%;border:0;border-radius:0}.ml-header{padding:12px 15px;padding-top:max(12px,env(safe-area-inset-top))}.ml-tabs{padding:7px 8px;justify-content:space-evenly;gap:2px}#ml-panel .ml-tabs button{padding:7px 8px;gap:5px;font-size:12px}#ml-panel .ml-content{padding:22px 15px max(28px,env(safe-area-inset-bottom))}.ml-formcols{grid-template-columns: minmax(95px,.85fr) minmax(0,1.2fr);gap:9px}.ml-pieces{grid-template-columns:1fr}.ml-weather-body>form:last-child .ml-check{margin-bottom:9px}.ml-empty{padding:24px 13px}.ml-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ml-header>span{font-size:8px}.ml-message{bottom:max(15px,env(safe-area-inset-bottom))}}
@media(max-width:350px){#ml-panel .ml-tabs button{padding:7px 4px;gap:3px}.ml-tabs button svg{width:14px}}
.ml-preview{min-width:0;min-height:0;overflow:hidden;width:100%;grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr)}
.ml-result h3,.ml-demo-note,.ml-weather summary b{overflow-wrap:anywhere}
#ml-panel .ml-outfit-options{margin:16px 0;padding:12px 14px;background:var(--ml-soft);border:1px solid var(--ml-line);border-radius:8px}
#ml-panel .ml-outfit-options summary{font-size:13px;font-weight:550;cursor:pointer}
#ml-panel .ml-outfit-options[open] summary{margin-bottom:9px}
#ml-panel .ml-fields{align-content:center}
#ml-transfer {box-sizing:border-box;width:min(450px,calc(100% - 24px));max-height:88dvh;overflow:auto;overscroll-behavior:contain;margin:auto;border:1px solid #dcdccf;border-radius:22px;padding:20px;color:#293226;background:#fafaf3;box-shadow:0 14px 80px #20281849}
#ml-transfer::backdrop {background:#272b2373;backdrop-filter:blur(5px)}
#ml-transfer header,#ml-transfer .ml-transfer-actions {display:flex;align-items:center;gap:12px}
#ml-transfer header {justify-content:space-between;margin-bottom:9px}
#ml-transfer h2 {margin:0;font-size:24px;line-height:1.15;letter-spacing:-.045em}
#ml-transfer .ml-transfer-close {border:0;border-radius:50%;width:40px;height:40px;cursor:pointer;background:#e9eade;color:#333b2e;font:26px/1 -apple-system,sans-serif}
#ml-transfer .ml-transfer-summary:not(:empty) {margin-top:12px;font-weight:600;color:#374232}
#ml-transfer .ml-transfer-link {margin:17px 0 12px}
#ml-transfer .ml-transfer-actions .fit-primary {min-height:44px;background:#334331;color:white}
#ml-transfer .ml-transfer-actions .fit-primary:disabled {opacity:.5}
#ml-transfer .ml-transfer-status:not(:empty){margin-top:12px;color:#394633}
#ml-transfer progress {display:block;width:100%;height:5px;margin-top:12px;accent-color:#536b43}
.ml-imported-detail {display:flex;align-items:center;gap:15px;padding:15px;margin:15px 0;border-radius:15px;background:#f5f5ed}
.ml-imported-detail .ml-preview {display:grid;place-items:center;width:min(36vw,150px);height:140px}
.ml-imported-detail .ml-preview img {width:100%;height:100%;object-fit:contain;border-radius:10px}
.ml-imported-detail p {font-size:13px;color:#606256}

/* Prepared outfit gallery. On iPhone the portrait is the first thing to read. */
.ml-outfit-library,.ml-outfit-work{margin:0 0 24px}
.ml-outfit-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}
.ml-outfit-status,.ml-outfit-parts p{font-size:13px;line-height:1.45;color:#575b51;margin:8px 0}
.ml-outfit-status:empty{display:none}
.ml-outfit-deck{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);border:1px solid #dadace;border-radius:16px;overflow:hidden;background:#f7f5ef;color:#282b23}
.ml-outfit-deck[hidden],.ml-outfit-work[hidden],.ml-outfit-deck [hidden],.ml-outfit-actions [hidden]{display:none!important}
.ml-outfit-frame{display:grid;place-items:center;background:#e9e5dd;min-width:0;min-height:120px;touch-action:pan-y}
.ml-outfit-frame button{position:relative;display:grid;place-items:center;width:100%;border:0;padding:0;background:transparent;color:#252a22;cursor:zoom-in}
.ml-outfit-frame img{display:block;height:clamp(230px,49vh,430px);max-width:100%;width:100%;object-fit:contain}
.ml-outfit-zoom{position:absolute;bottom:10px;right:10px;border-radius:50%;padding:8px;display:grid;place-items:center;background:#faf9f0db}
.ml-outfit-description{align-self:center;min-width:0;padding:18px}
.ml-outfit-description h3{overflow-wrap:anywhere}
.ml-outfit-pager{display:flex;align-items:center;gap:8px;justify-content:space-between;margin-bottom:14px}
.ml-outfit-pager span{color:#56594f;font-size:12px;font-weight:600;letter-spacing:.02em}
.ml-outfit-pager div{display:flex;gap:5px}
.ml-outfit-pager button,#ml-outfit-viewer header button{display:grid;place-items:center;width:40px;min-height:40px;border:1px solid #d2d3c7;border-radius:50%;background:transparent;color:inherit;font:500 19px/1 Arial,sans-serif;cursor:pointer}
.ml-outfit-pager button:hover,.ml-outfit-pager button:focus-visible{background:#e3e4d8}
.ml-outfit-description>p{line-height:1.48;overflow-wrap:anywhere}
.ml-outfit-parts strong{font-weight:600;color:inherit}
.ml-outfit-request{padding:12px 0;border-bottom:1px solid #deded3}
.ml-outfit-request h4{font:600 16px/1.35 Arial,sans-serif;margin:0 0 5px}
.ml-outfit-request>p{color:#5c6057;font-size:14px}
.ml-outfit-request>.ml-btn{margin-top:7px}
#ml-outfit-viewer{box-sizing:border-box;position:fixed;inset:0;margin:0;width:100vw;height:100dvh;max-height:none;max-width:none;padding:max(env(safe-area-inset-top),14px) max(env(safe-area-inset-right),16px) max(env(safe-area-inset-bottom),14px) max(env(safe-area-inset-left),16px);border:0;border-radius:0;color:#f9f8f1;background:#20221e;overflow:auto;overscroll-behavior:contain;font:400 15px/1.45 -apple-system,BlinkMacSystemFont,Arial,sans-serif;text-align:left}
#ml-outfit-viewer::backdrop{background:#20221e}
#ml-outfit-viewer header{height:44px;display:flex;align-items:center;justify-content:space-between;max-width:1080px;margin:0 auto 10px}
#ml-outfit-viewer header>span{font-size:15px;font-weight:600}
#ml-outfit-viewer header button{border-color:#666a5f;background:#383c34;color:#fff}
#ml-outfit-viewer .ml-outfit-deck{max-width:1080px;min-height:calc(100dvh - 100px);margin:0 auto;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);background:#2c3028;color:#f9f8f1;border:0}
#ml-outfit-viewer .ml-outfit-frame img{height:calc(100dvh - 100px);max-height:none}
#ml-outfit-viewer .ml-outfit-description{padding:clamp(16px,4vw,40px)}
#ml-outfit-viewer .ml-outfit-description h3{font:550 clamp(24px,4vw,42px)/1.1 Arial,sans-serif;letter-spacing:-.035em;margin:0 0 13px}
#ml-outfit-viewer .ml-outfit-pager span,#ml-outfit-viewer .ml-outfit-parts p,#ml-outfit-viewer .ml-outfit-status{color:#e2e4d8}
#ml-outfit-viewer .ml-outfit-pager button{border-color:#797e70}
#ml-outfit-viewer .ml-outfit-pager button:is(:hover,:focus-visible){background:#454b3b}
@media(max-width:590px) and (orientation:portrait){
  .ml-outfit-deck,#ml-outfit-viewer .ml-outfit-deck{grid-template-columns:1fr}
  .ml-outfit-frame img{height:min(43dvh,355px)}
  .ml-outfit-description{padding:14px}
  #ml-outfit-viewer .ml-outfit-deck{min-height:0}
  #ml-outfit-viewer .ml-outfit-frame img{height:min(60dvh,600px)}
  #ml-outfit-viewer .ml-outfit-description{padding:14px 16px}
  #ml-outfit-viewer .ml-outfit-pager,#ml-outfit-viewer .ml-outfit-description h3{margin-bottom:6px}
}
@media(orientation:landscape) and (max-height:500px){
  #ml-outfit-viewer{padding-top:6px;padding-bottom:6px}
  #ml-outfit-viewer header{height:35px;margin-bottom:4px}
  #ml-outfit-viewer .ml-outfit-deck{min-height:0}
  #ml-outfit-viewer .ml-outfit-frame img{height:calc(100dvh - 54px)}
}
