:root {
  --navy: #0e1a2e;
  --panel: #13233d;
  --line: #25395c;
  --gold: #e8c96a;
  --teal: #2e9bad;
  --paper: #f6f4ef;
  --muted: #9fb0c8;
  color-scheme: dark;
  font-family: 'Barlow Condensed', Arial, sans-serif;
  color: var(--paper);
  background: var(--navy);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background-image: repeating-linear-gradient(
    135deg,
    #f6f4ef05 0 2px,
    transparent 2px 52px
  );
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 28px max(16px, env(safe-area-inset-right)) 48px;
}
a {
  color: var(--gold);
}
header {
  margin-bottom: 28px;
  border-bottom: 6px solid var(--teal);
  padding-bottom: 22px;
}
h1,
h2,
summary,
button,
.eyebrow {
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
}
h1 {
  font-size: clamp(48px, 8vw, 84px);
  line-height: 0.95;
  margin: 8px 0;
  font-weight: 900;
}
h2 {
  font-size: 27px;
  margin: 4px 0 18px;
  text-transform: uppercase;
}
.eyebrow {
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 13px;
}
header p {
  color: var(--muted);
}
.layout {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 20px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  min-width: 0;
}
.studio {
  display: grid;
  gap: 20px;
  min-width: 0;
}
aside {
  align-self: start;
  max-height: 1050px;
  overflow: auto;
}
.presets {
  display: grid;
  gap: 7px;
  margin: 16px 0;
  max-height: 640px;
  overflow: auto;
}
.presets button {
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.presets small {
  color: var(--muted);
  font:
    12px 'Barlow Condensed',
    Arial,
    sans-serif;
}
.presets button[aria-pressed='true'],
button.selected {
  border-color: var(--gold);
  background: #263953;
  color: var(--gold);
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0;
}
input,
select {
  font: inherit;
  width: 100%;
  padding: 10px;
  background: var(--navy);
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 42px;
}
input[type='range'] {
  padding: 0;
  accent-color: var(--gold);
}
input[type='checkbox'] {
  width: 20px;
  min-height: 20px;
  accent-color: var(--gold);
}
.check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
button {
  background: #182b49;
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  min-height: 44px;
  padding: 10px 15px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}
button:hover {
  border-color: var(--teal);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
.actions,
.transport,
.heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.heading {
  justify-content: space-between;
}
.heading h2 {
  margin-bottom: 5px;
}
#seed {
  font-size: 12px;
  color: var(--muted);
}
.wave-wrap {
  height: 190px;
  background: #091424;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
}
#playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
  left: 0;
  display: none;
}
output {
  font-size: 13px;
  color: var(--muted);
}
.quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.quick label {
  color: var(--paper);
  font-size: 15px;
}
.quick output {
  color: var(--gold);
}
.note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
summary {
  font-size: 25px;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
}
.timeline-scroll {
  overflow-x: auto;
}
#timeline {
  min-width: 100%;
  position: relative;
}
#ruler {
  height: 27px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.track {
  height: 72px;
  background: #091424;
  border: 1px solid var(--line);
  margin: 5px 0;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.track.selected {
  border-color: var(--gold);
}
.track.dim {
  opacity: 0.45;
}
.track canvas {
  position: absolute;
  top: 0;
  left: 0;
}
.track span {
  position: relative;
  z-index: 1;
  background: #0e1a2edb;
  padding: 3px 6px;
  font-size: 12px;
  pointer-events: none;
}
.editor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 18px;
}
.editor-grid .wide {
  grid-column: span 2;
}
.warning,
#status.error {
  color: #ffb1a3;
}
#status {
  position: sticky;
  bottom: 8px;
  padding: 12px 16px;
  background: #091424;
  border: 1px solid var(--line);
  border-radius: 6px;
  z-index: 3;
}
progress {
  width: 100%;
  accent-color: var(--teal);
}
footer {
  color: var(--muted);
  letter-spacing: 2px;
  font-size: 12px;
  margin-top: 28px;
}
.asset-note {
  overflow-wrap: anywhere;
}
.stem-link {
  color: var(--gold);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .quick,
  .editor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .panel {
    padding: 16px;
  }
}
@media (max-width: 650px) {
  .layout {
    grid-template-columns: 1fr;
  }
  aside {
    max-height: none;
  }
  .presets {
    max-height: 230px;
    grid-template-columns: 1fr 1fr;
  }
  .presets button {
    font-size: 16px;
  }
  .presets small {
    display: none;
  }
  .wave-wrap {
    height: 150px;
  }
  .quick {
    gap: 12px;
  }
  .actions button {
    flex-grow: 1;
  }
  main {
    padding-top: 18px;
  }
  .editor-grid {
    gap: 10px;
  }
  button {
    min-height: 46px;
  }
}
:root .preset-group {
  font:
    700 14px 'Barlow Condensed',
    Arial,
    sans-serif;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 12px 0 2px;
  grid-column: 1/-1;
}
