.fta-user-presence {
    display: inline-block;
    /* Keep the complete circle inside its box, including in clipped text cells. */
    flex: 0 0 calc(.55rem + 3px);
    width: calc(.55rem + 3px);
    height: calc(.55rem + 3px);
    min-width: calc(.55rem + 3px);
    border: 1.5px solid var(--bs-body-bg, #fff);
    box-sizing: border-box;
    border-radius: 50%;
    vertical-align: middle;
    background: #88929f;
    box-shadow: none;
}
.fta-user-presence-active { background: #239653; }
.fta-user-presence-inactive { background: #d49418; }
.fta-user-presence-offline { background: #88929f; }
.fta-user-presence-unknown {
    background: transparent;
    border-color: #88929f;
}

.fta-user-identity {
    display: inline-flex;
    align-items: baseline;
    gap: .35rem;
    min-width: 0;
    max-width: 100%;
    vertical-align: baseline;
}
.fta-user-identity > .fta-user-presence,
.fta-user-identity > .fta-user-avatar-host { align-self: center; }
.fta-user-identity-name {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fta-user-avatar-host.fta-user-avatar-host {
    position: relative;
    overflow: visible;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fta-user-avatar-host img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}
.fta-user-avatar-host .fta-user-avatar-presence {
    position: absolute;
    right: -.05rem;
    bottom: -.05rem;
}
.fta-user-avatar-host.fta-user-avatar {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--bs-secondary-bg, #e7ebef);
    color: var(--bs-body-color, #304151);
    font-size: .65rem;
    font-weight: 600;
}

.fta-user-native-presence {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-width: 0;
    max-width: 100%;
    vertical-align: middle;
}
.fta-user-native-presence > .dxbl-text-edit-input,
.fta-user-native-presence > input { flex: 1; min-width: 0; }

.fta-native-user-tag { display: inline-flex; align-items: center; gap: .25rem; }
.fta-native-user-tag-remove {
    padding: 0 .2rem;
    border: 0;
    background: transparent;
    color: inherit;
    line-height: 1;
    cursor: pointer;
}

.fta-user-record-presence {
    color: var(--bs-body-color, inherit);
    padding: .2rem 0;
}

/* Keep the status and native search input on the same editor row. */
.fta-user-select-content {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: .35rem;
    width: 100%;
    min-width: 0;
}
.fta-user-select-input {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
}
/* The editor owns its height; page-level input minimums would add template padding twice. */
.fta-user-select-input > input { min-width: 0; min-height: 0 !important; }
