[hidden]{display:none!important}
/* Keep the entire instrument, including its help and status text, selection-free. */
#app,#app *{
  -webkit-user-select:none;
  user-select:none;
  -webkit-touch-callout:none;
}
:root{color-scheme:dark;--bg:#090611;--panel:#100b1a;--ink:#f1e9fb;--muted:#b5a7c8;--line:#2b203c;--violet:#b998ff;--magenta:#ed83ff;--cyan:#7fece1;--gold:#f1c384;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}button,input,select{font:inherit}button,select{cursor:pointer}button{color:inherit}button:disabled{cursor:wait;opacity:.55}button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible,canvas:focus-visible{outline:2px solid var(--cyan);outline-offset:4px}button{touch-action:manipulation}button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}button span{white-space:nowrap}
.shell{max-width:1800px;margin:auto;padding:0 max(24px,env(safe-area-inset-right)) 22px max(24px,env(safe-area-inset-left))}.header{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:99px;border-bottom:1px solid var(--line)}.identity{display:flex;align-items:center;gap:14px}.sigil{width:38px;height:38px;flex:none;color:var(--cyan)}.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.2em;color:var(--muted);margin-bottom:4px}.brand{font-size:26px;letter-spacing:.12em;font-weight:650;line-height:1.15}.brand em{font-style:normal;font-weight:300;color:var(--violet)}.header-actions{display:flex;align-items:center;gap:10px}.sound-status{color:var(--muted);font-size:14px;min-width:99px}.sound-status::before{content:'';display:inline-block;width:7px;height:7px;background:#655477;margin-right:8px;border-radius:50%}.sound-status.live::before{background:var(--cyan);box-shadow:0 0 12px #7fece166}.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:7px;background:#171022;font-size:14px;line-height:1.3;transition:background .2s,border-color .2s}.button:hover{background:#251931;border-color:#5b426c}.button.primary{background:var(--cyan);color:#0a2020;border-color:var(--cyan);font-weight:650;min-width:147px}.button.primary:hover{background:#adfff5}.button.primary.playing{background:#1b2d30;color:var(--cyan);border-color:#36585a}.button.active{border-color:var(--violet);color:var(--violet)}.button.icon-only{width:44px;padding:10px}.button.quiet{background:transparent}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:0;padding-top:24px}.visual-column{min-width:0}.stage{position:relative;min-height:400px;height:clamp(420px,60vh,760px);isolation:isolate;background:#090611;border:1px solid var(--line);border-radius:10px;overflow:hidden}.stage canvas{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair;outline-offset:-5px}.stage-top{position:absolute;top:20px;left:22px;right:22px;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;pointer-events:none}.stage-top .meta{font-size:12px;color:#c3b0d5;text-transform:uppercase;letter-spacing:.16em}.stage-top h1{font:400 clamp(23px,2.5vw,36px) Georgia,serif;letter-spacing:-.02em;margin:7px 0 0;color:#f1e4ff}.stage-tools{display:flex;gap:7px;pointer-events:auto}.stage-tools .button{background:#100b1bd9;backdrop-filter:blur(12px)}.stage-bottom{position:absolute;bottom:18px;left:22px;right:22px;display:flex;align-items:end;justify-content:space-between;gap:16px;pointer-events:none}.canvas-hint{color:#d6c5e9;font-size:14px;line-height:1.5;max-width:350px;text-shadow:0 1px 10px #090611}.canvas-hint small{display:block;color:var(--muted);font-size:12px;margin-top:2px}.live-note{text-align:right;color:var(--gold);font-size:24px;font-family:Georgia,serif;min-width:80px}.live-note small{font-size:12px;display:block;letter-spacing:.05em;color:var(--muted);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;margin-top:3px}.touch-halo{pointer-events:none;position:absolute;left:0;top:0;width:60px;height:60px;margin:-30px 0 0 -30px;border:1px solid #7fece177;border-radius:50%;box-shadow:0 0 25px #7fece122;opacity:0;transition:opacity .2s}.touch-halo.show{opacity:1}.error-overlay{position:absolute;inset:0;display:grid;place-content:center;text-align:center;background:#12091de8;padding:30px;gap:12px;font-size:16px}.error-overlay[hidden]{display:none}.error-overlay strong{font-size:23px}.error-overlay p{max-width:450px;color:var(--muted);line-height:1.6;margin:0}
.panel{padding:0 0 0 25px}.panel-section{padding:22px 0;border-bottom:1px solid var(--line)}.panel-section:first-child{padding-top:0}.panel-section:last-child{border:0;padding-bottom:0}.section-caption{font-size:12px;text-transform:uppercase;color:var(--muted);letter-spacing:.16em;margin:0 0 13px}.preset-select{width:100%;color:var(--ink);font-size:15px;background:#191123;border:1px solid #423050;border-radius:6px;padding:13px 9px;min-height:46px}.seed-row{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:12px}.seed-label{font-size:12px;color:var(--muted)}.seed-label output{color:var(--cyan);font-variant-numeric:tabular-nums}.seed-row .button{min-height:34px;padding:5px 8px;font-size:12px}.control{margin-bottom:20px}.control:last-child{margin-bottom:0}.control-head{display:flex;align-items:center;justify-content:space-between;font-size:14px;gap:10px;margin-bottom:12px}.control output{color:var(--cyan);font-size:14px;font-variant-numeric:tabular-nums}.control input[type=range]{display:block;width:100%;margin:0;height:22px;appearance:none;-webkit-appearance:none;background:transparent;touch-action:pan-y}.control input[type=range]::-webkit-slider-runnable-track{height:3px;border-radius:2px;background:linear-gradient(to right,var(--violet) 0%,var(--violet) var(--fill),#352341 var(--fill),#352341 100%)}.control input[type=range]::-moz-range-track{height:3px;background:#352341}.control input[type=range]::-moz-range-progress{height:3px;background:var(--violet)}.control input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;background:#eee0ff;border:4px solid #271837;width:17px;height:17px;border-radius:50%;margin-top:-7px;box-shadow:0 0 0 1px #b998ff}.control input[type=range]::-moz-range-thumb{background:#eee0ff;border:4px solid #271837;width:10px;height:10px;border-radius:50%;box-shadow:0 0 0 1px #b998ff}.control small{display:block;color:var(--muted);font-size:12px;line-height:1.45;margin-top:5px}.entanglement{padding:13px;border:1px solid #443055;background:#21132c55;border-radius:6px;margin:0 -1px 18px}.entanglement .control{margin-bottom:0}.panel-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.panel-actions .button{padding:10px 8px;font-size:13px}
.sequencer{padding:21px 0 0}.sequence-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}.sequence-head .section-caption{margin:0}.sequence-head .description{font-size:12px;color:var(--muted)}.steps{display:grid;grid-template-columns:repeat(16,minmax(0,1fr));gap:6px}.step{position:relative;border:1px solid #352440;background:#130c1d;color:#a591b4;border-radius:5px;height:44px;font-size:12px;min-width:0;padding:0}.step.on{background:#382048;color:#e8c0ff;border-color:#714286}.step.playhead{box-shadow:inset 0 -3px 0 var(--cyan);color:var(--cyan);border-color:#7fece188}.step:hover{border-color:var(--cyan)}.step:nth-child(4n+1){border-left-width:3px}.sequence-footer{display:flex;justify-content:space-between;gap:12px;margin-top:12px;font-size:12px;color:var(--muted)}.sequence-footer b{color:var(--cyan);font-weight:400}.footer{margin-top:23px;padding-top:19px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:26px;color:var(--muted);font-size:13px;line-height:1.6}.guide{max-width:750px}.guide summary{color:var(--ink);font-size:14px;cursor:pointer;min-height:35px}.guide p{margin:9px 0}.guide strong{color:#ddc9ef}.footer-credit{text-align:right;min-width:160px}.footer-credit span{display:block;color:var(--violet)}.toast{position:fixed;bottom:max(22px,env(safe-area-inset-bottom));left:50%;transform:translate(-50%,20px);padding:13px 18px;background:#2a1c36;border:1px solid #75518d;box-shadow:0 8px 50px #0008;border-radius:8px;color:#f9efff;font-size:14px;max-width:min(90vw,500px);text-align:center;opacity:0;transition:opacity .2s,transform .2s;pointer-events:none;z-index:100}.toast.visible{opacity:1;transform:translate(-50%,0)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1400px){.workspace{grid-template-columns:minmax(0,1fr) 310px}.panel{padding-left:30px}.stage{height:65vh;max-height:840px}.shell{padding-left:38px;padding-right:38px}}
@media(max-width:1000px){.shell{padding-left:18px;padding-right:18px}.workspace{grid-template-columns:minmax(0,1fr) 255px}.panel{padding-left:19px}.header{min-height:85px}.brand{font-size:23px}.stage{height:540px}.stage-top{top:17px;left:17px;right:17px}.stage-bottom{left:17px;right:17px}.stage-tools{flex-direction:column}.canvas-hint{max-width:210px}.steps{gap:4px}.step{height:42px}.sound-status{display:none}}
@media(max-width:740px){.shell{padding-left:14px;padding-right:14px}.header{min-height:84px;gap:12px}.brand{font-size:19px;letter-spacing:.08em}.eyebrow{font-size:12px;letter-spacing:.12em}.sigil{width:30px;height:30px}.identity{gap:8px}.header-actions{gap:7px}.header-actions .primary{min-width:116px;padding:10px}.workspace{display:flex;flex-direction:column;padding-top:15px}.stage{height:58vh;min-height:390px;max-height:630px}.stage-top h1{font-size:27px}.stage-tools{flex-direction:row}.stage-bottom{bottom:14px}.canvas-hint{font-size:13px;max-width:230px}.canvas-hint small{font-size:12px}.panel{padding:25px 0 0;display:grid;grid-template-columns:1fr 1fr;column-gap:25px}.panel-section{padding-top:0;border-bottom:0}.panel-section:first-child{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:10px 25px;border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:22px}.panel-section:first-child .section-caption{grid-column:1/-1;margin:0}.seed-row{margin:0}.panel-section:last-child{grid-column:1/-1;display:block}.steps{gap:3px}.step{font-size:12px;height:40px}.sequence-footer{font-size:12px}.footer{margin-top:18px}.footer-credit{display:none}}
@media(max-width:420px){.brand{font-size:17px}.identity .sigil{display:none}.eyebrow{font-size:12px}.header-actions .primary{min-width:110px}.panel{column-gap:20px}.stage-top h1{font-size:23px}.stage-top .meta{font-size:12px}.stage-tools .button{width:38px;min-height:38px;padding:8px}.canvas-hint{max-width:195px}.steps{gap:2px}.sequence-head .description{max-width:130px;text-align:right}.sequence-footer span:last-child{max-width:165px;text-align:right}.panel-section:first-child{gap:10px 15px}.seed-row{flex-wrap:wrap}.panel-actions .button{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

@media(max-width:480px){.steps{grid-template-columns:repeat(8,minmax(0,1fr));gap:5px}.step{height:44px}}

.gesture-response{margin:0 0 20px;padding:10px 12px;border:1px solid var(--line);border-radius:6px}.gesture-response summary{font-size:14px;min-height:28px;cursor:pointer;color:var(--violet)}.gesture-response[open] summary{margin-bottom:14px}

.within-world .stage-tools{flex-wrap:wrap;justify-content:flex-end;max-width:220px}
.within-world .stage-top>div:first-child{min-width:0}
.within-world .stage-top .meta{line-height:1.5}
.within-world .stage-top,.within-world .stage-bottom{text-shadow:0 2px 8px #000,0 0 20px #000}
.space-view{overflow:hidden}
.space-view .header,.space-view .panel,.space-view .sequencer,.space-view .footer{display:none}
.space-view .stage{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;min-height:0;max-height:none;border:0;border-radius:0;z-index:20}
.space-view .stage-top{top:max(16px,env(safe-area-inset-top));left:max(18px,env(safe-area-inset-left));right:max(18px,env(safe-area-inset-right))}
.space-view .stage-bottom{bottom:max(22px,env(safe-area-inset-bottom));left:max(18px,env(safe-area-inset-left));right:max(18px,env(safe-area-inset-right))}
@media(max-width:740px){.within-world .stage-tools{max-width:150px;gap:5px}.within-world .stage-top h1{font-size:23px}.within-world .stage-top .meta{font-size:12px;letter-spacing:.06em}.within-world #fillView{padding:8px;font-size:14px}}

.select-label{display:block;margin-bottom:10px;font-size:14px;color:var(--ink)}
.particle-hint{font-size:14px;color:var(--muted);line-height:1.5;margin:14px 0 0}
.particle-panel .gesture-response{margin-bottom:20px}
@media(max-width:740px){.particle-panel{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 25px;border-top:1px solid var(--line);padding-top:22px}.particle-panel>.section-caption,.particle-panel>.particle-hint{grid-column:1/-1}.particle-panel .control{min-width:0}.particle-panel .preset-select{max-width:100%}}
@media(max-width:420px){.particle-panel{column-gap:18px}}
@media(min-width:741px){.visual-column{position:sticky;top:16px;align-self:start}.stage{max-height:calc(100dvh - 170px);min-height:360px}}
