::highlight(red-ink-draft-spelling){text-decoration:underline wavy #b13646;text-decoration-thickness:1.4px;text-underline-offset:3px}
::highlight(red-ink-draft-grammar){text-decoration:underline wavy #8b680b;text-decoration-thickness:1.4px;text-underline-offset:4px}
#red-writing-workspace .ink-draft-assistance-tools{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:12px 0}
#red-writing-workspace .ink-draft-assistance-tools small{font-size:12px;color:var(--red-muted)}
#red-writing-workspace .ink-draft-grammar-dialog{box-sizing:border-box;width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;border:1px solid var(--red-line);border-radius:18px;padding:20px;background:var(--red-paper);color:var(--red-ink)}
#red-writing-workspace .ink-draft-grammar-dialog::backdrop{background:#302a2b80}
#red-writing-workspace .ink-draft-grammar-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}
#red-writing-workspace .ink-draft-grammar-dialog h2{font-size:23px;margin:0}
#red-writing-workspace .ink-draft-grammar-dialog p{font-size:14px;line-height:1.55}
#red-writing-workspace .ink-draft-grammar-dialog [data-context]{padding:12px;border-radius:10px;background:var(--red-canvas);white-space:pre-wrap;overflow-wrap:anywhere}
#red-writing-workspace .ink-draft-grammar-dialog strong{display:block;overflow-wrap:anywhere}
#red-writing-workspace .ink-draft-grammar-dialog footer{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
#red-writing-workspace .ink-draft-grammar-dialog button{min-height:44px;border:1px solid var(--red-line);border-radius:10px;padding:10px 12px;background:var(--red-canvas);color:var(--red-ink);font:inherit;cursor:pointer}
@media print{::highlight(red-ink-draft-spelling),::highlight(red-ink-draft-grammar){text-decoration:none}}
