/* Model 5 — black panel with framed sections and red-LED buttons between walnut
   ends (Prophet-5 spirit). */

.m5 {
  --ink: #eef1f6;
  --ink-dim: #9aa3ae;
  --line: rgba(214, 224, 240, 0.55);
  display: flex;
  align-items: stretch;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6)) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  color: var(--ink);
}

.m5-cheek {
  width: 38px;
  flex: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='700'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.25 0.007' numOctaves='4' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 0.2  0 0 0 0 0.1  0 0 0 0 0.04  1.6 0 0 0 -0.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E") 0 0 / 100% 100%,
    linear-gradient(90deg, #4a2a14 0%, #8a5532 25%, #9c6640 50%, #7b4a28 78%, #42240f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 220, 180, 0.25), inset 0 -2px 4px rgba(0, 0, 0, 0.5);
}
.m5-cheek-l { border-radius: 12px 0 0 10px; }
.m5-cheek-r { border-radius: 0 12px 10px 0; }

.m5-case { display: flex; flex-direction: column; background: #0b0b0b; }

/* --------------------------------------------------------------- panel */

.m5-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px 12px;
  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.045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #19191a, #0f0f10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.m5-line { display: flex; align-items: stretch; gap: 10px; }
.m5-line > .m5-sec { flex: 1 1 auto; }

.m5-sec {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 8px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.m5-title {
  margin: -1px 0 6px;
  padding: 3px 12px 3px;
  border-radius: 0 0 3px 3px;
  background: #e5ebf4;
  color: #0c0d0f;
  font: 800 8.5px/1 var(--font);
  letter-spacing: 0.22em;
  white-space: nowrap;
}
.m5-body { display: flex; align-items: flex-end; justify-content: space-evenly; gap: 2px; flex: 1; width: 100%; }
.m5-group { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 3px; }
.m5-sub {
  padding: 0 4px 2px;
  border-bottom: 1px solid var(--line);
  font: 700 6.5px var(--font);
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  white-space: nowrap;
}
.m5-row { display: flex; align-items: flex-end; gap: 2px; }

.m5 ws-knob.size-s { --k: 50px; width: 58px; }
.m5 ws-knob.size-m { --k: 64px; width: 72px; }
.m5 ws-led-button { --led: #ff2a1a; width: 42px; }
.m5-master .m5-body { align-items: center; gap: 6px; }
.m5-master .power { margin-left: 4px; }

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

/* At the top (the jacks on the upper edge, so cables don't cross the panel). */
.m5-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 18px;
  background: linear-gradient(180deg, #1d1e20, #131315);
  border-top: 1px solid #2d2e31;
  border-bottom: 1px solid #000;
}
.m5-logo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; width: 250px; }
.m5-wordmark { font: 700 22px/1 var(--logo-font); letter-spacing: -0.01em; color: #dfe3e8; }
.m5-model { font: 800 20px/1 var(--logo-font); letter-spacing: 0.08em; color: #ff4a36; }
.m5-sub-logo { flex-basis: 100%; font: 700 7px var(--font); letter-spacing: 0.26em; color: #8d949c; }
.m5 .preset-bar { margin-left: auto; }
.m5 .vfd { width: 280px; }
.m5 .scope-wrap { width: 170px; }
.m5 .voice-leds { justify-content: space-evenly; }

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

.m5-keybed {
  display: flex;
  gap: 14px;
  padding: 12px 14px 0;
  background: linear-gradient(180deg, #050505, #111 30%, #0c0c0c);
  box-shadow: inset 0 8px 14px rgba(0, 0, 0, 0.9);
}
.m5-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 186px;
  flex: none;
  padding-bottom: 12px;
}
.m5-perf { gap: 6px; }
.m5 ws-keyboard { height: 180px; }
