.tf-csm-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 78px;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
}

.tf-csm-status-pill.tf-csm-active {
    background: #e8f7f1;
    color: #087a55;
}

.tf-csm-status-pill.tf-csm-inactive {
    background: #f2f4f7;
    color: #667085;
}

.tf-csm-status-pill[href]:hover {
    box-shadow: inset 0 0 0 1px currentColor;
}

.tf-csm-status-pill.tf-csm-changing {
    opacity: .55;
    pointer-events: none;
}

.tf-csm-status-pill.tf-csm-changing .tf-csm-dot {
    animation: tf-csm-pulse .8s ease-in-out infinite alternate;
}

@keyframes tf-csm-pulse {
    from { opacity: .35; }
    to { opacity: 1; }
}

.tf-csm-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}

.tf-csm-quick-filters {
    display: inline-flex;
    vertical-align: middle;
}

.tf-csm-quick-filters .btn {
    border-radius: 0;
    margin-left: -1px;
}

.tf-csm-quick-filters .btn:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    margin-left: 0;
}

.tf-csm-quick-filters .btn:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.tf-csm-quick-filter.active {
    background: #eef4ff;
    border-color: #84adff;
    color: #175cd3;
    font-weight: 600;
}

.tf-csm-profile-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.tf-csm-managed-field-hidden {
    display: none !important;
}

@media (max-width: 767px) {
    .tf-csm-profile-summary {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tf-csm-quick-filters {
        margin-bottom: 10px;
    }
}

.tf-csm-direct-toggle.tf-csm-changing {
    opacity: .55;
    pointer-events: none;
}

/* v1.0.3: status badge is the only action; make button visually identical to badge. */
button.tf-csm-status-pill {
    border: 0;
    outline: 0;
    font: inherit;
    line-height: inherit;
    cursor: pointer;
}
button.tf-csm-status-pill:disabled {
    cursor: wait;
}
