/* tap-tempo.css : scoped to #tap-tempo */
#tap-tempo .tap-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
#tap-tempo .tap-display { display: flex; flex-direction: column; justify-content: center; min-height: 220px; }
#tap-tempo .tap-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 15px; font-variant-numeric: tabular-nums; }
#tap-tempo .tap-meta .ok { color: #4ade80; } #tap-tempo .tap-meta .warn { color: #fbbf24; } #tap-tempo .tap-meta .bad { color: #f87171; }
#tap-tempo .tap-meter { height: 6px; border-radius: 3px; background: #292524; margin: 10px auto 0; width: 70%; overflow: hidden; }
#tap-tempo .tap-meter span { display: block; height: 100%; width: 0; background: #57534e; transition: width .15s; }
#tap-tempo .tap-meter span.ok { background: #4ade80; } #tap-tempo .tap-meter span.warn { background: #fbbf24; } #tap-tempo .tap-meter span.bad { background: #f87171; }
#tap-tempo .tap-status { min-height: 1.6em; margin-top: 8px; }
#tap-tempo .tap-pad { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 220px; width: 100%;
  border-radius: 20px; border: 1px solid var(--line-strong); background: var(--strong); color: var(--ink); cursor: pointer;
  touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
#tap-tempo .tap-pad:active { background: var(--line-strong); }
#tap-tempo .tap-pad.hit { animation: tap-hit .16s ease-out; }
#tap-tempo .tap-pad-big { font: 600 40px/1 var(--sans); letter-spacing: .08em; }
#tap-tempo .tap-pad-small { font-size: 14px; color: var(--muted); }
@keyframes tap-hit { from { background: var(--family); transform: scale(.985); } to { background: var(--strong); transform: none; } }
#tap-tempo .tap-actions { margin-top: 14px; }
#tap-tempo .tap-actions .chip { min-height: 44px; padding: 8px 16px; }
#tap-tempo .tap-send[aria-disabled="true"] { opacity: .45; }
#tap-tempo .tap-listen { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
#tap-tempo .tap-listen .row > .muted { flex: 1 1 240px; }
#tap-tempo .tap-listen .notice { margin: 10px 0 0; }
@media (max-width: 640px) {
  #tap-tempo .tap-layout { grid-template-columns: 1fr; gap: 10px; }
  #tap-tempo .tap-display { min-height: 0; padding: 14px; }
  #tap-tempo .tap-pad { min-height: 150px; }
}
@media (prefers-reduced-motion: reduce) { #tap-tempo .tap-pad.hit { animation: none; } }
