/* WritingNepal — Nepali spelling + writing hints (4.46) */
::highlight(wn-spell) { text-decoration: underline wavy #c0392b; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
::highlight(wn-hint)  { text-decoration: underline dotted #2f6fb0; text-decoration-thickness: 2px; text-underline-offset: 3px; }
#wnSpellBtn.is-on { background: var(--paper-deep, #efe6d6); box-shadow: inset 0 -2px 0 #c0392b; }
.wn-spell-count { background: none; border: 1px solid transparent; border-radius: 999px; padding: 2px 10px; font: inherit; font-size: .8rem; font-weight: 700; color: var(--ink-soft, #6b6155); cursor: pointer; }
.wn-spell-count.has { color: #a93226; border-color: #e7b9b3; }
.wn-spell-count.is-ok { color: #2e7d4f; cursor: default; }
.wn-spell-pop { position: fixed; z-index: 10050; min-width: 170px; max-width: min(300px, calc(100vw - 16px)); background: #fff; color: #2b2520; border: 1px solid #d9cfbf; border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.18); padding: 6px; display: flex; flex-direction: column; gap: 2px; font-size: .95rem; }
.wn-spell-pop-head { padding: 6px 10px 8px; font-weight: 700; border-bottom: 1px solid #eee5d6; margin-bottom: 4px; color: #6b6155; }
.wn-spell-none { padding: 6px 10px; color: #8a8175; font-size: .85rem; }
.wn-spell-pop button { text-align: left; background: none; border: 0; border-radius: 8px; padding: 9px 10px; font: inherit; cursor: pointer; color: inherit; }
.wn-spell-pop button:hover, .wn-spell-pop button:focus { background: #f4ede0; }
.wn-spell-pop .wn-spell-sug { font-weight: 700; color: #2e7d4f; }
.wn-spell-pop .wn-spell-act { font-size: .85rem; color: #6b6155; }

/* 4.47 AI grammar suggestions */
::highlight(wn-gram) { text-decoration: underline wavy #7b4fa3; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.wn-spell-toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 10060; background: #2b2520; color: #fff; padding: 10px 16px; border-radius: 999px; font-size: .88rem; max-width: calc(100vw - 24px); text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.wn-spell-toast[hidden] { display: none; }
#wnGrammarBtn:disabled { opacity: .5; }