:root{--ink:#23312e;--paper:#f5f8f7;--line:#dce5e2;--muted:#667c76;--accent:#72dec2;--focus:#18745f;--dark:#171e20;--create:#dcf1ea;--modify:#e7e1f3;--combine:#dcebf3;font:13px 'Segoe UI',Arial,sans-serif;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #cfddda;border-radius:7px;background:#f7fbfa;color:inherit;padding:8px 11px}button:hover{filter:brightness(.96)}button:disabled{opacity:.35;cursor:default}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--focus);outline-offset:3px}.primary{background:var(--accent);border-color:var(--accent)}.dark{background:var(--dark);color:white;border-color:var(--dark)}header{height:77px;display:flex;align-items:center;gap:26px;padding:0 25px;border-bottom:1px solid var(--line);background:#fafcfc}.brand{font-size:31px;letter-spacing:-2px;font-weight:650;min-width:245px}.brand>span{color:#18745f}.brand small{font:9px Consolas,monospace;letter-spacing:2px;margin-left:15px;color:#799891}.header-actions{display:flex;gap:8px;margin-left:auto}.muted{color:var(--muted)}main{display:grid;grid-template-columns:295px minmax(400px,1fr) 280px;height:calc(100dvh - 108px);min-height:650px}.eyebrow{font:9px Consolas,monospace;letter-spacing:1.7px;color:var(--muted);line-height:1.7}.scene-panel{background:var(--dark);color:#dee8e6;padding:25px 19px;overflow:auto}.scene-panel>.eyebrow{display:flex;justify-content:space-between}.scene-panel #connection{color:var(--accent);letter-spacing:.5px;font-size:8px}.scene-panel h1{font-size:22px;font-weight:400;letter-spacing:-.7px;margin:22px 0 5px}.caption{font-size:11px;color:#79928c;margin:0}#stage{display:block;width:100%;margin-top:10px;touch-action:none;overflow:visible}#stage circle{cursor:grab;stroke:#2a3936;stroke-width:3;transition:r .15s}#stage circle.active{stroke:#bcdfd7;stroke-width:2}#stage text{fill:#80a199;font:8px Consolas,monospace;pointer-events:none}.stage-axis{display:flex;justify-content:space-between;font:8px Consolas,monospace;color:#617f78}.section-line{display:flex;justify-content:space-between;align-items:center;color:#8aa49e;font:9px Consolas,monospace;margin:25px 0 10px;letter-spacing:1px}.scene-panel button{background:#25312e;border-color:#324943;color:#bfd2ce;font-size:10px}#fixtures{display:grid;grid-template-columns:1fr 1fr;gap:5px}#fixtures button{font-size:10px;text-align:left;padding:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#fixtures button.active{background:#2e423d;border-color:#628d83;color:#d5ebe6}.scene-form{margin-top:20px;border-top:1px solid #2f403c;padding-top:15px}label{display:block;font-size:10px;color:#748783;margin:10px 0}input,select,textarea{display:block;width:100%;border:1px solid #d3e1de;background:#fffefa;color:var(--ink);border-radius:5px;padding:8px;margin-top:5px}.scene-panel input,.scene-panel select{background:#222e2b;border-color:#324943;color:#d6e2df}.coordinate-row{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.check{display:flex;align-items:center;gap:8px}.check input{width:auto;margin:0}.output-card{border-top:1px solid #2f403c;margin-top:22px;padding-top:20px}.output-card p{font:9px Consolas,monospace;color:#83a49c;word-break:break-word}.blackout{margin-top:10px;width:100%;letter-spacing:1px}.blackout.active{background:#9c503c;color:#fff}.workspace{display:flex;flex-direction:column;min-width:0;border-right:1px solid var(--line)}.workspace-top{height:88px;padding:20px 25px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:10px}.workspace-top h2{font-size:18px;font-weight:450;margin:5px 0}.workspace-top>div:last-child{display:flex;gap:7px}.workspace-top button{font-size:10px}.layer-bar{height:48px;display:flex;align-items:center;border-bottom:1px solid var(--line);padding:0 22px;gap:10px}#layers{display:flex;gap:4px;margin-right:auto}#layers button{border:0;font-size:10px;padding:9px 12px;background:transparent}#layers button.active{background:#dbede9;color:#216852}#pause{font-size:10px;border:0;background:transparent}#clock{font:10px Consolas,monospace;color:#648079}#canvas{position:relative;flex:1;overflow:hidden;background-image:radial-gradient(#aac2bc88 .7px,transparent .7px);background-size:16px 16px;touch-action:none}.canvas-label{position:absolute;top:23px;left:25px;font:8px Consolas,monospace;letter-spacing:1.3px;color:#9daeaa;pointer-events:none}#world{position:absolute;transform-origin:0 0}.block{position:absolute;border-radius:12px;background:var(--create);border:1px solid #8fb2aa;cursor:pointer;padding:14px 15px;box-shadow:0 4px 12px #2d413c0a;transition:left .2s,top .2s,width .2s}.block.modify{background:var(--modify);border-color:#b7a7d1}.block.combine{background:var(--combine);border-color:#95b6ae}.block.extension{border-style:dashed}.block.selected{outline:2px solid var(--focus);outline-offset:3px}.block::after{content:'';position:absolute;bottom:-9px;left:calc(50% - 13px);width:26px;height:12px;border-radius:0 0 8px 8px;background:inherit;border:1px solid inherit;z-index:1}.block .kind{font:8px Consolas,monospace;letter-spacing:1.4px;color:#6b837d;display:block}.block strong{font-size:13px;font-weight:550;display:block;margin:5px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.node-properties{font:9px Consolas,monospace;color:#5e7872;margin-top:7px;max-height:38px;overflow:hidden}.node-meter{position:absolute;bottom:14px;left:14px;right:55px;height:3px;background:#2e433e18;border-radius:3px}.node-meter i{display:block;height:3px;background:#238069;border-radius:3px}.node-value{position:absolute;bottom:8px;right:12px;font:9px Consolas,monospace}.fold{position:absolute;right:7px;top:6px;padding:1px 4px;background:transparent;border:0;font-size:12px}.port{position:absolute;top:-9px;background:#ddeeea;border-radius:7px;border:1px solid #85aba2;width:18px;height:18px;padding:0;font-size:12px}.connector{position:absolute;background:#9ab6af;width:1px;pointer-events:none}.canvas-tools{position:absolute;bottom:18px;left:22px;display:flex;align-items:center;gap:8px;background:#f6fbfae8;border:1px solid var(--line);padding:5px;border-radius:8px}.canvas-tools button{padding:5px 9px;border:0;background:transparent}.canvas-tools span{font:10px Consolas,monospace}.far .block strong,.far .node-properties,.far .port{display:none}.medium .node-properties{display:none}#empty{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);text-align:center;color:#7d948f}#empty h2{font-size:26px;font-weight:400}.telemetry{height:100px;border-top:1px solid var(--line);padding:15px 24px;display:flex;gap:25px;align-items:center}.telemetry>div:first-child{flex:1}#channels{display:flex;gap:3px;height:29px;align-items:end;margin-top:8px}#channels i{background:#329d82;width:7px;min-height:2px;border-radius:2px}#performance{font:9px Consolas,monospace;color:#799790;max-width:140px;line-height:1.8}.inspector{padding:24px 20px;overflow:auto;display:flex;flex-direction:column;background:#f6fbfa}.inspector h2{font-size:21px;font-weight:450;margin:20px 0 6px;overflow-wrap:anywhere}.inspector .key{font:9px Consolas,monospace;color:#8da49f;overflow-wrap:anywhere}.inspector label{font-size:11px}.inspector .row{display:flex;align-items:center;gap:5px}.inspector .row input{min-width:0}.driver-btn{padding:7px;margin-top:5px}.driver-btn.active{background:#e9e2f5}.inspector .actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:25px}.inspector .actions button{font-size:10px}.danger{color:#a16a56;border-color:#dbc7bd}.help{margin-top:auto;padding-top:35px;font-size:10px;line-height:1.9;color:#8fa39e}.help strong{font-weight:500;color:#5d837a}footer{height:31px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 20px;font:9px Consolas,monospace;color:#76938c;background:#f8fbfb}#status{max-width:85%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}dialog{border:1px solid var(--line);border-radius:12px;padding:28px;max-width:660px;width:90vw;background:var(--paper);color:var(--ink);box-shadow:0 25px 80px #1b272430}dialog::backdrop{background:#19232166;backdrop-filter:blur(3px)}dialog h2{font-size:29px;font-weight:400;letter-spacing:-1px}dialog .close{position:absolute;right:15px;top:15px;border:0;background:transparent;font-size:20px}dialog p{font-size:11px;line-height:1.8;color:#76928b}#catalog{max-height:50vh;overflow:auto;margin-top:15px;display:grid;gap:5px}#catalog button{display:flex;justify-content:space-between;text-align:left;font-size:12px;padding:11px}#catalog small{color:#80a199}textarea{font:12px/1.6 Consolas,monospace;min-height:340px;resize:vertical;margin:20px 0}#yaml-error{color:#ae6752}body.pending header{border-bottom-color:var(--accent)}#world.dragging .block{transition:none}@media(prefers-reduced-motion:reduce){*{transition:none!important}}@media(max-width:1100px){main{grid-template-columns:240px minmax(350px,1fr) 235px}.brand{min-width:190px}.workspace-top{padding:15px}.workspace-top button{padding:7px}.scene-panel{padding:20px 14px}}@media(max-width:850px){main{height:auto;grid-template-columns:220px minmax(350px,1fr)}.inspector{grid-column:1/-1;min-height:300px}.workspace{height:760px}.header-actions{gap:4px}.brand{min-width:125px;font-size:25px}.brand small{display:none}header{padding:0 12px;gap:12px}.header-actions button{font-size:10px;padding:7px}header .muted{display:none}}@media(max-width:600px){main{display:flex;flex-direction:column}.scene-panel{max-height:500px}#stage{height:200px}#fixtures{grid-template-columns:repeat(4,1fr)}.workspace{height:650px;min-height:650px}.header-actions #connect{display:none}.workspace-top{gap:5px}.workspace-top h2{font-size:14px}.eyebrow{letter-spacing:.7px}.scene-form .coordinate-row{max-width:300px}}

/* Schéma accent #72DEC2, sampled from Main/gamma/Assets/Logos/scenic-tools-schema.ico. Dark studio palette. Theme selection is client-only and never edits the project. */
:root[data-theme=dark]{--focus:var(--accent);--ink:#e3ece9;--paper:#14191b;--line:#354244;--muted:#a2b6b0;--dark:#101517;--create:#253f38;--modify:#383244;--combine:#293e4b;--error:#e0a58c;color-scheme:dark}
[data-theme=dark] header,[data-theme=dark] footer{background:#1c2427}
[data-theme=dark] .inspector{background:#192124}
[data-theme=dark] button{background:#263235;border-color:#455957;color:#d8e4e1}
[data-theme=dark] button.primary,[data-theme=dark] button.dark{background:var(--accent);border-color:var(--accent);color:#102b24}
[data-theme=dark] #theme-toggle{background:#24483e;border-color:#4b9f89;color:#b3efde}
[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] textarea{background:#101719;border-color:#3d5350;color:#e2eeea}
[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#96aaa4}
[data-theme=dark] label,[data-theme=dark] .caption,[data-theme=dark] .help,[data-theme=dark] dialog p{color:#a9bab5}
[data-theme=dark] .help strong,[data-theme=dark] #performance,[data-theme=dark] #clock{color:#b7cfc7}
[data-theme=dark] .scene-panel{background:#111719}
[data-theme=dark] .scene-panel input,[data-theme=dark] .scene-panel select{background:#1d2a2c}
[data-theme=dark] #fixtures button.active{background:#25493e;border-color:#65bea6;color:#e3faf3}
[data-theme=dark] #layers button{background:transparent;color:#a8bfb7}
[data-theme=dark] #layers button.active{background:#25463c;color:#c0f1e2}
[data-theme=dark] #pause{background:transparent}
[data-theme=dark] #canvas{background-color:#14191b;background-image:radial-gradient(#6c8e8466 .7px,transparent .7px)}
[data-theme=dark] .canvas-label{color:#859e96}
[data-theme=dark] .canvas-tools{background:#202c2eeb;border-color:#425955}
[data-theme=dark] .canvas-tools button{background:transparent}
[data-theme=dark] .block{border-color:#558e7d;box-shadow:0 4px 12px #0002}
[data-theme=dark] .block.modify{border-color:#9582b1}
[data-theme=dark] .block.combine{border-color:#628ca6}
[data-theme=dark] .block.selected{outline-color:var(--accent)}
[data-theme=dark] .block .kind,[data-theme=dark] .node-properties{color:#bed4cc}
[data-theme=dark] .block.modify .kind,[data-theme=dark] .block.modify .node-properties{color:#ccbddf}
[data-theme=dark] .block.combine .kind,[data-theme=dark] .block.combine .node-properties{color:#b5d3e6}
[data-theme=dark] .fold{background:transparent;color:#daeee7}
[data-theme=dark] .port{background:#285b4d;border-color:#62b49c;color:#d8f5eb}
[data-theme=dark] .connector{background:#668f82}
[data-theme=dark] .node-meter{background:#caefe321}
[data-theme=dark] .node-meter i{background:var(--accent)}
[data-theme=dark] .node-value{color:#dcf3ea}
[data-theme=dark] .driver-btn.active{background:#4e3e64;border-color:#a18aba;color:#e7d9f4}
[data-theme=dark] .inspector .key,[data-theme=dark] #catalog small{color:#a8bfb6}
[data-theme=dark] .danger{color:#e3ad96;border-color:#815f51;background:#382822}
[data-theme=dark] .blackout.active{background:#9c503c;color:#fff}
[data-theme=dark] #channels i{background:var(--accent)}
[data-theme=dark] dialog{background:#1c2528;border-color:#49655d}
[data-theme=dark] dialog::backdrop{background:#030809aa}
[data-theme=dark] dialog .close{background:transparent;color:#d8e4e1}
[data-theme=dark] #yaml-error{color:#e0a58c}

.brand{display:flex;align-items:center;gap:9px}.brand img{width:32px;height:32px;flex-shrink:0}.brand small{margin-left:3px}.brand>span{color:#18745f}[data-theme=dark] .brand>span{color:var(--accent)}input[type=checkbox],input[type=range]{accent-color:#18745f}[data-theme=dark] input[type=checkbox],[data-theme=dark] input[type=range]{accent-color:var(--accent)}@media(max-width:850px){.brand img{width:26px;height:26px}.brand{gap:5px}}
.curve-heading{font-size:13px;font-weight:500;margin:24px 0 10px}.curve-editor{display:block;width:100%;background:var(--paper);border:1px solid var(--line);border-radius:8px;overflow:hidden;touch-action:none}.curve-editor path{fill:none}.curve-guide{stroke:var(--muted);stroke-width:1;stroke-dasharray:4 4;opacity:.6}.curve-path{stroke:var(--focus);stroke-width:2}.curve-handle{fill:var(--paper);stroke:var(--focus);stroke-width:2;cursor:grab}.curve-handle:active{cursor:grabbing;fill:var(--accent)}.curve-handle:focus{outline:none;stroke-width:4}.curve-live{fill:var(--focus);stroke:var(--paper);stroke-width:1;pointer-events:none}.curve-caption{font-size:10px;line-height:1.7;color:var(--muted)}


#mobile-view{display:inline-flex;align-items:center;color:var(--focus);text-decoration:none;white-space:nowrap;border:1px solid var(--line);border-radius:7px;padding:8px 10px}@media(max-width:600px){header{height:auto;min-height:105px;flex-wrap:wrap;padding:10px 12px;gap:8px}header>.header-actions{width:100%;margin:0;flex-wrap:wrap}header>.brand{min-width:110px}header>div:nth-child(2){max-width:190px}.header-actions #mobile-view{min-height:36px}header .header-actions button{min-height:36px}}

/* Authored handles remain available while evaluated positions move. */
#stage .fixture-layout{stroke:#72dec2}#stage .fixture-live{pointer-events:none;cursor:default;stroke:#72dec2;stroke-width:1;opacity:.85}#stage .fixture-motion-link{stroke:#72dec2;stroke-width:.8;stroke-dasharray:2 3;opacity:.4;pointer-events:none}#stage .fixture-layout:focus-visible{outline:none;stroke:#fff;stroke-width:3}

.block-icon{flex:0 0 44px;width:44px;height:44px}.tree-icon{width:28px;height:28px;float:right;margin-right:15px}.block-description{font-size:11px;line-height:1.7;color:var(--muted)}

/* Quiet identity/navigation; keep the status line useful at narrow widths. */
header a.brand{color:inherit;text-decoration:none;border-radius:4px}header a.brand:focus-visible{outline:2px solid var(--accent,#72dec2);outline-offset:4px}footer{gap:16px}footer #status{min-width:0;flex:1;max-width:none}footer #frame,.app-credit{flex-shrink:0}.app-credit{color:inherit;text-decoration:none;opacity:.8}.app-credit:hover{opacity:1;text-decoration:underline}.app-credit:focus-visible{outline:2px solid var(--accent,#72dec2);outline-offset:3px}
