:root{color-scheme:dark;--bg:#25262b;--panel:#303137;--edge:#1b1c21;--ink:#e3e3e9;--muted:#96969f;--accent:#baa3ff;--selected:#493b67;--row:28px;font:12px/1.45 "Segoe UI",Arial,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);height:100vh;overflow:hidden;display:flex;flex-direction:column}button,input,select,textarea{font:inherit}button{border:1px solid transparent;color:inherit;background:transparent;cursor:pointer;border-radius:3px;padding:5px 9px;white-space:nowrap}button:hover{background:#47484f}button:disabled{opacity:.35;cursor:default}button.active{background:var(--selected);color:#e2d4ff}button:focus-visible,select:focus-visible,input:focus-visible{outline:1px solid var(--accent);outline-offset:1px}input,select,textarea{background:#25262c;border:1px solid #4b4c55;border-radius:3px;color:var(--ink);padding:5px 7px;min-width:0}input:focus,textarea:focus{outline:none;border-color:var(--accent)}input[type=color]{height:27px;padding:2px;width:46px;cursor:pointer}input[type=number]{width:100%}input[type=checkbox]{accent-color:var(--accent)}input[type=range]{padding:0;accent-color:var(--accent)}textarea{resize:vertical}small,.muted{color:var(--muted)}[hidden]{display:none!important}.topbar{height:44px;display:flex;align-items:center;padding:0 15px 0 12px;border-bottom:1px solid var(--edge);background:#24252a;flex-shrink:0;gap:16px}.brand{color:#f5a4a8;font-size:19px;font-weight:700;letter-spacing:-1.5px;display:flex;align-items:center;gap:10px}.brand>span{color:#e3e3e9;font-size:14px;letter-spacing:0;font-weight:600}.topbar nav{display:flex;height:100%;align-items:center;gap:2px}.menu{position:relative}.menu>button{padding:5px 8px}.menu-list{display:none;position:absolute;top:29px;left:0;min-width:235px;background:#34353b;border:1px solid #53545c;box-shadow:0 8px 24px #0008;padding:5px;z-index:30;border-radius:4px}.menu.open .menu-list{display:block}.menu-list button{display:flex;width:100%;justify-content:space-between;gap:26px;text-align:left;padding:6px 8px}.menu-list kbd{color:var(--muted);font:11px "Segoe UI",sans-serif}.menu-list hr{border:0;border-top:1px solid #4c4d55;margin:4px}.workspace-name{margin-left:auto;color:#b0b0ba;font-size:11px;letter-spacing:.5px}.document-bar{height:36px;display:flex;align-items:center;background:#2c2d33;border-bottom:1px solid var(--edge);padding:0 10px 0 0;gap:10px;flex-shrink:0}#document-tab{align-self:stretch;min-width:205px;border-top:2px solid var(--accent);background:#36373e;padding:7px 18px 6px;border-right:1px solid var(--edge)}.document-type{font-size:9px;letter-spacing:1.3px;color:#96909e}#save-state{font-size:11px;color:var(--muted);margin-left:auto}.publish-button{background:#b8a1f3;color:#211936;font-weight:600}.publish-button:hover{background:#ccb8ff}.test-button{border-color:#54525e}#workspace{flex:1;min-height:0;display:flex}.tools{width:49px;flex-shrink:0;border-right:1px solid var(--edge);background:#303137;display:flex;align-items:center;flex-direction:column;padding-top:8px;gap:3px}.tools button{width:35px;height:33px;padding:6px}.tools svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.tools .tool-separator{width:24px;height:1px;background:#51525b;margin:8px 0}.tool-swatch{width:23px!important;height:24px!important;margin-top:6px}.center{display:flex;flex:1;flex-direction:column;min-width:0}.stage-bar{height:35px;flex-shrink:0;border-bottom:1px solid var(--edge);display:flex;align-items:center;padding:0 13px;background:#303137;color:#c2c1ca}.stage-bar button{padding:3px 7px}.stage-controls{margin-left:auto;display:flex;align-items:center;gap:7px}.stage-controls select{width:90px;height:25px;padding:1px 6px;font-size:11px}#stage-wrap{flex:1;min-height:120px;background:#202126;position:relative;overflow:hidden}#stage{width:100%;height:100%;display:block;outline:none;touch-action:none}.stage-badge{position:absolute;bottom:11px;left:15px;pointer-events:none;font-size:10px;color:#9999a4;background:#202126c9;padding:3px 6px;border-radius:3px}#timeline-resize{height:5px;flex-shrink:0;cursor:row-resize;background:#191a1f;border-top:1px solid #41424a}#timeline{height:257px;min-height:120px;max-height:60vh;display:flex;flex-direction:column;flex-shrink:0;background:#303137}.timeline-top{height:35px;flex-shrink:0;display:flex;align-items:center;border-bottom:1px solid var(--edge);padding:0 9px;gap:4px;overflow:hidden}.timeline-top strong{font-size:11px;margin-right:9px;font-weight:600}.timeline-top button{font-size:11px;padding:3px 7px}.divider{width:1px;height:14px;background:#51515b;margin:0 5px}.timeline-spacer{flex:1}#frame-readout{color:var(--accent);font-size:11px;margin-left:7px;white-space:nowrap}#fps-readout{color:var(--muted);font-size:11px;margin:0 9px;white-space:nowrap}.tracks{display:flex;min-height:0;flex:1}.layer-pane{width:216px;flex-shrink:0;border-right:1px solid #1b1c21;overflow:hidden;position:relative}.layer-heading{height:28px;background:#2c2d33;display:flex;align-items:center;justify-content:space-between;padding:0 10px;font-size:10px;color:#a4a3ad}.layer-heading span:last-child{font-size:9px}#layers{overflow:hidden;height:calc(100% - 28px)}.layer-row{height:28px;display:flex;align-items:center;gap:4px;padding:0 6px 0 10px;border-bottom:1px solid #25262b;cursor:pointer;user-select:none}.layer-row.active{background:#4b3f68}.layer-row .layer-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.layer-row button{padding:2px 3px;font-size:11px;width:22px;color:#a8a7b1}.layer-row button.off{color:#e4b390}.layer-row>i{font-style:normal;color:var(--accent);margin-right:3px}#frames-scroll{flex:1;overflow:auto;position:relative;background:#36373e;min-width:0}#frame-spacer{position:absolute;left:0;top:0;pointer-events:none}#frames{position:sticky;left:0;top:0;display:block;touch-action:none;outline:none}.timeline-footer{height:29px;flex-shrink:0;border-top:1px solid var(--edge);display:flex;align-items:center;padding:0 7px;gap:3px}.timeline-footer button{font-size:11px;padding:2px 7px}.timeline-footer>span:last-child{color:#9695a2;font-size:10px;display:flex;align-items:center;gap:7px;padding-right:8px}.key-dot{width:5px;height:5px;border-radius:50%;background:#c6c6ce;display:inline-block}.tween-dot{width:18px;height:5px;display:inline-block;background:#9d7ee0;margin-left:10px}.inspector{width:274px;flex-shrink:0;border-left:1px solid var(--edge);background:#303137;display:flex;flex-direction:column;min-height:0}.panel-tabs{display:flex;height:36px;border-bottom:1px solid var(--edge);flex-shrink:0}.panel-tabs button{border-radius:0;font-size:11px;padding:9px 12px}.panel-tabs button.active{background:#393a42;border-bottom:2px solid var(--accent);color:#eee7ff}.panel{flex:1;min-height:0;overflow:auto;padding:15px 15px 24px}.panel h2{font-size:18px;font-weight:500;margin:0 0 2px}.panel .eyebrow{font-size:9px;letter-spacing:1.1px;color:var(--accent);text-transform:uppercase;margin:0 0 7px}.panel h3{font-weight:600;font-size:11px;letter-spacing:.15px;margin:20px -15px 12px;padding:9px 15px;border-top:1px solid #46474f;border-bottom:1px solid #25262b;background:#33343b}.panel p{font-size:11px;color:var(--muted);margin:7px 0 15px;line-height:1.7}.panel label{font-size:10px;color:#b4b3bf;display:flex;flex-direction:column;gap:5px;margin-bottom:12px}.panel label.inline{flex-direction:row;align-items:center;gap:10px}.panel label input,.panel label select{font-size:11px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.panel .wide{width:100%;border-color:#585362;margin:4px 0}.panel .primary{background:#b8a1f3;color:#211936}.panel-bottom{height:32px;flex-shrink:0;border-top:1px solid #24252a;font-size:9px;display:flex;align-items:center;gap:6px;padding:0 12px;color:#a8a7b3}.panel-bottom>span:last-child{margin-left:auto;font-size:8px;color:#868591}.sipl-dot{width:5px;height:5px;border-radius:50%;background:#99dcc9}.statusbar{display:flex;align-items:center;gap:22px;height:25px;flex-shrink:0;background:#24252a;border-top:1px solid var(--edge);font-size:10px;padding:0 12px;color:#a2a0ae}#status{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.statusbar>span:last-child{color:#757480}.library-item{display:flex;align-items:center;gap:9px;border-bottom:1px solid #41424b;padding:10px 5px;cursor:pointer}.library-item.active{background:#493b67}.library-item .asset-icon{width:34px;height:32px;display:grid;place-items:center;background:#24252b;color:#bba2ff;font-size:20px;border-radius:4px}.library-item strong{font-weight:500;font-size:12px}.library-item small{display:block;font-size:10px}.library-actions{display:flex;gap:5px;margin-top:12px}.library-actions button{border-color:#51515b;font-size:11px}.actions-context{padding:8px;background:#25262b;border:1px solid #4a414f;border-left:2px solid var(--accent);margin:12px 0;font-size:11px}#action-code{font:12px/1.7 Consolas,"Courier New",monospace;width:100%;min-height:240px;tab-size:2;resize:vertical;color:#ddd0ff;background:#24252b;white-space:pre;overflow:auto}.action-help{font:10px/1.7 Consolas,monospace!important;white-space:pre-wrap}.panel .help{margin-top:20px}.frame-mark{font-size:10px;padding:2px 6px;background:#4b3a67;border-radius:3px;color:#dac8ff}.empty-state{border:1px dashed #5b5468;padding:17px;border-radius:4px;text-align:center;color:var(--muted);margin-top:15px}.swatches{display:flex;gap:8px;margin:4px 0 16px}.swatches button{width:24px;height:24px;border:2px solid #ffffff22;padding:0}.swatches button.active{border-color:#fff}dialog{padding:0;background:#303139;border:1px solid #66616f;color:var(--ink);border-radius:7px;box-shadow:0 24px 120px #0009;width:420px;max-width:95vw}dialog::backdrop{background:#090a1099;backdrop-filter:blur(2px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;padding:13px 17px;border-bottom:1px solid #4a4853;background:#34353e}.dialog-header h2{font-size:14px;font-weight:500;margin:0}.dialog-header h2 small{font-size:11px;margin-left:15px}.dialog-header button{font-size:20px;line-height:1;padding:0 4px}.dialog-header button:hover{background:#665164}#dialog-body{padding:19px}#dialog-body label{display:block;color:#b9b6c6;font-size:11px;margin-bottom:14px}#dialog-body input,#dialog-body select{display:block;width:100%;margin-top:6px}#dialog-body p{color:#b6b1c6;line-height:1.8;font-size:12px}#dialog-buttons{display:flex;justify-content:flex-end;gap:8px;padding:0 19px 17px}#dialog-buttons button{border-color:#645b74}#dialog-buttons .primary{background:var(--accent);color:#20192c}#preview-dialog{width:1100px;height:85vh;max-width:95vw;max-height:95vh}#preview-dialog[open]{display:flex;flex-direction:column}#preview{border:0;background:#16151e;flex:1;min-height:0;width:100%}.preview-bottom{display:flex;align-items:center;justify-content:space-between;padding:6px 15px;font-size:10px;color:#b8b1c8}.preview-bottom button{font-size:11px}#output{font:11px/1.7 Consolas,monospace;min-height:65px;max-height:120px;overflow:auto;background:#22212b;margin:0;padding:10px 16px;color:#b6d9c5;white-space:pre-wrap}.danger{color:#f3a6ad}.tools .hint{color:#7f7d89;font-size:8px;margin-top:auto;padding-bottom:10px}.toast{color:#f5c6bc!important}@media(max-width:1100px){.inspector{width:240px}.layer-pane{width:185px}.timeline-top{gap:0}.timeline-top strong{margin-right:2px}.timeline-top button{padding:3px 5px}#fps-readout{margin:0 5px}.document-type{display:none}}@media(max-width:800px){.inspector{width:210px}.brand>span,.workspace-name{display:none}.topbar{gap:8px}.menu>button{padding:5px}.timeline-top button[data-command=first],.timeline-top button[data-command=last],.timeline-top button[data-command=previous],.timeline-top button[data-command=next],.timeline-top button[data-command=blank]{display:none}.timeline-top strong{display:none}.layer-pane{width:155px}.layer-heading span:last-child{display:none}.panel{padding:12px}.panel-tabs button{padding:9px}.statusbar>span:last-child{display:none}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
