/* Grammar panel (grammar.js) and its underlines in #doc. Colours from app.css tokens; never the AI vermilion (an AI
   mark) or the grey-violet "unclear" colours (can't tell), so a grammar note never reads as a result. Kinds differ by
   line style: spelling wavy blue, grammar wavy grey, punctuation dotted, style dashed. */
.ov-grammar { text-decoration-line: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
  text-decoration-skip-ink: none; text-decoration-style: dotted; text-decoration-color: var(--ink-3); }
.ov-grammar.gx-spelling { text-decoration-style: wavy; text-decoration-color: var(--focus); }
.ov-grammar.gx-grammar { text-decoration-style: wavy; text-decoration-color: var(--ink-3); }
.ov-grammar.gx-punctuation { text-decoration-style: dotted; text-decoration-color: var(--ink-2); }
.ov-grammar.gx-style { text-decoration-style: dashed; text-decoration-color: var(--ink-3); }

.gx-var { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.gx-var .btn.small { min-height: 36px; padding: 2px 12px 0; }

.gx-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 0 10px; font-size: 15px; color: var(--ink-2); }
.gx-sum b { color: var(--ink); font-weight: 600; }
.gx-count { display: inline-flex; align-items: center; gap: 6px; }
.gx-key { display: inline-block; width: 16px; height: 0; border-top: 2px dotted var(--ink-3); }
.gx-key.gx-spelling { border-top: 2px solid var(--focus); }
.gx-key.gx-grammar { border-top: 2px solid var(--ink-3); }
.gx-key.gx-punctuation { border-top-color: var(--ink-2); }
.gx-key.gx-style { border-top-style: dashed; }

.gx-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
@media (min-width: 981px) { .gx-list { max-height: 520px; overflow-y: auto; } }
.gx-list li { border-bottom: 1px solid var(--line); }
.gx-list button { all: unset; box-sizing: border-box; display: grid; gap: 3px; width: 100%; padding: 10px 6px; cursor: pointer;
  font-size: 15px; color: var(--ink-2); border-radius: 6px; }
.gx-list button:hover { background: var(--paper-2); color: var(--ink); }
.gx-list button:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; }
.gx-kind { font: 600 13px/1.3 var(--font-text); color: var(--ink-2); }
.gx-msg { color: var(--ink); }
.gx-ctx { font-family: var(--font-read); font-size: 14px; color: var(--ink-3); overflow-wrap: anywhere; }
.gx-hit { color: var(--ink); text-decoration: underline wavy var(--focus) 1.5px; text-underline-offset: 3px; text-decoration-skip-ink: none; }
.gx-grammar .gx-hit { text-decoration-color: var(--ink-3); }
.gx-punctuation .gx-hit { text-decoration-style: dotted; text-decoration-color: var(--ink-2); }
.gx-style .gx-hit, .gx-other .gx-hit { text-decoration-style: dashed; text-decoration-color: var(--ink-3); }
.gx-sug { font-size: 14px; color: var(--ink-2); }
.gx-sug q { quotes: none; font-weight: 600; color: var(--ink); }

.gx-none, .gx-wait, .gx-err, .gx-note { margin: 0 0 10px; font-size: 15px; color: var(--ink-2); }
.gx-err { color: var(--error); }
.gx-credit { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); }
.gx-credit a { color: var(--ink-3); }

@media print { .ov-grammar { text-decoration: none; } }
