Your allowance is per account, not per device. Sign in on a phone and a laptop and the same 10 GB is shared between them, because it is the same library.
Everything in your library counts: files in folders, files in Collections, and files in Trash. Trash counts because the file still exists — emptying Trash is how you get the space back immediately rather than waiting for the 30-day window.
The number in the sidebar is measured, not estimated. If it disagrees with the storage page, the storage page is the authoritative one and the sidebar is stale.