/* Panel de ajuste en vivo. Se abre con T. No forma parte del diseño de la
   web: va por encima de todo y sólo aparece cuando lo pides. */
#ks-tuner {
  position: fixed;
  top: 0; left: 0;
  width: 300px;
  max-height: 100vh;
  display: none;
  flex-direction: column;
  z-index: 99999;
  background: rgba(10, 2, 18, 0.94);
  border-right: 1px solid rgba(0, 234, 255, 0.35);
  box-shadow: 0 0 40px rgba(0,0,0,.8);
  font: 400 12px 'IBM Plex Mono', monospace;
  color: #cfe9ff;
  backdrop-filter: blur(6px);
}
#ks-tuner.abierto { display: flex; }

.ks-tuner-cab {
  padding: 10px 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #00ffd0;
  border-bottom: 1px solid rgba(0,234,255,.25);
  flex: 0 0 auto;
}

.ks-tuner-cuerpo {
  overflow-y: auto;
  padding: 4px 12px 12px;
  flex: 1 1 auto;
}
.ks-tuner-cuerpo::-webkit-scrollbar { width: 8px; }
.ks-tuner-cuerpo::-webkit-scrollbar-thumb { background: rgba(0,234,255,.3); border-radius: 4px; }

.ks-tuner-grupo {
  margin: 14px 0 6px;
  padding-bottom: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  color: #ff82ec;
  border-bottom: 1px dashed rgba(255,130,240,.3);
}

.ks-tuner-fila {
  display: grid;
  grid-template-columns: 1fr 96px 38px;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
}
.ks-tuner-nom { font-size: 11px; opacity: .85; }
.ks-tuner-val { font-size: 10px; text-align: right; color: #00ffd0; }

.ks-tuner-ctrl { width: 100%; }
input[type="range"].ks-tuner-ctrl { accent-color: #00ffd0; height: 16px; }
input[type="color"].ks-tuner-ctrl { height: 20px; padding: 0; border: 0; background: none; cursor: pointer; }
input[type="checkbox"].ks-tuner-ctrl { width: 16px; accent-color: #00ffd0; justify-self: start; }
select.ks-tuner-ctrl {
  background: #17022a; color: #cfe9ff;
  border: 1px solid rgba(0,234,255,.35); border-radius: 3px;
  font: inherit; font-size: 11px; padding: 2px;
}

.ks-tuner-pie {
  display: flex; gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid rgba(0,234,255,.25);
  flex: 0 0 auto;
}
.ks-tuner-pie button {
  flex: 1;
  padding: 7px 4px;
  font: 700 10px 'IBM Plex Mono', monospace;
  letter-spacing: .08em;
  color: #0a0212;
  background: #00ffd0;
  border: 0; border-radius: 3px;
  cursor: pointer;
}
.ks-tuner-pie button:last-child {
  background: transparent; color: #ff82ec;
  border: 1px solid rgba(255,130,240,.5);
}
.ks-tuner-pie button:hover { filter: brightness(1.15); }
