.mt-workbench { display: grid; gap: 22px; }
.mt-player, .mt-tap-panel { min-width: 0; }
.mt-workbench p { margin: 0; }
.mt-stage {
  background: var(--ws-2);
  border: 1px solid var(--ws-line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
}
.mt-readout { display: flex; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; }
.mt-readout strong, .mt-tap-result strong {
  font: 400 clamp(3.25rem, 9vw, 5.75rem) / .95 var(--font-display);
  font-variant-numeric: tabular-nums;
}
.mt-readout > p + p, #mt-beat-label { color: var(--ws-dim); font-size: .875rem; }
.mt-beats { margin-top: 12px; }
.mt-beats ol {
  display: grid;
  grid-template-columns: repeat(6, minmax(22px, 43px));
  gap: 5px;
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}
.mt-beats li {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--ws-ink);
  border-radius: 50%;
  font-size: 1rem;
}
.mt-beats li[data-voice="accent"] { border-width: 2px; font-weight: 700; }
.mt-beats li[data-voice="group"] { border-style: dashed; }
.mt-beats li[data-current] {
  background: var(--ws-ink);
  color: var(--ws);
  border-radius: 5px;
  font-weight: 700;
}
.mt-workbench .mt-transport {
  margin-block: 12px;
  padding: 8px;
  display: grid;
  grid-template-columns: minmax(100px, auto) minmax(0, 1fr);
  gap: 10px;
}
.mt-transport button { justify-content: center; padding-inline: 8px; }
.mt-transport p { font-size: .875rem; overflow-wrap: anywhere; }
.mt-workbench[data-lead="tap"] .mt-transport button:not(:disabled) {
  background: var(--ws-ink);
  color: var(--ws);
}
.mt-workbench .zt-next-tool a { min-height: 44px; }
.mt-workbench .mt-field { margin: 10px 0 5px; font-size: 1rem; }
.mt-stepper, .mt-signature {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
}
.mt-stepper button { font-size: 1.2rem; padding-inline: 0; justify-content: center; }
.mt-stepper input { background: var(--ws); border: 1px solid var(--ws-ink); border-radius: var(--r-sm); padding-inline: 12px; }
.mt-workbench :is(input, select, button) { min-height: 44px; }
.mt-workbench :is(input:not([type="checkbox"]), select) {
  min-width: 0;
  width: 100%;
  font-size: 1rem;
}
.mt-workbench #mt-range { margin: 5px 0 0; }
.mt-rhythm { border: 0; min-width: 0; margin: 12px 0 0; padding: 0; }
.mt-rhythm legend { padding: 0; font-weight: 600; }
.mt-signature { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mt-rhythm .mt-signature label { margin-top: 5px; }
.mt-workbench .mt-check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.mt-workbench .mt-check input { min-height: 0; width: 20px; height: 20px; accent-color: var(--ws-ink); }
.mt-volume-label { display: flex; justify-content: space-between; }
.mt-tap-panel { display: grid; align-content: start; gap: 10px; }
.mt-tap-panel h2 { margin: 0; font: 400 2rem / 1.1 var(--font-display); }
.mt-tap-result { display: grid; gap: 10px; }
.mt-tap-result dl, .mt-tap-result dd { margin: 0; }
.mt-tap-result dl { display: flex; gap: 8px 16px; flex-wrap: wrap; font-size: .875rem; }
.mt-tap-result dt { color: var(--ws-dim); }
.mt-tap-result dd { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
#mt-tap {
  display: grid;
  align-content: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  min-height: 132px;
  padding: 16px;
  touch-action: manipulation;
  background: var(--ws-ink);
  color: var(--ws);
}
.mt-workbench[data-lead="tap"] #mt-tap { min-height: clamp(185px, 34vh, 300px); }
.mt-tap-actions, .mt-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.mt-tap-actions button, .mt-presets button { min-width: 44px; }
.mt-tap-actions button:disabled { opacity: .52; }
.mt-presets { margin-block: 8px; }
.mt-presets button[aria-pressed="true"] { background: var(--ws-ink); color: var(--ws); }
#mt-quick-tap { display: none; }
@media (max-width: 620px) {
  .mt-transport-slot { margin-block: 12px; }
  .mt-transport-slot:has(.is-docked) { margin-block: 0; }
  #mt-quick-tap { display: inline-flex; margin-inline-start: auto; touch-action: manipulation; }
  .mt-workbench .mt-transport { margin-block: 0; }
  .mt-transport.is-docked { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mt-transport.is-docked .zt-primary { grid-area: 1 / 1; }
}
@media (min-width: 760px) {
  .mt-workbench {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 28px;
  }
  .mt-workbench > :last-child:not([hidden]) { border-inline-start: 1px solid var(--ws-line); padding-inline-start: 24px; }
  .mt-workbench[data-lead="tap"]:has(.mt-player[hidden]) { grid-template-columns: minmax(0, 44rem); }
}
@media (prefers-reduced-motion: reduce) {
  .mt-beats li[data-current] { background: transparent; color: inherit; outline: 2px solid; outline-offset: -3px; }
}
@media (forced-colors: active) {
  .mt-beats li[data-current] { color: Highlight; outline: 2px solid Highlight; }
}

.mt-practice { margin-top:12px }
.mt-practice summary { min-height:44px; align-content:center; font-weight:600; cursor:pointer }
