:root{color-scheme:dark;--bg:#121615;--panel:#1a201e;--line:#303832;--text:#ecebe3;--muted:#90998f;--gold:#dfb672;--green:#a8c3a0}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.6 'Microsoft YaHei','PingFang SC',sans-serif}button,input,select,textarea{font:inherit}button,a,label.restore{cursor:pointer}button{color:inherit;background:transparent;border:1px solid var(--line);border-radius:7px;padding:9px 15px}button:hover{border-color:#998061;background:#ffffff08}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--gold);outline-offset:3px}button.primary{background:var(--gold);color:#24241d;border-color:var(--gold);font-weight:600}button:disabled{opacity:.45;cursor:default}a{color:var(--gold);text-decoration:none}.sidebar{width:220px;position:fixed;inset:0 auto 0 0;border-right:1px solid var(--line);padding:30px 18px 20px;background:#181d1a;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;color:#efe4cd;font-size:25px;font-weight:bold;padding:0 8px}.logo{display:grid;place-items:center;width:42px;height:44px;background:var(--gold);color:#22271f;font-family:serif;border-radius:9px}.brand small{font-size:9px;display:block;letter-spacing:2px;font-weight:400}.workspace{border:1px solid var(--line);border-radius:7px;font-size:13px;padding:10px;margin:28px 0}.workspace span{float:right}.nav-label{color:#6d796d;font-size:12px;margin:13px 12px}nav button{width:100%;display:flex;align-items:center;gap:12px;border:0;text-align:left;margin:5px 0;padding:12px;color:#a3aaa1}nav button.active{background:#303a2e;color:#e5cd9a;box-shadow:inset 3px 0 #dfb672}nav small{font-size:9px;margin-left:auto;color:#c6b77d}nav b{font-size:11px;margin-left:auto;background:#323c30;padding:0 6px;border-radius:4px}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding:20px 7px;color:var(--muted);font-size:12px}.sidebar-bottom p{font-size:11px}.sidebar-bottom button{font-size:12px;padding:7px 10px}.restore{display:block;margin-top:8px}.user{display:flex;gap:12px;border-top:1px solid var(--line);padding-top:18px;font-size:13px}.user>span,.avatar{background:#394635;color:#d4c7a3;border-radius:50%;width:32px;height:32px;display:grid;place-items:center}.user small{display:block;font-size:11px;color:var(--muted)}.app{margin-left:220px}header{height:74px;border-bottom:1px solid var(--line);padding:0 34px;display:flex;align-items:center;justify-content:space-between;font-size:13px;color:var(--muted)}header strong{color:#ddd;font-weight:400}header div>span:not(.avatar){margin:0 14px}.header-right{display:flex;align-items:center;gap:12px}.connection-badge{font-size:12px;color:#b8ab86}main{padding:30px 34px;min-height:calc(100vh - 123px)}h1{font-size:27px;font-weight:600;letter-spacing:1px;margin:0}h2{font-size:17px;margin:0 0 16px}h3{font-size:15px;margin:0 0 9px}p{margin:6px 0 16px;color:var(--muted)}.titlebar{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.eyebrow{font-size:10px;color:var(--gold);letter-spacing:3px;margin-bottom:5px}.subtitle{font-size:13px;margin:7px 0 0}.actions{display:flex;gap:10px}.stats{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);border-radius:10px;background:var(--panel);margin-bottom:23px}.stat{padding:18px 23px;border-right:1px solid var(--line)}.stat:last-child{border:0}.stat label{color:var(--muted);font-size:12px;display:block}.stat strong{font-size:27px;font-weight:500;margin-right:10px}.stat small{font-size:11px;color:var(--muted)}.studio-grid{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:20px}.panel{border:1px solid var(--line);border-radius:10px;background:var(--panel);overflow:hidden}.panel-head{padding:16px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.panel-head h2{margin:0;font-size:14px}.panel-head small{font-size:11px;color:var(--muted)}.scene{position:relative;aspect-ratio:1.5;background:#101c19;overflow:hidden}.scene>img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}.scene .room{position:absolute;font-size:10px;letter-spacing:1px;background:#171b17cf;color:#e0c595;padding:2px 9px;border:1px solid #745d3f;border-radius:3px;transform:translateX(-50%)}.worker-pin{position:absolute;transform:translate(-50%,-50%);font-size:11px;border:1px solid #e6c18a;color:#f8e7c9;background:#302920e8;padding:4px 9px;box-shadow:0 3px 15px #0009;white-space:nowrap}.worker-pin:after{content:'';position:absolute;left:calc(50% - 4px);bottom:-6px;width:8px;height:8px;background:#d1aa70;transform:rotate(45deg)}.worker-pin:hover{background:#705437;transform:translate(-50%,-55%)}.scene-note{display:flex;justify-content:space-between;padding:12px 17px;font-size:11px;color:var(--muted)}.scene-note span:first-child{color:#ccb98f}.roster{padding:5px 17px}.employee{width:100%;display:flex;text-align:left;gap:12px;padding:15px 0;border:0;border-bottom:1px solid var(--line);border-radius:0}.employee:last-child{border:0}.employee .portrait{width:38px;height:40px;display:grid;place-items:center;background:#384332;color:#e5c383;border:1px solid #637153;font-family:serif;font-size:20px;border-radius:5px}.employee .info{flex:1}.employee strong{font-size:13px;font-weight:500}.employee small{display:block;font-size:11px;color:var(--muted)}.tag{font-size:11px;padding:2px 7px;border-radius:4px;color:#baccab;background:#31412c;height:23px}.tag.warn{background:#4b3b26;color:#dcba76}.roster-foot{padding:15px 18px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.bottom-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:20px;margin-top:20px}.empty{padding:28px;color:var(--muted);text-align:center}.empty strong{display:block;font-weight:400;color:#c9cfc4;margin-bottom:5px}.empty p{font-size:12px;margin:4px}.steps{display:flex;justify-content:space-between;padding:25px 18px;font-size:12px;color:#c6cfbd}.steps b{display:block;color:var(--gold);font-size:10px;font-weight:400}.steps i{color:#5e685b;padding-top:6px}.notice{padding:15px 18px;font-size:12px;color:#b7b1a1;background:#302b2066;border:1px solid #54472e;border-radius:7px;margin:20px 0}.form-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:22px}.pad{padding:22px}label.field{display:block;font-size:13px;margin-bottom:16px}input,textarea,select{display:block;width:100%;background:#121815;border:1px solid #3a443b;color:#eee;border-radius:6px;padding:11px;margin-top:7px}textarea{resize:vertical;min-height:185px;line-height:1.9}input[type=file]{font-size:12px}.row{display:flex;gap:14px}.row>*{flex:1}.asset-grid,.station-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.asset-card img{width:100%;height:180px;object-fit:cover;background:#0e1512}.asset-card .pad{padding:15px}.asset-card input{padding:6px;font-size:13px}.task{padding:18px 20px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:14px}.task:last-child{border:0}.task .task-body{flex:1;min-width:0}.task p{font-size:12px;margin:5px 0;overflow-wrap:anywhere}.task b{font-size:14px;font-weight:500}.task button{font-size:12px;padding:6px 11px}.task-number{color:#bba879;font:13px monospace}.report{padding:18px;border-bottom:1px solid var(--line);font-size:13px}.report small{display:block;color:#778373;font-size:11px}.help{font-size:12px;color:var(--muted)}dialog{background:#202720;color:var(--text);border:1px solid #57634c;border-radius:12px;width:540px;max-width:calc(100% - 32px);padding:25px}dialog::backdrop{background:#040906b8;backdrop-filter:blur(4px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.dialog-head h2{margin:0}.dialog-head button{border:0;font-size:22px;padding:0 5px}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:24px}progress{width:100%;height:7px;accent-color:var(--gold)}#toast{position:fixed;bottom:35px;left:50%;background:#ddc08b;color:#1f281e;padding:12px 24px;border-radius:7px;z-index:10;box-shadow:0 4px 20px #0005;display:none}footer{padding:14px 34px;border-top:1px solid var(--line);font-size:10px;color:#6f7b6e;display:flex;justify-content:space-between}footer b{padding:0 9px}.filters{display:flex;gap:10px;margin-bottom:20px}.filters button.active{background:#34432e;border-color:#77805c}.blank-icon{font-size:27px;color:#9d8e6b;margin-bottom:8px}@media(min-width:1600px){main{max-width:1700px;margin:auto}.studio-grid{grid-template-columns:minmax(0,1fr) 310px}}@media(max-width:1150px){.sidebar{width:185px;padding:25px 12px}.app{margin-left:185px}main{padding:25px 22px}.studio-grid{grid-template-columns:1fr}.roster{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.roster-foot{display:none}.asset-grid{grid-template-columns:repeat(2,1fr)}.employee{border:0}.scene{max-height:650px}}@media(max-width:700px){.sidebar{position:static;width:auto;padding:14px}.brand{font-size:21px}.workspace,.nav-label,.sidebar-bottom,.user{display:none}.sidebar nav{display:flex;overflow-x:auto}.sidebar nav button{min-width:max-content;width:auto;font-size:12px;padding:8px}.sidebar nav small{display:none}.app{margin:0}header{height:50px;padding:0 17px}.connection-badge{display:none}main{padding:20px 14px}.titlebar{gap:14px;align-items:start;flex-direction:column}h1{font-size:24px}.stats{grid-template-columns:repeat(2,1fr)}.stat{padding:12px}.stat strong{font-size:24px}.studio-grid,.bottom-grid,.form-grid,.station-grid{grid-template-columns:1fr}.roster{grid-template-columns:repeat(2,1fr)}.worker-pin{font-size:9px;padding:2px 4px}.scene .room{font-size:8px;padding:1px 4px}.scene-note{font-size:9px}.task{flex-wrap:wrap}.asset-grid{grid-template-columns:repeat(2,1fr)}.asset-card img{height:120px}footer{padding:14px;font-size:9px}.header-right{gap:0}}
:root{--app-version:1}.worker-pin::before{content:'';position:absolute;top:100%;height:55px;width:60px;left:calc(50% - 30px)}.worker-pin:hover::before{background:#ffe0a015;outline:1px dashed #dfb67280;border-radius:50%}.help,.employee small,.tag,.scene-note,.subtitle,.task button{font-size:14px}.worker-pin{font-size:12px}.stat label{font-size:14px}.scene .room{font-size:12px}.roster-foot{font-size:13px}
.brand .logo{display:block;width:52px;height:52px;flex:0 0 52px;object-fit:contain;background:#0c0c0b;border-radius:50%;border:1px solid #5b4d32}.brand{gap:11px}.brand small{letter-spacing:2px}
.control-strip{display:flex;align-items:center;gap:24px;padding:16px 18px;margin-bottom:20px;border:1px solid var(--line);border-radius:10px;background:#1f2722}.control-strip>div{flex:1}.control-strip b{display:block;font-weight:500}.control-strip small{display:block;color:var(--muted);font-size:12px}.control-strip label{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:12px}.control-strip select{width:auto;margin:0;padding:7px 30px 7px 10px}.station-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.station-top h3{margin:0}.station-card{min-height:190px}.station-card input{margin:16px 0 10px}.station-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}.station-actions button{font-size:12px;padding:6px 10px}.dot{display:inline-flex;align-items:center;gap:5px;color:#bdc6b6;font-size:11px}.dot:before{content:'';width:7px;height:7px;border-radius:50%;background:#899184}.dot.online:before{background:#a8c3a0;box-shadow:0 0 0 3px #a8c3a020}.dot.pending:before{background:#c99a55}.settings-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.85fr);gap:20px}.api-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px}.api-card{border:1px solid var(--line);border-radius:8px;padding:16px;background:#161d19}.api-card h3{margin:0 0 4px}.api-card small{color:var(--muted)}.api-card p{overflow-wrap:anywhere}.switch-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:14px 0;border-bottom:1px solid var(--line);margin-bottom:20px}.switch-row span{display:grid;gap:3px}.switch-row b{font-size:13px;font-weight:500}.switch-row small{font-size:12px;color:var(--muted)}.switch-row input{width:40px;height:22px;margin:0;accent-color:var(--gold)}
#license-gate{position:fixed;inset:0;background:#0d110fef;z-index:50;display:grid;place-items:center}#license-gate[hidden]{display:none}.license-box{width:min(480px,calc(100% - 32px));padding:34px;border:1px solid #68583c;border-radius:14px;background:#202720;box-shadow:0 18px 80px #0009}.license-box h1{margin:0 0 12px}.license-box form{display:flex;gap:10px;margin:24px 0 12px}.license-box input{flex:1;margin:0}.license-box small{color:var(--muted)}.license-locked .app,.license-locked .sidebar{filter:blur(5px)}
#license-gate{position:fixed;inset:0;background:#0d110fef;z-index:50;display:grid;place-items:center}#license-gate[hidden]{display:none}.license-box{width:min(480px,calc(100% - 32px));padding:34px;border:1px solid #68583c;border-radius:14px;background:#202720;box-shadow:0 18px 80px #0009}.license-box h1{margin:0 0 12px}.license-box form{display:flex;gap:10px;margin:24px 0 12px}.license-box input{flex:1;margin:0}.license-box small{color:var(--muted)}.license-locked .app,.license-locked .sidebar{filter:blur(5px)}
.batch-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(320px,.7fr);gap:20px}.batch-actions{display:flex;gap:10px;align-items:center}.upload-zone{display:grid;place-items:center;min-height:110px;border:1px dashed #8d7447;border-radius:8px;background:#29281f;color:#dec48c;text-align:center;margin:15px 0;padding:15px}.full{width:100%;margin-top:8px}.batch-guide{margin-top:20px}.batch-guide .steps{padding:20px 0}@media(max-width:800px){.batch-layout{grid-template-columns:1fr}}
.delimiter-card{border:1px solid #3d5268;border-radius:9px;margin:8px 0 20px;overflow:hidden;background:#16202a}.delimiter-heading{padding:18px 20px 12px;border-bottom:1px solid #304354;display:grid;gap:5px}.delimiter-heading span{font-size:15px;color:#e6edf5}.delimiter-heading small{font-size:12px;color:#9eafbf;line-height:1.7}.delimiter-card .field{padding:0 20px}.format-hint{margin:0 20px 14px;padding:10px 12px;border:1px solid #3b5870;border-radius:7px;background:#1c2b3b;color:#b4c6d8;font-size:12px}.format-hint b{color:#edf5ff}.format-hint code{color:#d8e7ff}.format-hint strong{float:right;color:#82aaff;font-weight:500}.custom-delimiter[hidden]{display:none}.batch-preview{margin:0 20px 18px;padding:12px 14px;min-height:48px;border:1px solid #344555;border-radius:7px;background:#101820;color:#9eb1c2;font-size:12px;line-height:1.8}.batch-preview b{color:#c9d8e7;margin-right:7px}
.room-link{position:absolute;transform:translateX(-50%);font-size:12px;letter-spacing:1px;background:#171b17cf;color:#e0c595;padding:2px 9px;border:1px solid #745d3f;border-radius:3px}.room-link:hover{background:#705437;transform:translateX(-50%) translateY(-2px)}.creative-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:20px;min-height:650px}.novel-shelf{padding:0}.shelf-head,.chapter-head{display:flex;justify-content:space-between;align-items:center;padding:17px 18px;border-bottom:1px solid var(--line);color:#e6d3ae}.shelf-head small{color:var(--muted);font-size:11px}.novel-item{width:100%;display:flex;align-items:center;gap:11px;text-align:left;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:13px 15px}.novel-item.active{background:#303a2e;color:#ecd39d;box-shadow:inset 3px 0 var(--gold)}.novel-cover{width:38px;height:44px;display:grid;place-items:center;background:#4a3b2e;border:1px solid #9b754b;color:#f0d395;font-family:serif;font-size:20px;border-radius:4px}.novel-item span:nth-child(2){min-width:0}.novel-item b,.novel-item small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.novel-item small{font-size:11px;color:var(--muted);margin-top:3px}.novel-editor{overflow:hidden}.editor-top{display:flex;justify-content:space-between;gap:20px;padding:25px 28px;border-bottom:1px solid var(--line);background:linear-gradient(110deg,#242a22,#1c2420)}.editor-top h2{font-size:24px;color:#f0dfbb;margin:3px 0 6px}.editor-top p{max-width:650px;margin:0}.editor-grid{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:545px}.chapter-list{border-right:1px solid var(--line);background:#161c18}.chapter-head{padding:14px}.chapter-head button{padding:2px 9px;color:var(--gold)}.chapter-item{display:grid;grid-template-columns:27px 1fr;gap:2px 8px;width:100%;text-align:left;border:0;border-bottom:1px solid #293129;border-radius:0;padding:13px 14px}.chapter-item.active{background:#2c392d;color:#efd59c}.chapter-item span{grid-row:1/3;color:var(--gold);font:12px monospace}.chapter-item b{font-size:12px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chapter-item small{font-size:10px;color:var(--muted)}.writing-pane{padding:24px 28px}.writing-toolbar{display:flex;justify-content:space-between;align-items:center;padding-bottom:17px;border-bottom:1px solid var(--line);margin-bottom:20px;color:#d9c493;font-size:13px}.outline-input{min-height:86px}.story-field textarea{min-height:300px;line-height:2}.writing-foot{display:flex;justify-content:space-between;color:var(--muted);font-size:11px}.creative-welcome{display:grid;place-items:center;align-content:center;text-align:center;padding:80px 30px}.creative-welcome p{max-width:450px}.pixel-lamp{font-size:52px;color:var(--gold);text-shadow:0 0 18px #dfb67255;margin-bottom:15px}.creative-next{display:flex;justify-content:space-between;align-items:center;margin-top:20px;padding:18px 22px}.creative-next div{display:grid;gap:4px}.creative-next span{font-size:12px;color:var(--muted)}@media(max-width:900px){.creative-layout{grid-template-columns:1fr}.editor-grid{grid-template-columns:1fr}.chapter-list{border-right:0;border-bottom:1px solid var(--line);display:flex;overflow:auto}.chapter-head{min-width:150px}.chapter-item{min-width:170px}.creative-next{gap:15px;align-items:flex-start;flex-direction:column}}
.novel-cover img{width:100%;height:100%;object-fit:cover;border-radius:3px;image-rendering:auto}
.api-groups{display:grid;gap:18px}.api-group .api-list{padding:18px}.api-settings-note{margin-top:18px}.prompt-intro{margin-bottom:18px;color:var(--muted)}.prompt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.prompt-grid textarea{min-height:120px}.outline-results{padding:20px}.outline-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:18px}.outline-card{border:1px solid #4b5b48;border-radius:9px;padding:20px;background:#1c251e;display:flex;flex-direction:column;min-height:260px}.outline-card h3{color:#eed49a}.outline-card p{flex:1;font-size:13px;line-height:1.8}.outline-card details{font-size:12px;color:var(--muted);margin:8px 0 14px}.outline-card button{align-self:flex-start}.outline-no{font:12px monospace;color:var(--gold)}#edit-story-idea{margin-top:18px}.creative-welcome form{width:min(760px,100%);text-align:left}.creative-welcome form textarea{min-height:130px}@media(max-width:800px){.prompt-grid,.outline-grid{grid-template-columns:1fr}}
.system-prompt-card{margin-top:18px}.system-prompt-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.system-prompt-row{display:grid;grid-template-columns:26px 1fr auto;align-items:center;gap:8px;padding:12px 14px;border:1px solid var(--line);border-radius:7px;background:#171d18}.system-prompt-row span{color:var(--gold)}.system-prompt-row small{color:var(--muted);font-size:11px}.prompt-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-height:52vh;overflow:auto;padding-right:4px}@media(max-width:800px){.system-prompt-list,.prompt-admin-grid{grid-template-columns:1fr}}
.canvas-panel{padding:0;min-height:650px;height:calc(100vh - 210px);overflow:hidden}.canvas-panel iframe{display:block;width:100%;height:100%;min-height:650px;border:0;background:#0b0d12}

/* App canvas-only shell */
body[data-view="canvas"] .app > header,
body[data-view="canvas"] .app > footer { display:none; }
body[data-view="canvas"] .sidebar { display:flex; }
body[data-view="canvas"] .app { margin-left:220px; }
body[data-view="canvas"] main { padding:0; min-height:100vh; }
body[data-view="canvas"] .canvas-panel {
  width:100%; height:100vh; min-height:100vh; border:0; border-radius:0;
}
body[data-view="canvas"] .canvas-panel iframe {
  width:100%; height:100vh; min-height:100vh;
}



.art-project-layout{display:grid;grid-template-columns:minmax(320px,420px) minmax(0,1fr);gap:20px;align-items:start}.art-project-form-panel .panel-head{align-items:flex-start}.art-project-form-panel .panel-head h2{margin-bottom:4px}.art-project-form-panel .panel-head p{margin:0}.art-project-list{min-height:360px}.art-project-card{padding:20px;border-bottom:1px solid var(--line)}.art-project-card:last-child{border-bottom:0}.art-project-top{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.art-project-top h3{margin:0 0 8px;color:#ead5a6;font-size:17px}.art-project-top small{color:var(--muted);font-size:11px;white-space:nowrap}.art-project-card p{margin:14px 0 16px;white-space:pre-wrap;line-height:1.8}.project-actions{display:flex;gap:8px}.project-actions button{font-size:12px;padding:6px 11px}@media(max-width:900px){.art-project-layout{grid-template-columns:1fr}}

/* 大语言模型 API 测试前置弹窗 */
dialog.api-test-modal{width:640px;max-width:calc(100% - 28px);max-height:calc(100vh - 28px);padding:0;background:#1b1b1b;border-color:#3d4440;box-shadow:0 24px 70px #000b}
dialog.api-test-modal .dialog-head{margin:0;padding:16px 20px;border-bottom:1px solid #303330}
dialog.api-test-modal .dialog-head h2{font-size:16px;margin:0;color:#f2f0e9}
dialog.api-test-modal .dialog-head button{color:#8c938b}
.api-test-body{padding:16px 19px 14px}
.api-test-card{padding:14px;background:#252525;border-radius:8px;margin-bottom:14px}
.api-test-card h3{margin:0 0 8px;color:#8bd5f6;font-size:13px;font-weight:600}
.api-test-card p{margin:3px 0;color:#e4e4de;font-size:12px;line-height:1.55;overflow-wrap:anywhere}
.api-test-log{min-height:150px;padding:13px 12px;border:1px solid #414141;border-radius:4px;background:#171717;color:#cfcfc8;font:12px/1.8 Consolas,'Microsoft YaHei',monospace;white-space:pre-wrap;overflow:auto}
.api-test-log.running{color:#ddd3a3}
.api-test-log.success{color:#d8d8d0}
.api-test-log.success span{color:#76d36d}
.api-test-log.error{color:#f39b8e}
.api-test-actions{margin:16px 0 0}
.api-test-actions .primary{background:#5db9df;border-color:#5db9df;color:#10212b}
.api-test-actions button{min-width:100px}

/* 生成视频工作区 */
body[data-view="video"]{background:#121615;color:#ecebe3}
body[data-view="video"] .app{background:#121615}
body[data-view="video"] .app>header{background:#121615;border-bottom:1px solid #303832;color:#90998f}
body[data-view="video"] .app>header strong{color:#ecebe3}
body[data-view="video"] main{padding:20px 28px 28px;min-height:calc(100vh - 100px)}
body[data-view="video"] footer{background:#121615;color:#90998f;border-top:1px solid #303832}
.video-page{max-width:1500px;margin:0 auto}
.video-page-head{display:flex;align-items:flex-start;justify-content:space-between;margin:0 0 18px}
.video-eyebrow{font-size:11px;letter-spacing:.18em;color:#dfb672;margin-bottom:5px}
.video-page-head h1{margin:0;color:#f0dfbb;font-size:25px}
.video-page-head p{margin:6px 0 0;color:#90998f;font-size:13px}
.video-page-head-actions{display:flex;align-items:center;gap:10px}.video-config-btn{height:34px;padding:0 13px;border:1px solid #5b4d32;border-radius:8px;background:#1a201e;color:#dfb672;font-size:12px;font-weight:600;cursor:pointer}.video-config-btn:hover{border-color:#dfb672;background:#242a25}.video-refresh{min-width:34px;width:auto;padding:0 12px;height:34px;border:1px solid #303832;border-radius:9px;background:#1a201e;color:#dfb672;font-size:13px;cursor:pointer}.video-refresh:hover{border-color:#dfb672}
.video-columns{display:grid;grid-template-columns:minmax(450px,1fr) minmax(450px,1.25fr);gap:20px;align-items:stretch}
.video-card{background:#1a201e;border:1px solid #303832;border-radius:14px;box-shadow:0 7px 20px #0006;overflow:hidden}
.video-card-head{height:66px;padding:0 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #303832}
.video-card-head h2{display:flex;align-items:center;gap:10px;margin:0;color:#f0dfbb;font-size:15px}
.video-card-head>span{color:#90998f;font-size:12px}
.video-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#262d28;color:#dfb672;font-size:15px}
.video-params form{padding:21px 20px 18px}
.video-field{position:relative;display:grid;gap:8px;color:#c9d0c5;font-size:13px;font-weight:600}
.video-field>span{display:block}
.video-field textarea{width:100%;min-height:170px;resize:vertical;padding:13px 14px;border:1px solid #303832;border-radius:9px;background:#121815;color:#ecebe3;font:13px/1.7 inherit;outline:none;box-sizing:border-box}
.video-field textarea:focus,.video-field select:focus{border-color:#dfb672;box-shadow:0 0 0 3px #dfb67226}
.video-field textarea::placeholder{color:#6d796d}
.video-field small{position:absolute;right:10px;bottom:9px;color:#90998f;font-size:11px;font-weight:400}
.video-ref-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:12px}
.video-ref-btn{min-height:48px;padding:7px 6px;border:1px solid #303832;border-radius:8px;background:#161d19;color:#c9d0c5;font-size:12px;cursor:pointer}
.video-ref-btn:hover{border-color:#dfb672;color:#f0dfbb;background:#242a25}
.video-ref-btn b{display:block;margin-top:3px;color:#90998f;font-size:11px;font-weight:400}
.video-params input[type=file][hidden]{display:none!important}.video-drop-hint{margin:8px 0 17px;color:#90998f;font-size:11px}
.video-control-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px 10px;border-top:1px solid #303832;padding-top:17px}
.video-field select{width:100%;height:42px;padding:0 11px;border:1px solid #303832;border-radius:8px;background:#161d19;color:#ecebe3;outline:none;font-size:13px}
.video-submit-wrap{display:grid;gap:9px;margin-top:20px;padding-top:18px;border-top:1px solid #303832;text-align:center}
.video-submit{height:46px;border:0;border-radius:8px;background:#dfb672;color:#24241d;font-size:14px;font-weight:700;cursor:pointer;box-shadow:0 6px 12px #0006}
.video-submit:hover{background:#e8c381}
.video-submit-wrap small{color:#90998f;font-size:11px}
.video-recent{display:flex;flex-direction:column;min-height:610px}
.video-recent .video-card-head{flex:none}
.video-refresh.small{min-width:31px;width:auto;height:31px;padding:0 9px;font-size:12px}
.video-task-list{flex:1;padding:12px 0}
.video-task-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:start;padding:16px 20px;border-bottom:1px solid #262d28}
.video-task-row:last-child{border-bottom:0}
.video-task-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#262d28;color:#dfb672;font-weight:700}
.video-task-info{min-width:0}.video-task-info b{display:block;color:#ecebe3;font-size:13px}.video-task-info p{margin:5px 0;color:#a3aaa1;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.video-task-info small{color:#6d796d;font-size:11px}
.video-task-state{color:#dfb672;font-size:11px;white-space:nowrap}.video-task-state.done{color:#a8c3a0}
.video-empty{display:grid;place-items:center;align-content:center;height:100%;min-height:430px;text-align:center;color:#90998f}.video-empty-icon{display:grid;place-items:center;width:50px;height:50px;margin-bottom:10px;border-radius:14px;background:#262d28;color:#dfb672;font-size:23px}.video-empty b{color:#c9d0c5;font-size:14px}.video-empty p{margin:8px 0;font-size:12px}
.video-pagination{display:flex;align-items:center;justify-content:space-between;padding:13px 16px;border-top:1px solid #303832;color:#90998f;font-size:12px}.video-pagination button{height:36px;padding:0 13px;border:1px solid #303832;border-radius:8px;background:#161d19;color:#90998f}.video-pagination button:disabled{opacity:.5}
.connection-badge.ok{color:#a8c3a0}
.px-icon{display:inline-block;vertical-align:-2px;image-rendering:pixelated;flex:none}
.notice-btn{position:relative;display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 10px;border:1px solid #5b4d32;border-radius:4px;background:#1a201e;color:#e6d3ae;font-family:'Fusion Pixel 12px Proportional zh_hans','Fusion Pixel',monospace;font-size:12px;box-shadow:3px 3px 0 rgba(0,0,0,.6);cursor:pointer}
.notice-btn:hover{border-color:#dfb672;color:#f0dfbb}
.notice-dot{position:absolute;top:-4px;right:-4px;width:8px;height:8px;border-radius:50%;background:#e05252}
.notice-item{padding:12px 4px;border-bottom:1px solid var(--line);text-align:left}
.notice-item:last-child{border-bottom:0}
.notice-item-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.notice-item-head b{color:#f0dfbb;font-size:14px}
.notice-item-head small{color:var(--muted);font-size:11px}
.notice-item-body{margin:8px 0 0;white-space:pre-wrap;line-height:1.8;color:var(--text);font-size:13px}
.video-model-info{margin:0 0 12px;padding:9px 12px;border:1px solid #303832;border-radius:8px;background:#121815;color:#90998f;font-size:11px;line-height:1.7;overflow-wrap:anywhere}
.video-card form.drag-over{outline:2px dashed #dfb672;outline-offset:-6px;background:#181f1b}
.video-ref-list{display:grid;gap:8px;margin:0 0 14px}
.ref-item{display:flex;align-items:center;gap:12px;padding:9px 12px;border:1px solid #303832;border-radius:8px;background:#121815;font-size:12px;color:#c9d0c5}
.ref-item .ref-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ref-item small{color:#90998f;white-space:nowrap}
.ref-remove{font-size:12px;padding:4px 10px;border:1px solid #5b4d32;border-radius:6px;background:transparent;color:#dfb672;cursor:pointer}
.ref-remove:hover{border-color:#dfb672;background:#242a25}
#video-mention-menu{position:fixed;z-index:99;display:none;flex-direction:column;gap:2px;min-width:280px;max-height:240px;overflow:auto;padding:6px;border:1px solid #5b4d32;border-radius:8px;background:#1a201e;box-shadow:0 10px 30px #000a}
#video-mention-menu.show{display:flex}
#video-mention-menu button{display:flex;align-items:center;gap:10px;text-align:left;border:0;background:transparent;padding:7px 9px;border-radius:6px;color:#c9d0c5;font-size:12px}
#video-mention-menu button:hover{background:#242a25;color:#f0dfbb}
#video-mention-menu b{color:#dfb672;font-weight:600;flex:none}
#video-mention-menu small{color:#90998f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1050px){.video-columns{grid-template-columns:1fr}.video-recent{min-height:430px}}
@media(max-width:620px){body[data-view="video"] main{padding:14px}.video-ref-actions{grid-template-columns:1fr}.video-control-grid{grid-template-columns:1fr}.video-page-head h1{font-size:22px}}



.fixed-api-value{margin-top:7px;padding:11px 12px;border:1px solid #3a443b;border-radius:6px;background:#121815;color:#eee}.api-key-saved{padding:10px 12px;border:1px solid #40533e;border-radius:7px;background:#263323;color:#b9d4ae;font-size:12px}.video-config-btn{white-space:nowrap}

