:root{--bg0:#181818;--bg1:#232323;--bg2:#2d2d2d;--bg3:#3a3a3a;--line:#101010;--text:#e6e6e6;--muted:#9a9a9a;--accent:#3d8bfd;--danger:#d9534f;color:var(--text);--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;font-family:Segoe UI,system-ui,-apple-system,sans-serif;font-size:12px}*{box-sizing:border-box}html,body,#root{background:var(--bg0);height:100%;margin:0;overflow:hidden}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:default}.app{flex-direction:column;height:100%;display:flex}.workspace{flex:1;min-height:0;display:flex}.center{flex-direction:column;flex:1;min-width:0;display:flex;position:relative}.stage{flex:1;min-height:0;position:relative}.menubar{background:var(--bg1);border-bottom:1px solid var(--line);-webkit-user-select:none;user-select:none;align-items:center;gap:2px;height:30px;padding:0 6px;display:flex}.brand{letter-spacing:.5px;color:#fff;margin-right:10px;font-weight:700}.menu{position:relative}.menu-btn{background:0 0;border:0;border-radius:4px;padding:5px 9px}.menu.open .menu-btn,.menu-btn:hover{background:var(--bg3)}.menu-drop{background:var(--bg2);border:1px solid var(--line);z-index:50;border-radius:6px;min-width:240px;padding:4px;position:absolute;top:100%;left:0;box-shadow:0 8px 24px #00000080}.menu-item{text-align:left;white-space:nowrap;background:0 0;border:0;border-radius:4px;justify-content:space-between;gap:24px;width:100%;padding:6px 10px;display:flex}.menu-item:not(:disabled):hover{background:var(--accent);color:#fff}.menu-item .shortcut{color:var(--muted)}.menu-item:not(:disabled):hover .shortcut{color:#dbe8ff}.menu-sep{background:var(--bg3);height:1px;margin:4px 6px}.menu-sub{position:relative}.menu-sub>.menu-drop.sub{display:none;top:-5px;left:calc(100% - 2px)}.menu-sub:hover>.menu-drop.sub{display:block}.menu-sub:not(.disabled):hover>.menu-item{background:var(--bg3)}.options-bar{background:var(--bg1);border-bottom:1px solid var(--line);white-space:nowrap;align-items:center;gap:10px;height:38px;padding:0 10px;display:flex;overflow-x:auto}.tool-name{min-width:110px;font-weight:600}.options-bar>*{flex-shrink:0}.opt{align-items:center;gap:6px;display:inline-flex}.opt.wide{width:100%}.opt.wide input[type=range]{flex:1}.opt>span:first-child{color:var(--muted)}.opt-sep{background:var(--line);align-self:stretch;width:1px;margin:8px 2px}.opt-label{color:var(--muted)}.btn-group{gap:2px;display:inline-flex}.btn-group .btn.icon{padding:3px 5px}.suffix{color:var(--muted)}.num{background:var(--bg0);border:1px solid var(--bg3);border-radius:4px;width:58px;padding:3px 4px}.hint{color:var(--muted);margin-left:auto;font-style:italic}.muted{color:var(--muted)}.small{font-size:11px}.pad{padding:10px}.mode-group{gap:2px;display:inline-flex}.text-input{resize:none;background:var(--bg0);border:1px solid var(--bg3);border-radius:4px;width:220px;height:26px;padding:3px 6px}input[type=range]{accent-color:var(--accent);width:110px}input[type=color]{border:1px solid var(--bg3);background:0 0;border-radius:4px;width:26px;height:22px;padding:0}select{background:var(--bg0);border:1px solid var(--bg3);border-radius:4px;max-width:160px;padding:3px 4px}.btn{background:var(--bg3);border:1px solid #222;border-radius:4px;padding:4px 9px}.btn:not(:disabled):hover{background:#474747}.btn.primary{background:var(--accent);color:#fff;border-color:#2a6ad3}.btn.primary:not(:disabled):hover{background:#5399ff}.btn.danger:not(:disabled):hover{background:var(--danger)}.btn.toggle.on,.btn.on{background:var(--accent);color:#fff}.toolbar{background:var(--bg1);border-right:1px solid var(--line);-webkit-user-select:none;user-select:none;grid-template-columns:repeat(2,34px);grid-auto-rows:32px;place-content:start center;gap:2px;width:76px;padding:6px 0;display:grid;overflow-y:auto}.tool-btn{width:34px;height:32px;color:var(--text);background:0 0;border:0;border-radius:5px}.tool-btn:hover{background:var(--bg3)}.tool-btn.active{background:var(--accent);color:#fff}.tool-icon{font-size:16px;line-height:1}.swatches{grid-column:1/-1;justify-self:center;width:36px;height:36px;margin-top:12px;position:relative}.swatch{cursor:pointer;border:2px solid #ddd;border-radius:3px;width:22px;height:22px;position:absolute;overflow:hidden}.swatch input{opacity:0;cursor:pointer;width:100%;height:100%}.swatch.fg{z-index:2;top:0;left:0}.swatch.bg{z-index:1;top:12px;left:12px}.swatch-mini{background:var(--bg3);width:14px;height:14px;color:var(--text);border:0;border-radius:3px;padding:0;font-size:9px;line-height:1;position:absolute}.swatch-mini:first-of-type{top:-2px;left:24px}.swatch-mini:last-of-type{top:24px;left:-2px}.canvas-wrap{touch-action:none;background:#1f1f1f;position:absolute;inset:0;overflow:hidden}.canvas-wrap canvas{position:absolute;top:0;left:0}.canvas-wrap canvas:last-child{pointer-events:none}.panel{background:var(--bg1);border-left:1px solid var(--line);flex-direction:column;width:250px;min-height:0;display:flex}.panel-title{border-bottom:1px solid var(--line);background:var(--bg2);padding:7px 10px;font-weight:600}.layer-props{border-bottom:1px solid var(--line);flex-direction:column;gap:6px;padding:8px 10px;display:flex}.layer-props select{max-width:100%}.layer-props input[type=range]{flex:1}.layer-list{flex:1;min-height:88px;overflow-y:auto}.layer-row{border-bottom:1px solid var(--bg0);cursor:default;-webkit-user-select:none;user-select:none;align-items:center;gap:6px;padding:4px 8px;display:flex}.layer-row:hover{background:var(--bg2)}.layer-row.active{background:#2b3c55}.eye{width:22px;height:22px;color:var(--muted);background:0 0;border:0;padding:0}.eye.on{color:var(--text)}.thumb{background:#fff;border:1px solid #000;flex:none}.layer-name{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.badge{background:var(--bg3);border-radius:3px;padding:1px 5px;font-size:10px;font-weight:700}.layer-actions{border-top:1px solid var(--line);gap:3px;padding:6px;display:flex}.lock-row{align-items:center;gap:4px;display:flex}.lock-row .opt.grow{flex:1;min-width:0;margin-left:4px}.lock-row .opt.grow input[type=range]{min-width:40px}.btn.icon.toggle{flex:none;padding:3px 6px}.btn.icon.toggle.on{background:var(--accent);border-color:var(--accent);color:#fff}.layer-list.dragging,.layer-list.dragging .layer-row{cursor:grabbing}.layer-row.drag-src{opacity:.45}.layer-row.drop-before{box-shadow:inset 0 2px 0 var(--accent)}.layer-row.drop-after{box-shadow:inset 0 -2px 0 var(--accent)}.badge.lock{cursor:pointer;opacity:.75}.badge.lock:hover{opacity:1}.layer-actions .btn{flex:1;padding:4px 0}.statusbar{background:var(--bg1);border-top:1px solid var(--line);height:24px;color:var(--text);-webkit-user-select:none;user-select:none;align-items:center;gap:18px;padding:0 10px;display:flex}.statusbar .grow{flex:1}.welcome{justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.welcome-card{background:var(--bg2);border:1px solid var(--bg3);text-align:center;border-radius:10px;width:420px;padding:28px 32px;box-shadow:0 12px 40px #00000080}.welcome-card h1{letter-spacing:1px;margin:0 0 8px;font-size:28px}.welcome-actions{justify-content:center;gap:10px;margin:16px 0 6px;display:flex}.welcome-actions .btn{padding:8px 16px;font-size:13px}.modal-backdrop{z-index:100;background:#0000008c;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal-backdrop.clear{background:0 0;align-items:flex-end;padding-bottom:48px}.modal{background:var(--bg2);border:1px solid var(--bg3);border-radius:8px;min-width:360px;max-width:560px;box-shadow:0 16px 48px #0009}.modal-title{border-bottom:1px solid var(--line);padding:10px 14px;font-weight:600}.form{flex-direction:column;gap:10px;padding:14px;display:flex}.form label{align-items:center;gap:8px;display:flex}.form label>span:first-child{width:90px;color:var(--muted)}.form input[type=number]{background:var(--bg0);border:1px solid var(--bg3);border-radius:4px;width:90px;padding:4px 6px}.presets{flex-wrap:wrap;gap:6px;display:flex}.anchor-grid{grid-template-columns:repeat(3,28px);gap:3px;display:grid}.anchor-grid .btn{padding:2px 0}.modal-actions{border-top:1px solid var(--line);justify-content:flex-end;gap:8px;padding:10px 14px;display:flex}.shortcuts{border-collapse:collapse;margin:10px 14px}.shortcuts td{vertical-align:top;padding:3px 10px 3px 0}kbd{background:var(--bg0);border:1px solid var(--bg3);white-space:nowrap;border-radius:3px;padding:1px 5px;font-family:Consolas,monospace;font-size:11px}.modal.wide{min-width:640px}.style-body{min-height:300px;display:flex}.fx-list{border-right:1px solid var(--line);flex-direction:column;gap:2px;width:190px;padding:8px;display:flex}.fx-list .btn{margin-top:auto}.fx-item{cursor:default;border-radius:4px;align-items:center;gap:8px;padding:6px 8px;display:flex}.fx-item:hover{background:var(--bg3)}.fx-item.active{background:var(--accent);color:#fff}.fx-params{flex:1}.fx-params .opt.wide>span:first-child{width:90px;color:var(--muted)}.badge.fx{color:#fff;cursor:pointer;background:#6b4fbb}.history{border-top:1px solid var(--line);flex-direction:column;max-height:200px;display:flex}.history-list{overflow-y:auto}.history-row{cursor:default;white-space:nowrap;text-overflow:ellipsis;padding:3px 10px;overflow:hidden}.history-row:hover{background:var(--bg2)}.history-row.current{background:#2b3c55}.history-row.future{color:var(--muted)}.ctx-menu{z-index:200;background:var(--bg2);border:1px solid var(--line);-webkit-user-select:none;user-select:none;border-radius:6px;min-width:230px;padding:4px;position:fixed;box-shadow:0 8px 24px #00000080}.modal.wide{max-width:860px}.shortcuts-body{grid-template-columns:1fr 1fr;gap:4px 18px;max-height:70vh;padding:10px 14px;display:grid;overflow-y:auto}.shortcut-group{break-inside:avoid}.shortcut-title{color:#fff;margin:8px 0 4px;font-weight:600}.shortcuts{margin:0}.shortcuts kbd{margin-right:4px}.app.panels-hidden .workspace{height:calc(100% - 30px)}.tool-btn{justify-content:center;align-items:center;display:inline-flex}.tool-sep{background:var(--bg3);grid-column:1/-1;height:1px;margin:3px 6px}.swatch{padding:0}.swatch.target{outline:2px solid var(--accent);outline-offset:1px}.swatch-mini{justify-content:center;align-items:center;display:inline-flex}.swatch-mini.swap{top:-2px;left:24px}.swatch-mini.reset{top:24px;left:-2px}.native-color{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute;top:0;left:0}.btn{align-items:center;gap:6px;display:inline-flex}.btn.icon{justify-content:center;padding:4px 6px}.panel{overflow-y:auto}.section{border-bottom:1px solid var(--line);flex-direction:column;flex:none;min-height:0;display:flex}.section.shrink{flex:0 auto;min-height:90px}.section.grow{flex:1 1 0;min-height:auto}.panel-title{cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:4px;display:flex}.panel-title .title-extra{margin-left:auto}.layer-row.hidden-layer .layer-name,.layer-row.hidden-layer .thumb{opacity:.45}.eye{justify-content:center;align-items:center;display:inline-flex}.badge{align-items:center;display:inline-flex}.history-list{max-height:180px;overflow-y:auto}.color-panel{flex-direction:column;gap:8px;padding:8px 10px 10px;display:flex}.color-pick{gap:8px;display:flex}.sv-wrap,.hue-wrap{touch-action:none;cursor:crosshair;position:relative}.sv{border-radius:3px;width:196px;height:118px;display:block}.hue{border-radius:3px;width:14px;height:118px;display:block}.sv-dot{pointer-events:none;border:2px solid #fff;border-radius:50%;width:10px;height:10px;margin:-5px 0 0 -5px;position:absolute;box-shadow:0 0 0 1px #000}.hue-dot{pointer-events:none;border:1px solid #fff;height:4px;margin-top:-2px;position:absolute;left:-2px;right:-2px;box-shadow:0 0 0 1px #000}.color-fields{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.fgbg{gap:3px;display:inline-flex}.chip{border:1px solid #000;border-radius:3px;width:18px;height:18px;padding:0}.chip.on{outline:2px solid var(--accent);outline-offset:1px}.hex{background:var(--bg0);border:1px solid var(--bg3);border-radius:4px;width:72px;padding:3px 5px;font-family:Consolas,monospace}.rgb{align-items:center;gap:2px;display:inline-flex}.rgb span{color:var(--muted);font-size:10px}.rgb input{background:var(--bg0);border:1px solid var(--bg3);border-radius:4px;width:40px;padding:2px 3px}.swatch-grid{grid-template-columns:repeat(8,1fr);gap:3px;display:grid}.sw{border:1px solid #0009;border-radius:2px;height:16px;padding:0}.sw:hover{outline:1px solid #fff}.recent-title{margin-top:2px}.statusbar .readout{font-variant-numeric:tabular-nums;align-items:center;gap:6px;min-width:150px;display:inline-flex}.statusbar .pos{font-variant-numeric:tabular-nums;min-width:110px}.readout .dot{border:1px solid #000;border-radius:2px;width:10px;height:10px}.status-text{text-overflow:ellipsis;white-space:nowrap;max-width:40%;overflow:hidden}.autosave{color:var(--muted);align-items:center;gap:4px;display:inline-flex}.autosave.ok{color:#6fcf8a}.autosave.err{color:#ff8080}.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.welcome-card{width:640px;max-width:calc(100% - 32px)}.recent-title-bar{text-align:left;margin:18px 0 8px;font-weight:600}.recent-grid{text-align:left;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px;display:grid}.recent-card{background:var(--bg1);border:1px solid var(--bg3);cursor:pointer;border-radius:6px;padding:6px;position:relative}.recent-card:hover{border-color:var(--accent)}.recent-thumb{background:repeating-conic-gradient(#888 0 25%, #bbb 0 50%) 50% / 12px 12px;border-radius:3px;justify-content:center;align-items:center;height:86px;display:flex;overflow:hidden}.recent-thumb img{max-width:100%;max-height:100%}.recent-name{text-overflow:ellipsis;white-space:nowrap;margin-top:5px;overflow:hidden}.recent-x{color:#fff;background:#0009;border:0;border-radius:10px;justify-content:center;align-items:center;width:20px;height:20px;padding:0;display:none;position:absolute;top:4px;right:4px}.recent-card:hover .recent-x{display:inline-flex}.color-fields{flex-wrap:nowrap;gap:4px}.hex{width:64px}.rgb-group{gap:2px;display:inline-flex}.rgb input{text-align:center;-moz-appearance:textfield;width:36px;padding:2px 1px}.rgb input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.rgb input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.panel{width:264px}.form input.text{background:var(--bg0);border:1px solid var(--bg3);border-radius:4px;flex:1;padding:4px 6px}.export-info{background:var(--bg1);font-variant-numeric:tabular-nums;border-radius:4px;padding:6px 8px}.form select{flex:1;max-width:none}.text-editor{z-index:5;color:#0000;resize:none;white-space:pre;box-sizing:content-box;background:0 0;border:1px dashed #4ea3ffe6;outline:none;margin:0;padding:0;position:absolute;overflow:hidden}.text-editor::selection{color:#0000;background:#4ea3ff59}.modal-actions .grow{flex:1}.preview-toggle{margin-right:6px}.param-group{color:#fff;margin:6px 0 2px;font-weight:600}.histogram,.curves-graph{border:1px solid var(--line);background:#1a1a1a;border-radius:3px;display:block}.histogram{width:100%;height:110px}.curves-graph{cursor:crosshair;touch-action:none;align-self:center;width:256px;height:256px}.curves-top{gap:12px;display:flex}.curves-top label>span:first-child{width:auto}.modal-title.draggable{cursor:move;-webkit-user-select:none;user-select:none;touch-action:none}.modal-backdrop.clear{pointer-events:none}.modal-backdrop.clear .modal{pointer-events:auto}.color-range .range-swatches{flex-wrap:wrap;align-items:center;gap:4px;display:flex}.color-range .range-swatch{border:1px solid var(--line);cursor:pointer;border-radius:3px;width:22px;height:22px;padding:0}.color-range .range-thumb{border:1px solid var(--line);image-rendering:auto;background:#000;max-width:100%;max-height:220px;margin:4px auto;display:block}.thumb.target,.mask-thumb.target{outline-offset:1px;outline:2px solid #fff}.mask-thumb{cursor:pointer}.status-chip{white-space:nowrap;border-radius:10px;flex-shrink:0;padding:1px 8px;font-size:11px}.mask-chip{color:#ffe39a;background:#5a4a18}.stage.rulers .canvas-wrap{inset:20px 0 0 20px}.ruler{z-index:2;touch-action:none;display:block;position:absolute}.ruler-top{cursor:s-resize;width:calc(100% - 20px);height:20px;top:0;left:20px}.ruler-left{cursor:e-resize;width:20px;height:calc(100% - 20px);top:20px;left:0}.ruler-corner{box-sizing:border-box;z-index:2;background:#2b2b2b;border-bottom:1px solid #1a1a1a;border-right:1px solid #1a1a1a;width:20px;height:20px;position:absolute;top:0;left:0}.adjust-thumb{color:#ddd;cursor:pointer;background:#3a3a3a;border-radius:2px;justify-content:center;align-items:center;width:48px;height:36px;display:inline-flex}.tabbar{background:var(--bg1);border-bottom:1px solid var(--line);flex-shrink:0;align-items:flex-end;gap:2px;height:28px;padding:0 6px;display:flex;overflow:auto hidden}.tab{background:var(--bg2);border:1px solid var(--line);max-width:220px;height:24px;color:var(--muted);white-space:nowrap;-webkit-user-select:none;user-select:none;border-bottom:0;border-radius:6px 6px 0 0;flex-shrink:0;align-items:center;gap:6px;padding:0 4px 0 10px;display:inline-flex}.tab:hover{color:var(--text)}.tab.active{color:var(--text);background:#1f1f1f}.tab-name{text-overflow:ellipsis;font-size:12px;overflow:hidden}.tab-close{color:inherit;opacity:.6;background:0 0;border:0;border-radius:3px;padding:2px;display:inline-flex}.tab-close:hover{background:var(--bg3);opacity:1}.tab-new{width:22px;height:22px;color:var(--muted);background:0 0;border:0;border-radius:4px;justify-content:center;align-self:center;align-items:center;display:inline-flex}.tab-new:hover{background:var(--bg2);color:var(--text)}.layer-row.clipped{padding-left:4px}.clip-arrow{color:var(--muted);margin-right:-2px;display:inline-flex}.layer-name.clip-base{text-underline-offset:3px;text-decoration:underline}.layer-row.group-row .layer-name{font-weight:600}.group-toggle{color:var(--muted);background:0 0;border:0;padding:0;display:inline-flex}.group-toggle:hover{color:var(--text)}.group-icon{color:#d9b35a;justify-content:center;width:40px;display:inline-flex}.layer-row.drop-into{box-shadow:inset 0 0 0 2px var(--accent)}.qm-chip{color:#ffb0b0;background:#5a1818}.grad-canvas{border-radius:2px;display:block}.grad-swatch{gap:4px;padding:3px 5px}.grad-types .grad-type{padding:2px}.grad-types .grad-type.on{background:var(--accent);border-color:var(--accent)}.grad-editor{z-index:1000;background:var(--bg2);border:1px solid var(--line);border-radius:6px;flex-direction:column;gap:8px;width:340px;padding:10px 12px 12px;display:flex;position:fixed;box-shadow:0 10px 28px #0000008c}.grad-head{justify-content:space-between;align-items:center;font-weight:600;display:flex}.grad-presets{grid-template-columns:repeat(6,1fr);gap:4px;display:grid}.grad-preset{border:1px solid var(--bg3);background:var(--bg0);border-radius:3px;justify-content:center;align-items:center;min-height:22px;padding:1px;display:flex;position:relative}.grad-preset:hover{border-color:var(--accent)}.grad-preset.saved{padding:0}.grad-preset.saved>button:first-child{background:0 0;border:0;padding:1px}.grad-preset .grad-del{border:1px solid var(--line);background:var(--bg3);border-radius:50%;justify-content:center;align-items:center;width:15px;height:15px;padding:0;display:none;position:absolute;top:-6px;right:-6px}.grad-preset.saved:hover .grad-del{display:inline-flex}.grad-preset.add{color:var(--muted)}.grad-bar{padding:0}.grad-track{cursor:copy;touch-action:none;height:18px;margin:-6px 0 0;position:relative}.grad-stop{cursor:ew-resize;touch-action:none;width:14px;height:18px;margin-left:-7px;position:absolute;top:0}.grad-stop:before{content:"";border:4px solid #0000;border-top:0;border-bottom:5px solid #ddd;position:absolute;top:0;left:3px}.grad-stop span{border:1px solid #111;border-radius:2px;width:12px;height:11px;position:absolute;bottom:0;left:1px;box-shadow:0 0 0 1px #ddd}.grad-stop.sel:before{border-bottom-color:var(--accent)}.grad-stop.sel span{box-shadow:0 0 0 2px var(--accent)}.grad-stop.away{opacity:.3}.grad-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.grad-row input[type=color]{border:1px solid var(--bg3);background:var(--bg0);border-radius:3px;width:36px;height:22px;padding:0 2px}.menubar .menus{align-items:center;gap:2px;min-width:0;display:flex}.menu-actions{flex-shrink:0;align-items:center;gap:2px;margin-left:auto;display:flex}.menu-icon{width:30px;height:26px;color:var(--text);background:0 0;border:0;border-radius:4px;justify-content:center;align-items:center;display:inline-flex}.menu-icon:not(:disabled):hover{background:var(--bg3)}.touch-only{display:none}@media (pointer:coarse){.touch-only{display:inline-flex}}.drawer-backdrop{display:none}.app.compact .touch-only{display:inline-flex}.app.compact .menubar{height:36px;padding:0 4px}.app.compact .brand{margin-right:4px;font-size:13px}.app.compact .menubar .menus{scrollbar-width:none;flex:1;overflow:auto hidden}.app.compact .menubar .menus::-webkit-scrollbar{display:none}.app.compact .menu-btn{white-space:nowrap;padding:8px 9px}.app.compact .menu-icon{width:34px;height:32px}.app.compact .menu>.menu-drop{min-width:0;max-height:calc(100dvh - 44px);position:fixed;top:36px;left:4px;right:4px;overflow-y:auto}.app.compact .menu-item{white-space:normal;padding:10px 12px}.app.compact .menu-sub>.menu-drop.sub{box-shadow:none;border:0;border-left:2px solid var(--bg3);border-radius:0;margin:0 0 4px 12px;padding:0 0 0 4px;display:none;position:static}.app.compact .menu-sub:hover>.menu-drop.sub,.app.compact .menu-sub:focus-within>.menu-drop.sub{display:block}.app.compact .options-bar{gap:8px;height:42px}.app.compact .hint{display:none}.app.compact .workspace{flex-direction:column}.app.compact .center{flex:1;order:1;min-height:0}.app.compact .toolbar{border-right:0;border-top:1px solid var(--line);scrollbar-width:none;flex-direction:row;order:2;justify-content:flex-start;align-items:center;gap:2px;width:auto;height:50px;padding:4px 6px;display:flex;overflow:auto hidden}.app.compact .toolbar::-webkit-scrollbar{display:none}.app.compact .tool-btn{flex:none;width:40px;height:40px}.app.compact .tool-sep{flex:none;grid-column:auto;width:1px;height:26px;margin:0 4px}.app.compact .swatches{flex:0 0 36px;margin:0 8px 0 10px}.app.compact .panel{z-index:60;border-left:1px solid var(--line);width:min(330px,92vw);animation:.18s ease-out drawer-in;position:fixed;top:36px;bottom:0;right:0;box-shadow:-12px 0 32px #00000080}.app.compact .drawer-backdrop{z-index:55;background:#00000073;display:block;position:fixed;inset:36px 0 0}@keyframes drawer-in{0%{transform:translate(100%)}to{transform:none}}.app.compact .statusbar{gap:10px;height:26px}.app.compact .statusbar .sb-file,.app.compact .statusbar .pos,.app.compact .statusbar .readout,.app.compact .statusbar .sb-sel{display:none}.app.compact .statusbar .status-text{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.app.compact .tabbar{height:32px}.app.compact .welcome-card{padding:18px 14px}.app.compact .welcome-actions{flex-wrap:wrap}.app.compact .recent-grid{grid-template-columns:repeat(2,minmax(0,1fr))}@media (width<=760px){.modal,.modal.wide{width:calc(100vw - 16px);min-width:0;max-width:none;max-height:calc(100dvh - 16px);overflow:auto}.ctx-menu{max-width:calc(100vw - 8px);max-height:calc(100dvh - 8px);overflow-y:auto}}@media (pointer:coarse){.menu-item,.ctx-menu .menu-item,.ctx-item{padding:9px 12px}input[type=range]{height:24px}}.app.compact .style-body{flex-direction:column}.app.compact .fx-list{border-right:0;border-bottom:1px solid var(--line);flex-flow:wrap;width:auto}.app.compact .fx-item{flex:45%;padding:5px 6px}.app.compact .fx-list .btn{margin-top:0}.app.compact .fx-params .opt.wide>span:first-child{width:76px}.layer-row.selected{background:#3d8bfd38}.layer-row.selected .layer-name{color:#fff}.liquify{z-index:101;background:var(--bg2);border:1px solid var(--bg3);border-radius:8px;flex-direction:column;display:flex;position:fixed;inset:16px;overflow:hidden;box-shadow:0 16px 48px #0009}.liquify-head{border-bottom:1px solid var(--line);white-space:nowrap;text-overflow:ellipsis;align-items:baseline;gap:14px;padding:9px 14px;display:flex;overflow:hidden}.liquify-body{flex:1;min-height:0;display:flex}.liquify-tools{border-right:1px solid var(--line);background:var(--bg1);flex-direction:column;gap:3px;padding:8px 6px;display:flex}.liquify-stage{cursor:crosshair;touch-action:none;background:#1b1b1b;flex:1;min-width:0;position:relative;overflow:hidden}.liquify-paper{background:repeating-conic-gradient(#bdbdbd 0 25%, #f2f2f2 0 50%) 0 0 / 16px 16px;position:absolute}.liquify-gl,.liquify-over{width:100%;height:100%;position:absolute;inset:0}.liquify-over{pointer-events:none}.liquify-error{color:var(--muted);text-align:center;justify-content:center;align-items:center;padding:20px;display:flex;position:absolute;inset:0}.liquify-opts{border-left:1px solid var(--line);width:250px;overflow-y:auto}.liquify-opts .opt.wide>span:first-child{width:72px}.liquify-opts .opt.wide input[type=range]{min-width:60px}.liquify-opts .num{width:52px}.liquify-buttons{flex-direction:column;gap:6px;display:flex}.app.compact .liquify{border-radius:0;inset:0}.app.compact .liquify-body{flex-direction:column}.app.compact .liquify-tools{border-right:0;border-bottom:1px solid var(--line);flex-direction:row;overflow-x:auto}.app.compact .liquify-opts{border-left:0;border-top:1px solid var(--line);width:auto;max-height:36vh}.app.compact .liquify-head .muted{display:none}.brush-panel{width:340px}.brush-presets{grid-template-columns:repeat(3,1fr);gap:4px;display:grid}.brush-preset{border:1px solid var(--bg3);background:var(--bg0);color:var(--muted);border-radius:4px;flex-direction:column;align-items:center;gap:2px;padding:3px 2px 4px;font-size:10px;display:flex}.brush-preset:hover{color:var(--text);border-color:#555}.brush-preset.on{border-color:var(--accent);color:var(--text)}.brush-live{border:1px solid var(--bg3);background:#1a1a1a;border-radius:4px}.brush-form{gap:6px;padding:0}.brush-form .opt.wide>span:first-child{width:96px}.brush-form .opt.wide input[type=range]{flex:1;min-width:60px}.brush-val{text-align:right;width:40px;color:var(--muted);font-variant-numeric:tabular-nums}.brush-tip{object-fit:contain;background:#ddd;border-radius:3px;width:28px;height:28px}.navigator,.hist-panel{flex-direction:column;align-items:center;gap:6px;padding:8px 10px;display:flex}.nav-canvas{cursor:move;touch-action:none;background:#151515;border-radius:3px;display:block}.nav-zoom{align-items:center;gap:4px;width:100%;display:flex}.nav-zoom input[type=range]{flex:1;min-width:40px}.nav-pct{text-align:right;width:48px;color:var(--muted);font-variant-numeric:tabular-nums}.hist-top{justify-content:flex-end;align-self:stretch;display:flex}.hist-canvas{border-radius:3px;display:block}.hist-stats{flex-wrap:wrap;justify-content:center;gap:10px;display:flex}.refine-stage{cursor:default;justify-content:center;align-items:center;padding:12px;display:flex}.refine-canvas{object-fit:contain;max-width:100%;max-height:100%;box-shadow:0 0 0 1px #000}.refine-stage.view-layers .refine-canvas{background:repeating-conic-gradient(#bdbdbd 0 25%, #f2f2f2 0 50%) 0 0 / 16px 16px}.refine .liquify-opts .opt.wide>span:first-child{width:88px}.refine .param-group{margin-top:4px}.copy-external p{margin:0;line-height:1.45}.copy-external-pic{background:repeating-conic-gradient(#bdbdbd 0 25%, #f2f2f2 0 50%) 0 0 / 16px 16px;border-radius:4px;justify-content:center;align-items:center;min-height:120px;max-height:60vh;padding:8px;display:flex;overflow:auto}.copy-external-pic img{object-fit:contain;cursor:context-menu;max-width:100%;max-height:calc(60vh - 16px);box-shadow:0 0 0 1px #0000004d}a.btn{color:inherit;text-decoration:none}
