.ocr-main{padding-bottom:64px}
.ocr-hero{max-width:900px}
.ocr-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:stretch}
.ocr-input-panel,.ocr-result-panel{background:#fff;border:1px solid #dbe4ef;border-radius:20px;padding:26px;min-width:0;box-shadow:0 8px 24px #14264d05}
.ocr-result-panel{display:flex;flex-direction:column}
.ocr-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}
.ocr-panel-heading h2{font-size:1.2rem;margin:0;letter-spacing:-.025em}
.ocr-panel-heading>span{font-size:.8rem;color:#52617a}
.ocr-small{padding:7px 11px;font-size:.8rem}
.ocr-drop{min-height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;border:2px dashed #c6d5eb;border-radius:14px;padding:22px;text-align:center;background:#f8faff;overflow:hidden}
.ocr-drop.is-dragging{background:#e6efff;border-color:#2454dc}
.ocr-drop[aria-disabled=true]{opacity:.7}
.ocr-drop p{font-size:1rem;font-weight:700;margin:10px 0 3px}
.ocr-drop span:not(.ocr-picture){font-size:.83rem;color:#52617a}
.ocr-picture{display:inline-grid;place-items:center;font-size:1.6rem;font-weight:800;width:60px;height:60px;background:#eaf0ff;color:#2454dc;border-radius:16px}
.ocr-examples{margin-top:12px;font-size:.8rem;color:#52617a}
.ocr-examples summary{cursor:pointer}
.ocr-examples>div{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.ocr-examples button{border:1px solid #cbd5e1;border-radius:7px;padding:6px 10px;background:#fff;color:#2454dc;font-size:.8rem}
.ocr-drop img{max-width:100%;max-height:260px;object-fit:contain;border-radius:6px}
.ocr-image-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:.75rem;color:#52617a;margin:12px 0 22px}
.ocr-text-button{border:0;background:none;color:#2454dc;font-size:.8rem;font-weight:700;white-space:nowrap;padding:5px}
.ocr-settings{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ocr-settings label{display:block;font-size:.83rem;font-weight:700;margin-bottom:7px}
.ocr-settings select{width:100%;padding:11px 9px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#11213c;font-size:.87rem}
.ocr-check{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:.85rem;margin:19px 0}
.ocr-check input{accent-color:#2454dc;width:17px;height:17px}
.ocr-check span{color:#52617a;font-size:.78rem}
.ocr-run{display:flex;gap:10px;flex-wrap:wrap}
.ocr-run>.button:first-child{flex:1;justify-content:center}
.ocr-workspace progress{display:block;accent-color:#2454dc;width:100%;height:10px;margin-top:18px}
.ocr-status{font-size:.86rem;color:#405678;min-height:42px;margin:14px 0 0;overflow-wrap:anywhere}
.ocr-status.ocr-error{color:#9a3412}
.ocr-result-panel textarea{flex:1;min-height:360px;width:100%;background:#fafcff;border:1px solid #cbd5e1;border-radius:12px;padding:16px;font-size:1rem;line-height:1.75;color:#11213c;resize:vertical}
.ocr-result-meta{display:flex;flex-direction:column;gap:5px;font-size:.82rem;margin:15px 0;color:#52617a}
.ocr-result-meta strong{color:#2454dc}
.ocr-reflow{display:flex;align-items:center;flex-wrap:wrap;gap:5px 12px;margin:0 0 14px}
.ocr-reflow .ocr-text-button{border:1px solid #c6d5eb;border-radius:8px;padding:7px 10px;background:#f4f7ff;white-space:normal;text-align:left}
.ocr-reflow>span{font-size:.75rem;color:#52617a}
.ocr-result-actions{display:flex;gap:10px;flex-wrap:wrap}
.ocr-result-note{font-size:.78rem;color:#52617a;margin:15px 0 0}
.ocr-notes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;margin-top:40px}
.ocr-notes h2{font-size:1rem;margin-bottom:10px}
.ocr-notes p{color:#52617a;font-size:.87rem;margin:0}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:820px){.ocr-workspace,.ocr-notes{grid-template-columns:1fr}.ocr-input-panel,.ocr-result-panel{padding:20px}.ocr-result-panel textarea{min-height:300px}.ocr-notes{gap:22px}}
@media(max-width:400px){.ocr-settings{grid-template-columns:1fr}.ocr-panel-heading h2{font-size:1.05rem}.ocr-check{font-size:.8rem}.ocr-result-actions .button{flex:1;justify-content:center;font-size:.85rem;padding-inline:12px}}
