/* PDF tools are scoped to pdf-* classes; existing image-tool layouts stay intact. */
.pdf-workbench{background:var(--white);border:1px solid #dfe6d9;border-radius:22px;box-shadow:var(--shadow);overflow:hidden;scroll-margin-top:100px}
.pdf-workbench-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 27px;border-bottom:1px solid var(--line)}
.pdf-workbench-heading h2{font-size:16px;letter-spacing:-.2px}.pdf-local-badge{font-size:11px;color:#56714b;background:#f0f5e9;padding:4px 10px;border-radius:6px;white-space:nowrap}
.pdf-workspace-grid{display:grid;grid-template-columns:minmax(0,1fr) 342px}.pdf-upload-panel{padding:28px;min-width:0;display:flex;flex-direction:column}
.pdf-drop-zone{display:flex;align-items:center;justify-content:center;flex:1;min-height:310px;border:1.5px dashed #bccfb0;border-radius:15px;background:#f9fbf6;transition:border-color .16s,background .16s}
.pdf-drop-zone.is-dragging{border-color:#5a8046;background:#edf5e4}.pdf-drop-zone.is-busy{cursor:progress}.pdf-empty-state{width:100%;text-align:center;padding:30px 22px}
.pdf-document-art{width:72px;height:77px;position:relative;margin:0 auto 18px;color:#75915f}.pdf-document-art svg{display:block;width:60px;height:70px;margin:auto}.pdf-document-art>span{position:absolute;right:-4px;bottom:2px;background:#ecf2e4;color:#5e774a;border:1px solid #d5e1c9;border-radius:6px;font-size:10px;font-weight:700;letter-spacing:.5px;padding:3px 8px}
.pdf-empty-state h3{font-size:22px;line-height:1.3;letter-spacing:-.55px}.pdf-empty-state>p{color:var(--muted);font-size:13px;max-width:350px;margin:10px auto 21px}.pdf-empty-state .button{min-width:165px}.pdf-upload-limit{display:block;margin-top:13px;font-size:11px;color:#78866e}
.pdf-upload-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:16px;color:#718267;font-size:11px}.pdf-upload-footer .text-button{font-size:12px;flex-shrink:0}
.pdf-selected-file{width:100%;padding:38px 26px;text-align:center}.pdf-file-badge{display:inline-flex;align-items:center;justify-content:center;width:65px;height:78px;background:#e8f0df;border:1px solid #d2dfc6;border-radius:11px;font-size:13px;font-weight:700;letter-spacing:1px;color:#607e48;margin-bottom:20px}.pdf-file-info{min-width:0}.pdf-file-info h3{font-size:17px;line-height:1.5;overflow-wrap:anywhere;letter-spacing:-.2px}.pdf-file-info p{font-size:12px;color:var(--muted);margin:6px 0 9px}.pdf-file-ready{display:inline-block;color:#5e7a45;font-size:10px;background:#edf4e5;padding:3px 8px;border-radius:5px}.pdf-file-actions{display:flex;align-items:center;justify-content:center;gap:22px;margin-top:22px}
.pdf-support-note{display:flex;gap:12px;margin-top:25px;padding:18px 18px 17px;background:#f5f7ef;border:1px solid #e7ecdf;border-radius:12px}.pdf-note-mark{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:19px;height:19px;border:1px solid #aab99a;border-radius:50%;font-size:11px;font-weight:650;color:#71845f;margin-top:1px}.pdf-support-note h3{font-size:12px;letter-spacing:0;line-height:1.5;margin-bottom:5px}.pdf-support-note p{font-size:12px;line-height:1.75;color:#75836b}
.pdf-settings-panel{padding:27px 25px;border-left:1px solid var(--line);min-width:0}.pdf-settings-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:19px}.pdf-settings-heading h3{font-size:15px;letter-spacing:-.2px}.pdf-settings-heading>span,.pdf-preview-heading>span{font-size:8px;letter-spacing:1.15px;color:#88987a;font-weight:600}.pdf-output-links{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:24px}.pdf-output-links a{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:11px 8px;border:1px solid #dce4d5;border-radius:9px;background:#fff;line-height:1.5}.pdf-output-links strong{font-size:13px;font-weight:650}.pdf-output-links span{font-size:10px;color:#7e8d73;margin-top:1px}.pdf-output-links [aria-current=page]{border-color:#6f9455;background:#f1f6ea;box-shadow:0 0 0 1px #6f945512}.pdf-output-links a:hover{background:#f1f6ea}.pdf-output-links a[aria-disabled=true]{opacity:.6;cursor:wait}
.pdf-field{margin:0 0 19px}.pdf-field>label{display:block;font-size:12px;font-weight:550;color:#4c6045;margin-bottom:8px}.pdf-field input,.pdf-field select{width:100%;height:41px;border:1px solid #dce4d6;background:#fff;border-radius:8px;padding:9px 11px;color:#344c31;font-size:13px;line-height:1.5;outline:none}.pdf-field input::placeholder{color:#95a08d}.pdf-field input:focus,.pdf-field select:focus{border-color:#74905e;box-shadow:0 0 0 3px #dae8cc66}.pdf-field input:disabled,.pdf-field select:disabled{background:#f8f9f5;color:#85917c;cursor:not-allowed}.pdf-field-help{font-size:11px;line-height:1.65;color:#7b896f;margin-top:7px}.pdf-range-example{white-space:nowrap;color:#60734f}.pdf-optional{font-size:10px;font-weight:400;color:#89967f;margin-left:4px}.pdf-checkbox-label{display:flex;align-items:flex-start;gap:9px;font-size:11px;color:#637657;line-height:1.65;margin:0 0 20px;cursor:pointer}.pdf-checkbox-label input{accent-color:var(--green);width:14px;height:14px;margin:3px 0 0;flex-shrink:0}.pdf-checkbox-label small{display:block;color:#89947e;font-size:10px;margin-top:3px}.pdf-password-details{border-top:1px solid var(--line);padding-top:15px;margin:0 0 21px}.pdf-password-details summary{font-size:12px;color:#6e805e;cursor:pointer}.pdf-password-details .pdf-field{margin:14px 0 0}.pdf-convert-button{width:100%;justify-content:space-between;font-size:13px;min-height:46px}.pdf-cancel-button{display:block;margin:11px auto 0;padding:5px 10px}.pdf-status{font-size:11px;line-height:1.7;color:#738369;margin-top:12px;overflow-wrap:anywhere}.pdf-status.is-error{color:#a14e32}
.pdf-result-panel{padding-top:38px;scroll-margin-top:100px}.pdf-result-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:25px;margin-bottom:20px}.pdf-result-heading h2{font-size:25px;line-height:1.3}.pdf-result-heading .eyebrow{margin-bottom:9px}.pdf-result-heading p{font-size:12px;color:var(--muted);line-height:1.7;margin-top:8px}.pdf-result-heading .button{flex-shrink:0}.pdf-result-file{display:flex;align-items:center;gap:11px;font-size:12px;color:#6d7e61;margin-bottom:19px}.pdf-result-file #pdf-result-name{overflow-wrap:anywhere;min-width:0}.pdf-result-file #pdf-result-size{color:#87937d;flex-shrink:0}.pdf-result-format{display:inline-block;font-size:9px;font-weight:650;letter-spacing:.4px;border-radius:5px;padding:4px 8px;background:#eaf2e2;color:#65804d;flex-shrink:0}
.pdf-warning-panel{background:#fff9ec;border:1px solid #eee0bc;border-radius:12px;padding:18px 21px;margin-bottom:20px}.pdf-warning-panel h3{font-size:13px;letter-spacing:0;color:#85662e;line-height:1.5}.pdf-warning-panel ul{margin:8px 0 0;padding-left:18px;font-size:12px;line-height:1.75;color:#8f7542}.pdf-warning-panel li+li{margin-top:6px}
.pdf-preview-shell{background:#fff;border:1px solid #e0e7d9;border-radius:15px;overflow:hidden}.pdf-preview-heading{padding:20px 24px 7px;display:flex;align-items:center;justify-content:space-between;gap:16px}.pdf-preview-heading h3{font-size:15px;letter-spacing:-.15px}.pdf-preview-note{font-size:11px;line-height:1.75;color:#829174;margin:0 24px 18px}.pdf-preview-page{border-top:1px solid #e8ede2;padding:20px 24px}.pdf-preview-page h4{font-size:11px;font-weight:650;letter-spacing:.2px;color:#71875e;margin:0 0 13px}.pdf-table-scroll{max-width:100%;max-height:390px;overflow:auto;border:1px solid #e1e7da;border-radius:9px;overscroll-behavior:contain}.pdf-preview-table{border-collapse:separate;border-spacing:0;width:100%;font-size:12px;line-height:1.6;color:#516347}.pdf-preview-table caption{text-align:left;padding:9px 12px;font-size:11px;color:#7a896f;background:#fbfcf8;border-bottom:1px solid #e1e7da}.pdf-preview-table th{font-weight:550;background:#f1f5eb;color:#7d8e6c}.pdf-preview-table td,.pdf-preview-table th{padding:9px 12px;text-align:left;vertical-align:top;border-right:1px solid #e6ebdf;border-bottom:1px solid #e6ebdf;min-width:85px;max-width:280px;overflow-wrap:anywhere;white-space:pre-wrap}.pdf-preview-table td:last-child,.pdf-preview-table th:last-child{border-right:0}.pdf-preview-table tbody tr:last-child td{border-bottom:0}.pdf-preview-table thead th{position:sticky;top:0;z-index:1;font-size:10px}.pdf-preview-text{max-height:380px;overflow:auto;padding:18px 20px;background:#fbfcf8;border:1px solid #e8ecdf;border-radius:9px}.pdf-preview-text p{font-size:13px;line-height:1.8;color:#52644a;white-space:pre-wrap;overflow-wrap:anywhere}.pdf-preview-text p+p{margin-top:7px}.pdf-preview-empty{padding:20px 24px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
@media(max-width:1000px){.pdf-workspace-grid{grid-template-columns:minmax(0,1fr) 315px}.pdf-upload-panel{padding:24px}.pdf-settings-panel{padding:25px 22px}.pdf-upload-footer{flex-wrap:wrap;gap:6px}.pdf-empty-state h3{font-size:21px}.pdf-empty-state{padding:30px 18px}}
@media(max-width:760px){.pdf-workspace-grid{grid-template-columns:1fr}.pdf-workbench-heading{padding:17px 20px}.pdf-workbench-heading h2{font-size:14px}.pdf-local-badge{font-size:9px;padding:4px 7px}.pdf-upload-panel{padding:22px}.pdf-drop-zone{min-height:290px}.pdf-settings-panel{border-left:0;border-top:1px solid var(--line);padding:24px}.pdf-settings-heading{margin-bottom:18px}.pdf-output-links{margin-bottom:22px}.pdf-result-heading{align-items:flex-start;flex-direction:column;gap:17px}.pdf-result-heading h2{font-size:24px}.pdf-result-heading .button{width:100%}.pdf-result-file{flex-wrap:wrap;gap:8px}.pdf-preview-heading{padding:19px 18px 7px}.pdf-preview-note{margin-left:18px;margin-right:18px}.pdf-preview-page{padding:18px}.pdf-preview-text{padding:15px}.pdf-support-note{margin-top:20px}.pdf-upload-footer{flex-wrap:nowrap}}
@media(max-width:420px){.pdf-workbench-heading{align-items:flex-start;gap:9px;flex-direction:column}.pdf-upload-panel{padding:17px}.pdf-empty-state{padding:27px 12px}.pdf-empty-state h3{font-size:20px}.pdf-empty-state>p{font-size:12px}.pdf-settings-panel{padding:22px 19px}.pdf-support-note{padding:15px 13px;gap:9px}.pdf-upload-footer{align-items:flex-start;flex-direction:column;gap:6px}.pdf-preview-heading>span{display:none}.pdf-preview-page{padding:16px 13px}}
@media(prefers-reduced-motion:reduce){.pdf-drop-zone{transition:none}}
