/* shared-controls.css — status badge + tempo controls shared between
   live.html (RIG/DRUMS tabs) and the standalone drums.html. Extracted from
   live.css/drums.css, which had drifted into two near-identical copies of
   this block — the same shape of bug that caused the earlier .tempo-group
   collision (that class stays page-specific in live.css/drums.css since its
   layout genuinely differs per page — see the comment there). */

/* Status badge */
.live-status {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  border: 1px solid transparent;
}
.live-status-info  { background: var(--surface2); border-color: var(--border); color: var(--text-muted); }
.live-status-ok    { background: rgba(46,204,113,0.1); border-color: rgba(46,204,113,0.4); color: var(--green); }
.live-status-error { background: rgba(231,76,60,0.1); border-color: rgba(231,76,60,0.3); color: #ff6b5e; }

.live-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Tempo controls */
.tempo-btn {
  width: 2.1rem;
  height: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
  padding: 0;
}
@media (hover: hover) {
  .tempo-btn:hover:not(:disabled) { border-color: var(--accent); }
}
.tempo-btn:disabled { opacity: 0.35; cursor: default; }
.tempo-btn:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }

.tempo-tap {
  width: auto;
  padding: 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-left: 0.25rem;
  border-color: var(--accent);
  color: var(--accent2);
  transition: background 0.08s, color 0.08s;
}
.tempo-tap-active { background: var(--accent); color: #000; }

.tempo-input {
  width: 4.5rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  padding: 0.35rem 0.5rem;
  -moz-appearance: textfield;
  flex-shrink: 0;
}
.tempo-input::-webkit-inner-spin-button,
.tempo-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.tempo-input:focus { outline: none; border-color: var(--accent); }
.tempo-input:focus-visible { outline: 2px solid var(--accent2); outline-offset: 0; }
.tempo-input:disabled { opacity: 0.35; }
