/* One visual system for the shell and its locally processed model workspace. */
.studio-edit-outcome{flex:none;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;column-gap:8px;margin:12px 20px 0;padding:12px;background:var(--panel2);color:var(--text);border-radius:10px;font-size:12px;line-height:1.5}
.studio-edit-outcome[hidden]{display:none}.studio-edit-outcome strong{align-self:center;font-size:14px}.studio-edit-outcome p{grid-column:1/-1;margin:6px 0 0;max-height:120px;overflow-y:auto;overflow-wrap:anywhere}
#inspector .studio-edit-outcome button{min-height:44px;padding:6px 8px;background:transparent;color:var(--text);font-size:11px;text-decoration:underline;text-underline-offset:3px}
@media(max-width:760px){.studio-edit-outcome{margin:10px 12px 0}.studio-edit-outcome p{max-height:150px}}
.plate-collection-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.plate-collection-heading span{font-size:12px;color:var(--dim);font-variant-numeric:tabular-nums}#inspector .plate-collection-heading h2{margin:0 0 12px}.source-plate-list{display:grid;gap:6px;max-height:238px;overflow:auto;padding:2px 4px 2px 2px;scrollbar-gutter:stable}#inspector .source-plate{display:flex;align-items:center;gap:12px;text-align:left;padding:8px;min-height:80px;width:100%;border-radius:10px;background:var(--panel2)}.source-plate img,.plate-thumbnail-placeholder{width:64px;height:64px;object-fit:contain;flex:none;background:var(--studio-canvas);border-radius:6px}.plate-thumbnail-placeholder{background:var(--panel2)}.source-plate-copy{min-width:0;display:grid;gap:3px}.source-plate-copy strong{font-weight:600;overflow-wrap:anywhere}.source-plate-copy>span{font-size:11px}.plate-filament-swatches{display:flex;gap:4px;align-items:center;flex-wrap:wrap}.plate-filament-swatches i{width:13px;height:13px;border:1px solid var(--line);border-radius:3px}.plate-filament-swatches b{font-size:10px;font-weight:500;margin-left:4px}.plate-management{display:flex;gap:8px;margin:10px 0 20px;flex-wrap:wrap}.project-saves{display:grid;grid-template-columns:1fr 1fr;gap:8px}.project-saves button{padding:10px 8px;line-height:1.4}.project-saves p{grid-column:1/-1;margin:2px 0 8px}.project-saves [data-project-result]:empty{display:none}.plate-review{font-size:12px;line-height:1.5;margin:12px 0;color:var(--text)}.plate-review button{margin-top:5px}#inspector .plate-layout-options{margin:16px 0}#inspector .project-plates+#objectquantities{margin-top:24px;border-top:1px solid var(--line);padding-top:14px}.project-plates~.auto-arrange-controls{margin-top:16px}@media(max-width:760px){.source-plate-list{grid-template-columns:repeat(2,minmax(0,1fr));max-height:190px}#inspector .source-plate{gap:8px;padding:8px;align-items:flex-start}.source-plate img,.plate-thumbnail-placeholder{width:44px;height:44px}.source-plate-copy strong{font-size:11px}.project-saves{grid-template-columns:1fr 1fr}}
:root,:root[data-theme=light]{color-scheme:light;--paper:#f1f3f5;--panel:#fff;--panel2:#f3f5f6;--bg:#fff;--ink:#22282c;--text:#22282c;--fg:#22282c;--muted:#626c73;--dim:#626c73;--line:#e1e5e8;--accent:#246b50;--soft:#e8f2ed;--mint:#e8f2ed;--on-accent:#fff;--focus:#246b50;--hover-line:#9ba9a2;--studio-canvas:#f5f6f7;--studio-shadow:0 4px 18px #172c3810;--ease:cubic-bezier(.16,1,.3,1);font-family:Plex,'Segoe UI',sans-serif}
:root[data-theme=dark]{color-scheme:dark;--paper:#191d20;--panel:#252a2e;--panel2:#30363b;--bg:#252a2e;--ink:#f0f3f5;--text:#f0f3f5;--fg:#f0f3f5;--muted:#b0bbc2;--dim:#b0bbc2;--line:#3b444a;--accent:#a0ddbf;--soft:#324c40;--mint:#324c40;--on-accent:#15251d;--focus:#a0ddbf;--hover-line:#a0ddbf;--studio-canvas:#171a1f;--studio-shadow:0 4px 18px #0003}
*{scrollbar-width:thin;scrollbar-color:#aeb7bd transparent}::selection{background:#cde9db;color:#182d23}input{caret-color:var(--accent);font-variant-numeric:tabular-nums}a{text-underline-offset:3px}
button,select,input{font-family:inherit!important}button{transition:background-color 140ms ease,color 140ms ease,box-shadow 180ms var(--ease),transform 180ms var(--ease);border-radius:8px;min-height:36px}button:hover:not(:disabled){box-shadow:0 2px 5px #172c3810}button:active:not(:disabled){transform:translateY(1px) scale(.98)}button:disabled{cursor:not-allowed}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--focus);outline-offset:3px}button.primary,.primary{background:var(--accent);color:var(--on-accent);border-color:transparent}button.primary:hover:not(:disabled){background:var(--accent);filter:brightness(1.08)}
body:not([data-engine]){grid-template-rows:66px minmax(0,1fr) 30px;background:var(--paper)}
.topbar{padding:0 22px;border:0;gap:12px;background:var(--paper)}.brand strong{font-size:16px;letter-spacing:-.02em}.brand span{font-size:14px}.test-label{border:0;background:var(--panel);border-radius:5px;padding:3px 7px;color:var(--muted)}.file-title{text-align:left;font-size:12px;padding-left:22px}.topbar>.primary{min-width:150px;font-size:13px;padding:9px 18px}.project-menu summary{border:0;background:var(--panel);font-size:12px;list-style:none;padding:10px 15px}.project-menu summary::after{content:'⌄';padding-left:8px}.project-menu>div{border:0;box-shadow:0 8px 32px #172c3824;border-radius:12px}.project-menu button{border:0}
.workspace{grid-template-columns:76px minmax(0,1fr);padding:0 12px 0 0;gap:0}.tasknav{border:0;padding:14px 9px;gap:8px}.tasknav button{border:0;border-radius:10px;padding:11px 3px;min-height:60px;font-size:11px;color:var(--muted)}.tasknav button[aria-current=page]{background:var(--panel);color:var(--accent);box-shadow:var(--studio-shadow)}.tasknav svg{width:20px;height:20px}.nav-foot{font-size:9px}#engines{border-radius:16px;overflow:hidden;background:var(--panel)}.actionbar{min-height:0;padding:2px 20px 2px 90px;border:0;background:var(--paper);display:flex}.actionbar #workspace-status{display:block;max-height:22px;overflow:hidden;font-size:10px;color:var(--muted);white-space:nowrap;text-overflow:ellipsis}.topbar .mode-switch{display:none}
body[data-engine]{background:var(--panel);font-family:Plex,'Segoe UI',sans-serif!important}
#engine-workspace{grid-template-columns:minmax(280px,1fr) clamp(360px,32vw,440px);gap:0;background:var(--panel)}
#stage{background:var(--studio-canvas);color:var(--text);isolation:isolate}
#inspector{border-left:0;background:var(--panel);padding:6px 0;scrollbar-gutter:stable}
#inspector>section{padding:24px 22px 30px}.task-heading{padding:0!important;margin:0 0 25px;border:0}.task-heading h1{font-size:20px;letter-spacing:-.025em;line-height:1.3;margin:0 0 8px}.task-heading p{font-size:12px;line-height:1.5;color:var(--dim);overflow-wrap:anywhere;max-width:none}
#inspector [data-task]:not([hidden]){animation:inspector-arrive 220ms var(--ease)}
@keyframes inspector-arrive{from{transform:translateX(5px);filter:blur(.4px)}to{transform:none;filter:none}}
#inspector h2{font-size:14px;margin:22px 0 12px}#inspector h3{font-size:13px}.hint{font-size:12px;color:var(--dim);line-height:1.55}#inspector p{overflow-wrap:anywhere}#inspector label{color:var(--text)}#inspector fieldset legend{text-transform:none;font-size:13px}#inspector details{border-top:0;margin:18px 0;padding:12px 0 0}#inspector details+details{margin-top:4px}#inspector details summary{font-size:12px;color:var(--text);padding:5px 0}#inspector select,#inspector input[type=number],#inspector input[type=text],#inspector input[type=password]{background:var(--panel2);border-color:transparent;border-radius:8px;min-height:36px;color:var(--text)}#inspector button{background:var(--panel2);border-color:transparent;border-radius:8px;font-size:12px;color:var(--text)}#inspector button.primary{background:var(--accent);color:var(--on-accent)}#inspector button[aria-pressed=true]{background:var(--soft);color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}#inspector .colour-workflow [role=group]{display:grid;grid-template-columns:1fr 1fr;background:var(--panel2);padding:3px;border-radius:10px;gap:3px}#inspector .colour-workflow p{font-size:11px;margin:8px 0 0}.maprow{grid-template-columns:minmax(0,1fr) 12px 18px minmax(80px,1fr);padding:8px 0;border-color:var(--line)}#inspector .swatch{border-radius:5px}.filament-row{padding:7px 0}.filament-row i{border-radius:6px}.filament-row button{font-size:11px}#inspector .workflow-explanation{margin-bottom:14px}#inspector #objectquantities,#inspector #spectrumobjectoptions{margin-top:12px}
#sourcepreview,#mixcard,#previewpanel,#previewcard{position:static!important}#convertpreview,#preview{background:var(--studio-canvas)!important;min-height:0!important;height:100%!important;flex:1}
.studio-toolstrip{position:absolute;top:18px;left:50%;transform:translateX(-50%);z-index:5;display:flex;gap:4px;padding:5px;background:var(--panel);border-radius:12px;box-shadow:var(--studio-shadow);max-width:calc(100% - 28px)}
.studio-toolstrip button{display:flex;align-items:center;gap:7px;padding:7px 10px;border:0;background:transparent;color:var(--muted);font-size:12px;white-space:nowrap;min-height:36px}.studio-toolstrip button[aria-pressed=true]{background:var(--soft)!important;color:var(--accent)!important}.studio-toolstrip button:hover:not(:disabled){background:var(--panel2)}.studio-toolstrip svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.studio-toolstrip [data-studio-undo]{border-left:1px solid var(--line);border-radius:0 7px 7px 0;margin-left:3px}
#platecontrols{position:absolute;bottom:20px;left:20px;z-index:4;padding:4px!important;background:var(--panel)!important;border:0!important;border-radius:10px;box-shadow:var(--studio-shadow);max-width:calc(100% - 40px)}#platecontrols .plate-tool-row{gap:7px!important}#platecontrols .plate-view-switch{border:0;background:var(--panel2);border-radius:7px;padding:2px}#platecontrols button,#platecontrols select{border:0;background:transparent;color:var(--text);border-radius:6px;min-height:30px;font-size:11px;padding:5px 8px}#platecontrols button[aria-pressed=true],#platecontrols .plate-view-switch button[aria-pressed=true]{background:var(--panel);color:var(--accent);box-shadow:0 1px 3px #172c3812}#platecontrols [data-plate-note],.stage-caption,#reelviewnote{display:none!important}#platecontrols .preview-object-actions{display:none!important}#platecontrols [data-camera=top]{min-width:35px}#platecontrols .plate-tool-row>button:last-child{display:none}#stage-feedback{position:absolute;top:72px;left:20px;right:20px;background:transparent;border:0!important;z-index:3;max-height:90px;color:var(--text);padding:0;font-size:11px;pointer-events:none}#stage-feedback .err,#stage-feedback .bad{background:var(--panel);color:var(--bad);padding:10px;border-radius:8px}#stage-feedback .hint{color:var(--dim)}
#stage-empty{background:var(--studio-canvas);color:var(--text);padding:48px}#stage-empty>div{max-width:400px}#stage-empty h1{color:var(--text);font-size:clamp(28px,3.6vw,43px);line-height:1.12;max-width:13ch;font-weight:550}#stage-empty p{color:var(--dim);font-size:14px;line-height:1.6}#stage-empty button{background:var(--panel);border:0;color:var(--text);border-radius:8px;padding:10px 16px}#stage-empty button.primary{background:var(--accent);color:var(--on-accent);border:0}#stage-empty .empty-formats{color:var(--dim);font-size:11px}
.workbench-progress{left:50%;right:auto;bottom:75px;transform:translateX(-50%);max-width:calc(100% - 36px);width:370px;background:var(--panel);color:var(--text);border:0;border-radius:12px;box-shadow:0 6px 28px #172c3820;padding:14px 16px}.workbench-progress strong{font-size:12px}.workbench-progress p{font-size:11px;color:var(--dim);line-height:1.4}.working-orb{width:23px;height:23px}.software-preview,.software-preview p{background:var(--studio-canvas);color:var(--dim)}.software-preview p{padding-bottom:68px}
.workbench-object-tools{border:0;margin:0;padding:0;color:var(--text)}.workbench-object-tools>label{font-size:11px!important;display:flex;flex-direction:column;align-items:stretch!important;gap:7px!important;color:var(--dim)!important}.workbench-object-tools select{width:100%;max-width:100%;color:var(--text)!important}.workbench-object-tools [data-total]{color:var(--dim);font-size:11px;margin:10px 0 16px}.workbench-object-tools p{font-size:11px;color:var(--dim);line-height:1.5;margin:14px 0}.object-edit-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.object-edit-row label{display:flex;align-items:center;justify-content:space-between;grid-column:1/-1;font-size:12px;gap:10px}.object-edit-row input{width:68px}.object-edit-row [data-object-edit=fill]{grid-column:1/-1}.workbench-object-tools[data-selected=false] .object-edit-row{display:none}.workbench-object-tools[data-selected=false] .object-edit-row:has([data-object-edit=undo]:not(:disabled)){display:flex}.workbench-object-tools[data-selected=false] .object-edit-row>*:not([data-object-edit=undo]){display:none}
.studio-field{display:block;font-size:12px;margin-bottom:22px}.studio-field>select{display:block;width:100%;margin-top:8px}.studio-field input[type=range]{display:block;width:100%;margin-top:14px;accent-color:var(--accent)}.studio-field output{float:right;color:var(--dim);font-variant-numeric:tabular-nums}.studio-colour-input{display:flex;align-items:center;gap:12px;background:var(--panel2);padding:9px;border-radius:10px;margin-top:8px}.studio-colour-input input{width:42px;height:34px;padding:0;border:0;background:none;cursor:pointer}.studio-colour-input span{font-size:12px}.studio-swatches{display:flex;flex-wrap:wrap;gap:8px;margin-top:-10px;margin-bottom:18px}.studio-swatches button[data-swatch]{width:34px;height:34px;min-height:34px;padding:0;border-radius:8px!important;background:var(--swatch)!important;box-shadow:inset 0 0 0 1px #0002}.studio-swatches button:hover{transform:translateY(-2px)}.studio-apply{display:flex;justify-content:flex-end;gap:8px;margin:20px 0 26px}.studio-apply button{flex:1}.studio-message{font-size:12px;line-height:1.5;color:var(--dim);margin:14px 0}.studio-message:empty{display:none}.studio-objects summary{display:flex;justify-content:space-between;cursor:pointer;font-weight:600}.studio-objects summary span{font-size:11px;font-weight:400;color:var(--dim)}[data-scene-list]{display:flex;flex-direction:column;gap:3px;margin-top:10px}[data-scene-list] button{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;padding:10px!important;background:none!important;box-shadow:none!important}[data-scene-list] button[aria-pressed=true]{background:var(--soft)!important;color:var(--accent)!important}[data-scene-list] button span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-scene-list] button span:last-child{color:var(--dim);font-size:11px;flex:none}
@media(max-width:1050px){#engine-workspace{grid-template-columns:minmax(240px,1fr) 300px}#inspector>section{padding:22px 18px}.studio-toolstrip{top:12px}.studio-toolstrip button{padding:7px 8px;font-size:11px}.studio-toolstrip button svg{width:15px;height:15px}.file-title{padding-left:8px}.brand span{display:none}}
@media(max-width:760px){#engine-workspace{display:flex;flex-direction:column}#engine-workspace #stage,.software-mode #engine-workspace #stage,#engine-workspace #stage:has(.workbench-object-tools[data-selected=true]){flex:0 0 48%;min-height:205px}#inspector{flex:1;border:0;padding-top:0}#inspector>section{padding:22px 20px}#platecontrols{bottom:12px;left:12px;max-width:calc(100% - 24px);padding:3px!important;max-height:none;overflow:visible}#platecontrols .plate-tool-row{gap:4px!important}#platecontrols #convertpreviewtoolbar,#platecontrols .previewtoolbar{display:none!important}.studio-toolstrip{top:10px;padding:4px;gap:2px;max-width:calc(100% - 20px)}.studio-toolstrip button{min-height:32px;font-size:11px;padding:6px 8px;gap:5px}.studio-toolstrip [data-studio-undo]{padding:6px}.workbench-progress{bottom:56px;width:300px;padding:10px}.workbench-progress p{font-size:10px}.task-heading{margin-bottom:20px}.task-heading h1{font-size:20px}#stage-empty{padding:22px}#stage-empty h1{font-size:26px;max-width:16ch;margin-bottom:14px}#stage-empty p{font-size:12px;margin-bottom:15px}#stage-empty .empty-formats{display:none}.studio-objects{margin-top:24px!important}.software-preview p{padding-bottom:52px}.workbench-object-tools p{display:block!important}.studio-message{font-size:12px}}
@media(max-width:560px){body:not([data-engine]){grid-template-rows:54px minmax(0,1fr) 27px}.topbar{padding:0 10px;gap:7px}.topbar>.primary{min-width:0;padding:8px 12px;font-size:11px;max-width:160px}.topbar .brand strong{font-size:14px}.brand img{width:25px;height:25px}.test-label{display:none}.project-menu summary{font-size:0;padding:8px}.project-menu summary::after{font-size:18px;padding:0;content:'…'}.project-menu>div{top:38px}.workspace{padding:0 8px;display:flex;gap:5px}#engines{border-radius:12px}.tasknav{padding:3px 0;gap:3px;border:0}.tasknav button{min-height:36px;font-size:11px;padding:6px 9px;gap:6px;border-radius:7px}.tasknav svg{width:16px;height:16px}.actionbar{padding:3px 12px;display:flex;min-height:0}.actionbar #workspace-status{font-size:9px}.studio-toolstrip button svg{display:none}.studio-toolstrip [data-studio-undo] svg{display:block}.studio-toolstrip button{padding:6px 10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Keep the shell's grid track smaller than the navigation's intrinsic width. */
body:not([data-engine]){grid-template-columns:minmax(0,1fr)}
.topbar,.workspace,.actionbar{min-width:0}
.object-edit-row [data-object-edit=add]{grid-column:1/-1}
@media(max-width:560px){.tasknav button{min-width:0;flex:1;font-size:10px;gap:4px;padding:6px 4px}.topbar .primary{margin-left:0}.topbar .brand{margin-right:auto}}
@media(max-width:760px){#inspector .blend-editor-body select,#inspector .blend-editor-body input[type=number],#inspector .blend-editor-body button{min-height:44px}}
/* Functional labels remain legible at every breakpoint. */
.actionbar #workspace-status,.nav-foot,.test-label{font-size:11px}
@media(max-width:560px){.tasknav button,.actionbar #workspace-status,.workbench-progress p{font-size:11px}}
dialog{border:0}
.studio-toolstrip [data-studio-undo]{min-width:36px}
#inspector [data-multi-select]{margin:0 0 14px;padding:8px 12px}
[data-multi-hint]{margin:0 0 16px}
.studio-region-swatches{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px}.studio-region-swatches button{display:flex;align-items:center;gap:7px;padding:8px;min-height:40px}.studio-region-swatches i{display:block;width:22px;height:22px;border-radius:5px;background:var(--swatch);box-shadow:inset 0 0 0 1px #0002}.studio-check{display:flex;align-items:center;gap:9px;font-size:13px;margin:18px 0}.studio-check input{accent-color:var(--accent);width:17px;height:17px}.studio-dimensions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0 22px}.studio-dimensions label{min-width:0;font-size:12px;line-height:1.5}.studio-dimensions input{display:block;width:100%;box-sizing:border-box;margin-top:7px;padding:8px}.studio-colour-select{margin-top:24px}.studio-colour-select .studio-region-swatches{margin-bottom:12px}.studio-colour-select>button{width:100%;text-align:left;padding:10px}
.object-edit-row [data-object-edit=remove]{grid-column:1/-1}
#stage-empty .joint-sample-link{display:block;background:none;color:var(--accent);padding:10px 0;margin-top:6px;text-decoration:underline;text-underline-offset:3px}
#inspector>section[data-task=edit][data-editing=true]{display:flex;flex-direction:column;height:calc(100% - 12px);box-sizing:border-box;overflow:hidden;padding-bottom:0}
[data-editing=true] .task-heading{margin-bottom:14px;flex:none}[data-editing=true] [data-multi-select]{align-self:flex-start;flex:none}[data-editing=true] [data-tool-settings]{min-height:0;flex:1;overflow-y:auto;margin:0 -4px;padding:3px 4px}[data-editing=true] .studio-apply{flex:none;margin:12px 0 0;padding:0 0 18px;background:var(--panel)}[data-editing=true] .studio-objects{display:none}[data-editing=true] .studio-message{flex:none;max-height:24%;overflow-y:auto}
.object-edit-row [data-object-edit=undo][hidden]{display:none!important}
.sequential-panel{margin:6px 0 24px}.plate-colour{display:inline-block;width:14px;height:14px;border-radius:4px;margin-right:7px;vertical-align:middle}.sequential-plates{list-style:none;padding:0}.sequential-plates li{padding:14px 0}.sequential-plates li+li{border-top:1px solid var(--line)}
.studio-auto-result{font-size:12px;line-height:1.5}.studio-auto-result summary{font-weight:600}.studio-auto-result ul{padding-left:18px}.studio-auto-result li{margin:10px 0;overflow-wrap:anywhere}[data-editing=true] .studio-auto-result:not([hidden]){flex:0 1 32%;overflow-y:auto}
.prepared-preview{position:absolute;inset:0;z-index:6;background:var(--studio-canvas);padding:46px 0 76px}
.prepared-preview canvas,.prepared-preview>img{width:100%;height:100%;display:block;object-fit:contain;border:0;border-radius:0;background:var(--studio-canvas)}
.prepared-caption{position:absolute;top:22px;left:22px;right:22px;font-size:13px;color:var(--dim);pointer-events:none}
.prepared-controls{position:absolute;bottom:20px;left:20px;right:20px;width:fit-content;max-width:calc(100% - 40px);display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:6px;background:var(--panel);border-radius:10px;box-shadow:var(--studio-shadow)}
.prepared-controls label{display:flex;align-items:center;gap:8px;padding-left:8px;min-width:0;font-size:12px}.prepared-controls select{width:220px;min-width:0;background:var(--panel2);border:0}.prepared-controls button{border:0;background:transparent;color:var(--text);font-size:12px;min-height:36px}.prepared-controls [data-edit-model]{background:var(--soft);color:var(--accent)}
.prepared-progress{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:max-content;max-width:calc(100% - 40px);display:flex;align-items:center;gap:12px;padding:16px;background:var(--panel);border-radius:12px;box-shadow:var(--studio-shadow);font-size:13px}.prepared-progress .working-orb{flex:none}.prepared-progress button{flex:none}
#inspector .prepared-plate-choice{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;text-align:left;padding:12px}.prepared-plate-choice span{font-size:12px;color:var(--dim)}
#stage[data-prepared=true]>.studio-toolstrip,#stage[data-prepared=true] #platecontrols,#stage[data-prepared=true]>#sourcepreview,#stage[data-prepared=true]>#mixcard,#stage[data-prepared=true]>.software-preview{visibility:hidden;pointer-events:none}
#stage[data-loading=true]::after{content:'';position:absolute;inset:0;z-index:7;background:var(--studio-canvas)}
#stage[data-loading=true]>.workbench-progress{z-index:8}
.studio-auto-result>strong{display:block;font-size:13px;margin-bottom:8px}.studio-auto-result>p{margin:0}#inspector .studio-auto-result details{padding-top:0;margin:8px 0 22px}
@media(max-width:760px){.prepared-preview{padding:40px 0 122px}.prepared-caption{top:14px;left:14px;right:14px;font-size:12px}.prepared-controls{left:12px;right:12px;bottom:12px;max-width:calc(100% - 24px);gap:3px}.prepared-controls label{flex:1 1 100%;padding-left:4px}.prepared-controls select{flex:1;width:auto;min-height:44px}.prepared-controls button{min-height:44px;flex:1}.prepared-progress{top:40%;font-size:12px}.prepared-progress button{min-height:44px}}
@media(max-width:760px){.studio-toolstrip button,#platecontrols button,#platecontrols select,.tasknav button,#inspector [data-multi-select],[data-scene-list] button{min-height:44px;min-width:44px}.tasknav button{min-width:0}.studio-toolstrip [data-studio-undo]{min-width:44px}#platecontrols .plate-view-switch button{min-height:44px;min-width:44px}.project-menu summary,.topbar>.primary{min-height:44px}.project-menu summary{min-width:44px;display:flex;align-items:center;justify-content:center}}
/* Keep the first filament decision and preview comparison within reach. */
#stage-feedback .preview-warning{margin:8px 0;padding:10px 14px;background:var(--panel);border:1px solid var(--line);border-radius:8px;box-shadow:var(--studio-shadow);color:var(--text);font-size:12px;line-height:1.45;max-width:620px;pointer-events:auto}
#inspector .object-quantity{grid-template-columns:minmax(0,1fr);gap:10px;padding:14px 0;align-items:start}#inspector .object-quantity>span{min-width:0}#inspector .object-quantity .quantity-actions{width:100%;justify-content:flex-start}#inspector .object-quantity .quantity-actions input{width:64px;flex:0 0 64px}#inspector .object-colours{line-height:1.6}
body[data-engine=spectrum] [data-task=colours] .task-heading{margin-bottom:12px}
#inspector #filamentbundles{margin:0 0 18px;padding-top:0}
#inspector #bundlepanel{gap:10px;padding-top:8px}
#inspector #bundlepanel .bundle-capacity{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px}
#inspector #bundlepanel [data-capacity]{width:100px;flex:none}
#inspector #bundlepanel .bundle-details{margin:0;padding:0}
#inspector .bundle-details[open]{display:grid;gap:10px}
#inspector #bundlepanel [data-status]:empty{display:none}
#inspector details:not(.studio-objects)>summary{display:flex;align-items:center;gap:10px;list-style:none;min-height:42px;padding:10px 12px;box-sizing:border-box;background:var(--panel2);border-radius:8px;cursor:pointer;font-size:12px;font-weight:500;transition:background-color 140ms ease}
#inspector details>summary::-webkit-details-marker{display:none}
#inspector details:not(.studio-objects)>summary::before{content:'';width:6px;height:6px;flex:none;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transition:transform 140ms ease}
#inspector details[open]:not(.studio-objects)>summary::before{transform:rotate(45deg)}
#inspector details:not(.studio-objects)>summary:hover{background:var(--soft)}
#inspector details[open]>summary{margin-bottom:12px}
#inspector details{margin:12px 0;padding-top:0}
#inspector .palette-source{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;background:var(--panel2);padding:4px;border-radius:10px}
#inspector .palette-source button{min-height:44px;padding:8px 5px;line-height:1.3;background:transparent}
#inspector .palette-source button[aria-pressed=true]{background:var(--panel);box-shadow:inset 0 0 0 1px var(--accent)}
#inspector #loadedcontrols h3{margin:14px 0 10px}
#inspector #reels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
#inspector #reels>.field{min-width:0;width:auto;margin:0;display:grid;gap:6px}
#inspector #reels input[type=color]{height:46px;padding:3px;border:1px solid var(--line);background:var(--panel)}
#inspector #reels input[data-reel-hex]{font-size:12px;min-height:36px;letter-spacing:.02em}
#inspector #reels select{font-size:11px;width:100%;min-width:0}
#inspector #reels .reelname{font-size:11px;overflow-wrap:anywhere}
#inspector #reels [data-remove-reel]{min-height:30px;font-size:11px;text-align:left;padding-left:0;background:transparent;color:var(--muted)}
#inspector #addphysicalreel{margin-top:12px}
#inspector #filamentbundles>summary{display:none}
#inspector #reels .reel-details{margin:0;padding:0}
#inspector #reels .reel-details>summary{font-size:11px;padding:6px 8px;min-height:32px;background:transparent}
#inspector #reels .reel-details[open]{display:grid;gap:6px}
#inspector .palettechoice{padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--panel);font-size:12px}
#inspector .palettechoice[aria-pressed=true]{border-color:var(--accent);background:var(--soft);box-shadow:none}
#inspector .palettechips{gap:8px;margin-top:10px}
#inspector .palettechip{font-size:11px;line-height:1.45}
#inspector .palettecoverage{margin-top:12px;gap:6px}
.auto-arrange-controls{display:grid;gap:8px;margin:0 0 20px}.auto-arrange-controls>button{width:100%;min-height:42px}.auto-arrange-controls p{margin:0}.auto-arrange-controls [role=status]:empty{display:none}
@media(prefers-reduced-motion:reduce){#inspector details>summary,#inspector details>summary::before{transition:none}}
@media(max-width:760px){#platecontrols #convertpreviewtoolbar,#platecontrols .previewtoolbar{display:flex!important}#platecontrols .segs{flex-wrap:nowrap}#inspector #bundlepanel select,#inspector #bundlepanel button{min-height:44px}body[data-engine=spectrum] #inspector [data-task=colours]{padding-top:14px}}
@media(max-width:560px){body[data-ready=true] #stage:not([data-prepared=true]){padding-bottom:112px}}
.workspace-drop-overlay{position:fixed;inset:10px;z-index:2000;pointer-events:none;display:grid;place-items:center;border:2px dashed var(--accent,#246b50);border-radius:16px;background:color-mix(in srgb,var(--paper,#f1f3f5) 87%,transparent)}
.workspace-drop-overlay[hidden]{display:none}
.workspace-drop-overlay>div{display:grid;gap:8px;text-align:center;padding:28px;background:var(--panel,#fff);color:var(--ink,#22282c);border-radius:12px;box-shadow:0 12px 40px #0001}
.workspace-drop-overlay strong{font-size:24px}.workspace-drop-overlay span{font-size:13px;color:var(--muted,#626c73)}
.workspace-drop-error{position:fixed;top:76px;left:50%;transform:translateX(-50%);z-index:1900;display:flex;align-items:center;gap:16px;width:min(540px,calc(100% - 32px));padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--ink);box-shadow:var(--studio-shadow)}
.workspace-drop-error[hidden]{display:none}.workspace-drop-error p{margin:0;line-height:1.5;min-width:0;overflow-wrap:anywhere}.workspace-drop-error button{flex:none;min-height:44px}
.shape-detection{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;margin:16px 0 24px}
.joint-position{margin:18px 0}
.joint-position .studio-dimensions{margin:12px 0}
#inspector .joint-check{width:100%;min-height:44px;background:var(--soft);color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.joint-status{min-height:2.8em;margin:10px 0;overflow-wrap:anywhere}
.joint-status[data-error=true]{color:var(--bad)}
.joint-face{background:var(--panel2);border-radius:8px;padding:12px}
.joint-face svg{display:block;width:100%;height:190px;touch-action:manipulation}
.joint-face[data-interactive=true] svg{cursor:crosshair}
.joint-boundary{fill:var(--panel);stroke:var(--muted);stroke-width:1;vector-effect:non-scaling-stroke}
.joint-socket{fill:var(--soft);stroke:var(--accent);stroke-width:1.5;vector-effect:non-scaling-stroke}
.joint-pin{fill:none;stroke:var(--accent);stroke-width:1;stroke-dasharray:3 2;vector-effect:non-scaling-stroke}
.joint-cross{fill:none;stroke:var(--accent);stroke-width:1;vector-effect:non-scaling-stroke}
@media(max-width:760px){#inspector [data-joint-settings] input,#inspector [data-joint-settings] select,#inspector [data-joint-settings] button{min-height:44px}.joint-face svg{height:170px}.joint-position summary{min-height:44px;display:flex;align-items:center}}
.shape-detection .studio-field{margin:0}
.shape-selection-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.shape-region-list{display:grid;gap:6px;max-height:260px;overflow:auto;margin:12px 0}
#inspector .shape-region-list button{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:44px;text-align:left;padding:10px 12px}
.shape-size{font-size:11px;color:var(--muted);text-align:right;font-variant-numeric:tabular-nums}
#inspector .shape-region-list button[aria-pressed=true]{background:var(--soft);box-shadow:inset 0 0 0 1px var(--accent);color:var(--accent)}
.shape-region-list button[aria-pressed=true] .shape-size{color:var(--accent)}
[data-shape-undo]{margin-bottom:20px}
#inspector .studio-swatches [data-shape-swatch]{background:var(--swatch);width:40px;height:40px;border:1px solid var(--line);border-radius:8px}
#inspector [data-shape-colour]{width:100%;height:44px;padding:4px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}
@media(max-width:760px){#inspector [data-shape-settings] button,#inspector [data-shape-settings] select{min-height:44px}.shape-region-list{max-height:none;overflow:visible}#inspector .studio-swatches [data-shape-swatch]{width:44px;height:44px}}
@media(max-width:760px){#inspector .plate-management button,#inspector .project-saves button,#inspector .plate-review button{min-height:44px;min-width:44px}.workspace-drop-error{top:64px;align-items:flex-start}}
/* A split edit needs room to compare regions and adjust a complete joint. */
@media(max-width:760px){
  #engine-workspace:has([data-task=edit][data-editing=true] [data-split-method]) #stage{flex:0 0 38%;min-height:270px;padding-top:64px;padding-bottom:60px}
  #engine-workspace:has([data-task=edit][data-editing=true] [data-split-method]) #platecontrols{bottom:6px;max-width:calc(100% - 24px);overflow-x:auto}
  #engine-workspace:has([data-task=edit][data-editing=true] [data-split-method]) #platecontrols .plate-tool-row{flex-wrap:nowrap}
  #engine-workspace:has([data-task=edit][data-editing=true] [data-split-method]) #platecontrols .plate-tool-row>*{flex:none;white-space:nowrap}
  #engine-workspace:has([data-task=edit][data-editing=true] [data-split-method]) #platecontrols #convertpreviewtoolbar{padding:0!important}
  #engine-workspace:has([data-task=edit][data-editing=true] [data-split-method]) #platecontrols>p:empty{display:none}
  #inspector>section[data-task=edit][data-editing=true]:has([data-split-method]){padding:14px 20px 0}
  [data-editing=true]:has([data-split-method]) .task-heading{margin-bottom:8px}
  [data-editing=true]:has([data-split-method]) .task-heading p{margin:4px 0}
  [data-editing=true]:has([data-split-method]) .studio-message{font-size:11px;margin:8px 0;max-height:48px}
  [data-editing=true]:has([data-split-method]) .studio-apply{margin-top:6px;padding-bottom:12px}
  #inspector [data-editing=true] .studio-apply button,#inspector [data-editing=true] .studio-dimensions input,#inspector [data-editing=true] .studio-field select{min-height:44px}
  [data-editing=true] .studio-check{min-height:44px;margin:10px 0}
}
:root .split-inspection{position:absolute;inset:0;z-index:4;background:var(--studio-canvas);border-radius:inherit;overflow:hidden}
#stage:has(.split-inspection) #platecontrols{visibility:hidden;pointer-events:none}
.split-inspection canvas{position:absolute;left:0;top:112px;width:100%;height:calc(100% - 136px);display:block;touch-action:none}
.boundary-overlay{position:absolute;left:0;top:112px;width:100%;height:calc(100% - 136px);pointer-events:none;overflow:visible}
.boundary-path{fill:none;stroke:var(--accent);stroke-width:2.5;stroke-dasharray:5 3;stroke-linejoin:round}
.boundary-point{fill:var(--panel);stroke:var(--accent);stroke-width:2}
.boundary-point.chosen{fill:var(--soft);stroke-width:3}
.boundary-overlay text{fill:var(--text);font:600 11px Plex,'Segoe UI',sans-serif}
.inspection-caption{position:absolute;top:78px;left:24px;right:24px;display:flex;align-items:center;justify-content:space-between;gap:12px;pointer-events:none;color:var(--muted);font-size:12px}
.inspection-caption button{pointer-events:auto;background:var(--panel);border:0;min-height:36px;white-space:nowrap}
.inspection-caption>div{display:flex;gap:6px}
[data-inspection-expand]{display:none}
.boundary-points{display:flex;flex-wrap:wrap;gap:6px;margin:16px 0 12px}
.boundary-points button{min-width:40px;min-height:40px;font-variant-numeric:tabular-nums}
.boundary-points button[aria-pressed=true]{background:var(--soft);color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.boundary-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.boundary-actions button{flex:1 1 auto}
.boundary-status[data-error=true],[data-assembly-status][data-error=true]{color:var(--bad)}
.split-preview-controls{margin:24px 0;padding-top:20px;border-top:1px solid var(--line)}
.boundary-status{min-height:3em}
.split-preview-controls>[data-split-preview]{width:100%;color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);min-height:42px}
[data-assembly-controls]{margin-top:16px}
[data-assembly-controls] output{font-variant-numeric:tabular-nums;color:var(--muted)}
/* A visible toolbox keeps each task in one predictable place. */
.workspace{position:relative;grid-template-columns:minmax(0,1fr);padding:0 12px}
.workspace>.tasknav{display:none}
.actionbar{padding-left:24px}
#workspace-mode{max-width:170px;min-height:38px;padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--text);font-size:12px}
#launch{position:absolute;inset:0;z-index:10;display:grid;place-items:center;overflow:auto;background:var(--studio-canvas);border-radius:16px;padding:32px}
#launch[hidden]{display:none}
.launch-content{width:min(760px,100%)}
.launch-content>img{margin-bottom:12px}
.launch-content h1{font-size:clamp(28px,3vw,40px);line-height:1.15;letter-spacing:-.035em;margin:0 0 14px}
.launch-content>p{color:var(--muted);line-height:1.6;margin:0 0 26px}
.launch-choices{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:28px 0}
.launch-choices button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:26px;min-height:190px;border:1px solid var(--hover-line);background:var(--panel);color:var(--text);border-radius:12px;gap:14px}
.launch-choices button:hover{border-color:var(--accent);background:var(--soft)}
.launch-choices strong{font-size:21px;letter-spacing:-.025em}
.launch-choices button>span{font-size:14px;line-height:1.5}
.launch-choices .launch-link{margin-top:auto;color:var(--accent);font-weight:600}
.remember-workspace{display:flex;align-items:center;gap:10px;font-size:13px;min-height:44px}
.remember-workspace input{width:18px;height:18px;accent-color:var(--accent)}
.launch-content .launch-note{font-size:12px;margin-top:20px}
[data-launch=true] #primary,[data-launch=true] #workspace-mode{visibility:hidden}
#engine-workspace{grid-template-columns:360px minmax(0,1fr)}
#engine-workspace>#stage{grid-column:2;grid-row:1}
#engine-workspace>#inspector{grid-column:1;grid-row:1;display:flex;flex-direction:column;min-height:0;overflow:hidden;padding:0;border-right:1px solid var(--line)}
#inspector>section[data-task]{min-height:0;flex:1;overflow-y:auto;padding:22px 20px 28px}
#inspector>section[data-task=edit][data-editing=true]{height:auto;overflow:hidden;padding-bottom:0}
#inspector>.feature-toolbox{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:14px 16px 18px;border-bottom:1px solid var(--line);flex:none}
#inspector .feature-toolbox button{min-height:82px;padding:10px 5px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;line-height:1.25;border:1px solid var(--line);background:var(--panel);font-weight:500}
#inspector .feature-toolbox button:hover:not(:disabled){background:var(--panel2);border-color:var(--hover-line)}
#inspector .feature-toolbox button[aria-pressed=true]{background:var(--soft);border-color:var(--accent);box-shadow:none;color:var(--accent)}
.feature-toolbox svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.feature-toolbox span{max-width:100px}
#inspector>.model-colour-summary{flex:none;padding:18px 18px 4px}
.model-colour-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.model-colour-heading strong{font-size:15px;letter-spacing:-.015em}
#inspector .model-colour-heading button{font-size:11px;min-height:32px;padding:5px 8px;background:transparent;color:var(--accent)}
.model-colour-summary .hint{font-size:11px;margin:3px 0 10px}
.model-colour-list{display:flex;flex-wrap:wrap;gap:6px 12px;list-style:none;padding:0;margin:0;max-height:108px;overflow-y:auto}
.model-colour-list li{display:flex;align-items:center;gap:6px;font-size:12px;min-height:24px}
.model-colour-list i{width:20px;height:20px;border:1px solid #8886;border-radius:5px;flex:none}
.studio-toolstrip [data-studio-tool=colour],.studio-toolstrip [data-studio-tool=split],.studio-toolstrip [data-studio-tool=arrange]{display:none}
[data-workspace-mode=quick] #inspector{overflow-y:auto}
[data-workspace-mode=quick] #inspector>section[data-task]{flex:none;overflow:visible}
[data-workspace-mode=quick] .feature-toolbox,[data-workspace-mode=quick] .studio-toolstrip,[data-workspace-mode=quick] .joint-sample-link{display:none!important}
[data-workspace-mode=quick] [data-task=output]{border-top:1px solid var(--line)}
[data-workspace-mode=quick] [data-task=output] .task-heading{margin-bottom:12px}
[data-workspace-mode=quick] [data-task=output] .task-heading h1{font-size:16px}
[data-workspace-mode=quick] [data-task=output] .task-heading p{display:none}
[data-workspace-mode=quick] #inspector>.model-colour-summary{padding-bottom:16px;border-bottom:1px solid var(--line)}
@media(max-width:1050px) and (min-width:761px){#engine-workspace{grid-template-columns:330px minmax(0,1fr)}.file-title{padding-left:0}.topbar{gap:8px;padding:0 14px}}
@media(max-width:760px){
  .workspace{display:grid;padding:0 8px}
  #engine-workspace{display:flex}
  #engine-workspace>#stage{order:0;flex:0 0 40%;min-height:180px}
  #engine-workspace>#inspector{order:1;border:0;border-top:1px solid var(--line);flex:1;min-height:0}
  #inspector>.feature-toolbox{display:flex;overflow-x:auto;padding:8px 12px;gap:6px}
  #inspector .feature-toolbox button{flex:0 0 94px;min-height:72px;padding:7px 4px;font-size:11px;gap:5px}
  .feature-toolbox svg{width:24px;height:24px}
  #inspector>.model-colour-summary{padding:10px 14px 4px}
  .model-colour-summary .hint{display:none}
  .model-colour-list{flex-wrap:nowrap;overflow-x:auto;margin-top:4px;max-height:38px;gap:12px}
  .model-colour-list li{white-space:nowrap}
  #inspector .model-colour-heading button{min-height:44px}
  #inspector>section[data-task]{padding:18px 16px 24px}
  #engine-workspace>#inspector{overflow-y:auto}
  #inspector>section[data-task],#inspector>section[data-task=edit][data-editing=true]{flex:none;overflow:visible;height:auto}
  #inspector [data-editing=true] [data-tool-settings]{flex:none;overflow:visible}
  #inspector [data-editing=true] .studio-apply{position:sticky;bottom:0;z-index:2;padding:10px 0;box-shadow:0 -8px 12px var(--panel)}
  #launch{padding:24px;align-items:start}
  .launch-content>img{width:36px;height:36px}
  .launch-choices{grid-template-columns:1fr;gap:12px;margin:20px 0}
  .launch-choices button{min-height:140px;padding:20px;gap:8px}
  .launch-choices strong{font-size:20px}
  #workspace-mode{max-width:145px;min-height:44px;font-size:11px;padding:5px}
  .topbar .file-title,.topbar .test-label{display:none}
  .topbar .brand{margin-right:0}
  .topbar .primary{margin-left:auto;max-width:130px}
  .studio-toolstrip button{min-height:44px}
  .topbar .brand span{display:none}
}
@media(max-width:440px){.topbar{gap:5px;padding:0 8px}.topbar .brand strong{display:none}#workspace-mode{max-width:122px}.topbar>.primary{font-size:11px;padding:8px;max-width:124px}.launch-content .launch-note{margin-top:12px}.launch-content>p{font-size:13px;margin-bottom:14px}}
@media(max-width:760px){.split-inspection canvas,.boundary-overlay{top:56px;height:calc(100% - 138px)}.inspection-caption{top:auto;bottom:8px;left:12px;right:12px;font-size:11px;gap:4px;align-items:flex-start;flex-direction:column}.inspection-caption button,.boundary-points button,.boundary-actions button,.split-preview-controls>[data-split-preview],[data-assembly-controls] input[type=range]{min-height:44px}.boundary-points button{min-width:44px}.boundary-actions{gap:8px}.inspection-caption span{max-width:none}[data-inspection-expand]{display:inline-block}#engine-workspace:has([data-task=edit][data-editing=true] [data-split-method]) #stage[data-inspection-expanded=true]{flex:1;min-height:0;padding:0}#engine-workspace:has([data-inspection-expanded=true]) #inspector{display:none}}
