.image-ocr{margin-top:1.5rem}.ocr-layout{grid-template-columns:minmax(320px,.9fr) minmax(0,1.1fr);align-items:start;gap:1.5rem;display:grid}.ocr-controls,.ocr-output-panel{min-width:0;padding:1.4rem}.ocr-dropzone{text-align:center;border:2px dashed var(--line,#cfdcd7);background:var(--brand-soft);border-radius:14px;padding:1.4rem;transition:border-color .15s,background .15s}.ocr-dropzone.dragging{border-color:var(--brand-red);background:var(--brand-tint)}.ocr-dropzone p{margin:.7rem 0 0}.ocr-selected-file{border:1px solid var(--line,#dce4df);border-radius:12px;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:.8rem;padding:.75rem;display:grid}.ocr-selected-file img{object-fit:contain;background:var(--brand-soft);border-radius:8px;width:72px;height:72px}.ocr-selected-file div{min-width:0}.ocr-selected-file strong,.ocr-selected-file span{overflow-wrap:anywhere;display:block}.ocr-selected-file span{color:var(--muted,#64756d);margin-top:.2rem;font-size:.88rem}.ocr-language-heading{margin-top:1.4rem}.ocr-language{border:0;margin:0;padding:0}.ocr-language label{display:block}.ocr-language select{border:1px solid var(--brand-line);width:100%;min-height:3rem;color:inherit;font:inherit;background:#fff;border-radius:10px;padding:.65rem .8rem;font-weight:650}.image-ocr :focus-visible{outline:3px solid var(--brand-focus);outline-offset:3px}.ocr-model-note{border-left:3px solid var(--brand-red);background:var(--brand-soft);margin:1rem 0;padding:.8rem;font-size:.9rem;line-height:1.55}.ocr-actions,.ocr-output-actions{flex-wrap:wrap;gap:.55rem;display:flex}.ocr-progress{min-height:2.5rem;margin-top:.8rem}.ocr-progress p{margin:.25rem 0}.ocr-progress progress{width:100%;accent-color:var(--brand-red)}.ocr-output-panel textarea{resize:vertical;border:1px solid var(--brand-line);width:100%;min-height:22rem;color:inherit;font:inherit;background:#fff;border-radius:10px;padding:.9rem;line-height:1.65}.ocr-output-actions{margin-top:1rem}.ocr-empty{text-align:center;border:1px dashed var(--line,#cfdcd7);background:var(--brand-soft);border-radius:12px;align-content:center;place-items:center;min-height:22rem;padding:1.2rem;display:grid}.ocr-empty h3,.ocr-empty p{margin:.35rem 0}.ocr-preview{object-fit:contain;background:var(--brand-soft);border-radius:10px;max-width:min(100%,360px);max-height:240px;margin-bottom:.8rem}@media (width<=820px){.ocr-layout{grid-template-columns:1fr}.ocr-controls,.ocr-output-panel{padding:1rem}}@media (width<=520px){.ocr-selected-file{grid-template-columns:58px minmax(0,1fr)}.ocr-selected-file img{width:58px;height:58px}.ocr-selected-file .text-button{grid-column:1/-1;justify-self:start}.ocr-actions .button,.ocr-output-actions .button{justify-content:center;width:100%}.ocr-output-panel textarea,.ocr-empty{min-height:18rem}}
