:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#161618;--panel:#1f1f22;--line:#333338;--text:#ececf0;--muted:#9a9aa3;--accent:#f0a23b;font-family:system-ui,-apple-system,Segoe UI,sans-serif;font-size:14px}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);min-height:100vh;margin:0}header{border-bottom:1px solid var(--line);align-items:center;gap:16px;padding:12px 16px;display:flex}header .actions{gap:6px;display:flex}header .actions button:disabled{opacity:.4}header h1{white-space:nowrap}#version{color:var(--muted);font-variant-numeric:tabular-nums;font-size:12px;font-weight:400}header .actions button{white-space:nowrap}header nav{flex:0 100 auto;align-items:center;gap:10px;min-width:0;margin-left:auto;display:flex}header nav a{color:var(--muted);white-space:nowrap;font-size:13px;text-decoration:none}header nav a:hover{color:var(--text);text-decoration:underline}#install{border:1px solid var(--line);-webkit-user-select:all;user-select:all;cursor:text;white-space:nowrap;text-overflow:ellipsis;border-radius:4px;flex:0 auto;min-width:8ch;padding:2px 6px;font-size:12px;overflow:hidden}h1{letter-spacing:.02em;margin:0;font-size:20px}h2{text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin:0 0 8px;font-size:11px}#status{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap;text-overflow:ellipsis;flex:0 .001 auto;min-width:0;margin:0;overflow:hidden}main{grid-template-columns:300px minmax(0,1fr);min-height:calc(100vh - 50px);display:grid}#workspace{--strip-h:148px;flex-direction:column;min-width:0;min-height:0;display:flex}#workspace figure{flex:1;min-height:0}aside{border-right:1px solid var(--line);background:var(--panel);flex-direction:column;gap:20px;padding:16px;display:flex}aside section{flex-direction:column;gap:8px;display:flex}label{align-items:center;gap:8px;display:flex}select,button{font:inherit;color:inherit;background:var(--bg);border:1px solid var(--line);border-radius:6px;padding:4px 8px}select{flex:1}input[type=range]{accent-color:var(--accent);flex:1;min-width:0}input[type=checkbox]{accent-color:var(--accent)}.visually-hidden,.file input{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;margin:-1px;position:absolute;overflow:hidden}.file:focus-within{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}.file{cursor:pointer;text-underline-offset:3px;text-decoration:underline}.hint{color:var(--muted);margin:0;font-size:12px}.use-selection{margin:6px 0;font-size:13px;display:block}.step-body{flex-direction:column;gap:8px;display:flex}.controls{flex-direction:column;gap:10px;display:flex}.control-float,.control-int{grid-template-rows:auto auto;grid-template-columns:1fr auto;column-gap:8px;display:grid}.control-float label,.control-int label{grid-column:1}.control-float output,.control-int output{text-align:right;color:var(--muted);font-variant-numeric:tabular-nums;grid-area:1/2}.control-float input,.control-int input{grid-column:1/span 2}.control-enum label{justify-content:space-between}.control-color{flex-wrap:wrap;justify-content:space-between;align-items:center;display:flex}.control-color input{border:1px solid var(--line);background:0 0;border-radius:4px;width:3em;height:1.8em;padding:0}.reset{cursor:pointer;align-self:flex-start}figure{place-items:start center;margin:0;padding:24px;display:grid;position:relative;overflow:hidden}#stage{transform-origin:0 0;touch-action:none;max-width:100%;display:grid;position:relative;top:24px}#stage.panning,#stage.panning *{cursor:grab!important}#stage.pixelated canvas{image-rendering:pixelated}.zoom-bar{z-index:2;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#0009;border-radius:8px;gap:2px;padding:4px;display:flex;position:absolute;bottom:16px;right:16px}.zoom-bar button{background:0 0;border:0;min-width:2.2em}.zoom-bar button:hover{background:#ffffff1a}#stage canvas{max-width:100%;max-height:calc(100vh - 100px - var(--strip-h,0px));background:repeating-conic-gradient(#2a2a2e 0 25%, #222225 0 50%) 0 0 / 16px 16px;grid-area:1/1}#before{clip-path:inset(0 calc(100% - var(--split,50%)) 0 0)}#stage.single #before,#stage.single #handle{display:none}#handle{pointer-events:none;grid-area:1/1;place-self:stretch stretch;position:relative}#handle:before{content:"";top:0;bottom:0;left:var(--split,50%);background:var(--accent);width:1px;position:absolute}#handle span{background:#0000008c;border-radius:4px;padding:2px 6px;font-size:11px;position:absolute;top:8px}#handle span:first-child{right:calc(100% - var(--split,50%) + 8px)}#handle span:last-child{left:calc(var(--split,50%) + 8px)}body.dragging{outline:2px dashed var(--accent);outline-offset:-8px}@media (width>=721px){body{flex-direction:column;height:100vh;display:flex;overflow:hidden}main{flex:1;min-height:0}aside{overflow-y:auto}}@media (width<=720px){main{grid-template-columns:1fr}#workspace{order:-1}figure{padding:12px}#stage{position:static}#stage canvas{max-height:60vh}aside{border-right:0;border-top:1px solid var(--line)}header{flex-wrap:wrap;gap:8px 12px}#status{flex-basis:100%;order:3;font-size:12px}header nav{flex-basis:100%;order:2;margin-left:0}}.control-kernel{flex-direction:column;gap:6px;display:flex}.kernel{gap:3px;display:grid}.kernel input{width:100%;min-width:0;font:inherit;color:inherit;background:var(--panel);border:1px solid var(--line);text-align:right;border-radius:4px;padding:2px 4px;font-size:12px}.control-lut{flex-direction:column;gap:4px;display:flex}.lut-info{color:var(--muted);font-size:.9em}.lut-info.error{color:#d33}.control-curve{flex-direction:column;gap:6px;display:flex}.curve-host{aspect-ratio:1;align-self:center;width:100%;max-width:220px}.curve-tabs{gap:4px;display:flex}.curve-tabs button{cursor:pointer;flex:1;padding:2px 4px;font-size:12px}.curve-tabs button[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}.curve-editor{touch-action:none;cursor:crosshair;width:100%;height:100%;display:block;overflow:visible}.curve-bg{fill:var(--panel)}.curve-grid line{stroke:var(--line);stroke-width:1px;vector-effect:non-scaling-stroke}.curve-diagonal{stroke-dasharray:3 3}.curve-line{fill:none;stroke:var(--accent);stroke-width:2px;vector-effect:non-scaling-stroke}.curve-point{fill:var(--bg);stroke:var(--text);stroke-width:1.5px;vector-effect:non-scaling-stroke;cursor:grab}.curve-point:focus{stroke:var(--accent);outline:none}.mask-controls{border-top:1px solid var(--line);flex-direction:column;gap:6px;margin-top:10px;padding-top:10px;display:flex}.mask-kind{align-items:center;gap:8px;display:flex}.mask-slider{grid-template-columns:5em 1fr 3em;align-items:center;gap:8px;display:grid}.mask-slider output{text-align:right;color:var(--muted);font-variant-numeric:tabular-nums}#overlay{pointer-events:none;grid-area:1/1;width:100%;height:100%;overflow:hidden}.mask-handle{r:calc(7px * var(--px,1));fill:#ffffffe6;stroke:#000000b3;stroke-width:calc(1.5px * var(--px,1));pointer-events:all;cursor:grab}.mask-handle:active{cursor:grabbing}.mask-guide,.mask-edge{fill:none;stroke:#ffffffd9;stroke-width:calc(1.5px * var(--px,1));filter:drop-shadow(0 0 1px #000c)}.mask-guide,.mask-inner{stroke-dasharray:calc(6px * var(--px,1)) calc(4px * var(--px,1))}#overlay.painting{pointer-events:all;cursor:none;touch-action:none}.brush-cursor{fill:none;stroke:#ffffffe6;stroke-width:calc(1.5px * var(--px,1));filter:drop-shadow(0 0 1px #000000e6);pointer-events:none}.brush-mode{gap:6px;display:flex}.brush-mode button[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}#overlay.painting.wand{cursor:crosshair}.histogram{width:100%;height:100px;image-rendering:pixelated;background:#00000040;border-radius:6px}.geometry{flex-direction:column;gap:8px;display:flex}.geometry-buttons{flex-wrap:wrap;gap:6px;display:flex}#geometry-overlay{pointer-events:none;grid-area:1/1;width:100%;height:100%;overflow:visible}.crop-shade{fill:#0000008c;fill-rule:evenodd;pointer-events:none}.crop-body{fill:#0000;stroke:#ffffffe6;stroke-width:calc(1.5px * var(--px,1));pointer-events:all;cursor:move}#stage.cropping #before,#stage.cropping #handle,#stage.cropping #overlay{display:none}button.primary{border-color:var(--accent);color:var(--accent)}#export-size{width:7em;font:inherit;color:inherit;background:var(--bg);border:1px solid var(--line);border-radius:6px;padding:4px 6px}@media (pointer:coarse){.mask-handle{r:calc(14px * var(--px,1))}}#stage.picking,#stage.picking *{cursor:crosshair!important}#stage.busy:after{content:"";z-index:3;border:3px solid #ffffff40;border-top-color:var(--accent);pointer-events:none;border-radius:50%;width:36px;height:36px;margin:-18px 0 0 -18px;animation:.8s linear infinite spin;position:absolute;top:50%;left:50%}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){#stage.busy:after{animation-duration:3s}}.group-tabs{flex-wrap:wrap;gap:4px;display:flex}.group-tabs button{padding:2px 8px;font-size:12px}.group-tabs button[aria-selected=true]{border-color:var(--accent);color:var(--accent)}.looks{grid-template-columns:repeat(3,1fr);gap:6px;display:grid}.look-card{cursor:pointer;flex-direction:column;gap:3px;padding:3px;font-size:11px;display:flex}.look-card canvas{aspect-ratio:3/2;object-fit:cover;background:#ffffff0d;border-radius:3px;width:100%}.look-card:hover{border-color:var(--accent)}.shape-preview{fill:color-mix(in srgb, var(--accent) 25%, transparent);stroke:var(--accent);stroke-width:calc(2 * var(--px,1));stroke-dasharray:calc(6 * var(--px,1));pointer-events:none}.param-help{color:var(--muted);flex-basis:100%;grid-column:1/-1;margin:2px 0 0;font-size:12px;line-height:1.4}.try-this{border-left:2px solid var(--accent);color:var(--muted);margin:0;padding-left:8px;font-size:12px;line-height:1.4}kbd{font:inherit;color:var(--muted);border:1px solid var(--line);border-radius:4px;margin-left:6px;padding:0 4px;font-size:11px}.effect-browser{border:1px solid var(--line);background:var(--panel);width:min(920px,100vw - 32px);max-height:calc(100vh - 64px);color:var(--text);border-radius:12px;padding:16px}.effect-browser::backdrop{background:#0009}.effect-browser[open]{flex-direction:column;gap:12px;display:flex}.effect-browser input[type=search]{font:inherit;color:inherit;background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:8px 12px;font-size:16px}.effect-browser input[type=search]:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.effect-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:8px;min-height:0;display:grid;overflow-y:auto}.effect-card{text-align:left;cursor:pointer;align-items:flex-start;gap:10px;padding:8px;display:flex}.effect-card[hidden]{display:none}.effect-card:hover,.effect-card:focus-visible{border-color:var(--accent);outline:none}.effect-card canvas{object-fit:cover;background:#ffffff0d;border-radius:4px;flex:none;width:84px;height:62px}.effect-card:not(:has(canvas)){padding-left:12px}.effect-text{flex-direction:column;gap:2px;min-width:0;display:flex}.effect-text small{color:var(--muted)}.effect-text span{color:var(--muted);font-size:12px;line-height:1.35}.effect-empty{color:var(--muted);margin:0}#chain{flex-direction:column;gap:8px;display:flex}.inspector-title{align-items:baseline;gap:8px;margin:0;font-size:15px;font-weight:600;display:flex}.inspector-title small{color:var(--muted);font-size:12px;font-weight:400}#strip{border-top:1px solid var(--line);background:var(--panel);min-height:var(--strip-h);flex:none;align-items:stretch;gap:8px;padding:10px 16px;display:flex;overflow-x:auto}.strip-list{gap:8px;margin:0;padding:0;list-style:none;display:flex}.frame{border:1px solid var(--line);background:var(--bg);border-radius:8px;flex-direction:column;flex:none;gap:4px;width:124px;padding:4px;display:flex;position:relative}.frame canvas{aspect-ratio:3/2;object-fit:cover;cursor:pointer;background:#ffffff0d;border-radius:4px;width:100%}.frame.selected{border-color:var(--accent)}.frame.disabled canvas,.frame.disabled .step-title{opacity:.45}.frame.dragging{opacity:.5}.frame.drop-before:before,.frame.drop-after:after{content:"";background:var(--accent);border-radius:2px;width:3px;position:absolute;top:0;bottom:0}.frame.drop-before:before{left:-6px}.frame.drop-after:after{right:-6px}.frame-name,.frame small{color:var(--muted);font-size:12px}.frame-bar{align-items:center;gap:4px;min-width:0;display:flex}.frame-bar .step-title,.frame-selection .step-title{text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;background:0 0;border:0;flex:1;min-width:0;padding:2px 0;font-weight:500;overflow:hidden}.frame-tools{opacity:0;gap:2px;display:flex;position:absolute;top:6px;right:6px}.frame:hover .frame-tools,.frame:focus-within .frame-tools,.frame.selected .frame-tools{opacity:1}@media (hover:none){.frame-tools{opacity:1}}.frame-tool{color:var(--text);cursor:pointer;background:#000000a6;border:0;border-radius:4px;width:22px;height:22px;padding:0;line-height:1}.frame-tool:hover{color:var(--accent)}.frame-original canvas{cursor:default}.frame-selection,.frame-add{justify-content:center;width:92px}.frame-selection.selected{border-color:var(--accent)}.frame-add button{cursor:pointer;padding:10px 0;font-size:22px;line-height:1}.frame:focus-within{outline:2px solid var(--accent);outline-offset:1px}.strip-empty{color:var(--muted);align-self:center;max-width:22em;margin:0}.strip-empty[hidden]{display:none}@media (width<=720px){#workspace{--strip-h:0px}#strip{padding:8px 12px}}.frame.beyond canvas,.frame.beyond .step-title{opacity:.35}.frame-tool[data-action=solo]{width:auto;padding:0 6px;font-size:11px}.frame-tool[aria-pressed=true]{background:var(--accent);color:#161618}.code-dialog{border:1px solid var(--line);background:var(--panel);width:min(760px,100vw - 32px);max-height:calc(100vh - 64px);color:var(--text);border-radius:12px;padding:16px}.code-dialog::backdrop{background:#0009}.code-dialog[open]{flex-direction:column;gap:10px;display:flex}.code-tabs{flex-wrap:wrap;gap:6px;display:flex}.code-tabs [aria-selected=true]{border-color:var(--accent)}.code-install{color:var(--muted);-webkit-user-select:all;user-select:all;margin:0;font-family:ui-monospace,monospace}.code-dialog pre{background:var(--bg);border-radius:8px;min-height:0;margin:0;padding:12px;font-size:12px;line-height:1.45;overflow:auto}.code-actions{justify-content:flex-end;gap:6px;display:flex}
