:root{--bg:#f7f7f5;--surface:#fff;--stage:#f4f5f6;--ink:#1b2227;--muted:#5b666e;--faint:#8b959c;--line:#e2e5e7;--line-strong:#c8ced3;--hover:#f1f3f4;--accent:#24557d;--accent-soft:#e5edf4;--select:#b1372d;--curve:#235283;--mode:#9aa4ab;--key-black:#c9cfd4;--error:#9b2c24;--radius:6px;--mono:ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;color:var(--ink);background:var(--bg);accent-color:var(--accent);font:14px/1.45 system-ui,-apple-system,Segoe UI,sans-serif}*{box-sizing:border-box}[hidden]{display:none!important}body{background:var(--bg);margin:0}#root{width:min(100% - 32px,1320px);margin:0 auto 16px}h1,h2,p{margin:0}button,input,select{font:inherit;color:inherit}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}button{background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--radius);cursor:pointer;min-height:30px;padding:4px 10px}button:hover:not(:disabled){background:var(--hover)}button[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}button:disabled{opacity:.45;cursor:default}button.ghost{color:var(--muted);background:0 0;border-color:#0000}button.ghost:hover:not(:disabled){background:var(--hover);color:var(--ink)}input[type=number],select{background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--radius);font-variant-numeric:tabular-nums;height:30px;padding:3px 7px}select{min-width:0;padding-right:4px}input[type=range]{width:110px;margin:0}output,.time{font-variant-numeric:tabular-nums}.segment{flex-shrink:0;display:inline-flex}.segment button{border-radius:0;margin-left:-1px}.segment button:first-child{border-radius:var(--radius) 0 0 var(--radius);margin-left:0}.segment button:last-child{border-radius:0 var(--radius) var(--radius) 0}.segment button[aria-pressed=true]{z-index:1;position:relative}.brand{grid-area:brand;justify-content:space-between;align-items:center;gap:12px;min-height:36px;padding-left:2px;display:flex}h1{letter-spacing:-.01em;font-size:19px;font-weight:650}.help-button{white-space:nowrap;flex:none}.viewer-help{border:1px solid var(--line-strong);width:min(560px,100% - 32px);max-height:calc(100dvh - 48px);color:inherit;background:var(--surface);border-radius:10px;padding:20px 22px}.viewer-help::backdrop{background:#1b222766}.help-heading{justify-content:space-between;align-items:center;margin-bottom:8px;display:flex}.help-heading h2{font-size:16px}.viewer-help dl{margin:0}.viewer-help dt{margin-top:12px;font-weight:650}.viewer-help dd{color:#333d44;margin:2px 0 0}.workspace{grid-template:"field brand""field side""response side"1fr/minmax(0,1fr) 300px;align-items:start;gap:12px 16px;padding-top:16px;display:grid}.field{grid-area:field}.side{grid-area:side;gap:12px;display:grid;position:sticky;top:16px}.response{grid-area:response}@media (width<=899px){.workspace{grid-template-rows:none;grid-template-columns:minmax(0,1fr);grid-template-areas:"brand""field""response""side";padding-top:8px}.side{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));align-items:start;position:static}}.panel{background:var(--surface);border:1px solid var(--line);border-radius:10px}.panel-head{border-bottom:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 16px;min-height:48px;padding:8px 12px;display:flex}.panel-head h2{align-items:center;gap:8px;font-size:14px;font-weight:650;display:flex}.range-tools{display:contents}.panel-tools{flex-wrap:wrap;align-items:center;gap:8px 14px;display:flex}.label{color:var(--ink);margin-bottom:10px;font-size:13px;font-weight:650}.note{color:var(--muted);align-items:center;gap:7px;margin-top:10px;font-size:12px;display:flex}.cave-gain{color:var(--muted);flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0 0;font-size:12px;display:flex}.cave-gain .clipping{color:#fff;background:var(--error);border-radius:4px;padding:1px 6px;font-weight:600}.note.error{color:var(--error)}.modes-picker button{font-variant-numeric:tabular-nums;min-width:42px;padding:4px 8px}.field .panel-head{justify-content:flex-start}.field .panel-head .panel-tools{margin-left:auto}.stage,.plot-stage,.boot-panel{position:relative}.stage{border-radius:0 0 10px 10px;overflow:hidden}.boot-panel{background:var(--stage);border-radius:10px;min-height:min(440px,65vh)}.scene{background:var(--stage);width:100%;height:clamp(320px,52vh,560px)}.scene canvas{touch-action:none;width:100%;height:100%;display:block}.overlay{position:absolute}.reset{background:#ffffffb3;font-size:12px;bottom:10px;right:10px}.legend.overlay{border-radius:var(--radius);width:168px;color:var(--muted);background:#ffffffd1;gap:3px;padding:6px 9px 5px;font-size:11px;display:grid;bottom:10px;left:10px}.legend-title{color:var(--ink)}.legend-bar{height:8px;position:relative}.legend-bar .ramp{width:auto;height:auto;position:absolute;inset:0}.legend-scale{font-variant-numeric:tabular-nums;justify-content:space-between;display:flex}.ramp{vertical-align:middle;border-radius:2px;width:90px;height:8px;display:inline-block}.gizmo{pointer-events:none;width:96px;height:96px;position:absolute;top:6px;right:8px}.gizmo svg{width:100%;height:100%}.axis-X{--axis:#c04153}.axis-Y{--axis:#54802d}.axis-Z{--axis:#3664b1}.gizmo line{stroke:var(--axis);stroke-width:2px}.gizmo button{pointer-events:auto;background:var(--axis);color:#fff;border:1.5px solid #fff;border-radius:50%;width:22px;height:22px;min-height:0;padding:0;font-size:11px;font-weight:700;line-height:1;position:absolute;transform:translate(-50%,-50%)}.gizmo button:hover:not(:disabled){background:var(--axis);filter:brightness(.88)}.gizmo button.axis-negative{border-color:var(--axis);background:#fff;width:14px;height:14px}.gizmo button.axis-negative:hover:not(:disabled){background:var(--axis);filter:none}.panel-status{pointer-events:none;background:#f7f7f580;place-items:center;padding:14px;display:grid;position:absolute;inset:0}.panel-status.panel-notice{background:0 0;place-items:start center;padding-top:12px}.status-box{text-align:center;background:var(--surface);border:1px solid var(--line-strong);border-radius:8px;justify-items:center;gap:6px;max-width:min(100%,440px);padding:10px 14px;display:grid}.status-notice{padding:5px 9px;font-size:12px}.status-line{align-items:center;gap:9px;font-weight:600;display:flex}.status-box small{color:var(--muted)}.status-box button{pointer-events:auto}.spinner{border:2px solid var(--line-strong);border-top-color:var(--accent);border-radius:50%;flex:0 0 16px;width:16px;height:16px;animation:.75s linear infinite spin}.spinner.small{border-width:1.5px;flex-basis:12px;width:12px;height:12px}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.spinner{animation:none}}.chip{color:var(--muted);font-variant-numeric:tabular-nums;font-size:12px}.player{gap:8px;display:grid}.player select{width:100%}.transport{align-items:center;gap:10px;display:flex}.play{background:var(--accent);border-color:var(--accent);color:#fff;border-radius:50%;flex:none;place-items:center;width:34px;height:34px;min-height:0;padding:0;display:grid}.play:hover:not(:disabled){background:#1c4566}.play svg{fill:currentColor;width:14px;height:14px}.scrub{flex:1;width:auto;min-width:0}.time{color:var(--muted);white-space:nowrap;font-size:12px}.player .note{min-height:18px;margin-top:0}.advanced summary{cursor:pointer;margin:0;list-style-position:inside}.advanced[open] summary{margin-bottom:12px}.row{color:var(--muted);grid-template-columns:1fr 110px 48px;align-items:center;gap:8px;margin-bottom:10px;display:grid}.row output{text-align:right;color:var(--ink)}.coordinates{border-top:1px solid var(--line);gap:10px;margin-top:4px;padding-top:12px;display:grid}.coordinates fieldset{border:0;grid-template-columns:repeat(3,1fr);gap:6px;min-width:0;margin:0;padding:0;display:grid}.coordinates legend{color:var(--muted);margin-bottom:6px;padding:0;font-size:12px}.coordinates fieldset label{color:var(--muted);gap:2px;font-size:11px;display:grid}.coordinates fieldset input{width:100%}.coordinates .check,.coordinates .inline{color:var(--muted);align-items:center;gap:6px;display:flex}.coordinates .inline input{width:72px}.coordinates button{justify-self:start}.plot-stage{padding:6px 4px 0}.spectrum{touch-action:pan-y;-webkit-user-select:none;user-select:none;width:100%;display:block}.spectrum text{fill:var(--muted);font-size:11px}.spectrum .grid line{stroke:var(--line)}.spectrum .curve{fill:none;stroke:var(--curve);stroke-width:1.5px;stroke-linejoin:round}.spectrum .modes.minor{opacity:.22}.spectrum .modes.minor line{stroke:var(--mode);stroke-width:1px}.spectrum .modes.minor circle{fill:var(--mode)}.spectrum .modes.main line{stroke:var(--muted);stroke-width:1.25px}.spectrum .modes.main circle{fill:var(--surface);stroke:var(--muted);stroke-width:1.5px}.spectrum .modes.main .target line,.spectrum .modes.main .target circle{stroke:var(--ink)}.spectrum .modes.main .selected circle{fill:var(--select);stroke:var(--select)}.spectrum .keys rect{stroke:var(--line-strong);stroke-width:.6px}.spectrum .keys rect.white{fill:var(--surface)}.spectrum .keys rect.black{fill:var(--key-black)}.spectrum .keys text{pointer-events:none}.spectrum .grid .full-scale line{stroke:var(--line-strong)}.spectrum .play-cursor{stroke:var(--ink);stroke-width:1.25px}.spectrum .hover line{stroke:var(--faint);stroke-dasharray:2 3}.spectrum .hover text{fill:var(--ink)}.spectrum .field-mark line{stroke:var(--select);stroke-width:1.5px}.spectrum .field-mark path{fill:var(--select)}.spectrum .field-mark text{fill:var(--select);font-weight:600}.spectrum .field-mark.pending line{stroke-dasharray:4 3}.spectrum .tone-mark{stroke:var(--accent);stroke-width:2.5px}.spectrogram{width:100%;height:206px;display:block}.key{flex-wrap:wrap;align-items:center;gap:6px 14px;display:flex}.window,.scale{color:var(--muted);align-items:center;gap:6px;font-size:12px;display:flex}.window input{font-variant-numeric:tabular-nums;width:auto;height:30px}.scale .ramp{width:70px}.plot-stage{padding-bottom:6px}@media (width<=560px){#root{width:calc(100% - 20px)}.scene{height:320px}.panel-head{padding:8px 10px}.legend.overlay{width:140px}}.trail-head{justify-content:space-between;align-items:center;margin-bottom:8px;display:flex}.trail-head .label{margin:0}button.icon{min-width:30px;padding:0 8px;font-size:17px;line-height:1}button.small{min-height:26px;padding:2px 8px;font-size:12px}.stops{gap:3px;margin:0;padding:0;list-style:none;display:grid}.stops .stop{text-align:left;border-color:var(--line);justify-content:space-between;align-items:center;gap:8px;width:100%;min-height:32px;padding:3px 10px;display:flex}.stops button[aria-current=true]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}.stops button[aria-current=true] .chip{color:var(--accent)}.forget{border-top:1px solid var(--line);color:var(--muted);justify-content:space-between;align-items:center;gap:8px;margin-top:12px;padding-top:12px;font-size:12px;display:flex}.ghost-key{color:var(--faint);font-size:12px;font-weight:400}.spectrum .ghost{fill:none;stroke:var(--curve);stroke-width:1.25px;opacity:.28;stroke-linejoin:round}.scene:focus{outline:none}.scene:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}@media (width>=900px){html,body{height:100%}#root{width:100%;height:100%;margin:0}.workspace{grid-template:"field brand""field side"minmax(0,1fr)"response side"/minmax(0,1fr) 300px;align-items:stretch;gap:12px 16px;height:max(100dvh,560px);padding:12px 16px 16px}.field{flex-direction:column;min-height:0;display:flex}.field .stage{flex:1;min-height:0}.field .scene{height:100%}.side{align-content:start;min-height:0;padding-bottom:2px;position:static;overflow-y:auto}.boot-panel{height:calc(100dvh - 80px)}}.gain{color:var(--muted);align-items:center;gap:8px;margin-left:24px;font-size:12px;display:flex}.gain input[type=range]{width:140px}.gain output{text-align:right;font-variant-numeric:tabular-nums;min-width:46px;color:var(--ink)}.gain button{white-space:nowrap}.brand-tools{align-items:center;gap:2px;display:flex}.copy-link{min-width:86px}.stops .chip{font-size:11px}.copy-link{position:relative}.copy-popover{z-index:5;background:var(--surface);border:1px solid var(--line-strong);border-radius:8px;gap:4px;width:340px;padding:8px;display:grid;position:absolute;top:calc(100% + 4px);right:0}.copy-popover input{border:1px solid var(--line-strong);border-radius:var(--radius);width:100%;height:30px;padding:3px 7px;font-size:12px}.copy-popover small{color:var(--muted)}.gizmo-caption{text-align:center;color:var(--muted);font-size:10px;position:absolute;bottom:-10px;left:0;right:0}.mode-select{height:32px;color:var(--select);min-width:190px;font-weight:600}.mode-label{font-weight:650}.stops li{gap:3px;display:flex}.stops .stop{flex:1}.stops .remove{min-width:26px;color:var(--faint);visibility:hidden;background:0 0;border-color:#0000;padding:0}.stops li:hover .remove,.stops .remove:focus-visible{visibility:visible}.stops .remove:hover{color:var(--error);background:var(--hover)}.legend.overlay{width:200px}.legend-track{touch-action:none;margin:-3px 0;padding:6px 0;display:block;position:relative}.legend.overlay.interactive .legend-track{cursor:pointer}.legend-track .legend-bar{display:block}.legend-knob{background:var(--surface);border:2px solid var(--ink);cursor:grab;border-radius:50%;width:14px;height:14px;margin:-7px 0 0 -7px;transition:transform .1s;position:absolute;top:50%;box-shadow:0 1px 2px #00000040}.legend-track:hover .legend-knob,.legend-track:active .legend-knob{transform:scale(1.15)}.legend-track:active .legend-knob{cursor:grabbing}.legend-track:focus-visible{outline:none}.legend-track:focus-visible .legend-knob{outline:2px solid var(--accent);outline-offset:2px}.legend-scale{position:relative}.legend-value{color:var(--ink);background:#ffffffe6;padding:0 2px;font-weight:600;position:absolute;transform:translate(-50%)}.legend.overlay{-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.legend.overlay *{-webkit-user-drag:none}.stops .stop span{white-space:nowrap}.stops .stop .chip{text-overflow:ellipsis;min-width:0;overflow:hidden}@media (width>=900px){.side{scrollbar-gutter:stable;padding-right:2px;overflow:hidden auto}}.curve-key{color:var(--muted);gap:14px;margin-right:auto;font-size:12px;display:flex}.curve-key span{white-space:nowrap;align-items:center;gap:6px;display:inline-flex}.swatch{border-top:2px solid var(--curve);width:18px;height:0;display:inline-block}.swatch.ghost{opacity:.35}.response .panel-head h2{margin-right:4px}.spectrum:focus:not(:focus-visible),.legend-track:focus:not(:focus-visible){outline:none}.spectrum .modes.main .target circle{fill:var(--accent-soft);stroke:var(--accent);stroke-width:2px}.spectrum .modes.main .target line{stroke:var(--accent)}.stops li.removed{border:1px dashed var(--line-strong);border-radius:var(--radius);min-height:32px;color:var(--muted);justify-content:space-between;align-items:center;padding:0 4px 0 10px;font-size:13px}.coordinates .check{order:-1}.spectrum .keys rect.hover{fill:var(--accent-soft);stroke:var(--accent)}.spectrum .key-readout{fill:var(--ink)}.response{container-type:inline-size}.response .panel-head{flex-wrap:nowrap}.response .panel-tools{flex-wrap:nowrap;flex:none}.curve-key{min-width:0;overflow:hidden}.curve-key span{text-overflow:ellipsis;min-width:0;overflow:hidden}@container (width<=960px){.response .panel-head{flex-wrap:wrap}.response .panel-tools{flex-wrap:wrap;justify-content:flex-end;width:100%}}@media (width>=900px){.side{flex-direction:column;display:flex}.side>*{flex:none}.side>.trail{flex-direction:column;flex:0 auto;min-height:120px;display:flex}.trail .stops{flex:auto;align-content:start;min-height:0;overflow-y:auto}}.side .panel{padding:12px}.stops .stop{min-height:28px;padding:2px 8px;font-size:13px}.stops li.removed{min-height:28px}.temperature{color:var(--muted);flex-wrap:wrap;gap:6px 14px;margin-bottom:10px;display:flex}.temperature .inline{align-items:center;gap:6px;display:flex}.temperature input{width:80px}.trail .stops{overflow-x:hidden}input[type=number]{appearance:textfield}input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.advanced input[type=number]{appearance:auto}.advanced input[type=number]::-webkit-inner-spin-button{-webkit-appearance:inner-spin-button}.settings{color:var(--muted);grid-template-columns:max-content 1fr;align-items:center;gap:8px 12px;display:grid}.settings .setting{color:var(--ink);align-items:center;gap:8px;display:flex}.settings input[type=range]{flex:1;min-width:0}.settings .unit,.settings output{color:var(--muted);min-width:34px}.trail-head{gap:6px}.trail-head h2{margin-right:auto}.reset-points svg{fill:currentColor;width:15px;height:15px;display:block}.confirm{border:1px solid var(--line-strong);max-width:340px;color:inherit;border-radius:10px;padding:16px 18px}.confirm::backdrop{background:#1b222766}.confirm p{margin:0 0 14px}.confirm-actions{justify-content:flex-end;gap:8px;display:flex}button.danger{background:var(--error);border-color:var(--error);color:#fff}.settings>label,.settings>.setting-label{white-space:nowrap}.note-play svg{fill:currentColor;width:12px;height:12px;display:block}.settings input[type=number]{width:84px}.settings input[type=range]{flex:auto;width:auto;min-width:0}.settings .unit{min-width:0}.settings output{white-space:nowrap;min-width:0}.settings .setting{min-width:0}
