I want to add a new style rule directly in the Chrome developer tools, but I'm struggling to do so, from following the guide at https://developers.google.com/chrome-developer-tools/docs/elements-styles#styles_edit
This is the CSS rule I want to add - I can't set up the selector by selecting an element, I need to type it it directly. I want to do this to make sure that the CSS syntax itself is correct.
.y-axis .tick:nth-child(2):nth-last-child(1) text { font-weight: bold; } I have clicked on the "plus" sign to add the rule, but when I do, I'm finding that the developer tools just won't let me add it by typing or pasting it in - it either goes gray, or it pastes in like this, with the brackets wrong:

Then when I press Enter or tab out, or try to edit the rule, the text just vanishes. Very frustrating.
How can I add new CSS rules in the developer tools that aren't amenable to being set up via inspecting an element?
Apologies if this is the wrong forum for this question.

+, type/paste in the rule selector first and not the entire rule. After the selector has been added, only then can you put infont-weight, etc.