(a)
The lien is a direct lien for the lesser of the following amounts:
(1)
The reasonable value of the work provided by the claimant.
(2)
The price agreed to by the claimant and the person that contracted for the work.
(b)
The lien is not limited in amount by the contract price for the work of improvement except as provided in Section 8600.
(c)
This section does not preclude the claimant from including in a claim of lien work performed based on a written modification of the contract, or as a result of
rescission, abandonment, or breach of the contract. If there is a rescission, abandonment, or breach of the contract, the amount of the lien may not exceed the reasonable value of the work provided by the claimant.