.knob-control {
  --knob-angle: -135deg;
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 9px;
  width: 102px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
}

.knob-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.knob-face {
  position: relative;
  display: block;
  width: 79px;
  height: 79px;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: repeating-conic-gradient(from -135deg, #fff 0 9deg, #f1f2f1 9deg 13deg, #fff 13deg 18deg);
  cursor: grab;
  touch-action: none;
}

.knob-face::before,
.knob-face::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 11px;
  background: var(--soft-line);
  top: 5px;
  left: 50%;
  transform-origin: 50% 34px;
  z-index: 3;
}

.knob-pointer {
  position: absolute;
  top: 7px;
  left: calc(50% - 1.5px);
  width: 3px;
  height: 34px;
  transform: rotate(var(--knob-angle));
  transform-origin: 50% 32px;
  background: var(--line);
  z-index: 2;
}

.knob-control.dragging .knob-face {
  cursor: grabbing;
  background-color: #f5f7f6;
}

.unipolar .knob-face::before {
  transform: translateX(-50%) rotate(-135deg);
}

.unipolar .knob-face::after {
  transform: translateX(-50%) rotate(135deg);
}

.bipolar .knob-face::before {
  transform: translateX(-50%) rotate(-135deg);
}

.bipolar .knob-face::after {
  transform: translateX(-50%) rotate(135deg);
}

.bipolar::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  width: 2px;
  height: 11px;
  transform: translateX(-50%);
  background: var(--soft-line);
  z-index: 4;
  pointer-events: none;
}

.knob-label {
  min-height: 40px;
}

.fader-control {
  position: relative;
  display: grid;
  justify-items: center;
  padding-top: 24px;
  min-height: 540px;
  --fader: 0.5;
}

.fader-input {
  position: absolute;
  width: 112px;
  height: 442px;
  opacity: 0;
  pointer-events: none;
}

.fader-rail {
  position: relative;
  width: 20px;
  height: 442px;
  border: 3px solid var(--line);
  background: #fff;
  cursor: ns-resize;
  touch-action: none;
}

.fader-handle {
  position: absolute;
  left: 50%;
  bottom: calc((100% - 48px) * var(--fader));
  width: 88px;
  height: 48px;
  transform: translateX(-50%);
  border: 3px solid var(--line);
  background: #fff;
  cursor: grab;
}

.fader-control.dragging .fader-handle {
  cursor: grabbing;
  background: #e9ecea;
}

.deck-loop-led {
  position: absolute;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 18px;
}

.vu-meter {
  display: grid;
  align-content: center;
  gap: 11px;
  min-height: 540px;
  padding-top: 58px;
}

.vu-segment,
.status-dot,
.button-led {
  position: relative;
  display: inline-block;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.vu-segment::after,
.status-dot::after,
.button-led::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: transparent;
}

.vu-segment {
  width: 22px;
  height: 13px;
  border-radius: 4px;
}

.status-dot,
.button-led {
  width: 17px;
  height: 17px;
}

.vu-segment.green.lit,
.status-dot.active,
.button-led.active {
  background: #fff;
}

.vu-segment.green.lit::after,
.status-dot.active::after,
.button-led.active::after {
  background: var(--green);
}

.vu-segment.amber.lit::after {
  background: var(--amber);
}

.vu-segment.red.lit,
.status-dot.danger {
  background: #fff;
}

.vu-segment.red.lit::after,
.status-dot.danger::after {
  background: var(--red);
}

.clock-block {
  display: grid;
  gap: 12px;
  justify-items: center;
  align-content: center;
  color: var(--muted);
  font-size: 18px;
  font-weight: 900;
}

.loop-button {
  align-self: start;
  width: 118px;
  height: 66px;
  margin-top: 24px;
  border: 3px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
}

.loop-button.active,
.loop-button:active {
  background: #d7d9d8;
}

.length-row {
  align-self: start;
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(3, 52px);
  gap: 14px;
  justify-content: center;
  width: 184px;
}

.length-control {
  display: grid;
  gap: 8px;
  justify-items: center;
  width: 52px;
  margin: 0;
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.length-button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 56px;
  border: 3px solid var(--line);
  background: #fff;
  font-size: 20px;
}

.length-control.selected .length-button {
  background: #d7d9d8;
}
