#modal.home-modal>.panel{width:min(1180px,97vw);max-width:none;padding:14px;max-height:96dvh;overflow:auto}#modal.home-modal .panel-top,#modal.home-modal h2{display:none}#modal.home-modal #modal-body{overflow:visible}.home-editor{position:relative;color:#d6c6cf;font-size:14px;min-height:450px}.home-editor button{font:inherit;border:1px solid #623440;color:inherit;background:#151219;cursor:pointer;padding:8px}.home-editor button:hover,.home-editor button:focus-visible{background:#30202b;outline:2px solid #c08796;outline-offset:-2px}.home-editor button[aria-selected=true],.home-editor button[aria-pressed=true]{background:#3a202c;border-color:#d192a2}.home-toolbar{display:flex;gap:5px;border-bottom:1px solid #633440;padding-bottom:10px}.home-toolbar .home-slot-toggle{font-size:25px;line-height:20px}.home-toolbar .home-grid-toggle{margin-left:auto;font-size:23px;line-height:20px}.home-content{display:grid;grid-template-columns:140px minmax(240px,1fr) 160px;gap:12px;padding-top:12px}.home-categories,.home-inspector{border:1px solid #392b36;background:#08080b;padding:9px}.home-categories{display:flex;flex-direction:column;gap:6px}.home-categories button{text-align:left}.home-middle{min-width:0}.home-preview{position:relative;width:100%;background:#050507;border:1px solid #392b36;touch-action:none}.home-room-canvas{display:block;width:100%;height:auto;image-rendering:pixelated;outline:none;touch-action:none}.home-room-canvas:focus-visible{box-shadow:inset 0 0 0 2px #ae7787}.home-inventory{min-height:130px;max-height:230px;overflow:auto;margin-top:8px;background:#09080c;border:1px solid #392b36;padding:8px}.home-filters{display:flex;gap:4px;flex-wrap:wrap;padding-bottom:8px;border-bottom:1px solid #392b36}.home-filters button{width:39px;height:39px;padding:2px;font-size:24px}.home-filters canvas{width:32px;height:32px}.home-items{display:flex;flex-wrap:wrap;gap:7px;padding-top:8px}.home-editor .home-item{position:relative;width:85px;min-height:105px;padding:4px;touch-action:none;display:flex;flex-direction:column;align-items:center;font-size:11px;justify-content:space-between}.home-item>canvas{height:65px;width:auto;max-width:100%;image-rendering:pixelated}.home-item.placed{filter:grayscale(.85);opacity:.65}.home-item.placed:focus,.home-item.placed:hover{opacity:1;filter:none}.home-unique{position:absolute;top:3px;right:3px;border:1px solid #edcb60;border-radius:50%;color:#edcb60;width:16px;height:16px;display:grid;place-items:center;background:transparent;font-size:11px}.home-style{display:inline-flex;align-items:center;gap:6px;margin:0 5px 6px 0}.home-style-swatch{width:18px;height:18px;display:inline-block;border:1px solid #bbb}.home-inspector h3{font-size:15px;color:#e0bbc9}.home-inspector p{line-height:1.6;font-size:12px}.home-inspector canvas{display:block;margin:auto;image-rendering:pixelated}.home-legend{color:#dfc478}.home-object-control{position:absolute;transform:translate(-50%,-50%);z-index:2;min-width:22px;height:24px!important;padding:0 4px!important;font-size:18px!important;background:#151018!important;border-color:#ddd!important}.home-object-control.home-rotate{color:#f9d36b!important;border-color:#f9d36b!important}.home-object-control:disabled{display:none}.home-footer{display:flex;justify-content:flex-end;align-items:center;gap:8px;border-top:1px solid #633440;margin-top:12px;padding-top:10px}.home-status{margin:0 auto 0 0;color:#a58e9c;font-size:12px}.home-status.error{color:#f1a2b3}.home-confirm{position:absolute;inset:0;z-index:30;background:#050409d9;display:grid;place-items:center}.home-confirm-panel{max-width:400px;margin:10px;background:#0e0b11;border:2px solid #935363;box-shadow:0 0 0 3px #201720;padding:25px;line-height:1.6}.home-confirm-panel button{margin:12px 10px 0 0}.home-drag-ghost{position:fixed;pointer-events:none;background:#17111bd9;border:1px dashed white;color:#fff;z-index:1000;padding:8px;font:13px 'Yume Pixel',monospace}.home-saved-view{display:block}.home-slot-overview{display:flex;align-items:center;justify-content:center;background:#050507;border:1px solid #392b36;padding:5px}.home-slot-overview canvas{max-width:75%;height:170px;object-fit:contain;image-rendering:pixelated}.home-slots{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:12px}.home-slot{border:1px solid #392b36;padding:6px;background:#0b090d;min-width:0}.home-slot.selected{border-color:#d192a2;box-shadow:0 0 0 1px #915765}.home-slot-row{display:flex;gap:4px;position:relative}.home-shape-picker{flex:1;min-width:0;position:relative}.home-shape-picker>button{width:100%;font-size:12px}.home-shape-list{position:absolute;top:100%;left:0;right:0;z-index:10;background:#161019;border:1px solid #a5687c}.home-shape-list button{display:block;width:100%;text-align:left}.home-slot-thumb{display:block;width:100%;padding:2px!important;margin-top:6px}.home-slot-thumb canvas{width:100%;height:105px;object-fit:contain;image-rendering:pixelated}.home-slot-thumb span{display:block;color:#bf96a5}.home-editor.busy .home-content,.home-editor.busy .home-toolbar{pointer-events:none;opacity:.6}
#modal.home-modal #modal-body{display:block}.home-editor{width:100%}.home-item.placed{filter:none;opacity:1}.home-item.placed>canvas{filter:grayscale(1);opacity:.5}.home-item.placed>span:not(.home-unique){color:#7c7079}.home-item.placed .home-unique{color:#edcb60;border-color:#edcb60}.home-slots{gap:8px}.home-slot-thumb canvas{height:90px}.home-slot-overview canvas{height:125px}.home-shape-list:focus-within{z-index:40}.home-footer{position:sticky;bottom:0;background:#08070b;z-index:4}
@media(max-width:760px){.home-content{grid-template-columns:100px minmax(0,1fr);gap:7px}.home-inspector{grid-column:1/-1;display:flex;gap:12px;align-items:center;padding:5px;min-height:50px}.home-inspector canvas{width:48px;height:48px;margin:0}.home-inspector h3{min-width:85px}.home-inspector p{margin:2px;font-size:10px}.home-editor{font-size:12px}.home-toolbar button{padding:6px}.home-inventory{max-height:170px}.home-categories{padding:4px}.home-categories button{padding:7px}.home-slots{gap:6px}.home-slot{padding:3px}.home-slot-row{flex-wrap:wrap}.home-slot-row>button{padding:4px;font-size:12px}.home-shape-picker>button{font-size:10px}.home-slot-overview canvas{height:140px}.home-slot-thumb canvas{height:75px}}
@media(max-width:430px){.home-toolbar{gap:3px}.home-toolbar button{padding:6px 4px;font-size:10px}.home-content{grid-template-columns:78px minmax(0,1fr)}.home-categories button{font-size:10px;padding:7px 3px}.home-inspector{display:none}.home-inventory{max-height:200px}.home-editor .home-item{width:65px;min-height:90px;font-size:9px}.home-item>canvas{height:55px}.home-footer button{padding:7px}.home-status{font-size:9px}.home-preview{min-height:170px;display:flex;align-items:center}.home-room-canvas{min-height:170px;object-fit:contain}.home-slots{grid-template-columns:repeat(3,minmax(0,1fr))}.home-editor{min-height:360px}}
@media(max-width:430px){.home-content{display:block}.home-categories{flex-direction:row;flex-wrap:wrap;margin-bottom:7px}.home-categories button{padding:6px 7px}.home-preview{min-height:0;display:block}.home-room-canvas{min-height:0;object-fit:fill}.home-inventory{max-height:155px}.home-slots{grid-template-columns:repeat(2,minmax(0,1fr))}.home-slot-row{flex-wrap:nowrap}.home-slot-thumb canvas{height:85px}.home-slot-overview canvas{height:100px}.home-editor{min-height:0}}

.home-editor .home-object-control{width:24px;min-width:24px;height:24px!important;padding:0!important;display:grid;place-items:center;line-height:0!important}.home-object-control canvas{display:block;width:16px;height:16px;image-rendering:pixelated;margin:0}.home-object-control:disabled{display:none}.home-filters button{display:grid;place-items:center}.home-filters .home-control-icon{width:24px;height:24px;image-rendering:pixelated}
.home-door-tooltip{position:fixed;z-index:1500;display:grid;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr);align-items:center;gap:5px;padding:6px;background:#100e16;border:2px solid #9e697c;box-shadow:0 2px 0 #30202c;pointer-events:none;box-sizing:border-box}.home-door-tooltip canvas{width:100%;height:auto;image-rendering:pixelated}.home-door-tooltip:after{content:"";position:absolute;bottom:-7px;left:calc(50% - 5px);width:8px;height:8px;background:#100e16;border-right:2px solid #9e697c;border-bottom:2px solid #9e697c;transform:rotate(45deg)}
.home-editor .home-floor-style{display:block;width:100%;padding:4px}.home-floor-style canvas{display:block;width:100%;height:auto;image-rendering:pixelated}
.home-content.home-saved-view{display:grid}.home-saved-view .home-slot-overview{grid-column:2;display:block;padding:0;width:100%;box-sizing:border-box}.home-saved-view .home-slot-overview canvas{display:block;width:100%;max-width:none;height:auto;object-fit:fill}.home-saved-view .home-slots{grid-column:2;display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:4px;margin-top:0;align-items:end}.home-saved-view .home-slot{padding:0;border:0;background:transparent;min-width:0}.home-saved-view .home-slot-row{gap:2px;flex-wrap:nowrap;margin-bottom:4px}.home-saved-view .home-shape-picker>button{padding:3px 2px;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-saved-view .home-slot-row>button{padding:1px;width:16px;flex:none;display:grid;place-items:center}.home-saved-view .home-slot-row>button canvas{width:10px;height:10px}.home-saved-view .home-shape-list{min-width:135px;left:auto;right:0;z-index:12}.home-saved-view .home-slot-thumb,.home-saved-view .home-slot-add{display:grid;place-items:center;width:100%;aspect-ratio:1/1.1;box-sizing:border-box;margin:0;padding:2px!important}.home-saved-view .home-slot-thumb canvas{width:100%;height:auto;aspect-ratio:1;object-fit:contain}.home-saved-view .home-slot-add{font-size:28px;color:#aa8396}.home-saved-view .home-slot.selected .home-slot-thumb{border-color:#d192a2;box-shadow:inset 0 0 0 1px #915765}@media(max-width:760px){.home-content.home-saved-view{display:grid;grid-template-columns:100px minmax(0,1fr)}.home-saved-view .home-slots{grid-column:1/-1}.home-saved-view .home-shape-picker>button{font-size:8px}}@media(max-width:430px){.home-content.home-saved-view{display:block}.home-saved-view .home-slots{margin-top:8px;grid-template-columns:repeat(9,minmax(0,1fr))}.home-saved-view .home-slot-row{display:block}.home-saved-view .home-slot-row>button{display:none}.home-saved-view .home-slot-add{font-size:20px}}
.home-editor .home-item{justify-content:center}

.home-toolbar .home-lock-toggle{margin-left:auto;display:grid;place-items:center;min-width:36px}.home-toolbar .home-grid-toggle{margin-left:0}.home-lock-tooltip{position:fixed;z-index:1500;pointer-events:none;padding:7px 10px;background:#151017;border:1px solid #945666;color:#e5d7df;font:12px "Yume Pixel",monospace;white-space:nowrap;box-shadow:0 2px 6px #0009}.home-lock-tooltip[hidden]{display:none}.home-lock-toggle[hidden]{display:none}

