:root{font-family:Inter,"Segoe UI","Microsoft YaHei",system-ui,sans-serif;color:#172641;background:#f5f7fb;font-size:15px;font-synthesis:none;--primary:#3659de;--line:#e3e8f1;--muted:#68768e;--radius:18px}
*{box-sizing:border-box}body{margin:0}a{color:var(--primary);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}[hidden]{display:none!important}
header{min-height:84px;background:#fff;border-bottom:1px solid var(--line);padding:16px max(28px,calc((100vw - 1264px)/2));display:flex;gap:28px;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:11px;color:#172641;font-size:22px;font-weight:750;flex-shrink:0}.brand:hover{text-decoration:none}.brand small{display:block;font-size:11px;letter-spacing:1px;color:var(--muted);font-weight:400;margin-top:2px}.brand-mark{display:grid;place-items:center;background:var(--primary);color:white;width:42px;height:42px;border-radius:13px;font-size:22px;box-shadow:0 5px 13px #3659de20}
nav{display:flex;align-items:center;gap:6px;flex-wrap:wrap}nav a{padding:10px 14px;border-radius:9px;color:#53627b;font-weight:550;font-size:14px}nav a:hover{background:#f0f4ff;text-decoration:none}nav a[aria-current=page]{background:#edf2ff;color:var(--primary)}.header-actions{display:flex;align-items:center;gap:16px}.subtle-link{color:var(--muted);font-size:13px;white-space:nowrap}
main{max-width:1264px;margin:40px auto 64px;padding:0 28px;min-height:65vh}h1,h2,h3{line-height:1.35;letter-spacing:-.4px;margin-top:0;color:#172641}h1{font-size:32px;margin-bottom:10px}h2{font-size:20px;margin-bottom:16px}h3{font-size:16px;margin-bottom:12px}p{font-size:14px;line-height:1.8;color:var(--muted);overflow-wrap:anywhere;margin:10px 0 16px}.eyebrow{display:block;font-size:12px;letter-spacing:1.4px;color:var(--primary);font-weight:650;margin-bottom:12px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}.page-heading p{margin:0}.account-pill{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid var(--line);border-radius:30px;padding:10px 16px;font-size:13px;max-width:100%;overflow-wrap:anywhere}.status-dot{width:7px;height:7px;border-radius:50%;background:#8390a8;flex-shrink:0}
section,.create-account{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:28px;margin:0 0 24px;box-shadow:0 4px 18px #1d315403}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.section-heading h2{margin:0}.section-heading p{margin-bottom:0}.tag,.badge{display:inline-flex;align-items:center;font-size:12px;line-height:1.5;padding:5px 10px;border-radius:7px;background:#f0f3f8;color:#61728b;font-weight:500}.badge{margin-bottom:10px}.badge[data-tone=success]{background:#e9f7f1;color:#247454}.badge[data-tone=warning]{background:#fff4df;color:#94620c}.badge[data-tone=danger]{background:#ffeded;color:#b84545}.badge[data-tone=progress]{background:#edf2ff;color:#3659de}
label{display:block;font-size:14px;font-weight:550;margin:20px 0;line-height:1.6}input,select,textarea{display:block;width:100%;border:1px solid #d5deeb;background:#fff;color:#263650;padding:12px 14px;border-radius:10px;margin-top:8px;min-height:46px;transition:border-color .15s,box-shadow .15s}input::placeholder,textarea::placeholder{color:#909caf}input:focus,textarea:focus,select:focus{border-color:#6d85e9;box-shadow:0 0 0 3px #3659de12;outline:none}textarea{resize:vertical;line-height:1.8}button,.button-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:var(--primary);border:1px solid transparent;border-radius:10px;color:white;min-height:43px;padding:10px 18px;font-weight:550;font-size:14px;text-decoration:none;transition:background .15s}button:hover:not(:disabled),.button-link:hover{background:#2848c4;text-decoration:none}.secondary{background:white;border-color:#d6dfef;color:#405573}.secondary:hover:not(:disabled){background:#f2f5fb}.quiet{background:#f3f5f9;color:#61718b;padding:8px 12px;min-height:36px;font-size:13px}.quiet:hover:not(:disabled){background:#e8edf7}.danger-link{background:transparent;color:#b64b53;padding:6px 0;min-height:30px;font-size:13px}.danger-link:hover:not(:disabled){background:#fff1f1;color:#a53640}.full{width:100%;margin-top:8px}.fine{font-size:12px;line-height:1.85}.check{display:flex;gap:9px;font-size:13px;align-items:flex-start;font-weight:400}.check input{width:16px;min-height:16px;height:16px;margin:3px 0;flex-shrink:0;accent-color:var(--primary)}.service-strip{background:#edf2fb;border:1px solid #e1e8f6;border-radius:10px;padding:11px 16px;font-size:13px;margin-bottom:24px}.notice{background:#f1f5ff;border-left:3px solid #7890e7;border-radius:6px;padding:13px 15px;font-size:13px;line-height:1.8;color:#4e658c}.auth-card{max-width:460px;margin:64px auto;padding:38px;box-shadow:0 16px 55px #20376609}.auth-card h1{font-size:28px}.auth-card>p{margin-bottom:28px}.auth-footnote{text-align:center}.auth-page main,body:has(#workspace[hidden]) main{min-height:65vh}.auth-page{background:radial-gradient(ellipse at 50% 30%,#e9efff 0,transparent 65%),#f6f8fc}body:has(#workspace[hidden]) .workspace-nav{display:none}.auth-card details{border-top:1px solid var(--line);padding-top:18px}.auth-card summary{color:var(--primary);font-weight:550;cursor:pointer;font-size:14px}
.studio-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr);gap:24px;align-items:start}.studio-layout>*{min-width:0}.feature-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px;align-items:start}.step-title{display:flex;align-items:center;gap:10px;margin:26px 0 16px}.step-title h3{margin:0}.step-title>span{border-radius:7px;background:#eef3ff;color:#4e6bd4;font-size:11px;font-weight:700;padding:6px 7px}.photo-layout{display:grid;grid-template-columns:minmax(0,1fr) 170px;gap:20px}.photo-fields label:first-child{margin-top:0}.photo-frame{border:1px dashed #d6dfed;background:#f6f8fc;border-radius:12px;min-height:180px;display:flex;align-items:center;justify-content:center;overflow:hidden}.photo-frame img{width:100%;height:210px;object-fit:contain}.photo-placeholder{font-size:12px;color:#93a0b5}.photo-frame:has(img:not([hidden])) .photo-placeholder{display:none}.upload-zone{padding:14px;border:1px dashed #cdd8ed;border-radius:10px;background:#fafbfe}.upload-zone input{font-size:12px;padding:6px;background:transparent;border:0;min-height:0}.upload-zone small{display:block;font-weight:400;color:var(--muted);font-size:11px}input::file-selector-button{border:0;border-radius:6px;background:#e9efff;color:#3a57a5;padding:7px 10px;margin-right:8px;cursor:pointer}.field-meta{display:flex;align-items:start;justify-content:space-between;gap:12px}.field-meta p,.field-meta span{font-size:12px;color:var(--muted);margin:10px 0}.field-meta span{white-space:nowrap}.generate-footer{border-top:1px solid var(--line);padding-top:20px;margin-top:24px;display:flex;align-items:center;justify-content:space-between;gap:16px}.generate-footer p{font-size:12px;margin:0}.hint-card{background:#f0f4fc;box-shadow:none}.tips{padding-left:20px;font-size:13px;line-height:2.3;color:#61728b}.balance-banner{background:linear-gradient(120deg,#edf2ff,#f8faff);border-color:#dce5fc}.balance-banner h2{font-size:26px;color:#28499a;line-height:1.6}.balance-banner p{margin-bottom:0}.video-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.video-grid section{padding:20px;margin:0;display:flex;flex-direction:column;align-items:flex-start}.video-grid h2{font-size:18px}.video-grid video{width:100%;height:300px;object-fit:contain;background:#111a2b;border-radius:10px;margin:12px 0 18px}.video-grid section>p{font-size:13px}.video-grid a{font-size:13px;margin-bottom:12px}.video-grid button{margin-top:auto}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.toolbar label{display:flex;align-items:center;gap:12px;margin:0;white-space:nowrap}.toolbar select{min-width:140px;margin:0}.toolbar p{margin:0}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:24px}.stat-card{display:block;background:white;border:1px solid var(--line);border-radius:16px;padding:22px 24px;color:#50617b}.stat-card:hover{text-decoration:none;border-color:#aabbef}.stat-card span{font-size:13px}.stat-card strong{display:block;font-size:34px;font-weight:650;color:#20385a;margin:10px 0}.stat-card small{font-size:11px;color:#8b97a9}.section-nav{margin:12px 0 24px;border-bottom:1px solid var(--line);padding-bottom:10px}.section-nav a{font-size:13px}section[id]{scroll-margin-top:20px}.record-list article,#voices article{padding:22px 0;border-bottom:1px solid var(--line)}article:first-child{padding-top:4px}article:last-child{border-bottom:0;padding-bottom:0}article p:first-of-type{font-weight:550;color:#304561}article p{margin:6px 0 12px;font-size:13px}article button{margin:8px 8px 0 0;font-size:12px;min-height:36px;padding:8px 12px}article img{display:block;max-width:160px;max-height:200px;object-fit:contain;border-radius:10px;margin:12px 0}audio{display:block;max-width:100%;height:36px;margin:12px 0}.empty-state{padding:32px 20px;text-align:center;color:#8a97aa;background:#f8faff;border:1px dashed #dfe6f0;border-radius:12px;font-size:13px}.search-field{margin:0;width:280px}.search-field input{margin:0}.compact-label{display:flex;align-items:center;gap:10px;margin:0;white-space:nowrap;font-size:12px}.compact-label select{margin:0;min-height:38px;padding:8px 12px}.create-account summary{cursor:pointer;font-weight:600}.form-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px}.password-wrap{position:relative}.password-wrap input{padding-right:66px}.password-toggle{position:absolute;right:6px;top:6px;background:transparent;color:#657594;min-height:32px;padding:5px 9px;font-size:12px}.password-toggle:hover:not(:disabled){background:#edf2fc}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#message:empty{display:none}#message:not(:empty){position:sticky;top:12px;z-index:10;padding:14px 20px;background:#fff7e7;border:1px solid #efdbac;color:#7d5c21;border-radius:12px;white-space:pre-wrap;box-shadow:0 5px 20px #2835490a;margin-bottom:22px;font-size:14px}:focus-visible{outline:3px solid #91a6f1;outline-offset:3px}footer{text-align:center;font-size:12px;letter-spacing:.5px;color:#97a2b4;padding:0 20px 30px}
@media(min-width:1000px){.user-list article{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.user-list article>p{flex:1;margin:0;min-width:260px}.user-list article>.badge{margin:0}.user-list article>button{margin:0}}
@media(max-width:1050px){header{flex-wrap:wrap;gap:14px;padding:16px 24px}header nav{order:3;width:100%}.header-actions{margin-left:auto}.studio-layout{grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr)}.video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){main{padding:0 16px;margin-top:26px}header{padding:14px 16px}.brand{font-size:19px}.brand-mark{width:36px;height:36px;border-radius:10px}.brand small{font-size:10px}nav a{padding:9px 10px;font-size:13px}header nav{flex-wrap:nowrap;overflow-x:auto}header nav a{white-space:nowrap}.header-actions{gap:10px}.header-actions .subtle-link{font-size:12px}.page-heading{align-items:flex-start;flex-wrap:wrap;gap:14px}h1{font-size:27px}.studio-layout,.feature-layout,.form-columns{grid-template-columns:1fr}.studio-aside{display:grid;grid-template-columns:1fr}.studio-card{order:1}.studio-aside{order:2}section,.create-account{padding:20px;border-radius:14px}.auth-card{margin:36px auto;padding:28px 24px}.stats-grid{gap:10px}.stat-card{padding:16px 12px}.stat-card span{font-size:11px}.stat-card strong{font-size:28px}.stat-card small{font-size:10px}.section-heading{flex-wrap:wrap;gap:12px}.search-field{width:100%}.toolbar{align-items:flex-start;flex-direction:column}.balance-banner h2{font-size:22px}.generate-footer{align-items:stretch;flex-direction:column}.generate-footer button{width:100%}.video-grid{grid-template-columns:1fr}.video-grid video{height:360px}.photo-layout{grid-template-columns:1fr 110px;gap:12px}.photo-frame img{height:180px}.tag{font-size:10px}.account-pill{font-size:12px}.section-nav{gap:0}.section-nav a{padding:9px}.form-columns{gap:0}.field-meta{flex-wrap:wrap;gap:0}.field-meta p{flex:1;min-width:190px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media(max-width:480px){.photo-layout{grid-template-columns:1fr}.photo-frame{min-height:130px}.photo-frame img{height:200px}.photo-placeholder{padding:35px 0}}
/* Color accents: creative indigo, voice teal, quota amber. */
body{background:radial-gradient(ellipse at 5% 0%,#e9eaff 0,transparent 38%),radial-gradient(ellipse at 95% 20%,#e4f5f4 0,transparent 35%),#f6f7fc}
header{border-bottom-color:#dee3f5;background:linear-gradient(110deg,#fff 45%,#f0f4ff)}
.brand-mark{background:linear-gradient(140deg,#4468ea,#7951d8);box-shadow:0 6px 16px #6654cf26}
.page-heading{padding:26px 28px;border:1px solid #e0e2fb;border-radius:20px;background:linear-gradient(115deg,#eeeaff 0%,#eef3ff 58%,#e1f5f2 100%)}
.page-heading .eyebrow{color:#6547af}.page-heading p{color:#536681}
button:not(.quiet):not(.secondary):not(.danger-link):not(.password-toggle),.button-link{background:linear-gradient(115deg,#3659de,#6950ce);box-shadow:0 4px 10px #514ad51a}
button:not(.quiet):not(.secondary):not(.danger-link):not(.password-toggle):hover:not(:disabled),.button-link:hover{background:linear-gradient(115deg,#294ac5,#583dbd)}
nav a[aria-current=page]{background:#e9e8ff;color:#5140a5}
nav a[data-view=sound][aria-current=page]{background:#ddf4ef;color:#176a5b}
nav a[data-view=balance][aria-current=page]{background:#fff0d9;color:#8b581b}
.studio-card{border-top:3px solid #8070da}.studio-card .tag{background:#efebff;color:#65509c}
.step-title>span{background:#ebe7fc;color:#62459e}
.step-title:nth-of-type(3)>span{background:#e1f4ed;color:#236c56}
.upload-zone{background:#f5f2ff;border-color:#cec5ed}.photo-frame{background:linear-gradient(155deg,#eeeaff,#eaf3ff);border-color:#d4c9ee}
.studio-aside>section:first-child{border-top:3px solid #53ad99}.studio-aside .eyebrow{color:#28745f}
.studio-aside .notice{background:#eaf7f1;border-left-color:#61b19b;color:#326d5c}
.hint-card{background:linear-gradient(140deg,#fff7e7,#fffaf2);border-color:#f0dfb9}.hint-card h3{color:#865923}.hint-card .tips,.hint-card .fine{color:#806a48}
[data-panel=sound] section{border-top:3px solid #5aaf9e}
[data-panel=sound] .eyebrow{color:#277b68}
[data-panel=sound] .notice{background:#e9f7f2;border-left-color:#62b8a2;color:#2e705d}
.balance-banner{background:linear-gradient(110deg,#fff0d9,#fff7e9 55%,#fbefdF);border-color:#edd5ae;border-left:5px solid #dda145}
.balance-banner .eyebrow{color:#906224}.balance-banner h2{color:#805321}.balance-banner p{color:#806641}
[data-panel=balance] .feature-layout>section:first-child{border-top:3px solid #dda145}
.service-strip{background:#edf3fc;color:#506580}
.auth-card{border-top:4px solid #8064d6;background:linear-gradient(170deg,#f8f5ff,white 35%);box-shadow:0 18px 60px #59499c0d}
.admin-theme .page-heading{background:linear-gradient(110deg,#e9edff,#f0edfc 58%,#e6f4fa)}
.stat-card:nth-child(1){background:linear-gradient(135deg,#eeeaff,#faf8ff);border-color:#ddd4f4;border-top:3px solid #9575db}
.stat-card:nth-child(1) strong{color:#6947a2}.stat-card:nth-child(1) span,.stat-card:nth-child(1) small{color:#735f91}
.stat-card:nth-child(2){background:linear-gradient(135deg,#fff0d8,#fffbf4);border-color:#efdcbc;border-top:3px solid #dda351}
.stat-card:nth-child(2) strong{color:#95601d}.stat-card:nth-child(2) span,.stat-card:nth-child(2) small{color:#876b40}
.stat-card:nth-child(3){background:linear-gradient(135deg,#e1f2f5,#f5fcfc);border-color:#cae5e8;border-top:3px solid #63acb8}
.stat-card:nth-child(3) strong{color:#286e7a}.stat-card:nth-child(3) span,.stat-card:nth-child(3) small{color:#517983}
#authorizations-panel{border-top:3px solid #9575db}#requests-panel{border-top:3px solid #dda351}#voices-panel{border-top:3px solid #64b19c}#jobs-panel{border-top:3px solid #7394d8}
.video-grid section[data-status=succeeded]{border-top:3px solid #64b19c}.video-grid section[data-status=processing]{border-top:3px solid #7b8ddd}
.video-grid section[data-status=caption_failed],.video-grid section[data-status=failed]{border-top:3px solid #dc9494}
@media(max-width:760px){.page-heading{padding:22px 20px;border-radius:16px}}


#reset-password-dialog{width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:1px solid #dce3f0;border-radius:18px;color:#172940;background:#fff;box-sizing:border-box}
#reset-password-dialog::backdrop{background:rgba(15,28,48,.48)}
#reset-password-dialog form{display:grid;gap:14px;margin:0}
#reset-password-dialog p,#reset-password-dialog h2{margin:0;overflow-wrap:anywhere}
#reset-password-dialog label{display:grid;gap:6px;margin:0}
#reset-password-dialog textarea{box-sizing:border-box;width:100%;resize:vertical}
#reset-password-dialog .reset-confirm{display:flex;align-items:flex-start;gap:8px}
#reset-password-dialog .reset-confirm input{width:16px;min-height:16px;height:16px;flex:0 0 auto;margin-top:4px}
#reset-password-dialog .reset-actions{display:flex;justify-content:flex-end;gap:10px}
#reset-password-error{color:#b42318}
