/*
 * Merged component styles (mg-* classes).
 * Generated from docs/design-system/components/bundle.css - do not edit by hand;
 * refresh with bin/rails design_system:components.
 */
@layer properties, theme, base, components, utilities;

@layer components {
/* Button */
.mg-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: 0 18px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.mg-btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.mg-btn-dark { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.mg-btn-publish { background: var(--success); border-color: var(--success); color: var(--on-accent); }
.mg-btn-soft { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-strong); }
.mg-btn-link { border-color: transparent; background: transparent; color: var(--accent); padding: 0 var(--space-2); }
.mg-btn-sm { min-height: 36px; padding: 0 12px; border-radius: var(--radius-md); font-size: 13px; }

/* Status badge */
.mg-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600; background: var(--surface-muted); color: var(--ink-muted); }
.mg-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mg-badge-review { background: var(--warning-soft); color: var(--warning); }
.mg-badge-live { background: var(--success-soft); color: var(--success); }
.mg-badge-accent { background: var(--accent-soft); color: var(--accent-strong); }

/* Check item */
.mg-check { display: flex; gap: 10px; align-items: flex-start; }
.mg-check-icon { flex: 0 0 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--success-soft); color: var(--success); font-size: 12px; font-weight: 700; }
.mg-check-open .mg-check-icon { background: var(--warning-soft); color: var(--warning); }
.mg-check-title { display: block; font-size: var(--text-ui-size); font-weight: 500; }
.mg-check-hint { display: block; font-size: 13px; color: var(--ink-muted); }
.mg-check-fix { margin-top: 4px; padding: 0; border: none; background: none; color: var(--accent); font: inherit; font-size: 13px; font-weight: 600; min-height: 32px; cursor: pointer; }

/* Segmented control / status stepper */
.mg-seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: var(--radius-lg); background: var(--surface-muted); list-style: none; margin: 0; font-size: var(--text-ui-size); }
.mg-seg > * { display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: none; border-radius: 9px; background: transparent; color: var(--ink-secondary); font: inherit; }
.mg-seg > [aria-current], .mg-seg > [aria-pressed="true"], .mg-seg > [aria-selected="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.mg-seg > .mg-done { color: var(--success); }

/* Card */
.mg-card { border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); padding: var(--space-5) var(--space-6); }
.mg-card-title { margin: 0 0 4px; font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.mg-kpi-label { display: block; font-size: var(--text-ui-size); color: var(--ink-muted); }
.mg-kpi-value { display: block; font-family: var(--font-display); font-size: 34px; font-weight: 600; line-height: 1.1; margin-top: 6px; }
.mg-kpi-trend { display: block; font-size: 13px; color: var(--success); }
.mg-tile { background: var(--surface-muted); border-radius: var(--radius-md); padding: 10px 12px; }

/* Nav item */
.mg-nav { display: flex; flex-direction: column; gap: 2px; width: 220px; }
.mg-nav-item { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: var(--radius-md); color: var(--ink-secondary); text-decoration: none; }
.mg-nav-item[aria-current] { background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }

/* Field */
.mg-field { display: flex; flex-direction: column; gap: 6px; max-width: 360px; }
.mg-label { font-weight: 600; font-size: var(--text-ui-size); }
.mg-input { min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font: inherit; }
.mg-help { font-size: 13px; color: var(--ink-muted); }
.mg-help-ok { color: var(--success); }

/* AI suggestion */
.mg-suggest { border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: var(--radius-lg); padding: 14px 16px; max-width: 560px; }
.mg-suggest-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.mg-suggest-label { font-size: 13px; font-weight: 600; color: var(--accent-strong); }
}
