:root{font:14px system-ui,-apple-system,Segoe UI,sans-serif;color:#dce8fb;background:#070d19;--line:#25324a;--muted:#8594b0;--bg:#0d1729;--panel:#101b2e}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;color:inherit;background:#1b2a43;border:1px solid #334762;border-radius:7px;padding:8px 10px}button:hover{background:#273c5b}button:disabled{opacity:.35;cursor:not-allowed}input,select{border:1px solid #344661;background:#111e33;color:#e6edfc;border-radius:6px;padding:7px;min-width:0}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #9d9bff;outline-offset:2px}.app{display:flex;flex-direction:column;min-height:100vh;height:100vh;min-width:760px}.topbar{height:75px;display:flex;align-items:center;gap:22px;padding:12px 19px;background:#111c30;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;min-width:191px}.mark{font-size:27px;font-weight:900;background:linear-gradient(140deg,#8c86fc,#54c7da);color:#070b19;width:42px;height:42px;border-radius:10px;text-align:center;line-height:42px}.mark span{font-size:11px;vertical-align:top}.brand strong{font-size:16px;letter-spacing:2px;display:block}.brand small{display:block;color:#9faac4;font-size:10px;letter-spacing:1.3px}.project-meta{display:flex;align-items:center;gap:10px;flex:1;min-width:110px}.project-meta input{width:100%;max-width:280px}.pill{white-space:nowrap;color:#82c8bb;border:1px solid #2c5a56;border-radius:20px;font-size:10px;font-weight:700;padding:7px 9px}.live-dot{display:inline-block;background:#5bd7b1;width:7px;height:7px;border-radius:50%;margin-right:6px}.top-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.top-actions button{font-size:12px}.primary{border-color:#7167d2;background:#5b52ad;color:#fff}.primary:hover{background:#7369d0}.ghost{background:#18253a}.small{padding:5px 8px;font-size:11px}.full{width:100%}.workspace{display:grid;grid-template-columns:250px minmax(310px,1fr) 270px;min-height:260px;flex:1;overflow:hidden}.sidebar{background:var(--panel);padding:16px;overflow:auto}.left{border-right:1px solid var(--line)}.right{border-left:1px solid var(--line)}.section-heading{display:flex;justify-content:space-between;gap:10px;color:#98aac5;font-size:10px;font-weight:800;letter-spacing:1.4px;padding-bottom:13px}.section-heading span+span{font-weight:500;letter-spacing:0}.add-controls{display:flex;gap:6px}.add-controls select{width:140px;flex:1}.add-controls button{background:#655ccc;color:#fff;border-color:#867bdb}.scene-list{margin:16px -7px;min-height:90px}.scene-object{display:flex;align-items:center;width:100%;text-align:left;padding:11px 10px;gap:10px;background:none;border:1px solid transparent}.scene-object.active{background:#272d5a;border-color:#50549b}.scene-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shape-icon{color:#9b9fff;font-size:20px}.left-footer{display:grid;gap:7px;margin:12px 0 25px}.danger{color:#f7aaaa}.muted{color:var(--muted)}.help{padding:12px}.hints{border-top:1px solid var(--line);padding-top:18px}.hints p{margin:11px 0;color:#aebcd3;font-size:12px}kbd{display:inline-block;padding:3px 6px;border-radius:4px;background:#202f46;color:#dbe6f5}.viewport-panel{position:relative;min-height:270px;background:#0c1526;overflow:hidden}.viewport-panel canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}.viewport-panel canvas:active{cursor:grabbing}.view-top,.view-bottom{position:absolute;left:0;right:0;display:flex;align-items:center;justify-content:space-between;pointer-events:none;z-index:2;background:linear-gradient(#101a2aca,transparent);padding:13px 16px;color:#a8b8d0;font-size:11px}.view-top{top:0}.view-bottom{bottom:0;background:linear-gradient(transparent,#101a2ad0)}.view-top>*{pointer-events:auto}.view-tag{padding:4px 7px;background:#293957;border-radius:4px;font-size:10px;margin-right:12px;color:#cdd4ec}.axis-compass{position:absolute;bottom:46px;right:25px;display:flex;gap:9px;font-weight:800}.axis-x{color:#f18b95}.axis-y{color:#7ce3af}.axis-z{color:#8abaff}.field-label{display:block;color:#9aaecb;font-size:10px;letter-spacing:1px;font-weight:700;margin:15px 0 7px}.object-name{width:100%}.color-row{display:flex;align-items:center;gap:10px;color:#9caec5;font-size:12px}.color-row input{padding:2px;width:46px;height:35px}.color-row button{margin-left:auto}.transform-title{display:flex;justify-content:space-between;margin:24px 0 10px;color:#bacbe3;font-size:11px;letter-spacing:1px;font-weight:800}.transform-title span{font-weight:400;color:#7388a7;font-size:10px}.vector-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.vec-row{display:flex;flex-direction:column;gap:5px}.vec-row input{width:100%;font-size:12px;padding:8px 4px;text-align:center}.axis-label{font-size:12px;font-weight:900}.axis-label.x{color:#f08b95}.axis-label.y{color:#72d5a9}.axis-label.z{color:#8dbafa}.empty{color:#98abc6;font-size:12px}.key-card{margin-top:25px;padding:14px;background:#171f38;border:1px solid #2b3b57;border-radius:10px}.key-title{font-size:11px;font-weight:800;letter-spacing:1px}.key-card p{font-size:11px;line-height:1.5;color:#9daece}.key-card button{margin-top:8px}.key-summary{color:#8396b6;font-size:11px;padding-top:12px}.timeline-section{height:250px;flex:none;background:#0c1425;border-top:1px solid var(--line);display:flex;flex-direction:column;min-height:145px}.timeline-bar{height:63px;display:flex;justify-content:space-between;align-items:center;padding:10px 18px;border-bottom:1px solid var(--line);gap:14px}.timeline-title{width:160px;display:flex;flex-direction:column;gap:4px;font-size:11px;letter-spacing:1.1px}.timeline-title span{font-size:10px;color:#8798b3}.transport{display:flex;gap:6px}.transport button{padding:5px 11px}.transport .play{background:#5954bc}.time-settings{display:flex;gap:10px}.time-settings label{display:flex;align-items:center;gap:6px;color:#9daec8;font-size:10px}.time-settings input{width:60px}.time-settings select{width:57px}.timeline-scroll{overflow-y:auto;overflow-x:hidden;flex:1;position:relative}.timeline-ruler,.timeline-row,.playhead-track{display:flex;min-height:34px;border-bottom:1px solid #1f2e46;position:relative}.track-label{flex:0 0 183px;text-align:left;padding:8px 14px;font-size:11px;color:#afc0d9;border:0;border-right:1px solid #34415b;border-radius:0;background:#101b2d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ruler-range,.track-range,.playhead-range{flex:1;position:relative;cursor:crosshair;background:repeating-linear-gradient(90deg,transparent 0,transparent calc(25% - 1px),#203047 calc(25% - 1px),#203047 25%)}.ruler-range span{position:absolute;top:8px;transform:translate(-50%);font-size:10px;color:#91a5c6}.timeline-row.active{background:#1b244a}.timeline-row.active .track-label{background:#252c56}.keyframe{position:absolute;top:6px;transform:translate(-50%);padding:0;color:#bda5ff;border:0;background:transparent;font-size:17px}.keyframe:hover{background:transparent;color:#fff}.playhead-track{pointer-events:none;position:absolute;top:0;bottom:0;width:100%;border:0}.playhead-track .track-label{background:transparent;border:0}.playhead-range{background:transparent}.playhead{height:100%;width:2px;position:absolute;background:#ee9d9e;box-shadow:0 0 7px #ee9d9e}.playhead:before{content:"▼";font-size:13px;color:#ee9d9e;position:absolute;left:-5px;top:-5px}footer{display:flex;justify-content:space-between;gap:18px;background:#101a2a;border-top:1px solid #2c374c;padding:10px 17px;color:#d9e5f5;font-size:11px}.status{color:#8edac6;text-align:right}@media(max-width:1150px){.topbar{height:auto;min-height:72px;flex-wrap:wrap}.project-meta{flex:1}.top-actions{flex:1;justify-content:flex-start}.workspace{grid-template-columns:205px minmax(300px,1fr) 235px}.track-label{flex-basis:145px}.pill{display:none}}@media(max-height:760px){.timeline-section{height:195px}.hints{display:none}}.viewport-actions{display:flex;align-items:center;gap:6px}.tool-button{border:1px solid #394965;background:#17243c;border-radius:6px;padding:6px 10px;font-size:11px;font-weight:700}.tool-button.chosen{background:#514ea8;color:#fff;border-color:#8a86f4;box-shadow:inset 0 0 0 1px #6766c1}@media(max-width:930px){.viewport-actions{gap:3px}.tool-button{padding:6px 5px}}.viewport-actions{flex-wrap:wrap;justify-content:flex-end;max-width:70%}.tool-button{white-space:nowrap}.timeline-section.graph-open{height:375px;max-height:48vh}.timeline-toggle{display:flex;gap:4px;flex-shrink:0}.timeline-toggle button{padding:7px 10px;font-size:11px;background:#152238;color:#9eb1d0}.timeline-toggle button[aria-pressed=true]{background:#514ea8;border-color:#8581ea;color:#fff}.graph-editor{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;background:#0c1525}.graph-controls{display:flex;align-items:center;gap:14px;padding:8px 14px;background:#121e33;border-bottom:1px solid #263750;flex-wrap:wrap}.graph-controls label{color:#99abc7;font-size:10px;letter-spacing:.4px;display:flex;align-items:center;gap:7px;white-space:nowrap}.graph-controls select{font-size:11px;max-width:170px;padding:5px}.graph-readout{color:#d9e7f8;font-size:11px;margin-left:auto;font-weight:700}.graph-readout span{color:#91a4c0;font-weight:400}.curve-graph{display:block;width:100%;flex:1;min-height:110px;-webkit-user-select:none;user-select:none;touch-action:none;overflow:hidden}.curve-graph circle{cursor:grab;transition:stroke-width .1s}.curve-graph circle:hover{stroke:#fff;stroke-width:3}.graph-note{padding:8px 14px;background:#101b2d;color:#96a9c4;font-size:11px;line-height:1.3}.graph-empty{padding:32px;color:#9fb0ca}@media(max-width:1100px){.timeline-section.graph-open{height:370px}.timeline-bar{gap:7px}.graph-controls{gap:8px}.graph-controls select{max-width:115px}.graph-readout{display:none}}@media(max-height:760px){.timeline-section.graph-open{height:300px}.graph-note{display:none}}.inspector-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-bottom:15px}.inspector-tabs button{background:#152238;color:#aebddd;font-size:12px;padding:8px 5px}.inspector-tabs button[aria-pressed=true]{background:#514ea8;border-color:#8480e5;color:#fff}.material-editor{border-top:1px solid #29394e;margin-top:18px;padding-top:3px}.material-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.material-preset{font-size:11px;padding:7px 3px}.material-preset.chosen{background:#4b5095;border-color:#9a91ea}.material-numbers{margin-top:11px;display:grid;gap:8px}.material-number{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#b2c2d9;font-size:11px}.material-number input{width:77px;min-width:0;font-size:12px;text-align:right;padding:6px}.material-help{color:#8295b0;font-size:11px;line-height:1.6;margin:12px 0}.light-cue{height:16px;border-radius:4px;margin:12px 0 22px;opacity:.8;border:1px solid #56637d}.light-settings{margin:18px 0 14px;border:1px solid #2c405e;border-radius:9px;padding:12px;display:grid;gap:10px;min-width:0}.light-settings legend{color:#c5d5ec;font-size:11px;font-weight:800;letter-spacing:1px;padding:0 6px}.light-enabled,.light-color{display:flex;align-items:center;justify-content:space-between;gap:7px;color:#bac8dc;font-size:11px}.light-enabled{justify-content:flex-start}.light-enabled input{accent-color:#8b82f1}.light-color input{height:30px;width:57px;padding:2px}.direction-label{font-size:10px;font-weight:700;color:#8295af}.light-vector{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.light-vector label{display:flex;flex-direction:column;gap:4px;color:#a8badd;font-size:11px}.light-vector input{width:100%;font-size:11px;text-align:center;padding:5px 2px}.inspector-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.inspector-tabs button{font-size:11px;white-space:nowrap;padding:8px 3px}.shot-studio{display:flex;flex-direction:column;gap:10px;padding-bottom:14px}.shot-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.shot-actions button{font-size:11px;padding:8px 4px}.shot-fields{display:grid;grid-template-columns:1fr;gap:7px}.shot-field{display:flex;align-items:center;justify-content:space-between;gap:9px;font-size:11px;color:#b7c6df}.shot-field input[type=number]{width:83px;text-align:right}.shot-field input[type=color]{width:83px;height:29px;padding:2px}.shot-field select{width:145px;font-size:11px}.shot-studio>.transform-title{margin:12px 0 4px}.shot-range{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.shot-range label{display:flex;flex-direction:column;gap:5px;font-size:10px;color:#8fa3c1;font-weight:700}.shot-range input{width:100%;padding:7px 5px;text-align:center;font-size:12px}.render-progress{border:1px solid #467c80;background:#17333c;color:#a0f0e5;border-radius:7px;padding:10px;text-align:center;font-weight:700}.viewport-actions{max-width:82%}@media(max-width:960px){.viewport-actions{max-width:92%}.tool-button{padding:5px 4px;font-size:10px}}.mesh-workshop{border-top:1px solid #33425c;padding-top:10px;margin:14px 0}.mesh-workshop .transform-title{margin:10px 0}.mesh-help{font-size:11px;line-height:1.55;color:#96a9c8;margin:9px 0}.mesh-counts{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:8px 0;font-size:10px;text-align:center;color:#b6dbed}.mesh-modes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}.mesh-modes button{font-size:10px;padding:7px 3px;border-radius:5px}.mesh-modes button[aria-pressed=true]{background:#655cae;border-color:#a9a3ed;color:#fff}.mesh-select{display:flex;justify-content:space-between;align-items:center;gap:5px;color:#adbed9;font-size:10px;margin:12px 0 7px}.mesh-select select{width:135px;font-size:11px}.mesh-coordinates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.mesh-coordinates label{font-size:10px;display:flex;flex-direction:column;gap:5px;color:#92b2da}.mesh-coordinates input{width:100%;font-size:11px;padding:6px 3px;text-align:center}.topology-tools{border:1px solid #425377;background:#142136;border-radius:9px;padding:10px;margin:13px 0;display:grid;gap:7px}.topology-tools .transform-title{margin:2px 0 4px}.topology-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:end}.topology-row label{display:flex;flex-direction:column;gap:4px;font-size:10px;color:#aebfdc;font-weight:700}.topology-row input{width:100%;padding:7px 6px;text-align:center;font-size:12px}.topology-action{font-size:11px;background:#4b4a89;border-color:#8385c8;color:#fff;padding:8px 3px;white-space:nowrap}.topology-action:hover{background:#6461b0}.modifier-stack{border-top:1px solid #344664;margin:16px 0;padding:12px 0 14px}.modifier-buttons{display:grid;grid-template-columns:1fr 1fr;gap:7px}.modifier-buttons button{font-size:11px;padding:8px 4px}.modifier-entry{background:#17243a;border:1px solid #354865;border-radius:9px;margin:10px 0;padding:10px 9px;display:grid;gap:9px}.modifier-heading{display:flex;align-items:center;justify-content:space-between;gap:4px}.modifier-heading label{display:flex;align-items:center;gap:7px;font-size:11px;min-width:0}.modifier-heading input{accent-color:#837cef}.modifier-actions{display:flex;gap:2px}.modifier-actions button{font-size:13px;padding:3px 7px;line-height:1.2}.modifier-setting{display:flex;align-items:center;justify-content:space-between;color:#aebfda;font-size:11px;gap:5px}.modifier-setting select{max-width:140px;font-size:11px;padding:6px 5px}.modifier-stats{display:grid;gap:4px;border-radius:7px;padding:9px;background:#102637;color:#aee5d8;font-size:11px;line-height:1.5}.local-save-state{font-size:10px;color:#a8dccc;white-space:nowrap}.local-save-state.error{color:#ffb4a7}.creator-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#040914de;z-index:999;display:flex;align-items:center;justify-content:center;padding:24px;overflow-y:auto}.creator-dialog{width:min(100%,560px);max-height:90vh;overflow:auto;padding:28px;border:1px solid #6477ab;background:#132039;border-radius:16px;box-shadow:0 26px 80px #020713b8;color:#e6eeff}.creator-dialog h2{font-size:23px;margin:5px 0 13px;line-height:1.25}.creator-dialog p{font-size:12px;color:#adbfd8;line-height:1.6;margin:10px 0}.creator-kicker{font-size:10px;font-weight:800;letter-spacing:1.5px;color:#89e1c9}.creator-draft{padding:13px;border:1px solid #40577b;border-radius:9px;background:#1b304a;display:flex;flex-direction:column;gap:5px;margin:17px 0}.creator-draft span{font-size:11px;color:#c1d3ec}.creator-actions{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.creator-actions button{font-size:12px;padding:10px 12px}.creator-footnote{border-top:1px solid #344b69;padding-top:12px}.creator-heading{display:flex;align-items:start;justify-content:space-between;gap:12px}.creator-heading button{white-space:nowrap;font-size:11px}.starter-dialog{width:min(100%,760px)}.starter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.starter-card{display:flex;flex-direction:column;gap:7px;border:1px solid #40557b;background:#1b2a43;border-radius:10px;padding:14px}.starter-card strong{font-size:14px;color:#e3ebff}.starter-card p{flex:1;margin:0}.starter-card button{align-self:start;margin-top:7px}.topbar,.project-meta{flex-wrap:wrap}@media(max-width:620px){.creator-dialog{padding:18px}.starter-grid{grid-template-columns:1fr}.creator-actions button{flex:1}}.guide-dialog{width:min(100%,650px)}.guide-step-progress{display:flex;gap:9px;margin:18px 0 20px}.guide-dot{flex:1;min-width:12px;height:8px;border-radius:30px;background:#354769;border:1px solid #57719b;padding:0}.guide-dot.current{background:#97e7d8;border-color:#b8fff0}.guide-story{background:#1a2a43;border:1px solid #395474;border-radius:12px;padding:21px;margin-bottom:15px;min-height:185px}.guide-story h3{font-size:21px;margin:7px 0 12px;color:#f1f5ff}.guide-story p{font-size:13px;line-height:1.7;color:#c6d5ea}.guide-hint{font-size:11px;color:#a4e8d5;margin-top:14px;line-height:1.6}.guide-controls{display:flex;justify-content:space-between;gap:8px;margin:10px 0}.guide-controls button{min-width:110px}.guide-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:18px 0}.guide-bottom a{font-size:12px;color:#a8d7ff;text-decoration:underline;text-underline-offset:2px}.guide-bottom .primary{padding:11px 15px}.starter-card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:auto}.starter-card-actions button{font-size:11px;padding:8px 10px;margin:7px 0 0}@media(max-width:620px){.guide-bottom{align-items:start;flex-direction:column}.guide-bottom .primary{width:100%}}.vault-dialog{width:min(100%,730px)}.vault-records{display:flex;flex-direction:column;gap:9px;margin:17px 0}.vault-record{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 12px;border:1px solid #415775;border-radius:9px;background:#1a2b43}.vault-record>div:first-child{display:flex;flex-direction:column;gap:4px;min-width:0}.vault-record strong{color:#f0f4ff;font-size:13px;overflow-wrap:anywhere}.vault-record small{font-size:10px;color:#acc1df}.vault-record-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}.vault-record-actions button{font-size:10px;padding:7px 9px}.vault-error{padding:10px 12px;border:1px solid #d18475;background:#4a2429;color:#ffe4dc;border-radius:7px;overflow-wrap:anywhere}@media(max-width:710px){.vault-record{align-items:stretch;flex-direction:column}.vault-record-actions{justify-content:flex-start}}.topbar{height:auto;min-height:75px;flex:0 0 auto;position:relative;z-index:10;align-content:center;row-gap:9px}
