.factory-studio{font-family:Segoe UI,Arial,sans-serif;color:#f1f2f3;background:#111214;font-synthesis:none;--surface:#181a1d;--line:#303338;--muted:#a5a9b0;--accent:#cdff49;--text:#f1f2f3;--ready:#9ad7bf;--panel:#141619;color-scheme:dark;letter-spacing:0}.factory-studio *{box-sizing:border-box}.factory-studio{margin:0}.factory-studio button,.factory-studio input,.factory-studio select,.factory-studio textarea{font:inherit;letter-spacing:0}.factory-studio button{cursor:pointer}.factory-studio button:disabled{cursor:default;opacity:.35}.factory-studio button{color:inherit}.factory-studio button,.factory-studio input,.factory-studio select,.factory-studio textarea{outline:none}.factory-studio button:focus-visible,.factory-studio input:focus-visible,.factory-studio select:focus-visible,.factory-studio summary:focus-visible,.factory-studio textarea:focus-visible{outline:2px solid #cdff49;outline-offset:3px}.factory-studio button{transition:background .15s,color .15s}.factory-studio input,.factory-studio textarea{caret-color:var(--accent)}.factory-studio ::selection{color:white;background:#7b3432}.factory-studio ::-webkit-scrollbar{width:6px;height:6px}.factory-studio ::-webkit-scrollbar-thumb{border-radius:4px;background:#42464e}.factory-studio *{scrollbar-width:thin;scrollbar-color:#42464e transparent}.factory-studio h1,.factory-studio h2,.factory-studio h3,.factory-studio p{margin:0}.factory-studio button svg{flex-shrink:0}.factory-studio button{border:0}.factory-studio input[type=range]{accent-color:var(--accent);cursor:pointer}.factory-studio input[type=number]{font-variant-numeric:tabular-nums}.factory-studio.app{height:100dvh;min-height:550px;overflow:hidden;display:flex;flex-direction:column}.factory-studio .topbar{height:62px;flex:none;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 22px;gap:22px;background:#101113}.factory-studio .brand{display:flex;align-items:center;gap:17px;white-space:nowrap}.factory-studio .brand img{width:66px;height:30px;object-fit:contain}.factory-studio .brand-divider{height:19px;width:1px;background:#383b41}.factory-studio .brand strong{font-size:14px;font-weight:600}.factory-studio .studio-word{color:var(--muted);font-weight:400;margin-left:4px}.factory-studio .preview-badge{font-size:10px;color:#c3c6cc;border:1px solid #3a3d43;padding:5px 8px;border-radius:4px;white-space:nowrap}.factory-studio .header-actions{margin-left:auto;display:flex;gap:9px;align-items:center}.factory-studio .icon-button{width:30px;height:30px;flex:none;display:inline-flex;align-items:center;justify-content:center;border-radius:4px;background:transparent;color:#aeb3bc;padding:0}.factory-studio .icon-button:hover:not(:disabled){background:#2a2d33;color:#fff}.factory-studio .icon-button.active{background:#363031;color:#cdff49}.factory-studio .save-button{height:33px;padding:0 12px;display:flex;align-items:center;gap:8px;border-radius:5px;background:var(--accent);color:#191412;font-size:12px;font-weight:650}.factory-studio .save-button:hover{background:#ff8178}.factory-studio .workspace{display:flex;flex:1;min-height:0;min-width:0}.factory-studio .chat-pane{width:324px;flex:none;display:flex;flex-direction:column;background:var(--panel);border-right:1px solid var(--line);min-height:0}.factory-studio .panel-heading{height:52px;flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 18px;border-bottom:1px solid #26292e}.factory-studio .panel-heading>div{display:flex;align-items:center;gap:9px;color:var(--muted)}.factory-studio .panel-heading h2{font-size:12px;font-weight:600;color:var(--text)}.factory-studio .conversation-meta{display:flex;gap:7px;align-items:center;font-size:10px;color:#a1a7b0;padding:17px 21px 5px}.factory-studio .conversation-meta>span:last-child{margin-left:auto;color:#989fa9}.factory-studio .status-dot{height:5px;width:5px;border-radius:50%;background:#97cab7;display:inline-block;flex:none}.factory-studio .messages{flex:1;overflow-y:auto;min-height:0;padding:11px 21px 24px}.factory-studio .message{margin-bottom:25px;min-width:0}.factory-studio .message-author{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:600;margin-bottom:9px;color:#c6cbd2}.factory-studio .message-author>svg{color:var(--accent)}.factory-studio .avatar{width:20px;height:20px;background:#3c3736;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:10px}.factory-studio .message p{font-size:12px;line-height:1.75;color:#ced1d6;overflow-wrap:anywhere}.factory-studio .user p{background:#25272d;padding:12px 13px;border-radius:5px;line-height:1.7}.factory-studio .result-card{width:100%;margin-top:13px;display:block;position:relative;overflow:hidden;text-align:left;background:#22252a;border-radius:6px;padding:0;border:1px solid #383c43}.factory-studio .result-card>img{width:100%;height:142px;object-fit:cover;display:block}.factory-studio .result-play{position:absolute;left:13px;top:98px;border-radius:50%;height:30px;width:30px;display:flex;align-items:center;justify-content:center;background:#15181de6;color:#fff}.factory-studio .result-caption{display:flex;flex-direction:column;gap:5px;padding:12px}.factory-studio .result-caption strong{font-size:12px;font-weight:550}.factory-studio .result-caption>span{display:flex;align-items:center;gap:4px;font-size:10px;color:var(--ready)}.factory-studio .result-caption .small-separator{color:#87908d;margin:0 3px}.factory-studio .result-card>svg{position:absolute;right:12px;bottom:20px;color:#aab2bc}.factory-studio .result-card:hover{border-color:#616971}.factory-studio .result-provenance{font-size:9px;color:#a1a7b0;margin-top:8px}.factory-studio .composer-area{flex:none;padding:0 16px 16px;background:var(--panel)}.factory-studio .context-line{display:flex;align-items:center;gap:7px;font-size:10px;color:#bdc3cd;height:37px}.factory-studio .context-line img{height:21px;width:21px;border-radius:50%;object-fit:cover}.factory-studio .context-divider{height:12px;width:1px;background:#3e424a;margin:0 3px}.factory-studio .context-line button{margin-left:auto;display:flex;align-items:center;background:transparent;color:#adb2bb}.factory-studio .composer{border:1px solid #464951;border-radius:7px;background:#1c1e23;transition:border-color .15s}.factory-studio .composer:focus-within{border-color:#a5726e}.factory-studio .composer textarea{width:100%;resize:none;background:transparent;border:0;padding:12px 12px 2px;color:var(--text);font-size:12px;line-height:1.6;outline:none}.factory-studio .composer textarea::placeholder{color:#a7abb4}.factory-studio .composer-toolbar{display:flex;align-items:center;gap:7px;padding:3px 8px 8px}.factory-studio .mode-switch{display:flex;background:#121416;border-radius:4px;padding:2px}.factory-studio .mode-switch button{background:transparent;color:#a7adb7;font-size:10px;padding:5px 7px;border-radius:3px}.factory-studio .mode-switch .chosen{background:#363940;color:#e6e8eb}.factory-studio .send{height:29px;width:29px;background:var(--accent);color:#211714;border-radius:4px;margin-left:auto}.factory-studio .composer-note,.factory-studio .send{display:flex;align-items:center;justify-content:center}.factory-studio .composer-note{gap:6px;color:#a0a8b3;font-size:9px;margin-top:10px}.factory-studio .composer-note .status-dot{background:#b3a68a;width:4px;height:4px}.factory-studio .job-status{display:flex;align-items:center;gap:8px;margin-top:12px;min-height:34px;font-size:10px;color:#cec1a6}.factory-studio .job-status time{margin-left:auto;color:#a9a19a;font-variant-numeric:tabular-nums}.factory-studio .pixel-loader{width:14px;display:grid;grid-template-columns:repeat(3,3px);gap:2px}.factory-studio .pixel-loader i{display:block;width:3px;height:3px;background:#f1cab0;animation:studio-pixel .85s ease-in-out infinite}.factory-studio .editor{flex:1;min-width:0;display:flex;flex-direction:column;background:#111214}.factory-studio .projectbar{height:52px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 17px;gap:12px;border-bottom:1px solid #282b30}.factory-studio .project-name{display:flex;align-items:center;gap:9px;min-width:0}.factory-studio .project-name>input{width:140px;min-width:0;background:transparent;color:var(--text);border:0;font-size:12px;font-weight:550;padding:5px 0}.factory-studio .saved-state{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:9px;color:#a1a8af}.factory-studio .saved-state svg{color:#a4baa9}.factory-studio .project-actions{display:flex;align-items:center;gap:3px}.factory-studio .toolbar-divider{height:17px;width:1px;background:var(--line);margin:0 8px}.factory-studio .editor-top{flex:1;min-height:0;display:flex;min-width:0}.factory-studio .viewer{min-width:0;flex:1;position:relative;display:flex;flex-direction:column}.factory-studio .viewer-heading{height:46px;flex:none;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 21px;color:#a7acb6;font-size:10px}.factory-studio .viewer-heading>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;align-items:center;gap:6px}.factory-studio .viewer-heading>div{display:flex;align-items:center;gap:8px}.factory-studio .viewer-heading select{background:#1f2227;border:1px solid #3b4048;border-radius:4px;padding:4px 6px;font-size:10px;min-height:27px;color:#d1d5db}.factory-studio .stage-space{flex:1;min-height:0;padding:4px 28px 12px}.factory-studio .media-stage,.factory-studio .stage-space{display:flex;align-items:center;justify-content:center;overflow:hidden}.factory-studio .media-stage{max-height:100%;max-width:100%;position:relative;background:#090a0c;border-radius:3px}.factory-studio .ratio-16-9{aspect-ratio:16/9;width:100%;max-width:calc((100dvh - 430px) * 1.7778)}.factory-studio .ratio-9-16{aspect-ratio:9/16;height:100%;width:auto;max-height:100%}.factory-studio .ratio-1-1{aspect-ratio:1;height:100%;width:auto}.factory-studio .media-stage video,.factory-studio .media-stage>img{width:100%;height:100%;object-fit:contain;display:block;min-height:0}.factory-studio .stage-label{position:absolute;top:12px;left:12px;font-size:9px;background:rgba(13,15,18,.8);color:#e5e7eb;padding:5px 7px;border-radius:3px;pointer-events:none}.factory-studio .stage-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#141619c9;color:white;border:1px solid #ffffff33;backdrop-filter:blur(4px);border-radius:50%;width:52px;height:52px;display:flex;align-items:center;justify-content:center;padding-left:4px}.factory-studio .stage-play:hover{background:#22252ce6}.factory-studio .video-text{position:absolute;bottom:10%;left:5%;right:5%;background:#090a0caa;text-align:center;color:white;font-size:18px;font-weight:600;padding:10px 12px;border-radius:3px;overflow-wrap:anywhere;pointer-events:none}.factory-studio .player-controls{height:43px;flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 20px}.factory-studio .player-left{display:flex;align-items:center;gap:4px}.factory-studio .timecode{font-size:10px;font-variant-numeric:tabular-nums;color:#e3e5e8;margin-left:8px;white-space:nowrap}.factory-studio .timecode span{color:#9ba1ac;margin-left:4px}.factory-studio .compare-switch{display:flex;background:#202228;border-radius:4px;padding:2px}.factory-studio .compare-switch button{font-size:9px;color:#b1b7c1;padding:5px 7px;background:transparent;border-radius:3px}.factory-studio .compare-switch .selected{background:#3a3d45;color:#f2f3f5}.factory-studio .player-scrub{margin:0 21px 13px;height:8px;flex:none;width:calc(100% - 42px)}.factory-studio .inspector{width:252px;flex:none;display:flex;flex-direction:column;min-height:0;border-left:1px solid var(--line);background:#17191c}.factory-studio .inspector .panel-heading{height:46px;padding:0 16px}.factory-studio .inspector-scroll{padding:16px;overflow-y:auto;min-height:0}.factory-studio .selected-clip{display:flex;align-items:center;gap:9px;margin-bottom:5px}.factory-studio .selected-clip img{width:40px;height:40px;object-fit:cover;border-radius:4px}.factory-studio .selected-clip>div{min-width:0;display:flex;flex-direction:column;gap:5px}.factory-studio .selected-clip strong{font-size:10px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.factory-studio .selected-clip span{font-size:9px;color:var(--muted)}.factory-studio .setting-section{padding:18px 0;border-bottom:1px solid #2b2e34}.factory-studio .setting-section:last-child{border:0}.factory-studio .setting-section h3{font-size:11px;font-weight:600;margin-bottom:15px;display:flex;align-items:center;justify-content:space-between}.factory-studio .setting-section h3>.icon-button{width:20px;height:18px}.factory-studio .setting-section h3>svg{color:var(--muted)}.factory-studio .range-field{display:block;margin:13px 0 0;font-size:10px;color:#b7bdc7}.factory-studio .range-field>span{display:flex;justify-content:space-between;gap:10px}.factory-studio .range-field output{color:#dde0e5;font-variant-numeric:tabular-nums}.factory-studio .range-field input{display:block;width:100%;margin:7px 0 0;height:15px}.factory-studio .speed-presets{display:flex;gap:5px;margin-top:12px}.factory-studio .speed-presets button{font-size:10px;border-radius:4px;background:#26292f;color:#b9c0ca;flex:1;height:26px}.factory-studio .speed-presets button.selected{background:#3c3334;color:#ffb1a9}.factory-studio .look-presets{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.factory-studio .look-presets button{background:transparent;font-size:9px;color:#c7ccd5;display:flex;flex-direction:column;align-items:center;gap:7px;padding:0}.factory-studio .look-swatch{width:100%;aspect-ratio:1.7;display:block;border-radius:3px;background-image:none;background-size:cover;background-position:50%}.factory-studio .look-swatch.warm{filter:brightness(1.08) contrast(.96) saturate(1.15)}.factory-studio .look-swatch.cinema{filter:brightness(.93) contrast(1.22) saturate(.75)}.factory-studio .trim-inputs{display:flex;gap:10px}.factory-studio .trim-inputs label{display:block;width:50%;font-size:9px;color:#aab1bc}.factory-studio .text-input,.factory-studio .trim-inputs input{width:100%;margin-top:7px;background:#22252b;color:#e3e6ec;border:1px solid #41464e;border-radius:4px;padding:8px;font-size:11px}.factory-studio .text-input{margin:0}.factory-studio .text-input::placeholder{color:#aab0ba}.factory-studio .count{font-size:10px;color:var(--muted)}.factory-studio .upload-button{width:100%;display:flex;align-items:center;justify-content:center;gap:7px;font-size:11px;font-weight:550;padding:10px 9px;background:#292d34;border:1px solid #4b515b;border-radius:5px;margin-bottom:17px}.factory-studio .upload-button:hover{background:#363b44}.factory-studio .inline-error{font-size:11px;color:#ffb7af;line-height:1.6;margin:12px 0}.factory-studio .media-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 10px}.factory-studio .library-preview{padding:0;position:relative;display:block;width:100%;aspect-ratio:4/5;border-radius:4px;overflow:hidden;background:#252931}.factory-studio .library-preview>img,.factory-studio .library-preview>video{width:100%;height:100%;object-fit:cover}.factory-studio .library-preview>span{position:absolute;left:6px;bottom:6px;background:#14171cbb;border-radius:3px;display:flex;padding:4px;color:#e3e6eb}.factory-studio .library-label{display:flex;align-items:center;gap:3px;margin-top:3px}.factory-studio .library-label>span{min-width:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:9px;color:#e0e4ea}.factory-studio .library-label .icon-button{width:22px;height:24px;margin-left:auto}.factory-studio .library-item>small{font-size:9px;color:#a3aab5}.factory-studio .production-summary{display:flex;align-items:center;gap:6px;color:var(--ready);font-size:10px;margin-bottom:14px}.factory-studio .job-list-item{display:flex;align-items:center;gap:9px;background:#24272d;width:100%;padding:8px;text-align:left;border-radius:5px}.factory-studio .job-list-item img{width:49px;height:58px;object-fit:cover;border-radius:3px}.factory-studio .job-list-item>div{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}.factory-studio .job-list-item strong{font-size:10px;font-weight:550}.factory-studio .job-list-item span{font-size:9px;color:#b0b8c4}.factory-studio .job-list-item small{font-size:9px;color:var(--ready)}.factory-studio .job-list-item>svg{color:#b2b9c4}.factory-studio .job-details{margin-top:17px}.factory-studio .job-details dl{margin:0;padding:0}.factory-studio .job-details dl>div{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:13px;font-size:10px}.factory-studio .job-details dt{color:var(--muted)}.factory-studio .job-details dd{margin:0;color:#cfd5de}.factory-studio .job-details details{padding:14px 0;border-top:1px solid #343940;border-bottom:1px solid #343940}.factory-studio .job-details summary{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#bfc6d0;cursor:pointer;list-style:none}.factory-studio .job-details p{font-size:10px;color:#a9b2be;line-height:1.65;margin-top:10px}.factory-studio .reference-row{display:flex;align-items:center;gap:9px;margin-top:18px}.factory-studio .reference-row img{height:44px;width:37px;object-fit:cover;border-radius:4px}.factory-studio .reference-row>div{display:flex;flex-direction:column;gap:5px}.factory-studio .reference-row strong{font-size:10px}.factory-studio .reference-row span{font-size:9px;color:var(--muted)}.factory-studio .timeline-region{flex:none;min-width:0}.factory-studio .mobile-nav,.factory-studio.chat-collapsed .chat-pane{display:none}.factory-studio .toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:20;max-width:calc(100vw - 30px);background:#30363d;color:#eff2f6;padding:10px 10px 10px 15px;box-shadow:0 8px 24px #0007;border-radius:6px;display:flex;align-items:center;gap:15px;font-size:12px;line-height:1.5}.factory-studio .toast .icon-button{width:24px;height:24px}.factory-studio .drop-zone{position:absolute;inset:8px;background:#1c2227f5;border:1px dashed #d5988d;z-index:10;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;color:#f0d7cd;border-radius:6px}.factory-studio .drop-zone strong{font-size:15px}.factory-studio .drop-zone span{font-size:12px;color:#c0b8b4}.factory-studio .upload-status{position:fixed;right:22px;bottom:23px;z-index:20;display:flex;align-items:center;gap:8px;padding:12px;background:#302d28;color:#e8dbc1;border-radius:5px;font-size:12px}.factory-studio .spin{animation:studio-spin 1s linear infinite}@keyframes studio-pixel{0%,to{opacity:.15}50%{opacity:1}}@keyframes studio-spin{to{transform:rotate(1turn)}}@media(min-width:1700px){.factory-studio .chat-pane{width:360px}.factory-studio .inspector{width:280px}.factory-studio .messages{padding-left:25px;padding-right:25px}.factory-studio .message p{font-size:13px}.factory-studio .result-card>img{height:164px}.factory-studio .result-play{top:121px}}@media(max-width:1180px) and (min-width:761px){.factory-studio .chat-pane{width:282px}.factory-studio .inspector{width:220px}.factory-studio .topbar{padding:0 16px;gap:15px}.factory-studio .saved-state{display:none}.factory-studio .projectbar{padding:0 12px}.factory-studio .project-name>input{width:112px}.factory-studio .stage-space{padding-left:16px;padding-right:16px}.factory-studio .player-controls{padding:0 12px}.factory-studio .timecode{margin-left:2px;font-size:9px}.factory-studio .compare-switch button{padding:5px}.factory-studio .player-left{gap:0}.factory-studio .toolbar-divider{margin:0 4px}.factory-studio .viewer-heading{padding:0 15px}.factory-studio .messages{padding:11px 17px 20px}.factory-studio .conversation-meta{padding-left:17px;padding-right:17px}}@media(max-width:760px){.factory-studio.app{height:100dvh;min-height:0}.factory-studio .topbar{height:55px;padding:0 12px;gap:10px}.factory-studio .brand{gap:9px}.factory-studio .brand img{width:46px;height:25px}.factory-studio .brand-divider{height:15px}.factory-studio .brand strong{font-size:12px}.factory-studio .studio-word{display:none}.factory-studio .preview-badge{font-size:8px;padding:4px 5px}.factory-studio .header-actions{gap:3px}.factory-studio .header-actions>.icon-button{width:27px}.factory-studio .save-button{height:29px;width:29px;padding:0;justify-content:center}.factory-studio .save-button>span{display:none}.factory-studio .workspace{position:relative}.factory-studio .chat-pane{display:none;width:100%;border-right:0}.factory-studio .chat-pane.mobile-visible,.factory-studio.chat-collapsed .chat-pane.mobile-visible{display:flex}.factory-studio .editor.mobile-hidden{display:none}.factory-studio .projectbar{height:48px;padding:0 12px;gap:5px}.factory-studio .project-name>input{width:110px;font-size:11px}.factory-studio .saved-state{display:none}.factory-studio .project-actions{gap:0}.factory-studio .project-actions .icon-button{width:29px}.factory-studio .toolbar-divider{margin:0 4px}.factory-studio .editor-top{flex-direction:column;overflow-y:auto}.factory-studio .viewer{flex:1;min-height:0}.factory-studio .viewer-heading{height:42px;padding:0 14px;gap:8px}.factory-studio .viewer-heading>span{font-size:9px}.factory-studio .stage-space{padding:0 14px 12px}.factory-studio .ratio-16-9{max-width:100%;width:100%;max-height:100%}.factory-studio .ratio-9-16{height:100%;width:auto}.factory-studio .ratio-1-1{height:auto;width:100%;max-width:min(100%,calc(100dvh - 320px))}.factory-studio .media-stage{border-radius:3px}.factory-studio .player-controls{padding:0 12px;height:47px;gap:6px}.factory-studio .player-left{gap:0}.factory-studio .timecode{margin-left:2px;font-size:9px}.factory-studio .compare-switch button{font-size:8px;padding:6px}.factory-studio .player-controls>.icon-button{width:25px}.factory-studio .stage-label{top:8px;left:8px;font-size:8px}.factory-studio .video-text{font-size:14px;padding:7px}.factory-studio .player-scrub{margin:0 15px 17px;width:calc(100% - 30px)}.factory-studio .timeline-region{display:none}.factory-studio .timeline-region.mobile-visible{display:block}.factory-studio .inspector{display:none;width:100%;flex:none;border-left:0;border-top:1px solid var(--line);overflow:visible}.factory-studio .inspector.mobile-visible{display:flex}.factory-studio .inspector-scroll{max-height:none;overflow:visible;padding:14px 18px}.factory-studio .inspector .panel-heading{height:42px;padding:0 18px}.factory-studio .selected-clip{display:none}.factory-studio .setting-section{padding:13px 0}.factory-studio .setting-section h3{margin-bottom:10px}.factory-studio .look-presets{grid-template-columns:repeat(3,1fr);gap:12px}.factory-studio .look-swatch{aspect-ratio:2.5}.factory-studio .range-field{margin-top:12px}.factory-studio .mobile-viewer-compact{height:230px;flex:none}.factory-studio .mobile-viewer-compact .viewer-heading{height:32px}.factory-studio .mobile-viewer-compact .stage-space{padding:0 18px 3px;min-height:120px}.factory-studio .mobile-viewer-compact .media-stage{max-height:100%;width:auto;height:100%}.factory-studio .mobile-viewer-compact .player-controls{height:36px}.factory-studio .mobile-viewer-compact .player-scrub{margin-bottom:9px}.factory-studio .mobile-viewer-compact .stage-label{display:none}.factory-studio .mobile-nav{display:flex;flex:none;height:61px;padding-bottom:env(safe-area-inset-bottom,0);border-top:1px solid #363a42;background:#17191d;z-index:5}.factory-studio .mobile-nav button{display:flex;align-items:center;justify-content:center;gap:7px;flex:1;background:transparent;color:#b0b8c5;font-size:10px}.factory-studio .mobile-nav .active{color:#ff9b93;background:#302728}.factory-studio .messages{padding:17px 22px 20px}.factory-studio .conversation-meta{padding:16px 22px 0}.factory-studio .message p{font-size:13px}.factory-studio .result-card{max-width:380px}.factory-studio .result-card>img{height:164px}.factory-studio .result-play{top:120px}.factory-studio .composer-area{padding:0 18px 13px}.factory-studio .composer textarea{font-size:13px}.factory-studio .composer-note{margin-top:8px}.factory-studio .toast{bottom:75px;font-size:11px;width:max-content}.factory-studio .upload-status{bottom:76px;right:12px}.factory-studio .media-grid{grid-template-columns:repeat(3,1fr)}.factory-studio .library-label>span{font-size:10px}.factory-studio .production-summary{margin-top:2px}.factory-studio .reference-row{margin-bottom:12px}.factory-studio .chat-pane .panel-heading>.icon-button{display:none}.factory-studio .timeline-region .timeline{height:180px}.factory-studio .timeline-region .timeline-scroll{height:140px}}@media(max-height:720px) and (min-width:761px){.factory-studio .topbar{height:52px}.factory-studio .projectbar{height:45px}.factory-studio .viewer-heading{height:35px}.factory-studio .timeline{height:185px}.factory-studio .timeline-scroll{height:139px}.factory-studio .ratio-16-9{max-width:calc((100dvh - 380px) * 1.7778)}.factory-studio .result-card>img{height:112px}.factory-studio .result-play{top:70px}.factory-studio .messages{padding-top:8px}.factory-studio .message{margin-bottom:16px}}@media(prefers-reduced-motion:reduce){.factory-studio *,.factory-studio :after,.factory-studio :before{animation:none!important;transition:none!important;scroll-behavior:auto!important}}.factory-studio .timeline{height:207px;min-width:0;flex-shrink:0;background:var(--surface,#181a1d);border-top:1px solid var(--line,#303338);color:var(--text,#f1f2f3);font-size:12px;letter-spacing:0;overflow:hidden}.factory-studio .timeline-toolbar{height:45px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 16px;border-bottom:1px solid var(--line,#303338)}.factory-studio .timeline-toolbar-main{display:flex;align-items:center;gap:5px;min-width:0}.factory-studio .timeline-heading{font-size:12px;font-weight:650;margin-right:10px}.factory-studio .timeline-duration{font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap;margin-right:7px;color:var(--text,#f1f2f3)}.factory-studio .timeline-duration span{color:var(--muted,#a5a9b0)}.factory-studio .timeline-divider{display:block;width:1px;height:17px;background:var(--line,#303338);margin:0 5px;flex:none}.factory-studio .timeline-tool{display:inline-flex;align-items:center;justify-content:center;flex:none;width:29px;height:29px;padding:0;border:0;border-radius:4px;background:transparent;color:var(--muted,#a5a9b0);cursor:pointer}.factory-studio .timeline-tool:hover:not(:disabled){background:#292c31;color:var(--text,#f1f2f3)}.factory-studio .timeline-tool:disabled{opacity:.3;cursor:default}.factory-studio .timeline-clip:focus-visible,.factory-studio .timeline-ruler:focus-visible,.factory-studio .timeline-tool:focus-visible{outline:2px solid var(--accent,#cdff49);outline-offset:2px}.factory-studio .timeline-zoom{display:flex;align-items:center;gap:8px;color:var(--muted,#a5a9b0)}.factory-studio .timeline-zoom input{width:76px;height:22px;margin:0;accent-color:var(--accent,#cdff49);cursor:pointer}.factory-studio .timeline-scroll{height:161px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#43464d transparent}.factory-studio .timeline-scroll::-webkit-scrollbar{height:6px}.factory-studio .timeline-scroll::-webkit-scrollbar-thumb{background:#43464d;border-radius:4px}.factory-studio .timeline-content{position:relative;min-width:100%;height:153px}.factory-studio .timeline-track-label{position:absolute;left:0;width:59px;display:flex;justify-content:center;align-items:center;color:#a5a9b0;border-right:1px solid var(--line,#303338)}.factory-studio .timeline-ruler-label{top:0;height:28px;font-size:10px;font-variant-numeric:tabular-nums}.factory-studio .timeline-video-label{top:28px;height:70px}.factory-studio .timeline-audio-label{top:98px;height:40px}.factory-studio .timeline-sequence{position:relative;left:60px;height:145px}.factory-studio .timeline-ruler{position:relative;height:28px;cursor:crosshair;border-bottom:1px solid #282b2f}.factory-studio .timeline-tick{position:absolute;top:6px;font-size:9px;color:#a5a9b0;font-variant-numeric:tabular-nums;white-space:nowrap;pointer-events:none;transform:translateX(-50%)}.factory-studio .timeline-tick:first-child{transform:none}.factory-studio .timeline-tick:after{content:"";position:absolute;left:50%;top:15px;height:6px;width:1px;background:#42464c}.factory-studio .timeline-tick:first-child:after{left:0}.factory-studio .timeline-video-track{position:relative;height:70px;border-bottom:1px solid #282b2f;cursor:crosshair}.factory-studio .timeline-clip{position:absolute;top:7px;height:57px;border:1px solid #62666e;border-radius:4px;overflow:hidden;cursor:grab;background:#23262b;user-select:none;touch-action:pan-x;box-sizing:border-box}.factory-studio .timeline-clip:active{cursor:grabbing}.factory-studio .timeline-clip-selected{border:2px solid var(--accent,#cdff49)}.factory-studio .timeline-clip-drop{outline:2px solid #d5d9df;outline-offset:2px}.factory-studio .timeline-clip-dragging{opacity:.45}.factory-studio .timeline-filmstrip{height:100%;display:flex;overflow:hidden;pointer-events:none}.factory-studio .timeline-filmstrip img{width:52px;height:100%;flex:none;object-fit:cover;opacity:.64}.factory-studio .timeline-clip-caption{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;gap:4px;height:20px;padding:0 6px;background:rgb(9 11 14/82%);color:#f0f1f3;font-size:9px;pointer-events:none}.factory-studio .timeline-clip-caption>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1}.factory-studio .timeline-clip-caption>svg{flex:none}.factory-studio .timeline-clip-caption small{font-size:9px;font-variant-numeric:tabular-nums;white-space:nowrap}.factory-studio .timeline-edge{position:absolute;top:16px;width:2px;height:14px;background:#fff;border-radius:2px;pointer-events:none}.factory-studio .timeline-edge-start{left:3px}.factory-studio .timeline-edge-end{right:3px}.factory-studio .timeline-audio-track{position:relative;height:40px;border-bottom:1px solid #282b2f}.factory-studio .timeline-audio-segment{position:absolute;top:6px;height:27px;display:flex;align-items:center;gap:6px;overflow:hidden;background:#253a36;color:#a6d7c7;border:1px solid #36544c;border-radius:3px;padding:0 8px;box-sizing:border-box;font-size:10px;white-space:nowrap}.factory-studio .timeline-audio-segment>svg{flex:none}.factory-studio .timeline-audio-segment>span{overflow:hidden;text-overflow:ellipsis}.factory-studio .timeline-playhead{position:absolute;top:19px;bottom:7px;width:1px;background:var(--accent,#cdff49);pointer-events:none;z-index:2}.factory-studio .timeline-playhead>span{position:absolute;left:-4px;top:0;width:9px;height:9px;clip-path:polygon(0 0,100% 0,100% 55%,50% 100%,0 55%);background:var(--accent,#cdff49)}@media(max-width:700px){.factory-studio .timeline{height:193px}.factory-studio .timeline-toolbar{height:39px;padding:0 10px;gap:5px}.factory-studio .timeline-heading{margin-right:4px}.factory-studio .timeline-duration{margin-right:0;font-size:10px}.factory-studio .timeline-toolbar-main{gap:1px}.factory-studio .timeline-tool{width:27px;height:29px}.factory-studio .timeline-divider{margin:0 3px}.factory-studio .timeline-zoom{gap:4px}.factory-studio .timeline-zoom input{width:48px}.factory-studio .timeline-zoom>svg{display:none}.factory-studio .timeline-scroll{height:153px}.factory-studio .timeline-track-label{width:39px}.factory-studio .timeline-sequence{left:40px}.factory-studio .timeline-content{margin-right:-20px}}@media(prefers-reduced-motion:reduce){.factory-studio .timeline *{scroll-behavior:auto}}.factory-studio .media-stage.studio-fit-crop>img:not(.studio-overlay),.factory-studio .media-stage.studio-fit-crop>video{object-fit:cover;object-position:center}.factory-studio .media-stage.studio-fit-pad>img:not(.studio-overlay),.factory-studio .media-stage.studio-fit-pad>video{object-fit:contain;object-position:center;background:#000}.factory-studio .setting-section select{max-width:100%;width:100%;background:#202329;color:#eee;padding:8px;border:1px solid #444;border-radius:6px}.factory-studio .setting-section small{display:block;line-height:1.5;margin-top:6px;color:#b0b8c5}.factory-studio .timeline-rhythm-tool{width:auto;min-width:max-content;padding:0 8px;font-size:11px;white-space:nowrap}@media(max-width:700px){.factory-studio .timeline-toolbar{overflow-x:auto}.factory-studio .timeline-toolbar-main,.factory-studio .timeline-zoom{flex-shrink:0}}.factory-studio.app{height:var(--factory-studio-vh,100dvh)}.factory-studio .factory-advanced,.factory-studio .factory-chat,.factory-studio .factory-jobs{--bg:#141619;--bg-2:#1c1e23;--bg-3:#25272d;--bg-4:#363940;--line:#303338;--line-2:#464951;--accent:#cdff49;--accent-2:#cdff49;--fg:#f1f2f3;--fg-2:#ced1d6;--fg-3:#a5a9b0;--ok:#9ad7bf;--warn:#cec1a6;--font:"Segoe UI",Arial,sans-serif;font:12px/1.75 Segoe UI,Arial,sans-serif;letter-spacing:0}.factory-studio .factory-chat{flex:1;min-height:0;overflow:hidden}.factory-studio .factory-chat .chat,.factory-studio .factory-chat .chat.first{display:flex;flex:1;min-height:0;border:0}.factory-studio .factory-chat .chat.first .hero,.factory-studio .factory-chat .chead,.factory-studio .factory-chat .hero,.factory-studio .factory-chat .quick-setup{display:none}.factory-studio .factory-chat .chat.first .scroll,.factory-studio .factory-chat .scroll{display:block;flex:1;min-height:0;padding:22px 21px 24px}.factory-studio .factory-chat .col{gap:25px;width:100%;max-width:none}.factory-studio .factory-chat .user{max-width:none;align-self:stretch;font-size:12px;line-height:1.7;background:#25272d;padding:12px 13px;border:0;border-radius:5px;color:#ced1d6;overflow-wrap:anywhere;white-space:pre-wrap}.factory-studio .factory-chat .message.user{background:transparent;padding:0;margin:0;white-space:normal}.factory-studio .factory-chat .user-text{background:#25272d;padding:12px 13px;border-radius:5px;white-space:pre-wrap}.factory-studio .factory-chat .asst{font-size:12px;color:#ced1d6;min-width:0}.factory-studio .factory-chat .asst+.asst{margin-top:-12px}.factory-studio .factory-chat .asst+.asst>.message-author{display:none}.factory-studio .factory-chat .reply{font:12px/1.75 Segoe UI,Arial,sans-serif;color:#ced1d6}.factory-studio .factory-chat .conversation-meta{height:34px;flex:none}.factory-studio .factory-chat .scroll{padding-top:11px}.factory-studio .factory-chat .result-card .result-play>svg{width:16px;height:16px}.factory-studio .factory-chat .result-caption strong{font:550 12px/1.4 Segoe UI,Arial,sans-serif}.factory-studio .factory-chat .result-caption>span{font:10px/1.4 Segoe UI,Arial,sans-serif;color:#9ad7bf}@media(max-width:760px){.factory-studio .factory-chat .reply{font-size:13px}.factory-studio .factory-chat .result-card>video{height:164px}}.factory-studio .factory-chat .card{border:1px solid #383c43;background:#1c1e23;border-radius:6px;margin:10px 0;overflow:hidden}.factory-studio .factory-chat .card h3{font-size:11px;padding:9px 11px;flex-wrap:wrap;line-height:1.7}.factory-studio .factory-chat .card .body{padding:11px}.factory-studio .factory-chat .card .tag{font-size:9px;white-space:normal}.factory-studio .factory-chat .btn{font-size:10px;padding:5px 8px;border-radius:4px;border:1px solid #464951;background:#25272d;min-height:28px}.factory-studio .factory-chat .btn.pri{background:#cdff49;color:#0f0f0f;border-color:#cdff49}.factory-studio .factory-chat .row{gap:6px;flex-wrap:wrap}.factory-studio .factory-chat .cost{font-size:10px}.factory-studio .factory-chat .chat.first .composer,.factory-studio .factory-chat .composer{display:block;flex:none;padding:0 16px 16px;background:#141619;border:0;border-radius:0}.factory-studio .factory-chat .cwrap{display:flex;gap:0}.factory-studio .factory-chat .frame{background:#464951;padding:1px;border-radius:7px;animation:none}.factory-studio .factory-chat .box{padding:0;gap:0;background:#1c1e23;border-radius:6px;overflow:visible;min-width:0}.factory-studio .factory-chat .context-summary{padding:8px 10px;border:0;gap:0 6px;font-size:10px;min-height:37px}.factory-studio .factory-chat .context-character{font-size:10px;grid-column:auto}.factory-studio .factory-chat .context-character img{width:21px;height:21px}.factory-studio .factory-chat .context-model{font-size:10px;min-height:22px}.factory-studio .factory-chat .context-price{font:9px/1.4 Segoe UI,Arial,sans-serif;max-width:120px}.factory-studio .factory-chat .cwrap>.context-summary{display:flex;gap:7px;height:37px;flex:none;padding:0;font-size:10px;min-width:0}.factory-studio .factory-chat .cwrap>.context-summary .context-model{flex:1;min-width:0;overflow:hidden;gap:5px}.factory-studio .factory-chat .cwrap>.context-summary .context-model-name{max-width:105px}.factory-studio .factory-chat .cwrap>.context-summary .context-price{max-width:60px;font-size:9px}.factory-studio .factory-chat .result-card>video{width:100%;height:142px;object-fit:cover;display:block}.factory-studio .saved-state{background:transparent;padding:0;font-family:inherit}.factory-studio .factory-chat textarea{min-height:66px;width:100%;background:transparent;padding:12px 12px 2px;font:12px/1.6 Segoe UI,Arial,sans-serif;border:0;resize:none;color:#f1f2f3}.factory-studio .factory-chat .tools{display:flex;align-items:center;gap:4px;flex-wrap:nowrap;padding:3px 8px 8px}.factory-studio .factory-chat .tools .ib{display:inline-flex;width:27px;height:29px;align-items:center;justify-content:center;padding:0;color:#aeb3bc}.factory-studio .factory-chat .tools svg{width:17px;height:17px}.factory-studio .factory-chat .tools .more{display:inline-flex;order:3}.factory-studio .factory-chat .tools .impw,.factory-studio .factory-chat .tools .model-btn{display:none}.factory-studio .factory-chat .tools .mode{display:flex;background:#121416;border-radius:4px;padding:2px;gap:0}.factory-studio .factory-chat .mode button{font-size:10px;padding:5px 7px;border-radius:3px;color:#a7adb7}.factory-studio .factory-chat .mode button.on{background:#363940;color:#e6e8eb}.factory-studio .factory-chat .tools .send{display:flex;order:4;margin-left:auto;height:29px;width:29px;min-width:29px;padding:0;background:#cdff49;color:#0f0f0f;border-radius:4px;align-items:center;justify-content:center}.factory-studio .factory-chat .foot{font:9px/1.5 Segoe UI,Arial,sans-serif;letter-spacing:0;text-transform:none;text-align:center;color:#a0a8b3;margin-top:10px}.factory-studio .factory-chat .partial:empty{display:none}.factory-studio .factory-chat .partial{font-size:10px;padding:0 8px}.factory-studio .factory-chat .outs img,.factory-studio .factory-chat .outs video{width:100%;max-height:180px;object-fit:contain}.factory-studio .factory-chat .menu{z-index:45;background:#1c1e23;max-width:290px}.factory-studio .factory-chat .menu button{font-size:11px}.factory-studio .factory-advanced{height:auto;display:contents}.factory-studio .factory-advanced>.panel{display:none}.factory-studio .factory-advanced>.panel.open{display:block;position:fixed;inset:62px 0 0 auto;width:min(420px,100vw);height:auto;max-height:calc(100dvh - 62px);overflow:auto;z-index:65;background:#181a1d;border-left:1px solid #464951;transform:none;visibility:visible}.factory-studio .factory-advanced>.ovl.on{display:block;position:fixed;inset:0;z-index:60;background:#0008}.factory-studio .factory-advanced>.panel .ph{position:sticky;top:0;background:#181a1d;z-index:1}.factory-studio .factory-jobs{height:auto}.factory-studio .factory-jobs .watch{display:flex;flex-direction:column;padding:0;gap:15px;overflow:visible}.factory-studio .factory-jobs .wi{width:100%;height:auto;min-height:0;max-width:100%;background:#22252a;border:1px solid #383c43;border-radius:6px;padding:0;overflow:hidden}.factory-studio .factory-jobs .wm{height:auto;aspect-ratio:16/9;min-height:0}.factory-studio .factory-jobs .wm img,.factory-studio .factory-jobs .wm video{height:100%;width:100%;object-fit:contain}.factory-studio .factory-jobs .wa,.factory-studio .factory-jobs .wt{padding:10px;flex-wrap:wrap;font-size:10px}.factory-studio .factory-jobs .wa a,.factory-studio .factory-jobs .wa button{font-size:10px;padding:5px;min-height:28px}.factory-studio .empty-media{padding:35px;background:transparent;color:#a5a9b0;font-size:12px;min-height:160px}.factory-studio .studio-error,.factory-studio .studio-exports{position:fixed;right:16px;bottom:16px;z-index:70;padding:10px 14px;background:#25272d;border:1px solid #464951;border-radius:6px;font-size:12px;max-width:min(420px,calc(100vw - 32px))}.factory-studio .studio-error{bottom:65px;color:#ffaaa3}.factory-studio .studio-error button,.factory-studio .studio-quote-error button,.factory-studio .studio-wait button{background:transparent;padding:4px 8px;text-decoration:underline;color:inherit}.factory-studio .studio-wait{color:#cec1a6;font-size:10px;padding:8px 0}.factory-studio .studio-quote-error{color:#ffaaa3;font-size:10px;padding:8px 0}.factory-studio .project-picker{position:fixed;inset:80px 20px auto auto;z-index:70;width:min(360px,calc(100vw - 40px));max-height:70dvh;overflow:auto;background:#181a1d;border:1px solid #464951;border-radius:6px}.factory-studio.project-picker-list{background:transparent}.factory-studio .project-picker>a,.factory-studio .project-picker>button,.factory-studio .project-picker>p,.factory-studio.project-picker-list>a,.factory-studio.project-picker-list>button,.factory-studio.project-picker-list>p{display:block;width:100%;padding:14px 18px;text-align:left;background:transparent;font-size:12px}@media(max-width:760px){.factory-studio .factory-chat .chat.first .scroll,.factory-studio .factory-chat .scroll{padding:22px}.factory-studio .factory-chat .asst,.factory-studio .factory-chat .user,.factory-studio .factory-chat textarea{font-size:13px}.factory-studio .factory-chat .chat.first .composer,.factory-studio .factory-chat .composer{padding:0 18px 13px}.factory-studio .studio-exports{bottom:75px}.factory-studio .studio-error{bottom:120px}.factory-studio .factory-chat[data-editing=true] .chat{display:flex}.factory-studio .factory-chat .chat.first .scroll{display:block}}.factory-studio .factory-chat .fc-gallery-btn{display:inline-flex;align-items:center;gap:5px;min-height:32px;padding:0 10px;margin-left:4px;border:1px solid #2c2f34;border-radius:999px;background:transparent;color:#d6d9de;font-size:11px;font-weight:600}.factory-studio .factory-chat .fc-gallery-btn[aria-expanded=true]{background:#ededed;color:#111;border-color:#ededed}.factory-studio .factory-chat .fc-gallery-btn svg{width:14px;height:14px}@media (min-width:981px){body:has(.aif-gal-side) .factory-chat{padding-right:min(360px,34vw)}}.factory-studio .aif-operation{flex:1;min-height:0;overflow-y:auto;padding:12px 16px}.factory-studio .aif-operation:has(>.us-root){padding:0;overflow:hidden;display:flex;flex-direction:column}.factory-studio .aif-operation>.us-root{flex:1}