:root{color-scheme:dark;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Arial,sans-serif;font-synthesis:none;--background: #151618;--header: #191a1d;--panel: #1e1f22;--inset: #26272b;--surface: #292b30;--line: #323438;--line-subtle: #2b2d31;--text: #f3f3f4;--muted: #a8aaae;--dim: #85888e;--accent: #d5f977;--accent-ink: #26331a;--accent-text: #dafa8d;--accent-weak: #303829;--shadow: 0 7px 24px #090a0b23}:root[data-theme=light]{color-scheme:light;--background: #ebede8;--header: #f6f7f3;--panel: #fafbf7;--inset: #eef0eb;--surface: #e8ebe4;--line: #d7dbd1;--line-subtle: #e2e5de;--text: #23271f;--muted: #5e635a;--dim: #666c62;--accent: #c7ee66;--accent-ink: #283919;--accent-text: #476d1e;--accent-weak: #e5efd4;--shadow: 0 7px 24px #34462a12}*{box-sizing:border-box}html,body,#root{margin:0;min-width:325px;min-height:100%;height:100%}body{background:var(--background);color:var(--text);font-size:14px}button,select,input{font:inherit}button,select{cursor:pointer}button{color:inherit;border:0;background:transparent}button:disabled{cursor:default}button,select,input,dialog{-webkit-tap-highlight-color:transparent}button:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--accent-text);outline-offset:3px}svg{flex-shrink:0;vertical-align:middle}h1,h2,h3,p{margin:0}.app{min-height:100%}.app-header{height:70px;padding:0 27px;display:flex;align-items:center;justify-content:space-between;background:var(--header);border-bottom:1px solid var(--line);position:relative;z-index:2}.brand,.header-actions{display:flex;align-items:center}.brand{gap:12px}.brand-icon{display:grid;place-items:center;width:37px;height:37px;border-radius:10px;background:var(--accent);color:var(--accent-ink);box-shadow:0 2px 12px #c9f66524}.brand-name{font-size:17px;font-weight:710;letter-spacing:-.32px;line-height:1.15}.brand-caption{color:var(--dim);font-size:12px;margin-top:4px;line-height:1.1}.header-actions{gap:8px}.header-divider,.tool-divider{display:block;width:1px;height:20px;background:var(--line);margin:0 2px;flex-shrink:0}.icon-button{display:inline-grid;flex:0 0 auto;place-items:center;width:34px;height:34px;border-radius:8px;color:var(--muted);transition:background .16s,color .16s,opacity .16s}.icon-button:not(:disabled):hover{background:var(--surface);color:var(--text)}.icon-button.is-active:hover,.icon-button.is-active{background:var(--accent-weak);color:var(--accent-text)}.icon-button:disabled{opacity:.36}.workspace{display:grid;grid-template-columns:280px minmax(0,1fr);gap:16px;padding:19px 23px 20px;min-height:740px;height:calc(100dvh - 70px);max-width:1920px;margin:0 auto}.panel-hidden .workspace{grid-template-columns:minmax(0,1fr)}.sidebar,.scene-panel,.history-panel{min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.sidebar{display:flex;min-height:0;flex-direction:column;overflow:hidden}.sidebar-tabs{display:grid;grid-template-columns:1fr 1fr;gap:3px;margin:14px 14px 0;padding:3px;border:1px solid var(--line-subtle);border-radius:9px;background:var(--background)}.sidebar-tabs button{padding:7px 3px;border-radius:6px;display:flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;color:var(--muted);font-size:13px;min-height:34px;transition:.16s}.sidebar-tabs button:hover{color:var(--text)}.sidebar-tabs button.current{background:var(--surface);box-shadow:inset 0 0 0 1px #8888881c;color:var(--text);font-weight:620}.sidebar-tabs button.current svg{color:var(--accent-text)}.sidebar-content{padding:22px 18px 17px}.sidebar-content h1{font-size:23px;font-weight:710;letter-spacing:-.57px;line-height:1.1}.panel-description{font-size:13px;color:var(--dim);margin-top:7px;line-height:1.35}.fields{display:flex;flex-direction:column;gap:23px;margin-top:25px}.field{display:flex;flex-direction:column;gap:8px}.field label{line-height:1.25;font-size:14px;font-weight:570;color:var(--text)}.field-heading{display:flex;align-items:center;justify-content:space-between;gap:6px}.field-heading output{font-size:12px;color:var(--accent-text);font-weight:610;padding:3px 7px;line-height:1.1;background:var(--accent-weak);border:1px solid color-mix(in srgb,var(--accent-text) 13%,transparent);border-radius:5px}.select-shell,.stepper,.search{min-width:0;height:42px;display:flex;align-items:center;color:var(--muted);background:var(--inset);border:1px solid var(--line);border-radius:8px}.select-shell{position:relative;padding:0 11px}.select-shell select{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;padding:0 30px 0 36px;-webkit-appearance:none;-moz-appearance:none;appearance:none;color:var(--text);font-size:14px;border:0;border-radius:inherit;background:transparent;text-overflow:ellipsis}.select-shell option{color:var(--text);background:var(--panel)}.select-chevron{position:absolute;right:10px;pointer-events:none}.stepper{justify-content:space-between;padding:3px}.stepper .icon-button{width:34px;height:32px;border-radius:6px}.stepper .icon-button:not(:disabled){background:var(--surface)}.stepper .icon-button:not(:disabled):hover{color:var(--accent-text)}.stepper output{color:var(--text);font-weight:650;font-variant-numeric:tabular-nums}.slider-field{gap:9px}input[type=range]{display:block;width:100%;height:17px;-webkit-appearance:none;-moz-appearance:none;appearance:none;margin:1px 0 0;cursor:pointer;background:transparent;outline-offset:2px;border-radius:3px}input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:9px;background:linear-gradient(to right,var(--accent) var(--progress),var(--line) var(--progress))}input[type=range]::-moz-range-track{height:4px;border-radius:9px;background:linear-gradient(to right,var(--accent) var(--progress),var(--line) var(--progress))}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:14px;height:14px;border-radius:50%;border:0;background:var(--accent);margin-top:-5px;box-shadow:0 0 0 3px #c9f66517}input[type=range]::-moz-range-thumb{width:14px;height:14px;border-radius:50%;border:0;background:var(--accent)}.range-ends{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:var(--dim);line-height:1.1}.generation-actions{display:grid;gap:8px;margin-top:25px}.primary-button,.secondary-button{height:43px;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:650;border-radius:8px;transition:filter .16s,background .16s,translate .16s}.primary-button{background:var(--accent);color:var(--accent-ink);box-shadow:0 4px 15px #c9f66513}.primary-button:hover:not(:disabled){filter:brightness(1.08);translate:0 -1px}.secondary-button{background:var(--inset);border:1px solid var(--line);color:var(--text)}.secondary-button:hover:not(:disabled){background:var(--surface)}.secondary-button svg{color:var(--muted)}.generation-actions button:disabled{opacity:.69}.pending{font-size:12px;color:var(--dim);text-align:center;margin-top:9px}.sidebar-bottom{margin:auto 17px 16px;background:var(--inset);border:1px solid var(--line-subtle);border-radius:9px;padding:10px 10px 8px}.tip-title{color:var(--text);display:flex;align-items:center;gap:6px;font-weight:620;font-size:12px;margin-bottom:6px}.tip-title svg{color:var(--dim)}.shortcut{display:flex;align-items:center;justify-content:space-between;gap:7px;font-size:12px;line-height:1.25;color:var(--muted);min-height:27px}.shortcut>span:last-child{display:inline-flex;align-items:center;gap:3px;color:var(--dim);white-space:nowrap}kbd{display:inline-grid;place-items:center;min-width:17px;height:17px;padding:0 3px;border-radius:4px;border:1px solid var(--line);background:var(--panel);color:var(--muted);font:11px ui-monospace,SFMono-Regular,monospace}.main-column{min-width:0;min-height:0;display:flex;flex-direction:column;gap:13px}.scene-panel{display:flex;flex:1 1 auto;min-height:0;flex-direction:column;overflow:hidden}.scene-toolbar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;flex:0 0 53px;padding:0 12px 0 15px}.scene-heading{display:flex;align-items:center;gap:8px;color:var(--muted)}.scene-heading h2,.history-toggle h2{color:var(--text);font-size:15px;font-weight:670}.view-switch{display:flex;align-items:center;gap:2px;background:var(--background);padding:3px;border:1px solid var(--line-subtle);border-radius:8px}.view-switch button{display:flex;align-items:center;gap:6px;min-height:28px;padding:0 10px;color:var(--muted);font-size:13px;border-radius:5px;transition:.16s}.view-switch button:hover{color:var(--text)}.view-switch button.current{color:var(--text);background:var(--surface);box-shadow:inset 0 0 0 1px #8888881c}.view-switch button.current svg{color:var(--accent-text)}.scene-tools{display:flex;justify-content:end;gap:2px}.viewport{position:relative;flex:1 1 auto;min-height:310px;overflow:hidden;background:#273c34;isolation:isolate}.viewport canvas{position:absolute;width:100%;height:100%;display:block;touch-action:none;outline:none}.scene-shade{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;background:radial-gradient(ellipse at 52% 46%,transparent 43%,#12272023 84%,#0b1c1b58 100%)}.top-view .scene-shade{display:none}.scene-tag,.scene-seed,.selected-tag{display:flex;align-items:center;gap:7px;border:1px solid #e1ffde30;border-radius:7px;background:#161d19aa;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);color:#edf2e9;box-shadow:0 4px 12px #08151324}.scene-tag{position:absolute;top:15px;left:15px;height:30px;padding:0 9px;font-size:12px;font-weight:610;pointer-events:none}.scene-tag-dot{width:6px;height:6px;background:var(--accent);border-radius:50%;box-shadow:0 0 7px #d5f9777c}.scene-overlay{position:absolute;left:15px;bottom:14px;pointer-events:none}.scene-seed{font:12px ui-monospace,SFMono-Regular,monospace;height:29px;padding:0 9px;letter-spacing:.04em}.scene-seed span{color:#b2bdad;font-size:10px;letter-spacing:.085em}.selected-tag{pointer-events:auto;min-height:33px;padding:0 4px 0 9px}.selected-tag .icon-button{height:27px;width:27px;color:#e0e7dc}.scene-coordinate{position:absolute;bottom:10px;right:13px;width:61px;height:61px;pointer-events:none;filter:drop-shadow(0 1px 3px #0b1c1bba)}.scene-coordinate line{stroke:currentColor;stroke-width:1.45px}.scene-coordinate circle,.scene-coordinate text{fill:currentColor}.scene-coordinate text{dominant-baseline:central;text-anchor:middle;font:700 10px ui-monospace,monospace}.axis-y{color:#d3f89c}.axis-x{color:#f3a488}.axis-z{color:#9ed8f7}.axis-origin{color:#f4f7ee}.loader,.viewport-error{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;gap:10px;padding:20px;background:#13201bab;color:#f0f7e7;font-size:16px}.loader svg{color:var(--accent);animation:pulse 1s infinite alternate}@keyframes pulse{0%{opacity:.55}to{opacity:1}}.scene-footer{display:flex;min-height:45px;justify-content:space-between;align-items:center;padding:0 11px;gap:5px}.edit-tools,.scene-metrics,.scene-metrics>span{display:flex;align-items:center;gap:4px}.edit-tools .icon-button{width:31px;height:31px;border-radius:6px}.scene-metrics{gap:13px;color:var(--muted);font-variant-numeric:tabular-nums;font-size:12px;padding-right:4px;white-space:nowrap}.scene-metrics>span{gap:5px}.scene-metrics svg{color:var(--dim)}.history-panel{flex:0 0 auto;min-width:0;padding:0 12px 11px}.history-panel.collapsed{padding-bottom:0}.history-heading{height:47px;display:flex;justify-content:space-between;align-items:center;gap:6px}.history-toggle,.history-actions,.favorite-filter{display:flex;align-items:center}.history-toggle{gap:8px;padding:0 4px;min-height:33px;color:var(--muted)}.history-toggle:hover,.favorite-filter:hover{color:var(--text)}.history-toggle .closed{transform:rotate(-90deg)}.history-count{font-size:12px;font-weight:650;background:var(--surface);border-radius:5px;line-height:19px;min-width:19px;padding:0 4px;text-align:center}.history-actions{gap:3px}.history-actions .icon-button{width:28px;height:29px}.favorite-filter{gap:6px;min-height:29px;border-radius:6px;padding:0 7px;color:var(--muted);font-size:12px}.favorite-filter.current{background:var(--accent-weak);color:var(--accent-text)}.favorite-filter.current svg,.card-actions .is-active svg{fill:currentColor}.history-list{display:flex;gap:8px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent;padding:1px;min-height:96px}.history-card{position:relative;flex:0 0 calc((100% - 24px)/4);min-width:130px;border:1px solid var(--line);background:var(--inset);border-radius:8px;overflow:hidden}.history-card.active{border-color:var(--accent-text)}.card-activate{display:block;width:100%;text-align:left;padding:0}.card-activate:hover .history-thumbnail img{filter:brightness(1.16)}.history-thumbnail{position:relative;display:grid;place-items:center;height:62px;background:var(--thumb-color);color:#ffffff75;overflow:hidden}.history-thumbnail:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(transparent 55%,#0a100e48);pointer-events:none}.history-thumbnail img{position:absolute;top:0;right:0;bottom:0;left:0;display:block;object-fit:cover;object-position:50% 51%;width:100%;height:100%;transition:filter .18s}.history-info{padding:5px 8px 6px;display:flex;justify-content:space-between;align-items:center;gap:5px;white-space:nowrap}.history-info span{color:var(--text);font-size:12px;font-weight:620;overflow:hidden;text-overflow:ellipsis}.history-info small{color:var(--dim);font-size:11px}.history-info b{font-weight:400;margin:0 1px}.card-actions{position:absolute;right:4px;top:4px;display:flex;gap:3px}.card-actions .icon-button{background:#171e1bc7;color:#edf1e5;width:23px;height:23px;border-radius:5px;opacity:.83}.card-actions .icon-button:last-child{opacity:0}.history-card:hover .card-actions .icon-button,.history-card:focus-within .card-actions .icon-button{opacity:1}.card-actions .icon-button:hover{background:#26302a;color:#fff}.card-actions .icon-button.is-active{opacity:1;color:#d5f977}.empty{color:var(--dim);padding:13px 7px;font-size:13px}.storage-error{color:#dfaa7d;font-size:12px}.library-panel{min-height:0;flex:1;display:flex;flex-direction:column}.search{margin-top:19px;padding:0 9px;gap:7px;flex-shrink:0}.search input{outline:none;background:transparent;color:var(--text);border:0;height:100%;width:100%;min-width:0}.search:focus-within{border-color:var(--accent-text)}.search .icon-button{width:23px;height:23px}.library-filter{margin:8px 0;flex-shrink:0}.object-list{min-height:74px;overflow-y:auto;scrollbar-color:var(--line) transparent;scrollbar-width:thin}.object-list button{width:100%;display:grid;grid-template-columns:31px 1fr auto;align-items:center;gap:8px;padding:6px 5px;text-align:left;border-radius:7px}.object-list button:hover{background:var(--inset)}.object-list span:nth-child(2){line-height:1.17}.object-list small{display:block;font-size:11px;color:var(--dim);margin-top:3px}.object-list button>svg,.object-icon{color:var(--accent-text)}.object-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:6px;background:var(--accent-weak)}.is-expanded .scene-panel{position:fixed;top:11px;right:11px;bottom:11px;left:11px;z-index:5;box-shadow:0 0 0 30px var(--background)}.help-dialog{color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:17px 19px;width:min(430px,calc(100vw - 24px));box-shadow:0 18px 60px #0006}.help-dialog::backdrop{background:#080a0abd;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.dialog-heading h2{font-size:20px}.help-dialog h3{font-size:14px;margin:12px 0 4px}.help-dialog .shortcut{min-height:29px;font-size:13px}@media(min-width:1450px){.workspace{grid-template-columns:300px minmax(0,1fr)}.history-thumbnail{height:73px}}@media(max-width:1050px){.workspace{grid-template-columns:247px minmax(0,1fr);padding-inline:15px;gap:12px}.sidebar-content{padding-inline:14px}.history-info{align-items:start;flex-direction:column;gap:3px}}@media(max-width:800px){.workspace{grid-template-columns:223px minmax(0,1fr);padding-inline:10px;gap:9px}.history-card{flex-basis:calc((100% - 16px)/3)}.scene-metrics .room-metric{display:none}.scene-toolbar{padding-inline:7px}}@media(max-width:670px){.app-header{height:60px;padding-inline:12px}.brand-caption{display:none}.workspace{display:flex;flex-direction:column;height:auto;min-height:calc(100dvh - 60px);padding:9px 9px 14px}.main-column{order:0}.sidebar{order:1}.scene-panel{min-height:398px}.viewport{min-height:50dvh}.scene-toolbar{flex-basis:45px}.scene-heading{gap:5px}.scene-heading h2{font-size:14px}.view-switch button{padding-inline:6px;font-size:12px}.view-switch button svg{display:none}.scene-tools .icon-button{width:28px}.sidebar-bottom{margin-top:0}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 13px}.sidebar-content h1{font-size:19px}.generation-actions{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:18px}.object-list{max-height:320px}.card-actions .icon-button:last-child{opacity:.83}}@media(hover:none){.card-actions .icon-button:last-child{opacity:.83}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}@media(min-width:671px)and (max-height:835px){.workspace{min-height:650px;padding-block:13px}.sidebar{overflow:auto;scrollbar-width:thin}.sidebar-content{padding-block:17px 13px}.fields{gap:16px;margin-top:19px}.generation-actions{margin-top:20px}.primary-button,.secondary-button{height:39px}.sidebar-bottom{margin-bottom:10px;padding-block:8px 6px}.sidebar-bottom .shortcut{min-height:23px}}.export-button{min-height:34px;display:flex;align-items:center;gap:7px;padding:0 10px;border-radius:8px;color:var(--text);background:var(--inset);border:1px solid var(--line);font-weight:620;transition:background .16s,color .16s}.export-button:hover{background:var(--surface);color:var(--accent-text)}.export-button svg{color:var(--accent-text)}.export-dialog{width:min(370px,calc(100vw - 24px))}.export-options{display:grid;gap:8px;margin-top:16px}.export-options button{min-height:50px;display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:9px;border-radius:8px;padding:7px 10px;border:1px solid var(--line);background:var(--inset);text-align:left;font-weight:620}.export-options button:not(:disabled):hover{background:var(--surface)}.export-options button:disabled{opacity:.65}.export-options button>svg{color:var(--muted)}.export-options small{display:block;color:var(--muted);font-size:12px;font-weight:400;margin-top:3px}.export-error{margin-top:12px;font-size:13px;color:var(--text)}@media(max-width:570px){.export-button{padding-inline:8px}.export-button span{display:none}.header-actions{gap:4px}}@media(max-width:390px){.header-actions .icon-button{width:29px}.brand{gap:8px}.brand-name{font-size:15px}}
