/* Identical text metrics keep the editable text and its highlight layer aligned. */
.textdiff-editor{position:relative;background:#fff;border-radius:.5rem}
.textdiff-editor textarea,.textdiff-highlight{box-sizing:border-box;width:100%;margin:0;border:1px solid transparent;border-radius:.5rem;padding:12px 16px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;font-size:16px;line-height:24px;letter-spacing:normal;tab-size:4;white-space:pre-wrap;overflow-wrap:break-word;word-break:normal;scrollbar-gutter:stable;overflow:auto}
.textdiff-highlight{position:absolute;inset:0;height:100%;pointer-events:none;color:#111827;scrollbar-color:transparent transparent}
.textdiff-row{display:block;min-height:24px;white-space:pre-wrap}
.textdiff-row-changed{background:#eff6ff}
.textdiff-editor textarea{position:relative;display:block;min-height:264px;height:360px;resize:vertical;border-color:#d1d5db;background:transparent;color:transparent;caret-color:#111827;-webkit-text-fill-color:transparent}
.textdiff-editor textarea:focus{outline:2px solid #3b82f6;outline-offset:1px}
.textdiff-highlight mark{color:inherit;border-radius:2px;background:#fee2e2;box-shadow:inset 0 -2px #dc2626}
#textdiff-after-highlight mark{background:#dcfce7;box-shadow:inset 0 -2px #16a34a}
.textdiff-editor textarea::selection{background:rgba(59,130,246,.3)}
#textdiff-status[data-error="true"]{color:#b91c1c;background:#fef2f2;border:1px solid #fca5a5;border-radius:.5rem;padding:12px 16px;font-weight:600}
@media(forced-colors:active){.textdiff-highlight{display:none}.textdiff-editor textarea{color:CanvasText;-webkit-text-fill-color:CanvasText}}
