@font-face {
  font-family: Raleway;
  src: url("assets/raleway.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #101010;
  --surface: #191919;
  --line: #303030;
  --muted: #aaa9ad;
  --text: #f5f4f7;
  --accent: #a78bfa;
  --green: #8dd4b6;
}
* {
  box-sizing: border-box;
  letter-spacing: 0;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.55 Arial,
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 6px;
  padding: 9px 14px;
  min-height: 42px;
}
button:hover:not(:disabled) {
  background: #29282d;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  pointer-events: none;
}
[hidden] {
  display: none !important;
}
header {
  height: 85px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 36px;
  gap: 22px;
}
header img {
  object-fit: contain;
}
.divider {
  height: 26px;
  border-left: 1px solid #444;
}
.header-title {
  font-size: 14px;
}
.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.status {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--green);
}
.status:before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}
.icon {
  width: 42px;
  padding: 0;
}
.icon svg {
  width: 18px;
}
main {
  max-width: 1400px;
  margin: auto;
  padding: 32px 36px 0;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.eyebrow {
  font-size: 10px;
  color: var(--muted);
  margin: 0 0 7px;
  font-weight: 700;
}
h1,
h2,
h3 {
  font-family: Raleway, Arial, sans-serif;
  margin: 0;
  font-weight: 600;
}
h1 {
  font-size: 28px;
  line-height: 1.3;
}
h2 {
  font-size: 18px;
  margin-bottom: 17px;
}
h3 {
  font-size: 21px;
  line-height: 1.4;
}
.research-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}
nav {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
nav button {
  border: 0;
  border-radius: 0;
  padding: 12px 0 16px;
  color: var(--muted);
  position: relative;
}
nav button[aria-current] {
  color: var(--text);
}
nav button[aria-current]:after {
  content: "";
  height: 2px;
  background: var(--accent);
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
}
nav span {
  font-size: 11px;
  background: #2b2930;
  padding: 0 6px;
  border-radius: 4px;
  color: var(--muted);
}
.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 23px 0;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 390px;
  width: 100%;
  color: var(--muted);
}
.search input {
  border: 0;
  background: transparent;
  padding: 8px 0;
  width: 100%;
  margin: 0;
}
.library-toolbar select {
  width: 174px;
  flex-shrink: 0;
}
.library-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr);
  gap: 32px;
}
.track-list {
  min-width: 0;
}
.track {
  width: 100%;
  padding: 13px 12px;
  border: 0;
  border-bottom: 1px solid #292929;
  border-radius: 0;
  justify-content: flex-start;
  text-align: left;
  gap: 14px;
  min-height: 83px;
}
.track[aria-pressed="true"] {
  background: #222027;
  box-shadow: inset 2px 0 var(--accent);
}
.track-number {
  width: 38px;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.track-text {
  display: block;
  flex: 1;
  min-width: 0;
}
.track-title {
  display: block;
  font-weight: 500;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.track-meta {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.track-end {
  color: #8e8b93;
}
.detail {
  border-left: 1px solid var(--line);
  padding-left: 30px;
  min-width: 0;
  align-self: start;
  position: sticky;
  top: 24px;
}
.detail-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.tag {
  display: inline-block;
  border: 1px solid #414045;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 10px;
  color: #c8c5ce;
}
.track-id {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.metadata {
  color: var(--muted);
  font-size: 12px;
  margin: 10px 0 20px;
}
.audio-wrap {
  margin: 22px 0;
}
.audio-wrap audio {
  width: 100%;
  height: 46px;
}
audio {
  color-scheme: dark;
}
.audio-status {
  font-size: 12px;
  color: var(--muted);
  min-height: 19px;
}
.actions {
  display: flex;
  gap: 8px;
  margin: 18px 0 28px;
}
.primary {
  background: #8b5cf6;
  color: white;
  border-color: #8b5cf6;
}
.primary:hover:not(:disabled) {
  background: #7546d9;
}
.detail h4 {
  font-size: 12px;
  margin: 23px 0 10px;
  font-weight: 600;
}
.caption-text {
  color: #c3c1c7;
  font-size: 12px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.lyric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}
.lyric-head h4 {
  margin: 0;
}
.segmented {
  display: flex;
}
.segmented button {
  font-size: 11px;
  min-height: 32px;
  padding: 5px 8px;
  border-radius: 0;
}
.segmented button:first-child {
  border-radius: 4px 0 0 4px;
}
.segmented button:last-child {
  border-radius: 0 4px 4px 0;
}
.segmented button[aria-pressed="true"] {
  background: #37323f;
  color: #e2d5ff;
}
.lyrics-text {
  font-family: Arial, sans-serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.95;
  color: #d4d1d8;
  max-height: 380px;
  overflow: auto;
  padding-right: 10px;
}
.create-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 60px;
  padding-top: 32px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.section-head h2 {
  margin: 0;
}
label {
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
}
input,
textarea,
select {
  border: 1px solid #3b3a3e;
  background: #1d1c20;
  border-radius: 5px;
  padding: 11px;
  color: var(--text);
  width: 100%;
}
textarea {
  resize: vertical;
  min-height: 100px;
  margin-bottom: 22px;
  line-height: 1.7;
}
.settings {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 12px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 24px 0;
}
.check input {
  width: 17px;
  height: 17px;
  accent-color: #8b5cf6;
}
.generation-aside {
  border-left: 1px solid var(--line);
  padding-left: 30px;
}
.generation-aside h2 {
  margin-top: 30px;
}
.generation-aside h2:first-child {
  margin-top: 0;
}
dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  font-size: 12px;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
}
.modes {
  padding: 0;
  list-style: none;
  font-size: 12px;
}
.modes li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #292929;
}
.modes span {
  color: var(--muted);
  font-size: 11px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.job {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.job-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.job-top button {
  min-height: 34px;
}
.job audio {
  width: 100%;
  margin-top: 12px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 22px 0;
  color: #8c898f;
  font-size: 11px;
}
.access {
  max-width: 380px;
  margin: 90px auto;
}
.access > svg {
  color: var(--accent);
  width: 30px;
  height: 30px;
  margin-bottom: 20px;
}
.access h1 {
  margin-bottom: 24px;
}
.access button {
  margin-top: 18px;
  width: 100%;
}
#notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  width: max-content;
  background: #322d3d;
  border: 1px solid #645577;
  padding: 12px 20px;
  border-radius: 6px;
  z-index: 3;
  font-size: 13px;
  overflow-wrap: anywhere;
}
@media (max-width: 800px) {
  header {
    padding: 0 20px;
    gap: 12px;
    height: 74px;
  }
  header img {
    width: 114px;
    height: 40px;
  }
  .header-title {
    display: none;
  }
  .divider {
    display: none;
  }
  main {
    padding: 24px 20px 0;
  }
  h1 {
    font-size: 23px;
  }
  .research-label {
    display: none;
  }
  .library-layout,
  .create-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .detail {
    position: static;
    border-left: 0;
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
  }
  .track-list {
    max-height: 420px;
    overflow: auto;
  }
  .track {
    min-height: 76px;
  }
  .generation-aside {
    border: 0;
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
  }
  footer {
    flex-direction: column;
    gap: 5px;
  }
  .settings {
    gap: 8px;
  }
  .settings input,
  .settings select {
    padding: 10px 7px;
  }
  .library-toolbar {
    gap: 8px;
  }
  .library-toolbar select {
    width: 138px;
    font-size: 12px;
  }
  .heading {
    margin-bottom: 20px;
  }
  .status {
    font-size: 11px;
  }
}
