@font-face {
  font-family: DM;
  src: url(fonts/dm-sans.woff2);
  font-weight: 100 1000;
}
@font-face {
  font-family: Plex;
  src: url(fonts/plex-mono.woff2);
}
* {
  box-sizing: border-box;
}
html {
  color-scheme: dark;
}
body {
  margin: 0;
  background: #101514;
  color: #e7eeea;
  font:
    16px DM,
    sans-serif;
  --mint: #b1edcf;
  --line: #303a36;
  --muted: #a2afa8;
}
button,
select,
input {
  font: inherit;
}
button,
select,
input[type="range"] {
  cursor: pointer;
}
button {
  color: inherit;
}
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}
button:hover {
  filter: brightness(1.14);
}
.wrap {
  width: min(1440px, 94%);
  margin: auto;
}
header {
  border-bottom: 1px solid var(--line);
}
.nav,
.brand,
.heading,
.kicker,
.quiet,
.import,
.panelhead,
.trackrow,
.playrow,
.status,
.caption,
.viewtag {
  display: flex;
  align-items: center;
}
.nav {
  height: 69px;
  gap: 18px;
}
.brand {
  gap: 11px;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -1.2px;
}
.brand img {
  width: 34px;
  height: 34px;
}
.navline {
  height: 20px;
  border-left: 1px solid var(--line);
}
.mono,
.sectionlabel,
.kicker,
footer,
.viewtag,
.caption,
.swatch {
  font-family: Plex, monospace;
}
.descriptor,
.quiet {
  color: var(--muted);
}
.descriptor {
  font-size: 12px;
}
.quiet,
.over,
.play,
.import {
  border: 0;
  justify-content: center;
}
.quiet {
  background: transparent;
  gap: 8px;
  padding: 8px;
  font-size: 14px;
}
.notes,
.panelhead .quiet,
.trackrow > .quiet {
  margin-left: auto;
}
i {
  display: inline-flex;
}
i svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.heading {
  justify-content: space-between;
  padding: 32px 0 24px;
}
.kicker,
.sectionlabel,
.viewtag {
  font-size: 11px;
  letter-spacing: 1.6px;
}
.kicker {
  gap: 10px;
  color: var(--mint);
}
.kicker span {
  width: 18px;
  height: 1px;
  background: currentColor;
}
h1 {
  font-size: clamp(34px, 3.6vw, 56px);
  letter-spacing: -0.055em;
  line-height: 1.12;
  margin: 6px 0 0;
  font-weight: 510;
}
.import,
.play {
  display: flex;
  align-items: center;
  background: var(--mint);
  color: #152a20;
  border-radius: 6px;
}
.import {
  gap: 9px;
  font-weight: 650;
  padding: 12px 18px;
}
.studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 295px;
  gap: 16px;
}
.workspace,
aside {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #19201d;
  overflow: hidden;
}
.workspace {
  display: flex;
  flex-direction: column;
}
.viewport {
  position: relative;
  flex: 1;
  min-height: 415px;
  isolation: isolate;
  background: #0a211e;
}
.viewport canvas,
.drop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.viewport:fullscreen,
.viewport.expanded {
  width: 100vw;
  height: 100dvh;
}
.expanded {
  position: fixed;
  inset: 0;
  z-index: 5;
}
.viewtag,
.over,
.caption {
  position: absolute;
  color: #dcf4e9;
  text-shadow: 0 1px 4px #000;
}
.viewtag,
.over {
  top: 16px;
  background: #11221de0;
  border: 1px solid #718c7e55;
  border-radius: 4px;
}
.viewtag {
  left: 16px;
  gap: 8px;
  padding: 7px 9px;
  font-size: 10px;
  letter-spacing: 1.1px;
}
.viewtag b,
.status b {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #a0e8bd;
}
.over {
  right: 16px;
  display: grid;
  place-items: center;
  padding: 6px;
}
.caption {
  bottom: 16px;
  font-size: 12px;
  left: 18px;
}
.drop {
  background: #132b23ed;
  display: none;
  place-items: center;
  font-size: 22px;
  border: 2px dashed var(--mint);
}
body.drag .drop {
  display: grid;
}
.transport {
  border-top: 1px solid var(--line);
  padding: 16px 20px 18px;
}
.disc {
  width: 38px;
  height: 38px;
  border: 1px solid #436052;
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: var(--mint);
  background: repeating-linear-gradient(135deg, #314e40 0 1px, #263a2f 1px 4px);
}
.trackrow,
.playrow {
  gap: 12px;
}
.track {
  min-width: 0;
}
.track strong,
.track small {
  display: block;
}
.track strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 550;
}
.track small {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 2px;
}
.playrow {
  margin-top: 13px;
}
.play {
  width: 37px;
  height: 34px;
  flex: none;
}
.timeline {
  height: 32px;
  position: relative;
  flex: 1;
}
.timeline canvas,
.timeline input {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  margin: 0;
}
.timeline input {
  opacity: 0;
}
.timeline:focus-within {
  outline: 1px solid var(--mint);
}
.times {
  font-size: 11px;
  color: var(--muted);
}
#now {
  color: var(--mint);
}
aside {
  padding: 0 20px;
}
.panelhead {
  height: 56px;
  gap: 10px;
}
.panelhead > i {
  color: var(--mint);
}
h2 {
  font-size: 18px;
  font-weight: 550;
  letter-spacing: -0.6px;
}
.group {
  padding: 19px 0;
  border-top: 1px solid var(--line);
}
.sectionlabel {
  display: block;
  color: #95a69c;
  font-size: 10px;
  margin-bottom: 14px;
}
.group select {
  width: 100%;
  border: 1px solid #45564d;
  border-radius: 5px;
  background: #242e28;
  color: inherit;
  padding: 9px 12px;
}
.row {
  margin-top: 14px;
}
.row label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
.row output {
  font: 12px Plex;
  color: var(--mint);
}
.row input {
  width: 100%;
  margin: 8px 0 0;
  appearance: none;
  background: linear-gradient(
    to right,
    #9fd6b9 var(--fill),
    #3c4a42 var(--fill)
  );
  height: 3px;
  display: block;
  border-radius: 2px;
}
.row input::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mint);
  border: 2px solid #1a2920;
  box-shadow: 0 0 0 1px var(--mint);
}
.row input::-moz-range-thumb {
  background: var(--mint);
  border-radius: 50%;
}
.row + .row {
  margin-top: 21px;
}
.swatches {
  display: flex;
  gap: 7px;
}
.swatch {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 1px solid transparent;
  padding: 4px;
  border-radius: 4px;
  font-size: 10px;
  color: var(--muted);
}
.swatch b {
  display: block;
  border-radius: 2px;
  height: 17px;
  margin-bottom: 5px;
}
.swatch[aria-pressed="true"] {
  border-color: #92bfa5;
  color: #dcf2e4;
}
.meter {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 11px Plex;
  color: var(--muted);
  margin-top: 8px;
}
.meter span {
  width: 30px;
}
.bar {
  height: 6px;
  flex: 1;
  background:
    repeating-linear-gradient(to right, transparent 0 5px, #19201d 5px 7px),
    linear-gradient(to right, #96d4b3 var(--level), #34423a var(--level));
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 15px 0 30px;
  color: #8f9c94;
  font-size: 10px;
  letter-spacing: 1px;
}
.status {
  gap: 7px;
  letter-spacing: 0.2px;
  font-size: 12px;
}
dialog {
  background: #1a241e;
  color: inherit;
  border: 1px solid #556b5d;
  border-radius: 10px;
  max-width: min(450px, 90%);
  padding: 26px;
}
dialog form {
  float: right;
}
dialog h2 {
  font-size: 28px;
}
dialog p {
  color: #c2cdc5;
  line-height: 1.6;
}
dialog::backdrop {
  background: #050c09be;
}
@media (min-width: 1550px) {
  .viewport {
    min-height: 540px;
  }
}
@media (max-width: 880px) {
  .studio {
    grid-template-columns: minmax(0, 1fr) 245px;
  }
  aside {
    padding: 0 15px;
  }
}
@media (max-width: 700px) {
  .wrap {
    width: 92%;
  }
  .studio {
    grid-template-columns: 1fr;
  }
  .viewport {
    min-height: clamp(300px, 66vw, 430px);
  }
  .nav {
    height: 59px;
    gap: 10px;
  }
  .descriptor,
  .navline,
  footer > span:last-child {
    display: none;
  }
  .heading {
    padding: 24px 0 18px;
  }
  .import {
    font-size: 14px;
    padding: 10px;
  }
  .transport {
    padding: 13px;
  }
  .group {
    padding: 15px 0;
  }
  aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
  }
  .panelhead {
    grid-column: 1/-1;
  }
  .group:nth-child(3) {
    grid-column: 2;
    grid-row: 2/4;
  }
  .signal {
    grid-column: 1/-1;
  }
  .row + .row {
    margin-top: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}
