/* M5L — PDF to Text. Scoped rules protect existing tools. */
#pdfTextWorkspace{min-width:0}
#pdfTextWorkspace [hidden]{display:none!important}
#pdfTextWorkspace .pt-drop{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:240px;padding:25px 15px;border:2px dashed #9788ff;border-radius:16px;background:#f9f7ff;text-align:center;cursor:pointer}
#pdfTextWorkspace .pt-drop:hover,#pdfTextWorkspace .pt-drop:focus-visible,#pdfTextWorkspace .pt-drop.pt-drag{border-color:#5145df;background:#f2efff}
#pdfTextWorkspace .pt-drop input[type=file]{position:absolute!important;width:1px!important;height:1px!important;bottom:0!important;left:0!important;border:0!important;padding:0!important;opacity:0!important;clip-path:inset(50%)!important;pointer-events:none!important}
#pdfTextWorkspace .pt-drop .file-pick-visual{pointer-events:none}
#pdfTextWorkspace .pt-file-row{display:flex;align-items:center;gap:12px;min-width:0;padding:14px;margin:21px 0;border:1px solid #d9e1f2;border-radius:13px;background:#f8f9ff}
#pdfTextWorkspace .pt-pdf-icon{flex:none;display:grid;place-items:center;height:46px;width:46px;background:#eae6ff;border-radius:12px;color:#5645d8;font-size:12px;font-weight:800}
#pdfTextWorkspace .pt-file-info{flex:1;min-width:0;display:grid;gap:5px}
#pdfTextWorkspace .pt-file-info strong{color:#172642;font-size:13px;overflow-wrap:anywhere}
#pdfTextWorkspace .pt-file-info small{font-size:12px;color:#73839c}
#pdfTextWorkspace .pt-file-row .small-ghost{flex:none}
#pdfTextWorkspace .pt-heading{font-size:17px;color:#172642;margin:26px 0 14px}
#pdfTextWorkspace .pt-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
#pdfTextWorkspace .pt-scope{min-width:0;margin:0 0 18px;padding:0;border:0;display:grid;gap:10px}
#pdfTextWorkspace .pt-option,#pdfTextWorkspace .pt-check{display:flex;align-items:flex-start;gap:12px;min-width:0;padding:15px 16px;border:1px solid #d5def1;border-radius:12px;background:#f8faff;cursor:pointer}
#pdfTextWorkspace .pt-option:has(input:checked){border-color:#8474ff;background:#f0ecff}
#pdfTextWorkspace .pt-option input,#pdfTextWorkspace .pt-check input{width:18px;height:18px;flex:none;margin-top:2px;accent-color:#5444dc}
#pdfTextWorkspace .pt-option span,#pdfTextWorkspace .pt-check span{display:grid;min-width:0;gap:4px}
#pdfTextWorkspace .pt-option strong,#pdfTextWorkspace .pt-check strong{font-size:13px;color:#1d2a48}
#pdfTextWorkspace .pt-option small,#pdfTextWorkspace .pt-check small{font-size:12px;line-height:1.6;color:#697c99}
#pdfTextWorkspace .pt-check{margin-bottom:22px;background:#fff}
#pdfTextWorkspace .pt-field{display:grid;gap:8px;min-width:0;margin-bottom:22px}
#pdfTextWorkspace .pt-field label{font-size:13px;color:#172642;font-weight:750}
#pdfTextWorkspace .pt-field input{min-width:0;width:100%;min-height:45px;border:1px solid #d2dcf0;border-radius:10px;padding:11px 14px;font:inherit;font-size:14px;color:#1d2b48;background:#fff}
#pdfTextWorkspace .pt-field input:focus-visible{outline:2px solid #7867ea;outline-offset:1px}
#pdfTextWorkspace .pt-field small{font-size:12px;line-height:1.55;color:#6e809e}
#pdfTextWorkspace .pt-warning{background:#fff9eb;border:1px solid #ecdcad;border-radius:11px;padding:14px 16px;font-size:12px;line-height:1.75;color:#84652e;margin:0 0 24px}
#pdfTextWorkspace .pt-actions{display:flex;gap:12px;margin-top:12px}
#pdfTextWorkspace .pt-actions>.btn{flex:1;min-width:0;white-space:normal;text-align:center}
#pdfTextWorkspace .pt-actions .btn-primary{background:#4f46e5;color:#fff}
#pdfTextWorkspace .pt-actions .btn-primary:hover:not(:disabled){background:#4338ca;color:#fff}
#pdfTextWorkspace .pt-actions .btn-primary:disabled{opacity:1;background:#dfe5f0;color:#4f6080;box-shadow:none;cursor:not-allowed}
#pdfTextWorkspace .pt-result{margin:18px 0 0;border:1px solid #cbe5d9;border-radius:13px;padding:16px;background:#f4fbf8;min-width:0}
#pdfTextWorkspace .pt-result-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
#pdfTextWorkspace .pt-result-head>div{display:grid;gap:5px;min-width:0}
#pdfTextWorkspace .pt-result-head strong{font-size:14px;color:#176a4b}
#pdfTextWorkspace .pt-result-head small{font-size:12px;color:#51796a;line-height:1.5}
#pdfTextWorkspace .pt-preview-label{margin:15px 0 8px;color:#172642;font-size:13px;font-weight:750}
#pdfTextWorkspace .pt-preview-label small{font-size:11px;color:#79889f;font-weight:500}
#pdfTextWorkspace .pt-preview{background:#fff;border:1px solid #dce5ed;border-radius:10px;padding:14px;margin:0;max-height:300px;overflow:auto;max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;font:12px/1.75 ui-monospace,SFMono-Regular,Consolas,monospace;color:#1d2b44;tab-size:4}
@media(max-width:560px){#pdfTextWorkspace .pt-drop{min-height:205px}#pdfTextWorkspace .pt-actions{flex-direction:column}#pdfTextWorkspace .pt-actions>.btn{width:100%}#pdfTextWorkspace .pt-file-row{flex-wrap:wrap}#pdfTextWorkspace .pt-file-row .small-ghost{margin-left:auto}#pdfTextWorkspace .pt-option,#pdfTextWorkspace .pt-check{padding:14px}}
