/* ARP-1 — compact desktop unit: dark anodised top plate with orange accents. */

.arp {
  --ink: #eef0f2;
  --ink-dim: #8e959d;
  --line: rgba(238, 240, 242, 0.5);
  --accent: #ef7d2d;

  position: relative;
  width: max-content;
  padding: 14px 22px 20px;
  border-radius: 12px;
  border: 1px solid #08090a;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #34383e 0%, #25282d 45%, #1d1f23 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -3px 0 rgba(0, 0, 0, 0.35),
    0 26px 34px rgba(0, 0, 0, 0.55),
    0 5px 9px rgba(0, 0, 0, 0.45);
}
/* orange pin-stripe along the front edge */
.arp::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 9px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(239, 125, 45, 0.15));
}

.arp-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 8px;
}
.arp-brand { display: flex; align-items: baseline; gap: 10px; }
.arp-logo {
  font: 700 26px/1 var(--logo-font);
  letter-spacing: 0.02em;
  color: #f4f4f2;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}
.arp-sub { font: 700 9px var(--font); letter-spacing: 0.36em; color: var(--accent); }
.arp-jacks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-left: 4px;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.05);
}

.arp-body {
  display: flex;
  align-items: center;
  gap: 18px;
}

.arp-display {
  display: flex;
  flex-direction: column;
  flex: none;
  width: 150px;
  height: 116px;
  padding: 10px 12px;
  border-radius: 6px;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 35%, #0a201c, var(--vfd-bg));
  box-shadow: inset 0 2px 7px rgba(0, 0, 0, 0.95), 0 0 0 2px #121417, 0 1px 0 2px rgba(255, 255, 255, 0.08);
  color: var(--vfd);
  font-family: var(--mono);
  text-shadow: 0 0 7px rgba(125, 255, 224, 0.7);
  transition: opacity 0.2s;
}
.arp-note {
  min-height: 38px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.arp-info {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  font-size: 10px;
  letter-spacing: 0.08em;
  opacity: 0.75;
}
.arp-steps {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
}
.arp-steps .step {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(125, 255, 224, 0.14);
  box-shadow: none;
}
.arp-steps .step.on { background: var(--vfd); box-shadow: 0 0 8px 2px rgba(125, 255, 224, 0.6); }
.device-arpeggiator.is-thru .arp-display { opacity: 0.55; }

.arp-controls {
  display: flex;
  align-items: center;
  gap: 2px;
}
.arp-controls ws-knob { --k: 70px; }
/* ARP on the left; LATCH and SYNC stacked beside it (the panel stays as wide as with two switches). */
.arp-switches { display: grid; grid-template-columns: auto auto; align-items: center; gap: 2px 10px; margin-left: 6px; }
.arp-switches > :first-child { grid-row: span 2; }
