@charset "UTF-8";
@import url("./typography.css");
:root{--ink:#222432;--muted:#8b8d9e;--primary:#7867e9;--primary-dark:#6755d8;--line:#ececf2;--surface:#fff;--bg:#f7f8fb;--green:#3aaf84;--radius:16px;font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,-apple-system,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,label,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button,a,input,select,label[tabindex]{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,label:focus-visible{outline:2px solid var(--primary)}button{border:0}a{color:inherit;text-decoration:none}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}.hidden{display:none!important}.sidebar{position:fixed;inset:0 auto 0 0;width:226px;background:#191b27;color:#d0d0dc;padding:32px 21px 0;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:11px;color:white;font-size:18px;font-weight:650;letter-spacing:-.6px}.brand img{width:36px;height:36px}.brand small{display:block;font-size:8px;font-weight:500;letter-spacing:1.35px;color:#777989;margin-top:6px}.workspace-switch{display:flex;align-items:center;gap:10px;background:#242635;border:1px solid #303242;border-radius:10px;margin:34px 0 34px;padding:11px 10px;font-size:11px;font-weight:550}.workspace-avatar{display:grid;place-items:center;border-radius:7px;background:#8a77a2;color:#eee5f6;width:29px;height:29px;font-size:13px}.workspace-switch small{display:block;font-size:9px;color:#767a8f;margin-top:5px;font-weight:400}.switch-dots{margin-left:auto;color:#8b8d9f;font-size:17px}.nav-label{font-size:10px;color:#74768b;padding-left:12px;margin-bottom:12px;letter-spacing:2px}.nav-item{display:flex;align-items:center;gap:12px;padding:14px 12px;border-radius:9px;font-size:12px;margin-bottom:8px;color:#999caf;transition:background .18s,color .18s}.nav-item:hover{color:white;background:#262838}.nav-item.active{background:#7867e9;color:white;box-shadow:0 5px 15px #0c0c2330}.nav-item svg{width:18px;height:18px}.nav-tag{font-size:8px;letter-spacing:.7px;margin-left:auto;background:#ffffff24;padding:3px 5px;border-radius:4px}.nav-count{margin-left:auto;background:#2d3043;border-radius:5px;min-width:19px;text-align:center;padding:3px;font-size:9px}.nav-item.active .nav-count{background:#ffffff22}.sidebar-bottom{margin-top:auto}.pipeline-note{border:1px solid #313245;border-radius:12px;padding:17px 13px 14px;margin-bottom:24px;background:radial-gradient(ellipse at 100% 0,#39314990,transparent 75%),#232532}.tiny-orbit{width:31px;height:31px;border-radius:9px;background:#9d88ce1f;display:grid;place-items:center;color:#bba6ea;margin-bottom:14px}.tiny-orbit svg{width:18px}.pipeline-note strong{display:block;font-size:11px;font-weight:500;color:#d9d7e5}.pipeline-note p{font-size:10px;line-height:1.9;color:#797d91;margin:9px 0 13px}.pipeline-note>span{font-size:9px;font-family:monospace;letter-spacing:1px;color:#a094bb}.profile{border-top:1px solid #303242;padding:20px 0;display:flex;align-items:center;gap:10px;font-size:11px}.profile-avatar{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#d7ccba;color:#73685d;font-size:12px}.profile small{display:block;color:#76798e;font-size:9px;margin-top:4px}.profile-dot{width:5px;height:5px;border-radius:50%;background:#a1a5b5;margin-left:auto}.main-shell{margin-left:226px}.topbar{height:79px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 42px;background:#fff}.breadcrumb{font-size:11px;color:#a0a1af;display:flex;align-items:center;gap:15px}.breadcrumb span{color:#d0d0db}.breadcrumb strong{font-weight:500;color:#535565}.topbar-right{display:flex;align-items:center;gap:17px}.connection-status{display:flex;align-items:center;gap:7px;padding:7px 10px;background:transparent;color:#868797;font-size:10px;border-radius:7px}.connection-status:hover{background:var(--bg)}.connection-status i,.profile-dot,.format-dot{width:6px;height:6px;display:block;flex-shrink:0;background:#b6b6c4;border-radius:50%}.connection-status.connected i{background:var(--green);box-shadow:0 0 0 3px #3aaf8412}.connection-status.connected{color:#4f7668}.topbar-divider{height:17px;border-left:1px solid var(--line)}.version-badge{font-size:8px;letter-spacing:1.3px;color:#9b9aaa}.top-avatar{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#f0edf8;color:#827492;font-size:11px}.page-content{max-width:1510px;margin:auto;padding:36px 42px 0}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:27px;gap:24px}.eyebrow{display:flex;gap:7px;align-items:center;color:#9291a3;letter-spacing:2.5px;font-size:8px;font-weight:550;margin-bottom:14px}.eyebrow span{width:4px;height:4px;border-radius:50%;background:var(--primary)}h1{font-size:29px;font-weight:650;letter-spacing:-1px;margin:0 0 11px;line-height:1.4}h1>span{color:var(--primary)}.page-heading p{margin:0;color:#9696a5;font-size:11px;line-height:1.8}.heading-mark{display:flex;align-items:center;gap:9px;border:1px solid #e6e1f5;border-radius:20px;padding:8px 12px;color:#a197bd;background:#f1eefb;font-size:9px;white-space:nowrap}.heading-mark svg{width:13px;height:13px}.connection-banner{display:flex;align-items:center;gap:13px;background:#f0edfa;border:1px solid #e6e0f5;border-radius:11px;padding:13px 17px;margin-bottom:25px}.banner-icon{display:grid;place-items:center;width:34px;height:34px;background:#e6dff6;border-radius:9px;color:#8b74b2}.banner-icon svg{width:17px;height:17px}.connection-banner strong{display:block;font-size:11px;color:#756b95;font-weight:550}.connection-banner p{font-size:10px;margin:5px 0 0;color:#a197b5}.text-button{display:flex;gap:9px;align-items:center;background:none;color:#827096;font-size:10px;margin-left:auto;white-space:nowrap}.text-button svg{width:13px;height:13px}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 3px 8px #14143702}.studio-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:24px;align-items:start}.creation-panel{padding:23px 23px 0;overflow:hidden}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:25px}.panel-heading h2,.jobs-list-heading h2{font-size:14px;font-weight:600;margin:0}.panel-heading p{font-size:9px;margin:8px 0 0;color:#a2a1ae;line-height:1.6}.panel-heading-icon{height:30px;width:30px;display:grid;place-items:center;border-radius:9px;background:#f4f1fc;color:#b7a2dc}.panel-heading-icon svg{width:15px;height:15px}.form-section{padding-bottom:24px;border-bottom:1px solid #f1f0f5;margin-bottom:23px}.section-label{display:flex;gap:9px;align-items:center;margin-bottom:15px}.section-label>span{font-size:9px;font-family:monospace;background:#f4f2fa;color:#a391c4;border-radius:5px;min-width:22px;height:20px;display:grid;place-items:center}.section-label h3{font-size:11px;font-weight:550;margin:0}.segmented{display:flex;padding:4px;background:#f5f5f8;border-radius:8px;gap:3px;margin-bottom:15px}.segmented button{display:flex;align-items:center;justify-content:center;gap:7px;font-size:10px;flex:1;color:#9694a5;background:transparent;border-radius:5px;padding:9px 3px;transition:background .2s}.segmented svg{height:13px;width:13px}.segmented button.selected{color:#7764a0;background:white;box-shadow:0 2px 5px #2224320a}.dropzone{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:155px;border:1px dashed #ded9ed;border-radius:10px;background:#fcfbff;cursor:pointer;position:relative;transition:border-color .2s,background .2s}.dropzone:hover,.dropzone.drag-over{border-color:var(--primary);background:#f5f1ff}.dropzone input,.batch-file-label input[type=file]{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.drop-icon{display:grid;place-items:center;width:39px;height:39px;border-radius:12px;background:#f0eafb;color:#b39bcc;margin-bottom:14px}.drop-icon svg{width:23px;height:23px}.dropzone strong{font-size:10px;font-weight:500;color:#9791a9}.dropzone strong span{color:#8a73b4;margin-left:2px}.dropzone small{font-size:8px;color:#b7b2c3;margin-top:8px;line-height:1.6;text-align:center}.selected-file{min-height:75px;padding:15px 11px;border:1px solid #e9e2f7;border-radius:10px;background:#faf8ff;display:flex;align-items:center;gap:9px}.selected-file-icon{color:#a88bca;background:#eee6f8;width:33px;height:33px;border-radius:8px;display:grid;place-items:center}.selected-file>div{min-width:0;flex:1}.selected-file strong{font-size:10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:block;max-width:160px}.selected-file small{font-size:8px;color:#a6a0b3;display:block;margin-top:7px}.icon-button{display:grid;place-items:center;width:26px;height:26px;color:#a4a3b1;background:transparent;border-radius:5px}.icon-button:hover{background:#eeeeF5;color:#6d617e}.icon-button svg{width:14px;height:14px}.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:13px}.field-pair label,.settings-form>label,.batch-file-label,.settings-form details label{display:flex;flex-direction:column;gap:9px;font-size:9px;color:#9a98a8}.field-pair select,.field-pair input,.settings-form input{height:37px;border:1px solid #e9e7ef;border-radius:7px;background:white;color:#77717f;padding:0 11px;width:100%;font-size:10px}.field-pair select{cursor:pointer}.format-line{display:flex;align-items:center;gap:6px;font-size:8px;color:#ada8b7;margin-top:12px}.format-dot{width:4px;height:4px;background:#c0b8d6}.format-line>span:last-child{margin-left:auto;font-size:8px;color:#a99bbd;background:#f4f1f8;padding:3px 5px;border-radius:4px}.worker-section{border:0;margin-bottom:0;padding-bottom:21px}.worker-ready{display:flex;align-items:center;gap:9px;min-height:56px;border:1px solid #eeedf4;border-radius:9px;padding:11px;background:#fdfdfe}.engine-icon{width:29px;height:29px;border-radius:8px;display:grid;place-items:center;background:#f1eff7;color:#b5aaca}.engine-icon svg{height:14px;width:14px}.worker-ready strong{font-size:10px;display:block;font-weight:500;color:#82798f}.worker-ready small{display:block;font-size:8px;color:#b1aab9;margin-top:5px}.worker-ready>i{width:5px;height:5px;border-radius:50%;background:#c9c3d0;margin-left:auto}.worker-ready.available{background:#fbfdfc;border-color:#e4f0e9}.worker-ready.available>i{background:var(--green)}.worker-ready.available .engine-icon{background:#edf6f0;color:#71a28b}.creation-actions{padding-bottom:18px}.primary-button{display:flex;align-items:center;justify-content:center;gap:9px;border-radius:8px;background:var(--primary);color:#fff;font-size:11px;min-height:43px;width:100%;font-weight:550;padding:12px 14px;box-shadow:0 3px 7px #7765e915;transition:background .2s,transform .2s}.primary-button:not(:disabled):hover{background:var(--primary-dark);transform:translateY(-1px)}.primary-button svg{width:15px;height:15px}.primary-button .button-arrow{margin-left:auto;width:14px}.creation-actions>p{font-size:8px;color:#b5aebe;display:flex;gap:4px;align-items:center;justify-content:center;margin:11px 0 0}.creation-actions>p svg{width:10px;height:10px}.session-buttons{display:flex;flex-direction:column;gap:8px}.secondary-button{display:flex;align-items:center;justify-content:center;gap:7px;padding:10px 14px;border-radius:8px;background:white;border:1px solid #e6e4ee;color:#8f849e;font-size:10px;min-height:37px}.secondary-button:hover{background:#faf8ff}.secondary-button svg{width:13px;height:13px}.mic-source{min-height:157px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fcfbff;border:1px dashed #ded9ed;border-radius:10px;text-align:center}.mic-ring{width:41px;height:41px;border-radius:50%;background:#efe9f9;color:#a98dc5;display:grid;place-items:center;margin-bottom:12px}.mic-ring svg{width:18px;height:18px}.mic-source strong{font-size:10px;font-weight:500;color:#9586a5}.mic-source p{font-size:8px;color:#ada3ba;line-height:1.8;margin:8px 0 0}.preview-column{min-width:0}.preview-card{background:#1d1e2a;border:1px solid #272836;border-radius:var(--radius);overflow:hidden;box-shadow:0 8px 25px #1c203511}.preview-toolbar{height:47px;display:flex;align-items:center;padding:0 18px;border-bottom:1px solid #ffffff06;gap:10px;color:#868398;font-size:8px}.live-label{display:flex;align-items:center;gap:7px;font-size:8px;letter-spacing:1.3px;color:#aaa1bd;font-weight:550}.live-label i{width:4px;height:4px;background:#b396db;border-radius:50%;box-shadow:0 0 0 3px #b396db0d}.preview-toolbar>span:nth-child(2){margin-left:auto;font-size:8px;color:#625f76}.preview-toolbar .icon-button:hover{background:#ffffff0a;color:#c5badb}.preview-surface{position:relative;background:#1b1b27;overflow:hidden}.preview-placeholder{height:100%;position:relative;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 45% 40%,#40365190,transparent 65%),linear-gradient(135deg,#1c1c28,#222333)}.ambient{position:absolute;border-radius:50%;filter:blur(45px);opacity:.15;pointer-events:none}.ambient-one{width:210px;height:210px;background:#9e72de;left:8%;top:-30px}.ambient-two{width:200px;height:200px;background:#5a666b;right:-30px;bottom:-70px}.portrait-placeholder{height:93%;width:auto;position:absolute;bottom:-3%;left:50%;transform:translateX(-50%);max-width:90%;opacity:.42;stroke:none;mask-image:linear-gradient(#000 55%,transparent 97%)}.placeholder-copy{position:relative;margin-top:43%;text-align:center;color:#b3a6c6;width:100%;padding:0 20px}.placeholder-chip{display:inline-flex;gap:6px;align-items:center;border:1px solid #b29bce24;background:#77648919;border-radius:15px;padding:5px 9px;font-size:7px;letter-spacing:1.7px;color:#bcacce}.placeholder-chip svg{width:11px;height:11px}.placeholder-copy h2{font-size:17px;font-weight:500;margin:13px 0 7px;color:#c1b4d2;letter-spacing:1px}.placeholder-copy p{font-size:8px;color:#736c84;margin:0;letter-spacing:.3px}.preview-footer{height:43px;padding:0 19px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid #ffffff06;font-size:8px;color:#615d73}.preview-format{display:flex;gap:10px;align-items:center;color:#8e829f;letter-spacing:.3px}.preview-format>span{color:#50485e}.preview-footer-status{display:flex;align-items:center;gap:6px}.preview-footer-status>i{width:3px;height:3px;background:#7b6b91;border-radius:50%}.preview-surface video{width:100%;height:100%;display:block;object-fit:contain;position:absolute;inset:0;background:#111119}.video-overlay{position:absolute;top:15px;left:15px;background:#14111cc9;border:1px solid #ffffff15;border-radius:20px;color:#cfc2e8;padding:6px 9px;font-size:8px;display:flex;gap:6px;align-items:center;pointer-events:none}.pulse-dot{width:5px;height:5px;border-radius:50%;background:#b7e5ca;box-shadow:0 0 0 3px #b7e5ca10;animation:pulse 1.8s infinite}.audio-timeline{margin-top:18px;padding:17px 19px 12px}.timeline-heading{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#9b93ab;margin-bottom:8px}.timeline-heading>span{display:flex;gap:7px;align-items:center}.timeline-heading svg{width:13px;height:13px;color:#baa5d7}.timeline-heading strong{font-size:8px;color:#b4acbf;font-weight:400;font-family:monospace}#waveform{display:block;width:100%;height:48px}.timeline-labels{display:flex;justify-content:space-between;font-size:7px;color:#c2bacd;font-family:monospace;margin-top:2px}.session-metrics{margin-top:17px;display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.metric{display:flex;align-items:center;gap:10px;padding:17px 15px;min-height:81px}.metric-icon{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:#f3eefc;color:#b19ccc}.metric-icon svg{width:15px;height:15px}.metric-icon.green{background:#eaf5ef;color:#92baa4}.metric-icon.peach{background:#faf0e8;color:#d3b08f}.metric small{font-size:8px;color:#a9a1b4;display:block;margin-bottom:6px}.metric strong{display:flex;align-items:baseline;gap:5px;font-size:18px;color:#8d819b;font-weight:550;line-height:1}.metric em{font-size:7px;font-style:normal;font-weight:400;color:#b5adbf}.studio-bottom{display:flex;align-items:center;justify-content:space-between;font-size:8px;color:#b7b2c3;margin:24px 0 0;padding:14px 0;border-top:1px solid #eae7f1}.studio-bottom span:first-child{display:flex;gap:6px;align-items:center}.studio-bottom i{width:4px;height:4px;border-radius:50%;background:#b49cc9}.app-footer{max-width:1510px;margin:14px auto 0;padding:17px 42px 24px;display:flex;justify-content:space-between;font-size:8px;color:#b5b1c0}.app-footer>span:first-child{color:#a097b0;font-weight:600;font-size:9px}.app-footer>span:last-child{letter-spacing:1.1px;font-size:7px}.session-notice{font-size:10px;line-height:1.8;border:1px solid #e4ece8;background:#f0f8f3;color:#658670;padding:12px 15px;border-radius:10px;margin-top:15px;overflow-wrap:anywhere}.session-notice.error{background:#fff3f0;color:#ae7469;border-color:#f4ddd6}.jobs-layout,.settings-layout{display:grid;grid-template-columns:340px minmax(0,1fr);gap:24px;align-items:start}.batch-form,.settings-form{padding:24px}.batch-file-label{position:relative;margin-bottom:20px;cursor:pointer}.compact-drop{display:flex;align-items:center;gap:10px;border:1px dashed #ded9ed;border-radius:8px;background:#fcfbff;min-height:68px;padding:14px 12px;color:#a590be}.compact-drop:hover{border-color:var(--primary)}.compact-drop svg{height:21px;width:21px}.compact-drop strong{font-size:9px;color:#a195ae;font-weight:400;line-height:1.7;overflow-wrap:anywhere}.batch-form .field-pair{margin-bottom:23px}.type-badge{border-radius:5px;background:#f1eef9;color:#ae9ec9;font-size:8px;padding:5px 6px;letter-spacing:.7px}.form-help{font-size:9px;line-height:1.9;color:#a9a2b5;margin:15px 0 0;overflow-wrap:anywhere}.form-help.error{color:#ba7e71}.jobs-list,.engines-card{min-height:320px;padding:23px}.jobs-list-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.jobs-list-heading>span{font-size:9px;color:#aaa4b5}.empty-state{min-height:225px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:25px}.empty-state>span{width:47px;height:47px;display:grid;place-items:center;background:#f6f3fb;color:#c3b1d8;border-radius:13px;margin-bottom:18px}.empty-state>span svg{width:22px;height:22px}.empty-state h3{font-size:12px;font-weight:500;color:#a096ac;margin:0 0 10px}.empty-state p{font-size:9px;color:#b5aebe;margin:0;line-height:1.9}.job-item{padding:17px 0;border-top:1px solid #f1edf7}.job-item-heading{display:flex;align-items:center;gap:9px;font-size:11px;color:#8f7ca3}.job-item-id{font-family:monospace;color:#9f97ac;font-size:9px}.status-pill{font-size:8px;padding:4px 6px;border-radius:5px;background:#f0ecf9;color:#a28cbf;margin-left:auto;white-space:nowrap}.status-pill.succeeded{background:#eaf5ee;color:#88ae92}.status-pill.failed,.status-pill.cancelled{background:#fbedeb;color:#ba8b81}.job-meta{display:flex;gap:14px;margin:11px 0;font-size:8px;color:#b5acbf}.job-progress{height:4px;background:#f2edf8;border-radius:4px;overflow:hidden}.job-progress>span{display:block;height:100%;background:#b7a0d6;border-radius:4px;transition:width .4s}.job-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-top:12px}.job-actions button,.job-actions a{display:flex;align-items:center;gap:5px;padding:6px 9px;border-radius:5px;background:#f5f0fc;color:#ac94c5;font-size:8px}.job-actions .job-cancel{background:#faf1ef;color:#bc978e}.job-actions svg{width:11px;height:11px}.job-error{font-size:9px;color:#b7877c;margin:10px 0 0;line-height:1.7;overflow-wrap:anywhere}.settings-form>label{margin:22px 0}.settings-form input{height:41px;color:#776882;font-size:10px}.settings-form label small{font-size:8px;color:#b2a7bd;line-height:1.7}.settings-form details{margin:20px 0;font-size:9px;color:#a294b2}.settings-form summary{cursor:pointer}.settings-form details label{margin-top:15px}.worker-item{display:flex;align-items:flex-start;gap:11px;padding:17px 0;border-top:1px solid #f1edf7}.worker-item .engine-icon{height:35px;width:35px;background:#edf7f0;color:#9dbea8}.worker-item>div{flex:1;min-width:0}.worker-item strong{font-size:11px;color:#91839e;font-weight:500;overflow-wrap:anywhere}.worker-item p{font-size:8px;color:#b1a4bc;margin:8px 0 0;line-height:1.8}.worker-item>span{border-radius:5px;background:#eef6f0;color:#99b6a0;padding:4px 6px;font-size:8px;white-space:nowrap}.toast{position:fixed;bottom:25px;left:calc(50% + 100px);transform:translateX(-50%);z-index:100;background:#363141;color:#f3edf9;padding:13px 19px;border-radius:9px;box-shadow:0 7px 25px #17112426;font-size:11px;max-width:80vw;line-height:1.6;text-align:center}.toast.error{background:#87665f}.busy .dropzone,.busy .segmented,.busy .field-pair{pointer-events:none;opacity:.7}.busy .mic-ring{animation:pulse 1.8s infinite}@keyframes pulse{50%{box-shadow:0 0 0 7px #b09acd14}}@media(min-width:1500px){.studio-layout{grid-template-columns:350px minmax(0,1fr)}.creation-panel{padding:26px 27px 0}.page-content{padding-top:43px}.topbar{height:84px}.page-heading{margin-bottom:32px}h1{font-size:32px}.form-section{padding-bottom:26px;margin-bottom:25px}.worker-section{margin:0;padding-bottom:24px}.preview-toolbar{height:50px}.audio-timeline{margin-top:22px;padding-top:20px;padding-bottom:15px}.session-metrics{margin-top:20px}.metric{min-height:89px}.creation-actions{padding-bottom:22px}.creation-actions .primary-button{min-height:46px}}@media(max-width:1190px){.sidebar{width:204px;padding-left:17px;padding-right:17px}.main-shell{margin-left:204px}.topbar{padding:0 26px}.page-content{padding:28px 26px 0}.app-footer{padding-left:26px;padding-right:26px}.studio-layout{grid-template-columns:292px minmax(0,1fr);gap:18px}.creation-panel{padding:21px 19px 0}.placeholder-copy{margin-top:56%}.metric{padding:15px 10px;gap:7px}.metric-icon{width:25px;height:25px}.session-metrics{gap:9px}h1{font-size:26px}.heading-mark{display:none}.jobs-layout,.settings-layout{grid-template-columns:300px minmax(0,1fr);gap:18px}.batch-form,.settings-form,.jobs-list,.engines-card{padding:20px}}@media(max-width:950px){.sidebar{width:76px;padding:24px 12px 0}.brand{justify-content:center}.brand>span,.workspace-switch,.nav-label,.nav-item:not(.active) .nav-count,.nav-item .nav-tag,.sidebar-bottom{display:none}.brand img{width:34px;height:34px}.sidebar nav{margin-top:35px}.nav-item{justify-content:center;padding:13px 0;font-size:0}.nav-item svg{width:20px;height:20px}.nav-item .nav-count{display:none}.main-shell{margin-left:76px}.studio-layout{grid-template-columns:280px minmax(0,1fr)}.placeholder-copy h2{font-size:14px}.placeholder-copy p{line-height:1.7;font-size:7px}.session-metrics{grid-template-columns:1fr}.metric{padding:12px 14px;min-height:54px}.metric>div{display:flex;align-items:center;justify-content:space-between;flex:1}.metric small{margin-bottom:0}.metric strong{font-size:16px}.metric-icon{width:24px;height:24px}.app-footer>span:last-child{display:none}.connection-banner{padding:12px}.connection-banner p{max-width:300px;line-height:1.6}.jobs-layout,.settings-layout{grid-template-columns:280px minmax(0,1fr)}}@media(max-width:760px){.main-shell{margin-left:60px}.sidebar{width:60px;padding:22px 8px 0}.topbar{height:64px;padding:0 19px}.breadcrumb{font-size:9px;gap:9px}.topbar-right{gap:8px}.topbar-divider,.version-badge,.top-avatar{display:none}.connection-status{font-size:8px;padding:7px 0}.page-content{padding:25px 18px 0}.page-heading{margin-bottom:19px}.eyebrow{font-size:7px;margin-bottom:12px;letter-spacing:1.8px}h1{font-size:23px;letter-spacing:-.6px}.page-heading p{font-size:9px;line-height:1.9;max-width:340px}.studio-layout,.jobs-layout,.settings-layout{grid-template-columns:1fr;gap:18px}.creation-panel{padding:21px 21px 0}.creation-panel .panel-heading{margin-bottom:20px}.form-section{padding-bottom:20px;margin-bottom:20px}.worker-section{padding-bottom:18px;margin:0}.audio-dropzone{min-height:130px}.placeholder-copy{margin-top:45%}.session-metrics{grid-template-columns:repeat(3,1fr)}.metric{min-height:72px;padding:13px 10px}.metric>div{display:block}.metric small{margin-bottom:7px;font-size:7px}.metric strong{font-size:15px}.metric-icon{display:none}.audio-timeline{margin-top:14px}.session-metrics{margin-top:13px}.connection-banner{align-items:flex-start;gap:9px;margin-bottom:18px}.connection-banner strong{font-size:9px}.connection-banner p{font-size:8px;max-width:230px}.banner-icon{width:26px;height:26px}.banner-icon svg{width:14px}.connection-banner .text-button{font-size:8px;margin-top:5px;gap:4px;padding:0}.connection-banner .text-button svg{width:10px}.studio-bottom{margin-top:17px;font-size:7px}.studio-bottom>span:last-child{display:none}.app-footer{padding:15px 18px 21px;margin-top:8px;font-size:7px;gap:10px}.toast{left:calc(50% + 25px);font-size:10px}.settings-form,.batch-form,.jobs-list,.engines-card{padding:21px}.page-heading>.secondary-button{font-size:8px;white-space:nowrap;padding:8px}.jobs-list,.engines-card{min-height:280px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Match selected/decoded video dimensions at every responsive breakpoint. */
.preview-card {
  width: 100%;
  max-width: max(260px, calc(min(70svh, 680px) * var(--preview-ratio, 1)));
  margin-inline: auto;
}
.preview-surface {
  aspect-ratio: var(--preview-ratio, 1);
  min-height: 0;
}
.preview-placeholder {
  position: absolute;
  inset: 0;
}
.preview-surface:fullscreen {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.preview-toolbar { gap: 8px; padding-inline: 12px; }
.preview-toolbar > #preview-state { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-sound { flex-shrink: 0; padding: 5px 7px; border: 1px solid #ffffff20; border-radius: 6px; background: #ffffff08; color: #d4c7e8; font-size: 9px; white-space: nowrap; }
.preview-sound:hover:not(:disabled) { background: #ffffff15; }

.worker-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.worker-overview-item { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.worker-overview-item > span { font-size: 12px; color: #8f849c; }
.worker-overview-item > strong { color: #746385; font-size: 28px; font-weight: 600; line-height: 1.2; }
.worker-overview-item > small { font-size: 10px; color: #a69aaf; line-height: 1.6; }
.worker-monitor-toolbar { display: flex; gap: 16px; align-items: end; margin: 24px 0 16px; }
.worker-monitor-search { flex: 1; max-width: 430px; }
.worker-monitor-toolbar label { display: block; color: #8f849c; font-size: 11px; margin-bottom: 8px; }
.worker-monitor-toolbar input, .worker-monitor-toolbar select { width: 100%; border: 1px solid #e5dfef; border-radius: 8px; background: white; padding: 11px 12px; font-size: 12px; color: #84718f; min-height: 40px; }
.worker-monitor-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #a095ad; font-size: 10px; margin-bottom: 16px; }
.worker-monitor-meta > div { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: flex-end; }
.worker-status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.worker-status-card { padding: 22px; min-width: 0; }
.worker-status-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.worker-status-heading h2 { font-size: 15px; font-weight: 550; color: #83718f; overflow-wrap: anywhere; line-height: 1.5; margin: 9px 0 0; }
.worker-online { display: inline-flex; gap: 6px; align-items: center; color: #86a893; font-size: 10px; }
.worker-online i { width: 5px; height: 5px; background: #94bda3; border-radius: 50%; }
.worker-state { font-size: 10px; border-radius: 6px; padding: 5px 8px; white-space: nowrap; }
.worker-state.idle { background: #ebf5ef; color: #83a38d; }
.worker-state.running { background: #f0ebfb; color: #a08abb; }
.worker-state.full { background: #fbf0e6; color: #bc987b; }
.worker-task-list { display: flex; flex-wrap: wrap; gap: 7px; min-height: 26px; margin: 18px 0 22px; }
.worker-task { background: #f6f3fa; color: #a493b3; border-radius: 5px; padding: 5px 7px; font-size: 10px; overflow-wrap: anywhere; }
.worker-task.realtime { background: #eeeafa; color: #a08bbe; }
.worker-capacity { display: flex; gap: 10px; color: #a597ad; align-items: center; font-size: 10px; }
.worker-capacity strong { margin-left: auto; color: #8a7699; font-size: 12px; font-weight: 550; }
.worker-capacity-bar { height: 5px; border-radius: 5px; background: #f0ebf7; overflow: hidden; margin-top: 10px; }
.worker-capacity-bar > span { display: block; height: 100%; background: #b4a0d5; border-radius: inherit; transition: width .3s; }
.worker-breakdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 21px 0 0; }
.worker-breakdown dt { font-size: 9px; color: #aa9eb5; margin-bottom: 8px; }
.worker-breakdown dd { font-size: 18px; color: #91809e; margin: 0; }
.worker-status-empty { grid-column: 1 / -1; padding: 50px 24px; text-align: center; }
.worker-status-empty > svg { width: 32px; height: 32px; color: #c0b1d8; }
.worker-status-empty h2 { font-size: 15px; color: #9481a2; margin: 16px 0 10px; }
.worker-status-empty p { font-size: 11px; color: #a99ab5; line-height: 1.9; }
.worker-status-empty > a { display: inline-flex; margin-top: 12px; }
.worker-monitor-help { font-size: 10px; color: #a99eb4; line-height: 1.9; margin: 18px 0 0; }
#worker-status-error { margin: 0 0 16px; }
.talk-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .85fr); gap: 24px; align-items: start; }
.talk-conversation, .talk-preview-column { min-width: 0; }
.talk-provider { padding: 18px; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.talk-provider > div { flex: 1; min-width: 0; }
.talk-provider strong { font-size: 12px; color: #8b7899; }
.talk-provider p { margin: 8px 0 0; font-size: 10px; color: #a496ad; line-height: 1.8; overflow-wrap: anywhere; }
.talk-provider button { flex-shrink: 0; }
.talk-form { padding: 22px; }
.talk-form > label { font-size: 13px; color: #8d799d; display: block; margin-bottom: 12px; }
.talk-form textarea { width: 100%; min-height: 115px; resize: vertical; padding: 13px; border: 1px solid #e5deef; border-radius: 9px; background: #fdfcff; color: #81708f; font: inherit; font-size: 13px; line-height: 1.9; outline-offset: 3px; }
.talk-composer-meta { display: flex; justify-content: space-between; gap: 10px; margin: 9px 0 18px; font-size: 9px; color: #b0a5bb; }
.talk-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.talk-controls label { min-width: 0; font-size: 10px; color: #a090ad; }
.talk-controls select { display: block; width: 100%; border: 1px solid #e5deef; border-radius: 8px; padding: 9px; font-size: 11px; color: #94809f; background: white; margin-top: 8px; }
#talk-cancel { width: 100%; margin-top: 8px; }
.talk-form > .talk-prompt-label { margin-top: 18px; font-size: 11px; }
#talk-prompt { min-height: 76px; margin-bottom: 18px; font-size: 11px; }
.realtime-prompt-label { display: block; margin: 0 0 20px; color: #9c8ba9; font-size: 11px; }
#realtime-prompt { display: block; margin-top: 9px; width: 100%; padding: 10px; min-height: 72px; resize: vertical; border: 1px solid #e5deef; border-radius: 8px; background: #fdfcff; font: inherit; font-size: 11px; color: #8c799a; line-height: 1.8; }
.talk-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.talk-stages > div { display: flex; flex-direction: column; gap: 9px; padding: 15px; }
.talk-stages span { font-size: 10px; color: #ad9db9; }
.talk-stages strong { font-size: 11px; color: #b2a7bc; font-weight: 500; }
.talk-stages strong[data-state="running"] { color: #9a81c1; }
.talk-stages strong[data-state="done"] { color: #82a691; }
.talk-stages strong[data-state="error"] { color: #bf9484; }
.talk-transcript { padding: 22px; min-height: 180px; }
.talk-transcript-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.talk-transcript h2 { font-size: 14px; color: #8b779a; margin: 0; }
.talk-transcript-heading > span, #talk-answer-empty { font-size: 10px; color: #ac9bb8; line-height: 1.8; }
#talk-answer-empty { margin-top: 22px; }
.talk-question-bubble { color: #a18bae; font-size: 12px; line-height: 1.8; border-left: 2px solid #d8caed; padding-left: 12px; margin-top: 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.talk-question-bubble:empty { display: none; }
.talk-answer { font-size: 14px; color: #887595; line-height: 2; white-space: pre-wrap; overflow-wrap: anywhere; }
.talk-preview-column { position: sticky; top: 22px; }
.talk-preview-copy { text-align: center; padding: 28px; color: #a390b8; }
.talk-preview-copy > svg { width: 38px; height: 38px; opacity: .7; }
.talk-preview-copy h2 { font-size: 15px; line-height: 1.7; font-weight: 500; }
.talk-preview-copy p { font-size: 10px; line-height: 2; color: #7f6f93; }
.talk-clock { padding: 16px; margin-top: 16px; display: flex; gap: 16px; justify-content: space-between; color: #ad9cb9; font-size: 10px; }
.talk-clock span { display: flex; flex-direction: column; gap: 8px; }
.talk-clock strong { color: #9781a4; font-size: 13px; font-weight: 500; }
.talk-latency { display: flex; gap: 16px; justify-content: space-between; margin-top: 16px; color: #ad9db9; font-size: 10px; }
.talk-latency > div { display: flex; flex-direction: column; gap: 8px; }
.talk-latency strong { font-size: 12px; color: #9780a6; font-weight: 500; }
.talk-api { margin-top: 18px; padding: 18px 22px; color: #a591b3; font-size: 11px; }
.talk-api summary { cursor: pointer; }
.talk-api p { line-height: 1.9; }
.talk-api pre { font-size: 10px; overflow-x: auto; background: #faf8fe; padding: 12px; border-radius: 8px; line-height: 1.9; }
@media (max-width: 900px) { .talk-layout { grid-template-columns: 1fr; } .talk-preview-column { position: static; } }
@media (max-width: 1100px) { .worker-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); } .worker-status-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .worker-overview { gap: 10px; } .worker-overview-item { padding: 16px 13px; } .worker-overview-item > strong { font-size: 23px; } .worker-monitor-toolbar { flex-wrap: wrap; gap: 12px; } .worker-monitor-search { flex-basis: 100%; } .worker-monitor-meta { align-items: start; } .worker-monitor-meta > div { flex-direction: column; text-align: right; } .worker-status-card { padding: 18px; } .worker-breakdown { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
/* Conversation presets share the existing composer grid. */
.talk-preset-variables,.talk-plan{border:1px solid var(--line,#e9e5ee);border-radius:12px;padding:12px;margin:4px 0 14px}
.talk-preset-variables summary,.talk-plan summary{cursor:pointer;font-size:13px;font-weight:600}
.talk-preset-variables[open] summary,.talk-plan[open] summary{margin-bottom:12px}
.talk-preset-variables input{width:100%;box-sizing:border-box}
.talk-plan p{font-size:12px;line-height:1.6;color:var(--muted,#6e687a)}
.talk-plan pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto;font-family:inherit;font-size:12px;line-height:1.7;margin-bottom:0}
