/* v5.7.2: live PDF effects, compact trust messaging, and consistent OCR inputs. */
#pc-viewer-overlays .pc-live-watermark{position:absolute;display:block;white-space:nowrap;line-height:1;z-index:4;pointer-events:auto;touch-action:none;user-select:none;cursor:grab;font-family:Helvetica,Arial,sans-serif;font-weight:400;transform-origin:center center;text-shadow:0 0 1px #fff5;}
#pc-viewer-overlays .pc-live-watermark:active{cursor:grabbing;outline:2px dashed #2674ec;outline-offset:7px;border-radius:2px}
#pc-viewer-overlays .pc-live-pagenum{position:absolute;z-index:3;display:block;line-height:1;white-space:nowrap;pointer-events:none;font:400 10px/1 Helvetica,Arial,sans-serif;color:#4c5e73}
.pc-watermark-panel{font-size:15px!important}.pc-watermark-panel .pc-watermark-field{display:flex;flex-direction:column;align-items:stretch;gap:5px;font-size:14px!important;font-weight:700!important}
.pc-watermark-panel .pc-wideinput{font-size:16px!important;width:100%!important;max-width:none!important;padding:11px!important}
.pc-wm-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin:12px 0}
.pc-wm-grid label{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:14px;line-height:1.4}
.pc-wm-grid :is(input[type=range],input[type=number],input[type=color],select){width:100%;max-width:100%;min-width:0;min-height:33px;accent-color:#236aff;border:1px solid #dae4f5;border-radius:8px;background:white;color:#1e3767;padding:3px}
.pc-wm-fit{background:#e9f4ff;border:1px solid #cde4fd;border-radius:9px;padding:9px!important;font-size:14px!important;color:#175798!important}
.pc-number-option{display:flex!important;align-items:center!important;gap:11px;font-size:15px!important;font-weight:750;color:#1b3563}.pc-number-option input{width:20px;height:20px;accent-color:#246cff}
.pc-batch-trust{display:inline-flex;gap:5px;align-items:center;vertical-align:middle;font-weight:750;color:#067a62!important;margin-left:9px;font-size:14px!important}
/* OCR: every action has a readable label and matches the rest of the pastel blue UI. */
.hm-ocr-modern{padding:24px!important;border:1px solid #dce7fa!important;border-radius:16px!important;box-shadow:0 10px 28px #385a9511!important;background:white!important}
.hm-ocr-modern .pc-ocr-rows{gap:13px!important;margin:12px 0 18px!important;align-items:center!important}
.hm-ocr-modern .hm-ocr-file-input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important;clip-path:inset(50%)!important}
.hm-ocr-modern .hm-ocr-choose{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:11px 20px;border-radius:10px;background:linear-gradient(110deg,#2d82ff,#1b5cfa);color:white;font-size:16px;font-weight:750;cursor:pointer;box-shadow:0 5px 17px #3974ed20}
.hm-ocr-modern .hm-ocr-choose:hover{filter:brightness(.97)}
.hm-ocr-modern .hm-ocr-file-input:focus-visible~.hm-ocr-file-name,.hm-ocr-modern .hm-ocr-choose:focus-within{outline:3px solid #3b8bff;outline-offset:3px}
.hm-ocr-modern .hm-ocr-file-name{font-size:15px;color:#526a8c;overflow-wrap:anywhere}
.hm-ocr-modern label[for=pc-ocr-lang]{font-size:15px;font-weight:700;color:#1d3566}
.hm-ocr-modern select#pc-ocr-lang{padding:11px 13px;min-height:47px;font-size:16px;border-radius:10px;border-color:#ccd9f1;background:#f8fbff;color:#1a3366}
.hm-ocr-modern :is(#pc-ocr-run,#pc-ocr-download){font-size:16px!important;font-weight:750!important;min-height:48px!important;padding:12px 20px!important;border-radius:10px!important;min-width:175px;border:1px solid #cfdcf5}
.hm-ocr-modern #pc-ocr-run{background:linear-gradient(110deg,#2d82ff,#1b5cfa)!important;color:#fff!important;border-color:#2866ff!important;box-shadow:0 5px 17px #3974ed20}
.hm-ocr-modern #pc-ocr-download{background:#fff!important;color:#2464cd!important}
.hm-ocr-modern #pc-ocr-download:disabled{opacity:.5;cursor:not-allowed}
.hm-ocr-modern #pc-ocr-status{font-size:15px;line-height:1.5;color:#30577d;min-height:23px}
.hm-ocr-modern #pc-ocr-text{font-size:16px;line-height:1.6;border:1px solid #d0dcf2;background:#fbfcff}
.hm-ocr-modern .pc-fine{font-size:14px!important;line-height:1.6!important;color:#58718a!important}
.hm-ocr-trust{font-size:15px;line-height:1.35;color:#08785e;margin:4px 0 10px;font-weight:700}
@media(max-width:650px){.pc-batch-trust{display:block;margin:6px 0 0}.pc-wm-grid{gap:9px}.hm-ocr-modern{padding:14px!important}.hm-ocr-modern :is(#pc-ocr-run,#pc-ocr-download){width:100%;min-width:0}.hm-ocr-modern .pc-ocr-rows{align-items:stretch;flex-direction:column}}

/* v5.9: cancellable OCR on small devices */
.hm-ocr-modern #pc-ocr-cancel{min-height:48px;padding:12px 20px;border-radius:10px;border:1px solid #cfdcf5;background:#fff;color:#354d75;font-size:16px;font-weight:700}
.hm-ocr-modern #pc-ocr-cancel:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:650px){.hm-ocr-modern #pc-ocr-cancel{width:100%}}
