.scene-editor{color-scheme:dark;--bg:#1c1825;--panel:#25202f;--line:#362f43;--muted:#a198b3;--accent:#bc98f9;--orange:#f4c459;--preview-scale:3}.scene-editor *{box-sizing:border-box}.scene-editor{margin:0;background:var(--bg);color:#e2dfe9;font:12px system-ui,sans-serif;overflow:hidden}.scene-editor button,.scene-editor input,.scene-editor select{font:inherit}.scene-editor button{background:#322b3f;border:1px solid #473f58;color:#e2dfe9;border-radius:4px;padding:6px 10px;cursor:pointer}.scene-editor button:hover{background:#423952}.scene-editor button:disabled{opacity:.4;cursor:default}.scene-editor .primary{color:#1f1a28;background:var(--accent);border-color:var(--accent);font-weight:650}.scene-editor .primary:hover{background:#d1b9fe}.scene-editor input,.scene-editor select{background:#1a1623;color:#e4e0ec;border:1px solid #463c57;border-radius:3px;padding:6px}.scene-editor input[type=checkbox]{accent-color:var(--accent)}.scene-editor header{height:52px;display:flex;align-items:center;gap:8px;padding:0 14px;border-bottom:1px solid var(--line);background:#292333}.scene-editor .brand{font-size:19px;font-weight:800;color:var(--accent);margin-right:22px}.scene-editor .brand b{font-size:10px;letter-spacing:2px;color:#e0dcea;vertical-align:middle;margin-left:6px}.scene-editor .spacer{flex:1}.scene-editor .separator{border-left:1px solid #403a4a;height:21px;margin:0 5px}.scene-editor #dirty{color:var(--muted);font-size:11px;margin-right:10px}.scene-editor .workspace{display:grid;height:calc(100vh - 78px);grid-template-columns:242px minmax(320px,1fr) 272px;grid-template-rows:minmax(260px,1fr) 290px;gap:4px;padding:4px}.scene-editor .panel{background:var(--panel);min-width:0;min-height:0;overflow:hidden}.scene-editor .panel-title{height:36px;border-bottom:1px solid var(--line);padding:0 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:600;color:#e9e6f0}.scene-editor .panel-title>span:nth-child(2){color:var(--muted);font-size:10px;letter-spacing:1px}.scene-editor .project{grid-row:1/3;display:flex;flex-direction:column}.scene-editor .project>input{margin:10px}.scene-editor #catalog{overflow:auto;max-height:45%;flex:1;padding:0 6px 8px}.scene-editor #catalog button{display:block;border:0;background:none;text-align:left;width:100%;padding:8px;color:#cdc8d9}.scene-editor #catalog button[aria-current=true]{background:#4f4365;color:#d4bffd;border-left:2px solid var(--accent)}.scene-editor #catalog button small{display:block;color:var(--muted);font-size:10px;margin-top:2px}.scene-editor #assets{overflow:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:5px 10px;flex:1;min-height:100px}.scene-editor #assets button{padding:2px;background:#1b1724;font-size:10px;height:81px;border-color:#3a324a}.scene-editor #assets button.selected{border-color:var(--accent);background:#3c3549}.scene-editor #assets img{width:100%;height:56px;object-fit:contain;image-rendering:pixelated;display:block}.scene-editor #more-assets{margin:8px}.scene-editor .composition{display:flex;flex-direction:column}.scene-editor #viewer{position:relative;display:flex;align-items:center;justify-content:center;flex:1;min-height:0;background:radial-gradient(#1c1825,#15111c);overflow:auto}.scene-editor #preview{width:calc(128px*var(--preview-scale));height:calc(128px*var(--preview-scale));image-rendering:pixelated;box-shadow:0 0 0 1px #473e57;background:#000000;flex-shrink:0}.scene-editor #preview-state{position:absolute;bottom:13px;background:#1c1726d9;border-radius:4px;padding:4px 9px;color:var(--muted);font:11px ui-monospace,monospace}.scene-editor .transport{height:46px;padding:8px 14px;display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);color:var(--muted)}.scene-editor #time{width:65px}.scene-editor .transport label{display:flex;align-items:center;gap:5px}.scene-editor .inspector{overflow:auto}.scene-editor #properties{padding:15px 12px}.scene-editor #properties p,.scene-editor .hint{color:var(--muted);line-height:1.7}.scene-editor .property-title{font-size:16px;color:#eeedf2;font-weight:650;margin-bottom:12px}.scene-editor .prop{display:grid;grid-template-columns:1fr 90px;align-items:center;gap:8px;margin:10px 0}.scene-editor .prop input,.scene-editor .prop select{width:100%}.scene-editor .opcode{color:var(--accent);font:10px monospace;margin-bottom:10px}.scene-editor .command-list{width:100%;margin:10px 0}.scene-editor .inspector>button{margin:10px 12px}.scene-editor #compile-info{padding:14px 12px;font:11px/1.8 ui-monospace,monospace;color:#c1bcce}.scene-editor .relocate{display:block;padding:4px 10px;color:#c3becf}.scene-editor .hint{padding:0 12px;font-size:11px}.scene-editor .timeline{grid-column:2/4}.scene-editor .timeline .panel-title{height:43px}.scene-editor .timeline .panel-title>div{display:flex;gap:6px;align-items:center}.scene-editor .timeline .panel-title button{padding:4px 8px}.scene-editor .timeline .panel-title label{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:6px}.scene-editor .timeline input[type=range]{width:75px;padding:0;accent-color:var(--accent)}.scene-editor #root-label{font-size:10px;color:var(--muted);margin-left:12px}.scene-editor #timeline-scroll{height:calc(100% - 43px);overflow:auto;position:relative}.scene-editor #timeline-content{position:relative;min-height:100%;width:1400px;padding-top:29px;background:repeating-linear-gradient(to right,transparent 0,transparent 119px,#ffffff07 119px,#ffffff07 120px)}.scene-editor #ruler{position:absolute;top:0;left:235px;height:29px;right:0;background:#221d2c;border-bottom:1px solid var(--line)}.scene-editor .ruler-label{position:absolute;font:10px monospace;top:7px;color:#aea6be;border-left:1px solid #544967;padding-left:5px;height:22px;cursor:pointer}.scene-editor .track{height:37px;position:relative;border-bottom:1px solid #332c41;background:#241f2e}.scene-editor .track:hover{background:#2e273b}.scene-editor .track.selected{background:#3c354a}.scene-editor .track-name{position:sticky;left:0;z-index:3;width:235px;height:36px;background:#2a2336;border-right:1px solid #4d4360;display:flex;align-items:center;padding:0 10px;gap:6px;color:#c3bdd0;cursor:pointer}.scene-editor .track.selected .track-name{background:#413950;color:#d6c2fd}.scene-editor .track-name small{color:#958ba9;margin-left:auto;font:9px monospace}.scene-editor .expand{font-size:9px;border:0;padding:3px;background:none}.scene-editor .key{position:absolute;top:13px;width:10px;height:10px;background:#b0a8c1;transform:rotate(45deg);border:1px solid #272230;cursor:ew-resize;z-index:2}.scene-editor .key.active{background:var(--orange);box-shadow:0 0 0 2px #a6863a}.scene-editor .clip{position:absolute;top:7px;height:23px;background:#776893aa;border:1px solid #8a7fa088;border-radius:3px;pointer-events:none}.scene-editor .track:nth-child(3n) .clip{background:#415878aa;border-color:#6687b288}.scene-editor .key.wait{border-radius:50%;background:#c1bccd}.scene-editor .key.resource{background:#9e83ce}.scene-editor .key.audio{background:#81b89c}.scene-editor #playhead{position:absolute;width:1px;top:0;bottom:0;background:var(--orange);z-index:4;pointer-events:none}.scene-editor #playhead:before{content:'';position:absolute;top:0;left:-5px;width:11px;height:10px;background:var(--orange);clip-path:polygon(0 0,100% 0,100% 50%,50% 100%,0 50%)}.scene-editor footer{height:26px;display:flex;justify-content:space-between;padding:5px 12px;color:#a299b4;font:10px ui-monospace,monospace}.scene-editor dialog{background:#272232;color:#e5e1ed;border:1px solid #615774;border-radius:8px;max-width:700px}.scene-editor dialog::backdrop{background:#06100eaa}.scene-editor dialog pre{white-space:pre-wrap;font:12px/1.8 monospace}.scene-editor dialog h2{font-size:19px}@media(max-width:1000px){.scene-editor .workspace{grid-template-columns:200px minmax(230px,1fr) 220px}.scene-editor .brand{margin-right:5px}.scene-editor .brand b{display:none}.scene-editor #dirty{display:none}.scene-editor .timeline .panel-title button{font-size:10px;padding:4px}.scene-editor .timeline .panel-title label{display:none}.scene-editor{--preview-scale:2}}@media(max-width:740px){.scene-editor{overflow:auto}.scene-editor header{flex-wrap:wrap;height:auto;min-height:52px;padding:8px}.scene-editor .workspace{height:auto;grid-template-columns:1fr 1fr;grid-template-rows:340px 220px 300px}.scene-editor .project{grid-column:1;grid-row:1/3}.scene-editor .composition{grid-column:2;grid-row:1}.scene-editor .inspector{grid-column:2;grid-row:2}.scene-editor .timeline{grid-column:1/3;grid-row:3}.scene-editor .transport{padding:4px;gap:4px;font-size:10px}.scene-editor #preview-scale{display:none}.scene-editor .timeline .panel-title{padding:0 5px}.scene-editor #root-label{display:none}.scene-editor footer{position:sticky;bottom:0;background:#1b1724}}.scene-editor #compile-info{white-space:pre-wrap;overflow-wrap:anywhere}.scene-editor .key{touch-action:none}.scene-editor dialog{width:min(700px,calc(100vw - 24px))}.scene-editor dialog pre{overflow-wrap:anywhere}.scene-editor .transport{flex-shrink:0}@media(max-width:1100px){.scene-editor .timeline .panel-title{height:auto;min-height:43px;flex-wrap:wrap;padding:6px}.scene-editor .timeline .panel-title>div{flex-wrap:wrap}.scene-editor #timeline-scroll{height:calc(100% - 80px)}}@media(max-width:740px){.scene-editor .workspace{display:flex;flex-direction:column}.scene-editor .composition{order:0;height:400px;flex-shrink:0}.scene-editor .project{order:1;height:440px;flex-shrink:0}.scene-editor .timeline{order:2;height:330px;flex-shrink:0}.scene-editor .inspector{order:3;max-height:none;overflow:visible}.scene-editor .transport{height:auto;min-height:46px;flex-wrap:wrap;padding:8px;gap:8px}.scene-editor #preview-scale{display:block}.scene-editor .timeline .panel-title>div{gap:5px}.scene-editor .timeline .panel-title button{min-height:30px}.scene-editor #assets{grid-template-columns:repeat(5,minmax(0,1fr))}.scene-editor header .spacer{display:none}.scene-editor footer{gap:8px;height:auto;min-height:26px}.scene-editor #compiler-state{display:none}}.scene-editor #ruler{left:245px}.scene-editor .help-link{color:#d4bffd;text-decoration:none;padding:6px}.scene-editor .clip.looping{background-image:repeating-linear-gradient(120deg,transparent,transparent 8px,#ffffff18 8px,#ffffff18 11px)}.scene-editor #preview{cursor:crosshair}.scene-editor #selection-outline{position:absolute;pointer-events:none;border:2px solid #d1b9fe;box-shadow:0 0 0 1px #15111caa;z-index:2}.scene-editor #selection-outline[hidden]{display:none}.scene-editor .asset-actions{padding:8px 10px;display:grid;grid-template-columns:1fr 1fr;gap:6px;flex-shrink:0;border-top:1px solid var(--line)}.scene-editor .asset-actions span{align-self:center;color:var(--muted);font:11px ui-monospace,monospace}.scene-editor .asset-actions button{font-size:11px;padding:6px}.scene-editor #apply-asset{grid-column:1/3}.scene-editor #more-assets{margin:0;grid-column:1/3}.scene-editor .transform-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 8px}.scene-editor .transform-field{display:flex;flex-direction:column;gap:5px;color:#c6c1d2;font-size:11px}.scene-editor .transform-field input{width:100%;min-width:0;font-size:13px;padding:7px}.scene-editor .transform-hint{font-size:11px;line-height:1.5!important;margin:10px 0 16px}.scene-editor #transform-properties>.primary{width:100%;margin-top:12px;padding:8px}.scene-editor .native-properties{border-top:1px solid var(--line);padding-top:10px;margin-top:12px}.scene-editor .native-properties summary{cursor:pointer;color:var(--muted);font-size:11px;margin-bottom:14px}.scene-editor .native-properties[open] summary{color:var(--accent)}.scene-editor .scene-name{display:flex;flex-direction:column;gap:6px;margin-bottom:16px;color:var(--muted)}.scene-editor .scene-name input{width:100%}.scene-editor /* Application surfaces do not select or drag page text. Editing and reports do. */
body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.scene-editor input,.scene-editor textarea,.scene-editor [contenteditable=true],.scene-editor #compile-report,.scene-editor #compile-info{-webkit-user-select:text;user-select:text}.scene-editor img,.scene-editor a{-webkit-user-drag:none}.scene-editor #app-context-menu{position:fixed;z-index:1000;width:250px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow:auto;background:#2a2336;border:1px solid #5a516d;border-radius:7px;padding:5px;box-shadow:0 8px 28px #00000099}.scene-editor #app-context-menu[hidden]{display:none}.scene-editor .context-title{padding:7px 8px 9px;color:#c4bcd4;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.scene-editor #app-context-menu button{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;border:0;background:none;border-radius:4px;padding:8px;text-align:left;font-size:12px;white-space:nowrap}.scene-editor #app-context-menu button:hover:enabled,.scene-editor #app-context-menu button:focus-visible{background:#5d4f77;color:#dac7ff;outline:none}.scene-editor #app-context-menu button:disabled{opacity:.4}.scene-editor #app-context-menu button span{font-size:10px;color:#aca4bd}.scene-editor #app-context-menu button.danger{color:#f1a0a0}.scene-editor .context-separator{height:1px;background:#453b57;margin:5px 3px}.scene-editor .transform-track{height:30px;background:#241e2e}.scene-editor .transform-track .track-name{height:29px;color:#b9a9db;font-size:11px}.scene-editor .property-key{position:absolute;top:10px;padding:0;width:10px;height:10px;border-radius:0;background:#bc98f9;border:1px solid #272230;transform:rotate(45deg);cursor:ew-resize;touch-action:none;z-index:2}.scene-editor .property-key.active{background:var(--orange);box-shadow:0 0 0 2px #a6863a}.scene-editor .clip-order{padding-top:10px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.scene-editor .settings-section{border-bottom:1px solid var(--line);padding:0 0 10px;margin-bottom:8px}.scene-editor .settings-section>summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;font-weight:650;color:#e1ddeb;padding:10px 0;min-height:36px}.scene-editor .settings-section>summary::-webkit-details-marker{display:none}.scene-editor .settings-section>summary::before{content:'>';color:var(--accent);font:700 15px ui-monospace,monospace;transition:transform .12s}.scene-editor .settings-section[open]>summary::before{transform:rotate(90deg)}.scene-editor .settings-section:not([open]){padding-bottom:0}.scene-editor .settings-section>summary:focus-visible{outline:1px solid var(--accent);border-radius:3px}.scene-editor .settings-section .settings-section{border:0;margin-top:12px;margin-bottom:0}.scene-editor .settings-note{font-size:11px;line-height:1.5!important;margin:7px 0;color:var(--muted)}.scene-editor .settings-check{display:flex;align-items:center;gap:7px;margin:12px 0}.scene-editor .settings-check input{padding:0}.scene-editor .native-properties{border-top:0;margin-top:0;padding-top:0}.scene-editor .native-properties summary{margin-bottom:0;font-size:12px}.scene-editor .standalone-section{margin:0 12px 12px}.scene-editor .standalone-section #compile-info{padding:6px 0;font-size:10px}.scene-editor .standalone-section .hint{padding:0}.scene-editor .sprite-frame-actions{display:flex;gap:6px}.scene-editor .sprite-frame-actions button{flex:1;font-size:11px;padding:5px 3px}.scene-editor .clip-order{border:0;padding-top:0}.scene-editor .transform-hint{margin-bottom:8px}.scene-editor .settings-section .prop{grid-template-columns:minmax(0,1fr) minmax(70px,95px)}.scene-editor .settings-section .prop select{width:100%;min-width:0}.scene-editor .settings-section .prop input{min-width:0}.scene-editor .settings-section .scene-name{margin-bottom:4px}.scene-editor .library-section{display:flex;flex-direction:column;min-height:0;margin:0;padding:0;flex:1}.scene-editor .library-section:not([open]){flex:0 0 auto}.scene-editor .library-section>summary{flex-shrink:0;padding:10px;font-size:12px}.scene-editor .library-section>summary span{margin-left:auto;color:var(--muted);font-size:10px}.scene-editor .library-body{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}.scene-editor .library-section:not([open])>.library-body{display:none}.scene-editor .library-body>input{margin:4px 10px 10px;width:calc(100% - 20px)}.scene-editor .library-body #catalog{max-height:none}.scene-editor .library-body #assets{min-height:0}.scene-editor .library-section::details-content{display:contents}.scene-editor #animations{overflow:auto;flex:1;min-height:0;padding:0 8px}.scene-editor .animation-card{display:flex;align-items:center;gap:8px;width:100%;text-align:left;margin-bottom:6px;padding:7px}.scene-editor .animation-card.selected{border-color:var(--accent);background:#403851}.scene-editor .animation-card img{width:42px;height:42px;object-fit:contain;image-rendering:pixelated;flex-shrink:0}.scene-editor .animation-card span{min-width:0;overflow-wrap:anywhere;font-size:11px}.scene-editor .animation-card small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.scene-editor .animation-actions{display:grid;gap:6px;padding:8px 10px;border-top:1px solid var(--line)}.scene-editor .animation-actions span{font-size:11px;color:var(--muted)}.scene-editor .symbol-frames{display:flex;gap:6px;overflow-x:auto;padding:8px 0}.scene-editor .symbol-frames button{padding:3px;flex:0 0 56px;font:11px ui-monospace,monospace}.scene-editor .symbol-frames button.selected{border-color:var(--accent);background:#5d4f77}.scene-editor .symbol-frame-image{display:block;width:48px;height:48px;background-repeat:no-repeat;image-rendering:pixelated}.scene-editor .settings-select{display:block;color:var(--muted);font-size:11px;margin-top:12px}.scene-editor .settings-select .command-list{display:block;margin:5px 0 12px}.scene-editor .workspace{grid-template-rows:minmax(260px,1fr) clamp(210px,32vh,290px)}.scene-editor #preview{touch-action:none}.scene-editor #canvas-hint{position:absolute;top:10px;max-width:calc(100% - 16px);padding:5px 8px;border-radius:4px;background:#1c1726e6;color:#c5bed2;font-size:10px;pointer-events:none;text-align:center}.scene-editor #canvas-hint[hidden]{display:none}.scene-editor .resize-handle{display:none;position:absolute;width:12px;height:12px;min-width:0;min-height:0;padding:0;border:2px solid #dac8fe;border-radius:2px;background:#c9adfc;pointer-events:auto;touch-action:none;transform:translate(-50%,-50%)}.scene-editor #selection-outline.editable .resize-handle{display:block}.scene-editor .resize-handle[data-corner=nw]{left:0;top:0;cursor:nwse-resize}.scene-editor .resize-handle[data-corner=ne]{left:100%;top:0;cursor:nesw-resize}.scene-editor .resize-handle[data-corner=se]{left:100%;top:100%;cursor:nwse-resize}.scene-editor .resize-handle[data-corner=sw]{left:0;top:100%;cursor:nesw-resize}.scene-editor .resize-handle:hover{background:#d1b9fe}.scene-editor .transforming{cursor:grabbing}.scene-editor .transforming #selection-outline{border-style:dashed}@media(pointer:coarse){.scene-editor .resize-handle{width:20px;height:20px}}.scene-editor #selection-outline.editable .rotation-handle{display:block}.scene-editor .rotation-handle{display:none;position:absolute;left:50%;top:-28px;width:16px;height:16px;padding:0;border:2px solid #dac8fe;border-radius:50%;background:#c9adfc;pointer-events:auto;touch-action:none;transform:translate(-50%,-50%);cursor:grab}.scene-editor .rotation-handle:after{content:'';position:absolute;left:50%;top:14px;height:19px;border-left:1px solid #d1b9fe;pointer-events:none}.scene-editor .rotation-handle:hover{background:#d1b9fe}@media(pointer:coarse){.scene-editor .rotation-handle{width:22px;height:22px}}.scene-editor .particle-library-body{padding:10px;gap:8px}.scene-editor .particle-range{padding-left:12px;border-left:1px solid var(--line)}.scene-editor .panel-title #project-device{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.scene-editor .particle-library{flex:0 0 auto}.scene-editor #particle-properties>details{margin-top:10px}
/* Digivice Color Modifier embedding */
.scene-editor{position:absolute;inset:0;display:flex;flex-direction:column;background:var(--bg);color:#e2dfe9;font:12px system-ui,sans-serif;overflow:hidden;-webkit-user-select:none;user-select:none}
.scene-editor input,.scene-editor textarea{-webkit-user-select:text;user-select:text}
.scene-editor>header{flex-shrink:0;height:46px;flex-wrap:nowrap;overflow-x:auto}
.scene-editor .workspace{flex:1;height:auto!important;min-height:0}
.scene-editor>footer{flex-shrink:0}
.scene-editor #assets canvas{width:100%;height:56px;display:block;image-rendering:pixelated}
.scene-editor .animation-card canvas{width:42px;height:42px;flex-shrink:0}
.scene-editor .symbol-frames canvas{display:block;margin:auto}
.scene-editor .key.callback{background:#7bd88f}
.scene-editor .events-now{color:#f4c459;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px}
.scene-editor .ctx-pick{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:11px;white-space:nowrap}
.scene-editor .ctx-pick select{max-width:150px;padding:4px}
.scene-editor .slot{margin:6px 0}
.scene-editor #viewer.drop-hover{box-shadow:inset 0 0 0 3px var(--accent2)!important}

/* ===================================================================== Scene Editor look (Digivice Color Modifier)
   Layout, colours and controls of the Digivice Color Modifier scene editor. */
.scene-editor{font:12px/1.35 system-ui,-apple-system,"Segoe UI",sans-serif}
.scene-editor>header{gap:6px;padding:0 10px;background:linear-gradient(180deg,#272033,#221c2d);border-bottom:1px solid var(--line);box-shadow:inset 0 -2px 0 #bc98f91f}
.scene-editor .brand-small{display:inline-flex;align-items:center;gap:7px;font-weight:800;letter-spacing:.16em;color:var(--text);font-size:11px;margin-right:4px;white-space:nowrap}
.scene-editor .brand-small b{color:var(--accent);margin-left:.4em}
.scene-editor .brand-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#f1ebff,var(--accent) 55%,#45375d);box-shadow:0 0 0 2px #bc98f92b,0 0 10px #bc98f966}
.scene-editor .panel-toggles{display:inline-flex;flex-shrink:0;border:1px solid var(--line2);border-radius:9px;overflow:hidden;background:#1b1724}
.scene-editor .panel-toggles .pt{border:0;border-radius:0;background:transparent;color:var(--muted);padding:5px 10px;white-space:nowrap;border-right:1px solid var(--line2);font-size:11px}
.scene-editor .panel-toggles .pt:last-child{border-right:0}
.scene-editor .panel-toggles .pt:hover{background:#ffffff0a;color:var(--text)}
.scene-editor .panel-toggles .pt[aria-pressed=true]{background:#bc98f924;color:var(--accent2)}
.scene-editor>header>button,.scene-editor>header button{white-space:nowrap}
.scene-editor button{border-radius:7px}
.scene-editor .primary{background:linear-gradient(180deg,var(--accent2),var(--accent));border-color:#0000;color:#1e172b}
.scene-editor .primary:hover{background:var(--accent2)}
.scene-editor input,.scene-editor select{border-radius:6px}
/* panels: rounded cards, uppercase captions */
.scene-editor .workspace{gap:6px;padding:6px;background:var(--bg)}
.scene-editor .panel{border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.scene-editor .panel-title{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#b7afc7;background:#ffffff05;height:34px}
.scene-editor .panel-title>span:nth-child(2){letter-spacing:.04em;text-transform:none}
.scene-editor #composition-title{color:var(--text)}
@media (min-width:741px){
  /* default "docks": the side panels run the full height, the timeline sits under the preview */
  .scene-editor .workspace{--sl:clamp(200px,17vw,270px);--sr:clamp(220px,19vw,300px);--tl:clamp(170px,30vh,300px);grid-template-columns:var(--sl) minmax(300px,1fr) var(--sr);grid-template-rows:minmax(200px,1fr) var(--tl);grid-template-areas:"lib stage props" "lib tl props"}
  .scene-editor .project{grid-area:lib}.scene-editor .composition{grid-area:stage}.scene-editor .inspector{grid-area:props}.scene-editor .timeline{grid-area:tl}
  .scene-editor.no-left .workspace{grid-template-columns:minmax(300px,1fr) var(--sr);grid-template-areas:"stage props" "tl props"}
  .scene-editor.no-right .workspace{grid-template-columns:var(--sl) minmax(300px,1fr);grid-template-areas:"lib stage" "lib tl"}
  .scene-editor.no-left.no-right .workspace{grid-template-columns:minmax(300px,1fr);grid-template-areas:"stage" "tl"}
  /* "wide timeline": the timeline runs the full width under everything */
  .scene-editor.wide-timeline .workspace{grid-template-areas:"lib stage props" "tl tl tl"}
  .scene-editor.wide-timeline.no-left .workspace{grid-template-areas:"stage props" "tl tl"}
  .scene-editor.wide-timeline.no-right .workspace{grid-template-areas:"lib stage" "tl tl"}
  .scene-editor.wide-timeline.no-left.no-right .workspace{grid-template-areas:"stage" "tl"}
  .scene-editor.no-timeline .workspace,.scene-editor.no-timeline.wide-timeline .workspace{grid-template-rows:minmax(200px,1fr);grid-template-areas:"lib stage props"}
  .scene-editor.no-timeline.no-left .workspace,.scene-editor.no-timeline.no-left.wide-timeline .workspace{grid-template-areas:"stage props"}
  .scene-editor.no-timeline.no-right .workspace,.scene-editor.no-timeline.no-right.wide-timeline .workspace{grid-template-areas:"lib stage"}
  .scene-editor.no-timeline.no-left.no-right .workspace,.scene-editor.no-timeline.no-left.no-right.wide-timeline .workspace{grid-template-areas:"stage"}
}
.scene-editor.no-left .project,.scene-editor.no-right .inspector,.scene-editor.no-timeline .timeline{display:none!important}
/* accordion sections: chevrons and an accent bar on the open one */
.scene-editor .settings-section>summary::before{content:'';flex:0 0 auto;width:6px;height:6px;margin:0 3px 0 2px;border-right:2px solid var(--accent);border-bottom:2px solid var(--accent);transform:rotate(-45deg);transition:transform .15s;font:inherit}
.scene-editor .settings-section[open]>summary::before{transform:rotate(45deg)}
.scene-editor .library-section>summary{border-left:3px solid transparent;color:#d3cde0}
.scene-editor .library-section>summary:hover{background:#ffffff06}
.scene-editor .library-section[open]>summary{border-left-color:var(--accent);background:#bc98f90f;color:var(--text)}
.scene-editor .library-section>summary span{background:#ffffff0d;border-radius:9px;padding:1px 7px;font-variant-numeric:tabular-nums}
.scene-editor .library-section>summary span:empty{display:none}
.scene-editor #properties>details.settings-section>summary{border-radius:6px;padding-left:6px}
.scene-editor #properties>details.settings-section[open]>summary{color:var(--accent2)}
/* lists */
.scene-editor #catalog button{border-radius:7px;margin:1px 0}
.scene-editor #catalog button[aria-current=true]{border-left:0;box-shadow:inset 3px 0 0 var(--accent)}
.scene-editor #assets button{border-radius:8px}
/* stage */
.scene-editor #viewer{background:radial-gradient(circle at 50% 40%,#251f30,#16121e 75%)}
.scene-editor #preview{box-shadow:0 0 0 1px #3d354c,0 10px 30px #0008;border-radius:2px}
.scene-editor .transport{gap:8px}
.scene-editor #play{min-width:40px;background:linear-gradient(180deg,var(--accent2),var(--accent));color:#1e172b;border-color:#0000;font-weight:700}
/* timeline: rounded keys, tinted clips, round playhead */
.scene-editor #timeline-content{background:repeating-linear-gradient(to right,transparent 0,transparent 119px,#ffffff08 119px,#ffffff08 120px)}
.scene-editor #ruler{background:#221c2d}
.scene-editor .track{background:#231d2d}
.scene-editor .track:hover{background:#2c2539}
.scene-editor .track-name{background:#292235}
.scene-editor .key,.scene-editor .property-key{transform:none;border-radius:3px}
.scene-editor .key.wait{border-radius:50%}
.scene-editor .key.audio{background:#f4c459;border-radius:50% 50% 3px 50%}
.scene-editor .clip{border-radius:6px;background:linear-gradient(180deg,#bc98f948,#bc98f926);border-color:#bc98f966}
.scene-editor .track:nth-child(3n) .clip{background:linear-gradient(180deg,#6cb2ff40,#6cb2ff20);border-color:#6cb2ff60}
.scene-editor #playhead:before{clip-path:none;border-radius:50%;width:11px;height:11px;left:-5px;top:1px;box-shadow:0 0 0 2px #16121e}
/* scene sounds */
.scene-editor .sounds-library .library-body{padding-top:2px}
.scene-editor #scene-sounds{overflow:auto;flex:1;min-height:0;padding:4px 8px;display:flex;flex-direction:column;gap:5px}
.scene-editor #scene-sounds .hint{padding:4px 2px;margin:0}
.scene-editor .scene-sound{display:flex;flex-direction:column;gap:2px;padding:3px 3px 4px;border:1px solid var(--line);border-radius:8px;background:var(--panel2)}
.scene-editor .scene-sound .ss-top{display:grid;grid-template-columns:auto auto auto minmax(0,1fr) auto;align-items:center;gap:3px}
.scene-editor .scene-sound .ss-meta{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:0 4px 0 6px;font-size:10px;color:var(--muted)}
.scene-editor .scene-sound .ss-vol{display:flex;align-items:center;gap:4px}
.scene-editor .scene-sound .ss-kind{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.scene-editor .scene-sound button{padding:4px 6px}
.scene-editor .scene-sound .sound-frame{font:10px ui-monospace,monospace;color:var(--accent2);background:#bc98f914;border-color:#0000;min-width:34px}
.scene-editor .scene-sound .sound-play{color:var(--accent2)}
.scene-editor .scene-sound .sound-name{text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:transparent;border-color:#0000}
.scene-editor .scene-sound .sound-name:hover{background:#ffffff0a}
.scene-editor .scene-sound .sound-tag{margin-left:6px;color:var(--orange);font-size:9px;text-transform:uppercase;letter-spacing:.05em}
.scene-editor .scene-sound .sound-volume{width:48px;padding:2px 4px;font-size:11px}
.scene-editor .scene-sound .sound-remove{color:#f17b7b;background:transparent;border-color:#0000}
.scene-editor .scene-sound.drop-hover{outline:2px solid var(--accent)}
.scene-editor .sound-actions{display:grid;gap:4px;padding:8px 10px;border-top:1px solid var(--line)}
.scene-editor .sound-actions .settings-check{margin:4px 0;color:var(--muted)}
/* footer */
.scene-editor>footer{align-items:center;background:#1b1724;border-top:1px solid var(--line)}
.scene-editor .footer-right{display:flex;align-items:center;gap:12px;min-width:0}
.scene-editor .link-button{background:none;border:0;padding:0 2px;color:var(--accent2);font:inherit;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.scene-editor .link-button:hover{background:none;color:#f1ebff}
.scene-editor>footer #dirty{color:var(--muted);margin-right:0}
.scene-editor>footer #dirty:empty{display:none}
.scene-editor .library-section>summary{min-height:32px;padding:7px 10px}
.scene-editor .asset-actions{gap:5px;padding:6px 8px}
.scene-editor .asset-actions button{padding:5px 6px}
.scene-editor #import-sprite{grid-column:auto}
.scene-editor #apply-asset{grid-column:auto}
.scene-editor #more-assets{display:none!important}
.scene-editor #assets{min-height:120px}
/* sprite cards: picture above the number, three per row whatever the width */
.scene-editor #assets{grid-template-columns:repeat(3,minmax(0,1fr));align-content:start}
.scene-editor #assets button{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:2px;min-width:0;overflow:hidden;font:10px ui-monospace,monospace;color:var(--muted)}
/* the timeline's title bar wraps instead of hiding buttons; the tracks take the rest */
.scene-editor .timeline{display:flex;flex-direction:column}
.scene-editor .timeline .panel-title{height:auto;min-height:40px;flex-wrap:wrap;padding:5px 10px;row-gap:5px}
.scene-editor .timeline .panel-title>div{flex-wrap:wrap;row-gap:4px}
.scene-editor .timeline .panel-title>span:first-child{white-space:nowrap}
.scene-editor #timeline-scroll{flex:1;height:auto!important;min-height:0}
/* the toolbar wraps on narrow windows */
.scene-editor>header{flex-wrap:wrap;height:auto;min-height:46px;padding:6px 10px;row-gap:6px;overflow-x:visible}
.scene-editor .asset-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
.scene-editor .asset-actions button,.scene-editor .asset-actions span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.scene-editor .ctx-pick select{max-width:136px}

/* ===================================================================== Scene Editor 1.2: one top bar, open scenes, empty state */
.scene-tools{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.scene-tools .panel-toggles{display:inline-flex;flex-shrink:0;border:1px solid var(--line2);border-radius:8px;overflow:hidden;background:#1b1724;margin-right:4px}
.scene-tools .panel-toggles .pt{border:0;border-radius:0;background:transparent;color:var(--muted);padding:5px 7px;border-right:1px solid var(--line2)}
.scene-tools .panel-toggles .pt:last-child{border-right:0}
.scene-tools .panel-toggles .pt:hover{background:#ffffff0a;color:var(--text)}
.scene-tools .panel-toggles .pt[aria-pressed=true]{background:#bc98f924;color:var(--accent2)}
.scene-tools>button{padding:5px 9px;font-size:12px}
.scene-editor>.workspace{flex:1}
.scene-editor #empty-state{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:20px;z-index:3}
.scene-editor #empty-state[hidden]{display:none}
.scene-editor #empty-state h3{margin:0;font-size:16px;color:var(--text)}
.scene-editor #empty-state p{margin:0;color:var(--muted);max-width:380px;line-height:1.5}
.scene-editor #empty-state .hint{font-size:11px;padding:0}
.scene-editor .empty-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin:6px 0}
.scene-editor.no-scene #preview,.scene-editor.no-scene #preview-state{visibility:hidden}
.scene-editor #open-scenes{overflow:auto;flex:1;min-height:0;padding:2px 6px 8px;display:flex;flex-direction:column;gap:3px}
.scene-editor #open-scenes .hint{padding:6px 4px;margin:0}
.scene-editor .open-scene{display:flex;align-items:stretch;border-radius:7px}
.scene-editor .open-scene:hover{background:#ffffff06}
.scene-editor .open-scene[aria-current=true]{background:#4f4365;box-shadow:inset 3px 0 0 var(--accent)}
.scene-editor .open-scene-name{display:block;flex:1;min-width:0;text-align:left;border:0;background:none;padding:7px 8px;color:#cdc8d9;overflow:hidden;text-overflow:ellipsis;white-space:normal}
.scene-editor .open-scene-name:hover{background:none}
.scene-editor .open-scene[aria-current=true] .open-scene-name{color:#d4bffd}
.scene-editor .open-scene-name small{display:block;color:var(--muted);font-size:10px;margin-top:2px}
.scene-editor .open-scene-close{border:0;background:none;color:var(--muted);padding:4px 9px}
.scene-editor .open-scene-close:hover{color:#f17b7b;background:none}
.scene-editor .scene-actions{display:grid;gap:5px;padding:8px 10px;border-top:1px solid var(--line)}
.scene-editor .scene-actions button{white-space:normal;line-height:1.25}
.scene-editor .asset-actions button{white-space:normal;line-height:1.2;text-overflow:clip}
.scene-editor .asset-actions #d7caf2-sprite,.scene-editor .asset-actions #apply-asset{grid-column:1/3}
.scene-editor .sound-actions #stop-sounds{color:var(--muted)}
.scene-editor .scene-sound .sound-play.on{color:var(--orange)}
.scene-editor .scene-sound .sound-stop{color:var(--muted)}
.scene-editor .ctx-group{display:flex;align-items:center;gap:8px;min-width:0}
.scene-editor .ctx-group[hidden],.scene-editor .ctx-pick[hidden]{display:none!important}
.scene-editor .ctx-title{color:var(--muted);font-size:11px;border-bottom:1px dotted var(--muted);cursor:help;white-space:nowrap}
.scene-editor .palette-strip{display:flex;gap:4px;flex-wrap:wrap;margin:2px 0 8px}
.scene-editor .palette-strip button{padding:2px 3px;display:flex;flex-direction:column;align-items:center;gap:1px;font:10px ui-monospace,monospace;color:var(--muted)}
.scene-editor .palette-strip button.selected{border-color:var(--accent);background:#5d4f77;color:var(--text)}
/* dialogs of the scene editor (outside .scene-editor) */
.scene-picker{display:flex;flex-direction:column;gap:8px}
.scene-pick-list{max-height:60vh;overflow:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:4px;align-content:start}
.scene-pick-cat{grid-column:1/-1;font-size:10px;letter-spacing:1.5px;text-transform:uppercase;color:var(--faint);padding:8px 2px 2px}
.scene-pick{justify-content:flex-start;text-align:left;gap:8px;padding:4px 8px;white-space:normal}
.scene-pick.open{border-color:var(--accent)}
.scene-pick span{display:flex;flex-direction:column;min-width:0}
.scene-pick small{color:var(--muted);font-size:11px}
.replace-image .rp-grid{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;align-items:stretch}
.replace-image .rp-side{border:1px solid var(--line);border-radius:8px;padding:10px;background:var(--panel2)}
.replace-image .rp-side h3{margin:0 0 8px;font-size:13px;color:var(--accent2)}
.replace-image .rp-row{display:flex;gap:10px}
.replace-image .rp-pic{width:76px;height:76px;flex:0 0 76px;display:flex;align-items:center;justify-content:center;background:#16121d;border:1px solid var(--line);border-radius:6px}
.replace-image .rp-fields{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}
.replace-image .rp-fields .field{margin:0}
.replace-image .rp-fields select{width:100%}
.replace-image .rp-id{display:flex;gap:4px;flex-wrap:wrap;align-items:center}
.replace-image .rp-buttons{display:inline-flex;gap:4px;flex-wrap:wrap}
.replace-image .rp-arrow{align-self:center;font-size:22px;color:var(--muted)}
.replace-image .rp-chips{display:flex;flex-wrap:wrap;gap:4px;max-height:140px;overflow:auto}
.replace-image .rp-chip{padding:2px 6px;gap:4px;font-size:11px}
.replace-image .rp-chip.on{border-color:var(--accent);background:var(--accent-bg)}
.replace-image .rp-info{display:flex;flex-direction:column;gap:4px;margin:8px 0}
@media (max-width:760px){.replace-image .rp-grid{grid-template-columns:1fr}.replace-image .rp-arrow{transform:rotate(90deg);justify-self:center}}
.scene-editor .scene-sound .ss-top{grid-template-columns:minmax(0,1fr) auto}
.scene-editor .scene-sound .sound-name{white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip;line-height:1.25;padding:3px 4px;font-weight:600}
.scene-editor .scene-sound .ss-meta{justify-content:flex-start;gap:3px;padding:0 2px}
.scene-editor .scene-sound .ss-meta .ss-kind{flex:1;min-width:0;padding-left:3px}
.scene-editor .scene-sound .ss-meta button{padding:3px 6px}
.scene-editor .scene-sound .sound-kind{margin-left:6px;color:var(--muted);font-size:10px;font-weight:400}
.scene-editor .scene-sound .sound-volume{width:44px}
.scene-editor .scene-sound .sound-name{display:block;text-align:left}
.scene-editor .scene-sound .sound-kind,.scene-editor .scene-sound .sound-tag{white-space:nowrap}
/* Replace Image in Entire Scene: a green button under the library buttons */
.scene-editor .asset-actions #swap-gfx{grid-column:1/3;background:linear-gradient(180deg,#3cb371,#2e9a5d);border-color:#46c47d;color:#06210f;font-weight:700}
.scene-editor .asset-actions #swap-gfx:hover:not(:disabled){background:linear-gradient(180deg,#4fcb84,#36ad69)}
.scene-editor .asset-actions #swap-gfx:disabled{filter:grayscale(.6)}
.scene-editor .asset-actions #swap-gfx-clip{grid-column:1/3;background:#1d3326;border-color:#3cb371;color:#c4f2d6;font-weight:600}
.scene-editor .asset-actions #swap-gfx-clip:hover:not(:disabled){background:#25432f}
.scene-editor .asset-actions #swap-gfx-clip:disabled{filter:grayscale(.6)}
/* drag handles between the panels */
.scene-editor .panel{position:relative}
.scene-editor .split-handle{position:absolute;z-index:8;touch-action:none;background:transparent;transition:background .12s}
.scene-editor .split-handle.left{top:0;bottom:0;right:0;width:6px;cursor:col-resize}
.scene-editor .split-handle.right{top:0;bottom:0;left:0;width:6px;cursor:col-resize}
.scene-editor .split-handle.timeline{left:0;right:0;top:0;height:6px;cursor:row-resize}
.scene-editor .split-handle:hover,.scene-editor.resizing .split-handle{background:#bc98f955}
.scene-editor.resizing-col,.scene-editor.resizing-col *{cursor:col-resize!important;user-select:none}
.scene-editor.resizing-row,.scene-editor.resizing-row *{cursor:row-resize!important;user-select:none}
@media (max-width:740px){.scene-editor .split-handle{display:none}}
/* a thin transport bar */
.scene-editor .transport{height:28px!important;min-height:28px!important;padding:2px 8px!important;gap:6px!important;font-size:11px}
.scene-editor .transport button{height:22px;min-height:0;padding:0 8px;font-size:11px;line-height:1;border-radius:5px}
.scene-editor .transport #play{min-width:30px}
.scene-editor .transport input,.scene-editor .transport select{height:22px;padding:0 5px;font-size:11px}
.scene-editor .transport #time{width:54px}
.scene-editor .transport .ctx-pick select{padding:0 4px}
@media (max-width:740px){.scene-editor .transport{height:auto!important;flex-wrap:wrap}}
.replace-image .rp-name{font:12px ui-monospace,Menlo,Consolas,monospace;color:var(--accent2);margin:-4px 0 8px;overflow-wrap:anywhere}
.replace-image .rp-chip span{font:10.5px ui-monospace,Menlo,Consolas,monospace}
/* highlighted action (Add with original animation) */
.scene-editor button.highlight{background:linear-gradient(135deg,#ffb347,#ff5fa2);border-color:#ff8fbd;color:#2a1626;font-weight:700;box-shadow:0 0 0 1px #ff5fa255,0 0 10px #ff5fa255}
.scene-editor button.highlight:hover:not(:disabled){background:linear-gradient(135deg,#ffc56b,#ff7ab4)}
/* On screen: the pictures of the current frame */
.scene-editor #onscreen{overflow:auto;flex:1;min-height:0;padding:0 8px 8px;display:flex;flex-direction:column;gap:4px}
.scene-editor .onscreen-library .hint{margin:0 0 8px;padding:0 10px}
.scene-editor .onscreen-row{display:flex;align-items:center;gap:8px;width:100%;text-align:left;padding:5px 7px;background:#1f1a29;border-color:#3a324a}
.scene-editor .onscreen-row.selected{border-color:var(--accent);background:#403851}
.scene-editor .onscreen-row span{min-width:0;overflow-wrap:anywhere;font-size:11px}
.scene-editor .onscreen-row small{display:block;color:var(--muted);font:10px ui-monospace,Menlo,Consolas,monospace;margin-top:2px}
.scene-editor .onscreen-row .pic,.scene-editor .onscreen-row canvas,.scene-editor .onscreen-row img{flex-shrink:0}
.scene-editor .onscreen-item{display:flex;align-items:stretch;gap:4px}
.scene-editor .onscreen-item .onscreen-row{flex:1;min-width:0;width:auto}
.scene-editor .onscreen-remove{flex-shrink:0;padding:0 9px;background:#1f1a29;border-color:#3a324a;color:var(--muted);font-size:12px}
.scene-editor .onscreen-remove:hover:not(:disabled){color:#ff9a9a;border-color:#7a3a46;background:#2c1d26}
.scene-editor .onscreen-remove:disabled{opacity:.35;cursor:default}
.scene-editor #hover-outline{position:absolute;pointer-events:none;border:2px dashed var(--orange);box-shadow:0 0 0 1px #15111caa;z-index:3}
.scene-editor #hover-outline[hidden]{display:none}
/* particle preview */
.scene-editor .particle-preview{display:flex;flex-direction:column;align-items:center;gap:6px;margin:8px 0}
.scene-editor #particle-canvas{width:192px;height:192px;image-rendering:pixelated;background:#000;box-shadow:0 0 0 1px #473e57;border-radius:3px}
.scene-editor .particle-nav{display:flex;align-items:center;gap:6px;width:100%;justify-content:space-between}
.scene-editor .particle-nav span{color:var(--muted);font-size:10.5px;text-align:center;flex:1}
.scene-editor .particle-nav button{padding:2px 9px}

/* Animation section (copy, paste, speed & timing, remove, curve) */
.scene-editor .animation-buttons{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:6px 0 8px}.scene-editor .animation-buttons button{padding:6px 8px}.scene-editor .anim-clipboard{color:var(--accent)}
.scene-editor .colour-adjust{margin-top:10px;padding-top:8px;border-top:1px solid var(--line)}
.scene-editor .colour-adjust .colour-title{margin:0 0 4px;font-size:11px;font-weight:650;color:#e1ddeb}
.scene-editor .colour-preview{display:flex;align-items:center;justify-content:center;gap:10px;margin:8px 0;min-height:40px}
.scene-editor .colour-preview canvas{image-rendering:pixelated;background:#000;border:1px solid var(--line);border-radius:3px;max-width:72px;max-height:72px}
.scene-editor .colour-preview span{color:var(--muted)}
.scene-editor .apply-all-button{width:100%;margin-top:8px;font-size:11px;padding:6px 4px}

.scene-editor .asset-filters{display:flex;gap:6px;margin:4px 10px 10px;flex-shrink:0}
.scene-editor .asset-filters #search-asset{flex:1;min-width:0}
.scene-editor .asset-filters #asset-range{width:92px;flex-shrink:0;padding:5px 4px}
.scene-editor .asset-actions #export-assets{grid-column:1/3}
.scene-editor .command-buttons{display:flex;gap:6px;flex-wrap:wrap;margin:4px 0 8px}
.scene-editor .command-buttons button{flex:1}
.scene-editor button.danger{border-color:#7a3b46;color:#ffc4cc}
.scene-editor button.danger:hover:not(:disabled){background:#5a2a33}
/* (1.45) the Graphics tab's Add new images and Replace images: highlighted, each across the panel */
.scene-editor .asset-actions .lib-highlight{grid-column:1/3;background:linear-gradient(180deg,#ffd98a,var(--orange));border-color:var(--orange);color:#1e172b;font-weight:650}
.scene-editor .asset-actions .lib-highlight:hover{background:#ffe3a6}
.scene-editor .asset-actions .lib-highlight:disabled{opacity:.45}
/* (1.45.4) the top bar's scene copy, template and export buttons highlighted, as the Graphics tab's library buttons */
.scene-tools>button.tb-highlight{background:linear-gradient(180deg,#ffd98a,var(--orange));border-color:var(--orange);color:#1e172b;font-weight:650}
.scene-tools>button.tb-highlight:hover:not(:disabled){background:#ffe3a6}
.scene-tools>button.tb-highlight:disabled{opacity:.45}
