/* StepScore · ocr.css */
.ocr-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  min-height: 128px; padding: 16px; cursor: pointer; text-align: center;
  border: 1.5px dashed var(--line-strong); border-radius: var(--r-md);
  background: var(--surface-2); color: var(--ink-2); transition: border-color .15s, background .15s;
}
.ocr-drop:hover, .ocr-drop.drag { border-color: var(--brand); background: var(--brand-soft); }
.ocr-drop b { font-size: 12px; font-weight: 600; }
.ocr-preview { width: 100%; max-height: 640px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.ocr-stage { display: grid; grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.15fr); gap: 16px; align-items: start; }
@media (max-width: 980px) { .ocr-stage { grid-template-columns: minmax(0, 1fr); } }
.ocr-unknown { background: #f8e7c2; border-radius: 3px; }
.ocr-history { display: grid; gap: 7px; padding: 10px; max-height: 420px; overflow: auto; }
.ocr-history-item {
  display: grid; gap: 4px; width: 100%; text-align: left; font: inherit; cursor: pointer;
  padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink);
}
.ocr-history-item:hover { border-color: var(--brand-line); background: var(--surface-2); }
.ocr-block { border: 1px solid var(--line); border-radius: var(--r-xs); padding: 7px 9px; margin-bottom: 6px; background: var(--surface-2); }
.ocr-block-code { margin: 5px 0 0; font-family: var(--mono); font-size: 10.5px; line-height: 1.6; white-space: pre-wrap; color: var(--ink-2); }
