.msm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: var(--msm-touch-target);
    max-width: 100%;
    padding: 10px 16px;
    border: 0;
    border-radius: var(--msm-radius);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease;
}

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

.msm-btn:disabled,
.msm-btn[aria-disabled="true"] {
    opacity: .5;
    cursor: not-allowed;
}

.msm-btn-primary { background: var(--msm-color-primary); color: #fff; }
.msm-btn-primary:hover:not(:disabled) { background: var(--msm-color-primary-hover); color: #fff; }

.msm-btn-secondary {
    border: 1px solid var(--msm-color-border);
    background: var(--msm-color-surface-2);
    color: var(--msm-color-text);
}
.msm-btn-secondary:hover:not(:disabled) { background: var(--msm-color-surface-hover); }

.msm-btn-subtle,
.msm-btn-ghost {
    border: 1px solid transparent;
    background: transparent;
    color: var(--msm-color-text-muted);
}
.msm-btn-subtle:hover:not(:disabled),
.msm-btn-ghost:hover:not(:disabled) {
    border-color: var(--msm-color-border);
    background: var(--msm-color-surface-2);
    color: var(--msm-color-text);
}

.msm-btn-danger { background: var(--msm-color-danger); color: #fff; }
.msm-btn-danger:hover:not(:disabled) { background: #dc2626; color: #fff; }
.msm-btn-success { background: var(--msm-color-success); color: #fff; }

.msm-btn-sm {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 12px;
}

.msm-btn-icon {
    width: var(--msm-touch-target);
    height: var(--msm-touch-target);
    padding: 0;
}

.msm-btn-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
