.root {
    display: inline-flex;
    max-width: 100%;
    min-width: 0;
    align-items: center;
    gap: var(--space-3);
    color: inherit;
    text-align: left;
}

.empty {
    color: var(--text-tertiary);
}

.button {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
}

.link {
    text-decoration: none;
}

.clickable {
    cursor: pointer;
}

.clickable:hover .name,
.clickable:focus-visible .name {
    color: var(--primary);
}

.clickable:focus-visible {
    border-radius: var(--radius-sm);
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.avatar {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--bg-card-strong);
    color: var(--text-secondary);
    font-weight: 700;
}

.large .avatar {
    width: 64px;
    height: 64px;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.nameLine,
.idLine {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.namePrefix {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
}

.name {
    min-width: 0;
    overflow: hidden;
    color: var(--text-primary);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.large .name {
    font-size: 18px;
    font-weight: 800;
}

.idText,
.extraRow {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--text-tertiary);
    font-size: var(--admin-font-size);
    line-height: 1.3;
}

.prettyBadge {
    display: inline-flex;
    max-width: 100%;
    min-width: 0;
    align-items: center;
    gap: 5px;
    padding: 1px 7px;
    border: 1px solid rgba(124, 58, 237, 0.26);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 247, 179, 0.8), rgba(255, 225, 244, 0.78), rgba(219, 234, 254, 0.8));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
    line-height: 1.2;
}

.prettyValue {
    min-width: 0;
    overflow: hidden;
    background: linear-gradient(90deg, #f6da57 0%, #ffa4a8 30%, #ff75c6 55%, #c089ff 78%, #56fffa 100%);
    background-clip: text;
    color: transparent;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-background-clip: text;
}

@media (prefers-reduced-motion: no-preference) {
    .name,
    .prettyBadge {
        transition:
            color 160ms ease,
            border-color 160ms ease,
            box-shadow 160ms ease;
    }

    .clickable:hover .prettyBadge {
        border-color: rgba(37, 99, 235, 0.38);
        box-shadow:
            0 6px 16px rgba(124, 58, 237, 0.12),
            inset 0 0 0 1px rgba(255, 255, 255, 0.55);
    }
}
