:root {
  color-scheme: dark;
  font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  background: #101512;
  color: #f5f7ef;
  --mint: #c2ff85;
  --quiet: #abbcb0;
  --edge: #37443c;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; min-height: 100vh; }
body:has(.workspace) {
  background: radial-gradient(ellipse at 20% 30%, #213227 0%, #101512 55%);
}
button, textarea { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1120px, calc(100% - 64px)); margin: auto; }
.masthead {
  min-height: 96px; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; border-bottom: 1px solid var(--edge);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; }
.brand img { flex: none; }
.workspace { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(30px, 6vw, 88px); align-items: center; padding: clamp(58px, 8vw, 105px) 0 56px; }
.hero { position: relative; min-width: 0; }
.sources { display: flex; gap: 9px; flex-wrap: wrap; margin: 0 0 22px; }
.source { display: inline-flex; align-items: center; gap: 8px; border: 1px solid; border-radius: 99px; padding: 6px 12px; font-size: .875rem; font-weight: 650; }
.source::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; }
.source-soda { border-color: #42604b; color: #c3f5b3; background: #24382a; }
.source-netease { border-color: #744b4c; color: #ffc4bd; background: #3d282a; }
h1 { margin: 0; font-size: clamp(2.55rem, 5.7vw, 5rem); line-height: 1.12; letter-spacing: -.075em; }
h1 span { white-space: nowrap; }
h1 em { color: var(--mint); font-style: normal; letter-spacing: -.055em; }
.intro p { margin: 21px 0 0; color: var(--quiet); font-size: 1.0625rem; line-height: 1.78; }
.art { position: relative; height: 137px; width: 248px; margin: 24px 0 0 1px; isolation: isolate; }
.sleeve {
  position: absolute; inset: 17px auto auto 15px; width: 118px; height: 118px;
  background: repeating-linear-gradient(134deg,#e8ff9b46 0 1px,transparent 1px 8px), linear-gradient(150deg,#76a957,#30473b);
  border: 1px solid #7d9f6c; border-radius: 8px; transform: rotate(-11deg);
}
.record {
  position: absolute; left: 71px; top: 0; display: grid; place-items: center; width: 137px; height: 137px;
  border-radius: 50%; border: 1px solid #526653;
  background: conic-gradient(from 40deg, transparent, #a6e19522, transparent 33%, transparent 49%, #a6e19533, transparent 81%),
    repeating-radial-gradient(circle, #1a231b 0 3px, #374638 4px, #1a231b 5px 7px);
  box-shadow: 2px 12px 26px #0008;
}
.record-label { width: 51px; height: 51px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: #1a301c; font-size: 1.7rem; transform: rotate(12deg); }
.panel { background: #1a241e; border: 1px solid var(--edge); border-radius: 27px; padding: clamp(20px, 3vw, 34px); box-shadow: 0 26px 64px #060c0866; min-width: 0; }
.download-panel { background: linear-gradient(165deg,#25332a,#17201b 66%); border-color: #45574a; }
.form-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
h2 { margin: 0; font-size: 1.25rem; }
.form-caption { margin: 7px 0 0; color: var(--quiet); font-size: .875rem; line-height: 1.55; }
.secondary { border: 1px solid #43584a; background: #23332a; color: #e3efe4; padding: 8px 15px; border-radius: 10px; font-size: .875rem; }
#paste { flex: none; white-space: nowrap; }
.secondary:hover { background: #314537; }
textarea { display: block; width: 100%; resize: vertical; min-height: 107px; max-height: 320px; border-radius: 13px; border: 1px solid #405147; background: #111a15; color: #f4f7ee; padding: 15px; line-height: 1.55; }
textarea::placeholder { color: #9aafa0; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.help { color: var(--quiet); font-size: .875rem; line-height: 1.55; margin: 10px 0 25px; }
.primary { width: 100%; border: 0; color: #18250e; background: var(--mint); border-radius: 12px; min-height: 54px; font-weight: 800; }
.primary:hover { background: #d4ffa5; }
.primary:disabled { opacity: .66; cursor: wait; }
progress { display: block; width: 100%; height: 5px; margin-top: 12px; accent-color: var(--mint); }
.result { display: flex; align-items: baseline; gap: 10px; margin-top: 22px; min-height: 42px; padding-top: 17px; border-top: 1px solid var(--edge); color: var(--quiet); font-size: .875rem; line-height: 1.5; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.result[data-state="done"] { color: var(--mint); }
.result[data-state="error"] { color: #ffb5a7; }
#status { min-width: 0; overflow-wrap: anywhere; }
#save-again { margin-left: auto; color: inherit; white-space: nowrap; text-underline-offset: .2em; }
footer { padding: 20px 0 30px; border-top: 1px solid var(--edge); color: var(--quiet); font-size: .875rem; }
.admin-link { color: var(--quiet); text-decoration: none; border: 1px solid var(--edge); padding: 8px 13px; border-radius: 9px; font-size: .875rem; white-space: nowrap; }
.admin-link:hover { color: var(--mint); }
.admin-layout { max-width: 650px; margin: 56px auto; }
.admin-form { display: grid; gap: 14px; margin-top: 22px; }
.admin-form input[type="password"] { min-width: 0; min-height: 47px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--edge); background: #111a15; color: inherit; font: inherit; }
.admin-details { margin: 20px 0; display: grid; }
.admin-details div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--edge); }
.admin-details dt { color: var(--quiet); }
.admin-details dd { margin: 0; text-align: right; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.admin-form input[type="file"] { max-width: 100%; color: var(--quiet); }
.admin-form .help { margin: 0; }
.admin-actions button:disabled { opacity: .45; cursor: default; }
.admin-message { color: var(--mint); line-height: 1.6; margin: 16px 0 0; }
@media (max-width: 760px) {
  .shell { width: calc(100% - 36px); }
  .masthead { min-height: 70px; }
  .workspace { grid-template-columns: 1fr; gap: 25px; padding: 38px 0 32px; }
  .intro p { margin-top: 14px; }
  .art { display: none; }
  .desktop-break { display: none; }
}
@media (max-width: 355px) {
  .shell { width: calc(100% - 24px); }
  .download-panel { padding: 16px; }
  h1 { font-size: 2.3rem; }
  #paste { padding-inline: 9px; }
  .masthead { gap: 8px; }
  .brand { gap: 6px; }
}
