body.editor-dark{--s0:var(--ui-canvas);--chrome:var(--ui-shell);--s1:var(--ui-shell);--s2:var(--ui-field);--s3:var(--ui-raised);--edge:var(--ui-edge);--chrome-deep:var(--ui-depth);--edge-field:var(--ui-field-edge);--text-dim:var(--ui-dim);--track:var(--ui-edge);--thumb:var(--ui-thumb);--knob:var(--ui-knob);--text-hi:var(--ui-text);--text-lo:var(--ui-muted);--icon:var(--ui-muted);--acc:#fff;--acc-deep:#fff;--acc-text:#fff;--acc-soft:#ffffff24;--bg:var(--s0);--bg-card:var(--s1);--bg-inset:var(--s2);--text:var(--text-hi);--text-muted:var(--text-lo);--accent:var(--acc);--accent-deep:var(--acc-deep);--accent-deep-hover:#dedede;--accent-text:var(--acc-text);--accent-hover:#dedede;--accent-soft:var(--acc-soft);--border:var(--edge);--green:#4fc98e;--red:#f2707e;--radius:6px;--radius-sm:4px;--radius-xs:3px;--radius-btn:8px;--tool-btn:32px;--rail-pad:4px;--shadow:none;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;background:var(--s0);flex-direction:column;height:100dvh;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:13px;line-height:1.35;display:flex;overflow:hidden}body.editor-dark.theme-slate{--chrome:#24262a;--s1:#24262a;--s2:#2c2f34;--s3:#32353b;--edge:#3d4148;--chrome-deep:#191b1f;--edge-field:#555b65}[hidden]{display:none!important}body.exporting .editor-topbar,body.exporting .editor-body{pointer-events:none}body.editor-dark button,body.editor-dark select,body.editor-dark input,body.editor-dark summary,body.editor-dark .layer-row,body.editor-dark .history-list li{transition:background-color .1s ease-out,border-color .1s ease-out,color .1s ease-out}body.editor-dark :focus-visible{outline:2px solid var(--acc-text);outline-offset:-1px}body.editor-dark .site-header{background:var(--chrome);border-bottom:1px solid var(--edge);flex-shrink:0}body.editor-dark .site-header .inner{max-width:none;padding:.35rem .75rem}body.editor-dark .brand{font-size:.95rem}.editor-main{flex-direction:column;flex:1;width:100%;max-width:none;min-height:0;margin:0;padding:0;display:flex}.editor-topbar{background:var(--chrome);border-bottom:1px solid var(--edge);flex-wrap:wrap;flex-shrink:0;align-items:center;gap:.75rem;padding:.3rem .6rem;display:flex}.editor-title{color:var(--text-lo);font-size:.82rem;font-weight:600}.back-link{font-size:.78rem}.topbar-group{align-items:center;gap:.2rem;display:flex}.topbar-group.right{margin-inline-start:auto}.options-bar{background:var(--chrome);border-bottom:1px solid var(--edge);flex-wrap:wrap;flex-shrink:0;align-items:center;gap:.4rem .75rem;min-height:44px;padding:.25rem .6rem;display:flex}.options-group{align-items:center;gap:.25rem;display:flex}.opt-sep{background:var(--edge);flex-shrink:0;width:1px;height:24px;margin:0 2px}.statusbar{background:var(--chrome-deep);border-top:1px solid var(--edge);height:36px;color:var(--text-lo);font-variant-numeric:tabular-nums;white-space:nowrap;flex-shrink:0;align-items:center;gap:1.25rem;padding:0 .75rem;font-size:12px;display:flex;overflow:hidden}.statusbar .grow{flex:1}.statusbar #statusHint{text-overflow:ellipsis;min-width:0;overflow:hidden}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:0s!important;animation-duration:0s!important;animation-iteration-count:1!important}}.tb-btn{font:inherit;border-radius:var(--radius-btn);width:34px;height:34px;color:var(--icon);cursor:pointer;background:0 0;border:1px solid #0000;place-items:center;display:grid}.tb-btn.text{width:auto;padding:0 .6rem;font-size:12px;font-weight:600}.tb-btn svg{width:18px;height:18px}.tb-btn:hover{background:var(--s2);color:var(--text-hi)}.tb-btn:disabled{opacity:.35;cursor:default;pointer-events:none}.tb-btn[aria-pressed=true]{background:var(--acc-soft);color:var(--acc-text)}.tb-btn.mini{width:28px;height:28px}.tb-btn.mini svg{width:14px;height:14px}.tb-btn.mini.text{width:auto;padding:0 .5rem;font-size:11px}body.editor-dark .btn{border-radius:var(--radius-sm);padding:.35rem .8rem;font-size:12px;font-weight:600}.zoom-label{font-variant-numeric:tabular-nums;text-align:center;min-width:5ch;color:var(--text-lo);flex-shrink:0;font-size:12px}.export-scale select,.options-bar select{font:inherit;border-radius:var(--radius);background:var(--s2);color:var(--text-hi);border:1px solid #0000;padding:.25rem .4rem;font-size:12px}.export-scale select:hover,.options-bar select:hover{border-color:var(--edge-field)}.menu-wrap{position:relative}.menu-pop{top:calc(100% + 4px);z-index:50;background:var(--s3);border:1px solid var(--edge);border-radius:var(--radius);flex-direction:column;min-width:190px;max-height:calc(100dvh - 48px);padding:.25rem;display:flex;position:absolute;inset-inline-start:0;overflow-y:auto;box-shadow:0 4px 16px #00000080}.menu-pop>*{flex-shrink:0}.menu-item{font:inherit;text-align:start;border-radius:var(--radius-sm);color:var(--text-hi);cursor:pointer;white-space:nowrap;background:0 0;border:none;padding:.35rem .6rem;font-size:12px}.menu-item:hover{background:var(--s2)}.menu-item:disabled{opacity:.4;cursor:default}.editor-main[data-booting]{visibility:hidden}.editor-body{flex:1;grid-template-columns:auto 1fr 288px;align-items:stretch;gap:0;min-height:0;display:grid}.toolbar{background:var(--chrome);border-inline-end:1px solid var(--edge);padding:var(--rail-pad);scrollbar-width:none;flex-direction:column;align-items:center;gap:2px;display:flex;overflow-y:auto}.tool-btn{font:inherit;width:var(--tool-btn);height:var(--tool-btn);border-radius:var(--radius-btn);color:var(--icon);cursor:pointer;background:0 0;border:none;place-items:center;display:grid;position:relative}.tool-btn svg{width:17px;height:17px}.tool-btn:hover{background:var(--s2);color:var(--text-hi)}.tool-btn.active,.tool-btn.toggle[aria-pressed=true]{background:var(--acc-soft);color:var(--acc-text)}.toolbar-sep{background:var(--edge);flex-shrink:0;width:22px;height:1px;margin:3px 0}.canvas-area{background:var(--s0);place-items:center;min-width:0;height:auto;min-height:0;padding:1.5rem;display:grid;overflow:auto}.side-panel{background:var(--s1);border-inline-start:1px solid var(--edge);scrollbar-width:thin;scrollbar-color:var(--thumb) transparent;flex-direction:column;gap:0;min-height:0;display:flex;overflow-y:auto}.side-panel::-webkit-scrollbar{width:10px}.side-panel::-webkit-scrollbar-thumb{background:var(--thumb);border:2px solid var(--s1);border-radius:5px}.side-panel::-webkit-scrollbar-track{background:0 0}.panel{border:none;border-bottom:1px solid var(--edge);background:0 0;border-radius:0;padding:0}details.panel>summary{cursor:pointer;height:36px;color:var(--text-hi);-webkit-user-select:none;user-select:none;align-items:center;gap:.45rem;padding:0 .6rem;font-size:12px;font-weight:600;list-style:none;display:flex}details.panel>summary::-webkit-details-marker{display:none}details.panel>summary:before{content:"";border-inline-start:4px solid var(--text-lo);border-top:3.5px solid #0000;border-bottom:3.5px solid #0000;flex-shrink:0;width:0;height:0;transition:transform .12s ease-out}details.panel[open]>summary:before{transform:rotate(90deg)}details.panel>summary:hover{background:var(--s2)}.panel-body{padding:2px .6rem .6rem}.panel-actions{align-items:center;gap:.25rem;margin-inline-start:auto;display:flex}.panel h2{text-transform:none;letter-spacing:0;color:var(--text-hi);margin-bottom:.45rem;font-size:12px}.panel-hint{color:var(--text-lo);margin-top:.45rem;font-size:11px;line-height:1.45}.panel-head{justify-content:space-between;align-items:center;margin-bottom:.4rem;display:flex}.panel-head h2{margin-bottom:0}.panel-head-actions{gap:.2rem;display:flex}body.editor-dark input[type=range]{appearance:none;--pct:50%;background:0 0;height:14px}body.editor-dark input[type=range]::-webkit-slider-runnable-track{background:linear-gradient(to right, var(--acc) 0 var(--pct), var(--track) var(--pct) 100%);border-radius:2px;height:3px}body.editor-dark input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;background:var(--knob);border:none;border-radius:50%;width:11px;height:11px;margin-top:-4px;transition:background-color .1s ease-out}body.editor-dark input[type=range]:hover::-webkit-slider-thumb{background:var(--text-hi)}body.editor-dark input[type=range]::-moz-range-track{background:var(--track);border-radius:2px;height:3px}body.editor-dark input[type=range]::-moz-range-progress{background:var(--acc);border-radius:2px;height:3px}body.editor-dark input[type=range]::-moz-range-thumb{background:var(--knob);border:none;border-radius:50%;width:11px;height:11px}body.editor-dark input[type=range]:disabled{opacity:.35}body.editor-dark .panel input[type=text],body.editor-dark .panel input[type=number],body.editor-dark .panel select{background:var(--s2);border-radius:var(--radius);color:var(--text-hi);border:1px solid #0000;height:34px;padding:0 6px;font-family:inherit;font-size:12px}body.editor-dark .panel input:hover,body.editor-dark .panel select:hover{border-color:var(--edge-field)}body.editor-dark .panel input:focus,body.editor-dark .panel select:focus{border-color:var(--acc)}body.editor-dark .panel input:focus:not(:focus-visible),body.editor-dark .panel select:focus:not(:focus-visible){outline:none}dialog{border:1px solid var(--edge-field);background:var(--s3);color:var(--text-hi);border-radius:10px;min-width:280px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);margin:auto;padding:1.25rem;box-shadow:0 8px 32px #0000008c}dialog::backdrop{background:#0000008c}@media (prefers-reduced-motion:no-preference){dialog[open]{animation:.12s ease-out dialog-in}dialog[open]::backdrop{animation:.12s ease-out backdrop-in}}@keyframes dialog-in{0%{opacity:0;transform:translateY(4px)scale(.985)}}@keyframes backdrop-in{0%{opacity:0}}dialog h2{letter-spacing:-.01em;font-size:1rem;font-weight:600}.dialog-warn{color:var(--text-lo);margin-top:.25rem;font-size:12px}.dialog-hint{color:var(--text-lo);margin-bottom:.9rem;font-size:11px}.dialog-fields{flex-wrap:wrap;gap:.9rem;margin:.9rem 0 .4rem;display:flex}.dialog-fields label{min-width:0;color:var(--text-lo);flex-direction:column;gap:.3rem;font-size:12px;font-weight:600;display:flex}.dialog-fields label.dialog-check{flex-direction:row;align-self:center;align-items:center;font-weight:400}.dialog-note{color:var(--text-lo);white-space:nowrap;font-variant-numeric:tabular-nums;font-size:11px;font-weight:400}.dialog-fields select,.dialog-fields input:not([type=checkbox]):not([type=radio]){font:inherit;border-radius:var(--radius-sm);border:1px solid var(--edge);background:var(--s2);width:92px;color:var(--text-hi);padding:.3rem .45rem}.dialog-fields input[type=checkbox],.dialog-fields input[type=radio]{flex:none;width:14px;height:14px;margin:0}.dialog-fields.dialog-stack label.dialog-check{align-self:stretch}.dialog-actions{border-top:1px solid var(--edge);flex-wrap:wrap;justify-content:flex-end;gap:.45rem;margin-top:.5rem;padding-top:.85rem;display:flex}.shortcuts-dialog{width:min(430px,92vw)}#shortcutSearch{width:100%;font:inherit;border-radius:var(--radius-sm);border:1px solid var(--edge);background:var(--s2);color:var(--text-hi);margin-top:.55rem;padding:.3rem .5rem}#shortcutSearch:focus-visible{border-color:var(--acc)}.shortcut-list{max-height:55vh;margin:.35rem 0 .8rem;overflow-y:auto}.shortcut-list h3{text-transform:uppercase;letter-spacing:.07em;color:var(--text-lo);margin:.85rem 0 .25rem;font-size:.7rem;font-weight:600}.shortcut-row{justify-content:space-between;align-items:baseline;gap:1rem;padding:.16rem 0;font-size:.85rem;display:flex}.shortcut-row kbd{font:inherit;color:var(--text-hi);background:var(--s2);border:1px solid var(--edge);white-space:nowrap;border-radius:4px;padding:0 .4rem;font-size:.76rem}.shortcut-empty{color:var(--text-lo);margin:.6rem 0}.menu-bar,.tab-strip{background:var(--chrome-deep);border-bottom:1px solid var(--edge);flex-shrink:0}.menu-bar{align-items:stretch;height:37px;padding:0 6px;display:flex}.tab-strip{scrollbar-width:none;align-items:stretch;height:44px;display:flex;overflow-x:auto}.tab{font:inherit;color:var(--text-lo);border:none;border-inline-end:1px solid var(--edge);white-space:nowrap;cursor:pointer;background:0 0;align-items:center;gap:6px;max-width:180px;padding:0 10px;font-size:13px;display:flex}.tab.home-tab{width:calc(var(--tool-btn) + 2 * var(--rail-pad) + 1px);border-inline-end:1px solid var(--edge);flex:none;justify-content:center;padding:0}.tab.active{background:var(--s0);color:var(--text-hi);box-shadow:inset 0 2px 0 var(--acc)}.tab:hover:not(.active){background:var(--s2)}.tab .tab-label{text-overflow:ellipsis;overflow:hidden}.tab .dirty-dot{background:var(--acc);border-radius:50%;flex-shrink:0;width:6px;height:6px}.tab .tab-close{font:inherit;color:inherit;border-radius:var(--radius-sm);cursor:pointer;background:0 0;border:none;padding:0 3px}.tab .tab-close:hover{background:var(--s2);color:var(--text-hi)}.home-tab{font-size:15px}.tab-rename{font:inherit;background:var(--s2);width:110px;color:var(--text-hi);border:1px solid var(--acc);border-radius:var(--radius);padding:1px 4px;font-size:13px}@media (pointer:coarse){.tab-strip{height:44px}.tab{padding:0 14px}.tab .tab-close{justify-content:center;align-items:center;min-width:44px;height:44px;padding:0;display:inline-flex}}.editor-body{position:relative}.start-screen{z-index:40;background:var(--s0);place-items:center;display:grid;position:absolute;inset:0}.start-inner{grid-template-columns:minmax(0,1fr);grid-template-areas:"new""recent";gap:1.6rem;width:min(100%,600px);max-height:100%;padding:2rem;display:grid;overflow-y:auto}.start-new{grid-area:new}.start-recent{grid-area:recent}.start-inner h2{text-transform:uppercase;letter-spacing:.06em;color:var(--text-lo);margin-bottom:.7rem;font-size:.85rem}.preset-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:.5rem;margin-bottom:.8rem;display:grid}.preset{font:inherit;border-radius:var(--radius-sm);border:1px solid var(--edge);background:var(--s2);min-width:0;min-height:44px;color:var(--text-hi);cursor:pointer;padding:.45rem .2rem;font-size:clamp(10px,2.6vw,14px)}.preset:hover{border-color:var(--acc)}.start-custom{flex-wrap:wrap;align-items:center;gap:.45rem;margin-bottom:.7rem;display:flex}.start-custom input{width:64px;font:inherit;border-radius:var(--radius);border:1px solid var(--edge);background:var(--s2);color:var(--text-hi);padding:.35rem .45rem}.start-x{color:var(--text-lo)}.start-hint{color:var(--text-lo);font-size:12px}.recent-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:.6rem;display:grid}.recent-card{border:1px solid var(--edge);border-radius:var(--radius);background:var(--s1);cursor:pointer;align-items:center;gap:.55rem;padding:.45rem;display:flex;position:relative}.recent-card:hover{border-color:var(--acc)}.recent-thumb{border-radius:var(--radius-sm);background-color:var(--s2);width:44px;height:44px;image-rendering:pixelated;background-position:50%;background-repeat:no-repeat;background-size:contain;flex-shrink:0}.recent-meta{flex-direction:column;min-width:0;display:flex}.recent-name{color:var(--text-hi);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.recent-sub{color:var(--text-lo);font-size:11px}.recent-del{font:inherit;color:var(--text-lo);border-radius:var(--radius-sm);cursor:pointer;background:0 0;border:none;margin-inline-start:auto;padding:2px 5px}.recent-del:hover{background:var(--s2);color:var(--red)}.start-empty{color:var(--text-lo);font-size:12px}@media (width<=480px){.start-inner{padding:1rem}.preset-grid{gap:.3rem}}.cta-btn{font:inherit;border-radius:var(--radius);background:var(--acc-deep);color:#fff;cursor:pointer;border:none;padding:.5rem 1.1rem}body.editor-dark .cta-btn:focus-visible{outline-color:var(--text-hi)}.cta-btn.secondary{background:var(--s2);color:var(--text-hi)}.mb-brand{align-items:center;padding:0 8px;display:flex}.mb-brand .tpe-mark{font-size:16px}.mb-brand,.mb-brand:hover{text-decoration:none}.mb-menus{align-items:stretch;min-width:0;display:flex}@media (width<=860px),(width<=1024px) and (height<=500px){.mb-menus{scrollbar-width:none;overflow-x:auto}}.menu-bar .menu-wrap{align-items:stretch;display:flex}.mb-actions{flex-shrink:0;align-items:center;gap:.2rem;margin-inline-start:auto;padding-inline-end:2px;display:flex}.mb-actions .tb-btn.text{height:30px}.mb-actions .opt-sep{background:var(--edge);width:1px;height:20px;margin:0 4px}@media (width<=860px),(width<=1024px) and (height<=500px){.mb-actions{display:none}}.mb-btn{font:inherit;color:var(--text-hi);cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:0;padding:0 10px;font-size:13px}.mb-btn:hover,.mb-btn[aria-expanded=true]{background:var(--s2)}.menu-sep{border:none;border-top:1px solid var(--edge);margin:4px 6px}.menu-check{float:right;color:var(--acc-text);margin-left:1.25rem}a.menu-item{text-decoration:none}.menu-pop.context-pop{z-index:60;outline:none;position:fixed;inset:auto}.ad-slot{background:var(--chrome)}body.ads-on .center-col{position:relative}.ad-rail{top:0;right:0;bottom:var(--tl-h,0px);z-index:2;border-inline-start:1px solid var(--edge);justify-content:center;width:316px;padding-top:8px;display:flex;position:absolute;overflow:hidden}.ad-banner{border-top:1px solid var(--edge);flex-shrink:0;justify-content:center;align-items:center;padding:6px 0;display:flex}.ad-placeholder{border:1px dashed var(--edge);border-radius:var(--radius-sm);color:var(--text-lo);letter-spacing:.08em;text-transform:uppercase;place-items:center;font-size:12px;display:grid}.ad-rail .ad-placeholder{width:300px;height:600px;max-height:calc(100% - 16px)}.ad-banner .ad-placeholder{width:320px;height:50px}@media (width<=1279px){body.ads-on .ad-rail{display:none}}@media (width>=861px) and (height>=501px),(width>=1025px){body.ads-on .ad-banner{display:none}}@media (width<=860px),(width<=1024px) and (height<=500px){body.editor-dark{height:auto;overflow:auto}.editor-body{grid-template-columns:1fr}.toolbar{border-inline-end:none;border-bottom:1px solid var(--edge);flex-direction:row;order:1;overflow-x:auto}.toolbar-sep{width:1px;height:22px;margin:0 3px}.canvas-area{order:2;height:55vh}.side-panel{border-inline-start:none;border-top:1px solid var(--edge);order:3;overflow-y:visible}.options-bar{flex-wrap:wrap}}@media (height<=819px) and (pointer:fine){body.editor-dark{--tool-btn:30px}.toolbar{gap:1px}.menu-bar{height:34px}.tab-strip{height:40px}.statusbar{height:32px}.mb-actions .tb-btn.text{height:28px}}@media (pointer:coarse){body.editor-dark{--tool-btn:40px}}body.editor-dark input[type=checkbox],body.editor-dark input[type=radio]{accent-color:var(--acc-deep)}body.editor-dark select option{background:var(--s2);color:var(--text-hi)}body.editor-dark dialog input:not([type=checkbox]):not([type=radio]):not([type=color]),body.editor-dark dialog select{border-color:var(--edge-field)}body.editor-dark dialog .btn,body.editor-dark #shortcutsCloseBtn{min-height:32px}body.editor-dark dialog .btn:focus-visible{outline-color:var(--text-hi)}body.editor-dark dialog .btn.secondary:focus-visible{outline-color:var(--acc-text)}body.editor-dark .cta-btn:not(.secondary):hover{background:var(--accent-deep-hover)}body.editor-dark .menu-item:disabled:hover{background:0 0}body.editor-dark .app-toast{background:var(--s3);border-color:var(--edge-field);box-shadow:0 8px 28px #0006}body.editor-dark .app-toast-action:focus-visible{outline-color:var(--text-hi)}body.editor-dark :is(.cta-btn,button.btn):not(.secondary),body.editor-dark .app-toast-action{color:#151515}body.editor-dark :is(.cta-btn,button.btn):not(.secondary):focus-visible,body.editor-dark .app-toast-action:focus-visible{outline-color:#151515}@keyframes editor-logo-rgb{0%,to{background-position:0%,0%}50%{background-position:100%,100%}}@supports (background:linear-gradient(red, blue) border-box){@media (prefers-reduced-motion:no-preference){body.editor-dark .mb-brand .tpe-mark{background-image:linear-gradient(var(--chrome), var(--chrome)), linear-gradient(115deg, #ff647c, #e779ff, #718bff, #40d9d0, #8be078, #ffcf70, #ff647c);background-size:300% 100%,300% 100%;background-origin:border-box;background-clip:padding-box,border-box;border-color:#0000;animation:16s ease-in-out infinite editor-logo-rgb}}}@media (forced-colors:active){body.editor-dark .mb-brand .tpe-mark{color:canvastext;background-image:none;border-color:canvastext;animation:none}}.hand-pan-ready,.hand-pan-ready canvas{cursor:grab!important}.selection-handles{pointer-events:none;z-index:25;position:fixed;inset:0}.selection-handles button{pointer-events:auto;touch-action:none;color:#151515;background:#fff;border:1px solid #151515;padding:0;position:fixed;transform:translate(-50%,-50%)}.selection-scale-handle{cursor:nwse-resize;width:12px;height:12px}.selection-scale-handle:nth-child(2),.selection-scale-handle:nth-child(3){cursor:nesw-resize}.selection-rotate-handle{border-radius:50%;width:24px;height:24px;font-size:19px}.selection-scale-preview{pointer-events:none;z-index:24;border:1px dashed #fff;outline:1px solid #151515;position:fixed}.group-name{text-align:left;text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.group-row input{width:100%;min-width:0}.layer-list{padding-bottom:22px}.layer-list .drop-inside{outline:2px solid var(--acc);outline-offset:-2px;background:var(--acc-soft)}.getting-started-dialog{width:min(680px,100vw - 32px);max-height:calc(100dvh - 32px);color:var(--text-hi);background:var(--s1);border:1px solid var(--edge);border-radius:8px;padding:24px;overflow:auto}.getting-started-dialog h3{margin:20px 0 8px}.getting-started-dialog p{line-height:1.6}#customPalette{scrollbar-gutter:stable;max-height:240px;padding:4px;overflow:hidden auto}#customPalette .swatch-wrap:focus-within .swatch-remove{display:grid}@media (pointer:coarse){.selection-scale-handle{width:22px;height:22px}}.about-dialog{width:min(440px,100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto}.about-dialog p{line-height:1.6}.about-links{flex-wrap:wrap;gap:12px 20px;margin-block:20px 8px;display:flex}.about-dialog a{color:var(--text-hi);text-underline-offset:3px}.about-dialog summary{cursor:pointer}.mb-actions .report-bug-link{white-space:nowrap;align-items:center;gap:6px;text-decoration:none;display:inline-flex}.mb-actions .report-bug-link svg{flex-shrink:0}@media (width<=1100px){.report-bug-link span{display:none}}body.editor-dark .mb-actions .report-bug-link{background-color:var(--chrome);color:#fff;border-color:#fff}@supports (background:linear-gradient(red, blue) border-box){@media (prefers-reduced-motion:no-preference){body.editor-dark .mb-actions .report-bug-link{background-image:linear-gradient(115deg,#702139,#562269,#293f89,#16564f,#35521f,#69501b,#702139),linear-gradient(115deg,#ff647c,#e779ff,#718bff,#40d9d0,#8be078,#ffcf70,#ff647c);background-size:300% 100%,300% 100%;background-origin:border-box;background-clip:padding-box,border-box;border-color:#0000;animation:16s ease-in-out infinite editor-logo-rgb}body.editor-dark .mb-actions .report-bug-link:hover{filter:brightness(1.15)}}}@media (forced-colors:active){body.editor-dark .mb-actions .report-bug-link{color:linktext;filter:none;background-color:canvas;background-image:none;border-color:linktext;animation:none}}.opt-slider{align-items:center;gap:.35rem;display:flex}.opt-slider input[type=range]{flex:none;width:72px}.opt-slider-val{font-variant-numeric:tabular-nums;color:var(--text-lo);text-align:right;flex:none;min-width:3ch;font-size:11px}#tileSizeSel{width:100px}#inkSelect{width:84px}#gradDitherSel{width:102px}.tl-frame-label{text-overflow:ellipsis;min-width:10ch;max-width:25ch;overflow:hidden}#tlPlaybackMode{width:72px;font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--edge);border-radius:4px;flex:none}#exportRange{width:min(260px,100%)}#tagDirection{width:min(240px,100%)}.menu-item .menu-key{float:right;color:var(--text-lo);margin-left:1.25rem;font-size:11px}.blend-row select{border-radius:var(--radius);background:var(--s2);min-width:0;height:30px;color:var(--text-hi);border:1px solid #0000;flex:1;padding:0 4px;font-family:inherit;font-size:12px}.blend-row select:hover{border-color:var(--edge-field)}.blend-row select:focus{border-color:var(--acc)}.blend-row select:focus:not(:focus-visible){outline:none}.dialog-actions{flex-direction:row-reverse;justify-content:flex-start}.panel-tabs{display:none}.layer-drag-handle{width:26px;color:var(--text-lo);cursor:grab;letter-spacing:1px;background:0 0;border:none;flex-shrink:0;align-self:stretch;place-items:center;padding:0;font-size:15px;display:none}@media (width<=860px),(width<=1024px) and (height<=500px){.canvas-area{order:0;min-height:0}.toolbar{scrollbar-width:none;flex-direction:row;order:1;width:auto;padding:2px 4px;overflow-x:auto}.toolbar::-webkit-scrollbar{display:none}.toolbar-sep{align-self:stretch;width:1px;height:auto}.side-panel{border-left:none;border-top:1px solid var(--edge);flex-direction:column;order:2;width:auto;max-height:42vh;display:flex}.side-panel.collapsed{max-height:none}.panel-tabs{flex:none;gap:2px;padding:4px 6px 0;display:flex}.panel-tab{border-radius:var(--radius-sm) var(--radius-sm) 0 0;background:var(--s2);height:34px;color:var(--text-lo);cursor:pointer;border:none;flex:1;font-size:13px;font-weight:600}.panel-tab[aria-pressed=true]{background:var(--acc-soft);color:var(--acc-text)}.panel-tab.sheet-toggle{flex:0 0 44px;font-size:15px}.side-panel .panel summary{display:none}.side-panel .panel{min-height:0;display:none;overflow-y:auto}.side-panel[data-active-tab=color] .panel-color,.side-panel[data-active-tab=layers] .panel-layers,.side-panel[data-active-tab=tiles] .panel-tiles{display:block}.side-panel.collapsed .panel{display:none}.options-bar{scrollbar-width:none;flex-wrap:nowrap;overflow-x:auto}.options-bar::-webkit-scrollbar{display:none}.options-bar .topbar-group.right{margin-left:0}.statusbar>span:last-of-type{display:none}.statusbar{height:auto;min-height:24px;padding-bottom:calc(4px + env(safe-area-inset-bottom))}.menu-pop{max-height:60vh;position:fixed;top:auto;left:8px;right:8px;overflow-y:auto}}.opt-select{border-radius:var(--radius);background:var(--s2);height:34px;color:var(--text-hi);border:1px solid #0000;padding:0 4px;font-family:inherit;font-size:12px}.opt-select:hover{border-color:var(--edge-field)}.extract-preview{grid-template-columns:repeat(auto-fill,minmax(20px,1fr));gap:2px;min-height:22px;margin:.5rem 0;display:grid}.extract-chip{aspect-ratio:1;border:1px solid var(--edge);border-radius:2px}.dialog-fields.dialog-stack{flex-direction:column;gap:.45rem}.dialog-fields.dialog-stack .dialog-check{color:var(--text-hi);flex-direction:row;align-items:center;font-weight:500}.dialog-fields.dialog-stack select{width:auto;margin:0 .3rem}.sheet-preview-wrap{justify-content:center;max-height:260px;margin-bottom:10px;display:flex;overflow:auto}.sheet-preview{image-rendering:pixelated;background:repeating-conic-gradient(#80808040 0 25%, transparent 0 50%) 0 0 / 12px 12px;max-width:100%}.dialog-hint.dialog-problem{color:var(--red)}.import-summary{max-height:40vh;margin-bottom:8px;overflow:auto}.import-summary p{margin:0 0 4px}.import-summary ul{opacity:.85;margin:0 0 10px;padding-left:18px;font-size:13px}.import-summary li{margin:2px 0}.dialog-check{align-items:center;gap:.4rem;display:flex}.brush-item{align-items:center;gap:.5rem;display:flex}.brush-thumb{width:22px;height:22px;image-rendering:pixelated;background-image:repeating-conic-gradient(var(--s3) 0 25%, var(--s2) 0 50%);border-radius:var(--radius-sm);background-size:8px 8px;flex-shrink:0}.brush-item .brush-del{color:var(--text-lo);margin-left:auto;padding:0 4px}.brush-item .brush-del:hover{color:var(--red)}.menu-item.active-brush{background:var(--acc-soft);color:var(--acc-text)}.minimap-body{justify-content:center;display:flex}#minimapCanvas{image-rendering:pixelated;border:1px solid var(--edge);border-radius:var(--radius-sm);background-image:repeating-conic-gradient(var(--s2) 0 25%, var(--s1) 0 50%);cursor:pointer;touch-action:none;background-size:8px 8px;max-width:100%}@media (width<=860px),(width<=1024px) and (height<=500px){.panel-minimap{display:none}}.status-warn{color:var(--red)}.canvas-wrap{--checker-a:#7a7a7a;--checker-b:#5e5e5e;background-image:repeating-conic-gradient(var(--checker-a) 0 25%, var(--checker-b) 0 50%);flex-shrink:0;position:relative;box-shadow:0 2px 16px #00000080}body.checker-light .canvas-wrap{--checker-a:#e6e6e6;--checker-b:#c8c8c8}body.checker-dark .canvas-wrap{--checker-a:#2a2a2a;--checker-b:#222}#pixelCanvas{image-rendering:pixelated;touch-action:none;cursor:crosshair;display:block}.canvas-area.tiled #pixelCanvas{cursor:default}.sel-overlay{width:100%;height:100%;image-rendering:pixelated;pointer-events:none;position:absolute;inset:0}.grid-overlay{pointer-events:none;background-image:linear-gradient(90deg,#a0a0a047 1px,#0000 1px),linear-gradient(#a0a0a047 1px,#0000 1px);position:absolute;inset:0}.axis-guide{pointer-events:none;z-index:3;position:absolute}.axis-guide-x{border-left:1px dashed var(--acc);width:0;top:0;bottom:0}.axis-guide-y{border-top:1px dashed var(--acc);height:0;left:0;right:0}.axis-handle{border:2px solid var(--acc);background:var(--s1,#242424);cursor:grab;pointer-events:auto;touch-action:none;border-radius:50%;width:14px;height:14px;padding:0;position:absolute}.axis-guide-x .axis-handle{top:-7px;left:-7.5px}.axis-guide-y .axis-handle{top:-7.5px;left:-7px}@media (pointer:coarse){.axis-handle{width:22px;height:22px}.axis-guide-x .axis-handle{top:-11px;left:-11.5px}.axis-guide-y .axis-handle{top:-11.5px;left:-11px}}.color-row{align-items:flex-start;gap:.6rem;margin-bottom:.55rem;display:flex}.fgbg{flex-shrink:0;width:46px;height:46px;position:relative}.fgbg #colorInput{border:2px solid var(--text-hi);border-radius:var(--radius-xs);cursor:pointer;z-index:2;background:0 0;width:30px;height:30px;padding:0;position:absolute;top:0;left:0}.fgbg #colorInput::-webkit-color-swatch-wrapper{padding:0}.fgbg #colorInput::-webkit-color-swatch{border:none}.fgbg .secondary-swatch{border:2px solid var(--text-dim);border-radius:var(--radius-xs);cursor:pointer;z-index:1;width:30px;height:30px;padding:0;position:absolute;bottom:0;right:0}.fgbg .swap-btn{border-radius:var(--radius-sm);width:15px;height:15px;color:var(--text-lo);cursor:pointer;z-index:3;background:0 0;border:none;place-items:center;display:grid;position:absolute;top:-2px;right:0}.fgbg .swap-btn:hover{color:var(--text-hi);background:var(--s2)}.fgbg .swap-btn svg{width:12px;height:12px}.color-side{flex-direction:column;flex:1;gap:.4rem;min-width:0;display:flex}.hex-row{gap:.3rem;display:flex}.hex-input{border-radius:var(--radius);background:var(--s2);width:74px;height:24px;color:var(--text-hi);border:1px solid #0000;padding:0 6px;font-family:ui-monospace,Consolas,monospace;font-size:12px}.hex-input:hover{border-color:var(--edge-field)}.hex-input:focus{border-color:var(--acc)}.hex-input:focus:not(:focus-visible){outline:none}.hex-input.invalid{border-color:var(--red)}.recent-colors{flex-wrap:wrap;gap:2px;display:flex}.hsv-picker{flex-direction:column;gap:6px;margin-bottom:.55rem;display:flex}#svSquare{border-radius:var(--radius-xs);border:1px solid var(--edge);cursor:crosshair;touch-action:none;width:100%;height:120px;display:block}body.editor-dark input[type=range].hue-slider{height:14px}body.editor-dark input[type=range].hue-slider::-webkit-slider-runnable-track{background:linear-gradient(90deg,red,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);border-radius:5px;height:10px}body.editor-dark input[type=range].hue-slider::-webkit-slider-thumb{border:2px solid var(--chrome-deep);background:#fff;border-radius:50%;width:14px;height:14px;margin-top:-2px;box-shadow:0 0 0 1px #fff9}body.editor-dark input[type=range].hue-slider::-moz-range-track{background:linear-gradient(90deg,red,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);border-radius:5px;height:10px}body.editor-dark input[type=range].hue-slider::-moz-range-progress{background:0 0}body.editor-dark input[type=range].hue-slider::-moz-range-thumb{border:2px solid var(--chrome-deep);background:#fff;border-radius:50%;width:14px;height:14px}.palette-io{gap:.25rem;margin-bottom:.5rem;display:flex}.subhead{text-transform:uppercase;letter-spacing:.05em;color:var(--text-lo);margin:.55rem 0 .3rem;font-size:11px;font-weight:600}.palette{grid-template-columns:repeat(auto-fill,minmax(18px,1fr));gap:1px;display:grid}.swatch{aspect-ratio:1;cursor:pointer;border:none;border-radius:0;width:100%;min-width:16px;padding:0}.swatch.selected{outline:2px solid var(--text-hi);outline-offset:-2px;z-index:1;position:relative}.swatch.recent{border-radius:var(--radius-xs);width:18px}.swatch-wrap{position:relative}.swatch-remove{border:1px solid var(--edge);background:var(--s3);width:13px;height:13px;color:var(--text-lo);cursor:pointer;z-index:2;border-radius:50%;place-items:center;padding:0;font-size:10px;line-height:1;display:none;position:absolute;top:-4px;right:-4px}.swatch-wrap:hover .swatch-remove{display:grid}.swatch-remove:hover{color:var(--red);border-color:var(--red)}.swatch.entry-selected{outline:2px solid var(--acc);outline-offset:-2px;z-index:1;position:relative}.swatch.entry-selected.selected{outline-color:var(--text-hi);box-shadow:inset 0 0 0 3px var(--acc)}.entry-row{align-items:center;gap:.3rem;margin-top:.4rem;display:flex}.entry-idx{font-variant-numeric:tabular-nums;color:var(--text-lo);min-width:3ch;font-size:11px}.entry-color{border:1px solid var(--edge);border-radius:var(--radius-sm);background:var(--s2);cursor:pointer;width:30px;height:24px;padding:0}.layer-actions{flex-wrap:wrap;gap:.2rem;margin-top:.45rem;display:flex}.tip{z-index:1000;border:1px solid var(--edge);border-radius:var(--radius-sm);background:var(--s2);max-width:280px;color:var(--text-hi);pointer-events:none;white-space:normal;padding:4px 8px;font-size:12px;line-height:1.4;position:fixed;box-shadow:0 6px 18px #00000073}.float-layer{z-index:30;pointer-events:none;position:absolute;inset:0}.float-win{pointer-events:auto;background:var(--s1);border:1px solid var(--edge);border-radius:var(--radius);resize:horizontal;flex-direction:column;width:288px;min-width:200px;max-width:640px;max-height:calc(100% - 8px);display:flex;position:absolute;overflow:hidden;box-shadow:0 10px 30px #00000080}.float-head{background:var(--chrome);border-bottom:1px solid var(--edge);height:26px;color:var(--text-hi);cursor:move;-webkit-user-select:none;user-select:none;touch-action:none;flex:none;align-items:center;gap:6px;padding:0 4px 0 10px;font-size:12px;font-weight:600;display:flex}.float-dock{border-radius:var(--radius-sm);width:22px;height:22px;color:var(--text-lo);font:inherit;cursor:pointer;background:0 0;border:none;margin-inline-start:auto;font-size:14px}.float-dock:hover{background:var(--s2);color:var(--text-hi)}.float-win>details.panel{border-bottom:none;min-height:0;overflow:auto}.float-win>details.panel>summary{display:none}details.panel>summary .panel-pop{border-radius:var(--radius-sm);width:20px;height:20px;color:var(--text-lo);font:inherit;cursor:pointer;opacity:0;background:0 0;border:none;margin-inline-start:auto;font-size:13px}details.panel>summary:hover .panel-pop,details.panel>summary .panel-pop:focus-visible{opacity:1}details.panel>summary .panel-pop:hover{background:var(--s3,var(--s2));color:var(--text-hi)}.panel-slot{display:none}.side-panel.drop-target{box-shadow:inset 0 0 0 2px var(--acc)}.panel-drop-line{z-index:35;background:var(--acc);pointer-events:none;height:2px;box-shadow:none;position:fixed}@media (width<=860px),(width<=1024px) and (height<=500px){.panel-pop,.float-layer{display:none}}.opacity-row{color:var(--text-lo);align-items:center;gap:.45rem;margin-bottom:.45rem;font-size:11px;font-weight:600;display:flex}.opacity-row input[type=range]{flex:1;min-width:0}.opacity-val{font-variant-numeric:tabular-nums;text-align:right;min-width:3ch;font-weight:400}.layer-list{flex-direction:column;margin:0 -.6rem;list-style:none;display:flex}.layer-row{cursor:pointer;background:0 0;border:none;border-left:2px solid #0000;align-items:center;gap:.35rem;height:32px;padding:0 .45rem 0 .25rem;font-size:12px;display:flex}.layer-row:hover{background:var(--s2)}@media (pointer:fine){.layer-row{touch-action:none}}.layer-row.drag-ghost{opacity:.45}.layer-row.drop-above{box-shadow:inset 0 2px 0 var(--acc)}.layer-row.drop-below{box-shadow:inset 0 -2px 0 var(--acc)}.layer-row.active{background:var(--acc-soft);border-left-color:var(--acc)}.layer-thumb{border:1px solid var(--edge);border-radius:var(--radius-sm);width:24px;height:24px;image-rendering:pixelated;background-image:repeating-conic-gradient(var(--s3) 0 25%, var(--s2) 0 50%);background-size:8px 8px;flex-shrink:0}.layer-row .layer-name{white-space:nowrap;text-overflow:ellipsis;min-width:0;color:var(--text-hi);flex:1;overflow:hidden}.layer-row .layer-name input{font:inherit;border:1px solid var(--acc);border-radius:var(--radius-sm);background:var(--s2);width:100%;color:var(--text-hi);height:20px;padding:0 .25rem}.eye-btn,.lock-btn{width:22px;height:22px;color:var(--icon);cursor:pointer;border-radius:var(--radius-sm);opacity:0;background:0 0;border:none;flex-shrink:0;place-items:center;transition:opacity .1s ease-out,background-color .1s ease-out;display:grid}.layer-row:hover .eye-btn,.layer-row:hover .lock-btn,.layer-row.active .eye-btn,.layer-row.active .lock-btn,.eye-btn.hidden-layer,.lock-btn.locked{opacity:1}.eye-btn:hover,.lock-btn:hover{background:var(--s3);color:var(--text-hi)}.eye-btn svg,.lock-btn svg{width:14px;height:14px}.eye-btn.hidden-layer{color:var(--text-lo)}.lock-btn.locked{color:var(--red)}.center-col{flex-direction:column;min-width:0;min-height:0;display:flex}.center-col>.canvas-area{flex:1;min-height:0}.timeline{--cel:40px;--tl-head:30px;background:var(--chrome);border-top:1px solid var(--edge);-webkit-user-select:none;user-select:none;flex-direction:column;flex:none;height:auto;min-height:132px;display:flex}.timeline.collapsed{height:auto;min-height:0}.timeline.collapsed .tl-body{display:none}.tl-bar{border-bottom:1px solid var(--edge);flex-wrap:wrap;flex:none;align-items:center;gap:2px;height:auto;min-height:28px;padding:0 6px;display:flex}.tl-bar>*{flex-shrink:0}.tl-bar .tb-btn.text{min-width:26px;padding:0 6px;font-size:14px}.tl-bar .opt-sep{background:var(--edge);width:1px;height:16px;margin:0 4px}.tl-frame-label,.frame-label{color:var(--text-lo);white-space:nowrap;font-variant-numeric:tabular-nums;padding:0 6px;font-size:12px}.tl-body{min-height:calc(var(--tl-head) + var(--cel) + var(--tl-tags,0px) + 18px);flex:1;display:flex}.tl-names{border-right:1px solid var(--edge);width:112px;padding-top:calc(var(--tl-tags,0px) + var(--tl-head));box-sizing:border-box;flex:none;overflow:hidden}.tl-name{height:var(--cel);line-height:var(--cel);color:var(--text-lo);white-space:nowrap;text-overflow:ellipsis;border-bottom:1px solid var(--edge);box-sizing:border-box;padding:0 8px;font-size:12px;overflow:hidden}.tl-name.active{color:var(--acc-text);background:var(--acc-soft)}.tl-scroll{flex:1;min-width:0;position:relative;overflow:auto}.tl-spacer{pointer-events:none;width:1px;height:1px;position:absolute}.tl-tags{height:var(--tl-tags,0px);z-index:3;background:var(--chrome);position:sticky;top:0;overflow:hidden}.tl-tag{height:calc(var(--tl-tags,0px) - 3px);box-sizing:border-box;font-size:10px;line-height:calc(var(--tl-tags,0px) - 3px);color:#111;white-space:nowrap;text-overflow:ellipsis;cursor:pointer;opacity:.85;border-radius:3px 3px 0 0;padding:0 4px;font-weight:600;position:absolute;top:2px;overflow:hidden}.tl-tag:hover{opacity:1}.tag-colors{gap:6px;margin:8px 0 4px;display:flex}.tag-swatch{cursor:pointer;border:2px solid #0000;border-radius:50%;width:22px;height:22px;padding:0}.tag-swatch[aria-pressed=true]{border-color:var(--text-hi)}.tl-header{top:var(--tl-tags,0px);height:var(--tl-head);z-index:2;background:var(--chrome);border-bottom:1px solid var(--edge);box-sizing:border-box;position:sticky}.tl-col{box-sizing:border-box;border-right:1px solid var(--edge);text-align:center;height:100%;color:var(--text-lo);cursor:pointer;padding-top:3px;font-size:11px;line-height:1.1;position:absolute;top:0;overflow:hidden}.tl-col.active{color:var(--acc-text);background:var(--acc-soft)}.tl-col.drop-before{box-shadow:inset 2px 0 0 var(--acc)}.tl-col.drop-after{box-shadow:inset -2px 0 0 var(--acc)}.tl-col .num{display:block}.tl-clock{width:16px;height:14px;color:var(--text-lo);cursor:pointer;border-radius:var(--radius-sm);background:0 0;border:none;place-items:center;margin:1px auto 0;padding:0;display:grid}.tl-clock svg{width:12px;height:12px}.tl-clock:hover{color:var(--acc-text);background:var(--acc-soft)}.tl-bar #tlClockBtn svg{width:15px;height:15px}.tl-col input{width:calc(100% - 4px);font:inherit;background:var(--s2);color:var(--text-hi);border:1px solid var(--acc);border-radius:var(--radius-xs);margin:0 2px;padding:0;font-size:10px}.tl-grid{left:0;top:calc(var(--tl-tags,0px) + var(--tl-head));cursor:pointer;touch-action:pan-x pan-y;display:block;position:sticky}.tl-onion{color:var(--text-lo);align-items:center;gap:4px;font-size:12px;display:flex}.tl-onion select{font:inherit;border-radius:var(--radius);border:1px solid var(--edge);background:var(--s2);height:22px;color:var(--text-hi);padding:0 4px;font-size:12px}.tiles-head{color:var(--text-lo);margin-bottom:.35rem;font-size:11px;font-weight:600}.tiles-grid{border-radius:var(--radius-sm);outline:none;position:relative}.tiles-grid:focus-visible{box-shadow:0 0 0 2px var(--acc-text)}.tiles-band{image-rendering:pixelated;background-image:repeating-conic-gradient(var(--s3) 0 25%, var(--s2) 0 50%);cursor:pointer;touch-action:manipulation;background-size:8px 8px;display:block}.tile-empty{cursor:pointer;background:0 0;border:none;border-radius:2px;padding:0;position:absolute;top:0;left:0}.tile-empty:hover{background:var(--s2)}.tile-empty:focus-visible{box-shadow:inset 0 0 0 2px var(--acc-text);outline:none}.tile-sel{box-sizing:border-box;border:2px solid var(--acc);pointer-events:none;border-radius:2px;transition:top .1s ease-out,left .1s ease-out;position:absolute;top:0;left:0}@media (prefers-reduced-motion:reduce){.tile-sel{transition:none}}.tiles-actions{flex-wrap:wrap;gap:.2rem;margin-top:.45rem;display:flex}.layer-kind{width:14px;height:14px;color:var(--text-lo);vertical-align:-2px;flex-shrink:0;place-items:center;margin-inline-end:.15rem;display:inline-grid}.layer-kind svg{width:12px;height:12px}.tl-name .layer-kind{margin-inline-end:.25rem}.panel-frames{display:none}.float-win>.panel-frames{display:block}.float-win .tl-bar{flex-wrap:wrap;height:auto}.float-win .timeline{width:100%;min-width:0}.tl-col.range-selected{background:var(--acc-soft);box-shadow:inset 0 -3px var(--acc)}.group-row{background:var(--s2);border-bottom:1px solid var(--edge);align-items:center;gap:4px;min-height:36px;display:flex}.group-row>button:first-child{text-align:start;text-overflow:ellipsis;flex:1;overflow:hidden}.group-row>button{min-height:32px}.animation-preview-scroll{background:repeating-conic-gradient(#777 0% 25%,#999 0% 50%) 0 0/16px 16px;max-width:100%;max-height:320px;overflow:auto}.animation-preview-scroll canvas{image-rendering:pixelated;max-width:none;display:block}@media (width<=860px),(width<=1024px) and (height<=500px){#tlFloatBtn{display:none}.side-panel[data-active-tab=frames] #animationPreviewPanel:not([hidden]){flex:none;max-height:28vh;display:block;overflow:auto}.editor-body{grid-template-columns:minmax(0,1fr)}.toolbar,.side-panel,.center-col{min-width:0}.tl-bar{flex-wrap:wrap;height:auto;min-height:28px;padding-block:3px}.center-col{order:0;min-height:0}.center-col>.timeline{display:none}.side-panel[data-active-tab=frames] .panel-frames{display:block}.panel-frames .panel-body{height:auto;padding:0}.panel-frames .timeline{border-top:none;height:auto;max-height:none}.panel-frames .timeline.collapsed{height:auto}.tl-names{width:84px}}@media (pointer:coarse){.tool-btn,.tb-btn{min-width:40px;min-height:40px}.panel-tab{min-height:44px}.recent-del{min-width:44px;min-height:44px}.menu-item{min-height:44px}.swatch{min-width:26px}.opt-slider input[type=range]{width:110px}.eye-btn,.lock-btn{opacity:1;width:30px;height:30px}.layer-row{touch-action:pan-y;height:42px}.layer-drag-handle{touch-action:none;display:grid}.menu-bar,.tab-strip,.options-bar,.toolbar,.side-panel,.statusbar,.timeline .tl-bar,.tl-names{touch-action:manipulation;-webkit-user-select:none;user-select:none}.swatch-wrap .swatch-remove{width:22px;height:22px;font-size:13px;display:grid;top:-8px;right:-8px}.entry-color{width:40px;height:40px}.opt-select,.blend-row select{min-height:36px}.timeline{--cel:44px;--tl-head:34px}.tl-bar .tb-btn.text{min-width:44px;min-height:40px}.tl-col{padding-top:5px;font-size:13px}.tl-tag{font-size:12px}.tag-swatch{width:32px;height:32px}.tl-clock{width:28px;height:22px}.tl-clock svg{width:16px;height:16px}}#slicesDialog{width:min(460px,100vw - 24px)}#slicesDialog form>label{flex-direction:column;gap:6px;margin:12px 0;display:flex}#slicesDialog input,#slicesDialog select{box-sizing:border-box;border:1px solid var(--border,#555);background:var(--panel,#242424);width:100%;min-height:36px;color:inherit;border-radius:5px;padding:6px 8px}#sliceError{color:#ff9b9b}#colourPixelsDialog{width:min(460px,100vw - 24px)}#colourPixelsDialog select{width:190px;max-width:100%}#exportAspect{width:min(280px,100vw - 72px)}#colourPixelsError{color:#ff9b9b}#docPalette.ramp-view{flex-wrap:nowrap;gap:0;padding:4px 0;display:flex;overflow-x:auto}#docPalette.ramp-view button{border-radius:0;flex:0 0 32px;height:40px}#docPalette button{touch-action:none}#docPalette .palette-dragging{opacity:.7;outline:2px solid #a0a8ff}#tileToolsDialog{width:min(700px,100vw - 24px);max-height:calc(100dvh - 32px);overflow-y:auto}#tileToolsDialog fieldset{border:1px solid var(--edge);border-radius:6px;min-width:0;margin:12px 0;padding:12px}#tileToolsDialog label{flex-direction:column;gap:5px;margin:6px 0;display:flex}#tileToolsDialog select,#tileToolsDialog textarea,#tileToolsRules,#tileToolsTerrain,#tileToolsName{box-sizing:border-box;width:100%;min-width:0}#tileToolsDialog .dialog-fields{flex-wrap:wrap}#tileToolsDialog .tile-tool-actions{flex-wrap:wrap;gap:6px;margin:10px 0;display:flex}#tileToolsDialog button{white-space:normal}#tileToolsError{color:#ff9b9b}#tileToolsDialog button,#tileToolsDialog select,#tileToolsDialog input:not([type=checkbox]),#tileToolsDialog textarea{font:inherit;color:inherit;background:var(--panel,#292929);border:1px solid var(--edge,#555);box-sizing:border-box;border-radius:5px;min-height:40px;padding:8px 10px}#tileToolsDialog button{cursor:pointer}#tileToolsDialog button:hover{background:#414141}#tileToolsDialog :focus-visible{outline-offset:2px;outline:2px solid #a0a8ff}#tileToolsDialog label:has(input[type=checkbox]){flex-direction:row;align-items:center;gap:8px}#tileToolsDialog input[type=checkbox]{flex:0 0 20px;width:20px;height:20px;margin:0}@media (width<=700px){#tileToolsDialog button,#tileToolsDialog select,#tileToolsDialog input:not([type=checkbox]){min-height:44px}}#brushSettingsDialog{width:min(480px,100vw - 24px);max-height:calc(100dvh - 32px);overflow-y:auto}#brushSettingsDialog label{flex-wrap:wrap;align-items:center;gap:10px;margin:14px 0;display:flex}#brushSettingsDialog input[type=checkbox]{width:20px;height:20px}#brushSettingsDialog button,#brushSettingsDialog select,#brushSettingsDialog input[type=number]{font:inherit;min-height:44px;color:inherit;background:#292929;border:1px solid #555;border-radius:5px;max-width:100%;padding:8px}#focusExit{z-index:10000;color:#fff;background:#292929;border:1px solid #a0a8ff;border-radius:6px;min-height:44px;padding:8px 14px;position:fixed;top:12px;right:12px}body.focus-mode #menuBar,body.focus-mode .options-bar,body.focus-mode .toolbar,body.focus-mode .side-panel,body.focus-mode .statusbar,body.focus-mode #timeline,body.focus-mode .float-layer,body.focus-mode #tabStrip{display:none!important}body.focus-mode .editor-body{grid-template-columns:minmax(0,1fr)}body.focus-mode .center-col{--tl-h:0px!important}#shortcutEditor{box-sizing:border-box;border:1px solid #555;border-radius:6px;width:100%;min-width:0;margin:12px 0;padding:12px}#shortcutEditor select,#shortcutEditor input{box-sizing:border-box;width:100%;min-width:0}#shortcutEditor label{flex-direction:column;gap:6px;margin:10px 0;display:flex}#shortcutEditor input,#shortcutEditor select,#shortcutEditor button{font:inherit;min-height:44px;color:inherit;background:#292929;border:1px solid #555;border-radius:5px;max-width:100%;padding:8px}#shortcutEditor .dialog-actions{flex-wrap:wrap}#shortcutError{color:#e4b38e}.panel-layers>.panel-body{flex-direction:column;min-height:0;display:flex}.panel-layers .layer-list{scrollbar-width:thin;flex:0 auto;min-height:0;max-height:min(360px,45vh);overflow-y:auto}.panel-layers .layer-list>li{flex-shrink:0}.panel-layers .opacity-row,.panel-layers .layer-actions{flex:none}.float-win>details.panel-layers{overflow:hidden}.float-win>.panel-layers>.panel-body{max-height:var(--float-body-height);overflow:hidden}.float-win .layer-list{max-height:none}.panel-color>.panel-body,.panel-tiles>.panel-body,#animationPreviewPanel>.panel-body,#tilesWrap{flex-direction:column;min-height:0;display:flex}.colour-content,.tiles-scroll{scrollbar-width:thin;min-height:0;overflow:auto}.colour-content{max-height:min(560px,60vh)}.tiles-scroll{max-height:min(360px,45vh)}.panel-color .palette-io,.panel-color .color-row,.panel-color .entry-row,.panel-tiles .tiles-actions,.panel-tiles .tiles-head,.panel-tiles .panel-hint,#tileToolsBtn{flex:none}.float-win>.panel-color,.float-win>.panel-tiles,.float-win>#animationPreviewPanel{overflow:hidden}.float-win>.panel-color>.panel-body,.float-win>.panel-tiles>.panel-body,.float-win>#animationPreviewPanel>.panel-body{max-height:var(--float-body-height);overflow:hidden}.float-win .colour-content,.float-win .tiles-scroll{max-height:none}#animationPreviewPanel .animation-preview-scroll{min-height:0}#animationPreviewPanel .panel-body>:not(.animation-preview-scroll){flex-shrink:0}@media (width<=860px),(width<=1024px) and (height<=500px){.side-panel[data-active-tab=color],.side-panel[data-active-tab=tiles]{max-height:max(42vh,240px)}.side-panel .panel-color,.side-panel .panel-tiles{overflow:hidden}.side-panel .panel-color>.panel-body,.side-panel .panel-tiles>.panel-body{max-height:max(200px,42vh - 40px);overflow:hidden}.side-panel .colour-content,.side-panel .tiles-scroll{max-height:none}.side-panel[data-active-tab=layers]{flex-shrink:0;max-height:max(42vh,240px)}.side-panel .panel-layers{overflow:hidden}.side-panel .panel-layers>.panel-body{max-height:max(200px,42vh - 40px);overflow:hidden}.side-panel .layer-list{max-height:none}.center-col{height:clamp(160px,55dvh,560px)}.center-col>.canvas-area{height:auto;overflow:auto}}
