@property --assembly-left{syntax:"*";inherits:false}
@property --assembly-right{syntax:"*";inherits:false}
.vector-shape-palette{position:fixed;inset:auto;margin:0;width:310px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box;padding:12px;border:1px solid var(--gold,#d5b15b);border-radius:10px;background:var(--surface,#292b2e);color:var(--text,#eee);box-shadow:0 12px 40px #0009}
.vector-shape-palette>strong{display:flex;align-items:center;gap:8px;margin-bottom:10px;color:var(--gold-bright,#f4cf82)}
.vector-shape-palette>strong svg,.vector-shape-palette>.button svg{width:20px;height:20px}
.vector-shape-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.vector-shape-options button{display:grid;place-items:center;gap:4px;min-height:62px;padding:7px 3px;border:1px solid var(--line,#555);border-radius:7px;background:var(--bg,#202225);color:var(--text,#eee);font:inherit;font-size:10px;cursor:pointer}
.vector-shape-options button[aria-pressed=true]{border-color:var(--gold);background:var(--theme-selected,#51452d);color:var(--gold-bright,#f4cf82)}
.vector-shape-options svg{width:25px;height:25px;color:var(--gold-bright,#f4cf82)}
.vector-shape-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.vector-shape-fields label{font-size:11px;display:grid;gap:4px;min-width:0}
.vector-shape-fields input{width:100%;min-width:0;box-sizing:border-box;padding:7px;background:var(--bg,#202225);color:var(--text,#eee);border:1px solid var(--line,#555);border-radius:5px}
.vector-shape-palette [hidden]{display:none!important}
.vector-shape-palette>p{font-size:11px;line-height:1.5;margin:10px 0}
.vector-shape-palette>.check-label{font-size:11px;margin-top:10px}
.vector-shape-palette>.button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%}
#vectorCanvas[data-drawing-shape],#vectorCanvas[data-drawing-shape] *{cursor:crosshair!important}
#panelCanvas.motif-position-active{cursor:grab}
#panelCanvas.motif-position-dragging{cursor:grabbing}
#editorReference .reference-position-menu[open]>summary{border-color:var(--gold);background:var(--theme-selected);color:var(--gold-bright)}
#editorReference .reference-position>small{display:block!important;width:100%;font-size:11px;line-height:1.4}
.simple-element-menu{position:relative;flex:none}
.simple-element-menu>summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;border-color:var(--gold);color:var(--gold-bright);min-height:40px}
.simple-element-menu>summary svg{width:20px;height:20px}
.simple-element-options{position:absolute;z-index:120;top:calc(100% + 6px);left:0;width:285px;max-width:75vw;padding:8px;display:grid;gap:5px;border:1px solid var(--gold);border-radius:10px;background:var(--surface,#292b2c);box-shadow:0 12px 30px #0008}
.simple-element-options>.button{display:flex;gap:10px;align-items:center;justify-content:flex-start;padding:8px 10px;text-align:left;min-height:44px}
.simple-element-options>.button svg{width:40px;height:30px;flex:none;color:var(--gold)}
#simpleConstructionSettings .assembly-build-form{display:grid;gap:10px}
#simpleConstructionSettings .assembly-build-form>details,#simpleConstructionSettings .assembly-build-form>.element-layout{margin:0}
#simpleConstructionSettings .assembly-build-actions{position:sticky;bottom:0;background:var(--surface);padding:8px 0;z-index:2}
/* Assembly navigation shares the existing project row; only its list scrolls. */
.editor-toolbar .editor-library-action{flex-wrap:nowrap;gap:10px;height:40px;min-height:40px;max-height:40px}
.editor-library-action>#assemblyEditor:not([hidden]){display:flex;flex:1 1 0;min-width:0;height:40px;min-height:0;max-height:40px;padding:0;margin:0;border:0;background:none;gap:6px;container-type:normal;overflow:hidden}
.editor-library-action #assemblyEditor .assembly-editor-heading{display:flex;flex:0 0 auto;flex-wrap:nowrap;max-width:none;gap:3px;margin:0}
.editor-library-action #assemblyEditor .assembly-editor-heading>strong,.editor-library-action #assemblyEditor .assembly-editor-heading>.microcopy{display:none}
.editor-library-action #assemblyEditor .assembly-editor-heading .button{flex:0 0 30px!important;width:30px!important;min-width:30px;max-width:30px;height:36px!important;min-height:36px!important;padding:5px;font-size:11px}
.editor-library-action #assemblyEditor .assembly-editor-heading .action-caption{position:absolute!important;clip-path:inset(50%)!important;width:1px!important;height:1px!important;overflow:hidden!important;white-space:nowrap!important}
.editor-library-action #assemblyEditor .assembly-step-buttons{display:flex;gap:3px;margin:0}
.editor-library-action #assemblyEditor .assembly-editor-list{display:flex;flex-direction:row;flex:1 1 0;min-width:0;min-height:0;height:40px;padding:0;gap:5px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:var(--gold) transparent}
.editor-library-action #assemblyEditor .assembly-part{flex:0 0 160px;height:32px;min-height:32px;padding:1px 7px;gap:6px;border-radius:6px}
.editor-library-action #assemblyEditor .assembly-panel-thumb{flex:0 0 26px;min-width:26px;height:28px}
.editor-library-action #assemblyEditor .assembly-panel-thumb svg{width:100%;height:100%}
.editor-library-action #assemblyEditor .assembly-panel-info{padding-right:10px}
.editor-library-action #assemblyEditor .assembly-panel-info strong{font-size:10px;line-height:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.editor-library-action #assemblyEditor .assembly-panel-info small{font-size:9px;line-height:11px;white-space:nowrap}
.editor-library-action #assemblyEditor .assembly-panel-info small:nth-of-type(n+2){display:none}
.editor-library-action #assemblyEditor .assembly-selected-mark{right:4px;top:3px;font-size:11px}
.editor-toolbar .editor-library-action>.preview-notes-actions{flex:0 0 auto;flex-wrap:nowrap;height:40px;gap:7px;margin-left:auto}
.editor-toolbar .editor-library-action>.preview-notes-actions>button,.editor-toolbar .editor-library-action .project-notebook>summary{height:40px;min-height:40px;white-space:nowrap;padding:7px 10px}
@media(max-width:1450px){
 .editor-library-action:has(>#assemblyEditor:not([hidden])) #previewImageBtn .action-caption,.editor-library-action:has(>#assemblyEditor:not([hidden])) .project-notebook>summary>span{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
 .editor-library-action:has(>#assemblyEditor:not([hidden])) #previewImageBtn,.editor-library-action:has(>#assemblyEditor:not([hidden])) .project-notebook>summary{width:40px;justify-content:center;padding:8px}
}
body[data-controls=simple][data-has-assembly=true]:not([data-simple-step=motif]) .library-pane:not(:has(>#assemblyEditor)){display:none}
@media(min-width:1000px){
 body[data-controls=simple][data-has-assembly=true]:not([data-simple-step=motif]) .studio:not(.editor-expanded):has(.editor-library-action>#assemblyEditor){grid-template-columns:minmax(280px,1fr) var(--settings-width,350px)!important}
 body[data-controls=simple][data-has-assembly=true]:not([data-simple-step=motif]) .studio:not(.editor-expanded):has(.editor-library-action>#assemblyEditor)>.editor-pane{grid-column:1}
}
@media(min-width:641px) and (max-width:999px){
 body[data-controls=simple][data-has-assembly=true]:not([data-simple-step=motif]) .studio:not(.editor-expanded):has(.editor-library-action>#assemblyEditor){grid-template-columns:minmax(0,1fr)}
 body[data-controls=simple][data-has-assembly=true]:not([data-simple-step=motif]) .studio:has(.editor-library-action>#assemblyEditor)>.editor-pane{grid-column:1}
}
.pinned-workspace.scene-layout.assembly-workspace.assembly-resizable{grid-template-columns:minmax(260px,var(--assembly-left,55fr)) 12px minmax(430px,var(--assembly-right,45fr))!important;gap:4px}
.assembly-width-handle{align-self:stretch;min-height:80px;cursor:ew-resize;touch-action:none;position:relative;border-radius:6px;background:var(--surface);border:1px solid var(--line)}
.assembly-width-handle:before{content:'';position:absolute;left:4px;top:calc(50% - 28px);height:56px;width:2px;border-radius:2px;background:var(--gold)}
.assembly-width-handle:hover,.assembly-width-handle:focus-visible{background:var(--theme-selected);border-color:var(--gold);outline:none}
@container(max-width:900px){.pinned-workspace.scene-layout.assembly-workspace.assembly-resizable{grid-template-columns:minmax(0,1fr)!important}.assembly-width-handle{display:none}}
.assembly-reference-bar{border:1px solid #b99a55;border-radius:10px;padding:10px 12px;margin:0 0 12px;background:linear-gradient(115deg,#443a28,#2b2d2e);color:#f4ead4;flex:0 0 auto}
.assembly-reference-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.assembly-reference-actions>strong{display:flex;align-items:center;gap:6px;margin-right:auto}
.assembly-reference-bar svg{width:20px;height:20px;flex:none}
.assembly-reference-bar small{display:block;margin-top:6px;font-size:12px;line-height:1.4;color:#eee2c7}
.assembly-reference-bar .button{min-height:38px;padding:7px 12px;display:inline-flex;gap:7px;align-items:center}
.assembly-reference-bar .primary{color:#2a2112!important;font-weight:700}
.assembly-reference-bar details{position:relative}
.assembly-reference-bar summary{cursor:pointer;list-style:none;padding:8px;display:flex}
.assembly-reference-bar details[open]{flex:1 0 100%}
.assembly-reference-bar details p{font-size:13px;line-height:1.5;margin:4px 0}
#assemblyEditor .assembly-reference-actions>strong{width:100%}
#assemblyEditor .assembly-reference-actions .button{flex:1 1 auto;font-size:12px}
.reference-position{display:flex;gap:8px;flex-wrap:wrap;align-items:end;margin-top:8px;border-top:1px solid #b99a5533;padding-top:8px}
.reference-position>strong{display:flex;gap:6px;align-items:center;align-self:center;font-size:13px;margin-right:auto}
.reference-position label{display:grid;gap:3px;font-size:11px;margin:0}
.reference-position input{width:85px;padding:5px 8px;min-height:32px}
.reference-position select{padding:5px 8px;min-height:32px;max-width:190px}
.reference-position small{flex:1 0 100%;margin:0;font-size:11px}
#assemblyEditor .reference-position>strong{width:100%}
#editorReference{position:relative;margin:0 auto;padding:0;background:none;border:0;min-width:0;flex:0 1 auto}
#editorReference>.assembly-reference-actions{flex-wrap:nowrap;gap:6px}
@media(max-width:600px){#editorReference{max-width:100%}#editorReference>.assembly-reference-actions{flex-wrap:wrap}}
#editorReference .assembly-reference-actions>strong{display:none}
#editorReference .button{font-size:12px;white-space:nowrap;min-height:36px;padding:7px 10px}
#editorReference .assembly-reference-actions>details[open]{flex:none}
#editorReference .assembly-reference-actions>details:not(.reference-position-menu)[open]>p,#editorReference .reference-position{position:absolute;top:100%;right:0;z-index:90;width:340px;max-width:75vw;background:var(--surface,#2b2d2e);border:1px solid #b99a55;border-radius:8px;box-shadow:0 8px 25px #0008;padding:14px;color:var(--text,#eee);white-space:normal}
#editorReference .assembly-reference-actions>details small{display:none}
#editorReference .reference-position>strong{width:100%}
#editorReference[hidden]{display:none!important}
@media(max-width:1100px){#editorReference .button{font-size:11px;padding:6px}#editorReference .button svg{width:16px;height:16px}}
.assembly-primary-row{display:flex;align-items:stretch;gap:12px;margin:0 0 12px;flex-shrink:0;min-width:0}
.assembly-primary-row>.production-scope{flex:0 0 auto;margin:0!important;padding:10px 12px;display:flex;align-items:center;gap:10px;position:relative;max-width:310px;border-radius:10px}
.assembly-primary-row .production-scope-options{display:grid;gap:4px}
.assembly-primary-row>.production-scope>strong{display:flex;align-items:center;gap:7px;font-size:13px}
.assembly-primary-row .production-scope-options label{min-height:0;margin:0;padding:0;gap:6px;font-size:11px;line-height:1.4}
.assembly-primary-row .production-scope-options input{width:18px;height:18px;margin:0}
.assembly-primary-row .production-scope>p:empty{display:none}
.assembly-primary-row>.assembly-reference-bar{flex:1 1 auto;min-width:0;margin:0;padding:10px 12px}
.assembly-primary-row .assembly-reference-actions>strong{font-size:13px}
.assembly-primary-row .assembly-reference-actions .button{font-size:12px;min-height:34px;padding:6px 9px}
.assembly-primary-row .production-info summary{display:flex;cursor:pointer;list-style:none;color:var(--gold)}
.assembly-primary-row .production-info svg{width:18px;height:18px}
.assembly-primary-row .production-info[open]>p{position:absolute;z-index:100;top:100%;left:0;background:var(--surface,#292b2c);border:1px solid var(--gold);padding:12px;border-radius:8px;width:280px;box-shadow:0 8px 20px #0006}
.assembly-reference-bar .reference-position-menu{position:relative}
.assembly-reference-bar .reference-position-menu[open]{flex:none!important}
.assembly-reference-bar .reference-position-menu>.reference-position{position:absolute;top:100%;right:0;z-index:100;width:340px;max-width:75vw;padding:12px;background:var(--surface,#292b2c);color:var(--text,#eee);border:1px solid var(--gold);border-radius:8px;box-shadow:0 8px 20px #0007}
.simple-assembly-panels .simple-panel-choice{padding:8px 10px;min-height:48px;gap:10px;border-radius:8px}
.simple-assembly-panels .simple-panel-choice>b{display:grid;place-items:center;min-width:26px;height:26px;border-radius:7px;background:#ffffff08;color:var(--gold);font-size:13px}
.simple-assembly-panels .simple-panel-choice[aria-pressed=true]{border-color:var(--gold);box-shadow:inset 3px 0 var(--gold);background:var(--theme-selected)}
.simple-assembly-panels .simple-panel-choice small{font-size:11px;opacity:.8;line-height:1.3}
#simpleAssemblySettings>h3{font-size:15px;margin:10px 0 8px;line-height:1.3}
#simpleAssemblySettings .simple-panel-actions{display:flex;gap:7px;margin:0 0 10px;padding:0;border:0}
#simpleAssemblySettings .simple-panel-actions .primary{flex:1;justify-content:center}
#simpleAssemblySettings .assembly-icon-action{width:38px;padding:8px;flex:0 0 auto;justify-content:center}
#simpleAssemblySettings .element-visibility{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:8px 0}
#simpleAssemblySettings .element-visibility .element-frame-toggle{padding:8px;gap:7px;min-height:42px;font-size:12px;margin:0}
#simpleAssemblySettings .element-visibility .microcopy{grid-column:1/-1;margin:0;font-size:10px;opacity:.7}
#simpleAssemblySettings .element-layout,#simpleAssemblySettings .element-colors{margin:7px 0;border-radius:8px}
#simpleAssemblySettings details>summary{padding:10px 12px;min-height:42px;font-size:13px}
#simpleAssemblySettings .simple-panel-fields{padding:7px 10px;gap:8px}
#simpleAssemblySettings .simple-panel-fields input{min-height:34px;padding:6px 8px}
#simpleAssemblySettings form>button[type=submit]{width:100%;min-height:34px;margin:5px 0;justify-content:center}
@media(max-width:850px){.assembly-primary-row{flex-wrap:wrap}.assembly-primary-row>.production-scope{max-width:none;width:100%}.assembly-primary-row .production-scope-options{display:flex;flex-wrap:wrap}.assembly-primary-row>.assembly-reference-bar{flex-basis:100%}}
@media(min-width:851px){
 .assembly-primary-row .production-scope-options label{min-height:24px!important}
 #modalBody>.simple-assembly .simple-assembly-panels{display:flex;flex-direction:column;overflow:hidden;gap:0}
 .simple-assembly-panels .simple-list-heading{flex:none;margin:0 0 6px}
 .simple-assembly-panels #simpleAssemblyList{flex:0 0 auto;max-height:90px;overflow:auto;min-height:0;gap:4px}
 .simple-assembly-panels #simpleListResize{flex:none;margin:4px 0;height:10px;min-height:10px;padding:0}
 .simple-assembly-panels #simpleAssemblySettings{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding-top:8px;padding-right:5px}
 .simple-assembly-panels .simple-panel-choice{min-height:42px;padding:5px 10px}
 #simpleAssemblySettings>h3{display:none}
}
.assembly-settings-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;background:#0002;border-radius:8px;margin:0 0 9px}
.assembly-settings-tabs button{display:flex;justify-content:center;align-items:center;gap:6px;padding:7px 5px;min-height:34px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--muted,#bbb);font:inherit;font-size:12px;cursor:pointer}
.assembly-settings-tabs svg{width:18px;height:18px}
.assembly-settings-tabs button[aria-selected=true]{background:var(--theme-selected);border-color:var(--gold);color:var(--gold-bright)}
.assembly-setting-pane[hidden]{display:none!important}
#simpleAssemblySettings .assembly-setting-pane>details{border:0;padding:0;margin:0;background:none}
#simpleAssemblySettings .assembly-setting-pane>details>summary{display:none}
#simpleAssemblySettings .assembly-setting-pane .simple-panel-fields{padding:0;margin:0 0 8px}
#simpleAssemblySettings .assembly-setting-pane label{font-size:12px}
#simpleAssemblySettings .assembly-setting-pane input,#simpleAssemblySettings .assembly-setting-pane select{font-size:13px}
@media(prefers-reduced-motion:no-preference){.assembly-reference-bar .button{transition:background-color .15s,box-shadow .15s}.assembly-reference-bar .button:hover{box-shadow:0 2px 10px #0004}}

/* Physical motif alignment, shared by the editor and assembly. */
.reference-position .reference-align-grid{display:grid;grid-template-columns:repeat(3,40px);gap:5px;flex:0 0 auto;width:130px;margin:2px auto}
.reference-position .reference-align-grid>.button{width:40px;height:40px;min-height:40px;padding:6px;justify-content:center;color:var(--gold-bright,#f4cf82);border:1px solid var(--line,#66573d);border-radius:7px;background:var(--bg,#202225)}
.reference-position .reference-align-grid>.button[aria-pressed=true]{border-color:var(--gold,#d5b15b);background:var(--theme-selected,#51452d);box-shadow:0 0 0 1px var(--gold,#d5b15b)}
.reference-position .reference-align-grid svg{width:26px;height:26px}
.reference-position .reference-align-grid>.button:focus-visible{outline:2px solid var(--gold-bright);outline-offset:2px}
.reference-position>.reference-align-grid{flex-basis:100%;justify-content:center;width:100%}
.element-ral-choice.original-gold i{background:linear-gradient(118deg,#7d5e32 0%,#ad8749 8%,#d6b66f 22%,#ecd29a 34%,#fff1ce 43%,#e3c482 48%,#b48e4d 54%,#cfa95f 66%,#ead19a 82%,#d4ae65 91%,#997442 100%)}

.assembly-unified-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px;flex:none}
.assembly-unified-toolbar .button{display:flex;align-items:center;gap:7px}.assembly-unified-toolbar svg{width:19px;height:19px;color:var(--gold-bright)}
#assemblyDone{margin-left:auto}.assembly-unified-help{position:relative}.assembly-unified-help summary{list-style:none;cursor:pointer}
.assembly-unified-help[open]>p{position:absolute;top:100%;right:0;z-index:110;width:320px;max-width:75vw;padding:14px;border:1px solid var(--gold);background:var(--surface);border-radius:9px;box-shadow:0 8px 25px #0007;font-size:13px;line-height:1.55}
.assembly-element-pane[hidden]{display:none!important}.assembly-element-pane{display:grid;gap:10px}.assembly-element-pane>.element-layout{margin:0}
.assembly-element-pane .element-ral-options{grid-template-columns:repeat(4,minmax(0,1fr))}
.assembly-movement-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}.assembly-movement-tools h3{width:100%}.assembly-movement-tools>.button.action-icon-only{flex:0 0 40px;width:40px;height:40px;padding:8px;color:var(--gold-bright)}.assembly-movement-tools svg{width:21px;height:21px}
.assembly-movement-tools>#sceneOrder{flex:1 0 100%;width:100%;height:auto;min-height:40px;white-space:normal;justify-content:center;padding:8px 12px;line-height:1.4}
.assembly-movement-tools .assembly-grid-step{width:100%;max-width:none;flex-wrap:wrap;gap:8px}.assembly-movement-tools .assembly-move-status{width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere}

/* Preserve the simple two-column workspace: list above part settings. */
#sceneEditorSidebar.assembly-sidebar{display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;gap:0}
#sceneEditorSidebar>.assembly-navigation{border-right:0;border-bottom:1px solid var(--line);padding:8px;gap:6px;overflow:visible}
#sceneEditorSidebar .assembly-navigation [role=tablist]{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
#sceneEditorSidebar .assembly-navigation [role=tab]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:7px 3px;text-align:center;font-size:11px;min-width:0;flex:auto}
#sceneEditorSidebar .assembly-navigation h3{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
#sceneEditorSidebar .assembly-navigation h3>span{min-width:0;flex:1 1 auto}
#sceneEditorSidebar .assembly-list-toggle{margin-left:auto;padding:3px 6px;min-height:25px;font-size:10px;display:flex;gap:4px;align-items:center}
#sceneEditorSidebar .assembly-list-toggle svg{width:14px;height:14px}
#sceneEditorSidebar .assembly-list-toggle{flex:0 0 auto;max-width:100%;white-space:normal}
#sceneItems{max-height:92px;min-height:0;overflow:auto;display:grid;gap:4px}
#sceneItems .assembly-element-choice{display:flex;gap:9px;align-items:center;padding:6px 9px;min-height:38px}
#sceneItems .assembly-element-choice>span:last-child{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center}
#sceneEditorSidebar>.assembly-panel-stack{grid-column:1;grid-row:2;padding:10px;min-height:0;overflow:auto}
#sceneEditorSidebar>#sceneError{grid-column:1;grid-row:3}
#sceneEditorSidebar .simple-list-resize{height:7px;min-height:7px;margin:0;cursor:ns-resize}
#sceneEditorSidebar .assembly-element-actions .repair-row{display:flex;flex-wrap:wrap;gap:5px}
#sceneEditorSidebar .assembly-element-actions .button{font-size:11px;padding:6px 8px;min-height:32px}
#sceneEditorSidebar .assembly-settings-tabs{gap:3px;padding:3px}
#sceneEditorSidebar .assembly-settings-tabs button{flex-direction:column;gap:4px;font-size:11px;padding:7px 2px}
#sceneEditorSidebar .assembly-element-pane>.element-visibility{margin-bottom:0}

#sceneSettings .assembly-element-actions .action-icon-only{width:31px;min-width:31px;padding:6px;justify-content:center}
#sceneSettings .assembly-element-actions .action-icon-only svg{width:17px;height:17px;color:var(--gold-bright)}
#sceneSettings [data-scene-edit]{display:inline-flex;align-items:center;gap:7px;flex:1 1 auto;justify-content:center;order:-1}
#sceneSettings [data-scene-edit] svg{width:17px;height:17px}

/* The assembly header precedes the workspace in every application mode. */
#modal>#modalBody:has(>.assembly-unified-toolbar){display:flex;flex-direction:column;min-height:0;overflow:hidden}
#modalBody>.assembly-unified-toolbar,#modalBody>.assembly-primary-row{flex:0 0 auto}
#modalBody>.assembly-workspace{flex:1 1 0;min-height:260px}
@media(max-width:640px){
 #modal>#modalBody:has(>.assembly-unified-toolbar){display:block;overflow-y:auto}
 #modalBody>.assembly-workspace{height:auto;min-height:0}
}

.material-offer-enabled{display:flex!important;align-items:center;gap:8px}.material-offer-enabled input{width:18px;height:18px;accent-color:var(--gold)}
.material-not-offered{opacity:.7}.material-not-offered legend{color:var(--muted)}
input[readonly][aria-readonly=true]{color:var(--gold-bright);background:var(--surface);cursor:default}
.material-choice-grid>[hidden]{display:none!important}
#sceneReference{flex:none;margin-bottom:12px}

/* Single-column assembly dialogs scroll as one page; wide dialogs keep the preview fixed. */
@container(max-width:900px){
 #modal>#modalBody:has(>.assembly-unified-toolbar){display:block;overflow-y:auto;overflow-x:hidden}
 #modal>#modalBody>.assembly-workspace{height:auto!important;min-height:0;flex:none;overflow:visible;grid-template-rows:auto auto}
 #modal>#modalBody>.assembly-workspace>.assembly-preview{height:auto;min-height:0;overflow:visible}
 #modal>#modalBody>.assembly-workspace>.assembly-preview>.pinned-stage{height:clamp(200px,36vh,360px);min-height:200px;flex:none}
 #modal>#modalBody>.assembly-workspace>.assembly-sidebar{height:auto;min-height:0;max-height:none;overflow:visible}
 #modal>#modalBody>.assembly-workspace :is(.assembly-navigation,.assembly-panel-stack){height:auto;max-height:none;overflow:visible}
}
