How do I record spending or income so my budget adds up?
For a purchase, ask where the money came from and what it paid for. A 28 zł lunch paid in cash belongs to your cash account and your food category. Those 28 zł reduce both your cash balance and what you have left for food.

When should I record income?
Salary paid into a budgeting account increases both its balance and the amount available to plan. Cash from an ATM was already yours. Record that movement as a transfer.
What if my bank has already imported the purchase?
Use the imported entry. If its category needs changing, correct it in History. Adding a second manual entry for the same lunch would count the expense twice.