/* Add after world.css. All spatial directions in the canvas stay stable in RTL. */
.world-expanded .world-board{direction:ltr;isolation:isolate;overflow:hidden}
.world-expanded .world-board>button{background:transparent;position:relative;z-index:1;border:1px dashed #526f4829;min-width:0}
.world-expanded .world-board>button:hover{background:#ffffff22}
.world-expanded .world-background{z-index:0;pointer-events:none}
.world-expanded .world-board>button.world-last{box-shadow:inset 0 0 0 3px #216d65}
.world-expanded .world-palette>select{width:100%;margin-block-end:12px;min-height:44px;border:1px solid #c7d2c3;border-radius:12px;padding:8px;background:#fffdf7;color:inherit;font:inherit}
.world-expanded .world-palette>div{max-height:580px;overflow:auto;align-content:start}
.world-expanded .world-layer-list{display:flex;gap:6px;flex-wrap:wrap;max-height:230px;overflow:auto;padding:8px}
.world-expanded .world-layer-list button{display:flex;align-items:center;gap:6px;min-height:48px}
.world-expanded .world-layer-list svg{width:48px;height:48px}
.world-expanded .world-versions{margin-block:12px}
.world-expanded .world-versions button{margin:4px}
.world-expanded .world-file{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:8px;border:1px solid #dce4d7;border-radius:12px}
.world-expanded .world-file input{max-width:230px;font:inherit}
.world-expanded [aria-pressed=true]{box-shadow:inset 0 0 0 2px #216d65}
.world-expanded button:focus-visible,.world-expanded select:focus-visible{outline:3px solid #2157b7;outline-offset:3px}
@media(max-width:700px){.world-expanded .world-palette>div{max-height:210px}.world-expanded .world-board>button{min-height:55px}.world-expanded .world-actions{gap:7px}.world-expanded .world-edit{gap:6px}.world-expanded .world-edit button{flex:1 1 130px;min-height:44px}}
