.ocr-review { width: min(1120px, calc(100% - 24px)); max-width: none; max-height: calc(100vh - 24px - var(--math-keyboard-height, 0px)); max-height: calc(100dvh - 24px - var(--math-keyboard-height, 0px)); margin: 12px auto auto; padding: 0; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: var(--paper, #fff); box-shadow: 0 18px 80px #0004; overflow: visible; }
.ocr-review::backdrop { background: #18242b99; }
.ocr-review > .ML__keyboard { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; --_padding-bottom: env(safe-area-inset-bottom, 0px); }
.ocr-review-form { margin: 0; max-height: calc(100vh - 24px - var(--math-keyboard-height, 0px)); max-height: calc(100dvh - 24px - var(--math-keyboard-height, 0px)); overflow: auto; overscroll-behavior: contain; border-radius: 18px; }
.ocr-review-header { padding: 18px 20px 8px; }
.ocr-review-header h2 { margin: 0; font-size: 22px; line-height: 1.5; }
.ocr-review-header p { color: var(--muted); margin: 6px 0; line-height: 1.7; font-size: 14px; }
.ocr-review-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; padding: 0 20px; }
.ocr-review-photo, .ocr-review-editing { min-width: 0; }
.ocr-review-photo h3 { font-size: 15px; margin: 10px 0 6px; }
.ocr-photo-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ocr-photo-tools button, .ocr-reset, .ocr-review-status + button, .ocr-review-actions > button:not(.primary) { font: inherit; font-size: 13px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--bg); cursor: pointer; }
.ocr-photo-viewport { overflow: auto; max-height: 52vh; min-height: 160px; border: 1px solid var(--line); border-radius: 10px; background: #e9e9e9; touch-action: pan-x pan-y pinch-zoom; }
.ocr-photo-stage { position: relative; }
.ocr-source-image { display: block; position: absolute; left: 50%; top: 50%; max-width: none; height: auto; }
.ocr-review-editing .field { margin-top: 10px; }
.ocr-review-editing .field > span { font-size: 14px; }
.ocr-review-editing textarea { width: 100%; min-height: 180px; }
.ocr-review-editing .ProseMirror { min-height: 170px; }
.ocr-review-status { font-size: 13px; line-height: 1.7; color: var(--muted); margin: 8px 0; }
.ocr-review-status.error { color: #b42318; }
.ocr-reset { margin-top: 8px; }
.ocr-apply-options { border: 0; margin: 16px 20px 0; padding: 0; min-width: 0; }
.ocr-apply-options legend { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.ocr-apply-options label { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; font-size: 14px; margin-right: 18px; cursor: pointer; }
.ocr-apply-options label[hidden] { display: none; }
.ocr-review-note { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 4px 20px 12px; }
.ocr-review-actions { display: flex; gap: 12px; position: sticky; bottom: 0; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--paper, #fff); z-index: 2; }
.ocr-review-actions button { flex: 1; margin: 0; min-height: 48px; }
.ocr-review [hidden] { display: none; }
@media (max-width: 680px) {
  .ocr-review-header { padding: 12px 12px 4px; }
  .ocr-review-header h2 { font-size: 18px; }
  .ocr-review-layout { grid-template-columns: 1fr; gap: 6px; padding: 0 12px; }
  .ocr-review-photo { position: sticky; top: 0; z-index: 3; background: var(--paper, #fff); padding-bottom: 6px; }
  .ocr-review-photo h3 { margin-top: 0; }
  .ocr-photo-viewport { min-height: 90px; max-height: 24vh; max-height: 24dvh; }
  .ocr-review-editing .ProseMirror { min-height: 120px; }
  .ocr-photo-tools { gap: 4px; }
  .ocr-photo-tools button { padding: 6px 10px; }
  .ocr-apply-options { margin: 10px 12px 0; }
  .ocr-apply-options label { font-size: 13px; }
  .ocr-review-note { margin: 4px 12px 10px; }
  .ocr-review-actions { padding: 10px 12px; }
}
