Replace String.count (grapheme clusters) with NSString.size(withAttributes:) for computing content widths in rebuildRowLayout and positioning word-diff highlight ranges in drawWordDiffRanges. This ensures correct horizontal scroll limits and highlight alignment for lines containing tabs, CJK characters, or emoji.