:root{--purple:#7955df;--purple-dark:#6843cd;--lavender:#f1ecfc;--ink:#292b35;--muted:#91929f;--line:#ececf1;--surface:#fafafb;--font:'DM Sans',sans-serif}*{box-sizing:border-box}body{margin:0;font-family:var(--font);font-size:14px;color:var(--ink);background:#fff}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:none;color:inherit}button:disabled{opacity:.35;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--purple);outline-offset:3px}button{transition:background .15s,color .15s,box-shadow .15s}button:hover{color:var(--purple)}svg{width:18px;height:18px;stroke-width:1.65;flex-shrink:0}button svg{pointer-events:none}h1,h2,h3,p{margin:0}.app{display:grid;grid-template-columns:72px 252px minmax(380px,1fr) 278px;grid-template-rows:72px calc(100dvh - 72px);height:100dvh;min-height:710px;overflow:hidden}.topbar{grid-column:1/-1;display:flex;align-items:center;border-bottom:1px solid var(--line);padding:0 24px;gap:26px}.brand{display:flex;align-items:center;gap:10px;color:#292633;text-decoration:none;min-width:274px}.brand-symbol{display:grid;place-items:center;background:var(--purple);width:34px;height:37px;border-radius:10px;transform:rotate(-6deg)}.brand-symbol svg{color:white;width:25px;height:25px;stroke-width:1.6;transform:rotate(6deg)}.brand-word{font-size:29px;letter-spacing:-1.7px;font-weight:700;display:flex;align-items:center;gap:10px}.brand-word>span{font-weight:600;font-size:10px;letter-spacing:2.3px;margin-top:7px;color:#8a8695}.project-path{display:flex;align-items:center;gap:15px;white-space:nowrap;color:#90909d;font-size:13px;flex:1}.project-path>svg{width:12px}.project-path button{display:flex;align-items:center;gap:8px;color:#43404f;font-size:13px;font-weight:550;padding:0}.project-path button svg{width:13px}.saved{display:flex;align-items:center;gap:6px;font-size:11px;margin-left:5px;color:#a0a0aa}.saved svg{width:15px}.top-actions{display:flex;align-items:center;gap:10px}.icon-btn{width:29px;height:29px;display:inline-flex;align-items:center;justify-content:center;padding:4px;color:#83838f;border-radius:5px}.icon-btn:hover{background:#f1edf9;color:var(--purple)}.divider{display:block;width:1px;height:18px;background:var(--line);margin:0 5px}.button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:36px;border-radius:7px;padding:0 14px;font-size:13px;font-weight:550}.button.subtle{border:1px solid #e5e5eb;box-shadow:0 1px 2px #22222204}.button.primary{background:var(--purple);color:white;box-shadow:0 2px 4px #7854dd1a}.button.primary:hover{background:var(--purple-dark)}.button svg{width:16px}.small-icon{width:12px!important;margin-left:5px}.avatar{width:32px;height:32px;background:#ebe3dd;border:3px solid #fff;box-shadow:0 0 0 1px #eae6e2;border-radius:50%;font-size:11px;margin-left:6px;color:#715b4b;font-weight:600}.rail{border-right:1px solid var(--line);display:flex;flex-direction:column;justify-content:space-between;padding:18px 8px 16px;background:#fdfdfe}.rail-top,.rail-bottom{display:flex;align-items:center;flex-direction:column;gap:14px}.rail-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;width:56px;height:57px;border-radius:8px;color:#8b8997}.rail-button svg{width:21px;height:21px}.rail-button span{font-size:10px;font-weight:500}.rail-button.active{color:var(--purple);background:#f0eafa}.rail-bottom{gap:1px}.rail-bottom button{height:37px}.library{border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0}.panel-heading{height:61px;min-height:61px;display:flex;align-items:center;justify-content:space-between;padding:0 20px}.panel-heading h1,.panel-heading h2{font-weight:600;font-size:15px;letter-spacing:-.3px}.library-panel{padding:0 18px;overflow:auto;scrollbar-width:thin}.search{height:35px;display:flex;align-items:center;gap:7px;border:1px solid #e9e9ee;border-radius:6px;padding:0 9px;background:#fff;color:#a3a1af}.search svg{width:15px}.search input{border:0;outline:0;min-width:0;width:100%;font-size:12px;background:none;color:#444}.search input::placeholder{color:#a1a0ab}.search kbd{white-space:nowrap;font-size:10px;border:1px solid #ededf0;border-radius:3px;padding:1px 4px;color:#aaa9b2}.library-tabs{display:flex;gap:19px;border-bottom:1px solid var(--line);margin-top:16px}.library-tabs button{font-size:12px;padding:0 1px 12px;color:#9996a4;font-weight:500;position:relative}.library-tabs button.active{color:var(--purple)}.library-tabs button.active:after{content:'';height:2px;background:var(--purple);position:absolute;bottom:-1px;left:0;right:0}.library-section-title{display:flex;align-items:center;justify-content:space-between;margin:20px 0 13px;font-size:12px;font-weight:550}.count{font-size:10px;padding:1px 5px;background:#f1f1f5;border-radius:4px;color:#9996a4;line-height:15px;font-weight:400}.asset-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px 11px}.asset-card{padding:0;text-align:left;position:relative;min-width:0}.asset-thumbnail{height:84px;background:#f6f6f8;border:1px solid #eeeeF2;border-radius:8px;display:flex;align-items:center;justify-content:center;overflow:hidden;transition:border .15s,background .15s}.asset-card:hover .asset-thumbnail{border-color:#b39be7;background:#f2edf9}.asset-card:first-child .asset-thumbnail{background:#f1edf9;border-color:#d9cbf1}.asset-thumbnail img{width:100%;height:100%;object-fit:contain}.asset-card>span{display:block;margin-top:7px;font-size:11px;color:#7b7789}.asset-add{position:absolute;right:6px;top:6px;display:none!important;margin:0!important;width:17px;height:17px;background:#fff;border-radius:4px;font-size:15px!important;text-align:center;line-height:16px;color:var(--purple)!important}.asset-card:hover .asset-add{display:block!important}.asset-tip{display:flex;gap:7px;align-items:center;font-size:10px;line-height:1.5;color:#aaa6b3;margin:17px 0}.asset-tip svg{width:12px}.import-button{display:flex;align-items:center;justify-content:center;gap:7px;border:1px dashed #dcd9e6;border-radius:6px;height:35px;width:100%;font-size:11px;color:#777082}.import-button svg{width:13px}.import-button>span{color:#aba5b6;font-size:10px;margin-left:auto}.recent-title{border-top:1px solid var(--line);padding-top:18px;margin-top:20px}.scene-row{display:flex;align-items:center;gap:8px;background:#f3eefb;padding:9px 10px;color:#8969c5;border-radius:6px;font-size:12px;width:100%;text-align:left;margin-bottom:5px}.scene-row>span{flex:1}.scene-row svg{width:15px}.scene-row>svg:last-child{width:12px}.learn-card{display:flex;align-items:center;gap:10px;padding:13px 12px;margin: auto 16px 16px;background:linear-gradient(110deg,#f8f5fc,#f4f3f9);border:1px solid #eeebf4;border-radius:8px;text-align:left}.learn-icon{width:30px;height:31px;display:grid;place-items:center;background:#eee6fa;border-radius:8px;color:#a889db;flex-shrink:0}.learn-icon svg{width:13px;fill:#a889db;stroke-width:0}.learn-card strong{font-size:10px;font-weight:550;display:block;color:#7e718f}.learn-card small{font-size:10px;display:flex;align-items:center;gap:8px;margin-top:5px;color:#aaa1b7}.learn-card small svg{width:12px;height:12px}.library-footer{display:flex;align-items:center;justify-content:center;gap:9px;border-top:1px solid var(--line);height:38px;min-height:38px;font-size:10px;color:#b3b0bc}.version-badge{font-size:8px;letter-spacing:.5px;border:1px solid #e8e6ed;border-radius:3px;padding:2px 4px}.workspace{display:flex;flex-direction:column;min-width:0;min-height:0}.scene-bar{height:49px;min-height:49px;border-bottom:1px solid var(--line);display:flex;align-items:center;background:#fff}.scene-tab{align-self:stretch;display:flex;align-items:center;gap:9px;padding:0 24px;border-right:1px solid var(--line);font-size:12px;position:relative}.scene-tab:after{content:'';height:2px;background:var(--purple);position:absolute;bottom:-1px;left:0;right:0}.scene-tab>svg{width:15px;color:#8c819d}.scene-indicator{width:5px;height:5px;background:#bcb2cb;border-radius:50%;margin-left:15px}.scene-bar>.icon-btn{margin-left:9px}.scene-bar-right{display:flex;align-items:center;gap:7px;margin-left:auto;margin-right:12px;font-size:10px;color:#9995a3}.live-dot{width:5px;height:5px;background:#86b79b;border-radius:50%;margin-right:1px}.scene-bar-right .divider{height:13px;margin-left:9px}.viewport{flex:1;position:relative;min-height:270px;overflow:hidden;background:radial-gradient(ellipse at 51% 36%,#fafafa,#eff0f2)}#canvas-container{position:absolute;inset:0}#canvas-container canvas{display:block;width:100%;height:100%;touch-action:none}.viewport-top{position:absolute;top:20px;left:21px;right:21px;display:flex;justify-content:space-between;z-index:2;pointer-events:none}.viewport-top>*{pointer-events:auto}.view-dropdown{display:flex;align-items:center;gap:7px;font-size:11px;background:#ffffffdc;border:1px solid #e8e8ee;border-radius:5px;padding:7px 9px;box-shadow:0 2px 6px #2e243604;color:#77727f}.view-dropdown svg:first-child{width:13px}.view-dropdown svg:last-child{width:10px;margin-left:8px}.viewport-modes{display:flex;align-items:center;gap:3px;background:#ffffffdf;border:1px solid #e7e7ed;padding:3px;border-radius:6px;height:32px}.viewport-modes button{width:25px;height:24px;display:grid;place-items:center;color:#9a96a1;border-radius:3px}.viewport-modes button.active{background:#f1edf7;color:#8a71b6}.viewport-modes svg{width:14px;height:14px}.viewport-modes>span{height:14px;width:1px;background:#eeecf1;margin:0 2px}.transform-tools{position:absolute;left:20px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;padding:5px;gap:4px;border:1px solid #e3e2e9;border-radius:8px;background:#fffffff0;box-shadow:0 4px 12px #35254705;z-index:2}.transform-tools button{height:29px;width:28px;border-radius:4px;color:#9b94a4;display:grid;place-items:center}.transform-tools button svg{width:16px;height:16px}.transform-tools button.active{background:#ede6fa;color:#8a65d1}.transform-tools>div{height:1px;background:#edeaf1;margin:2px 4px}.viewport-bottom{position:absolute;bottom:17px;left:22px;right:20px;display:flex;justify-content:space-between;align-items:center;pointer-events:none;color:#a8a3b0;font-size:10px}.viewport-bottom>span{display:flex;align-items:center;gap:7px}.viewport-bottom svg{width:13px;height:13px}.viewport-bottom b{font-weight:400;margin:0 2px}.viewport-bottom button{pointer-events:auto;display:flex;align-items:center;gap:7px;font-size:10px;color:#a29ba9}.selected-label{position:absolute;bottom:52px;left:50%;transform:translateX(-50%);font-size:10px;color:#aaa0b9;display:flex;gap:6px;align-items:center}.selected-label>span:first-child{width:5px;height:5px;background:#b49add;border-radius:2px}.axis-gizmo{position:absolute;right:24px;bottom:64px;width:44px;height:45px;font-size:9px;pointer-events:none}.axis-gizmo span:not(.axis-center){border-radius:50%;width:15px;height:15px;text-align:center;line-height:15px;font-weight:550;position:absolute;z-index:1}.axis-x{right:0;bottom:0;color:#b57781;background:#eadde1}.axis-y{top:0;left:15px;color:#78a485;background:#dfeae0}.axis-z{bottom:0;left:0;color:#8195bf;background:#dfe5ef}.axis-center{position:absolute;top:17px;left:21px;background:#bbb5c8;width:2px;height:18px;transform:rotate(60deg)}.axis-gizmo:before,.axis-gizmo:after{content:'';position:absolute;width:2px;height:25px;left:22px;top:12px;background:#bbb5c8}.axis-gizmo:after{transform:rotate(-55deg);top:17px}.timeline{height:235px;min-height:235px;border-top:1px solid #e5e3eb;background:#fff;display:flex;flex-direction:column}.timeline-toolbar{height:54px;min-height:54px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 17px;gap:12px}.timeline-title{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:550}.playback{display:flex;align-items:center;gap:5px}.playback svg{width:14px}.play-button{display:grid;place-items:center;border-radius:6px;background:#eee7fb;color:#8960d4;width:28px;height:28px}.play-button svg{width:13px;fill:currentColor;stroke-width:1.3}.timecode{margin-left:8px;font-variant-numeric:tabular-nums;font-size:11px;color:#777180;white-space:nowrap}.timecode>span{color:#b5b0bd}.playback .loop-on{color:#9574cf}.timeline-actions{display:flex;align-items:center;gap:5px}.timeline-actions>button:not(.icon-btn){display:flex;align-items:center;gap:5px;font-size:10px;color:#9690a1;padding:4px}.timeline-actions svg{width:14px}.timeline-actions select{border:0;font-size:10px;color:#968fa0;background:none;outline:0}.timeline-body{display:flex;flex:1;min-height:0}.track-labels{width:183px;flex-shrink:0;border-right:1px solid var(--line);font-size:11px}.track-header{height:32px;display:flex;align-items:center;justify-content:space-between;color:#aaa3b3;font-size:8px;letter-spacing:.8px;padding:0 13px}.track-header .icon-btn{height:20px;width:20px}.track-header svg{width:12px}.track-object{height:34px;display:flex;align-items:center;gap:7px;padding:0 12px;background:#f8f5fc;color:#8a769e;border-top:1px solid #f1edf7;border-bottom:1px solid #f1edf7}.track-object>svg{width:13px}.track-object>svg:first-child{width:9px}.track-object>span{flex:1}.track-object .icon-btn{height:22px;width:22px}.track-object .icon-btn svg{width:12px}.property-track{height:31px;display:flex;align-items:center;padding:0 23px 0 42px;gap:7px;color:#a59aae;font-size:10px}.property-track>svg{width:8px;height:8px;margin-left:auto;fill:#d9cbe9;stroke-width:0}.track-dot{width:5px;height:5px;border-radius:50%}.purple{background:#b29bd0}.blue{background:#9dacd5}.tracks{position:relative;flex:1;background:repeating-linear-gradient(90deg,transparent 0,transparent calc(20% - 1px),#f0edf5 calc(20% - 1px),#f0edf5 20%);margin-right:20px;cursor:crosshair}.time-ruler{height:32px;display:flex;justify-content:space-between;color:#aaa2b3;font-size:9px;border-bottom:1px solid var(--line);align-items:center}.time-ruler span{transform:translateX(-50%)}.time-ruler span:first-child{transform:none;margin-left:6px}.time-ruler span:last-child{transform:translateX(50%)}.clip-track{height:34px;background:#f8f5fc;padding:5px 2px;border-bottom:1px solid #f0edf4}.animation-clip{display:flex;align-items:center;gap:7px;height:23px;background:#eee3fb;border:1px solid #dfcef6;border-radius:5px;font-size:9px;color:#ac90c9;padding:0 9px}.animation-clip>svg{width:12px;height:12px}.clip-duration{margin-left:auto;color:#bda3d9}.keyframe-track{height:31px;position:relative;border-bottom:1px solid #f9f7fb;background:#faf8fd66}.keyframe{position:absolute;top:10px;width:10px;height:10px;padding:0;border-radius:1px;transform:rotate(45deg);background:#b391d3;z-index:1}.blue-key{background:#9dadd6}.position-track{background:#fafbff66}.playhead{position:absolute;top:21px;bottom:0;left:1px;width:1px;background:#9870dc;z-index:3;pointer-events:none}.playhead>span{position:absolute;top:-5px;left:-4px;width:9px;height:12px;background:#9970dc;border-radius:2px;clip-path:polygon(0 0,100% 0,100% 65%,50% 100%,0 65%)}.timeline-footer{height:34px;min-height:34px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);font-size:9px;color:#b1aab9}.timeline-footer>span,.timeline-footer>div{display:flex;align-items:center;gap:6px}.timeline-footer svg{width:11px;height:11px}.timeline-footer .divider{height:10px;margin:0 6px}.timeline-footer button{font-size:9px;color:#a8a0b2;display:flex;align-items:center;gap:9px}.inspector{display:flex;flex-direction:column;min-height:0;border-left:1px solid var(--line)}.inspector>.panel-heading{height:61px;min-height:61px}.selected-object{display:flex;align-items:center;gap:10px;margin:0 19px;padding-bottom:20px;border-bottom:1px solid var(--line)}.selected-object-icon{width:35px;height:35px;background:#f3eefb;color:#aa90d1;border-radius:8px;display:grid;place-items:center}.selected-object-icon svg{width:19px;height:19px}.selected-object>div{flex:1}.selected-object strong{display:block;font-size:12px;font-weight:550}.selected-object div>span{display:block;font-size:10px;margin-top:3px;color:#a5a0ad}.inspector-scroll{overflow:auto;scrollbar-width:thin;flex:1}.property-section{margin:0 19px;padding:17px 0 19px;border-bottom:1px solid var(--line)}.property-section h3{font-size:12px;font-weight:550;display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;height:17px}.property-section h3 svg{width:12px;color:#aaa3b4}.property-section h3 .icon-btn{width:19px;height:19px}.transform-row{margin-top:11px}.transform-row>label{display:block;font-size:10px;color:#a39baa;margin-bottom:6px}.axis-fields{display:flex;gap:6px}.axis-field{height:28px;width:calc((100% - 12px)/3);min-width:0;display:flex;align-items:center;background:#f7f7f9;border:1px solid #efedf3;border-radius:4px;font-size:10px;padding:0 7px;gap:3px}.axis-field>span{font-size:9px;color:#be929d}.axis-field:nth-child(2)>span{color:#97b4a5}.axis-field:nth-child(3)>span{color:#98a8c6}.axis-field input{width:100%;min-width:0;text-align:right;border:0;background:none;outline:0;color:#8f879a;font-size:10px;-moz-appearance:textfield}.axis-field input::-webkit-inner-spin-button{display:none}.uniform-scale{display:flex;align-items:center;gap:6px;font-size:9px;margin-top:11px;justify-content:flex-end;color:#aba3b5}.uniform-scale input{width:10px;height:10px;margin:0;accent-color:var(--purple)}.uniform-scale svg{width:11px;height:11px}.material-preview{display:flex;align-items:center;gap:10px;background:#fbfafe;border:1px solid #f0edf5;border-radius:6px;padding:8px;margin-bottom:13px}.material-orb{width:31px;height:31px;border-radius:50%;background:radial-gradient(circle at 35% 25%,#e5ddf9,#b1a0dd 50%,#7c68ae);box-shadow:0 3px 5px #8c6da833;flex-shrink:0}.material-preview>span:nth-child(2){flex:1}.material-preview strong{display:block;font-size:10px;font-weight:500;color:#8a7e98}.material-preview small{display:block;font-size:9px;color:#b1a7bc;margin-top:3px}.material-preview svg{width:12px}.property-line{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;color:#aaa0b4;margin-top:13px}.color-field{display:flex;align-items:center;gap:6px;background:#faf9fc;border:1px solid #f0edf5;border-radius:4px;padding:4px 8px 4px 5px;font-size:9px;color:#9b8ca9;min-width:104px}.color-field input{border:0;background:none;padding:0;width:15px;height:15px;cursor:pointer}.color-field input::-webkit-color-swatch-wrapper{padding:0}.color-field input::-webkit-color-swatch{border:0;border-radius:3px}.range-label{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#a89daf;margin-top:15px;margin-bottom:6px}.range-label>span{font-size:9px;border:1px solid #efebf5;background:#faf9fc;border-radius:3px;padding:2px 6px;min-width:39px;text-align:center}input[type=range]{width:100%;height:3px;accent-color:#a68bcf;cursor:pointer;display:block;margin:8px 0 2px;-webkit-appearance:none;border-radius:3px;background:linear-gradient(to right,#beace0 45%,#eee9f4 45%)}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:10px;height:10px;background:white;border:2px solid #bea8dd;border-radius:50%;box-shadow:0 1px 2px #3331}.mini-badge{font-size:7px;font-weight:500;padding:2px 4px;border-radius:3px;background:#f6f1fc;color:#b09acb;letter-spacing:.6px}.preset-select{display:flex;align-items:center;gap:8px;height:34px;border:1px solid #e9e0f5;border-radius:5px;background:#fbf8ff;padding:0 8px;color:#a084c2}.preset-select svg{width:14px}.preset-select select{width:100%;min-width:0;border:0;background:none;outline:0;font-size:11px;appearance:none;color:#9a7dbb}.preset-select>svg:last-child{width:10px}.number-with-unit{display:flex;align-items:center;background:#faf9fc;border:1px solid #eee9f4;border-radius:4px;padding:5px 8px;width:93px;color:#b4a8c1;font-size:9px}.number-with-unit input{width:100%;min-width:0;outline:0;border:0;background:none;font-size:10px;color:#998ca9}.property-line>select{border:1px solid #eee9f4;border-radius:4px;background:#faf9fc;padding:5px;font-size:10px;color:#a093af;max-width:120px}.loop-setting{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#a89cb5;margin-top:16px}.switch{appearance:none;width:25px;height:14px;background:#ded7e9;border-radius:12px;position:relative;cursor:pointer;margin:0}.switch:checked{background:#b29ad4}.switch:before{content:'';position:absolute;left:2px;top:2px;width:10px;height:10px;border-radius:50%;background:white;transition:transform .2s}.switch:checked:before{transform:translateX(11px)}.add-animation{display:flex;align-items:center;justify-content:center;gap:7px;color:#ac93c9;border:1px solid #eee6f6;border-radius:5px;margin:17px 19px;width:calc(100% - 38px);height:32px;font-size:10px}.add-animation svg{width:13px}.add-animation>svg:last-child{width:11px;margin-left:4px}.inspector-footer{min-height:38px;display:flex;align-items:center;justify-content:center;gap:6px;border-top:1px solid var(--line);font-size:9px;color:#c0b5cc}.inspector-footer svg{width:12px}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);background:#30243d;color:white;padding:12px 20px;border-radius:10px;font-size:13px;box-shadow:0 8px 25px #25123e26;z-index:20;opacity:0;pointer-events:none;transition:transform .2s,opacity .2s}.toast.visible{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid #e4ddef;border-radius:16px;padding:25px;width:min(460px,calc(100vw - 32px));color:var(--ink);box-shadow:0 20px 80px #2a183126}dialog::backdrop{background:#29203a42;backdrop-filter:blur(4px)}.modal-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.modal-heading h2{font-size:20px;font-weight:600;letter-spacing:-.5px}#modal-content{font-size:14px;line-height:1.65;color:#8c7f98}#modal-content p{margin-bottom:15px}#modal-content .button{width:100%;margin-top:17px}#modal-content label{display:flex;align-items:center;justify-content:space-between;margin:14px 0;gap:10px}#modal-content input:not([type=checkbox]),#modal-content select{border:1px solid #e6dfed;border-radius:6px;padding:9px;width:160px;color:#65596f;background:#faf8fc}#modal-content kbd{font-size:12px;background:#f2edf8;padding:3px 8px;border-radius:4px}.shortcut-row{display:flex;justify-content:space-between;border-bottom:1px solid #f0eaf5;padding:9px 0}.preset-card{width:100%;display:flex;text-align:left;align-items:center;gap:11px;background:#f8f5fc;border:1px solid #ebe4f4;border-radius:8px;padding:13px 10px;margin-bottom:10px}.preset-card>svg{width:23px;height:23px;color:#9b79c9}.preset-card strong{font-size:12px;font-weight:500;display:block;color:#7f6996}.preset-card small{font-size:10px;color:#ada0b9;display:block;margin-top:4px}.panel-description{font-size:12px;color:#aba1b5;line-height:1.7;margin:0 0 18px}.material-card{display:flex;align-items:center;gap:12px;width:100%;padding:12px;border:1px solid #eee7f5;border-radius:7px;margin-bottom:10px;text-align:left;font-size:12px;color:#9684a5}.material-card>span{width:33px;height:33px;border-radius:50%;box-shadow:inset -5px -7px 11px #0002,inset 3px 5px 8px #fff5}.scene-actions{display:flex;gap:6px;margin-top:16px}.scene-actions button{border:1px solid #eae3f1;border-radius:5px;padding:8px;font-size:11px;display:flex;align-items:center;gap:5px}.scene-actions svg{width:13px}.empty-message{grid-column:1/-1;font-size:12px;line-height:1.7;color:#a394b0;padding:15px 0}.loading-message{position:absolute;inset:0;display:grid;place-items:center;color:#9f8eb7;font-size:13px}.export-preview{height:150px;background:#f4f0f9;border-radius:9px;overflow:hidden;display:flex;align-items:center;justify-content:center}.export-preview img{width:100%;height:100%;object-fit:contain}.render-status{font-size:12px;text-align:center;margin-top:10px}.mobile-toggle{display:none}
@media(min-width:1600px){.app{grid-template-columns:76px 272px minmax(500px,1fr) 302px}.asset-thumbnail{height:100px}.brand{min-width:302px}.timeline{height:255px;min-height:255px}.timeline-body .property-track,.keyframe-track{height:39px}.keyframe{top:16px}.panel-heading{height:68px;min-height:68px}.property-section{padding:22px 0}.transform-row{margin-top:14px}.axis-field{height:31px}.library-section-title{margin-top:24px}.asset-grid{gap:17px 13px}.learn-card strong{font-size:11px}}
@media(max-width:1250px){.app{grid-template-columns:64px 218px minmax(350px,1fr) 248px}.brand{min-width:230px}.topbar{gap:15px;padding:0 18px}.saved{display:none}.rail{padding-left:4px;padding-right:4px}.library-panel{padding:0 14px}.panel-heading{padding:0 16px}.timeline-actions>button>span{display:none}.timeline-title .count{display:none}.timeline-toolbar{gap:5px;padding:0 12px}.track-labels{width:151px}.property-track{padding-left:30px}.timecode{font-size:10px;margin-left:3px}.asset-thumbnail{height:75px}.learn-card{margin-left:12px;margin-right:12px;padding:11px 8px;gap:7px}.learn-card strong{font-size:9px}.learn-card small{font-size:9px}.project-path{font-size:12px;gap:8px}.top-actions{gap:5px}.top-actions>.icon-btn{display:none}.property-section{margin-left:16px;margin-right:16px}}
@media(max-width:1050px){.app{grid-template-columns:60px 190px minmax(310px,1fr) 225px}.brand{min-width:216px}.brand-word>span{display:none}.project-path>span:first-child,.project-path>svg{display:none}.topbar{gap:10px}.rail-button{width:50px}.library-panel{padding:0 12px}.panel-heading{padding:0 13px}.asset-grid{gap:10px}.asset-thumbnail{height:69px}.learn-card{padding:10px 7px}.learn-icon{display:none}.timeline-title{display:none}.timeline-footer>span{font-size:8px;max-width:50%}.timeline-actions .divider{display:none}.track-labels{width:142px}.property-section{margin-left:14px;margin-right:14px}.selected-object{margin-left:14px;margin-right:14px}.color-field{min-width:91px}.asset-tip{font-size:9px}.import-button{font-size:10px}.import-button span{display:none}.search kbd{display:none}}
@media(max-width:850px){.app{grid-template-columns:60px 190px minmax(0,1fr);grid-template-rows:64px calc(100dvh - 64px);min-height:690px}.inspector{display:none}.brand{min-width:216px}.topbar{padding:0 16px}.top-actions{margin-left:auto}.top-actions .subtle{display:none}.top-actions>.divider{display:none}.project-path{display:none}.viewport-top{left:15px;right:15px}.viewport-bottom{left:15px;right:15px}.transform-tools{left:15px}.timeline-toolbar{justify-content:space-between}.timeline-footer>span{display:none}.timeline-footer{justify-content:flex-end}.scene-tab{padding:0 15px}.timeline-actions>button:not(.icon-btn){display:none}.timeline-actions{gap:3px}.rail{padding-top:14px}.asset-thumbnail{height:73px}}
@media(max-width:600px){.app{grid-template-columns:52px minmax(0,1fr);grid-template-rows:58px minmax(0,1fr);min-height:620px;height:100dvh}.topbar{padding:0 14px}.brand{min-width:0;flex:1;gap:7px}.brand-word{font-size:26px}.brand-symbol{height:30px;width:29px;border-radius:8px}.brand-symbol svg{width:22px}.top-actions{gap:8px}.top-actions .avatar{width:29px;height:29px;margin:0}.top-actions .button{height:32px;min-height:32px;padding:0 10px;font-size:12px}.rail{padding:13px 2px}.rail-button{width:47px;height:49px}.rail-button span{font-size:8px}.rail-button svg{width:19px;height:19px}.rail-top{gap:13px}.library{position:absolute;top:58px;left:52px;bottom:0;width:230px;z-index:6;background:white;box-shadow:8px 0 30px #34224717;display:none}.library.mobile-open{display:flex}.library-panel{padding:0 16px}.asset-thumbnail{height:74px}.workspace{grid-column:2}.scene-bar{height:43px;min-height:43px}.scene-tab{font-size:11px}.scene-indicator{margin-left:7px}.scene-bar-right{font-size:9px;gap:5px;margin-right:7px}.scene-bar-right .divider{display:none}.scene-bar-right .icon-btn{width:23px}.timeline{height:214px;min-height:214px}.timeline-toolbar{height:47px;min-height:47px;padding:0 9px}.timeline-actions>select{font-size:9px}.timeline-actions>.icon-btn{display:none}.playback{gap:1px}.playback>.icon-btn{width:23px}.timecode{font-size:9px}.playback>.loop-on{display:none}.track-labels{width:102px}.track-header{font-size:6px;letter-spacing:.5px;padding:0 6px}.track-object{font-size:9px;gap:4px;padding:0 6px}.track-object>svg:nth-child(2){display:none}.track-object .icon-btn{display:none}.property-track{padding:0 12px 0 20px;font-size:9px}.animation-clip{font-size:8px;padding:0 5px;gap:4px}.clip-duration{display:none}.tracks{margin-right:14px}.viewport-top{left:12px;right:12px;top:13px}.view-dropdown{font-size:9px;padding:5px 6px;gap:4px}.view-dropdown svg:last-child{margin-left:0}.viewport-modes{height:29px}.viewport-modes button{width:20px;height:21px}.transform-tools{left:10px;gap:3px;padding:3px}.transform-tools button{width:25px;height:26px}.viewport-bottom{font-size:8px;left:11px;right:11px;bottom:12px}.viewport-bottom>span{gap:4px}.viewport-bottom button{font-size:8px;gap:4px}.viewport-bottom>span svg{display:none}.axis-gizmo{right:18px;bottom:48px;transform:scale(.8)}.selected-label{bottom:40px}.timeline-footer{height:30px;min-height:30px}.learn-card{margin-top:20px}}

/* Readable controls across the compact studio panels. */
.asset-card>span{font-size:12px;color:#80758c}.library-section-title{font-size:13px}.rail-button span{font-size:11px}.search input{font-size:13px}.library-tabs button{font-size:13px}.property-section h3{font-size:13px}.transform-row>label{font-size:12px;color:#8d8199}.axis-field{height:30px}.axis-field input{font-size:12px;color:#81728f}.axis-field>span{font-size:10px}.property-line,.range-label,.loop-setting{font-size:12px;color:#8f819c}.material-preview strong{font-size:12px}.material-preview small{font-size:10px}.preset-select select{font-size:12px}.property-line>select,.number-with-unit input{font-size:11px}.selected-object strong{font-size:13px}.selected-object div>span{font-size:11px}.color-field{font-size:10px}.view-dropdown{font-size:12px}.timeline-title{font-size:13px}.track-object{font-size:12px}.property-track{font-size:11px}.animation-clip{font-size:10px}.asset-tip{font-size:11px}.import-button{font-size:12px}.learn-card strong{font-size:10px}.topbar .saved{font-size:11px}.property-section{padding-top:16px;padding-bottom:16px}.property-section h3{margin-bottom:12px}.transform-row{margin-top:10px}.material-preview{margin-bottom:9px}.uniform-scale{font-size:10px}.range-label{margin-top:12px}.range-label>span{font-size:10px}.axis-gizmo{opacity:.75}.viewport-bottom{color:#96909f}.selected-label{color:#978aa6}
@media(max-width:600px){.rail-button span{font-size:9px}.view-dropdown{font-size:10px}.track-object{font-size:10px}.property-track{font-size:10px}.animation-clip{font-size:9px}.asset-tip{font-size:11px}}
.scene-row{background:#faf9fc;color:#81788d}.scene-row.selected{background:#f0eafb;color:#714bc4;box-shadow:inset 2px 0 var(--purple);font-weight:600}.selected-label{padding:5px 10px;border:1px solid #e6def2;border-radius:999px;background:#ffffffed;box-shadow:0 3px 12px #38265012;color:#715d8d;font-weight:550}.selected-label>span:first-child{background:var(--purple);box-shadow:0 0 0 3px #7955df20}.keyframe.selected{background:#7651d2;box-shadow:0 0 0 3px #7955df24;z-index:2}.keyframe.blue-key.selected{background:#657fc1;box-shadow:0 0 0 3px #657fc124}.keyframe.gold-key{background:#d3a24b}.track-dot.gold{background:#d3a24b}.scale-track{background:#fffaf166}.snap-toggle{display:flex;align-items:center;gap:6px;padding:2px 4px;border-radius:4px;color:#8f78b1!important;font-size:9px}.snap-toggle:hover{background:#f0eafb}.snap-toggle.snap-off{color:#aaa3b3!important}.snap-toggle svg{width:11px;height:11px}
@media(min-width:601px){.timeline{height:278px;min-height:278px}.property-track{height:39px}}
@media(max-width:600px){.timeline{height:244px;min-height:244px}.property-track,.keyframe-track{height:31px}}
.timeline-actions>.export-frame-button{width:25px;height:25px;color:#9388a0}.timeline-actions>.export-frame-button:hover{background:#f0eafb}
@media(max-width:600px){.timeline-actions>.export-frame-button{display:inline-flex;width:23px;height:23px}}

/* Scene layer stack */
.scene-list .scene-row,.scene-tree .scene-row{display:flex;align-items:center;gap:2px;margin:0 0 3px;padding:0;background:transparent;border-radius:6px;color:#777082;font-size:12px}
.scene-row-main{display:flex;align-items:center;gap:7px;flex:1;min-width:0;text-align:left;padding:8px 5px 8px calc(7px + var(--depth,0)*14px);border-radius:5px;color:inherit;font-size:12px}
.scene-row-main>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.scene-row-main>svg{width:14px;height:14px;color:#9f90b0}
.scene-expand,.scene-expand-placeholder{width:15px;height:22px;flex:0 0 15px;display:grid;place-items:center;color:#aaa2b2}
.scene-expand{padding:0;border-radius:3px}
.scene-expand svg{width:12px;height:12px}
.scene-visibility{width:27px;height:27px;display:grid;place-items:center;flex:0 0 27px;padding:0;border-radius:4px;color:#9b94a4}
.scene-visibility svg{width:13px;height:13px}
.scene-row.selected .scene-row-main{background:#f1ecfc;color:#7955df}
.scene-row.multi-selected .scene-row-main{background:#f7f3fc;color:#7f64ac}
.scene-row.drop-target{outline:1px solid #a68be0;background:#f7f3fc}
.scene-row.dragging{opacity:.45}
.scene-group-actions{margin:0 0 9px}
.scene-group-actions button{border:1px solid #eae3f1;border-radius:5px;padding:8px;font-size:11px;display:flex;align-items:center;gap:5px;color:#756582}
.scene-group-actions button svg{width:13px;height:13px}
.scene-actions button:disabled{opacity:.4;cursor:default}
.scene-tree{min-height:24px}
#mini-scene-list{padding-bottom:5px}
#mini-scene-list .scene-row-main{font-size:11px}
.scene-row-main>span{flex:1;min-width:0}
.scene-root-drop{display:flex;align-items:center;justify-content:flex-start;gap:6px;width:100%;margin:0 0 8px;padding:7px 9px;border:1px dashed #d8cbe9;border-radius:5px;background:#fbf9fe;color:#8975a2;font-size:11px;text-align:left;cursor:pointer;transition:background .15s,border-color .15s}
.scene-root-drop svg{width:13px;height:13px}
.scene-root-drop.drop-target{border-color:#9470d2;background:#f0eafb;color:#714bc4}
.scene-group-actions{align-items:center}
#selection-count{margin-left:auto;color:#95899f;font-size:10px;white-space:nowrap}
.scene-row.multi-selected .scene-row-main{background:#eee7fa;color:#7651c2;box-shadow:inset 2px 0 #a995dc}

/* H3 Max video-to-video rendering */
.ai3d-render-button{background:#f1ecfc;border:1px solid #e4daf7;color:#704bc5;white-space:nowrap}
.ai3d-render-button:hover{background:#e9e0fa;color:#6240b7}
.ai3d-render-button svg{color:inherit}
dialog{max-height:calc(100dvh - 32px);overflow:auto;width:min(520px,calc(100vw - 32px))}
.h3-workflow{display:grid;gap:14px}
.h3-source-card{padding:12px;border:1px solid #e7deef;border-radius:9px;background:#fbf9fd}
.h3-source-heading,.h3-reference-heading{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:9px;color:#6f5b83;font-size:14px}
.h3-source-heading span,.h3-reference-heading>span:last-child{font-size:12px;font-weight:400;color:#92869d}
.h3-source-frame{display:grid;place-items:center;aspect-ratio:16/9;overflow:hidden;border-radius:6px;background:#f0edf4;color:#8e819a;font-size:13px}
.h3-source-frame video{display:block;width:100%;height:100%;object-fit:contain;background:#17131c}
.h3-source-frame video[hidden]{display:none}
.h3-field{display:grid;gap:6px;color:#6f5d7f;font-size:14px;font-weight:550}
.h3-field>span{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.h3-field small,.h3-reference-heading small{font-size:12px;font-weight:400;color:#998ca4}
#modal-content .h3-field input,#modal-content .h3-field select,#modal-content .h3-field textarea{width:100%;max-width:none;min-height:40px;padding:8px 10px;border:1px solid #e4d9ef;border-radius:6px;background:#fff;color:#65596f;font:inherit;font-size:14px}
#modal-content .h3-field textarea{resize:vertical;min-height:60px;line-height:1.45}
.h3-note{font-size:12px;line-height:1.5;color:#887c92}
.h3-note a{color:#7955df;text-decoration:none}.h3-note a:hover{text-decoration:underline}
.h3-reference-section{display:grid;gap:8px}.h3-reference-heading{margin-bottom:0}
.h3-dropzone{display:grid;justify-items:center;gap:4px;padding:13px;border:1px dashed #c9b6e2;border-radius:7px;background:#fbf9fe;color:#78638e;text-align:center;cursor:pointer;transition:background .15s,border-color .15s}
.h3-dropzone:hover,.h3-dropzone.drag-active{border-color:#8a68ca;background:#f2ecfb}
.h3-dropzone>svg{width:21px;height:21px;color:#9273c5}.h3-dropzone>span{font-size:13px}.h3-dropzone>small{font-size:12px;color:#998da4}
.h3-reference-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:8px}
.h3-ref-card{position:relative;min-width:0;display:grid;gap:4px}.h3-ref-card img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border:1px solid #e9e2ef;border-radius:6px;background:#f4f1f7}
.h3-ref-card>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#80738e;font-size:12px}
.h3-ref-remove{position:absolute;right:4px;top:4px;display:grid;place-items:center;width:22px;height:22px;padding:0;border-radius:50%;background:#30243ddd;color:white;font-size:18px;line-height:1}
.h3-ref-remove:hover{background:#7955df;color:white}.h3-ref-status:empty{display:none}
#modal-content .h3-submit{width:100%;min-height:40px;margin:0}
.h3-status{min-height:18px;font-size:12px;line-height:1.45;color:#806c98;overflow-wrap:anywhere}.h3-status.error,.h3-source-card .error{color:#b54a5a}
.h3-result{display:grid;gap:9px;padding-top:12px;border-top:1px solid var(--line)}
.h3-result strong{font-size:14px;font-weight:550;color:#665378}.h3-result video{display:block;width:100%;max-height:360px;background:#17131c;border-radius:8px}.h3-result .button{width:100%;margin:0;text-decoration:none}
.h3-account-card{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid #e7deef;border-radius:9px;background:#fbf9fd}.h3-account-card .h3-note{margin:0}.h3-account-card .button{flex:none;margin:0}
#h3-library{padding:10px 12px;border:1px solid #e7deef;border-radius:9px;color:#6f5b83;font-size:13px}#h3-library summary{cursor:pointer;font-weight:600}#h3-library-list{display:grid;gap:6px;padding-top:10px;color:#92869d}
.h3-saved-video{width:100%;padding:9px 10px;border:1px solid #e7deef;border-radius:6px;background:#fff;color:#6f5b83;text-align:left;font:inherit;cursor:pointer}.h3-saved-video:hover{background:#f2ecfb}.h3-saved-video:disabled{opacity:.6;cursor:wait}
.h3-saved-row{display:flex;gap:6px}.h3-saved-remove{flex:none;padding:0 9px;border:1px solid #e7deef;border-radius:6px;background:#fff;color:#a24b5c;font-size:12px}.h3-saved-remove:hover{background:#fff0f2;color:#913246}
#h3-sign-in[hidden],#h3-sign-out[hidden],#h3-library[hidden]{display:none}
@media(max-width:600px){.ai3d-render-button{width:34px;min-width:34px;padding:0;gap:0;font-size:0}.ai3d-render-button svg{width:16px;height:16px}dialog{padding:17px}.h3-workflow{gap:12px}}
.account-button{min-width:36px;max-width:220px;margin-left:4px}.account-button svg{width:15px}.account-button span{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-panel{display:grid;gap:12px}.account-panel p{font-size:13px;line-height:1.5;color:#786d84}.account-panel .button{width:100%;margin:0}.account-panel [hidden]{display:none!important}
@media(max-width:600px){.account-button{width:32px;min-width:32px;padding:0}.account-button span{display:none}}

/* Motion library: object context, reusable motions, and live connections. */
.motion-context,.motion-apply{display:grid;gap:7px;margin-bottom:14px;color:#645873;font-size:13px}
.motion-context>label,.motion-apply>label{font-size:12px;font-weight:600;color:#80758c}
.motion-context select,.motion-apply>select,.motion-field select,.motion-field input:not([type=checkbox]){min-width:0;max-width:100%;border:1px solid #e3dcec;border-radius:6px;background:#fff;color:#594d6a;font:inherit;font-size:13px;padding:8px;outline-offset:2px}
.motion-context select,.motion-apply>select{width:100%;text-overflow:ellipsis}
.motion-settings{border:1px solid #e4d9f4;background:#faf8fe;border-radius:9px;margin-bottom:16px;overflow:hidden}
.motion-settings>summary{display:flex;align-items:center;gap:9px;list-style:none;padding:12px 10px;color:#704bc5;cursor:pointer}
.motion-settings>summary::-webkit-details-marker{display:none}
.motion-settings>summary>svg{width:18px;height:18px;flex-shrink:0}
.motion-settings>summary>span{min-width:0;flex:1;font-size:14px;font-weight:550;line-height:1.4}
.motion-settings>summary small{display:block;font-size:12px;font-weight:400;color:#8c7c9e}
.motion-settings>summary>svg:last-child{width:14px;transition:transform .15s}
.motion-settings[open]>summary>svg:last-child{transform:rotate(180deg)}
.motion-controls{padding:0 10px 12px}
.motion-field{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:9px 0;color:#73647f;font-size:12px;line-height:1.4}
.motion-field select,.motion-field input:not([type=checkbox]){width:88px;padding:6px;font-size:12px}
.motion-field input[type=checkbox],.motion-target input{accent-color:var(--purple);width:15px;height:15px;flex-shrink:0}
.motion-scene-timing{border-top:1px solid #e9e0f3;margin-top:12px;padding-top:12px}
.motion-scene-timing>span{font-size:12px;font-weight:600;color:#796b86}
.motion-hint{font-size:12px;line-height:1.55;color:#8d7e9b;margin:7px 0}
.motion-target-heading{display:flex;flex-wrap:wrap;align-items:center;gap:5px;justify-content:space-between;font-size:13px;font-weight:600;color:#6f5a83;margin-top:4px}
.motion-target-heading>span{font-size:12px;font-weight:400;color:#9a87b0}
.motion-targets{max-height:170px;overflow:auto;background:#fff;border:1px solid #e7dff0;border-radius:6px;padding:4px}
.motion-target{display:flex;gap:7px;align-items:center;padding:7px 3px;font-size:13px;color:#6d5c7b;cursor:pointer;min-height:32px}
.motion-target:hover{background:#f6f1fd;border-radius:4px}
.motion-target>span{flex:1;overflow-wrap:anywhere;min-width:0}
.motion-target>b{font-size:11px;color:#8b65c8;background:#f2eafa;border-radius:4px;min-width:19px;text-align:center;line-height:20px}
.motion-target-notice{font-size:12px;line-height:1.5;color:#8b682d;background:#fff7e9;border:1px solid #f2e2c5;border-radius:5px;padding:8px;margin-top:8px}
.motion-remove{display:flex;justify-content:center;align-items:center;gap:5px;border:1px solid #e6dff0;border-radius:5px;font-size:12px;color:#927da4;padding:8px;width:100%;margin-top:12px}
.motion-remove:hover{background:#f0e8fa;color:#7656a0}.motion-remove svg{width:13px;height:13px}
.motion-search{margin-top:6px!important;margin-bottom:12px!important}.motion-search input{font-size:13px}
.motion-categories{display:flex;flex-wrap:wrap;gap:5px;margin:0 0 17px}
.motion-categories>button{border:1px solid #e9e2f0;border-radius:5px;padding:6px 8px;color:#8d7d9a;font-size:12px;line-height:1.3}
.motion-categories>button.active{background:#7955df;border-color:#7955df;color:#fff}
.motion-categories>button:hover:not(.active){background:#f5f0fd;color:#7651be}
.motion-list-heading{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#9f94a9;margin:0 0 10px}
.motion-list-heading>span:first-child{font-size:13px;color:#7b6b8a;font-weight:550}
.motion-card{display:flex;align-items:center;gap:9px;text-align:left;width:100%;padding:12px 9px;border:1px solid #eae4f1;border-radius:8px;margin-bottom:8px;position:relative;background:#fff;transition:background .15s,border-color .15s}
.motion-card:hover{background:#faf7ff;border-color:#cdbce9}.motion-card.active{background:#f4eefe;border-color:#b99fe2;box-shadow:inset 2px 0 #9672d5}
.motion-glyph{display:grid;place-items:center;width:30px;height:35px;flex-shrink:0;color:#a083c9}.motion-glyph svg{width:23px;height:23px}
.motion-card>span:nth-child(2){flex:1;min-width:0}.motion-card strong{display:block;font-size:14px;font-weight:550;color:#6f5986;line-height:1.4}.motion-card small{display:block;font-size:12px;color:#9a89a8;line-height:1.45;margin-top:3px}
.motion-card.active strong{color:#744ec0}.motion-link-icon{position:absolute;right:7px;top:7px;width:11px;height:11px;color:#b29acb}
.motion-card:focus-visible,.motion-settings>summary:focus-visible{outline:2px solid #9672d5;outline-offset:2px}
@media(max-width:1050px) and (min-width:601px){.motion-card{padding:10px 7px;gap:4px}.motion-glyph{width:23px}.motion-glyph svg{width:19px}.motion-card strong{font-size:13px}.motion-categories>button{padding:5px 6px}}
@media(max-width:600px){.library:has(.motion-context){width:min(300px,calc(100vw - 52px))}.motion-card{min-height:68px}.motion-context select,.motion-apply>select{min-height:36px}}

/* Physics uses the existing lavender workspace, with readable controls on every screen. */
.physics-panel{color:#6f5986;font-size:14px;padding-bottom:16px}
.physics-field{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:13px 0;font-size:14px;line-height:1.5}
.physics-field select,.physics-field input:not([type=checkbox]){border:1px solid #e4d9ef;border-radius:6px;padding:7px 6px;color:#665276;background:#fff;font:inherit;width:100px;min-width:0}
.physics-field select{width:125px}.physics-object{display:block}.physics-object select{display:block;width:100%;margin-top:7px}
.physics-field select:disabled{opacity:.5}.physics-field input[type=checkbox]{width:19px;height:19px;accent-color:#7955df}
.physics-note{font-size:12px;line-height:1.6;color:#877791;margin:8px 0 14px}
.physics-body-settings{border-top:1px solid #ede5f4;margin-top:16px;padding-top:2px}
.physics-range{display:flex;flex-wrap:wrap;justify-content:space-between;gap:7px;margin:16px 0;font-size:14px}
.physics-range output{font-size:12px;color:#88729b}.physics-range input{width:100%;accent-color:#7955df}
.physics-launch{margin:18px 0;border:1px solid #e8ddf2;border-radius:7px;padding:10px}
.physics-launch summary{cursor:pointer;font-size:14px}.physics-launch fieldset{border:0;padding:0;margin:14px 0 0;min-width:0}.physics-launch legend{font-size:12px;margin-bottom:6px}
.physics-vector{display:flex;gap:5px}.physics-vector label{width:33.33%;min-width:0;font-size:12px}
.physics-vector input{width:100%;min-width:0;border:1px solid #e4d9ef;border-radius:5px;padding:7px 3px;font-size:14px;color:#665276;background:#fff;margin-top:4px}
.physics-world{border-top:1px solid #e8ddf2;margin-top:18px;padding-top:16px}.physics-world h3{font-size:14px;font-weight:600}
.physics-actions{display:flex;flex-direction:column;gap:8px;margin-top:18px}.physics-actions .button{width:100%;min-height:38px;font-size:14px}
.physics-drop{display:flex;align-items:center;justify-content:center;gap:7px;font-size:14px;border:1px solid #d8c8eb;border-radius:6px;padding:10px;color:#7955b3}.physics-drop:hover{background:#f3ecfc}.physics-drop svg{width:16px;height:16px}
.physics-panel :is(input,select,button,summary):focus-visible{outline:2px solid #7955df;outline-offset:2px}
@media(max-width:1050px) and (min-width:601px){.library:has(.physics-panel){width:240px;position:relative;z-index:8;background:white;box-shadow:8px 0 20px #34224712}}
@media(max-width:600px){.library:has(.physics-panel){width:min(300px,calc(100vw - 52px))}.rail-top{gap:7px}.rail{overflow-y:auto}.physics-field{min-height:36px}}
/* Local motion and physics controls */
.physics-body-settings .physics-field select{width:min(145px,62%)}
.physics-body-settings .physics-note{background:#f8f4fc;border-left:2px solid #b39bdf;border-radius:0 5px 5px 0;padding:9px 10px}
