#furniture-editor{position:absolute;right:14px;top:174px;width:340px;max-width:calc(100% - 28px);max-height:calc(100dvh - 194px);overflow:auto;padding:15px;border:1px solid #ffffff3d;border-radius:15px;background:#183037f5;box-shadow:0 10px 36px #0006;z-index:8;overscroll-behavior:contain}#furniture-editor[hidden]{display:none}.editor-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.editor-head strong{font-size:15px}.editor-head h2{font-size:21px;margin:0}.editor-note,.library-support{font-size:12px;line-height:1.6;color:#c6d6d3}#furniture-editor label{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0;font-size:12px}#furniture-editor select,#furniture-editor input[type=number],#local-furniture-dialog select,#library-search{min-width:0;border:1px solid #ffffff38;border-radius:7px;padding:7px;background:#0e242a;color:#e7f0eb;font:inherit}#piece-select{max-width:220px}#material-slot{max-width:220px}.edit-coordinates{display:grid;grid-template-columns:1fr 1fr;gap:8px}.edit-coordinates label{flex-direction:column;align-items:stretch!important}.edit-coordinates input{width:100%!important;height:auto;direction:ltr;text-align:left}.inline-check{justify-content:flex-start!important;font-size:12px}.inline-check input{flex:none}.edit-actions{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.edit-actions button,#apply-transform,#apply-material{font-size:12px;padding:7px 9px}.material-edit{border-block:1px solid #ffffff20;margin-top:12px;padding:8px 0}.material-edit small{display:block;font-size:11px;color:#b8ccca;line-height:1.5}#editor-status{font-size:12px;line-height:1.6;min-height:2em;margin:8px 0 0;color:#b8ddc8}.is-error{color:#f2cf9d!important}button:disabled{opacity:.45;cursor:not-allowed}#local-furniture-dialog{width:min(760px,calc(100% - 24px));max-height:calc(100dvh - 24px);margin:auto;padding:20px;color:#edf2ed;background:#183037;border:1px solid #ffffff45;border-radius:18px;overflow:auto;font:14px system-ui,sans-serif;overscroll-behavior:contain}#local-furniture-dialog::backdrop{background:#09171cca;backdrop-filter:blur(3px)}#local-furniture-dialog p{line-height:1.65}#local-furniture-dialog button{font-size:13px}.library-pickers,.library-filters{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.library-filters>*{flex:1;min-width:130px!important}.catalog-item{display:grid;grid-template-columns:1fr auto;align-items:center;gap:7px;padding:10px;border:1px solid #ffffff25;border-radius:10px;margin:7px 0}.catalog-item div{font-weight:600;overflow-wrap:anywhere}.catalog-item small{grid-column:1;color:#adc3bf;overflow-wrap:anywhere}.catalog-item button{grid-column:2;grid-row:1/3}.catalog-item [disabled]{max-width:100px}#local-catalog{max-height:250px;overflow:auto;overscroll-behavior:contain}#local-preview{border-top:1px solid #ffffff30;padding-top:15px;margin-top:15px}#local-preview[hidden]{display:none}#local-preview-canvas{max-width:100%;height:220px;border-radius:10px;touch-action:none}#local-preview label{display:flex;align-items:center;gap:8px;margin:10px 0}#library-status{min-height:2em;color:#d8cfb5}#converted-dimensions{font-size:12px}.furniture-editing #loading{display:none}.furniture-editing header{z-index:9}.furniture-editing #furniture-editor{z-index:10}@media(max-width:650px){#furniture-editor{right:8px;top:172px;width:calc(100% - 16px);max-width:none;max-height:calc(100dvh - 180px);padding:12px}.editor-head{align-items:flex-start}.editor-head strong{font-size:14px}.furniture-editing header h1{font-size:16px}.furniture-editing header{padding:8px}.editor-head button{font-size:12px;white-space:nowrap}#local-furniture-dialog{padding:14px}.library-filters>*{min-width:100px!important}.material-edit select{max-width:calc(100% - 65px)!important}}

#furniture-editor.is-collapsed>:not(.editor-head){display:none}#collapse-editor{font-size:11px;padding:5px;white-space:nowrap}.editor-head{flex-wrap:wrap}@media(max-width:650px){#furniture-editor{top:auto;bottom:10px;max-height:45dvh}.editor-head strong{flex-basis:100%}.editor-head button{padding:5px}}

.catalog-thumb{width:72px;height:50px;object-fit:cover;border-radius:6px;grid-column:1;grid-row:3}.catalog-item:has(.catalog-thumb){grid-template-columns:1fr auto}
/* V30: one inspector, explicit draft, touch-sized tools. */
:root{--studio-ink:#102a30;--studio-line:#668078;--studio-accent:#f0ce8f;--studio-paper:#edf3ed}
#furniture-editor{width:350px;background:#132e34f5;border-color:#77938b80;padding:16px;scroll-padding-block:16px 112px;color:var(--studio-paper)}
#furniture-editor .editor-head{padding-bottom:10px;border-bottom:1px solid #77938b45}.editor-head strong{color:#f1ddae;letter-spacing:.02em}.editor-note{color:#d4dfd8}.editor-tools{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:14px}.editor-tools button{min-height:44px;border-color:#76948b}.editor-tools [aria-pressed=true]{color:#172c2e;background:var(--studio-accent);border-color:var(--studio-accent);font-weight:700}.edit-actions button,#apply-transform,#apply-material,#choose-texture,#apply-texture-repeat,#remove-texture{min-height:40px}#furniture-editor input[type=number],#furniture-editor select{min-height:40px;background:#10272d;color:#f4f6f0}#piece-select,#material-slot{max-width:224px}#editor-status{color:#d8ebdd}#texture-preview{padding:10px;background:#0d242b;border:1px solid #718c8066;border-radius:10px;margin-block:12px}#texture-thumbnail{width:100%;max-height:120px;object-fit:contain;background:repeating-conic-gradient(#819087 0 25%,#60746c 0 50%) 50%/16px 16px;border-radius:6px}#texture-description{font-size:12px;overflow-wrap:anywhere}#texture-preview input{width:88px;direction:ltr}.draft-actions{position:sticky;bottom:-16px;z-index:2;margin:18px -16px -6px;padding:12px 16px;background:#16363b;border-top:1px solid #a6c1ae;display:grid;grid-template-columns:1fr 1fr;gap:7px;box-shadow:0 -8px 16px #0b2429a0}.draft-actions span{grid-column:1/-1;font-size:12px;color:#f4dda6}#apply-draft{color:#172c2e;background:#f0ce8f;border-color:#f0ce8f;font-weight:700;min-height:44px}#cancel-draft{min-height:44px;border-color:#b9d1c3}.is-collapsed .draft-actions{display:grid!important;margin-top:10px;padding-top:8px}#draft-dialog{max-width:min(480px,calc(100% - 24px));color:#edf3ed;background:#16363b;border:1px solid #a6c1ae;border-radius:16px;padding:22px;font:15px system-ui;line-height:1.7}#draft-dialog h2{font-size:20px;margin-top:0}#draft-dialog::backdrop{background:#0a1d26bc}#draft-dialog button{min-height:44px}#draft-apply-continue{background:#f0ce8f;color:#172c2e}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,#view:focus-visible{outline:3px solid #f1cf90;outline-offset:3px}#furniture-editor button:disabled{opacity:.58}.furniture-editing #view{touch-action:none}
.walk-speed{border-top:1px solid #77938b80;margin-top:9px;padding-top:8px}.walk-speed label{display:flex;justify-content:space-between;gap:12px;font-size:12px}.walk-speed>div{display:flex;align-items:center;gap:6px;margin-top:6px}.walk-speed input{width:120px;flex:1;accent-color:#f0ce8f}.walk-speed button{min-width:40px;min-height:40px;padding:6px}.walk-speed output{font-variant-numeric:tabular-nums;color:#f1ddae}
@media(max-width:650px){#furniture-editor{width:calc(100% - 16px);bottom:8px;right:8px;padding:12px;max-height:48dvh;border-radius:15px}.editor-head strong{flex-basis:auto;flex:1;font-size:13px}.editor-head button{min-height:36px}.draft-actions{margin-inline:-12px;bottom:-12px;padding:10px 12px}#piece-select,#material-slot{max-width:calc(100% - 65px)}.editor-tools button{min-height:44px}.walking-hud{bottom:10px;right:8px!important;max-width:calc(100% - 16px);padding:10px}.walk-speed input{min-width:70px}.furniture-editing header .options{gap:7px}.furniture-editing header button{padding:7px;font-size:12px}.furniture-editing header h1{font-size:16px}}
@media(max-height:500px){#furniture-editor{top:8px;bottom:8px;right:8px;width:310px;max-height:calc(100dvh - 16px)}.furniture-editing header{max-width:calc(100% - 340px);left:8px;right:auto}.walking-hud .walk-speed{padding-top:4px;margin-top:4px}}
#edit-furniture[aria-pressed=true]{background:#f0ce8f;color:#172c2e;border-color:#f0ce8f;font-weight:700}
#furniture-editor>.editor-head{position:sticky;top:-16px;z-index:3;background:#132e34;padding-block:10px;margin-top:-6px}#furniture-editor.is-collapsed>.editor-head{position:static}
@media(max-width:650px),(max-height:500px){#furniture-editor>p.editor-note:first-of-type{display:none}#furniture-editor>.editor-head{top:-12px}}
#furniture-editor.is-collapsed>#active-tool{display:block;margin:7px 0 0;font-size:12px;color:#f1ddae}#furniture-editor.is-collapsed:not(.has-draft)>.draft-actions{display:none!important}
/* V31: simultaneous furniture transforms, separate surface selection. */
.editor-modes{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:12px 0}.editor-modes button{min-height:44px}.editor-modes [aria-pressed=true]{background:#f0ce8f;color:#172c2e;border-color:#f0ce8f;font-weight:700}.surface-scope{padding:10px;border:1px solid #92ada2;border-radius:9px;background:#0e262d;font-size:12px;line-height:1.7}.surface-scope strong{display:block;color:#f6ddb1;font-size:14px}.surface-scope span{display:block;overflow-wrap:anywhere}#surface-list{width:100%;max-width:100%;font-size:12px}.surface-coverage{font-size:11px;line-height:1.6;margin-top:10px;color:#d2e2da}.surface-coverage summary{cursor:pointer;min-height:36px}.surface-coverage table{border-collapse:collapse;width:100%;font-size:11px}.surface-coverage td,.surface-coverage th{border-bottom:1px solid #76918155;padding:5px;text-align:right}#snap-status{font-size:12px;color:#f0ff82;min-height:1.5em;margin:6px 0}#snap-help{font-size:11px;color:#caddc9}#texture-rotation,#texture-tile-size{width:88px;direction:ltr}.editor-surface #piece-controls,.editor-surface .furniture-only{display:none}.editor-surface #surface-controls{display:block}.editor-surface #material-slot-row{display:none}#surface-controls[hidden]{display:none!important}.editor-mode-note{font-size:12px;line-height:1.6;color:#d1dfd6}.furniture-editing #view{cursor:default}#view.gizmo-move-hover{cursor:move}#view.gizmo-rotate-hover{cursor:alias}#view.gizmo-dragging{cursor:grabbing}#view.surface-hover{cursor:crosshair}.is-collapsed .editor-modes{display:grid!important}.is-collapsed .editor-mode-note{display:none}

#furniture-editor:not(.editor-surface) .surface-only{display:none}#mapping-controls input[type=number]{width:92px;direction:ltr}.editor-surface #material-slot-row{display:none}#texture-preview[hidden]{display:none!important}
