@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&display=swap");
:root {
  --paper: #eeefe8;
  --ink: #272a26;
  --muted: #777b71;
  --orange: #f16a36;
  --line: #ced1c6;
  --mono: "DM Mono", monospace;
  --sans: "DM Sans", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
[role="slider"]:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}
header {
  height: 100px;
  margin: 0 4.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
a {
  color: inherit;
}
.brand {
  text-decoration: none;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -1.5px;
}
.brand span {
  color: var(--orange);
  margin: 0 5px;
}
.top-note,
.eyebrow {
  font: 12px var(--mono);
  letter-spacing: 1.8px;
}
.text-button {
  border: 0;
  background: none;
  color: inherit;
  font-size: 14px;
  padding: 6px 0;
}
.text-button span {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin-left: 12px;
}
main {
  max-width: 1600px;
  margin: 50px auto 24px;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 440px minmax(280px, 1fr);
  gap: clamp(22px, 4vw, 70px);
  padding: 0 4.5%;
  align-items: start;
}
.intro {
  padding-top: 30px;
}
h1 {
  font-size: clamp(36px, 3.8vw, 60px);
  line-height: 1.03;
  letter-spacing: -2.5px;
  font-weight: 500;
  margin: 28px 0 24px;
}
.intro > p {
  line-height: 1.65;
  color: #72766c;
  font-size: 17px;
}
.intro-actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 12px;
}
.primary {
  background: var(--orange);
  border: 0;
  color: #231e19;
  border-radius: 4px;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 15px;
}
.primary span {
  margin-left: 24px;
}
.intro-actions > span {
  font-size: 12px;
  color: var(--muted);
}
.quickstart {
  margin-top: 54px;
}
.quickstart b {
  font: 12px var(--mono);
  letter-spacing: 1.5px;
}
.quickstart p {
  font-size: 14px;
  color: #656a60;
  margin: 17px 0;
}
kbd {
  font: 11px var(--mono);
  background: #e2e4db;
  border: 1px solid #cdd0c3;
  box-shadow: 0 1px #c3c6b8;
  border-radius: 3px;
  padding: 4px 6px;
  color: #484f42;
  display: inline-block;
  margin-right: 7px;
}
.quickstart .text-button {
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.session-note {
  margin-top: 48px;
  font: 12px var(--mono);
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
}
.tiny-light {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7c9561;
}
.instrument-wrap {
  width: 440px;
}
.device {
  background: #292c29;
  border: 1px solid #454841;
  border-radius: 16px;
  padding: 26px 29px 28px;
  position: relative;
  color: #dce0d2;
  box-shadow:
    0 22px 36px -15px #262b295c,
    0 2px 3px #121c1955,
    inset 0 0 0 5px #242724,
    inset 0 1px #62665b;
  background-image: radial-gradient(#ffffff05 0.6px, transparent 0.7px);
  background-size: 3px 3px;
}
.device-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 5px 0 23px;
}
.device-top strong {
  font-size: 22px;
  letter-spacing: -0.8px;
}
.device-top small {
  display: block;
  font: 9px var(--mono);
  letter-spacing: 1.3px;
  color: #9a9f90;
  margin-top: 6px;
}
.mic-grille {
  display: grid;
  grid-template-columns: repeat(3, 3px);
  gap: 4px;
  margin-right: 7px;
}
.mic-grille i {
  height: 3px;
  background: #141713;
  border-radius: 50%;
  box-shadow: 0 1px #54594c;
}
.screw {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #141713;
  box-shadow:
    inset 0 1px 2px #050a05,
    0 1px #53584e;
}
.screw:after {
  content: "";
  position: absolute;
  top: 3px;
  left: 1px;
  width: 4px;
  border-top: 1px solid #5a6150;
  transform: rotate(45deg);
}
.tl {
  top: 12px;
  left: 12px;
}
.tr {
  top: 12px;
  right: 12px;
}
.bl {
  bottom: 12px;
  left: 12px;
}
.br {
  bottom: 12px;
  right: 12px;
}
.screen {
  background: #bdd39b;
  border: 6px solid #191e19;
  outline: 1px solid #4a5141;
  border-radius: 6px;
  color: #344a27;
  padding: 13px 12px 10px;
  box-shadow: inset 0 3px 8px #43512c44;
  font-family: var(--mono);
  position: relative;
  overflow: hidden;
}
.screen:after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(transparent 0 2px, #53693708 2px 3px);
  pointer-events: none;
}
.screen-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  border-bottom: 1px solid #6e885150;
  padding-bottom: 9px;
}
.screen-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  height: 94px;
}
.screen-caption {
  display: block;
  font-size: 9px;
}
.screen-main strong {
  font-size: 39px;
  font-weight: 500;
  line-height: 1.2;
}
.screen-main canvas {
  width: 180px;
  height: 76px;
  image-rendering: pixelated;
}
.screen-bottom {
  font-size: 9px;
  display: flex;
  justify-content: space-between;
  gap: 5px;
}
.screen-steps {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 4px;
  margin-top: 12px;
}
.screen-steps i {
  height: 7px;
  border: 1px solid #70845166;
}
.screen-steps i.on {
  background: #809a60;
}
.screen-steps i.current {
  background: #344a27;
}
.knobs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 10px 23px;
}
.knob-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 74px;
}
.knob {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 3px solid #141a14;
  box-shadow:
    0 4px 5px #090e09,
    0 0 0 1px #535b4a,
    inset 0 1px 2px #656b5f;
  background: repeating-conic-gradient(#343b32 0deg 3deg, #2a3028 3deg 6deg);
  position: relative;
  cursor: ns-resize;
  touch-action: none;
}
.knob i {
  height: 17px;
  width: 3px;
  background: #e3e7d6;
  position: absolute;
  top: 4px;
  left: 27px;
  transform-origin: 1.5px 25px;
  transform: rotate(0deg);
}
.knob-unit span {
  font: 11px var(--mono);
  color: #b3bba6;
}
.knob-unit span b {
  font-weight: 400;
  font-size: 9px;
  margin-left: 7px;
  color: #919b83;
}
.knob-unit output {
  font: 10px var(--mono);
  color: #7f8b73;
}
.knob-center {
  font: 9px var(--mono);
  color: #a1aa93;
  text-align: center;
  line-height: 1.8;
}
.knob-center small {
  display: block;
  font-size: 8px;
  color: #737e67;
}
.control-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.control-row button {
  height: 45px;
  background: #3a4037;
  border: 1px solid #505748;
  border-bottom: 3px solid #171e16;
  border-radius: 5px;
  box-shadow: 0 2px 3px #141a12;
  color: #d2dac5;
  font: 12px var(--mono);
  text-align: left;
  padding: 8px 8px 5px;
  position: relative;
  touch-action: none;
  user-select: none;
}
.control-row button span {
  font-size: 7px;
  color: #8e9b7b;
  display: block;
  margin-top: 4px;
}
.control-row button.held,
.control-row button.active {
  background: #697b50;
  color: #eff4e5;
  transform: translateY(1px);
  border-bottom-width: 2px;
}
.pad-area {
  position: relative;
  margin: 20px 0;
}
.pads {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.pad {
  height: 62px;
  position: relative;
  background: linear-gradient(#464b42, #373d33);
  border: 1px solid #555e4a;
  border-bottom: 4px solid #172012;
  border-radius: 5px;
  box-shadow: 0 3px 3px #141d1055;
  color: #c9d1bd;
  font: 14px var(--mono);
  padding: 9px;
  text-align: left;
  touch-action: none;
  user-select: none;
}
.pad .led {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #232d1b;
  box-shadow: 0 0 0 1px #171d13;
}
.pad.on .led {
  background: #f47d42;
  box-shadow: 0 0 7px #f47d4288;
}
.pad.current {
  outline: 1px solid var(--orange);
}
.pad:active,
.pad.pressed {
  background: #535f45;
  transform: translateY(2px);
  border-bottom-width: 2px;
}
.pad-label {
  display: block;
  font-size: 8px;
  color: #9fa98f;
  margin-top: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pad-annotations {
  position: absolute;
  right: -22px;
  top: 17px;
  bottom: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font: 7px var(--mono);
  color: #6e7d5e;
  writing-mode: vertical-rl;
}
.bottom {
  margin-top: 23px;
}
.bottom .play {
  background: #ec6b39;
  color: #252b20;
  border-color: #f58a5e;
  border-bottom-color: #883b1e;
}
.bottom .play span {
  color: #88432b;
}
.bottom .play.active {
  background: #f38658;
}
.record i {
  display: inline-block;
  background: #ea7548;
  border-radius: 50%;
  height: 5px;
  width: 5px;
  margin-right: 4px;
}
.record.active {
  background: #853c27 !important;
}
.device-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 8px var(--mono);
  letter-spacing: 1px;
  color: #78856c;
  margin-top: 23px;
}
.device-footer button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  padding: 0;
}
.device-caption {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 9px var(--mono);
  color: #787e70;
}
.device-caption button {
  font-size: 11px;
}
.workspace {
  padding-top: 30px;
  min-width: 0;
}
.workspace-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.workspace-head > span {
  font-size: 22px;
  letter-spacing: -0.7px;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 24px;
  margin: 25px 0 18px;
}
.tabs button {
  border: 0;
  background: none;
  padding: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs button[aria-selected="true"] {
  border-bottom-color: var(--orange);
  color: var(--ink);
}
.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 11px var(--mono);
  color: var(--muted);
  margin: 18px 0 12px;
}
.sound-list {
  display: flex;
  flex-direction: column;
  max-height: 340px;
  overflow: auto;
  scrollbar-width: thin;
}
.sound-item {
  border: 0;
  border-bottom: 1px solid #d5d8cc;
  background: none;
  display: flex;
  align-items: center;
  padding: 10px 7px;
  text-align: left;
  gap: 12px;
  min-height: 42px;
}
.sound-item.selected {
  background: #e1e5d6;
  border-left: 2px solid var(--orange);
  padding-left: 5px;
}
.sound-item .num {
  font: 11px var(--mono);
  color: #8c9282;
}
.sound-item .name {
  font-size: 14px;
  flex: 1;
}
.sound-item .duration {
  font: 10px var(--mono);
  color: #8d947f;
}
.mini-wave {
  display: flex;
  align-items: center;
  height: 17px;
  gap: 2px;
}
.mini-wave i {
  width: 2px;
  background: #8d9b76;
}
.panel-buttons {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.secondary {
  border: 1px solid #bfc5b6;
  border-radius: 4px;
  background: transparent;
  color: #4d5643;
  font-size: 12px;
  padding: 10px 12px;
}
.secondary:hover {
  background: #e0e5d5;
}
.secondary.orange {
  background: var(--orange);
  border-color: var(--orange);
  color: #211c15;
}
.helper {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.voice-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.voice-tags button {
  border: 1px solid var(--line);
  background: none;
  border-radius: 3px;
  font-size: 11px;
  padding: 6px 8px;
  color: #737b68;
}
.voice-tags button.selected {
  background: #34452d;
  color: #e1edcc;
  border-color: #34452d;
}
.panel-section {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 6px;
}
.input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 14px 0;
  font-size: 13px;
}
.input-row input[type="range"] {
  width: 130px;
  accent-color: var(--orange);
}
.input-row input[type="number"],
.input-row input[type="time"],
select,
.name-input {
  border: 1px solid var(--line);
  padding: 7px;
  background: #f5f6ef;
  color: var(--ink);
  border-radius: 3px;
  width: 110px;
  font-size: 13px;
}
.name-input {
  width: 100%;
}
.pattern-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.pattern-grid button {
  border: 1px solid var(--line);
  background: transparent;
  padding: 10px;
  font: 12px var(--mono);
  border-radius: 3px;
  color: #7c8472;
}
.pattern-grid button.has {
  background: #e0e5d4;
}
.pattern-grid button.selected {
  border-color: var(--orange);
  color: #292e23;
}
.chain {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  min-height: 30px;
  margin: 10px 0;
}
.chain span {
  font: 11px var(--mono);
  background: #dce2cf;
  padding: 6px;
  border-radius: 3px;
}
.chain span.playing {
  background: var(--orange);
  color: #242821;
}
.step-editor {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
  margin: 12px 0;
}
.step-editor button {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font: 10px var(--mono);
  background: none;
}
.step-editor button.on {
  background: #405435;
  color: #e5ecd9;
}
.step-editor button.current {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
}
.step-detail {
  background: #e3e7da;
  border-radius: 4px;
  padding: 10px;
  font-size: 12px;
}
.page-footer {
  margin: 46px 4.5% 24px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: #8a9180;
  font: 10px var(--mono);
  letter-spacing: 1px;
}
.page-footer button {
  font: 11px var(--mono);
  letter-spacing: 0;
}
dialog {
  max-width: 750px;
  width: calc(100% - 32px);
  border: 1px solid #bfc6b4;
  background: var(--paper);
  border-radius: 10px;
  padding: 30px;
  color: var(--ink);
  max-height: 85vh;
  overflow: auto;
  box-shadow: 0 20px 80px #0005;
}
dialog::backdrop {
  background: #20291aaa;
  backdrop-filter: blur(4px);
}
.dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}
.dialog-head h2 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 10px 0 20px;
}
.close {
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 24px;
  width: 34px;
  height: 34px;
  line-height: 1;
}
.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.guide-table td {
  padding: 12px 6px;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}
.guide-table td:first-child {
  width: 48%;
  font-family: var(--mono);
  font-size: 12px;
}
.guide-section {
  margin: 24px 0 10px;
  font-size: 15px;
}
.keymap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  width: 180px;
  margin: 15px 0;
}
.keymap kbd {
  text-align: center;
  margin: 0;
}
.guide-table + p,
dialog p {
  font-size: 14px;
  line-height: 1.7;
  color: #656f5a;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #263021;
  color: #edf1e8;
  font: 13px var(--mono);
  padding: 13px 20px;
  border-radius: 5px;
  box-shadow: 0 5px 15px #0002;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 30;
  max-width: 90%;
  text-align: center;
}
#toast.show {
  opacity: 1;
}
.receive-active {
  color: var(--orange);
}
.session-stats {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}
.session-stats span {
  flex: 1;
  border: 1px solid var(--line);
  padding: 12px;
  font: 11px var(--mono);
  color: var(--muted);
}
.session-stats b {
  display: block;
  font-size: 23px;
  color: var(--ink);
  margin-bottom: 5px;
}
.progress {
  height: 3px;
  background: #d4dcc8;
  margin: 14px 0;
}
.progress i {
  display: block;
  background: var(--orange);
  height: 3px;
}
.danger {
  color: #9d4931 !important;
}
details {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 15px;
}
details summary {
  cursor: pointer;
  font-size: 13px;
}
.locked .device {
  border-color: #8d9b75;
}
.offline {
  opacity: 0.55;
}
.knob:focus-visible {
  outline-offset: 6px;
}
.range-label {
  font: 10px var(--mono);
}
@media (min-width: 1550px) {
  main {
    gap: 90px;
  }
  .intro {
    padding-right: 10px;
  }
}
@media (max-width: 1160px) {
  main {
    grid-template-columns: minmax(230px, 1fr) 420px;
    gap: 50px;
  }
  .instrument-wrap {
    width: 420px;
  }
  .workspace {
    grid-column: 1/-1;
    display: block;
    max-width: 820px;
    width: 100%;
    margin: auto;
    padding-top: 18px;
  }
  #workspaceContent .sound-list {
    max-height: 250px;
  }
  .intro {
    padding-top: 25px;
  }
  .page-footer {
    margin-top: 35px;
  }
}
@media (max-width: 720px) {
  header {
    height: 76px;
    margin: 0 20px;
  }
  .top-note {
    display: none;
  }
  main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px;
    margin-top: 26px;
    gap: 30px;
  }
  .intro {
    width: 100%;
    padding-top: 0;
  }
  .intro .eyebrow {
    font-size: 10px;
  }
  h1 {
    font-size: 35px;
    letter-spacing: -1.5px;
    margin: 15px 0;
  }
  h1 br {
    display: none;
  }
  .intro > p {
    font-size: 14px;
    margin: 10px 0;
  }
  .intro > p br {
    display: none;
  }
  .intro-actions {
    margin: 15px 0;
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }
  .intro-actions > span {
    max-width: 150px;
  }
  .quickstart,
  .session-note {
    display: none;
  }
  .instrument-wrap {
    max-width: 440px;
    width: 100%;
  }
  .device {
    padding: 25px 25px;
  }
  .workspace {
    width: 100%;
    max-width: 440px;
    padding-top: 0;
  }
  .page-footer {
    margin: 30px 16px;
    font-size: 8px;
    gap: 10px;
  }
  .device-caption {
    font-size: 8px;
  }
  .screen-main canvas {
    width: calc(100% - 90px);
  }
  .control-row {
    gap: 8px;
  }
  .pads {
    gap: 10px;
  }
  .pad {
    height: 59px;
  }
  .screen-main {
    height: 84px;
  }
  .knobs {
    margin-left: 6px;
    margin-right: 6px;
  }
  .device-top small {
    font-size: 8px;
  }
  .guide-table td:first-child {
    width: 45%;
  }
  .guide-table td {
    font-size: 12px;
  }
  .guide-table td:first-child {
    font-size: 10px;
  }
  dialog {
    padding: 20px;
  }
  .panel-buttons .secondary {
    flex: 1;
  }
  .device-footer {
    font-size: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
.download-link {
  display: block;
  font-size: 12px;
  margin: 12px 0;
  color: #526741;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.output-controls {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid #373c3a;
  border-radius: 14px;
}
.output-controls label {
  display: flex;
  justify-content: space-between;
  font:
    12px "DM Mono",
    monospace;
  margin: 8px 0;
}
.output-controls input {
  width: 100%;
  accent-color: #f88b54;
  cursor: pointer;
}
.output-controls p {
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.65;
  margin: 12px 0 0;
}

/* Clear polycarbonate shell over a visible illustrated circuit board. */
.device {
  background: linear-gradient(125deg, #c2e1db32, #77a69b12 40%, #d9efea28);
  border: 1px solid #b2d5cb99;
  overflow: hidden;
  box-shadow:
    0 25px 45px #102c3c33,
    inset 0 0 0 5px #d0ebe529,
    inset 0 1px 2px #ffffff88;
}
.circuit-board {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.92;
}
.device > :not(.circuit-board) {
  position: relative;
  z-index: 1;
}
.device > .screw {
  position: absolute;
}
.device-top {
  text-shadow: 0 1px 3px #001a1e;
}
.control-row button {
  background: #203b39d9;
  border-color: #c0e0d455;
  backdrop-filter: blur(3px);
}
.pad {
  background: #183432d9;
  border-color: #c0e0d459;
  backdrop-filter: blur(2px);
}
.device-footer {
  background: #12322d9e;
  padding: 8px;
  border-radius: 8px;
}
#fxBank {
  width: 100%;
  margin: 8px 0;
}
