/* PURPSE rack hardware. All measurements are local to a faceplate, not the viewport. */
.rack-device {
  --plate-ground: #16161b;
  --plate-edge: #343139;
  --plate-ink: #e9e8e8;
  --plate-muted: #bbb7c1;
  --stripe: color-mix(in srgb, var(--device-color) 45%, var(--plate-ground));
  --rail-width: 14px;
  position: relative;
  container: hardware / inline-size;
  isolation: isolate;
  box-sizing: border-box;
  min-width: 0;
  color: var(--plate-ink);
  background: linear-gradient(
    175deg,
    color-mix(in srgb, var(--plate-ground) 89%, #c8bdc5) -90%,
    var(--plate-ground) 66%,
    color-mix(in srgb, var(--plate-ground) 88%, #000)
  );
  border: 1px solid var(--plate-edge);
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 #ffffff0c,
    0 2px 3px #000b;
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
  line-height: 1.12;
  margin: 0;
  overflow: visible;
}
.rack-device *,
.rack-device *::before,
.rack-device *::after {
  box-sizing: border-box;
}
.rack-device::before,
.rack-device::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--rail-width);
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, #0002, #ffffff06 50%, #0003);
}
.rack-device::before {
  left: 0;
  border-right: 1px solid #ffffff0f;
}
.rack-device::after {
  right: 0;
  border-left: 1px solid #0007;
}
.rack-device[data-type="dnb"] {
  --plate-ground: #281019;
  --plate-edge: #693144;
  --plate-ink: #ffdeeb;
  --plate-muted: #efb6cb;
  --device-color: #ff79ad !important;
}
.rack-device[data-type="subtractor"] {
  --plate-ground: #11170f;
  --plate-edge: #3a4e30;
  --plate-ink: #f0f9df;
  --plate-muted: #c0cfac;
  --device-color: #c0ff5a !important;
}
.rack-device[data-type="orbit"] {
  --plate-ground: #201627;
  --plate-edge: #503961;
  --plate-ink: #f1e7ff;
  --plate-muted: #d1bddd;
  --device-color: #d79aff !important;
}
.rack-device[data-type="bass"] {
  --plate-ground: #132420;
  --plate-edge: #36584c;
  --plate-muted: #aacac0;
}
.rack-device.plate-mixer {
  --plate-ground: #222326;
  --plate-edge: #47494c;
  --plate-muted: #bdbfc2;
}
.rack-device .face-screw {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(145deg, #89888b, #373739 49%, #2d2c2e);
  box-shadow:
    0 1px 1px #000b,
    inset 0 1px 0 #ffffff29;
  pointer-events: none;
  z-index: 2;
}
.rack-device .face-screw::after {
  content: "";
  position: absolute;
  inset: 3px 1.4px 2.7px;
  background: #0c0c10;
  transform: rotate(-27deg);
  box-shadow: 0 0.6px 0 #c1c0c13d;
}
.rack-device .screw-tl,
.rack-device .screw-bl {
  left: 3px;
}
.rack-device .screw-tr,
.rack-device .screw-br {
  right: 3px;
}
.rack-device .screw-tl,
.rack-device .screw-tr {
  top: 8px;
}
.rack-device .screw-bl,
.rack-device .screw-br {
  bottom: 8px;
}
.rack-device .screw-tr::after,
.rack-device .screw-bl::after {
  transform: rotate(23deg);
}
.rack-device .face-hardware {
  display: flex;
  align-items: center;
  gap: clamp(13px, 2.25cqw, 30px);
  padding: 13px calc(var(--rail-width) + 13px);
  min-height: 92px;
  min-width: 0;
}
.rack-device .plate-name {
  position: relative;
  align-self: stretch;
  flex: 0 1 17%;
  min-width: 99px;
  max-width: 190px;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  gap: 8px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.rack-device .device-handle:active {
  cursor: grabbing;
}
.rack-device .name-ink {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 4px;
  min-width: 0;
}
.rack-device .face-name {
  font-size: clamp(17px, 2.7cqw, 31px);
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--device-color);
  overflow-wrap: normal;
}
.rack-device .face-subtitle {
  font-family: inherit;
  font-size: 9px;
  line-height: 1.28;
  font-weight: 550;
  letter-spacing: 0.035em;
  color: var(--plate-muted);
  max-width: 22ch;
}
.rack-device .silk-sign {
  width: 33px;
  height: 20px;
  display: block;
  color: var(--device-color);
  opacity: 0.87;
}
.rack-device[data-type="dnb"] .face-name {
  font-weight: 800;
  font-size: clamp(32px, 4.8cqw, 53px);
  letter-spacing: -0.04em;
  line-height: 0.86;
  font-style: italic;
}
.rack-device[data-type="dnb"] .face-hardware {
  min-height: 106px;
}
.rack-device[data-type="dnb"] .plate-name {
  justify-content: center;
  gap: 3px;
}
.rack-device[data-type="dnb"] .face-subtitle {
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 9px;
}
.rack-device[data-type="dnb"] .silk-sign {
  height: 12px;
  width: 25px;
}
.rack-device[data-type="subtractor"] .face-name {
  font-weight: 720;
  font-style: italic;
}
.rack-device[data-type="orbit"] .face-name {
  font-weight: 620;
}
.rack-device .face-pattern,
.rack-device .face-scope-block {
  flex: 1 1 32%;
  min-width: 70px;
}
.rack-device .face-pattern {
  flex-basis: 49%;
  min-width: 245px;
}
.rack-device .pattern-head {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 23px;
  margin: 0 0 6px;
}
.rack-device .panel-section-title,
.rack-device .step-count,
.rack-device .param-label,
.rack-device .socket-label {
  color: var(--plate-muted);
  font:
    650 9px/1.18 "Space Grotesk",
    "Helvetica Neue",
    sans-serif;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}
.rack-device .panel-section-title {
  display: block;
}
.rack-device .step-count {
  font-family: ui-monospace, monospace;
  font-size: 8px;
  letter-spacing: 0.025em;
  margin-left: auto;
  white-space: nowrap;
}
.rack-device button,
.rack-device summary,
.rack-device input {
  font: inherit;
  color: inherit;
}
.rack-device button {
  cursor: pointer;
  touch-action: manipulation;
}
.rack-device .face-action {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  min-width: 24px;
  height: 22px;
  color: var(--device-color);
  background: #110e13a8;
  border: 1px solid color-mix(in srgb, var(--device-color) 33%, transparent);
  border-radius: 3px;
}
.rack-device .face-icon {
  width: 14px;
  height: 14px;
  display: block;
}
.rack-device .face-action:hover {
  background: color-mix(in srgb, var(--device-color) 18%, #0c0c0e);
}
.rack-device .step-bank {
  display: grid;
  grid-template-columns: repeat(
    4,
    minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr)
  );
  gap: 3px;
}
.rack-device .step-pad {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  appearance: none;
  min-width: 0;
  text-align: center;
}
.rack-device .step-pad:nth-child(4n):not(:last-child) {
  margin-right: 4px;
}
.rack-device .pad-face {
  display: block;
  position: relative;
  height: 27px;
  border-radius: 3px;
  border: 1px solid #0008;
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--device-color) 19%, #211e23),
    color-mix(in srgb, var(--device-color) 13%, #161319)
  );
  box-shadow:
    inset 0 1px 0 #ffffff23,
    0 2px 1px #0009;
}
.rack-device .step-pad:nth-child(n + 5):nth-child(-n + 8) .pad-face,
.rack-device .step-pad:nth-child(n + 13) .pad-face {
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--device-color) 25%, #252126),
    color-mix(in srgb, var(--device-color) 16%, #1d181e)
  );
}
.rack-device .step-pad .pad-face i {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 4px;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 1px;
  background: color-mix(in srgb, var(--device-color) 36%, #271f28);
}
.rack-device .step-pad.active .pad-face {
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--device-color) 92%, white),
    color-mix(in srgb, var(--device-color) 78%, #9a456e)
  );
  border-color: #0006;
  box-shadow:
    inset 0 1px 0 #ffffff68,
    0 2px 1px #000a;
}
.rack-device .step-pad.active .pad-face i {
  background: #422535;
}
.rack-device .step-pad .pad-index {
  color: var(--plate-muted);
  font:
    500 8px/1 ui-monospace,
    "SFMono-Regular",
    monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.rack-device .step-pad.playing .pad-index {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rack-device .step-pad.playing .pad-face:after {
  content: "";
  position: absolute;
  height: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: #f4f8e7;
  border-radius: 1px;
}
.rack-device .step-pad:hover .pad-face {
  filter: brightness(1.2);
}
.rack-device .step-pad:active .pad-face {
  transform: translateY(1px);
}
.rack-device .face-scope-block {
  flex-basis: 23%;
  max-width: 290px;
}
.rack-device .face-scope-block .panel-section-title {
  margin: 0 0 6px;
}
.rack-device .face-scope {
  height: 44px;
  background-color: #090d09;
  border: 1px solid #000d;
  box-shadow:
    0 1px 0 #ffffff13,
    inset 0 1px 3px #000a;
  position: relative;
  overflow: hidden;
  color: var(--device-color);
  border-radius: 3px;
}
.rack-device .face-scope:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      90deg,
      color-mix(in srgb, var(--device-color) 12%, transparent) 1px,
      transparent 1px
    ),
    linear-gradient(
      color-mix(in srgb, var(--device-color) 10%, transparent) 1px,
      transparent 1px
    );
  background-size: calc(100% / 12) 10px;
  pointer-events: none;
}
.rack-device .face-scope svg {
  display: block;
  position: absolute;
  inset: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  overflow: visible;
}
.rack-device .face-scope svg path {
  vector-effect: non-scaling-stroke;
}
.rack-device .orbit-scope {
  height: 53px;
  background-color: #110b18;
}
.rack-device .orbit-scope svg {
  inset: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
}
.rack-device .param-bank,
.rack-device .extra-controls {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: clamp(5px, 1.1cqw, 15px);
  min-width: 0;
}
.rack-device .face-stepper .param-bank {
  flex: 0 1 auto;
}
.rack-device .face-control {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 32px;
  cursor: ew-resize;
  user-select: none;
}
.rack-device .param-label {
  font-size: 8px;
  text-align: center;
  line-height: 1.2;
  min-height: 10px;
  white-space: nowrap;
}
.rack-device .param-readout {
  font:
    500 8px/1.1 ui-monospace,
    monospace;
  color: var(--plate-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rack-device .rotary {
  display: block;
  position: relative;
  width: 37px;
  height: 37px;
  color: color-mix(in srgb, var(--device-color) 54%, #4e4850);
}
.rack-device .control-large .rotary {
  width: 44px;
  height: 44px;
}
.rack-device .dial-ticks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.rack-device .dial-disc {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    #454549 0%,
    #303034 36%,
    #1e1f22 72%,
    #141418 100%
  );
  border: 1px solid #161618;
  box-shadow:
    0 2px 2px #0009,
    inset 0 1px 0 #ffffff24,
    inset -1px -1px 0 #101011b0;
  pointer-events: none;
}
.rack-device .dial-disc i {
  position: absolute;
  inset: 0;
  transform: rotate(var(--dial-angle));
  border-radius: 50%;
}
.rack-device .dial-disc i:after {
  content: "";
  position: absolute;
  top: 0;
  left: calc(50% - 1px);
  width: 2px;
  height: 35%;
  background: var(--device-color);
  border-radius: 0 0 1px 1px;
}
.rack-device .rack-rotary-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
  touch-action: none;
  padding: 0;
}
.rack-device .face-control:focus-within .rotary,
.rack-device .face-control:hover .rotary {
  color: var(--device-color);
}
.rack-device .face-control:has(input:focus-visible) .rotary,
.rack-device :is(button, summary):focus-visible,
.rack-device .rack-fader-range:focus-visible {
  outline: 2px solid #f8f9dc;
  outline-offset: 2px;
  border-radius: 3px;
}
.rack-device .front-jack {
  border-left: 1px solid #ffffff14;
  padding-left: clamp(9px, 1.2cqw, 16px);
  align-self: center;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 43px;
}
.rack-device .socket-unit {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 27px;
}
.rack-device .socket-label {
  font-size: 8px;
  letter-spacing: 0.04em;
  max-width: 60px;
  text-align: center;
}
.rack-device .jack {
  --socket-ink: var(--device-color);
  position: relative;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  appearance: none;
  padding: 0;
  margin: 0;
  min-width: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  isolation: isolate;
}
.rack-device .jack[data-kind="cv"] {
  --socket-ink: #c1e776;
}
.rack-device .jack[data-kind="gate"] {
  --socket-ink: #fa9ebd;
}
.rack-device .jack[data-kind="note"] {
  --socket-ink: #92d9ec;
}
.rack-device .jack[data-kind="audio"] {
  --socket-ink: #c6a8e5;
}
.rack-device .jack:before {
  content: "";
  position: absolute;
  inset: 3px;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: linear-gradient(
    150deg,
    color-mix(in srgb, var(--socket-ink) 62%, #d9dcda),
    #56525a 52%,
    #969198 76%,
    #595361
  );
  transform: rotate(-11deg);
  z-index: -1;
}
.rack-device .jack i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #65636a;
  box-shadow:
    0 0 0 1px #29262d,
    inset 0 2px 2px #000;
  background: #09080c;
}
.rack-device .jack:hover i,
.rack-device .jack:focus-visible i,
.rack-device .jack.pending i,
.rack-device .jack.selected i {
  border-color: var(--socket-ink);
}
.rack-device .jack.connected i {
  box-shadow:
    0 0 0 1px var(--socket-ink),
    inset 0 2px 2px #000;
}
.rack-device .face-more {
  margin: 0 calc(var(--rail-width) + 12px);
  color: var(--plate-muted);
  font:
    600 8px/1.15 "Space Grotesk",
    sans-serif;
  letter-spacing: 0.04em;
}
.rack-device .face-more:not([open]) {
  height: 0;
  position: relative;
}
.rack-device .face-more summary {
  position: absolute;
  bottom: 3px;
  right: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  font: inherit;
  text-transform: uppercase;
  color: var(--plate-muted);
  padding: 3px 1px;
  opacity: 0.83;
}
.rack-device .face-more summary::-webkit-details-marker {
  display: none;
}
.rack-device .face-more summary:before {
  content: "+";
  color: var(--device-color);
  font-family: ui-monospace, monospace;
  font-weight: 800;
}
.rack-device .face-more[open] summary:before {
  content: "−";
}
.rack-device .face-more summary span {
  font: inherit;
  opacity: 0.78;
}
.rack-device .face-more[open] {
  border-top: 1px solid #ffffff1e;
  padding: 7px 0 16px;
}
.rack-device .face-more[open] summary {
  right: calc(var(--rail-width) + 12px);
}
.rack-device .extra-controls {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}
.rack-device .face-console .plate-name {
  flex-basis: 16%;
}
.rack-device .console-bank {
  justify-content: space-around;
  align-items: stretch;
  border: 1px solid #0008;
  background: #11121566;
  padding: 5px 5px 3px;
  border-radius: 2px;
  gap: 1px;
}
.rack-device .fader-control {
  min-width: 21px;
  cursor: ns-resize;
  flex: 1 1 0;
}
.rack-device .console-bank .param-label {
  font-size: 7px;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 100%;
}
.rack-device .fader-shell {
  position: relative;
  height: 40px;
  width: 100%;
  min-width: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
      to bottom,
      #a6a4ae78 0 1px,
      transparent 1px 8px
    )
    center / 13px 100% no-repeat;
}
.rack-device .rack-fader-range {
  writing-mode: vertical-lr;
  direction: rtl;
  appearance: none;
  -webkit-appearance: none;
  width: 4px;
  height: 40px;
  border: 0;
  border-radius: 2px;
  background: #050507;
  cursor: ns-resize;
  touch-action: none;
  margin: 0;
  padding: 0;
  box-shadow: 1px 0 0 #ffffff24;
}
.rack-device .rack-fader-range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 9px;
  background: linear-gradient(
    #afafb1,
    #6b6a71 40%,
    #e4e4e1 44% 52%,
    #4d4e52 55%,
    #605f66
  );
  border: 1px solid #302e32;
  border-radius: 2px;
  box-shadow: 0 1px 1px #000b;
}
.rack-device .rack-fader-range::-moz-range-thumb {
  width: 14px;
  height: 8px;
  border: 1px solid #302e32;
  border-radius: 2px;
  background: linear-gradient(
    #afafb1,
    #67676b 40%,
    #e4e4e1 44% 52%,
    #4d4e52 55%,
    #605f66
  );
}
.rack-device .face-back,
.rack-device .route-face-banks {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.rack-device.rear {
  --plate-ground: #141317;
  --plate-edge: #48424c;
}
.rack-device.rear .silk-sign {
  display: none;
}
.rack-device.rear .plate-name {
  border-right: 1px solid #ffffff1b;
  padding-right: 13px;
}
.rack-device.rear .face-name {
  font-size: clamp(18px, 2.4cqw, 26px);
}
.rack-device .back-banks,
.rack-device .route-face-banks {
  display: flex;
  align-items: start;
  justify-content: start;
  gap: clamp(12px, 2.3cqw, 32px);
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
}
.rack-device .route-face-banks {
  min-height: 0;
}
.rack-device .back-jack-bank .panel-section-title {
  margin-bottom: 4px;
  color: var(--plate-ink);
  font-size: 8px;
  white-space: nowrap;
}
.rack-device .jack-row {
  display: flex;
  justify-content: start;
  align-items: start;
  gap: 6px;
  flex-wrap: wrap;
}
.rack-device .back-info {
  align-self: center;
  flex: 0 0 auto;
}
.rack-device .back-jack-bank .jack-row .socket-label {
  font-size: 7px;
}
.rack-device .back-jack-bank .socket-unit {
  gap: 1px;
}
@container hardware (min-width:900px) {
  .rack-device .face-hardware {
    min-height: 99px;
  }
  .rack-device .face-stepper {
    min-height: 108px;
  }
  .rack-device .rotary {
    height: 42px;
    width: 42px;
  }
  .rack-device .control-large .rotary {
    height: 49px;
    width: 49px;
  }
  .rack-device .face-subtitle {
    font-size: 10px;
  }
  .rack-device .param-label,
  .rack-device .param-readout,
  .rack-device .socket-label {
    font-size: 9px;
  }
  .rack-device .pad-face {
    height: 30px;
  }
  .rack-device .step-count,
  .rack-device .pad-index {
    font-size: 9px;
  }
}
@container hardware (max-width:680px) {
  .rack-device .face-hardware {
    gap: 12px;
    padding: 13px 22px;
  }
  .rack-device .plate-name {
    min-width: 89px;
    flex-basis: 16%;
  }
  .rack-device .face-name {
    font-size: 18px;
  }
  .rack-device .face-pattern {
    min-width: 198px;
  }
  .rack-device .face-stepper .rotary {
    height: 30px;
    width: 30px;
  }
  .rack-device .face-stepper .param-bank {
    gap: 3px;
  }
  .rack-device .face-control {
    min-width: 27px;
  }
  .rack-device .face-stepper .param-label {
    font-size: 7px;
  }
  .rack-device .front-jack {
    padding-left: 6px;
  }
  .rack-device .socket-label {
    font-size: 7px;
  }
  .rack-device .step-bank {
    gap: 2px;
  }
  .rack-device .step-pad:nth-child(4n):not(:last-child) {
    margin-right: 2px;
  }
  .rack-device .console-bank {
    overflow-x: auto;
  }
  .rack-device .face-stepper .pad-face {
    height: 23px;
  }
}
@container hardware (max-width:540px) {
  .rack-device .face-hardware {
    display: grid;
    grid-template-columns: minmax(78px, 1fr) minmax(80px, 1.4fr) 36px;
    gap: 9px 14px;
    padding: 13px 21px 15px;
  }
  .rack-device .plate-name {
    grid-column: 1;
    grid-row: 1;
    max-width: none;
  }
  .rack-device .silk-sign {
    display: none;
  }
  .rack-device .face-scope-block {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: none;
  }
  .rack-device .param-bank {
    grid-column: 1 / 3;
    grid-row: 2;
    justify-content: space-evenly;
  }
  .rack-device .front-jack {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
  }
  .rack-device .face-pattern {
    grid-column: 1 / 3;
    grid-row: 2;
    min-width: 0;
  }
  .rack-device .face-stepper .param-bank {
    grid-column: 2 / 4;
    grid-row: 1;
    justify-content: end;
  }
  .rack-device .face-stepper .front-jack {
    grid-row: 2;
  }
  .rack-device .face-stepper .plate-name {
    min-width: 0;
  }
  .rack-device .face-stepper .face-name {
    font-size: 25px;
  }
  .rack-device .face-stepper .param-label {
    font-size: 8px;
  }
  .rack-device .face-stepper .rotary {
    width: 33px;
    height: 33px;
  }
  .rack-device .face-stepper .param-bank {
    gap: 10px;
  }
  .rack-device .face-console .plate-name {
    grid-column: 1 / 3;
  }
  .rack-device .face-console .console-bank {
    grid-column: 1 / 4;
    overflow: auto;
  }
  .rack-device .face-console .front-jack {
    grid-row: 1;
  }
  .rack-device .fader-control {
    min-width: 25px;
  }
  .rack-device .face-back {
    display: flex;
    flex-wrap: wrap;
  }
  .rack-device .face-back .plate-name {
    min-width: 100px;
  }
  .rack-device .back-banks {
    flex-basis: 100%;
    order: 2;
  }
  .rack-device .back-info {
    margin-left: auto;
  }
  .rack-device .route-face-banks {
    grid-column: 1 / 4;
    grid-row: 2;
  }
  .rack-device .face-routing .param-bank {
    grid-column: 2 / 4;
    grid-row: 1;
  }
  .rack-device .face-scope {
    height: 32px;
  }
  .rack-device .face-more[open] .extra-controls {
    justify-content: start;
  }
  .rack-device .face-hardware.face-space {
    min-height: 116px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rack-device *,
  .rack-device *:before,
  .rack-device *:after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
.rack-device .patch-nameplate {
  display: block;
  font:
    550 8px/1.15 ui-monospace,
    monospace;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--plate-ink);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.88;
}
.rack-device .patch-nameplate:before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
  width: 10px;
  height: 1px;
  background: var(--device-color);
}
.rack-device[data-type="dnb"] .patch-nameplate {
  margin-top: 5px;
}
.rack-device .voice-leds {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1px;
  padding: 2px 1px;
  background: #110c106b;
  border-radius: 1px;
}
.rack-device .voice-leds i {
  height: 2px;
  display: block;
  background: color-mix(
    in srgb,
    var(--device-color) calc(var(--velocity) * 89%),
    #30242a
  );
}
.rack-device .step-pad:not(.active) .voice-leds i {
  background: #30242a;
}
.rack-device .draw-grid {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: 2px;
}
.rack-device .draw-column {
  display: grid;
  justify-items: stretch;
  gap: 3px;
}
.rack-device .draw-column input {
  width: 100%;
  height: 34px;
  margin: 0;
  border: 0;
  border-radius: 1px;
  writing-mode: vertical-lr;
  direction: rtl;
  appearance: none;
  touch-action: none;
  cursor: ns-resize;
  background: linear-gradient(
    to top,
    var(--device-color) 0 var(--draw),
    #0c0c10 var(--draw) 100%
  );
}
.rack-device .draw-column input::-webkit-slider-thumb {
  appearance: none;
  width: 100%;
  height: 2px;
  background: #f2e9ff;
  border: 0;
}
.rack-device .draw-column input::-moz-range-thumb {
  width: 100%;
  height: 2px;
  background: #f2e9ff;
  border: 0;
}
.rack-device .draw-column .pad-index {
  font:
    500 8px/1 ui-monospace,
    monospace;
  text-align: center;
  color: var(--plate-muted);
}
.rack-device .draw-column input:focus-visible {
  outline: 2px solid white;
  outline-offset: 1px;
}
.rack-device .jack[data-kind="cv"] {
  --socket-ink: #6be0d6;
}
.rack-device .jack[data-kind="gate"],
.rack-device .jack[data-kind="note"] {
  --socket-ink: #cafa68;
}
.rack-device .jack[data-kind="audio"] {
  --socket-ink: #ed78b3;
}

.rack-device .front-jack.multi-jack {
  gap: 6px;
  flex-wrap: nowrap;
}
.rack-device .front-jack.multi-jack .socket-label {
  white-space: nowrap;
}
@container hardware (max-width:760px) and (min-width:541px) {
  .rack-device .front-jack.multi-jack {
    display: grid;
    grid-template-columns: repeat(2, minmax(24px, 1fr));
    gap: 4px;
  }
  .rack-device .front-jack.multi-jack .socket-unit {
    gap: 0;
  }
  .rack-device .front-jack.multi-jack .jack {
    width: 23px;
    height: 23px;
  }
}
@container hardware (max-width:540px) {
  .rack-device .front-jack.multi-jack {
    flex-direction: column;
    justify-content: center;
    gap: 3px;
  }
  .rack-device .front-jack.multi-jack .socket-unit {
    gap: 0;
  }
  .rack-device .front-jack.multi-jack .jack {
    width: 22px;
    height: 22px;
  }
  .rack-device .face-stepper .front-jack.multi-jack,
  .rack-device .face-console .front-jack.multi-jack {
    grid-column: 1 / 4;
    grid-row: 3;
    justify-content: end;
    flex-direction: row;
    border-left: 0;
    align-self: end;
    min-height: 0;
    gap: 9px;
  }
  .rack-device .face-stepper:has(.multi-jack) .face-pattern {
    grid-column: 1 / 4;
  }
}

.rack-device .plate-name {
  cursor: default;
  gap: 6px;
}
.rack-device .device-handle {
  cursor: grab;
}
.rack-device .name-ink .patch-nameplate,
.rack-device[data-type="dnb"] .name-ink .patch-nameplate {
  margin: 2px 0 0;
}
.rack-device .face-clock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 2px 5px;
  min-height: 18px;
  margin: 0;
  border: 1px solid #ffffff26;
  background: #0808086e;
  border-radius: 2px;
  color: var(--plate-muted);
  font:
    650 7px/1 "Space Grotesk",
    sans-serif;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.rack-device .face-clock i {
  width: 4px;
  height: 4px;
  border: 1px solid var(--plate-muted);
  border-radius: 50%;
}
.rack-device .face-clock[aria-pressed="true"] i {
  border-color: var(--device-color);
  background: var(--device-color);
}
.rack-device .face-clock:hover {
  border-color: var(--device-color);
  color: var(--plate-ink);
}
@container hardware (max-width:540px) {
  .rack-device .face-clock {
    min-height: 20px;
  }
  .rack-device .plate-name {
    gap: 4px;
  }
  .rack-device .patch-nameplate {
    font-size: 7px;
  }
}

.rack-device .face-clock-status {
  color: var(--plate-muted);
  font:
    650 7px/1.3 "Space Grotesk",
    sans-serif;
  letter-spacing: 0.08em;
}
.rack-device .face-action.edit-voices-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 0 5px;
  white-space: nowrap;
  font:
    600 9px/1 "Space Grotesk",
    sans-serif;
}
@container hardware (max-width:680px) {
  .rack-device .face-action.edit-voices-action {
    gap: 3px;
    padding: 0 3px;
    font-size: 8px;
  }
  .rack-device .face-pattern .pattern-head {
    gap: 4px;
  }
}

.rack-device .orbit-transport {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-top: 4px;
}
.rack-device .orbit-transport .face-clock {
  text-transform: uppercase;
}

.rack-device .face-more.panel-drawer,
.rack-device .face-more.mixer-drawer {
  position: static;
  height: auto;
  margin: 0 calc(var(--rail-width) + 9px);
  padding: 0 0 5px;
  border: 0;
}
.rack-device .face-more.panel-drawer summary,
.rack-device .face-more.mixer-drawer summary {
  position: static;
  width: fit-content;
  min-height: 23px;
  padding: 2px 7px 2px 2px;
  opacity: 1;
  margin: 0;
  color: var(--plate-ink);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.rack-device .panel-drawer summary:before,
.rack-device .mixer-drawer summary:before {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  background: #0a0b0d;
  border: 1px solid var(--plate-edge);
  border-radius: 2px;
  font-size: 12px;
}
.rack-device summary:hover {
  color: var(--device-color);
}
.rack-device .drawer-body {
  padding: 7px 0 4px;
}
.rack-device .hardware-sections,
.rack-device .eq-bands {
  display: flex;
  align-items: stretch;
  gap: 7px;
  flex-wrap: wrap;
}
.rack-device .hardware-section {
  min-width: 0;
  flex: 1 1 148px;
  padding: 9px 10px 10px;
  border: 1px solid color-mix(in srgb, var(--plate-edge) 80%, #7e777c);
  border-radius: 2px;
  background: #090b0e42;
}
.rack-device .hardware-section h3,
.rack-device .channel-strip h3,
.rack-device .strip-group h4 {
  color: var(--plate-ink);
  font:
    650 10px/1.25 "Space Grotesk",
    sans-serif;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.rack-device .section-controls,
.rack-device .section-buttons,
.rack-device .drawer-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 9px;
}
.rack-device .section-controls {
  align-items: flex-end;
}
.rack-device .section-controls > .fader-control {
  max-width: 48px;
}
.rack-device .section-controls > .face-control {
  flex: 1 0 38px;
}
.rack-device .section-buttons {
  gap: 4px;
}
.rack-device .section-controls + .section-buttons {
  margin-top: 8px;
}
.rack-device .drawer-footer {
  justify-content: flex-end;
  padding-top: 6px;
}
.rack-device .panel-key,
.rack-device .hardware-action,
.rack-device .roll-key,
.rack-device .hit-selector select,
.rack-device .selector-control select {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--plate-muted) 34%, #121114);
  border-radius: 2px;
  color: var(--plate-ink);
  background: linear-gradient(165deg, #262629, #141317);
  box-shadow:
    inset 0 1px 0 #ffffff13,
    0 1px 2px #0005;
  font:
    620 10px/1.15 "Space Grotesk",
    sans-serif;
  padding: 4px 7px;
  text-align: center;
  min-height: 23px;
}
.rack-device .panel-key,
.rack-device .hardware-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.rack-device .panel-key {
  text-transform: capitalize;
}
.rack-device .panel-key i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #807b80;
}
.rack-device .panel-key[aria-pressed="true"],
.rack-device .roll-key[aria-pressed="true"] {
  color: #171318;
  background: var(--device-color);
  border-color: color-mix(in srgb, var(--device-color) 75%, white);
}
.rack-device .panel-key[aria-pressed="true"] i {
  background: #171318;
}
.rack-device .panel-key:hover,
.rack-device .roll-key:not(:disabled):hover,
.rack-device .selector-control select:hover,
.rack-device .voice-key:hover {
  border-color: var(--device-color);
}
.rack-device :is(input, button, select):disabled {
  cursor: default;
  opacity: 0.44;
}
.rack-device .face-control:has(input:disabled) {
  opacity: 0.5;
  cursor: default;
}
.rack-device .selector-control {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 100%;
}
.rack-device .selector-control select,
.rack-device .hit-selector select {
  appearance: auto;
  padding: 3px;
  max-width: 100%;
  color-scheme: dark;
  cursor: pointer;
}
.rack-device select:focus-visible,
.rack-device [data-room-graph] :focus-visible,
.rack-device .eq-node:focus-visible {
  outline: 2px solid #fff6d5;
  outline-offset: 2px;
}
.rack-device .drawer-body .param-label {
  white-space: normal;
}
.rack-device .envelope-contour {
  display: block;
  height: 29px;
  width: 100%;
  margin: 0 0 7px;
  background: #070907;
  color: var(--device-color);
}
.rack-device .envelope-contour path,
.rack-device .mod-destinations path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}
.rack-device .mod-destinations {
  margin-top: 7px;
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--plate-edge);
  padding-top: 5px;
}
.rack-device .mod-destinations > div,
.rack-device .mod-destinations > div > span {
  display: flex;
  align-items: center;
  gap: 3px;
}
.rack-device .mod-destinations > div > span {
  color: var(--device-color);
}
.rack-device .mod-destinations .face-icon {
  width: 13px;
}
.rack-device .hardware-action {
  color: var(--plate-muted);
  width: auto;
}

.rack-device[data-type="drums"] {
  --plate-ground: #271c1c;
  --plate-edge: #674238;
  --plate-ink: #fff0de;
  --plate-muted: #e2c0ad;
}
.rack-device .face-hardware.kit-header {
  min-height: 0;
  padding-bottom: 6px;
  align-items: center;
}
.rack-device .kit-header .plate-name {
  flex: 0 1 17%;
}
.rack-device .kit-header .face-name {
  font-size: clamp(22px, 2.8cqw, 35px);
}
.rack-device[data-type="dnb"] .kit-header .face-name {
  font-size: clamp(27px, 3.7cqw, 40px);
}
.rack-device .kit-voices {
  flex: 1;
  min-width: 0;
}
.rack-device .kit-voices .panel-section-title {
  margin-bottom: 5px;
}
.rack-device .voice-bank {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  background: #100e0f;
  padding: 3px;
  border: 1px solid #0a080a;
  gap: 2px;
  border-radius: 3px;
}
.rack-device .voice-key {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 5px;
  min-height: 35px;
  min-width: 0;
  font:
    650 10px/1 "Space Grotesk",
    sans-serif;
  border: 1px solid #ffffff1b;
  border-radius: 2px;
  background: linear-gradient(#393132, #272123);
  color: var(--plate-ink);
}
.rack-device .voice-key .voice-number {
  font:
    550 8px/1 ui-monospace,
    monospace;
  color: var(--plate-muted);
}
.rack-device .voice-key i {
  position: absolute;
  width: 4px;
  height: 4px;
  right: 5px;
  top: 5px;
  background: #66565a;
  border-radius: 50%;
}
.rack-device .voice-key[aria-pressed="true"] {
  color: #1e1115;
  border-color: var(--device-color);
  background: var(--device-color);
}
.rack-device .voice-key[aria-pressed="true"] .voice-number {
  color: #462e35;
}
.rack-device .voice-key[aria-pressed="true"] i {
  background: #36252a;
}
.rack-device .kit-program {
  margin: 0 calc(var(--rail-width) + 12px) 2px;
  padding: 6px 0 3px;
  border-top: 1px solid #ffffff1b;
}
.rack-device .kit-program-head,
.rack-device .kit-sequence-label,
.rack-device .hit-program,
.rack-device .roll-keys,
.rack-device .hit-selector {
  display: flex;
  align-items: center;
  gap: 7px;
}
.rack-device .kit-program-head {
  justify-content: space-between;
  margin-bottom: 5px;
}
.rack-device .kit-sequence-label {
  align-items: baseline;
}
.rack-device .kit-sequence-label strong {
  font-size: 13px;
  font-weight: 650;
}
.rack-device .kit-steps {
  gap: 4px;
}
.rack-device .kit-steps .pad-face {
  background: linear-gradient(168deg, #45383b, #30262a);
  height: 22px;
}
.rack-device .kit-steps .step-pad.active .pad-face {
  background: linear-gradient(
    156deg,
    color-mix(
      in srgb,
      var(--device-color) calc(35% + var(--hit-strength) * 65%),
      #7d5259
    ),
    color-mix(
      in srgb,
      var(--device-color) calc(20% + var(--hit-strength) * 60%),
      #61424b
    )
  );
}
.rack-device .kit-steps .step-pad.editing-hit .pad-index {
  color: var(--plate-ink);
}
.rack-device .kit-steps .step-pad.editing-hit .pad-face {
  outline: 1px solid var(--plate-ink);
  outline-offset: 1px;
}
.rack-device .kit-steps .pad-face b {
  position: absolute;
  bottom: 1px;
  right: 3px;
  color: #361d25;
  font:
    700 8px/1.1 ui-monospace,
    monospace;
}
.rack-device .hit-program {
  margin-top: 7px;
  flex-wrap: wrap;
}
.rack-device .hit-selector,
.rack-device .roll-label {
  font:
    650 9px/1.1 "Space Grotesk",
    sans-serif;
  color: var(--plate-muted);
  text-transform: uppercase;
  letter-spacing: 0.055em;
}
.rack-device .roll-label {
  padding-left: 8px;
  border-left: 1px solid #ffffff28;
}
.rack-device .roll-keys {
  gap: 2px;
}
.rack-device .roll-key {
  min-width: 27px;
  min-height: 23px;
  padding: 3px 4px;
}
.rack-device .sample-control {
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid var(--plate-edge);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.rack-device .sample-control span {
  font:
    10px/1.2 ui-monospace,
    monospace;
  overflow-wrap: anywhere;
}

.rack-device.plate-mixer {
  --plate-ground: #1a2224;
  --plate-edge: #3c5053;
  --plate-ink: #f4f2df;
  --plate-muted: #bfd1ce;
  --device-color: #a4e5d2 !important;
}
.rack-device .face-hardware.mixer-header {
  min-height: 72px;
  padding-bottom: 5px;
}
.rack-device .master-bank {
  justify-content: flex-end;
}
.rack-device .mixer-scroll {
  margin: 0 calc(var(--rail-width) + 9px) 10px;
  padding: 0 0 3px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-color: #687a7c #111619;
}
.rack-device .mixer-board {
  display: grid;
  grid-template-columns: repeat(var(--channels), minmax(42px, 1fr));
  gap: 2px;
}
.rack-device .channel-strip {
  min-width: 0;
  padding: 6px 3px;
  border: 1px solid #485253;
  border-radius: 2px;
  background: linear-gradient(90deg, #283132, #212a2b 80%, #1b2223);
  color: var(--plate-ink);
}
.rack-device .channel-strip h3 {
  text-align: center;
  margin: 0 0 5px;
  font:
    700 11px/1.1 ui-monospace,
    monospace;
  color: var(--device-color);
}
.rack-device .strip-detail {
  display: none;
}
.rack-device .strip-switches {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin: 3px 0 6px;
}
.rack-device .strip-switches .panel-key {
  min-width: 16px;
  min-height: 18px;
  padding: 2px;
  font-size: 8px;
}
.rack-device .strip-switches i {
  display: none;
}
.rack-device .strip-switches [data-param^="mute"][aria-pressed="true"] {
  background: #ffad99;
}
.rack-device .strip-switches [data-param^="solo"][aria-pressed="true"] {
  background: #ffe08e;
}
.rack-device .channel-strip > .fader-control .param-label {
  display: none;
}
.rack-device .channel-strip .fader-shell,
.rack-device .channel-strip .rack-fader-range {
  height: 48px;
}
.rack-device .mixer-drawer[open] + .mixer-scroll .mixer-board {
  grid-template-columns: repeat(var(--channels), minmax(95px, 1fr));
}
.rack-device .mixer-drawer[open] + .mixer-scroll .strip-detail {
  display: block;
}
.rack-device .strip-group {
  border-top: 1px solid #ffffff20;
  padding-top: 6px;
  margin-bottom: 7px;
}
.rack-device .strip-group h4 {
  text-align: center;
  margin-bottom: 4px;
  font-size: 8px;
  letter-spacing: 0.02em;
}
.rack-device .strip-group > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 0;
}
.rack-device .strip-group .rotary,
.rack-device .strip-detail > .face-control .rotary {
  width: 30px;
  height: 30px;
}
.rack-device .strip-group .param-label,
.rack-device .strip-group .param-readout {
  font-size: 8px;
}
.rack-device .graphic-display {
  flex: 1;
  min-width: 0;
}
.rack-device .graphic-bank {
  display: grid;
  grid-template-columns: repeat(11, minmax(28px, 1fr));
  gap: 3px;
  overflow-x: auto;
  background: #101216;
  border: 1px solid #424049;
  padding: 7px 4px;
  border-radius: 2px;
  margin-top: 5px;
}
.rack-device .graphic-bank .rack-fader-range,
.rack-device .graphic-bank .fader-shell {
  height: 58px;
}
.rack-device .graphic-bank .param-readout {
  font-size: 8px;
}
.rack-device .eq-display {
  min-width: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 5px 4px;
}
.rack-device .eq-display > .panel-section-title {
  grid-column: 1 / -1;
}
.rack-device .eq-axis-y,
.rack-device .eq-axis-x,
.rack-device .display-legend > span:last-child {
  color: var(--plate-muted);
  font:
    500 9px/1.1 ui-monospace,
    monospace;
}
.rack-device .eq-axis-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
}
.rack-device .eq-axis-x {
  grid-column: 2;
  position: relative;
  min-height: 11px;
}
.rack-device .eq-axis-x span {
  position: absolute;
  transform: translateX(-50%);
}
.rack-device .eq-axis-x span:first-child {
  transform: none;
}
.rack-device .eq-axis-x span:last-child {
  transform: translateX(-100%);
}
.rack-device .eq-graph {
  display: block;
  width: 100%;
  height: 99px;
  background: #090a0c;
  outline: 1px solid #484149;
  color: var(--device-color);
  touch-action: none;
  overflow: visible;
}
.rack-device .eq-reticle {
  stroke: #777487;
  stroke-opacity: 0.36;
  stroke-width: 0.7;
}
.rack-device .response-fill {
  stroke: none;
  fill: currentColor;
  opacity: 0.1;
}
.rack-device .response-curve {
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  vector-effect: non-scaling-stroke;
}
.rack-device .eq-node {
  cursor: grab;
  touch-action: none;
}
.rack-device .eq-node:active {
  cursor: grabbing;
}
.rack-device .eq-touch,
.rack-device .room-hit-target {
  fill: transparent;
}
.rack-device .eq-dot {
  fill: var(--device-color);
  stroke: #151216;
  stroke-width: 1px;
}
.rack-device .eq-node.bypassed .eq-dot {
  fill: #4d4851;
  stroke: var(--device-color);
}
.rack-device .eq-node text,
.rack-device .room-anchor text {
  fill: #131317;
  font:
    700 9px ui-monospace,
    monospace;
  pointer-events: none;
}
.rack-device .eq-node.bypassed text {
  fill: #f5eff8;
}
.rack-device .eq-bands {
  gap: 5px;
}
.rack-device .eq-bands .hardware-section {
  flex-basis: 118px;
}
.rack-device .eq-bands h3,
.rack-device .eq-bands .section-buttons {
  display: inline-flex;
  vertical-align: middle;
}
.rack-device .eq-bands h3 {
  margin-right: 8px;
  margin-bottom: 5px;
}
.rack-device .band-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px 1px;
}
.rack-device .band-controls .selector-control {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: flex-start;
  padding-top: 5px;
}
.rack-device .band-controls .rotary {
  width: 33px;
  height: 33px;
}

.rack-device[data-type="room"] {
  --plate-ground: #102427;
  --plate-edge: #31595b;
  --plate-ink: #e0f7ef;
  --plate-muted: #afd0c8;
}
.rack-device[data-type="objekt"] {
  --plate-ground: #2b2117;
  --plate-edge: #65513b;
  --plate-ink: #fff2db;
  --plate-muted: #decbb7;
}
.rack-device .spatial-display,
.rack-device .modal-display {
  flex: 1 1 28%;
  min-width: 115px;
}
.rack-device .display-legend,
.rack-device .room-legend {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  align-items: center;
}
.rack-device .display-legend {
  margin-bottom: 7px;
  flex-wrap: wrap;
}
.rack-device .floor-stage svg {
  display: block;
  width: 100%;
  height: 140px;
  background-color: #091519;
  background-image: linear-gradient(#a9ece71c 1px, transparent 1px),
    linear-gradient(90deg, #a9ece71c 1px, transparent 1px);
  background-size: 10% 12.5%;
  border: 1px solid #406265;
  touch-action: none;
}
.rack-device .room-legend {
  justify-content: flex-start;
  margin-top: 5px;
  gap: 13px;
}
.rack-device .room-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--plate-muted);
  font-size: 9px;
}
.rack-device .room-legend i {
  width: 6px;
  height: 6px;
  background: #eed389;
}
.rack-device .source-marker {
  transform: rotate(45deg);
}
.rack-device .room-legend .listener-marker {
  background: #bde9ff;
  border-radius: 100%;
}
.rack-device .chamber-polygon {
  fill: #3d868745;
  stroke: #8ad7d1;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.rack-device .direct-path {
  stroke: #d6db9d;
  stroke-width: 1;
  stroke-dasharray: 3 3;
  pointer-events: none;
}
.rack-device .room-wall {
  stroke: transparent;
  stroke-width: 10px;
  pointer-events: stroke;
  cursor: move;
}
.rack-device .room-wall:hover,
.rack-device .room-wall:focus-visible {
  stroke: #c1ece777;
  stroke-width: 5px;
}
.rack-device .room-vertex {
  fill: #0a181c;
  stroke: #a7eeeb;
  stroke-width: 2px;
  cursor: grab;
}
.rack-device .room-vertex:hover,
.rack-device .room-vertex:focus-visible {
  fill: #8cf8ea;
}
.rack-device .room-anchor {
  cursor: grab;
}
.rack-device .anchor-source {
  fill: #eed389;
}
.rack-device .anchor-listener {
  fill: #bde9ff;
}
.rack-device .room-vertex:active,
.rack-device .room-anchor:active {
  cursor: grabbing;
}
.rack-device .modal-chart {
  display: flex;
  height: 86px;
  background: #16120e;
  border: 1px solid #604d3b;
}
.rack-device .modal-chart svg {
  min-width: 0;
  flex: 1;
}
.rack-device .body-tags {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 2px;
  padding: 3px;
}
.rack-device .body-tags span {
  font:
    550 9px/1 ui-monospace,
    monospace;
  color: #ffc78f;
  white-space: nowrap;
}
.rack-device .body-tags span + span {
  color: #b7e1d2;
}
.rack-device .body-modes {
  stroke: #ffc78f;
  fill: #ffc78f;
}
.rack-device .modes-1 {
  stroke: #b7e1d2;
  fill: #b7e1d2;
}
.rack-device .body-modes path {
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
}
.rack-device .mode-baseline {
  opacity: 0.32;
}
.rack-device .model-bank {
  flex: 0 1 auto;
}
.rack-device .room-size {
  white-space: nowrap;
}

@container hardware (max-width:760px) {
  .rack-device .voice-bank {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .rack-device .voice-key {
    min-height: 28px;
    padding: 4px;
  }
  .rack-device .hardware-section {
    flex-basis: 132px;
  }
  .rack-device .model-bank {
    flex-wrap: wrap;
    max-width: 166px;
  }
  .rack-device .kit-header .face-name {
    font-size: 20px;
  }
}
@container hardware (max-width:540px) {
  .rack-device .face-hardware.kit-header,
  .rack-device .face-hardware.eq-header,
  .rack-device .face-hardware.graphic-header,
  .rack-device .face-hardware.objekt-header,
  .rack-device .face-hardware.room-header,
  .rack-device .face-hardware.mixer-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    padding: 11px 20px 7px;
  }
  .rack-device .kit-header .plate-name,
  .rack-device .eq-header .plate-name,
  .rack-device .graphic-header .plate-name,
  .rack-device .objekt-header .plate-name,
  .rack-device .room-header .plate-name,
  .rack-device .mixer-header .plate-name {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }
  .rack-device .kit-header .face-name {
    font-size: 22px;
  }
  .rack-device .kit-header .name-ink {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: end;
  }
  .rack-device .kit-header .face-subtitle {
    align-self: center;
  }
  .rack-device .kit-header .face-clock-status {
    display: none;
  }
  .rack-device .kit-header .patch-nameplate {
    grid-column: 1 / -1;
  }
  .rack-device .kit-header .kit-voices,
  .rack-device .eq-header .eq-display,
  .rack-device .graphic-header .graphic-display,
  .rack-device .room-header .spatial-display,
  .rack-device .objekt-header .modal-display {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
  }
  .rack-device
    :is(
      .kit-header,
      .eq-header,
      .graphic-header,
      .objekt-header,
      .room-header,
      .mixer-header
    )
    .front-jack {
    grid-column: 2;
    grid-row: 1;
    flex-direction: row;
    padding-left: 4px;
    min-height: 0;
  }
  .rack-device .objekt-header .model-bank,
  .rack-device .room-header .model-bank {
    grid-column: 1 / -1;
    grid-row: 3;
    max-width: none;
    justify-content: space-evenly;
    width: 100%;
  }
  .rack-device .mixer-header .master-bank {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .rack-device .kit-program {
    margin-inline: 20px;
  }
  .rack-device .voice-bank {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .rack-device .kit-steps {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 5px 3px;
  }
  .rack-device .kit-steps .pad-face {
    height: 21px;
  }
  .rack-device .kit-steps .step-pad:nth-child(8) {
    margin-right: 0;
  }
  .rack-device .kit-program-head {
    gap: 5px;
  }
  .rack-device .hit-program {
    gap: 4px;
  }
  .rack-device .roll-key {
    min-width: 22px;
  }
  .rack-device .room-size {
    font-size: 8px;
  }
  .rack-device .mod-destinations {
    flex-wrap: wrap;
  }
}

.rack-device .floor-stage {
  display: grid;
  place-items: center;
  min-height: 155px;
  background: #091519;
  border: 1px solid #406265;
}
.rack-device .floor-stage svg {
  width: min(100%, calc(180px * var(--plan-ratio)));
  height: auto;
  max-height: 180px;
  aspect-ratio: var(--plan-ratio);
  min-height: 45px;
  outline: 1px dotted #4a6563;
  border: 0;
}
.rack-device .synth-sections {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
}
.rack-device .synth-sections > .hardware-section {
  grid-column: span 3;
}
.rack-device .synth-sections > .envelope-section,
.rack-device .synth-sections > .routing-section {
  grid-column: span 4;
}
.rack-device .synth-sections > .hardware-section .section-controls {
  align-items: center;
  justify-content: flex-start;
}
.rack-device
  .synth-sections
  > .hardware-section
  .section-controls
  > .face-control {
  flex: 0 1 auto;
}
.rack-device
  .synth-sections
  > .hardware-section
  .section-controls
  > .fader-control {
  min-width: 36px;
}
.rack-device .synth-sections .mod-destinations {
  gap: 9px;
  justify-content: start;
}
.rack-device[data-type="graintable"] .synth-sections > .generator-section {
  grid-column: span 4;
}
.rack-device .drawer-body .face-control {
  min-width: max-content;
}
.rack-device .drawer-body .face-control .param-label {
  max-width: 74px;
}
.rack-device .hardware-section .section-controls {
  column-gap: 7px;
}
.rack-device .drawer-body .param-readout {
  letter-spacing: 0;
}
.rack-device .display-legend > .panel-section-title {
  font-family: inherit;
  font-weight: 650;
}
.rack-device .face-more[open] summary:before {
  content: "-";
}
@container hardware (max-width:900px) {
  .rack-device .synth-sections > .hardware-section {
    grid-column: span 4;
  }
  .rack-device .synth-sections > .routing-section {
    grid-column: span 12;
  }
  .rack-device .synth-sections .routing-section .section-controls,
  .rack-device .synth-sections .routing-section .mod-destinations {
    display: inline-flex;
    vertical-align: middle;
  }
  .rack-device .synth-sections .routing-section .mod-destinations {
    border: 0;
    margin: 0 0 0 12px;
    padding: 0;
  }
}
@container hardware (max-width:620px) {
  .rack-device .synth-sections > .hardware-section,
  .rack-device[data-type="graintable"] .synth-sections > .generator-section {
    grid-column: span 6;
  }
  .rack-device .synth-sections > .routing-section {
    grid-column: span 12;
  }
}
@container hardware (max-width:410px) {
  .rack-device .synth-sections > .envelope-section {
    grid-column: span 12;
  }
  .rack-device .hardware-sections .hardware-section {
    padding: 7px;
  }
}

/* Eight loop cartridges above a common sample editor. */
.rack-device[data-type="octobreak"] {
  --plate-ground: #251b17;
  --plate-edge: #674534;
  --plate-ink: #fff1da;
  --plate-muted: #dbc7b5;
  --device-color: #ff9956;
}
.rack-device .octobreak-header {
  gap: 15px;
  padding-top: 12px;
  padding-bottom: 9px;
  min-height: 0;
}
.rack-device .octobreak-header .plate-name {
  flex: 0 1 16%;
  min-width: min-content;
  gap: 4px;
}
.rack-device .octobreak-header .face-name {
  font-size: clamp(23px, 3.2cqw, 38px);
  font-weight: 750;
  font-style: italic;
}
.rack-device .octobreak-header .silk-sign {
  width: 28px;
  height: 15px;
}
.rack-device .break-bank {
  flex: 1;
  min-width: 0;
}
.rack-device .break-bank-head,
.rack-device .break-source-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 12px;
}
.rack-device .break-bank-head {
  margin-bottom: 5px;
}
.rack-device .break-bank-head output {
  color: #c5e8d9;
  font:
    9px/1.25 ui-monospace,
    monospace;
}
.rack-device .break-slot-bank {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  background: #100d0b;
  border-radius: 3px;
}
.rack-device .break-slot {
  display: grid;
  align-content: space-between;
  gap: 6px;
  min-width: 0;
  min-height: 40px;
  padding: 5px 6px;
  color: #d3c4b7;
  background: linear-gradient(#39322d, #25211f);
  border: 1px solid #51443b;
  border-radius: 2px;
  box-shadow:
    inset 0 1px #ffffff16,
    0 2px 2px #0008;
  text-align: left;
}
.rack-device .break-slot.has-source {
  color: #fff0db;
}
.rack-device .slot-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font:
    12px/1 ui-monospace,
    monospace;
}
.rack-device .slot-cap i {
  width: 5px;
  height: 5px;
  background: #312e2b;
  border: 1px solid #8d7869;
  border-radius: 50%;
}
.rack-device .has-source .slot-cap i {
  background: #a8e9d5;
  border-color: #a8e9d5;
}
.rack-device .queued-bank .slot-cap i {
  border-radius: 0;
  transform: rotate(45deg);
}
.rack-device .slot-name {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 600;
}
.rack-device .break-slot[aria-pressed="true"],
.rack-device .break-slice[aria-pressed="true"] {
  background: #ff9956;
  color: #24140a;
  border-color: #ffba83;
}
.rack-device .break-slot[aria-pressed="true"] .slot-cap i {
  background: transparent;
  border-color: #57351f;
}
.rack-device .break-slot.has-source[aria-pressed="true"] .slot-cap i {
  background: #422819;
}
.rack-device .break-slot:hover,
.rack-device .break-slice:hover {
  border-color: var(--device-color);
}
.rack-device .break-workbench,
.rack-device .dnb-break-source {
  margin: 0 calc(var(--rail-width) + 11px) 3px;
  padding: 9px 0 6px;
  border-top: 1px solid var(--plate-edge);
}
.rack-device .break-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(158px, 23%);
  align-items: stretch;
  gap: 14px;
}
.rack-device .break-source,
.rack-device .break-source-name {
  min-width: 0;
}
.rack-device .break-source-head {
  margin-bottom: 5px;
}
.rack-device .break-source-name {
  display: grid;
  gap: 2px;
}
.rack-device .break-source-name strong {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.14;
  overflow-wrap: anywhere;
}
.rack-device .break-source-name span {
  font:
    9px/1.3 ui-monospace,
    monospace;
  color: var(--plate-muted);
}
.rack-device .break-action {
  text-transform: none;
  min-height: 24px;
}
.rack-device .break-action .face-icon {
  height: 12px;
  width: 12px;
}
.rack-device .break-glass {
  --scope-edge: #314b40;
  overflow: hidden;
  border: 1px solid var(--scope-edge);
  border-radius: 2px;
  background: #08130f;
  box-shadow: inset 0 2px 3px #0009;
}
.rack-device .break-ruler {
  position: relative;
  margin: 0;
  height: 14px;
  background: #10231c;
  border-bottom: 1px solid var(--scope-edge);
  color: #b3d6c9;
  font:
    9px/13px ui-monospace,
    monospace;
}
.rack-device .break-ruler span {
  position: absolute;
  padding-left: 3px;
}
.rack-device .break-waveform {
  display: block;
  width: 100%;
  height: clamp(60px, 7cqw, 90px);
}
.rack-device .break-waveform .zero-line,
.rack-device .break-waveform .beat-line,
.rack-device .break-waveform .bar-line,
.rack-device .break-marker .marker-stem {
  fill: none;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.rack-device .break-waveform .zero-line {
  stroke: #345849;
}
.rack-device .break-waveform .beat-line {
  stroke: #234134;
}
.rack-device .break-waveform .bar-line {
  stroke: #496b59;
}
.rack-device .break-signal {
  fill: #a3e9ce;
}
.rack-device .slice-highlight {
  fill: #344636;
}
.rack-device .break-marker {
  cursor: ew-resize;
  touch-action: none;
  outline: none;
}
.rack-device .marker-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 12px;
  vector-effect: non-scaling-stroke;
  pointer-events: stroke;
}
.rack-device .marker-stem {
  stroke: #e3a274;
  stroke-opacity: 0.7;
}
.rack-device .marker-head {
  fill: #ffac76;
}
.rack-device .break-marker:is(:hover, :focus-visible) .marker-stem {
  stroke: #fff3c9;
  stroke-width: 3;
  stroke-opacity: 1;
}
.rack-device .break-marker:is(:hover, :focus-visible) .marker-head {
  fill: #fff3c9;
}
.rack-device .break-pad-deck {
  margin-top: 6px;
}
.rack-device .break-pad-deck > span {
  margin-bottom: 4px;
}
.rack-device .break-pad-bank {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: 3px;
  max-height: 132px;
  overflow: auto;
  scrollbar-color: #735342 #191410;
}
.rack-device .break-slice {
  padding: 4px 1px;
  min-width: 0;
  min-height: 25px;
  border: 1px solid #5b4a40;
  border-radius: 2px;
  background: linear-gradient(#3c332d, #2a2520);
  color: #f9e3cd;
  font:
    600 10px/1 ui-monospace,
    monospace;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px #ffffff12;
}
.rack-device .break-slice.muted-slice {
  text-decoration: line-through;
}
.rack-device .break-slice:focus-visible {
  outline-offset: -2px;
}
.rack-device .break-performance {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--plate-edge);
}
.rack-device .break-perf-keys,
.rack-device .break-perf-dials,
.rack-device .break-kit-tools,
.rack-device .break-file-tools {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}
.rack-device .break-perf-dials {
  width: 100%;
  justify-content: space-between;
}
.rack-device .break-perf-dials .face-control {
  min-width: 27px;
}
.rack-device .break-perf-dials .rotary {
  width: clamp(29px, 3.2cqw, 41px);
  height: clamp(29px, 3.2cqw, 41px);
}
.rack-device .break-fields,
.rack-device .break-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  align-items: center;
}
.rack-device .break-mode {
  gap: 4px;
}
.rack-device .break-fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
}
.rack-device .break-fields :is(input, select),
.rack-device .break-mode select {
  max-width: 100%;
  min-height: 24px;
  color: var(--plate-ink);
  background: #1a1512;
  padding: 3px;
  border: 1px solid #685548;
  border-radius: 2px;
  font-family: inherit;
  font-size: 11px;
  line-height: 1.2;
  color-scheme: dark;
  accent-color: var(--device-color);
}
.rack-device .break-fields input {
  width: 76px;
}
.rack-device .break-empty {
  display: flex;
  min-height: 100px;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 12px;
  background: #11100e;
  border: 1px dashed #695448;
  color: var(--plate-muted);
  font-size: 13px;
}
.rack-device .break-file-tools,
.rack-device .break-kit-tools {
  margin-top: 8px;
}
.rack-device .break-file-tools {
  justify-content: flex-end;
}
@container hardware (max-width: 810px) {
  .rack-device .break-slot-bank {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .rack-device .break-slot {
    min-height: 30px;
    gap: 4px;
    padding: 4px 5px;
  }
  .rack-device .break-workbench {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .rack-device .break-performance {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    border: 0;
    padding: 0;
  }
  .rack-device .break-perf-dials {
    width: auto;
    gap: 9px;
  }
  .rack-device .break-performance > .break-action {
    margin-left: auto;
  }
}
@container hardware (max-width: 540px) {
  .rack-device .face-hardware.octobreak-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    padding: 10px 20px 7px;
  }
  .rack-device .octobreak-header .plate-name {
    grid-area: 1 / 1;
  }
  .rack-device .octobreak-header .name-ink {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }
  .rack-device .octobreak-header .front-jack {
    grid-area: 1 / 2;
    flex-direction: row;
    min-height: 0;
  }
  .rack-device .octobreak-header .face-clock-status {
    display: none;
  }
  .rack-device .octobreak-header .break-bank {
    grid-area: 2 / 1 / 3 / -1;
  }
  .rack-device .break-workbench,
  .rack-device .dnb-break-source {
    margin-inline: 20px;
  }
  .rack-device .break-pad-bank {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
  .rack-device .break-slice {
    min-height: 28px;
  }
  .rack-device .break-perf-keys {
    width: 100%;
  }
  .rack-device .break-mode {
    margin-left: auto;
  }
  .rack-device .kit-program-head:has(.break-action) {
    flex-wrap: wrap;
  }
  .rack-device .break-action {
    min-height: 27px;
  }
}
.rack-device .break-slice.sounding-break {
  box-shadow: inset 0 -4px #a3e9ce;
  border-color: #a3e9ce;
}
.rack-device .break-slot.sounding-break .slot-cap i {
  background: #a3e9ce;
  border-color: #193c31;
}
.rack-device .sounding-slice-region {
  fill: #e7ffaf;
  fill-opacity: 0.23;
  pointer-events: none;
}

.rack-device[data-type="tr808"] {
  --plate-ground: #221e1b;
  --plate-edge: #655047;
  --plate-ink: #fff2df;
  --plate-muted: #d8c4ad;
}
.rack-device[data-type="tr808"] .voice-bank {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}
.rack-device[data-type="tr808"] .voice-key {
  min-height: 33px;
  line-height: 1.12;
  gap: 3px;
}
.rack-device[data-type="tr808"] .kit-steps {
  --rhythm-beat: #f1836d;
}
.rack-device[data-type="tr808"] .step-pad:nth-child(n + 5) { --rhythm-beat: #f2a567; }
.rack-device[data-type="tr808"] .step-pad:nth-child(n + 9) { --rhythm-beat: #eccb76; }
.rack-device[data-type="tr808"] .step-pad:nth-child(n + 13) { --rhythm-beat: #e9dec9; }
.rack-device[data-type="tr808"] .kit-steps .pad-face {
  border-top: 2px solid color-mix(in srgb, var(--rhythm-beat) 70%, #251c17);
}
.rack-device[data-type="tr808"] .kit-steps .active .pad-face {
  background: var(--rhythm-beat);
}
.rack-device .rhythm-accents {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 9px;
  margin-top: 8px;
}
.rack-device .rhythm-accent-keys {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  flex: 1 1 430px;
  gap: 3px;
}
.rack-device .rhythm-accent-keys .panel-key {
  min-width: 0;
  min-height: 21px;
  padding: 2px 0;
  font: 9px ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

.rack-device[data-type="monologue"] {
  --plate-ground: #22201c;
  --plate-edge: #615741;
  --plate-muted: #dbcbb0;
  --plate-ink: #fff1d8;
}
.rack-device[data-type="serum"] {
  --plate-ground: #111e22;
  --plate-edge: #32525b;
  --plate-muted: #b5d2d7;
  --plate-ink: #e5faff;
}
.rack-device[data-type="chord-seq"] {
  --plate-ground: #1c1926;
  --plate-edge: #504661;
  --plate-muted: #cec3e3;
  --plate-ink: #f6f0ff;
}
.rack-device[data-type="chroma"] {
  --plate-ground: #28211f;
  --plate-edge: #685349;
  --plate-muted: #decdbd;
  --plate-ink: #fff5e8;
}
.rack-device .studio-header .plate-name {
  flex-basis: 19%;
  max-width: 195px;
}
.rack-device .studio-voice-main,
.rack-device .chord-setup,
.rack-device .chroma-global {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 9px clamp(9px, 2cqw, 24px);
}
.rack-device .studio-voice-main {
  flex-wrap: nowrap;
}
.rack-device .studio-preview {
  flex: 1 1 112px;
  min-width: 67px;
  max-width: 230px;
}
.rack-device .studio-scope-head {
  margin-bottom: 4px;
}
.rack-device .studio-audition {
  margin-top: 4px;
  min-height: 21px;
}
.rack-device .studio-audition .face-icon {
  width: 11px;
  height: 11px;
}
.rack-device .studio-scope {
  height: 50px;
  background-color: color-mix(in srgb, var(--device-color) 4%, #060a0b);
}
.rack-device .studio-scope path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.rack-device .studio-scope text {
  font: 10px ui-monospace, monospace;
  fill: currentColor;
}
.rack-device .studio-scope .reference-axis,
.rack-device .studio-scope .table-frame {
  stroke-width: 0.75;
  opacity: 0.45;
}
.rack-device .studio-scope .selected-frame {
  stroke: #d4fcff;
  stroke-width: 1.7;
}
.rack-device .studio-preset {
  flex: 0 1 145px;
  align-items: start;
  min-width: 108px;
}
.rack-device .studio-preset select {
  width: 100%;
  text-align: start;
}
.rack-device .studio-macros,
.rack-device .studio-band-controls,
.rack-device .chord-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px clamp(8px, 1.5cqw, 18px);
}
.rack-device .studio-macros {
  flex: 1 0 auto;
  justify-content: space-evenly;
}
.rack-device .studio-band-strip,
.rack-device .chord-bank,
.rack-device .chroma-chain {
  margin: 0 calc(var(--rail-width) + 12px) 6px;
}
.rack-device .studio-band-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px clamp(12px, 3cqw, 36px);
  border-block: 1px solid var(--plate-edge);
  padding: 7px 0;
}
.rack-device .band-legend {
  display: grid;
  gap: 4px;
}
.rack-device .band-legend > span:last-child {
  color: var(--plate-muted);
  font: 9px/1.25 ui-monospace, monospace;
}
.rack-device .studio-band-controls {
  flex: 1 1 auto;
  justify-content: space-between;
  max-width: 520px;
}
.rack-device .chord-bank {
  display: grid;
  grid-template-columns: repeat(var(--chord-count), minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  background: #0e0b14;
  border: 1px solid #383144;
  border-radius: 3px;
}
.rack-device .chord-cell {
  min-width: 0;
  position: relative;
  display: grid;
  align-content: start;
  gap: 4px;
  background: #292432;
  border: 1px solid #51475e;
  padding: 4px 5px 6px;
}
.rack-device .chord-cell.playing {
  box-shadow: inset 0 -3px #efe4ff;
}
.rack-device .chord-gate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 2px 1px;
  min-height: 20px;
  background: transparent;
  border: 0;
  color: var(--plate-muted);
  font: 600 10px/1 ui-monospace, monospace;
}
.rack-device .chord-gate i {
  width: 7px;
  height: 7px;
  border: 1px solid var(--plate-muted);
  border-radius: 50%;
}
.rack-device .chord-gate[aria-pressed="true"] i {
  background: var(--device-color);
  border-color: var(--device-color);
}
.rack-device .chord-cell .selector-control {
  min-width: 0;
  align-items: stretch;
}
.rack-device .chord-degree select,
.rack-device .chord-inversion select {
  width: 100%;
  padding: 2px 0;
  text-align: start;
}
.rack-device .chord-degree select {
  font-size: 15px;
  color: var(--plate-ink);
  border-color: transparent;
  background: #211c2a;
  box-shadow: none;
}
.rack-device .chord-inversion select {
  font-size: 9px;
}
.rack-device .chord-pitches {
  min-height: 1.3em;
  color: var(--plate-muted);
  font: 9px/1.3 ui-monospace, monospace;
}
.rack-device .chord-rest {
  background: #1a181f;
}
.rack-device .chord-rest .chord-pitches {
  font-style: italic;
}
.rack-device .chord-playback,
.rack-device .chord-bank .generated-caption,
.rack-device .chord-bank[data-generated] .chord-cell > :not(.chord-playback) {
  display: none;
}
.rack-device .chord-bank[data-generated] .generated-caption {
  display: block;
  grid-column: 1 / -1;
  padding: 5px;
}
.rack-device .chord-bank[data-generated] .chord-playback {
  display: grid;
  gap: 6px;
  min-height: 64px;
}
.rack-device .chord-playback > span {
  font: 10px/1 ui-monospace, monospace;
  color: var(--plate-muted);
}
.rack-device .chord-generate .face-icon {
  width: 13px;
  height: 13px;
}
.rack-device .chroma-chain {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--plate-edge);
  padding-block: 7px;
  margin-bottom: 12px;
}
.rack-device .chroma-stage {
  min-width: 0;
  padding-inline: clamp(5px, 1.3cqw, 18px);
}
.rack-device .chroma-stage + .chroma-stage {
  border-left: 1px solid var(--plate-edge);
}
.rack-device .chroma-stage[data-stage="character"] { --stage-ink: #ffa183; }
.rack-device .chroma-stage[data-stage="movement"] { --stage-ink: #e5cf80; }
.rack-device .chroma-stage[data-stage="diffusion"] { --stage-ink: #9ad7d3; }
.rack-device .chroma-stage[data-stage="texture"] { --stage-ink: #c5b1e6; }
.rack-device .chroma-stage > header {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--stage-ink);
  border-bottom: 1px solid color-mix(in srgb, var(--stage-ink) 45%, var(--plate-ground));
  padding-bottom: 5px;
}
.rack-device .stage-index {
  font: 10px/1 ui-monospace, monospace;
}
.rack-device .chroma-stage h3 {
  margin: 0;
  font: 650 13px/1.2 "Space Grotesk", sans-serif;
}
.rack-device .stage-strip-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: 6px;
}
.rack-device .stage-strip-controls .selector-control {
  align-items: start;
  min-width: 0;
}
.rack-device .chroma-stage .dial-disc i:after { background: var(--stage-ink); }
.rack-device .chroma-stage[data-bypassed="true"] h3 {
  color: var(--plate-muted);
}
@container hardware (max-width: 800px) {
  .rack-device .studio-voice-main { flex-wrap: wrap; }
  .rack-device .studio-preset { flex: 1 1 112px; }
  .rack-device[data-type="serum"] .studio-macros { flex-basis: 100%; }
  .rack-device .chord-bank { grid-template-columns: repeat(min(var(--chord-count), 4), minmax(0, 1fr)); }
}
@container hardware (max-width: 620px) {
  .rack-device .chroma-chain { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .rack-device .chroma-stage:nth-child(3) { border-left: 0; }
}
@container hardware (max-width: 540px) {
  .rack-device .face-hardware.studio-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    padding: 13px 20px 10px;
  }
  .rack-device .studio-header .plate-name { grid-area: 1 / 1; min-width: 0; }
  .rack-device .studio-header .front-jack {
    grid-area: 1 / 2;
    min-height: 0;
    flex-direction: row;
    align-self: end;
  }
  .rack-device .studio-header :is(.studio-voice-main, .chroma-global, .chord-setup) {
    grid-area: 2 / 1 / 3 / -1;
    width: 100%;
  }
  .rack-device .studio-header .face-clock-status { display: none; }
  .rack-device .studio-header .face-name { font-size: 23px; }
  .rack-device .studio-header .face-clock { margin-top: 0; }
  .rack-device .studio-band-strip,
  .rack-device .chord-bank,
  .rack-device .chroma-chain { margin-inline: 20px; }
  .rack-device .studio-band-strip { gap: 7px; }
  .rack-device .band-legend { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
  .rack-device .studio-band-controls {
    flex-basis: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
  }
  .rack-device .studio-band-controls .selector-control,
  .rack-device .chroma-global .selector-control {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
  }
  .rack-device .studio-header .chroma-global {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .rack-device[data-type="tr808"] .voice-bank { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rack-device .rhythm-accent-keys { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .rack-device .chord-bank { grid-template-columns: repeat(min(var(--chord-count), 3), minmax(0, 1fr)); }
}
@container hardware (max-width: 405px) {
  .rack-device .chord-bank { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rack-device .stage-strip-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 7px;
  }
  .rack-device .stage-strip-controls .selector-control { width: 100%; align-items: stretch; }
  .rack-device .stage-strip-controls .dial-control { justify-self: center; }
  .rack-device .chroma-stage { padding-inline: 5px; }
  .rack-device .chroma-global, .rack-device .chord-setup { column-gap: 9px; }
}
