*{box-sizing:border-box}body{margin:0;min-height:100vh;background:#f5f7fb;color:#182033;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.app-shell{min-height:100vh;display:grid;grid-template-columns:390px minmax(0,1fr)}.sidebar{background:#fff;border-right:1px solid #dde3ef;min-height:100vh;padding:20px;overflow-y:auto}.brand{display:flex;align-items:center;gap:12px;margin-bottom:16px}.brand-mark{width:44px;height:44px;border-radius:8px;background:#111827;color:#fff;display:grid;place-items:center}.brand h1,.panel h2,.tool-intro h2,.results h2{margin:0;letter-spacing:0}.brand h1{font-size:20px}.brand p,.tool-intro p{margin:3px 0 0;color:#657085;font-size:13px}.status-pill{display:flex;align-items:center;gap:8px;border-radius:8px;padding:10px 12px;margin-bottom:18px;background:#fff4e5;color:#9a5b00;border:1px solid #f3d2a1;font-size:13px;font-weight:700}.status-pill span{width:8px;height:8px;border-radius:50%;background:#f59e0b}.status-pill.ready{background:#ecfdf5;color:#047857;border-color:#a7f3d0}.status-pill.ready span{background:#10b981}.panel{border-top:1px solid #edf1f7;padding:18px 0}.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.panel h2{font-size:14px;text-transform:uppercase;color:#465168}.icon-btn{width:34px;height:34px;display:grid;place-items:center;border:1px solid #dde3ef;background:#fff;border-radius:8px;color:#334155}.icon-btn:hover{background:#f8fafc;border-color:#c7d2e2}.icon-btn.danger{color:#dc2626}.account-list{display:flex;flex-direction:column;gap:12px}.empty-action{width:100%;border:1px dashed #b7c2d4;border-radius:8px;background:#f8fafc;padding:18px;color:#334155;font-weight:700}.account-card{border:1px solid #dde3ef;border-radius:8px;padding:12px;background:#fbfcff}.account-card.valid{border-color:#7dd3aa;background:#f5fff9}.account-card.invalid{border-color:#f3aaaa;background:#fff8f8}.account-head,.account-actions{display:flex;align-items:center;gap:8px}.account-head input{flex:1;border:0;background:transparent;color:#111827;font-weight:800;outline:none}.account-card textarea,.prompt-box,.upload-row textarea{width:100%;border:1px solid #d7deea;border-radius:8px;background:#fff;color:#182033;outline:none;resize:vertical}.account-card textarea{height:86px;margin:10px 0;padding:10px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px}.account-actions button,.primary-btn,.media-row a{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #cfd8e8;border-radius:8px;background:#fff;color:#273449;padding:9px 12px;font-weight:800;text-decoration:none}.account-actions button:hover,.media-row a:hover{background:#eef4ff}.account-message{min-height:18px;margin:9px 0 0;color:#68748a;font-size:12px;line-height:1.4}.prompt-box{min-height:150px;padding:12px;margin-top:10px}.hint-row{color:#6b7280;font-size:12px;margin-top:8px}.workspace{padding:22px;overflow-y:auto}.topbar{display:flex;gap:8px;margin-bottom:16px}.tool-tab{display:inline-flex;align-items:center;gap:8px;border:1px solid #d8e0ed;background:#fff;border-radius:8px;padding:12px 14px;color:#475569;font-weight:800}.tool-tab.active{background:#111827;color:#fff;border-color:#111827}.settings-strip{display:flex;align-items:end;gap:16px;background:#fff;border:1px solid #dde3ef;border-radius:8px;padding:14px;margin-bottom:12px}.label{display:block;font-size:11px;text-transform:uppercase;font-weight:900;color:#64748b;margin-bottom:7px}.segmented{display:flex;border:1px solid #d8e0ed;border-radius:8px;overflow:hidden}.segmented button{border:0;background:#fff;padding:10px 14px;color:#475569;font-weight:900}.segmented button.active{background:#2563eb;color:#fff}.settings-strip input{width:86px;border:1px solid #d8e0ed;border-radius:8px;padding:10px 12px}.prompt-prefix{margin-left:auto;color:#475569;font-size:13px;padding-bottom:10px}.notice{border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;border-radius:8px;padding:12px 14px;margin-bottom:12px;font-weight:700}.tool-card,.results{background:#fff;border:1px solid #dde3ef;border-radius:8px;padding:18px}.tool-intro{display:flex;align-items:center;justify-content:space-between;gap:18px}.tool-title{display:flex;align-items:center;gap:12px}.primary-btn{background:#2563eb;border-color:#2563eb;color:#fff;min-height:42px}.primary-btn:hover{background:#1d4ed8}.i2v-panel{display:flex;flex-direction:column;gap:14px}.drop-zone{border:1px dashed #9fb0c8;border-radius:8px;background:#f8fafc;display:flex;justify-content:center;align-items:center;gap:10px;min-height:108px}.drop-zone label{font-weight:900;cursor:pointer}.drop-zone input{display:none}.upload-list{display:grid;gap:10px}.upload-row{display:grid;grid-template-columns:78px minmax(0,1fr) auto;gap:12px;padding:10px;border:1px solid #e1e7f0;border-radius:8px;background:#fbfcff}.upload-row img{width:78px;height:78px;border-radius:7px;object-fit:cover}.upload-row textarea{min-height:62px;margin-top:8px;padding:8px}.upload-row small{display:block;color:#64748b;margin-top:5px}.results{margin-top:16px}.results-head{display:flex;align-items:center;justify-content:space-between}.running-label{display:inline-flex;align-items:center;gap:7px;color:#2563eb;font-size:13px;font-weight:800}.stats-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:14px 0}.stat{border:1px solid #e0e7f1;border-radius:8px;padding:12px;background:#fbfcff}.stat span{display:block;color:#64748b;font-size:12px}.stat strong{display:block;font-size:22px;margin-top:3px}.progress{height:8px;background:#e6ecf5;border-radius:999px;overflow:hidden}.progress span{display:block;height:100%;background:#2563eb;transition:width .25s ease}.job-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px;margin-top:16px}.job-card{border:1px solid #dde3ef;border-radius:8px;padding:12px;background:#fff}.job-card.running{border-color:#93c5fd}.job-card.done{border-color:#86efac}.job-card.failed{border-color:#fca5a5}.job-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px;font-weight:900}.status-badge{border-radius:999px;padding:4px 9px;background:#e5e7eb;color:#475569;font-size:12px}.status-badge.running{background:#dbeafe;color:#1d4ed8}.status-badge.done{background:#dcfce7;color:#15803d}.status-badge.failed{background:#fee2e2;color:#b91c1c}.job-card p{margin:0 0 10px;color:#475569;line-height:1.45}.job-loading,.job-error{border-radius:8px;padding:9px 10px;font-size:13px}.job-loading{display:flex;align-items:center;gap:8px;background:#eff6ff;color:#1d4ed8}.job-error{background:#fff1f2;color:#be123c}.media-row{display:grid;grid-template-columns:64px 1fr 1fr;align-items:center;gap:8px;padding:8px;border:1px solid #e1e7f0;border-radius:8px;margin-top:8px;background:#fbfcff}.media-row img,.video-token{width:64px;height:48px;border-radius:6px;object-fit:cover;background:#e8eef7}.video-token{display:grid;place-items:center;color:#475569}.spin{animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:980px){.app-shell{grid-template-columns:1fr}.sidebar{min-height:auto;border-right:0;border-bottom:1px solid #dde3ef}.settings-strip,.tool-intro{align-items:stretch;flex-direction:column}.prompt-prefix{margin-left:0;padding-bottom:0}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
