.ocr-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;margin-top:24px;align-items:start}@media(max-width:900px){.ocr-grid{grid-template-columns:minmax(0,1fr)}}.ocr-panel{display:flex;flex-direction:column;gap:12px;min-width:0}.ocr-drop{position:relative;border:1.5px dashed var(--color-border-secondary, rgba(0, 0, 0, .22));border-radius:12px;background:var(--color-background-secondary, rgba(0, 0, 0, .02));min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:border-color .18s,background .18s;overflow:hidden;padding:14px}.ocr-drop:hover,.ocr-drop.drag-over{border-color:var(--color-border-primary, rgba(0, 0, 0, .4));background:var(--color-background-tertiary, rgba(0, 0, 0, .04))}.ocr-drop__inner{display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--text-secondary, #86868b);font-size:14px}.ocr-drop__inner small{font-size:12px;color:var(--text-muted, #acacb0)}.ocr-preview{max-width:100%;max-height:300px;-o-object-fit:contain;object-fit:contain;border-radius:8px;display:block}.ocr-drop__clear{position:absolute;top:10px;right:10px;z-index:2;width:26px;height:26px;padding:0;border:none;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:#fff;background:#00000080;transition:background .15s}.ocr-drop__clear:hover{background:#000000ad}.ocr-preview__meta{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin-top:10px;font-size:12.5px;color:var(--text-secondary, #86868b)}.ocr-preview__meta span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ocr-change{flex:none;border:1px solid var(--border-subtle, rgba(0, 0, 0, .1));background:#fff;border-radius:8px;padding:4px 10px;font-size:12.5px;color:var(--text-primary, #1d1d1f);cursor:pointer}.ocr-change:hover{background:var(--bg-hover, #f0f0f2)}.ocr-panel .ai-btn{width:100%}.ocr-progress{margin-top:4px}.ocr-progress__label{display:flex;justify-content:space-between;font-size:12.5px;color:var(--text-secondary, #86868b);margin-bottom:6px}.ocr-progress__track{height:6px;border-radius:999px;background:var(--bg-subtle, rgba(127, 127, 127, .14));overflow:hidden}.ocr-progress__bar{height:100%;border-radius:999px;background:#4f46e5;transition:width .25s linear}.ocr-privacy-note{display:flex;align-items:flex-start;gap:8px;margin-top:10px;padding:10px 12px;border-radius:8px;font-size:12.5px;line-height:1.6;color:var(--text-secondary, #6b7280);background:var(--bg-subtle, rgba(127, 127, 127, .07));border:1px solid var(--border-subtle, rgba(127, 127, 127, .18))}.ocr-privacy-note svg{width:15px;height:15px;flex:none;margin-top:2px;color:var(--text-muted, #9ca3af)}.ocr-hint{margin:0;font-size:12.5px;line-height:1.6;color:var(--text-muted, #acacb0)}.ocr-error{margin:0;padding:8px 12px;border-radius:8px;font-size:12.5px;color:#b42318;background:#b423180f;border:1px solid rgba(180,35,24,.16)}.ocr-result{border:1px solid var(--border-subtle, rgba(0, 0, 0, .08));border-radius:12px;background:#fff;padding:14px;min-height:420px;display:flex;flex-direction:column;gap:10px}.ocr-result__head{display:flex;align-items:center;justify-content:space-between;gap:12px}.ocr-result__title{font-size:14px;font-weight:600;color:var(--text-primary, #1d1d1f)}.ocr-result__title b{font-weight:600}.ocr-result__actions{display:flex;gap:8px}.ocr-mini{border:1px solid var(--border-subtle, rgba(0, 0, 0, .1));background:#fff;border-radius:8px;padding:5px 12px;font-size:12.5px;color:var(--text-primary, #1d1d1f);cursor:pointer;transition:background .16s,border-color .16s}.ocr-mini:hover:not(:disabled){background:var(--bg-hover, #f0f0f2);border-color:var(--color-border-primary, rgba(0, 0, 0, .3))}.ocr-mini:disabled{opacity:.5;cursor:not-allowed}.ocr-text{flex:1;width:100%;min-height:330px;resize:vertical;padding:12px;border:1px solid var(--border-subtle, rgba(0, 0, 0, .1));border-radius:8px;font-family:inherit;font-size:13px;line-height:1.75;color:var(--text-primary, #1d1d1f);background:var(--bg-primary, #fff);outline:none}.ocr-text:focus{border-color:#4f46e5}.ocr-meta{font-size:12px;color:var(--text-muted, #acacb0)}.ocr-empty{flex:1;display:flex;align-items:center;justify-content:center;text-align:center;padding:24px;font-size:13px;line-height:1.7;color:var(--text-muted, #acacb0)}.ocr-thumbs{display:flex;align-items:center;gap:8px;margin-top:10px;padding-bottom:2px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}.ocr-thumb{position:relative;flex:0 0 auto;width:54px;height:54px;padding:0;border-radius:9px;border:2px solid transparent;background:var(--bg-subtle, rgba(127, 127, 127, .08));overflow:hidden;cursor:pointer;transition:border-color .16s}.ocr-thumb img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;display:block}.ocr-thumb:hover{border-color:#4f46e573}.ocr-thumb.is-active{border-color:#4f46e5}.ocr-thumb--add{border:1.5px dashed var(--border-subtle, rgba(0, 0, 0, .18));background:transparent;color:var(--text-tertiary, #999);font-size:19px;line-height:1;display:flex;align-items:center;justify-content:center}.ocr-thumb--add:hover{border-color:#4f46e5;color:#4f46e5}.ocr-thumb__x{position:absolute;top:2px;right:2px;width:16px;height:16px;padding:0;border:none;border-radius:50%;background:#0000008c;color:#fff;font-size:9px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer}.ocr-thumb__x:hover{background:#000c}.ocr-thumb__flag{position:absolute;bottom:2px;left:2px;min-width:14px;height:14px;padding:0 3px;border-radius:7px;background:#4f46e5eb;color:#fff;font-size:9px;line-height:14px;text-align:center}.ocr-thumb__flag--err{background:#ef4444eb}.ocr-result__idx{margin-left:6px;font-size:12px;font-weight:400;color:var(--text-tertiary, #888)}.ocr-result__actions{flex-wrap:wrap;justify-content:flex-end}.ocr-pager{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:2px;border-top:1px solid var(--border-subtle, rgba(0, 0, 0, .07));margin-top:2px}.ocr-pager__btn{flex:0 0 auto;border:1px solid var(--border-subtle, rgba(0, 0, 0, .12));background:var(--bg-primary, #fff);border-radius:8px;padding:6px 14px;font-size:13px;color:var(--text-primary, #1d1d1f);cursor:pointer;transition:background .16s,border-color .16s}.ocr-pager__btn:hover:not(:disabled){background:var(--bg-hover, #f0f0f2);border-color:var(--color-border-primary, rgba(0, 0, 0, .3))}.ocr-pager__btn:disabled{opacity:.4;cursor:not-allowed}.ocr-pager__idx{font-size:12.5px;color:var(--text-tertiary, #888)}
