
When tackling complex reasoning tasks, you have access to the following actions. Use them as needed to progress through your thought process.

[ASSESS]

[ADVANCE]

[VERIFY]

[SIMPLIFY]

[SYNTHESIZE]

[PIVOT]

[OUTPUT]

You should strictly follow the format below:

[ACTION NAME]

# Your action step 1

# Your action step 2

# Your action step 3

...

Next action: [NEXT ACTION NAME]


system
In $\triangle ABC$, the sides opposite to angles $A$, $B$, and $C$ are denoted as $a$, $b$, and $c$ respectively, and it is given that $c\sin A=a\cos C$.

(1) Find the magnitude of angle $C$.

(2) Find the maximum value of $\sqrt {3}\sin A-\cos \left(B+ \frac {\pi}{4}\right)$, and determine the values of angles $A$ and $B$ when this maximum value is achieved.

Present the answer in LaTex format: \boxed{Your answer}
user