:root {
  --ink: #080a0c;
  --ink-soft: #0c0f12;
  --panel: #111519;
  --panel-raised: #171c21;
  --panel-hover: #1c2228;
  --line: rgba(235, 242, 248, 0.1);
  --line-strong: rgba(235, 242, 248, 0.17);
  --text: #f2f0e9;
  --muted: #8c969f;
  --quiet: #5f6971;
  --blue: #72b7ff;
  --blue-bright: #a6d4ff;
  --coral: #ff8b68;
  --acid: #d8ff63;
  --page-width: 1540px;
  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(900px 520px at 82% -15%, rgba(77, 143, 211, 0.14), transparent 60%),
    radial-gradient(700px 520px at -8% 82%, rgba(255, 139, 104, 0.07), transparent 62%),
    var(--ink);
  color: var(--text);
  font-family: var(--display);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  content: "";
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

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

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

button {
  color: inherit;
}

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

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

::selection {
  background: var(--blue);
  color: var(--ink);
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#icon-play,
.icon[data-solid="true"] {
  fill: currentColor;
  stroke: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  min-height: 100vh;
  animation: app-in 500ms ease both;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
  min-height: 100vh;
  background: var(--ink);
  animation: app-in 420ms ease both;
}

.auth-atmosphere {
  position: relative;
  display: flex;
  min-height: 100vh;
  padding: clamp(28px, 5vw, 70px);
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(125deg, rgba(114, 183, 255, 0.06), transparent 40%),
    radial-gradient(650px 440px at 72% 68%, rgba(255, 139, 104, 0.13), transparent 65%),
    radial-gradient(720px 520px at 4% 10%, rgba(114, 183, 255, 0.15), transparent 60%),
    #0b0e11;
}

.auth-atmosphere::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.auth-brand {
  position: relative;
  z-index: 2;
  width: max-content;
}

.auth-statement {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: auto 0;
  padding: 70px 0 130px;
  animation: rise 650ms 80ms ease both;
}

.auth-statement .eyebrow {
  margin-bottom: 22px;
  color: var(--blue);
}

.auth-statement h1 {
  margin: 0;
  font-size: clamp(58px, 8.2vw, 130px);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.82;
}

.auth-statement h1 span {
  color: var(--blue);
}

.auth-statement > p:last-child {
  max-width: 540px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.55;
}

.auth-wave {
  position: absolute;
  right: clamp(20px, 4vw, 60px);
  bottom: 74px;
  left: clamp(20px, 4vw, 60px);
  display: flex;
  height: 100px;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  opacity: 0.78;
}

.auth-wave i {
  width: clamp(2px, 0.25vw, 4px);
  height: var(--h);
  border-radius: 4px;
  background: linear-gradient(to top, rgba(114, 183, 255, 0.1), var(--blue));
  transform-origin: center;
  animation: auth-wave 1.8s calc(var(--i) * -45ms) ease-in-out infinite alternate;
}

.auth-wave i:nth-child(3n) {
  background: linear-gradient(to top, rgba(255, 139, 104, 0.12), var(--coral));
}

.auth-footnote {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 22px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-footnote span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.auth-footnote span::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--quiet);
  content: "";
}

.auth-panel {
  display: grid;
  min-height: 100vh;
  padding: 30px;
  place-items: center;
  background:
    radial-gradient(440px 300px at 100% 0, rgba(114, 183, 255, 0.08), transparent 70%),
    var(--panel);
}

.auth-card {
  width: min(100%, 430px);
  animation: rise 560ms 160ms ease both;
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 34px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(3, 5, 7, 0.32);
}

.auth-mode-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}

.auth-mode-tabs button.is-active {
  background: var(--panel-raised);
  color: var(--text);
}

.auth-card > .eyebrow {
  margin-bottom: 10px;
  color: var(--blue);
}

.auth-card h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.auth-intro {
  margin: 14px 0 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.auth-error {
  margin-bottom: 16px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 135, 135, 0.25);
  border-radius: 9px;
  background: rgba(255, 135, 135, 0.06);
  color: #ffadad;
  font-size: 11px;
}

#auth-form {
  display: grid;
  gap: 13px;
}

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-field span {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: rgba(3, 5, 7, 0.27);
  color: var(--text);
  font-size: 13px;
}

.auth-field input:focus {
  border-color: rgba(114, 183, 255, 0.45);
}

.auth-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 7px;
}

.auth-switch {
  margin: 18px 0 0;
  color: var(--quiet);
  font-size: 11px;
  text-align: center;
}

.auth-switch button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 650;
  cursor: pointer;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 8px 3px 3px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.account-menu-wrap {
  position: relative;
}

.user-chip[aria-expanded="true"] {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.055);
}

.user-chip:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.user-chip .avatar {
  margin: 0;
}

.user-chip-copy {
  display: grid;
  gap: 1px;
  text-align: left;
}

.user-chip-copy strong {
  max-width: 92px;
  overflow: hidden;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip-copy small {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 7px;
  text-transform: uppercase;
}

.account-chevron {
  width: 12px;
  height: 12px;
  margin-left: 1px;
  color: var(--quiet);
  transition: transform 160ms ease;
}

.user-chip[aria-expanded="true"] .account-chevron {
  transform: rotate(180deg);
}

.account-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 40;
  width: 258px;
  padding: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background:
    radial-gradient(260px 120px at 100% 0, rgba(114, 183, 255, 0.08), transparent 70%),
    #111519;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.52);
  animation: account-menu-in 150ms ease both;
}

.account-menu[hidden] {
  display: none;
}

.account-menu-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 9px 12px;
}

.account-menu-summary .avatar {
  flex: 0 0 auto;
  margin: 0;
}

.account-menu-summary > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.account-menu-summary strong,
.account-menu-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-summary strong {
  font-size: 11px;
  font-weight: 650;
}

.account-menu-summary small {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 8px;
}

.account-menu-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  width: 100%;
  padding: 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.account-menu-item:hover,
.account-menu-item:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.account-menu-item > .icon {
  width: 16px;
  height: 16px;
  justify-self: center;
}

.account-menu-item > span {
  display: grid;
  gap: 2px;
}

.account-menu-item strong {
  font-size: 10px;
  font-weight: 600;
}

.account-menu-item small {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 7px;
}

.account-menu-item.danger-text {
  color: #ffadad;
}

.account-menu-separator {
  height: 1px;
  margin: 5px 7px;
  background: var(--line);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  height: 76px;
  padding: 0 clamp(20px, 3.2vw, 52px);
  background: rgba(8, 10, 12, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.brand-mark {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  width: 34px;
  height: 34px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: linear-gradient(145deg, #191f24, #0d1013);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 10px 24px rgba(0, 0, 0, 0.3);
}

.brand-mark span {
  width: 3px;
  border-radius: 4px;
  background: var(--blue);
}

.brand-mark span:nth-child(1) {
  height: 8px;
}

.brand-mark span:nth-child(2) {
  height: 16px;
}

.brand-mark span:nth-child(3) {
  height: 12px;
}

.brand-dot {
  color: var(--coral);
}

.top-divider {
  width: 1px;
  height: 24px;
  margin: 0 22px;
  background: var(--line);
}

.top-context {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.connection {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.connection::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--quiet);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.035);
  content: "";
}

.connection.is-live::before {
  background: var(--acid);
  box-shadow: 0 0 0 4px rgba(216, 255, 99, 0.08), 0 0 14px rgba(216, 255, 99, 0.35);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.28);
}

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

.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #07111b;
  box-shadow: 0 8px 26px rgba(114, 183, 255, 0.16);
}

.button.primary:hover {
  border-color: var(--blue-bright);
  background: var(--blue-bright);
}

.button.danger {
  border-color: rgba(255, 135, 135, 0.18);
  background: rgba(255, 135, 135, 0.045);
  color: #ffaaaa;
}

.button.danger:hover {
  border-color: rgba(255, 135, 135, 0.42);
  background: rgba(255, 135, 135, 0.1);
}

.button.ghost {
  border-color: transparent;
  color: var(--muted);
}

.button.ghost:hover {
  color: var(--text);
}

.avatar {
  display: grid;
  width: 36px;
  height: 36px;
  margin-left: 4px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 139, 104, 0.6), rgba(75, 96, 119, 0.2)),
    var(--panel);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  width: min(100%, var(--page-width));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
}

.library {
  position: sticky;
  top: 76px;
  align-self: start;
  height: calc(100vh - 76px);
  padding: 30px 18px 24px 28px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: #2c343b transparent;
}

.library-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 4px 24px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(5, 7, 9, 0.35);
}

.library-tabs button {
  min-height: 32px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.library-tabs button:hover {
  color: var(--text);
}

.library-tabs button.is-active {
  background: var(--panel-raised);
  color: var(--text);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.18);
}

.library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 9px 18px;
}

.eyebrow {
  margin: 0;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.library-count {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.album-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.album-item {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) 16px;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 11px 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: 160ms ease;
}

.album-item:hover {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.album-item.is-active {
  border-color: rgba(114, 183, 255, 0.17);
  background: linear-gradient(100deg, rgba(114, 183, 255, 0.105), rgba(114, 183, 255, 0.025));
  color: var(--text);
}

.album-item > .icon {
  width: 13px;
  height: 13px;
  color: var(--quiet);
}

.album-mini,
.album-cover {
  --hue: 206;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, hsla(var(--hue), 78%, 70%, 0.92), hsla(calc(var(--hue) + 40), 56%, 18%, 0.32)),
    repeating-linear-gradient(115deg, transparent 0 9px, rgba(255, 255, 255, 0.09) 10px 11px);
}

.album-mini::after,
.album-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.5px),
    linear-gradient(transparent 35%, rgba(0, 0, 0, 0.5));
  background-size: 9px 9px, auto;
  mix-blend-mode: overlay;
}

.album-mini {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
}

.project-item {
  position: relative;
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 11px 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: 160ms ease;
}

.project-item:hover {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.project-item.is-active {
  border-color: rgba(114, 183, 255, 0.17);
  background: linear-gradient(100deg, rgba(114, 183, 255, 0.105), rgba(114, 183, 255, 0.025));
  color: var(--text);
}

.project-item.is-active::before {
  position: absolute;
  top: 17px;
  bottom: 17px;
  left: -1px;
  width: 2px;
  border-radius: 2px;
  background: var(--blue);
  box-shadow: 0 0 12px rgba(114, 183, 255, 0.6);
  content: "";
}

.mini-cover,
.cover {
  --hue: 206;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, hsla(var(--hue), 78%, 70%, 0.92), hsla(calc(var(--hue) + 40), 56%, 18%, 0.32)),
    repeating-linear-gradient(115deg, transparent 0 9px, rgba(255, 255, 255, 0.09) 10px 11px);
}

.mini-cover::after,
.cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.5px),
    linear-gradient(transparent 35%, rgba(0, 0, 0, 0.5));
  background-size: 9px 9px, auto;
  mix-blend-mode: overlay;
}

.mini-cover {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.project-copy {
  min-width: 0;
}

.project-title {
  display: block;
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.012em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-artist {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--quiet);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9px;
}

.project-count .icon {
  width: 12px;
  height: 12px;
}

.sidebar-footer {
  margin: 30px 4px 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 90% 10%, rgba(216, 255, 99, 0.12), transparent 44%),
    rgba(255, 255, 255, 0.018);
}

.sidebar-footer .eyebrow {
  margin-bottom: 9px;
}

.sidebar-footer p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 11px;
  font-weight: 650;
}

.text-link .icon {
  width: 13px;
  height: 13px;
  transition: transform 160ms ease;
}

.text-link:hover .icon {
  transform: translateX(3px);
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.workspace {
  position: relative;
  min-width: 0;
  padding: 45px clamp(24px, 4vw, 64px) 64px;
}

.project-hero {
  display: flex;
  align-items: flex-end;
  gap: 22px;
  margin-bottom: 32px;
  animation: rise 500ms 70ms ease both;
}

.cover {
  width: 118px;
  height: 118px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.cover span {
  position: absolute;
  right: 10px;
  bottom: 7px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.08em;
}

.hero-copy {
  min-width: 0;
  padding-bottom: 4px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}

.version-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(114, 183, 255, 0.23);
  border-radius: 999px;
  background: rgba(114, 183, 255, 0.08);
  color: var(--blue-bright);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker time {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9px;
}

.project-hero h1 {
  max-width: 780px;
  margin: 0;
  overflow: hidden;
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.94;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-subtitle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.project-subtitle strong {
  color: var(--text);
  font-weight: 600;
}

.project-subtitle .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--quiet);
}

.hero-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
  padding-bottom: 4px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 38%),
    var(--panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
  animation: rise 560ms 130ms ease both;
}

.player-card::before {
  position: absolute;
  top: 0;
  right: 10%;
  left: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(114, 183, 255, 0.35), transparent);
  content: "";
}

.player-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 22px 0;
}

.listen-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.listen-label .icon {
  width: 14px;
  height: 14px;
  color: var(--blue);
}

.track-meta {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9px;
}

.track-meta strong {
  color: var(--muted);
  font-weight: 500;
}

.wave-stage {
  position: relative;
  height: 188px;
  margin: 14px 14px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(114, 183, 255, 0.03), transparent 56%),
    #0b0f12;
  cursor: crosshair;
}

.wave-stage::before,
.wave-stage::after {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  content: "";
}

.wave-stage::before {
  top: 50%;
  right: 0;
  left: 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

.wave-stage::after {
  inset: 0;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 10% 100%;
}

#waveform {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.wave-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
}

.comment-markers {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.comment-marker {
  position: absolute;
  top: 14px;
  display: grid;
  width: 23px;
  height: 23px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: var(--coral);
  color: #25130e;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto;
  transform: translateX(-50%);
  box-shadow: 0 3px 12px rgba(255, 139, 104, 0.25);
  transition: transform 160ms ease;
}

.comment-marker:hover {
  z-index: 2;
  transform: translateX(-50%) scale(1.12);
}

.comment-marker::after {
  position: absolute;
  top: 23px;
  width: 1px;
  height: 133px;
  background: linear-gradient(rgba(255, 139, 104, 0.5), transparent);
  content: "";
}

.transport {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px 22px 22px;
}

.transport-primary {
  display: flex;
  align-items: center;
  gap: 11px;
}

.play-button {
  display: grid;
  width: 50px;
  height: 50px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--text);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
  transition: transform 160ms ease, background 160ms ease;
}

.play-button:hover {
  background: #fff;
  transform: scale(1.04);
}

.play-button .icon {
  width: 19px;
  height: 19px;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: 160ms ease;
}

.icon-button:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.icon-button .icon {
  width: 15px;
  height: 15px;
}

.time-readout {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.time-readout span:last-child {
  color: var(--quiet);
  font-size: 10px;
}

.transport-mid {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.transport-mid span {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9px;
  white-space: nowrap;
}

.volume {
  width: min(130px, 14vw);
  accent-color: var(--blue);
}

.transport-right {
  display: flex;
  align-items: center;
  gap: 7px;
}

.speed {
  min-width: 45px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  cursor: pointer;
}

.speed:hover {
  color: var(--text);
}

.lower-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(360px, 1.22fr);
  gap: 18px;
  margin-top: 18px;
}

.album-directory {
  padding-top: clamp(46px, 6vw, 82px);
}

.album-directory-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 38px;
  animation: rise 500ms 70ms ease both;
}

.album-directory-head h1 {
  margin: 12px 0 14px;
  font-size: clamp(48px, 7vw, 94px);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.84;
}

.album-directory-head h1 span {
  color: var(--blue);
}

.album-directory-head p:not(.eyebrow) {
  max-width: 530px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  animation: rise 560ms 130ms ease both;
}

.album-card {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 28px;
  gap: 18px;
  align-items: center;
  min-height: 160px;
  padding: 12px 18px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.025), transparent 58%),
    rgba(17, 21, 25, 0.76);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.album-card:hover {
  border-color: rgba(114, 183, 255, 0.3);
  background-color: var(--panel-raised);
  transform: translateY(-2px);
}

.album-cover {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  align-self: stretch;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
}

.album-cover > span {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.08em;
}

.album-cover > i {
  position: absolute;
  right: 9px;
  bottom: 8px;
  z-index: 1;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(3, 5, 7, 0.5);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--mono);
  font-size: 7px;
  font-style: normal;
  text-transform: uppercase;
}

.album-card-copy {
  min-width: 0;
}

.album-card-copy strong {
  display: block;
  overflow: hidden;
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 650;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-card-copy span {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-card-arrow {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
}

.album-card-arrow .icon {
  width: 12px;
  height: 12px;
}

.album-empty {
  grid-column: 1 / -1;
  display: grid;
  min-height: 330px;
  padding: 40px 24px;
  place-content: center;
  justify-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0, rgba(114, 183, 255, 0.08), transparent 55%),
    rgba(255, 255, 255, 0.012);
  text-align: center;
}

.album-empty-mark {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  color: var(--blue);
}

.album-empty-mark .icon {
  width: 21px;
  height: 21px;
}

.album-empty h2 {
  margin: 0 0 8px;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.album-empty p {
  max-width: 430px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.empty-library {
  display: grid;
  min-height: calc(100vh - 88px);
  place-items: center;
}

.empty-library-card {
  display: grid;
  width: min(100%, 760px);
  min-height: 430px;
  padding: clamp(32px, 6vw, 64px);
  place-content: center;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(480px 260px at 50% 0, rgba(114, 183, 255, 0.1), transparent 70%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.025), transparent 60%),
    var(--panel);
  text-align: center;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}

.empty-library-mark {
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 20px;
  place-items: center;
  border: 1px solid rgba(114, 183, 255, 0.24);
  border-radius: 18px;
  background: rgba(114, 183, 255, 0.08);
  color: var(--blue);
}

.empty-library-mark .icon {
  width: 26px;
  height: 26px;
}

.empty-library-card h1 {
  margin: 12px 0 12px;
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.empty-library-card > p:not(.eyebrow) {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.empty-library-actions {
  display: flex;
  gap: 10px;
  margin-top: 26px;
  flex-wrap: wrap;
  justify-content: center;
}

.album-hero {
  align-items: center;
}

.album-detail-cover {
  width: 132px;
  height: 132px;
}

.album-description {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.album-banner {
  margin: -12px 0 18px;
}

.album-lower {
  margin-top: 18px;
}

.album-track-list {
  padding: 7px;
}

.album-track-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 3px;
  align-items: center;
  border-radius: 10px;
}

.album-track-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.album-track-row.is-active {
  background: rgba(114, 183, 255, 0.07);
}

.album-track {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  width: 100%;
  padding: 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.album-track:hover {
  background: transparent;
  color: var(--text);
}

.album-track.is-active {
  background: transparent;
  color: var(--text);
}

.album-track-number {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 8px;
}

.album-track.is-active .album-track-number {
  border-color: rgba(114, 183, 255, 0.28);
  background: rgba(114, 183, 255, 0.1);
  color: var(--blue);
}

.album-track-number .icon {
  width: 11px;
  height: 11px;
  fill: currentColor;
  stroke: none;
}

.album-track-copy {
  min-width: 0;
}

.album-track-copy strong,
.album-track-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-track-copy strong {
  font-size: 12px;
  font-weight: 600;
}

.album-track-copy span {
  margin-top: 3px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 8px;
}

.album-track-duration {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 8px;
}

.album-track-remove {
  width: 30px;
  height: 30px;
}

.surface {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(17, 21, 25, 0.74);
  animation: rise 560ms 190ms ease both;
}

.surface-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 19px 14px;
  border-bottom: 1px solid var(--line);
}

.surface-head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.surface-head span {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 9px;
}

.version-list {
  padding: 7px;
}

.version-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 7px;
  align-items: center;
  padding: 5px;
  border-radius: 10px;
}

.version-row.is-current {
  background: rgba(255, 255, 255, 0.035);
}

.version-select {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-width: 0;
  padding: 7px 4px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.version-select:hover .version-name {
  color: var(--blue-bright);
}

.version-row > .icon-button {
  width: 30px;
  height: 30px;
}

.version-empty {
  display: flex;
  width: calc(100% - 12px);
  min-height: 58px;
  margin: 7px 6px 1px;
  align-items: center;
  gap: 9px;
  justify-content: center;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 8px;
  cursor: pointer;
}

.version-empty:hover {
  border-color: rgba(114, 183, 255, 0.3);
  color: var(--text);
}

.version-empty .icon {
  width: 13px;
  height: 13px;
}

.version-index {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 8px;
}

.version-row.is-current .version-index {
  border-color: rgba(114, 183, 255, 0.3);
  background: rgba(114, 183, 255, 0.08);
  color: var(--blue);
}

.version-name {
  display: block;
  font-size: 12px;
  font-weight: 550;
}

.version-meta {
  display: block;
  margin-top: 3px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 8px;
}

.current-tag {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.version-time {
  color: var(--quiet);
}

.danger-button {
  color: #ff9e9e;
}

.danger-button:hover {
  border-color: rgba(255, 135, 135, 0.28);
  background: rgba(255, 135, 135, 0.08);
  color: #ffb5b5;
}

.feedback-surface {
  animation-delay: 230ms;
}

.comment-list {
  display: flex;
  max-height: 374px;
  flex-direction: column;
  padding: 8px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #2c343b transparent;
}

.comment-card {
  position: relative;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px 11px;
  border-radius: 10px;
  transition: background 150ms ease;
}

.comment-thread {
  min-width: 0;
}

.comment-replies {
  margin-left: 26px;
  padding-left: 8px;
  border-left: 1px solid rgba(114, 183, 255, 0.12);
}

.comment-thread.is-reply .comment-card {
  padding-block: 9px;
}

.comment-thread.is-reply .comment-avatar {
  width: 26px;
  height: 26px;
}

.comment-thread.is-reply .comment-card {
  grid-template-columns: 27px minmax(0, 1fr) auto;
  gap: 8px;
}

.comment-card:hover {
  background: rgba(255, 255, 255, 0.03);
}

.comment-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: hsl(calc(var(--avatar-hue, 200) * 1deg) 27% 22%);
  color: hsl(calc(var(--avatar-hue, 200) * 1deg) 75% 78%);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
}

.comment-body {
  min-width: 0;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
}

.comment-author {
  color: var(--text);
  font-size: 11px;
  font-weight: 650;
}

.comment-age {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 8px;
}

.comment-edited,
.comment-reply-count {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 7px;
  text-transform: uppercase;
}

.comment-edited {
  font-style: italic;
}

.comment-text {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.48;
}

.comment-actions {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
}

.reaction-picker {
  display: flex;
  gap: 2px;
  padding-right: 4px;
  margin-right: 1px;
  border-right: 1px solid var(--line);
}

.reaction-button {
  display: inline-flex;
  min-width: 24px;
  height: 23px;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 4px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  font-size: 11px;
  cursor: pointer;
  opacity: 0.62;
}

.reaction-button:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
  opacity: 1;
}

.reaction-button.is-active {
  border-color: rgba(114, 183, 255, 0.24);
  background: rgba(114, 183, 255, 0.09);
  opacity: 1;
}

.reaction-button span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
}

.comment-action {
  padding: 3px 5px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.comment-action:hover {
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.comment-action.danger-text:hover {
  color: #ffaaaa;
}

.comment-inline-form {
  display: grid;
  gap: 7px;
  margin-top: 9px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(4, 6, 8, 0.3);
}

.comment-inline-form[hidden] {
  display: none;
}

.comment-inline-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 8px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  background: rgba(2, 4, 6, 0.42);
  color: var(--text);
  font-size: 11px;
  line-height: 1.45;
}

.comment-inline-form textarea:focus {
  border-color: rgba(114, 183, 255, 0.38);
}

.comment-inline-form > div {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.comment-post {
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid rgba(114, 183, 255, 0.28);
  border-radius: 6px;
  background: rgba(114, 183, 255, 0.11);
  color: var(--blue-bright);
  font-family: var(--mono);
  font-size: 7px;
  cursor: pointer;
}

.comment-post:disabled {
  cursor: wait;
  opacity: 0.55;
}

.timestamp-button {
  align-self: start;
  padding: 5px 7px;
  border: 1px solid rgba(114, 183, 255, 0.18);
  border-radius: 6px;
  background: rgba(114, 183, 255, 0.07);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  cursor: pointer;
}

.timestamp-button:hover {
  border-color: rgba(114, 183, 255, 0.4);
  background: rgba(114, 183, 255, 0.12);
}

.empty-feedback {
  padding: 34px 22px;
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.comment-form {
  padding: 12px;
  border-top: 1px solid var(--line);
}

.composer {
  display: flex;
  gap: 9px;
  align-items: flex-end;
  padding: 7px 7px 7px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(5, 7, 9, 0.34);
  transition: border-color 150ms ease;
}

.composer:focus-within {
  border-color: rgba(114, 183, 255, 0.35);
}

.composer-fields {
  flex: 1;
  min-width: 0;
}

.composer-author {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-size: 8px;
}

.composer-author::placeholder {
  color: var(--quiet);
}

.composer-identity {
  display: block;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 8px;
}

.composer textarea {
  display: block;
  width: 100%;
  min-height: 24px;
  max-height: 110px;
  padding: 3px 0 0;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  line-height: 1.4;
}

.composer textarea::placeholder {
  color: var(--muted);
}

.composer-send {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  color: #06101a;
  cursor: pointer;
}

.composer-send:disabled {
  cursor: wait;
  opacity: 0.55;
}

.composer-send .icon {
  width: 15px;
  height: 15px;
}

.composer-hint {
  display: flex;
  justify-content: space-between;
  margin: 8px 3px 0;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 8px;
}

.shared-shell .library {
  display: none;
}

.shared-shell .app-grid {
  display: block;
  max-width: 1180px;
}

.shared-shell .workspace {
  padding-top: 52px;
}

.shared-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 11px 14px;
  border: 1px solid rgba(114, 183, 255, 0.16);
  border-radius: 10px;
  background: rgba(114, 183, 255, 0.05);
  color: var(--muted);
  font-size: 11px;
}

.shared-banner .icon {
  width: 14px;
  height: 14px;
  color: var(--blue);
}

.shared-banner a {
  margin-left: auto;
  color: var(--text);
  font-weight: 600;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  padding: 20px;
  place-items: center;
  background: rgba(3, 5, 7, 0.74);
  backdrop-filter: blur(10px);
  animation: fade-in 160ms ease both;
}

.modal {
  position: relative;
  width: min(100%, 540px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background:
    radial-gradient(500px 220px at 100% 0, rgba(114, 183, 255, 0.08), transparent 70%),
    #101418;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.62);
  animation: modal-in 220ms ease both;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 25px 0;
}

.modal-head h2 {
  margin: 0 0 5px;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.modal-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.modal-close {
  margin-top: -4px;
}

.modal-body {
  padding: 24px 25px 25px;
}

.dropzone {
  position: relative;
  display: grid;
  min-height: 164px;
  padding: 22px;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.19);
  border-radius: 14px;
  background:
    repeating-linear-gradient(-45deg, transparent 0 10px, rgba(255, 255, 255, 0.015) 10px 11px),
    rgba(255, 255, 255, 0.015);
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.dropzone:hover,
.dropzone.is-dragging {
  border-color: rgba(114, 183, 255, 0.48);
  background-color: rgba(114, 183, 255, 0.035);
}

.dropzone.has-file {
  border-style: solid;
  border-color: rgba(216, 255, 99, 0.25);
  background-color: rgba(216, 255, 99, 0.025);
}

.dropzone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.drop-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin: 0 auto 11px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--panel-raised);
  color: var(--blue);
}

.drop-icon .icon {
  width: 18px;
  height: 18px;
}

.drop-title {
  margin: 0 0 5px;
  font-size: 13px;
  font-weight: 600;
}

.drop-hint {
  margin: 0;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.wide {
  grid-column: 1 / -1;
}

.field > span:first-child {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  background: rgba(4, 6, 8, 0.34);
  color: var(--text);
  font-size: 12px;
}

.field input:focus {
  border-color: rgba(114, 183, 255, 0.4);
}

.album-modal {
  width: min(100%, 640px);
}

.album-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 2px 9px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.album-picker {
  display: flex;
  max-height: 260px;
  flex-direction: column;
  gap: 4px;
  padding: 5px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(4, 6, 8, 0.28);
  scrollbar-width: thin;
  scrollbar-color: #2c343b transparent;
}

.album-picker-row {
  position: relative;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) 27px;
  gap: 11px;
  align-items: center;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}

.album-picker-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.album-picker-row:has(input:focus-visible) {
  border-color: rgba(114, 183, 255, 0.5);
}

.album-picker-row:has(input:checked) {
  border-color: rgba(114, 183, 255, 0.18);
  background: rgba(114, 183, 255, 0.07);
}

.album-picker-row > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.album-picker-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 8px;
}

.album-picker-copy {
  min-width: 0;
}

.album-picker-copy strong,
.album-picker-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-picker-copy strong {
  font-size: 12px;
  font-weight: 600;
}

.album-picker-copy span {
  margin-top: 3px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 8px;
}

.album-picker-check {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: #07111b;
}

.album-picker-check .icon {
  width: 12px;
  height: 12px;
  opacity: 0;
}

.album-picker-row input:checked ~ .album-picker-check {
  border-color: var(--blue);
  background: var(--blue);
}

.album-picker-row input:checked ~ .album-picker-check .icon {
  opacity: 1;
}

.upload-progress {
  display: none;
  height: 4px;
  margin-top: 17px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
}

.upload-progress.is-visible {
  display: block;
}

.upload-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--acid));
  transition: width 120ms linear;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
}

.delete-modal {
  width: min(100%, 500px);
}

.delete-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 135, 135, 0.2);
  border-radius: 10px;
  background: rgba(255, 135, 135, 0.05);
  color: #ffaaaa;
  font-size: 11px;
}

.delete-warning .icon {
  width: 16px;
  height: 16px;
}

.settings-modal {
  width: min(100%, 540px);
}

.settings-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background:
    radial-gradient(230px 110px at 100% 0, rgba(114, 183, 255, 0.08), transparent 70%),
    rgba(4, 6, 8, 0.28);
}

.settings-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  margin: 0;
  font-size: 13px;
}

.settings-profile > span:last-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.settings-profile strong,
.settings-profile small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-profile strong {
  font-size: 15px;
  font-weight: 650;
}

.settings-profile small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.settings-list {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.settings-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.settings-list > div:last-child {
  border-bottom: 0;
}

.settings-list span {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.settings-list strong {
  overflow: hidden;
  color: var(--text);
  font-size: 10px;
  font-weight: 550;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-list strong.settings-live {
  color: var(--acid);
}

.settings-note {
  margin: 12px 2px 0;
  color: var(--quiet);
  font-size: 10px;
  line-height: 1.45;
}

.settings-actions {
  justify-content: space-between;
}

.settings-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.settings-section-head h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 650;
}

.settings-section-head p {
  margin: 0 0 12px;
  color: var(--quiet);
  font-size: 10px;
}

.settings-inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.settings-inline-form input[type="file"] {
  min-width: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.settings-inline-form input[type="file"]::file-selector-button {
  height: 38px;
  margin-right: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  cursor: pointer;
}

.settings-password-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.settings-password-form .field:first-child,
.settings-password-form .button {
  grid-column: 1 / -1;
}

.settings-password-form .button {
  justify-self: start;
}

.image-dropzone {
  min-height: 190px;
}

.members-modal {
  width: min(100%, 620px);
}

.member-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.member-list {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.member-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
}

.member-avatar {
  width: 36px;
  height: 36px;
  margin: 0;
  font-size: 10px;
}

.member-row > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

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

.member-row strong {
  font-size: 11px;
  font-weight: 600;
}

.member-row small {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 8px;
}

.member-remove {
  min-height: 34px;
  padding-inline: 10px;
  font-size: 9px;
}

.member-empty {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--quiet);
  font-size: 11px;
  text-align: center;
}

.share-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(4, 6, 8, 0.25);
}

.share-panel + .share-panel {
  margin-top: 10px;
}

.share-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.share-label .icon {
  width: 13px;
  height: 13px;
  color: var(--blue);
}

.share-input-row {
  display: flex;
  gap: 8px;
}

.share-input {
  min-width: 0;
  height: 42px;
  flex: 1;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  background: #090c0f;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-overflow: ellipsis;
}

.share-input:focus {
  border-color: rgba(114, 183, 255, 0.35);
}

.share-note {
  margin: 8px 0 0;
  color: var(--quiet);
  font-size: 10px;
  line-height: 1.45;
}

.share-note.error {
  color: #ff9e9e;
}

.share-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 8px;
}

.share-status .icon {
  width: 12px;
  height: 12px;
}

.toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  max-width: min(370px, calc(100vw - 44px));
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #181e23;
  color: var(--text);
  font-size: 12px;
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.38);
  animation: toast-in 220ms ease both;
}

.toast::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

.toast.error::before {
  background: #ff8787;
}

.toast.leaving {
  animation: toast-out 180ms ease both;
}

.boot-screen {
  display: grid;
  min-height: 100vh;
  place-content: center;
  justify-items: center;
  gap: 18px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.boot-mark {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 42px;
}

.boot-mark span {
  width: 5px;
  border-radius: 5px;
  background: var(--blue);
  animation: meter 800ms ease-in-out infinite alternate;
}

.boot-mark span:nth-child(1) {
  height: 15px;
}

.boot-mark span:nth-child(2) {
  height: 36px;
  animation-delay: -300ms;
}

.boot-mark span:nth-child(3) {
  height: 23px;
  animation-delay: -550ms;
}

.error-screen {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-content: center;
  text-align: center;
}

.error-screen h1 {
  max-width: 650px;
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 58px);
  letter-spacing: -0.055em;
}

.error-screen p {
  max-width: 520px;
  margin: 0 auto 22px;
  color: var(--muted);
  line-height: 1.55;
}

@keyframes app-in {
  from {
    opacity: 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
}

@keyframes account-menu-in {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.98);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(6px);
  }
}

@keyframes meter {
  to {
    height: 8px;
    opacity: 0.5;
  }
}

@keyframes auth-wave {
  from {
    opacity: 0.38;
    transform: scaleY(0.68);
  }

  to {
    opacity: 0.92;
    transform: scaleY(1);
  }
}

/* Desktop readability scale */
body {
  font-size: 15px;
}

.topbar {
  height: 84px;
}

.library {
  top: 84px;
  height: calc(100vh - 84px);
  padding: 34px 20px 28px 30px;
}

.app-grid {
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: calc(100vh - 84px);
}

.brand {
  gap: 13px;
  font-size: 22px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 11px;
}

.top-context,
.connection {
  font-size: 11px;
}

.top-divider {
  margin-inline: 24px;
}

.button {
  min-height: 44px;
  padding-inline: 18px;
  gap: 10px;
  border-radius: 11px;
  font-size: 14px;
}

.button .icon {
  width: 17px;
  height: 17px;
}

.avatar {
  width: 40px;
  height: 40px;
  font-size: 12px;
}

.user-chip {
  gap: 9px;
  padding: 3px 9px 3px 3px;
}

.user-chip-copy strong {
  max-width: 110px;
  font-size: 12px;
}

.user-chip-copy small {
  font-size: 8.5px;
}

.account-chevron {
  width: 14px;
  height: 14px;
}

.account-menu {
  width: 280px;
  padding: 8px;
  border-radius: 15px;
}

.account-menu-summary {
  padding: 11px 10px 13px;
}

.account-menu-summary strong {
  font-size: 12.5px;
}

.account-menu-summary small,
.account-menu-item small {
  font-size: 9px;
}

.account-menu-item {
  grid-template-columns: 29px minmax(0, 1fr);
  padding: 10px;
}

.account-menu-item > .icon {
  width: 18px;
  height: 18px;
}

.account-menu-item strong {
  font-size: 11.5px;
}

.library-tabs {
  margin-bottom: 26px;
}

.library-tabs button {
  min-height: 36px;
  font-size: 10px;
}

.eyebrow {
  font-size: 10.5px;
}

.library-count {
  font-size: 11.5px;
}

.project-item,
.album-item {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 13px;
  padding-block: 13px;
}

.mini-cover,
.album-mini {
  width: 48px;
  height: 48px;
  font-size: 11.5px;
}

.project-title {
  font-size: 15px;
}

.project-artist {
  margin-top: 4px;
  font-size: 12.5px;
}

.project-count {
  font-size: 10.5px;
}

.workspace {
  padding-top: 52px;
}

.project-hero {
  gap: 25px;
  margin-bottom: 36px;
}

.cover {
  width: 132px;
  height: 132px;
  border-radius: 20px;
}

.cover span {
  font-size: 25px;
}

.hero-kicker {
  margin-bottom: 10px;
}

.version-pill {
  min-height: 27px;
  padding-inline: 10px;
  font-size: 10px;
}

.hero-kicker time {
  font-size: 10px;
}

.project-hero h1 {
  font-size: clamp(46px, 5.6vw, 82px);
}

.project-subtitle {
  gap: 11px;
  margin-top: 14px;
  font-size: 16px;
}

.player-topline {
  padding: 20px 24px 0;
}

.listen-label,
.track-meta {
  font-size: 10.5px;
}

.listen-label .icon {
  width: 16px;
  height: 16px;
}

.wave-stage {
  height: 220px;
  margin: 16px 16px 0;
  border-radius: 14px;
}

.wave-loading {
  font-size: 10.5px;
}

.comment-marker {
  width: 27px;
  height: 27px;
  font-size: 9px;
}

.comment-marker::after {
  top: 27px;
  height: 160px;
}

.transport {
  gap: 22px;
  padding: 20px 24px 24px;
}

.play-button {
  width: 56px;
  height: 56px;
}

.play-button .icon {
  width: 21px;
  height: 21px;
}

.icon-button {
  width: 38px;
  height: 38px;
}

.icon-button .icon {
  width: 17px;
  height: 17px;
}

.time-readout {
  font-size: 15px;
}

.time-readout span:last-child {
  font-size: 11px;
}

.transport-mid {
  gap: 13px;
}

.transport-mid span {
  font-size: 10px;
}

.speed {
  min-width: 50px;
  padding: 8px 9px;
  font-size: 10.5px;
}

.surface-head {
  padding: 20px 21px 16px;
}

.surface-head h2 {
  font-size: 15px;
}

.surface-head span {
  font-size: 10px;
}

.version-row {
  padding: 7px;
}

.version-select {
  grid-template-columns: 29px minmax(0, 1fr);
  gap: 12px;
  padding-block: 8px;
}

.version-index {
  width: 28px;
  height: 28px;
  font-size: 9px;
}

.version-name {
  font-size: 14px;
}

.version-meta,
.current-tag,
.version-time {
  font-size: 9.5px;
}

.comment-list {
  max-height: 430px;
}

.comment-card {
  grid-template-columns: 35px minmax(0, 1fr) auto;
  gap: 11px;
  padding: 14px 12px;
}

.comment-avatar {
  width: 34px;
  height: 34px;
  font-size: 10.5px;
}

.comment-author {
  font-size: 12.5px;
}

.comment-age,
.comment-edited,
.comment-reply-count {
  font-size: 9px;
}

.comment-text {
  font-size: 13.5px;
  line-height: 1.52;
}

.comment-action {
  font-size: 9px;
}

.reaction-button {
  min-width: 27px;
  height: 26px;
  font-size: 13px;
}

.reaction-button span {
  font-size: 8.5px;
}

.composer-author,
.composer-hint {
  font-size: 9.5px;
}

.composer textarea {
  font-size: 13.5px;
}

.composer-send {
  width: 38px;
  height: 38px;
}

.album-description,
.album-directory-head p:not(.eyebrow) {
  font-size: 15px;
}

.album-card-copy span,
.album-track-copy span,
.album-track-duration {
  font-size: 9.5px;
}

.album-track-copy strong {
  font-size: 14px;
}

.modal-head h2 {
  font-size: 31px;
}

.modal-head p {
  font-size: 13.5px;
}

.modal-body {
  padding: 27px;
}

.field > span:first-child,
.auth-field span {
  font-size: 9.5px;
}

.field input,
.auth-field input {
  height: 49px;
  font-size: 14px;
}

.drop-title {
  font-size: 14px;
}

.drop-hint,
.share-label,
.share-status {
  font-size: 9.5px;
}

.share-input {
  height: 46px;
  font-size: 10.5px;
}

.share-note,
.settings-note {
  font-size: 11.5px;
}

.settings-profile strong {
  font-size: 17px;
}

.settings-profile small,
.settings-list span {
  font-size: 9.5px;
}

.settings-list strong {
  font-size: 11.5px;
}

.auth-mode-tabs button {
  min-height: 42px;
  font-size: 9.5px;
}

.auth-intro {
  font-size: 14px;
}

.auth-switch {
  font-size: 12px;
}

/* Titles must remain readable even when they are long. */
.project-title,
.project-artist,
.album-card-copy strong,
.album-card-copy span,
.album-track-copy strong,
.album-track-copy span,
.album-picker-copy strong,
.album-picker-copy span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.project-title,
.album-card-copy strong,
.album-track-copy strong,
.album-picker-copy strong {
  line-height: 1.22;
}

.project-artist,
.album-card-copy span,
.album-track-copy span,
.album-picker-copy span {
  line-height: 1.35;
}

.project-hero h1 {
  max-width: 980px;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 0.94;
}

@media (min-width: 1100px) {
  body {
    font-size: 16px;
  }

  .app-grid {
    width: min(100%, 1680px);
    grid-template-columns: 340px minmax(0, 1fr);
  }

  .topbar {
    height: 88px;
  }

  .library {
    top: 88px;
    height: calc(100vh - 88px);
  }

  .brand {
    font-size: 24px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .top-context,
  .connection {
    font-size: 11.5px;
  }

  .button {
    min-height: 46px;
    font-size: 15px;
  }

  .project-item,
  .album-item {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 14px;
    padding-block: 15px;
  }

  .mini-cover,
  .album-mini {
    width: 52px;
    height: 52px;
  }

  .project-title {
    font-size: 16px;
  }

  .project-artist {
    font-size: 13.5px;
  }

  .project-count {
    font-size: 11px;
  }

  .workspace {
    padding-top: 56px;
  }

  .cover {
    width: 148px;
    height: 148px;
  }

  .project-hero {
    gap: 28px;
    margin-bottom: 40px;
  }

  .project-hero h1 {
    font-size: clamp(52px, 5.8vw, 92px);
  }

  .project-subtitle {
    font-size: 17px;
  }

  .wave-stage {
    height: 240px;
  }

  .play-button {
    width: 60px;
    height: 60px;
  }

  .time-readout {
    font-size: 16px;
  }

  .surface-head h2 {
    font-size: 16px;
  }

  .version-name,
  .album-track-copy strong {
    font-size: 15px;
  }

  .comment-author {
    font-size: 13.5px;
  }

  .comment-text {
    font-size: 14.5px;
  }

  .modal-head h2 {
    font-size: 33px;
  }

  .field input,
  .auth-field input {
    height: 52px;
    font-size: 15px;
  }
}

@media (max-width: 1080px) {
  .auth-shell {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.78fr);
  }

  .auth-statement h1 {
    font-size: clamp(56px, 8vw, 88px);
  }

  .app-grid {
    grid-template-columns: 252px minmax(0, 1fr);
  }

  .workspace {
    padding-inline: 30px;
  }

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

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

  .hero-actions .button span {
    display: none;
  }
}

@media (max-width: 780px) {
  .auth-shell {
    display: block;
  }

  .auth-atmosphere {
    min-height: 360px;
    padding: 24px 24px 34px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .auth-statement {
    margin: 45px 0 0;
    padding: 0 0 40px;
  }

  .auth-statement h1 {
    font-size: clamp(50px, 13vw, 78px);
  }

  .auth-statement > p:last-child {
    max-width: 440px;
    margin-top: 20px;
    font-size: 13px;
  }

  .auth-wave {
    right: 24px;
    bottom: 18px;
    left: 24px;
    height: 55px;
    opacity: 0.45;
  }

  .auth-wave i {
    max-height: 55px;
  }

  .auth-footnote {
    display: none;
  }

  .auth-panel {
    min-height: auto;
    padding: 48px 24px 60px;
  }

  .top-context,
  .connection,
  .top-divider {
    display: none;
  }

  .topbar {
    height: 66px;
    padding-inline: 18px;
  }

  .app-grid {
    display: block;
    min-height: calc(100vh - 66px);
  }

  .library {
    position: static;
    height: auto;
    padding: 14px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
  }

  .library-tabs {
    width: 210px;
    margin: 0 0 12px;
  }

  .library-head,
  .sidebar-footer {
    display: none;
  }

  .project-list,
  .album-list {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .project-item,
  .album-item {
    min-width: 205px;
  }

  .album-directory-head {
    display: grid;
    align-items: start;
    margin-bottom: 26px;
  }

  .album-directory-head .button {
    width: max-content;
  }

  .album-directory-head h1 {
    font-size: clamp(46px, 12vw, 70px);
  }

  .workspace {
    padding: 27px 18px 46px;
  }

  .empty-library {
    min-height: calc(100vh - 66px);
    padding-top: 18px;
  }

  .empty-library-card {
    min-height: 360px;
    padding: 34px 22px;
  }

  .project-hero {
    align-items: center;
    gap: 15px;
  }

  .cover {
    width: 84px;
    height: 84px;
    border-radius: 15px;
  }

  .project-hero h1 {
    font-size: clamp(32px, 9vw, 52px);
  }

  .hero-actions {
    margin-left: 0;
  }

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

  .album-detail-cover {
    width: 84px;
    height: 84px;
  }

  .transport {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .transport-mid {
    display: none;
  }

  .shared-shell .workspace {
    padding-top: 26px;
  }
}

@media (max-width: 520px) {
  .auth-atmosphere {
    min-height: 310px;
  }

  .auth-statement h1 {
    font-size: clamp(44px, 14vw, 62px);
  }

  .auth-panel {
    padding: 36px 18px 50px;
  }

  .auth-card h2 {
    font-size: 36px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
  }

  .top-actions .button.primary span {
    display: none;
  }

  .top-actions .button.primary {
    width: 40px;
    padding: 0;
  }

  .avatar {
    display: none;
  }

  .user-chip-copy {
    display: none;
  }

  .user-chip .avatar {
    display: grid;
  }

  .account-menu-summary .avatar,
  .settings-avatar {
    display: grid;
  }

  .project-hero {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .album-card {
    grid-template-columns: 100px minmax(0, 1fr) 24px;
    gap: 12px;
    min-height: 122px;
    padding-right: 12px;
  }

  .album-card-copy strong {
    font-size: 18px;
  }

  .album-card-copy span {
    white-space: normal;
  }

  .cover {
    width: 68px;
    height: 68px;
  }

  .hero-actions {
    grid-column: 1 / -1;
    margin-top: 5px;
  }

  .hero-actions .button:first-child {
    width: auto;
    padding: 0 14px;
  }

  .hero-actions .button:first-child span {
    display: inline;
  }

  .wave-stage {
    height: 148px;
    margin-inline: 10px;
  }

  .comment-marker::after {
    height: 94px;
  }

  .transport {
    padding: 14px;
  }

  .play-button {
    width: 44px;
    height: 44px;
  }

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

  .field.wide {
    grid-column: auto;
  }

  .share-input-row {
    flex-direction: column;
  }

  .settings-inline-form,
  .settings-password-form,
  .member-add-form {
    grid-template-columns: 1fr;
  }

  .settings-password-form .field:first-child,
  .settings-password-form .button {
    grid-column: auto;
  }

  .modal-body,
  .modal-head {
    padding-inline: 19px;
  }

  .album-picker {
    max-height: 235px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
