:root{font-family:system-ui,"Malgun Gothic",sans-serif;color:#203b35;background:#f3f1eb;--green:#176651}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,select,input:not([type=checkbox]){min-height:44px}button{padding:9px 13px;border:1px solid #bdd0c7;border-radius:12px;background:white;color:#214e40;font-weight:700;cursor:pointer}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #e87629;outline-offset:3px}[hidden]{display:none!important}header{padding:14px max(16px,calc((100% - 1200px)/2));background:#fff;display:flex;gap:16px;align-items:center;border-bottom:1px solid #ddd}header a{color:var(--green);text-decoration:none}header b{flex:1}header span{font-size:11px;background:var(--green);color:white;padding:6px;border-radius:5px}main{max-width:1200px;margin:auto;padding:20px 16px 50px}.intro{max-width:760px}.intro small{color:#8d613c;font-weight:700}.intro h1{font-size:clamp(24px,4vw,36px);letter-spacing:-.06em}.intro p,.hint,#saveStatus,#previewHelp{font-size:14px;line-height:1.65;color:#5d6d62}.workspace{display:grid;grid-template-columns:300px minmax(0,1fr);gap:20px;align-items:start}.tools details,#itemTools{background:#fff;border:1px solid #d9e2da;border-radius:16px;padding:16px;margin:0 0 12px}summary{font-size:17px;font-weight:800;cursor:pointer}label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0;font-size:14px;font-weight:600}input:not([type=checkbox]),select{min-width:0;max-width:65%;border:1px solid #cad5ce;border-radius:8px;padding:6px}input[type=color]{width:65px;padding:3px}input[type=range]{padding:0}input[type=checkbox]{width:20px;height:20px;accent-color:var(--green)}.upload-actions,.toolbar,.item-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.upload-actions button{flex:1}.toolbar #preview{margin-left:auto;background:var(--green);color:#fff}.display{min-width:0}.scene{--wall:#eadfce;--shelf:#805735;--light:1;position:relative;width:100%;height:550px;overflow:hidden;border:10px solid #413b31;border-radius:16px;background-color:var(--wall);box-shadow:inset 0 0 50px #30241b26,0 15px 30px #38301d20;filter:brightness(var(--light));touch-action:pan-y}.scene[data-material=wood]{background-image:repeating-linear-gradient(90deg,transparent 0 52px,#492e1526 53px 55px)}.scene[data-material=brick]{background-image:linear-gradient(335deg,#ffffff40 23px,transparent 23px),linear-gradient(155deg,#ffffff40 23px,transparent 23px),linear-gradient(335deg,#ffffff40 23px,transparent 23px),linear-gradient(155deg,#ffffff40 23px,transparent 23px);background-size:58px 58px;background-position:0 2px,4px 35px,29px 31px,34px 6px}.scene[data-material=tile]{background-image:linear-gradient(#ffffff70 2px,transparent 2px),linear-gradient(90deg,#ffffff70 2px,transparent 2px);background-size:45px 45px}.scene h2{position:absolute;top:5%;left:8%;right:8%;margin:0;text-align:center;font-family:Georgia,"Malgun Gothic",serif;font-size:clamp(19px,3vw,30px);color:#402f23;overflow-wrap:anywhere}.scene-lights{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 0,#fff9d9b0,transparent 65%);pointer-events:none}.shelf-line{position:absolute;left:2%;right:2%;height:13px;background:var(--shelf);border-bottom:4px solid #0003;box-shadow:0 8px 10px #0003}.divider{position:absolute;top:23%;bottom:0;width:8px;background:var(--shelf);box-shadow:4px 0 8px #0002}#items{position:absolute;inset:0}#emptyScene{position:absolute;top:35%;left:10%;right:10%;text-align:center;color:#72573c;line-height:1.9;pointer-events:none}.scene-item{position:absolute;padding:0;border:2px solid transparent;background:none;border-radius:8px;min-height:0;touch-action:none;user-select:none;transform-origin:center}.scene-item img{display:block;width:100%;height:auto;max-height:140px;object-fit:contain;pointer-events:none;-webkit-user-drag:none}.scene-item.has-shadow img{filter:drop-shadow(3px 7px 4px #0005)}.scene-item.selected{border:2px dashed #187b62;background:#ffffff25}.scene-item:focus-visible{outline:3px solid #187b62}.scene-item .price-tag{display:block;margin:3px auto 0;padding:3px 5px;background:#fffdf0;color:#3f352c;border-radius:3px;width:fit-content;max-width:100%;font-size:11px;overflow-wrap:anywhere}.scene.previewing .scene-item{cursor:pointer}.scene.drag-over{outline:4px solid #218166}#itemTools h2{font-size:18px;margin-top:0}#saveStatus{min-height:24px}#saveStatus.error{color:#a23b22}#productInfo{font-size:16px;color:var(--green);overflow-wrap:anywhere}@media(max-width:760px){.workspace{display:flex;flex-direction:column}.tools,.display{width:100%}.tools{display:grid;grid-template-columns:1fr;gap:0}.scene{height:480px;border-width:7px}.toolbar{position:sticky;top:0;z-index:2;background:#f3f1eb;padding:5px 0}header{padding:12px;font-size:13px;gap:10px}.intro h1{font-size:26px}.scene-item img{max-height:110px}}
.workspace .scene{height:auto;aspect-ratio:4/3;border:0;outline:7px solid #413b31;outline-offset:-1px;border-radius:8px;margin:7px 0 15px}
.workspace .scene-item img{max-height:none;height:100%;object-position:center bottom}
.workspace .scene-item.is-locked{cursor:default}
.workspace .scene-item.is-hidden{opacity:.25;border:2px dashed #895d36}
.workspace .scene.previewing,.workspace .scene.previewing .scene-item{touch-action:pan-x pan-y pinch-zoom}
.workspace #itemList{display:grid;gap:7px;margin-top:12px}
.photo-edit-navigation{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.photo-edit-navigation button{flex:1;min-width:0;font-size:13px}
.workspace #itemList button{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:8px;text-align:left;align-items:center;min-height:50px}
.workspace #itemList button[aria-pressed=true]{border:2px solid #187b62;background:#edf7f1}
.workspace #itemList img{width:36px;height:36px;object-fit:contain}
.workspace #itemList span{overflow-wrap:anywhere}
.workspace #itemList small{font-size:11px;max-width:52px;color:#775c37}
.arrange-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:12px}
.arrange-tools label{font-size:13px;margin:4px 0}.item-flags{display:flex;flex-wrap:wrap;gap:14px}.item-flags label{justify-content:flex-start}
body.studio-focused .tools{display:none}body.studio-focused .workspace{display:block}body.studio-focused .display{max-width:1000px;margin:auto}body.studio-focused .intro{display:none}
@media(max-width:760px){.workspace .toolbar{position:static;gap:6px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.workspace .toolbar button{font-size:13px;padding:8px;white-space:nowrap}.workspace .toolbar #preview{margin-left:0}.workspace #itemTools{padding:14px}.workspace .item-actions button{font-size:13px;min-height:44px}}
.tools textarea,#itemTools textarea{font:inherit;min-width:0;max-width:65%;padding:8px;border:1px solid #cad5ce;border-radius:8px;resize:vertical}
.tools input[aria-invalid=true],#itemTools input[aria-invalid=true]{border-color:#b74326}
.tools .real-photo-upload{display:block}.tools .real-photo-upload input{display:block;max-width:100%;margin-top:10px;font-size:12px}
.customer-business,.customer-product{margin:16px 0;padding:20px;border:1px solid #d5dfd8;border-radius:18px;background:#fff;overflow-wrap:anywhere}
.customer-business h2{margin:0 0 12px;font-size:22px}.customer-business p,.customer-product p{white-space:pre-line;line-height:1.7}
.customer-business dl{margin:16px 0}.customer-business dl div{display:grid;grid-template-columns:95px minmax(0,1fr);gap:12px;padding:12px 0;border-bottom:1px solid #e7ece8}.customer-business dt{font-size:13px;color:#65756b}.customer-business dd{margin:0;white-space:pre-line;font-size:15px}
.customer-business figure{margin:16px 0}.customer-business figure img{display:block;width:100%;max-height:320px;object-fit:contain;background:#f5f5f0;border-radius:12px}.customer-business figcaption{font-size:13px;color:#5a6e61;margin-top:6px}
.customer-actions{display:flex;gap:10px;flex-wrap:wrap}.customer-link{display:flex;justify-content:center;align-items:center;min-height:48px;padding:12px 16px;border:1px solid #176651;border-radius:12px;background:#fff;color:#176651;text-decoration:none;font-weight:750;font-size:14px}.order-link{background:#176651;color:#fff}.customer-actions>*{flex:1;min-width:130px;text-align:center}
.customer-product>img{width:110px;height:110px;object-fit:contain;display:block;margin:auto}.customer-product small{display:block;margin-top:12px;color:#617067;font-size:13px;line-height:1.6}.space-label{font-size:13px;color:#52695c;padding:10px;background:#e6efe8;border-radius:8px}
body.studio-customer-preview .tools,body.studio-customer-preview .intro,body.studio-customer-preview #undo,body.studio-customer-preview #redo,body.studio-customer-preview #focusMode,body.studio-customer-preview #saveStatus{display:none}
body.studio-customer-preview .workspace{display:block}body.studio-customer-preview .display{max-width:800px;margin:auto}body.studio-customer-preview .toolbar{display:flex;justify-content:flex-end}body.studio-customer-preview #preview{flex:0 1 auto;margin:0}
.quick-actions{position:sticky;top:0;z-index:5;padding:10px;background:#f3f1ebf5;border:1px solid #d4e1d7;border-radius:14px;margin:12px 0}
.tools #businessSettings label{display:grid;gap:7px;margin:16px 0}.tools #businessSettings input,.tools #businessSettings textarea{width:100%;max-width:100%}
.example-notice{padding:18px 22px;border:1px solid #c4ae83;background:#fff8e7;border-radius:16px;margin-bottom:20px;display:grid;gap:8px;color:#56422c;font-size:14px;line-height:1.65}.example-notice b{font-size:18px;color:#234c48}.example-notice a,.example-entry a{color:#176651;font-weight:750;text-underline-offset:4px}
.backup-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0}.backup-tools span{font-size:12px;color:#607367;flex-basis:100%}
.scene-viewport{max-width:100%;padding:7px 7px 0;margin:0 -7px;overflow:auto;border-radius:12px;scrollbar-color:#9b8053 #eee4cf}.workspace .scene{container-type:inline-size;isolation:isolate}.scene-floor{position:absolute;inset:86% 0 0;background:repeating-linear-gradient(90deg,#ffffff25 0 1px,transparent 1px 14%),linear-gradient(var(--floor),#5e422755);border-top:1px solid #bca98a;pointer-events:none}.scene-awning{position:absolute;inset:0 0 auto;height:6%;background:repeating-linear-gradient(90deg,#193d42 0 6%,#f4ead4 6% 12%);border-radius:0 0 8px 8px;box-shadow:0 4px 8px #2d30202b;pointer-events:none}.scene h2{color:var(--sign-color);background:var(--sign-background);top:8%;left:22%;right:22%;padding:1.5% 2%;border:1px solid #dac595;border-radius:3px;box-shadow:0 4px 9px #37291621;font-size:clamp(13px,4cqw,32px);letter-spacing:.07em;z-index:1}.scene[data-font=sans] h2{font-family:system-ui,sans-serif}.scene[data-font=rounded] h2{font-family:'Malgun Gothic',sans-serif;border-radius:30px;letter-spacing:-.05em}.zone-labels{position:absolute;left:3%;right:3%;top:23%;display:grid;gap:3%;pointer-events:none}.zone-labels span{text-align:center;font-size:clamp(8px,1.5cqw,14px);font-weight:750;letter-spacing:.03em;color:#6a533c;padding:3% 2%;border-top:1px solid #bda67b;border-bottom:1px solid #bda67b;overflow-wrap:anywhere}
#decorRoot{position:absolute;inset:0;pointer-events:none}#items{pointer-events:none}.scene-item{pointer-events:auto}.decor{position:absolute;min-height:0!important;padding:0;border-radius:3px;border:1px solid #67533d;touch-action:none;pointer-events:auto;overflow:hidden;background:var(--decor-color);box-shadow:2px 5px 8px #382d202c;user-select:none}.decor span{position:absolute;left:3%;right:3%;top:3%;font-size:clamp(6px,1.3cqw,14px);line-height:1.25;text-align:center;color:inherit;white-space:pre-line;overflow-wrap:anywhere;pointer-events:none}.decor i{position:absolute;left:0;right:0;height:6%;background:var(--decor-color);border-top:1px solid #ffffff50;border-bottom:2px solid #0003;box-shadow:0 4px 5px #0002;pointer-events:none}.decor-rack{background:linear-gradient(90deg,#31221330,transparent 8% 92%,#31221330),#b7a08352;border:6px solid var(--decor-color);color:#fff8df}.decor-rack span{background:#5a381a;color:#fff2d3;padding:2%}.decor-glass{background:linear-gradient(120deg,#ffffffc4,#e7f6f080 45%,#ffffff1a 46% 51%,#eff9f680 52%);border:4px solid var(--decor-color);color:#51422b}.decor-glass:after{content:'';position:absolute;inset:7% 4%;border:1px solid #ffffffa6;pointer-events:none}.decor-counter{border-width:2px 2px 5px;background:repeating-linear-gradient(90deg,#ffffff09 0 1px,transparent 1px 12%),var(--decor-color);border-top:7px solid #b3a17e;color:#fff2d2}.decor-counter span{top:22%;font-size:clamp(6px,1.4cqw,16px)}.decor-board{background:var(--decor-color);border:4px solid #a78b58;color:#fff9df}.decor-board span{top:20%;font-family:Georgia,'Malgun Gothic',serif}.decor-window{background:linear-gradient(135deg,#d1e5dfb5,#fff8d5b5);border:4px solid var(--decor-color);box-shadow:inset 0 0 20px #ffffffb0}.decor-window:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent 48%,var(--decor-color) 48% 52%,transparent 52%),linear-gradient(transparent 48%,var(--decor-color) 48% 52%,transparent 52%)}.decor-window span{display:none}.decor-plant{background:none;border:0;box-shadow:none;overflow:visible}.decor-plant:before{content:'';position:absolute;left:23%;right:23%;bottom:0;height:38%;background:linear-gradient(90deg,#ac6c42,#d5965e,#a6683f);border-radius:3px 3px 30% 30%}.decor-plant:after{content:'';position:absolute;left:0;right:0;top:0;height:70%;background:radial-gradient(ellipse at 30% 20%,#568a3c 0 20%,transparent 22%),radial-gradient(ellipse at 72% 28%,#789e43 0 24%,transparent 26%),radial-gradient(ellipse at 32% 65%,var(--decor-color) 0 27%,transparent 29%),radial-gradient(ellipse at 65% 70%,#386c40 0 25%,transparent 27%)}.decor-plant span{display:none}.decor-selected{outline:3px dashed #e18c2d;outline-offset:2px}.decor-hidden{opacity:.22}.scene.previewing .decor{pointer-events:none}.scene.previewing .decor-selected{outline:0}
#decorList{display:grid;gap:7px;margin-top:14px}#decorList button{text-align:left;font-size:12px;overflow-wrap:anywhere}#decorList button[aria-pressed=true]{background:#e7f3ed;border-color:#176651}#decorTools{background:white;border:1px solid #d9e2da;border-radius:16px;padding:18px;margin:16px 0}#decorTools h2{font-size:18px}#decorTools input{width:60%}#decorTools input[type=checkbox]{width:20px}
.scene-label{position:absolute;top:100%;left:-20%;width:140%;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:clamp(6px,1.35cqw,13px);font-weight:750;line-height:1.4;padding:2px;background:#fff9e9;border:1px solid #cab88e;border-radius:3px;color:#57432a;pointer-events:none}.customer-browse{margin:26px 0}.customer-browse h2{font-size:22px;letter-spacing:-.05em}.customer-browse>p{font-size:14px;color:#617266}.browse-sections{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.browse-sections button{font-size:13px}.browse-sections button[aria-pressed=true]{background:#244f49;color:#fff;border-color:#244f49}.browse-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.browse-product{min-width:0;padding:14px;display:flex;flex-direction:column;align-items:center;background:#fffcf5;border-color:#ddcfb6;gap:8px;text-align:center}.browse-product img{width:100%;aspect-ratio:4/3;object-fit:contain}.browse-product strong{font-size:14px}.browse-product small{font-size:12px;color:#74634f}.sample-cart{border:1px solid #c9b88f;background:#fffaf0;border-radius:18px;padding:20px;margin:24px 0}.sample-cart h2{font-size:22px;color:#234e47}.sample-cart h2 span{font-size:16px;border-radius:30px;padding:4px 9px;background:#234e47;color:white}.sample-cart>p{font-size:13px;color:#796b56;line-height:1.6}.sample-cart-row{display:flex;align-items:center;gap:6px;padding:10px 0;border-bottom:1px solid #e0d6c2;font-size:13px}.sample-cart-row span{flex:1}.sample-cart-row button{min-width:40px;padding:6px;font-size:12px}.sample-cart>strong{display:block;margin:18px 0}.sample-cart>button{width:100%}#sampleAdd{width:100%;background:#244f49;color:#fff;margin:8px 0}.bakery-example{background:#f1eee4}.bakery-example .customer-product{background:#fffdf6;border-color:#d8c8a7}.bakery-example #previewHelp{font-size:12px}.bakery-example .scene-viewport{margin-top:15px}
body.studio-customer-preview .example-entry{display:none}
.decor-ledge{background:transparent;border:0;border-top:6px solid var(--decor-color);border-radius:0;box-shadow:0 -2px 0 #fff8,0 4px 7px #382d2038;overflow:visible}.decor-ledge span{display:none}.scene-label{left:0;width:100%}#sampleFeedback{font-size:14px;color:#24644a}.decor-counter span{top:40%}
.decor-clothesrack{background:transparent;border:0;border-top:6px solid var(--decor-color);border-left:3px solid var(--decor-color);border-right:3px solid var(--decor-color);border-radius:8px 8px 0 0;box-shadow:none}.decor-clothesrack span{top:0;background:#faf5ed;color:#675047;font-size:clamp(5px,1.3cqw,12px)}.decor-clothesrack:after{content:'';position:absolute;inset:12% 15% auto;height:12%;background:repeating-linear-gradient(90deg,transparent 0 15%,var(--decor-color) 15% 18%,transparent 18% 33%);pointer-events:none}.decor-mannequin{background:none;border:0;box-shadow:none;overflow:visible}.decor-mannequin:before{content:'';position:absolute;inset:0 12% 23%;background:linear-gradient(90deg,#ac9983,var(--decor-color),#ac9983);clip-path:polygon(42% 0,58% 0,58% 9%,80% 15%,95% 25%,80% 55%,75% 85%,85% 100%,15% 100%,25% 85%,20% 55%,5% 25%,20% 15%,42% 9%)}.decor-mannequin:after{content:'';position:absolute;inset:75% 20% 0;background:linear-gradient(90deg,transparent 45%,#65594e 45% 55%,transparent 55%);border-bottom:5px solid #65594e}.decor-mannequin span{display:none}.decor-mirror{border:5px solid var(--decor-color);border-radius:45% 45% 4px 4px;background:linear-gradient(120deg,#b8c4cc,#f3eaf0 40%,#ffffffbf 42% 48%,#c6d0d4 50%);box-shadow:3px 4px 7px #0002}.decor-mirror span{display:none}.decor-pegboard{background:radial-gradient(#344f4b80 1px,transparent 1.5px),var(--decor-color);background-size:8px 8px;border:3px solid #455b56}.decor-pegboard span{background:#233d47;color:white;padding:2%}.decor-bin{background:repeating-linear-gradient(90deg,transparent 0 23%,#283b37 23% 25%),repeating-linear-gradient(transparent 0 45%,#283b37 45% 50%),var(--decor-color);border:3px solid #455b56}.decor-bin span{top:55%;background:#fff6dc;color:#344b44}.bakery-example[data-example=boutique]{background:#f3edf0}.bakery-example[data-example=banchan]{background:#eef0e5}.bakery-example[data-example=hardware]{background:#e9eeee}.example-notice nav{display:flex;gap:7px;flex-wrap:wrap}.arrange-tools small{font-size:12px;color:#657469}#templateNotice button{align-self:start;background:#176651;color:white}
@media(max-width:600px){.example-notice{padding:14px;font-size:12px}.example-notice b{font-size:16px}.browse-products{grid-template-columns:repeat(2,minmax(0,1fr))}.sample-cart{padding:14px}.sample-cart-row{flex-wrap:wrap}.sample-cart-row span{flex-basis:100%}#decorTools{padding:14px}.decor-rack{border-width:3px}.decor-board{border-width:2px}.decor-glass{border-width:2px}.scene-viewport .scene{border-radius:4px}.workspace .scene{outline-width:4px}}
body.studio-public .tools,body.studio-public .intro,body.studio-public .example-entry,body.studio-public #backupTools,body.studio-public #arrangeTools,body.studio-public #saveStatus,body.studio-public #previewHelp,body.studio-public .toolbar{display:none!important}body.studio-public .workspace{grid-template-columns:1fr}body.studio-public [hidden]{display:none!important}#cloudSettings a{display:inline-block;margin:6px 0}#cloudSettings [hidden]{display:none}
body.studio-public #templateNotice{display:none!important}
.decor-library{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:460px;overflow:auto;padding:4px}.decor-card{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:9px 6px;font-size:12px;line-height:1.45;gap:6px;min-width:0}.decor-card>span{overflow-wrap:anywhere}.decor-thumbnail{position:relative;width:84px;max-width:100%;height:74px;pointer-events:none}.decor-thumbnail>.decor{inset:8px 12px;width:auto;height:auto;pointer-events:none}.furniture-art{display:block;width:100%;height:100%;pointer-events:none;overflow:visible}.decor-vector{background:none;border:0;box-shadow:none;overflow:visible}.decor-vector>span{top:auto;bottom:0;left:2%;right:2%;padding:2px;background:#fffef1e6;color:#253d35;border-radius:3px;z-index:1}.decor-vector.decor-hidden{opacity:.22}#decorSearch{width:65%}#decorMore{margin-top:10px;width:100%}.decor-library:empty{display:none}
.decor-thumbnail>.decor-preview{position:absolute;inset:8px 12px;pointer-events:none;border-radius:3px}
.editor-task-nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:14px 0 18px}.editor-task-nav button{min-width:0;padding:8px 5px;font-size:13px}.editor-task-nav .hint{grid-column:1/-1;margin:0;font-size:12px}#returnToScene{width:100%;margin-bottom:12px;background:#edf7f0;position:sticky;top:0;z-index:3}#itemTools,#decorTools,.tools>details,#sceneViewport{scroll-margin-top:100px}body.studio-customer-preview #editorTaskNav,body.studio-public #editorTaskNav{display:none!important}@media(max-width:760px){.editor-task-nav{grid-template-columns:repeat(3,minmax(0,1fr));margin:10px 0 12px;gap:5px}.editor-task-nav button{font-size:12px}body:not(.studio-customer-preview) .workspace>.display{order:-1;display:flex;flex-direction:column}body:not(.studio-customer-preview) .display>.toolbar{order:-3}body:not(.studio-customer-preview) .display>#sceneViewport{order:-2}body:not(.studio-customer-preview) .display>#saveStatus{order:-1}.intro h1{margin:10px 0}.intro p{font-size:12px;margin:8px 0;line-height:1.55}.example-entry{font-size:13px;margin:9px 0}}
.palette-library{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.palette-card{display:flex;flex-direction:column;align-items:stretch;gap:6px;font-size:12px;text-align:center;min-width:0}.palette-swatch{height:24px;border-radius:6px;border:1px solid #0002}.palette-card[aria-pressed=true]{outline:2px solid #176651;background:#edf7f0}.batch-fields{min-width:0;border:1px solid #cad8cf;border-radius:10px;margin:12px 0;padding:10px}.batch-fields legend{font-size:14px}.batch-fields label{justify-content:flex-start;margin:8px 0}
#compositionAlignment{min-width:0;margin:16px 0;border:1px solid #cad8cf;border-radius:12px;padding:12px}#compositionAlignment legend{font-size:14px;font-weight:700}#compositionAlignment button{flex:1 1 100px;font-size:13px}
.scene-wall-surface{position:absolute;inset:0 0 14%;pointer-events:none}.scene-floor-surface{position:absolute;inset:0;pointer-events:none}.scene h2.has-logo{display:flex;align-items:center;justify-content:center;gap:5%}.scene h2.has-logo img{flex-shrink:0;max-height:9cqw;object-fit:contain}.scene h2.has-logo span{min-width:0;overflow-wrap:anywhere}.workspace .scene-item.artwork img{object-position:center}.artwork-wood img{border:5px solid #895d38;background:#fff6e5}.artwork-white img{border:5px solid white;background:#fff}.artwork-dark img{border:5px solid #282b30;background:#fff}.scene.previewing .scene-item.artwork{pointer-events:none;cursor:default}
.composition-library{display:grid;gap:8px;margin:14px 0}.composition-library>div{display:flex;gap:5px}.composition-library button{font-size:12px;overflow-wrap:anywhere}.composition-library>div>button:first-child{flex:1;text-align:left}.composition-check{justify-content:flex-start;margin:0 0 8px;font-size:12px;color:#496b61}.decor-multi{outline:2px dashed #287d9d;outline-offset:3px}.scene.previewing .decor-multi{outline:0}#cabinetSettings{border:1px solid #cad8cf;border-radius:12px;padding:12px;margin:16px 0;background:#f6faf5}#cabinetSettings h3{font-size:16px;margin:0 0 10px}#cabinetFields input[type=number]{width:90px}#compositionName{width:65%}
.catalog-cart{margin:18px 0;padding:18px;border:2px solid #176651;border-radius:16px;background:#f1f8f2}.catalog-cart .customer-link{display:block;text-align:center;min-height:44px}#catalogAdd{background:#176651;color:white;min-height:48px;width:100%}#catalogAdd[hidden],#catalogCart[hidden]{display:none}#catalogCartFeedback{color:#176651;font-size:14px}
.scene-viewport,#customerProductPhoto,.browse-product{touch-action:pan-x pan-y pinch-zoom}body:not(.studio-customer-preview):not(.studio-public) #sceneGestureHelp{display:none}
.cart-dock .cart-dock-row,.sample-cart .sample-cart-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:8px 0}.cart-line-name{grid-column:1/-1;min-width:0;overflow-wrap:anywhere}.cart-quantity-controls{display:flex;align-items:center;gap:4px;justify-self:start}.cart-quantity-controls .cart-quantity-value{min-width:34px;text-align:center;font-size:15px;font-weight:700}.cart-dock .cart-quantity-controls button,.sample-cart .cart-quantity-controls button{min-width:44px;min-height:44px;padding:8px;font-size:20px;line-height:1}.cart-dock .cart-line-delete,.sample-cart .cart-line-delete{min-width:52px;min-height:44px;padding:8px;align-self:center;color:#8d3226;background:#fff8f5;border-color:#e5c9c1}.cart-quantity-controls button:disabled{opacity:.4;cursor:not-allowed}.cart-quantity-controls button:focus-visible,.cart-line-delete:focus-visible{outline:3px solid #176651;outline-offset:2px}
.cart-dock{position:fixed;left:0;top:0;z-index:30;transform-origin:top left;width:calc(100% - 16px);max-width:none;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));border:1px solid #afcabc;border-radius:16px;background:#fffffff5;box-shadow:0 3px 24px #123e3433;color:#203b35;font-size:14px;line-height:1.4;touch-action:pan-x pan-y pinch-zoom}.cart-dock-selection{display:flex;align-items:center;gap:12px}.cart-dock-selection>div{flex:1;min-width:0}.cart-dock strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}.cart-dock small{display:block;font-size:12px;color:#52695c}.cart-dock-selection button{background:#176651;color:white;min-width:66px;flex-shrink:0}.cart-dock p{font-size:12px;line-height:1.4;margin:6px 0;color:#176651;overflow-wrap:anywhere}.cart-dock p:empty{display:none}.cart-dock p.error{color:#a13721}#cartDockToggle{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;margin-top:8px;padding:8px;border:0;background:#e6f2e9;font-size:13px}#cartDockToggle b{white-space:nowrap;font-size:12px}#cartDockDetails{overflow:auto;overscroll-behavior:contain;margin-top:8px;border-top:1px solid #d5dfd8;padding-top:6px}.cart-dock-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:6px 0}.cart-dock-row span{min-width:0;overflow-wrap:anywhere}.cart-dock-row button{font-size:12px;min-width:48px}#cartDockNotice{margin-top:8px}.has-cart-dock main{padding-bottom:220px}

/* Owner-only workspace: the stage never scrolls away with the controls. */
.editor-divider{display:none}
body.studio-editor{height:var(--editor-height,100dvh);overflow:hidden}
body.studio-editor>header{height:48px;padding:8px 12px;gap:10px;font-size:13px}
body.studio-editor>main{max-width:1680px;width:100%;height:calc(var(--editor-height,100dvh) - 48px);padding:10px 12px max(10px,env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;min-height:0}
body.studio-editor .intro,body.studio-editor .example-entry{display:none}
body.studio-editor .example-notice{flex-shrink:0;max-height:96px;overflow:auto;margin:0 0 8px;padding:8px 12px;font-size:12px}
body.studio-editor .example-notice b{font-size:15px}
body.studio-editor .workspace{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,360px);grid-template-rows:minmax(0,1fr);gap:12px;align-items:stretch}
body.studio-editor .workspace>.display{order:0;min-height:0;width:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:8px}
body.studio-editor .display>.toolbar{order:0;margin:0;padding:0;position:static;display:flex;gap:6px;flex-wrap:wrap}
body.studio-editor .display>.toolbar button{font-size:13px;padding:8px;min-width:0;min-height:44px}
body.studio-editor .display>#sceneViewport{order:0;min-width:0;min-height:0;margin:0;padding:10px;display:grid;place-items:center;overflow:hidden;background:#e8e8de;border:1px solid #d3ddd3;border-radius:14px}
body.studio-editor .workspace .scene{width:var(--editor-scene-width,100%);max-width:100%;margin:0;flex:none;aspect-ratio:4/3;touch-action:pan-x pan-y pinch-zoom}
body.studio-editor .display>#saveStatus{order:0;margin:0;min-height:0;max-height:38px;overflow:auto;font-size:12px;line-height:1.45}
body.studio-editor .display>:not(.toolbar):not(#sceneViewport):not(#saveStatus){display:none}
body.studio-editor .editor-panel{order:2;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid #c9d8ce;border-radius:14px;background:#fff}
.editor-panel-heading{padding:10px 12px 5px;min-width:0}
.editor-panel-heading strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;color:#176651}
.editor-panel-heading>span{font-size:11px;color:#68796d}
body.studio-editor #editorTaskNav{display:flex;flex-shrink:0;overflow-x:auto;overscroll-behavior-x:contain;gap:5px;margin:0;padding:5px 8px 8px;border-bottom:1px solid #dbe5de}
body.studio-editor #editorTaskNav button{flex:0 0 auto;padding:7px 10px;font-size:12px;min-height:44px}
body.studio-editor #editorTaskNav button[aria-pressed=true]{background:#176651;color:#fff}
body.studio-editor #editorTaskHint{display:none}
body.studio-editor .editor-panel-body{flex:1;min-height:0;padding:10px;overflow:auto;overscroll-behavior:contain;scroll-padding:10px;scrollbar-gutter:stable;touch-action:pan-y pinch-zoom}
body.studio-editor .editor-panel-body>.tools{width:100%;display:block}
body.studio-editor .editor-panel-body #itemTools,body.studio-editor .editor-panel-body #decorTools,body.studio-editor .tools details,body.studio-editor .owner-guide,body.studio-editor #editorUtilities{padding:12px;margin:0 0 10px;border:1px solid #d9e2da;border-radius:12px;background:#fff;scroll-margin:10px}
body.studio-editor .editor-panel-body h2{font-size:16px;margin:0 0 12px}
body.studio-editor .editor-panel-body summary{font-size:15px;min-height:32px}
body.studio-editor .editor-panel-body label{font-size:13px;gap:8px}
body.studio-editor .editor-panel-body input,body.studio-editor .editor-panel-body select,body.studio-editor .editor-panel-body textarea{font-size:16px}
body.studio-editor .photo-review-row{display:grid;grid-template-columns:42px minmax(0,1fr) 56px;gap:8px;align-items:center;padding:8px 0;border-top:1px solid #e3eae5}
body.studio-editor .photo-review-row img{width:42px;height:48px;object-fit:contain}
body.studio-editor .photo-review-row label{display:block;min-width:0;margin:0}
body.studio-editor .photo-review-row label span{display:block;font-size:12px;margin-bottom:3px;color:#5d6d62}
body.studio-editor .photo-review-row input{width:100%;max-width:100%}
body.studio-editor .photo-review-row button{font-size:12px;padding:6px}
body.studio-editor .owner-guide>button,body.studio-editor #photosNext{display:block;width:100%;margin:10px 0}
body.studio-editor #photosNext,body.studio-editor #arrangeNext,body.studio-editor #saveDraft{background:#176651;color:#fff}
body.studio-editor #draftSaveStatus.error{color:#a23b22}
body.studio-editor #photosSettings .upload-actions button{font-size:13px;padding:9px 6px;word-break:keep-all}
body.studio-editor #returnToScene{position:static;font-size:12px;margin:0 0 10px}
body.studio-editor.studio-focused .editor-panel,body.studio-editor.studio-focused #editorDivider{display:none}
body.studio-editor.studio-focused .workspace{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
body.studio-editor.studio-focused .display{max-width:none;margin:0}
@media(max-width:760px){
  body.studio-editor>main{padding:6px 8px max(6px,env(safe-area-inset-bottom,0px))}
  body.studio-editor .workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(min(190px,50%),var(--scene-share,44%)) 16px minmax(0,1fr);gap:0}
  body.studio-editor .workspace>.display{order:0;gap:5px}
  body.studio-editor .display>.toolbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
  body.studio-editor .display>.toolbar button{font-size:12px;padding:5px 3px;white-space:normal}
  body.studio-editor .toolbar #preview{margin:0}
  body.studio-editor #editorDivider{order:1;display:grid;place-items:center;touch-action:none;cursor:row-resize;border-radius:8px}
  body.studio-editor #editorDivider span{width:52px;height:4px;border-radius:9px;background:#729182}
  body.studio-editor #editorDivider:focus-visible{outline:3px solid #e87629;outline-offset:-2px}
  body.studio-editor .editor-panel-heading{padding:7px 10px 2px}
  body.studio-editor .editor-panel-heading>span{display:none}
  body.studio-editor .editor-panel-body{padding:8px}
  body.studio-editor .workspace .scene{outline-width:4px}
}
@media(max-height:520px){body.studio-editor .example-notice{max-height:48px}body.studio-editor .editor-panel-heading{padding-top:3px}body.studio-editor #editorTaskNav{padding-top:2px;padding-bottom:2px}}
