What is & how calculate UNREALIZED PNL for ACCOUNT not for individual position

What is the exact meaning and how calculate UNREALIZED PNL showed together BALANCE in ACCOUNT resume.

I mean at UI screen

Not PNL for individual position that I know how calculate . I’m talking about ACCOUNT PNL

Another thing :

Some times the Unrealized PNL of a POSITION is a PROFIT position but when I CLOSE the position it changes for LOSS

And last , If I’ll close a position at MARKET price at the UI , a CONFIRMATION ORDER pop up open and ESTIMATED PNL appears with a very strange numbers !!! The individual PNL is a PROFIT position and this pop up always show a very large LOSS

Very complicated this concepts

Can Help ?
tks

Here are a few links with some resources of Binance futures, hope it will be helpful to understand.

Thanks Dino

Do you have any links to detail operations with two POSITIONS for the same contract / symbol ?
I mean , when I have one position and reinforce it with another one of big qty and amount and big leverage too.

Like this :

I have a position of 0,1 BTC - leveraged 2 And I want reinforce with more 0,5 BTC with 20 leverage.

Then TOTAL of new position : 0,6 BTC and what happen with leverage of this new and total position ? ( 2 or 20) ?

and HOW calculate PNL for this new position ?
With two ENTRY PRICE , two leverages ?

I’d like to study this situation with more details !

Tks