* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
:root {
  font-family: Inter, "Microsoft YaHei", system-ui, sans-serif;
  color: #17243d;
  background: #f3f6fb;
  font-size: 14px;
  --blue: #2557da;
  --line: #dee5ef;
  --muted: #69778c;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.48;
  cursor: default;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #8cb6ff;
  outline-offset: 2px;
}
header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.bar,
.shell {
  width: min(1170px, calc(100% - 64px));
  margin: auto;
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 22px;
  font-weight: 760;
  color: #15223a;
}
.mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: #2256d7;
  border-radius: 10px;
  font-size: 23px;
  font-style: normal;
  color: white;
}
.brand-sub {
  font-size: 13px;
  font-weight: 500;
  color: #6d788c;
  border-left: 1px solid #d4deeb;
  padding-left: 12px;
}
.bar nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.bar nav a {
  color: #526078;
  font-weight: 600;
}
.bar nav .current {
  color: var(--blue);
}
.shell {
  margin: 30px auto 50px;
}
.hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, #102e67, #204994 66%, #396cc4);
  color: white;
  padding: 32px 38px 35px;
  border-radius: 17px;
}
.hero-content {
  position: relative;
  max-width: 68%;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 45px);
  letter-spacing: -0.04em;
  margin: 0 0 8px;
}
.hero p {
  color: #d2e1fa;
  margin: 0 0 24px;
}
.record {
  position: absolute;
  right: -1%;
  top: -38%;
  width: min(41vw, 465px);
  aspect-ratio: 1;
  border-radius: 100%;
  background:
    repeating-radial-gradient(
      circle,
      transparent 0 3px,
      #b8d8ff32 4px,
      transparent 5px 7px
    ),
    conic-gradient(
      from 28deg,
      #163772,
      #5585cc 19%,
      #244a8e 37%,
      #132c67 53%,
      #5e8ed1 72%,
      #173673 94%
    );
  box-shadow: 0 6px 24px #051a473d;
  transform: rotate(-21deg);
  z-index: -1;
}
.record i {
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background:
    radial-gradient(circle, #244683 0 5%, #9fb8ed 6% 8%, transparent 9%),
    linear-gradient(25deg, #7194db, #b1c8ed);
  border: 8px solid #284c88;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border-radius: 8px;
  padding: 5px 5px 5px 13px;
  max-width: 570px;
}
.search span {
  color: #536a91;
  font-size: 24px;
}
.search input {
  border: 0;
  margin: 0;
  background: transparent;
  min-width: 0;
  flex: 1;
}
.search button,
.primary {
  background: var(--blue);
  color: white;
  border: 0;
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: 640;
}
.primary:hover,
.search button:hover {
  background: #1645c1;
}
.hero + .library {
  margin-top: 22px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 4px 18px #25395706;
  min-width: 0;
}
.sectionhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
h2 {
  font-size: 20px;
  margin-bottom: 0;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 16px;
}
.library,
.panel {
  padding: 24px;
}
.quiet,
.secondary,
.textbtn,
.close {
  background: transparent;
  color: #50617c;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 11px;
}
.quiet:hover,
.secondary:hover {
  background: #eff4fc;
}
.textbtn,
.close {
  border: 0;
  color: var(--blue);
}
.table-head,
.songrow {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(60px, 0.75fr) 90px;
  align-items: center;
  gap: 10px;
}
.table-head {
  font-size: 12px;
  color: #68768c;
  background: #f5f7fa;
  padding: 10px 12px;
  border-radius: 6px;
}
.table-head span:last-child,
.align-right {
  text-align: right;
}
.songrow {
  border-bottom: 1px solid #ebeff5;
  padding: 15px 8px;
}
.song-message {
  grid-column: 1 / -1;
  margin: 0 0 0 50px;
  font-size: 13px;
  color: var(--muted);
}
.songmeta {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.songmeta > div {
  min-width: 0;
  flex: 1;
}
.song-title {
  display: flex;
  align-items: center;
  gap: 6px;
}
.quark-link {
  flex: none;
  border: 0;
  padding: 3px 7px;
  border-radius: 5px;
  background: #eaf0ff;
  color: #204cab;
  font-size: 12px;
  font-weight: 600;
}
.quark-link:hover {
  background: #dbe6ff;
  text-decoration: underline;
}
.songrow .textbtn {
  padding-inline: 0;
}
.mobile-album {
  display: none;
}
.songmeta strong,
.songmeta small,
.album {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.songmeta strong,
.songmeta small {
  display: block;
}
.songmeta small,
.muted,
.album,
.hint,
.empty p {
  color: var(--muted);
}
.albumdisc {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 8px;
  background: #e3ebff;
  color: #3d65c3;
  flex: none;
  font-size: 20px;
}
.songrow:nth-child(3n) .albumdisc {
  background: #e0f2ee;
  color: #347568;
}
.songrow:nth-child(3n + 2) .albumdisc {
  background: #eee6fc;
  color: #7b58af;
}
.empty {
  text-align: center;
  padding: 50px 12px;
  color: #3c4b61;
}
.empty h3 {
  margin: 16px 0 6px;
}
.empty p {
  margin: 0;
  font-size: 13px;
}
.emptydisc {
  margin: auto;
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      #f7f9ff 0 6%,
      #8da6d3 7% 10%,
      #b2c2e0 11% 26%,
      transparent 27%
    ),
    repeating-radial-gradient(circle, #d0daed 0 3px, #e1e8f6 4px 6px);
  border: 1px solid #cbd8eb;
}
label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 16px;
}
input,
textarea,
select {
  display: block;
  background: #fff;
  color: #17243d;
  border: 1px solid #d6deea;
  border-radius: 6px;
  padding: 10px 12px;
  width: 100%;
  margin-top: 6px;
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #5581e7;
  box-shadow: 0 0 0 3px #195cdd15;
}
input::placeholder,
textarea::placeholder {
  color: #96a1b2;
}
textarea {
  resize: vertical;
}
.hint {
  font-size: 12px;
  line-height: 1.7;
  margin: -5px 0 18px;
}
.full {
  width: 100%;
}
.badge {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 20px;
  background: #edf1f6;
  color: #57667b;
  padding: 4px 9px;
  white-space: nowrap;
}
.badge:before {
  content: "";
  background: currentColor;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.ready {
  background: #e3f4ec;
  color: #29724d;
}
.working,
.queued {
  background: #e9eeff;
  color: #3a5daf;
}
.failed,
.invalid,
.revoked {
  background: #faeae6;
  color: #98492e;
}
.pager,
.actions,
.tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pager {
  justify-content: center;
  padding-top: 16px;
  color: var(--muted);
  font-size: 12px;
}
dialog {
  border: 0;
  border-radius: 14px;
  padding: 28px;
  width: min(510px, 92vw);
  color: inherit;
  box-shadow: 0 16px 80px #12274b30;
}
dialog::backdrop {
  background: #0b162a6b;
}
dialog h2 {
  margin: 0 36px 22px 0;
}
.site-footer {
  display: flex;
  justify-content: center;
  padding: 0 16px 28px;
}
.disclaimer-copy {
  color: var(--muted);
  line-height: 1.7;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
#download-code {
  width: min(520px, 92vw);
  max-height: 80dvh;
  overflow-y: auto;
}
.download-code-fields {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 8px;
}
.download-code-fields input {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.download-code-fields button {
  flex: none;
}
.download-code-message {
  color: #9c302a;
  margin: 8px 0 0;
}
.download-code-message:empty {
  display: none;
}
.download-help {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.download-help > :first-child {
  margin-top: 0;
}
.download-help img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.download-help figure {
  margin: 12px 0 18px;
}
.download-help-qr {
  width: 240px;
  border: 1px solid var(--line);
}
.download-help-steps {
  padding-inline-start: 24px;
}
.close {
  float: right;
  font-size: 24px;
  line-height: 1;
  color: #59667a;
}
.share-url {
  overflow-wrap: anywhere;
  display: block;
  margin: 14px 0;
  font-weight: 600;
}
.toast {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #1b3359;
  color: white;
  border-radius: 8px;
  padding: 11px 18px;
  max-width: 90vw;
}
.bad {
  background: #903e38;
}
.admintitle {
  margin-bottom: 22px;
  font-size: 30px;
}
.workarea {
  display: grid;
  grid-template-columns: 175px minmax(0, 1fr);
  gap: 20px;
}
.side {
  padding: 10px;
  height: fit-content;
}
.side button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 12px 15px;
  border-radius: 7px;
  color: #596980;
}
.side .selected {
  background: #eaf0ff;
  color: var(--blue);
  font-weight: 700;
}
.panel {
  min-height: 340px;
}
.upload-count {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.upload-count strong {
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.task-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.task-filters button[aria-pressed="true"] {
  background: #eaf0ff;
  border-color: #adc3fa;
  color: #234bad;
  font-weight: 650;
}
.task-filters select {
  width: auto;
  padding: 6px 9px;
  margin: 0;
}
.tools {
  margin-bottom: 16px;
}
.tools input,
.tools select {
  width: auto;
  flex: 1;
  min-width: 125px;
}
.adminrow {
  border-top: 1px solid var(--line);
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.adminrow strong {
  overflow-wrap: anywhere;
}
.adminrow small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.adminrow .queue-position {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.adminrow .issue {
  color: #994f3b;
  line-height: 1.6;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.actions button {
  font-size: 12px;
}
.login {
  max-width: 400px;
  margin: 10vh auto;
  padding: 28px;
}
.login h1 {
  font-size: 24px;
}
.help {
  line-height: 1.65;
  color: var(--muted);
}
fieldset {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
}
legend {
  font-weight: bold;
  margin-bottom: 10px;
}
.opts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.opts label {
  margin: 0;
}
.opts input {
  position: absolute;
  opacity: 0;
  width: 1px;
}
.opts span {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  display: block;
  cursor: pointer;
}
.opts input:checked + span {
  background: var(--blue);
  color: #fff;
}
.opts input:focus-visible + span {
  outline: 2px solid #91b6ff;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.check input {
  width: auto;
  margin: 0;
}
.danger {
  color: #ab4747;
}
.compact {
  max-width: 480px;
}
.path {
  display: flex;
  gap: 5px;
  margin: 10px 0 20px;
  flex-wrap: wrap;
}
.path button {
  padding: 3px 6px;
}
@media (max-width: 820px) {
  .bar,
  .shell {
    width: calc(100% - 28px);
  }
  .workarea {
    grid-template-columns: 1fr;
  }
  .side {
    display: flex;
    overflow: auto;
  }
  .side button {
    text-align: center;
    white-space: nowrap;
  }
  .hero-content {
    max-width: 82%;
  }
  .hero {
    padding: 26px;
  }
  .record {
    right: -12%;
    top: 0;
  }
  .library,
  .panel {
    padding: 18px;
  }
}
@media (max-width: 520px) {
  .brand-sub {
    display: none;
  }
  .bar {
    height: 56px;
  }
  .bar nav {
    gap: 13px;
  }
  .shell {
    margin-top: 16px;
  }
  .hero-content {
    max-width: 100%;
  }
  .record {
    opacity: 0.32;
    right: -18%;
    width: 70vw;
  }
  .hero {
    padding: 22px 17px;
  }
  .table-head,
  .songrow {
    grid-template-columns: minmax(0, 1fr) 85px;
  }
  .table-head span:nth-child(2),
  .album {
    display: none;
  }
  .mobile-album {
    display: inline;
  }
  .empty {
    padding: 32px 8px;
  }
  .sectionhead {
    margin-bottom: 16px;
  }
  .side {
    gap: 0;
  }
  .side button {
    font-size: 13px;
    padding: 10px 6px;
  }
}
