:root{--bg:#f4f6f9;--ink:#172638;--muted:#607084;--border:#dce3eb;--brand:#315eda;--nav:#12263c;--card:#fff;--mint:#cbe9db;--radius:18px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}button,input,select{font:inherit}button,a,input,select{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #6b8fff}button{min-height:44px;border:0;border-radius:9px;padding:10px 20px;background:var(--brand);color:white;cursor:pointer;font-weight:600;transition:background .16s}button:hover{background:#2348b2}button:disabled{background:#dce3eb;color:#5f6c7d;cursor:not-allowed}.secondary{background:#edf1f8;color:#203b64}.secondary:hover{background:#dce5f5}.plain{background:transparent;color:var(--muted)}.plain:hover{background:#e9eef5}a{color:var(--brand);text-decoration:none}h1,h2,h3,p{margin-top:0}h1{font-size:30px;letter-spacing:-1px;line-height:1.35}h2{font-size:22px}h3{font-size:17px;margin-bottom:12px}.muted{color:var(--muted)}.eyebrow{font-size:11px;letter-spacing:2.4px;font-weight:700;color:#668393}.shell{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:var(--nav);color:#c4d1de;padding:32px 18px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;padding:0 12px 36px;color:#fff}.brand strong{font-size:24px;letter-spacing:3px}.brand small{display:block;font-size:10px;letter-spacing:2px;color:#9ab0c6}.brand-mark{width:40px;height:40px;border-radius:12px;background:var(--mint);color:#193c39;display:grid;place-content:center;font-size:25px;font-weight:800}.nav{display:flex;flex-direction:column;gap:8px}.nav a{padding:13px 15px;color:#b9cbdc;display:flex;align-items:center;gap:13px;border-radius:9px}.nav a:hover,.nav a.active{color:white;background:#29425e}.nav svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}.sidebar-bottom{margin-top:auto;padding:18px 14px;border:1px solid #385067;border-radius:12px;font-size:12px}.sidebar-bottom strong{font-size:25px;color:white;display:block}.topbar{height:80px;background:white;border-bottom:1px solid var(--border);padding:0 40px;display:flex;align-items:center;justify-content:space-between;gap:12px}.topbar span{font-size:13px}.badge{display:inline-flex;padding:4px 10px;border-radius:20px;background:#e9f4ee;color:#26704d;font-size:12px;font-weight:600}.badge.pending{background:#fff3dc;color:#885911}.badge.failed{background:#ffebee;color:#ae3442}main{padding:32px 40px;max-width:1500px;margin:auto}.heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;gap:20px}.heading h1{margin:5px 0 8px}.heading p{margin:0}.hero{border-radius:var(--radius);padding:30px 32px;background:linear-gradient(105deg,#dce7ff,#ebf0ff 62%,#dceee7);display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;gap:25px}.hero h2{font-size:27px;margin:8px 0 10px}.hero p{max-width:540px;color:#4c6380;margin-bottom:0}.hero-art{height:100px;display:flex;align-items:center;gap:8px;padding:0 25px}.hero-art i{display:block;width:9px;border-radius:8px;background:#5b80bb}.hero-art i:nth-child(3n){height:75px;background:#517e71}.hero-art i:nth-child(3n+1){height:35px}.hero-art i:nth-child(3n+2){height:55px}.columns{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(270px,1fr);gap:24px}.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:26px;margin-bottom:22px}.card-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.card-title h3{margin:0}.step{display:inline-grid;place-content:center;background:#edf1ff;color:#315eda;width:28px;height:28px;border-radius:8px;margin-right:8px;font-size:13px}.label-hint{font-size:12px;color:var(--muted);font-weight:400;display:block;margin:4px 0 10px}label{display:block;font-size:14px;font-weight:600;margin-bottom:18px}input:not([type=checkbox]),select{width:100%;display:block;border:1px solid #c8d3df;background:white;border-radius:8px;padding:11px 12px;min-height:46px;margin-top:7px;color:var(--ink)}input[type=file]{font-size:12px}input[type=checkbox]{width:17px;height:17px;vertical-align:middle;accent-color:var(--brand)}.consent{font-weight:400;font-size:13px;color:var(--muted)}.divider{border-top:1px solid var(--border);margin:24px 0}.notice{padding:13px 16px;background:#f1f5fc;border:1px solid #d7e3f5;border-radius:10px;font-size:13px;color:#476185;margin:15px 0}.price{font-size:26px;font-weight:700}.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.submit-row{display:flex;align-items:center;justify-content:space-between;gap:15px}.submit-row small{display:block;color:var(--muted)}video{width:100%;max-height:355px;border-radius:12px;background:#132032;display:block}.preview-placeholder{height:290px;background:#eaf0f6;border-radius:12px;display:grid;place-content:center;text-align:center;color:#60758a}.sample-meta{display:flex;justify-content:space-between;margin-top:14px;font-size:12px;color:var(--muted)}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:22px}.stat{padding:22px;border:1px solid var(--border);border-radius:14px;background:white}.stat strong{display:block;font-size:29px;margin:7px 0}.stat span{font-size:13px;color:var(--muted)}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px}th,td{padding:14px 12px;text-align:left;border-bottom:1px solid var(--border);white-space:nowrap}th{color:var(--muted);font-weight:500}.empty{padding:45px 15px;text-align:center;color:var(--muted)}pre{padding:20px;background:#12263c;color:#d8e7fa;overflow:auto;border-radius:12px;line-height:1.8;font-size:12px}code{word-break:break-all}dialog{max-width:500px;width:calc(100% - 32px);border:1px solid var(--border);border-radius:20px;padding:32px}dialog::backdrop{background:#10223488}#auth-error{color:#b12732;font-size:13px}#notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:90vw;background:#152d48;color:white;border-radius:12px;padding:14px 24px;box-shadow:0 10px 40px #0002;display:none;z-index:5}.key-output{padding:20px;background:#f0f7f3;border:1px solid #a9c9b6;border-radius:10px;word-break:break-all}.upload-pair{display:grid;grid-template-columns:1fr 1fr;gap:20px}.subtle{font-size:12px;color:var(--muted)}.plan{display:flex;justify-content:space-between;align-items:center;padding:20px 0;border-bottom:1px solid var(--border)}.plan strong{font-size:25px}.footer-note{font-size:12px;color:var(--muted);margin-top:30px}.two{display:grid;grid-template-columns:1fr 1fr;gap:22px}
@media(max-width:1050px){.shell{grid-template-columns:195px minmax(0,1fr)}main{padding:25px}.topbar{padding:0 25px}.columns{grid-template-columns:1fr}.hero-art{display:none}.two{grid-template-columns:1fr}}
@media(max-width:650px){.shell{display:block}.sidebar{position:relative;height:auto;padding:16px}.brand{padding:0 8px 15px}.brand strong{font-size:20px}.sidebar-bottom{display:none}.nav{flex-direction:row;overflow:auto;gap:5px}.nav a{flex-shrink:0;padding:10px 12px;font-size:13px}.nav svg{display:none}.topbar{height:62px;padding:0 18px}.topbar span{font-size:11px}.topbar .muted{display:none}main{padding:22px 16px}.heading{align-items:flex-start}.heading h1{font-size:25px}.hero{padding:23px}.hero h2{font-size:22px}.card{padding:20px}.stat-grid{grid-template-columns:1fr;gap:10px}.stat{padding:16px}.stat strong{font-size:24px}.upload-pair{grid-template-columns:1fr}.submit-row{align-items:flex-start;flex-direction:column}.submit-row button{width:100%}.two{gap:0}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
.badge{white-space:nowrap;flex-shrink:0}.heading>div{min-width:0}
:root{--bg:#f3f6f4;--ink:#192b27;--muted:#647870;--border:#dae4de;--brand:#226451;--nav:#153a30;--mint:#cce8dc}
button:hover{background:#184e3e}.secondary{background:#edf4f0;color:#275d4d}.secondary:hover,.plain:hover{background:#dfece5}.nav a.active,.nav a:hover{background:#285644}.nav a{color:#b9cfc5}.brand small{color:#a4c3b4}.hero{background:linear-gradient(110deg,#dfede5,#f0f5f1 65%,#e2ede8)}.hero p{color:#526e62}.hero-art i{background:#719889}.step,.key-steps li>span{background:#e4efe9;color:#226451}.notice{background:#edf4ef;border-color:#d3e4da;color:#476858}.name-example{background:#edf4ef;color:#315e4d}.name-example:hover{background:#dceae1}.security-link{font-size:12px}.auth-page{min-height:100vh;display:grid;grid-template-columns:53% 47%;background:#f5f7f5}.auth-brand-panel{background:#163c30;position:relative;display:flex;flex-direction:column;justify-content:space-between;padding:48px 64px;color:#f0f6f1;min-height:100vh;overflow:hidden}.auth-logo{display:flex;gap:14px;align-items:center;color:white;font-size:24px;font-weight:700}.auth-logo small{font-size:10px;letter-spacing:2px;display:block;margin-top:2px;color:#acd0bc}.auth-logo .brand-mark{width:48px;height:48px}.auth-brand-copy{margin:60px auto;max-width:580px;width:100%}.auth-brand-copy .eyebrow{color:#9fceb4;font-size:12px}.auth-brand-copy h1{font-size:clamp(32px,3.4vw,54px);line-height:1.45;font-weight:600;letter-spacing:1px;margin:24px 0}.auth-brand-copy p{color:#bdd3c6;font-size:17px;line-height:1.9}.auth-brand-lines{display:flex;align-items:center;gap:9px;height:85px;margin:30px 0}.auth-brand-lines i{display:block;width:5px;border-radius:5px;background:#7aa78f;height:22px}.auth-brand-lines i:nth-child(3n){height:66px}.auth-brand-lines i:nth-child(4n){height:45px}.auth-brand-lines i:nth-child(5n){height:80px;background:#c1d8bc}.auth-benefits{display:flex;gap:22px;font-size:12px;letter-spacing:1px;color:#b1cbbd}.auth-brand-bottom{font-size:12px;color:#a6c3b2;margin:0}.auth-form-panel{display:flex;align-items:center;justify-content:center;padding:42px 50px}.auth-form-wrap{width:100%;max-width:440px}.auth-form-wrap h2{font-size:30px;line-height:1.35;margin:14px 0}.auth-subtitle{font-size:14px;margin-bottom:25px}.auth-route-tabs{display:flex;border-bottom:1px solid var(--border);gap:30px;margin-bottom:23px}.auth-route-tabs a{color:var(--muted);padding:10px 0;font-size:14px;border-bottom:2px solid transparent}.auth-route-tabs a[aria-current]{border-color:var(--brand);color:var(--brand);font-weight:600}#phone-auth-form label{margin:17px 0 6px;font-size:14px}#phone-auth-form input{margin:0;min-height:48px;background:white;border-radius:6px}#phone-auth-form .field-help{font-size:12px;color:var(--muted);line-height:1.6;margin:6px 0 12px}.sms-row{display:grid;grid-template-columns:minmax(0,1fr) 126px;gap:10px}.sms-row button{padding:8px 10px;border:1px solid var(--border);border-radius:6px;font-size:13px;min-height:48px}.auth-primary{width:100%;border-radius:6px;min-height:48px;font-size:15px}.auth-inline-link{text-align:right;margin:13px 0;font-size:13px}#auth-feedback{font-size:13px;color:#a24637;min-height:20px;margin:14px 0;outline-offset:4px}.auth-switch{text-align:center;font-size:14px;margin:21px 0}.auth-help{margin-top:24px;border:1px solid #e8d8b3;border-left:3px solid #b98b3b;background:#fff9eb;padding:16px 18px;font-size:13px;color:#6e5830}.auth-help summary{font-weight:600;cursor:pointer}.auth-help p{margin:12px 0 0;line-height:1.8}.recovered-name{padding:20px;background:#e5f0e8;border:1px solid #caddcf;border-radius:8px;margin:20px 0}.recovered-name span{display:block;font-size:13px;color:var(--muted)}.recovered-name strong{display:block;font-size:22px;margin-top:7px;overflow-wrap:anywhere}.recovered-name p{font-size:14px;margin-bottom:0}.auth-back-login{display:block;text-align:center;padding:15px;font-weight:600}.key-columns{align-items:stretch;margin-bottom:24px}.key-columns>.card{margin-bottom:0;min-height:440px;display:flex;flex-direction:column}.key-columns>.card>.card-title{min-height:68px;align-items:center;margin-bottom:12px}.key-columns>.card>.card-title h3{margin:6px 0 0}.key-columns>.card>.card-title p{margin:5px 0 0}.key-columns .ledger-content{display:flex;flex-direction:column;flex:1}.key-columns .ledger-content>.empty{flex:1;display:flex;flex-direction:column;justify-content:center}.key-columns .ledger-pagination{margin-top:auto}.key-columns .credential:first-child{margin-top:0}.key-columns #key-list{flex:1}.key-columns .filter-label{align-self:center}.key-dialog{border-radius:12px}.key-stats{border-radius:12px}.key-steps{padding:0 4px}.credential-actions .subtle{max-width:70%}
@media(min-width:1500px){.auth-brand-panel{padding:60px 85px}.auth-form-panel{padding:60px 80px}}
@media(max-width:950px){.auth-page{grid-template-columns:42% 58%}.auth-brand-panel{padding:32px}.auth-form-panel{padding:35px}.auth-brand-copy h1{font-size:33px}.auth-benefits{gap:14px}}
@media(max-width:650px){.auth-page{display:block}.auth-brand-panel{min-height:0;padding:24px}.auth-brand-copy{margin:24px 0 0}.auth-brand-copy h1{font-size:25px;margin:10px 0}.auth-brand-copy p,.auth-brand-lines,.auth-benefits,.auth-brand-bottom,.auth-brand-copy>.eyebrow{display:none}.auth-brand-copy h1 br{display:none}.auth-logo{font-size:21px}.auth-form-panel{padding:30px 24px 45px}.auth-form-wrap h2{font-size:26px}.sms-row{grid-template-columns:minmax(0,1fr) 116px}.key-columns>.card{min-height:0}.key-columns>.card>.card-title{min-height:62px}.credential-actions .subtle{max-width:100%}}
.key-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:white;border:1px solid var(--border);border-radius:16px;margin-bottom:24px}.key-stats>div{padding:23px;border-right:1px solid var(--border)}.key-stats>div:last-child{border:0}.key-stats span{font-size:13px;color:var(--muted)}.key-stats strong{display:block;font-size:25px;margin-top:7px}.key-stats .api-path{font-family:monospace;font-size:23px}.key-steps{list-style:none;padding:0;margin:0 0 25px;display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.key-steps li{display:flex;align-items:center;gap:12px}.key-steps li>span{width:32px;height:32px;border-radius:50%;background:#e1e9fc;color:var(--brand);display:grid;place-content:center;flex-shrink:0;font-weight:700}.key-steps strong{font-size:14px}.key-steps small{display:block;color:var(--muted);font-size:12px}.key-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;align-items:start}.credential{border-top:1px solid var(--border);padding:22px 0}.credential-heading,.credential-actions,.ledger-top,.ledger-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px}.credential-heading strong{overflow-wrap:anywhere}.credential-actions{align-items:flex-end}.credential p{margin:9px 0}.masked-key{display:block;color:#385770;margin:9px 0;font-size:13px}.scope-text{font-size:12px;color:#547263}.key-dialog{width:calc(100% - 32px);max-width:640px;padding:32px;max-height:90vh;overflow-y:auto}.key-dialog label{margin:18px 0 5px}.key-dialog h2{font-size:27px;margin:10px 0 18px}.key-scopes{border:1px solid var(--border);padding:15px;margin:22px 0 15px;border-radius:10px}.key-scopes legend{font-size:13px;color:var(--muted);padding:0 6px}.key-scopes div{background:#edf4f0;color:#2e6650;padding:8px 13px;margin:5px 0;border-radius:5px;font-size:14px}.name-examples{display:flex;gap:8px;flex-wrap:wrap}.name-example{font-size:12px;background:#edf1f8;color:#405879;padding:8px 12px;min-height:38px}.name-example:hover{background:#dce5f5}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.key-feedback{min-height:24px;font-size:13px;color:#345c74;margin-top:16px}.key-dialog textarea{width:100%;resize:none;font:14px/1.7 monospace;color:#e0f0ea;background:#17352e;border:1px solid #264e43;border-radius:9px;padding:16px;overflow-wrap:anywhere}.filter-label{font-size:12px;margin:0;min-width:110px}.filter-label select{font-size:12px;padding:7px;min-height:40px}.ledger-item{border-top:1px solid var(--border);padding:20px 0}.ledger-top{align-items:flex-start}.ledger-top>strong{white-space:nowrap}.ledger-top>div>strong{font-size:14px}.ledger-kind{display:block;font-size:11px;color:var(--muted);margin-top:3px}.ledger-item p{margin:7px 0}.amount-in{color:#257252}.amount-out{color:#b54645}.ledger-item summary{font-size:12px;color:var(--brand);cursor:pointer;padding:8px 0;min-height:38px}.ledger-item dl{display:grid;grid-template-columns:90px minmax(0,1fr);gap:8px;font-size:12px;background:#f4f7fb;border-radius:8px;padding:12px}.ledger-item dt{color:var(--muted)}.ledger-item dd{margin:0;overflow-wrap:anywhere}.ledger-pagination{border-top:1px solid var(--border);padding-top:15px;flex-wrap:wrap}.ledger-pagination button{padding:7px 10px;font-size:12px}
@media(max-width:1100px){.key-columns{grid-template-columns:1fr}.key-stats>div{padding:18px}.key-stats strong{font-size:21px}}
@media(max-width:650px){.key-stats{grid-template-columns:1fr 1fr}.key-stats>div:nth-child(2){border-right:0}.key-stats>div:nth-child(-n+2){border-bottom:1px solid var(--border)}.key-steps{grid-template-columns:1fr;gap:15px}.key-dialog{padding:22px}.dialog-actions button{flex:1;padding:10px}.key-columns .card-title{flex-wrap:wrap}.credential-actions{flex-wrap:wrap}.key-dialog textarea{font-size:12px}.name-example{min-height:44px}}
.key-columns{align-items:stretch}.key-columns>.card{margin-bottom:0}.key-steps li>span{background:#e4efe9;color:#226451}.name-example{background:#edf4ef;color:#315e4d}.name-example:hover{background:#dceae1}

.key-columns>.card>.card-title{align-items:flex-start;min-height:100px}.key-columns>.card>.card-title>button{align-self:center;flex-shrink:0}.key-columns>.card>.card-title>div{min-width:0}.key-columns>.card>.card-title h3{line-height:1.4}
@media(max-width:650px){.auth-brand-copy h1 br{display:initial}.key-columns>.card>.card-title{min-height:0;gap:14px}.key-columns>.card>.card-title>div{flex:1;min-width:150px}.key-columns>.card>.card-title>button{align-self:flex-start}}

#speech-form textarea{width:100%;box-sizing:border-box;resize:vertical;font:inherit;line-height:1.6;padding:12px;border:1px solid #ccd9d4;border-radius:6px;background:#fff}#voice-tasks audio{max-width:260px;width:100%}.form-feedback{line-height:1.6}

#studio-script{width:100%;box-sizing:border-box;font:inherit;line-height:1.8;padding:16px;border:1px solid #ccd9d4;border-radius:8px;resize:vertical;min-height:180px}.asset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.asset-card{min-width:0;padding:20px}.asset-card h3{overflow-wrap:anywhere}.asset-card video{width:100%;height:230px;object-fit:contain;background:#13251f;border-radius:8px}.audio-cover{min-height:120px;display:flex;flex-direction:column;justify-content:space-between;gap:20px;background:#e7f0eb;padding:18px;border-radius:8px}.audio-cover audio,#studio-audio audio{width:100%}.asset-rename [role=status]{margin-left:8px}.template-preview{max-height:260px;width:100%;object-fit:contain;background:#13251f;margin-top:16px}#studio-audio{margin-top:16px}details{margin-top:16px}summary{cursor:pointer}#studio-ready{line-height:1.7}@media(max-width:1100px){.asset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.asset-grid{grid-template-columns:1fr}}

.studio-steps{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:1000px){.studio-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.studio-steps{grid-template-columns:1fr}}

/* Guided creation: one visible stage at a time. */
[hidden]{display:none!important}.wizard-steps{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:22px;margin:0 0 24px;background:#e9f0ed;border-radius:12px}.wizard-steps li{display:flex;align-items:center;gap:12px;color:var(--muted)}.wizard-steps li>span{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;border:1px solid #b7cec4;border-radius:50%;background:#fff}.wizard-steps .active{color:var(--brand)}.wizard-steps .active>span{background:var(--brand);color:white}.wizard-steps .done>span{background:#d2e9df;color:var(--brand)}.wizard-panel{max-width:1100px;margin:0 auto 24px}.mode-switch{display:flex;gap:8px;padding:5px;background:#edf3ef;border-radius:10px;margin-bottom:24px}.mode-switch button{flex:1;background:transparent;color:var(--muted)}.mode-switch button[aria-pressed=true]{background:white;color:var(--brand);box-shadow:0 1px 5px #163b2820}.wizard-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px;align-items:center}.wizard-actions>button:last-child{margin-left:auto}.wizard-panel audio{width:100%;max-width:560px}.template-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.template-choice{border:2px solid var(--border);border-radius:10px;padding:12px;min-width:0}.template-choice.selected{border-color:var(--brand);background:#edf5f0}.template-choice video{width:100%;height:220px;object-fit:contain;background:#13251f}.template-choice label{display:flex;align-items:center;gap:8px;margin:12px 0 4px;overflow-wrap:anywhere}.template-choice input{width:18px;min-height:18px;margin:0;flex-shrink:0}.finished-video{display:block;width:100%;max-height:600px;background:#142b22;border-radius:10px}.button-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border-radius:8px;background:var(--brand);color:white;font-weight:600}.button-link.secondary{background:#eaf2ed;color:var(--brand)}.job-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.job-filters [aria-pressed=true]{background:var(--brand);color:white}.job-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.job-card{padding:0;overflow:hidden;margin:0;min-width:0}.job-preview{background:#172e25;min-height:220px}.job-preview video{display:block;width:100%;height:320px;object-fit:contain}.job-info{padding:22px}.job-info h3{overflow-wrap:anywhere}.job-info .card-title{align-items:flex-start;gap:12px}.job-info .badge{flex-shrink:0}.job-info p{margin-bottom:12px}.job-placeholder{display:flex;flex-direction:column;gap:16px;justify-content:center;align-items:center;min-height:220px;padding:24px;color:#eef5f1;text-align:center}.audio-result{display:flex;flex-direction:column;justify-content:center;gap:24px;min-height:220px;padding:30px;color:#e6f4ee}.audio-result audio{width:100%}.media-error{color:#a23930;margin-top:12px}.job-info small{overflow-wrap:anywhere}@media(max-width:900px){.template-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.job-grid{grid-template-columns:1fr}}@media(max-width:600px){.wizard-steps{gap:8px;padding:14px 8px}.wizard-steps li{flex-direction:column;gap:6px;font-size:12px;text-align:center}.mode-switch{flex-direction:column}.wizard-actions>button{width:100%}.template-choices{grid-template-columns:1fr}.job-preview video{height:280px}.job-info .card-title{flex-wrap:wrap}}
.voice-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0 24px}.voice-choice{padding:16px;border:2px solid var(--border);background:#f9fbfa;border-radius:10px;min-width:0}.voice-choice.selected{border-color:var(--brand);background:#eaf4ee}.voice-choice>button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:transparent;color:var(--ink);padding:0 0 14px}.voice-choice>button:disabled{opacity:.6}.voice-choice strong,.voice-choice small{display:block;overflow-wrap:anywhere}.voice-choice small{font-weight:400;color:var(--muted);margin-top:4px}.voice-symbol{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;background:#dcece3;border-radius:50%;color:var(--brand)}.voice-check{margin-left:auto;font-size:22px;color:var(--brand)}.voice-choice audio{width:100%;height:40px}.source-tag{display:inline-block;border:1px solid;padding:2px 9px;border-radius:4px;font-size:12px;font-weight:600}.source-web{color:#23634e;background:#edf7f1;border-color:#b7d7c8}.source-api{color:#326b99;background:#edf5fc;border-color:#bed5e8}.job-filters>span{align-self:center;margin-right:8px;color:var(--muted)}@media(max-width:650px){.voice-choices{grid-template-columns:1fr}}
/* Compact account lists and a viewport-safe credential form. */
.key-dialog:has(#create-key-form){padding:0;overflow:hidden;max-height:calc(100dvh - 32px);width:min(620px,calc(100% - 24px))}
#create-key-form{display:flex;flex-direction:column;max-height:calc(100dvh - 32px);margin:0}
.key-dialog-body{padding:24px 28px 8px;overflow-y:auto;min-height:0;overscroll-behavior:contain}
#create-key-form .dialog-actions{flex-shrink:0;margin:0;padding:14px 28px max(14px,env(safe-area-inset-bottom));background:white;border-top:1px solid var(--border)}
.key-dialog-body h2{font-size:24px;margin:8px 0 10px}.key-dialog-body label{margin-top:12px}.key-dialog-body .muted{font-size:14px;margin-bottom:14px}.key-scopes{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:14px 0 10px;padding:10px}.key-scopes div{margin:0;padding:6px 10px;font-size:13px}.key-feedback:empty{min-height:0;margin:0}
.key-stats>div{padding:14px 18px}.key-stats strong{font-size:22px}.key-stats{margin-bottom:16px;border-radius:8px}.key-steps{margin-bottom:18px;gap:12px}.key-steps small{font-size:11px}.key-columns{gap:16px}.key-columns>.card{padding:18px;border-radius:8px;min-height:0}.key-columns>.card>.card-title{min-height:62px;margin-bottom:8px}.key-columns .card-title p{font-size:12px}.key-columns .card-title button{padding:8px 12px;font-size:13px}.credential{position:relative;padding:12px 76px 12px 0}.credential-heading{gap:6px}.credential-heading strong{font-size:14px}.masked-key{margin:3px 0;font-size:12px}.credential p{margin:4px 0}.credential-details summary{font-size:12px;color:var(--muted);cursor:pointer}.credential-actions{position:absolute;right:0;top:40px}.credential-actions .subtle{display:none}.credential-actions button{font-size:12px;padding:6px;min-height:36px}.ledger-item{padding:10px 0}.ledger-item p{margin:3px 0;font-size:12px}.ledger-kind{display:none}.ledger-item summary{padding:0;min-height:22px}.ledger-top>div>strong{font-size:13px}.ledger-pagination{padding-top:10px}.key-columns .empty{padding:24px 8px}.key-columns .badge{padding:2px 6px;font-size:11px}
.job-list{background:#fff;border:1px solid var(--border);border-radius:8px;overflow:hidden}.job-table-head,.job-row{display:grid;grid-template-columns:112px minmax(160px,2.5fr) minmax(95px,1fr) 80px minmax(125px,1.2fr) 64px;gap:16px;align-items:center;padding:12px 16px}.job-table-head{background:#f7faf8;color:var(--muted);font-size:12px}.job-row{border-top:1px solid var(--border);font-size:13px;min-width:0}.job-row small{display:block;color:var(--muted);font-size:11px;overflow-wrap:anywhere;margin-top:3px}.job-summary{min-width:0}.job-summary h3{font-size:14px;line-height:1.5;margin:0 0 5px;overflow-wrap:anywhere}.job-summary summary{font-size:11px;color:var(--muted);cursor:pointer}.job-summary p{margin:3px 0}.job-thumb{width:112px;height:76px;background:#172e25;display:grid;place-items:center;color:#b8d2c6;border-radius:4px;overflow:hidden}.preview-job{position:relative;width:100%;height:100%;padding:0;border-radius:0;background:#172e25}.preview-job video{display:block;width:100%;height:100%;object-fit:contain}.preview-job>span{position:absolute;bottom:3px;left:0;right:0;background:#10261acc;font-size:11px}.job-row .button-link{padding:7px 10px;font-size:12px;min-height:36px;border-radius:4px}.job-row .badge{font-size:11px;padding:3px 7px}.job-filters{gap:6px;margin-bottom:8px}.job-filters button{padding:6px 12px;min-height:34px;font-size:12px;border-radius:4px}.retention-notice{padding:14px 18px;margin-bottom:16px}.retention-notice p{font-size:13px;margin:4px 0 0}.video-dialog{width:min(850px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:20px;border:1px solid var(--border);border-radius:12px}.video-dialog video{display:block;width:100%;max-height:70dvh;background:#172e25}.video-dialog h3{margin:0}.video-dialog::backdrop{background:#10261aaa}
@media(min-width:1000px){.key-columns{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media(max-width:1100px){.job-table-head,.job-row{grid-template-columns:88px minmax(130px,2fr) 90px 65px minmax(100px,1fr) 56px;gap:10px;padding:10px}.job-thumb{width:88px;height:70px}}
@media(max-width:760px){.job-table-head{display:none}.job-row{grid-template-columns:88px minmax(0,1fr) 70px;gap:10px}.job-summary{grid-column:2/4}.job-state{grid-column:1}.job-retention{grid-column:2;grid-row:2}.job-cost{grid-column:3;grid-row:2}.job-row>div:last-child{grid-column:3}.key-dialog-body{padding:20px 18px 8px}#create-key-form .dialog-actions{padding:12px 18px}.key-scopes{gap:4px}.key-scopes div{font-size:12px;padding:6px}.key-steps{gap:8px}.credential{padding-right:65px}}
main:has(.job-list) .heading{margin-bottom:16px}main:has(.job-list)>.card-title{margin-bottom:10px}main:has(.job-list)>.card-title h2{font-size:17px;margin:0}main:has(.job-list)>.job-filters{display:inline-flex;margin-right:18px;vertical-align:middle}main:has(.job-list)>#jobs-status{font-size:12px;margin:4px 0 12px}
.template-player{background:#10231b;border-radius:7px;overflow:hidden}.asset-card .template-player video{display:block;width:100%;height:230px;object-fit:contain;border-radius:0}.template-playbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:6px 12px 10px;color:white;background:#10231b}.template-playbar button{padding:4px 8px;min-height:36px;background:transparent;color:white;font-size:12px}.template-playbar button:first-child{font-size:18px}.player-time{font-size:12px;margin-right:auto}.template-playbar input{flex-basis:100%;width:100%;margin:0;padding:0;min-height:20px;accent-color:#a7d7bd}.template-playbar .player-error{font-size:12px}.template-player:fullscreen{display:flex;flex-direction:column;justify-content:center}.asset-card .template-player:fullscreen video{height:calc(100vh - 100px)}.voice-price-guide{margin-bottom:22px}.voice-price-guide p{margin:8px 0}.voice-price-guide button{font-size:13px}
.asset-delete{margin-left:8px;background:transparent;color:#ad453c;padding:10px;vertical-align:middle}.asset-delete:hover{background:#fff0ee}.asset-delete svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.reference-library{border:1px solid var(--border);border-radius:8px;padding:16px;margin:16px 0 24px;background:#f9fbfa}.reference-library>summary{cursor:pointer;font-weight:600;color:var(--brand);min-height:32px}.reference-library>p{font-size:13px;margin:10px 0}.reference-library .voice-choice{background:white}.reference-library .voice-choice.selected{background:#eaf4ee}
.studio-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#fff;border:1px solid var(--border);margin-bottom:20px}.studio-stats>div{padding:18px 20px;border-right:1px solid var(--border)}.studio-stats>div:last-child{border-right:0}.studio-stats span,.studio-stats small{display:block;color:var(--muted);font-size:13px}.studio-stats strong{display:block;font-size:28px;margin:8px 0}.studio-stats .service-status{font-size:20px;color:var(--brand)}.creation-heading{background:white;padding:22px 26px;border:1px solid var(--border);border-bottom:0}.creation-heading h2{margin:8px 0;font-size:24px}.creation-heading p{margin:0;font-size:14px}.creation-heading+.wizard-steps{margin-top:0;border-radius:0;padding:20px 26px;margin-bottom:0;border:1px solid var(--border)}main:has(.studio-stats) .wizard-panel{margin-top:0;border-radius:0 0 10px 10px}.existing-audio-list{display:grid;gap:10px;max-height:520px;overflow:auto;margin:14px 0}.existing-audio-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,40%);gap:18px;align-items:center;border:1px solid var(--border);padding:14px;background:#fff}.existing-audio-row.selected{border-color:var(--brand);background:#edf7f1}.existing-audio-row button{background:none;color:var(--ink);display:flex;align-items:center;gap:12px;text-align:left;padding:8px}.existing-audio-row strong{display:block;overflow-wrap:anywhere;font-size:14px}.existing-audio-row small{display:block;color:var(--muted);font-size:12px;margin-top:5px}.existing-audio-row audio{width:100%;height:40px}.audio-check{margin-left:auto;color:var(--brand)}.brand strong{font-size:23px}.auth-logo>span:last-child{font-size:25px}@media(max-width:700px){.studio-stats{grid-template-columns:1fr 1fr}.studio-stats>div{padding:14px;border-bottom:1px solid var(--border)}.existing-audio-row{grid-template-columns:1fr;gap:4px}.creation-heading{padding:18px}}
.job-retention .download-saved{color:#23634e;font-weight:600;margin-bottom:5px}.job-row [data-download]{min-width:60px;white-space:normal;font-size:12px;padding:7px 6px}.job-row [data-download]:disabled{opacity:.65}
/* Large, unobstructed playback; controls stay below the picture. */
.result-player{width:min(1400px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 24px);padding:20px;box-sizing:border-box;background:white;color:var(--text)}
.result-player header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:14px}.result-player h3{font-size:22px;line-height:1.35;overflow-wrap:anywhere;margin:5px 0 0}.player-source{letter-spacing:2px;color:var(--green)}.result-player .player-close{font-size:28px;line-height:1;padding:10px 16px}
.result-player video{width:100%;height:calc(100dvh - 230px);max-height:none;min-height:160px;object-fit:contain;background:#0b1914;border-radius:0;cursor:pointer}
.player-controls{display:flex;align-items:center;gap:12px;padding:10px 0}.player-controls button{min-width:44px;padding:7px 12px}.player-controls .player-seek{flex:1;min-width:30px;width:auto;padding:0;height:24px;accent-color:#226b55}.player-time{font-size:13px;white-space:nowrap}.player-feedback{min-height:18px;font-size:13px;margin:0;color:var(--muted)}.result-player footer{display:flex;align-items:center;justify-content:center;gap:16px;font-size:14px;color:#28785d}.result-player footer label{font-size:12px;cursor:pointer;white-space:nowrap}
@media(max-width:600px){.result-player{width:calc(100vw - 12px);padding:12px}.result-player h3{font-size:17px}.result-player video{height:calc(100dvh - 255px)}.player-controls{gap:5px}.player-controls button{font-size:12px;padding:7px}.player-time{font-size:11px}.result-player footer{flex-wrap:wrap;gap:5px;font-size:12px}}
.result-player:fullscreen{width:100vw;height:100dvh;max-height:none}.result-player:fullscreen video{height:calc(100dvh - 230px)}
.result-player[open]{display:flex;flex-direction:column;height:calc(100dvh - 24px);overflow:hidden;color:var(--ink)}.result-player header,.result-player .player-controls,.result-player footer,.result-player .player-feedback{flex-shrink:0}.result-player video,.result-player:fullscreen video{flex:1;min-height:0;height:0}.result-player footer label{margin:0}.result-player .player-source{color:var(--brand)}
.template-upload-bar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:20px 0 26px}.template-upload-bar p{font-size:13px;margin:6px 0 0}.template-upload-bar form{max-width:420px;text-align:right}.asset-name-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.asset-name-row h3{margin:10px 0;overflow-wrap:anywhere;min-width:0}.rename-pencil{flex-shrink:0;padding:10px;min-width:44px}.rename-pencil svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}.asset-rename[hidden]{display:none}.asset-rename .cancel-rename{margin-left:6px}@media(max-width:600px){.template-upload-bar{align-items:stretch;flex-direction:column;gap:12px}.template-upload-bar form{text-align:left;max-width:none}}
/* Give the picture the entire preview area; controls sit along its bottom edge. */
.asset-card .template-player{position:relative;aspect-ratio:16/10}
.asset-card .template-player video{width:100%;height:100%;max-height:none;object-fit:contain;object-position:center center}
.template-player .template-playbar{position:absolute;bottom:0;left:0;right:0;gap:4px 8px;padding:4px 10px;background:#0b1914b8}
.template-playbar input[type=range]{min-height:14px;height:14px;padding:0;margin:0;border:0;background:transparent}
.template-player:fullscreen{width:100vw;height:100dvh;max-width:none;max-height:none;aspect-ratio:auto;display:block;border-radius:0}
.asset-card .template-player:fullscreen video{width:100%;height:100%;max-height:none;object-fit:contain;object-position:center}
.template-player:-webkit-full-screen{width:100vw;height:100vh;max-height:none;aspect-ratio:auto;display:block}
.asset-card .template-player:-webkit-full-screen video{height:100%;max-height:none;object-fit:contain}
.template-player:fullscreen .player-full{background:#fff;color:#173b30;min-height:44px}
.result-player[open]:fullscreen{height:100dvh;max-height:none;width:100vw;margin:0;border-radius:0}
.clone-page{max-width:1400px;margin:auto}.clone-heading{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.clone-heading h1{margin:0 0 6px;font-size:28px;letter-spacing:0}.clone-heading p{color:var(--muted);margin:0;font-size:14px}.clone-heading>span{font-size:30px}.clone-retention{padding:14px 20px;background:#fff8e8;border:1px solid #e7c47c;border-left:4px solid #c48b2d;margin-bottom:18px;color:#80602c}.clone-retention strong{font-size:15px}.clone-retention p{margin:4px 0 0;font-size:12px}.clone-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:stretch}.clone-panel{padding:24px;background:white;border:1px solid var(--border);min-width:0}.clone-panel-title{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:22px}.clone-panel-title span{color:#72b69f;letter-spacing:1.6px;font-size:13px}.clone-panel-title>span{font-size:25px;color:var(--ink)}.clone-panel-title h2{font-size:21px;margin:4px 0 0}.clone-panel label{font-size:14px;color:#62766f;margin-bottom:18px}.clone-panel input:not([type=checkbox]):not([type=range]),.clone-panel select,.clone-panel textarea{border:1px solid #d9e3df;background:#fafcfb;border-radius:3px;font-size:14px;padding:12px;min-height:44px;width:100%;margin-top:8px;color:var(--ink)}.clone-panel textarea{font:inherit;resize:vertical;min-height:165px}.clone-upload{background:white;border:1px solid var(--border);color:var(--ink);border-radius:5px;padding:9px 16px;font-size:14px}.clone-upload:hover{background:#edf5f0}.clone-reference-note{border:1px solid #e7c47c;background:#fff9ed;color:#947029;padding:12px;font-size:13px;margin:0 0 18px}.clone-panel button[type=submit]{width:100%;border-radius:5px;margin-top:6px}.clone-cost,.clone-small{font-size:12px;color:var(--muted);margin:12px 0}.clone-counter{font-size:12px;color:var(--muted);margin-top:-12px}.clone-speed input[type=range]{padding:0;border:0;min-height:22px;accent-color:var(--brand);margin:16px 0 22px;background:transparent}.clone-panel .form-feedback{font-size:13px;margin-top:12px}.clone-reuse{margin:18px 0;padding:12px 18px;border:1px solid var(--border);background:white}.clone-history{border-radius:3px;margin-top:18px}.clone-panel .consent{font-weight:400;font-size:12px}.clone-panel #voice-balance{font-size:12px}@media(max-width:800px){.clone-columns{grid-template-columns:1fr}.clone-panel{padding:20px}.clone-heading h1{font-size:25px}}
/* Compact voice workspace, with consistent native-select sizing in Safari. */
main:has(.clone-page){padding:18px 24px}.shell:has(.clone-page) .topbar{height:56px;padding:0 24px}.brand strong{font-size:20px;letter-spacing:1px;white-space:nowrap}.brand-mark{flex-shrink:0}.clone-heading{margin-bottom:14px}.clone-heading h1{font-size:26px}.clone-retention{padding:10px 16px;margin-bottom:16px}.clone-panel{padding:20px}.clone-panel-title{margin-bottom:18px}.clone-panel label{margin-bottom:12px}.clone-panel select{appearance:none;-webkit-appearance:none;height:44px;padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23758a82' stroke-width='1.5'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}.clone-panel textarea{height:150px;min-height:150px}.clone-reference-note{margin-bottom:14px}.clone-speed input[type=range]{margin:10px 0 14px}.clone-cost,.clone-small{margin:8px 0}.clone-panel #voice-balance{margin:8px 0}.clone-panel .form-feedback:empty{display:none}.clone-panel #reference-upload-status:empty{margin:0 0 16px}.clone-counter{margin-top:-6px}
.generation-layout.is-generating{display:grid;grid-template-columns:minmax(0,2.15fr) minmax(280px,1fr);gap:18px;align-items:stretch}.generation-main{min-width:0}.is-generating .creation-heading{padding:22px}.is-generating .wizard-steps{padding:20px}.is-generating .wizard-steps li{font-size:13px;gap:8px}.is-generating #stage-3{margin:0;padding:22px;border-radius:0;border-top:0}.is-generating #stage-3>h2{display:none}.generation-preview{background:#172e25;color:#fff;padding:18px;min-width:0}.preview-heading{display:flex;justify-content:space-between;align-items:center;font-size:13px;gap:10px;margin-bottom:18px;color:#afc3ba}.preview-heading strong{color:white}.generation-preview video{width:100%;height:auto;max-height:360px;object-fit:contain;border-radius:0;margin:24px 0 18px;background:#0c1914}.preview-empty{display:grid;place-items:center;height:260px;color:#b5c8bf}.render-card{border:1px solid var(--border);background:#fafcfb}.render-card header{padding:20px 16px;display:flex;justify-content:space-between;gap:12px}.render-card h2{font-size:18px;margin:6px 0 0;overflow-wrap:anywhere}.render-state{align-self:start;padding:5px 8px;color:#286f56;background:#e5f1eb;font-size:12px;white-space:nowrap}.render-phase-line{height:7px;background:linear-gradient(to right,#409777 var(--phase),#dce8e2 var(--phase))}.render-track{padding:18px 10px;margin:0;display:flex;list-style:none;border-bottom:1px solid var(--border)}.render-track li{flex:1;text-align:center;color:#81968c;position:relative;font-size:12px}.render-track li:before{content:'';position:absolute;top:11px;left:0;right:0;height:2px;background:#d5e1db}.render-track li span{position:relative;background:#fafcfb;padding:0 6px}.render-track small{display:block;margin-top:4px;font-size:10px}.render-track .done,.render-track .current{color:#318065}.render-track .done:before{background:#5aaa8a}.render-track .current{font-weight:700}.render-facts{display:grid;grid-template-columns:1.5fr 1fr 1fr}.render-facts>div{padding:14px;border-right:1px solid var(--border);min-width:0}.render-facts>div:last-child{border:0}.render-facts small{display:block;color:var(--muted);font-size:10px}.render-facts strong{display:block;font-size:12px;margin-top:4px;overflow-wrap:anywhere}.render-message{margin:14px;padding:14px;background:#eaf5ef;color:#2b765c;font-size:13px}.render-message p{font-size:11px;margin:4px 0 0}.render-message.problem{background:#fff0eb;color:#ad4b36}.render-actions{display:flex;justify-content:space-between;gap:12px;margin-top:20px;align-items:center}.render-actions button,.render-actions a{font-size:12px;padding:10px 14px}.render-actions #new-work{min-width:32%}.compact.render-track{border:0;padding:0 0 18px}.compact.render-track li{color:#c6d7cf}.compact.render-track li:before{top:0;background:#496457}.compact.render-track .done:before,.compact.render-track .current:before{background:#d9a341}.compact.render-track li span{display:none}.compact.render-track small{padding-top:8px;font-size:9px}.preview-download{border:1px solid #547968;background:#ffffff09;padding:12px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.preview-download strong{font-size:13px}.preview-download small{display:block;color:#b2c5bb;font-size:11px;margin-top:3px}.preview-download button{background:#d59b38;color:#172e25;font-size:13px;padding:10px 14px;flex-shrink:0}.generation-preview #download-feedback{font-size:12px}.generation-recent{margin-top:18px;background:white;border:1px solid var(--border);padding:20px}.generation-recent h2{font-size:21px;margin:6px 0 20px}.recent-row,.recent-head{display:grid;grid-template-columns:2fr 1fr .7fr 1.3fr;gap:12px;padding:12px 0;border-bottom:1px solid var(--border);font-size:12px;color:var(--ink)}.recent-head{color:var(--muted)}.recent-row small{display:block;color:#418970}.recent-row strong{overflow-wrap:anywhere}.is-generating #video-status{font-size:12px;color:var(--muted)}@media(max-width:1000px){.generation-layout.is-generating{grid-template-columns:1fr}.generation-preview video{max-height:60vh}.render-actions{flex-wrap:wrap}.recent-row,.recent-head{grid-template-columns:2fr 1fr 1fr}.recent-row>span:last-child,.recent-head>span:last-child{display:none}}
.render-phase-line[data-phase="0"]{--phase:0%}.render-phase-line[data-phase="1"]{--phase:25%}.render-phase-line[data-phase="2"]{--phase:50%}.render-phase-line[data-phase="3"]{--phase:75%}.render-phase-line[data-phase="4"]{--phase:100%}
/* Result playback mirrors the reference: title, unobstructed picture, source note. */
.result-player[open]{width:min(1400px,calc(100vw - 32px));height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);padding:28px;border:0;border-radius:12px;gap:0}.result-player::backdrop{background:#0b19148c;backdrop-filter:blur(5px)}.result-player header{margin:0 0 22px}.result-player .player-source{font-size:15px;letter-spacing:2px;font-weight:400}.result-player h3{font-size:25px;margin:8px 0 0;line-height:1.3}.result-player .player-close{width:48px;height:48px;padding:0;font-size:34px;color:#74847d;background:#f2f5f3;border-radius:6px;flex-shrink:0}.result-screen{position:relative;flex:1;min-height:0;width:100%;background:#0a1913;display:flex;align-items:center;justify-content:center}.result-player .result-screen video{display:block;flex:none;width:100%;height:100%;min-height:0;max-height:none;border-radius:0;object-fit:contain;object-position:center;background:#0a1913}.result-player .player-feedback:empty{display:none}.result-player .player-feedback{margin:6px 0;font-size:12px}.result-player footer{position:relative;min-height:46px;padding-top:16px;flex-wrap:wrap;text-align:center;gap:8px}.result-player .player-note{font-size:15px;font-weight:400}.result-player .player-tools{display:flex;gap:8px;align-items:center}.result-player .player-tools button,.result-player .player-tools label{font-size:11px;min-height:30px;padding:5px 8px;background:#f3f6f4;color:#5d766b;border-radius:4px}.screen-exit{display:none}.result-screen:fullscreen,.result-screen:-webkit-full-screen{width:100vw;height:100dvh;max-height:none;background:#0a1913}.result-screen:fullscreen video,.result-screen:-webkit-full-screen video{width:100%;height:100%;object-fit:contain}.result-screen:fullscreen .screen-exit,.result-screen:-webkit-full-screen .screen-exit{display:block;position:absolute;right:20px;top:16px;background:#14221dcc;color:white;font-size:13px;padding:8px 14px;transition:opacity .2s}.result-screen.controls-idle .screen-exit{opacity:0;pointer-events:none}.result-screen .screen-exit:focus-visible{opacity:1;pointer-events:auto}@media(max-width:600px){.result-player[open]{padding:14px;width:calc(100vw - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px)}.result-player h3{font-size:19px}.result-player header{margin-bottom:14px}.result-player .player-source{font-size:12px}.result-player .player-note{font-size:12px}.result-player footer{padding-top:10px}}
.audio-progress{display:flex;gap:18px;padding:20px;margin:18px 0;background:#eff7f4;border:1px solid #bdd9cd;color:#286b56}.audio-wave{display:grid;place-items:center;background:#1a4437;color:#72c8a7;min-width:72px;font-size:32px}.audio-progress-body{flex:1;min-width:0}.audio-progress-heading{display:flex;justify-content:space-between;gap:12px}.audio-progress p{font-size:12px;color:#71867d;margin:6px 0 14px}.audio-progress-bar{height:7px;background:#dce8e3}.audio-progress-bar i{display:block;height:100%;background:#399978;width:20%;transition:width .5s}.audio-progress-bar[data-phase="1"] i{width:40%}.audio-progress-bar[data-phase="2"] i{width:60%}.audio-progress-bar[data-phase="3"] i{width:80%}.audio-progress-bar[data-phase="4"] i{width:100%}.audio-progress ol{display:flex;list-style:none;padding:0;gap:4px;margin:10px 0 0;font-size:11px;text-align:center}.audio-progress li{flex:1;border-top:2px solid #d6e2dc;padding-top:7px;color:#8b9993}.audio-progress li.reached{border-color:#399978;color:#328768}.audio-progress.problem{border-color:#be695f}.audio-progress.problem i{background:#be695f}.auto-title{display:flex;align-items:center;gap:8px;margin:16px 0}.auto-title input[hidden]{display:none}@media(max-width:600px){.audio-progress{gap:10px;padding:12px}.audio-wave{min-width:36px;font-size:20px}.audio-progress ol{font-size:10px}}
.profile-library{padding:24px;background:white;border:1px solid var(--border);margin:20px 0}.profile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.profile-grid article{background:#fafcfb;border:1px solid #d9e3df;padding:20px;min-width:0}.profile-grid h3{overflow-wrap:anywhere}.profile-grid audio{width:100%;margin:10px 0}.profile-grid textarea{width:100%;padding:12px;border:1px solid #b9cfc5;font:inherit;resize:vertical}.profile-grid label{margin:14px 0}.profile-grid p{color:#70847b}.profile-grid strong{color:#286b56}.profile-transcript{line-height:1.8;white-space:pre-wrap}.free-profile-create select{width:100%}.free-profile-create button{width:100%}@media(max-width:900px){.profile-grid{grid-template-columns:1fr}}

/* Approved option 2: waveform portrait, native vector at every size. */
.brand-logo{display:block;width:44px;height:50px;object-fit:contain;flex-shrink:0}.brand{gap:10px;padding-left:4px;padding-right:0}.brand strong{font-size:20px;letter-spacing:0;white-space:nowrap}.brand small{font-size:8px;letter-spacing:1.1px;white-space:nowrap;color:#a9cbbc}.auth-logo .brand-logo{width:52px;height:58px}.auth-logo{gap:14px}
/* Template library, proportions matched to the supplied reference. */
.library-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 24px}.library-eyebrow{font-size:13px;color:#499b81;letter-spacing:2px}.library-heading h1{font-size:30px;line-height:1.3;margin:10px 0}.library-heading p{font-size:14px;margin:0}.library-heading button{display:inline-flex;align-items:center;gap:10px;border-radius:5px;white-space:nowrap;min-height:44px;padding:12px 20px}.template-library svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.library-filters{display:flex;gap:8px;margin:0 0 16px}.library-filters button{background:transparent;color:var(--muted);font-size:13px;padding:8px 12px;min-height:40px;border-radius:4px}.library-filters button[aria-pressed=true]{background:#e3eee8;color:var(--brand)}.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.library-card{min-width:0;border:1px solid var(--border);border-radius:6px;overflow:hidden;background:white}.library-video{position:relative;aspect-ratio:16/10;background:#0c1a15}.library-video video{display:block;width:100%;height:100%;object-fit:contain;object-position:center}.library-video video:fullscreen{width:100vw;height:100dvh;object-fit:contain}.library-state{position:absolute;top:10px;right:10px;background:#10201bdd;color:white;font-size:12px;padding:4px 8px;pointer-events:none}.library-card-body{padding:12px 14px 14px}.library-card h2{font-size:16px;line-height:1.45;margin:0 0 8px;overflow-wrap:anywhere}.library-meta{display:flex;align-items:center;justify-content:space-between;gap:4px;color:var(--muted);font-size:13px}.library-actions{display:flex;flex-shrink:0;gap:4px}.library-actions button{display:grid;place-items:center;width:44px;height:44px;padding:10px;border-radius:4px;background:transparent;color:#5e776d}.library-actions button:hover{background:#eaf2ee}.library-actions .library-delete{color:#b94e47}.library-card small{font-size:12px}.library-rename[hidden]{display:none}.library-rename{margin-top:12px}.library-rename input{width:100%}.library-rename button{margin:6px 6px 0 0}.template-feedback{font-size:14px;color:var(--brand);background:#e8f2ed;border:1px solid var(--border);padding:12px 16px;margin:0 0 16px}.template-feedback[hidden]{display:none}@media(max-width:1100px){.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.library-grid{grid-template-columns:1fr}.library-heading{gap:10px;align-items:flex-start}.library-heading h1{font-size:24px}.library-heading button{padding:10px 12px}.library-heading p{font-size:12px;line-height:1.6}.library-eyebrow{font-size:11px}.library-meta{font-size:14px}}
.library-audio{aspect-ratio:16/10;position:relative;padding:24px 20px;display:flex;flex-direction:column;justify-content:space-between;background:#e9f1ee;color:#3b6858}.library-audio strong{display:flex;align-items:center;gap:10px;font-size:15px;padding-right:60px}.library-audio strong svg{width:30px;height:30px}.library-audio audio{width:100%;height:44px}.library-filters button{min-height:44px}
.jobs-heading .job-filters{display:flex;margin:0;background:#e7ede9;padding:4px;flex-wrap:wrap}.jobs-heading .job-filters button{border:0;border-radius:0;background:transparent;min-height:40px;color:var(--muted)}.jobs-heading .job-filters button[aria-pressed=true]{background:white;color:var(--brand);box-shadow:0 1px 4px #14281b12}.retention-notice{background:#fff8e6;border:1px solid #e5bd65;border-left:4px solid #c69032;border-radius:0;color:#795c2d;padding:18px 22px}.jobs-toolbar{display:flex;align-items:center;justify-content:space-between}.job-list{border:0;border-radius:0;background:transparent}.job-table-head,.job-row{grid-template-columns:minmax(120px,1.25fr) minmax(180px,3.5fr) 76px 100px 100px minmax(120px,1.1fr) 90px;gap:16px;padding:12px 0}.job-table-head{background:transparent;font-size:13px}.job-row{background:white;padding:14px 12px;border-color:#e7edeb}.job-thumb{width:100%;height:auto;aspect-ratio:16/9}.job-summary h3{font-size:14px}.job-summary small{font-size:12px}.job-row .badge{background:transparent;color:#527265;padding:0}.job-row [data-download]{padding:10px 12px;min-height:44px}.jobs-toolbar .job-filters{display:flex}.job-model{color:var(--muted);font-size:13px}.recharge-balance{min-width:200px;padding-left:25px;border-left:1px solid var(--border)}.recharge-balance span{display:block;color:#54977e;font-size:13px}.recharge-balance strong{display:block;color:var(--brand);font-size:30px;margin:8px 0}.recharge-balance small{color:var(--muted)}.recharge-benefits{display:grid;grid-template-columns:repeat(4,1fr);background:white;border:1px solid var(--border);margin:24px 0}.recharge-benefits>div{padding:18px 22px;border-right:1px solid var(--border)}.recharge-benefits small{display:block;color:var(--muted);margin-top:5px}.recharge-plans,.recharge-history{background:white;border:1px solid var(--border);padding:24px;margin:24px 0}.recharge-section-title{display:flex;align-items:center;justify-content:space-between;gap:16px}.recharge-section-title h2,.recharge-history h2{font-size:22px;margin:8px 0 20px}.recharge-section-title p{font-size:13px}.recharge-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.recharge-plan{position:relative;text-align:left;background:white!important;color:var(--ink);border:1px solid var(--border);border-radius:7px;padding:24px;font-weight:400}.recharge-plan[aria-pressed=true]{border:2px solid var(--brand);padding:23px;box-shadow:inset 0 4px #d19b38}.plan-tag{display:inline-block;font-size:13px;background:#edf4f0;color:var(--brand);padding:6px 10px}.plan-check{position:absolute;right:22px;top:24px;font-size:24px;color:var(--brand)}.recharge-plan h3{font-size:17px;margin:26px 0 10px}.plan-price{font-size:34px;font-weight:700;white-space:nowrap}.plan-price small{font-size:13px;font-weight:400;color:var(--muted)}.plan-points{display:flex;align-items:center;justify-content:space-between;gap:10px;border-block:1px solid var(--border);padding:22px 0;margin-top:22px}.plan-points span{font-size:13px;color:var(--muted)}.plan-points strong{font-size:21px;color:var(--brand)}.recharge-plan p{font-size:13px;color:var(--muted);margin:20px 0}.plan-select{display:block;text-align:center;border:1px solid var(--border);padding:12px;color:var(--brand);font-size:14px;border-radius:4px}.recharge-plan[aria-pressed=true] .plan-select{background:#eaf2ee;border-color:var(--brand)}.recharge-checkout{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#f1f7f4;border:1px solid #c9ddd1;margin-top:20px;padding:20px}.recharge-checkout small,.recharge-checkout strong,.recharge-checkout span{display:block}.recharge-checkout strong{font-size:20px;margin:5px 0}.recharge-checkout span{font-size:12px}.recharge-checkout button{white-space:nowrap}.result-player.landscape-player[open]{width:min(1480px,calc(100vw - 32px),calc((100dvh - 210px)*var(--video-ratio) + 56px));height:auto;max-height:calc(100dvh - 32px)}.landscape-player .result-screen{flex:none;aspect-ratio:var(--video-ratio)}.landscape-player .result-screen video{height:100%;position:absolute;inset:0}.landscape-player .result-screen:fullscreen{aspect-ratio:auto}.result-player .player-tools button,.result-player .player-tools label{min-height:40px;padding:8px 12px}.result-player .player-note{font-size:16px}
@media(max-width:1200px){.job-table-head,.job-row{grid-template-columns:100px minmax(130px,2fr) 65px 85px 80px 100px 76px;gap:10px}.recharge-plan{padding:16px}.recharge-plan[aria-pressed=true]{padding:15px}.plan-price{font-size:28px}.plan-points strong{font-size:17px}}
@media(max-width:900px){.jobs-heading{align-items:flex-start;flex-direction:column}.job-table-head{display:none}.job-row{grid-template-columns:100px minmax(0,1fr) 90px;gap:12px}.job-summary{grid-column:2/4}.job-model{grid-column:1;grid-row:3}.job-state{grid-column:1;grid-row:2}.job-retention{grid-column:2;grid-row:2/4}.job-cost{grid-column:3;grid-row:2}.job-row>div:last-child{grid-column:3;grid-row:3}.recharge-grid{grid-template-columns:1fr}.recharge-benefits{grid-template-columns:repeat(2,1fr)}.recharge-section-title{align-items:flex-start;flex-direction:column;gap:0}.recharge-checkout{align-items:flex-start;flex-direction:column}}
@media(max-width:600px){.recharge-page>.library-heading{flex-direction:column}.recharge-balance{padding-left:0;border:0}.recharge-benefits>div{padding:14px}.recharge-plans,.recharge-history{padding:16px}.result-player.landscape-player[open]{width:calc(100vw - 12px);padding:14px}.result-player .player-note{font-size:12px}}
.wechat-dialog{max-width:min(420px,calc(100vw - 32px));padding:28px;border:1px solid var(--line);border-radius:12px;text-align:center;color:var(--ink);background:white}.wechat-dialog::backdrop{background:#102b23aa}.wechat-dialog img{display:block;max-width:100%;height:auto;margin:16px auto}.wechat-dialog img[hidden]{display:none}
.background-uploads{position:fixed;right:20px;bottom:20px;z-index:1200;width:min(380px,calc(100vw - 32px));max-height:42vh;overflow:auto;box-shadow:0 8px 32px #102b2333;border:1px solid #b9d6cb;background:#fff;border-radius:10px}.background-uploads[hidden]{display:none}.background-upload{padding:16px;border-bottom:1px solid #dce7e2}.background-upload strong{display:block;overflow-wrap:anywhere}.background-upload p{margin:8px 0;color:#246753}.background-upload small{display:block;line-height:1.6;color:#60756d}.background-upload button{padding:6px 12px;margin-left:16px}.background-upload a{color:#246753}

.profile-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.profile-card-heading h3{overflow-wrap:anywhere}.profile-delete{flex-shrink:0;width:44px;height:44px;padding:10px;color:#bd5048;background:white;border:1px solid #e8bdb8;border-radius:5px}.profile-delete svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7}.profile-delete:hover{background:#fff0ee}

/* Keep the real step-one controls visible in both audio modes. */
#stage-1{padding-bottom:150px}.studio-audio-dock{position:fixed;bottom:16px;z-index:40;box-sizing:border-box;background:rgba(255,255,255,.98);border:1px solid #d7e4df;box-shadow:0 -4px 24px #16392e14;border-radius:10px;padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:20px}.studio-dock-info{color:#527269;font-size:14px;min-width:0;overflow-wrap:anywhere}.studio-dock-buttons{display:flex;gap:12px;flex-shrink:0}.studio-dock-buttons button{min-height:48px}.studio-dock-buttons [hidden]{display:none!important}
@media(max-width:700px){#stage-1{padding-bottom:220px}.studio-audio-dock{bottom:0;border-radius:10px 10px 0 0;padding:12px 12px calc(12px + env(safe-area-inset-bottom));flex-direction:column;align-items:stretch;gap:8px}.studio-dock-buttons{flex-wrap:wrap}.studio-dock-buttons button{flex:1;white-space:normal;padding:12px;font-size:14px}.studio-dock-info{font-size:12px}}

.studio-audio-dock{z-index:1300;flex-direction:column;align-items:stretch;gap:8px}.studio-audio-dock[hidden]{display:none!important}.studio-dock-buttons{width:100%}.studio-dock-buttons button{flex:1;min-height:52px}.studio-dock-buttons #audio-next{text-align:left;display:flex;justify-content:space-between;align-items:center}.studio-dock-info{font-size:13px}

.recharge-grid{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:1200px){.recharge-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.recharge-grid{grid-template-columns:1fr}}

.download-cell{min-width:110px;display:flex;flex-direction:column;gap:8px}.download-cell progress{width:100%;max-width:180px;height:7px;accent-color:#246554}.download-cell small{max-width:220px;line-height:1.5}

.support-entry{margin:18px 0;background:transparent;color:#fff;border:1px solid #628878;width:100%;padding:12px;cursor:pointer}.support-dialog{box-sizing:border-box;width:min(420px,calc(100vw - 32px));max-height:90dvh;overflow:auto;border:0;border-radius:18px;padding:28px;text-align:center;color:#19372f}.support-dialog::backdrop{background:#071c16aa}.support-close{position:absolute;right:12px;top:12px;padding:4px 12px;font-size:24px}.support-dialog h2{margin:12px 0}.support-dialog p{font-size:14px;line-height:1.6}.support-qr{display:block;width:min(280px,100%);height:auto;margin:18px auto;background:white}.support-dialog textarea{width:100%;min-height:120px}

.batch-audio-list{max-height:300px;overflow:auto}.batch-audio-list label{display:flex;gap:10px;align-items:center;padding:8px}.batch-audio-list input{width:auto}.batch-item{padding:16px 0;border-top:1px solid #dce6e1}.batch-item audio{max-width:100%}#batch-form [hidden]{display:none}
/* Batch creator: visible choices and one script per task. */
.batch-builder{display:grid;gap:22px;min-width:0}.batch-builder .card{margin:0;min-width:0}.batch-builder h2{font-size:21px;margin:0 0 10px}.batch-builder p{line-height:1.6}.batch-capacity{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0 24px;align-items:center}.batch-capacity strong{background:#e2eee8;color:#205f4d;padding:10px 16px;border-radius:8px}.batch-capacity span{color:#647970}.batch-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.batch-modes button{background:#f7faf8;color:#214638;border:2px solid #dce6e1;text-align:left;padding:18px;white-space:normal}.batch-modes button[aria-pressed=true]{border-color:#246552;background:#e8f3ec}.batch-modes small{display:block;margin-top:8px;font-weight:400;line-height:1.5}.batch-section-heading,.batch-submit-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.batch-text-row{padding:18px;background:#f7faf8;border:1px solid #dce6e1;border-radius:10px;margin:14px 0}.batch-builder textarea{display:block;box-sizing:border-box;width:100%;min-height:130px;resize:vertical;font:inherit;line-height:1.65;padding:14px;border:1px solid #a9beb4;border-radius:8px;background:white;color:#183b2e}.batch-text-row label{display:block!important;margin:0;font-weight:700}.batch-import{margin-top:16px}.batch-import summary{cursor:pointer;color:#246552;padding:12px 0}.batch-picker{display:grid;gap:14px;max-height:440px;overflow-y:auto;overscroll-behavior:contain;padding:4px 8px 8px 4px;scrollbar-gutter:stable}.voice-picker,.audio-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.template-picker{grid-template-columns:repeat(3,minmax(0,1fr));max-height:560px}.batch-choice{border:2px solid #dce6e1;border-radius:10px;background:#fff;overflow:hidden;padding:14px;min-width:0}.batch-choice.selected{border-color:#246552;background:#edf6f0}.batch-choice audio{display:block;width:100%;height:42px;margin:8px 0}.batch-pick{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:48px;background:transparent;color:#214638;text-align:left;padding:10px 0;white-space:normal}.batch-pick>span:first-child{overflow-wrap:anywhere}.pick-status{flex-shrink:0;font-size:14px;color:#246552}.batch-preview{position:relative;display:block;padding:0;width:100%;height:180px;overflow:hidden;background:#12211c;border:0;border-radius:6px}.batch-preview img{width:100%;height:100%;object-fit:contain}.batch-preview>span{position:absolute;bottom:0;left:0;right:0;background:#0009;color:white;font-size:13px;padding:7px}.batch-audio-check{display:flex!important;align-items:center;gap:12px!important;font-weight:600;margin:0!important;cursor:pointer}.batch-audio-check input{width:20px!important;min-width:20px;height:20px}.batch-audio-check span{overflow-wrap:anywhere}.batch-audio-check small{display:block;font-weight:400;margin-top:5px}.batch-submit-row{margin-top:20px;padding-top:18px;border-top:1px solid #dce6e1}.batch-submit-row button{min-width:190px}.batch-preview-dialog{border:0;border-radius:14px;max-width:min(760px,90vw);max-height:90dvh;padding:22px;color:#183b2e}.batch-preview-dialog::backdrop{background:#0009}.batch-preview-dialog video{display:block;max-height:65dvh;width:100%;background:#12211c;margin-bottom:14px}.batch-preview-dialog h2{font-size:20px;overflow-wrap:anywhere}.batch-builder button:focus-visible,.batch-picker:focus-visible{outline:3px solid #76a594;outline-offset:3px}
@media(max-width:700px){.batch-modes,.voice-picker,.audio-picker{grid-template-columns:1fr}.template-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.batch-preview{height:155px}.batch-builder .card{padding:16px}.batch-choice{padding:10px}.batch-submit-row button{width:100%}.batch-capacity{gap:8px}.batch-capacity strong{font-size:14px}.batch-pick{flex-wrap:wrap}.batch-text-row{padding:12px}}

#batch-text-rows{max-height:640px;overflow-y:auto;overscroll-behavior:contain;padding-right:6px;scrollbar-gutter:stable}
