@charset "UTF-8";
:root{font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:#e9e9e9;background:#101010;font-synthesis:none;--bg:#101010;--panel:#1b1b1b;--raised:#242424;--border:#2b2b2b;--muted:#838383;--accent:#d8cef6;--sidebar:242px;color-scheme:dark}
*{box-sizing:border-box}body{margin:0;font-size:13px;line-height:1.6}button,input,select,textarea{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer;border:0;background:none}button:disabled{opacity:.35;cursor:not-allowed}a{color:inherit;text-decoration:none}button,a,input,textarea,select{outline-offset:4px}button:focus-visible,a:focus-visible{outline:2px solid #c1adf2}input:focus,textarea:focus,select:focus{outline:1px solid #9b86ca;border-color:#9b86ca}button{transition:background .15s,color .15s,opacity .15s}button:not(:disabled):active{transform:translateY(1px)}[hidden]{display:none!important}.icon-defs{position:absolute;width:0;height:0}.icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;vertical-align:middle}.brand-mark,.hero-eyebrow>.icon{fill:currentColor;stroke:none}.logo-cut{fill:#161616;stroke:none}.icon-button{width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;color:#909090;border-radius:7px}.icon-button:hover{background:#ffffff0b;color:#eee}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);display:flex;flex-direction:column;padding:22px 14px 12px;background:#171717;border-right:1px solid #ffffff04;z-index:20;transition:transform .2s ease}.sidebar-brand{display:flex;align-items:center;justify-content:space-between;margin:0 5px 27px}.brand{display:flex;gap:9px;align-items:center;font-size:17px;letter-spacing:-.6px}.brand-mark{width:25px;height:25px}.brand strong{font-weight:650}.brand strong span{font-size:15px;margin-left:3px}.nav-home{display:flex;align-items:center;gap:11px;padding:11px 14px;border-radius:12px;color:#929292;margin-bottom:4px;font-size:13px}.nav-home.active{background:#2a2a2a;color:#eee}.nav-home:hover{background:#252525;color:#eee}.nav-home .icon{width:17px;height:17px}.tree-heading{display:flex;align-items:center;justify-content:space-between;color:#777;font-size:11px;letter-spacing:.5px;margin:30px 9px 8px;border-top:1px solid #252525;padding-top:17px}.scene-tree{overflow:auto;flex:1;scrollbar-width:thin}.tree-empty{color:#636363;text-align:center;font-size:12px;line-height:2;margin:38px 0}.tree-scene{margin:3px 0}.tree-row{display:flex;align-items:center;min-height:37px;gap:5px;padding:0 6px;border-radius:7px}.tree-row:hover,.tree-row.selected{background:#252525}.tree-row>.tree-toggle{display:flex;align-items:center;gap:6px;min-width:0;flex:1;text-align:left;color:#b4b4b4;padding:0;font-size:12px}.tree-row .scene-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree-row .icon{width:15px;height:15px}.tree-row .tiny-button{color:#747474;width:23px;height:26px;padding:0}.tree-row .tiny-button:hover{color:white}.tree-shot-list{border-left:1px solid #363636;margin:4px 0 6px 17px;padding-left:12px}.tree-shot{display:flex;align-items:center;gap:6px;border-radius:6px;min-height:32px;color:#858585;font-size:12px}.tree-shot.selected{background:#2d2a33;color:#d9cff4}.tree-shot>button:first-child{flex:1;min-width:0;display:flex;align-items:center;gap:7px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:5px}.tree-shot .icon{width:13px;height:13px}.tree-shot .tiny-button{opacity:0}.tree-shot:hover .tiny-button,.tree-shot:focus-within .tiny-button{opacity:1}.sidebar-bottom{padding-top:14px;border-top:1px solid #282828}.account-button{width:100%;display:flex;align-items:center;gap:10px;text-align:left;padding:8px 6px;border-radius:9px}.account-button:hover{background:#222}.avatar{width:29px;height:29px;border-radius:50%;background:#e2e0db;color:#28282a;display:grid;place-items:center;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover}.avatar .icon{width:16px;height:16px}.account-button strong{display:block;font-size:12px;font-weight:500;max-width:145px;text-overflow:ellipsis;overflow:hidden}.account-button small{display:block;color:#767676;font-size:10px}.account-more{margin-left:auto;width:16px;color:#888}.storage-info{color:#757575;font-size:10px;padding:0 8px 9px}.storage-info progress{width:100%;height:3px;display:block;margin:5px 0;accent-color:#a396bf}.main{margin-left:var(--sidebar);min-height:100vh;display:flex;flex-direction:column;transition:margin .2s ease}.topbar{height:66px;display:flex;align-items:center;justify-content:space-between;padding:0 34px;flex-shrink:0}.topbar>div{display:flex;align-items:center;gap:12px}.topbar-label{color:#777;font-size:12px}.topbar-right{gap:20px!important}.workspace-badge{padding:5px 11px;background:#202020;border-radius:20px;font-size:10px;color:#aaa;display:flex;align-items:center;gap:6px}.workspace-badge i{width:5px;height:5px;background:#b9abd2;border-radius:50%}.subtle-button{color:#919191;display:inline-flex;align-items:center;gap:4px;font-size:12px;padding:5px 0}.subtle-button:hover{color:#eee}.subtle-button .icon{width:14px;height:14px}#expandSidebar{display:none}.sidebar-collapsed .sidebar{transform:translateX(-100%)}.sidebar-collapsed .main{margin-left:0}.sidebar-collapsed #expandSidebar{display:inline-flex}.home-view{width:100%;max-width:1320px;margin:0 auto;padding:15px 48px 42px}.brand-hero{text-align:center;padding:25px 0 23px}.hero-eyebrow{display:flex;align-items:center;justify-content:center;gap:8px;font-size:18px;letter-spacing:-.4px}.hero-eyebrow>.icon{width:23px;height:23px}.hero-eyebrow>span{margin-left:9px;color:#8d8d8d;font-size:12px;letter-spacing:0;border-left:1px solid #383838;padding-left:15px}h1{font-size:27px;font-weight:560;letter-spacing:.6px;line-height:1.5;margin:12px 0 8px}.brand-hero>p{font-size:12px;color:#737373;margin:0}.generator{background:#1d1d1d;border:1px solid #262626;border-radius:20px;max-width:870px;margin:0 auto;overflow:hidden}.generator-heading{padding:14px 22px;display:flex;align-items:center;justify-content:space-between;font-size:12px;border-bottom:1px solid #262626}.generator-heading>span:first-child{display:flex;align-items:center;gap:8px;color:#d2d2d2}.generator-heading .icon{width:15px;height:15px}.generator-tag{font-size:10px;color:#707070}.upload-zone{display:flex;align-items:center;gap:17px;min-height:135px;margin:13px 14px 0;border:1px dashed #363636;border-radius:12px;padding:22px;position:relative}.upload-zone.dragover{border-color:#bba8e9;background:#bba8e908}.upload-add{height:66px;width:73px;flex-shrink:0;border:1px solid #414141;background:#272727;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#b5b5b5}.upload-add .icon{width:23px;height:23px}.upload-add>span{font-size:10px}.upload-add:hover{background:#323232;border-color:#6c6c6c}.upload-intro{display:flex;flex-direction:column;gap:6px}.upload-intro strong{font-size:13px;font-weight:500;color:#b9b9b9}.upload-intro span{font-size:11px;color:#747474}.upload-list{display:contents}.upload-item{position:relative;flex-shrink:0;width:98px;height:68px}.upload-item img{width:100%;height:100%;object-fit:cover;border-radius:8px}.upload-item .remove-image{position:absolute;right:-5px;top:-6px;width:20px;height:20px;background:#444;border:1px solid #666;border-radius:50%;display:grid;place-items:center}.remove-image .icon{width:12px;height:12px}.upload-item .image-name{position:absolute;inset:auto 0 0;padding:3px 5px;background:#0009;color:white;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:0 0 8px 8px}.upload-zone:has(.upload-item){flex-wrap:wrap;gap:12px;padding:17px}.upload-zone:has(.upload-item) .upload-intro{display:none}.generator-footer{display:flex;align-items:center;justify-content:space-between;padding:14px 20px}.muted{color:var(--muted);font-size:11px}.generator-footer>.muted{display:flex;align-items:center;gap:6px;color:#747474}.generator-footer>.muted .icon{width:13px;height:13px}.primary-button,.secondary-button{padding:9px 16px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:500;font-size:12px;line-height:1.5;min-height:36px}.primary-button{color:#242027;background:#dbd3ec}.primary-button:hover:not(:disabled){background:#e7e1f4}.primary-button:disabled{background:#383838;color:#848484;opacity:.7}.primary-button .icon,.secondary-button .icon{width:15px;height:15px}.button-arrow{margin-left:14px}.secondary-button{background:#282828;border:1px solid #363636;color:#ccc}.secondary-button:hover:not(:disabled){background:#333}.danger-button{background:#a94242;color:white}.danger-button:hover:not(:disabled){background:#bd4b4b}.copyright-hint{max-width:870px;margin:11px auto 0;font-size:10px;color:#5e5e5e;text-align:center}.upload-progress{display:flex;align-items:center;gap:10px;border-top:1px solid #303030;padding:12px 20px;font-size:10px;color:#aaa}.upload-progress progress{width:90px;height:4px;accent-color:#c8b7e8}.upload-progress>span{flex:1}.scene-section{margin-top:43px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.section-heading>div{display:flex;align-items:center;gap:13px}h2{font-size:15px;font-weight:550;margin:0}.section-note{color:#696969;font-size:11px}.gallery-caption{font-size:10px;color:#555}.gallery-filters{display:flex;gap:8px;margin:-1px 0 20px}.filter-pill{font-size:11px;color:#858585;padding:5px 12px;border-radius:7px;background:transparent}.filter-pill.active{color:#c9c9c9;background:#282828}.filter-pill:hover{background:#242424}.scene-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}.scene-card{min-width:0;background:#191919;border:1px solid #292929;border-radius:13px;overflow:visible;position:relative;transition:border-color .18s}.scene-card:hover{border-color:#454545}.cover-button{padding:0;display:block;width:100%;aspect-ratio:16/9;border-radius:12px 12px 0 0;overflow:hidden;position:relative;background:#282827;text-align:left}.cover-button img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s}.cover-button:hover img{transform:scale(1.025)}.cover-button>.source-badge{position:absolute;left:11px;top:11px;font-size:9px;padding:2px 7px;border-radius:5px;background:#1515158f;color:#e2e2e2;backdrop-filter:blur(8px)}.cover-open{position:absolute;inset:0;display:grid;place-items:center;background:#0002;opacity:0;transition:opacity .2s}.cover-button:hover .cover-open,.cover-button:focus-visible .cover-open{opacity:1}.cover-open .icon{width:37px;height:37px;padding:9px;background:#111a;border:1px solid #fff6;border-radius:50%;color:white}.cover-placeholder{display:grid;place-items:center;height:100%;min-height:100px;background:linear-gradient(150deg,#323329,#1d2726);color:#ccccb8}.cover-placeholder .icon{width:42px;height:42px;stroke-width:.8}.cover-placeholder[data-preset=office]{background:linear-gradient(150deg,#30363b,#414d4f)}.cover-placeholder[data-preset=bedroom]{background:linear-gradient(145deg,#4a423c,#6a5a4b)}.cover-placeholder[data-preset=cafe]{background:linear-gradient(150deg,#473d2d,#6a5b45)}.cover-placeholder[data-preset=hospital]{background:linear-gradient(145deg,#536560,#93a69d)}.cover-placeholder[data-preset=courtyard]{background:linear-gradient(150deg,#2a3428,#74705d)}.cover-placeholder[data-preset=studio]{background:linear-gradient(150deg,#aaa08a,#685c4d)}.cover-placeholder[data-preset=street]{background:linear-gradient(150deg,#394745,#3b3932)}.card-body{padding:13px 14px 12px}.card-title-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.card-title-row h3{font-size:13px;font-weight:500;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-description{font-size:10px;color:#858585;margin:5px 0 13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:16px}.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:10px}.card-bottom>.apply-button{font-size:11px;padding:5px 12px;border:1px solid #3b3b3b;border-radius:7px;color:#ccc}.card-bottom>.apply-button:hover{background:#353535}.card-bottom .muted{font-size:9px}.status-badge{font-size:9px;color:#b6b6b6;border-radius:5px;padding:2px 6px;background:#303030;white-space:nowrap}.status-badge.ready{color:#adbdab;background:#293128}.status-badge.generating,.status-badge.uploading{color:#c1b4dc;background:#312c3b}.status-badge.upload_failed,.status-badge.generation_failed{color:#d3a19a;background:#392b29}.review-info{font-size:10px;color:#9d8a70;white-space:normal}.scene-menu{position:absolute;right:12px;bottom:46px;background:#282828;border:1px solid #424242;border-radius:9px;padding:5px;box-shadow:0 8px 25px #0006;z-index:8;min-width:126px}.scene-menu button{display:block;width:100%;text-align:left;font-size:11px;padding:7px 10px;border-radius:4px;color:#bbb}.scene-menu button:hover{background:#373737;color:#fff}.scene-menu button.danger-text{color:#dc9b95}.gallery-sentinel{text-align:center;color:#626262;padding:25px;font-size:11px}.empty-grid{grid-column:1/-1;color:#777;text-align:center;padding:50px;border:1px dashed #303030;border-radius:12px}.site-footer{margin-top:auto;padding:21px 48px;border-top:1px solid #1f1f1f;display:flex;justify-content:space-between;gap:15px;color:#585858;font-size:10px}.site-footer>div{display:flex;gap:18px}.site-footer a:hover{color:#aaa}.footer-dot{margin:0 6px}.error-banner{margin:0 32px;padding:10px 15px;background:#352722;border:1px solid #5e3b33;border-radius:8px;color:#d4b2a7;font-size:12px;display:flex;justify-content:space-between}.error-banner button{border:1px solid #665147;border-radius:5px}.toast{position:fixed;bottom:28px;left:calc(50% + var(--sidebar)/2);transform:translateX(-50%);background:#333;border:1px solid #505050;box-shadow:0 10px 30px #0005;padding:12px 20px;max-width:min(650px,85vw);font-size:12px;border-radius:10px;z-index:100;color:#eee}.toast.error{border-color:#78514b;background:#352925}.sidebar-collapsed .toast{left:50%}dialog{padding:26px;border:1px solid #414141;border-radius:17px;background:#202020;color:#ddd;box-shadow:0 25px 100px #0008;max-height:90vh;overflow:auto}dialog::backdrop{background:#0009;backdrop-filter:blur(5px)}.small-dialog{width:440px;max-width:calc(100vw - 32px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.dialog-heading>div{display:flex;align-items:center;gap:15px}.dialog-heading h2{font-size:17px}.dialog-description{font-size:12px;color:#909090;line-height:1.9;margin:13px 0 22px}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:24px}.field-label{display:block;font-size:11px;color:#aaa;margin:16px 0 0}.field-label input,.field-label textarea,.field-label select{display:block;width:100%;margin-top:8px;border:1px solid #414141;background:#171717;border-radius:7px;padding:10px 11px;color:#ddd;resize:vertical;font-size:12px}.field-label input::placeholder,.field-label textarea::placeholder{color:#646464}.required{color:#b0a2c7;margin-left:3px}.optional{float:right;color:#666}.field-error{color:#df9f93;font-size:11px}.check-label{display:flex;align-items:flex-start;gap:8px;font-size:11px;color:#aaa;line-height:1.8;margin-top:18px}.check-label input{accent-color:#bba8d7;margin:4px 0}.full-width{width:100%}.image-dialog{max-width:94vw;padding:14px;max-height:92vh}.image-dialog img{display:block;max-width:90vw;max-height:80vh;object-fit:contain}.image-dialog>.icon-button{display:flex;margin-left:auto;margin-bottom:8px}.preview-dialog{width:min(1080px,94vw);padding:18px}.readonly-badge{color:#999;font-size:10px;padding:3px 7px;background:#303030;border-radius:5px}.preview-viewport{position:relative;height:min(60vh,620px);min-height:260px;margin-top:16px;border-radius:10px;overflow:hidden;background:#292929}.viewer-canvas{position:absolute;inset:0}.viewer-canvas>canvas{display:block;touch-action:none}.viewport-tools{position:absolute;left:14px;top:14px;display:flex;gap:4px;align-items:center;background:#191919c9;border:1px solid #ffffff28;backdrop-filter:blur(10px);padding:4px;border-radius:9px;z-index:2}.viewport-tools>span{height:17px;border-left:1px solid #555;margin:0 3px}.tool-button{display:inline-flex;justify-content:center;align-items:center;padding:5px 8px;font-size:10px;min-height:28px;color:#ccc;border-radius:5px}.tool-button:hover,.tool-button.active{background:#ffffff23;color:white}.tool-button .icon{width:16px;height:16px}.preview-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 2px 0}.viewer-message{position:absolute;inset:0;display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center;background:#202020dc;color:#b3b3b3;z-index:3;font-size:12px;padding:30px;text-align:center}.viewer-message>button{background:#404040;border:1px solid #666;border-radius:6px;padding:6px 15px}.export-contents{display:flex;gap:8px;flex-wrap:wrap;color:#888;margin-top:18px;font-size:10px}.export-contents strong{font-weight:400;background:#2c2c2c;color:#bbb;padding:2px 6px;border-radius:4px}.guide-list{padding-left:25px;margin:27px 0}.guide-list li{padding-left:6px;margin-bottom:23px}.guide-list strong{font-size:13px;font-weight:500}.guide-list p{color:#888;font-size:12px;margin:6px 0}.editor-view{padding:5px 24px 25px;flex:1}.editor-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px}.editor-heading>div{display:flex;align-items:center;gap:10px;font-size:12px}.editor-heading>.icon{width:12px}.editor-heading strong{font-weight:500}.breadcrumb-slash{color:#555;margin:0 4px}.save-status{color:#858585;font-size:10px}.editor-workspace{display:grid;grid-template-columns:minmax(0,1fr) 240px;min-height:470px;height:calc(100vh - 322px);gap:12px}.viewport-wrap{position:relative;overflow:hidden;border:1px solid #383838;border-radius:12px;background:#202020}.viewport-help{position:absolute;bottom:15px;left:15px;color:#fffc;font-size:9px;background:#17171780;padding:4px 8px;border-radius:5px;pointer-events:none}.properties-panel{background:#1b1b1b;border:1px solid #2d2d2d;border-radius:12px;padding:18px 16px;overflow:auto;scrollbar-width:thin}.properties-panel h3{font-size:12px;font-weight:500;margin:0 0 10px;display:flex;align-items:center;justify-content:space-between}.properties-panel h3>span{font-size:9px;color:#777;font-weight:400}.properties-panel .field-label{margin-top:12px;font-size:10px}.properties-panel .field-label input{padding:7px 9px;font-size:11px;margin-top:6px}.two-fields{display:flex;gap:9px}.two-fields>label{flex:1;min-width:0}.properties-panel hr{border:0;border-top:1px solid #2e2e2e;margin:20px 0}.template-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.template-grid button{border:1px solid #3a3a3a;background:#242424;border-radius:7px;padding:8px;font-size:17px;text-align:left;color:#aaa;display:flex;align-items:center;gap:12px}.template-grid button>span{font-size:10px}.template-grid button:hover{border-color:#8e809f;background:#322e3b;color:#e4dbf3}.keyframe-list{max-height:160px;overflow:auto;margin:10px 0 13px}.keyframe-item{display:flex;align-items:center;gap:5px;border:1px solid #303030;border-radius:6px;margin:5px 0;padding:4px}.keyframe-item>button:first-child{flex:1;text-align:left;font-size:10px;color:#bbb}.keyframe-item .icon-button{height:23px;width:23px}.keyframe-item .icon{height:12px;width:12px}.keyframe-empty{font-size:10px;color:#777;padding-bottom:10px;line-height:1.8}.timeline-panel{background:#1a1a1a;border:1px solid #303030;border-radius:12px;margin-top:12px;padding:12px 18px 23px}.timeline-controls{display:flex;align-items:center;gap:16px;color:#aaa;font-size:10px}.timeline-controls>label{display:flex;align-items:center;gap:4px}.timeline-controls input{accent-color:#c5b2e2}.timeline-note{margin-left:auto;color:#656565}.timeline-ruler{display:flex;justify-content:space-between;color:#757575;font-size:9px;margin:8px 0 3px;border-bottom:1px solid #333;padding:0 0 7px}.timeline-track{position:relative;padding:11px 0 6px}.timeline-track>input{width:100%;margin:0;accent-color:#c4afe3;height:18px;position:relative;z-index:2;background:transparent}.timeline-markers{position:absolute;inset:12px 7px auto;height:16px;pointer-events:none;z-index:3}.timeline-marker{width:8px;height:8px;position:absolute;transform:translate(-50%,5px) rotate(45deg);background:#c9b184;border:1px solid #edd8b1;pointer-events:auto;padding:0}.timeline-marker:hover{background:#fff}.legal-view{max-width:800px;padding:40px;margin:0 auto;flex:1;color:#aaa;line-height:2.1;font-size:13px}.legal-view h1{font-size:24px;color:#e5e5e5}.legal-view h2{color:#ccc;margin-top:25px}.cover-renderer{position:fixed;left:-9999px;top:0;width:512px;height:288px;pointer-events:none;visibility:hidden}
@media(min-width:1700px){.home-view{max-width:1490px;padding-left:60px;padding-right:60px}.scene-grid{gap:23px}.brand-hero{padding-top:40px}.gallery-section{margin-top:55px}}
@media(max-width:1150px){:root{--sidebar:215px}.home-view{padding:8px 28px 35px}.scene-grid{gap:13px}.card-body{padding:12px}.editor-workspace{grid-template-columns:minmax(0,1fr) 215px}.topbar{padding:0 25px}h1{font-size:24px}.section-note{font-size:10px}}
@media(max-width:880px){.sidebar{width:210px}.main{margin-left:210px}.sidebar-collapsed .main{margin-left:0}.home-view{padding:0 22px 30px}.scene-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-eyebrow>span{display:none}h1{font-size:21px}.brand-hero{padding-top:18px}.topbar-right>.workspace-badge{display:none}.upload-zone{padding:16px;gap:12px}.upload-intro span{font-size:10px}.generator-footer>.muted{font-size:10px}.section-note,.gallery-caption{display:none}.editor-heading{align-items:flex-start}.editor-heading>div{flex-wrap:wrap}.editor-heading .save-status{display:none}.editor-workspace{grid-template-columns:minmax(0,1fr);height:auto}.viewport-wrap{height:50vh;min-height:330px}.properties-panel{display:grid;grid-template-columns:1fr 1fr;gap:8px 20px;max-height:350px}.properties-panel hr{display:none}.properties-panel>.two-fields{margin:0}.template-grid{grid-column:1/-1;display:flex;flex-wrap:wrap}.template-grid button{flex:1;justify-content:center}.properties-panel>.keyframe-list{grid-column:1/-1}.properties-panel h3{margin:10px 0}.editor-view{padding:5px 16px 20px}.site-footer{padding:20px 24px}.copyright-hint{font-size:9px}.timeline-note{display:none}}
@media(max-width:620px){body:not(.sidebar-collapsed) .main{margin-left:210px;min-width:calc(100vw - 210px)}.topbar{padding:0 17px;height:56px}.topbar-label{font-size:11px}.topbar-right{display:none!important}.home-view{padding:0 16px 30px}.brand-hero{padding:15px 0 21px}.hero-eyebrow{font-size:16px}h1{font-size:19px;letter-spacing:0}.brand-hero>p{font-size:10px}.generator{border-radius:14px}.generator-heading{padding:11px 14px;font-size:11px}.generator-tag{display:none}.upload-zone{margin:10px 10px 0;min-height:128px;padding:14px;flex-wrap:wrap}.upload-intro{gap:4px;max-width:calc(100% - 82px)}.upload-intro strong{font-size:11px}.upload-intro span{font-size:9px}.upload-add{width:58px;height:60px}.generator-footer{padding:12px}.generator-footer>.muted{max-width:130px;font-size:9px}.primary-button,.secondary-button{font-size:11px;padding:8px 12px}.copyright-hint{text-align:left;margin-top:9px}.scene-section{margin-top:30px}.scene-grid{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.card-body{padding:10px}.card-title-row h3{font-size:11px}.card-description{font-size:9px;margin:4px 0 8px}.card-bottom{flex-wrap:wrap;margin-top:6px}.card-bottom>.apply-button{font-size:9px;padding:4px 8px}.card-bottom>.muted{font-size:8px}.cover-button>.source-badge{left:7px;top:7px;font-size:8px}.section-heading{margin-bottom:14px}.section-heading h2{font-size:14px}.site-footer{padding:17px 16px;flex-wrap:wrap;font-size:9px}.site-footer>div{gap:14px}.editor-heading{flex-wrap:wrap}.editor-heading>div{gap:6px}.preview-footer .muted{font-size:9px}.preview-dialog{padding:12px}.dialog-heading h2{font-size:15px}.readonly-badge{font-size:9px}.tool-button{padding:4px 6px}.small-dialog{padding:22px}.toast{left:50%;font-size:11px;bottom:17px}.legal-view{padding:25px}.upload-progress{flex-wrap:wrap}.scene-menu{right:5px;bottom:40px}}
@media(max-width:620px){body:not(.sidebar-collapsed) .main,.main{margin-left:0;min-width:0}.sidebar{box-shadow:20px 0 60px #0008}.sidebar-collapsed .sidebar{box-shadow:none}.sidebar-collapsed #expandSidebar{display:inline-flex}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.export-dialog{width:560px}.export-dialog>.muted,.properties-panel>.muted{font-size:11px;line-height:1.8}.properties-panel .script-field{grid-column:1/-1}.properties-panel textarea{min-height:115px}.export-dialog .dialog-actions{flex-wrap:wrap}.export-dialog .dialog-actions>a{display:inline-flex;align-items:center}

/* The director keeps assets, stage and inspector visible in one workspace. */
.editor-workspace{grid-template-columns:218px minmax(0,1fr) 278px;min-height:360px;height:calc(100vh - 320px)}
.director-library{display:flex;flex-direction:column;min-width:0;background:#1b1b1b;border:1px solid #2d2d2d;border-radius:12px;overflow:hidden}
.library-heading{display:flex;justify-content:space-between;align-items:center;padding:16px 14px 12px}.library-heading>div{display:flex;gap:8px;align-items:center}.library-heading .icon{width:16px;height:16px;color:#c6b6db}.library-heading h3{margin:0;font-size:12px;font-weight:500}.library-heading>span{font-size:10px;color:#78747d}
.template-search{display:flex;gap:6px;align-items:center;margin:0 12px 12px;background:#141414;border:1px solid #333;border-radius:7px;padding:7px 9px}.template-search .icon{width:12px;height:12px;color:#777}.template-search input{background:none;border:0;min-width:0;width:100%;font-size:11px;color:#ddd;outline:none}.template-search:focus-within{border-color:#9883b2}
.template-categories{display:flex;gap:5px;flex-wrap:wrap;padding:0 12px 12px;border-bottom:1px solid #2b2b2b}.template-categories button{font-size:10px;white-space:nowrap;color:#888;padding:5px 8px;background:#242424;border-radius:5px}.template-categories button.active{background:#3a3345;color:#ded0f1}.template-categories button:hover{color:#eee}
.director-template-grid{padding:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;overflow:auto;align-content:start;min-height:0;scrollbar-width:thin;flex:1}
.director-template{display:flex;flex-direction:column;min-width:0;position:relative;text-align:left;border:1px solid #38353c;border-radius:9px;padding:5px 7px 8px;background:#222124;color:#aaa;transition:background .15s,border-color .15s}.director-template>svg{width:100%;height:53px;display:block;background:linear-gradient(180deg,#25242a,#1e1d21);border-radius:5px;margin-bottom:6px}.director-template>strong{font-size:11px;font-weight:500;color:#c9c4cf;line-height:1.6}.director-template>span{font-size:9px;line-height:1.6;color:#807986;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:29px}.director-template>small{font-size:8px;color:#a893c3;margin-top:4px}.director-template:hover:not(:disabled){background:#302b38;border-color:#89739f}.director-template.active{background:#322b3e;border-color:#a18abc}.director-template:disabled{opacity:.44;cursor:not-allowed}.director-template:focus-visible{outline:2px solid #c1a5e5;outline-offset:2px}
.diagram-grid{stroke:#44404b;stroke-width:.5;fill:none}.diagram-path{stroke:#c0a7e2;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;fill:none}.diagram-target{stroke:#77737f;stroke-width:1;stroke-dasharray:2 3;fill:none}.diagram-sight{stroke:#9785ad;stroke-width:.6;stroke-dasharray:2 2}.diagram-start{fill:#26232d;stroke:#c0a7e2;stroke-width:1.3}.diagram-end{fill:#c0a7e2}
.library-footnote{margin:0;padding:10px 12px;border-top:1px solid #2c2c2c;font-size:9px;line-height:1.8;color:#6e6876}.library-empty{grid-column:1/-1;color:#888;text-align:center;font-size:11px;padding:25px 0}
.camera-view-switch{position:absolute;right:13px;top:14px;display:flex;padding:3px;background:#191919c9;border:1px solid #ffffff28;backdrop-filter:blur(10px);border-radius:8px;z-index:2}.camera-view-switch button{font-size:10px;color:#aaa;padding:6px 9px;border-radius:5px}.camera-view-switch button.active{background:#ffffff25;color:#fff}.current-template-badge{position:absolute;right:14px;bottom:15px;font-size:9px;background:#211d2ad9;border:1px solid #6d5a8455;color:#dbd0e7;padding:5px 9px;border-radius:5px;pointer-events:none}
.placement-status{position:absolute;bottom:52px;left:50%;transform:translateX(-50%);z-index:4;display:flex;align-items:center;gap:15px;white-space:nowrap;background:#30263de8;border:1px solid #a38bbb;color:#f1e7fb;font-size:11px;padding:11px 14px;border-radius:8px;box-shadow:0 6px 24px #0003}.placement-status button{font-size:10px;color:#c6b6d8;border-left:1px solid #695977;padding-left:12px}
.properties-panel{padding:16px 14px}.properties-panel .field-label select{font-size:11px;padding:7px 8px;margin-top:6px;min-width:0}.properties-panel .director-hint{font-size:10px;line-height:1.8;margin:10px 0;color:#78737d}.motion-scale-label output{float:right;color:#c2aedb}.properties-panel .motion-scale-label input{accent-color:#bba2db;padding:0;border:0;margin:12px 0 15px}.properties-panel #reapplyTemplate{font-size:11px;padding:7px;min-height:32px}
.subject-heading{display:flex;justify-content:space-between;align-items:center}.subject-heading h3{margin:0;gap:8px}.subject-heading .subtle-button{font-size:10px;gap:3px}.subject-heading .icon{width:12px;height:12px}.subject-empty{line-height:1.9;padding:11px 10px;border:1px dashed #3b3543;border-radius:7px;color:#8a818f}.subject-vector{border:0;padding:0;margin:16px 0 0;min-width:0}.subject-vector legend{display:flex;align-items:center;justify-content:space-between;width:100%;font-size:10px;color:#999;padding:0}.subject-vector legend button{font-size:9px;color:#bba5d2}.subject-vector legend button.active{color:#f2dfff}.three-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:6px}.three-fields label{color:#666;font-size:9px;position:relative}.three-fields input{width:100%;border:1px solid #38343d;background:#171717;border-radius:6px;padding:7px;color:#ccc;font-size:10px;margin-top:4px;min-width:0}.subject-actions{display:flex;align-items:center;justify-content:space-between;margin-top:12px}.subject-actions button{font-size:10px}.danger-text{color:#c58d8d}.shot-script-details summary{font-size:11px;color:#bbb;cursor:pointer;display:flex;align-items:center;justify-content:space-between}.shot-script-details summary>span{font-size:9px;color:#777}.shot-script-details textarea{font-size:11px}.properties-panel>.keyframe-list{max-height:180px}
@media(max-width:1400px){.editor-workspace{grid-template-columns:185px minmax(0,1fr) 248px;gap:9px}.editor-view{padding-left:16px;padding-right:16px}.director-template-grid{gap:6px;padding:9px}.director-template{padding:4px 6px 7px}.director-template>strong{font-size:10px}.camera-view-switch{top:56px}.viewport-help{max-width:75%;line-height:1.7}}
@media(max-width:1100px){.editor-workspace{grid-template-columns:170px minmax(0,1fr);height:auto;min-height:0}.editor-workspace>.viewport-wrap{height:60vh;min-height:430px}.editor-workspace>.properties-panel{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:0 22px;max-height:420px}.properties-panel>.subject-heading,.properties-panel>#subjectEmpty,.properties-panel>#subjectFields,.properties-panel>.director-hint,.properties-panel>.shot-script-details,.properties-panel>.keyframe-list{grid-column:1/-1}.properties-panel>hr{grid-column:1/-1;width:100%}.director-library{max-height:60vh;min-height:430px}}
@media(max-width:700px){.editor-workspace{grid-template-columns:minmax(0,1fr)}.director-library{min-height:0;max-height:245px}.director-template-grid{grid-template-columns:repeat(4,minmax(92px,1fr));max-height:140px;overflow:auto}.library-heading{padding:10px 12px}.template-search{display:none}.template-categories{padding-bottom:8px}.library-footnote{display:none}.editor-workspace>.viewport-wrap{height:52vh;min-height:350px}.camera-view-switch{top:55px}.placement-status{width:calc(100% - 22px);justify-content:space-between;white-space:normal;font-size:10px}.current-template-badge{bottom:44px}.editor-workspace>.properties-panel{display:block;max-height:500px}.properties-panel>.subject-heading{display:flex}.director-template>svg{height:37px}.director-template>span{display:none}.director-template>small{font-size:8px}.viewport-help{font-size:8px;max-width:90%}}

.subject-motion-heading{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #34303a;padding-top:14px;margin-top:15px;font-size:11px;color:#d6c8e5}.subject-motion-heading>span:last-child{font-size:9px;color:#8f7e9f}.properties-panel .subject-motion-settings{margin-bottom:10px}.properties-panel #previewSubjectAction{font-size:11px;min-height:32px;padding:7px}.properties-panel #subjectActionHint{min-height:36px;color:#9a8da6;margin:7px 0 10px}.subject-motion-settings input:disabled{opacity:.45}
