:root {
  color-scheme: dark;
  --bg: #030303;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.13);
  --ink: #ffffff;
  --muted: #a8a8a8;
  --line: rgba(255, 255, 255, 0.16);
  --purple: #ffffff;
  --purple-deep: #0d0d0d;
  --silver: #e8e8e8;
  --chrome: #ffffff;
  --pink: #d7d7d7;
  --blue: #f2f2f2;
  --green: #ffffff;
  --danger: #ffffff;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --page-gutter: 30px;
  --studio-gutter: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% -12%, rgba(255, 255, 255, 0.16), transparent 30%),
    radial-gradient(circle at 82% 0%, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(135deg, #030303 0%, #0b0b0b 44%, #000000 100%);
  padding-bottom: 0;
  line-height: 1.45;
  overflow-x: hidden;
}

body,
button,
input,
textarea {
  font: inherit;
}

button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, opacity 180ms ease;
}

button {
  cursor: pointer;
}

button:active,
a:active {
  transform: translateY(1px);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  max-width: 100vw;
  overflow-x: clip;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: rgba(5, 5, 7, 0.78);
  backdrop-filter: blur(28px) saturate(1.15);
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.brand,
.nav-stack a,
.player-song,
.player-controls,
.player-actions,
.topbar,
.topbar-actions,
.hero-actions,
.stat-strip,
.dialog-head,
.mini-artist,
.track-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: #050505;
  font-weight: 950;
  background: linear-gradient(145deg, #ffffff, #bdbdbd 52%, #f8f8f8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 18px 48px rgba(255, 255, 255, 0.1);
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.sidebar-card span,
.card-copy small,
.album-card span,
.artist-card span,
.track-row small,
.player-song span,
.details-list dt {
  color: var(--muted);
}

.nav-stack {
  display: grid;
  gap: 8px;
}

.nav-stack a {
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: rgba(247, 246, 251, 0.76);
}

.nav-stack a:hover,
.nav-stack a.active {
  background: rgba(247, 246, 251, 0.08);
  color: var(--ink);
}

.nav-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #050505;
  background: linear-gradient(145deg, #ffffff, #9f9f9f);
  font-size: 12px;
  font-weight: 900;
}

.sidebar-card,
.glass-panel,
.request-card,
.info-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.sidebar-card {
  margin-top: auto;
  padding: 16px;
  display: grid;
  gap: 8px;
}

.compact-link {
  color: var(--chrome);
  font-weight: 800;
  font-size: 13px;
}

.main-area {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  padding-block: max(20px, env(safe-area-inset-top)) 34px;
  padding-inline: max(var(--page-gutter), env(safe-area-inset-left)) max(var(--page-gutter), env(safe-area-inset-right));
}

.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  width: 100%;
  min-width: 0;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 2px 18px;
  background: linear-gradient(180deg, rgba(5, 5, 7, 0.96), rgba(5, 5, 7, 0.7), transparent);
  backdrop-filter: blur(12px);
}

.topbar > * {
  min-width: 0;
}

.global-search,
.search-page-box {
  border: 1px solid var(--line);
  background: rgba(247, 246, 251, 0.07);
  border-radius: var(--radius);
}

.global-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: min(560px, 100%);
  min-height: 46px;
  padding: 0 14px;
}

.global-search span {
  color: var(--silver);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.global-search input {
  border: 0;
  background: transparent;
  padding: 0;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.topbar-actions,
.hero-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.topbar-actions {
  justify-content: end;
}

.primary-button,
.ghost-button,
.ghost-link,
.icon-button,
.song-card button,
.track-row button,
.tag-chip {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 0 14px;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.primary-button {
  border-color: transparent;
  color: #050505;
  background: linear-gradient(145deg, #ffffff, #a8a8a8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 16px 38px rgba(255, 255, 255, 0.1);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.ghost-button,
.ghost-link,
.icon-button,
.song-card button,
.track-row button,
.tag-chip {
  color: var(--ink);
  background: rgba(247, 246, 251, 0.07);
}

.ghost-button:hover,
.ghost-link:hover,
.icon-button:hover,
.song-card button:hover,
.track-row button:hover,
.tag-chip:hover {
  background: rgba(247, 246, 251, 0.13);
  border-color: rgba(247, 246, 251, 0.24);
}

.wide {
  width: 100%;
}

.view-root {
  display: grid;
  gap: 30px;
  min-width: 0;
  max-width: 100%;
}

.view-root:focus {
  outline: none;
}

.hero {
  min-height: min(68vh, 660px);
  display: grid;
  grid-template-columns: minmax(260px, 42%) minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(207, 210, 216, 0.08)),
    rgba(14, 13, 19, 0.7);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.5);
}

.hero-copy {
  max-width: 760px;
  padding-bottom: 10px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--silver);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(42px, 8vw, 104px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 22px;
  letter-spacing: 0;
}

p {
  color: rgba(247, 246, 251, 0.74);
}

.content-section {
  display: grid;
  gap: 14px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.song-card-row,
.album-row,
.artist-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.song-card,
.album-card,
.artist-card,
.mood-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 246, 251, 0.065);
  padding: 12px;
}

.song-card:hover,
.album-card:hover,
.artist-card:hover,
.mood-card:hover {
  transform: translateY(-3px);
  background: rgba(247, 246, 251, 0.1);
}

.cover-button {
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  aspect-ratio: 1;
  background: #121216;
}

.cover-button img,
.album-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.cover-button span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-width: 48px;
  min-height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #08070b;
  background: var(--chrome);
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px);
}

.cover-button:hover span {
  opacity: 1;
  transform: translateY(0);
}

.card-copy {
  display: grid;
  gap: 3px;
  padding: 12px 2px 10px;
}

.card-copy a:first-child,
.album-card strong,
.artist-card strong {
  overflow-wrap: anywhere;
}

.card-copy a:not(:first-child) {
  color: var(--muted);
  font-size: 14px;
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card-actions button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.album-card,
.artist-card {
  display: grid;
  gap: 10px;
}

.artist-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.mood-grid,
.chip-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.mood-card {
  min-height: 132px;
  color: var(--ink);
  text-align: left;
  display: grid;
  align-content: end;
  gap: 6px;
  background:
    radial-gradient(circle at 80% 8%, rgba(207, 210, 216, 0.24), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(247, 246, 251, 0.06));
}

.mood-card span {
  color: var(--muted);
  font-size: 13px;
}

.page-heading {
  padding: 26px 0 6px;
  max-width: 920px;
}

.page-heading h1 {
  font-size: clamp(38px, 7vw, 82px);
}

.search-page-box {
  padding: 10px;
}

.profile-hero,
.release-hero,
.song-page {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.profile-hero {
  min-height: 430px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: end;
  gap: 24px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(5, 5, 7, 0.08), rgba(5, 5, 7, 0.86)),
    var(--banner) center/cover;
}

.profile-hero > img {
  width: 180px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(247, 246, 251, 0.18);
}

.profile-hero h1,
.release-hero h1,
.song-page h1 {
  font-size: clamp(42px, 8vw, 92px);
}

.stat-strip {
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 20px;
}

.stat-strip span,
.stat-strip a,
.status-card {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(247, 246, 251, 0.08);
  padding: 8px 12px;
  color: var(--chrome);
  font-size: 13px;
  font-weight: 800;
}

.release-hero {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
  padding: 28px;
}

.release-hero img,
.song-page-cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.42);
}

.track-list {
  display: grid;
  gap: 8px;
}

.track-row {
  display: grid;
  grid-template-columns: 28px 52px minmax(0, 1fr) minmax(70px, auto) 54px 52px auto;
  gap: 12px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.track-row:hover {
  background: rgba(247, 246, 251, 0.07);
  border-color: var(--line);
}

.track-row img {
  width: 52px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 7px;
}

.track-row div {
  min-width: 0;
}

.track-row strong,
.track-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-page {
  display: grid;
  grid-template-columns: minmax(260px, 34%) minmax(260px, 1fr) minmax(250px, 320px);
  gap: 24px;
  padding: 28px;
  align-items: start;
}

.song-page h1 {
  font-size: clamp(42px, 5vw, 68px);
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.song-meta-grid,
.profile-grid,
.upload-grid,
.admin-grid {
  display: grid;
  gap: 14px;
}

.song-meta-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 22px 0;
}

.song-page .song-meta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.song-meta-grid span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 246, 251, 0.06);
  padding: 14px;
  color: var(--muted);
}

.song-meta-grid strong {
  display: block;
  color: var(--ink);
}

.info-panel {
  padding: 18px;
}

.mini-artist {
  gap: 10px;
  margin: 14px 0;
}

.mini-artist img {
  width: 52px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.mini-artist small {
  display: block;
  color: var(--muted);
}

.upload-grid,
.profile-grid {
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
}

.license-titlebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  padding: 2px 2px 0;
}

.license-title-copy {
  min-width: 0;
}

.license-title-copy h1 {
  margin: 0 0 8px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.license-title-copy p {
  max-width: 660px;
  margin: 0;
  color: rgba(247, 246, 251, 0.76);
}

.license-price-badge {
  min-width: 132px;
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.055)),
    rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 18px 60px rgba(0, 0, 0, 0.26);
}

.license-price-badge span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.license-price-badge strong {
  font-size: 26px;
  line-height: 1;
}

.license-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: 14px;
  align-items: stretch;
}

.license-single {
  width: min(560px, 100%);
  margin: clamp(24px, 8vh, 88px) auto 0;
}

.license-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.checkout-card {
  grid-row: span 2;
}

.checkout-card h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.checkout-card .primary-button {
  min-height: 52px;
  font-size: 15px;
}

.account-form {
  display: grid;
  gap: 12px;
}

.account-form label {
  display: grid;
  gap: 7px;
  color: var(--silver);
  font-size: 13px;
  font-weight: 850;
}

.account-card h2 {
  overflow-wrap: anywhere;
}

.account-card h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.account-card-attention {
  border-color: rgba(124, 197, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(124, 197, 255, 0.28), 0 22px 55px rgba(124, 197, 255, 0.14);
}

.primary-license-card {
  grid-row: span 2;
}

.license-price-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.license-price-row strong {
  color: #050505;
  background: linear-gradient(145deg, #ffffff, #b8b8b8);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 22px;
  line-height: 1;
}

.license-feature-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: rgba(247, 246, 251, 0.74);
}

.license-feature-list li {
  padding-left: 2px;
}

.license-strip {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.license-strip div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.license-strip span,
.license-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.license-strip strong {
  overflow-wrap: anywhere;
}

.license-strip .primary-button,
.license-strip .ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.license-strip.active {
  border-color: rgba(255, 255, 255, 0.32);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.055)),
    rgba(0, 0, 0, 0.28);
}

.license-note {
  margin: 0;
  text-transform: none;
}

.glass-panel {
  padding: 20px;
}

.upload-form,
.stacked-form {
  display: grid;
  gap: 14px;
}

.upload-form label,
.stacked-form label,
#authForm label {
  display: grid;
  gap: 7px;
  color: var(--silver);
  font-size: 13px;
  font-weight: 800;
}

.upload-form.locked {
  opacity: 0.58;
}

.status-card {
  display: inline-flex;
  border-radius: var(--radius);
  margin-top: 10px;
}

.status-card.success {
  color: #062014;
  background: var(--green);
}

.details-list {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.details-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.details-list dd {
  margin: 0;
  color: var(--chrome);
  font-weight: 850;
}

.request-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

.request-card span {
  color: var(--muted);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.guide-card,
.guide-section {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.guide-card p {
  margin-bottom: 0;
}

.guide-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: rgba(247, 246, 251, 0.78);
  font-weight: 750;
}

.guide-term-grid,
.guide-fix-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.guide-term,
.guide-fix-grid article {
  min-height: 112px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

.guide-term strong,
.guide-fix-grid strong {
  color: var(--ink);
  font-size: 15px;
}

.guide-term span,
.guide-fix-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
}

.vocal-hero {
  position: relative;
  min-height: min(48vh, 520px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  align-items: end;
  gap: 22px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.055) 44%, rgba(0, 0, 0, 0.34)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(32px) saturate(1.2);
}

.vocal-hero::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.26), transparent 22% 72%, rgba(255, 255, 255, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 46%);
  mask: linear-gradient(#000, transparent 62%);
}

.vocal-hero h1 {
  max-width: 920px;
  margin-bottom: 16px;
  font-size: clamp(44px, 8vw, 104px);
}

.vocal-hero p {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 18px;
}

.vocal-hero-meter {
  min-height: 174px;
  display: grid;
  align-content: end;
  gap: 4px;
  padding: 18px;
  border: 1px solid rgba(244, 245, 248, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.62)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.24) 0 5px, rgba(255, 255, 255, 0.045) 5px 10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -24px 48px rgba(0, 0, 0, 0.44);
}

.vocal-hero-meter span,
.vocal-hero-meter small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.vocal-hero-meter strong {
  font-size: 42px;
  line-height: 1;
}

.vocal-lab {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.workflow-step {
  min-height: 74px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 6px 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.workflow-step strong {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #050505;
  background: #ffffff;
  font-size: 13px;
  font-weight: 950;
}

.workflow-step span {
  color: var(--ink);
  font-weight: 950;
}

.workflow-step small {
  color: var(--muted);
  font-weight: 800;
}

.vocal-heading p {
  max-width: 780px;
}

.vocal-console,
.vocal-controls {
  display: grid;
  gap: 16px;
  min-width: 0;
  overflow: visible;
}

.control-dragging .vocal-console,
.control-dragging .vocal-controls,
.control-dragging .control-section,
.control-dragging .glass-panel {
  overflow: visible !important;
}

.vocal-drop-zone {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 168px;
  padding: 22px;
  border: 1px dashed rgba(244, 245, 248, 0.26);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.vocal-drop-zone.dragging {
  border-color: rgba(255, 255, 255, 0.86);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.07);
}

.vocal-drop-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.vocal-drop-zone h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 4vw, 42px);
  overflow-wrap: anywhere;
}

.vocal-drop-zone p:last-child {
  margin-bottom: 0;
}

.vocal-input-actions,
.vocal-action-grid {
  display: grid;
  gap: 10px;
}

.vocal-input-actions {
  min-width: 170px;
}

.vocal-input-actions .primary-button,
.vocal-action-grid .primary-button,
.vocal-action-grid .ghost-button {
  display: grid;
  place-items: center;
  text-align: center;
}

.pro-session-grid,
.safe-cap-grid {
  display: grid;
  gap: 10px;
}

.pro-session-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pro-session-card {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.pro-session-card span,
.pro-session-card small,
.safe-cap-chip {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.pro-session-card strong {
  color: var(--ink);
  font-size: 20px;
  overflow-wrap: anywhere;
}

.safe-cap-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.safe-cap-chip {
  min-height: 38px;
  display: grid;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.vocal-meter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.vocal-meter-grid div {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 246, 251, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.vocal-meter-grid span,
.waveform-head,
.vocal-slider span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.vocal-meter-grid strong {
  color: var(--ink);
  font-size: 22px;
}

.smart-analysis-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035) 58%, rgba(0, 0, 0, 0.18)),
    rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.smart-analysis-panel h2 {
  font-size: 20px;
  line-height: 1.15;
}

.smart-analysis-panel p:last-child {
  margin-bottom: 0;
}

.analysis-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.analysis-chip-grid span {
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.diagnosis-grid,
.quality-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.diagnosis-grid div,
.quality-detail-grid div {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.diagnosis-grid span,
.quality-detail-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.diagnosis-grid strong,
.quality-detail-grid strong {
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.waveform-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.waveform-grid canvas {
  width: 100%;
  height: 180px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 246, 251, 0.045);
}

.waveform-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

#vocalPreview,
#songPreview {
  width: 100%;
  min-height: 44px;
  filter: invert(1) hue-rotate(180deg);
}

.export-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.22);
}

.export-panel[hidden] {
  display: none;
}

.export-panel span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.export-panel .primary-button {
  display: grid;
  place-items: center;
  min-height: 40px;
  text-align: center;
}

.quality-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.035) 58%, rgba(0, 0, 0, 0.18)),
    rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.quality-panel[hidden] {
  display: none;
}

.quality-panel h2,
.quality-panel p {
  margin-bottom: 0;
}

.quality-score {
  min-width: 92px;
  min-height: 92px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
}

.quality-score strong {
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}

.quality-score span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.quality-panel .analysis-chip-grid,
.quality-panel p {
  grid-column: 1 / -1;
}

.vocal-slider,
.slider {
  display: grid;
  gap: 9px;
  min-width: 0;
  min-height: 52px;
  overflow: visible;
  contain: none;
  transform: translateZ(0);
}

.vocal-slider span,
.slider span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.vocal-slider strong,
.slider strong {
  color: var(--silver);
  overflow-wrap: anywhere;
}

.vocal-slider output,
.slider output {
  color: var(--chrome);
  font-weight: 900;
  flex: 0 0 auto;
}

.vocal-slider input,
.slider input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 28px;
  padding: 0;
  accent-color: #ffffff;
  touch-action: pan-y;
  will-change: transform;
}

.vocal-slider:focus-within,
.vocal-slider.is-moving,
.slider:focus-within,
.slider.is-moving {
  position: relative;
  z-index: 10;
  overflow: visible;
}

.safe-mode-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.075);
}

.safe-mode-toggle input {
  width: 20px;
  height: 20px;
  accent-color: #ffffff;
}

.safe-mode-toggle span,
.safe-mode-toggle strong,
.safe-mode-toggle small {
  display: block;
}

.safe-mode-toggle small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.control-section {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
}

.control-section.advanced {
  background: rgba(255, 255, 255, 0.045);
}

.control-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.control-section-head span {
  color: var(--ink);
  font-weight: 950;
}

.control-section-head small {
  color: var(--muted);
  font-weight: 800;
  text-align: right;
}

.studio-control-section .control-section-head {
  align-items: center;
}

.studio-control-section .control-section-head small {
  flex: 1;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.preset-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(247, 246, 251, 0.07);
  font-weight: 900;
}

.preset-button:hover {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.16);
}

.machine-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.machine-card {
  min-height: 72px;
  display: grid;
  align-content: end;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.035) 54%, rgba(0, 0, 0, 0.28));
}

.machine-card strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.15;
}

.machine-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.vocal-action-grid {
  grid-template-columns: 1fr;
  margin-top: 4px;
}

.vocal-action-grid button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.empty-state {
  min-height: 110px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  min-height: 88px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(240px, auto) minmax(260px, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px 22px 14px;
  border-top: 1px solid var(--line);
  background: rgba(6, 6, 9, 0.9);
  backdrop-filter: blur(22px);
}

body .player {
  display: none !important;
}

.player-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: rgba(247, 246, 251, 0.1);
  cursor: pointer;
}

.player-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--chrome), var(--purple), var(--blue));
}

.player-song {
  gap: 12px;
  min-width: 0;
}

.player-song img {
  width: 56px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: rgba(247, 246, 251, 0.08);
}

.player-song div {
  min-width: 0;
}

.player-song strong,
.player-song span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-controls {
  justify-content: center;
  gap: 10px;
}

.player-controls button,
.player-actions button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 246, 251, 0.08);
  color: var(--ink);
  font-weight: 900;
}

.player-controls button {
  min-width: 42px;
}

.play-button {
  min-width: 78px;
  color: #08070b !important;
  background: var(--chrome) !important;
}

.player-actions {
  justify-content: end;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-control input {
  width: 96px;
  padding: 0;
}

.mobile-nav {
  display: none;
}

.auth-dialog {
  width: min(460px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #121017;
  box-shadow: var(--shadow);
}

.auth-dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
}

#authForm {
  display: grid;
  gap: 14px;
  margin: 0;
}

.dialog-head {
  justify-content: space-between;
  gap: 16px;
}

.icon-button {
  width: 40px;
  padding: 0;
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 246, 251, 0.06);
}

.segment {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-weight: 850;
}

.segment.active {
  color: var(--ink);
  background: rgba(247, 246, 251, 0.13);
}

.artist-toggle {
  grid-template-columns: auto 1fr !important;
  align-items: center;
}

.artist-toggle input {
  width: auto;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 112px;
  z-index: 80;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast {
  width: min(320px, calc(100vw - 36px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 16, 23, 0.94);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast strong,
.toast span {
  display: block;
}

.toast span {
  color: var(--muted);
  font-size: 13px;
}

body:has(.studio-board) {
  --panel: rgba(11, 18, 45, 0.58);
  --panel-strong: rgba(38, 51, 110, 0.5);
  --muted: #b9c3ea;
  --line: rgba(235, 242, 255, 0.2);
  --chrome: #ffffff;
  background:
    radial-gradient(circle at 18% -8%, rgba(99, 79, 255, 0.38), transparent 30%),
    radial-gradient(circle at 82% 4%, rgba(36, 137, 255, 0.26), transparent 28%),
    linear-gradient(135deg, #01030a 0%, #06112c 45%, #120726 100%);
}

body:has(.studio-board) .player {
  display: none;
}

body:has(.studio-board) .main-area {
  overflow-x: visible;
  padding-block: max(16px, env(safe-area-inset-top)) 24px;
  padding-inline: max(var(--studio-gutter), env(safe-area-inset-left)) max(var(--studio-gutter), env(safe-area-inset-right));
}

body:has(.studio-board) .topbar {
  padding: 6px 2px 10px;
}

.studio-titlebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  padding: 2px 2px 0;
}

.studio-title-copy {
  min-width: 0;
}

.studio-title-copy h1 {
  margin: 0 0 6px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.studio-title-copy p {
  max-width: 520px;
  margin-bottom: 0;
  font-size: 14px;
}

.studio-title-copy .eyebrow {
  margin-bottom: 6px;
}

.studio-title-status {
  min-width: 104px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.studio-title-status span,
.studio-title-status strong {
  display: block;
  line-height: 1;
}

.studio-title-status span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.studio-title-status strong {
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
}

.studio-hero {
  min-height: 118px;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
  padding: 14px 16px;
  border-color: rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.16), rgba(73, 95, 255, 0.12) 40%, rgba(6, 11, 28, 0.72)),
    radial-gradient(circle at 72% 22%, rgba(139, 91, 255, 0.28), transparent 36%);
  box-shadow: 0 30px 100px rgba(34, 47, 130, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.studio-hero h1 {
  max-width: 580px;
  margin-bottom: 4px;
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.24), 0 0 58px rgba(126, 109, 255, 0.32);
}

.studio-hero p {
  max-width: 520px;
  font-size: 13px;
}

.studio-hero .eyebrow {
  margin-bottom: 6px;
}

.studio-hero .vocal-hero-meter {
  min-height: 86px;
  padding: 10px;
}

.studio-hero .vocal-hero-meter strong {
  font-size: 26px;
}

.studio-board,
.studio-main,
.studio-panel,
.studio-controls {
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.studio-board {
  grid-template-columns: 1fr;
  overflow-x: clip;
}

.studio-main {
  overflow-x: clip;
}

.studio-panel,
.studio-controls,
.spectrum-panel,
.loudness-card,
.vibe-card,
.studio-preset-card,
.recipe-card,
.studio-meta-card {
  border-color: rgba(255, 255, 255, 0.24);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(61, 82, 180, 0.08)),
    rgba(3, 7, 20, 0.64);
  box-shadow: 0 22px 70px rgba(25, 23, 84, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.studio-panel {
  padding: 12px;
}

.studio-panel:hover,
.vibe-card:hover,
.studio-preset-card:hover,
.recipe-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 28px 90px rgba(107, 78, 255, 0.28), 0 0 34px rgba(95, 147, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.studio-drop-zone {
  min-height: 82px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
  min-width: 0;
  max-width: 100%;
  border-color: rgba(255, 255, 255, 0.32);
  background:
    linear-gradient(135deg, rgba(74, 106, 255, 0.16), rgba(139, 91, 255, 0.11)),
    rgba(2, 5, 16, 0.56);
}

.studio-drop-zone h2 {
  margin-bottom: 4px;
  font-size: 20px;
}

.studio-drop-zone p {
  margin-bottom: 0;
  font-size: 13px;
}

.studio-meta-grid,
.quick-vibe-grid,
.loudness-grid,
.export-select-grid,
.recipe-grid {
  display: grid;
  gap: 10px;
}

.studio-meta-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.studio-meta-card,
.loudness-card {
  min-height: 52px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 8px 10px;
  border-radius: var(--radius);
}

.studio-meta-card span,
.loudness-card span,
.studio-select span,
.recipe-card span,
.recipe-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.studio-meta-card strong,
.loudness-card strong {
  color: #ffffff;
  overflow-wrap: anywhere;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.22);
}

.engine-map {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}

.engine-stage {
  min-height: 52px;
  display: grid;
  gap: 5px;
  align-content: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  position: relative;
}

.engine-stage::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -9px;
  width: 9px;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
}

.engine-stage:last-child::after {
  display: none;
}

.engine-stage.active {
  border-color: rgba(255, 255, 255, 0.56);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(64, 120, 255, 0.14));
}

.engine-stage span,
.engine-stage small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.engine-stage strong {
  color: #ffffff;
}

.quick-vibe-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vibe-card,
.studio-preset-card {
  min-height: 68px;
  display: grid;
  align-content: end;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #ffffff;
  text-align: left;
  overflow: hidden;
  position: relative;
}

.vibe-card::before,
.studio-preset-card::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, 0.22), transparent 58%);
  transform: translateX(-70%);
  transition: transform 520ms ease;
  pointer-events: none;
}

.vibe-card:hover::before,
.studio-preset-card:hover::before,
.studio-preset-card.active::before {
  transform: translateX(48%);
}

.vibe-card strong,
.studio-preset-card strong {
  position: relative;
  font-size: 15px;
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.25);
}

.vibe-card span,
.studio-preset-card span,
.studio-preset-card small {
  font-size: 12px;
}

.vibe-card span,
.studio-preset-card span,
.studio-preset-card small {
  position: relative;
  color: var(--muted);
  font-weight: 850;
}

.studio-preset-card.active {
  border-color: rgba(255, 255, 255, 0.74);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(70, 112, 255, 0.16)),
    rgba(12, 15, 42, 0.84);
  box-shadow: 0 0 0 1px rgba(111, 168, 255, 0.38), 0 0 36px rgba(137, 95, 255, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.studio-preset-card.active::after {
  content: "Loaded";
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  padding: 4px 7px;
  border-radius: 999px;
  color: #06112c;
  background: #ffffff;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  pointer-events: none;
}

.studio-section-head {
  align-items: center;
}

.preset-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 0.7fr);
  gap: 10px;
  width: min(720px, 100%);
  min-width: 0;
}

.studio-select select {
  min-height: 38px;
  width: 100%;
  color: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(4, 8, 24, 0.78);
  padding: 0 12px;
}

.studio-mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: 6px;
  min-width: 0;
}

.studio-mode-button {
  min-height: 38px;
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  white-space: nowrap;
}

.studio-mode-button:hover,
.studio-mode-button.active {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.18);
}

.preset-carousel-shell,
.studio-player-row,
.studio-button-row,
.recipe-save-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preset-carousel-shell {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.preset-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, calc((100% - 30px) / 4));
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 12px;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  cursor: grab;
  touch-action: pan-x;
  user-select: none;
  padding: 2px 2px 8px;
  position: relative;
  z-index: 1;
  contain: layout paint;
  max-width: 100%;
}

.preset-carousel:active,
.preset-carousel.is-dragging {
  cursor: grabbing;
}

.preset-carousel:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 4px;
}

.studio-preset-card {
  scroll-snap-align: start;
  min-width: 0;
}

.studio-player-row {
  flex-wrap: wrap;
}

.studio-player-row.compact {
  justify-content: flex-end;
}

.studio-play {
  min-width: 96px;
}

#studioSeek {
  flex: 1 1 280px;
  accent-color: #9f8cff;
}

#studioTimeDisplay {
  color: #ffffff;
  font-weight: 900;
  min-width: 108px;
  text-align: right;
}

#songPreview {
  display: none;
}

.spectrum-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(72, 86, 180, 0.08)),
    rgba(2, 6, 18, 0.56);
}

.spectrum-panel canvas {
  width: 100%;
  height: 148px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: #050b1f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -30px 70px rgba(0, 0, 0, 0.28),
    0 18px 50px rgba(59, 80, 180, 0.16);
}

.loudness-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.loudness-card strong {
  font-size: clamp(20px, 3vw, 30px);
}

.render-report-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.render-report-head h2 {
  margin: 0;
}

.render-report-head > span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  color: #05060d;
  background: #ffffff;
  font-size: 12px;
  font-weight: 950;
}

.render-report-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.render-report-grid article {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.render-report-grid span,
.render-report-note {
  color: var(--muted);
}

.render-report-grid span {
  font-size: 12px;
  font-weight: 850;
}

.render-report-grid strong {
  overflow-wrap: anywhere;
}

.render-report-note {
  margin: 12px 0 0;
}

.studio-controls {
  padding: 12px;
}

.studio-control-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  align-items: end;
}

.section-power-switch {
  min-height: 34px;
  min-width: 72px;
  display: flex;
  align-items: center;
  justify-self: end;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.section-power-switch input {
  width: 18px;
  height: 18px;
  accent-color: #ffffff;
  cursor: pointer;
}

.section-power-switch span {
  color: #ffffff;
  min-width: 26px;
  font-weight: 950;
  font-size: 11px;
}

.studio-control-section.is-off {
  border-color: rgba(255, 255, 255, 0.12);
}

.studio-control-section.is-off .studio-control-grid {
  opacity: 0.46;
}

.studio-control-section.is-off .section-power-switch {
  background: rgba(255, 255, 255, 0.035);
}

.eq-spectrum-board {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.eq-spectrum-board canvas {
  width: 100%;
  height: 132px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: #050b1f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -24px 58px rgba(0, 0, 0, 0.3),
    0 18px 50px rgba(59, 80, 180, 0.16);
}

.eq-fader-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.eq-fader {
  min-height: 210px;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.eq-fader input {
  width: 100%;
  height: 118px;
  padding: 0;
  accent-color: #ffffff;
  writing-mode: vertical-lr;
  direction: rtl;
}

.eq-fader span,
.eq-fader strong,
.eq-fader output {
  display: block;
  max-width: 100%;
  text-align: center;
  overflow-wrap: anywhere;
}

.eq-fader span,
.eq-fader output {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.eq-fader strong {
  color: #ffffff;
  font-size: 12px;
}

.eq-reset-button {
  justify-self: start;
}

.bypass-toggle {
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  color: #05060d;
  background: linear-gradient(145deg, #ffffff, #9eb6ff);
  font-size: 16px;
  font-weight: 950;
  box-shadow: 0 0 34px rgba(137, 95, 255, 0.28);
}

.bypass-toggle:not(.active) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.morph-score {
  min-height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.morph-score strong,
.morph-score span {
  display: block;
}

.morph-score strong {
  font-size: 22px;
}

.recipe-save-row input {
  flex: 1;
}

.recipe-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.recipe-card {
  position: relative;
  min-height: 150px;
  display: grid;
  align-content: end;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.recipe-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
}

.studio-empty {
  color: var(--muted);
  margin: 0;
}

.export-select-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.studio-select {
  display: grid;
  gap: 6px;
}

.ghost-button.active {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(111, 145, 255, 0.22);
}

@media (max-width: 1100px) {
  .workflow-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vocal-meter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .studio-meta-grid,
  .quick-vibe-grid,
  .engine-map,
  .render-report-grid,
  .eq-fader-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .song-page {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .license-grid {
    grid-template-columns: 1fr;
  }

  .primary-license-card {
    grid-row: auto;
  }

  .info-panel {
    grid-column: 1 / -1;
  }

  .mood-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body {
    padding-bottom: 64px;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .main-area {
    --page-gutter: 22px;
    --studio-gutter: 28px;
    padding-block: max(16px, env(safe-area-inset-top)) 28px;
    padding-inline: max(var(--page-gutter), env(safe-area-inset-left)) max(var(--page-gutter), env(safe-area-inset-right));
  }

  body:has(.studio-board) .main-area {
    padding-inline: max(var(--studio-gutter), env(safe-area-inset-left)) max(var(--studio-gutter), env(safe-area-inset-right));
  }

  .studio-titlebar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .license-titlebar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .license-title-copy h1 {
    font-size: clamp(36px, 12vw, 52px);
  }

  .license-price-badge {
    justify-self: start;
  }

  .studio-title-copy h1 {
    font-size: clamp(34px, 12vw, 48px);
  }

  .studio-title-status {
    justify-self: start;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    padding-inline: 2px;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero,
  .vocal-hero,
  .release-hero,
  .profile-hero,
  .song-page,
  .upload-grid,
  .profile-grid,
  .license-grid,
  .vocal-lab,
  .vocal-drop-zone {
    grid-template-columns: 1fr;
  }

  .license-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .license-strip .primary-button,
  .license-strip .ghost-link {
    width: 100%;
    justify-content: center;
  }

  .workflow-strip,
  .pro-session-grid,
  .diagnosis-grid,
  .quality-detail-grid,
  .guide-grid,
  .guide-term-grid,
  .guide-fix-grid,
  .studio-meta-grid,
  .quick-vibe-grid,
  .loudness-grid,
  .engine-map,
  .render-report-grid,
  .export-select-grid,
  .eq-fader-grid {
    grid-template-columns: 1fr;
  }

  .eq-fader {
    min-height: 76px;
    grid-template-columns: 52px minmax(0, 1fr) 74px 54px;
    align-items: center;
  }

  .eq-fader input {
    height: auto;
    writing-mode: horizontal-tb;
    direction: ltr;
  }

  .engine-stage::after {
    display: none;
  }

  .preset-tools,
  .preset-carousel-shell,
  .studio-player-row,
  .studio-button-row,
  .recipe-save-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .studio-mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preset-carousel {
    grid-auto-columns: minmax(190px, 76%);
  }

  #studioTimeDisplay {
    text-align: left;
  }

  .control-section-head {
    display: grid;
  }

  .control-section-head small {
    text-align: left;
  }

  .hero {
    min-height: auto;
    padding: 18px;
  }

  .hero img {
    aspect-ratio: 16 / 11;
  }

  h1,
  .page-heading h1,
  .profile-hero h1,
  .release-hero h1,
  .song-page h1 {
    font-size: clamp(38px, 14vw, 62px);
  }

  .profile-hero {
    min-height: 480px;
  }

  .profile-hero > img {
    width: 132px;
  }

  .song-meta-grid,
  .mood-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .track-row {
    grid-template-columns: 24px 46px minmax(0, 1fr) 52px minmax(68px, auto);
  }

  .track-row > span:nth-of-type(2),
  .track-row > span:nth-of-type(3) {
    display: none;
  }

  .player {
    min-height: 98px;
    bottom: 55px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px;
  }

  .player-controls {
    justify-content: end;
  }

  .player-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .volume-control {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    height: 56px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    background: rgba(6, 6, 9, 0.94);
    backdrop-filter: blur(20px);
  }

  .mobile-nav a {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
  }

  .mobile-nav a.active {
    color: var(--chrome);
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: clamp(36px, 12vw, 50px);
    line-height: 0.96;
  }

  .hero-copy p {
    font-size: 14px;
  }

  .song-card-row,
  .album-row,
  .artist-row {
    grid-auto-columns: minmax(148px, 72%);
  }

  .song-meta-grid,
  .mood-grid,
  .chip-grid,
  .vocal-meter-grid,
  .machine-grid,
  .export-panel,
  .quality-panel,
  .topbar-actions {
    grid-template-columns: 1fr;
  }

  .player {
    gap: 10px;
  }

  .player-song img {
    width: 48px;
  }

  .player-controls button {
    min-width: 36px;
    padding: 0 8px;
  }

  .play-button {
    min-width: 62px;
  }

  .player-actions {
    font-size: 12px;
  }
}

/* Monochrome glass layer */
.brand-mark,
.sidebar-card,
.glass-panel,
.request-card,
.info-panel,
.song-card,
.album-card,
.artist-card,
.mood-card,
.topbar,
.player,
.mobile-nav,
.link-up-button {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.035) 52%, rgba(0, 0, 0, 0.22)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.24)) border-box;
  backdrop-filter: blur(30px) saturate(1.2);
  -webkit-backdrop-filter: blur(30px) saturate(1.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -22px 52px rgba(0, 0, 0, 0.28),
    0 26px 80px rgba(0, 0, 0, 0.48);
}

.link-up-button {
  min-height: 46px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid rgba(244, 245, 248, 0.15);
  border-radius: var(--radius);
  color: var(--ink);
}

.link-up-button span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(244, 245, 248, 0.32);
  background: rgba(255, 255, 255, 0.08);
  font-size: 22px;
  line-height: 1;
}

.cover-button,
.cover-button img,
.album-card img,
.hero img,
.release-hero img,
.song-page-cover,
.player-song img {
  border-radius: 20px;
}

.cover-button {
  border: 1px solid rgba(244, 245, 248, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 18px 48px rgba(0, 0, 0, 0.36);
}

.cover-button span,
.play-button,
.track-row .track-play {
  width: 52px;
  min-width: 52px;
  height: 52px;
  min-height: 52px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  color: transparent !important;
  font-size: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(172, 172, 172, 0.92) 48%, rgba(255, 255, 255, 0.9)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -12px 24px rgba(0, 0, 0, 0.18),
    0 14px 34px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(255, 255, 255, 0.16);
  opacity: 1;
  transform: rotate(45deg);
}

.cover-button span {
  right: 12px;
  bottom: 12px;
}

.cover-button:hover span,
.play-button:hover,
.track-row .track-play:hover {
  opacity: 1;
  transform: rotate(45deg) scale(1.06);
}

.cover-button span::before,
.play-button span::before,
.track-row .track-play::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 13px solid #07070a;
  transform: rotate(-45deg) translateX(2px);
}

.track-row .track-slow {
  min-width: 76px;
  color: #f7f6fb;
  background:
    linear-gradient(135deg, rgba(111, 92, 255, 0.36), rgba(77, 196, 255, 0.16)),
    rgba(247, 246, 251, 0.08);
  border-color: rgba(177, 165, 255, 0.34);
}

.play-button.playing span::before {
  width: 16px;
  height: 16px;
  border: 0;
  border-left: 5px solid #07070a;
  border-right: 5px solid #07070a;
  transform: rotate(-45deg);
}

.primary-button[data-play],
.primary-button[data-open-auth] {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.primary-button[data-play]::before,
.primary-button[data-open-auth]::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 5px;
  flex: 0 0 auto;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(175, 175, 175, 0.9) 46%, rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    inset 0 -5px 12px rgba(0, 0, 0, 0.16);
  transform: rotate(45deg);
}
