:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#ecf1f2;background:#010101;font-synthesis:none;text-rendering:optimizeLegibility;--bg: oklch(.075 0 0);--stage: oklch(.015 0 0);--surface: oklch(.125 .008 200);--surface-raised: oklch(.165 .01 200);--surface-hover: oklch(.205 .014 200);--line: oklch(.255 .015 200);--line-strong: oklch(.355 .025 200);--ink: oklch(.955 .006 200);--muted: oklch(.69 .018 200);--primary: oklch(.75 .08 200);--primary-strong: oklch(.81 .105 200);--accent: oklch(.72 .13 315);--danger: oklch(.65 .18 25);--success: oklch(.72 .13 155);--focus: oklch(.82 .11 200);--radius: 10px;--z-sticky: 20;--z-toast: 60}*{box-sizing:border-box}html,body,#root{min-width:320px;min-height:100%;margin:0}body{min-height:100vh;overflow:hidden;background:var(--bg)}button,input,select{font:inherit}button{color:inherit}button,select,input[type=range],input[type=checkbox]{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--focus);outline-offset:2px}button:disabled{cursor:not-allowed;opacity:.42}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.app-shell{display:grid;grid-template:52px minmax(0,1fr) / 360px minmax(480px,1fr);grid-template-areas:"topbar topbar" "editor preview";min-height:100vh;max-height:100vh;background:var(--bg)}.topbar{grid-area:topbar;display:grid;grid-template-columns:360px minmax(0,1fr) auto;align-items:center;min-width:0;border-bottom:1px solid var(--line);background:#020303;z-index:var(--z-sticky)}.brand-mark{display:flex;align-items:center;gap:10px;padding:0 16px;font-size:14px;letter-spacing:-.01em}.brand-symbol{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;color:#000808;background:var(--primary)}.project-name{min-width:0}.project-name input{width:min(340px,70%);border:0;border-radius:6px;padding:6px 9px;color:var(--ink);background:transparent;text-align:center;font-weight:600}.project-name input:hover,.project-name input:focus{background:var(--surface)}.topbar-meta{display:flex;align-items:center;gap:14px;padding-right:12px}.save-status{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px}.save-status>span{width:6px;height:6px;border-radius:50%;background:var(--success)}.editor-sidebar{grid-area:editor;display:flex;min-height:0;border-right:1px solid var(--line);background:var(--surface)}.tab-bar{display:flex;flex-direction:column;width:68px;flex:0 0 68px;padding:10px 7px;gap:4px;border-right:1px solid var(--line);background:#020404}.tab-bar button{display:flex;flex-direction:column;align-items:center;gap:5px;min-height:54px;border:0;border-radius:8px;padding:8px 3px;color:var(--muted);background:transparent;font-size:10px;transition:background .16s ease-out,color .16s ease-out}.tab-bar button:hover{color:var(--ink);background:var(--surface-raised)}.tab-bar button.active{color:var(--primary-strong);background:#001c1d}.editor-pane{width:292px;overflow-y:auto;padding:18px 16px 28px;scrollbar-color:var(--line-strong) transparent}.section-header{margin-bottom:16px}.section-header h2{margin:0;font-size:19px;line-height:1.25;letter-spacing:-.025em}.section-header p{margin:6px 0 0;color:var(--muted);font-size:12px;line-height:1.5;text-wrap:pretty}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;border:0;border-radius:8px;padding:8px 12px;font-size:12px;font-weight:650;transition:background .16s ease-out,color .16s ease-out,transform .1s ease-out}.button:active:not(:disabled){transform:translateY(1px)}.button.primary{color:#000808;background:var(--primary)}.button.primary:hover{background:var(--primary-strong)}.button.secondary{border:1px solid var(--line-strong);background:transparent}.button.secondary:hover{background:var(--surface-hover)}.full-width{width:100%}.icon-button{display:grid;place-items:center;width:32px;height:32px;flex:0 0 auto;border:0;border-radius:7px;color:var(--muted);background:transparent}.icon-button:hover{color:var(--ink);background:var(--surface-hover)}.icon-button.danger:hover{color:#fdc9c4;background:#3e0f0e}.editor-empty{display:flex;flex-direction:column;align-items:center;margin-top:18px;padding:30px 14px;border-top:1px solid var(--line);text-align:center}.empty-icon{display:grid;place-items:center;width:42px;height:42px;margin-bottom:12px;border-radius:10px;color:var(--primary);background:#001c1d}.editor-empty h3{margin:0;font-size:14px}.editor-empty p{margin:7px 0 16px;color:var(--muted);font-size:12px;line-height:1.5}.object-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:14px 0 18px}.object-chip{min-width:0;border:1px solid transparent;border-radius:9px;padding:6px;color:var(--muted);background:var(--surface-raised)}.object-chip:hover{color:var(--ink);background:var(--surface-hover)}.object-chip.selected{border-color:var(--primary);color:var(--ink);background:#07191a}.object-chip>span:last-child{display:block;overflow:hidden;margin-top:5px;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.thumbnail{display:inline-grid;place-items:center;flex:0 0 auto;overflow:hidden;border-radius:7px;background-color:#171717;background-image:conic-gradient(oklch(.28 0 0) 25%,transparent 0 50%,oklch(.28 0 0) 0 75%,transparent 0);background-size:10px 10px}.thumbnail img{display:block;max-width:82%;max-height:82%;object-fit:contain}.thumbnail-medium{width:54px;height:54px}.thumbnail-small{width:34px;height:34px;border-radius:6px}.object-chip .thumbnail{width:100%;height:56px}.selected-asset{display:flex;align-items:center;gap:9px;min-width:0;padding:10px;border-radius:9px;background:var(--surface-raised)}.selected-asset>div{flex:1;min-width:0}.selected-asset strong,.selected-asset span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.selected-asset strong{font-size:12px}.selected-asset span{margin-top:3px;color:var(--muted);font-size:10px}.form-stack{display:flex;flex-direction:column;gap:16px}.text-field,.select-field,.range-field{display:flex;flex-direction:column;gap:7px;color:var(--muted);font-size:11px}.text-field input,.select-field select{width:100%;min-height:36px;border:1px solid var(--line);border-radius:8px;padding:7px 9px;color:var(--ink);background:#030404}.text-field input:hover,.select-field select:hover{border-color:var(--line-strong)}.field-label{display:flex;justify-content:space-between;align-items:center;gap:10px}.field-label output{color:var(--ink);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px}input[type=range]{width:100%;height:4px;margin:4px 0;border-radius:999px;accent-color:var(--primary)}.field-hint{margin:-8px 0 0;color:var(--muted);font-size:10px;line-height:1.45}.field-hint strong{color:var(--ink);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:600}.switch-row{position:relative;display:flex;align-items:center;justify-content:space-between;min-height:32px;color:var(--ink);font-size:12px;cursor:pointer}.switch-row input{position:absolute;right:0;width:36px;height:22px;opacity:0}.switch-track{display:block;width:36px;height:22px;padding:3px;border-radius:999px;background:var(--line-strong);transition:background .16s ease-out}.switch-track span{display:block;width:16px;height:16px;border-radius:50%;background:var(--ink);transition:transform .16s ease-out}.switch-row input:checked+.switch-track{background:var(--primary)}.switch-row input:checked+.switch-track span{transform:translate(14px);background:#000808}.switch-row input:focus-visible+.switch-track{outline:2px solid var(--focus);outline-offset:2px}.segmented-field{margin:0 0 20px;padding:0;border:0}.segmented-field legend{margin-bottom:8px;color:var(--muted);font-size:11px}.segmented-control{display:grid;grid-template-columns:repeat(3,1fr);padding:3px;border-radius:9px;background:#020303}.segmented-control button{min-height:32px;border:0;border-radius:6px;color:var(--muted);background:transparent;font-size:11px}.segmented-control button:hover{color:var(--ink)}.segmented-control button.selected{color:#000808;background:var(--primary);font-weight:700}.settings-group{display:flex;flex-direction:column;gap:14px;margin-top:24px;padding-top:16px;border-top:1px solid var(--line)}.settings-title{display:flex;align-items:center;justify-content:space-between;color:var(--ink);font-size:12px;font-weight:700}.lane-list{display:flex;flex-direction:column;gap:12px}.lane-editor{display:flex;flex-direction:column;gap:13px;padding:13px;border-radius:10px;background:var(--surface-raised)}.lane-heading{display:flex;align-items:center;justify-content:space-between;font-size:12px}kbd{min-width:22px;padding:3px 6px;border:1px solid var(--line-strong);border-radius:5px;color:var(--muted);background:var(--surface);text-align:center;font-family:inherit;font-size:10px}.inline-field{flex-direction:row;align-items:center;justify-content:space-between}.inline-field>div{display:flex;align-items:center;gap:6px}.inline-field input{width:82px;min-height:32px}.queue-field>span{display:block;margin-bottom:8px;color:var(--muted);font-size:11px}.queue-list{display:flex;flex-wrap:wrap;gap:6px}.queue-list button{position:relative;width:39px;height:39px;border:1px solid var(--line);border-radius:7px;padding:2px;background:transparent}.queue-list button.selected{border-color:var(--primary)}.queue-list button>span:last-child{position:absolute;right:-4px;bottom:-4px;display:grid;place-items:center;min-width:16px;height:16px;border-radius:999px;color:#000808;background:var(--primary);font-size:9px;font-weight:800}.inline-note,.muted-copy{padding:12px;border-radius:8px;color:var(--muted);background:var(--surface-raised);font-size:12px;line-height:1.5}.merge-start-select{margin-bottom:16px}.chain-sizing-controls{display:flex;flex-direction:column;gap:14px;margin-bottom:16px;padding-bottom:16px;border-bottom:1px solid var(--line)}.chain-size-note{display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:3px 10px;margin-bottom:16px;padding:11px 12px;border-radius:8px;color:var(--muted);background:var(--surface-raised);font-size:11px}.chain-size-note strong{color:var(--ink);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;font-variant-numeric:tabular-nums}.chain-size-note small{grid-column:1 / -1;font-size:10px;line-height:1.45}.merge-order{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}.merge-order>li{position:relative}.merge-tier{display:grid;grid-template-columns:22px 34px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:54px;padding:9px 7px 9px 9px;border-radius:9px;background:var(--surface-raised)}.tier-number{display:grid;place-items:center;width:22px;height:22px;border-radius:6px;color:#000808;background:var(--primary);font-size:10px;font-weight:800}.tier-copy{min-width:0}.tier-copy strong,.tier-copy span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tier-copy strong{color:var(--ink);font-size:11px}.tier-copy span{margin-top:3px;color:var(--muted);font-size:9px}.tier-actions{display:flex;gap:1px}.tier-actions .icon-button{width:30px;height:34px}.tier-connector{display:block;width:1px;height:10px;margin:0 0 0 20px;background:var(--line-strong)}.preview-workspace{grid-area:preview;display:grid;grid-template-rows:44px minmax(0,1fr) auto;min-width:0;min-height:0;background:#010101}.preview-heading{display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid var(--line)}.preview-heading>div:first-child{display:flex;align-items:baseline;gap:9px}.preview-heading strong{font-size:12px}.preview-heading span,.scene-stats{color:var(--muted);font-size:10px}.scene-stats{display:flex;align-items:center;gap:6px}.status-dot{width:6px;height:6px;border-radius:50%;background:var(--muted)}.status-dot.running{background:var(--success);box-shadow:0 0 6px #57bc8080}.divider{width:1px;height:12px;margin:0 3px;background:var(--line)}.stage-wrap{position:relative;display:grid;place-items:center;min-height:0;overflow:hidden;padding:18px}.stage{height:100%;max-height:calc(100vh - 170px);aspect-ratio:9 / 16;overflow:hidden;background:var(--stage);box-shadow:0 4px 8px #000000a6}.stage canvas{display:block;width:100%;height:100%}.stage-empty{position:absolute;top:50%;left:50%;display:flex;width:min(260px,70%);flex-direction:column;align-items:center;transform:translate(-50%,-42%);color:var(--muted);text-align:center;pointer-events:none}.stage-empty>svg{margin-bottom:12px;color:var(--primary)}.stage-empty strong{color:var(--ink);font-size:13px}.stage-empty span{margin:6px 0 14px;font-size:10px;line-height:1.5}.stage-empty .button{pointer-events:auto}.transport{position:relative;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:16px;min-height:66px;padding:10px 16px;border-top:1px solid var(--line);background:#020303}.transport-main,.drop-controls{display:flex;gap:7px}.drop-controls{justify-content:center}.transport-button{color:var(--muted);background:var(--surface-raised)}.transport-button:hover{color:var(--ink);background:var(--surface-hover)}.drop-button{min-width:82px;color:#000808;background:var(--primary)}.drop-button:hover{background:var(--primary-strong)}.drop-button>span{display:grid;place-items:center;width:17px;height:17px;border-radius:5px;background:#03030329;font-size:9px}.shortcut-hint{color:var(--muted);font-size:10px;white-space:nowrap}.toast{position:fixed;right:18px;bottom:18px;z-index:var(--z-toast);max-width:min(360px,calc(100vw - 36px));border-radius:9px;padding:11px 14px;color:var(--ink);background:#132020;box-shadow:0 4px 8px #00000080;font-size:12px}.exit-preview{display:none}.preview-only{position:fixed;top:0;right:0;bottom:0;left:0;display:block;overflow:hidden;overscroll-behavior:none;background:var(--stage)}.preview-only .topbar,.preview-only .editor-sidebar,.preview-only .preview-heading,.preview-only .transport{display:none}.preview-only .preview-workspace{position:absolute;top:0;right:0;bottom:0;left:0;display:block;width:auto;height:auto;min-height:0;background:var(--stage)}.preview-only .stage-wrap{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;width:auto;height:auto;min-height:0;align-items:center;justify-content:center;padding:0}.preview-only .stage{flex:0 0 auto;width:min(100vw,56.25vh);height:min(100vh,177.7778vw);width:min(100svw,56.25svh);height:min(100svh,177.7778svw);max-width:100%;max-height:none;aspect-ratio:9 / 16;box-shadow:none}.preview-only .exit-preview{position:fixed;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));z-index:var(--z-sticky);display:inline-flex;align-items:center;gap:7px;border:0;border-radius:8px;padding:8px 11px;color:var(--muted);background:#070707e0;font-size:11px;opacity:.35;transition:opacity .16s ease-out}.preview-only .exit-preview:hover,.preview-only .exit-preview:focus-visible{opacity:1}@media(min-width:1360px){.stage-wrap{grid-template-columns:minmax(0,1fr) 360px}.stage{grid-column:1;max-width:100%;transform:translateY(-15px)}.stage-empty{top:calc(50% - 15px);left:calc(50% - 180px)}.drop-controls{position:absolute;left:calc(50% - 180px);transform:translate(-50%)}.preview-only .stage-wrap{display:flex;grid-template-columns:none}.preview-only .stage{grid-column:auto;transform:none}.preview-only .stage-empty{top:50%;left:50%}}.loading-screen{display:grid;place-items:center;align-content:center;min-height:100vh;gap:12px;color:var(--muted);background:var(--bg);font-size:12px}.loading-mark{width:22px;height:22px;border:2px solid var(--line-strong);border-top-color:var(--primary);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:900px){body{overflow:auto}.app-shell{grid-template:50px auto auto / 1fr;grid-template-areas:"topbar" "preview" "editor";max-height:none;min-height:100vh}.topbar{position:sticky;top:0;grid-template-columns:1fr auto}.brand-mark{padding-left:12px}.project-name,.save-status{display:none}.preview-workspace{min-height:min(820px,calc(100vh - 50px))}.stage-wrap{min-height:560px;padding:12px}.stage{max-height:calc(100vh - 180px)}.editor-sidebar{min-height:580px;border-top:1px solid var(--line);border-right:0}.tab-bar{position:sticky;top:50px;z-index:var(--z-sticky)}.editor-pane{width:calc(100vw - 68px);max-width:560px}.transport{grid-template-columns:auto 1fr}.shortcut-hint{display:none}}@media(max-width:560px){.preview-workspace{min-height:690px}.preview-heading{padding:0 12px}.stage-wrap{min-height:500px;padding:8px}.stage{max-height:560px}.transport{grid-template-columns:1fr;gap:8px;padding:9px}.transport-main,.drop-controls{justify-content:center}.drop-button{min-width:74px}.tab-bar{width:58px;flex-basis:58px}.tab-bar button{min-height:50px}.tab-bar button span{font-size:9px}.editor-pane{width:calc(100vw - 58px);padding:16px 13px 26px}.object-strip{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
