:root{font-family:ui-rounded,Segoe UI,system-ui,sans-serif;color:#3b3226;background:#f5f3eb;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--color-background: #f5f3eb;--color-surface: #faf9f5;--color-element-surface: #fefdf9;--color-content-primary: #3b3226;--color-content-secondary: #5c4d3c;--color-border: #d4cfc4;--color-accent: #4a7c96}*{box-sizing:border-box}[hidden]{display:none!important}html,body,#root{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none}body{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button{-webkit-user-select:none;user-select:none}button:focus-visible,input:focus-visible{outline:2px solid #4a7c96;outline-offset:3px}.editor-shell{position:fixed;inset:0;height:100dvh;overflow:hidden;--control-top: max(16px, env(safe-area-inset-top));--compact-panel-width: min(180px, calc(100vw - 148px) );--history-offset: 0px;--toolbar-height: 44px}.editor-canvas{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:none;outline:none}.editor-canvas[data-tool=fill],.editor-canvas[data-tool=marquee],.editor-canvas[data-tool=lasso],.editor-canvas[data-tool=magic]{cursor:crosshair}.editor-heading{position:absolute;top:calc(var(--control-top) + 2px);left:50%;transform:translate(-50%);display:flex;align-items:center;flex-direction:column;gap:4px;pointer-events:none;white-space:nowrap}.editor-name{font-size:13px;font-weight:650;letter-spacing:-.15px}.editor-name-divider{margin:0 5px;color:#aaa192;font-weight:400}.editor-memory{font-size:11px;color:#7c7263}.editor-primary-controls{position:absolute;top:var(--control-top);left:max(16px,env(safe-area-inset-left));display:flex;flex-direction:column;align-items:flex-start;gap:8px;pointer-events:none}.canvas-toolbar-group{display:flex;align-items:center;gap:4px;padding:4px;border-radius:8px;background:var(--color-surface);box-shadow:0 2px 5px #3b32261a,0 1px 2px #3b32260c;pointer-events:auto}.canvas-toolbar-button{position:relative;display:inline-flex;justify-content:center;align-items:center;flex:0 0 auto;width:36px;height:36px;padding:8px;border:0;border-radius:8px;color:var(--color-content-primary);background:transparent;cursor:pointer;transition:background-color .12s;touch-action:manipulation}.canvas-toolbar-button:hover{background:#4a7c961f}.canvas-toolbar-button-selected,.canvas-toolbar-button-selected:hover{background:#4a7c9638}.canvas-toolbar-button:disabled{color:#999;opacity:.42;cursor:not-allowed;background:transparent}.editor-history{position:absolute;top:var(--control-top);right:max(16px,env(safe-area-inset-right))}.editor-options{align-self:flex-start}.editor-color-indicator{position:absolute;bottom:5px;right:5px;width:8px;height:8px;border-radius:50%;border:1px solid #3b322640}.editor-selection-actions{flex-wrap:wrap;max-width:min(328px,calc(100vw - 32px))}.editor-panel{position:absolute;isolation:isolate;top:calc(var(--control-top) + 104px);left:max(16px,env(safe-area-inset-left));width:232px;max-width:calc(100vw - 32px);max-height:calc(100dvh - var(--control-top) - 180px);overflow-y:auto;overscroll-behavior:contain;border-radius:8px;background:var(--color-element-surface);box-shadow:0 3px 12px #3b322621,0 1px 3px #3b32260c}.editor-panel-heading{display:flex;align-items:center;justify-content:space-between;padding:3px 4px 3px 14px;background:var(--color-surface);border-bottom:1px solid var(--color-border)}.editor-panel-heading strong{font-size:13px;font-weight:600}.editor-panel-heading .canvas-toolbar-button{width:30px;height:30px}.editor-panel-body{padding:14px}.editor-panel input[type=range]{width:100%;margin:10px 0;accent-color:var(--color-accent);cursor:pointer;touch-action:none}.editor-color-swatches{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px}.editor-color-swatch{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1;border:1px solid #3b32261f;border-radius:6px;cursor:pointer;padding:0}.editor-color-swatch:hover{box-shadow:0 0 0 2px #3b322640}.editor-color-swatch-selected{border:2px solid white;box-shadow:0 0 0 2px #3b322673}.editor-status{position:absolute;left:max(16px,env(safe-area-inset-left));bottom:max(24px,calc(env(safe-area-inset-bottom) + 12px));display:flex;align-items:center;gap:8px;max-width:calc(100vw - 210px);color:#7c7263;font-size:11px;line-height:1.45;pointer-events:none}.editor-status-busy{color:var(--color-accent)}.editor-spinner{flex-shrink:0;animation:editor-spin 1s linear infinite}.editor-view-controls{position:absolute;bottom:max(16px,calc(env(safe-area-inset-bottom) + 8px));right:max(16px,env(safe-area-inset-right))}.editor-primary-controls,.editor-history,.editor-view-controls{z-index:4}@keyframes editor-spin{to{transform:rotate(360deg)}}@media(max-width:760px){.editor-shell{--control-top: max(58px, calc(env(safe-area-inset-top) + 50px) )}.editor-heading{top:max(14px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));transform:none;flex-direction:row;justify-content:space-between;gap:8px}.editor-primary-controls{left:max(12px,env(safe-area-inset-left))}.editor-history{right:max(12px,env(safe-area-inset-right))}.editor-name{font-size:12px}.editor-memory{font-size:10px}.editor-status{left:12px;bottom:max(22px,calc(env(safe-area-inset-bottom) + 12px));max-width:calc(100vw - 180px);font-size:10px}.editor-view-controls{right:12px}.editor-panel{left:12px}}@media(max-width:420px){.editor-shell{--control-top: max(52px, calc(env(safe-area-inset-top) + 44px) );--history-offset: 56px;--toolbar-height: 48px}.canvas-toolbar-button{width:40px;height:40px}.editor-history{top:calc(var(--control-top) + 56px)}.editor-selection-actions{position:absolute;top:112px;left:0;width:max-content;max-width:calc(100vw - 24px)}.editor-panel{top:calc(var(--control-top) + 112px)}.editor-status{max-width:calc(100vw - 176px)}.editor-name-divider{margin:0 2px}}@media(max-height:450px)and (min-width:600px){.editor-shell{--control-top: max(10px, env(safe-area-inset-top))}.editor-heading{inset:auto auto 17px 50%;transform:translate(-50%)}.editor-memory,.editor-status{display:none}.editor-panel{top:var(--control-top);left:236px;max-height:calc(100dvh - 72px)}}@media(prefers-reduced-motion:reduce){.canvas-toolbar-button{transition:none}.editor-spinner{animation:none}}.editor-panel-heading{cursor:grab;touch-action:none}.editor-panel-heading button{cursor:pointer}.editor-slider-panel{width:56px;max-height:calc(100dvh - var(--control-top) - 176px);overflow:hidden}.editor-slider-panel .editor-panel-heading{padding:0 2px 0 5px;height:34px}.editor-slider-panel .editor-panel-heading .canvas-toolbar-button{width:28px;height:32px;padding:5px}.editor-slider-body{display:flex;flex-direction:column;align-items:center;gap:8px;padding:8px 4px}.editor-slider-feedback{display:grid;place-items:center;flex:none;width:44px;height:24px;color:var(--color-content-secondary)}.editor-slider-icon{display:flex;align-items:center;justify-content:center}.editor-slider-feedback output{font-size:11px;font-variant-numeric:tabular-nums;line-height:20px}.editor-slider-body input[type=range]{writing-mode:vertical-lr;direction:rtl;width:32px;height:min(320px,calc(100dvh - var(--control-top) - 270px));min-height:56px;margin:0}.editor-color-panel{left:auto;right:max(16px,env(safe-area-inset-right));top:calc(var(--control-top) + var(--history-offset) + var(--toolbar-height) + 8px);max-height:calc(100dvh - var(--control-top) - var(--history-offset) - var(--toolbar-height) - max(84px,calc(env(safe-area-inset-bottom) + 76px)));width:272px;display:flex;flex-direction:column;overflow:hidden}.editor-color-panel>.editor-panel-heading{flex:none}.editor-color-panel>.editor-panel-heading strong{flex:1}.editor-color-panel-compact{width:var(--compact-panel-width)}.editor-color-panel-compact .editor-color-swatches{grid-template-columns:repeat(4,minmax(0,1fr))}.editor-color-panel>.editor-panel-body{padding:12px;display:grid;gap:12px;overflow-y:auto;min-height:0}.editor-color-section{display:grid;gap:8px;border-top:1px solid var(--color-border);padding-top:10px}.editor-color-section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:var(--color-content-secondary)}.editor-color-section select{border:1px solid var(--color-border);border-radius:5px;background:var(--color-surface);color:inherit;padding:5px 7px;font:inherit;cursor:pointer}.editor-color-section select{min-width:54px}.editor-layers-panel{right:max(16px,env(safe-area-inset-right));bottom:max(76px,calc(env(safe-area-inset-bottom) + var(--toolbar-height) + 16px));top:auto;left:auto;width:var(--compact-panel-width);max-height:calc(100dvh - var(--control-top) - 132px);display:flex;flex-direction:column;overflow:hidden}.editor-layers-panel>.editor-panel-heading{flex:none;padding-left:10px;gap:2px}.editor-layers-panel>.editor-panel-heading strong{flex:1;font-size:12px;white-space:nowrap}.editor-layer-count{margin-left:5px;color:var(--color-content-secondary);font-size:10px;font-weight:400}.editor-layer-list{flex:1 1 auto;padding:8px;display:grid;gap:6px;overflow-y:auto;overscroll-behavior:contain;min-height:0}.editor-layer-row{border:1px solid var(--color-border);border-radius:7px;background:var(--color-element-surface)}.editor-layer-active{border-color:var(--color-accent);background:#f0f5f6}.editor-layer-heading{padding:5px}.editor-layer-select{display:block;width:100%;min-width:0;border:0;padding:0;background:none;cursor:pointer}.editor-layer-preview{display:block;width:100%;aspect-ratio:16 / 9;margin:auto;overflow:hidden;background:repeating-conic-gradient(#e5e3de 0% 25%,#fff 0% 50%) 0/10px 10px;border:1px solid var(--color-border);border-radius:4px}.editor-layer-thumbnail{display:block;width:100%;height:100%;object-fit:contain}.editor-layer-options{padding:6px;display:grid;gap:6px;border-top:1px solid var(--color-border);border-radius:0 0 6px 6px;background:#f0f5f6}.editor-layer-opacity{display:flex;align-items:center;gap:5px}.editor-layer-opacity .editor-slider-feedback{order:-1;width:36px}.editor-layer-opacity input[type=range]{min-width:0;flex:1;height:24px;margin:0}.editor-layer-arrange,.editor-layer-manage{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.editor-layer-arrange{border-top:1px solid var(--color-border);padding-top:5px}.editor-layer-hidden{opacity:.4}.editor-layer-options .canvas-toolbar-button{width:100%;min-width:0;height:32px;padding:7px}.editor-canvas[data-tool=pipette]{cursor:none}.editor-pipette-preview{position:absolute;top:0;left:0;width:104px;height:104px;z-index:1;pointer-events:none}.editor-pipette-preview svg{display:block;width:100%;height:100%}@media(max-width:760px){.editor-color-panel{left:auto;right:12px}.editor-layers-panel{right:12px}}@media(max-width:420px){.editor-layers-panel{right:12px;bottom:76px;max-height:calc(100dvh - var(--control-top) - 188px)}.editor-layers-panel .editor-panel-heading{padding-left:5px}.editor-layers-panel .editor-panel-heading strong{font-size:11px}.editor-layers-panel .editor-panel-heading .canvas-toolbar-button{width:26px}}@media(pointer:coarse){.canvas-toolbar-button{min-width:40px;min-height:40px}.editor-panel-heading .canvas-toolbar-button{min-width:30px;min-height:36px}.editor-slider-body input[type=range]{width:40px}.editor-shell{--toolbar-height: 48px}.editor-layer-options .canvas-toolbar-button{width:100%;min-width:0;height:40px}.editor-layer-opacity input[type=range]{height:32px}}@media(max-height:450px)and (min-width:600px){.editor-slider-panel{top:calc(var(--control-top) + 104px);left:12px;max-height:calc(100dvh - var(--control-top) - 120px)}.editor-slider-body{gap:4px;padding:4px}.editor-slider-body input[type=range]{height:max(48px,calc(100dvh - var(--control-top) - 220px));min-height:48px}.editor-layers-panel{max-height:calc(100dvh - var(--control-top) - var(--toolbar-height) - 92px)}}.editor-custom-color{display:grid;gap:10px}.editor-color-plane{position:relative;height:140px;border-radius:5px;cursor:crosshair;touch-action:none;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,transparent)}.editor-color-plane:focus-within{outline:2px solid var(--color-accent);outline-offset:3px}.editor-color-thumb{position:absolute;width:14px;height:14px;transform:translate(-50%,-50%);border:2px solid white;border-radius:50%;box-shadow:0 0 0 1px #0008;pointer-events:none}.editor-color-keyboard{position:absolute;width:1px!important;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}.editor-panel .editor-color-hue{appearance:none;-webkit-appearance:none;display:block;height:24px;margin:0;border-radius:12px;background:linear-gradient(to right,red,#ff0,#0f0,#0ff,#00f,#f0f,red)}.editor-color-hue::-webkit-slider-thumb{appearance:none;width:14px;height:28px;border:2px solid white;border-radius:7px;background:transparent;box-shadow:0 0 0 1px #0008}.editor-color-hue::-moz-range-thumb{width:10px;height:24px;border:2px solid white;border-radius:7px;background:transparent;box-shadow:0 0 0 1px #0008}.editor-color-current{display:flex;gap:8px;align-items:center}.editor-current-swatch{display:block;height:28px;flex:1;border:1px solid #3b322630;border-radius:5px}.editor-color-modes{display:flex;gap:4px;padding:3px;border-radius:7px;background:#3b32260a}.editor-color-modes button{flex:1;border:0;border-radius:5px;padding:7px;font-size:12px;color:inherit;background:transparent;cursor:pointer}.editor-color-modes button[aria-pressed=true]{background:var(--color-element-surface);box-shadow:0 1px 3px #3b322621}.editor-panel-resize{flex:none;height:12px;display:grid;place-items:center;cursor:ns-resize;touch-action:none}.editor-panel-resize:after{content:"";width:28px;height:3px;border-radius:2px;background:var(--color-border)}.editor-panel-resize:hover:after,.editor-panel-resize:focus-visible:after{background:var(--color-accent)}.editor-panel-resize:focus-visible{outline:2px solid var(--color-accent);outline-offset:-2px}@media(pointer:coarse){.editor-panel-resize{height:20px}}.editor-slider-body,.editor-layer-opacity{user-select:none}
