@font-face {
  font-family: Studio;
  src: url("/static/assets/space-grotesk-latin-400-normal.woff2")
    format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Studio;
  src: url("/static/assets/space-grotesk-latin-600-normal.woff2")
    format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Studio;
  src: url("/static/assets/space-grotesk-latin-700-normal.woff2")
    format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: StudioMono;
  src: url("/static/assets/jetbrains-mono-latin-400-normal.woff2")
    format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --page: #151719;
  --panel: #1c1e20;
  --panel2: #222527;
  --line: #393c3c;
  --muted: #adb1ae;
  --ink: #f0f2ed;
  --accent: #d9fba2;
  --accent-soft: #313b27;
  --danger: #ffaca3;
  --mono: StudioMono, monospace;
  font-family: Studio, Arial, sans-serif;
  background: var(--page);
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
input,
textarea,
select {
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 5px;
}
input:not([type="range"]),
textarea {
  padding: 11px 12px;
}
input[type="file"] {
  width: 100%;
}
input[type="file"]::file-selector-button {
  margin-right: 10px;
  color: var(--ink);
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 5px 8px;
}
select {
  padding: 7px 28px 7px 10px;
  max-width: 100%;
}
textarea {
  resize: vertical;
}
button {
  color: var(--ink);
}
button,
input,
select,
textarea,
a {
  outline-offset: 4px;
}
:focus-visible {
  outline: 2px solid var(--accent);
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
[hidden] {
  display: none !important;
}
.icon-set,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.icon {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.loading-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.bar {
  border-bottom: 1px solid var(--line);
  background: #121416;
}
.bar-inner,
.page {
  max-width: 1360px;
  margin: auto;
  padding-inline: clamp(20px, 4.8vw, 74px);
}
.bar-inner {
  min-height: 69px;
  display: flex;
  align-items: center;
  gap: clamp(15px, 4vw, 60px);
}
.wordmark {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.065em;
}
.wordmark img {
  border-radius: 0;
}
.main-nav,
.account,
.nav-item,
.section-head,
.button,
.play,
.icon-button,
.eyebrow,
.approved,
.time-chip,
.version-foot,
.dialog-head,
.dialog-actions,
.composer-actions,
.reply-target {
  display: flex;
  align-items: center;
}
.main-nav {
  align-self: stretch;
  gap: 28px;
}
.nav-item {
  gap: 7px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.nav-item[aria-current="page"] {
  border-color: var(--accent);
  color: var(--ink);
}
.account {
  margin-left: auto;
  gap: 11px;
  font-size: 14px;
}
.account > span {
  max-width: 10rem;
  text-overflow: ellipsis;
  overflow: hidden;
}
.icon-button {
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 4px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
}
.icon-button:hover:not(:disabled) {
  color: var(--ink);
  background: var(--panel2);
}
.icon-button:focus-visible,
.icon-button:hover:not(:disabled) {
  outline-offset: 1px;
}
.count,
.unread {
  font: 11px var(--mono);
  font-variant-numeric: tabular-nums;
}
.count {
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  min-width: 24px;
  padding: 2px 5px;
  text-align: center;
}
.unread {
  background: var(--accent);
  color: #19210f;
  border-radius: 20px;
  padding: 2px 5px;
}
.page {
  padding-block: clamp(28px, 4.4vw, 64px) 48px;
}
.page-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: clamp(24px, 3.3vw, 44px);
}
.eyebrow,
.field-name {
  font: 10.5px/1.5 var(--mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow {
  gap: 7px;
  margin-bottom: 10px;
}
.eyebrow .icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
}
h1 {
  font-size: clamp(35px, 4.7vw, 67px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.07em;
}
.sync {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font: 11px var(--mono);
  padding-bottom: 6px;
}
.sync::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.sync.offline::before {
  background: var(--danger);
}
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(276px, 0.84fr) minmax(0, 1.9fr);
  gap: clamp(22px, 3.6vw, 48px);
  align-items: start;
}
.rail,
.review,
.audio-panel,
.activity-feed {
  min-width: 0;
}
.rail {
  padding-top: 5px;
}
.rail-section + .rail-section {
  border-top: 1px solid var(--line);
  padding-top: 25px;
  margin-top: 29px;
}
.section-head {
  gap: 10px;
  justify-content: space-between;
}
.section-head h2,
.discussion h3,
.dialog-head h2 {
  font-size: clamp(18px, 1.55vw, 22px);
  letter-spacing: -0.045em;
  font-weight: 600;
}
.hint,
.field-hint,
.version-note,
.thread-time {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.rail-section > .hint,
.discussion > .hint {
  margin-top: 4px;
}
.queue,
.library {
  margin-top: 14px;
}
.queue {
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 5px;
  min-height: 76px;
  transition: border-color 0.14s;
}
.queue.drag-over {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.queue-empty {
  display: grid;
  place-content: center;
  text-align: center;
  min-height: 79px;
  color: var(--muted);
  font-size: 13px;
}
.queue-empty .icon {
  width: 22px;
  height: 22px;
  margin: 0 auto 7px;
  color: var(--accent);
}
.track-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 61px;
  padding: 8px 6px;
  min-width: 0;
  cursor: grab;
}
.track-row.chosen {
  background: var(--panel2);
  border-radius: 4px;
}
.track-row.drag-before::before,
.track-row.drag-after::after {
  content: "";
  display: block;
  position: absolute;
  height: 2px;
  left: 0;
  right: 0;
  background: var(--accent);
  z-index: 2;
}
.track-row.drag-before::before {
  top: 0;
}
.track-row.drag-after::after {
  bottom: 0;
}
.library .track-row {
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.track-core {
  display: block;
  min-width: 0;
  flex: 1;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 4px;
  color: var(--ink);
}
.track-core strong,
.track-core small {
  display: block;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.track-core strong {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.track-core small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.track-order,
.grip {
  color: var(--muted);
  flex: none;
}
.track-order {
  font: 12px var(--mono);
  font-variant-numeric: tabular-nums;
}
.grip {
  width: 12px;
  height: 18px;
}
.row-actions {
  display: flex;
  gap: 0;
  flex: none;
}
.row-actions .icon-button {
  width: 22px;
  height: 28px;
}
.row-actions .icon {
  width: 14px;
}
.small-emptiness {
  font-size: 13px;
  color: var(--muted);
  padding: 12px 4px;
}
.review {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: clamp(20px, 2.7vw, 37px);
}
.review-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 25px;
}
.track-heading {
  min-width: 0;
}
.track-heading h2 {
  font-size: clamp(27px, 2.7vw, 40px);
  letter-spacing: -0.055em;
  font-weight: 600;
  line-height: 1.12;
  overflow-wrap: anywhere;
}
.track-heading .hint {
  margin-top: 4px;
}
.status-field select {
  font-size: 12px;
  background: var(--panel2);
  border-radius: 18px;
  max-width: 145px;
}
.audio-panel {
  background: #141719;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 18px;
}
.version-bar,
.version-bar > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.version-bar {
  justify-content: space-between;
  flex-wrap: wrap;
}
.version-bar > div {
  min-width: 0;
  flex: 1;
}
.version-bar select {
  font-size: 13px;
  min-width: 0;
  max-width: 18rem;
}
.field-name {
  letter-spacing: 0.08em;
  font-size: 9px;
}
.button,
.approval-button,
.time-chip {
  border: 1px solid var(--line);
  background: var(--panel2);
  border-radius: 5px;
  line-height: 1.1;
  font-size: 13px;
  padding: 9px 11px;
  gap: 7px;
  justify-content: center;
  font-weight: 600;
}
.button:hover:not(:disabled),
.approval-button:hover,
.time-chip:hover {
  border-color: #71766d;
}
.button.primary {
  background: var(--accent);
  color: #1d2714;
  border-color: var(--accent);
}
.button.primary:hover:not(:disabled) {
  background: #e2ffb9;
}
.version-note {
  margin-top: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.transport {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 19px 0 13px;
}
.play {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #1b2613;
  justify-content: center;
  flex: none;
}
.play .icon {
  width: 23px;
  height: 23px;
}
.wave-group {
  flex: 1;
  min-width: 0;
}
.wavebox {
  position: relative;
  height: 64px;
  min-width: 0;
  border-radius: 3px;
  overflow: hidden;
}
.wavebox canvas,
.wavebox input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.wavebox input {
  opacity: 0;
  cursor: ew-resize;
  touch-action: none;
  margin: 0;
}
.wavebox:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.cursor {
  position: absolute;
  inset-block: 2px;
  width: 2px;
  transform: translateX(-1px);
  background: var(--ink);
  pointer-events: none;
}
.time-scale,
.version-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: var(--muted);
  font: 10px var(--mono);
  font-variant-numeric: tabular-nums;
}
.time-scale {
  margin-top: 2px;
}
.version-foot {
  padding-top: 12px;
  border-top: 1px solid #303431;
  min-height: 34px;
  flex-wrap: wrap;
}
.version-foot > span {
  overflow-wrap: anywhere;
}
.approval-button {
  border: 0;
  background: none;
  color: var(--accent);
  font:
    11px Studio,
    Arial,
    sans-serif;
  padding: 4px 0;
}
.approval-button:hover {
  text-decoration: underline;
}
.approved {
  gap: 4px;
  color: var(--accent);
}
.approved .icon {
  height: 13px;
  width: 13px;
}
.discussion {
  margin-top: 27px;
}
.comments {
  margin: 14px 0;
}
.comment {
  border-top: 1px solid var(--line);
  padding: 13px 0;
  min-width: 0;
}
.comment.reply {
  margin-left: clamp(12px, 2vw, 27px);
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.comment-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.avatar {
  width: 23px;
  height: 23px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #443f50;
  color: #e8ddff;
  font: 11px var(--mono);
}
.avatar.owner {
  background: #34422e;
  color: var(--accent);
}
.comment-head strong {
  font-size: 13px;
}
.thread-time {
  font-size: 11px;
}
.timestamp,
.reply-button {
  font: 11px var(--mono);
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel2);
  color: var(--accent);
}
.comment-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.5;
  margin: 7px 0 5px;
}
.reply-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  color: var(--muted);
  padding: 2px 0;
  border: 0;
}
.reply-button .icon {
  width: 12px;
  height: 12px;
}
.empty-comments {
  padding: 12px 0;
  color: var(--muted);
  font-size: 13px;
}
.composer,
.login-form {
  display: grid;
  gap: 11px;
}
.composer textarea {
  width: 100%;
  background: var(--page);
  min-height: 67px;
}
.composer-actions,
.reply-target {
  justify-content: space-between;
  gap: 10px;
}
.time-chip {
  font: 11px var(--mono);
  background: transparent;
  color: var(--muted);
}
.time-chip[aria-pressed="true"] {
  border-color: #5d7651;
  color: var(--accent);
  background: var(--accent-soft);
}
.time-chip .icon {
  width: 14px;
  height: 14px;
}
.reply-target {
  font-size: 12px;
  color: var(--accent);
}
.empty-panel {
  padding: 30px 0;
  color: var(--muted);
}
.activity-page {
  max-width: 1080px;
}
.activity-feed {
  border-top: 1px solid var(--line);
}
.event {
  display: flex;
  align-items: start;
  border-bottom: 1px solid var(--line);
  gap: 13px;
  padding: 17px 0;
}
.event .avatar {
  width: 31px;
  height: 31px;
}
.event-body {
  flex: 1;
  min-width: 0;
}
.event-body strong {
  font-size: 14px;
}
.event-body p,
.event-body button {
  font-size: 14px;
  line-height: 1.45;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.event-body button {
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 0;
}
.event-body button:hover {
  color: var(--accent);
  text-decoration: underline;
}
.event time {
  white-space: nowrap;
  color: var(--muted);
  font: 11px var(--mono);
}
dialog {
  max-width: min(460px, calc(100vw - 32px));
  width: 100%;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 23px;
  box-shadow: 0 20px 90px #0007;
}
dialog::backdrop {
  background: #090b0dcc;
}
dialog form {
  display: grid;
  gap: 15px;
}
.dialog-head {
  justify-content: space-between;
}
.dialog-head h2 {
  font-size: 24px;
}
.dialog-actions {
  justify-content: flex-end;
  gap: 9px;
}
.login-form label,
dialog label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
dialog .field-hint {
  margin-top: -10px;
  font-size: 12px;
}
dialog progress {
  width: 100%;
  accent-color: var(--accent);
}
#upload-progress {
  color: var(--muted);
  font: 11px var(--mono);
}
.form-error {
  color: var(--danger);
  font-size: 13px;
  line-height: 1.45;
}
#media-error {
  margin: 8px 0;
}
.login-shell {
  max-width: 1100px;
  min-height: min(660px, 90dvh);
  margin: 5vh auto;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
}
.login-brand {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: space-between;
  padding: 36px;
  background: #0e1115;
  overflow: hidden;
}
.login-brand .mask {
  z-index: -1;
  position: absolute;
  inset: 5% -5% -2% 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.4);
  opacity: 0.88;
}
.login-brand::after {
  position: absolute;
  content: "";
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    #0e111570,
    transparent 30%,
    transparent 68%,
    #0e1115aa
  );
}
.login-imprint {
  font: 12px var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #e0e5df;
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 40px;
}
.login-form {
  width: min(318px, 100%);
  gap: 18px;
}
.login-form h1 {
  font-size: 38px;
  margin-bottom: 6px;
}
.login-mark {
  display: grid;
  place-items: center;
  border: 1px solid #536047;
  background: var(--accent-soft);
  color: var(--accent);
  height: 37px;
  width: 37px;
  border-radius: 6px;
}
.login-form .primary {
  justify-content: space-between;
  min-height: 40px;
}
.login-form input {
  background: #141719;
}
.login-form label {
  font-weight: 400;
}
.login-form .form-error {
  margin: 0;
}
#toast {
  position: fixed;
  z-index: 40;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 11px 17px;
  border: 1px solid #586246;
  border-radius: 6px;
  background: #232a1e;
  color: #ebf8df;
  font-size: 13px;
  box-shadow: 0 8px 25px #0005;
}
#toast.error {
  background: #342222;
  color: #ffe3df;
  border-color: #64413f;
}
@media (max-width: 850px) {
  .workspace-grid {
    grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.5fr);
    gap: 18px;
  }
  .review {
    padding: 17px;
  }
  .audio-panel {
    padding: 13px;
  }
  .track-row {
    gap: 3px;
  }
  .version-bar .field-name {
    display: none;
  }
  .bar-inner,
  .page {
    padding-inline: 20px;
  }
}
@media (max-width: 700px) {
  .workspace-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 0;
  }
  .rail-section + .rail-section {
    border: 0;
    margin: 0;
    padding: 0;
  }
  .review {
    margin-top: 8px;
  }
  .main-nav {
    gap: 15px;
  }
  .bar-inner {
    gap: 20px;
    min-height: 58px;
  }
  .nav-item .icon {
    display: none;
  }
  .page {
    padding-top: 23px;
  }
  .page-title {
    margin-bottom: 22px;
  }
  .login-shell {
    margin: 18px;
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .login-brand {
    min-height: 160px;
    padding: 20px 26px;
  }
  .login-brand .mask {
    inset: -55% 0 auto 25%;
    width: 75%;
    height: 225%;
    object-fit: contain;
  }
  .login-panel {
    padding: 30px 25px 36px;
  }
  .login-form {
    width: min(380px, 100%);
  }
  .login-imprint {
    font-size: 10px;
  }
}
@media (max-width: 480px) {
  .bar-inner,
  .page {
    padding-inline: 13px;
  }
  .bar-inner {
    gap: 12px;
  }
  .wordmark {
    font-size: 18px;
    gap: 4px;
  }
  .wordmark img {
    width: 25px;
    height: 25px;
  }
  .main-nav {
    gap: 12px;
  }
  .nav-item,
  .account {
    font-size: 12px;
  }
  .account {
    gap: 2px;
  }
  .rail {
    grid-template-columns: minmax(0, 1fr);
  }
  .rail-section + .rail-section {
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .queue {
    min-height: 52px;
  }
  .queue-empty {
    min-height: 52px;
  }
  .queue-empty .icon {
    display: none;
  }
  .track-row {
    min-height: 45px;
  }
  .page-title {
    align-items: center;
  }
  .sync {
    font-size: 10px;
    padding: 0;
  }
  .review {
    padding: 13px;
  }
  .version-bar {
    gap: 8px;
  }
  .track-heading h2 {
    font-size: 26px;
  }
  .review-heading {
    gap: 7px;
  }
  .audio-panel {
    padding: 10px;
  }
  .transport {
    gap: 9px;
  }
  .play {
    width: 37px;
    height: 37px;
  }
  .wavebox {
    height: 50px;
  }
  .activity-feed time {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.download-original {
  color: var(--muted);
  font:
    12px Studio,
    Arial,
    sans-serif;
  text-underline-offset: 3px;
}
.download-original:hover {
  color: var(--ink);
}
.cursor {
  left: clamp(1px, var(--position, 0%), calc(100% - 1px));
}
.playhead-time {
  pointer-events: none;
  position: absolute;
  top: 1px;
  left: clamp(0px, calc(var(--position, 0%) - 2.5ch), calc(100% - 5ch));
  width: 5ch;
  background: var(--accent);
  color: #1b2613;
  border-radius: 2px;
  font: 10px/1.4 var(--mono);
  text-align: center;
}
.event-body p,
.event-body button {
  display: block;
}
