/* Five sound properties share one compact editor and their saved values. */
.simple-editor { display: flex; flex-direction: column; gap: 6px; width: 100%; color: var(--ink, #18343b); }
.editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.editor-heading h2 { min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.1rem; }
.editor-preview-button { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 6px 13px; border: 0; border-radius: 10px; background: var(--teal, #176b70); color: #fff; font-weight: 750; }
.editor-preview-error { margin: 0; font-size: .8rem; color: #9b3c28; }
.drum-voice-tabs { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 5px; }
.drum-voice-tabs button { min-width: 0; min-height: 44px; padding: 5px; border: 1px solid var(--line, #d2dedb); border-radius: 9px; background: #f8fbfa; color: var(--ink, #18343b); font-size: .82rem; font-weight: 750; }
.drum-voice-tabs button.selected { background: var(--teal, #176b70); border-color: var(--teal, #176b70); color: #fff; }
.sound-rows { display: flex; flex-direction: column; gap: 4px; }
.sound-row { display: grid; grid-template-columns: minmax(102px,.8fr) minmax(80px,2fr) 45px 122px; align-items: center; gap: 10px; min-height: 60px; padding: 1px 10px; border: 1px solid var(--line, #d2dedb); border-radius: 10px; background: #fff; }
.sound-row-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: .88rem; font-weight: 750; }
.sound-row-name label { cursor: pointer; }
.sound-row-name small { color: var(--muted, #5b7277); font-size: .66rem; font-weight: 600; }
.sound-slider-wrap { min-width: 0; }
.sound-range { display: block; width: 100%; height: 44px; margin: 0; padding: 0; border: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; touch-action: none; }
.sound-range::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(to right, var(--teal,#176b70) 0 var(--range-fill), #dbe9e5 var(--range-fill) 100%); }
.sound-range::-webkit-slider-thumb { width: 26px; height: 26px; margin-top: -9px; border: 3px solid #fff; border-radius: 50%; background: var(--teal,#176b70); box-shadow: 0 1px 4px #18343b45; -webkit-appearance: none; appearance: none; }
.sound-range::-moz-range-track { height: 8px; border-radius: 999px; background: #dbe9e5; }
.sound-range::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--teal,#176b70); }
.sound-range::-moz-range-thumb { width: 20px; height: 20px; border: 3px solid #fff; border-radius: 50%; background: var(--teal,#176b70); box-shadow: 0 1px 4px #18343b45; }
.sound-range-ends { display: flex; justify-content: space-between; gap: 5px; margin-top: -5px; padding-bottom: 3px; color: var(--muted,#5b7277); font-size: .65rem; line-height: 1.15; }
.sound-range-ends span:last-child { text-align: right; }
.sound-value { color: var(--teal-strong,#0e5358); font-size: .82rem; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.sound-source-chip { display: flex; align-items: center; justify-content: space-between; gap: 5px; width: 100%; min-height: 44px; padding: 5px 9px; border: 1px solid var(--line,#d2dedb); border-radius: 9px; background: #f8fbfa; color: var(--ink,#18343b); font-size: .75rem; font-weight: 700; text-align: left; }
.sound-source-chip.source-sliderA { background: #e4f2ef; color: #0e5358; border-color: #a4ccc2; }
.sound-source-chip.source-sliderB { background: #fbede7; color: #8f432f; border-color: #e7b5a5; }
.sound-source-chip.source-tiltX, .sound-source-chip.source-tiltY { background: #edf0fb; color: #414e85; }
.sound-source-menu { position: fixed; z-index: 100; width: min(256px,calc(100vw - 16px)); padding: 6px; border: 1px solid var(--line,#d2dedb); border-radius: 12px; background: #fff; color: var(--ink,#18343b); box-shadow: 0 8px 35px #18343b35; }
.sound-source-menu button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 46px; padding: 7px 10px; border: 0; border-radius: 7px; background: transparent; color: inherit; text-align: left; font: 650 .86rem system-ui,sans-serif; cursor: pointer; }
.sound-source-menu button[aria-checked=true], .sound-source-menu button:hover { background: #e4f2ef; }
.sound-source-menu button:focus-visible, .simple-editor button:focus-visible, .simple-editor input:focus-visible, .simple-editor summary:focus-visible { outline: 3px solid var(--teal,#176b70); outline-offset: -2px; }
.editor-more { border-top: 1px solid var(--line,#d2dedb); }
.editor-more summary { display: list-item; width: fit-content; min-height: 44px; padding: 12px 3px 8px; color: var(--teal-strong,#0e5358); font-size: .8rem; font-weight: 750; cursor: pointer; }
.editor-more-content { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 2px 0 8px; }
.editor-name-field { display: flex; flex-direction: column; gap: 5px; max-width: 100%; color: var(--muted,#5b7277); font-size: .8rem; }
.editor-name-field input { max-width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line,#d2dedb); border-radius: 8px; color: var(--ink,#18343b); background: #fff; font: inherit; }
.editor-preset-switch { display: flex; flex-direction: column; gap: 6px; }
.editor-preset-options { display: flex; flex-wrap: wrap; gap: 5px; }
.editor-preset-options button { min-height: 44px; padding: 6px 10px; border: 1px solid var(--line,#d2dedb); border-radius: 8px; background: #f8fbfa; color: var(--ink,#18343b); }
@media (max-width: 760px) {
  .editor-heading h2 { font-size: 1rem; }
  .editor-preview-button { padding-inline: 10px; font-size: .8rem; }
  .sound-row { grid-template-columns: minmax(0,1fr) 43px 105px; gap: 0 7px; padding: 5px 8px; }
  .sound-row-name { grid-column: 1 / 3; grid-row: 1; flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
  .sound-source-chip { grid-column: 3; grid-row: 1 / 3; }
  .sound-slider-wrap { grid-column: 1; grid-row: 2; }
  .sound-value { grid-column: 2; grid-row: 2; }
  .sound-range { height: 44px; }
  .drum-voice-tabs button { font-size: .73rem; }
}
