:root{color-scheme:light;--bg: #f3f3f3;--surface: #ffffff;--surface-2: #f1f2f4;--field: #fbfbfb;--log-body: #f7f7f7;--text: #1b1b1b;--text-secondary: #616161;--stroke: rgba(0, 0, 0, .08);--stroke-strong: rgba(0, 0, 0, .16);--accent: #0078d4;--accent-soft: #e8f3fc;--accent-text: #ffffff;--critical: #c42b1c;--success: #0f7b0f;--running-row: #eaf4fd;--placeholder: rgba(255, 255, 255, .35)}[data-theme=dark]{color-scheme:dark;--bg: #1f1f1f;--surface: #2b2b2b;--surface-2: #323236;--field: #2d2d2d;--log-body: #2b2b2b;--text: #ffffff;--text-secondary: #c7c7c7;--stroke: rgba(255, 255, 255, .09);--stroke-strong: rgba(255, 255, 255, .18);--accent: #60cdff;--accent-soft: #17394f;--accent-text: #000000;--critical: #ff99a4;--success: #6ccb5f;--running-row: #1c3a4e;--placeholder: rgba(255, 255, 255, .06)}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--text);font-family:MiSansVF,PingFang SC,Microsoft YaHei,system-ui,sans-serif;font-size:13px;-webkit-font-smoothing:antialiased}h2{margin:0}.app{display:flex;flex-direction:column;height:100%}.topbar{flex:none;height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-bottom:1px solid var(--stroke)}.topbar-title{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar-right{display:flex;align-items:center;gap:8px}.workspace{flex:1;min-height:0;display:flex;gap:16px;padding:16px 24px 24px}.left-col{flex:none;width:480px;display:flex;flex-direction:column;gap:16px;min-height:0;overflow:hidden}.right-col{flex:1;min-width:0;display:flex;flex-direction:column;gap:16px;overflow-y:auto;padding-right:6px}@media(max-width:979px){.workspace{flex-direction:column;overflow-y:auto}.left-col,.right-col{width:100%;flex:none;overflow:visible;padding-right:0}}.section{display:flex;flex-direction:column;gap:8px}.section-title{font-size:12px;font-weight:700;letter-spacing:1.2px;color:var(--text-secondary)}.card{background:var(--surface);border:1px solid var(--stroke);border-radius:4px;padding:14px 16px;display:flex;flex-direction:column;gap:12px;transition:border-color .12s ease}.card.dropping{border-color:var(--accent);background:var(--accent-soft)}.locked{opacity:.55;pointer-events:none;transition:opacity .15s ease}.form-row{display:flex;align-items:center;gap:10px}.form-label{flex:none;width:92px;color:var(--text-secondary)}.form-control{flex:1;min-width:0}.form-actions{display:flex;justify-content:flex-end}.row{display:flex;align-items:center;gap:8px;min-width:0}.stack-8{display:flex;flex-direction:column;gap:8px}.input{width:100%;min-width:0;height:32px;padding:0 10px;border:1px solid var(--stroke-strong);border-radius:4px;background:var(--field);color:var(--text);font:inherit;font-size:13px;outline:none;transition:border-color .12s ease}.input:focus{border-color:var(--accent)}.input[readonly]{color:var(--text-secondary);overflow:hidden;text-overflow:ellipsis}select.input{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;padding-right:10px}.num-field{text-align:left}.btn{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;height:32px;padding:0 12px;border:1px solid var(--stroke-strong);border-radius:4px;background:var(--surface);color:var(--text);font:inherit;font-size:13px;cursor:pointer;transition:background-color .12s ease,border-color .12s ease}.btn:hover:not(:disabled){background:var(--surface-2)}.btn:disabled{opacity:.45;cursor:not-allowed}.btn-primary{background:var(--accent);border-color:transparent;color:var(--accent-text);font-weight:600}.btn-primary:hover:not(:disabled){background:var(--accent);filter:brightness(1.07)}.btn-subtle{background:transparent;border-color:transparent;color:var(--text-secondary);height:28px;padding:0 8px}.btn-subtle:hover:not(:disabled){background:var(--surface-2);color:var(--text)}.icon-btn{flex:none;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:1px solid transparent;border-radius:4px;background:transparent;color:var(--text-secondary);cursor:pointer;transition:background-color .12s ease,color .12s ease}.icon-btn:hover:not(:disabled){background:var(--surface-2);color:var(--text)}.icon-btn:disabled{opacity:.35;cursor:not-allowed}.icon-btn-danger:hover:not(:disabled){color:var(--critical)}.badge{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border:1px solid var(--stroke);border-radius:12px;font-size:12px;color:var(--text-secondary);white-space:nowrap}.badge-dot{width:6px;height:6px;border-radius:50%;background:var(--text-secondary)}.badge-accent .badge-dot{background:var(--accent)}.badge-ok .badge-dot{background:var(--success)}.badge-critical{color:var(--critical)}.badge-critical .badge-dot{background:var(--critical)}.switch{display:inline-flex;align-items:center;gap:8px;cursor:pointer;-webkit-user-select:none;user-select:none}.switch input{position:absolute;opacity:0;width:0;height:0}.switch-track{position:relative;flex:none;width:40px;height:20px;border:1px solid var(--stroke-strong);border-radius:10px;background:var(--field);transition:background-color .12s ease,border-color .12s ease}.switch-thumb{position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background:var(--text-secondary);transition:transform .12s ease,background-color .12s ease}.switch input:checked+.switch-track{background:var(--accent);border-color:transparent}.switch input:checked+.switch-track .switch-thumb{transform:translate(20px);background:var(--accent-text)}.switch-label{font-size:13px;color:var(--text)}.spinner{width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .72s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.preview-card{flex:none}.preview-frame{position:relative;width:100%;aspect-ratio:16 / 9;border-radius:4px;overflow:hidden}.preview-media{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:#14161c;cursor:zoom-in;outline:none}.preview-media img{max-width:100%;max-height:100%;object-fit:contain;transition:opacity .15s ease}.preview-media.dimmed img{opacity:.45}.preview-placeholder{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;padding:0 24px;border:1px solid var(--stroke);border-radius:4px;background:var(--placeholder);color:var(--text-secondary);text-align:center;line-height:1.8}.preview-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;gap:10px;background:#14161c8c;color:#fff}.preview-actions{display:flex;justify-content:flex-end}.log-card{flex:1;min-height:0;overflow:hidden}.log-shell{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}.log-head{position:relative;z-index:1;display:flex;align-items:center;gap:4px;min-width:0;padding:0 4px 0 10px;border:1px solid var(--stroke);border-bottom:none;border-radius:4px 4px 0 0;background:var(--surface-2)}.log-head-title{flex:1;min-width:0;overflow:hidden;font-size:12px;color:var(--text-secondary);white-space:nowrap;text-overflow:ellipsis}.log-head-actions{flex:none;display:inline-flex;align-items:center;gap:2px}.log-action{height:26px;padding:0 6px;gap:4px;font-size:12px;white-space:nowrap}.log-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:8px;border:1px solid var(--stroke);border-radius:0 0 4px 4px;background:var(--log-body);-webkit-user-select:text;user-select:text}@media(max-width:979px){.log-card{flex:none;height:280px;max-height:45vh}}.log-empty{margin:0;color:var(--text-secondary)}.log-line{display:flex;flex-wrap:wrap;gap:0 6px;margin:0;font-family:Menlo,Consolas,SFMono-Regular,monospace;font-size:11px;line-height:1.7;color:var(--text-secondary);word-break:break-word}.log-time{flex:none;color:var(--text-secondary);opacity:.75}.log-tag{flex:none;font-weight:600}.log-tag-op,.log-tag-preview{color:var(--accent, #4a7dff)}.log-tag-audio{color:#2f8f6f}.log-tag-engine{color:var(--text-secondary)}.log-tag-error{color:var(--critical, #d13438);font-weight:700}.log-text{flex:1;min-width:0}.audio-list{display:flex;flex-direction:column;gap:6px}.audio-row{display:flex;align-items:center;gap:8px;padding:2px 8px;border:1px solid var(--stroke);border-radius:4px;background:var(--surface-2)}.audio-index{flex:none;color:var(--text-secondary);font-size:12px}.audio-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.empty-box{display:flex;align-items:center;justify-content:center;width:100%;padding:12px;border:1px solid var(--stroke);border-radius:4px;color:var(--text-secondary);font-size:12px;text-align:center}.queue-row{display:flex;flex-direction:column;gap:4px;padding:6px 8px;border:1px solid var(--stroke);border-radius:4px;background:var(--surface-2)}.queue-row.running{background:var(--running-row);border-color:var(--accent)}.queue-head{display:flex;align-items:center;gap:8px}.queue-id{flex:none;color:var(--text-secondary);font-size:12px}.queue-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.queue-progress{display:flex;align-items:center;gap:8px}.progress{flex:1;height:4px;border-radius:2px;background:var(--stroke-strong);overflow:hidden}.progress-fill{display:block;height:100%;border-radius:2px;background:var(--accent);transition:width .12s linear}.queue-meta{color:var(--text-secondary);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.queue-status{display:flex;align-items:baseline;gap:6px;min-width:0}.status-text{flex:none;font-size:12px;color:var(--text-secondary)}.status-running{color:var(--accent)}.status-done{color:var(--success)}.status-error{color:var(--critical)}.queue-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}.expander-head{display:flex;align-items:center;gap:6px;width:100%;padding:4px 0;border:none;background:transparent;color:var(--text-secondary);font:inherit;font-size:12px;font-weight:700;letter-spacing:1.2px;cursor:pointer}.expander-head:hover{color:var(--text)}.chevron{transition:transform .12s ease}.chevron.open{transform:rotate(90deg)}.expander-body{gap:12px}.adv-grid{display:flex;flex-wrap:wrap;gap:12px}.adv-group{width:208px;display:flex;flex-direction:column;gap:6px;padding:8px 8px 10px;border:1px solid var(--stroke);border-radius:4px}.adv-label{font-size:12px;color:var(--text-secondary)}.adv-inline{display:flex;align-items:center;gap:6px}.adv-inline-label,.adv-unit{flex:none;font-size:12px;color:var(--text-secondary)}.adv-hint{margin:0;font-size:12px;line-height:1.6;color:var(--text-secondary)}.color-swatch{flex:none;width:26px;height:26px;padding:0;border:1px solid var(--stroke-strong);border-radius:4px;background:transparent;cursor:pointer}.logo-thumb{width:32px;height:32px;border-radius:50%;object-fit:cover}.error-text{margin:0;font-size:12px;line-height:1.6;color:var(--critical);word-break:break-word}.field-error,.notice-text{margin:0;font-size:12px;color:var(--critical)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:24px;background:#0009}.modal{display:flex;flex-direction:column;max-width:min(1200px,92vw);max-height:92vh;border:1px solid var(--stroke);border-radius:4px;background:var(--surface);overflow:hidden}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;border-bottom:1px solid var(--stroke)}.modal-title{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.modal-body{display:flex;align-items:center;justify-content:center;padding:16px;overflow:auto;background:#14161c}.modal-body img{max-width:100%;max-height:74vh;object-fit:contain}.modal-body video{max-width:100%;max-height:74vh}
