:root{color-scheme:dark;--bg:#09090b;--panel:#151517;--card:#232326;--line:#29292d;--text:#f2f2f4;--muted:#85858e;--blue:#286fff;--sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;--mono:var(--sans)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:12px/1.45 var(--sans);-webkit-font-smoothing:antialiased;overflow:hidden}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{border:0;background:none;color:inherit;cursor:pointer;transition:background .18s,color .18s,border-color .18s,box-shadow .18s}button:hover{background:#ffffff0b}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #75a1ff;outline-offset:3px}button:disabled{opacity:.45;cursor:wait}a{color:inherit}header{height:74px;display:flex;align-items:center;gap:34px;padding:0 26px}.brand{display:flex;align-items:center;text-decoration:none;gap:10px;font-size:22px;letter-spacing:-.8px;font-weight:650;white-space:nowrap}.logo{display:grid;place-items:center;width:34px;height:34px;color:#edf0fa;background:#222226;border:1px solid #ffffff08;border-radius:11px}.logo .icon{width:22px;height:22px}.brand small{font-size:12px;color:#8d8d96;font-weight:400;letter-spacing:0;padding-left:12px;border-left:1px solid #333339;margin-left:6px}.project{display:flex;gap:8px;align-items:center;font-size:12px;min-width:0;color:#d6d6dc}.project #project-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:220px}.muted{color:var(--muted)}i:not(.preset-art i){display:inline-block;width:5px;height:5px;background:var(--blue);border-radius:50%;flex-shrink:0}nav{margin-left:auto;display:flex;align-items:center;gap:9px;flex-shrink:0}.icon{display:block;width:17px;height:17px;flex-shrink:0}.quiet{display:flex;align-items:center;justify-content:center;gap:7px;color:#aaaab3;padding:9px 12px;border-radius:10px;font-size:12px}.quiet .icon{width:15px;height:15px}.outline,.primary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:37px;padding:9px 15px;border-radius:11px;font-size:12px;font-weight:500;letter-spacing:.05px}.outline{background:#202023;border:1px solid #ffffff08;color:#e1e1e7}.outline:hover{background:#2d2d32}.primary{background:var(--blue);color:#fff;box-shadow:0 2px 8px #0003}.primary:hover{background:#3d7dff;box-shadow:0 4px 16px #286fff25}nav .primary{min-width:93px}.primary .icon,.outline .icon{width:15px;height:15px}main{height:calc(100dvh - 112px);min-height:620px;display:grid;grid-template-columns:230px minmax(350px,1fr) 272px;gap:13px;margin:0 16px}.layers-panel,.controls-panel{background:var(--panel);border:1px solid #ffffff06;border-radius:20px;min-height:0;overflow:auto;display:flex;flex-direction:column;padding:0 15px;box-shadow:0 2px 6px #0002}.panel-title{height:56px;min-height:56px;display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:550;letter-spacing:-.1px;border-bottom:1px solid #ffffff06}.panel-title>span{background:#26262a;color:#b6b6bf;min-width:22px;text-align:center;font-size:12px;font-weight:400;border-radius:6px;padding:2px 5px}.panel-title button{color:#9a9aa4;font-size:18px;width:28px;height:28px;border-radius:8px}.file-card{display:flex;gap:9px;align-items:center;padding:16px 0 14px}.ps{display:grid;place-items:center;background:#1e2635;border:1px solid #35425c;color:#90b9ff;font-size:14px;font-weight:550;width:32px;height:35px;border-radius:9px;flex-shrink:0}.file-card>div{min-width:0;flex:1}.file-card b{font-weight:500;font-size:12px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-card small{font-size:11px;display:block;color:#787882;margin-top:4px}.file-card>i{width:4px;height:4px;background:#8f8f98}.list-note{display:flex;justify-content:space-between;color:#70707a;font-size:11px;padding:0 6px;margin:8px 0 9px}.layer{display:flex;align-items:center;gap:9px;min-height:54px;margin:0 0 5px;padding:8px 9px;border:1px solid transparent;border-radius:12px;cursor:pointer}.layer:hover{background:#202023}.layer.selected{background:#f5f5f7;color:#18181b;border-color:#fff;box-shadow:0 2px 7px #0002}.layer.hidden{opacity:.4}.thumb{width:30px;height:34px;border-radius:6px;object-fit:cover;border:1px solid #ffffff15;background:repeating-conic-gradient(#2a2a2e 0% 25%,#242427 0% 50%) 50%/8px 8px;flex-shrink:0}.layer.selected .thumb{border-color:#00000016}.layer-text{flex:1;min-width:0}.layer-text b{display:block;font-size:12px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.layer-text small{display:block;font-size:10px;color:#777782;margin-top:4px;letter-spacing:0}.layer.selected .layer-text small{color:#797984}.eye{font-size:13px;color:#888894;padding:2px}.layer.selected .eye{color:#31313a}.reorder{display:flex;flex-direction:column;opacity:0;transition:opacity .15s}.layer:hover .reorder,.layer:focus-within .reorder{opacity:1}.reorder button{font-size:11px;padding:0 2px;line-height:1.3;border-radius:3px}.add{width:100%;display:flex;align-items:center;justify-content:center;gap:7px;padding:10px;border-radius:11px;background:#222225;color:#b6b6c0;font-size:12px;border:1px solid #ffffff04;margin-top:5px}.add:hover{background:#2c2c31}.add .icon{width:14px;height:14px}.side-bottom{display:flex;gap:10px;margin-top:auto;padding:23px 5px 18px;align-items:center}.privacy-icon{display:grid;place-items:center;width:28px;height:30px;border-radius:9px;background:#232327;color:#a3a3ae;font-size:19px}.side-bottom b{font-size:12px;font-weight:500;color:#b6b6c1}.side-bottom p{margin:3px 0 0;font-size:11px;color:#686873}.workspace{display:flex;flex-direction:column;min-width:0;border:1px solid #ffffff07;background:#0d0d10;border-radius:20px;overflow:hidden}.viewport-top{height:55px;min-height:55px;display:flex;align-items:center;justify-content:space-between;padding:0 17px;border-bottom:1px solid #ffffff05;background:#121214;gap:14px}.tabs{display:flex;gap:3px;background:#1e1e22;border-radius:10px;padding:3px}.tabs button{font-size:12px;color:#83838f;padding:7px 12px;border-radius:8px;white-space:nowrap}.tabs button.active{background:#333338;color:#f1f1f6;box-shadow:0 1px 4px #0003}.view-tag{display:flex;align-items:center;gap:6px;font-size:11px;color:#777782;white-space:nowrap}.view-tag em{font-style:normal;margin:0 3px;color:#3c3c44}.view-tag i{width:4px;height:4px}#stage{position:relative;flex:1;height:0;min-height:280px;background:#0d0d10;overflow:hidden}#scene{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;cursor:grab}#scene:active{cursor:grabbing}.stage-tools{position:absolute;left:16px;top:50%;transform:translateY(-50%);background:#1b1b1ee6;backdrop-filter:blur(12px);border:1px solid #ffffff0b;box-shadow:0 8px 25px #0003;border-radius:14px;padding:5px;display:flex;flex-direction:column;gap:5px}.stage-tools button{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;color:#92929d}.stage-tools button.active{background:var(--blue);color:#fff;box-shadow:0 2px 8px #286fff22}.stage-tools .icon{width:16px;height:16px}.stage-tools hr{height:1px;border:0;background:#35353b;width:19px;margin:2px auto}.motion-panel{height:203px;min-height:203px;background:#161618;border-top:1px solid #ffffff07;padding:19px 20px 16px}.motion-heading{display:flex;align-items:center;gap:13px;margin-bottom:15px}.motion-heading h2{font-size:13px;letter-spacing:-.1px;margin:0;font-weight:550}.motion-heading p{font-size:12px;color:#6e6e7a;margin:0}.motion-heading>.quiet{margin-left:auto;font-size:12px;padding:4px 8px;color:#777782}.motion-heading>.quiet.active{color:#b1c6ff;background:#286fff12}.presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.preset{position:relative;display:flex;gap:8px;align-items:center;text-align:left;background:#232326;padding:11px 9px;border:1px solid #ffffff03;border-radius:12px;min-width:0;min-height:65px}.preset:hover{background:#2b2b30}.preset.selected{background:var(--blue);border-color:#538aff;box-shadow:0 3px 10px #0002}.preset b{display:block;font-size:12px;font-weight:500}.preset small{display:block;color:#85858f;font-size:10px;line-height:1.3;margin-top:4px}.preset.selected small{color:#d6e4ff}.preset em{position:absolute;right:7px;top:6px;font-size:9px;font-style:normal;color:#686873}.preset.selected em{color:#b9d0ff}.preset-art{position:relative;width:31px;height:32px;display:block;flex-shrink:0}.preset-art i{position:absolute;width:15px;height:24px;border:1px solid #7d8aa6;background:#5276c50b;transform:skewY(-18deg);top:3px}.preset-art i:nth-child(1){left:0}.preset-art i:nth-child(2){left:5px}.preset-art i:nth-child(3){left:10px}.preset-art i:nth-child(4){left:15px}.preset.selected .preset-art i{border-color:#d4e2ff;background:#ffffff0b}.cascade i:nth-child(2){top:5px}.cascade i:nth-child(3){top:7px}.cascade i:nth-child(4){top:9px}.orbit{transform:rotate(-20deg)}.orbit i{transform:skewY(15deg)}.wave i:nth-child(2){top:0}.wave i:nth-child(3){top:4px}.wave i:nth-child(4){top:8px}.transport{display:flex;align-items:center;gap:12px;margin-top:18px;color:#92929e;font-size:11px;font-variant-numeric:tabular-nums}.transport>button{width:29px;height:29px;border-radius:10px;background:var(--blue);color:#fff;font-size:12px;flex-shrink:0}.transport>button:hover{background:#3d7dff}.transport input{flex:1;min-width:25px}.transport label{display:flex;align-items:center;gap:7px;border-left:1px solid #333339;padding-left:12px;margin-left:3px;font-size:11px;white-space:nowrap}.transport select{font-size:11px;padding:5px 6px;width:50px;border-radius:6px}.fps{font-size:10px;color:#6c6c78;white-space:nowrap}.controls-panel{padding:0 18px}.control-section{padding:18px 0 20px;border-bottom:1px solid #ffffff07}.section-title{display:flex;justify-content:space-between;align-items:center;font-weight:500;font-size:12px;margin-bottom:16px;color:#dedee5}.section-title>span{font-size:10px;color:#53535f;font-weight:400}.segmented{display:flex;gap:3px;border-radius:10px;background:#232326;padding:3px;margin-bottom:19px}.segmented button{flex:1;padding:7px 5px;font-size:12px;border-radius:8px;color:#838390;white-space:nowrap}.segmented button.active{background:#f2f2f4;color:#25252b;box-shadow:0 1px 5px #0002}.range-label{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#a6a6b1;margin:14px 0 11px}.range-label output{color:#bfbfc9;font-size:11px;background:#252529;min-width:44px;text-align:center;padding:3px 6px;border-radius:6px;font-variant-numeric:tabular-nums}input[type=range]{appearance:none;background:#35353c;height:3px;accent-color:var(--blue);width:100%;margin:5px 0 8px;cursor:pointer;border-radius:3px}input[type=range]::-webkit-slider-thumb{appearance:none;width:10px;height:10px;background:var(--blue);border:0;border-radius:50%;box-shadow:none}.range-ends{display:flex;justify-content:space-between;font-size:10px;color:#60606c;margin:0 0 13px}.toggle-row{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#a6a6b1;margin:15px 0 0}.switch{width:28px;height:16px;border-radius:12px;background:#3d3d45;position:relative;flex-shrink:0;padding:0}.switch:before{content:'';position:absolute;left:3px;top:3px;width:10px;height:10px;border-radius:50%;background:#d4d4dc;box-shadow:0 1px 3px #0003;transition:left .18s}.switch.on{background:var(--blue)}.switch.on:before{left:15px;background:#fff}.minor-label{font-size:11px;color:#777784;margin:16px 0 8px}.scope-label{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#a6a6b1}.scope-label select{padding:5px 7px;font-size:11px}.three-inputs{display:flex;gap:6px}.three-inputs label{display:flex;align-items:center;gap:5px;border-radius:8px;background:#232326;border:1px solid #ffffff03;width:33.333%;padding:8px 7px;font-size:11px;color:#656571}.three-inputs label>span{color:#9e9ea9;font-size:11px}.three-inputs input{background:none;border:0;color:#d0d0d8;width:100%;min-width:0;font-size:12px;outline:0;font-variant-numeric:tabular-nums;appearance:textfield}.three-inputs input::-webkit-inner-spin-button{appearance:none}.text-button{font-size:11px;color:#777785;margin-top:14px;padding:4px 0;border-radius:3px}.text-button:hover{color:#c0c0cc;background:none}.background-row{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#a6a6b1}.background-row>span{display:flex;align-items:center;gap:7px;background:#232326;border:1px solid #ffffff04;border-radius:8px;padding:5px 7px}.background-row code{font:9px var(--sans);color:#b4b4c0;font-variant-numeric:tabular-nums}input[type=color]{width:17px;height:17px;background:none;border:0;padding:0;border-radius:4px;cursor:pointer}input[type=color]::-webkit-color-swatch-wrapper{padding:0}input[type=color]::-webkit-color-swatch{border:1px solid #55555f;border-radius:4px}.tip{display:flex;align-items:center;gap:9px;margin-top:auto;padding:22px 0 15px}.tip>span{color:#7d7d8a;font-size:23px}.tip p{font-size:10px;line-height:1.8;color:#636370;margin:0}.tip b{font-weight:400;color:#9393a0}.panel-footer{padding:13px 0;border-top:1px solid #ffffff06;color:#555561;font-size:9px}footer{height:38px;display:flex;justify-content:space-between;align-items:center;padding:0 25px;font-size:10px;color:#5f5f6b}footer>span:first-child{display:flex;align-items:center;gap:5px}footer i{width:4px!important;height:4px!important;background:#656570!important}footer button{font-size:11px;color:#7d7d89;border-radius:6px;padding:4px 5px}select{background:#26262b;border:1px solid #ffffff07;color:#c3c3ce;border-radius:7px;outline:none;padding:8px;cursor:pointer}#toast{position:fixed;left:50%;bottom:45px;transform:translate(-50%,15px);opacity:0;background:#f4f4f6;color:#27272e;border:1px solid #fff;box-shadow:0 8px 35px #0005;border-radius:12px;padding:12px 19px;font-size:12px;z-index:20;pointer-events:none;transition:opacity .18s,transform .18s;max-width:85vw}#toast.visible{opacity:1;transform:translate(-50%,0)}dialog{color:#f1f1f5;background:#17171a;border:1px solid #33333a;box-shadow:0 30px 120px #0008;border-radius:22px;padding:28px;width:500px;max-width:92vw;max-height:88dvh;overflow:auto}dialog::backdrop{background:#0009;backdrop-filter:blur(10px)}.dialog-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:21px;gap:15px}.dialog-title h2{font-size:22px;font-weight:550;letter-spacing:-.7px;margin:5px 0}.dialog-title h2 span{color:#73737f;font-size:18px}.eyebrow{font-size:12px;color:#757582;font-weight:400;letter-spacing:0}.close{font-size:22px;color:#8b8b98;background:#25252a;border-radius:50%;width:28px;height:28px;padding:0;flex-shrink:0}.export-preview{height:100px;border-radius:14px;padding:20px;display:flex;align-items:center;justify-content:space-between;background:repeating-linear-gradient(115deg,#202026 0,#202026 20px,#3e465c 21px,#1b1b21 23px,#1b1b21 39px);border:1px solid #ffffff06}.export-preview .brand{font-size:24px;letter-spacing:-1px}.export-preview>span:last-child{font-size:10px;color:#9797a5;line-height:1.8}.export-fields{display:flex;gap:14px;margin:22px 0}.export-fields label{width:50%;font-size:12px;color:#8e8e9b}.export-fields select{width:100%;margin-top:8px;font-size:12px;padding:10px;border-radius:9px}.export-note{font-size:12px;color:#858593;line-height:1.75}#export-start{width:100%;padding:12px;margin-top:20px;border-radius:11px}progress{width:100%;height:4px;accent-color:var(--blue);border:0;border-radius:3px;overflow:hidden}#guide-dialog p{font-size:12px;line-height:1.8;color:#aaaab7}#import-cancel{margin-top:20px;width:100%}::-webkit-scrollbar{width:4px;height:4px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{border-radius:4px;background:#34343c}.stage-heading,.scene-caption,.gesture,.axis{display:none}
@media(min-width:1600px){main{grid-template-columns:250px minmax(500px,1fr) 294px;gap:16px;margin:0 20px}.motion-panel{height:218px;min-height:218px;padding:22px 25px}.preset{padding:13px 12px;min-height:70px}.control-section{padding:22px 0}.section-title{font-size:12px}.layer{min-height:60px}.layer-text b{font-size:12px}.layer-text small{font-size:11px}}@media(max-width:1200px){main{grid-template-columns:200px minmax(320px,1fr) 242px;gap:10px;margin:0 12px}.layers-panel{padding:0 11px}.controls-panel{padding:0 14px}header{padding:0 20px}.brand small{display:none}.project{font-size:12px}.project #project-name{max-width:150px}.project .muted{display:none}.preset{padding:9px 6px;gap:6px}.preset-art{width:26px;transform:scale(.85)}.preset small{font-size:9px}.motion-heading p{display:none}.view-tag{font-size:10px;gap:4px}.view-tag em{margin:0 2px}.motion-panel{padding:17px 15px}.transport{gap:9px}.transport label{padding-left:8px}.reorder{display:none}.preset b{font-size:11px}}@media(max-width:950px){.project{display:none}.view-tag{display:none}.brand{font-size:20px}main{grid-template-columns:175px minmax(290px,1fr) 220px;gap:8px;margin:0 8px}.controls-panel{padding:0 12px}.three-inputs{gap:4px}.three-inputs label{padding:7px 4px}.preset{min-height:66px;gap:1px}.preset-art{width:23px;transform:scale(.75);transform-origin:left center}.preset small{display:none}.preset em{font-size:6px}.fps{display:none}.transport label{font-size:10px}.tabs button{padding:6px 10px}.controls-panel,.layers-panel,.workspace{border-radius:16px}}
@media(max-width:760px){body{overflow:auto}header{height:65px;padding:0 14px;gap:14px}nav{gap:6px}.quiet#help{display:none}.brand{font-size:19px;gap:8px}.logo{width:30px;height:30px}.outline,.primary{font-size:12px;padding:8px 11px;min-height:34px;border-radius:10px}nav .primary{min-width:74px}main{height:auto;min-height:0;grid-template-columns:160px minmax(0,1fr);margin:0 10px;gap:10px}.workspace{min-height:670px}.layers-panel{grid-column:1;grid-row:1;padding:0 10px}.side-bottom{padding:20px 0 15px;gap:6px}.privacy-icon{width:23px;font-size:17px}.side-bottom b{font-size:11px}.side-bottom p{font-size:10px}.controls-panel{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 18px;padding:0 18px}.controls-panel .panel-title{grid-column:1/-1;height:45px;min-height:45px}.control-section{border:0;padding:18px 0}.tip,.panel-footer{display:none}.viewport-top{padding:0 12px;height:52px;min-height:52px}#stage{height:410px;min-height:410px;flex:auto}.stage-tools{left:10px}.stage-tools button{width:27px;height:27px}.motion-panel{height:205px;min-height:205px;padding:15px 12px}.motion-heading{margin-bottom:13px}.presets{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.preset{min-height:46px;padding:6px 10px;gap:10px}.preset-art{height:29px;width:29px;transform:scale(.8)}.preset small{display:block;font-size:9px}.preset b{font-size:12px}.transport{margin-top:12px;gap:8px;font-size:10px}.transport label{font-size:10px;padding-left:8px;margin:0;gap:5px}.transport>button{width:25px;height:25px;border-radius:8px}.transport select{width:43px;padding:4px;font-size:10px}footer{padding:0 18px;height:36px}footer>span:nth-child(2){display:none}.minor-label{margin-top:13px}.three-inputs label{padding:7px 4px}.section-title{font-size:12px}.segmented button{font-size:10px}.background-row{font-size:11px}.scope-label{font-size:11px}.scope-label select{font-size:10px;padding:5px}.panel-title{font-size:12px}.file-card b{font-size:11px}.file-card small{font-size:10px}.layer{padding:7px 6px;gap:6px}.layer-text b{font-size:11px}.layer-text small{font-size:9px}.thumb{width:25px;height:30px}.eye{font-size:12px}.range-label,.toggle-row{font-size:11px}.range-label output{font-size:10px;min-width:36px}.add{font-size:11px;gap:4px}.list-note{font-size:10px}}
@media(max-width:520px){header{padding:0 12px}.brand{font-size:18px}.logo{width:28px;height:28px;border-radius:9px}.logo .icon{width:18px;height:18px}nav{gap:5px}.outline,.primary{font-size:11px;padding:8px 9px;gap:5px}nav .primary{min-width:65px}.outline .icon,.primary .icon{width:13px;height:13px}main{grid-template-columns:1fr;gap:10px}.layers-panel{grid-column:1;grid-row:2;max-height:135px;display:block;padding:0 11px 6px}.layers-panel .panel-title{height:35px;min-height:35px;border:0;font-size:12px}.layers-panel .file-card,.layers-panel .list-note,.layers-panel .add,.side-bottom{display:none}#layers{display:flex;overflow-x:auto;gap:7px;padding:0 0 5px}.layer{min-width:140px;margin:0;min-height:48px;background:#222226;padding:7px}.layer.selected{background:#f5f5f7}.eye{display:none}.layer-text b{font-size:12px}.workspace{grid-row:1;min-height:650px}#stage{height:400px;min-height:400px}.viewport-top{padding:0 12px}.motion-panel{min-height:198px;height:198px}.motion-heading h2{font-size:12px}.preset{min-height:44px;padding:5px 9px}.preset small{font-size:9px}.transport{gap:8px;font-size:9px}.transport label{font-size:9px}.controls-panel{grid-column:1;grid-row:3;grid-template-columns:1fr;padding:0 20px;gap:0}.control-section{border-bottom:1px solid #ffffff07;padding:20px 0}.section-title{font-size:12px}.scope-label,.toggle-row,.range-label,.background-row{font-size:12px}.scope-label select,.segmented button{font-size:12px}.three-inputs label{padding:10px}.three-inputs label>span,.three-inputs input{font-size:12px}.three-inputs{gap:9px}.minor-label{font-size:12px}.range-label output{font-size:12px;padding:3px 8px}.control-section:last-of-type{border-bottom:0}footer{font-size:9px;padding:0 16px}.export-fields{flex-direction:column}.export-fields label{width:100%}.dialog-title h2{font-size:20px}.export-preview .brand{font-size:20px}.export-preview>span:last-child{font-size:9px}dialog{padding:22px}.brand small{display:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

input[type=range]::-moz-range-thumb{width:10px;height:10px;background:var(--blue);border:0;border-radius:50%;box-shadow:none}
.logo{width:36px;height:36px;background:none;border:0;border-radius:0;flex-shrink:0}.logo img{display:block;width:100%;height:100%}.brand-mark{display:block;width:32px;height:32px;border-radius:9px}.view-actions{display:flex;align-items:center;gap:15px}.history-controls{display:flex;gap:2px;border-right:1px solid #ffffff0b;padding-right:12px}.history-controls button{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;color:#b1b1bd}.history-controls .icon{width:15px;height:15px}.history-controls button:disabled{opacity:.25;cursor:default}.slider-actions{display:flex;align-items:center;gap:5px}.slider-reset{display:grid;place-items:center;width:22px;height:22px;border-radius:6px;color:#9292a0;font-size:15px}.slider-reset:hover{background:#303035;color:#fff}.motion-heading .preset-library{margin-left:auto;font-size:11px;padding:5px 7px;color:#b4b4c2;gap:6px}.preset-library span{background:#30303a;color:#aebedc;padding:1px 4px;border-radius:4px;font-size:10px}.motion-heading>#loop{margin-left:0}.motion-heading #preset-label{color:#858da2}.preset-library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:20px}.preset-library-grid .preset{min-height:72px;padding:12px;gap:12px}.preset-library-grid .preset b{font-size:12px}.preset-library-grid .preset small{display:block;font-size:11px}.preset-library-grid .preset-art{width:37px;height:35px;transform:none}.preset-library-grid .preset em{font-size:10px}.preset-library-grid .preset-art i{transition:transform .25s,top .25s}.preset-library-grid .preset:hover .preset-art{filter:brightness(1.4)}.fan i:nth-child(1){transform:rotate(-22deg);left:0}.fan i:nth-child(2){transform:rotate(-8deg);left:5px}.fan i:nth-child(3){transform:rotate(8deg);left:10px}.fan i:nth-child(4){transform:rotate(22deg);left:15px}.flip i:nth-child(2){transform:skewY(20deg)}.flip i:nth-child(3){transform:skewY(-20deg) scaleX(.7)}.spiral i:nth-child(1){transform:rotate(-20deg);top:0}.spiral i:nth-child(2){transform:rotate(0deg);top:3px}.spiral i:nth-child(3){transform:rotate(20deg);top:6px}.spiral i:nth-child(4){transform:rotate(40deg);top:9px}.ripple i:nth-child(even){top:8px}.scatter i:nth-child(1){transform:rotate(-25deg);left:0;top:0}.scatter i:nth-child(2){transform:rotate(15deg);top:9px}.scatter i:nth-child(3){transform:rotate(-12deg);top:1px}.scatter i:nth-child(4){transform:rotate(22deg);top:7px}.breathe i:nth-child(1){left:2px}.breathe i:nth-child(2){left:6px}.breathe i:nth-child(3){left:10px}.breathe i:nth-child(4){left:14px}
@media(max-width:950px){.view-actions{gap:7px}.history-controls{border:0;padding:0}.motion-heading #preset-label{display:none}}
@media(max-width:520px){.logo{width:30px;height:30px}.history-controls button{width:24px;height:24px}.view-actions{margin-left:auto}.motion-heading .preset-library{font-size:10px}.preset-library-grid{gap:7px}.preset-library-grid .preset{padding:8px;gap:5px;min-height:68px}.preset-library-grid .preset b{font-size:12px}.preset-library-grid .preset small{font-size:10px}.preset-library-grid .preset-art{transform:scale(.8);width:30px}}
@media(max-width:520px){.motion-heading{gap:8px}.motion-heading #preset-label{display:block;font-size:11px;max-width:50px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}

.canvas-format-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:47px;padding:7px 17px;border-bottom:1px solid #ffffff06;background:#121214;flex-shrink:0}.canvas-format-bar label{display:flex;align-items:center;gap:10px;font-size:12px;color:#858591;min-width:0}.canvas-format-bar select{max-width:260px;font-size:12px;padding:6px 8px;background:#222226;border-color:#ffffff06}.frame-spec{display:flex;align-items:center;gap:8px;font-size:11px;color:#737380;white-space:nowrap}.frame-spec #output-ratio{background:#24242b;color:#b7bfce;border-radius:5px;padding:2px 5px}#stage{background:#09090b}#scene{inset:auto;outline:1px solid #303038;box-shadow:0 8px 35px #0004;border-radius:0}.export-preset-label{display:block;font-size:12px;color:#8e8e9b;margin:19px 0 0}.export-preset-label select{display:block;width:100%;margin-top:8px;font-size:12px;padding:10px;border-radius:9px}.export-dimensions{font-size:12px;color:#a1b5dd;margin:8px 0 0}.actual-preview{height:190px;background:#0c0c0f;display:flex;align-items:center;justify-content:center;padding:12px}.actual-preview canvas{display:block;height:100%;width:auto;max-width:100%;object-fit:contain;border:1px solid #33333c}.export-fields{margin:17px 0}
@media(max-width:950px){.canvas-format-bar{padding:7px 12px;gap:7px}.canvas-format-bar label{font-size:11px;gap:6px}.canvas-format-bar select{max-width:195px;font-size:11px}.frame-spec{font-size:10px;gap:5px}.frame-spec #output-ratio{display:none}}
@media(max-width:760px){.canvas-format-bar{min-height:46px}.canvas-format-bar label{flex:1;min-width:0;font-size:0;gap:0}.canvas-format-bar select{max-width:100%;width:100%;font-size:11px}.frame-spec{font-size:10px;flex-shrink:0}.canvas-format-bar{padding:7px 10px}.actual-preview{height:180px}}

[hidden]{display:none!important}main{min-height:580px}.layer-text b{font-size:12px;font-weight:500}.layer .eye{padding:3px;border-radius:6px}.eye svg{display:block;width:17px;height:17px}.layer.hidden .eye{opacity:1;color:#8b8b9a}.eye:hover{background:#ffffff12}.layer.selected .eye:hover{background:#0000000b}.presets{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.motion-panel{height:270px;min-height:270px;padding-top:15px;padding-bottom:12px}.preset{min-height:53px;padding:8px;gap:7px}.preset small{font-size:11px}.presets .preset small{display:none}.presets .preset b{font-size:12px}.presets .preset-art{transform:scale(.8);width:28px;height:29px}.motion-heading{gap:10px;margin-bottom:12px}.motion-heading .preset-library{font-size:11px}.motion-heading .custom-preset{font-size:11px;padding:5px 6px;white-space:nowrap}.motion-heading #preset-label{font-size:11px;max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-mode{display:flex;padding:3px;border-radius:9px;background:#242428}.editor-mode button{font-size:12px;padding:6px 9px;border-radius:7px;color:#92929e}.editor-mode button.active{background:#f4f4f6;color:#202026}.transport{margin-top:14px}.transport>span{font-size:10px}.preset-library-grid .preset>span:nth-child(2){min-width:0}.preset-library-grid .preset small{white-space:normal;font-size:11px}.preset-library-grid .preset b{font-size:13px}.saved-preset{position:relative;min-width:0}.saved-preset>.preset{width:100%;padding-right:25px}.delete-preset{position:absolute;top:6px;right:6px;width:19px;height:19px;border-radius:5px;font-size:16px;color:#8c8c9a}.delete-preset:hover{background:#ffffff18;color:#fff}#saved-presets-title{font-size:13px;font-weight:500;margin-top:24px}.custom-field{display:block;font-size:12px;color:#a1a1af;margin:16px 0}.custom-field>input,.custom-field>select{display:block;width:100%;margin-top:8px;background:#24242a;border:1px solid #36363e;border-radius:9px;padding:11px;color:#efeff5;font-size:13px}#save-custom-form>.primary{width:100%;margin-top:20px}.timeline-mode .motion-panel{height:330px;min-height:330px}.timeline-mode #stage{min-height:175px}#stage{min-height:180px}.timeline-toolbar{display:flex;align-items:center;gap:9px;font-size:11px;color:#9e9eac;margin:3px 0 12px;overflow:auto;padding-bottom:3px}.timeline-toolbar label{display:flex;align-items:center;gap:6px;white-space:nowrap}.timeline-toolbar select{font-size:11px;padding:5px 6px;max-width:135px}.timeline-toolbar button{font-size:11px;padding:5px 6px;border-radius:6px;white-space:nowrap;background:#25252b}.timeline-toolbar button:hover{background:#33333d}.auto-key input{accent-color:#286fff;width:12px;height:12px}.time-entry{margin-left:auto}.time-entry input{width:48px;font-size:11px;padding:4px;background:#24242b;border:0;border-radius:5px;color:#e7edff;font-variant-numeric:tabular-nums}.timeline-grid,.track-row{display:grid;grid-template-columns:235px minmax(100px,1fr)}.ruler-label{font-size:11px;color:#757585;padding:5px 0 8px}#time-ruler{position:relative;height:27px;background:repeating-linear-gradient(90deg,#ffffff0b 0,#ffffff0b 1px,transparent 1px,transparent 10%);cursor:ew-resize;border-bottom:1px solid #383842;margin:0 7px}#time-ruler>span{position:absolute;top:2px;transform:translateX(-50%);font-size:10px;color:#838398;white-space:nowrap}#time-ruler>span:first-child{transform:none}#time-ruler>span:last-child{transform:translateX(-100%)}.track-row{height:37px;border-bottom:1px solid #ffffff05}.track-controls{display:flex;align-items:center;gap:4px;padding-right:9px;min-width:0}.key-toggle{width:20px;height:25px;padding:0;color:#76768a;font-size:18px;flex-shrink:0;border-radius:4px}.key-toggle.keyed{color:#538aff}.track-name{font-size:11px;color:#b0b0be;width:67px;flex-shrink:0}.track-values{display:flex;gap:4px;min-width:0;flex:1}.track-values input{min-width:0;width:100%;max-width:50px;background:#24242c;border:1px solid transparent;border-radius:4px;color:#c6d3ed;font-size:11px;padding:4px;font-variant-numeric:tabular-nums;appearance:textfield}.track-values input::-webkit-inner-spin-button{appearance:none}.key-lane{position:relative;margin:0 7px;background:repeating-linear-gradient(90deg,#ffffff05 0,#ffffff05 1px,transparent 1px,transparent 25%);cursor:crosshair;min-width:0}.keyframe{position:absolute;top:8px;transform:translateX(-50%);padding:0;background:none;color:#708dc5;width:15px;height:20px;font-size:13px;cursor:ew-resize;z-index:3}.keyframe.selected{color:#d7e5ff;text-shadow:0 0 6px #5485f7}.keyframe:hover{background:transparent;color:#fff}.lane-playhead{position:absolute;top:0;bottom:0;width:1px;background:#286fff;pointer-events:none;z-index:2}.timeline-mode .transport{margin-top:12px}.timeline-mode .motion-heading{margin-bottom:8px}.timeline-mode .preset-library{display:none}.view-tag{font-size:10px}.file-card small{font-size:11px}.minor-label{font-size:11px}.tip p{font-size:10px}.range-label,.toggle-row{font-size:12px}.range-label output{font-size:11px}.stage-tools button#reset-view{font-size:21px}.preset-library span{font-size:10px}
@media(max-width:1200px){.motion-heading #preset-label{display:none}.timeline-toolbar{gap:6px}.timeline-toolbar label,.timeline-toolbar button,.timeline-toolbar select{font-size:10px}.timeline-grid,.track-row{grid-template-columns:210px minmax(80px,1fr)}.track-name{width:60px}.track-values input{font-size:10px;padding:3px}.motion-heading .custom-preset{font-size:10px}.motion-heading .preset-library{font-size:10px}.view-tag{display:none}.presets .preset-art{width:23px;transform:scale(.7)}.presets .preset b{font-size:11px}.presets .preset{gap:3px;padding:6px}}
@media(max-width:760px){.workspace{min-height:740px}.motion-panel{height:300px;min-height:300px}.timeline-mode .workspace{min-height:800px}.timeline-mode .motion-panel{height:355px;min-height:355px}.motion-heading{flex-wrap:wrap;gap:7px}.editor-mode button{font-size:11px;padding:5px 7px}.motion-heading .custom-preset{font-size:10px}.motion-heading .preset-library{font-size:10px}.presets{grid-template-columns:repeat(4,minmax(0,1fr))}.presets .preset-art{display:none}.presets .preset{min-height:56px;padding:8px;justify-content:center}.presets .preset b{font-size:11px}.timeline-grid,.track-row{grid-template-columns:180px minmax(80px,1fr)}.track-name{width:49px;font-size:10px}.track-values input{font-size:10px;padding:3px}.key-toggle{width:17px}.timeline-toolbar{flex-wrap:wrap;overflow:visible;gap:6px}.timeline-toolbar #editor-time{width:43px}.track-controls{gap:3px}.transport{gap:7px}.transport>span{font-size:9px}.transport label{font-size:10px}.file-card small{font-size:10px}.layer-text b{font-size:11px}}
@media(max-width:520px){.motion-panel{height:280px;min-height:280px}.timeline-mode .motion-panel{height:360px;min-height:360px}.presets .preset{min-height:48px;padding:5px}.presets .preset b{font-size:11px}.motion-heading .custom-preset{margin-left:auto}.motion-heading>#loop{padding:4px;font-size:10px}.motion-heading .preset-library{margin-left:0}.motion-heading #preset-label{display:none}.timeline-grid,.track-row{grid-template-columns:190px minmax(70px,1fr)}.timeline-toolbar label,.timeline-toolbar button,.timeline-toolbar select{font-size:10px}.time-entry{margin-left:0}.track-name{width:51px}.track-values input{max-width:36px;font-size:10px}.layer .eye{display:block}.layer{min-width:155px}.layer-text b{font-size:12px}.layer{gap:7px}.presets .preset em{font-size:8px}.preset-library-grid .preset small{font-size:10px}.preset-library-grid .preset b{font-size:12px}.preset-library-grid .preset-art{display:none}.workspace{min-height:760px}}



/* Compact layer rows and independent canvas viewing controls. */
.layer{min-height:43px;padding:4px 9px;margin-bottom:2px;border-radius:10px}.thumb{height:30px}.stage-tools #canvas-zoom{font-size:9px;font-variant-numeric:tabular-nums;padding:0;width:35px}.stage-tools #fullscreen-canvas[aria-pressed=true]{background:#286fff;color:#fff}
body.canvas-is-fullscreen{overflow:hidden}#stage.canvas-fullscreen,#stage:fullscreen{position:fixed;inset:0;z-index:1000;width:100vw;height:100dvh;min-height:0;flex:none;background:#09090b;border-radius:0}
@media(min-width:1600px){.layer{min-height:45px}}
@media(max-width:760px){.layer{min-height:40px;padding:4px 6px}.thumb{height:28px}}
@media(max-width:520px){#layers{gap:4px}.layer{min-height:40px;margin-bottom:0;padding:4px 6px}.stage-tools{gap:3px}.stage-tools button{width:25px;height:27px}}

#flat-controls .scope-label{margin-top:13px}#flat-controls{padding:2px 0 5px}.flat-mode #rotate-tool .icon{transform:rotate(-15deg)}.flat-mode .preset-art i{transform:skewY(0deg);border-color:#9bb8ff}.flat-mode .preset-art i:nth-child(2){top:3px}.flat-mode .preset-art i:nth-child(3){top:6px}.flat-mode .preset-art i:nth-child(4){top:9px}.flat-mode .preset-art.wipe{clip-path:polygon(0 0,70% 0,70% 100%,0 100%)}.flat-mode .preset-art.fade i{opacity:.35}.flat-mode .preset-art.fade i:last-child{opacity:1}.flat-mode .preset-art.alternate i:nth-child(even){left:0}.flat-mode .preset-art.spread i{left:0}.flat-mode .preset-art.spread i:nth-child(2){left:8px}.flat-mode .preset-art.spread i:nth-child(3){left:16px}.flat-mode .preset-art.spread i:nth-child(4){left:24px}input:disabled,select:disabled{opacity:.35;cursor:not-allowed}
/* Scroll the vertical toolbar when the canvas is short. */
.stage-tools{max-height:calc(100% - 16px);box-sizing:border-box;overflow-y:auto;gap:3px}
.stage-tools > *{flex-shrink:0}.stage-tools button{width:27px;height:29px}.stage-tools #canvas-zoom{width:34px}
@media(max-width:520px){.stage-tools{left:8px;gap:2px;padding:4px}.stage-tools button{width:24px;height:27px}.stage-tools #canvas-zoom{width:31px}}

#bitrate-control{padding:0 0 8px}#bitrate-control .range-label{margin-top:0}#bitrate-control .range-ends{font-size:10px}#export-dialog{max-height:calc(100dvh - 32px);overflow:auto}

.flat-mode .depth-arrangement,.flat-mode .flat-axis-control,.flat-mode .layer-outline-row,.flat-mode .layer-scale-control,.flat-mode #scale,.flat-mode:not(.timeline-mode) .transform-section{display:none}.flat-mode #scale-reset{display:none}.flat-mode #slide-border-row{border-top:1px solid #ffffff08;margin-top:15px;padding-top:12px}.flat-mode .presets{grid-template-columns:repeat(2,minmax(0,1fr))}.flat-mode .presets .preset{min-height:53px}.flat-mode #scene{cursor:grab}

.flat-mode .grid-toggle-row,.flat-mode:not(.timeline-mode) #rotate-tool{display:none}

#export-cancel,#export-download{margin:10px auto 0;width:max-content;justify-content:center}

/* Keep playback available when the animation editor is minimized. */
.motion-panel{position:relative}
#motion-toggle{position:absolute;z-index:2;top:0;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:32px;height:20px;border:1px solid #ffffff24;border-radius:7px;background:#212126;color:#c3c9d9}
#motion-toggle[aria-expanded="false"] svg{transform:rotate(180deg)}
.transport #video-fps{flex:none;width:auto;min-width:55px;font-variant-numeric:tabular-nums}
#slide-direction-row{margin-top:13px}
#motion-toggle:hover{background:#35353e}
.motion-panel:has(#motion-toggle[aria-expanded="false"]){height:auto;min-height:0;flex:none;padding:9px 12px}
.motion-panel:has(#motion-toggle[aria-expanded="false"]) .motion-heading{margin-bottom:0}
.motion-panel:has(#motion-toggle[aria-expanded="false"]) .motion-heading > :not(#loop),
.motion-panel:has(#motion-toggle[aria-expanded="false"]) :is(#preset-workspace,#keyframe-workspace){display:none}
.motion-panel:has(#motion-toggle[aria-expanded="false"]) .transport{margin-top:7px}

#export-dialog .dialog-title{align-items:flex-start}
.export-name{display:grid;gap:7px;flex:1;min-width:0;font-size:12px;color:#a0a0af}
.export-name input{width:100%;min-width:0;padding:10px 12px;border:1px solid #ffffff18;border-radius:9px;background:#202026;color:#f1f1f5;font:inherit}
#export-dialog .export-close{display:grid;place-items:center;width:34px;height:34px;border:1px solid #ffffff18;border-radius:10px;color:#d1d1df}
#export-dialog .export-close:hover{background:#383840;color:#fff}
#export-dialog .export-fields label{flex:1;min-width:0}
