/* Model V — black panel, cream knob caps, teal for the vector mix (Prophet VS spirit). */

.mv {
  --ink: #ecebe6;
  --ink-dim: #8e9196;
  --line: rgba(236, 235, 230, 0.4);
  --accent: #46c8d8;
  position: relative;
  width: max-content;
  padding: 10px 12px 0;
  border-radius: 8px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #1c1d1f, #111213);
  border: 2px solid #3b3d40;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.12),
    0 26px 34px rgba(0, 0, 0, 0.55),
    0 5px 10px rgba(0, 0, 0, 0.45);
  color: var(--ink);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.mv-top { display: flex; gap: 10px; }
.mv-sound { display: flex; flex-direction: column; }
.mv .syn-part { display: flex; flex-direction: column; gap: 8px; }
.mv-line { display: flex; gap: 8px; }
.mv-line > .mv-sec { flex: 1 1 auto; }
/* Beside the two lines: KEY MODE · VOICE by the upper one, MASTER by the lower one. */
.mv-global { display: grid; grid-template-rows: 1.62fr 1fr; gap: 8px; }
.mv-global .mv-body { justify-content: center; align-items: center; flex-wrap: wrap; }

.mv-sec {
  display: flex;
  flex-direction: column;
  padding: 0 7px 7px;
  border: 1px solid #34363a;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
}
.mv-title {
  margin: 0 0 6px;
  padding: 5px 2px 4px;
  border-bottom: 1px solid var(--line);
  font: 800 8.5px/1 var(--font);
  letter-spacing: 0.24em;
  white-space: nowrap;
}
.mv-body { display: flex; align-items: flex-end; gap: 8px; flex: 1; }
.mv-col { display: flex; flex-direction: column; gap: 4px; }
.mv-row { display: flex; align-items: flex-end; gap: 2px; }

/* Oscillators: A to D one above the other, filling the line's height. */
.mv-osc-sec .mv-body { align-items: stretch; }
.mv-oscs { display: flex; flex-direction: column; justify-content: space-around; gap: 4px; }
.mv-osc { display: flex; align-items: center; gap: 4px; }
.mv-osc-letter {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #0d1416;
  font: 900 12px var(--font);
}
.mv-wave { display: flex; align-items: center; gap: 2px; }
.mv-step {
  width: 18px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: #2b2d30;
  color: var(--ink-dim);
  font-size: 9px;
  cursor: pointer;
}
.mv-step:hover { color: var(--ink); }
.mv-wave-show {
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 6px;
  width: 136px;
  height: 34px;
  padding: 2px 6px;
  border: 0;
  border-radius: 3px;
  background: radial-gradient(ellipse at 50% 40%, #0a201c, var(--vfd-bg));
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6);
  color: var(--vfd);
  text-align: left;
  cursor: pointer;
}
.mv-wave-show:focus-visible, .mv-step:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.mv-thumb { grid-row: 1 / 3; width: 52px; height: 26px; }
.mv-thumb polyline, .mv-pick polyline { fill: none; stroke: var(--vfd); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.mv-wave-num { font: 700 9px var(--mono); opacity: 0.7; }
.mv-wave-name { font: 700 10px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0 5px var(--vfd-dim); }

/* The mix: the vector pad and its envelope's controls. */
ws-vector-pad { display: block; width: 260px; height: 220px; }
.vp-svg { display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.vp-diamond { fill: rgba(70, 200, 216, 0.06); stroke: rgba(70, 200, 216, 0.6); stroke-width: 1.2; }
.vp-axis { stroke: rgba(255, 255, 255, 0.1); stroke-dasharray: 2 3; }
.vp-corner { font: 800 9px var(--font); fill: var(--ink); }
.vp-letter { fill: var(--accent); font-size: 11px; }
.vp-wave { font: 600 7.5px var(--mono); fill: var(--ink-dim); }
.vp-path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.vp-release { stroke: rgba(255, 255, 255, 0.4); stroke-width: 1.2; stroke-dasharray: 3 3; }
.vp-loop { stroke: #ffd56a; stroke-width: 1.4; stroke-dasharray: 5 3; }
.vp-loop.bf { stroke-dasharray: 2 2; }
.vp-point { cursor: grab; outline: none; }
.vp-point .hit { fill: transparent; }
.vp-point .dot { fill: #0f2a2e; stroke: var(--accent); stroke-width: 1.6; }
.vp-point .num { font: 800 8px var(--font); fill: var(--ink); pointer-events: none; }
.vp-point:focus-visible .dot { stroke: var(--focus); stroke-width: 2.4; }
.vp-joy { cursor: move; outline: none; }
.vp-joy-ring { fill: rgba(255, 255, 255, 0.08); stroke: #f4f1e6; stroke-width: 1.4; }
.vp-joy-cross { stroke: #f4f1e6; stroke-width: 1; }
.vp-joy:focus-visible .vp-joy-ring { stroke: var(--focus); stroke-width: 2.4; }
.vp-live { fill: #ffef8a; opacity: 0; transition: opacity 0.2s; filter: drop-shadow(0 0 4px rgba(255, 239, 138, 0.9)); pointer-events: none; }
.vp-live.on { opacity: 1; }
ws-vector-pad.dragging .vp-svg { cursor: grabbing; }
.mv-mix-ctl { display: flex; flex-direction: column; gap: 2px; }

.mv-env { width: 240px; --se-line: var(--accent); --se-fill: rgba(70, 200, 216, 0.14); }
.mv-routes { display: grid; grid-template-columns: repeat(2, auto); gap: 4px 12px; }
/* Beside the mix: the four routes one above the other. */
.mv-mod-sec .mv-body { align-items: stretch; }
.mv-mod-sec .mv-routes { display: flex; flex-direction: column; justify-content: space-around; }
.mv-route { display: flex; align-items: flex-end; gap: 1px; }
.mv-route-num { align-self: center; font: 800 10px var(--mono); color: var(--accent); }

.mv ws-knob.size-xs { --k: 38px; width: 48px; }
.mv ws-knob.size-xs .ctl-label { font-size: 7px; min-height: 16px; }
.mv ws-knob.size-s { --k: 50px; width: 58px; }
.mv ws-knob .knob-body .cap { fill: url(#ws-knob-cap-cream); }
.mv ws-knob .knob-body .pointer { stroke: #1d1b16; }
.mv ws-led-button { --led: #46c8d8; --led-glow: rgba(70, 200, 216, 0.75); width: 48px; }
.mv ws-led-button .ctl-label { min-height: 12px; font-size: 7px; }
.mv .power { margin-left: 4px; }

.mv .syn-part[data-part="b"] { position: relative; }
.mv .syn-part[data-part="b"]::before {
  content: "SOUND B";
  position: absolute;
  top: -8px;
  right: 6px;
  z-index: 1;
  padding: 1px 6px;
  border-radius: 2px;
  background: #e8c85a;
  color: #111;
  font: 800 7.5px var(--font);
  letter-spacing: 0.18em;
}

/* The wave picker: all 128 with their shapes. */
.mv-picker {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 10px;
  z-index: 5;
  max-height: 520px;
  overflow: auto;
  padding: 10px;
  border-radius: 6px;
  background: #0d0e10;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px #34363a;
}
.mv-picker[hidden] { display: none; }
.mv-picker-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font: 800 9px var(--font); letter-spacing: 0.2em; }
.mv-close { padding: 4px 10px; border: 0; border-radius: 3px; background: #2b2d30; color: var(--ink); font: 700 8px var(--font); letter-spacing: 0.14em; cursor: pointer; }
.mv-picker-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.mv-pick {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  padding: 4px;
  border: 0;
  border-radius: 3px;
  background: #16181a;
  color: var(--ink-dim);
  font: 600 8px var(--mono);
  text-align: left;
  cursor: pointer;
}
.mv-pick svg { width: 100%; height: 22px; }
.mv-pick span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-pick b { color: var(--accent); }
.mv-pick:hover, .mv-pick:focus-visible { background: #22272b; color: var(--ink); outline: none; }
.mv-pick.selected { box-shadow: inset 0 0 0 1px var(--accent); color: var(--ink); }

/* --------------------------------------------------------------- strip */

/* At the top (the jacks on the upper edge, so cables don't cross the panel). */
.mv-strip { display: flex; align-items: center; gap: 18px; margin: -10px -12px 10px; padding: 10px 16px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #1f2023, #16171a); border-bottom: 1px solid #34363a; }
.mv-logo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; width: 230px; }
.mv-wordmark { font: 700 22px/1 var(--logo-font); color: #e6e5df; }
.mv-model { font: 800 21px/1 var(--font); letter-spacing: 0.12em; color: var(--accent); }
.mv-sub { flex-basis: 100%; font: 700 7px var(--font); letter-spacing: 0.26em; color: #8a8d92; }
.mv .preset-bar { margin-left: auto; }
.mv .vfd { width: 280px; }
.mv .scope-wrap { width: 180px; }

/* -------------------------------------------------------------- keybed */

.mv-keybed {
  display: flex;
  gap: 14px;
  margin: 0 -12px;
  padding: 12px 14px 0;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, #050505, #111 30%, #0c0c0c);
  box-shadow: inset 0 8px 14px rgba(0, 0, 0, 0.9);
}
/* BEND above the pitch wheel, HOLD above the mod wheel. */
.mv-left {
  display: grid;
  grid-template-columns: repeat(2, auto);
  align-content: end;
  align-items: end;
  justify-content: center;
  justify-items: center;
  gap: 8px 16px;
  width: 150px;
  flex: none;
  padding-bottom: 12px;
}
.mv-left .wheels { display: contents; }
.mv ws-keyboard { height: 170px; border-top-color: #1b4a52; }
