/* ================= 本地 OCR 面板 ================= */

.ocr-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ocr-progress { display: flex; flex-direction: column; gap: 8px; }

.ocr-bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(120, 140, 165, .16);
  overflow: hidden;
}

.ocr-bar-fill {
  height: 100%;
  width: 2%;
  border-radius: 99px;
  background: var(--brand-grad, linear-gradient(90deg, #22d3ee, #3b82f6, #8b5cf6));
  transition: width .25s ease;
}

.ocr-bar.fail .ocr-bar-fill {
  background: #ff3b30;
}

.ocr-status {
  font-size: 12.5px;
  color: var(--txt-2);
  letter-spacing: .01em;
}

.ocr-out {
  width: 100%;
  min-height: 200px;
  max-height: 46vh;
  resize: vertical;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--hairline, rgba(60, 60, 67, .16));
  background: var(--panel, #fff);
  color: var(--txt, #111);
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  outline: none;
}

.ocr-out:focus { border-color: var(--accent, #2f7df6); }

.ocr-hint {
  font-size: 12px;
  color: var(--txt-3, #98a2b0);
  line-height: 1.5;
}

.ocr-actions {
  display: flex;
  gap: 8px;
}

.ocr-actions .btn { flex: 1; }

.ocr-actions .btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

@media (max-width: 860px) {
  .ocr-out {
    min-height: 180px;
    max-height: 40vh;
    font-size: 16px;
    border-radius: 11px;
    background: var(--n-fill, #f1f1f4);
    border-color: transparent;
  }
  .ocr-actions { flex-direction: column; }
  .ocr-actions .btn { width: 100%; padding: 13px; }
  .lb-actions #lbOcr { flex: 1; }
}
