:root{--bg:#f8f8f6;--ink:#171817;--muted:#8b8b87;--tile:#efefec;--line:#deded9}*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--ink);font-family:Arial,Helvetica,sans-serif}body{overscroll-behavior-y:none}button,a{-webkit-tap-highlight-color:transparent}button{border:0;background:none;color:inherit;font:inherit;cursor:pointer}button:disabled{cursor:wait}button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:2px solid #676760;outline-offset:4px}button svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.app{height:100svh;min-height:620px;max-width:1100px;margin:auto;display:flex;flex-direction:column}header{height:76px;flex-shrink:0;display:flex;justify-content:space-between;align-items:center;padding:0 38px}.logo{color:inherit;text-decoration:none;font-size:46px;font-weight:800;letter-spacing:-3px;line-height:1}.logo span{font-size:9px;vertical-align:top;display:inline-block;margin:6px 0 0 5px;letter-spacing:0}.header-actions{display:flex;gap:9px}.icon-button{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;transition:background .15s}.icon-button:hover{background:var(--tile)}#save.is-saved svg{fill:var(--ink)}#save.pop{animation:bookmark-pop .28s ease}.stage{flex:1;min-height:0;position:relative;display:flex;justify-content:center;padding:0 20px 20px;container-type:size;overflow:hidden}.outfit{position:relative;width:min(100%,calc(100cqh * .5625),440px);height:auto;aspect-ratio:360/640;align-self:center;isolation:isolate}.layer{position:absolute;left:0;width:100%;touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:grab}.layer:active{cursor:grabbing}.motion,.adjust{position:absolute;inset:0;pointer-events:none;will-change:transform}.adjust{transform:translate(var(--ox,0%),var(--oy,0%)) scale(var(--scale,1))}.piece{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 6px 5px #1515150c)}.row-arrows{position:absolute;inset:0;pointer-events:none;display:flex;align-items:center;justify-content:space-between}.row-arrows button{width:38px;height:38px;pointer-events:auto;background:#ffffffd9;border-radius:50%;font-size:24px;line-height:1;box-shadow:0 2px 8px #00000007;color:#6b6c66;transition:opacity .2s,background .2s}.row-arrows .prev{margin-left:-24px}.row-arrows .next{margin-right:-24px}.row-arrows button:hover{background:#fff;color:#111}.layer:not(.active) .row-arrows{opacity:0}.layer:hover .row-arrows,.layer:focus-within .row-arrows{opacity:1}.swipe-hint{position:absolute;bottom:5px;left:0;right:0;text-align:center;font-size:8px;letter-spacing:1.6px;color:#9b9c95;transition:opacity .3s}.has-interacted .swipe-hint{opacity:0}.wardrobe{flex-shrink:0;width:min(100%,650px);align-self:center;padding:13px 25px max(20px,env(safe-area-inset-bottom));background:var(--bg);position:relative;z-index:5}.dock-heading{display:flex;align-items:center;gap:20px;margin:0 0 14px}#tabs{display:flex;gap:7px;flex:1;justify-content:center}#tabs button{font-size:10px;font-weight:600;letter-spacing:.5px;height:34px;padding:0 25px;border-radius:30px;background:var(--tile);transition:background .15s,color .15s}#tabs button[aria-selected=true]{background:var(--ink);color:white}.saved-button{font-size:8px;letter-spacing:.6px;white-space:nowrap;color:#777971;min-height:34px}.saved-button span{margin-left:3px}.tray{display:flex;gap:9px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;scroll-snap-type:x proximity;padding:2px 0 5px}.tray::-webkit-scrollbar{display:none}.thumb{width:91px;height:96px;flex-shrink:0;padding:7px;border-radius:9px;background:var(--tile);border:1px solid transparent;scroll-snap-align:center;position:relative;transition:background .15s,border .15s}.thumb[aria-pressed=true]{border-color:var(--ink);background:#f8f8f6}.thumb img{width:100%;height:100%;object-fit:contain;pointer-events:none}.thumb:hover{background:#e7e7e2}.thumb[aria-pressed=true]:after{content:'';width:4px;height:4px;border-radius:50%;position:absolute;bottom:4px;left:calc(50% - 2px);background:var(--ink)}.toast{position:fixed;z-index:30;top:80px;left:50%;transform:translate(-50%,-8px);opacity:0;background:var(--ink);color:#fff;border-radius:30px;font-size:11px;padding:12px 20px;transition:.2s;pointer-events:none;max-width:90%;text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}dialog{padding:12px 26px 28px;border:0;background:var(--bg);color:var(--ink);border-radius:19px;width:min(460px,94vw);max-height:80svh}dialog::backdrop{background:#26262045;backdrop-filter:blur(3px)}.sheet-top{height:31px;position:relative;display:flex;justify-content:flex-end}.sheet-top .close{width:32px;height:32px;position:relative;right:-12px;top:-6px}.handle{display:none}.item-info{display:flex;gap:22px;align-items:center;padding:10px 0 15px}.item-info img{width:115px;height:140px;object-fit:contain}.item-brand{font-size:12px;font-weight:700;margin:0 0 8px}.item-name{font-size:14px;margin:0 0 14px;line-height:1.4}.category-tag{font-size:9px;letter-spacing:.6px;padding:6px 9px;border-radius:20px;background:var(--tile);display:inline-block}.demo-note{font-size:10px;color:#92938a;line-height:1.5;margin-top:14px}dialog h2{font-size:23px;letter-spacing:-.7px;font-weight:500;margin:4px 0 22px}.saved-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 12px}.saved-card{width:100%;height:225px;border-radius:10px;background:var(--tile);padding:10px;position:relative}.mini-outfit{position:relative;width:100%;height:100%;container-type:size;display:flex;justify-content:center}.mini-canvas{height:100%;aspect-ratio:360/640;position:relative}.mini-zone{position:absolute}.mini-adjust{position:absolute;inset:0;transform:translate(var(--x),var(--y)) scale(var(--s))}.mini-zone img{width:100%;height:100%;object-fit:contain}.saved-meta{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#888a80;padding:8px 0}.remove{color:#92938a;font-size:10px;padding:5px}.empty{font-size:13px;line-height:1.7;color:#898b81}.count-marker{font-size:8px;letter-spacing:1px;color:#9b9c95;position:absolute;right:-28px;top:65%;transform:translateY(-50%);pointer-events:none;opacity:0}.layer.active .count-marker{opacity:1}@keyframes bookmark-pop{50%{transform:scale(1.15)}}@media(max-width:650px){.app{min-height:570px}header{height:64px;padding:0 23px}.logo{font-size:38px;letter-spacing:-2.5px}.logo span{font-size:8px}.header-actions{gap:5px}.icon-button{width:40px;height:40px}.icon-button svg{width:22px;height:22px}.stage{padding:0 23px 10px}.outfit{width:min(100%,calc(100cqh * .5625))}.row-arrows button{width:32px;height:32px;font-size:22px;box-shadow:0 2px 8px #00000005}.row-arrows .prev{margin-left:-17px}.row-arrows .next{margin-right:-17px}.has-interacted .row-arrows{opacity:0!important;pointer-events:none}.has-interacted .row-arrows button{pointer-events:none}.wardrobe{padding:12px 17px max(15px,env(safe-area-inset-bottom));border-radius:20px 20px 0 0;box-shadow:0 -7px 25px #00000002}.dock-heading{gap:9px;margin-bottom:11px}#tabs{gap:6px}#tabs button{padding:0 19px;flex:1;height:32px;font-size:9px}.saved-button{font-size:7px}.thumb{width:76px;height:84px;padding:6px;border-radius:8px}.tray{gap:7px}.swipe-hint{font-size:6px;letter-spacing:1.2px;bottom:1px}.count-marker{right:-14px;font-size:7px}dialog{margin:auto 0 0;position:fixed;bottom:0;left:0;width:100%;max-width:none;border-radius:20px 20px 0 0;padding:10px 25px max(28px,env(safe-area-inset-bottom))}.handle{display:block;position:absolute;left:calc(50% - 16px);top:0;width:32px;height:4px;border-radius:4px;background:#d9dad4}.sheet-top .close{top:1px}.item-info{padding-top:8px}.saved-card{height:245px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* Experimental face layer. The original clothing canvas remains 360×640. */
.outfit-composition{position:absolute;inset:0;transform-origin:50% 0;isolation:isolate}
.face-enabled .outfit-composition{transform:translateY(18.75%) scale(.8125)}
.head-layer,.head-handle{position:absolute;transform-origin:50% 100%;user-select:none;-webkit-user-select:none}
.head-layer{pointer-events:none}.head-layer img{width:100%;height:100%;object-fit:contain;display:block;pointer-events:none}
.head-handle{z-index:10;cursor:grab;border:1px dashed #777b70;border-radius:12px;touch-action:none;background:#ffffff03}.head-handle.dragging{cursor:grabbing}.head-handle span{position:absolute;left:50%;top:-19px;transform:translateX(-50%);white-space:nowrap;font-size:7px;letter-spacing:1px;color:#777b70;background:var(--bg);padding:3px 5px;border-radius:4px}
.head-layer[hidden],.head-handle[hidden],.face-editor[hidden]{display:none}
.face-button{font-size:9px;font-weight:600;letter-spacing:.7px;padding:0 8px;height:38px;border-radius:20px;color:#8b8b87}.face-button.face-active{color:var(--ink)}.face-button[aria-expanded=true]{background:var(--tile)}
/* The editor owns a bottom dock on mobile, never an overlay on the stage. */
.face-editor{position:fixed;z-index:20;right:max(20px,calc((100vw - 1100px)/2 + 20px));top:90px;width:200px;padding:14px;background:var(--bg);border:1px solid #e5e5e0;border-radius:13px;box-shadow:0 8px 35px #00000007}
.face-editor-title{display:flex;align-items:center;justify-content:space-between;font-size:10px;font-weight:600;letter-spacing:.7px;margin-bottom:5px}
.face-editor-title #face-done{min-width:44px;min-height:32px;font-size:9px;letter-spacing:.7px;text-align:right;padding:0}
.face-editor label{display:flex;align-items:center;justify-content:space-between;font-size:8px;letter-spacing:.8px}
.face-editor output{font-size:9px;letter-spacing:0;color:#85887d}
.face-editor input{display:block;width:100%;margin:0 0 5px;accent-color:var(--ink);cursor:pointer;height:30px}
.face-editor-footer{display:flex;align-items:center;gap:12px}
.face-editor #face-reset{font-size:8px;letter-spacing:.7px;min-height:34px;padding:0 3px;color:#777b70}
.face-visibility{font-size:7px;letter-spacing:.6px;color:#888b80;display:block;margin:2px 0 0 auto;padding:4px 0;min-height:24px}
@media(min-width:901px){.face-editing .stage{width:calc(100% - 240px)}}
@media(max-width:900px){
 .face-editing .wardrobe{display:none}
 .face-editor{position:relative;top:auto;right:auto;bottom:auto;width:min(100%,650px);align-self:center;flex-shrink:0;padding:8px 23px max(10px,env(safe-area-inset-bottom));border:0;border-radius:20px 20px 0 0;box-shadow:0 -7px 25px #00000002}
 .face-editor-title{margin-bottom:3px}
 .face-editor input{height:32px;margin-bottom:5px}
 .face-editor-footer{gap:16px}
 .face-editor .face-depth{max-width:260px;flex:1}
}
@media(max-width:650px){.face-button{font-size:8px;padding:0 7px}.head-handle span{font-size:6px;top:-17px}}

/* Free HEAD placement: no clipping by its original slot or the outfit canvas. */
.outfit,.outfit-composition,.head-layer,.head-handle{overflow:visible}
.face-depth{display:flex;gap:5px;padding:3px;background:var(--tile);border-radius:7px;margin:0}
.face-depth button{flex:1;min-height:30px;border-radius:5px;font-size:8px;letter-spacing:.6px;color:#85887d}
.face-depth button[aria-pressed=true]{background:var(--ink);color:#fff}

/* Local photo workflow: scoped to FACE MODE, no clothing UI changes. */
.face-photo-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:3px;flex-wrap:wrap}
.face-photo-actions button{font-size:7px;letter-spacing:.4px;min-height:30px;padding:2px 0;color:#777b70}
.face-photo-actions .face-visibility{margin:0;display:inline-block}
.face-photo-actions button[hidden]{display:none}
.face-photo-notice{font-size:11px;line-height:1.45;color:#777b70;margin:9px 0 0}
.face-photo-notice:empty{display:none}
#face-photo-flow{position:fixed;inset:0;margin:auto;border-radius:18px;padding:22px;width:min(420px,94vw);max-height:94svh;overflow:auto}
#face-photo-flow::backdrop{background:#17181755;backdrop-filter:blur(5px)}
#face-photo-flow h2{font-size:24px;font-weight:600;letter-spacing:-.8px;line-height:1.15;margin:0}
.face-choice-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.face-choice-heading button{min-width:32px;height:32px;font-size:25px;color:#888b80}
#face-choice>p{font-size:12px;color:#888b80;line-height:1.6;margin:16px 0 24px}
.photo-primary{background:var(--ink);color:white;border-radius:28px;min-height:44px;padding:0 24px;font-size:10px;letter-spacing:.8px}
#face-add-photo{width:100%}.photo-secondary{display:block;width:100%;min-height:44px;font-size:9px;letter-spacing:.8px;color:#777b70}
#face-choice .photo-privacy{font-size:10px;margin:14px 0 0;text-align:center}
#face-photo-flow:has(#face-crop:not([hidden])){height:min(760px,96svh);width:min(480px,96vw);padding:20px;overflow:hidden}
#face-crop:not([hidden]){height:100%;min-height:0;display:flex;flex-direction:column}
#face-photo-flow:has(#face-crop:not([hidden])):has(.face-photo-notice:not(:empty)){padding-bottom:56px}
.photo-crop-heading{text-align:center;flex-shrink:0}.photo-crop-heading h2{font-size:17px!important;letter-spacing:.1px!important}
.photo-crop-heading p{font-size:8px;letter-spacing:1.3px;color:#888b80;margin:10px 0 16px}
.photo-crop-workspace{flex:1;min-height:0;display:flex;justify-content:center;align-items:center;overflow:hidden;padding:2px}
#photo-frame{height:100%;max-height:410px;max-width:78vw;aspect-ratio:5/7;position:relative;overflow:hidden;background:var(--tile);touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
#photo-frame:active{cursor:grabbing}
#crop-preview{display:block;width:100%;height:100%;pointer-events:none}

.photo-crop-controls{flex-shrink:0;padding-top:9px}.photo-crop-help{font-size:10px;text-align:center;color:#888b80;margin:0 0 12px}
.photo-crop-controls label{display:flex;justify-content:space-between;font-size:8px;letter-spacing:.8px}.photo-crop-controls input{width:100%;height:34px;margin:0;accent-color:var(--ink)}
.photo-crop-note{font-size:10px;text-align:center;color:#888b80;margin:0 0 12px}
.photo-crop-actions{display:flex;align-items:center;gap:12px}.photo-crop-actions button{flex:1;min-height:44px;font-size:10px;letter-spacing:.7px}
#face-crop[hidden],#face-choice[hidden]{display:none}
@media(max-width:650px){
 #face-photo-flow{inset:auto 0 0;width:100%;max-height:96svh;margin:0;border-radius:20px 20px 0 0;padding:22px 23px max(20px,env(safe-area-inset-bottom))}
 #face-photo-flow:has(#face-crop:not([hidden])){inset:0;height:100svh;max-height:100svh;width:100%;max-width:none;border-radius:0;padding: max(18px,env(safe-area-inset-top)) 23px max(16px,env(safe-area-inset-bottom))}
 .photo-crop-workspace{padding-top:6px;padding-bottom:6px}
 .photo-crop-controls{padding-top:8px}
 .face-photo-actions{gap:10px}
}

/* Demo platform. CREATE keeps its own existing stage, controls and gestures. */
:root{--platform-nav-height:54px}
.app{height:calc(100svh - var(--platform-nav-height) - env(safe-area-inset-bottom))}
.create-view{display:flex;flex:1;min-height:0;flex-direction:column}
#create-view[hidden],#platform-view[hidden],#platform-indicator[hidden]{display:none}
#platform-view{flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin}
#platform-nav{position:fixed;z-index:25;bottom:0;left:0;right:0;height:calc(var(--platform-nav-height) + env(safe-area-inset-bottom));padding:0 20px env(safe-area-inset-bottom);display:flex;justify-content:center;gap:14px;align-items:center;background:var(--bg);border-top:1px solid #e8e8e3}
#platform-nav a{position:relative;color:#999b92;text-decoration:none;font-size:9px;font-weight:600;letter-spacing:1.1px;min-height:44px;min-width:88px;display:flex;align-items:center;justify-content:center;gap:8px}
#platform-nav a.selected{color:var(--ink)}#platform-nav a.selected:before{content:'';height:4px;width:4px;background:var(--ink);border-radius:50%}
.platform-browsing .header-actions{display:none}
#platform-indicator{font-size:8px;letter-spacing:1.3px;color:#92948c}
.platform-page{width:min(100%,900px);margin:0 auto;padding:27px 32px 40px}
.platform-page a{color:inherit;text-decoration:none}
.platform-page h1{font-size:34px;letter-spacing:-1.5px;line-height:1.05;margin:9px 0 0}
.platform-eyebrow{display:block;font-size:8px;letter-spacing:1.25px;color:#909388;line-height:1.5}
.profile-intro{display:flex;align-items:center;gap:20px}
.profile-avatar{width:86px;height:86px;overflow:hidden;border-radius:50%;background:#e9e9e4;flex-shrink:0;display:flex;align-items:flex-end;justify-content:center}
.profile-avatar img{height:100%;width:100%;object-fit:contain;transform:scale(1.08);transform-origin:50% 100%}
.profile-details{flex:1}.profile-handle{font-size:11px;color:#8c8f83;margin:8px 0 0}
.platform-follow{background:var(--ink);color:var(--bg);padding:0 23px;min-height:36px;border-radius:24px;font-size:9px;letter-spacing:.7px;white-space:nowrap}
.platform-follow.following{background:var(--tile);color:var(--ink)}
.profile-bio{font-size:12px;margin:23px 0 22px;color:#686c60;letter-spacing:.15px}
.profile-stats{display:flex;gap:35px;padding:0 0 25px}
.profile-stats>div{display:flex;gap:6px;align-items:baseline}.profile-stats strong{font-size:14px;font-weight:500}.profile-stats span{font-size:8px;letter-spacing:.6px;color:#8f9287}
.platform-tabs{display:flex;align-items:center;gap:24px;border-bottom:1px solid #dedfd6;margin:0 0 22px}
.platform-tabs a,.platform-tabs button{display:flex;align-items:center;justify-content:center;position:relative;min-height:44px;padding:0 0 8px;font-size:9px;font-weight:600;letter-spacing:1px;color:#95988d}
.platform-tabs .selected{color:var(--ink)}.platform-tabs .selected:after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--ink)}
.platform-fits-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 14px}
.fit-tile{display:block;min-width:0}.fit-tile-art{height:330px;padding:18px 12px 12px;background:#efefea;border-radius:12px;transition:background .15s}
.fit-tile:hover .fit-tile-art{background:#e6e7df}.fit-tile-meta{display:flex;justify-content:space-between;gap:7px;padding:11px 2px 0;font-size:10px;color:#5f6558}.fit-tile-meta>span:last-child{font-size:9px;white-space:nowrap;color:#96998e}
.platform-footnote{font-size:10px;line-height:1.6;color:#96998d;margin:25px 0 0}
.platform-section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:21px 0 16px}
.platform-section-title h2{font-size:14px;font-weight:500;letter-spacing:-.3px;margin:0}.platform-section-title>span{font-size:8px;letter-spacing:.7px;color:#96998e}
.platform-empty{padding:44px 0;color:#838879}.platform-empty h2{font-size:24px;letter-spacing:-.7px;font-weight:500;color:var(--ink)}.platform-empty p{font-size:12px;line-height:1.6}.platform-text-link{display:inline-flex;font-size:10px;min-height:44px;align-items:center;letter-spacing:.7px}
.store-cover{height:240px;border-radius:12px;overflow:hidden;background:#e7e7e1;margin-bottom:25px}.store-cover img{width:100%;height:100%;object-fit:cover}
.store-intro{display:flex;align-items:center;gap:16px}.store-logo{width:62px;height:62px;flex-shrink:0}.store-intro>div{flex:1}.store-intro h1{font-size:28px;letter-spacing:-1px}
.store-bio{margin:20px 0 17px;color:#737a68;font-size:12px;line-height:1.6}.store-bio p{margin:0}.store-bio p+p{color:#a0a494;font-size:11px;margin-top:2px}
.platform-products-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 14px}
.platform-product-tile{display:block;min-width:0}.product-tile-art{height:230px;background:var(--tile);border-radius:10px;padding:15px;transition:background .15s}.product-tile-art img{width:100%;height:100%;object-fit:contain}.platform-product-tile:hover .product-tile-art{background:#e5e6de}
.product-tile-meta{display:flex;flex-direction:column;gap:6px;padding:11px 1px 0;font-size:10px;line-height:1.35}.product-tile-price{color:#989c8e;font-size:9px}
.platform-back{display:inline-flex;align-items:center;min-height:34px;margin-bottom:16px;color:#868b7a!important;font-size:9px;letter-spacing:.65px}
.fit-detail-layout,.product-detail-layout{display:grid;grid-template-columns:1fr 1fr;gap:42px}
.fit-detail-art{height:610px;padding:24px 18px 20px;background:#efefea;border-radius:13px}
.fit-detail-info{padding-top:15px}.fit-author{display:inline-block;font-size:12px;margin:5px 0 15px}.fit-detail-info h1{font-size:37px;margin:0}.fit-caption{font-size:12px;color:#909582;line-height:1.6;margin:13px 0 24px}
.platform-primary{display:flex;align-items:center;justify-content:center;min-height:46px;background:var(--ink);color:var(--bg)!important;border-radius:28px;font-size:10px;letter-spacing:1px;padding:0 24px;width:100%;text-align:center}
.platform-secondary{display:flex;align-items:center;justify-content:center;min-height:46px;border:1px solid #d3d6c9;border-radius:28px;font-size:10px;letter-spacing:1px;padding:0 24px;text-align:center}
.fit-reactions{display:flex;align-items:center;justify-content:space-between;gap:7px;border-bottom:1px solid #e0e2d7;margin:9px 0 22px;padding-bottom:6px}.fit-reactions button{min-height:42px;padding:0 5px;font-size:9px;letter-spacing:.6px;color:#8c927f}.fit-reactions button[aria-pressed=true]{color:var(--ink)}.platform-local-label{font-size:8px;letter-spacing:1px;color:#989d8d;padding:15px 0}
.fit-piece-link{display:flex;gap:13px;align-items:center;padding:12px 0;border-bottom:1px solid #e3e5db}.fit-piece-link img{width:45px;height:61px;object-fit:contain}.fit-piece-link>div{flex:1;min-width:0}.fit-piece-link strong{font-size:11px;font-weight:500;display:block;margin:5px 0;line-height:1.4}.fit-piece-store{font-size:8px;color:#9c9f92;letter-spacing:.4px}.fit-piece-price{font-size:10px;color:#757c68;white-space:nowrap}
.product-detail-art{height:560px;padding:35px;background:var(--tile);border-radius:13px}.product-detail-art img{width:100%;height:100%;object-fit:contain}
.product-detail-info{align-self:center}.product-store-link{display:inline-block;font-size:10px;letter-spacing:.8px;margin-bottom:25px;border-bottom:1px solid #c6ccbb;padding-bottom:5px}.product-detail-info h1{font-size:38px;line-height:1.12;margin:10px 0 23px}.product-price-row{display:flex;align-items:center;justify-content:space-between;gap:15px}.product-price-row>strong{font-size:20px;font-weight:400;letter-spacing:-.7px}.product-save{font-size:9px;letter-spacing:.6px;min-height:36px;color:#959b88}.product-save[aria-pressed=true]{color:var(--ink)}
.product-detail-caption{font-size:12px;line-height:1.6;color:#959c88;margin:25px 0}.product-detail-actions{display:flex;flex-direction:column;gap:10px}
#platform-share{padding:22px}#platform-share .platform-share-heading{display:flex;align-items:flex-start;justify-content:space-between}#platform-share h2{font-size:22px;margin:0 0 20px}#platform-share-close{font-size:23px;min-width:32px;min-height:32px}#platform-share label{display:block;font-size:11px;color:#8c937f;margin-bottom:8px}#platform-share input{width:100%;border:1px solid #d7dccd;border-radius:7px;background:var(--tile);padding:12px;font-size:12px;color:var(--ink)}#platform-share p{font-size:11px;color:#969e88}
@media(max-width:650px){
 .platform-page{padding:20px 20px 30px}
 .profile-intro{gap:13px}.profile-avatar{width:66px;height:66px}.platform-eyebrow{font-size:6px;letter-spacing:.9px}.profile-details h1{font-size:28px;margin-top:6px}.profile-handle{font-size:10px;margin-top:6px}.platform-follow{padding:0 16px;min-height:34px;font-size:8px}.profile-bio{font-size:11px;margin:20px 0}.profile-stats{gap:22px;padding-bottom:18px}.profile-stats>div{gap:5px}.profile-stats strong{font-size:13px}.profile-stats span{font-size:7px;letter-spacing:.3px}
 .platform-tabs{gap:25px;margin-bottom:19px}.platform-tabs a,.platform-tabs button{font-size:9px}
 .platform-fits-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 10px}.fit-tile-art{height:285px;padding:15px 6px 10px;border-radius:10px}.fit-tile-meta{font-size:9px;padding-top:10px}.fit-tile-meta>span:last-child{font-size:8px}
 .store-cover{height:132px;border-radius:10px;margin-bottom:22px}.store-intro{gap:11px}.store-logo{height:48px;width:48px}.store-intro h1{font-size:23px;letter-spacing:-.8px}.store-bio{font-size:11px;margin-top:18px}.store-bio p+p{font-size:10px}.store-filters{gap:27px}
 .platform-products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 11px}.product-tile-art{height:205px;padding:14px}.product-tile-meta{font-size:10px}.product-tile-price{font-size:9px}
 .fit-detail-layout,.product-detail-layout{grid-template-columns:1fr;gap:25px}.platform-back{margin-bottom:10px}.fit-detail-art{height:440px;padding:18px 14px 14px}.fit-detail-info{padding-top:0}.fit-detail-info h1{font-size:32px}.fit-author{margin-bottom:12px}.fit-caption{margin:11px 0 20px}.fit-reactions{margin-bottom:25px}.fit-piece-link img{height:63px;width:46px}.fit-piece-link strong{font-size:12px}.fit-piece-price{font-size:11px}
 .product-detail-art{height:370px;padding:30px}.product-detail-info h1{font-size:32px;margin-bottom:18px}.product-store-link{margin-bottom:16px}.product-detail-caption{margin:18px 0}.product-detail-actions{gap:9px}.platform-primary,.platform-secondary{min-height:46px}
}
@media(max-width:370px){.profile-stats{gap:14px}.profile-intro{gap:9px}.profile-avatar{height:57px;width:57px}.platform-follow{padding:0 12px}.fit-tile-art{height:250px}.product-tile-art{height:185px}}
/* Independent magazine cutouts; original garment geometry and swipe motion. */
.body-layer{position:absolute;pointer-events:none;overflow:visible;transform-origin:center;user-select:none;-webkit-user-select:none}.body-layer img{width:100%;height:100%;display:block;object-fit:contain;pointer-events:none}.body-layer[hidden]{display:none}.fullbody-mode .layer.shoes{z-index:4}
#cutout-depth[hidden],#cutout-x-control[hidden]{display:none}
.face-editor-title #face-done,.face-editor-title #piece-done{min-width:44px;min-height:30px;text-align:right;font-size:9px;letter-spacing:.7px;padding:0}.face-photo-actions{flex-wrap:wrap;gap:0 12px}.face-photo-actions button{min-height:28px;font-size:7px}
#face-photo-flow{width:min(480px,100vw);max-width:100vw;padding:26px;max-height:100dvh;overflow:auto}
#face-photo-flow:has(#face-crop:not([hidden])),#face-photo-flow:has(#cutout-result:not([hidden])){height:min(850px,100dvh);display:flex;flex-direction:column}#face-photo-flow:not([open]){display:none}
#face-choice[hidden],#face-crop[hidden],#cutout-result[hidden]{display:none}#face-crop,#cutout-result{display:flex;flex-direction:column;flex:1;min-height:0}
.cutout-options{display:grid;gap:10px;margin:25px 0 18px}.cutout-options button{text-align:left;padding:22px 18px;border-radius:14px;background:#efefec;border:1px solid transparent;min-height:94px}.cutout-options button[aria-pressed=true]{border-color:#b7b9af}.cutout-options strong{display:flex;justify-content:space-between;font-size:22px;letter-spacing:-.7px}.cutout-options button>span{display:block;font-size:11px;color:#85887d;margin-top:8px}
#photo-frame{width:300px;height:auto;max-width:100%;max-height:100%;aspect-ratio:3/4;background:repeating-conic-gradient(#e7e7e3 0% 25%,#efefec 0% 50%) 50%/16px 16px}#crop-preview{display:block;width:100%;height:100%}
.photo-crop-workspace{padding:0;flex:1;min-height:80px}.photo-crop-heading p{margin:8px 0 12px;line-height:1.6;font-size:9px;letter-spacing:.3px}
.crop-tools{display:flex;gap:4px;margin:8px 0}.crop-tools button{flex:1;border-radius:30px;background:#eeeee9;min-height:34px;font-size:8px;letter-spacing:.2px}.crop-tools button[aria-pressed=true]{background:#171817;color:#fff}
.crop-ranges{display:grid;grid-template-columns:1fr 1fr;gap:18px}.photo-crop-help{font-size:9px;line-height:1.5;min-height:14px;margin:5px 0 10px}.photo-crop-controls{padding-top:3px}
#manual-actions{display:flex;justify-content:center;gap:20px}#manual-actions[hidden]{display:none}#manual-actions button{min-height:30px;font-size:9px}
.cutout-result-preview{flex:1;min-height:80px;display:flex;align-items:center;justify-content:center;padding:20px;background:repeating-conic-gradient(#e7e7e3 0% 25%,#f1f1ee 0% 50%) 50%/20px 20px;border-radius:6px;margin:10px 0 18px}.cutout-result-preview img{display:block;width:100%;height:100%;max-height:500px;object-fit:contain}.photo-crop-note{line-height:1.6}
.piece-positions{display:grid;grid-template-columns:1fr 1fr;gap:14px}#piece-reset{font-size:8px;min-height:30px;color:#777b70;letter-spacing:.7px}body.piece-editing .wardrobe{display:none}.piece-editor[hidden]{display:none}
.edit-piece-button{width:100%;border-radius:30px;background:#171817;color:#fff;min-height:44px;font-size:10px;letter-spacing:.7px;margin:12px 0}
.piece-handle{position:absolute;inset:0;z-index:30;touch-action:none;cursor:move;border:1px dashed #a6a99d;border-radius:4px}.piece-handle span{position:absolute;top:3px;left:5px;font-size:8px;letter-spacing:.7px;color:#85887d}.piece-handle[hidden]{display:none}
@media(max-width:900px){
 #face-photo-flow{padding:22px 22px max(18px,env(safe-area-inset-bottom))}#face-photo-flow:has(#face-crop:not([hidden])),#face-photo-flow:has(#cutout-result:not([hidden])){width:100vw;height:100dvh;max-height:100dvh;border-radius:0;margin:0}
 .face-editor{padding-top:5px;padding-bottom:7px}.face-editor input{height:25px;margin-bottom:3px}.face-editor label{font-size:8px}.face-editor-title{margin-bottom:0}.face-editor-footer{min-height:28px}.face-editor #face-reset{min-height:28px}.face-photo-actions{margin-top:0;padding-top:2px}.face-photo-notice:empty{display:none}
}
@media(min-width:901px){body.piece-editing .stage{width:calc(100% - 240px);align-self:flex-start}}
#face-photo-flow:not([open]){display:none!important}
/* Keep photo aspect ratio even when iPhone browser chrome reduces the height. */
.photo-crop-workspace{container-type:size}
#photo-frame{width:min(300px,100cqw,75cqh);height:auto;max-height:none;flex-shrink:0}
/* Small entry for the selected category; the original category tabs stay intact. */
.wardrobe-tools{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;flex-shrink:0;min-width:58px}
.wardrobe-tools .saved-button{min-height:20px;padding:0}
.edit-active{font-size:7px;letter-spacing:.6px;min-height:25px;padding:0;color:var(--ink);white-space:nowrap;text-decoration:underline;text-underline-offset:3px}
.piece-handle{transform-origin:50% 50%;overflow:visible}
body.piece-editing .app{min-height:0}
@media(max-width:650px){.dock-heading:has(.wardrobe-tools){gap:8px}.dock-heading:has(.wardrobe-tools) #tabs button{padding:0 13px}}
/* Mobile collage workspace. Controls are outside the artwork stacking context. */
html,body{max-width:100%;overflow-x:clip}.app{height:calc(100dvh - var(--platform-nav-height,0px) - env(safe-area-inset-bottom));min-height:0}.create-view{position:relative;overflow:hidden}.editor-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-shrink:0;padding:0 20px;height:36px}.editor-toolbar button{min-height:36px;padding:0 12px;font-size:9px;letter-spacing:.8px;border:1px solid var(--line);border-radius:20px}.editor-toolbar button[aria-expanded=true],.editor-toolbar button[aria-pressed=true]{background:var(--ink);color:white}#expanded-edit{display:none}#layers-panel{position:absolute;z-index:40;top:40px;right:12px;width:min(310px,calc(100% - 24px));padding:12px;background:var(--bg);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 35px #0002}#layers-panel[hidden]{display:none}#layers-close{min-height:36px}.layer-row{display:flex;align-items:center;border-top:1px solid var(--line);min-height:46px}.layer-row button{min-height:44px;min-width:44px;font-size:13px}.layer-row .layer-grip{flex:1;text-align:left;font-size:11px;letter-spacing:.7px;touch-action:none;cursor:grab}.layer-row.sorting{background:var(--tile)}.size-stepper{display:flex;align-items:center;gap:8px}.size-stepper button{flex:0 0 44px;height:44px;border:1px solid var(--line);border-radius:50%;font-size:22px}.size-stepper input{flex:1;min-width:0;height:44px;margin:0;touch-action:pan-x}.face-editor input[type=range]{accent-color:var(--ink)}.face-editor output{font-size:11px;font-variant-numeric:tabular-nums}.face-editor label{font-size:9px}.piece-actions{display:flex;gap:6px;align-items:center}.piece-actions button{min-height:38px;font-size:8px;letter-spacing:.3px;padding:0 6px}.piece-positions{gap:16px}.face-editor{width:260px}.stage{padding-bottom:0}.piece-editing .stage,.face-editing .stage{touch-action:none}.piece-editing .layer,.face-editing .layer{pointer-events:none}.piece-handle{z-index:30}.piece-handle,.head-handle{background:transparent}.editor-expanded .app{position:fixed;inset:0;width:100%;max-width:none;height:100dvh;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);z-index:50;background:var(--bg)}.editor-expanded header,.editor-expanded .wardrobe,.editor-expanded #platform-nav{display:none!important}.editor-expanded #expanded-edit{display:block}.editor-expanded .stage{width:100%;align-self:stretch}.editor-expanded .swipe-hint{display:none}
@media(max-width:900px){header{height:52px}.editor-toolbar{height:36px;padding:0 12px}.stage{padding:0 12px}.wardrobe{padding:6px 12px 8px;border-radius:0}.dock-heading{margin-bottom:4px}.thumb{height:60px;width:62px}#tabs button{height:30px}.face-editor{position:relative;top:auto;right:auto;width:100%;max-height:34dvh;overflow-y:auto;overscroll-behavior:contain;padding:5px 16px max(6px,env(safe-area-inset-bottom));border-radius:0}.face-editor-title{margin:0}.face-editor input{height:32px;margin:0}.face-editor .size-stepper input{height:44px}.face-photo-actions{margin:0;padding:0}.face-photo-actions button{min-height:30px}.face-editor .face-editor-footer{min-height:30px}.piece-editing .stage,.face-editing .stage{width:100%}.outfit{width:min(100%,calc(100cqh * .5625));max-width:none}.editor-expanded .face-editor{max-height:30dvh}.editor-expanded .editor-toolbar{height:42px}.face-depth button{min-height:32px}}
@media(max-height:540px) and (orientation:landscape){.piece-editing .face-editor,.face-editing .face-editor{position:absolute;right:0;bottom:0;max-height:100%;width:250px}.piece-editing .stage,.face-editing .stage{width:calc(100% - 250px)}}

.expanded-selection{display:none}.editor-expanded .expanded-selection{display:flex;gap:3px;flex:1;justify-content:flex-start;order:-1}.editor-expanded .editor-toolbar{justify-content:space-between;gap:3px}.expanded-selection button{padding:0 7px;font-size:8px}.editor-expanded .editor-toolbar>button{padding:0 9px;font-size:8px}.piece-actions button:disabled{opacity:.35}
/* FIT MY FIT platform V1: the existing CREATE stage remains the workspace. */
.logo{font-size:24px;letter-spacing:-1.2px;max-width:180px}.logo span{display:none}.fmf-heading{margin:18px 0 24px}.fmf-heading h1{font-size:30px;font-weight:500;letter-spacing:-1px;margin:0 0 12px}.fmf-heading p,.fmf-empty{color:#77796f;font-size:13px;line-height:1.7;max-width:650px}.fmf-empty{padding:18px 0}.fmf-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:16px 0 30px}.fmf-card,.fmf-store-card{border:1px solid var(--line);border-radius:10px;padding:12px;min-width:0}.fmf-card-art{height:220px;background:var(--tile);border-radius:5px;margin-bottom:12px}.fmf-card-art img{width:100%;height:100%;object-fit:contain}.fmf-card-name{display:block;text-decoration:none;font-size:14px;color:var(--ink);line-height:1.5}.fmf-card-meta{font-size:11px;color:#7c7e75;line-height:1.6}.fmf-card-actions{display:flex;flex-wrap:wrap;gap:6px}.fmf-button{display:inline-flex;justify-content:center;align-items:center;min-height:42px;margin:3px 5px 3px 0;padding:10px 12px;border:1px solid var(--line);border-radius:22px;font-size:10px;letter-spacing:.3px;color:var(--ink);text-decoration:none;background:transparent;text-align:center}.fmf-button:hover{background:var(--tile)}.fmf-button:disabled{opacity:.45}.fmf-primary{background:var(--ink);color:#fff}.fmf-primary:hover{background:#383a34}.fmf-store-card{display:block;color:inherit;text-decoration:none;min-height:100px}.fmf-store-card img,.fmf-store-logo{width:70px;height:70px;object-fit:contain}.fmf-store-card p{font-size:12px;color:#777;line-height:1.6}.fmf-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:20px 0}.fmf-chip{display:inline-flex;align-items:center;justify-content:center;min-height:42px;border-radius:24px;padding:0 15px;font-size:10px;background:var(--tile);text-decoration:none;color:inherit}.fmf-chip[aria-pressed=true]{background:var(--ink);color:white}.fmf-form-wrap{max-width:600px}.fmf-form{display:grid;gap:18px}.fmf-field{display:grid;gap:8px;font-size:12px;line-height:1.5}.fmf-field input,.fmf-field select,.fmf-search input,.fmf-share{width:100%;min-height:46px;padding:10px 12px;border:1px solid var(--line);border-radius:5px;background:transparent;font:inherit;color:inherit;min-width:0}.fmf-field input[type=file]{font-size:12px}.fmf-form button[type=submit]{justify-self:start}.fmf-search{display:flex;gap:8px;align-items:center;max-width:650px}.fmf-search input{flex:1}.fmf-inline{font-size:12px;color:inherit;display:block;margin-top:20px}.fmf-upload-preview{width:100%;height:180px;object-fit:contain}.fmf-fit-preview{width:100%;height:270px;object-fit:contain;background:var(--tile)}.fmf-fit-full{display:block;width:100%;max-height:65dvh;object-fit:contain;margin-bottom:20px}.fmf-share{margin:15px 0;display:block;font-size:12px}.fmf-sources{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px}.fmf-sources select{font:inherit;font-size:10px;border:0;border-bottom:1px solid var(--line);padding:7px 3px;background:transparent;max-width:160px}.fmf-sources .fmf-button{font-size:8px;min-height:30px;padding:4px 8px}.fmf-auth-prompt{max-width:500px}.platform-browsing #platform-view{padding:10px 28px 40px}.platform-browsing header{flex-shrink:0}#platform-view h2{font-weight:500;font-size:21px;letter-spacing:-.4px;margin:30px 0 15px}#platform-nav a{font-size:10px}.editor-toolbar{height:auto;min-height:36px;flex-wrap:wrap}.editor-toolbar button{font-size:8px}.editor-expanded .expanded-selection button{padding:0 5px}.editor-expanded .editor-toolbar>button{font-size:7px;padding:0 7px}.editor-expanded .expanded-selection{flex-wrap:wrap;min-width:0}
@media(max-width:650px){.logo{font-size:21px;letter-spacing:-1px;max-width:140px}.fmf-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.fmf-card{padding:8px}.fmf-card-art{height:175px}.fmf-card-actions{gap:2px}.fmf-card-actions .fmf-button{font-size:8px;padding:8px;min-height:40px}.platform-browsing #platform-view{padding:6px 16px 30px}.fmf-heading h1{font-size:26px}.fmf-search input{font-size:14px}.fmf-search button{font-size:9px}.fmf-fit-preview{height:230px}#platform-nav a{font-size:9px}.fmf-field input,.fmf-field select{font-size:16px}}
/* Owner console shares the existing editorial controls. */
.fmf-admin{max-width:1200px;margin:0 auto}.fmf-admin-nav{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 24px}.fmf-admin-nav a[aria-current=page]{background:#171717;color:#fff}.fmf-admin-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.fmf-stat{border:1px solid #d8d5cc;padding:18px;display:flex;flex-direction:column;gap:8px}.fmf-stat strong{font-size:32px}.fmf-admin-table{border-collapse:collapse;width:100%;font-size:12px;overflow-wrap:anywhere}.fmf-admin-table th,.fmf-admin-table td{border-bottom:1px solid #ddd8cf;text-align:left;padding:12px 8px;vertical-align:top}.fmf-table-scroll{max-width:100%;overflow-x:auto;margin:20px 0}.fmf-admin-actions{display:flex;flex-wrap:wrap;gap:5px}.fmf-admin .fmf-form{max-width:620px}.fmf-admin textarea{min-height:120px;resize:vertical;width:100%;padding:12px;background:transparent;border:1px solid #ccc;font:inherit}.fmf-admin input[type=checkbox]{width:24px;height:24px}.fmf-admin .fmf-button{min-height:44px}.fmf-admin-product,.fmf-banner{max-width:100%;max-height:420px;object-fit:contain}.fmf-content-preview{border:1px solid #ddd;padding:20px;white-space:pre-wrap}.fmf-invite-result{overflow-wrap:anywhere}.fmf-invite-result input{width:100%}.fmf-recovery-codes{font-size:16px;line-height:1.7;white-space:pre-wrap}.fmf-public-intro{padding:12px 0 24px}.fmf-public-copy{white-space:pre-wrap;max-width:760px}
@media(max-width:600px){.fmf-admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.fmf-admin-nav{gap:4px}.fmf-admin-nav .fmf-button{font-size:10px;padding:9px}.fmf-admin-table{min-width:620px}.fmf-admin input,.fmf-admin select,.fmf-admin textarea{font-size:16px}.fmf-stat{padding:12px}}

/* The first outfit is real HTML; hidden routes never download its images. */
html[data-entry=platform] #create-view{display:none}html[data-entry=create] [data-initial-composition]{transform:translateY(18.75%) scale(.8125)}
html[data-entry=platform] #platform-view{padding:24px 32px}html[data-entry=platform] #create-view img{content-visibility:hidden}

/* Object gestures are confined to the editor artwork. Browser gestures elsewhere stay native. */
#outfit .adjust,#outfit .head-layer,#outfit .body-layer,
.piece-editing #outfit .outfit-composition,.face-editing #outfit .outfit-composition{touch-action:none}
#outfit .piece-handle,#outfit .head-handle{pointer-events:none}
.piece-editing .stage,.face-editing .stage{touch-action:auto}
.piece-editing .layer,.face-editing .layer{pointer-events:auto}

#outfit .adjust,#outfit .head-layer,#outfit .body-layer{pointer-events:auto}

/* Give the mobile collage the space, keeping all controls reachable. */
@media(max-width:650px){
 body:not(.platform-browsing):not(.editor-expanded) header{height:44px;padding:0 16px}
 body:not(.platform-browsing) .header-actions{gap:4px}
 body:not(.platform-browsing) .logo{font-size:20px}
 body:not(.editor-expanded) #create-view .editor-toolbar{position:absolute;z-index:12;top:3px;right:8px;padding:0;min-height:44px;height:44px;gap:5px}
 body:not(.editor-expanded) #create-view .editor-toolbar>button{min-height:44px;padding:0 10px;background:var(--bg)}
 #create-view .stage{padding:0 8px}
 #create-view .wardrobe{padding:4px 12px 6px}
 #create-view .wardrobe .fmf-sources{position:absolute;top:4px;left:12px;width:80px;margin:0;min-height:44px}
 #create-view .fmf-sources select{width:100%;max-width:100%;min-height:44px;font-size:11px;padding:0 2px;text-overflow:ellipsis}
 #create-view .dock-heading{padding-left:88px;gap:6px;margin-bottom:2px;min-height:44px}
 #create-view #tabs{min-width:0;gap:4px}
 #create-view #tabs button{min-width:0;flex:1;height:36px;padding:0 6px;font-size:9px}
 #create-view .wardrobe-tools{min-width:54px}
 #create-view .wardrobe-tools .saved-button{min-height:44px;font-size:7px}
 #create-view .wardrobe-tools .edit-active{display:none}
 #create-view .thumb{width:54px;height:52px;padding:4px}
 #create-view .tray{gap:7px;padding:2px 0 3px}
 /* Signed-in save/new-fit actions keep their own row when present. */
 #create-view .wardrobe:has(.fmf-sources .fmf-button) .fmf-sources{position:static;width:100%;flex-wrap:wrap}
 #create-view .wardrobe:has(.fmf-sources .fmf-button) .fmf-sources select{width:auto;max-width:130px}
 #create-view .wardrobe:has(.fmf-sources .fmf-button) .dock-heading{padding-left:0}
 #create-view .face-editor{max-height:27dvh}
 #platform-nav{padding-left:8px;padding-right:8px;gap:0}
 #platform-nav a{min-width:0;flex:1;font-size:8px;letter-spacing:.7px}
}

/* Mobile editor shell: all drawers overlay a stable, full-size stage. */
.mobile-category-bar,.mobile-site-menu,.mobile-menu-toggle,.mobile-sheet-handle,.mobile-sheet-title,.mobile-properties-toggle,.mobile-catalog-shade{display:none}
@media(max-width:650px){
 body.mobile-editor-ready:not(.platform-browsing){--platform-nav-height:0px}
 body.mobile-editor-ready:not(.platform-browsing) .app{height:100dvh;min-height:0;padding-top:env(safe-area-inset-top);box-sizing:border-box}
 body.mobile-editor-ready:not(.platform-browsing) header{height:44px;flex-shrink:0;padding:0 12px}
 body.mobile-editor-ready:not(.platform-browsing) #platform-nav{display:none}
 body.mobile-editor-ready:not(.platform-browsing) #face{display:none}
 .mobile-editor-ready .mobile-menu-toggle{display:grid;place-items:center;width:44px;height:44px;font-size:23px}
 .mobile-editor-ready .mobile-site-menu:not([hidden]){display:flex;flex-direction:column;position:fixed;z-index:70;right:10px;top:calc(48px + env(safe-area-inset-top));width:min(260px,calc(100% - 20px));padding:8px;background:var(--bg);border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 35px #0002}
 .mobile-site-menu a,.mobile-site-menu button{display:flex;align-items:center;min-height:44px;padding:0 14px;text-decoration:none;color:var(--ink);font-size:13px;text-align:left;border-radius:7px}
 .mobile-site-menu a:hover,.mobile-site-menu button:hover{background:var(--tile)}
 body.mobile-editor-ready #create-view{overflow:hidden;isolation:isolate}
 body.mobile-editor-ready #create-view .stage{flex:1;width:100%;min-height:0;margin:0 0 calc(44px + env(safe-area-inset-bottom));padding:0 6px;align-self:stretch}
 body.mobile-editor-ready #create-view .outfit{width:min(100%,calc(100cqh * .5625));max-width:none}
 body.mobile-editor-ready #create-view .editor-toolbar{position:absolute;z-index:21;right:8px;top:8px;bottom:auto;display:flex;flex-direction:column;flex-wrap:nowrap;width:40px;height:auto;min-height:0;padding:0;gap:6px}
 body.mobile-editor-ready #create-view .editor-toolbar>button{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;min-height:40px;min-width:40px;padding:0;border:1px solid var(--line);border-radius:50%;background:#f8f8f6ec;box-shadow:0 1px 5px #00000004}
 body.mobile-editor-ready #create-view .editor-toolbar .mobile-icon-control{font-size:0}
 .mobile-icon-control:after{content:attr(data-mobile-icon);font-size:22px;line-height:1}
 body.mobile-editor-ready #create-view .expanded-selection{display:none}
 body.mobile-editor-ready #create-view .mobile-properties-toggle{display:none;font-size:22px}
 body.mobile-editor-ready.mobile-has-selection #create-view .mobile-properties-toggle{display:grid}
 body.mobile-editor-ready .mobile-category-bar{position:absolute;z-index:31;bottom:0;left:0;right:0;display:flex;align-items:flex-start;height:calc(44px + env(safe-area-inset-bottom));padding:0 10px env(safe-area-inset-bottom);background:var(--bg);border-top:1px solid var(--line);touch-action:none}
 .mobile-category-bar button{min-height:44px;flex:1;font-size:10px;font-weight:600;letter-spacing:.5px;border-radius:0}
 .mobile-category-bar button[aria-pressed=true]{color:var(--ink);text-decoration:underline;text-underline-offset:7px}
 .mobile-category-bar .mobile-catalog-toggle{flex:0 0 44px;font-size:22px;font-weight:400}
 body.mobile-editor-ready #create-view .wardrobe,body.mobile-editor-ready.piece-editing #create-view .wardrobe,body.mobile-editor-ready.face-editing #create-view .wardrobe,body.mobile-editor-ready.editor-expanded #create-view .wardrobe{display:flex!important;flex-direction:column;position:absolute;z-index:30;left:0;right:0;bottom:calc(44px + env(safe-area-inset-bottom));width:100%;max-width:none;height:var(--mobile-sheet-drag-height,38dvh);min-height:0;padding:0 14px 12px;border:1px solid var(--line);border-bottom:0;border-radius:18px 18px 0 0;background:var(--bg);box-shadow:0 -6px 28px #0000000d;transform:translateY(calc(100% + 50px + env(safe-area-inset-bottom)));visibility:hidden;transition:transform .22s ease,visibility .22s;overflow:auto;overscroll-behavior:contain}
 body.mobile-editor-ready[data-catalog-state="1"] #create-view .wardrobe,body.mobile-editor-ready[data-catalog-state="2"] #create-view .wardrobe{transform:translateY(0);visibility:visible}
 body.mobile-editor-ready[data-catalog-state="2"] #create-view .wardrobe{height:var(--mobile-sheet-drag-height,72dvh)}
 .mobile-editor-ready .mobile-sheet-handle{display:grid;place-items:center;align-self:center;width:88px;min-height:30px;flex-shrink:0;touch-action:none;cursor:ns-resize}
 .mobile-sheet-handle span{display:block;width:32px;height:3px;background:#b9bab3;border-radius:4px}
 .mobile-editor-ready .mobile-sheet-title{display:block;font-size:11px;letter-spacing:1px;margin:0 0 6px;font-weight:600}
 body.mobile-editor-ready #create-view .wardrobe .fmf-sources{position:static;width:100%;min-height:36px;flex-shrink:0;margin:0 0 6px;flex-wrap:wrap}
 body.mobile-editor-ready #create-view .fmf-sources select{width:auto;max-width:160px;min-height:36px;font-size:13px;padding:0 3px}
 body.mobile-editor-ready #create-view .dock-heading{padding:0;min-height:32px;margin:0 0 5px;flex-shrink:0;justify-content:flex-end}
 body.mobile-editor-ready #create-view .dock-heading #tabs{display:none}
 body.mobile-editor-ready #create-view .wardrobe-tools .saved-button{min-height:32px;font-size:8px}
 body.mobile-editor-ready #create-view .tray{flex:1;min-height:72px;align-items:flex-start;padding:2px 0 6px;overflow-x:auto;overflow-y:hidden;touch-action:pan-x;gap:9px}
 body.mobile-editor-ready #create-view .thumb{width:88px;height:96px;flex-shrink:0;padding:7px}
 body.mobile-editor-ready[data-catalog-state="2"] #create-view .tray{display:grid;grid-template-columns:repeat(auto-fill,minmax(86px,1fr));align-content:start;overflow:auto;touch-action:pan-y;gap:10px}
 body.mobile-editor-ready[data-catalog-state="2"] #create-view .thumb{width:100%;height:110px}
 .mobile-editor-ready .mobile-catalog-shade:not([hidden]){display:block;position:absolute;z-index:29;inset:0 0 calc(44px + env(safe-area-inset-bottom));background:#0000000a;border:0;padding:0}
 body.mobile-editor-ready #create-view .face-editor{display:none;position:absolute;z-index:26;bottom:calc(50px + env(safe-area-inset-bottom));left:8px;right:8px;top:auto;width:auto;max-height:38dvh;overflow:auto;border:1px solid var(--line);border-radius:12px;padding:10px 14px;background:var(--bg);box-shadow:0 0 25px #0001;overscroll-behavior:contain}
 body.mobile-editor-ready.mobile-properties-open #create-view .face-editor:not([hidden]){display:block}
 body.mobile-editor-ready #create-view #piece-done,body.mobile-editor-ready #create-view #face-done{display:none}
 body.mobile-editor-ready #create-view #layers-panel{position:absolute;z-index:28;top:8px;right:55px;width:min(290px,calc(100% - 65px));max-height:calc(100% - 65px);overflow:auto}
 body.mobile-editor-ready #create-view .swipe-hint{display:none}
 body.mobile-editor-ready.editor-expanded .app{position:fixed;inset:0;z-index:50;width:100%;max-width:none;height:100dvh;padding:env(safe-area-inset-top) 0 0}
 body.mobile-editor-ready.editor-expanded header{display:none!important}
 body.mobile-editor-ready.editor-expanded #create-view{height:100%;flex:1}
 body.mobile-editor-ready .editor-toolbar,body.mobile-editor-ready .mobile-category-bar,body.mobile-editor-ready #create-view .face-editor{transition:opacity .16s ease}
 body.mobile-editor-ready.mobile-gesturing #create-view .editor-toolbar,body.mobile-editor-ready.mobile-gesturing .mobile-category-bar,body.mobile-editor-ready.mobile-gesturing header .header-actions,body.mobile-editor-ready.mobile-gesturing #create-view .face-editor{opacity:0;pointer-events:none}
 body.mobile-editor-ready.mobile-sheet-dragging #create-view .wardrobe{transition:none}
}
@media(prefers-reduced-motion:reduce){.mobile-editor-ready #create-view .wardrobe,.mobile-editor-ready .editor-toolbar,.mobile-editor-ready .mobile-category-bar{transition:none!important}}

@media(max-width:650px){body.mobile-editor-ready:not(.mobile-has-selection) #create-view .editor-toolbar>.mobile-properties-toggle{display:none!important}}

@media(max-width:650px){body.mobile-editor-ready.piece-preparing #create-view #piece-done{display:block}}
@media(max-width:650px){body.mobile-editor-ready.mobile-has-selection #create-view .stage{touch-action:none}}
/* Selection is an alpha boundary attached to the artwork, never a box. */
.piece-handle,.head-handle{border:0!important;background:none!important;box-shadow:none!important}
.piece-handle span,.head-handle span{display:none!important}
.selection-contour{display:none;position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:0}
.fmf-object-selected>.selection-contour{display:block}
.fmf-object-selected>img{position:relative;z-index:1}
.layer-row .layer-select{flex:1;text-align:left;font-size:11px;letter-spacing:.6px}
.layer-row .layer-grip{flex:0 0 44px}
.mobile-context-bar,.mobile-precise-close{display:none}
@media(max-width:650px){
 body.mobile-editor-ready #create-view .editor-toolbar>.mobile-properties-toggle{display:none!important}
 body.mobile-editor-ready .mobile-context-bar:not([hidden]){display:flex;align-items:center;gap:3px;position:absolute;z-index:23;bottom:calc(50px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:calc(100% - 16px);padding:2px 6px 2px 12px;border:1px solid var(--line);border-radius:25px;background:#f8f8f6ef;box-shadow:0 1px 8px #00000006;transition:opacity .15s}
 .mobile-context-label{font-size:9px;letter-spacing:.5px;min-width:42px;white-space:nowrap}
 .mobile-context-bar button{width:38px;min-width:38px;height:38px;padding:0;font-size:19px}
 body.mobile-editor-ready.mobile-gesturing .mobile-context-bar,body.mobile-editor-ready.mobile-properties-open .mobile-context-bar,body.mobile-editor-ready[data-catalog-state="1"] .mobile-context-bar,body.mobile-editor-ready[data-catalog-state="2"] .mobile-context-bar{opacity:0;pointer-events:none}
 .mobile-editor-ready .mobile-precise-close{display:block;font-size:22px;width:36px;height:32px;margin-left:auto}
 body.mobile-editor-ready #create-view .row-arrows,body.mobile-editor-ready #create-view .count-marker{display:none}
 body.mobile-editor-ready.editor-expanded #create-view .editor-toolbar{opacity:.75}
}
