/* PDF OCR — scoped, responsive workspace. */
.pdf-ocr-page{background:#f6f8fc;color:#17253a;font-family:Inter,Arial,sans-serif}
.pdf-ocr-page .intro{text-align:center;padding:38px 15px 25px}
.pdf-ocr-page .intro h1{font-size:38px;line-height:1.15;margin:0 0 8px;color:#0f172a;font-weight:850}
.pdf-ocr-page .intro p{margin:0;color:#64748b;font-size:15px}
.pdf-ocr-page .workspace{width:min(1500px,calc(100% - 36px));margin:auto;padding:0 0 28px;display:grid;grid-template-columns:280px minmax(0,1fr) 330px;gap:18px;align-items:start}
.pdf-ocr-page .card{background:#fff;border:1px solid #dfe6ef;border-radius:18px;padding:18px;box-shadow:0 7px 25px rgba(38,63,96,.07)}
.pdf-ocr-page .card h2{margin:0 0 16px;font-size:19px;color:#17253a}
.pdf-ocr-page .drop{border:2px dashed #9ec5f3;border-radius:14px;background:#f7fbff;text-align:center;padding:30px 12px}
.pdf-ocr-page .pdf-icon{display:grid;place-items:center;width:60px;height:70px;margin:auto;background:#e4efff;color:#2867e8;border-radius:14px;font-weight:900;font-size:18px}
.pdf-ocr-page .drop h3{margin:14px 0 5px;font-size:15px}.pdf-ocr-page .drop p{color:#8290a3;font-size:13px;margin:0 0 15px}
.pdf-ocr-page .blue,.pdf-ocr-page .green,.pdf-ocr-page .light,.pdf-ocr-page .reset{border:0;border-radius:10px;padding:11px 14px;font-weight:800;cursor:pointer}
.pdf-ocr-page .blue{background:#2867e8;color:#fff}.pdf-ocr-page .green{background:#16a34a;color:#fff}.pdf-ocr-page .light{background:#edf4ff;color:#2867e8}.pdf-ocr-page .reset{width:100%;margin-top:10px;background:#fff0f1;color:#d64d59}
.pdf-ocr-page .stats{display:flex;justify-content:space-between;background:#eef5ff;padding:11px 12px;border-radius:10px;margin-top:10px;font-size:12px;color:#66758b}.pdf-ocr-page .stats b{color:#2867e8}
.pdf-ocr-page .block{margin-top:17px}.pdf-ocr-page .block label{display:block;font-size:13px;font-weight:800;margin-bottom:7px}.pdf-ocr-page .block select{width:100%;padding:10px;border:1px solid #dce4ed;border-radius:10px;background:#fff;color:#17253a}
.pdf-ocr-page .note{font-size:11px;color:#8996a8;line-height:1.5;margin-top:14px}
.pdf-ocr-page .toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.pdf-ocr-page .toolbar strong{display:block;font-size:17px}.pdf-ocr-page .toolbar span{display:block;color:#8492a5;font-size:12px;margin-top:3px}
.pdf-ocr-page .pager{display:flex;gap:7px}.pdf-ocr-page .pager button{width:36px;height:34px;border:1px solid #dce4ed;background:#fff;border-radius:9px;font-size:20px;color:#2867e8;cursor:pointer}.pdf-ocr-page .pager button:disabled{opacity:.4;cursor:not-allowed}
.pdf-ocr-page .preview{height:600px;background:#e7ecf3;border-radius:13px;display:flex;align-items:center;justify-content:center;overflow:auto;padding:18px}.pdf-ocr-page .preview canvas{max-width:100%;height:auto!important;background:#fff;box-shadow:0 8px 28px rgba(0,0,0,.13)}
.pdf-ocr-page .empty{text-align:center;color:#8592a5}.pdf-ocr-page .empty>div{font-size:55px}.pdf-ocr-page .empty h2{color:#2a3a50;font-size:19px;margin:7px}.pdf-ocr-page .empty p{font-size:13px}
.pdf-ocr-page .progress{height:8px;background:#e8edf4;border-radius:20px;margin-top:14px;overflow:hidden}.pdf-ocr-page .progress>div{height:100%;width:0;background:#2867e8;transition:width .2s}.pdf-ocr-page .progress-line{display:flex;justify-content:space-between;color:#7b899c;font-size:12px;padding:6px 0 10px}.pdf-ocr-page .progress-line b{color:#2867e8}
.pdf-ocr-page .action{width:100%;font-size:15px}.pdf-ocr-page .action:disabled{opacity:.45;cursor:not-allowed}
.pdf-ocr-page .result-card{display:flex;flex-direction:column}.pdf-ocr-page .result-card textarea{width:100%;height:500px;resize:vertical;border:1px solid #dce4ed;border-radius:12px;padding:13px;font:13px/1.55 Consolas,monospace;background:#fbfcfe;color:#26364b}.pdf-ocr-page .result-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.pdf-ocr-page .result-actions button:disabled{opacity:.45;cursor:not-allowed}
.pdf-ocr-page .info{width:min(1456px,calc(100% - 36px));margin:0 auto 32px;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.pdf-ocr-page .info-card{background:#fff;border:1px solid #dfe6ef;border-radius:18px;padding:20px}.pdf-ocr-page .info-card h2{margin-top:0}.pdf-ocr-page .info-card li{margin:8px 0;color:#66758b;font-size:13px}.pdf-ocr-page .info-card details{border-top:1px solid #e5ebf2;padding:10px 0;font-size:13px}.pdf-ocr-page .info-card summary{font-weight:800;cursor:pointer}.pdf-ocr-page .info-card p{color:#6d7c91;line-height:1.5}
@media(max-width:1150px){.pdf-ocr-page .workspace{grid-template-columns:250px minmax(0,1fr)}.pdf-ocr-page .result-card{grid-column:1/-1}.pdf-ocr-page .result-card textarea{height:260px}.pdf-ocr-page .info{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.pdf-ocr-page .workspace{width:calc(100% - 24px);grid-template-columns:1fr}.pdf-ocr-page .preview{height:470px}.pdf-ocr-page .info{width:calc(100% - 24px);grid-template-columns:1fr}.pdf-ocr-page .intro h1{font-size:31px}.pdf-ocr-page .result-card{grid-column:auto}.pdf-ocr-page .result-actions{grid-template-columns:1fr}.pdf-ocr-page .result-card textarea{height:300px}}
html.otb-dark-preload .pdf-ocr-page{background:#0f172a;color:#e5e7eb}html.otb-dark-preload .pdf-ocr-page .card,html.otb-dark-preload .pdf-ocr-page .info-card{background:#111827;border-color:#334155;color:#e5e7eb}html.otb-dark-preload .pdf-ocr-page .intro h1,html.otb-dark-preload .pdf-ocr-page .empty h2{color:#f8fafc}html.otb-dark-preload .pdf-ocr-page .drop{background:#0b1220;border-color:#365b8f}html.otb-dark-preload .pdf-ocr-page .result-card textarea{background:#0b1220;color:#e5e7eb;border-color:#334155}
