:root{color-scheme:dark;--bg:#101311;--panel:#171b18;--border:#2b312c;--muted:#929b93;--text:#eaf0e9;--accent:#b8ed91;--dim:#67746b;--font:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.5 var(--font)}button,input,select{font:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer}button,a,select{outline-offset:4px}button:focus-visible,a:focus-visible,select:focus-visible{outline:2px solid var(--accent)}button:disabled{cursor:not-allowed;opacity:.4}a{color:inherit;text-decoration:none}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}.topbar{height:78px;display:flex;justify-content:space-between;align-items:center;padding:0 4.5%;border-bottom:1px solid var(--border)}.brand{display:flex;align-items:center;gap:11px}.brand-mark{width:34px;height:36px;background:var(--accent);color:#182015;border-radius:9px;display:grid;place-items:center}.brand-mark svg{width:25px;height:25px}.brand b{font-size:23px;font-weight:650;letter-spacing:-1px}.brand b span{font-weight:350;color:#b8c1b9}.brand-divider{height:20px;width:1px;background:#394039;margin:0 9px}.workspace-label{color:#a8b0a8;font-size:12px}.header-right{display:flex;align-items:center;gap:28px;font-size:12px;color:#a7b1a9}.local-label{display:flex;gap:8px;align-items:center}.local-label i,.status-dot,.info-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--accent)}.local-label i{box-shadow:0 0 10px #b8ed911f}.header-right a:hover{color:var(--accent)}main{max-width:1536px;margin:auto;padding:43px 4.5% 0}.intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:34px;gap:30px}.eyebrow{font-size:10px;letter-spacing:2.8px;color:#adc49e;display:flex;align-items:center;gap:9px}.eyebrow span{height:1px;width:20px;background:var(--accent)}h1{font-weight:550;font-size:35px;letter-spacing:-1px;line-height:1.4;margin:12px 0 10px}h1>span{color:var(--accent)}.intro p{color:var(--muted);margin:0;font-size:13px}.model-status{display:flex;align-items:center;gap:13px;border:1px solid var(--border);border-radius:9px;background:#161a16;padding:14px 16px;min-width:293px}.model-status strong{font-size:12px;font-weight:500}.model-status small{display:block;color:var(--dim);font-size:10px;margin-top:4px}.status-dot{background:#8b938a;width:7px;height:7px}.model-badge{font-size:9px;color:#a4b598;border:1px solid #384631;padding:2px 6px;border-radius:4px;margin-left:auto;letter-spacing:1px}.workspace{display:grid;grid-template-columns:335px minmax(0,1fr);gap:22px;align-items:start}.panel{border:1px solid var(--border);background:var(--panel);border-radius:13px;overflow:hidden}.section-heading{display:flex;align-items:center;gap:10px;height:65px;padding:0 23px;border-bottom:1px solid var(--border)}h2{font-size:14px;font-weight:550;margin:0;letter-spacing:.3px}.step{color:#7e8b7d;font:10px ui-monospace,monospace;border:1px solid #3b4339;width:23px;height:23px;border-radius:6px;display:grid;place-items:center}.tiny-label{margin-left:auto;color:#636f64;font:9px ui-monospace,monospace;letter-spacing:1.5px}form{padding:20px}.field-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-size:12px}.field-heading>span{color:#758174;font-size:10px}.dropzone{width:100%;background:#121613;border:1px dashed #46533f;border-radius:9px;display:flex;flex-direction:column;align-items:center;padding:22px 8px 19px;color:var(--text);transition:.15s}.dropzone:hover,.dropzone.dragover{border-color:var(--accent);background:#1e291c}.dropzone.selected{border-style:solid;border-color:#687e57;background:#192316}.upload-icon{width:38px;height:38px;display:grid;place-items:center;background:#242e21;border:1px solid #36422e;border-radius:10px;color:#bad6a7;margin-bottom:13px}.upload-icon svg{width:18px;height:18px}.dropzone strong{font-size:12px;font-weight:450;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dropzone>span:nth-of-type(2){font-size:10px;color:#6f7d70;margin-top:6px}.choose-file{font-size:10px;color:#c0cbbc;display:flex;gap:25px;align-items:center;margin-top:16px;border:1px solid #394334;background:#20271f;border-radius:5px;padding:5px 12px}.example-button{display:flex;align-items:center;gap:10px;color:#b0bab0;background:#1e241e;border:1px solid #303a2d;border-radius:7px;width:100%;text-align:left;padding:9px;margin-top:11px}.example-button:hover{border-color:#576f46}.example-thumb{width:40px;height:35px;border-radius:5px;background:#354532 url('/static/example.jpg') center/cover;display:grid;place-items:center;color:white}.example-thumb svg{width:15px;height:15px;fill:#ffffffe0;filter:drop-shadow(0 1px 3px black)}.example-button strong{display:block;font-size:10px;font-weight:500}.example-button small{font-size:9px;color:#748371}.example-arrow{margin-left:auto;margin-right:5px;color:#7f9474}.control-divider{height:1px;background:var(--border);margin:22px 0 19px}.quality-picker{display:flex;background:#111612;border:1px solid #30372e;border-radius:7px;padding:4px;gap:4px}.quality-picker label{flex:1;cursor:pointer}.quality-picker input,.palette-picker input{position:absolute;opacity:0;pointer-events:none}.quality-picker label>span{display:block;border-radius:4px;text-align:center;font-size:11px;padding:6px;color:#82907f;border:1px solid transparent}.quality-picker small{display:block;font:9px ui-monospace,monospace;color:#576552;margin-top:3px}.quality-picker input:checked+span{background:#293723;border-color:#425236;color:#d3e8c5}.quality-picker input:checked+span small{color:#90a87e}.quality-picker input:focus-visible+span,.palette-picker input:focus-visible+span{outline:2px solid var(--accent)}.field-row{display:flex;gap:12px;margin-top:19px}.field-row>div{flex:1;min-width:0}.field-row label{font-size:11px;display:block;margin-bottom:8px;color:#c1c9bf}select{height:37px;border:1px solid #323b2f;background:#1b2219;border-radius:6px;color:#bcc9b5;width:100%;padding:0 9px;font-size:11px}.palette-heading{margin-top:20px}.palette-picker{display:flex;gap:7px}.palette-picker label{flex:1;cursor:pointer}.palette-picker label>span{display:flex;align-items:center;justify-content:center;gap:6px;font-size:10px;color:#899982;border:1px solid #303b2c;border-radius:6px;padding:8px 4px}.palette-picker input:checked+span{border-color:#7d9966;color:#d6e4cd;background:#263120}.palette-picker i{width:18px;height:18px;border-radius:4px;border:1px solid #ffffff15}.inferno{background:linear-gradient(135deg,#1b1042,#9d2965,#f58637,#f7e18b)}.gray{background:linear-gradient(135deg,#1b1b1b,#eee)}.turbo{background:linear-gradient(135deg,#4343a3,#21bac1,#a6f333,#d45930)}.mode-note{display:flex;align-items:center;gap:8px;margin:21px 0;color:#819575}.mode-note>svg{width:16px;height:16px}.mode-note p{font-size:10px;margin:0;color:#adbfa1}.mode-note small{display:block;font-size:9px;color:#63715c;margin-top:4px}.mode-note>span{font-size:8px;margin-left:auto;white-space:nowrap;border:1px solid #35432c;border-radius:3px;padding:1px 4px}.generate-button{border:0;background:var(--accent);color:#1b3010;display:flex;align-items:center;width:100%;padding:13px 14px;border-radius:7px;gap:9px;font-weight:650;font-size:12px}.generate-button:hover:not(:disabled){background:#c9f6a8}.generate-button:disabled{opacity:.45}.generate-button>svg{width:17px;height:17px}.generate-button .go{margin-left:auto;width:19px}.local-note{font-size:9px;text-align:center;color:#6e7c66;margin:11px 0 0;letter-spacing:.2px}.preview-status{font-size:9px;background:#242c21;color:#8b9d7e;border:1px solid #36412e;border-radius:20px;padding:3px 9px;margin-left:auto}.preview-toolbar{display:flex;justify-content:space-between;align-items:center;margin:20px 22px 17px}.tabs{display:flex;gap:3px;padding:3px;border:1px solid #2e382a;border-radius:6px;background:#10170e}.tabs button{color:#86997a;border:0;border-radius:4px;background:transparent;padding:7px 12px;font-size:10px}.tabs button.active{color:#e0eed6;background:#303d27}.tabs button:disabled{opacity:.65}.preview-hint{font:8px ui-monospace,monospace;letter-spacing:1.5px;color:#52644a}.preview-stage{position:relative;min-height:355px;aspect-ratio:1.75;margin:0 22px;background-color:#0e150d;background-image:radial-gradient(#4b694430 .8px,transparent .8px);background-size:20px 20px;border:1px solid #293425;border-radius:8px;display:grid;place-items:center;overflow:hidden}.stage-corner{position:absolute;width:16px;height:16px;border-color:#56684a;pointer-events:none;z-index:1}.top-left{top:12px;left:12px;border-top:1px solid;border-left:1px solid}.bottom-right{bottom:12px;right:12px;border-bottom:1px solid;border-right:1px solid}.empty-preview{text-align:center;padding:25px}.depth-art{position:relative;width:102px;height:91px;margin:0 auto 29px;color:#a1c986}.depth-art div{position:absolute;width:75px;height:75px;transform:rotate(-30deg) skew(10deg,10deg);border:1px solid #496e3b;border-radius:7px;left:14px;top:0;background:#243a232b}.depth-art div:nth-child(2){top:12px;border-color:#3b582f}.depth-art div:nth-child(3){top:24px;border-color:#2e4028}.depth-art svg{position:absolute;top:25px;left:35px;width:36px;height:36px;stroke-width:1}.empty-preview h3{font-size:17px;font-weight:450;letter-spacing:1px;margin:0 0 12px;color:#bdceb3}.empty-preview p{font-size:11px;line-height:1.9;color:#61775a;margin:0}.empty-tags{display:flex;justify-content:center;gap:8px;margin-top:23px}.empty-tags span{font-size:9px;border:1px solid #2c3f26;background:#142010;padding:3px 9px;color:#6b805f;border-radius:4px}#result-video{width:100%;height:100%;max-height:520px;object-fit:contain;background:#080c07}.preview-stage.has-video{background:#080c07}.preview-overlay{position:absolute;top:13px;width:100%;display:flex;pointer-events:none}.preview-overlay span{width:50%;text-align:center;font:8px ui-monospace,monospace;letter-spacing:2px;color:#d8e2d0;text-shadow:0 1px 4px #000}.progress-area{margin:18px 22px 0;padding:14px;background:#202b1b;border:1px solid #3a4d2f;border-radius:7px}.progress-text,.progress-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;color:#9eb58f}.progress-text strong{font-weight:450;color:#d2e2c7}.progress-text>span{font:10px ui-monospace,monospace}progress{width:100%;height:4px;appearance:none;border:0;display:block;margin:12px 0;background:#384b2c;border-radius:3px;overflow:hidden}progress::-webkit-progress-bar{background:#384b2c}progress::-webkit-progress-value{background:var(--accent);transition:width .4s}progress::-moz-progress-bar{background:var(--accent)}.progress-bottom{font-size:9px;color:#779466}.progress-bottom button{border:0;background:transparent;color:#b9cba9;font-size:10px;white-space:nowrap}.notice{padding:12px;border-radius:6px;background:#372a1b;color:#e6c6a0;font-size:11px;margin:18px 22px 0;border:1px solid #614827}.result-footer{display:flex;align-items:center;justify-content:space-between;padding:20px 22px;gap:12px}.result-meta{display:flex;align-items:center;gap:8px;color:#79936b;font-size:10px}.result-meta>svg{width:14px;height:14px}.download-button{font-size:10px;display:flex;gap:6px;align-items:center;border:1px solid #485b3b;color:#c4d7b6;padding:8px 12px;border-radius:5px;white-space:nowrap}.download-button>svg{width:13px;height:13px}.download-button:hover{background:#2a3b20}.download-button.disabled{opacity:.35;pointer-events:none}.output-info{display:flex;gap:10px;align-items:center;border-top:1px solid var(--border);padding:17px 22px;background:#141b11;color:#617558;font-size:9px}.output-info>span:first-child{display:flex;align-items:center;gap:6px;white-space:nowrap;color:#8fa37f}.info-dot{width:4px;height:4px;background:#889f75}.output-info p{margin:0;font-size:9px}.format-label{margin-left:auto;font:8px ui-monospace,monospace;white-space:nowrap;color:#506446}.history-section{margin-top:35px}.history-title,.history-title>div{display:flex;align-items:center;gap:12px}.history-title{justify-content:space-between;margin-bottom:15px}.history-title h2{font-size:14px}.history-title span{font-size:10px;color:#778572}.history-title>div>span{font:9px var(--font);background:#222c1d;border-radius:12px;padding:3px 8px;color:#809673}.history-list{border:1px solid var(--border);border-radius:9px;overflow:hidden}.history-empty{display:flex;justify-content:center;align-items:center;gap:9px;color:#607456;font-size:11px;height:83px;background:#141b11}.history-empty svg{width:16px;height:16px}.history-row{display:flex;align-items:center;gap:14px;padding:16px 20px;background:#171f13;border-bottom:1px solid var(--border)}.history-row:last-child{border-bottom:0}.history-icon{display:grid;place-items:center;width:34px;height:34px;background:#26371e;color:#a3bd91;border-radius:7px}.history-main{min-width:0;flex:1}.history-main strong{display:block;font-size:12px;font-weight:450;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-main small{display:block;font-size:9px;color:#738967;margin-top:3px}.history-state{font-size:10px;color:#9eba8c}.history-action{background:transparent;border:1px solid #3f5334;color:#b4c9a4;border-radius:5px;padding:5px 11px;font-size:10px}.history-delete{display:grid;place-items:center;background:transparent;border:0;color:#6f8365;padding:6px}.history-delete svg{width:14px;height:14px}.history-delete:hover{color:#e99c8e}footer{border-top:1px solid #252e21;margin-top:32px;padding:20px 0 25px;display:flex;justify-content:space-between;font-size:9px;color:#5f7355}footer>span:last-child{font:8px ui-monospace,monospace;letter-spacing:.5px}.footer-dot{margin:0 8px;color:#45563d}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}@media(min-width:1400px){.workspace{grid-template-columns:355px minmax(0,1fr)}.preview-stage{min-height:405px}.intro{margin-bottom:38px}main{padding-top:48px}}@media(max-width:1080px){.workspace{grid-template-columns:300px minmax(0,1fr);gap:16px}main{padding-left:3%;padding-right:3%}.preview-stage{min-height:350px;margin:0 16px}.preview-toolbar{margin-left:16px;margin-right:16px}.preview-hint{display:none}.model-status{min-width:260px}.format-label{display:none}.result-meta{font-size:9px}.tabs button{padding:7px 9px}.section-heading{padding:0 18px}form{padding:18px}.preview-toolbar{margin-top:20px}.output-info{padding:16px}.model-badge{display:none}}@media(max-width:780px){.topbar{height:66px;padding:0 5%}.brand-divider,.workspace-label,.local-label{display:none}.brand b{font-size:21px}.header-right{font-size:11px}main{padding:30px 5% 0}.intro{display:block;margin-bottom:22px}h1{font-size:30px}.intro p{font-size:11px}.model-status{display:flex;width:100%;margin-top:22px;padding:10px 14px}.model-status small{display:inline;margin-left:9px}.model-status strong{font-size:10px}.model-badge{display:block}.workspace{grid-template-columns:1fr;gap:20px}.dropzone{padding:19px}.quality-picker label>span{padding:8px}.field-row,.palette-heading{margin-top:17px}.mode-note{margin:20px 0}.preview-stage{min-height:320px}.preview-toolbar{margin-top:17px}.output-info{flex-wrap:wrap;gap:6px 10px}.progress-area{margin:16px}.result-footer{padding:18px 16px}.history-section{margin-top:28px}.history-row{padding:14px;gap:10px}.history-state{font-size:9px}footer{gap:15px;flex-wrap:wrap;margin-top:26px;font-size:8px}footer>span:last-child{font-size:7px}.empty-preview h3{font-size:16px}.empty-preview p{font-size:10px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

#processing-mode{width:100%;padding:11px;background:var(--panel,#161b16);color:inherit;border:1px solid #34402e;border-radius:7px;font:inherit}.processing-note{font-size:12px;line-height:1.7;color:#8d9986;margin:10px 0 22px}.local-note{line-height:1.7}
