.tempo { display: grid; justify-items: center; gap: .85rem; color: var(--ink); text-align: center; }
.tempo-result { font-size: 1.1rem; font-weight: 650; }
.tempo-result output { font-size: clamp(3rem, 8vw, 5rem); font-variant-numeric: tabular-nums; }
.tempo button { min-height: 44px; padding: .6rem 1.2rem; color: var(--ink); border: 1px solid var(--border-soft); background: var(--surface); border-radius: .6rem; font: inherit; cursor: pointer; }
.tempo .tempo-pad { width: min(100%, 22rem); min-height: 8rem; color: var(--ink-inverse); background: var(--ink); font-size: 1.75rem; font-weight: 700; touch-action: manipulation; }
.tempo-pad small { display: block; font-size: .85rem; font-weight: 450; }
.tempo-pad:active { transform: translateY(2px); }
.tempo-actions { display: flex; gap: .6rem; }
.tempo button:disabled { opacity: .5; }
.tempo button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Space the page holds for this view until it mounts (see .tool-view-placeholder in _workspace.css).
   Each height is a little under the space the view takes at that width, measured as how far the
   content below moves when the view replaces the placeholder, so nothing below it moves. Re-measure
   after changing the view's layout: node scripts/measure-tool-views.js --apply <id>. */
.tool-view-placeholder[data-tool="tap-tempo"] { min-height: 373px; }
@media (max-width: 975px) { .tool-view-placeholder[data-tool="tap-tempo"] { min-height: 349px; } }
@media (max-width: 787px) { .tool-view-placeholder[data-tool="tap-tempo"] { min-height: 325px; } }
