/* 紙本卷拍照轉題目（js/ocr-teacher.js）與核對辨識結果視窗（js/edit-items.js）。2026-11-05 */

/* 上傳後的頁面縮圖 */
.ocr-thumbs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; }
.ocr-thumb { position: relative; width: 5.2rem; height: 7rem; border: 1px solid #d1d5db; border-radius: 0.5rem; overflow: hidden; background: #fff; }
.ocr-thumb img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; display: block; }
.ocr-thumb-no { position: absolute; left: 0.25rem; bottom: 0.25rem; min-width: 1.2rem; padding: 0 0.3rem; border-radius: 999px; background: rgba(17, 24, 39, 0.75); color: #fff; font-size: 0.75rem; text-align: center; }
.ocr-thumb-x { position: absolute; right: 0.2rem; top: 0.2rem; width: 1.6rem; height: 1.6rem; border: 0; border-radius: 50%; background: rgba(17, 24, 39, 0.75); color: #fff; font-size: 0.8rem; cursor: pointer; }

/* 放大看原圖 */
.ocr-viewer { position: fixed; inset: 0; z-index: 400; background: rgba(0, 0, 0, 0.85); display: flex; align-items: center; justify-content: center; padding: 1rem; cursor: zoom-out; }
.ocr-viewer.hidden { display: none; }
.ocr-viewer img { max-width: 100%; max-height: 92vh; object-fit: contain; border-radius: 0.5rem; background: #fff; }
.ocr-viewer-tip { position: absolute; bottom: 0.8rem; left: 0; right: 0; text-align: center; color: #e5e7eb; font-size: 0.85rem; }

/* 核對視窗：提醒、旗標、原圖縮圖、確認勾選 */
.ei-note { margin: 0 0 0.6rem; padding: 0.6rem 0.8rem; border-radius: 0.6rem; background: rgba(26, 115, 232, 0.1); font-size: 0.9rem; line-height: 1.6; }
.ei-note.ei-warn { background: rgba(251, 188, 4, 0.2); }
.ei-flag { display: inline-block; margin: 0 0.4rem 0.3rem 0; padding: 0.1rem 0.6rem; border-radius: 999px; background: rgba(217, 48, 37, 0.1); color: #d93025; font-size: 0.8rem; font-weight: 700; }
:root[data-theme="dark"] .ei-flag { color: #f28b82; background: rgba(242, 139, 130, 0.16); }
.ei-src { margin-left: 0.4rem; color: #6b7280; font-size: 0.8rem; font-weight: 400; }
.ei-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0 0 0.7rem; }
.ei-pages img { width: 3rem; height: 4rem; object-fit: cover; border: 1px solid #d1d5db; border-radius: 0.3rem; cursor: zoom-in; background: #fff; }
.ei-check { display: flex; align-items: flex-start; gap: 0.5rem; margin: 0 0 0.9rem; padding: 0.6rem 0.8rem; border: 1px solid #d1d5db; border-radius: 0.6rem; font-size: 0.9rem; line-height: 1.5; cursor: pointer; }
.ei-check input { margin-top: 0.2rem; width: 1.1rem; height: 1.1rem; flex: none; }
