body.editor{overflow:auto;height:auto;min-height:100%;background:#0d0b26}.editor header{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:12px 16px;background:linear-gradient(180deg,var(--win-top),var(--win-bottom));border-bottom:3px solid var(--win-border)}.editor header h1{margin:0 12px 0 0;font-size:16px}.editor header a{margin-left:auto;font-size:13px}.editor main{display:grid;grid-template-columns:240px 1fr 280px;gap:12px;padding:12px 16px;align-items:start}@media(max-width:1000px){.editor main{grid-template-columns:1fr}}.ed-panel{background:var(--panel);border:2px solid #3b3249;border-radius:6px;padding:10px;display:flex;flex-direction:column;gap:8px}.ed-panel h2{margin:8px 0 0;font-size:10px}.ed-row{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.ed-row button,.ed-props button,.ed-frames button{padding:5px 8px;font-size:12px}#ed-sprites{list-style:none;margin:0;padding:0;max-height:55vh;overflow:auto}#ed-sprites li{display:flex;justify-content:space-between;gap:6px;padding:4px 6px;border-radius:4px;cursor:pointer;font-size:12px}#ed-sprites li:hover{background:var(--panel-hi)}#ed-sprites li.active{background:#ffd54a2e;color:var(--ai)}#ed-sprites small{color:var(--dim)}.ed-center{display:flex;flex-direction:column;gap:10px;min-width:0}.ed-props{display:flex;flex-wrap:wrap;gap:10px;align-items:center;font-size:12px;color:var(--dim)}.ed-props label{flex-direction:row;align-items:center;gap:4px}.ed-props input[type=number]{width:64px;padding:4px 6px}.ed-canvas-wrap{overflow:auto;max-height:70vh;background:#15121c;border:2px solid #3b3249;border-radius:6px;padding:12px}#ed-canvas{display:block;cursor:crosshair;image-rendering:pixelated;touch-action:none}.ed-frames{display:flex;flex-wrap:wrap;gap:6px;align-items:center}#ed-frame-list{display:flex;gap:6px}#ed-frame-list canvas{height:48px;image-rendering:pixelated;background:#2a2338;border:2px solid transparent;cursor:pointer}#ed-frame-list canvas.active{border-color:var(--ai)}#ed-toolbar button.active{border-color:var(--ai);background:#ffd54a2e}#ed-palette{display:grid;grid-template-columns:repeat(8,1fr);gap:4px}.swatch{aspect-ratio:1;padding:0;border:2px solid #0a0a1a;border-radius:3px}.swatch:before,.swatch:hover:before{content:none!important}.swatch.active{outline:3px solid var(--ai);outline-offset:1px}.swatch.clear{background:repeating-conic-gradient(#2a2338 0,#2a2338 25%,#4a4060 0,#4a4060 50%) 0 0 / 10px 10px;color:#fff}#ed-color{width:48px;height:32px;padding:2px}#ed-preview{width:192px;height:192px;image-rendering:pixelated;border:2px solid var(--win-border);align-self:center}.ed-panel select{font-size:12px;padding:4px}.ed-tabs{display:flex;gap:4px;margin-right:12px}.ed-tabs button.active{border-color:var(--ai);background:#ffd54a33}#mp-palette{list-style:none;margin:0;padding:0;max-height:45vh;overflow:auto}#mp-palette li{display:flex;align-items:center;gap:8px;padding:3px 6px;border-radius:4px;cursor:pointer;font-size:12px}#mp-palette li:hover{background:var(--panel-hi)}#mp-palette li.active{background:#ffd54a2e;color:var(--ai)}#mp-palette canvas{width:32px;height:48px;image-rendering:pixelated;background:#15121c}#mp-palette code{color:var(--dim)}.ed-form{display:flex;flex-direction:column;gap:6px;font-size:12px}.ed-form label{flex-direction:row;align-items:center;justify-content:space-between;gap:8px}.ed-form select,.ed-form input:not([type=checkbox]){width:150px;padding:4px 6px;font-size:12px}#mp-canvas{display:block;cursor:crosshair;image-rendering:pixelated;touch-action:none}#mp-tools button.active{border-color:var(--ai);background:#ffd54a2e}#sd-sounds{list-style:none;margin:0;padding:0;max-height:60vh;overflow:auto}#sd-sounds li{display:flex;justify-content:space-between;gap:6px;padding:4px 6px;border-radius:4px;cursor:pointer;font-size:12px}#sd-sounds li:hover{background:var(--panel-hi)}#sd-sounds li.active{background:#ffd54a2e;color:var(--ai)}#sd-sounds small{color:var(--dim)}#sd-wave{display:block;width:100%;image-rendering:pixelated}.sd-wave-wrap{padding:6px}#sd-layers{display:flex;flex-direction:column;gap:10px}.sd-layer{background:var(--panel);border:2px solid #3b3249;border-radius:6px;padding:8px 10px;display:flex;flex-direction:column;gap:6px}.sd-layer-head,.sd-row{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:12px}.sd-layer-head button,.sd-row button{padding:3px 7px;font-size:12px}.sd-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:2px 14px}.sd-slider{display:grid!important;grid-template-columns:96px 1fr 64px 26px;align-items:center;gap:6px;font-size:11px;color:var(--dim)}.ed-props .sd-slider{grid-template-columns:auto 110px 60px 20px}.sd-slider input[type=number],.sd-row input[type=number]{width:60px;padding:2px 4px;font-size:11px}.sd-row input:not([type]){width:60px;font-size:11px}.sd-opts{display:flex;flex-direction:column;gap:4px}.sd-opt{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:2px 14px;border-top:1px dashed #3b3249;padding-top:4px}.sd-opt-head{grid-column:1 / -1;flex-direction:row!important;font-size:11px;color:var(--text, #fff)}.sd-opt select{justify-self:start;font-size:11px}.sd-event{display:flex;flex-direction:column;gap:3px;padding:6px 0;border-bottom:1px dashed #3b3249}.sd-energy{flex-direction:row!important;align-items:center;gap:6px;font-size:12px}
