:root{--bg:#f7f7f4;--paper:#fff;--ink:#242823;--muted:#8b8f86;--line:#e5e7df;--accent:#e4744f;--accent-dark:#cb603d;--green:#55816b;--font:Inter,"Segoe UI",Arial,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:14px;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.42;cursor:not-allowed}:is(button,a,input,select):focus-visible{outline:2px solid #a9b79c;outline-offset:2px}[hidden]{display:none!important}a{color:inherit;text-decoration:none}svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}button{transition:background .15s,transform .15s}button:not(:disabled):active{transform:translateY(1px)}.rail{width:76px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);display:flex;align-items:center;flex-direction:column;z-index:4}.rail-logo{font-size:43px;line-height:44px;font-weight:750;letter-spacing:-4px;color:white;width:40px;height:42px;text-align:center;background:var(--accent);border-radius:13px;margin:22px 0 57px;padding-right:5px}.rail-items,.rail-bottom{display:flex;flex-direction:column;align-items:center;gap:19px}.rail-bottom{margin-top:auto;margin-bottom:24px;gap:20px}.rail-button{width:40px;height:40px;display:grid;place-items:center;background:transparent;border:0;color:#93998e;border-radius:11px}.rail-button.active{background:#f7eae3;color:var(--accent)}.rail-button:hover{background:#f4f5f0}.rail-button svg{width:20px;height:20px}.avatar{background:#eff0e8;border:3px solid #fff;outline:1px solid #e7e9df;border-radius:50%;width:32px;height:32px;display:grid;place-items:center;font-size:11px;font-weight:650;color:#777f6e}.shell{margin-left:76px}.topbar{height:84px;display:flex;align-items:center;gap:25px;padding:0 46px;border-bottom:1px solid var(--line);background:#ffffff80}.wordmark{font-size:27px;font-weight:700;letter-spacing:-1.6px;display:flex;align-items:baseline}.wordmark>span{color:var(--accent)}.wordmark small{font-size:9px;letter-spacing:2px;font-weight:550;margin-left:12px;color:#94978e}.topbar-separator{height:20px;width:1px;background:var(--line)}.breadcrumb{font-size:12px;color:#9b9e96}.breadcrumb span{margin:0 14px;color:#c2c5bb}.breadcrumb b{color:#666d60;font-weight:500}.topbar-right{margin-left:auto;display:flex;align-items:center;gap:23px;font-size:11px}.small-dot{display:inline-block;width:6px;height:6px;border-radius:100%;background:#7d9982;flex-shrink:0}.private-label{display:flex;gap:8px;align-items:center;color:#7c8375}.version{font-family:monospace;color:#a1a59a;border:1px solid var(--line);padding:4px 6px;border-radius:4px}main{max-width:1510px;margin:0 auto;padding:42px 46px 0}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:34px}.eyebrow{font-size:9px;letter-spacing:2px;font-weight:650;color:#9a9d90}.page-heading h1{font-size:39px;line-height:1.16;letter-spacing:-1.6px;font-weight:550;margin:13px 0 14px}.page-heading h1>span{color:#9a9f91}.page-heading p{font-size:12px;color:#919686;margin:0}.heading-art{width:284px;height:140px;position:relative;display:flex;align-items:center;justify-content:center;margin-right:14px}.orbit{position:absolute;left:50%;top:50%;border:1px solid #dde1d4;border-radius:100%;transform:translate(-50%,-50%)}.orbit-one{width:118px;height:118px}.orbit-two{width:158px;height:158px;border-style:dashed;border-color:#e4e7df}.art-wave{height:53px;display:flex;gap:4px;align-items:center;z-index:1;padding:0 15px;background:var(--bg)}.art-wave i{width:3px;height:12px;background:#a7b29a;border-radius:10px}.art-wave i:nth-child(3n){height:29px}.art-wave i:nth-child(4n){height:43px;background:#dca182}.art-wave i:nth-child(5n){height:53px;background:var(--accent)}.art-wave i:nth-child(2n){height:20px}.art-caption{position:absolute;font-size:7px;letter-spacing:1.8px;bottom:-7px;color:#acb29e;background:var(--bg);padding:5px 9px}.model-bar{background:#fff;border:1px solid var(--line);border-radius:12px;padding:17px 20px;display:flex;align-items:center;gap:14px;box-shadow:0 3px 6px #202b1903}.model-avatar{width:40px;height:40px;flex-shrink:0;background:#eeefe6;border:1px solid #e6e8dc;border-radius:10px;display:grid;place-items:center;color:#8e977a;font-weight:600}.model-picker{min-width:180px}.model-picker label,.voice-picker label{font-size:8px;font-weight:650;letter-spacing:1.4px;color:#9b9f90;display:flex;align-items:center;gap:5px;margin-bottom:5px}.model-picker select,.voice-picker select{border:0;background:none;color:#444d3c;padding:0 20px 0 0;font-size:12px;outline-offset:3px;width:100%;cursor:pointer;max-width:245px}.voice-picker{min-width:200px}.voice-picker label svg{width:10px;height:10px}.bar-divider{height:34px;width:1px;background:var(--line);margin:0 13px}.icon-button{border:0;background:none;color:#939b87;width:30px;height:30px;display:grid;place-items:center;font-size:21px;border-radius:7px}.icon-button:hover{background:#f2f4eb}.add-model{border:1px solid var(--line);font-size:20px;width:26px;height:26px}.model-state{margin-left:auto;display:flex;align-items:center;gap:7px;font-size:10px;color:#9aa28e}.model-state .small-dot{width:5px;height:5px}.integration-banner{font-size:11px;padding:12px 15px;color:#8d704b;border:1px solid #eadecc;background:#faf5ec;border-radius:8px;margin-top:14px;line-height:1.7}.integration-banner button{font-size:11px;background:none;border:0;color:#8c6138;text-decoration:underline;padding:0 0 0 10px}.video-section{margin-top:34px}.section-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:21px;gap:15px}.section-title{display:flex;align-items:center;gap:10px}.section-title h2{font-size:17px;font-weight:550;letter-spacing:-.5px;margin:0}.count-pill{font-family:monospace;font-size:10px;color:#89917b;background:#ecefe5;border-radius:5px;min-width:22px;height:20px;display:grid;place-items:center}.toolbar-actions{display:flex;align-items:center;gap:10px}.button{border:1px solid transparent;border-radius:7px;display:inline-flex;justify-content:center;align-items:center;gap:9px;padding:11px 16px;font-weight:550;font-size:11px;min-height:37px;white-space:nowrap}.button.primary{background:var(--accent);color:#fff;box-shadow:0 2px 3px #d56e2920}.button.primary:hover:not(:disabled){background:var(--accent-dark)}.button.primary svg{width:14px;height:14px}.button.secondary{background:#fff;border-color:#dfe2d7;color:#69745d}.button.subtle{color:#7b8370;background:none;padding:8px}.button.secondary:hover:not(:disabled){background:#f0f3e8}.select-icon{font-size:17px;line-height:10px;color:#9aa18f}.action-divider{width:1px;height:17px;background:#e0e4d8;margin:0 3px}.selection-toolbar{display:flex;align-items:center;padding:0 16px 12px;color:#a0a693;font-size:9px;gap:27px}.check-label{display:flex;align-items:center;gap:10px;color:#8e9782;font-size:10px;white-space:nowrap}input[type=checkbox]{appearance:none;cursor:pointer;width:14px;height:14px;flex-shrink:0;border:1px solid #d5dacb;border-radius:4px;background:#fff;margin:0;display:grid;place-items:center}input[type=checkbox]:checked{background:var(--accent);border-color:var(--accent)}input[type=checkbox]:checked:after{content:'✓';color:#fff;font-size:10px}input[type=checkbox]:indeterminate:after{content:'−';color:var(--accent)}.preview-title{margin-left:auto;margin-right:141px;font-size:8px;letter-spacing:1.5px}.empty-state{border:1px solid var(--line);border-radius:12px;background:linear-gradient(145deg,#fff,#fdfefa);display:flex;flex-direction:column;align-items:center;text-align:center;padding:38px 20px 32px;min-height:318px}.empty-graphic{display:flex;align-items:center;gap:16px;position:relative;height:68px;margin-bottom:12px}.mini-video{height:48px;width:66px;border:1px solid #d8ddce;border-radius:9px;display:grid;place-items:center;transform:rotate(-6deg);background:#f4f6ef;box-shadow:4px 5px 0 #f0f2e8;position:relative;color:#a5af94}.mini-video span,.mini-circle span{font-size:12px}.mini-video i{position:absolute;bottom:6px;width:44px;height:2px;background:#dde3d2}.mini-transfer{color:#d1d6c7;font-size:21px}.mini-circle{width:55px;height:55px;border-radius:50%;background:#f4e7dc;border:1px solid #ecd9c6;display:grid;place-items:center;color:#ce9572;outline:4px solid #fbf3eb;transform:rotate(8deg)}.spark{position:absolute;right:-16px;top:-3px;color:#dca57f;font-size:19px}.empty-state h3{font-weight:550;font-size:17px;letter-spacing:-.4px;margin:8px 0 9px}.empty-state p{font-size:11px;color:#9aa18d;line-height:1.9;margin:0 0 20px}.empty-state .button{font-size:10px;padding:10px 17px}.file-hint{font-size:9px;letter-spacing:.3px;color:#b0b6a4;margin-top:15px}.dropzone{margin-top:14px;display:flex;align-items:center;gap:15px;border:1px dashed #cfd7c0;border-radius:10px;background:#f1f4ea80;text-align:left;width:100%;padding:21px 24px;min-height:88px;color:#738061;transition:background .2s,border-color .2s}.dropzone:hover,.dropzone.dragging{background:#eaf0df;border-color:#a9b795}.upload-icon{width:38px;height:38px;border:1px solid #dce3d0;border-radius:9px;background:#fafcf6;display:grid;place-items:center}.upload-icon svg{width:18px;height:18px;color:#9ba98b}.dropzone b{display:block;font-size:11px;font-weight:550;margin-bottom:6px}.dropzone small{font-size:10px;color:#9aa68b}.dropzone em{font-style:normal;text-decoration:underline;text-underline-offset:3px;color:#738061}.dropzone-formats{margin-left:auto;font-family:monospace;letter-spacing:.6px;font-size:8px;color:#a4ae96}.dropzone-formats span{margin-left:20px;font-size:16px}.workflow-note{display:flex;align-items:center;gap:10px;font-size:9px;color:#acb29f;margin-top:17px}.workflow-note .small-dot{width:4px;height:4px;background:#aeb89c}.workflow-note a{margin-left:auto;font-size:9px;color:#9ca58d}.workflow-note a:hover{text-decoration:underline}footer{display:flex;align-items:center;justify-content:space-between;color:#b1b7a6;font-size:9px;letter-spacing:.15px;margin-top:47px;padding:21px 0 24px;border-top:1px solid var(--line)}footer>span:last-child{display:flex;align-items:center;gap:6px}footer .small-dot{width:4px;height:4px;background:#97aa85}footer i{font-style:normal;margin:0 5px;color:#c0c6b6}.video-grid{display:flex;flex-direction:column;gap:10px}.video-row{display:grid;grid-template-columns:18px minmax(150px,1.15fr) minmax(160px,1.3fr) 106px 132px 124px 24px;align-items:center;gap:21px;padding:21px 18px;background:#fff;border:1px solid var(--line);border-radius:11px;position:relative}.video-row.selected{border-color:#e3b59e;box-shadow:0 0 0 1px #edc7b33d}.source-card{display:flex;flex-direction:column;gap:9px;min-width:0}.source-thumb{padding:0;border:0;border-radius:7px;overflow:hidden;position:relative;height:102px;background:#e7e9e2;display:block;width:100%}.source-thumb img{width:100%;height:100%;object-fit:cover;display:block}.play-badge{width:29px;height:29px;background:#ffffffdd;border-radius:50%;display:grid;place-items:center;font-size:10px;padding-left:2px;color:#38432e}.source-thumb .play-badge{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.duration{position:absolute;bottom:7px;right:7px;color:#fff;background:#0006;border-radius:3px;padding:3px 5px;font-size:8px;font-variant-numeric:tabular-nums}.file-name{font-size:10px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:205px}.file-meta{font-family:monospace;font-size:8px;color:#a8af9c;margin-top:-4px}.mixer{display:flex;flex-direction:column;gap:18px;min-width:0}.slider-label{display:flex;align-items:center;gap:7px;font-size:10px;color:#858f77}.slider-label svg{width:13px;height:13px;color:#a2ad92}.slider-label output{margin-left:auto;font-family:monospace;font-size:9px;color:#929d83}.slider{width:100%;height:3px;appearance:none;background:#e7ebdf;border-radius:5px;cursor:pointer;margin:11px 0 0;display:block;accent-color:var(--accent)}.slider::-webkit-slider-thumb{appearance:none;background:#fff;border:2px solid #c3cdb6;border-radius:50%;width:11px;height:11px}.slider.voice::-webkit-slider-thumb{border-color:var(--accent)}.background-button{border:0;background:none;padding:0;text-align:left;color:#9aa68c;font-size:8px;text-decoration:underline;text-underline-offset:3px}.generate-column{display:flex;flex-direction:column;align-items:center;gap:10px}.transfer-arrow{font-size:26px;color:#d5dbc9;font-weight:300}.generate-column .button{font-size:9px;padding:8px 11px;min-height:31px}.status-label{font-size:8px;color:#99a58b;text-align:center;line-height:1.5;max-width:108px}.status-label.error{color:#c0795d}.result-circle{display:flex;flex-direction:column;align-items:center;gap:11px}.circle-preview{height:112px;width:112px;border-radius:50%;overflow:hidden;border:1px dashed #d8dfcd;background:#f8faf3;display:grid;place-items:center;position:relative;padding:0;color:#bdc8af}.circle-preview.ready{border:3px solid #fff;outline:1px solid #dbe1d1;background:#e3e7da}.circle-preview video{width:100%;height:100%;object-fit:cover}.circle-preview .play-badge{position:absolute}.circle-preview .placeholder-circle{width:28px;height:28px;border-radius:50%;border:1px solid #dde5d1;display:grid;place-items:center;font-size:8px}.preview-caption{font-size:7px;letter-spacing:1.3px;color:#b1baa2}.save-column{display:flex;flex-direction:column;align-items:stretch;gap:10px}.save-column .button{font-size:9px;padding:8px 9px;min-height:33px}.save-column small{font-size:8px;text-align:center;color:#9ca98e}.remove-row{align-self:start;font-size:17px;width:22px;height:22px;color:#bac2af}.progress-ring{width:28px;height:28px;border:2px solid #e8ebdf;border-top-color:var(--accent);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.error-detail{grid-column:2/-2;font-size:10px;color:#a66c51;line-height:1.6;background:#fcf4ee;border-radius:5px;padding:9px 11px;overflow-wrap:anywhere}.stale-note{color:#b18053!important}dialog{border:1px solid var(--line);border-radius:16px;padding:30px;width:min(430px,calc(100vw - 30px));box-shadow:0 25px 110px #29351a25;color:var(--ink)}dialog::backdrop{background:#25301c55;backdrop-filter:blur(5px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}dialog h2{font-size:24px;font-weight:550;letter-spacing:-.8px;margin:13px 0 10px}dialog p{color:#989f8d;font-size:11px;line-height:1.8;margin-bottom:23px}dialog label,.login-card label{display:flex;flex-direction:column;gap:8px;font-size:11px;color:#68755b;margin:19px 0}dialog input,dialog select,.login-card input{height:42px;border:1px solid #dde3d3;border-radius:7px;padding:0 12px;background:#fbfcf8;width:100%;font-size:12px;color:#525f45}dialog label small{font-size:9px;color:#a0aa93;line-height:1.6}dialog .button{width:100%;margin-top:10px}.error-text{color:#bf7556!important;font-size:11px;line-height:1.6}.settings-item{padding:15px 0;border-bottom:1px solid var(--line);font-size:12px;display:flex;justify-content:space-between;gap:12px}.settings-item span{font-size:10px;color:#7e9270}.settings-item .missing{color:#bf8e62}.settings-foot{font-size:10px!important;margin-bottom:0!important}#preview-dialog{width:min(640px,calc(100vw - 30px));background:#f9faf5}#large-preview{display:block;width:100%;max-height:70vh;margin:18px auto 0;border-radius:9px;background:#1f251b}#preview-dialog.circular #large-preview{aspect-ratio:1;border-radius:50%;max-width:480px;object-fit:cover}#toast-region{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;gap:8px;z-index:10;max-width:calc(100vw - 40px);pointer-events:none}.toast{font-size:12px;background:#303c27;color:#fff;padding:14px 21px;border-radius:9px;box-shadow:0 5px 30px #27391c22;animation:toast-in .2s}.toast.error{background:#875b48}@keyframes toast-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.login-screen{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(ellipse at 80% 0,#e9eddf88,transparent 60%),var(--bg)}.login-brand{display:flex;align-items:center;font-weight:650;font-size:27px;letter-spacing:-1px;margin-bottom:28px}.brand-mark{background:var(--accent);color:#fff;width:36px;height:37px;border-radius:11px;font-size:38px;line-height:38px;padding-left:8px;margin-right:12px;letter-spacing:-3px}.brand-dot{color:var(--accent)}.login-card{width:min(390px,calc(100vw - 35px));background:#fff;border:1px solid var(--line);border-radius:16px;padding:32px;box-shadow:0 12px 60px #28381505}.login-card h1{font-size:27px;letter-spacing:-1px;font-weight:550;margin:14px 0 10px}.login-card>p{color:#9ba38e;font-size:11px;line-height:1.7}.login-card label{margin:22px 0}.login-card .button{width:100%;justify-content:space-between;padding:12px 16px;margin-top:3px}.login-foot{display:flex;align-items:center;justify-content:center;gap:7px;color:#a7af9b;font-size:9px;margin-top:24px}.login-foot .small-dot{width:4px;height:4px}.login-caption{font-size:10px;color:#b0b8a4;margin-top:35px;letter-spacing:.5px}body.drag-over .dropzone{background:#e8efde;border:2px dashed #9eb183}.uploading-note{font-size:11px;color:#9c805e;padding:15px;background:#faf5eb;border:1px dashed #ddceb7;border-radius:8px}.connection-off{color:#b28061!important}
@media(min-width:1550px){main{padding-top:50px}.page-heading{margin-bottom:40px}.empty-state{min-height:365px;padding-top:55px}.page-heading h1{font-size:44px}.video-row{grid-template-columns:18px minmax(180px,1.15fr) minmax(190px,1.3fr) 120px 150px 140px 24px;gap:28px}.source-thumb{height:120px}.circle-preview{width:124px;height:124px}}
@media(max-width:1200px){main{padding:32px 28px 0}.topbar{padding:0 28px}.video-row{gap:14px;grid-template-columns:16px minmax(120px,1fr) minmax(130px,1.1fr) 86px 100px 105px 18px;padding:18px 14px}.circle-preview{width:92px;height:92px}.model-state{font-size:9px}.model-picker{min-width:135px}.voice-picker{min-width:160px}.preview-title{margin-right:125px}.bar-divider{margin:0 5px}.source-thumb{height:90px}.file-name{max-width:145px}}
@media(max-width:1000px){.model-state{display:none}.video-row{grid-template-columns:16px 140px 1fr 100px 100px;gap:16px}.save-column{grid-column:5;grid-row:2}.result-circle{grid-column:5;grid-row:1}.generate-column{grid-column:4;grid-row:1}.remove-row{position:absolute;right:8px;top:7px}.source-card{grid-row:1/3}.mixer{grid-row:1/3}.preview-caption{display:none}.circle-preview{width:85px;height:85px}.video-row>.check-label{grid-row:1/3}.save-column small{display:none}.error-detail{grid-column:2/-1}.workflow-note a{display:none}.heading-art{margin-right:0;transform:scale(.85)}.topbar-right .private-label{display:none}.preview-title{display:none}}
@media(max-width:720px){.rail{width:55px}.rail-logo{width:32px;height:34px;font-size:35px;line-height:35px;border-radius:10px;margin-top:18px}.shell{margin-left:55px}.topbar{height:69px;padding:0 19px;gap:14px}.wordmark{font-size:23px}.wordmark small{display:none}.breadcrumb{font-size:10px}.breadcrumb span{margin:0 8px}.version{display:none}main{padding:27px 19px 0}.page-heading{margin-bottom:28px}.page-heading h1{font-size:30px}.page-heading p{font-size:10px;max-width:240px;line-height:1.7}.eyebrow{font-size:8px}.heading-art{width:140px;transform:scale(.7);margin-left:-20px}.model-bar{padding:14px;gap:9px;flex-wrap:wrap}.model-avatar{width:32px;height:32px}.model-picker{flex:1}.model-picker select,.voice-picker select{font-size:11px;max-width:100%}.voice-picker{width:calc(100% - 45px);padding-top:12px;border-top:1px solid var(--line);margin-top:4px}.bar-divider{display:none}#refresh-voices{margin-top:18px}.toolbar-actions{gap:5px}.section-toolbar{align-items:flex-start;flex-wrap:wrap;gap:18px}.toolbar-actions{width:100%;justify-content:flex-end}.section-title h2{font-size:16px}.button{font-size:10px;padding:10px 12px}.video-section{margin-top:26px}.selection-toolbar{padding-left:8px;gap:12px}.selection-toolbar>span{font-size:8px}.empty-state{padding:28px 12px}.empty-state h3{font-size:16px}.empty-state p{font-size:10px}.dropzone{padding:17px 14px;gap:11px}.dropzone-formats{display:none}.dropzone b{font-size:10px}.dropzone small{font-size:9px}.workflow-note{gap:6px;font-size:7px;flex-wrap:wrap;justify-content:center}footer{margin-top:32px;font-size:8px;gap:10px;flex-wrap:wrap}footer>span:nth-child(2){display:none}.video-row{grid-template-columns:16px 1fr 96px;gap:14px;padding:20px 14px}.video-row>.check-label{grid-column:1;grid-row:1}.source-card{grid-column:2;grid-row:1}.source-thumb{height:108px}.file-name{max-width:160px}.mixer{grid-column:2;grid-row:2;gap:15px}.result-circle{grid-column:3;grid-row:1}.generate-column{grid-column:3;grid-row:2}.generate-column .transfer-arrow{display:none}.save-column{grid-column:2/4;grid-row:3;align-items:flex-end}.save-column .button{min-width:140px}.error-detail{grid-column:2/4;grid-row:4}.remove-row{right:4px;top:4px}.model-dialog{padding:22px}.heading-art{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;transition:none!important}}

/* Controls share one SVG grid instead of font-dependent symbol baselines. */
.ui-icon{display:block;width:18px;height:18px;flex:0 0 auto;pointer-events:none;vertical-align:middle}
[data-icon]{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;line-height:1}
.icon-button,.rail-button{display:inline-flex;align-items:center;justify-content:center;padding:0;flex-shrink:0;line-height:1}
.icon-button .ui-icon{width:17px;height:17px}
.add-model .ui-icon,.remove-row .ui-icon{width:15px;height:15px}
.button{line-height:1.25;gap:8px}
.button .ui-icon,.button [data-icon]>.ui-icon{width:15px;height:15px}
.play-badge{padding:0}
.play-badge .ui-icon,.placeholder-circle .ui-icon{width:15px;height:15px}
.transfer-arrow{display:flex;align-items:center;justify-content:center;width:36px;height:28px}
.transfer-arrow .ui-icon{width:32px;height:24px;stroke-width:1.25}
.model-avatar .ui-icon{width:18px;height:18px}
.brand-mark{display:inline-flex;align-items:center;justify-content:center;padding:0;letter-spacing:0}
.brand-mark .ui-icon{width:26px;height:26px}
.rail-logo{display:flex;align-items:center;justify-content:center;padding:0;letter-spacing:0;line-height:1}
.rail-logo .ui-icon{width:30px;height:30px}
.background-button{display:inline-flex;align-items:center;gap:5px;line-height:1.4}
.background-button .ui-icon{width:11px;height:11px}
.mini-transfer{display:flex;align-items:center;justify-content:center}
.mini-transfer .ui-icon{width:20px;height:20px}
.mini-video .ui-icon,.mini-circle .ui-icon{width:17px;height:17px}
.spark .ui-icon{width:20px;height:20px}
.model-picker{width:220px;min-width:140px;flex:0 1 240px}
.voice-picker{width:245px;min-width:160px;flex:0 1 260px}
.model-picker>label,.voice-picker>label{min-height:13px;margin:0 0 4px 10px;line-height:1.2}
.model-bar{gap:12px}
.model-bar>.icon-button{width:32px;height:32px;border:1px solid var(--line);border-radius:9px;background:#fff}
.model-bar>.icon-button:hover:not(:disabled){border-color:#d5dccb;background:#f4f6ee;color:#68785b}
.model-bar>.icon-button.add-model{color:var(--accent);background:#fcf3ef;border-color:#f0dcd2}
.model-bar .bar-divider{margin:0 10px}
.studio-select{position:relative;width:100%;min-width:0}
.select-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;height:34px;padding:0 10px;border:1px solid transparent;border-radius:8px;background:#fff;text-align:left;color:#434e38;font-size:12px;font-weight:500;line-height:1.3;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s}
.select-trigger:hover:not(:disabled){background:#f5f7ef;border-color:#e4e8dc}
.select-trigger:disabled{opacity:.48;cursor:not-allowed}
.select-trigger.is-placeholder{color:#939d87;font-weight:400}
.select-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.select-chevron{display:flex;align-items:center;justify-content:center;flex:0 0 18px;color:#9ba78d}
.select-chevron .ui-icon{width:15px;height:15px;transition:transform .16s}
.is-open>.select-trigger{background:#faf5f1;border-color:#e9cbbd;box-shadow:0 0 0 3px #e4744f0a}
.is-open>.select-trigger .select-chevron{color:var(--accent)}
.is-open>.select-trigger .select-chevron .ui-icon{transform:rotate(180deg)}
.select-trigger[aria-invalid=true]{border-color:var(--accent)}
.select-menu{position:fixed;inset:auto;margin:0;padding:7px;border:1px solid #e0e5d7;border-radius:13px;background:#fff;color:var(--ink);box-shadow:0 16px 48px #29351a1a,0 3px 10px #29351a08;z-index:100;overflow:hidden;display:flex;flex-direction:column;gap:6px;box-sizing:border-box;max-width:calc(100vw - 24px);animation:select-in .13s ease-out}
.select-menu::backdrop{background:transparent}
.select-search{display:flex;align-items:center;gap:8px;background:#f7f8f3;border:1px solid #edf0e6;border-radius:8px;padding:0 10px;flex:0 0 36px;min-height:36px;color:#a2ad95;margin:1px 1px 3px}
.select-search .ui-icon{width:15px;height:15px}
.select-search input,.select-search input:focus{height:34px;min-width:0;width:100%;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:#4d5a41;font:inherit;font-size:11px;outline:none;box-shadow:none}
.select-search:focus-within{border-color:#d6ddca}
.select-search input::placeholder{color:#a2ac96}
.select-search input::-webkit-search-cancel-button{cursor:pointer}
.select-options{display:flex;flex-direction:column;gap:3px;overflow-y:auto;overscroll-behavior:contain;min-height:0;scrollbar-width:thin;scrollbar-color:#d8dfcc transparent;padding:1px}
.select-option{display:flex;align-items:center;gap:10px;flex:0 0 auto;width:100%;min-height:44px;margin:0;padding:7px 10px;border:1px solid transparent;border-radius:8px;background:#fff;text-align:left;color:#5d6950;font-family:var(--font);font-size:12px;line-height:1.4}
.select-option:hover:not(:disabled),.select-option:focus-visible{background:#f4f6ee;border-color:#e8ecdf;outline:none;transform:none}
.select-option[aria-selected=true]{background:#fcf1eb;color:#bd603f}
.select-option[aria-selected=true]:focus-visible{border-color:#e8c2af}
.option-avatar{width:28px;height:28px;flex:0 0 28px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:#eff2e8;color:#94a083;font-size:11px;font-weight:600}
.option-avatar.voice{background:#f3f5ed}
.option-avatar .ui-icon{width:14px;height:14px;stroke-width:1.5}
.select-option[aria-selected=true] .option-avatar{background:#f6e1d5;color:#c27351}
.option-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.option-check{display:flex;align-items:center;justify-content:center;margin-left:auto;flex:0 0 18px;visibility:hidden;color:var(--accent)}
.option-check .ui-icon{width:15px;height:15px;stroke-width:2}
.select-option[aria-selected=true] .option-check{visibility:visible}
.select-empty{padding:20px 12px 24px;text-align:center;font-size:11px;line-height:1.7;color:#a1aa94}
dialog label:has(.studio-select){gap:8px}
dialog .select-trigger{height:42px;background:#fbfcf8;border:1px solid #dde3d3;padding:0 12px;font-size:12px;font-weight:400}
dialog .select-trigger:hover:not(:disabled){border-color:#cbd6bb;background:#f7f9f2}
dialog .is-open>.select-trigger{border-color:#e6bda9;background:#fffaf7}
@keyframes select-in{from{opacity:0;translate:0 -3px}to{opacity:1;translate:0 0}}
@media(max-width:1000px){.model-picker{flex:1 1 150px}.voice-picker{flex:1 1 190px}.model-bar .bar-divider{margin:0 3px}}
@media(max-width:720px){.model-picker{width:auto;min-width:0;flex:1 1 120px}.voice-picker{flex:1 1 calc(100% - 48px);width:calc(100% - 48px);min-width:0}.model-picker>label,.voice-picker>label{margin-left:8px}.model-bar{gap:10px}.model-bar #refresh-voices{margin-top:18px}.select-trigger{padding:0 8px;font-size:11px}.select-option{min-height:46px}.select-menu{border-radius:12px}}

.inline-media{width:100%;min-width:0}
.inline-screen{position:relative;display:block;overflow:hidden;isolation:isolate}
.inline-screen video{display:block;width:100%;height:100%;object-fit:cover;background:#e7ebe0}
.player-hit{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;width:100%;height:100%;margin:0;padding:0;background:transparent;border:0;border-radius:inherit;cursor:pointer}
.player-hit .play-badge{position:static;inset:auto;transform:none;transition:opacity .15s;background:#ffffffdf;box-shadow:0 1px 8px #26351c12}
.is-playing .player-hit .play-badge{opacity:0}
.is-playing .player-hit:hover .play-badge,.is-playing .player-hit:focus-visible .play-badge{opacity:1}
.player-hit:focus-visible{outline:2px solid var(--accent);outline-offset:-4px}
.inline-controls{display:flex;align-items:center;gap:6px;width:100%;height:25px;margin-top:5px;color:#9aa78d}
.player-mute{display:flex;align-items:center;justify-content:center;flex:0 0 20px;width:20px;height:23px;padding:0;border:0;border-radius:5px;background:transparent;color:#8b9a7a}
.player-mute:hover{background:#f0f3e8;color:#576c46}
.player-mute .ui-icon{width:13px;height:13px}
.player-seek{appearance:none;min-width:0;width:100%;height:3px;margin:0;padding:0;border:0;border-radius:6px;background:#e5eadc;cursor:pointer;accent-color:var(--accent)}
.player-seek::-webkit-slider-thumb{appearance:none;width:8px;height:8px;border-radius:50%;background:var(--accent);border:1px solid #fff;box-shadow:0 0 0 1px #dcaa9466}
.player-seek::-moz-range-thumb{width:7px;height:7px;border-radius:50%;background:var(--accent);border:1px solid #fff}
.player-time{flex:0 0 26px;text-align:right;font-family:monospace;font-size:8px;font-variant-numeric:tabular-nums;color:#a2ac96;line-height:1}
.result-player{width:112px}
.result-player .circle-preview{width:100%}
.save-column .download-button{background:#f6f8f1;border:1px solid #e5eadb;color:#7b8c69;gap:6px}
.save-column .download-button:hover:not(:disabled){background:#edf2e3;border-color:#d3ddc5;color:#597447}
.download-button .ui-icon{width:13px;height:13px}
@media(min-width:1550px){.result-player{width:124px}}
@media(max-width:1200px){.result-player{width:92px}.inline-controls{gap:4px}.player-time{flex-basis:23px;font-size:7px}}
@media(max-width:1000px){.result-player{width:85px}}

/* Labels occupy their own row; every actionable control shares the same baseline. */
.model-bar{display:grid;grid-template-columns:36px minmax(140px,240px) 36px 1px minmax(160px,260px) 36px minmax(0,1fr);grid-template-rows:auto 36px;column-gap:12px;row-gap:6px;align-items:center}
.model-bar .model-picker,.model-bar .voice-picker{display:contents}
.model-bar .model-picker>label,.model-bar .voice-picker>label{grid-row:1;min-height:13px;margin:0 10px;padding:0;line-height:13px;align-self:end}
.model-bar .model-picker>label{grid-column:2}
.model-bar .voice-picker>label{grid-column:5}
.model-bar .model-picker>.studio-select{grid-column:2;grid-row:2}
.model-bar .voice-picker>.studio-select{grid-column:5;grid-row:2}
.model-bar .select-trigger{height:36px}
.model-bar .model-avatar{grid-column:1;grid-row:2;width:36px;height:36px;align-self:center}
.model-bar>#add-model{grid-column:3;grid-row:2;margin:0;width:36px;height:36px;background:#f7f9f2;border-color:#e0e5d8;color:#859378}
.model-bar>.bar-divider{grid-column:4;grid-row:2;margin:0;width:1px;height:28px}
.model-bar>#refresh-voices{grid-column:6;grid-row:2;margin:0;width:36px;height:36px}
.model-bar>.model-state{grid-column:7;grid-row:2;justify-self:end;margin:0}
.is-open>.select-trigger{background:#f5f7f0;border-color:#d5deca;box-shadow:none}
.is-open>.select-trigger .select-chevron{color:#7c8e6b}
dialog .is-open>.select-trigger{border-color:#cbd6bd;background:#f8faf4;box-shadow:none}
.select-option[aria-selected=true]:focus-visible{border-color:#cbd6bd}
.player-hit:focus-visible{outline-color:#a9b79c}
@media(max-width:1000px){.model-bar{grid-template-columns:36px minmax(140px,1fr) 36px 1px minmax(160px,1fr) 36px}.model-bar>.model-state{display:none}}
@media(max-width:720px){
  .model-bar{grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr) 32px;grid-template-rows:auto 36px;padding:14px 12px;column-gap:6px;row-gap:6px}
  .model-bar .model-picker>label{grid-column:1;margin-left:6px;margin-right:0}
  .model-bar .voice-picker>label{grid-column:3;margin-left:6px;margin-right:0}
  .model-bar .model-picker>.studio-select{grid-column:1}
  .model-bar .voice-picker>.studio-select{grid-column:3}
  .model-bar>#add-model{grid-column:2;width:32px}
  .model-bar>#refresh-voices{grid-column:4;width:32px;margin:0}
  .model-bar>.model-avatar,.model-bar>.bar-divider{display:none}
  .model-bar .select-trigger{padding:0 6px;gap:4px}
}
