/* Presentation only. Converter stages, original samples and shared chrome are unchanged. */
.tool-refresh .review-section{margin:30px 0}
.tool-refresh .review-section>h2{margin:0 0 16px}
.tool-refresh .review-details{border:1px solid var(--border);border-radius:12px;background:#fff;margin:16px 0;overflow:hidden}
.tool-refresh .review-details>summary{padding:16px 20px;font-weight:650;line-height:1.5;cursor:pointer;min-height:52px}
.tool-refresh .review-details>summary:hover{background:#f1f4f8}
.tool-refresh .review-details[open]>summary{border-bottom:1px solid var(--border)}
.tool-refresh .review-details-body{padding:20px;min-width:0}
.tool-refresh .review-details-body>h2:first-child,.tool-refresh .review-details-body>section>h2:first-child{margin-top:0}
.tool-refresh .review-details-body p{margin:0 0 16px;line-height:1.75}
.tool-refresh .review-details-body>p:last-child{margin-bottom:0}
.tool-refresh .review-details summary:focus-visible,.tool-refresh .table-scroll:focus-visible,.tool-refresh .format-table-wrap:focus-visible{outline:3px solid #92b5ed;outline-offset:3px}
.tool-refresh .review-table-hint{font-size:.85rem;color:var(--muted);margin:10px 0 8px}
.tool-refresh .review-scope{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}
.tool-refresh .review-scope>div{border:1px solid var(--border);border-radius:12px;padding:18px;background:#fff;min-width:0}
.tool-refresh .review-scope dt{font-weight:650;margin:0 0 8px;line-height:1.4}
.tool-refresh .review-scope dd{font-size:.94rem;line-height:1.65;color:var(--muted)}
.tool-refresh .review-steps{padding-left:24px;margin:16px 0}
.tool-refresh .review-steps li{margin:10px 0;padding-left:4px}
.tool-refresh .review-boundary{padding:16px 18px;margin:18px 0 26px;border-left:3px solid #28624d;border-radius:0 9px 9px 0;background:#edf6f0;font-size:.92rem;line-height:1.7;max-width:86ch}
.tool-refresh .review-guide-label{font-size:.82rem;color:var(--muted);margin:12px 0 16px}
.tool-refresh .review-guide-label~.card>h2:first-child{margin-top:0}

/* A shared text rhythm, scoped to explanatory content rather than generated results. */
.refresh-pdf-to-text .content p,.refresh-docx-to-pdf .content p,
.refresh-csv-to-pdf .csv-content p,.refresh-html-to-pdf .hp-copy p,
.refresh-pdf-to-excel .excel-body p{margin-bottom:16px}
.refresh-pdf-to-excel .excel-body li,.refresh-csv-to-pdf .csv-content li{margin-bottom:10px}
.refresh-pdf-to-text .content h2,.refresh-pdf-to-text .content h3{line-height:1.35}
.refresh-pdf-to-text .content h2{margin:30px 0 14px}
.refresh-pdf-to-text .content h3{margin:24px 0 12px}

/* PDF to Text: one alignment grid, readable evidence columns. */
.refresh-pdf-to-text .tool,.refresh-pdf-to-text .content{width:100%;max-width:960px;padding:24px;margin:0 auto;min-width:0}
.refresh-pdf-to-text .content{line-height:1.7}
.refresh-pdf-to-text .content>h2:first-child{margin-top:0}
.refresh-pdf-to-text .setting:not(.check-setting){display:grid;grid-template-columns:130px minmax(0,320px);gap:12px}
.refresh-pdf-to-text .setting select{width:100%;min-width:0;min-height:46px;border:1px solid #bfc7d3;border-radius:8px;background:#fff}
.refresh-pdf-to-text .check-setting{display:flex;flex-wrap:nowrap;align-items:flex-start;gap:10px;max-width:76ch;line-height:1.6}
.refresh-pdf-to-text .check-setting input{width:19px;height:19px;flex-shrink:0;margin-top:3px}
.refresh-pdf-to-text .actions #clear{background:#fff;color:var(--text);border:1px solid #bfc7d3}
.refresh-pdf-to-text .small{margin-top:8px;line-height:1.65}
.refresh-pdf-to-text .table-scroll,.refresh-markdown-to-html article .table-scroll,
.refresh-markdown-to-word .word-reading .table-scroll,.refresh-docx-to-pdf .content .table-scroll,
.refresh-document-to-markdown .format-table-wrap{max-width:100%;overflow-x:auto;border:1px solid var(--border);border-radius:10px;margin:16px 0 20px;background:#fff;overscroll-behavior-inline:contain}
.refresh-pdf-to-text .content table{min-width:760px;border-collapse:collapse;font-size:.92rem;line-height:1.65}
.refresh-pdf-to-text .content th,.refresh-pdf-to-text .content td{padding:14px;text-align:left;vertical-align:top;overflow-wrap:break-word;word-break:normal}
.refresh-pdf-to-text .content th:first-child{width:24%}
.refresh-pdf-to-text #ocrTiming table{min-width:720px}
.refresh-pdf-to-text #ocrTiming th:first-child{width:48%}
.refresh-pdf-to-text .review-details-body table{min-width:700px}

/* HTML to Markdown: keep the wide workspace but limit prose, not the input pane. */
.refresh-document-to-markdown .documents-hero{max-width:900px;margin-bottom:24px}
.refresh-document-to-markdown .documents-hero h1{font-size:clamp(2rem,4vw,3rem);margin-bottom:12px}
.refresh-document-to-markdown .documents-hero>p:not(.eyebrow){max-width:76ch;font-size:1rem;line-height:1.65}
.refresh-document-to-markdown .document-badges{margin-top:16px}
.refresh-document-to-markdown .document-help{max-width:100%;margin-top:36px}
.refresh-document-to-markdown .document-help>p,.refresh-document-to-markdown .document-help details p{max-width:82ch;margin:12px 0 16px;line-height:1.75}
.refresh-document-to-markdown .document-help details{margin-top:12px}
.refresh-document-to-markdown .format-table-wrap table{min-width:700px}
.refresh-document-to-markdown .format-table-wrap td,.refresh-document-to-markdown .format-table-wrap th{overflow-wrap:break-word;word-break:normal}

/* Markdown to HTML: share the outer alignment, keep method under the results. */
.refresh-markdown-to-html .md-html article{max-width:none;margin:34px 0;line-height:1.75}
.refresh-markdown-to-html .md-html article>p,.refresh-markdown-to-html article>ol{max-width:82ch}
.refresh-markdown-to-html article .table-scroll table{min-width:760px}
.refresh-markdown-to-html article .table-scroll th:first-child{width:22%}
.refresh-markdown-to-html article .table-scroll th:last-child{width:18%}
.refresh-markdown-to-html article .table-scroll td,.refresh-markdown-to-html article .table-scroll th{overflow-wrap:break-word;word-break:normal;padding:14px}
.refresh-markdown-to-html article .review-details>summary{padding:16px 20px}

/* DOCX to PDF: the official creative is unchanged; support and test evidence precede it. */
.refresh-docx-to-pdf .reference-grid{grid-template-columns:minmax(0,1fr);gap:14px}
.refresh-docx-to-pdf .content p{max-width:82ch}
.refresh-docx-to-pdf .content .evidence-card{padding:24px}
.refresh-docx-to-pdf .content table{min-width:600px}
.refresh-docx-to-pdf .content th,.refresh-docx-to-pdf .content td{overflow-wrap:break-word;word-break:normal}
.refresh-docx-to-pdf #pdf-editing{margin:36px 0 16px}
.refresh-docx-to-pdf #pdf-editing .pdf-editor-banner{max-width:300px}

/* Smaller repairs retain the established tool layouts. */
.refresh-markdown-to-word .word-reading{max-width:none}
.refresh-markdown-to-word .word-reading .table-scroll table{min-width:760px}
.refresh-markdown-to-word .word-reading .table-scroll th:first-child{width:18%}
.refresh-markdown-to-word .word-reading .table-scroll th:last-child{width:30%}
.refresh-text-to-pdf .review-details #punctuation-check{margin:0;padding:0}
.refresh-text-to-pdf .review-details h2{margin-top:0}
.refresh-csv-to-pdf .csv-content{max-width:none}
.refresh-csv-to-pdf .csv-page{width:100%;max-width:1000px}
.refresh-csv-to-pdf .csv-content p,.refresh-csv-to-pdf .csv-content>section>ul{max-width:82ch}
.refresh-csv-to-pdf .csv-content>section{padding:24px 0;border-top:1px solid var(--border);margin:24px 0}
.refresh-csv-to-pdf .csv-content>section h2{margin-top:0}
.refresh-csv-to-pdf .csv-content>.csv-evidence{padding:22px;border-top:0}
.refresh-html-to-pdf .hp-copy{max-width:none}
.refresh-html-to-pdf .hp-page{width:100%;max-width:960px}
.refresh-html-to-pdf .hp-copy p{max-width:82ch}
.refresh-pdf-to-excel .excel-body{max-width:900px}

@media(min-width:961px){.tool-refresh .review-table-hint{display:none}}
@media(max-width:760px){
 .tool-refresh .review-scope{grid-template-columns:1fr}
 .tool-refresh .review-details>summary{padding:16px}
 .tool-refresh .review-details-body{padding:16px}
 .tool-refresh .review-boundary{margin-top:16px;padding:14px}
 .refresh-document-to-markdown .documents-hero h1{font-size:2rem;line-height:1.15}
 .refresh-document-to-markdown .documents-hero .eyebrow{display:none}
 .refresh-document-to-markdown .documents-hero{margin-bottom:22px}
 .refresh-document-to-markdown .document-workspace:has(#markdownSource:disabled) .document-result{display:none}
 .refresh-markdown-to-word .word-grid:has(#word-source:placeholder-shown) .preview-pane{display:none}
 .refresh-markdown-to-word .word-reading .review-details-body{padding:14px}
 .refresh-markdown-to-pdf .support-table tbody th{width:100%;max-width:none;grid-column:1/-1;overflow-wrap:normal;word-break:normal}
}
@media(max-width:680px){
 .refresh-pdf-to-text .tool,.refresh-pdf-to-text .content{padding:22px 16px}
 .refresh-pdf-to-text .setting:not(.check-setting){grid-template-columns:minmax(0,1fr);gap:7px}
 .refresh-pdf-to-text .actions>*{flex:1;text-align:center}
 .refresh-docx-to-pdf .content .evidence-card{padding:18px 14px}
 .refresh-markdown-to-html .converter-grid:has(#html-source:placeholder-shown) .pane:has(#html-source){display:none}
 .refresh-markdown-to-html .converter-grid:has(#html-source:placeholder-shown){grid-template-columns:1fr}
 .refresh-markdown-to-html .html-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
 .refresh-markdown-to-html .html-actions>label{grid-column:1/-1;display:grid;grid-template-columns:60px minmax(0,1fr)}
 .refresh-markdown-to-html .html-actions button{width:100%}
 .refresh-markdown-to-html .md-html article .review-details>summary{padding:16px}
}
