: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}
