/* GENERATED FILE — DO NOT EDIT.
 * Source of truth: lib/ui/button.css
 * Regenerate with: npm run sync-studio
 */
/* VeLens — Button System (mc-btn)
 * ──────────────────────────────────────────────────────────────────
 * Single button system used across every UI surface. Replaces 60+
 * one-off button classes (.mo-close-btn, .errlog-filter-btn,
 * .palette-sort-btn, etc.) with a small variant matrix:
 *
 *   .mc-btn             → base (interactive defaults)
 *   .mc-btn--primary    → filled blue CTA
 *   .mc-btn--secondary  → outlined neutral
 *   .mc-btn--ghost      → transparent, hover-tinted (icon header buttons)
 *   .mc-btn--danger     → filled red, irreversible action
 *   .mc-btn--pill       → rounded pill (filter / range tabs)
 *   .mc-btn--icon       → square icon button (close, refresh, settings)
 *   .mc-btn--sm         → smaller variant (refresh, compact pills)
 *   .mc-btn--lg         → larger variant
 *   .mc-btn--block      → full-width
 *
 * MIGRATION
 *   Bespoke classes (.mo-close-btn, .mo-range-btn, etc.) stay on the
 *   element as behavior tags so existing JS querySelectors keep working.
 *   The visual styling lives here; bespoke CSS rules can be stripped
 *   one surface at a time as the migration progresses.
 *
 * INJECTION
 *   Same pipeline as tokens.css — prepended to every Shadow DOM stylesheet
 *   in content/content.js loadCSS chokepoint, and linked into popup.html.
 */

/* ── Base ── */
.mc-btn {
  font-family: inherit;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-weight: 500;
  line-height: 1;
  user-select: none;
  box-sizing: border-box;
  transition: all var(--mc-duration) ease;
}

.mc-btn:focus-visible {
  outline: 2px solid var(--mc-primary);
  outline-offset: 2px;
}

.mc-btn:disabled,
.mc-btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Visual variants ── */

.mc-btn--primary {
  background: var(--mc-primary);
  color: var(--mc-text-on-primary);
  border-radius: var(--mc-radius-lg);
  padding: 8px 16px;
  font-size: var(--mc-text-md);
}
.mc-btn--primary:hover {
  background: var(--mc-primary-hover);
}

.mc-btn--secondary {
  background: var(--mc-surface);
  color: var(--mc-text-tertiary);
  border: 1px solid var(--mc-border);
  border-radius: var(--mc-radius-lg);
  padding: 8px 16px;
  font-size: var(--mc-text-md);
}
.mc-btn--secondary:hover {
  background: var(--mc-surface-2);
  border-color: var(--mc-border-strong);
  color: var(--mc-text-strong);
}

.mc-btn--ghost {
  background: transparent;
  color: var(--mc-text-tertiary);
  border-radius: var(--mc-radius-lg);
  padding: 8px 12px;
  font-size: var(--mc-text-md);
}
.mc-btn--ghost:hover {
  background: var(--mc-surface-2);
  color: var(--mc-text-strong);
}

.mc-btn--danger {
  background: var(--mc-danger);
  color: var(--mc-text-on-primary);
  border-radius: var(--mc-radius-md);
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 600;
}
.mc-btn--danger:hover {
  background: var(--mc-danger-strong);
}
.mc-btn--danger:focus-visible {
  outline-color: var(--mc-danger-strong);
}

/* ── Shape variants ── */

/* Icon-only square button (close, refresh, settings, pin). The base size
   matches the canonical close-btn (32x32, 22px font for the × glyph).
   Explicitly restates padding on the --sm variant so the bare .mc-btn--sm
   padding rule below doesn't bleed in via cascade. */
.mc-btn--icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--mc-radius-lg);
  font-size: 22px;
}
.mc-btn--icon.mc-btn--sm {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: var(--mc-radius-md);
  font-size: var(--mc-text-lg);
}
/* SVGs inside icon buttons size themselves — leave overall icon-button
   font-size in place for text glyphs (× close character). */

/* Pill — used for filter/range tabs. Matches existing .mo-range-btn. */
.mc-btn--pill {
  padding: 5px 14px;
  border: 1.5px solid var(--mc-border);
  border-radius: 20px;
  background: var(--mc-surface);
  font-size: var(--mc-text-sm);
  color: var(--mc-text-tertiary);
}
.mc-btn--pill:hover {
  border-color: var(--mc-text-disabled);
}
.mc-btn--pill.active,
.mc-btn--pill[aria-pressed="true"] {
  background: var(--mc-primary);
  color: var(--mc-text-on-primary);
  border-color: var(--mc-primary);
}

/* ── Size modifiers ── */

.mc-btn--sm {
  font-size: var(--mc-text-sm);
  padding: 5px 12px;
}

.mc-btn--lg {
  font-size: var(--mc-text-lg);
  padding: 10px 20px;
}

/* ── Layout modifiers ── */

.mc-btn--block {
  display: flex;
  width: 100%;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .mc-btn {
    transition: none !important;
  }
}
