:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif;color:#222826;background:#f6f7f8;font-size:14px;letter-spacing:0;--border:#e1e5e7;--muted:#747c80;--accent:#16705b}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button,a,summary{touch-action:manipulation}[hidden]{display:none!important}.icon-definitions{position:absolute;width:0;height:0;overflow:hidden}.icon{display:block;width:18px;height:18px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.video-page{max-width:1520px;margin:0 auto;padding:0 32px 40px}.video-header{min-height:118px;display:flex;justify-content:space-between;align-items:center;gap:24px;padding:20px 0;border-bottom:1px solid var(--border)}.video-heading{min-width:0}.video-heading h1{margin:10px 0 0;font-size:26px;line-height:1.3;font-weight:700}.back-link{display:inline-flex;align-items:center;gap:7px;color:#6b7478;text-decoration:none;font-size:12px}.back-link:hover{color:var(--accent)}.back-link .icon{width:14px;height:14px}
.video-account{width:360px;max-width:100%;flex-shrink:0}.video-account .auth-card{padding:0;border:0;border-radius:0;background:none;gap:6px;position:relative;padding-top:1px}.video-account .auth-card-row{gap:12px}.video-account .auth-card-row:first-child small{display:none}.video-account .auth-card-row:first-child{position:absolute;right:0;top:0}.video-account .auth-card-row:nth-child(2){padding-right:55px}.video-account .auth-card strong{font-size:13px;color:#343d3b}.video-account .auth-card small{font-weight:500;letter-spacing:0}.video-account .auth-button{border-radius:5px;font-weight:600;background:#e9eeec;color:#34564b;min-height:26px}.video-account .auth-button.secondary{background:transparent;color:#7b8387}.video-account .auth-balance-row{padding-top:7px;margin-top:2px;gap:16px;border-top-color:var(--border)}.video-account .auth-balance-meta{display:flex;align-items:center;gap:10px}.video-account .auth-balance-value{font-size:16px;font-weight:650;letter-spacing:0;color:#263f36}.video-account #authBalancePrice,.video-account #authBalanceHint{display:none}.video-account .auth-balance-actions{flex-wrap:nowrap}
.video-layout{display:grid;grid-template-columns:390px minmax(0,1fr);align-items:start}.creation-panel{min-width:0;margin:0;padding:26px 28px 24px 0;border-right:1px solid var(--border)}.form-section{padding:0 0 18px;margin:0 0 20px;border:0;border-bottom:1px solid var(--border)}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 17px}.section-heading h2,.tasks-heading h2{margin:0;font-size:16px;line-height:1.5;font-weight:650}.section-heading h3{margin:0;font-size:13px;font-weight:650}.muted{color:var(--muted);font-size:12px;font-weight:400}.optional-label{color:#969da1;font-size:11px}.field{display:grid;gap:7px;min-width:0;margin:0 0 17px;color:#505957;font-size:12px;font-weight:600}.field:last-child{margin-bottom:0}.field-label{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.model-price{color:var(--accent);font-size:12px;white-space:nowrap;font-weight:600}.field input,.field select,.field textarea{width:100%;min-width:0;border:1px solid #d5dbde;border-radius:6px;padding:10px 11px;min-height:41px;font:inherit;font-size:13px;font-weight:400;color:#2e3633;background:#fff;outline:none}.field textarea{resize:vertical;line-height:1.7;min-height:80px;max-height:400px}.field #prompt{min-height:142px}.field textarea::placeholder{color:#a3a9ac}.field input:focus,.field select:focus,.field textarea:focus{border-color:#45967f;box-shadow:0 0 0 3px rgba(22,112,91,.09)}.field input:disabled,.field select:disabled{background:#eceff0;color:#737c79}.field-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}.field-grid .field{margin-bottom:15px}.duration-field{display:flex;align-items:center;justify-content:space-between;gap:14px}.duration-field input{width:90px;flex:0 0 90px}.duration-field>span{line-height:1.7}
.reference-section{padding-bottom:14px;margin-bottom:17px}.reference-section .section-heading{margin-bottom:14px}.upload-field{margin-bottom:10px;font-size:11px;font-weight:400;color:#818a8d}.upload-field input[type=file]{padding:7px;background:#fff;font-size:12px;color:#747e82;overflow:hidden}.upload-field input::file-selector-button{height:28px;margin:-1px 10px -1px -1px;padding:0 11px;border:0;border-radius:4px;color:#465c53;background:#ecf1ee;font:inherit;cursor:pointer}.upload-field input::file-selector-button:hover{background:#dfe9e3}.upload-status{display:block;color:#7d8588;font-size:11px;line-height:1.6;min-height:17px;font-weight:400;overflow-wrap:anywhere}.url-input{font-size:12px;color:#68746e}.url-input>summary{width:fit-content;cursor:pointer;padding:5px 0;line-height:1.5}.url-input[open]>summary{margin-bottom:8px}.url-input .field{margin-bottom:0;font-size:11px;font-weight:400}.reference-previews{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0;max-height:208px;overflow-y:auto}.reference-thumbnail{position:relative;aspect-ratio:1;min-width:0;border:1px solid var(--border);border-radius:5px;overflow:hidden;background:#fff}.reference-thumbnail img{width:100%;height:100%;object-fit:contain;display:block}.reference-thumbnail span{position:absolute;left:4px;bottom:4px;min-width:18px;padding:2px 4px;border-radius:3px;background:rgba(32,39,36,.75);color:#fff;font-size:10px;text-align:center}.form-footer{display:grid;gap:12px}.primary-button,.secondary-button,.cancel-button,.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:6px;min-height:37px;padding:9px 12px;font:inherit;font-size:12px;font-weight:600;cursor:pointer;text-decoration:none}.primary-button{width:100%;min-height:44px;background:var(--accent);color:#fff;font-size:13px}.primary-button:hover{background:#115c4a}.primary-button:disabled{opacity:.5;cursor:not-allowed}.secondary-button{border-color:#d9e1dd;background:#fff;color:#476c5a}.secondary-button:hover{background:#f2f6f3}.cancel-button{border-color:#e6d9d7;background:#fff;color:#a25b53}.cancel-button:hover{background:#fcf1ef}.icon-button{width:34px;height:34px;min-height:34px;padding:0;border-color:var(--border);background:#fff;color:#707b77}.icon-button:hover{color:var(--accent);border-color:#b3c6bc}.status{min-height:0;margin:0;color:#a14e42;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.status:empty{display:none}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #45967f;outline-offset:3px}
.tasks-panel{min-width:0;padding:26px 0 24px 28px}.tasks-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}.tasks-heading p{margin:4px 0 0}.tasks-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px;flex-wrap:wrap}.task-filters{display:inline-flex;gap:3px;padding:3px;background:#e9edee;border-radius:6px;max-width:100%}.task-filters button{border:0;background:transparent;color:#7a8382;padding:7px 12px;border-radius:4px;font-size:12px;line-height:18px;white-space:nowrap;cursor:pointer;min-width:58px}.task-filters button[aria-pressed=true]{color:#31594b;background:#fff;box-shadow:0 1px 3px #182b2412}.retention-label{font-size:11px;color:#969da1;white-space:nowrap}.tasks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}.empty{grid-column:1/-1;min-height:360px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;color:#9ba3a5;font-size:13px}.empty .icon{width:32px;height:32px;stroke-width:1.3;color:#aeb8b5}.task{min-width:0;background:#fff;border:1px solid var(--border);border-radius:8px;overflow:hidden}.task-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 15px 0}.task-model{min-width:0;font-size:13px;font-weight:650;overflow-wrap:anywhere}.task-status{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:500;color:#567968;white-space:nowrap;padding:4px 7px;background:#edf5ef;border-radius:4px}.task-status.active{background:#eef1fa;color:#6276a3}.task-status.failed{background:#fcf0ec;color:#aa6656}.task-status.expired{background:#f0f1f2;color:#858b8f}.task-status::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor;flex-shrink:0}.task-meta{display:flex;gap:7px 12px;flex-wrap:wrap;padding:0 15px;margin:8px 0 12px;color:#8b9394;font-size:11px;line-height:1.5}.task video,.task-preview-placeholder{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:16/9;max-height:340px;background:#1e2221;object-fit:contain}.task-preview-placeholder{flex-direction:column;gap:12px;background:#f3f5f5;color:#99a4a0;font-size:12px;border-top:1px solid #eef0f1;border-bottom:1px solid #eef0f1}.task-preview-placeholder .icon{width:30px;height:30px;stroke-width:1.4}.task-preview-placeholder.failed{color:#b69890;background:#fcf7f5}.task-prompt{padding:0 15px;margin:13px 0;font-size:11px;color:#848d89}.task-prompt summary{cursor:pointer;width:fit-content;line-height:1.5}.task-prompt p{margin:10px 0 0;color:#59635e;font-size:12px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto}.task-error{padding:0 15px;margin:12px 0;color:#a76256;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.task-actions{display:flex;justify-content:flex-end;gap:8px;margin:0 15px 14px}.task-actions .icon{width:14px;height:14px}.task-expiry{padding:0 15px;margin:0 0 14px;color:#939b98;font-size:10px;line-height:1.6}
@media(min-width:1600px){.video-page{padding-left:40px;padding-right:40px}.video-layout{grid-template-columns:420px minmax(0,1fr)}.creation-panel{padding-right:32px}.tasks-panel{padding-left:32px}}
@media(max-width:1199px){.video-page{padding:0 24px 32px}.video-layout{grid-template-columns:350px minmax(0,1fr)}.creation-panel{padding-right:24px}.tasks-panel{padding-left:24px}.tasks{grid-template-columns:minmax(0,1fr)}.task video,.task-preview-placeholder{max-height:400px}}
@media(max-width:850px){.video-page{padding:0 20px 28px}.video-header{gap:20px;padding:18px 0}.video-account{width:290px}.video-layout{grid-template-columns:310px minmax(0,1fr)}.creation-panel{padding-right:20px}.tasks-panel{padding-left:20px}.task-filters button{min-width:0;padding:6px 8px}.retention-label{display:none}.tasks-toolbar{margin-bottom:16px}}
@media(max-width:680px){.video-page{padding:0 16px 24px}.video-header{align-items:flex-start;gap:16px;flex-wrap:wrap}.video-heading h1{font-size:23px}.video-account{width:100%;margin-top:2px}.video-layout{grid-template-columns:minmax(0,1fr)}.creation-panel{padding:23px 0 24px;border-right:0;border-bottom:1px solid var(--border)}.tasks-panel{padding:24px 0 0}.form-section{margin-bottom:18px;padding-bottom:17px}.reference-previews{grid-template-columns:repeat(5,minmax(0,1fr))}.tasks-heading{margin-bottom:15px}.task-filters button{min-width:60px;padding:7px 11px}.retention-label{display:block}.empty{min-height:220px}.task video,.task-preview-placeholder{max-height:none}.task-actions .secondary-button,.task-actions .cancel-button{min-height:40px}.task-meta{font-size:12px}.field input,.field select,.field textarea{font-size:16px}.upload-field input[type=file]{font-size:12px}.video-account .auth-card-row:nth-child(2){padding-right:55px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.delete-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:37px;padding:9px 12px;border:1px solid #ead8d5;border-radius:6px;background:#fff;color:#a75449;font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.delete-button:hover{background:#fcf2f0;border-color:#dfbdb8}
.delete-button:disabled{opacity:.55;cursor:wait}
.delete-button .icon{width:14px;height:14px}
.video-retry-settings{margin-top:18px;padding:14px;border:1px solid var(--border);border-radius:7px;background:#f1f5f3}
.video-retry-toggle{display:flex;align-items:center;gap:9px;margin-bottom:14px;font-size:13px;font-weight:600;cursor:pointer}
.video-retry-toggle input{width:17px;height:17px;margin:0;accent-color:var(--accent);flex-shrink:0}
.video-retry-settings small{display:block;color:#747c80;font-size:11px;line-height:1.7}
.video-retry-settings p{line-height:1.7;margin:8px 0}
.task-retry-note{margin:12px 15px;padding:9px 10px;border-radius:5px;background:#edf5ef;color:#34564b;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
