.wh { display: flex; flex-direction: column; gap: 16px; }
.wh-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px;
}
.panel h2 { margin: 0 0 12px; font-size: 1.05rem; color: var(--primary); }
.panel label { display: block; font-size: 0.88rem; margin: 10px 0; }
.panel input[type="range"], .panel select { width: 100%; }
.stepper { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.panel button, .swaras button, .flow button {
  background: #3d342c; color: var(--fg); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px; cursor: pointer;
}
.panel button.on, .swaras button.on, .flow button.on { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.swaras, .flow { display: flex; flex-wrap: wrap; gap: 6px; }
.micro, .hint, .pitch-read { color: var(--muted); font-size: 0.88rem; }
.err { color: #fca5a5; }
.meter { position: relative; height: 8px; background: #1c1814; border-radius: 99px; margin-top: 8px; }
.meter i { position: absolute; top: -4px; left: 50%; width: 4px; height: 16px; background: var(--primary); border-radius: 2px; }
.beat { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #5c5146; margin-left: 8px; }
.beat.on { background: var(--primary); }
.keys {
  position: relative; height: 230px; background: #1a1613; border-radius: 16px;
  border-bottom: 8px solid #523d2b; padding: 12px 12px 28px; touch-action: none; user-select: none;
}
.key {
  position: absolute; bottom: 18px; border: 0; border-radius: 0 0 6px 6px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 8px;
}
.key.white { background: #faf6ee; color: #292524; height: 180px; z-index: 1; }
.key.black { background: #3a3532; color: #fff; height: 110px; z-index: 2; bottom: 88px; }
.key.active { transform: translateY(3px); filter: brightness(0.85); }
.key.mark { outline: 2px solid var(--primary); }
.key small { font-size: 10px; opacity: 0.65; }
@media (max-width: 640px) {
  .wh-row { grid-template-columns: 1fr; }
  .keys { height: 190px; overflow-x: auto; }
}
