How to set a condition for metrics in a table?

Hello!
I encountered the following problem. How can I set styles for individual rows in this table?
For example, I want the size of the date data to be 18px, and the rest of the lines to be 12px. I'm attaching screenshots.
I also want to set a condition like this:
LOOKUP(sum([profit]),0) > LOOKUP(sum([profit]),-1)
The value for the condition is True/False, and if True, the value is colored green, and if False, then red.

Thank you in advance for your response!

stwars7_0-1716827088282.png

0 0 146