// The policy document's editor: CodeMirror, holding JSON read under the // engine's own grammar (Checks.grammars), or Cedar text read under the Cedar // schema. It colours what src/ui/snippet.ts colours, with the same classes; // suggests what the grammar allows; and shows the checks' problems in place. // // It lives in a shadow root. CodeMirror injects its own styles through // style-mod, which gives a shadow root a constructable stylesheet and a // document a