#canvasbox.editor-viewport{overflow:auto!important;aspect-ratio:auto!important;overscroll-behavior:contain;scrollbar-width:auto;scrollbar-color:#b39457 #17231b;touch-action:none}
#canvasbox.editor-viewport #game{display:block!important;max-width:none!important;max-height:none!important;margin:0!important;image-rendering:pixelated;touch-action:none;cursor:crosshair!important}
#canvasbox.editor-viewport.editor-pan #game{cursor:grab!important}
#editor-view-tools{position:fixed;z-index:22000;left:8px;right:8px;top:6px;display:flex;align-items:center;gap:5px;flex-wrap:wrap;box-sizing:border-box;padding:7px 10px;background:#d3b680;color:#322113;border:3px ridge #d8b773;font:14px Georgia;box-shadow:0 3px 9px #0009}
#editor-view-tools[hidden]{display:none}#editor-view-tools small{width:100%;font-size:12px}#editor-view-tools input{width:120px;vertical-align:middle;accent-color:#77532d}#editor-view-tools button{min-height:32px;padding:4px 9px;background:#e2c38d;color:#322113;border:2px outset #ecd7aa;font:13px Georgia}#editor-view-tools button[aria-pressed=true]{background:#95703e;color:#fff0cb;border-style:inset}
#geoEditor{position:fixed!important;z-index:21000!important;left:auto;right:12px;top:100px;bottom:auto;width:330px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 115px)!important;box-sizing:border-box;overflow:auto;zoom:var(--ha-window-scale,1);padding-bottom:26px}
#geoEditor[hidden]{display:none!important}#geoEditor>.geoHeader{position:sticky;top:0;z-index:2;background:#d0b17b;display:flex;align-items:center;gap:4px;flex-wrap:wrap}#geoEditor>p{font:12px/1.4 Georgia;margin:7px 10px}#roRouteEditor{top:100px!important;max-height:calc(100dvh - 115px)!important}#roRouteEditor .rr-heading{display:flex;gap:6px;align-items:center}
body.editing-room-view #quick-shortcuts,body.editing-room-view #ha-floating-huds,body.editing-room-view #party-rail{visibility:hidden}
body.editing-room-view #debug-window{visibility:hidden}
@media(max-height:500px){#editor-view-tools{font-size:12px;padding:3px 6px;gap:3px}#editor-view-tools small{display:none}#editor-view-tools button{min-height:30px;font-size:11px}#editor-view-tools input{width:80px}#geoEditor,#roRouteEditor{top:76px!important;max-height:calc(100dvh - 88px)!important;width:285px}}
.inventory-resource-icon{width:28px;height:28px;object-fit:contain;image-rendering:pixelated;vertical-align:middle;margin-right:6px}.lootInventory p{display:flex;align-items:center}.quick-grid .inventory-resource-icon{display:block;margin:0 auto 3px}
#canvasbox.editor-viewport{display:block!important;text-align:left;align-items:normal;justify-content:normal}
#geoEditor>.geoHeader{color:#322115}#geoEditor[data-resize-side=left]>.haWindowGrip,#roRouteEditor[data-resize-side=left]>.haWindowGrip{right:auto;left:0;transform:scaleX(-1);cursor:nesw-resize}
body.editing-room-view #rrLaunch,body.editing-room-view #watchTraining,body.editing-room-view #party-touch,body.editing-room-view #messages{display:none!important}
#geoExchange{position:fixed!important;inset:0!important;z-index:23000!important}
body.editing-room-view #voiceControls{visibility:hidden}
#geoEditor,#roRouteEditor{zoom:var(--ha-window-scale,1);top:calc(100px / var(--ha-window-scale,1))!important;max-width:calc((100vw - 24px) / var(--ha-window-scale,1));max-height:calc((100dvh - 115px) / var(--ha-window-scale,1))!important}
@media(max-height:500px){#geoEditor,#roRouteEditor{top:calc(76px / var(--ha-window-scale,1))!important;max-height:calc((100dvh - 88px) / var(--ha-window-scale,1))!important}}
