/* The individual-sensor view uses the same 16 keys as the grouped layout,
   with each key divided into independently editable/testable halves. */
#keys,
#test-slider.individual {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  grid-template-rows: none;
  grid-auto-flow: row;
  gap: 6px;
}

.split-key {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 150px;
}

.keys .split-key > .key,
.test-slider.individual .split-key > .test-key {
  flex: 1 1 0;
  height: auto;
  min-height: 0;
  border-radius: 0 0 5px 5px;
}

.keys .split-key > .key:nth-child(even),
.test-slider.individual .split-key > .test-key:nth-child(even) {
  order: -1;
  border-radius: 5px 5px 0 0;
  border-bottom: 0;
}

.keys .split-key > .key { background: #202d2e; }
.keys .split-key > .key.edited { background: #123c3b; }
.keys .split-key .key span { padding-left: 5px; font-size: 8px; }
.keys .split-key .key input { font-size: 23px; }
.test-slider.individual .split-key { height: 180px; }
.test-slider.individual .test-key-range { display: none; }
.test-slider.individual .test-key strong { margin-block: auto; }
.slider-physical-help { margin-top: 12px; color: var(--muted); font-size: 11px; }

@media (max-width: 700px) {
  #keys,
  #test-slider.individual { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .split-key { height: 100px; }
  .keys .split-key .key input { font-size: 18px; padding: 2px 0 5px; }
  .test-slider.individual .split-key { height: 105px; }
  .test-slider.individual .split-key > .test-key { padding: 5px 4px; gap: 2px; }
  .test-slider.individual .test-key strong { font-size: 18px; }
}
