/* guideline §5: 40px default height, 32px compact-in-tables, one primary
   per view (a convention enforced by usage, not by this stylesheet). */

.qp-btn {
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  min-width: 24px;
  min-height: 24px;
}

.qp-btn-compact {
  height: 32px;
  padding: 0 12px;
}

/* Turn 18 accessibility QA: uses the *-button-fill / -text-safe tokens
   (tokens.css), not --accent/--negative directly — the raw brand tokens
   measure under 4.5:1 with white text in at least one theme each (see
   tokens.css comments for the exact numbers). --accent/--negative
   themselves are unchanged; only these fill/text choices differ. */
.qp-btn-primary {
  background: var(--accent-button-fill);
  color: white;
  border-color: var(--accent-button-fill);
}

.qp-btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.qp-btn-tertiary {
  background: transparent;
  color: var(--accent-text-safe);
  border-color: transparent;
}

.qp-btn-destructive {
  background: var(--negative-button-fill);
  color: white;
  border-color: var(--negative-button-fill);
}

.qp-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
