:root{color-scheme:light;--ink:#191919;--muted:#6b6b6b;--canvas:#ededee;--surface:#fff;--soft:#f6f6f6;--line:#d6d6d6;--focus:#333;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--canvas);font-size:14px}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer;background:var(--surface);border:1px solid var(--line);border-radius:7px;min-height:34px;padding:7px 12px;font-size:12px;font-weight:600}button:hover{background:#eee;border-color:#999}button:disabled{opacity:.45;cursor:not-allowed}button.primary{background:var(--ink);color:#fff;border-color:var(--ink)}button.primary:hover{background:#363636}button[aria-pressed=true]{background:var(--ink);color:#fff;border-color:var(--ink)}:focus-visible{outline:2px solid var(--focus);outline-offset:3px}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}[hidden]{display:none!important}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.skip{position:fixed;left:180px;top:-80px;background:#fff;padding:12px;z-index:10}.skip:focus{top:8px}
.sidebar{position:fixed;inset:0 auto 0 0;width:172px;padding:22px 12px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:3}.brand{display:flex;align-items:center;gap:9px;padding:0 5px 28px;font-weight:700;letter-spacing:.03em}.brand b{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#202020;color:#fff}.brand small{display:block;color:var(--muted);font-size:10px;font-weight:400;margin-top:3px;letter-spacing:0}.sidebar nav{display:grid;gap:4px}.sidebar nav>small{color:var(--muted);font-size:10px;padding:15px 9px 6px}.sidebar nav>a{padding:10px 9px;border-left:2px solid transparent;font-size:12px;border-radius:5px}.sidebar nav>a[aria-current]{background:#eee;border-left-color:#222;font-weight:700}.sidebar>p{margin-top:auto;font-size:11px;color:var(--muted)}
.topbar{position:sticky;top:0;margin-left:172px;height:62px;padding:0 28px;background:rgba(255,255,255,.97);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;z-index:2}.topbar>div{display:flex;gap:10px;align-items:center}.topbar select{width:180px;font-size:12px}.context{font-size:11px;font-weight:650;letter-spacing:.06em}.topbar a{font-size:11px}main{max-width:930px;margin:0 auto;padding:34px 36px 64px;position:relative;left:86px}.heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:25px}.heading h1{font-size:25px;letter-spacing:-.06em;margin:8px 0 6px;font-weight:650}.heading p{font-size:12px;color:var(--muted);margin:0}.eyebrow{font:10px ui-monospace,SFMono-Regular,monospace;letter-spacing:.12em}.document-actions{display:flex;gap:6px;flex-shrink:0}.mode-row{display:flex;justify-content:space-between;gap:14px;margin-bottom:16px;align-items:center}.modes{display:flex;gap:6px}.modes button{min-width:112px;height:40px}.history-label{display:flex;align-items:center;gap:7px;font-size:11px}.history-label select{max-width:190px;font-size:11px}.card{background:var(--surface);border:1px solid var(--line);border-radius:12px;margin-bottom:16px;padding:22px;box-shadow:0 2px 3px #00000003;min-width:0}.card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px}.card-head>div{display:flex;align-items:center;gap:9px}.step{font:11px ui-monospace,SFMono-Regular,monospace;color:#777;border:1px solid #ddd;border-radius:5px;padding:4px 6px}h2{font-size:15px;margin:0;font-weight:650}h3{font-size:13px;margin:24px 0 12px}.muted,small{font-size:11px;color:var(--muted);line-height:1.6}.notice{font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.notice:empty{display:none}label{display:block;font-size:12px;font-weight:550}input:not([type=checkbox]):not([type=range]),select,textarea{display:block;background:var(--soft);border:1px solid var(--line);border-radius:7px;padding:9px 10px;width:100%;min-width:0;margin-top:6px;font-size:12px;line-height:1.6}textarea{resize:vertical;min-height:74px}input[type=checkbox]{accent-color:#222;width:15px;height:15px;flex-shrink:0}.check{display:flex;align-items:center;gap:7px}.field-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:16px}.parameter-row{display:grid;grid-template-columns:1fr 1.25fr 1.25fr auto;gap:10px;align-items:end;margin-top:15px}.parameter-row button{height:40px}.parameter-row+ p{margin:7px 0 14px}details{border-top:1px solid #e4e4e4;padding-top:12px;margin-top:14px}summary{font-size:12px;cursor:pointer;padding:0 0 6px;font-weight:550}details[open]>summary{margin-bottom:10px}.actions{display:flex;gap:8px;margin-top:16px;flex-wrap:wrap}.actions button{flex:1}.material-tools{display:flex;justify-content:space-between;gap:12px;align-items:end;margin-top:12px}.material-tools label{max-width:220px}.upload{position:relative;border:1px dashed #aaa;border-radius:8px;display:flex;align-items:center;justify-content:center;gap:12px;min-height:78px;background:#fafafa;cursor:pointer;overflow:hidden}.upload:hover,.upload.drag{border-color:#222;background:#eee}.upload input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.upload-plus{font-size:24px;color:#777}.upload strong{font-size:12px}.upload small{display:block;margin-top:3px;font-weight:400}
.asset-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:10px;min-width:0;margin-bottom:10px}.asset-tile{min-width:0;border:1px solid var(--line);border-radius:8px;padding:7px;position:relative;background:#fafafa}.asset-tile .thumb{height:98px;width:100%;padding:0;overflow:hidden;display:block;background:#e9e9e9;border:0}.thumb img{width:100%;height:100%;object-fit:contain}.asset-tile .name{font-size:10px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-top:7px}.asset-tile .remove{position:absolute;right:10px;top:10px;min-height:23px;width:23px;padding:0;background:#fff}.asset-tile select{font-size:10px;padding:4px;margin-top:5px}.tile-actions{display:flex;gap:5px;margin-top:5px}.tile-actions button{min-height:24px;padding:2px 6px;font-size:10px;flex:1}.asset-grid:empty{display:none}.conversation{margin-top:18px;border:1px solid #bbb;border-radius:8px;overflow:hidden}.conversation header{display:flex;justify-content:space-between;padding:11px 13px;background:#ededed;font-size:12px}.conversation #messages{max-height:350px;min-height:150px;overflow:auto;padding:13px;background:#f8f8f8}.chat-message{padding:11px 13px;border:1px solid #ddd;border-radius:7px;background:#fff;white-space:pre-wrap;font-size:12px;line-height:1.8;margin-bottom:10px;overflow-wrap:anywhere}.chat-message.user{background:#e9e9e9;margin-left:30px}.chat-message strong{display:block;font-size:10px;color:#666;margin-bottom:5px}.reply-row{display:flex;align-items:end;gap:8px;border-top:1px solid #ddd;padding:10px}.reply-row textarea{flex:1;margin:0;min-height:54px}.conversation .actions:has(button:not([hidden])){padding:0 10px 10px}.conversation .actions{margin:0}.empty{padding:20px;text-align:center;color:#888;font-size:12px;line-height:1.7}#final-prompt{background:#fcfcfc;font-family:ui-monospace,SFMono-Regular,Consolas,"PingFang SC",monospace;line-height:1.85}.generate-bar{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #ddd;padding-top:17px;margin-top:15px}.generate-bar strong{display:block;font-size:12px}.generate-bar small{display:block}.generate-bar button{min-width:160px;min-height:43px}.task-line{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:12px}.task-line span{flex:1}.results video{display:block;width:100%;max-height:510px;border-radius:9px;background:#171717;margin-top:17px}.output-actions{display:flex;gap:8px;margin-top:10px;font-size:11px}.output-actions a{border:1px solid #ccc;border-radius:6px;padding:6px 10px}.history-item{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #eee;padding:8px 0;font-size:11px}.history-item span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-item button{font-size:10px;padding:4px 8px;min-height:27px}progress{width:100%;height:5px;accent-color:#222;margin:14px 0}footer{padding:3px 0 30px;text-align:center}
dialog{width:min(680px,calc(100vw - 24px));max-height:85dvh;padding:22px;border:1px solid #aaa;border-radius:12px;box-shadow:0 20px 80px #0003;color:var(--ink);background:#fff}dialog::backdrop{background:#0006}dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #ddd;padding-bottom:14px;margin-bottom:16px}dialog>header button{font-size:17px;min-width:36px;padding:4px}dialog>header h2{font-size:16px}.lora-slot{border:1px solid #ddd;border-radius:8px;padding:12px;margin:10px 0;min-width:0}.lora-slot header{display:flex;align-items:center;justify-content:space-between;gap:12px}.lora-slot header strong{font-size:12px}.lora-slot .slider{display:flex;gap:9px;align-items:center;margin-top:10px}.lora-slot input[type=range]{accent-color:#222;flex:1;min-width:0}.lora-slot input[type=number]{width:70px;margin:0}.lora-slot:has(input[type=checkbox]:not(:checked)){background:#f7f7f7}.library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;margin-top:18px;max-height:50vh;overflow:auto}.library-grid button{padding:7px;min-width:0;text-align:left}.library-grid img{width:100%;height:84px;object-fit:cover;border-radius:5px}.library-grid small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.library-grid button[aria-pressed=true]{background:#222}.library-grid button[aria-pressed=true] small{color:#fff}#preview-content img,#preview-content video{display:block;max-width:100%;max-height:62vh;margin:auto}#preview-content audio{width:100%}#preview-content p{overflow-wrap:anywhere;font-size:12px}#prompt-dialog{width:min(960px,calc(100vw - 24px))}
@media(min-width:1500px){main{max-width:950px;padding-top:44px}}@media(max-width:1000px){.sidebar{width:145px}.topbar{margin-left:145px;padding:0 15px}.topbar .context{display:none}main{margin-left:145px;left:0;padding:26px 20px;max-width:none}.heading h1{font-size:22px}}@media(max-width:700px){.sidebar{display:none}.topbar{margin:0;padding:0 12px;height:56px}.topbar select{width:135px}.topbar a{display:none}main{margin-left:0;padding:22px 12px}.heading{align-items:start}.heading h1{font-size:20px}.document-actions{flex-direction:column}.card{padding:16px;border-radius:10px}.mode-row{align-items:start;flex-direction:column}.modes{width:100%}.modes button{flex:1}.history-label{width:100%}.history-label select{max-width:none;flex:1}.parameter-row{grid-template-columns:1fr 1fr}.field-grid{grid-template-columns:1fr 1fr}.card-head>.muted{display:none}.asset-grid{grid-template-columns:repeat(auto-fill,minmax(115px,1fr))}.generate-bar button{min-width:125px}.reply-row{align-items:stretch}.reply-row button{padding:7px}.heading p:not(.eyebrow){max-width:220px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.mobile-home{display:none}.topbar>div{min-width:0}#preview-title{overflow-wrap:anywhere;min-width:0}dialog>header button{flex-shrink:0}@media(max-width:700px){.topbar .mobile-home{display:grid;place-items:center;width:28px;height:28px;background:#222;color:white;border-radius:7px;font-weight:700;flex-shrink:0}.topbar>div{gap:6px}.topbar select{width:125px}.topbar button{padding:6px 8px}}

@media(max-width:700px){.topbar select{width:110px}.topbar button{white-space:nowrap}#account{max-width:82px;overflow:hidden;text-overflow:ellipsis;min-width:0}.topbar>div:last-child{flex-shrink:0}}
.run-stage{margin:8px 0 0;font-size:12px;color:#333;font-weight:600}.run-timing{margin:4px 0;color:#777;font-size:11px}.workflow-roles{background:#fff;border:1px solid var(--line);border-radius:9px;padding:13px 15px;margin-bottom:16px}.workflow-roles-head{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-bottom:10px}.workflow-role-list{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.workflow-role{display:grid;grid-template-columns:1fr auto;gap:2px 8px;padding:9px 10px;background:var(--soft);border-left:3px solid #aaa;border-radius:5px}.workflow-role[data-state="已接入"]{border-left-color:#3c7d4f}.workflow-role-name{font-size:11px;font-weight:700}.workflow-role-purpose{font-size:10px;color:var(--muted)}.workflow-role-state{grid-row:1 / span 2;grid-column:2;align-self:center;font-size:10px;color:#777}.workflow-role[data-state="已接入"] .workflow-role-state{color:#28643a}@media(max-width:700px){.workflow-role-list{grid-template-columns:1fr}}
.pv-run-diagnostics{margin:8px 0 0;font-weight:400}.pv-run-diagnostic{margin:6px 0;color:var(--muted);line-height:1.55}.pv-run-error{margin:8px 0;padding:9px;border:1px solid #d9a5a5;border-radius:6px;background:#fff4f4;color:#7d2222;line-height:1.55;overflow-wrap:anywhere}.pv-run-error p{margin:4px 0;white-space:pre-wrap}.pv-run-log{margin-top:9px;padding-top:7px;border-top:1px solid var(--line)}.pv-run-log>summary{font-size:10px;color:var(--muted);cursor:pointer}.pv-run-event-list{display:grid;gap:5px;margin:7px 0 0;padding-left:18px;max-height:260px;overflow:auto;color:var(--muted)}.pv-run-event-item{font-size:10px;line-height:1.45;overflow-wrap:anywhere}.pv-run-event-item time{font-variant-numeric:tabular-nums}.pv-run-event-item p{margin:2px 0;color:var(--ink);white-space:pre-wrap}
.pv-resolution-fields{margin-top:12px}.pv-resolution-visual{display:flex;align-items:center;gap:18px;padding:14px;background:var(--soft);border:1px solid var(--line);border-radius:8px;min-height:134px}.pv-resolution-visual>p{flex:1;margin:0}#pv-output-frame{position:relative;flex-shrink:0;display:grid;place-items:center;width:176px;aspect-ratio:16/9;border:1px dashed #78858c;background:#e1e8eb;border-radius:3px}#pv-base-frame{display:grid;place-items:center;border:1px solid #4c687a;background:#fff9;color:#324d5b;width:100%;height:100%;font-size:11px}#pv-output-caption{position:absolute;bottom:3px;right:5px;font-size:9px;color:#4d6573}#pv-adopt-edge{margin-top:6px}@media(max-width:700px){.pv-resolution-visual{gap:12px}#pv-output-frame{width:128px}}
.guidance-controls{display:flex;align-items:end;flex-wrap:wrap;gap:10px 16px;margin-top:18px}.guidance-controls>label{width:160px;flex-shrink:0}.guidance-controls>p{flex:1;min-width:180px;margin:0 0 8px}.guidance-controls+.actions{margin-top:10px}@media(max-width:700px){.guidance-controls{align-items:start;gap:8px}.guidance-controls>label{width:150px}.guidance-controls>p{margin:4px 0 0}}
