#editorPanel{position:absolute;right:14px;top:88px;bottom:14px;width:330px;overflow:auto;overscroll-behavior:contain;background:#f1f2eb;color:#243a34;padding:14px;border:1px solid #9baa96;border-radius:12px;box-shadow:0 8px 30px #0005;font-size:13px;z-index:10;line-height:1.45}#editorPanel button{background:#e1e7d9;color:#243a34;border-color:#8b9e8b;min-height:36px;padding:7px 9px;font-size:12px}#editorPanel button.active{background:#315348;color:white}#editorPanel button:disabled{opacity:.45;cursor:default}.edit-title{display:flex;align-items:center;justify-content:space-between;font-size:17px}.edit-tools,.edit-actions{display:flex;gap:5px;flex-wrap:wrap;margin:8px 0}.edit-note{font-size:11px;color:#526358;margin:7px 0}.edit-warning{color:#993e16}#editorPanel p{margin:6px 0}#editorPanel label{display:block;font-size:12px}#editorPanel select,#editorPanel input[type=number]{width:100%;font:inherit;font-size:16px;background:white;border:1px solid #9aab9e;color:#243a34;border-radius:5px;padding:7px;min-height:35px}#editorPanel .edit-check{display:flex;align-items:center;gap:6px}.edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:9px 0}#editorPanel details{border-top:1px solid #b8c5b5;padding-top:8px;margin-top:10px}#editorPanel summary{cursor:pointer;font-weight:600;padding:3px 0}#editMeasureResult{display:block;padding:8px;border-radius:6px;background:#e0ede9;font-variant-numeric:tabular-nums}#editNotice{font-size:12px}#editConfirm{z-index:30;max-width:440px}#app.editing header,#app.editing .status,#app.editing #map,#app.editing #cross,#app.editing #joystick,#app.editing #doorAction,#app.editing #doorPrompt{display:none!important}#app.editing nav{top:12px;left:12px;right:12px;max-width:none;justify-content:flex-start}#app.editing #terrace{display:none}
@media(max-width:760px),(pointer:coarse) and (max-width:1100px){#editorPanel{top:auto;bottom:8px;left:8px;right:8px;width:auto;max-height:49%;padding:10px}#editorPanel button{min-height:38px}#editorPanel .edit-title{font-size:15px}#editorPanel .edit-note{font-size:11px}}
.phone-portrait #editorPanel{top:auto;bottom:8px;left:8px;right:8px;width:auto;max-height:49%;padding:10px}.phone-portrait #app.editing nav{top:12px;left:12px;right:12px;justify-content:flex-start}.phone-portrait #editConfirm{width:calc(100% - 24px);max-height:85%}

#cadCanvas{position:absolute;inset:0;width:100%;height:100%;z-index:1;touch-action:none}#cadCanvas[hidden]{display:none}#furnitureLibrary{width:min(850px,calc(100% - 24px));max-height:85%;overflow:auto;background:#f1f2eb;color:#243a34;border:1px solid #91a18f;border-radius:14px;padding:18px}#furnitureLibrary::backdrop{background:#162e285c}#furnitureLibrary p{font-size:13px}#libraryGrid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:12px}.library-card{display:flex;flex-direction:column;align-items:center;gap:5px;background:#e3e8dc!important;color:#243a34!important;padding:10px!important;border:1px solid #aebda9!important;border-radius:10px!important;white-space:normal!important}.library-card svg{width:80px;height:60px;fill:#d3c0a2;stroke:#6c6955;stroke-width:2}.library-card small{font-size:10px;font-weight:400}.library-card b{font-size:13px}#editorPanel [hidden]{display:none!important}#editorPanel #editFields{border-top:0}#editDelete{color:#913a23!important}#editAdvanced{margin-bottom:10px}#app.editing nav{z-index:12}#furnitureLibrary .edit-title{gap:12px}#furnitureLibrary button{min-height:40px}.phone-portrait #libraryGrid{grid-template-columns:repeat(2,1fr)}.phone-portrait #furnitureLibrary{max-height:85%;padding:12px}.phone-portrait #app.editing #info{display:none}@media(max-width:760px){#libraryGrid{grid-template-columns:repeat(2,1fr)}#app.editing #info{display:none}#editorPanel{max-height:48%}}

.library-card img{width:100%;height:100px;object-fit:contain;max-width:200px}.phone-portrait .library-card img{height:85px}@media(max-width:760px){.library-card img{height:85px}}

.library-card small{color:#536352!important;letter-spacing:0!important;line-height:1.4}

.phone-portrait #furnitureLibrary,.phone-portrait #editConfirm{width:calc(var(--phone-width) - 24px);max-height:calc(var(--phone-height) * .85)}

#styleDialog{width:min(760px,92vw);max-height:85vh;overflow:auto;background:#f2f1e9;color:#2a4237}#styleDialog h2{font-size:22px;margin:0}.style-title{display:flex;justify-content:space-between;align-items:center;gap:12px}.style-title button,.style-actions button,#styleChoices button{background:#dfe5d6;color:#263c32;border:1px solid #a5b59c}#styleDialog p{font-size:13px;line-height:1.7}#styleChoices{display:grid;grid-template-columns:1fr 1fr;gap:10px}.style-choice{display:flex;flex-direction:column;text-align:left;gap:6px;padding:14px!important}.style-choice span{font-size:12px}.style-choice small{color:#52644e;letter-spacing:0;font-size:11px}.style-choice.active{outline:2px solid #769160}.style-scope{background:#e5e9de;padding:12px;border-radius:8px}#styleConfirm{background:#f1dfc7;padding:14px;border:1px solid #d0b38a;border-radius:8px}.style-actions{display:flex;gap:10px}#styleBadge{position:absolute;left:24px;bottom:145px;padding:10px 12px;background:#263d34ed;color:#f1f1e8;border:1px solid #8ea080;border-radius:10px;font-size:12px;z-index:9;max-width:330px}#styleBadge span{display:block;font-size:10px;margin:4px 0}#styleBadge button{font-size:11px;padding:5px 8px}.editing #styleBadge{left:12px;bottom:12px}.phone-portrait #styleDialog{width:calc(var(--phone-width) - 24px);max-height:calc(var(--phone-height) * .86)}.phone-portrait #styleChoices{grid-template-columns:1fr}.phone-portrait #styleBadge{left:12px;bottom:150px;max-width:220px;padding:6px 8px}.phone-portrait .editing #styleBadge{top:92px;bottom:auto;left:12px;max-width:240px}.phone-portrait #styleDialog .style-title{font-size:18px}@media(max-width:760px){#styleChoices{grid-template-columns:1fr}#styleBadge{bottom:150px;left:12px}.editing #styleBadge{top:92px;bottom:auto}}
