.ocr{--ocr-link:var(--link,var(--accent));--ocr-hover:var(--hover,var(--surface-2));--ocr-highlight:var(--highlight,var(--mark));--ocr-caution:var(--caution,var(--partial));--ocr-good:var(--good);--ocr-bad:var(--danger,var(--bad));border:1px solid var(--border);border-radius:var(--r);background:var(--surface);overflow:hidden}.ocr-head{border-bottom:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 8px;padding:6px 8px 6px 12px;font-size:13px;display:flex}.ocr-head>.muted{color:var(--muted);flex:240px}.ocr-actions{flex:none;gap:4px;display:flex}.ocr-actions .copy-text{border-radius:var(--r);height:28px;color:var(--muted);font:inherit;white-space:nowrap;cursor:pointer;background:0 0;border:0;align-items:center;gap:5px;padding:0 8px;font-size:12px;display:inline-flex}.ocr-actions .copy-text:hover{background:var(--ocr-hover);color:var(--text)}.ocr-body{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);display:grid}.ocr-figure{background:var(--surface-2);border-right:1px solid var(--border);max-height:520px;overflow:auto}.ocr-canvas{line-height:0;position:relative}.ocr-canvas img{width:100%;height:auto;display:block}.ocr-boxes{width:100%;height:100%;position:absolute;inset:0}.ocr-boxes rect{fill:#0000;stroke:var(--ocr-link);stroke-opacity:.5;stroke-width:1.5px;cursor:pointer;transition:stroke-opacity .12s,fill .12s}.ocr-boxes rect.hover{stroke-opacity:1;fill:color-mix(in srgb, var(--ocr-link) 12%, transparent)}.ocr.has-selection .ocr-boxes rect:not(.on):not(.hover):not(.proof):not(.unproven){stroke-opacity:.15}.ocr-boxes rect.approx{stroke-dasharray:3 3}.ocr-boxes rect.proof{stroke:var(--ocr-good);stroke-opacity:1;stroke-width:2.5px;fill:color-mix(in srgb, var(--ocr-good) 12%, transparent)}.ocr-boxes rect.unproven{stroke:var(--ocr-bad);stroke-opacity:1;stroke-width:2.5px;stroke-dasharray:6 4;fill:color-mix(in srgb, var(--ocr-bad) 10%, transparent)}.ocr-boxes rect.on{fill:color-mix(in srgb, var(--ocr-highlight) 45%, transparent);stroke:var(--ocr-caution);stroke-opacity:1;stroke-width:2.5px}.ocr-lines{max-height:520px;margin:0;padding:4px;list-style:none;overflow:auto}.ocr-line{border-radius:var(--r);width:100%;color:var(--text);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;gap:8px;padding:4px 8px;font-size:14px;display:flex}.ocr-line:hover,.ocr-line.hover{background:var(--ocr-hover)}.ocr-line.on{background:var(--ocr-highlight)}.ocr-line:focus-visible{outline:2px solid var(--ocr-link);outline-offset:-2px}.ocr-n{min-width:2.5ch;color:var(--faint);text-align:right;font-family:var(--mono);font-variant-numeric:tabular-nums;flex:none;font-size:12px}.ocr-text{white-space:pre-wrap;overflow-wrap:anywhere;flex:1}.ocr-line.proof .ocr-n{color:var(--ocr-good);font-weight:600}.ocr-line.unproven .ocr-n{color:var(--ocr-bad);font-weight:600}.ocr-role{border-radius:var(--r);white-space:nowrap;flex:none;align-self:center;padding:0 6px;font-size:11.5px;font-weight:600;line-height:18px}.ocr-role.proof{color:var(--ocr-good);border:1px solid var(--ocr-good)}.ocr-role.unproven{color:var(--ocr-bad);border:1px dashed var(--ocr-bad)}.ocr.in-window{border:0;border-radius:0}.ocr.in-window .ocr-body{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr)}.ocr.in-window .ocr-figure,.ocr.in-window .ocr-lines{max-height:calc(100dvh - 200px)}@media (width<=640px){.ocr-body,.ocr.in-window .ocr-body{grid-template-columns:1fr}.ocr-figure{border-right:0;border-bottom:1px solid var(--border);max-height:360px}.ocr-lines{max-height:300px}.ocr.in-window .ocr-figure{max-height:48dvh}.ocr.in-window .ocr-lines{max-height:none}}
