.scene-workbench.is-code-studio{--cs-chat:400px;--cs-top:56px}.scene-workbench.is-code-studio:has(.code-studio.is-chat-closed){--cs-chat:0px}.scene-workbench.is-code-studio>.infrastructure-world-map,.scene-workbench.is-code-studio>.scene-sidebar,.scene-workbench.is-code-studio>.scene-view{display:none!important}.scene-workbench.is-code-studio>.scene-canvas{top:var(--cs-top);left:12px;right:12px;bottom:12px;border:1px solid var(--studio-border);border-radius:12px;overflow:hidden}.scene-workbench.is-code-studio:not(:has(.code-studio.is-chat-closed))>.scene-canvas{left:calc(24px + var(--cs-chat))}.scene-workbench.is-code-studio:has(.code-studio.is-chat-closed)>.scene-canvas{left:12px}.scene-workbench>.code-studio{z-index:60;background:transparent!important}.code-studio{position:absolute;inset:0;z-index:60;display:grid;grid-template-columns:var(--cs-chat,400px) minmax(0,1fr);grid-template-rows:var(--cs-top,56px) minmax(0,1fr);column-gap:12px;padding:0 12px 12px;pointer-events:none;color:var(--studio-text-primary);font-family:var(--studio-font);font-size:13px}.code-studio.is-chat-closed{grid-template-columns:minmax(0,1fr);column-gap:0}.code-studio>*{pointer-events:auto}.code-studio button{font-size:12.5px!important}.code-studio :is(button,select,textarea):focus-visible{outline:2px solid var(--studio-accent-border)!important;outline-offset:1px}.cs-top{grid-column:1/-1;gap:12px;background:var(--studio-bg-canvas)}.cs-top,.cs-top-left{display:flex;align-items:center;min-width:0}.cs-top-left{gap:8px;width:calc(var(--cs-chat,400px) - 12px);flex-shrink:0}.code-studio.is-chat-closed .cs-top-left{width:auto}.cs-brand{width:30px;height:30px;min-height:30px!important;padding:0!important;border-radius:9px!important;background:var(--studio-accent)!important;color:var(--studio-on-accent)!important}.cs-brand:hover{background:var(--studio-accent-hover)!important}.cs-sep{color:var(--studio-text-muted);opacity:.55}.cs-project{font-weight:600;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;max-width:160px}.cs-crumb{color:var(--studio-text-secondary);white-space:nowrap}.cs-top-icons{display:flex;gap:2px;margin-left:auto}.cs-icon{width:30px;height:30px;min-height:30px!important;padding:0!important;border-radius:8px!important;color:var(--studio-text-secondary)!important;background:transparent!important}.cs-icon:hover:not(:disabled){background:var(--studio-bg-hover)!important;color:var(--studio-text-primary)!important}.cs-icon.is-active{background:var(--studio-accent-soft)!important;color:var(--studio-accent)!important}.cs-tabs{display:flex;gap:2px;padding:3px;border:1px solid var(--studio-border);border-radius:12px;background:var(--studio-bg-panel);flex-shrink:0}.cs-tabs button{min-height:28px!important;padding:4px 10px!important;border-radius:9px!important;color:var(--studio-text-secondary);gap:6px}.cs-tabs button.is-active{background:var(--studio-accent-soft)!important;color:var(--studio-accent)!important}.cs-address{flex:1 1 auto;max-width:440px;min-width:0;margin:0 auto;display:flex;align-items:center;gap:2px;height:32px;padding:0 4px 0 12px;border:1px solid var(--studio-border);border-radius:999px;background:var(--studio-bg-panel)}.cs-address-slash{color:var(--studio-text-muted);margin-right:4px}.cs-address-select{position:relative;flex:1 1 auto;min-width:0;display:flex;align-items:center}.cs-address-select select{appearance:none;width:100%;min-width:0;border:0!important;background:transparent!important;padding:4px 18px 4px 0!important;color:var(--studio-text-primary);font-size:12.5px!important;text-overflow:ellipsis;cursor:pointer}.cs-address-select svg{position:absolute;right:2px;pointer-events:none;color:var(--studio-text-muted)}.cs-address-part{color:var(--studio-text-muted);font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px}.cs-address .cs-icon{width:26px;height:26px;min-height:26px!important}.cs-top-right{display:flex;align-items:center;gap:8px;flex-shrink:0}.cs-light-btn,.cs-outline-btn,.cs-primary-btn{display:inline-flex;align-items:center;gap:6px;min-height:32px!important;padding:6px 12px!important;border-radius:8px!important;font-weight:500;white-space:nowrap}.cs-light-btn{background:var(--studio-text-primary)!important;color:var(--studio-bg-canvas)!important}.cs-light-btn:hover{opacity:.9}.cs-outline-btn{border:1px solid var(--studio-border-strong)!important;background:transparent!important;color:var(--studio-text-primary)!important}.cs-outline-btn:hover:not(:disabled){background:var(--studio-bg-hover)!important}.cs-primary-btn{background:var(--studio-accent)!important;color:var(--studio-on-accent)!important}.cs-primary-btn:hover:not(:disabled){background:var(--studio-accent-hover)!important}.cs-chat{grid-column:1;grid-row:2;flex-direction:column;background:var(--studio-bg-canvas)}.cs-chat,.cs-feed{display:flex;min-height:0}.cs-feed{flex:1 1 auto;overflow:auto;padding:6px 6px 12px 2px;flex-direction:column;gap:12px;scrollbar-width:thin}.cs-object-card{border:1px solid var(--studio-border);border-radius:12px;background:var(--studio-bg-panel);padding:12px;display:grid;gap:8px}.cs-object-card.is-empty{display:flex;gap:9px;align-items:flex-start;color:var(--studio-text-secondary);line-height:1.5;font-size:12.5px}.cs-object-card.is-empty svg{flex-shrink:0;margin-top:2px}.cs-object-head{display:flex;align-items:center;gap:8px;min-width:0}.cs-object-head strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.cs-badge{margin-left:auto;flex-shrink:0;padding:2px 8px;border-radius:999px;background:var(--studio-accent-soft);color:var(--studio-accent);font-size:10.5px;font-weight:600}.cs-object-card dl{margin:0;display:grid;gap:5px}.cs-object-card dl>div{display:grid;grid-template-columns:72px minmax(0,1fr);gap:8px;font-size:12px}.cs-object-card dt{color:var(--studio-text-muted)}.cs-object-card dd{margin:0;color:var(--studio-text-secondary);display:flex;align-items:center;gap:6px;flex-wrap:wrap;overflow-wrap:anywhere}.cs-swatches{display:inline-flex;gap:3px}.cs-swatches i{width:12px;height:12px;border-radius:4px;border:1px solid var(--studio-border-strong)}.cs-object-note{margin:0;font-size:11.5px;color:var(--studio-success)}.cs-brand-word{font-style:italic;font-weight:800;font-size:15px;letter-spacing:-.01em}.cs-feed-intro{display:grid;gap:6px}.cs-feed-intro p,.cs-feed-text{margin:0;line-height:1.6;color:var(--studio-text-secondary);font-size:13px;white-space:pre-wrap}.cs-feed-text.is-explain{padding:10px 12px;border-radius:10px;background:var(--studio-bg-panel);border:1px solid var(--studio-border)}.cs-feed-user{align-self:flex-end;max-width:85%;padding:10px 14px;border-radius:12px;background:var(--studio-bg-elevated);line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.cs-feed-error{margin:0;display:flex;gap:8px;align-items:flex-start;color:var(--studio-danger);line-height:1.5;font-size:12.5px}.cs-feed-error svg{flex-shrink:0;margin-top:3px}.cs-feed-action>button{min-height:24px!important;padding:2px 0!important;gap:8px!important;color:var(--studio-text-secondary);background:transparent!important;justify-content:flex-start!important;text-align:left}.cs-feed-action>button:disabled{opacity:1!important;cursor:default!important}.cs-feed-action>button:hover:not(:disabled){color:var(--studio-text-primary)}.cs-feed-chevron{transition:transform var(--studio-duration)}.cs-feed-action.is-open .cs-feed-chevron{transform:rotate(90deg)}.cs-feed-action ul{margin:6px 0 0 23px;padding:8px 10px 8px 22px;border-left:1px solid var(--studio-border);color:var(--studio-text-muted);font-size:11.5px;line-height:1.6;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;max-height:220px;overflow:auto}.cs-feed-status{display:flex;align-items:center;gap:8px;color:var(--studio-text-secondary);font-size:12.5px}.cs-spin{animation:cs-spin .9s linear infinite}@keyframes cs-spin{to{transform:rotate(1turn)}}@media (prefers-reduced-motion:reduce){.cs-spin{animation-duration:2.4s}}.cs-composer{flex-shrink:0;border:1px solid var(--studio-border);border-radius:14px;background:var(--studio-bg-panel);padding:12px 12px 10px;display:grid;gap:8px}.cs-composer:focus-within{border-color:var(--studio-accent-border)}.cs-composer textarea{width:100%;resize:none;border:0!important;background:transparent!important;padding:2px!important;color:var(--studio-text-primary);font-size:13px!important;line-height:1.5;min-height:58px;outline:none!important}.cs-composer textarea::placeholder{color:var(--studio-text-muted);opacity:.75}.cs-composer-bar{display:flex;align-items:center;gap:4px;min-width:0}.cs-composer-bar>*{flex-shrink:0}.cs-composer-bar>.cs-mini-select{flex-shrink:1;min-width:0}.cs-composer-bar>.cs-send{margin-left:2px}.cs-bar-spacer{flex:1 1 auto}.cs-starters{position:relative}.cs-starters>.cs-icon{border:1px solid var(--studio-border-strong)!important;border-radius:999px!important}.cs-starter-menu{position:absolute;bottom:calc(100% + 8px);left:0;z-index:5;width:250px;padding:5px;border:1px solid var(--studio-border);border-radius:var(--studio-radius-menu);background:var(--studio-bg-elevated);box-shadow:var(--studio-shadow-floating);display:grid;gap:2px}.cs-starter-menu button{justify-content:flex-start!important;gap:9px!important;padding:8px 10px!important;border-radius:7px!important;background:transparent!important;color:var(--studio-text-primary)}.cs-starter-menu button:hover:not(:disabled){background:var(--studio-bg-hover)!important}.cs-mini-select{position:relative;display:inline-flex;align-items:center;min-width:0;max-width:130px}.cs-mini-select select{appearance:none;width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:0!important;background:transparent!important;padding:4px 18px 4px 6px!important;color:var(--studio-text-secondary);font-size:12px!important;cursor:pointer;border-radius:7px!important}.cs-mini-select select:hover{background:var(--studio-bg-hover)!important}.cs-mini-select svg{position:absolute;right:4px;pointer-events:none;color:var(--studio-text-muted)}.cs-chip{min-height:28px!important;min-width:28px;padding:3px 6px!important;gap:5px!important;color:var(--studio-text-secondary);border-radius:7px!important;font-size:12px!important;background:transparent!important}.cs-chip:hover{background:var(--studio-bg-hover)!important}.cs-chip.is-active{background:var(--studio-accent-soft)!important;color:var(--studio-accent)!important}.cs-send{width:30px;height:30px;min-height:30px!important;padding:0!important;border-radius:999px!important;background:var(--studio-accent)!important;color:var(--studio-on-accent)!important}.cs-send:disabled{opacity:.45!important}.cs-stage{grid-column:2;grid-row:2;min-width:0;min-height:0;position:relative;border-radius:12px}.code-studio.is-chat-closed .cs-stage{grid-column:1}.code-studio[data-tab=preview] .cs-stage,.cs-preview-frame{pointer-events:none}.cs-preview-frame{position:absolute;inset:0}.cs-preview-bar{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);display:flex;align-items:center;gap:8px;max-width:calc(100% - 24px);padding:6px 6px 6px 12px;border:1px solid var(--studio-border);border-radius:12px;background:var(--studio-bg-panel);box-shadow:var(--studio-shadow-floating);pointer-events:auto}.cs-preview-hint,.cs-preview-state{display:flex;align-items:center;gap:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12.5px;color:var(--studio-text-secondary)}.cs-preview-hint{padding-right:6px;color:var(--studio-text-muted)}.cs-code,.cs-versions{position:absolute;inset:0;display:flex;flex-direction:column;border:1px solid var(--studio-border);border-radius:12px;background:var(--studio-bg-panel);overflow:hidden}.cs-code-toolbar{display:flex;gap:4px;padding:6px 8px;border-bottom:1px solid var(--studio-border);overflow-x:auto;scrollbar-width:none}.cs-code-toolbar,.cs-file-tab{align-items:center;flex-shrink:0}.cs-file-tab{gap:6px;padding:5px 10px;border-radius:7px;background:var(--studio-bg-elevated);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.cs-file-tab,.cs-validity{display:inline-flex;font-size:12px}.cs-validity{align-items:center;gap:5px;padding:0 8px;color:var(--studio-text-muted);white-space:nowrap;flex-shrink:0}.cs-validity.is-ok{color:var(--studio-success)}.cs-validity.is-error{color:var(--studio-danger)}.cs-btn{min-height:28px!important;padding:4px 9px!important;gap:6px!important;border-radius:7px!important;color:var(--studio-text-secondary);white-space:nowrap;flex-shrink:0;background:transparent!important}.cs-btn:hover:not(:disabled){background:var(--studio-bg-hover)!important;color:var(--studio-text-primary)}.cs-btn.is-primary{background:var(--studio-accent)!important;color:var(--studio-on-accent)!important}.cs-btn.is-primary:hover:not(:disabled){background:var(--studio-accent-hover)!important}.cs-divider{width:1px;height:18px;background:var(--studio-border);margin:0 4px;flex-shrink:0}.cs-apply-mode{display:flex;align-items:center;gap:4px;padding:6px 10px;border-bottom:1px solid var(--studio-border);font-size:12px;color:var(--studio-text-muted);flex-wrap:wrap;flex-shrink:0}.cs-apply-mode>span{margin-right:4px}.cs-apply-mode button{min-height:26px!important;padding:3px 9px!important;gap:5px!important;border-radius:7px!important;color:var(--studio-text-secondary);border:1px solid var(--studio-border)!important;background:transparent!important}.cs-apply-mode button.is-active{border-color:var(--studio-accent-border)!important;background:var(--studio-accent-soft)!important;color:var(--studio-accent)!important}.cs-apply-mode .cs-link{margin-left:auto;border:0!important;color:var(--studio-accent)}.cs-code-main{flex:1 1 auto}.cs-code-main,.cs-docs{min-height:0;display:flex}.cs-docs{width:min(380px,45%);flex-shrink:0;border-left:1px solid var(--studio-border);flex-direction:column;background:var(--studio-bg-canvas)}.cs-docs header{display:flex;align-items:center;justify-content:space-between;padding:8px 8px 8px 12px;border-bottom:1px solid var(--studio-border)}.cs-docs pre{flex:1 1 auto;margin:0;padding:12px;overflow:auto;white-space:pre-wrap;font-size:11.5px;line-height:1.6;color:var(--studio-text-secondary);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.cs-docs>.cs-outline-btn{margin:8px 12px 12px}.cs-problems{margin:0;padding:6px 10px;list-style:none;border-top:1px solid var(--studio-border);max-height:120px;overflow:auto;font-size:12px;flex-shrink:0}.cs-problems li{display:flex;align-items:center;gap:7px;padding:3px 0}.cs-problems li.is-error{color:var(--studio-danger)}.cs-problems li.is-warning{color:var(--studio-warning)}.code-editor{--code-line:20px;flex:1 1 auto;min-width:0;min-height:0;display:flex;background:var(--studio-bg-panel);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,Liberation Mono,monospace;font-size:12.5px}.code-editor-gutter{flex-shrink:0;width:48px;padding:12px 0;overflow:hidden;text-align:right;color:var(--studio-text-muted);opacity:.6;user-select:none;border-right:1px solid var(--studio-border)}.code-editor-gutter span{display:block;height:var(--code-line);line-height:var(--code-line);padding-right:10px;font-size:11.5px}.code-editor-gutter span.has-error{color:var(--studio-danger);opacity:1;box-shadow:inset 3px 0 var(--studio-danger)}.code-editor-gutter span.has-warning{color:var(--studio-warning);opacity:1}.code-editor-body{position:relative;flex:1 1 auto;min-width:0}.code-editor-body textarea,.code-editor-layer{position:absolute;inset:0;margin:0;padding:12px 16px!important;font:inherit!important;font-size:12.5px!important;line-height:var(--code-line)!important;letter-spacing:0;tab-size:2;white-space:pre!important;overflow:auto;border:0!important;border-radius:0!important}.code-editor-layer{pointer-events:none;color:var(--studio-text-primary);overflow:hidden}.code-editor-body textarea{resize:none;color:transparent!important;caret-color:var(--studio-text-primary);background:transparent!important;outline:none!important;max-width:none!important}.code-editor-body textarea::selection{background:var(--studio-accent-soft);color:transparent}.code-line{height:var(--code-line)}.code-line.has-error{background:var(--studio-danger-soft)}.code-line-message{margin-left:18px;font-style:italic;color:var(--studio-danger);opacity:.85}.code-line.has-warning .code-line-message{color:var(--studio-warning)}.tok-comment{color:var(--studio-text-muted);opacity:.75;font-style:italic}.tok-keyword{color:#c792ea;font-weight:600}.tok-key{color:#82aaff}.tok-string{color:#c3e88d}.tok-number{color:#f78c6c}.tok-color{color:#ffcb6b;text-decoration:underline dotted}.tok-ref{color:#89ddff;font-weight:600}.tok-constant{color:#ffcb6b}.tok-function{color:#82aaff;font-style:italic}.tok-op,.tok-punct{color:var(--studio-text-secondary)}.tok-error{color:var(--studio-danger);text-decoration:wavy underline}html[data-crystal-theme=light] .tok-keyword{color:#7c3aed}html[data-crystal-theme=light] .tok-key{color:#2563eb}html[data-crystal-theme=light] .tok-string{color:#15803d}html[data-crystal-theme=light] .tok-number{color:#c2410c}html[data-crystal-theme=light] .tok-color,html[data-crystal-theme=light] .tok-constant{color:#a16207}html[data-crystal-theme=light] .tok-ref{color:#0e7490}html[data-crystal-theme=light] .tok-function{color:#2563eb}.cs-versions{overflow:auto;padding:18px;gap:18px}.cs-versions h2{font-size:15px!important;margin:0 0 4px}.cs-muted,.cs-versions header p{margin:0;color:var(--studio-text-muted);font-size:12.5px}.cs-versions h3{font-size:11.5px!important;text-transform:uppercase!important;letter-spacing:.06em;color:var(--studio-text-muted);margin:0 0 8px!important}.cs-version{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--studio-border);border-radius:10px;margin-bottom:6px}.cs-version>div{flex:1 1 auto;min-width:0;display:grid;gap:2px}.cs-version strong{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cs-version small{color:var(--studio-text-muted);font-size:11.5px;overflow-wrap:anywhere}.cs-confirm-shade{position:absolute;inset:0;z-index:5;display:grid;place-items:center;background:var(--studio-overlay);pointer-events:auto}.cs-confirm{width:min(420px,calc(100% - 32px));padding:18px;border:1px solid var(--studio-border);border-radius:14px;background:var(--studio-bg-elevated);box-shadow:var(--studio-shadow-floating);display:grid;gap:12px}.cs-confirm>svg{color:var(--studio-warning)}.cs-confirm p{margin:0;line-height:1.55}.cs-confirm>div{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}@media (max-width:1100px){.scene-workbench.is-code-studio{--cs-chat:340px}.cs-btn>span,.cs-crumb,.cs-top-right .cs-light-btn{display:none}.cs-btn.is-primary>span{display:inline}}@media (max-width:760px){.scene-workbench.is-code-studio{--cs-chat:0px;--cs-top:96px}.scene-workbench.is-code-studio:not(:has(.code-studio.is-chat-closed))>.scene-canvas,.scene-workbench.is-code-studio>.scene-canvas{left:12px;right:12px;bottom:calc(46% + 12px)}.scene-workbench.is-code-studio:has(.code-studio.is-chat-closed)>.scene-canvas{bottom:12px}.code-studio{grid-template-columns:minmax(0,1fr);grid-template-rows:var(--cs-top) minmax(0,1fr) minmax(0,46%);row-gap:12px}.code-studio.is-chat-closed{grid-template-rows:var(--cs-top) minmax(0,1fr)}.cs-top{flex-wrap:wrap;row-gap:6px;padding-top:8px}.cs-top-left{width:auto;flex:1 1 auto}.cs-top-icons{margin-left:0}.cs-address{order:3;flex-basis:100%;max-width:none}.cs-top-right .cs-outline-btn{display:none}.cs-stage{grid-column:1;grid-row:2}.cs-chat{grid-column:1;grid-row:3}.cs-docs{position:absolute;inset:0;width:auto;z-index:2}}.scene-workbench.crystal-studio{--scene-left:268px;--scene-right:280px;position:fixed!important;inset:0!important;z-index:90;display:grid!important;grid-template-columns:var(--scene-left) minmax(0,1fr) var(--scene-right)!important;grid-template-rows:minmax(0,1fr)!important;gap:12px!important;padding:12px!important;background:#0f0f0f!important;color:var(--studio-text-primary);font-family:var(--studio-font)!important;overflow:hidden}.scene-workbench.scene-left-closed{--scene-left:0px}.scene-workbench.scene-right-closed{--scene-right:0px}html[data-crystal-theme=light] .scene-workbench.crystal-studio{background:#f0f1f3!important}.scene-workbench *,.scene-workbench :after,.scene-workbench :before{box-sizing:border-box}.scene-workbench :is(button,input,select,textarea){font-family:inherit!important;font-size:12px!important}.scene-workbench button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:7px 9px;min-height:30px;border:1px solid transparent;border-radius:8px;background:transparent;color:inherit;cursor:pointer;flex-shrink:0}.scene-workbench button:hover:not(:disabled),.scene-workbench summary:hover{background:var(--studio-bg-hover)}.scene-workbench button:disabled{opacity:.4;cursor:not-allowed}.scene-workbench .is-active,.scene-workbench button[aria-pressed=true]{background:var(--studio-accent-soft);color:var(--studio-accent)}.scene-workbench :is(input,select,textarea){color:inherit;background:var(--studio-bg-input);border:1px solid var(--studio-border);border-radius:7px;min-width:0;padding:6px 8px;max-width:100%}.scene-workbench input[type=checkbox]{width:14px;height:14px;accent-color:var(--studio-accent)}.scene-workbench input[type=color]{width:40px;padding:2px}.scene-workbench :is(button,input,select,textarea,summary,a):is(:focus,:focus-visible){outline:none!important}.scene-workbench :is(h2,h3,p){margin:0}.scene-workbench h2{font-size:13px!important;font-weight:600}.scene-workbench h3{font-size:11px!important;font-weight:500;text-transform:capitalize;margin-bottom:8px;color:var(--studio-text-secondary)}.scene-menubar{grid-column:1/-1;display:flex;align-items:center;gap:3px;padding:5px 12px;border-bottom:1px solid var(--studio-border);background:var(--studio-bg-panel);z-index:60;min-width:0}.scene-brand{color:inherit;font-size:14px;font-weight:600;text-decoration:none;margin-right:14px}.scene-save-state{margin-left:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--studio-text-muted);font-size:10px;padding:0 8px}.scene-menu{position:relative}.scene-menu>summary{cursor:pointer;list-style:none;padding:7px 9px;border-radius:6px;font-size:12px}.scene-menu>summary::-webkit-details-marker{display:none}.scene-menu>div{position:absolute;left:0;top:35px;min-width:220px;display:grid;padding:6px;border:1px solid var(--studio-border);border-radius:10px;background:var(--studio-bg-panel);box-shadow:0 12px 40px #0005;max-height:70vh;overflow:auto}.scene-menu>div>button{text-align:left;justify-content:flex-start;white-space:nowrap}.scene-sidebar{background:var(--studio-bg-panel);min-height:0;overflow:hidden;border-right:1px solid var(--studio-border)}.scene-left{grid-column:1;grid-row:1}.scene-workbench .scene-left>.cs-header{flex-basis:64px;min-height:64px;height:64px!important;padding:12px!important}.scene-studio-nav{display:flex;gap:3px;padding:3px 9px 10px;border-bottom:1px solid var(--studio-border)}.scene-studio-nav button{flex:1;padding:7px 3px;font-size:11px!important}.scene-project-row{display:flex;gap:4px;padding:10px}.scene-project-row>input{font-weight:500}.scene-library{padding:4px 10px 10px}.scene-library h2{display:flex;justify-content:space-between;margin-bottom:10px}.scene-library h2 span{color:var(--studio-text-muted);font-size:10px;font-weight:400}.scene-library>input{width:100%}.scene-library-items{display:grid;grid-template-columns:1fr 1fr;gap:3px;padding-top:8px;max-height:144px;overflow:auto}.scene-library-items button{justify-content:flex-start;font-size:11px!important;border-color:var(--studio-border);padding:5px 7px;white-space:nowrap}.scene-templates{display:grid;gap:4px;margin-top:10px}.scene-templates label{display:flex;align-items:center;justify-content:space-between;font-size:11px}.scene-templates .scene-stepper-field{width:50px}.scene-templates button{border-color:var(--studio-border)}.scene-hierarchy{flex:1;min-height:100px;overflow:auto;border-top:1px solid var(--studio-border);padding:5px}.scene-hierarchy h2{display:flex;align-items:center;gap:7px;padding:9px 6px;position:sticky;top:-5px;background:var(--studio-bg-panel);z-index:1}.scene-hierarchy h2 span{margin-left:auto;color:var(--studio-text-muted);font-size:10px}.scene-tree-row{display:flex;min-width:0;border-radius:6px}.scene-tree-row>button{padding:4px;min-height:29px;border:0}.scene-tree-row>.scene-tree-name{flex:1;min-width:0;justify-content:flex-start;gap:5px}.scene-tree-name>span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:11px!important}.scene-tree-name svg{flex-shrink:0}.scene-classic-link{display:block;color:var(--studio-text-secondary);padding:12px;border-top:1px solid var(--studio-border);font-size:11px;text-align:center}.scene-workbench .scene-view{grid-column:2!important;grid-row:1!important;min-width:0;min-height:0;position:relative;overflow:hidden}.scene-canvas{position:absolute;inset:0}.scene-transform-toolbar{position:absolute;top:16px;left:50%;transform:translateX(-50%);z-index:10;display:flex;gap:3px;padding:6px;max-width:calc(100% - 24px);overflow:auto;background:var(--studio-bg-panel);border:1px solid var(--studio-border);border-radius:12px;box-shadow:0 8px 25px #0003}.scene-transform-toolbar>i{border-right:1px solid var(--studio-border);margin:4px 3px}.scene-transform-toolbar button{min-width:31px;padding:6px}.scene-navigation-hint{position:absolute;bottom:7px;left:10px;color:var(--studio-text-muted);font-size:9px;pointer-events:none}.scene-workbench .scene-view .studio-ai-panel{position:absolute!important;left:50%!important;right:auto!important;bottom:0!important;transform:translateX(-50%)!important;width:min(480px,calc(100% - 24px))!important;max-width:calc(100% - 24px)!important;max-height:45%!important;z-index:20!important;background:var(--studio-bg-panel)!important}.scene-workbench .scene-view .studio-ai-panel.is-expanded{width:min(640px,calc(100% - 24px))!important;max-height:65%!important}.scene-chat-mode{position:absolute;z-index:21;bottom:12px;right:12px;font-size:10px;display:flex;align-items:center;gap:6px;color:var(--studio-text-secondary)}.scene-chat-mode label{display:flex;align-items:center;gap:5px}.scene-chat-mode small{font-size:9px}.scene-workbench .studio-ai-reopen-btn{position:absolute;bottom:0!important;left:50%;transform:translateX(-50%);z-index:20;background:var(--studio-bg-panel)}.scene-inspector{grid-column:3;grid-row:1;overflow:auto;border-right:0;border-left:1px solid var(--studio-border)}.scene-inspector>header{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-bottom:1px solid var(--studio-border);min-height:54px}.scene-inspector fieldset{border:0;padding:14px;min-width:0;margin:0}.scene-inspector fieldset:disabled{opacity:.6}.scene-inspector fieldset>h2{margin-bottom:14px;overflow-wrap:anywhere}.scene-environment,.scene-inspector fieldset section{margin-top:18px}.scene-number-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.scene-number{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:5px 0;font-size:11px}.scene-number>.scene-stepper-field{width:82px}.scene-number-grid .scene-number{display:block;margin:0}.scene-number-grid .scene-number>span:first-child{display:block;font-size:9px;color:var(--studio-text-muted);margin-bottom:4px}.scene-number-grid input{width:100%;padding:6px}.scene-text-field{display:grid;gap:7px;font-size:11px}.scene-color{display:flex;justify-content:space-between;align-items:center;font-size:11px;margin:9px 0}.scene-inspector .scene-select{margin-bottom:8px}.scene-environment{padding:16px 14px;border-top:1px solid var(--studio-border)}.scene-environment h2{margin-bottom:14px}.scene-environment>.scene-toggle-row,.scene-environment>label{display:flex;align-items:center;gap:7px;font-size:11px;margin-top:9px}.scene-format-note,.scene-muted{font-size:11px!important;line-height:1.6;color:var(--studio-text-muted)}.scene-format-note{padding:14px;border-top:1px solid var(--studio-border)}.scene-alert{position:absolute;top:72px;left:12px;right:12px;z-index:35;display:flex;align-items:center;gap:8px;background:#642d25;color:#fff;padding:10px;border-radius:9px;font-size:12px}.scene-alert>span{flex:1}.scene-busy{z-index:40;top:75px;left:50%;transform:translateX(-50%);padding:10px 18px;border:1px solid var(--studio-accent);border-radius:9px}.scene-busy,.scene-proposal{position:absolute;background:var(--studio-bg-panel)}.scene-proposal{top:78px;right:14px;z-index:30;width:min(350px,calc(100% - 28px));max-height:45%;overflow:auto;border:1px solid var(--studio-accent);padding:16px;border-radius:12px;font-size:12px}.scene-proposal ol{padding-left:18px;margin:12px 0;max-height:150px;overflow:auto}.scene-proposal>div{display:flex;gap:8px}.scene-proposal>div>button:first-child{background:var(--studio-accent);color:#fff}.scene-dialog-shade{position:absolute;inset:0;z-index:100;display:grid;place-items:center;background:#0008;padding:24px}.scene-project-dialog{width:min(500px,100%);max-height:75vh;overflow:auto;padding:18px;border:1px solid var(--studio-border);border-radius:16px;background:var(--studio-bg-panel)}.scene-project-dialog header{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.scene-project-dialog>button{width:100%;justify-content:flex-start;padding:12px;border-bottom:1px solid var(--studio-border)}.scene-file-input{display:none!important}.scene-opening,.scene-render-error{display:flex;flex-direction:column;gap:15px;justify-content:center;align-items:center;position:absolute;inset:0;padding:30px;background:var(--studio-bg-panel,#161616);color:var(--studio-text-primary,#fff);text-align:center;z-index:15}.scene-measurement{white-space:nowrap;color:#222;background:#ffca64;border-radius:5px;padding:4px 8px;font-size:12px}.scene-walk-hint{position:absolute;top:80px;left:50%;transform:translateX(-50%);background:color-mix(in srgb,var(--studio-bg-panel) 85%,transparent);color:var(--studio-text-primary);padding:8px 15px;border-radius:8px;font-size:12px;pointer-events:none}@media(max-width:1000px){.scene-workbench.crystal-studio{--scene-left:235px;--scene-right:245px}.scene-brand{display:none}.scene-save-state{max-width:100px}}@media(max-width:760px){.scene-workbench.crystal-studio{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important}.scene-menubar{overflow-x:auto;padding:4px}.scene-save-state{display:none}.scene-menu{position:static}.scene-menu>div{position:fixed;top:47px;left:8px}.scene-menubar>button{padding:7px}.scene-menu>summary{padding:7px 6px}.scene-workbench .scene-view{grid-column:1!important}.scene-sidebar{position:absolute;top:12px;bottom:12px;width:min(280px,85vw);z-index:45;box-shadow:0 8px 35px #0006}.scene-left{left:12px}.scene-inspector{right:12px}.scene-transform-toolbar{top:10px}.scene-navigation-hint{display:none}.scene-workbench .scene-view .studio-ai-panel{max-height:45%!important}.scene-chat-mode{font-size:9px}.scene-alert{top:62px}.scene-sidebar .cs-header{min-height:60px}}.scene-workbench .scene-sidebar,.scene-workbench .scene-view{border:1px solid var(--studio-border);border-radius:12px}.scene-workbench .scene-left:has(.scene-project-actions[open]){overflow:visible;z-index:50}.scene-project-actions{position:relative;flex-shrink:0}.scene-project-actions>summary{display:flex;align-items:center;justify-content:center;padding:6px;min-height:30px;cursor:pointer;list-style:none;border-radius:8px}.scene-project-actions>summary::-webkit-details-marker{display:none}.scene-project-actions-content{position:absolute;right:0;top:36px;width:240px;max-height:calc(100dvh - 160px);overflow:auto;padding:8px;background:var(--studio-bg-panel);border:1px solid var(--studio-border);border-radius:12px;box-shadow:0 12px 36px #0005;z-index:60}.scene-project-actions-content>.scene-menu>div{position:static;min-width:0;max-height:none;box-shadow:none;border:0;padding:4px}.scene-project-actions-content>.scene-menu>summary{padding:9px}.scene-project-actions-content .scene-save-state{display:block;white-space:normal;padding:9px;margin:0;max-width:none}.scene-panel-toggles{position:absolute;top:70px;left:12px;z-index:25;display:flex;gap:4px;padding:4px;background:var(--studio-bg-panel);border:1px solid var(--studio-border);border-radius:12px}.scene-workbench.scene-left-closed,.scene-workbench.scene-right-closed{column-gap:0!important}.scene-workbench.scene-left-closed .scene-view{margin-right:12px}.scene-workbench.scene-right-closed .scene-view{margin-left:12px}.scene-workbench.scene-left-closed.scene-right-closed .scene-view{margin:0}@media(max-width:760px){.scene-workbench .scene-view{margin:0!important}.scene-workbench.crystal-studio>.scene-sidebar{display:flex!important;grid-area:auto!important;margin:0!important;top:12px!important;bottom:12px!important}}.scene-workbench>.scene-canvas{position:absolute;inset:0;z-index:0}.scene-marquee-box{position:absolute;border:1.5px solid #4284ff;background:rgba(66,132,255,.18);border-radius:2px;pointer-events:none;z-index:30;box-sizing:border-box}.scene-workbench.crystal-studio>.scene-view{z-index:1;background:transparent!important;border:0!important;border-radius:0;overflow:visible;pointer-events:none}.scene-workbench .scene-view>*{pointer-events:auto}.scene-workbench>.scene-sidebar{z-index:45}.scene-generation-job{padding:12px 0;border-bottom:1px solid var(--studio-border);font-size:12px}.scene-generation-job p{margin:8px 0;overflow-wrap:anywhere}.scene-generation-job>div{display:flex;align-items:center;gap:12px}.scene-generation-job a{color:var(--studio-accent)}.scene-workbench .scene-tree-row[data-selection=primary]{--scene-row-color:#4284ff;--scene-row-fill:#4284ff1a;color:#4284ff;background:var(--scene-row-fill);box-shadow:inset 3px 0 var(--scene-row-color)}.scene-workbench .scene-tree-row[data-selection=secondary]{--scene-row-color:#22c55e;--scene-row-fill:#22c55e1a;color:#22c55e;background:var(--scene-row-fill);box-shadow:inset 3px 0 var(--scene-row-color)}.scene-workbench .scene-tree-row[data-selection]>.scene-tree-name{color:inherit;background:transparent}.scene-workbench .scene-tree-row[data-hovered=true]{outline:1px solid var(--scene-row-color,#22c55e);outline-offset:-1px;background:var(--scene-row-fill,var(--studio-bg-hover))}.scene-sidebar-content{display:flex;flex-direction:column;flex:1;min-height:0;overflow-y:auto}.scene-sidebar-content>.scene-library{flex-shrink:0}.scene-sidebar-content>.scene-hierarchy{min-height:140px}.scene-workbench.crystal-studio .scene-view .crystal-ai-prompt.studio-ai-panel{bottom:0!important}.scene-workbench .cs-chat-selection{margin:0 12px;padding:6px 0;color:#60a5fa;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-bottom:1px solid var(--studio-border)}.scene-workbench .cs-chat-dock .scene-chat-mode{position:static;margin:0 12px;padding:4px 0}.scene-workbench .scene-color-field{margin:9px 0}.scene-workbench .scene-color-trigger{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;min-height:28px;border:1px solid var(--studio-border);border-radius:7px;background:var(--studio-bg-input);font-size:11px}.scene-workbench .sketch-color-preview{display:inline-block;width:21px;height:21px;border-radius:5px;flex-shrink:0;box-shadow:inset 0 0 0 1px #8886}.scene-workbench .scene-color-panel{position:fixed;right:calc(var(--scene-right,280px) + 24px);top:84px;width:224px;max-height:calc(100dvh - 108px);overflow:auto;z-index:65;background:var(--studio-bg-panel,#161616);border:1px solid var(--studio-border);border-radius:12px;padding:10px;font-size:11px;box-shadow:0 12px 36px #0006}.scene-workbench .scene-color-panel>header{display:flex;align-items:center;gap:4px;margin-bottom:8px;min-height:28px;cursor:move;touch-action:none}.scene-workbench .scene-color-panel>header>strong{flex:1;font-weight:500;font-size:12px}.scene-workbench .scene-color-panel>header>button{min-width:28px;height:28px;min-height:28px;padding:5px;border:0;border-radius:8px}.scene-workbench .scene-color-panel label{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:10px 0;font-size:11px}.scene-workbench .scene-color-panel label output{margin-left:auto;color:var(--studio-text-secondary)}.scene-workbench .scene-color-panel input:not([type=range]):not([type=color]){width:100%;background:var(--studio-bg-input);border:0;border-radius:6px;padding:6px}.scene-workbench .scene-color-panel input[type=range]{width:100%;padding:0;border:0;background:transparent;accent-color:var(--studio-accent,#4284ff)}.scene-workbench .scene-color-panel .sketch-hue{position:relative;margin:4px auto 12px;width:184px;height:184px;border-radius:50%;background:conic-gradient(red,#ff0,#0f0,#0ff,#00f,#f0f,red);touch-action:none;cursor:crosshair;display:grid;place-items:center}.scene-workbench .scene-color-panel .sketch-hue:before{content:"";position:absolute;inset:18px;border-radius:50%;background:var(--studio-bg-panel,#161616);pointer-events:none}.scene-workbench .scene-color-panel .sketch-hue-thumb{position:absolute;top:calc(50% - 6px);left:calc(50% - 6px);height:12px;width:12px;border:2px solid #fff;border-radius:50%;pointer-events:none}.scene-workbench .scene-color-panel .sketch-saturation{position:relative;width:108px;height:108px;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,transparent);touch-action:none}.scene-workbench .scene-color-panel .sketch-saturation>span{position:absolute;transform:translate(-50%,-50%);width:9px;height:9px;border:1px solid #fff;border-radius:50%;pointer-events:none}.scene-workbench .scene-color-panel .sketch-swatches{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.scene-workbench .scene-color-panel .sketch-swatches button{width:27px;height:27px;min-width:27px;min-height:27px;padding:0;border-radius:50%;border:0}@media(max-width:760px){.scene-workbench .scene-color-panel{right:16px}}.scene-workbench{--scene-blender-orange:#ff8533}html[data-crystal-theme=light] .scene-workbench{--scene-blender-orange:#c25e00}.scene-blender-modal{width:min(540px,94vw);background:var(--studio-bg-panel);border:1px solid var(--studio-border);border-radius:14px;box-shadow:0 20px 50px rgba(0,0,0,.35);padding:20px;color:var(--studio-text-primary)}.scene-blender-modal-title{display:flex;align-items:center;gap:8px}.scene-blender-modal-title h2{font-size:15px!important;font-weight:600;color:var(--studio-text-primary)}.scene-blender-tag{background:#ea760026;color:var(--scene-blender-orange);border:1px solid #ea760055;border-radius:4px;font-size:10px;font-weight:700;padding:2px 6px;text-transform:uppercase;letter-spacing:.05em}.scene-blender-modal-body{margin:14px 0 18px;font-size:12px;line-height:1.55;color:var(--studio-text-secondary);display:flex;flex-direction:column;gap:12px}.scene-blender-steps{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:8px}.scene-blender-steps li{color:var(--studio-text-secondary)}.scene-blender-steps strong{display:block;color:var(--studio-text-primary);font-size:12px}.scene-blender-steps span{font-size:11px;color:var(--studio-text-secondary)}.scene-blender-steps code{background:var(--studio-bg-hover);padding:1px 5px;border-radius:4px;color:var(--studio-accent);font-size:11px}.scene-blender-tip{background:var(--studio-bg-elevated);border-left:3px solid var(--scene-blender-orange);padding:8px 12px;border-radius:0 6px 6px 0;font-size:11px;color:var(--studio-text-secondary)}.scene-blender-tip code{background:var(--studio-bg-hover);padding:1px 4px;border-radius:3px;color:var(--studio-text-primary)}.scene-blender-modal-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:12px;border-top:1px solid var(--studio-border)}.scene-workbench .scene-blender-action-btn{background:#ea7600;color:#fff;border:none;border-radius:8px;padding:8px 14px;font-weight:500;cursor:pointer;transition:background .15s ease}.scene-workbench .scene-blender-action-btn:hover:not(:disabled){background:#ff851b}.scene-workbench{--scene-pill-radius:10px;--scene-pill-inner-radius:6px}.scene-workbench .scene-stepper-field{position:relative;display:flex;min-width:0}.scene-workbench .scene-stepper-field>input{flex:1 1 auto;width:100%;min-width:0;padding-right:26px;border-radius:var(--scene-pill-radius);text-align:left;font-variant-numeric:tabular-nums;-moz-appearance:textfield;appearance:textfield}.scene-workbench .scene-stepper-field>input::-webkit-inner-spin-button,.scene-workbench .scene-stepper-field>input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.scene-workbench .scene-stepper-field>input:hover:not(:disabled){background:var(--studio-bg-hover)}.scene-workbench .scene-stepper-field>input:focus{border-color:transparent;outline:none}.scene-workbench .scene-stepper-field>input:focus-visible{outline:none}.scene-workbench .scene-stepper{position:absolute;top:4px;right:4px;bottom:4px;width:18px;display:flex;flex-direction:column;overflow:hidden;border-radius:var(--scene-pill-inner-radius);background:var(--studio-bg-hover)}.scene-workbench .scene-stepper-field:hover>input:not(:disabled)+.scene-stepper{background:var(--studio-border-strong)}.scene-workbench .scene-stepper>button{flex:1 1 0;min-width:0;min-height:0;padding:0;gap:0;border:0;border-radius:0;color:var(--studio-text-secondary)}.scene-workbench .scene-stepper>button:hover:not(:disabled){background:var(--studio-accent-soft);color:var(--studio-accent)}.scene-workbench .scene-stepper>button:disabled{opacity:1}.scene-inspector .scene-coordinate-group>h3{margin-bottom:6px}.scene-workbench .scene-number-grid .scene-number>span:first-child{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.scene-workbench .scene-number-grid .scene-number>.scene-stepper-field{width:100%}.scene-workbench .scene-number-grid .scene-stepper-field>input{padding:6px;text-align:center;border-color:transparent;border-radius:8px;background:var(--studio-bg-hover)}.scene-workbench .scene-number-grid .scene-stepper-field>input:hover:not(:disabled){background:var(--studio-border-strong)}.scene-workbench .scene-number-grid .scene-stepper-field>input:focus{border-color:transparent;outline:none}.scene-workbench .scene-number-grid .scene-stepper{visibility:hidden}.scene-workbench .scene-number-grid .scene-stepper-field:is(:hover,:focus-within)>input{padding-right:24px}.scene-workbench .scene-number-grid .scene-stepper-field:is(:hover,:focus-within)>.scene-stepper{visibility:visible}.scene-workbench .scene-select{position:relative;display:inline-flex;vertical-align:top;width:100%;min-width:0}.scene-workbench .scene-select>select{flex:1 1 auto;width:100%;height:30px;margin:0;padding:0 34px 0 12px;border-radius:var(--scene-pill-radius);-webkit-appearance:none;appearance:none;cursor:pointer;text-overflow:ellipsis}.scene-workbench .scene-select>select:hover:not(:disabled){background:var(--studio-bg-hover)}.scene-workbench .scene-select>select:focus{border-color:transparent;outline:none}.scene-workbench .scene-select>select:focus-visible{outline:none}.scene-workbench .scene-select-chevron{position:absolute;top:4px;right:4px;bottom:4px;width:22px;display:flex;align-items:center;justify-content:center;border-radius:var(--scene-pill-inner-radius);background:var(--studio-bg-hover);color:var(--studio-text-secondary);pointer-events:none}.scene-workbench .scene-select:hover>select:not(:disabled)+.scene-select-chevron{background:var(--studio-border-strong)}.scene-workbench .scene-select>select:disabled,.scene-workbench .scene-select>select:disabled+.scene-select-chevron{opacity:.4;cursor:not-allowed}.scene-workbench .scene-color-trigger{border-radius:var(--scene-pill-radius)}.scene-workbench .scene-color-trigger .sketch-color-preview{border-radius:var(--scene-pill-inner-radius)}.scene-workbench .scene-color-trigger:focus-visible{outline:none}.scene-workbench .scene-toggle-row>label{cursor:pointer}.scene-workbench .scene-segment{display:inline-flex;align-items:stretch;flex-shrink:0;height:16px;padding:1px;gap:1px;border:1px solid var(--studio-border);border-radius:8px;background:var(--studio-bg-input)}.scene-workbench .scene-segment>label{display:flex;align-items:center;padding:0 7px;line-height:1;border-radius:6px;color:var(--studio-text-secondary);cursor:pointer;user-select:none}.scene-workbench .scene-segment>label:hover{background:var(--studio-bg-hover)}.scene-workbench .scene-toggle-row>input:checked+.scene-segment>.scene-segment-on,.scene-workbench .scene-toggle-row>input:not(:checked)+.scene-segment>.scene-segment-off{background:var(--studio-accent);color:var(--studio-on-accent);pointer-events:none}.scene-workbench .scene-toggle-row>input:focus-visible+.scene-segment{outline:none}.scene-workbench .scene-toggle-row>input:disabled+.scene-segment{opacity:.4}.scene-workbench .scene-toggle-row>input:disabled+.scene-segment>label,.scene-workbench .scene-toggle-row>input:disabled~label{pointer-events:none}.scene-workbench .scene-kit-section{display:flex;flex-direction:column;gap:8px;padding:12px;border-top:1px solid var(--studio-border)}.scene-inspector>.scene-kit-section{flex-shrink:0;padding:14px}.scene-workbench .scene-kit-header{display:flex;align-items:center;gap:4px;min-height:32px}.scene-workbench .scene-kit-header h2{flex:1}.scene-workbench .scene-kit-header small{margin-right:4px;color:var(--studio-text-muted);font-size:10px}.scene-workbench .scene-kit-icon{width:30px;height:30px;padding:0;color:var(--studio-text-secondary)}.scene-workbench .scene-kit-icon:hover:not(:disabled){color:var(--studio-text-primary)}.scene-workbench .scene-kit-bar{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;padding:3px;border-radius:var(--scene-pill-radius);background:var(--studio-bg-input)}.scene-workbench .scene-kit-bar>button{min-width:0;height:30px;min-height:30px;padding:0;border:0;border-radius:var(--scene-pill-inner-radius);color:var(--studio-text-secondary)}.scene-workbench .scene-kit-bar>button:hover:not(:disabled){color:var(--studio-text-primary)}.scene-workbench .scene-kit-bar>button[aria-pressed=true]{color:var(--studio-accent)}.scene-workbench .scene-layout-origin{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.scene-workbench .scene-layout-anchors{display:flex;flex-direction:column;gap:8px;min-width:0}.scene-workbench .scene-kit-pill{position:relative;display:flex;align-items:center;gap:6px;min-width:0;height:32px;padding:0 4px 0 10px;border-radius:var(--scene-pill-radius);background:var(--studio-bg-input);box-shadow:inset 0 0 0 1px var(--studio-border);color:var(--studio-text-secondary)}.scene-workbench .scene-kit-pill:hover{background:var(--studio-bg-hover)}.scene-workbench .scene-kit-pill>svg{flex-shrink:0}.scene-workbench .scene-kit-pill>select{flex:1;height:100%;padding:0 26px 0 0;border:0;border-radius:0;background:transparent;color:var(--studio-text-primary);-webkit-appearance:none;appearance:none;cursor:pointer}.scene-workbench .scene-kit-pill:hover>.scene-select-chevron{background:var(--studio-border-strong)}.scene-workbench .scene-kit-card{display:flex;flex-direction:column;justify-content:space-between;gap:6px;min-width:0;padding:8px;border-radius:12px;background:var(--studio-bg-input);box-shadow:inset 0 0 0 1px var(--studio-border);color:var(--studio-text-secondary);font-size:11px}.scene-workbench .scene-kit-card small{color:var(--studio-text-muted);font-size:10px}.scene-workbench .scene-kit-card>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px}.scene-workbench .scene-kit-card input{width:100%;height:30px;padding:0 4px;border-color:transparent;border-radius:8px;background:var(--studio-bg-hover);color:var(--studio-text-primary);text-align:center;font-variant-numeric:tabular-nums;-moz-appearance:textfield;appearance:textfield}.scene-workbench .scene-kit-card input::-webkit-inner-spin-button,.scene-workbench .scene-kit-card input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.scene-workbench .scene-kit-card input:hover:not(:disabled){background:var(--studio-border-strong)}.scene-workbench .scene-kit-card input:focus{border-color:transparent;outline:none}.scene-workbench .scene-kit-section>.scene-toggle-row{display:flex;align-items:center;gap:8px;font-size:11px}.scene-workbench .scene-kit-section .scene-segment{height:32px;padding:3px;border:0;border-radius:var(--scene-pill-radius);box-shadow:inset 0 0 0 1px var(--studio-border)}.scene-workbench .scene-kit-section .scene-segment>label{padding:0 14px;border-radius:var(--scene-pill-inner-radius);font-size:12px}.scene-workbench .scene-transform-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.scene-workbench .scene-kit-rotate{padding:0 4px 0 12px;gap:2px}.scene-workbench .scene-kit-rotate>input{flex:1;width:100%;height:100%;padding:0;border:0;border-radius:0;background:transparent;color:var(--studio-text-primary);font-weight:600;font-variant-numeric:tabular-nums;-moz-appearance:textfield;appearance:textfield}.scene-workbench .scene-kit-rotate>input::-webkit-inner-spin-button,.scene-workbench .scene-kit-rotate>input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.scene-workbench .scene-kit-rotate>button{width:26px;height:24px;min-height:24px;padding:0;border:0;border-radius:var(--scene-pill-inner-radius);background:var(--studio-bg-hover);color:var(--studio-text-secondary)}.scene-workbench .scene-kit-rotate>button:hover:not(:disabled){background:var(--studio-accent-soft);color:var(--studio-accent)}.scene-workbench .scene-kit-scale>input{height:32px}.scene-workbench .scene-kit-color{display:flex;align-items:center;gap:10px;width:fit-content;min-width:130px;height:32px;padding:3px 14px 3px 3px;border-radius:var(--scene-pill-radius);background:var(--studio-bg-input);box-shadow:inset 0 0 0 1px var(--studio-border);color:var(--studio-text-primary);font-variant-numeric:tabular-nums;cursor:pointer}.scene-workbench .scene-kit-color:hover{background:var(--studio-bg-hover)}.scene-workbench .scene-kit-color>input[type=color]{width:38px;height:26px;padding:0;border:0;border-radius:var(--scene-pill-inner-radius);background:transparent;cursor:pointer}.scene-workbench .scene-kit-color>input[type=color]::-webkit-color-swatch-wrapper{padding:0}.scene-workbench .scene-kit-color>input[type=color]::-webkit-color-swatch{border:0;border-radius:var(--scene-pill-inner-radius)}.scene-workbench .scene-kit-color>input[type=color]::-moz-color-swatch{border:0;border-radius:var(--scene-pill-inner-radius)}.scene-workbench .scene-kit-color:has(input:disabled){opacity:.4;cursor:not-allowed}.scene-sidebar-content>details.scene-hierarchy:not([open]){flex:0 0 auto;min-height:0;overflow:visible}.scene-hierarchy>summary{display:flex;align-items:center;gap:7px;padding:9px 6px;border-radius:8px;font-size:13px;font-weight:600;list-style:none;cursor:pointer;position:sticky;top:-5px;background:var(--studio-bg-panel);z-index:1}.scene-hierarchy>summary::-webkit-details-marker{display:none}.scene-hierarchy>summary>span{margin-left:auto;color:var(--studio-text-muted);font-size:10px;font-weight:400}.scene-hierarchy>summary>.scene-hierarchy-chevron{color:var(--studio-text-secondary);transition:transform .15s ease}.scene-hierarchy[open]>summary>.scene-hierarchy-chevron{transform:rotate(180deg)}.scene-library>.scene-select{margin-top:8px}.scene-workbench .scene-templates{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;margin-top:8px}.scene-workbench .scene-templates>label{display:block}.scene-workbench .scene-templates .scene-stepper-field{width:56px}.scene-workbench .scene-templates .scene-stepper-field>input{height:30px}.scene-workbench .scene-sidebar :is(input:not([type=checkbox]):not([type=color]):not([type=range]),select,textarea):not(:focus){border-color:transparent}.scene-workbench .scene-sidebar :is(input:not([type=checkbox]):not([type=color]):not([type=range]),select,textarea):focus{border-color:transparent;outline:none}.scene-workbench .scene-sidebar :is(.scene-kit-pill,.scene-kit-card,.scene-kit-color,.scene-segment){border-color:transparent;box-shadow:none}.scene-workbench .scene-sidebar .scene-color-trigger{border-color:transparent}html[data-crystal-theme=light] .scene-workbench .scene-dialog-shade{background:hsla(0,0%,93%,.72)}.scene-project-row{flex-wrap:wrap}.scene-project-row>input{flex:1 1 0;min-width:0;width:auto}.scene-project-row>button{flex-shrink:0}.scene-save-badge{order:10;flex-basis:100%;width:100%;display:flex;align-items:center;gap:7px;min-height:26px;padding:0 9px;border:0;border-radius:8px;background:var(--studio-bg-elevated);color:var(--studio-text-secondary);font-size:11px;font-weight:500;text-align:left;cursor:default}.scene-save-badge i{width:7px;height:7px;flex:none;border-radius:50%;background:var(--studio-text-muted)}.scene-save-badge.is-saved i{background:#22c55e}.scene-save-badge.is-saving i{background:#f59e0b;animation:scene-save-pulse 1.2s ease-in-out infinite}.scene-save-badge.is-error{background:rgba(220,38,38,.14);color:#fca5a5;cursor:pointer}.scene-save-badge.is-error i{background:#ef4444}.scene-save-badge.is-local i{background:#60a5fa}html[data-crystal-theme=light] .scene-save-badge.is-error{color:#b91c1c}@keyframes scene-save-pulse{50%{opacity:.35}}.scene-load-error{position:absolute;inset:0;z-index:70;display:grid;place-content:center;justify-items:center;gap:10px;padding:24px;background:var(--studio-bg-canvas);color:var(--studio-text-primary);text-align:center}.scene-load-error strong{font-size:17px}.scene-load-error p{max-width:440px;margin:0;color:var(--studio-text-secondary);font-size:13px;line-height:1.5}.scene-load-error div{display:flex;gap:10px;margin-top:6px}.scene-load-error :is(a,button){display:inline-flex;align-items:center;height:34px;padding:0 16px;border:0;border-radius:9px;background:var(--studio-bg-elevated);color:var(--studio-text-primary);font-size:13px;font-weight:600;text-decoration:none;cursor:pointer}.scene-load-error :is(a,button):first-child{background:var(--studio-accent);color:#fff}.scene-session-wait{display:grid;place-items:center;min-height:100dvh;background:var(--studio-bg-canvas)}