:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif;color:#30394b;background:#f7f8fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{outline-offset:4px}a{color:#4864ed;text-decoration:none}button,.file-button{cursor:pointer}button{border:1px solid #dfe4ef;border-radius:10px;background:white;color:#45536d;padding:10px 14px}button:disabled{opacity:.5;cursor:not-allowed}.primary{background:#4864ed;color:white;border-color:#4864ed;font-weight:600}.primary:hover:not(:disabled){background:#3653de}.muted,small{color:#8790a3}.small,small{font-size:12px;line-height:1.7}[hidden]{display:none!important}.sidebar{width:226px;position:fixed;inset:0 auto 0 0;background:white;border-right:1px solid #e9edf4;padding:30px 20px;display:flex;flex-direction:column;gap:18px}.brand{font-size:27px;color:#30394b;font-weight:750;white-space:nowrap}.brand small{display:block;font-size:9px;letter-spacing:3px;margin-top:5px}.nav-link{font-size:13px;color:#7b869a;padding:9px 4px}.sidebar h2{font-size:12px;color:#9098a8;font-weight:500;margin:14px 0 0}.sidebar nav{overflow:auto;flex:1;min-height:0}.history-item{display:block;width:100%;text-align:left;border:0;background:transparent;margin-bottom:6px;padding:12px 10px;font-size:13px}.history-item strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.history-item small{display:block;margin-top:5px}.history-item[aria-current=page]{background:#eef2ff;color:#4864ed}.main{margin-left:226px}.topbar{height:76px;border-bottom:1px solid #e9edf4;background:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 40px;font-size:13px}.slash{color:#c1c7d4;padding:0 12px}.topbar a{color:#65728b}main{max-width:1450px;padding:36px 40px 60px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:15px}.eyebrow{font-size:12px;color:#4864ed;margin:0 0 12px}h1{font-size:29px;letter-spacing:-.5px;margin:0 0 13px}p{line-height:1.7}h2{font-size:16px}.page-heading .muted{font-size:14px;margin:0}.quiet-badge{border:1px solid #e2e7f2;border-radius:20px;padding:8px 12px;color:#8290a6;font-size:12px;white-space:nowrap}.steps{display:flex;list-style:none;margin:30px 0 24px;padding:0;gap:30px;font-size:13px;color:#929caf}.steps li{display:flex;align-items:center;gap:9px}.steps b{width:25px;height:25px;display:grid;place-items:center;background:#e9edf4;border-radius:50%;font-size:12px}.steps [aria-current=step]{color:#4864ed}.steps [aria-current=step] b{background:#4864ed;color:white}.editor-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,1fr);gap:24px;align-items:start}.panel{background:white;border:1px solid #e4e8f1;border-radius:18px}.composer{padding:26px;min-width:0}.section-heading{font-size:18px;font-weight:600;display:block;margin-bottom:16px}textarea{resize:vertical;width:100%;border:1px solid #e1e6ef;border-radius:11px;line-height:1.8;padding:15px;background:#fafbfe;color:#38445b}textarea::placeholder,input::placeholder{color:#a0a8b8}#script{min-height:190px;font-size:14px}.import-row{display:flex;align-items:center;gap:12px;margin:12px 0 24px;font-size:12px}.file-button{color:#63799f;position:relative;border:1px solid #e1e7f1;border-radius:7px;padding:7px 10px;overflow:hidden}.file-button input,.upload-area input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip:rect(0 0 0 0);bottom:0;left:0}.upload-btn{border:0;background:transparent;color:inherit;font:inherit;padding:0;box-shadow:none}.upload-btn:disabled{opacity:.5}.upload-area.dragover{border-color:#4864ed;background:#eef2ff}.field-section{border-top:1px solid #edf0f6;padding-top:12px;margin-bottom:22px}.section-top{display:flex;justify-content:space-between;gap:8px;align-items:center}.section-top h2{font-size:14px;font-weight:600}.section-top small{font-weight:400;margin-left:5px}.text-button{font-size:12px;border:0;background:transparent;color:#617bac;padding:8px 0}.upload-area{position:relative;overflow:hidden;border:1px dashed #ccd6eb;border-radius:10px;background:#fafbfe;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:23px 14px;font-size:14px;color:#667b9f;text-align:center}.upload-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px}.gen-image-btn{border:1px solid #c5d0f5;background:#eef2ff;color:#4864ed;border-radius:999px;padding:8px 16px;font-size:13px;font-weight:600}.gen-image-btn:hover:not(:disabled){background:#e4eaff}.gen-image-btn:disabled{opacity:.5}.asset-library.gen-image{width:min(520px,94vw)}.gen-image-form{display:grid;gap:12px;margin:12px 0}.gen-image-form label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#6e7c95}.gen-image-form textarea{min-height:110px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:15px 0}.settings-grid label,details label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#6e7c95;min-width:0}select,input:not([type=file]):not([type=checkbox]){width:100%;min-width:0;border:1px solid #dfe5f0;border-radius:9px;background:white;color:#485670;padding:11px;font-size:13px}select{text-overflow:ellipsis}.model-row{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}details{border-top:1px solid #edf0f5;padding-top:17px;margin-top:20px}summary{color:#8390a6;font-size:13px;cursor:pointer}details label{margin-top:18px}details textarea{min-height:90px}input[type=file]{max-width:100%;font-size:12px}.submit-row{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #edf0f5;margin-top:20px;padding-top:20px}.submit-row strong{font-size:16px;color:#4864ed}.submit-row small{display:block;font-size:11px;margin-top:7px;max-width:250px}.submit-row button{white-space:nowrap;font-size:13px;padding:13px 16px}.image-studio{padding:20px 18px 18px;position:sticky;top:24px;max-height:calc(100dvh - 120px);overflow:auto;display:flex;flex-direction:column;gap:14px}.image-studio-head h2{margin:0;font-size:17px}.image-studio-head p{margin:6px 0 0;font-size:12px;line-height:1.6}.image-studio-form{display:grid;gap:10px}.image-studio-form label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#6e7c95;margin:0}.image-studio-form textarea{min-height:96px;font-size:13px}.image-studio-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.image-studio-submit{display:flex;align-items:center;justify-content:space-between;gap:10px}.image-studio-submit .primary{white-space:nowrap;padding:10px 14px;font-size:13px}.image-studio-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.studio-card{border:1px solid #e2e7f2;border-radius:12px;padding:8px;background:#fafbfe;min-width:0;cursor:pointer;text-align:left}.studio-card:hover{border-color:#b7c4ef}.studio-card[data-active=true]{border-color:#4864ed;background:#eef2ff;box-shadow:0 0 0 1px #4864ed33}.studio-card img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;background:#eef1f7;display:block}.studio-card strong,.studio-card small{display:block;font-size:11px;margin-top:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.studio-card .studio-card-actions{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}.studio-card .studio-card-actions button{font-size:11px;padding:4px 8px}.upload-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px}.gen-image-btn{border:1px solid #c5d0f5;background:#eef2ff;color:#4864ed;border-radius:999px;padding:8px 16px;font-size:13px;font-weight:600}.asset-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(105px,1fr));gap:10px;margin-top:12px}.asset-card{min-width:0;border:1px solid #e2e7f2;border-radius:9px;padding:8px}.asset-card img,.asset-card video{width:100%;height:65px;object-fit:contain;background:#f4f6fb;border-radius:5px}.asset-card audio{width:100%}.asset-card strong,.asset-card small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;margin-top:5px}.asset-card button{font-size:11px;padding:3px 5px;margin:4px 5px 0 0}.asset-card .remove{color:#9a7373}#message,#projectError{padding:13px 18px;border-radius:10px;background:#eef3ff;color:#4864a4;font-size:14px;overflow-wrap:anywhere}#message[data-error=true],#projectError{background:#fff2ed;color:#b36347}.loading{padding:60px}.project-toolbar{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:28px 0}.project-toolbar h2{font-size:22px;margin:0}.project-toolbar p{font-size:13px;margin:8px 0 0}.actions{display:flex;gap:10px;flex-wrap:wrap}.shots{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px}.shot{min-width:0;padding:20px;background:white;border:1px solid #e3e8f2;border-radius:14px;overflow-wrap:anywhere}.shot-heading{display:flex;justify-content:space-between;gap:12px}.shot-heading strong{font-size:16px}.shot .state{font-size:12px;color:#8190a8}.shot[data-state=completed] .state{color:#388c69}.shot[data-state=failed] .state{color:#bd6551}.shot p{font-size:13px;white-space:pre-wrap}.shot>small{display:block;margin:10px 0}.shot video{width:100%;aspect-ratio:16/9;background:#151921;border-radius:10px;margin-top:14px}.shot .actions{margin-top:14px}.shot .actions a{font-size:12px}.shot textarea{min-height:150px;margin-top:12px}.shot-error{color:#b36347}.film-output{padding:22px;background:#fff;border:1px solid #e1e6f1;border-radius:15px;margin-bottom:24px}.film-output a{display:inline-block;padding:12px}.film-output video{max-width:100%;max-height:480px;display:block}.asset-library{border:1px solid #dce4f2;border-radius:16px;width:min(800px,94vw);max-height:85dvh;padding:24px}.asset-library::backdrop{background:#1b254766}.asset-library .actions{position:sticky;bottom:-24px;background:white;padding:14px 0}.asset-library .asset-card{cursor:pointer}.asset-library h2{margin-top:0}.empty-history{font-size:12px;color:#939caf;line-height:1.8}
@media(min-width:1500px){.editor-layout{grid-template-columns:minmax(0,1.35fr) minmax(320px,1fr)}}@media(max-width:1150px){.sidebar{width:190px;padding:24px 16px}.main{margin-left:190px}main{padding:28px 24px}.topbar{padding:0 24px}.editor-layout{grid-template-columns:minmax(0,1fr)}.image-studio{position:static;max-height:none}}@media(max-width:700px){.sidebar{position:static;width:auto;padding:16px;display:grid;grid-template-columns:1fr auto;gap:10px;border-right:0;border-bottom:1px solid #e4e9f3}.brand{font-size:22px}.brand small{display:none}.sidebar>.nav-link{justify-self:end;align-self:center}.sidebar>button{grid-column:1 / -1}.sidebar h2{margin:4px 0}.sidebar nav{grid-column:1 / -1;display:flex;max-height:120px;gap:8px}.sidebar .history-item{min-width:155px;max-width:200px;margin:0}.sidebar .canvas-link{display:none}.main{margin-left:0}.topbar{height:52px;padding:0 18px;font-size:11px}main{padding:24px 16px 40px}.page-heading h1{font-size:24px}.page-heading .muted{font-size:12px}.quiet-badge{display:none}.steps{gap:15px;margin:24px 0 20px;font-size:12px}.steps b{width:21px;height:21px}.composer{padding:18px}.section-heading{font-size:17px}.section-top{flex-wrap:wrap}.submit-row{align-items:stretch;flex-direction:column}.submit-row small{max-width:none}.submit-row button{width:100%;padding:14px}.project-toolbar{align-items:flex-start;flex-direction:column}.actions button{font-size:13px}.shots{grid-template-columns:minmax(0,1fr)}.loading{padding:30px}.asset-library{padding:18px}.asset-library .actions{bottom:-18px}.page-heading{align-items:flex-start}}

.mobile-projects{display:none}@media(max-width:700px){.sidebar>button#newFilm{grid-column:1}.sidebar>button.mobile-projects{display:block;grid-column:2}.sidebar h2{display:none}.sidebar #filmHistory{display:none}.sidebar #filmHistory.expanded{display:flex}.sidebar #filmHistory .history-item{min-height:60px}.sidebar{grid-template-columns:minmax(0,1fr) auto}.topbar{height:46px}}

#timelineIssue{margin-top:12px;padding:12px 14px;border:1px solid #f1d7c7;border-radius:9px;background:#fff5ee;color:#a5603d;font-size:13px;line-height:1.8}#timelineIssue button{display:block;margin-top:8px;font-size:12px}#lengthHint{margin:0 0 12px}

.batch-capacity{padding:18px 20px;background:#eff3ff;border:1px solid #dbe4ff;border-radius:12px;font-weight:650;color:#304ec2;line-height:1.7;margin:16px 0 8px}.shot-references{max-height:240px;overflow:auto}.shot-references p{font-size:12px;overflow-wrap:anywhere}.asset-grid{max-height:520px;overflow:auto}#concurrencyLabel input{width:100%}.composer>label[for=script]{margin-top:24px}#modelLimits{line-height:1.8}
