:root{color-scheme:light;font-family:system-ui,sans-serif;color:#182037;background:#f0f3f9;line-height:1.6}
*{box-sizing:border-box}
body{margin:0}
[hidden]{display:none!important}
header{padding:1rem max(1rem,calc((100% - 64rem)/2));display:flex;gap:1rem;justify-content:space-between;align-items:center;background:#19264a;color:#fff}
header a{color:inherit;text-decoration:none;font-weight:750;white-space:nowrap}
header a span{font-size:.875rem;margin-left:.55rem;font-weight:450}
header #account{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
main{width:min(100% - 2rem,64rem);margin:1.3rem auto 3rem}
section{background:#fff;border:1px solid #dae0eb;border-radius:.9rem;padding:clamp(1rem,3vw,2rem);margin-bottom:1rem}
h1,h2,h3{line-height:1.2;margin:0 0 1rem}
h3{margin-top:1.5rem}
form{display:grid;gap:.85rem}
label{display:grid;gap:.3rem;font-weight:600}
input,textarea,select,button{font:inherit}
input,textarea,select{background:white;color:inherit;border:1px solid #a9b5ca;border-radius:.5rem;padding:.55rem .7rem;max-width:100%;width:100%}
textarea{resize:vertical}
button,.upload{border:0;border-radius:.5rem;background:#284ac2;color:white;padding:.55rem .9rem;cursor:pointer;justify-self:start;font-weight:650}
.secondary,.upload{background:#e7ecfb;color:#233b88}
button:disabled{opacity:.55;cursor:wait}
.upload input{position:absolute;width:1px;height:1px;opacity:0}
.upload:focus-within{outline:2px solid #4266e9}
.actions,.specs{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}
.specs label{min-width:8rem;flex:1}
.hint{color:#526179;margin:0}
#status{background:#e4edff;border-radius:.5rem;padding:.65rem 1rem;margin-bottom:.75rem;overflow-wrap:anywhere}
#status.error{background:#fff0ef;color:#991b1b}
pre{font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;padding:1rem;background:#f5f7fc;border-radius:.5rem}
#refs a,#links a{display:inline-block;margin:0 .8rem .55rem 0}
video{display:block;max-width:min(100%,22rem);margin:.75rem 0}
.entry{border-bottom:1px solid #dae0eb;padding:.55rem 0;overflow-wrap:anywhere}
@media(max-width:480px){header{align-items:flex-start}header a span{display:block;margin:0}}
:root{color:#ecedf8;background:#121320;color-scheme:dark}
body{background:radial-gradient(ellipse at 16% 0%,#30235a 0%,transparent 47rem),#121320;min-height:100vh}
header{background:#191a2b;border-bottom:1px solid #35334b;padding-inline:max(1rem,calc((100% - 72rem)/2))}
.brand{display:flex;align-items:center;gap:.65rem}
.brand .brand-mark{display:grid;place-items:center;background:#c2b0ff;color:#221947;border-radius:.7rem;width:2.6rem;height:2.6rem;margin:0;font-size:1.15rem;font-weight:800}
.brand .brand-name{margin:0;font-size:1.06rem;font-weight:750}
.brand small{display:block;color:#b9b7d2;font-size:.8rem;font-weight:550}
main{width:min(100% - 2rem,72rem);margin-top:clamp(1rem,4vw,3rem)}
section{background:#1c1e30;border-color:#353650;box-shadow:0 12px 24px #0e0e1d38;border-radius:1rem;min-width:0}
#access{max-width:35rem;margin-inline:auto}
h1{font-size:clamp(1.6rem,4vw,2.35rem);letter-spacing:-.035em}
h2{font-size:1.25rem}
.intro,.hint{color:#b8b9cf}
.intro{margin:-.4rem 0 1.2rem}
input,textarea,select,pre{background:#141626;border-color:#515372;color:#eef0ff}
textarea::placeholder{color:#9da0ba}
input[type=file]{border-style:dashed;padding:.8rem}
input::file-selector-button{border:0;border-radius:.35rem;background:#343154;color:#f0ebff;padding:.35rem .65rem;margin-inline-end:.65rem}
button,.upload{background:#c2b0ff;color:#211846;min-height:44px}
.secondary,.upload{background:#343154;color:#eeebff}
.audio-actions{padding:.65rem;border:1px solid #414361;border-radius:.7rem}
#balance{color:#ded8fa;font-size:.88rem}
.entry{border-color:#353650}
a{color:#c9bbff}
:focus-visible{outline:2px solid #c6b7ff;outline-offset:3px}
#history:empty::before{content:"暂无创作任务";color:#b8b9cf}
.site-footer{padding:0 1rem 1.5rem;text-align:center;font-size:.875rem}
.site-footer a{color:#b8b9cf}
.workflow-links{margin-top:1rem}
#video-status{margin-bottom:1rem}
#admin .entry input[type=number]{width:8rem}
#admin .entry select{width:min(100%,15rem)}
#admin details form{padding:.7rem 0}
.flow-fields{display:grid;gap:.85rem;min-width:0;margin:0;padding:0;border:0}
.flow-fields:disabled{opacity:.6}
.flow-fields:disabled .upload{cursor:not-allowed}
#credits-lock{margin-bottom:1rem}
.auth-switch,.auth-options{display:flex;flex-wrap:wrap;gap:.6rem;margin-bottom:.9rem}
.auth-switch{padding:.25rem;background:#141626;border-radius:.7rem}
.auth-switch button{flex:1;background:transparent;color:#cbc6e5}
.auth-switch button[aria-pressed=true]{background:#343154;color:#fff}
.auth-options label{display:flex;align-items:center;gap:.45rem;font-weight:500}
.auth-options input{width:1rem;height:1rem;accent-color:#c2b0ff}
.text-button{background:none;color:#c9bbff;padding-inline:0;margin-top:.6rem}
#forgot,#account-security summary{color:#c9bbff}
#forgot summary,#account-security summary{cursor:pointer}
#forgot p{margin:.4rem 0 0}
#account-security form{padding-top:1rem}
@media(min-width:900px){
  #workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(15rem,22rem);gap:1rem;align-items:start}
  #workspace>section{grid-column:1;margin:0}
  #workspace #history-panel{grid-column:2;grid-row:1}
  #workspace #admin{grid-column:1/-1}
}
@media(max-width:520px){
  main{width:calc(100% - 1rem)}
  section{padding:1rem}
  input,textarea,select{font-size:16px}
  .audio-actions>*{flex:1;text-align:center}
}
