html,body{margin:0;border:0;padding:0;width:100%;height:100%;overflow:hidden}:root{--font-sans: "Bricolage Grotesque", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif}body{font-family:var(--font-sans)}canvas{display:block;touch-action:none}.lil-gui{--background-color: rgba(31, 31, 31, .5);--focus-color: rgba(255, 255, 255, .25);--folder-indent: .75rem;--font-family: var(--font-sans);--hover-color: rgba(255, 255, 255, .125);--name-width: 45%;--number-color: rgba(255, 255, 127, .625);--padding: .375rem;--spacing: .25rem;--widget-border-radius: .25rem;--widget-color: rgba(255, 255, 255, .0625);--widget-height: 1.125rem;--width: min(16rem, calc(100vw - 2rem) );backdrop-filter:blur(1rem);-webkit-backdrop-filter:blur(1rem);border:1px solid rgba(255,255,255,.125);border-radius:0 0 .375rem .375rem;box-shadow:0 .125rem .75rem #00000020;overflow:hidden}.lil-gui.lil-root{display:flex;flex-direction:column;left:calc(1rem + env(safe-area-inset-left,0));max-height:calc(100vh - env(safe-area-inset-top,0) - env(safe-area-inset-bottom,0) - 4rem);position:fixed;right:auto;top:calc(1rem + env(safe-area-inset-top,0))}.lil-gui.lil-root>.lil-children{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}.lil-gui.lil-root>.lil-children>.lil-gui{margin:.375rem}.lil-gui:not(.lil-root){--title-background-color: rgba(255, 255, 255, .125)}.lil-title{align-items:center;border-radius:0 0 .25rem .25rem;display:flex;min-height:2rem}.lil-gui .lil-title{font-size:.75rem;font-weight:800}.lil-controller{padding:.25rem .375rem;margin:0;transition:background 125ms ease}.lil-controller:hover{background:#ffffff10}.lil-controller .lil-name{font-size:.75rem;opacity:.75;transition:opacity 125ms ease}.lil-controller:hover .lil-name,.lil-controller.lil-active .lil-name{opacity:1}.lil-controller select,.lil-controller option{font-family:inherit}.lil-controller input[type=checkbox]{height:1rem;width:1rem}.lil-slider:hover .lil-fill{background:linear-gradient(75deg,#ffff7f10,#ffff7f40)}.lil-function .lil-widget{background:#ffffff10;border-radius:var(--widget-border-radius);transition:background .25s ease}.lil-function .lil-widget:hover{background:#00ffff40;transition:background .25s ease}.lil-function .lil-widget:active{background:#ff00ff40;transform:translateY(1px);transition:background .25s ease}.lil-gui.lil-root>.lil-children::-webkit-scrollbar{width:.5rem}.lil-gui.lil-root>.lil-children::-webkit-scrollbar-track{background:transparent}.lil-gui.lil-root>.lil-children::-webkit-scrollbar-thumb{background:#ffffff40;background-clip:content-box}.lil-gui.lil-root>.lil-children::-webkit-scrollbar-thumb:hover{background:#ffffff80}.lil-title:before{opacity:.5}.lil-title:hover:before{opacity:1}.folder-icon{display:inline-flex;margin-right:.375rem;opacity:.75;vertical-align:-.125rem}.folder-icon svg{height:.875rem;width:.875rem}.lil-title:hover .folder-icon{opacity:1}@media(pointer:coarse){.lil-gui{--widget-border-radius: .375rem}}@media(prefers-reduced-motion:reduce){.lil-gui *,.lil-gui *:before{transition:none!important}}@media(max-width:720px){.lil-gui.lil-root{bottom:calc(1.75rem + env(safe-area-inset-bottom,0));left:1rem;max-height:min(56vh,32rem);top:auto;width:calc(100vw - 2rem)}.lil-gui.lil-root:before{padding:.75rem .875rem .625rem}.lil-gui.lil-root>.lil-children{padding-bottom:.5rem}}.axis-label{background:#00000040;border-radius:8px;color:#fff;font-family:monospace;font-size:16px;font-weight:700;padding:2px 6px;user-select:none;white-space:nowrap}.tick-label{background:#00000040;border-radius:4px;color:#fff;font-family:monospace;font-size:10px;padding:1px 4px;user-select:none;white-space:nowrap}#palette-dock{bottom:env(safe-area-inset-bottom,0);display:block;height:var(--dock-height, 2vh);image-rendering:pixelated;left:0;position:fixed;pointer-events:none;transition:height .12s ease-out;width:100vw;z-index:1}@media(max-width:720px){#palette-dock{bottom:0}}#watermark{-webkit-background-clip:text;background-clip:text;background-color:#ffffff80;bottom:calc(var(--dock-height, 2vh) + .75rem + env(safe-area-inset-bottom,0));color:transparent;font-family:var(--font-sans);font-size:1.25rem;font-weight:800;letter-spacing:-.02em;opacity:.4;pointer-events:none;position:fixed;right:calc(1rem + env(safe-area-inset-right,0));transition:bottom .12s ease-out;user-select:none;-webkit-user-select:none;z-index:0}@media(max-width:720px){#watermark{bottom:auto;top:calc(1rem + env(safe-area-inset-top,0))}}#tooltip{backdrop-filter:blur(12px);background:#00000060;border:1px solid rgba(255,255,255,.25);border-radius:8px;box-shadow:0 2px 8px #00000080;color:#fff;display:none;font-family:"ui-monospace",SFMono-Regular,Menlo,monospace;font-size:12px;padding:8px 12px;pointer-events:none;position:fixed;white-space:nowrap;z-index:999}.tooltip-header{align-items:center;border-bottom:1px solid rgba(255,255,255,.25);display:flex;gap:12px;margin-bottom:4px;padding-bottom:8px}.swatch{border:1px solid rgba(255,255,255,.25);border-radius:4px;flex-shrink:0;height:32px;width:32px}.primary-val{display:flex;flex-direction:column}.label{font-size:10px;font-weight:700;opacity:.5;text-transform:uppercase}.tooltip-grid{display:grid;gap:6px;grid-template-columns:1fr 1fr}.section-title{font-size:10px;font-weight:700;margin-top:4px;opacity:.5}.walkthrough-root{display:none;font-family:"ui-sans-serif","system-ui",sans-serif}.walkthrough-root.open{display:block}.walkthrough-card{backdrop-filter:blur(.75rem);background:#0f0f0f80;border:1px solid rgba(255,255,255,.125);border-radius:.75rem;box-shadow:0 1rem 3rem #00000080;color:#fff;left:50%;max-width:calc(100vw - 2rem);padding:1.25rem 1.5rem;position:fixed;top:50%;transform:translate(-50%,-50%);width:420px;z-index:1001}.walkthrough-step-num{font-size:.75rem;letter-spacing:.125em;opacity:.5;text-transform:uppercase}.walkthrough-title{font-size:1.125rem;font-weight:700;margin-top:.25rem}.walkthrough-body{font-size:.875rem;line-height:1.625;margin-top:.75rem;min-height:3.5rem;opacity:.875}.walkthrough-dots{display:flex;gap:.5rem;justify-content:center;margin-top:1rem}.walkthrough-dot{background:#ffffff40;border-radius:50%;cursor:pointer;height:.375rem;transition:background .25s,transform .25s;width:.375rem}.walkthrough-dot.active{background:#fff;transform:scale(1.375)}.walkthrough-actions{align-items:center;display:flex;gap:.5rem;margin-top:1rem}.walkthrough-spacer{flex:1}.walkthrough-actions button{background:#ffffff20;border:1px solid rgba(255,255,255,.25);border-radius:.375rem;color:#fff;cursor:pointer;font-family:inherit;font-size:.75rem;padding:.375rem .875rem;transition:background .12s,border-color .12s}.walkthrough-actions button:hover:not(:disabled){background:#ffffff80;border-color:#ffffff40}.walkthrough-actions button:disabled{cursor:default;opacity:.375}.walkthrough-actions .walkthrough-next{background:#fff;border-color:#fff;color:#000}.walkthrough-actions .walkthrough-skip{opacity:.75}@keyframes walkthroughPulse{0%,to{box-shadow:0 0 #ffffffbf}50%{box-shadow:0 0 0 4px #fff0}}.walkthrough-highlight{animation:walkthroughPulse 1.2s ease-out infinite;border-radius:.5rem;outline:.25rem solid white;outline-offset:.125rem;position:relative;z-index:1002}@media(max-width:480px){.walkthrough-card{bottom:calc(var(--dock-height, 2vh) + 16px);box-sizing:border-box;left:16px;padding:16px 18px;right:16px;top:auto;transform:none;width:auto}.walkthrough-title{font-size:16px}.walkthrough-body{font-size:12px}}.anchor-list,.curve-warning,.region-note,.curve-diagnostics{padding:0 var(--padding);font-family:var(--font-family-mono);font-size:var(--font-size)}.anchor-hint{opacity:.5;padding:var(--spacing) 0;line-height:1.4}.anchor-row{display:flex;align-items:center;gap:.25rem;height:calc(var(--widget-height) + var(--spacing))}.anchor-row.selected{border-radius:var(--widget-border-radius);outline:1px solid rgba(255,255,255,.5)}.anchor-row .anchor-swatch{flex:none;width:.875rem;height:.875rem;padding:0;border:0;border-radius:.1875rem;background:none;cursor:pointer;box-shadow:inset 0 0 0 1px #ffffff40}.anchor-row .anchor-swatch::-webkit-color-swatch-wrapper{padding:0}.anchor-row .anchor-swatch::-webkit-color-swatch{border:0;border-radius:.1875rem}.anchor-row .anchor-swatch::-moz-color-swatch{border:0;border-radius:.1875rem}.anchor-row .anchor-value{flex:1;min-width:0;height:var(--widget-height);padding:0 .25rem;border:0;border-radius:var(--widget-border-radius);background:transparent;color:inherit;font:inherit;text-overflow:ellipsis}.anchor-row .anchor-value:hover,.anchor-row .anchor-value:focus{background:var(--widget-color);outline:none}.anchor-row .anchor-value.invalid{box-shadow:inset 0 0 0 1px #ff5050}.anchor-flag{color:#ffb000;cursor:help}.anchor-row button{flex:none;width:1.125rem;height:1.125rem;padding:0;border:0;border-radius:var(--widget-border-radius);background:var(--widget-color);color:inherit;font:inherit;cursor:pointer}.anchor-row button:hover:not(:disabled){background:var(--hover-color)}.anchor-row button:disabled{opacity:.25;cursor:default}.lil-controller.invalid input{box-shadow:inset 0 0 0 1px #ff5050}.curve-warning,.region-note{color:#ffb000;line-height:1.4;padding-top:var(--spacing);padding-bottom:var(--spacing)}.diag-chart{padding:var(--spacing) 0}.diag-head{display:flex;justify-content:space-between;opacity:.75}.diag-summary{color:var(--number-color)}.diag-chart svg{display:block;width:100%;height:2.25rem;margin-top:.125rem;border-radius:.1875rem;background:#ffffff08;overflow:visible}.diag-bar{fill:#ffffff80}.diag-bar.diag-danger{fill:#ff5050}.diag-line{fill:none;stroke:#ffffff60;stroke-width:1;vector-effect:non-scaling-stroke}.diag-dot{stroke:#00000080;stroke-width:.5}.diag-zero{stroke:#ffffff40;stroke-dasharray:2 2;vector-effect:non-scaling-stroke}.diag-label{cursor:help}.diag-summary.diag-readout{color:var(--text-color)}.diag-hit{fill:transparent}.curve-palette{padding:var(--spacing) var(--padding);font-family:var(--font-family-mono);font-size:var(--font-size)}.palette-toolbar{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:var(--spacing)}.palette-toolbar label{display:flex;align-items:center;gap:.375rem;opacity:.9;cursor:help}.palette-toolbar select,.palette-toolbar button{white-space:nowrap;width:auto;height:var(--widget-height);padding:0 .375rem;border:0;border-radius:var(--widget-border-radius);background:var(--widget-color);color:var(--text-color);font:inherit;cursor:pointer}.palette-toolbar button:hover,.palette-toolbar select:hover{background:var(--hover-color)}.palette-swatches{container-type:inline-size;display:grid;gap:3px}.palette-swatches .palette-swatch span{font-size:min(.625rem,calc((100cqi - (var(--cols, 1) - 1) * 3px) / var(--cols, 1) / 4.6));white-space:nowrap}.palette-swatches .palette-swatch{position:relative;height:2.25rem;padding:0 0 .1875rem;border:0;border-radius:.1875rem;font:inherit;font-size:.625rem;display:flex;align-items:flex-end;justify-content:center;cursor:copy;box-shadow:inset 0 0 0 1px #ffffff14}.palette-swatches.compact .palette-swatch{height:1.5rem}.palette-swatches.compact .palette-swatch span{display:none}.palette-swatches .palette-swatch:hover{outline:1px solid var(--text-color);outline-offset:1px}.palette-swatches .palette-swatch.clipped:after{content:"";position:absolute;top:0;right:0;border-style:solid;border-width:0 .5rem .5rem 0;border-color:transparent #ffb000 transparent transparent}.palette-preview{margin-top:var(--spacing)}.preview-chart{display:block;width:100%;height:auto;border-radius:.1875rem}.preview-axis{stroke:#888;stroke-width:.5}.export-note{padding:var(--spacing) var(--padding);color:#ffb000;font-family:var(--font-family-mono);font-size:var(--font-size);line-height:1.4}.export-note button{display:block;width:auto;margin-top:var(--spacing);height:var(--widget-height);padding:0 .5rem;border:0;border-radius:var(--widget-border-radius);background:var(--widget-color);color:var(--text-color);font:inherit;cursor:pointer}.export-note button:hover{background:var(--hover-color)}.diag-axis{display:flex;opacity:.5;font-size:.625rem}.diag-axis span{flex:1;text-align:center}body.mode-basic .advanced-only{display:none!important}.panel-header{display:flex;gap:var(--padding);margin:var(--padding)}.mode-switch{flex:1;display:flex;gap:2px;padding:2px;border-radius:var(--widget-border-radius);background:var(--widget-color)}.mode-switch button{flex:1;height:var(--widget-height);border:0;border-radius:calc(var(--widget-border-radius) - 1px);background:none;color:var(--text-color);font-family:var(--font-family);font-size:var(--font-size);opacity:.6;cursor:pointer}.mode-switch button:hover{opacity:1}.mode-switch button[aria-checked=true]{background:var(--hover-color);opacity:1}.lil-gui .share-button{flex:none;width:auto;display:flex;align-items:center;gap:4px;height:calc(var(--widget-height) + 4px);padding:0 8px;border:0;border-radius:var(--widget-border-radius);background:var(--widget-color);color:var(--text-color);font-family:var(--font-family);font-size:var(--font-size);white-space:nowrap;cursor:pointer}.lil-gui .share-button:hover{background:var(--hover-color)}.lil-gui .share-button svg{width:12px;height:12px}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.lil-gui .lock-toggle{flex:none;display:flex;align-items:center;justify-content:center;width:1rem;height:1rem;margin-right:.25rem;padding:0;border:0;background:none;color:var(--text-color);opacity:.25;cursor:pointer;transition:opacity 125ms ease}.lil-gui .lock-toggle svg{width:.75rem;height:.75rem}.lil-gui .lil-controller:hover .lock-toggle,.lil-gui .anchor-row:hover .lock-toggle,.lil-gui .lock-toggle:focus-visible{opacity:.6}.lil-gui .lock-toggle.locked{color:#ffb000;opacity:1}.lil-gui .lil-controller.lockable>.lil-name{min-width:calc(var(--name-width) - 1.25rem);max-width:calc(var(--name-width) - 1.25rem);overflow:hidden;text-overflow:ellipsis}.handle{background:#0000008c;border:1.5px solid rgba(255,255,255,.85);border-radius:50%;box-sizing:border-box;color:#fff;cursor:grab;display:grid;font-family:monospace;font-size:.625rem;font-weight:700;height:1.125rem;place-items:center;pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;width:1.125rem}.handle.anchor{border-radius:.25rem}.handle.hue{color:#000}.handle.grip{border-color:#fff9;cursor:pointer;font-size:.5625rem;height:1rem;width:1rem}.handle.grip.selected{border-color:#fff;box-shadow:0 0 0 2px #fff9}.handle:hover,.handle.dragging{border-color:#fff;box-shadow:0 0 0 2px #ffffff59}.handle.dragging{cursor:grabbing}.handle-value{background:#0009;border-radius:.25rem;color:#fff;display:none;font-weight:400;left:calc(100% + .375rem);padding:.0625rem .25rem;pointer-events:none;position:absolute;top:50%;transform:translateY(-50%);white-space:nowrap}.handle:hover .handle-value,.handle.dragging .handle-value{display:block}.grip-button{background:#000000b3;border:1px solid rgba(255,255,255,.6);border-radius:50%;box-sizing:border-box;color:#fff;display:none;font-size:.625rem;height:.875rem;place-items:center;position:absolute;width:.875rem}.handle.grip.selected .grip-button{display:grid}.grip-button.earlier,.grip-button.later{top:50%;transform:translateY(-50%)}.grip-button.earlier{right:calc(100% + .375rem)}.grip-button.later{left:calc(100% + .375rem)}.grip-button.remove{left:50%;top:calc(100% + .375rem);transform:translate(-50%)}.grip-button:hover:not(.disabled){background:#ffffff40;border-color:#fff}.grip-button.disabled{cursor:default;opacity:.25}.handle.grip.selected .handle-value{left:calc(100% + 1.625rem)}
