:root{
  --bg:#f4f1ed; --panel:#fffdfb; --ink:#26221f; --muted:#7a726c;
  --line:#e6ddd5; --accent:#22201e; --soft:#efe8e1; --danger:#9a4c4c;
  --radius:24px;
}
*{box-sizing:border-box}html,body{min-height:100%}body{margin:0;background:radial-gradient(circle at 10% 0,#fff 0,#f4f1ed 44%,#eee8e2 100%);color:var(--ink);font-family:Inter,Pretendard,"Noto Sans KR",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
button,input,select{font:inherit}button{cursor:pointer}.hidden{display:none!important}.grow{flex:1}
.app-shell{width:min(1500px,100%);margin:0 auto;padding:12px 16px;min-height:100vh;display:flex;flex-direction:column;gap:10px}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:14px}.eyebrow{font-size:10px;letter-spacing:.16em;font-weight:900;color:#8b7c70;margin-bottom:3px}.topbar h1{font-size:23px;line-height:1.05;margin:0}.topbar h1 span{font-size:11px;font-weight:900;color:#8b7c70;border:1px solid var(--line);padding:3px 7px;border-radius:999px;vertical-align:middle}.top-actions{display:flex;gap:7px;align-items:center}
button,.upload-btn{border:0;border-radius:13px;padding:9px 13px;background:#eee8e2;color:var(--ink);font-weight:850;transition:.18s ease;text-decoration:none}button:hover,.upload-btn:hover{transform:translateY(-1px);filter:brightness(.985)}button:active{transform:translateY(0) scale(.985)}button.ghost{background:#fff;border:1px solid var(--line)}button.primary{background:#26221f;color:#fff}button.danger-soft{background:#f7eaea;color:var(--danger)}button.small{padding:7px 10px;font-size:11px}button.icon{width:38px;padding:8px}.upload-btn{font-size:11px;background:#fff;border:1px solid var(--line);cursor:pointer;white-space:nowrap}
.workspace{display:grid;grid-template-columns:minmax(430px,.96fr) minmax(500px,1.04fr);gap:10px;flex:1;min-height:0}.stage-panel,.closet-panel{background:rgba(255,253,251,.97);border:1px solid rgba(218,206,197,.86);border-radius:var(--radius);box-shadow:0 12px 42px rgba(66,50,38,.06)}
.stage-panel{padding:11px;display:flex;flex-direction:column;min-height:0}.mode-row,.stage-toolbar{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:8px}.segmented{display:flex;background:#f2ede8;padding:3px;border-radius:13px;gap:3px}.segmented button{background:transparent;padding:7px 9px;border-radius:10px;font-size:11px}.segmented button.active{background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.06)}.mode-segment button{min-width:92px}.type-pills{display:flex;gap:5px}.type-pills button{font-size:10px;padding:6px 10px;background:#f4efeb}.type-pills button.active{background:#292522;color:#fff}.toolbar-right{display:flex;align-items:center;gap:7px}.look-badge{font-size:9px;font-weight:900;color:#75685f;background:#f6f0ea;border:1px solid var(--line);border-radius:999px;padding:5px 8px}
.stage-wrap{position:relative;display:grid;place-items:center;flex:1;min-height:390px;background:linear-gradient(180deg,#f9f7f4,#f0ebe6);border-radius:20px;overflow:hidden;border:1px solid #eee5de}.stage-wrap.dragover{outline:3px dashed #9f8d7f;outline-offset:-10px}.stage-wrap svg{height:min(60vh,560px);width:100%;max-width:470px;display:block;touch-action:none;user-select:none}.drop-hint{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);font-size:9px;color:#91847a;background:rgba(255,255,255,.84);border:1px solid rgba(230,221,213,.8);padding:5px 9px;border-radius:999px;backdrop-filter:blur(8px);white-space:nowrap;pointer-events:none}.tryon-status{position:absolute;top:10px;left:50%;transform:translateX(-50%);max-width:92%;font-size:10px;font-weight:850;padding:7px 10px;border-radius:999px;background:rgba(38,34,31,.86);color:#fff;backdrop-filter:blur(8px);z-index:5}
.edit-card{margin-top:7px;padding:8px 9px;border:1px solid var(--line);border-radius:16px;background:#fbf8f5}.edit-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px}.edit-head>div{display:flex;flex-direction:column;gap:1px}.edit-head strong{font-size:11px}.edit-head span{font-size:9px;color:var(--muted)}.transform-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.transform-grid label{font-size:9px;font-weight:800;color:#675e57;display:flex;flex-direction:column;gap:2px}.transform-grid input{width:100%;accent-color:#302b27}
.quick-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:7px}.color-control{display:flex;align-items:center;gap:7px;color:#625a54;font-size:10px;font-weight:850}.color-control input{width:38px;height:29px;padding:2px;border:1px solid var(--line);border-radius:9px;background:#fff}.quick-actions{display:flex;gap:6px}
.closet-panel{padding:11px;display:flex;flex-direction:column;min-height:0}.right-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;background:#f3eee9;padding:4px;border-radius:15px;margin-bottom:9px}.right-tabs button{padding:8px;background:transparent;font-size:11px}.right-tabs button.active{background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.06)}.right-view{display:flex;flex-direction:column;min-height:0;flex:1}
.filter-bar{display:grid;grid-template-columns:1fr 1fr auto;gap:6px;margin-bottom:8px}.filter-bar label,.tryon-form label,.profile-grid label{font-size:9px;font-weight:850;color:#6d635b;display:flex;flex-direction:column;gap:3px}.filter-bar select,.tryon-form select,.tryon-form input,.profile-grid select,.profile-grid input{width:100%;border:1px solid var(--line);border-radius:9px;padding:7px;background:#fff;color:#2d2824;outline:none}.filter-bar button{align-self:end}
.category-tabs{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;margin-bottom:9px}.category-tabs button{background:#f3eee9;padding:8px 4px;font-size:9px}.category-tabs button.active{background:#282421;color:#fff}.closet-head,.panel-title-row{display:flex;align-items:end;justify-content:space-between;gap:10px;margin-bottom:8px}.section-title{font-size:17px;font-weight:900}.section-desc{font-size:10px;color:var(--muted);margin-top:2px}.count-pill{min-width:28px;height:28px;border-radius:999px;display:grid;place-items:center;background:#f2ede8;color:#7b7067;font-size:10px;font-weight:900}
.face-detail{padding:9px;border:1px solid var(--line);border-radius:15px;background:#faf8f5;margin-bottom:8px}.detail-title{font-size:10px;font-weight:900;margin-bottom:6px}.face-controls{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.face-controls label{font-size:9px;font-weight:800;color:#6d635b;display:flex;flex-direction:column;gap:3px}.face-controls select{width:100%;border:1px solid var(--line);border-radius:9px;padding:7px;background:#fff;color:#2d2824;outline:none}
.item-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;overflow:auto;padding:2px 2px 8px;align-content:start;min-height:180px;max-height:55vh}.item-card{position:relative;min-height:111px;border:1px solid var(--line);border-radius:15px;background:#fff;overflow:hidden;padding:7px;text-align:left;display:flex;flex-direction:column;gap:4px}.item-card:hover{border-color:#c9bbb0;box-shadow:0 8px 20px rgba(68,48,34,.07)}.item-card.selected{border:2px solid #2e2925;padding:6px}.item-card .preview{height:60px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(145deg,#faf7f4,#eee7e1);position:relative;overflow:hidden}.item-card .preview svg{width:58px;height:58px}.item-name{font-size:9px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item-meta{font-size:8px;color:#8f8379;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tag-row{display:flex;gap:3px;overflow:hidden}.mini-tag{font-size:7px;padding:2px 4px;background:#f4efe9;border-radius:999px;color:#81736a;white-space:nowrap}.drag-badge{position:absolute;right:5px;top:5px;background:rgba(255,255,255,.88);border:1px solid var(--line);font-size:7px;padding:2px 4px;border-radius:999px;color:#87786d;z-index:1}
.body-type-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:10px}.body-type-cards button{background:#faf7f4;border:1px solid var(--line);display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:8px;text-align:left;align-items:center}.body-type-cards button.active{border:2px solid #2e2925}.body-type-cards span{grid-row:1/3;font-size:24px}.body-type-cards strong{font-size:11px}.body-type-cards small{font-size:8px;color:var(--muted)}.body-sliders{display:grid;gap:9px;padding:12px;border:1px solid var(--line);border-radius:17px;background:#fbf8f5}.body-sliders label{display:grid;grid-template-columns:120px 1fr;gap:8px;align-items:center}.body-sliders span{font-size:10px;font-weight:850}.body-sliders input{width:100%;accent-color:#2d2824}.body-summary{margin-top:9px;padding:10px;border-radius:14px;background:#2c2825;color:#fff;font-size:10px;line-height:1.5}.profile-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.body-profile{margin-top:9px}
.bridge-badge{display:inline-block;font-size:8px;font-weight:950;letter-spacing:.08em;background:#2c2825;color:#fff;border-radius:999px;padding:5px 8px}.upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:9px}.drop-card{border:1px dashed #cbbcaf;border-radius:16px;padding:13px;background:#faf6f2;cursor:pointer;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:9px}.drop-card span{grid-row:1/3;width:30px;height:30px;border-radius:999px;background:#2e2925;color:#fff;display:grid;place-items:center;font-weight:900}.drop-card strong{font-size:11px}.drop-card small{font-size:9px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tryon-form{display:grid;grid-template-columns:.7fr 1.3fr;gap:7px}.tryon-actions{display:flex;gap:7px;margin-top:9px}.tryon-guide{margin-top:10px;border:1px solid var(--line);border-radius:15px;padding:11px;background:#fbf9f7}.tryon-guide strong{display:block;font-size:10px;margin-top:6px}.tryon-guide strong:first-child{margin-top:0}.tryon-guide p{font-size:9px;line-height:1.5;color:#746960;margin:3px 0}.tryon-guide code{font-size:8px;background:#eee8e2;padding:1px 4px;border-radius:5px}.privacy-note{margin-top:8px;padding:8px;border-radius:12px;background:#f2eee9;color:#786c63;font-size:9px;line-height:1.45}
.toast{position:fixed;left:50%;bottom:20px;transform:translate(-50%,24px);opacity:0;background:#282421;color:#fff;padding:10px 14px;border-radius:12px;font-size:11px;font-weight:800;pointer-events:none;transition:.25s;z-index:20}.toast.show{opacity:1;transform:translate(-50%,0)}[data-edit-cat]{cursor:grab}[data-edit-cat]:active{cursor:grabbing}
@media(max-width:1000px){.app-shell{padding:10px}.workspace{grid-template-columns:1fr;overflow:visible}.stage-panel{min-height:700px}.stage-wrap{min-height:470px}.stage-wrap svg{height:500px}.closet-panel{min-height:590px}.item-grid{grid-template-columns:repeat(5,minmax(0,1fr));max-height:none}}
@media(max-width:680px){.topbar{align-items:flex-start}.topbar h1{font-size:19px}.top-actions{gap:4px}.top-actions button{padding:8px 9px}.mode-row,.stage-toolbar{align-items:stretch;flex-direction:column}.mode-segment{width:100%}.mode-segment button{flex:1;min-width:0}.upload-btn{text-align:center}.toolbar-right{justify-content:space-between}.stage-panel{min-height:680px}.stage-wrap{min-height:400px}.stage-wrap svg{height:410px}.drop-hint{display:none}.transform-grid{grid-template-columns:repeat(2,1fr)}.category-tabs{grid-template-columns:repeat(5,1fr);gap:4px}.category-tabs button{font-size:8px;padding:7px 2px}.item-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.item-card{min-height:106px}.face-controls,.profile-grid{grid-template-columns:1fr 1fr 1fr}.body-sliders label{grid-template-columns:95px 1fr}.tryon-form{grid-template-columns:1fr}.look-badge{display:none}}


/* V4: mannequin depth, pose recognition, commerce */
.cart-top{display:flex;align-items:center;gap:5px}.cart-top span,#shopMiniBadge{display:inline-grid;place-items:center;min-width:18px;height:18px;border-radius:999px;background:#292522;color:#fff;font-size:9px;padding:0 5px}.right-tabs button.active #shopMiniBadge{background:#d48b7f}.pose-actions{flex-wrap:wrap}.pose-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:8px;padding:8px 9px;border:1px solid var(--line);border-radius:13px;background:#faf7f4}.pose-status{font-size:9px;line-height:1.45;color:#6f655d}.pose-status.ok{color:#2d7254;font-weight:850}.pose-status.loading{color:#855d21;font-weight:850}.pose-status.error{color:#9a5049}.switch-label,.wish-only{font-size:9px;font-weight:850;color:#6c625a;display:flex;align-items:center;gap:5px;white-space:nowrap}.switch-label input,.wish-only input{accent-color:#2d2925}
#poseOverlayLayer{pointer-events:none}.shop-controls{display:grid;grid-template-columns:1.3fr .75fr auto;gap:6px;margin-bottom:9px}.shop-controls input[type=search],.shop-controls select{border:1px solid var(--line);border-radius:10px;padding:8px;background:#fff;outline:none;font-size:10px}.wish-only{padding:0 8px;border:1px solid var(--line);border-radius:10px;background:#faf7f4}.shop-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;overflow:auto;max-height:37vh;padding:1px 2px 9px}.product-card{border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden;display:flex;flex-direction:column}.product-visual{height:106px;background:linear-gradient(145deg,#faf7f4,#ebe3dc);display:grid;place-items:center;position:relative}.product-visual svg{width:83px;height:83px}.wish-btn{position:absolute;right:7px;top:7px;width:27px;height:27px;border-radius:999px;background:rgba(255,255,255,.9);border:1px solid var(--line);padding:0;font-size:14px}.wish-btn.active{background:#302b27;color:#fff}.product-body{padding:8px;display:flex;flex-direction:column;gap:4px}.product-brand{font-size:7px;font-weight:950;letter-spacing:.08em;color:#9b8173}.product-name{font-size:10px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-row{display:flex;justify-content:space-between;align-items:center;gap:4px}.product-price{font-size:11px;font-weight:950}.product-sku{font-size:7px;color:#9c9087}.product-actions{display:grid;grid-template-columns:.7fr 1.3fr;gap:4px;margin-top:3px}.product-actions select{min-width:0;border:1px solid var(--line);border-radius:8px;padding:6px 4px;background:#fff;font-size:8px}.product-actions button{padding:6px 4px;font-size:8px}.product-link{display:block;text-align:center;font-size:8px;color:#74665c;padding:4px 0 1px}.cart-panel{margin-top:9px;border:1px solid var(--line);border-radius:16px;background:#fbf8f5;padding:10px}.cart-head{display:flex;justify-content:space-between;align-items:center}.cart-head>div{display:flex;align-items:baseline;gap:7px}.cart-head strong{font-size:12px}.cart-head span{font-size:8px;color:var(--muted)}.cart-list{display:grid;gap:5px;margin:7px 0;max-height:105px;overflow:auto}.cart-item{display:grid;grid-template-columns:1fr auto auto;gap:6px;align-items:center;font-size:9px;padding:6px 7px;background:#fff;border-radius:9px}.cart-item small{color:var(--muted)}.cart-item button{padding:3px 6px;font-size:8px;background:#f3eee9}.cart-total{display:flex;justify-content:space-between;align-items:center;padding-top:7px;border-top:1px dashed #d8cec6}.cart-total span{font-size:9px}.cart-total strong{font-size:15px}.checkout-btn{width:100%;margin-top:7px}.shop-note{font-size:8px;color:#8a7e75;line-height:1.4;margin-top:6px}.empty-shop{grid-column:1/-1;padding:25px;text-align:center;color:#8b7e75;font-size:10px}
.stage-wrap::after{content:'3D MANNEQUIN · V4';position:absolute;right:10px;top:10px;font-size:7px;font-weight:950;letter-spacing:.12em;color:rgba(63,53,47,.42);pointer-events:none}
@media(max-width:680px){.shop-controls{grid-template-columns:1fr 1fr}.wish-only{grid-column:1/-1;padding:8px}.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none}.pose-row{align-items:flex-start;flex-direction:column}.pose-actions button{flex:1}.right-tabs button{font-size:9px;padding:8px 2px}}

/* ========================= V5 ========================= */
.right-tabs{grid-template-columns:repeat(5,1fr)}
.stage-wrap::after{content:'REAL 3D STYLE LAB · V9'}
.spin-card{border:1px solid var(--line);border-radius:15px;background:#fbf8f5;padding:8px 10px;margin-bottom:8px}.spin-card.disabled{opacity:.45;pointer-events:none}.spin-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:7px}.spin-head>div{display:flex;align-items:baseline;gap:8px}.spin-head strong{font-size:10px}.spin-head span{font-size:8px;color:var(--muted)}.spin-controls{display:grid;grid-template-columns:auto auto 1fr auto auto;gap:5px;align-items:center}.spin-controls input{width:100%;accent-color:#2d2824}.v5-tryon-form{grid-template-columns:.65fr .9fr 1.45fr}
.daily-look-card,.wardrobe-add-card{border:1px solid var(--line);border-radius:16px;background:#fbf8f5;padding:10px;margin-bottom:9px}.daily-look-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.daily-look-head>div{display:flex;flex-direction:column;gap:2px}.daily-look-head small{font-size:8px;color:var(--muted)}.daily-look-head strong{font-size:12px}.wardrobe-filters{display:grid;grid-template-columns:1fr 1fr;gap:7px}.wardrobe-filters label,.wardrobe-add-grid label{font-size:9px;font-weight:850;color:#6d635b;display:flex;flex-direction:column;gap:3px}.wardrobe-filters select,.wardrobe-add-grid select,.wardrobe-add-grid input{width:100%;border:1px solid var(--line);border-radius:9px;padding:7px;background:#fff;color:#2d2824;outline:none}.daily-reco-result{margin-top:8px;padding:9px;border-radius:12px;background:#fff;border:1px dashed #d9cec6;color:#746960;font-size:9px;line-height:1.45;min-height:48px}.daily-reco-result small{display:block;margin-top:6px;color:#95887f}.reco-strip{display:flex;gap:6px;overflow:auto;padding-bottom:2px}.reco-chip{min-width:72px;max-width:82px;background:#f6f1ec;border-radius:10px;padding:5px}.reco-chip img{width:100%;height:54px;object-fit:contain;border-radius:7px;background:#fff}.reco-chip span{display:block;font-size:8px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}.wardrobe-add-grid{display:grid;grid-template-columns:1.25fr 1fr .8fr .8fr .8fr auto;gap:6px;align-items:end}.wardrobe-photo{border:1px dashed #cbbcaf;border-radius:11px;padding:7px;background:#fff;cursor:pointer;display:grid!important;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:7px}.wardrobe-photo span{grid-row:1/3;width:26px;height:26px;border-radius:999px;background:#2d2925;color:#fff;display:grid;place-items:center;font-size:15px}.wardrobe-photo strong{font-size:9px}.wardrobe-photo small{font-size:7px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wardrobe-tools{display:flex;justify-content:space-between;align-items:center;margin-top:7px}.wardrobe-tools span{font-size:9px;color:var(--muted);font-weight:850}.wardrobe-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;overflow:auto;max-height:43vh;padding:1px 2px 8px}.wardrobe-item{border:1px solid var(--line);border-radius:15px;background:#fff;overflow:hidden}.wardrobe-img{height:116px;background:linear-gradient(145deg,#faf7f4,#eee7e1);display:grid;place-items:center}.wardrobe-img img{width:100%;height:100%;object-fit:contain}.wardrobe-item-body{padding:8px}.wardrobe-item-body strong{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wardrobe-item-body small{display:block;font-size:7px;color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wardrobe-item-actions{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-top:7px}.empty-wardrobe{grid-column:1/-1;border:1px dashed #d9cec6;border-radius:15px;padding:28px;text-align:center;font-size:10px;line-height:1.6;color:#887c73;background:#fbf9f7}
@media(max-width:860px){.wardrobe-add-grid{grid-template-columns:1fr 1fr 1fr}.wardrobe-photo{grid-column:span 2}.wardrobe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v5-tryon-form{grid-template-columns:1fr 1fr}.v5-tryon-form label:last-child{grid-column:1/-1}}
@media(max-width:680px){.right-tabs{grid-template-columns:repeat(5,1fr)}.spin-controls{grid-template-columns:auto auto 1fr auto auto}.spin-controls button{padding:6px;font-size:8px}.wardrobe-add-grid{grid-template-columns:1fr 1fr}.wardrobe-photo{grid-column:1/-1}.wardrobe-add-grid button{grid-column:1/-1}.wardrobe-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none}.v5-tryon-form{grid-template-columns:1fr}.v5-tryon-form label:last-child{grid-column:auto}.daily-look-head{align-items:flex-start}.daily-look-head button{white-space:nowrap}}


/* ========================= V6 · REAL 3D + SMART CLOSET ========================= */
.stage-wrap{isolation:isolate}.three-stage{position:absolute;inset:0;border-radius:34px;overflow:hidden;background:radial-gradient(circle at 50% 28%,#fff 0,#f3eee9 38%,#ddd4cc 100%);opacity:0;pointer-events:none;transition:opacity .2s ease;z-index:1}.three-stage canvas{width:100%;height:100%;display:block;touch-action:none}.stage-wrap.v6-3d .three-stage{opacity:1;pointer-events:auto}.stage-wrap.v6-3d #dollSvg{opacity:0;pointer-events:none}.three-hint{position:absolute;left:12px;bottom:12px;background:rgba(255,255,255,.78);backdrop-filter:blur(8px);border:1px solid rgba(120,105,95,.16);border-radius:999px;padding:6px 9px;font-size:8px;font-weight:850;color:#665a52;pointer-events:none}.three-status{position:absolute;right:12px;bottom:12px;border-radius:999px;padding:6px 9px;font-size:8px;font-weight:900;background:rgba(45,41,37,.82);color:#fff;pointer-events:none}.three-status.ready{background:rgba(38,105,75,.86)}.three-status.error{background:rgba(151,70,65,.88)}.spin-head-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.spin-card .primary.small{padding:6px 9px}.wardrobe-insight-card{border:1px solid var(--line);border-radius:16px;background:linear-gradient(145deg,#fbf8f5,#f2ece6);padding:10px;margin-bottom:9px}.insight-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.insight-head>div{display:flex;flex-direction:column;gap:2px}.insight-head small{font-size:7px;letter-spacing:.12em;font-weight:950;color:#a17e6e}.insight-head strong{font-size:12px}.insight-head>span{font-size:8px;font-weight:900;padding:5px 8px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#766a62}.insight-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:8px}.wardrobe-insight-result{margin-top:8px;min-height:48px;border-radius:12px;border:1px dashed #d5c9c0;background:#fff;padding:9px;font-size:9px;line-height:1.5;color:#71665e}.insight-chips{display:flex;gap:6px;overflow:auto;padding:2px 0}.insight-chip{min-width:86px;border:1px solid #e4dad2;border-radius:11px;padding:6px;background:#faf7f4}.insight-chip img{width:100%;height:58px;object-fit:contain;border-radius:8px;background:#fff}.insight-chip strong{display:block;font-size:8px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.insight-chip small{display:block;font-size:7px;color:#8e8178;margin-top:2px}.color-dot{display:inline-block;width:12px;height:12px;border-radius:999px;border:1px solid rgba(0,0,0,.14);vertical-align:-2px;margin-right:4px}.pending-color-row{display:flex;align-items:center;gap:6px;font-size:8px;color:#82766e;margin-top:7px;padding:6px 7px;background:#fff;border:1px dashed #ddd2ca;border-radius:10px}.pending-color-row i{display:block;width:17px;height:17px;border-radius:999px;border:1px solid rgba(0,0,0,.13);background:#eee}.pending-color-row b{font-size:8px;color:#5f554e}.wardrobe-meta-row{display:flex;align-items:center;gap:5px;margin-top:4px;flex-wrap:wrap}.wardrobe-meta-row em{font-style:normal;font-size:7px;padding:3px 5px;border-radius:999px;background:#f3eee9;color:#71665d}.wardrobe-item-actions.v6{grid-template-columns:1fr 1fr 1fr}.v6-worn-btn.done{background:#e7f2eb;color:#2f7050}.closet-score{display:flex;gap:7px;flex-wrap:wrap;margin-top:6px}.closet-score span{font-size:8px;border-radius:999px;background:#f5f0eb;padding:4px 6px}.capsule-summary{font-size:8px;color:#8b7e75;margin-top:6px}.three-fallback{display:none}
@media(max-width:680px){.spin-head{align-items:flex-start;flex-direction:column}.spin-head-actions{width:100%;justify-content:flex-start}.insight-actions{grid-template-columns:1fr 1fr}.three-hint{display:none}.wardrobe-item-actions.v6{grid-template-columns:1fr 1fr}.wardrobe-item-actions.v6 .v6-worn-btn{grid-column:1/-1}}

/* ========================= V7 · DUAL EXPERIENCE + MOTION + SHOPPING COACH ========================= */
.stage-wrap::after{content:'MOTION 3D STYLE LAB · V9'}
.entry-gate{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 50% 18%,rgba(255,255,255,.98),rgba(236,228,221,.97) 52%,rgba(210,198,188,.98));backdrop-filter:blur(12px)}
.entry-gate.hidden{display:none}.entry-card{width:min(780px,96vw);border:1px solid rgba(108,92,81,.16);border-radius:32px;padding:32px;background:rgba(255,255,255,.86);box-shadow:0 28px 90px rgba(74,60,51,.18);text-align:center}.entry-brand{font-size:9px;letter-spacing:.18em;font-weight:950;color:#a07968}.entry-card h2{margin:8px 0 7px;font-size:clamp(24px,5vw,42px);letter-spacing:-.04em}.entry-card>p{margin:0 auto 22px;color:#74675f;font-size:12px}.entry-options{display:grid;grid-template-columns:1fr 1fr;gap:14px}.entry-option{border:0;border-radius:24px;padding:24px 18px;display:flex;flex-direction:column;align-items:center;gap:7px;cursor:pointer;transition:.2s transform,.2s box-shadow}.entry-option:hover{transform:translateY(-3px);box-shadow:0 16px 34px rgba(60,48,42,.12)}.entry-option.kids{background:linear-gradient(145deg,#fff5e8,#f7dfc8)}.entry-option.real{background:linear-gradient(145deg,#eee9ff,#ddd8f4)}.entry-icon{font-size:42px}.entry-option strong{font-size:20px}.entry-option em{font-style:normal;font-size:10px;color:#776b63}.entry-continue{margin-top:15px}.audience-switch{display:flex;padding:3px;background:#eee7e1;border-radius:999px}.audience-switch button{border:0;background:transparent;border-radius:999px;padding:6px 9px;font-size:8px;font-weight:950;color:#8a7b71;cursor:pointer}.audience-switch button.active{background:#2d2925;color:#fff}.motion-row{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-top:8px;padding-top:8px;border-top:1px dashed #ddd1c8}.pose-pills,.motion-actions{display:flex;gap:5px;flex-wrap:wrap}.pose-pills button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:6px 8px;font-size:8px;font-weight:900;cursor:pointer}.pose-pills button.active{background:#2d2925;color:#fff;border-color:#2d2925}.motion-actions .motion-active{background:#5c4b72!important;color:#fff!important;border-color:#5c4b72!important}.insight-actions{grid-template-columns:repeat(5,1fr)}.shopping-coach-result{margin-top:8px}.coach-summary{display:flex;flex-direction:column;gap:3px;padding:8px 9px;border-radius:11px;background:#f7f2ed}.coach-summary b{font-size:9px}.coach-summary span{font-size:7px;color:#85776e}.coach-mini-grid,.shop-coach-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:8px}.coach-card{display:grid;grid-template-columns:82px 1fr;border:1px solid #e0d6ce;border-radius:13px;overflow:hidden;background:#fff}.coach-visual{min-height:88px;background:linear-gradient(145deg,#f9f5f1,#eee7e1);display:grid;place-items:center}.coach-visual svg{width:78px;height:82px}.coach-body{padding:8px;min-width:0}.coach-body small{display:block;font-size:7px;color:#a17b69;font-weight:950}.coach-body strong{display:block;font-size:9px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.coach-body p{font-size:7px;line-height:1.35;color:#756960;margin:5px 0}.coach-body>div{display:flex;justify-content:space-between;gap:6px;align-items:center}.coach-body b{font-size:9px}.ai-shop-coach{border:1px solid var(--line);border-radius:15px;padding:10px;margin-bottom:8px;background:linear-gradient(135deg,#f5f1ff,#fbf8f5);display:flex;justify-content:space-between;gap:10px;align-items:center}.ai-shop-coach>div{display:flex;flex-direction:column;gap:2px}.ai-shop-coach small{font-size:7px;letter-spacing:.12em;font-weight:950;color:#79669a}.ai-shop-coach strong{font-size:12px}.ai-shop-coach p{font-size:8px;color:#786d66;margin:2px 0 0;line-height:1.35}
body[data-audience="kids"] #cartTopBtn,body[data-audience="kids"] .upload-btn,body[data-audience="kids"] .mode-segment [data-mode="photo"],body[data-audience="kids"] .mode-segment [data-mode="tryon"],body[data-audience="kids"] #rightTabs [data-right-tab="tryon"],body[data-audience="kids"] #rightTabs [data-right-tab="wardrobe"],body[data-audience="kids"] #rightTabs [data-right-tab="shop"]{display:none!important}body[data-audience="kids"] .right-tabs{grid-template-columns:1fr 1fr}body[data-audience="kids"] .eyebrow::after{content:' · KIDS DOLL'}body[data-audience="real"] .eyebrow::after{content:' · REAL FASHION'}
@media(max-width:760px){.entry-card{padding:22px 15px;border-radius:24px}.entry-options{grid-template-columns:1fr}.entry-option{padding:16px}.entry-icon{font-size:32px}.motion-row{align-items:flex-start;flex-direction:column}.insight-actions{grid-template-columns:1fr 1fr}.insight-actions #shoppingCoachBtn{grid-column:1/-1}.coach-mini-grid,.shop-coach-cards{grid-template-columns:1fr}.ai-shop-coach{align-items:flex-start;flex-direction:column}.coach-card{grid-template-columns:74px 1fr}}

.coach-buttons{display:flex;gap:4px;align-items:center;flex-wrap:wrap}.coach-buttons .small{padding:5px 7px}

/* ========================= V9 · ONE-SCREEN UX + REALISTIC MODEL + KIDS EXPANSION ========================= */
.stage-wrap::after{content:'REALISTIC 3D STYLE LAB · V9'}
.kids-quick-strip{display:none;gap:5px;align-items:center;margin:0 0 8px;overflow:auto;padding:2px 0 1px;scrollbar-width:none}.kids-quick-strip::-webkit-scrollbar{display:none}.kids-quick-strip button{flex:0 0 auto;border:1px solid #ead8cb;background:#fff8ef;color:#5f5148;border-radius:999px;padding:7px 10px;font-size:9px;font-weight:900;cursor:pointer}.kids-quick-strip button:hover{transform:translateY(-1px)}.kids-quick-strip .kids-surprise{background:linear-gradient(135deg,#ffe1b8,#f8cdd9);border-color:#e7bcae}
body[data-audience="kids"] .kids-quick-strip{display:flex}body[data-audience="kids"] .mode-row{display:none}body[data-audience="kids"] .spin-card{padding:7px 9px;margin-bottom:7px}body[data-audience="kids"] .spin-head{margin-bottom:5px}body[data-audience="kids"] .spin-head-actions #reset3DCameraBtn{display:none}body[data-audience="kids"] .edit-card{padding:7px 8px}body[data-audience="kids"] .quick-controls{margin-top:5px}
.three-stage{background:radial-gradient(circle at 50% 22%,#fffefa 0,#f5efe9 37%,#ded5ce 72%,#cfc5bd 100%)}.three-stage::before{content:'';position:absolute;inset:0;background:linear-gradient(120deg,rgba(255,255,255,.36),transparent 33%,rgba(120,104,95,.06) 72%,transparent);pointer-events:none;z-index:0}.three-stage canvas{position:relative;z-index:1}.three-hint,.three-status{z-index:2}
@media(min-width:1001px){
  .app-shell{height:100vh;min-height:720px;overflow:hidden;padding:9px 12px;gap:7px}.topbar{min-height:42px}.workspace{grid-template-columns:minmax(520px,1.08fr) minmax(470px,.92fr);gap:8px;min-height:0;overflow:hidden}.stage-panel,.closet-panel{border-radius:20px;overflow:hidden}.stage-panel{padding:9px}.closet-panel{padding:9px}.stage-wrap{min-height:0;height:clamp(310px,43vh,485px);flex:none}.stage-wrap svg{height:100%;max-height:100%}.spin-card{padding:6px 8px;margin-bottom:6px}.spin-head{margin-bottom:5px}.motion-row{margin-top:5px;padding-top:5px}.edit-card{margin-top:5px;padding:6px 8px}.edit-head{margin-bottom:4px}.quick-controls{margin-top:5px}.right-tabs{margin-bottom:7px}.item-grid{max-height:none;min-height:0;flex:1;overflow:auto;grid-template-columns:repeat(4,minmax(0,1fr))}.right-view{overflow:hidden}.filter-bar,.closet-head{flex:0 0 auto}.category-tabs{flex:0 0 auto}
}
@media(max-width:1000px){.workspace{grid-template-columns:1fr}.stage-panel{min-height:auto}.stage-wrap{min-height:440px}.closet-panel{min-height:560px}.item-grid{max-height:none}}
@media(max-width:680px){
  .app-shell{padding:7px}.topbar{gap:7px}.top-actions{flex-wrap:wrap;justify-content:flex-end}.audience-switch{order:2}.stage-panel{padding:8px}.stage-toolbar{margin-bottom:6px}.kids-quick-strip{margin-bottom:6px}.spin-controls{grid-template-columns:auto 1fr auto}.spin-controls button[data-spin-preset="-90"],.spin-controls button[data-spin-preset="90"]{display:none}.spin-card{padding:6px}.motion-row{gap:5px}.pose-pills button,.motion-actions button{padding:6px 7px}.stage-wrap{min-height:365px;height:46vh}.stage-wrap svg{height:100%}.edit-head span{font-size:8px}.transform-grid{gap:5px}.quick-controls{position:sticky;bottom:0;z-index:20;background:rgba(255,253,251,.94);backdrop-filter:blur(10px);padding:5px 0 2px}.item-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.item-card{min-height:112px}.item-card .preview{height:64px}.face-controls{grid-template-columns:1fr}.face-controls label{display:grid;grid-template-columns:48px 1fr;align-items:center;gap:7px}
}
@media(max-width:680px){
  body[data-audience="kids"] .stage-toolbar{flex-direction:row;align-items:center;margin-bottom:5px}
  body[data-audience="kids"] .toolbar-right #randomBtn{display:none}
  body[data-audience="kids"] .spin-card .spin-controls,body[data-audience="kids"] .spin-card .motion-row{display:none}
  body[data-audience="kids"] .spin-card{margin-bottom:5px}
  body[data-audience="kids"] .spin-head{margin:0;align-items:center;flex-direction:row}
  body[data-audience="kids"] .stage-wrap{height:380px;min-height:380px;flex:none}
}

/* ========================= V9 FINAL · CHARACTER + DRESS ROOM + GAME + LOADING ========================= */
.app-loader{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;background:linear-gradient(145deg,#f8f0ec,#ebe4ef);transition:.28s opacity,.28s visibility}.app-loader.hidden{opacity:0;visibility:hidden;pointer-events:none}.loader-card{width:min(420px,calc(100vw - 36px));background:#fffdfb;border:1px solid #e7ddd8;border-radius:28px;padding:28px;text-align:center;box-shadow:0 22px 70px #4c344522}.loader-logo{font-size:42px}.loader-card strong{display:block;font-size:19px;margin:6px 0 15px}.loader-card p{margin:10px 0 0;color:#766b66;font-size:13px;line-height:1.5}.loader-bar{height:8px;border-radius:99px;background:#eee7e4;overflow:hidden}.loader-bar i{display:block;height:100%;width:8%;background:linear-gradient(90deg,#cf8d9f,#8d86bf);border-radius:inherit;transition:.3s width}
.character-maker{padding:14px;border:1px solid #eadfd9;border-radius:18px;background:linear-gradient(135deg,#fffaf7,#faf7ff);margin-bottom:14px}.maker-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.maker-head small{display:block;color:#9d7180;font-size:10px;font-weight:800;letter-spacing:.08em}.maker-head strong{font-size:16px}.maker-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.maker-grid>label,.maker-field{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700}.maker-grid select,.maker-grid input[type=color]{width:100%;min-height:40px;border:1px solid #ddd2cc;border-radius:11px;background:white;padding:7px}.maker-pills{display:flex;flex-wrap:wrap;gap:6px}.maker-pills button{border:1px solid #e0d6d1;background:#fff;border-radius:999px;padding:7px 9px;font-size:11px;cursor:pointer}.maker-pills button.active{background:#4e4542;color:white;border-color:#4e4542}
.dressroom-wall{border-radius:22px;background:linear-gradient(#f6eadc 0 45%,#e9d6c1 45% 48%,#f8f2eb 48%);border:1px solid #e7d8c8;padding:18px;min-height:420px}.closet-rail{position:relative;padding-top:24px}.closet-rail:before{content:"";position:absolute;left:5px;right:5px;top:28px;height:6px;border-radius:6px;background:linear-gradient(90deg,#a67f61,#7d604c,#a67f61);box-shadow:0 5px 9px #5c422333}.rail-label{font-size:11px;font-weight:800;color:#765843}.dressroom-rail{display:flex;gap:10px;overflow-x:auto;padding:18px 2px 15px;scroll-snap-type:x proximity}.hanger-card{position:relative;flex:0 0 118px;border:1px solid #e0d2c4;background:#fffdf9;border-radius:17px;padding:10px;cursor:grab;box-shadow:0 8px 18px #60422913;scroll-snap-align:start}.hanger-card:before{content:"⌒";position:absolute;top:-18px;left:0;right:0;text-align:center;font-size:29px;color:#8b6b50}.hanger-card .preview{height:75px}.hanger-card strong{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hanger-card small{font-size:9px;color:#91827a}.hanger-card:active{cursor:grabbing;transform:scale(.98)}.dressroom-bins{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}.dress-bin{background:#ffffffc9;border:1px solid #e7ddd6;border-radius:14px;padding:9px;text-align:center;font-size:11px;font-weight:700}.dressroom-tip{margin-top:10px;padding:10px 12px;border-radius:12px;background:#f7f2ed;color:#71655e;font-size:11px;line-height:1.5}
.mission-card,.fashion-show-card{border:1px solid #e8ddd8;background:linear-gradient(135deg,#fff8f2,#f7f4ff);border-radius:20px;padding:16px}.mission-card small,.fashion-show-card small{color:#a46d80;font-weight:800;letter-spacing:.06em}.mission-card strong,.fashion-show-card strong{display:block;font-size:18px;margin:4px 0}.mission-card p,.fashion-show-card p{font-size:12px;color:#766b66;line-height:1.5}.mission-actions{display:flex;gap:8px}.mission-actions .primary{flex:1}.game-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}.game-grid section{border:1px solid #e9dfda;border-radius:18px;padding:12px;background:#fff}.game-subhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px;font-size:12px}.sticker-book{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.sticker{aspect-ratio:1;display:grid;place-items:center;border-radius:14px;background:#f3efed;font-size:25px;filter:grayscale(1);opacity:.35}.sticker.unlocked{filter:none;opacity:1;background:#fff2c8;box-shadow:inset 0 0 0 1px #f0d887}.fashion-album{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;min-height:78px}.album-photo{position:relative;border-radius:10px;overflow:hidden;background:#eee;aspect-ratio:3/4}.album-photo img{width:100%;height:100%;object-fit:cover}.album-photo button{position:absolute;right:3px;top:3px;border:0;border-radius:50%;width:20px;height:20px;background:#fff9;font-size:11px}.fashion-show-card{display:flex;align-items:center;justify-content:space-between;gap:12px}.fashion-show-card p{margin-bottom:0}
body[data-audience="real"] .kids-only-tab{display:none!important}body[data-audience="real"] #dressroomView,body[data-audience="real"] #gameView{display:none!important}body[data-audience="kids"] .character-maker{display:block}body[data-audience="real"] .character-maker{display:none}.right-tabs{overflow-x:auto;scrollbar-width:none}.right-tabs::-webkit-scrollbar{display:none}.right-tabs button{flex:0 0 auto}
.load-slow-banner{position:fixed;left:50%;top:14px;transform:translateX(-50%);z-index:9998;background:#3f3936;color:#fff;border-radius:999px;padding:9px 15px;font-size:11px;box-shadow:0 8px 30px #0002;display:none}.load-slow-banner.show{display:block}
@media(max-width:700px){.maker-grid{grid-template-columns:1fr}.game-grid{grid-template-columns:1fr}.dressroom-wall{min-height:330px;padding:13px}.hanger-card{flex-basis:105px}.sticker-book{grid-template-columns:repeat(6,1fr)}.fashion-show-card{align-items:flex-start;flex-direction:column}.fashion-show-card button{width:100%}}
