:root {
  color-scheme: light;
  --bg: #f7f7fa;
  --ink: #27232e;
  --muted: #726f7c;
  --line: #e7e5ec;
  --purple: #7951cf;
  --side: 206px;
  font-family:
    Inter, "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  color: var(--ink);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  font-size: 14px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  border: 0;
  background: transparent;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #ac8def;
  outline-offset: 3px;
}
svg.ico {
  width: 18px;
  height: 18px;
  display: block;
  flex: none;
  stroke-width: 1.7;
}
button:hover {
  filter: brightness(0.96);
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
h1,
h2,
h3,
p {
  margin: 0;
}
.side {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--side);
  background: #1a1821;
  color: #ddd9e6;
  padding: 31px 16px 17px;
  display: flex;
  flex-direction: column;
  z-index: 3;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #faf9fd;
  text-decoration: none;
  font-size: 24px;
  font-weight: 690;
  letter-spacing: -1.1px;
  line-height: 1.06;
  padding-left: 8px;
}
.brand img {
  width: 39px;
  height: 39px;
  box-shadow: 0 3px 15px #09051340;
  border-radius: 12px;
}
.brand-sub {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  color: #b8b1c6;
}
.nav-label {
  color: #93909f;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
}
.side > .nav-label {
  margin: 55px 12px 10px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border-radius: 8px;
  text-align: left;
  padding: 11px 12px;
  margin-bottom: 4px;
  color: #c1bccd;
  font-size: 13px;
  font-weight: 500;
}
.nav-item.active {
  background: #332b43;
  color: #d8c3ff;
}
.nav-item:hover,
.recent-item:hover {
  background: #2c2736;
}
.recent-head {
  margin: 30px 6px 9px 12px;
  border-top: 1px solid #36323d;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.side-plus {
  color: #aaa3b7;
  padding: 4px;
}
.side-plus svg {
  width: 15px;
  height: 15px;
}
#recent {
  overflow: auto;
}
.recent-item {
  width: 100%;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c5bfce;
  border-radius: 7px;
  text-align: left;
}
.recent-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.recent-item svg {
  color: #9c90b4;
  width: 15px;
}
.side-bottom {
  margin-top: auto;
  padding-top: 20px;
}
.engine {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #36323d;
  padding: 19px 7px 2px;
  font-size: 11px;
  color: #c8c4d1;
}
.engine small {
  margin-left: auto;
  color: #aaa4b4;
}
.status-dot {
  width: 7px;
  height: 7px;
  background: #58b995;
  display: inline-block;
  flex: none;
  border-radius: 50%;
}
main {
  margin-left: var(--side);
  min-height: 100vh;
}
.topbar {
  height: 58px;
  padding: 0 clamp(23px, 3vw, 52px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fdfcfe;
}
.crumb,
.status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.crumb b {
  color: #47434f;
  font-weight: 550;
}
.crumb svg {
  width: 15px;
  height: 15px;
}
.crumb svg:nth-of-type(2) {
  width: 12px;
  color: #a29baa;
}
.status {
  color: #676471;
  font-size: 11px;
}
.mobile-library {
  display: none !important;
}
.workspace {
  max-width: 1550px;
  margin: auto;
  padding: clamp(24px, 2.4vw, 38px) clamp(23px, 3vw, 52px) 36px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
h1 {
  font-size: clamp(28px, 2.25vw, 38px);
  line-height: 1.25;
  font-weight: 730;
  letter-spacing: -1.4px;
}
.page-heading p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 7px;
}
.btn {
  border: 1px solid #dedbe5;
  background: #fff;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-weight: 600;
  border-radius: 8px;
  font-size: 13px;
}
.btn svg {
  width: 16px;
  height: 16px;
}
.primary {
  border-color: #7650cb;
  background: #7952cd;
  color: #fff;
  box-shadow: 0 2px 5px #4a247322;
}
.import-btn {
  height: 41px;
}
.project {
  background: #292034;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  min-height: 167px;
  display: flex;
  align-items: center;
  color: white;
  isolation: isolate;
}
.project-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #282131 0%, #282131ef 30%, #28213100 77%),
    url("/static/record.webp") right 52% / cover no-repeat,
    #392942;
}
.project-copy {
  width: 76%;
  padding: 24px 31px;
  text-shadow: 0 1px 5px #251c2f80;
}
.project-kicker {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #ddd4e8;
  font-size: 11px;
  letter-spacing: 0.5px;
  font-weight: 550;
}
.kicker-divider {
  width: 1px;
  height: 11px;
  background: #8b7d98;
}
.signal {
  display: inline-flex;
  align-items: center;
  height: 15px;
  gap: 2px;
}
.signal b {
  background: #cbb1fa;
  width: 2px;
  border-radius: 2px;
  height: 6px;
}
.signal b:nth-child(2) {
  height: 12px;
}
.signal b:nth-child(3) {
  height: 9px;
}
.project h2 {
  font-weight: 680;
  font-size: clamp(26px, 2.4vw, 36px);
  margin: 12px 0 14px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.8px;
  line-height: 1.24;
}
.song-meta {
  color: #e8e1ee;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.song-meta > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.song-meta svg {
  width: 14px;
  height: 14px;
  color: #cebedc;
}
.song-meta > span + span {
  border-left: 1px solid #766b82;
  padding-left: 13px;
}
.panels {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(265px, 1fr);
  gap: 19px;
  margin-top: 21px;
  align-items: start;
}
.card {
  border-radius: 13px;
  background: white;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 2px 5px #2c213403;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 61px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}
.card-title {
  display: flex;
  gap: 10px;
  align-items: center;
}
.card-title > svg {
  color: #725a91;
  height: 18px;
  width: 18px;
}
.card h2 {
  font-size: 17px;
  letter-spacing: -0.4px;
  font-weight: 680;
}
.small {
  font-size: 12px;
  padding: 6px 10px;
  gap: 6px;
}
.small svg {
  width: 14px;
  height: 14px;
}
.transport {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 20px 8px;
}
.play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #8055d5;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 7px #a88ac74d;
}
.play svg {
  width: 16px;
  height: 16px;
}
.icon-btn {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  color: #736d7e;
}
.icon-btn:hover {
  background: #f1eef6;
}
.icon-btn[aria-pressed="true"] {
  background: #ede7fc;
  color: #7249ba;
}
.time {
  margin-left: auto;
  display: flex;
  gap: 7px;
  align-items: baseline;
  font-family: "Cascadia Mono", Consolas, monospace;
  letter-spacing: -0.3px;
  font-size: 11px;
  color: #8a8492;
}
.time b {
  font-weight: 600;
  color: #332c3f;
  font-size: 18px;
}
.scrub {
  padding: 0 20px 8px;
}
.scrub input {
  width: 100%;
  display: block;
}
.scrub #ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  color: #8b8595;
  font:
    10px Consolas,
    monospace;
}
input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  height: 15px;
  cursor: pointer;
  background: transparent;
  margin: 0;
  --fill: 0%;
  --slider: #9973de;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 6px;
  background: linear-gradient(
    to right,
    var(--slider) var(--fill),
    #e4e1ea var(--fill)
  );
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--slider);
  margin-top: -3.5px;
}
input[type="range"]::-moz-range-track {
  height: 3px;
  background: #dedbe6;
}
input[type="range"]::-moz-range-progress {
  height: 3px;
  background: var(--slider);
}
input[type="range"]::-moz-range-thumb {
  background: var(--slider);
  border: 0;
  width: 10px;
  height: 10px;
}
#tracks {
  padding: 0 20px;
}
.track {
  padding: 12px 0 10px;
  border-bottom: 1px solid #efedf3;
  --ac: #9168d7;
  --wash: #f5f0fd;
  --edge: #ece2fc;
}
.track:last-child {
  border-bottom: 0;
}
.track.harmony {
  --ac: #469e87;
  --wash: #edf7f3;
  --edge: #daeae3;
}
.track.backing {
  --ac: #c38a47;
  --wash: #fcf5e9;
  --edge: #f2e8d8;
}
.track-line,
.track-name,
.track-ctrl,
.vol,
.track-bottom {
  display: flex;
  align-items: center;
}
.track-line {
  gap: 7px;
  justify-content: space-between;
}
.track-name {
  gap: 8px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 650;
}
.track-name svg {
  color: var(--ac);
  width: 15px;
  height: 15px;
}
.track-ctrl {
  gap: 5px;
}
.ms {
  border: 1px solid #e3e0e8;
  border-radius: 4px;
  width: 23px;
  height: 22px;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #837c8c;
  background: #fdfcfe;
}
.ms[aria-pressed="true"] {
  background: var(--ac);
  color: #fff;
  border-color: var(--ac);
}
.vol {
  margin-left: 5px;
  gap: 6px;
  color: #847d8c;
}
.vol svg {
  width: 13px;
  height: 13px;
}
.vol input {
  width: clamp(40px, 5vw, 86px);
  --slider: var(--ac);
}
.vol output {
  font:
    10px Consolas,
    monospace;
  width: 31px;
  text-align: right;
  color: #716a7a;
}
.wave {
  position: relative;
  margin-top: 7px;
  height: 36px;
  border: 1px solid var(--edge);
  border-radius: 6px;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent calc(12.5% - 1px),
      var(--edge) 12.5%
    ),
    var(--wash);
  cursor: crosshair;
}
.wave canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #3b304e;
  left: var(--pos, 0%);
  pointer-events: none;
}
.track.silent .wave {
  opacity: 0.4;
}
.track-bottom select {
  font-size: 10px;
  background: #f8f7fa;
  color: #766e7f;
  border: 1px solid #e7e2ec;
  border-radius: 4px;
  padding: 2px;
  max-width: 90px;
}
.mix-foot {
  padding: 10px 20px 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #817b89;
  font-size: 10px;
}
.mix-foot > svg {
  width: 14px;
  height: 14px;
}
.dot-sep {
  margin: 0 3px;
}
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #77707e;
  font-size: 11px;
  margin-left: auto;
}
.link-btn svg {
  width: 12px;
  height: 12px;
}
.arrange-inner {
  padding: 17px 19px 13px;
}
.field-label {
  font-size: 12px;
  font-weight: 600;
  color: #595260;
}
.styles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 9px;
}
.style {
  min-width: 0;
  border: 1px solid #e4e0e9;
  border-radius: 8px;
  padding: 10px 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: white;
  position: relative;
  font-size: 12px;
  font-weight: 550;
}
.style svg {
  width: 15px;
  height: 15px;
  color: #82778d;
}
.style[aria-pressed="true"] {
  border-color: #ab8ada;
  background: #f4effd;
  color: #7549b9;
}
.style[aria-pressed="true"] svg {
  color: #8357c5;
}
.style.auto {
  grid-column: 1/-1;
  justify-content: flex-start;
  text-align: left;
  gap: 10px;
  padding: 11px 12px;
}
.auto .tile-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #e9dff8;
}
.auto .tile-icon svg {
  width: 17px;
  height: 17px;
}
.auto strong {
  display: block;
  font-size: 13px;
}
.auto small {
  display: block;
  font-size: 10px;
  color: #81738f;
  margin-top: 3px;
  font-weight: 400;
}
.auto .check {
  margin-left: auto;
}
.preserve-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 16px 0;
  margin-top: 15px;
}
.preserve-row strong {
  font-size: 12px;
  font-weight: 600;
}
.preserve-row p {
  font-size: 11px;
  color: #837c8b;
  margin-top: 4px;
}
.switch {
  border-radius: 20px;
  width: 34px;
  height: 20px;
  background: #b8b2bf;
  position: relative;
  flex: none;
}
.switch span {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  transition: transform 0.15s;
}
.switch[aria-checked="true"] {
  background: #8a61ce;
}
.switch[aria-checked="true"] span {
  transform: translateX(14px);
}
.apply {
  width: 100%;
  background: #32263f;
  color: #fff;
  border-color: #32263f;
  padding: 10px;
}
.apply:disabled {
  background: #f3eff8;
  border-color: #e7dfef;
  color: #705a87;
}
.applied {
  min-height: 14px;
  color: #857d8e;
  text-align: center;
  font-size: 10px;
  margin-top: 8px;
}
dialog {
  padding: 22px;
  border: 1px solid #ded9e6;
  border-radius: 14px;
  width: min(440px, calc(100vw - 30px));
  color: var(--ink);
  box-shadow: 0 22px 80px #17121d36;
  max-height: 85vh;
  overflow: auto;
}
dialog::backdrop {
  background: #18131f66;
  backdrop-filter: blur(3px);
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.dialog-top h2 {
  font-size: 20px;
}
.dialog-desc,
.guide p {
  color: #716a78;
  font-size: 13px;
  line-height: 1.65;
}
.dialog-desc {
  margin: 8px 0 15px;
}
.drop-zone {
  width: 100%;
  padding: 24px 12px;
  background: #f7f4fc;
  border: 1.5px dashed #b99bd9;
  border-radius: 10px;
  display: grid;
  place-items: center;
  gap: 7px;
}
.drop-zone svg {
  color: #9464c6;
  width: 28px;
  height: 28px;
}
.drop-zone span {
  font-size: 12px;
  color: #80758e;
}
.dialog-action {
  width: 100%;
  margin-top: 15px;
}
.dialog-select {
  width: 100%;
  padding: 9px;
  border: 1px solid #d9d4e2;
  background: white;
  border-radius: 6px;
  margin-top: 5px;
}
.guide h3 {
  font-size: 14px;
  margin: 14px 0 5px;
}
.library-row {
  display: flex;
  width: 100%;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 13px 2px;
  gap: 9px;
  text-align: left;
}
.library-row svg {
  color: #9770c1;
}
.library-row b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.library-row small {
  margin-left: auto;
  white-space: nowrap;
  color: #81798a;
}
.progress-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
}
.job-progress {
  display: block;
  width: 100%;
  accent-color: #8661ca;
  height: 8px;
}
.toast {
  position: fixed;
  z-index: 10;
  bottom: 22px;
  left: calc(50% + var(--side) / 2);
  transform: translate(-50%, 15px);
  background: #302737;
  color: white;
  border-radius: 9px;
  padding: 10px 15px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.drag-overlay {
  display: none;
  position: fixed;
  inset: 14px;
  z-index: 20;
  border: 2px dashed #8f67c7;
  border-radius: 14px;
  background: #f3ecffed;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 650;
}
.drag-overlay.show {
  display: flex;
}
@media (min-width: 1550px) {
  :root {
    --side: 228px;
  }
  .project {
    min-height: 197px;
  }
  .wave {
    height: 46px;
  }
  .track {
    padding: 15px 0 12px;
  }
  .card-heading {
    min-height: 67px;
  }
  .arrange-inner {
    padding: 21px 23px;
  }
  .style {
    padding: 13px 7px;
  }
  .preserve-row {
    padding: 20px 0;
  }
  .transport {
    padding-top: 17px;
  }
}
@media (max-width: 1150px) {
  :root {
    --side: 168px;
  }
  .side {
    padding-left: 11px;
    padding-right: 11px;
  }
  .brand {
    font-size: 21px;
  }
  .workspace {
    padding-left: 22px;
    padding-right: 22px;
  }
  .panels {
    gap: 13px;
    grid-template-columns: minmax(0, 1.6fr) minmax(235px, 1fr);
  }
  .card-heading {
    padding: 0 15px;
  }
  .transport,
  .scrub,
  #tracks,
  .mix-foot,
  .arrange-inner {
    padding-left: 15px;
    padding-right: 15px;
  }
  .track-name {
    gap: 5px;
  }
  .track-ctrl {
    gap: 3px;
  }
}
@media (max-width: 930px) {
  :root {
    --side: 0px;
  }
  .side {
    display: none;
  }
  .topbar {
    height: 49px;
  }
  .mobile-library {
    display: grid !important;
  }
  .status {
    margin-left: auto;
    margin-right: 12px;
  }
  .workspace {
    max-width: 900px;
  }
  .project {
    min-height: 150px;
  }
}
@media (max-width: 690px) {
  .workspace {
    padding: 20px 14px;
  }
  .topbar {
    padding: 0 15px;
  }
  .panels {
    grid-template-columns: 1fr;
    margin-top: 14px;
    gap: 14px;
  }
  .page-heading {
    margin-bottom: 16px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .project-copy {
    padding: 19px;
    width: 85%;
  }
  .project {
    min-height: 138px;
  }
  .project h2 {
    font-size: 26px;
  }
  .project-art {
    background-position: 67% center;
  }
  .card-heading {
    min-height: 52px;
  }
  .wave {
    height: 36px;
  }
  .vol input {
    width: 54px;
  }
  .song-meta {
    gap: 8px;
    font-size: 10px;
  }
  .song-meta > span + span {
    padding-left: 8px;
  }
  .import-btn {
    padding: 8px 12px;
    height: 37px;
  }
  .crumb,
  .status {
    font-size: 10px;
    gap: 5px;
  }
  .track-bottom select {
    max-width: 68px;
  }
  .arrange-inner {
    padding-top: 14px;
  }
  .style {
    min-height: 39px;
  }
  .toast {
    max-width: 92vw;
    width: max-content;
  }
  .project-kicker {
    font-size: 10px;
  }
}
@media (max-width: 375px) {
  .vol input {
    width: 34px;
  }
  .track-bottom select {
    max-width: 55px;
  }
  .status {
    display: none;
  }
  .page-heading p {
    max-width: 185px;
  }
  .song-meta {
    gap: 4px;
  }
  .song-meta > span + span {
    padding-left: 4px;
  }
}
