:root{font-family:system-ui,"Malgun Gothic",sans-serif;color:#34392e;background:#f6f2e8;--accent:#974d35;--green:#435946;--line:#d6cebb}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{min-height:44px;padding:10px 16px;border:1px solid #c8bfab;border-radius:9px;background:#fffdf7;color:#3c483b;font-weight:700;cursor:pointer}button:disabled{opacity:.45;cursor:default}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #d88b44;outline-offset:3px}[hidden]{display:none!important}.primary{background:var(--accent);border-color:var(--accent);color:#fffaf1}.site-header{height:72px;max-width:1240px;margin:auto;padding:0 28px;display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{text-decoration:none;font-weight:900;font-size:24px;color:#354e3a;letter-spacing:-1px}.brand span{font-size:15px;margin-left:14px;color:#5a5d4c;font-weight:600;letter-spacing:-.3px}.preview-label{font-size:11px;border:1px solid #aea88f;border-radius:5px;padding:5px 8px;white-space:nowrap}.boundary{margin:0;background:#e9e8da;border-block:1px solid #dad8c7;padding:9px 22px;font-size:12px;text-align:center;color:#5d624e;line-height:1.6}main{max-width:1120px;margin:auto;padding:0 32px 60px}.intro{display:grid;grid-template-columns:1fr 270px;gap:50px;align-items:center;padding:56px 0 42px}.eyebrow{font-size:11px;letter-spacing:.12em;color:#8c694c;font-weight:800;margin:0 0 12px}.intro h1{font-family:Georgia,"Batang",serif;font-size:clamp(36px,4.8vw,61px);font-weight:600;line-height:1.2;letter-spacing:-2px;margin:0 0 22px}.intro h1 br{display:none}.lead{line-height:1.8;color:#626454;font-size:16px;margin:0 0 22px}.intro-actions{display:flex;align-items:center;gap:22px;flex-wrap:wrap}.intro-actions .primary{padding:14px 20px}.intro-actions span{padding-left:14px}.intro-actions a{font-size:13px;color:#6c674f;text-underline-offset:4px}.small{font-size:12px;line-height:1.75;color:#747362}.intro>.small{max-width:500px}.paper-note{position:relative;transform:rotate(3deg);padding:35px 28px 22px;background:#efe6cd;box-shadow:2px 5px 8px #60523d12;min-height:208px;border:1px solid #e0d6bc}.paper-note p{font-family:"Batang",Georgia,serif;font-size:21px;line-height:1.8;margin:10px 0}.paper-note>span:not(.note-pin){font-size:11px;color:#86795c}.note-pin{position:absolute;top:-11px;left:35%;height:24px;width:80px;background:#d3c9aa9c;transform:rotate(-7deg)}.note-doodle{position:absolute;right:20px;bottom:17px;font-size:40px;color:#7c8a60}.market-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;padding:15px 0 20px;border-top:1px solid var(--line)}.market-heading h2{font-size:26px;letter-spacing:-1px;margin:0}.market-heading>div>p:last-child{font-size:13px;line-height:1.7;color:#77735f;margin:8px 0 0}.owner-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.owner-actions button{font-size:12px}.workspace{min-width:0}.display{min-width:0}.scene-viewport{display:grid;place-items:center;overflow:hidden;padding:12px 9px 18px;border:1px solid #d8d0bd;background:#ebe6d8;border-radius:11px}.market-scene{--wall:#ece2cd;--wood:#9b704b;--point:#9b4b32;position:relative;isolation:isolate;width:min(100%,800px);aspect-ratio:1;background:var(--wall);border:12px solid #81745d;border-radius:6px;box-shadow:inset 0 0 50px #68523915,0 8px 14px #68523915;overflow:hidden}.market-scene:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:repeating-linear-gradient(0deg,#fff2 0 1px,transparent 1px 4px),radial-gradient(ellipse at 20% 12%,#fff9df8c,transparent 65%)}.market-scene[data-finish=wood]:before{background:repeating-linear-gradient(90deg,#65503405 0 4px,transparent 4px 34px),repeating-linear-gradient(0deg,#fff2 0 1px,transparent 1px 6px),radial-gradient(ellipse at 20% 0,#fff9df8c,transparent 65%)}.market-scene[data-finish=linen]:before{background:repeating-linear-gradient(90deg,#69573912 0 1px,transparent 1px 4px),repeating-linear-gradient(0deg,#fff5 0 1px,transparent 1px 4px)}.market-sign{position:absolute;left:19%;right:19%;top:6%;padding:2% 1%;text-align:center;background:#fff7e2;border:1px solid #beae8c;box-shadow:2px 3px 1px #644e2626;transform:rotate(-1deg);z-index:1}.market-sign:after{content:"";position:absolute;top:-7px;left:38%;right:38%;height:16px;background:#d0ba8d99;transform:rotate(-5deg)}.market-sign small{font-size:clamp(7px,1.3vw,13px);color:#8b7655}.market-sign h3{font-family:Georgia,"Batang",serif;color:var(--point);font-weight:600;font-size:clamp(19px,3vw,36px);margin:4px 0 0;line-height:1.4;overflow-wrap:anywhere}.buntons{position:absolute;top:1%;left:1%;right:1%;height:12%;display:flex;justify-content:space-between;border-top:2px solid #8b7956;transform:rotate(3deg)}.buntons i{width:7%;height:60%;background:#ad764e;clip-path:polygon(0 0,100% 0,50% 100%)}.buntons i:nth-child(2n){background:#708167}.buntons i:nth-child(3n){background:#d4b779}.shelf{position:absolute;left:3%;right:3%;height:2.2%;background:var(--wood);border-bottom:4px solid #0002;box-shadow:0 9px 10px #5641222c;z-index:0}.shelf:after{content:"";position:absolute;inset:3px 0;background:repeating-linear-gradient(0deg,#fff1 0 1px,transparent 1px 4px)}.shelf-one{top:59%}.shelf-two{top:94%}.floor{position:absolute;bottom:0;left:0;right:0;height:5%;background:#7c684a33}.objects,.decorations{position:absolute;inset:0;pointer-events:none}.decorations{z-index:1}.objects{z-index:2}.market-object{position:absolute;min-height:0;padding:0;border:0;background:none;pointer-events:auto;border-radius:3px;aspect-ratio:1.15;touch-action:pan-y pinch-zoom}.market-object img{width:100%;height:100%;object-fit:contain;display:block;filter:drop-shadow(3px 5px 3px #3b2c2229);pointer-events:none;-webkit-user-drag:none}.market-object .price-tag{position:absolute;top:94%;left:1%;right:1%;min-height:25px;padding:5px 3px 4px;box-shadow:1px 2px 2px #75542d23;background:#fff8df;color:#684d32;border:1px solid #c9b88b;transform:rotate(-2deg);font-size:clamp(9px,1.5vw,16px);line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}.market-object .price-tag small{font-size:.68em;display:block;font-weight:500;color:#8b7956;margin-bottom:3px;overflow:hidden;text-overflow:ellipsis}.market-object:nth-child(2n) .price-tag{transform:rotate(2deg);background:#f4edd8}.market-object.is-sold img{opacity:.45}.market-object.is-sold:after{content:"판매완료 · 견본";position:absolute;top:32%;left:-5%;right:-5%;padding:5px;background:#58614e;color:#fff;font-size:clamp(9px,1.2vw,13px);transform:rotate(-10deg)}.market-decoration svg{width:100%;height:100%;pointer-events:none}.market-object.selected{outline:2px dashed #a05235;outline-offset:4px}.market-object.is-locked{cursor:default}#emptyScene{position:absolute;inset:35% 10% auto;text-align:center;color:#8c795c;line-height:2}.scene-hint{font-size:12px;line-height:1.7;color:#7b765f;margin:13px 0}.save-status{font-size:12px;line-height:1.75;color:#61705b;min-height:22px}.save-status.error,.error{color:#a13d29}.catalog{margin-top:40px}.section-heading{display:flex;justify-content:space-between;align-items:end;border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:20px}.section-heading h2,.how-it-works h2{font-family:Georgia,"Batang",serif;font-size:27px;margin:0;font-weight:500}.section-heading>span{font-size:13px;color:#81745f}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.product-card{position:relative;text-align:left;background:none;border:0;border-radius:0;padding:0;font-weight:500}.card-photo{aspect-ratio:1.2;background:#e9e4d8;border:1px solid #e0d8c7;display:grid;place-items:center;position:relative}.card-photo:after{content:"";position:absolute;width:25%;height:17px;top:-7px;left:38%;background:#cbb78e88;transform:rotate(-3deg)}.card-photo img{height:83%;width:83%;object-fit:contain;transition:transform .2s}.product-card:hover img{transform:scale(1.025)}.product-card h3{font-size:15px;font-weight:600;margin:15px 0 7px;overflow-wrap:anywhere}.product-card strong{font-size:18px;font-family:Georgia,"Batang",serif;letter-spacing:-.3px}.product-card .small{margin:6px 0;color:#8c7b61}.sold-badge{background:#5e6854;color:#fffaf1;position:absolute;bottom:12px;right:12px;padding:5px 8px;font-size:11px}.how-it-works{padding:38px 0 0;margin-top:56px;border-top:1px solid var(--line)}.how-it-works ol{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;list-style:none;padding:0;margin:28px 0}.how-it-works li{display:grid;gap:8px}.how-it-works li>b{color:#9c7051;font-size:13px;font-weight:500}.how-it-works strong{font-size:15px}.how-it-works span{font-size:13px;color:#827964;line-height:1.7}footer{border-top:1px solid var(--line);padding:26px max(24px,calc((100vw - 1056px)/2));font-size:12px;color:#81765f;display:flex;gap:30px;justify-content:space-between}
dialog{width:min(660px,calc(100% - 24px));border:1px solid #d6cbb5;border-radius:16px;padding:24px;max-height:90dvh;overflow:auto;background:#fffdf7;color:#34392e;box-shadow:0 30px 100px #32271844}dialog::backdrop{background:#292b256b;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:start;justify-content:space-between;gap:15px}.dialog-heading h2{font-size:23px;line-height:1.4;margin:0}.dialog-heading>button{min-width:44px;padding:3px;font-size:26px;background:none;border-color:transparent}.dialog-heading>.eyebrow{padding-top:14px}label{font-size:13px;font-weight:600;display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:15px 0}input,select,textarea{min-height:44px;border:1px solid #c9c3b3;border-radius:7px;background:#fffefb;padding:9px;font-size:16px;min-width:0;color:#34392e}label>input:not([type=color]):not([type=range]):not([type=checkbox]),label>select,label>textarea{width:100%}input[type=color]{width:64px;padding:4px;margin-left:auto}input[type=range]{max-width:55%;margin-left:auto;padding:0}input[type=checkbox]{min-height:20px;width:20px;height:20px;accent-color:#8c5539}.optional{font-weight:400;font-size:12px;color:#99917b}.upload-actions{display:flex;gap:8px;margin:20px 0 12px}.upload-actions button{flex:1;padding:10px 8px;font-size:13px}.entry-list{display:grid;gap:14px}.entry-row{border-top:1px solid #e0d7c4;padding:15px 0;display:grid;grid-template-columns:84px 1fr;gap:12px}.entry-row>img{width:84px;height:100px;object-fit:contain;background:#f3ede1;border-radius:6px}.entry-fields label{margin:0 0 10px}.entry-fields>details{font-size:12px}.entry-fields>details summary{min-height:40px;cursor:pointer;padding-top:7px}.entry-fields label span{font-size:11px;font-weight:400;color:#83775f}.entry-fields button{font-size:12px;padding:6px 10px}.entry-fields .price-input{font-size:20px;font-weight:700}.entry-fields textarea{width:100%;max-width:100%;resize:vertical}.maker-bottom{position:sticky;bottom:-25px;background:#fffdf7f5;padding:8px 0 16px;border-top:1px solid #e2dbc9;margin-bottom:-16px}.maker-bottom button{width:100%;margin-top:7px}.maker-bottom p{margin:4px 0}.error:empty{display:none}#detailPhoto{width:100%;height:min(38vh,300px);object-fit:contain;background:#f0e9da;border-radius:9px}.detail-copy h2{font-size:24px;margin:8px 0}.detail-copy>strong{font-family:Georgia,serif;font-size:28px}.detail-copy>p{line-height:1.8;font-size:14px;white-space:pre-wrap}.detail-copy>p.small{font-size:12px}.detail-copy button{width:100%;margin:5px 0}.sample-label{color:#927548;font-size:11px!important}.basket-dock{position:fixed;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:10;background:#fffdf6f5;border:1px solid #b4bda7;box-shadow:0 4px 30px #38432f26;border-radius:13px;padding:12px 16px;width:min(560px,calc(100% - 24px));max-height:44vh;overflow:auto}.basket-dock>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.basket-dock strong{font-size:15px}.basket-dock button{font-size:12px}.basket-dock>p{font-size:11px;color:#52654c;margin:6px 0 0;line-height:1.5}.basket-dock section>p{font-size:11px;line-height:1.6;color:#86795d}.basket-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;padding-top:10px;border-top:1px solid #ddd5c4}.basket-row span{font-size:13px}.basket-row button{min-width:50px}.has-basket footer{padding-bottom:140px}
.custom-tools{padding:18px;background:#fffdf6;min-height:0;overflow:auto;border:1px solid #d8d0bd;border-radius:12px;overscroll-behavior:contain}.custom-tools>h3{margin:0;font-size:18px}.custom-tools details{margin:10px 0;border-top:1px solid #e4dcc9;padding-top:14px}.custom-tools summary{cursor:pointer;font-size:14px;min-height:32px;font-weight:700}.custom-tools>button{width:100%;margin:6px 0}.theme-choices{display:grid;grid-template-columns:1fr 1fr;gap:7px}.theme-choices button{font-size:12px;text-align:left;min-height:58px;padding:8px}.theme-choices button[aria-pressed=true]{outline:2px solid #9c6546}.decor-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.decor-choices button{padding:6px;font-size:12px}.move-controls{display:flex;gap:5px}.move-controls button{flex:1;padding:6px;min-width:44px}.edit-toolbar{display:flex;gap:6px;padding:4px 0 8px}.edit-toolbar button{font-size:12px;padding:7px 10px}.edit-toolbar button:last-child{margin-left:auto}.customizing{height:100dvh;overflow:hidden}.customizing .boundary,.customizing .intro,.customizing .catalog,.customizing .how-it-works,.customizing footer{display:none}.customizing main{max-width:1560px;padding:0 18px;height:calc(100dvh - 72px)}.customizing #experience{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto}.customizing .market-heading{padding:7px 0;border:0;align-items:center}.customizing .market-heading h2{font-size:18px}.customizing .market-heading .eyebrow,.customizing #marketSummary,.customizing .owner-actions{display:none}.customizing .workspace{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:16px;min-height:0}.customizing .display{display:grid;grid-template-rows:56px minmax(0,1fr) auto;min-height:0}.customizing .scene-viewport{padding:10px;min-height:0}.customizing .market-scene{width:var(--scene-size,200px);flex:none}.customizing .market-object{touch-action:none;user-select:none}.customizing .save-status{margin:8px 0}.customizing .market-scene .market-sign h3{font-size:clamp(14px,2vw,30px)}.customizing .basket-dock{display:none}
@media(max-width:700px){.site-header{height:62px;padding:0 18px}.brand{font-size:22px}.brand span{display:block;font-size:11px;margin:1px 0 0;letter-spacing:0}.boundary{font-size:10px;padding:8px 16px;text-align:left}main{padding:0 18px 35px}.intro{grid-template-columns:1fr;gap:0;padding:30px 0 24px}.intro h1{font-size:39px;margin-bottom:15px;line-height:1.25}.intro h1 br{display:initial}.intro .eyebrow{font-size:9px;letter-spacing:.14em}.intro .lead{font-size:13px;line-height:1.9;margin-bottom:18px}.intro-actions{gap:16px}.intro-actions .primary{width:100%;font-size:14px;display:flex;justify-content:space-between;padding:14px 16px}.intro-actions a{font-size:12px}.intro .small{font-size:10px;margin-top:12px}.paper-note{display:none}.market-heading{align-items:start;flex-direction:column;gap:12px;padding-top:20px}.market-heading h2{font-size:25px}.market-heading .eyebrow{font-size:9px}.owner-actions{justify-content:start;gap:7px}.owner-actions button{padding:8px 10px;font-size:11px}.market-scene{border-width:7px}.market-sign h3{font-size:19px}.market-sign small{font-size:7px}.price-tag{font-size:10px!important;padding:3px 2px!important;min-height:22px!important}.market-object .price-tag small{font-size:7px}.scene-hint{font-size:11px}.scene-viewport{padding:7px 6px 13px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px}.product-card h3{font-size:12px;margin:12px 0 6px}.product-card strong{font-size:17px}.product-card .small{font-size:10px}.section-heading h2,.how-it-works h2{font-size:23px}.section-heading>span{font-size:11px}.section-heading .eyebrow{font-size:9px}.how-it-works{margin-top:35px;padding-top:28px}.how-it-works ol{grid-template-columns:1fr;gap:20px}.how-it-works li{grid-template-columns:28px 1fr;gap:5px 8px}.how-it-works li>span{grid-column:2;font-size:12px}.how-it-works>p.small{font-size:10px}footer{display:block;padding:22px 18px;line-height:2;font-size:10px}footer span{display:block}.catalog{margin-top:28px}dialog{padding:18px;max-height:92dvh}.dialog-heading h2{font-size:20px}.dialog-heading .eyebrow{font-size:9px}.dialog-heading>button{flex:none}.entry-row{grid-template-columns:65px minmax(0,1fr);gap:10px}.entry-row>img{width:65px;height:85px}.maker-bottom{bottom:-19px}.upload-actions{gap:6px}.upload-actions button{font-size:12px;word-break:keep-all;padding:10px 7px}.detail-copy h2{font-size:21px}.basket-dock{padding:10px 12px}.basket-dock strong{font-size:13px}.customizing main{padding:0 8px;height:calc(100dvh - 62px)}.customizing .workspace{grid-template-columns:1fr;grid-template-rows:minmax(150px,53%) minmax(0,1fr);gap:8px}.customizing .display{grid-template-rows:49px minmax(0,1fr)}.customizing .scene-hint{display:none}.custom-tools{padding:12px}.custom-tools input,.custom-tools select{font-size:16px}.customizing .market-heading{padding:4px 2px}.customizing .market-heading h2{font-size:14px}.customizing .save-status{font-size:10px;margin:5px 0}.customizing .market-scene .market-sign h3{font-size:14px}.customizing .market-sign small{display:none}.customizing .market-scene .price-tag small{display:none}.customizing .market-scene .price-tag{font-size:8px!important;min-height:17px!important;padding:2px!important}.customizing .market-scene{border-width:5px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}@media(max-height:520px){.customizing .site-header{height:44px}.customizing main{height:calc(100dvh - 44px)}.customizing .market-heading{display:none}.customizing #experience{grid-template-rows:minmax(0,1fr) auto}.customizing .workspace{grid-template-rows:minmax(90px,50%) minmax(0,1fr)}.customizing .display{grid-template-rows:44px minmax(0,1fr)}}

/* Photo entry stays visible even when the tools scroll; the scene keeps its height. */
.background-art,.display-art{position:absolute;inset:0;pointer-events:none}.background-art{z-index:-1}.display-art{z-index:0}.background-art svg,.display-art svg{width:100%;height:100%;display:block}
.market-scene:not([data-display=classic])>.shelf,.market-scene:not([data-display=classic])>.floor{display:none}
.market-scene:not([data-backdrop=room])>.buntons{display:none}.market-scene[data-backdrop=stars]>.market-sign{background:#f5edcfdd}
.world-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px}.world-choices button{padding:5px;font-size:11px;text-align:left;min-width:0}.world-thumb{display:block;height:72px;border-radius:5px;overflow:hidden;margin-bottom:6px;background:var(--wall);position:relative}.world-thumb svg{position:absolute;inset:0;width:100%;height:100%}.world-choices button[aria-pressed=true]{outline:2px solid #9c6546}.decor-choices button{display:grid;justify-items:center;align-content:start;gap:4px;line-height:1.5;min-width:0}.decor-choices button>svg{width:48px;height:48px;pointer-events:none}
.custom-tools label>input[type=search]{width:100%}
.detail-photo-button{display:block;width:100%;padding:0;border:0;background:none;font-weight:400;touch-action:pan-y}.detail-photo-button>span{display:block;font-size:11px;line-height:1.6;padding:6px;color:#666c58}
#photoDialog{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:max(12px,env(safe-area-inset-top)) 12px max(8px,env(safe-area-inset-bottom));border:0;border-radius:0;background:#111b22;color:#f8f5e9;overflow:hidden}
#photoDialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:8px}
.photo-dialog>header{display:flex;align-items:center;gap:10px;justify-content:space-between;min-height:44px}.photo-dialog h2{font-size:14px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.photo-dialog button{min-height:44px;background:#283741;color:#fff7e7;border-color:#60727a;font-size:13px}.photo-dialog header button{flex:none}
.photo-stage{position:relative;overflow:hidden;min-height:0;touch-action:none;user-select:none;outline-offset:-3px;background:#17252d;border-radius:5px}.photo-stage img{position:absolute;left:50%;top:50%;max-width:none;max-height:none;object-fit:contain;pointer-events:none;user-select:none;-webkit-user-drag:none;will-change:transform}
.photo-toolbar{display:flex;align-items:center;justify-content:center;gap:8px}.photo-toolbar button{min-width:44px}.photo-toolbar output{min-width:52px;text-align:center;font-size:13px}.photo-dialog>p{margin:0;text-align:center;font-size:11px;line-height:1.5;color:#d1d8d5}
@media(max-height:520px){#photoDialog{padding:5px 8px;gap:4px}.photo-dialog>p{font-size:10px}}
.decor-photo-actions{position:sticky;top:-18px;z-index:3;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px;margin:-18px -18px 14px;padding:12px 18px 8px;background:#fffdf6;border-bottom:1px solid #d8d0bd}
.decor-photo-actions button{min-width:0;min-height:44px;padding:8px 6px;font-size:12px;line-height:1.5;word-break:keep-all}
.decor-photo-actions button:first-child{background:#8c5539;color:#fffdf6;border-color:#8c5539}
.decor-photo-actions p{grid-column:1/-1;margin:0;font-size:10px;line-height:1.6;color:#73684f}
#precisePosition>summary{min-height:44px;padding-bottom:8px}
@media(max-width:700px){.decor-photo-actions{top:-12px;margin:-12px -12px 12px;padding:8px 12px 6px}}

/* Photo/price first; saving stays beside the scene, not inside the long tools list. */
#makerDialog{scroll-padding-block:16px 150px}
.maker-intro{margin:8px 0;font-size:12px}
#makerDialog .upload-actions{margin:12px 0 8px}
#makerDialog #uploadStatus{margin:8px 0}
.entry-list{gap:8px}
.entry-row{padding:8px 0;grid-template-columns:72px minmax(0,1fr);scroll-margin-block:16px 150px}
.entry-picture{display:grid;gap:6px;align-content:start}
.entry-picture img{width:72px;height:64px;object-fit:contain;background:#f3ede1;border-radius:6px}
.entry-picture .remove-entry{width:72px;min-height:44px;padding:4px;font-size:11px;font-weight:500}
.entry-fields label{margin-bottom:6px}
.entry-fields .price-input{font-size:18px}
.price-feedback{display:block;font-size:11px;color:#61705b;line-height:1.6;min-height:18px;margin-bottom:3px}
.entry-fields .price-label{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 8px;line-height:18px}
.price-label>.price-feedback{grid-row:1;grid-column:2;text-align:right;font-weight:400;margin:0}
.price-label>.price-input{grid-row:2;grid-column:1/-1}
.entry-fields>details summary{min-height:44px;padding-top:9px;line-height:1.6}
.name-option{margin:8px 0 14px;border-top:1px solid #e0d7c4}
.name-option summary{min-height:44px;padding-top:12px;font-size:12px;cursor:pointer}
.maker-progress{font-size:12px;line-height:1.6;font-weight:700;color:#435946;margin:4px 0}
.maker-bottom .small{font-size:11px}
#makerError{font-size:12px;line-height:1.6;margin:5px 0;max-height:8em;overflow:auto}
.edit-toolbar{display:grid;grid-template-columns:44px 44px minmax(72px,1fr) auto;align-items:center}
.edit-toolbar #undo,.edit-toolbar #redo{width:44px;min-height:44px;padding:0;font-size:20px}
.edit-toolbar #saveDecor{min-height:44px;white-space:nowrap}
.edit-toolbar button:last-child{margin-left:0;white-space:nowrap}
.customizing .edit-toolbar{padding:0 0 5px}
#leaveDecorDialog{width:min(440px,calc(100% - 24px))}
#leaveDecorDialog h2{font-size:20px;margin:0 0 12px;line-height:1.5}
#leaveDecorDialog>p{font-size:13px;line-height:1.8}
#leaveDecorDialog>button{display:block;width:100%;margin:8px 0}
#leaveDecorDialog>.small{font-size:11px}
@media(max-height:520px){.customizing .edit-toolbar{padding:0}}

/* Buyer detail: photo/notes scroll, close and cart actions stay on screen. */
.face-nav{display:grid;grid-template-columns:44px minmax(0,1fr) 44px auto;gap:4px;margin-bottom:5px;align-items:center}.face-nav button{padding:4px;min-height:44px}.face-nav button:first-child,.face-nav #faceNext{font-size:25px}.face-nav select{width:100%;min-width:0;font-size:12px;padding:4px}.face-nav #addFace{font-size:12px;padding:4px 8px}.display-controls{min-width:0}.customizing .display{grid-template-rows:auto minmax(0,1fr) auto}
.selection-box{position:absolute;inset:0;z-index:5;pointer-events:none}.selection-box #selectionOutline{position:absolute;border:2px solid #ab542f;border-radius:3px;pointer-events:none}.selection-box [data-resize]{position:absolute;transform:translate(-50%,-50%);width:44px;height:44px;min-height:44px;padding:0;border:2px solid #8f442b;border-radius:50%;background:#fffaf0;color:#8f442b;font-size:22px;pointer-events:auto;touch-action:none;cursor:nwse-resize;box-shadow:0 1px 4px #0003}.selection-box [data-resize=ne],.selection-box [data-resize=sw]{cursor:nesw-resize}.selection-box[data-small=true] [data-resize]:not([data-resize=se]){display:none}#sizeReadout{position:absolute;width:84px;text-align:center;background:#833d25;color:white;border-radius:4px;font:700 10px/20px system-ui;pointer-events:none}
.scene-viewport{position:relative}.trash-drop{position:fixed;z-index:20;width:176px;display:grid;grid-template-columns:28px auto;gap:1px 5px;padding:8px 12px;min-height:58px;border:2px dashed #8f442b;border-radius:12px;background:#fffaf0f5;color:#783c28;pointer-events:none;box-shadow:0 3px 15px #0003}.trash-drop>span{grid-row:1/3;align-self:center;font-size:27px}.trash-drop strong{font-size:13px}.trash-drop small{font-size:10px}.trash-drop.drop-ready{background:#863e29;color:white;border-style:solid;outline:3px solid #f6c59c}.tools-heading{display:flex;justify-content:space-between;align-items:center;gap:6px}.tools-heading h3{font-size:14px;margin:0}.tools-heading button{min-height:44px;min-width:100px;padding:6px;font-size:12px}#trashDialog{width:min(520px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:hidden}#trashDialog[open]{display:flex;flex-direction:column}#trashDialog>.dialog-heading,#trashDialog>p{flex:none}#trashDialog h2{font-size:19px}#closeTrash{min-height:44px;white-space:nowrap;font-size:12px}#trashDialog>.small{font-size:11px;line-height:1.6;margin:8px 0}#trashList{min-height:0;overflow-y:auto;overscroll-behavior:contain}#trashFeedback,#trashEmpty{font-size:12px;line-height:1.6}.trash-row{display:grid;grid-template-columns:64px minmax(0,1fr);gap:10px;padding:12px 0;border-top:1px solid #d8d0bd}.trash-picture img,.trash-picture svg{width:64px;height:80px;object-fit:contain}.trash-row strong{font-size:14px;overflow-wrap:anywhere}.trash-row p{margin:4px 0}.trash-row label{display:block;font-size:11px}.trash-row select{display:block;width:100%;min-height:44px;min-width:0;font-size:14px}.trash-row button{width:100%;min-height:44px;margin-top:7px;padding:8px}.trash-row .small{font-size:11px}#trashSelected{width:100%;margin-top:6px}
.market-object .price-tag,.customizing .market-scene .price-tag{right:auto;left:0;min-width:64px;width:max-content;max-width:none;padding:3px 5px!important;min-height:20px!important;transform:none;overflow:visible;text-overflow:clip;white-space:normal;font-size:11px!important;line-height:1.3;z-index:1}.market-object:nth-child(2n) .price-tag{transform:none}.market-object .price-tag small{width:80px;max-width:100%;font-size:9px;line-height:1.2;margin-bottom:2px}.price-tag .price-amount{display:block;white-space:normal;overflow-wrap:anywhere;font-size:inherit;font-variant-numeric:tabular-nums}
.decor-photo-actions{grid-template-columns:minmax(0,.8fr) minmax(0,1.3fr) minmax(60px,.8fr)}
.site-header{position:sticky;top:0;z-index:12;gap:8px;background:#f6f2e8}.market-back{flex:none;min-height:44px;min-width:56px;padding:6px;font-size:13px}.site-header .brand{margin-right:auto;min-width:0}#backDialog{width:min(440px,calc(100% - 24px))}#backDialog h2{font-size:20px}#backDialog p{font-size:13px;line-height:1.7}#backDialog>button{width:100%;min-height:44px;margin-top:8px}
@media(max-width:700px){.site-header{padding-inline:8px}.site-header .brand{font-size:20px}.customizing .workspace{grid-template-rows:minmax(0,1fr) 185px}.custom-tools{scroll-padding-top:105px}.customizing .market-heading{display:none}.customizing #experience{grid-template-rows:minmax(0,1fr) auto}.customizing #faceNav{position:fixed;top:max(5px,env(safe-area-inset-top));left:74px;right:10px;z-index:13;background:#f6f2e8;margin:0}.customizing.has-faces .site-header .brand,.customizing.has-faces .site-header .preview-label{visibility:hidden}}
@media(max-height:520px) and (max-width:700px){.customizing .workspace{grid-template-rows:minmax(0,1fr) 160px}.face-nav{margin-bottom:0}.customizing .scene-viewport{padding:3px}.customizing .display{grid-template-rows:auto minmax(0,1fr) auto}}
@media(max-height:520px) and (min-width:560px){.customizing .workspace{grid-template-columns:minmax(0,1fr) minmax(230px,.8fr);grid-template-rows:minmax(0,1fr)}}
#productDialog{max-height:calc(100dvh - 24px);overflow:hidden}
#productDialog[open]{display:flex;flex-direction:column}
#productDialog>.dialog-heading{flex:none;gap:8px;margin-bottom:8px}
#productDialog .product-detail-body{min-height:0;overflow-y:auto;overscroll-behavior:contain}
#productDialog .detail-copy{padding:12px 2px 0}
#productDialog .detail-copy p{overflow-wrap:anywhere;white-space:pre-wrap}
#productDialog #detailPhoto{height:min(32dvh,260px)}
.product-detail-actions{flex:none;border-top:1px solid #d6cdbb;padding-top:10px;background:#fffdf6}
.product-detail-actions>div{display:flex;gap:8px}
#productDialog .product-detail-actions button{flex:1;min-width:0;min-height:44px;width:auto;padding:9px 10px;font-size:13px;line-height:1.4}
#detailFeedback{font-size:12px;line-height:1.6;margin:0 0 8px;overflow-wrap:anywhere}
.product-card{position:relative}
.in-basket-badge{position:absolute;top:6px;right:6px;z-index:2;border-radius:6px;background:#155b48;color:white;padding:5px 7px;font:700 11px/1.4 system-ui;pointer-events:none;box-shadow:0 1px 4px #0002}
.product-card.in-basket{outline:2px solid #1c6957;outline-offset:1px}
.market-object .in-basket-badge{top:0;right:0;font-size:10px;padding:3px 5px}
.customizing .in-basket-badge{display:none}
.basket-dock{display:flex;flex-direction:column;max-height:min(64dvh,460px);overflow:hidden;background:#fffdf6}
.basket-dock>div:first-child,.basket-dock>#basketFeedback{flex:none}
.basket-dock>section{min-height:0;overflow-y:auto;overscroll-behavior:contain}
.basket-row>span{overflow-wrap:anywhere;min-width:0}
.basket-row>button{flex:none;min-width:64px;white-space:nowrap}
#basketEmpty{font-weight:700;color:#245342}
#continueShopping{width:100%;min-height:44px;margin-bottom:8px}
.product-face{font-size:11px!important;line-height:1.6!important;color:#56644d;margin:8px 0 0;overflow-wrap:anywhere}
#catalogFilter{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;margin:0 0 18px;font-size:12px}#catalogFilter select{width:100%;font-size:13px}
#emptyScene{white-space:pre-line}
#productDialog #closeProduct{font-size:13px;padding:6px 10px;white-space:nowrap}
.basket-row>.basket-product{display:flex;align-items:center;gap:9px;min-width:0;flex:1;text-align:left;border:0;padding:3px 0;background:transparent;white-space:normal}
.basket-product>img{width:46px;height:58px;object-fit:contain;flex:none;background:#eee7d8;border-radius:4px}
.basket-product>span{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}.basket-product strong{font-size:12px}.basket-product span>span{font-size:11px;font-weight:400;line-height:1.5}.basket-product span>span:last-child{color:#53684e}
.basket-row>.basket-remove{min-width:64px;padding:8px;white-space:nowrap}
.face-nav{grid-template-columns:70px minmax(0,1fr) 70px}.face-nav button:first-child,.face-nav #faceNext{font-size:12px;white-space:nowrap;padding:4px}
.custom-tools{overflow-anchor:none}
.selected-quick{border-bottom:1px solid #d8d0bd;padding:6px 0;margin:0 0 8px}.selected-quick h3{font-size:12px;line-height:1.4;margin:0 0 4px;overflow-wrap:anywhere}.selected-quick-hint{font-size:11px;line-height:1.4;margin:0 0 6px;color:#665d48}.selected-quick>.small{font-size:11px;line-height:1.5;margin:0}.transfer-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:end}.transfer-controls label{margin:0;font-size:11px}.transfer-controls select{width:100%;min-height:44px;margin:2px 0 0}.transfer-controls button{min-height:44px;min-width:64px;padding:6px;font-size:12px}.tools-compact .selected-quick{padding-block:2px}.tools-compact .selected-quick h3{font-size:11px;margin-bottom:0}.tools-compact .selected-quick-hint{font-size:10px;margin-bottom:0}
.workspace-divider{display:flex;gap:6px;min-height:44px;align-items:stretch}.workspace-divider>button{min-height:44px;padding:2px 6px;font-size:11px}.workspace-divider #workspaceResize{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;touch-action:none;cursor:row-resize;border:2px solid #b6a78b;background:#e9e3d3;line-height:1.3}.workspace-divider #resetWorkspace{min-width:44px}
.customizing .workspace.adjustable-workspace{grid-template-columns:minmax(0,1fr);row-gap:6px;grid-template-rows:auto var(--display-row,40%) auto 44px minmax(0,1fr)}
.adjustable-workspace>.display{display:contents}.adjustable-workspace .display-controls{grid-row:1}.adjustable-workspace .scene-viewport{grid-row:2;padding:4px}.adjustable-workspace .scene-actions{grid-row:3;margin-top:0}.adjustable-workspace>.workspace-divider{grid-row:4}.adjustable-workspace>.custom-tools{grid-row:5}
.tools-compact .decor-photo-actions p{display:none}.tools-compact .decor-photo-actions{padding-block:4px;margin-bottom:6px}.tools-compact .custom-tools{scroll-padding-top:68px}
.customizing .market-scene.compact-scene{overflow:visible}
.customizing .market-scene .price-tag{font-size:calc(11px * var(--price-scale,1))!important;padding:calc(3px * var(--price-scale,1)) calc(5px * var(--price-scale,1))!important;min-height:12px!important}
.trash-item-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}.trash-row .trash-item-actions button{min-width:0;font-size:12px;margin:5px 0 0}.danger,#confirmTrashDelete{color:#a43c25;border-color:#b76b55;background:#fff4ed}
.trash-footer{flex:none;display:flex;gap:8px;border-top:1px solid #d8d0bd;padding-top:8px}.trash-footer button{flex:1;min-width:0;min-height:44px;padding:6px;font-size:12px}
#trashDeleteDialog{width:min(440px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto}#trashDeleteDialog h2{font-size:20px;line-height:1.5;margin:0 0 12px}#trashDeleteDialog p{font-size:13px;line-height:1.7;overflow-wrap:anywhere}#trashDeleteDialog>div{display:flex;gap:8px}#trashDeleteDialog button{flex:1;min-width:0;min-height:44px;font-size:12px;padding:8px}
/* Scene-local removal: no scroll into the tools, no hidden drag-only action. */
.customizing .display{grid-template-rows:auto minmax(0,1fr) auto auto}
#trashSelected.nearby-trash{position:absolute;z-index:7;width:112px;min-width:112px;min-height:44px;margin:0;padding:6px;font-size:12px;white-space:nowrap;background:#fffaf0;color:#783c28;border:2px solid #99492c;box-shadow:0 2px 6px #51331c30;touch-action:manipulation}
.scene-actions{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 6px;min-width:0;margin-top:5px;padding:5px 8px;border:1px solid #d8d0bd;border-radius:9px;background:#fffdf6}
.scene-actions>p{min-width:0;margin:0;color:#665d48;font-size:11px;line-height:1.5}
.scene-actions.has-trash-undo>p,.scene-actions.has-trash-undo>.recovery-actions{grid-column:1/-1}
.scene-actions.has-inline-trash>p{visibility:hidden}
.recovery-actions{display:flex;justify-content:flex-end;gap:6px;min-height:44px}
.recovery-actions button{min-height:44px;min-width:108px;padding:6px 9px;font-size:12px}
#undoTrash{margin-right:auto;color:#783c28;border-color:#b07857}
.scene-actions.is-dragging>.recovery-actions,.scene-actions.is-dragging>p{visibility:hidden}
.scene-actions .trash-drop{position:absolute;inset:0;width:auto;min-height:100%;box-shadow:none;grid-template-columns:32px minmax(0,1fr);align-content:center;padding:5px 12px}
.scene-actions .trash-drop strong{font-size:14px;line-height:1.5}.scene-actions .trash-drop.drop-ready{outline:2px solid #f6c59c;outline-offset:-4px}
@media(max-height:640px) and (max-width:559px){.customizing .workspace{grid-template-rows:minmax(0,1fr) 112px}}
@media(max-height:520px) and (max-width:559px){.customizing .workspace{grid-template-rows:minmax(0,1fr) 96px}}
@media(max-height:520px) and (max-width:559px){.customizing .workspace.adjustable-workspace{row-gap:4px}.adjustable-workspace .scene-actions{padding:0;border:0;min-height:44px}}
@media(max-height:520px){#productDialog{padding:12px}#productDialog>.dialog-heading{margin:0 0 4px}#productDialog .dialog-heading .eyebrow{margin:0}.product-detail-actions{padding-top:6px}#detailFeedback{font-size:11px;margin-bottom:5px}}
