/* F-RED — flat panel, light rounded controls */
.sdpro-instr-slot.sdpro-melodin-synth {
  position: relative;
  width: min(840px, 72vw);
  min-width: 600px;
  max-width: none;
  height: 220px;
  min-height: 220px;
  max-height: 220px;
  padding: 8px 10px;
  overflow: hidden;
  background: #141416;
  border: 1px solid #2a2a2e;
  border-radius: 6px;
  box-shadow: none;
  filter: none;
}
.sdpro-instr-slot.sdpro-melodin-synth .sdpro-fx-quick {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  flex: 1 1 auto;
}
.sdpro-fx-chain { overflow-y: hidden; align-items: stretch; }

.msynth,
.msynth * {
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  transition: none !important;
}
.msynth {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 204px;
  max-height: 204px;
  overflow: hidden;
  color: #d8d8dc;
  font-size: 11px;
  user-select: none;
}
.msynth-head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  flex-shrink: 0;
  padding-bottom: 8px;
  margin-bottom: 2px;
  border-bottom: 1px solid #2a2a2e;
}
.msynth-brand { line-height: 1; margin-right: 4px; }
.msynth-logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 10px;
  color: #e24a4a;
}
.msynth-sub {
  font-size: 8px;
  letter-spacing: 0.1em;
  color: #8a8a90;
  font-weight: 600;
}
.msynth-sel {
  height: 22px;
  background: #0c0c0e;
  color: #d8d8dc;
  border: 1px solid #2a2a2e;
  border-radius: 4px;
  font: inherit;
  font-size: 10px;
  padding: 0 4px;
}
.msynth-sel-wide { min-width: 128px; }
.msynth-lcd {
  flex: 1;
  min-width: 64px;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  background: #0c0c0e;
  border: 1px solid #2a2a2e;
  color: #c9a05a;
  font: 600 11px/22px ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.msynth-test {
  height: 22px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: #c42e2e;
  color: #fff;
  font: 700 10px/1 inherit;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.msynth-test:hover { background: #d63a3a; }
.msynth-remove {
  width: 22px;
  height: 22px;
  border: 1px solid #2a2a2e;
  background: #0c0c0e;
  color: #8a8a90;
  font: 700 14px/1 inherit;
  cursor: pointer;
  border-radius: 4px;
}
.msynth-remove:hover { color: #fff; }
.msynth-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 2px;
  padding-bottom: 2px;
}
.msynth-tabs {
  display: flex;
  gap: 0;
  background: #0c0c0e;
  border: 1px solid #2a2a2e;
  border-radius: 4px;
  overflow: hidden;
}
.msynth-tab {
  height: 20px;
  padding: 0 9px;
  border: 0;
  background: transparent;
  color: #7a7a80;
  font: 700 10px/1 inherit;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.msynth-tab:hover { color: #fff; }
.msynth-tab.is-on {
  background: #c42e2e;
  color: #fff;
}
.msynth-ai { display: flex; gap: 4px; margin-left: auto; }
.msynth-ai-in {
  width: 168px;
  height: 22px;
  border: 1px solid #2a2a2e;
  border-radius: 4px;
  background: #0c0c0e;
  color: #fff;
  font: inherit;
  font-size: 10px;
  padding: 0 6px;
}
.msynth-ai-go {
  height: 22px;
  padding: 0 8px;
  border: 1px solid #2a2a2e;
  background: #0c0c0e;
  color: #c9a05a;
  font: 700 10px/1 inherit;
  cursor: pointer;
  border-radius: 4px;
}
.msynth-body {
  display: grid;
  grid-template-columns: 1fr 132px;
  gap: 8px;
  min-height: 0;
  flex: 1 1 auto;
}
.msynth-pages { min-width: 0; min-height: 0; overflow: hidden; }
.msynth-page { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.msynth-page[hidden] { display: none !important; }
.msynth-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.msynth-kicker {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a7a80;
}
.msynth-chips, .msynth-row {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.msynth-chip, .msynth-tog {
  height: 18px;
  padding: 0 6px;
  border-radius: 4px;
  border: 1px solid #2a2a2e;
  background: #0c0c0e;
  color: #b4b4ba;
  font: 700 9px/1 inherit;
  cursor: pointer;
}
.msynth-chip.is-on, .msynth-tog.is-on {
  background: #c42e2e;
  border-color: #c42e2e;
  color: #fff;
}
.msynth-knobs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: flex-start;
  padding-top: 2px;
  position: relative;
  z-index: 0;
}
.msynth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-height: 0;
}
.msynth-split-3 { grid-template-columns: 1.15fr 1.15fr 0.9fr; }
.msynth-pot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 36px;
}
.msynth-pot-dial {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1c1c20;
  border: 1px solid #3a3a40;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  cursor: ns-resize;
  touch-action: none;
}
.msynth-pot-needle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 9px;
  margin-left: -1px;
  margin-top: -9px;
  background: #e8e8ec;
  transform-origin: 50% 100%;
  pointer-events: none;
}
.msynth-pot-lab {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a7a80;
}
.msynth-pot-val {
  font-size: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #c8c8ce;
}
.msynth-macros {
  border-left: 1px solid #2a2a2e;
  padding-left: 8px;
  background: transparent;
}
.msynth-knobs-macro {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 980px) {
  .sdpro-instr-slot.sdpro-melodin-synth { min-width: 460px; width: min(620px, 88vw); }
  .msynth-body { grid-template-columns: 1fr; }
  .msynth-macros { border-left: 0; border-top: 1px solid #2a2a2e; padding: 4px 0 0; }
  .msynth-split { grid-template-columns: 1fr; }
}
