:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  color: #222;
  background: #fff;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, textarea, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .5; }
button, a, textarea, input { outline-offset: 4px; }
a:focus-visible, button:focus-visible { outline: 2px solid #555; }
.page { max-width: 808px; padding: 0 28px; margin: 0 auto; }
.topbar { height: 88px; display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: #777; font-size: 14px; }
.topbar a:hover { color: #222; }
.topbar .brand { font-size: 12px; font-weight: 650; letter-spacing: 1.8px; color: #353535; }
main { padding-top: 39px; }
.heading { margin-bottom: 38px; }
h1 { font-size: 34px; line-height: 1.3; letter-spacing: -1px; font-weight: 600; margin: 0; }
.heading p { color: #777; font-size: 16px; line-height: 1.7; margin: 12px 0 0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 13px; }
h2 { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 550; margin: 0; }
#link-count { color: #8a8a8a; font-size: 13px; font-variant-numeric: tabular-nums; }
textarea { width: 100%; display: block; resize: vertical; min-height: 158px; max-height: 480px; border: 1px solid #dedede; border-radius: 10px; padding: 17px 18px; color: #333; background: #fff; font-size: 15px; line-height: 1.75; transition: border-color .15s; }
textarea::placeholder { color: #aaa; }
textarea:hover { border-color: #bdbdbd; }
textarea:focus { outline: 2px solid #ececec; outline-offset: 2px; border-color: #888; }
.input-note { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; color: #929292; font-size: 13px; line-height: 1.6; }
.text-button { color: #777; border: 0; background: transparent; padding: 4px 0; font-size: 14px; }
.text-button:hover { color: #222; }
.controls { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 25px; }
.formats { display: flex; gap: 3px; border: 0; padding: 4px; margin: 0; background: #f3f3f3; border-radius: 9px; }
.format-option { position: relative; cursor: pointer; }
.format-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.format-option > span { display: block; padding: 10px 15px; color: #777; border-radius: 6px; font-size: 14px; line-height: 20px; white-space: nowrap; }
.format-option small { color: #999; font-size: 12px; margin-left: 5px; }
.format-option input:checked + span { background: #fff; color: #222; box-shadow: 0 1px 4px #00000010; }
.format-option input:focus-visible + span { outline: 2px solid #666; outline-offset: 3px; }
.primary { display: flex; justify-content: center; align-items: center; gap: 25px; padding: 13px 22px; min-height: 48px; border: 1px solid #222; border-radius: 8px; color: #fff; background: #222; font-size: 14px; font-weight: 550; white-space: nowrap; }
.primary:hover { background: #444; border-color: #444; }
.primary > span:last-child { font-size: 20px; line-height: 1; font-weight: 400; }
.error, .status-note { padding: 12px 15px; margin: 18px 0 0; color: #a04435; background: #fff7f5; border: 1px solid #f0dcd6; border-radius: 8px; font-size: 14px; line-height: 1.6; }
.results { margin-top: 46px; padding-top: 27px; border-top: 1px solid #ededed; }
.count { font-size: 12px; color: #999; font-weight: 400; }
.empty { padding: 34px 16px; border-radius: 9px; background: #fafafa; text-align: center; color: #aaa; font-size: 14px; }
.retention { font-size: 12px; color: #999; margin: 13px 0 0; }
.job { border: 1px solid #e7e7e7; border-radius: 10px; padding: 19px 20px; margin-bottom: 12px; }
.job-main { display: flex; align-items: center; gap: 12px; }
.song-icon { display: grid; place-items: center; width: 39px; height: 42px; flex-shrink: 0; color: #777; background: #f5f5f5; font-size: 22px; border-radius: 7px; }
.song-info { min-width: 0; flex: 1; }
.song-info h3 { margin: 0; color: #333; font-size: 15px; font-weight: 550; line-height: 1.5; overflow-wrap: anywhere; }
.job-meta { margin: 4px 0 0; color: #999; font-size: 12px; }
.badge { flex-shrink: 0; color: #777; background: #f4f4f4; font-size: 12px; border-radius: 5px; padding: 4px 7px; }
.job[data-status=done] .badge { color: #4f7760; background: #f0f7f2; }
.job[data-status=failed] .badge { color: #ac5b4d; background: #fff3ef; }
.job-detail { padding-left: 51px; }
.job-message { font-size: 14px; color: #888; line-height: 1.6; margin: 14px 0 10px; overflow-wrap: anywhere; }
.job[data-status=done] .job-message { display: none; }
.job[data-status=failed] .job-message { color: #ac5b4d; }
progress { width: 100%; height: 3px; display: block; border: 0; border-radius: 3px; background: #eee; accent-color: #555; }
progress::-webkit-progress-bar { background: #eee; border-radius: 3px; }
progress::-webkit-progress-value { background: #555; border-radius: 3px; }
.job-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 15px; gap: 12px; }
.job-size { color: #999; font-size: 12px; }
.job-actions { display: flex; gap: 8px; margin-left: auto; }
.small-button { display: inline-block; color: #555; background: #fff; border: 1px solid #ddd; border-radius: 6px; padding: 7px 12px; font-size: 14px; line-height: 20px; }
.small-button:hover { background: #f7f7f7; }
.small-button.download { color: #fff; background: #333; border-color: #333; }
.small-button.download:hover { background: #555; }
audio { width: 100%; margin-top: 15px; height: 36px; }
footer { padding: 38px 0 30px; color: #aaa; font-size: 12px; }
.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; }
[hidden] { display: none !important; }
@media (max-width: 600px) {
  .page { padding: 0 22px; }
  .topbar { height: 72px; }
  main { padding-top: 21px; }
  h1 { font-size: 29px; }
  .heading { margin-bottom: 30px; }
  .heading p { font-size: 14px; }
  textarea { min-height: 155px; }
  .controls { gap: 16px; flex-wrap: wrap; }
  .formats { flex: 1; }
  .format-option { flex: 1; text-align: center; }
  .format-option > span { padding: 9px 12px; }
  .primary { width: 100%; }
  .results { margin-top: 33px; padding-top: 23px; }
  .job { padding: 16px; }
  .job-detail { padding-left: 0; }
  .badge { font-size: 11px; }
  footer { padding-top: 30px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
