/* instrument.css — Synth Editor module: waveform selector + ADSR envelope. */

.instr {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 340px;
}

.instr-track {
  min-width: 140px;
}

/* --- Waveform selector buttons --- */
.instr-waves {
  display: flex;
  gap: 4px;
}
.instr-wave {
  height: 26px;
  min-width: 0;
  flex: 1 1 0;
  padding: 0 8px;
  font-size: 9px;
}
.instr-wave.active {
  background: linear-gradient(180deg, #B8794E 0%, var(--accent) 60%, #7A4E42 100%);
  color: #FFF6EE;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 8px rgba(217, 155, 127, 0.5);
}

/* --- ADSR sliders --- */
.instr-env {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}
.instr-param {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.instr-param-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.instr-param-label {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  font-family: var(--mono);
}
.instr-param-val {
  font-size: 10px;
  color: #F0D9C8;
  text-shadow: 0 0 6px rgba(217, 155, 127, 0.55);
}
.instr-param input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #050B10, #1B2A34);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
  outline: none;
  cursor: pointer;
}
.instr-param input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 17px;
  border-radius: 3px;
  border: 1px solid #050B10;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent) 60%, #7A4E42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 2px rgba(0, 0, 0, 0.6);
}
.instr-param input[type='range']::-moz-range-thumb {
  width: 11px;
  height: 17px;
  border-radius: 3px;
  border: 1px solid #050B10;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent) 60%, #7A4E42);
}

.instr-actions .hw-btn { width: 100%; }
