/* PDF document workspace. All presentation rules are scoped to this tool. */
.zmt-pdf-to-md-page main.container,
.zmt-pdf-to-md-page .content-wrap,
.zmt-pdf-to-md-page .content-layout,
.zmt-pdf-to-md-page .page-article,
.zmt-pdf-to-md-page .wp-posts-content,
.zmt-pdf-to-md-page #content,
.zmt-pdf-to-md-page #content>.container,
.zmt-pdf-to-md-page .container-fluid.content-wrap,
.zmt-pdf-to-md-page .container-fluid.content-wrap>.container,
.zmt-pdf-to-md-page .container-fluid>.container,
.zmt-pdf-to-md-page main>.container { width:100%!important; max-width:none!important; margin-right:0!important; margin-left:0!important; padding-right:0!important; padding-left:0!important; }
.zmt-pdf-to-md-page .article-content,.zmt-pdf-to-md-page article.page { width:100%!important; max-width:none!important; padding:0!important; }
.zmt-pdf-to-md-page .page-article { border:0!important; border-radius:0!important; box-shadow:none!important; }
.zmt-pdf-to-md-page .zpdf-app { --zpdf-ink:#292e2b; --zpdf-muted:#677067; --zpdf-line:#dfe3dc; --zpdf-brand:#974e3d; --zpdf-brand-hover:#804131; --zpdf-bg:#f5f5f1; --zpdf-paper:#fffefa; --zpdf-soft:#ecefe8; --zpdf-green:#36684d; width:100%; min-height:calc(100vh - 180px); margin:0; padding:30px clamp(18px,3vw,48px) 48px; background:var(--zpdf-bg); color:var(--zpdf-ink); font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; font-size:14px; line-height:1.6; -webkit-font-smoothing:antialiased; }
.zpdf-app * { box-sizing:border-box; }
.zpdf-app [hidden] { display:none!important; }
.zpdf-page-inner { width:100%; max-width:1360px; margin:0 auto; }
.zpdf-breadcrumb { display:flex; flex-wrap:wrap; align-items:center; gap:9px; margin-bottom:18px; color:var(--zpdf-muted); font-size:12px; }
.zpdf-breadcrumb a { color:inherit; text-decoration:none; }
.zpdf-breadcrumb a:hover { color:var(--zpdf-brand); }
.zpdf-hero { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:24px; }
.zmt-pdf-to-md-page .zpdf-app .zpdf-hero h1 { margin:0; color:var(--zpdf-ink); font-family:inherit; font-size:32px!important; font-weight:700; line-height:1.25; letter-spacing:-.035em; text-wrap:balance; }
.zpdf-hero p { margin:10px 0 0; color:var(--zpdf-muted); font-size:14px; line-height:1.7; }
.zpdf-app .zpdf-flow { display:flex; flex:none; align-items:center; gap:10px; margin:0 0 4px; padding:0; list-style:none; color:var(--zpdf-muted); font-size:12px; }
.zpdf-flow li { display:flex; align-items:center; gap:6px; }
.zpdf-flow li>span { display:grid; width:20px; height:20px; place-items:center; border:1px solid #d8ddd3; border-radius:50%; font-size:11px; font-variant-numeric:tabular-nums; }
.zpdf-flow .zpdf-icon { width:13px; height:13px; color:#929b8f; }
.zpdf-icon { display:inline-block; width:20px; height:20px; flex:none; vertical-align:middle; }
.zpdf-layout { display:grid; grid-template-columns:310px minmax(0,1fr); gap:0; align-items:stretch; border:1px solid var(--zpdf-line); border-radius:16px; background:var(--zpdf-paper); box-shadow:0 2px 5px rgba(31,42,32,.025),0 12px 32px rgba(31,42,32,.04); overflow:hidden; }
.zpdf-left { min-width:0; padding:24px; border-right:1px solid var(--zpdf-line); background:var(--zpdf-paper); }
.zmt-pdf-to-md-page .zpdf-app h2 { margin:0; color:var(--zpdf-ink); font-family:inherit; font-size:16px; line-height:1.4; font-weight:650; letter-spacing:0; }
.zpdf-app .zpdf-panel-title { margin-bottom:17px!important; }
.zpdf-drop { position:relative; display:flex; min-height:224px; flex-direction:column; align-items:center; justify-content:center; padding:24px 16px 20px; border:1px dashed #bcc5b7; border-radius:11px; background:#f5f6f1; color:var(--zpdf-ink); text-align:center; cursor:pointer; font-weight:400; transition:border-color .16s ease,background-color .16s ease; }
.zpdf-drop:hover,.zpdf-drop.is-dragging { border-color:var(--zpdf-green); background:#edf1e8; }
.zpdf-drop:focus-within { outline:none; }
.zpdf-drop.is-uploading { pointer-events:none; opacity:.65; }
.zpdf-drop input { position:absolute; width:1px; height:1px; overflow:hidden; opacity:0; }
.zpdf-upload-icon { display:flex; color:#69765f; margin-bottom:16px; }
.zpdf-upload-icon .zpdf-icon { width:27px; height:27px; }
.zpdf-drop strong { color:var(--zpdf-ink); font-size:16px; line-height:1.5; font-weight:600; }
.zpdf-drop-hint { margin-top:5px; color:var(--zpdf-muted); font-size:12px; }
.zpdf-button { display:inline-flex; min-height:42px; align-items:center; justify-content:center; gap:12px; margin-top:18px; padding:0 18px; border:1px solid var(--zpdf-brand); border-radius:8px; background:var(--zpdf-brand); color:#fff; font-size:13px; font-weight:600; box-shadow:0 2px 4px rgba(77,40,30,.08); }
.zpdf-button .zpdf-icon { width:15px; height:15px; }
.zpdf-drop:hover .zpdf-button { background:var(--zpdf-brand-hover); border-color:var(--zpdf-brand-hover); }
.zpdf-drop small { margin-top:15px; color:var(--zpdf-muted); font-size:11px; font-weight:400; line-height:1.7; }
.zpdf-task { margin-top:22px; padding:20px 0 0; border-top:1px solid var(--zpdf-line); }
.zpdf-task header { display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:space-between; gap:10px; }
.zpdf-task header>div { flex:1 1 130px; min-width:0; }
.zpdf-task header div>span { display:block; margin-bottom:4px; color:var(--zpdf-muted); font-size:11px; }
.zpdf-task header strong { display:block; color:var(--zpdf-ink); font-size:13px; line-height:1.6; font-weight:600; overflow-wrap:anywhere; }
.zpdf-task header>b,.zpdf-result>header>span { display:inline-flex; flex:none; align-items:center; min-height:26px; padding:4px 8px; border-radius:6px; background:#ecefe8; color:#5c6859; font-size:11px; font-weight:500; line-height:1.5; }
.zpdf-task header>b.is-success,.zpdf-result>header>span.is-success { color:#316446; background:#e7f0e5; }
.zpdf-task header>b.is-warning,.zpdf-result>header>span.is-warning { color:#80561e; background:#f8edda; }
.zpdf-task header>b.is-error,.zpdf-result>header>span.is-error { color:#973e31; background:#faeae5; }
.zpdf-task header>b.is-neutral,.zpdf-result>header>span.is-neutral { color:#61685f; background:#eceee9; }
.zpdf-progress { overflow:hidden; height:5px; margin-top:16px; border-radius:5px; background:#e7ece2; }
.zpdf-progress i { display:block; width:0; height:100%; border-radius:inherit; background:var(--zpdf-green); transition:width .25s ease; }
.zpdf-task-meta { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:5px 12px; margin-top:9px; color:var(--zpdf-muted); font-size:11px; line-height:1.7; }
.zpdf-task-meta>[data-zpdf-stage] { flex:1 1 110px; overflow-wrap:anywhere; }
.zpdf-task-meta>[data-zpdf-pages] { flex:none; font-variant-numeric:tabular-nums; }
.zpdf-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; margin-top:14px; }
.zpdf-app .zpdf-actions button { min-height:36px; padding:7px 11px; border:1px solid #d4dcd0; border-radius:7px; background:var(--zpdf-paper); color:#495644; font-family:inherit; font-size:12px; font-weight:500; line-height:1.5; cursor:pointer; transition:background-color .16s ease,border-color .16s ease; }
.zpdf-actions button:hover { background:#edf1e8; border-color:#adbca6; }
.zpdf-actions button:disabled { cursor:wait; opacity:.55; }
.zpdf-message { margin-top:16px; padding:11px 12px; border:1px solid #dce5d6; border-radius:8px; background:#f0f4eb; color:#4f6444; font-size:12px; line-height:1.75; overflow-wrap:anywhere; }
.zpdf-message.is-error { border-color:#ecd3ca; background:#fff2ee; color:#913e32; }
.zpdf-message.is-success { border-color:#d6e6d0; background:#eef5e9; color:#45613a; }
.zpdf-facts { display:flex; flex-direction:column; gap:17px; margin-top:25px; }
.zpdf-facts>div { display:flex; align-items:flex-start; gap:11px; }
.zpdf-facts .zpdf-icon { width:18px; height:18px; margin-top:2px; color:#76816d; }
.zpdf-facts p { min-width:0; margin:0; }
.zpdf-facts b,.zpdf-facts p>span { display:block; }
.zpdf-facts b { color:#465040; font-size:12px; font-weight:550; line-height:1.6; }
.zpdf-facts p>span { margin-top:3px; color:var(--zpdf-muted); font-size:11px; line-height:1.7; }
.zpdf-result { display:flex; min-width:0; flex-direction:column; background:var(--zpdf-paper); }
.zpdf-result>header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:23px 28px 20px; border-bottom:1px solid var(--zpdf-line); }
.zpdf-result>header>div { min-width:0; }
.zpdf-result header p { margin:7px 0 0; color:var(--zpdf-muted); font-size:12px; line-height:1.7; overflow-wrap:anywhere; }
.zpdf-tabs { display:flex; flex-wrap:wrap; gap:5px; padding:14px 24px 0; }
.zpdf-app .zpdf-tabs button { display:inline-flex; min-height:36px; align-items:center; justify-content:center; gap:7px; padding:7px 11px; border:1px solid transparent; border-radius:7px; background:transparent; color:var(--zpdf-muted); font-family:inherit; font-size:12px; line-height:1.5; cursor:pointer; transition:background-color .16s ease,color .16s ease; }
.zpdf-tabs button .zpdf-icon { width:15px; height:15px; }
.zpdf-tabs button:hover { background:#f1f3ec; color:#34462f; }
.zpdf-tabs button.is-active { border-color:#d8e0d0; background:#e9eee3; color:#354d2b; font-weight:600; }
.zpdf-result-body { flex:1 1 340px; height:340px; min-width:0; min-height:280px; max-height:calc(100dvh - 390px); overflow:auto; padding:28px 32px; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#c9d1c2 transparent; scroll-padding:20px; }
.zpdf-empty { display:flex; min-height:310px; height:100%; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:12px 0; }
.zpdf-empty-art { display:flex; align-items:center; justify-content:center; gap:15px; margin-bottom:24px; color:#8b9683; }
.zpdf-paper { display:flex; width:59px; height:76px; flex-direction:column; align-items:center; justify-content:center; gap:11px; border:1px solid #dce1d7; border-radius:7px; background:#fffefa; color:#7c8874; }
.zpdf-paper .zpdf-icon { width:22px; height:22px; }
.zpdf-paper b { font-family:inherit; font-size:11px; font-weight:500; line-height:1; }
.zpdf-paper-md { background:#eef1e9; color:#4c6042; }
.zpdf-empty strong { display:block; color:#354330; font-size:16px; line-height:1.6; font-weight:600; }
.zpdf-empty p { max-width:310px; margin:10px auto 0; color:var(--zpdf-muted); font-size:12px; line-height:1.9; }
.zpdf-empty-working,.zpdf-empty-failed,.zpdf-empty-warning,.zpdf-empty-cancelled { display:none; }
.zpdf-app:has([data-zpdf-task]:not([hidden]) [data-zpdf-status].is-working) .zpdf-empty-default,
.zpdf-app:has([data-zpdf-task]:not([hidden]) [data-zpdf-status].is-error) .zpdf-empty-default,
.zpdf-app:has([data-zpdf-task]:not([hidden]) [data-zpdf-status].is-warning) .zpdf-empty-default,
.zpdf-app:has([data-zpdf-task]:not([hidden]) [data-zpdf-status].is-neutral) .zpdf-empty-default { display:none; }
.zpdf-app:has([data-zpdf-task]:not([hidden]) [data-zpdf-status].is-working) .zpdf-empty-working,
.zpdf-app:has([data-zpdf-task]:not([hidden]) [data-zpdf-status].is-error) .zpdf-empty-failed,
.zpdf-app:has([data-zpdf-task]:not([hidden]) [data-zpdf-status].is-warning) .zpdf-empty-warning,
.zpdf-app:has([data-zpdf-task]:not([hidden]) [data-zpdf-status].is-neutral) .zpdf-empty-cancelled { display:block; }
.zpdf-rendered { width:100%; max-width:760px; margin:0 auto; color:#343f2f; font-size:15px; line-height:1.9; overflow-wrap:anywhere; }
.zmt-pdf-to-md-page .zpdf-app .zpdf-rendered h1,.zmt-pdf-to-md-page .zpdf-app .zpdf-rendered h2,.zmt-pdf-to-md-page .zpdf-app .zpdf-rendered h3,.zmt-pdf-to-md-page .zpdf-app .zpdf-rendered h4,.zmt-pdf-to-md-page .zpdf-app .zpdf-rendered h5,.zmt-pdf-to-md-page .zpdf-app .zpdf-rendered h6 { margin:1.4em 0 .65em; color:#293b23; font-family:inherit; font-weight:650; line-height:1.5; letter-spacing:-.015em; }
.zmt-pdf-to-md-page .zpdf-app .zpdf-rendered h1 { font-size:26px!important; }
.zmt-pdf-to-md-page .zpdf-app .zpdf-rendered h2 { font-size:21px; }
.zmt-pdf-to-md-page .zpdf-app .zpdf-rendered h3 { font-size:18px; }
.zmt-pdf-to-md-page .zpdf-app .zpdf-rendered h4,.zpdf-rendered h5,.zpdf-rendered h6 { font-size:16px; }
.zpdf-rendered>:first-child { margin-top:0!important; }
.zpdf-rendered p { margin:.75em 0; white-space:pre-wrap; }
.zpdf-rendered ul { margin:.8em 0; padding-left:1.45em; }
.zpdf-rendered li { margin:.35em 0; }
.zpdf-rendered blockquote { margin:1.2em 0; padding:14px 18px; border:1px solid #dce4d4; border-radius:8px; background:#f0f4e9; color:#516447; font-size:inherit; }
.zpdf-source { width:100%; margin:0; color:#354331; background:transparent; border:0; padding:0; font:13px/1.9 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; white-space:pre-wrap; overflow-wrap:anywhere; word-break:break-word; }
.zpdf-result-help { padding:13px 28px; border-top:1px solid var(--zpdf-line); background:#f6f7f2; color:var(--zpdf-muted); font-size:11px; }
.zpdf-result-help>span { display:flex; align-items:center; gap:7px; }
.zpdf-result-help .zpdf-icon { width:14px; height:14px; }
.zpdf-result:has([data-zpdf-downloads]:not([hidden])) .zpdf-result-help { display:none; }
.zpdf-result>footer { display:flex; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:9px; padding:15px 24px; border-top:1px solid var(--zpdf-line); background:#f6f7f2; }
.zpdf-result>footer a { display:inline-flex; min-height:42px; align-items:center; justify-content:center; gap:8px; padding:9px 14px; border:1px solid #d9dfd2; border-radius:8px; background:var(--zpdf-paper); color:#46533f; font-family:inherit; font-size:12px; font-weight:550; line-height:1.5; text-decoration:none; cursor:pointer; transition:background-color .16s ease,border-color .16s ease; }
.zpdf-result>footer a .zpdf-icon { width:16px; height:16px; }
.zpdf-result>footer a:hover { background:#eaf0e1; border-color:#b9c6ad; }
.zpdf-result>footer a.zpdf-download-primary { border-color:var(--zpdf-brand); background:var(--zpdf-brand); color:#fff; }
.zpdf-result>footer a.zpdf-download-primary:hover { background:var(--zpdf-brand-hover); border-color:var(--zpdf-brand-hover); }
.zpdf-app button:focus-visible,.zpdf-app a:focus-visible { outline:2px solid var(--zpdf-brand); outline-offset:3px; }
.zpdf-app button,.zpdf-app a,.zpdf-drop { touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
/* The existing guide remains available; compact only its launcher on this page. */
.zmt-pdf-to-md-page .guide-shell[data-guide-shadow-mount]>.guide-shell__launcher { width:96px!important; min-width:96px!important; height:44px!important; min-height:44px!important; border-radius:10px; inset-inline-end:16px; inset-block-end:16px; animation:none; }
.zmt-pdf-to-md-page .guide-shell[data-guide-shadow-mount] .guide-shell__launcher-character,
.zmt-pdf-to-md-page .guide-shell[data-guide-shadow-mount] .guide-shell__launcher-kicker,
.zmt-pdf-to-md-page .guide-shell[data-guide-shadow-mount] .guide-shell__launcher-copy>small,
.zmt-pdf-to-md-page .guide-shell[data-guide-shadow-mount] .guide-shell__launcher-arrow,
.zmt-pdf-to-md-page .guide-shell[data-guide-shadow-mount] .guide-shell__launcher-copy::after { display:none!important; }
.zmt-pdf-to-md-page .guide-shell[data-guide-shadow-mount] .guide-shell__launcher-copy { inset:0!important; width:100%!important; height:44px!important; min-height:44px!important; display:flex; align-items:center; justify-content:center; padding:0 12px!important; border:1px solid #d6dccf; border-radius:10px!important; background:#fffefa; box-shadow:0 3px 12px rgba(30,45,24,.08); backdrop-filter:none; animation:none; }
.zmt-pdf-to-md-page .guide-shell[data-guide-shadow-mount] .guide-shell__launcher-copy>strong { position:static!important; color:#485a3e; font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; font-size:13px; line-height:1.5; font-weight:550; }
.zpdf-result>footer { padding-right:125px; }
@media(min-width:1100px) and (max-height:800px) { .zmt-pdf-to-md-page .zpdf-app { padding-top:22px; padding-bottom:30px; } .zpdf-breadcrumb { margin-bottom:13px; } .zpdf-hero { margin-bottom:20px; } .zpdf-result-body { min-height:310px; } .zpdf-empty { min-height:255px; } }
@media(max-width:1100px) { .zpdf-layout { grid-template-columns:280px minmax(0,1fr); } .zpdf-left { padding:22px; } .zpdf-hero { align-items:flex-start; flex-direction:column; gap:15px; } .zpdf-result>header { padding:22px; } .zpdf-result-body { padding:25px; max-height:570px; } }
@media(max-width:760px) { .zmt-pdf-to-md-page .zpdf-app { padding:23px 16px 38px; } .zpdf-breadcrumb { margin-bottom:14px; } .zmt-pdf-to-md-page .zpdf-app .zpdf-hero h1 { font-size:28px!important; } .zpdf-hero p { font-size:13px; } .zpdf-layout { grid-template-columns:1fr; border-radius:13px; } .zpdf-left { padding:20px; border-right:0; border-bottom:1px solid var(--zpdf-line); } .zpdf-drop { min-height:190px; padding:19px 15px; } .zpdf-upload-icon { margin-bottom:12px; } .zpdf-button { margin-top:14px; min-height:44px; } .zpdf-facts { flex-direction:row; flex-wrap:wrap; gap:14px 20px; margin-top:20px; } .zpdf-facts>div { flex:1 1 170px; gap:8px; } .zpdf-facts>div:last-child { flex-basis:100%; } .zpdf-result>header { padding:20px; } .zpdf-result-body { min-height:310px; max-height:none; overflow:visible; padding:24px 22px; } .zpdf-empty { min-height:255px; } .zpdf-tabs { padding:12px 16px 0; } .zpdf-result>footer { padding:15px 18px; } .zpdf-result>footer a { min-height:44px; } .zpdf-result-help { padding:13px 20px; } .zpdf-app .zpdf-actions button,.zpdf-app .zpdf-tabs button { min-height:44px; } }
@media(max-width:420px) { .zmt-pdf-to-md-page .zpdf-app { padding:20px 12px 32px; } .zmt-pdf-to-md-page .zpdf-app .zpdf-hero h1 { font-size:26px!important; } .zpdf-hero { gap:13px; margin-bottom:20px; } .zpdf-hero p { max-width:290px; } .zpdf-app .zpdf-flow { gap:8px; font-size:11px; } .zpdf-flow li { gap:4px; } .zpdf-flow li>span { width:18px; height:18px; font-size:10px; } .zpdf-flow .zpdf-icon { width:11px; height:11px; } .zpdf-left { padding:18px; } .zpdf-facts { gap:12px 14px; } .zpdf-facts>div { flex:1 1 120px; } .zpdf-facts p>span { font-size:11px; } .zpdf-result>header { gap:10px; padding:18px; } .zpdf-result>header>span { max-width:115px; white-space:normal; } .zpdf-result-body { padding:22px 18px; } .zpdf-rendered { font-size:14px; line-height:1.9; } .zmt-pdf-to-md-page .zpdf-app .zpdf-rendered h1 { font-size:23px!important; } .zpdf-source { font-size:12px; } .zpdf-result>footer { gap:8px; padding:14px; } .zpdf-result>footer a { flex:1 1 140px; padding:10px; } }
@media(max-width:760px) { .zmt-pdf-to-md-page .guide-shell[data-guide-shadow-mount]>.guide-shell__launcher { width:54px!important; min-width:54px!important; inset-inline-end:10px; inset-block-end:max(14px,env(safe-area-inset-bottom)); } .zmt-pdf-to-md-page .guide-shell[data-guide-shadow-mount] .guide-shell__launcher-copy { padding:0 4px!important; } .zmt-pdf-to-md-page .guide-shell[data-guide-shadow-mount] .guide-shell__launcher-copy>strong { font-size:12px; } .zpdf-result>footer { padding-right:72px; } }
/* Keep module typography above the host theme's article defaults. */
.zpdf-app .zpdf-icon { fill:none!important; stroke:currentColor!important; }
.zpdf-app .zpdf-breadcrumb a { color:var(--zpdf-muted); }
.zmt-pdf-to-md-page .zpdf-app .zpdf-breadcrumb a { color:var(--zpdf-muted); }
.zmt-pdf-to-md-page .zpdf-app .zpdf-result>footer a { color:#46533f; }
.zmt-pdf-to-md-page .zpdf-app .zpdf-result>footer a.zpdf-download-primary { color:#fff; }
.zmt-pdf-to-md-page .zpdf-app .zpdf-drop:focus-within { outline:none!important; }
.zmt-pdf-to-md-page .zpdf-app button:focus-visible,.zmt-pdf-to-md-page .zpdf-app a:focus-visible { outline:2px solid var(--zpdf-brand)!important; outline-offset:3px!important; }
.zpdf-app .zpdf-hero p { margin:10px 0 0; }
.zpdf-app .zpdf-flow li { margin:0; padding:0; }
.zpdf-drop-mobile-title { display:none; }
.zpdf-app .zpdf-facts p { display:flex; flex-wrap:wrap; gap:1px 7px; align-items:baseline; margin:0; }
.zpdf-app .zpdf-facts p>span { margin:0; }
.zpdf-app .zpdf-result header p { margin:7px 0 0; }
.zpdf-app .zpdf-empty p { margin:10px auto 0; }
.zpdf-app .zpdf-rendered p { margin:.75em 0; }
.zpdf-app:has([data-zpdf-task]:not([hidden])) .zpdf-drop { min-height:0; padding:15px 14px; }
.zpdf-app:has([data-zpdf-task]:not([hidden])) .zpdf-upload-icon,
.zpdf-app:has([data-zpdf-task]:not([hidden])) .zpdf-drop-hint { display:none; }
.zpdf-app:has([data-zpdf-task]:not([hidden])) .zpdf-drop strong { font-size:14px; }
.zpdf-app:has([data-zpdf-task]:not([hidden])) .zpdf-button { margin-top:12px; }
.zpdf-app:has([data-zpdf-task]:not([hidden])) .zpdf-drop small { margin-top:10px; }
.zmt-pdf-to-md-page .guide-shell[data-guide-shadow-mount] .guide-shell__launcher-copy>strong { width:auto!important; height:auto!important; clip:auto!important; overflow:visible!important; white-space:normal!important; }
@media(max-width:760px) { .zpdf-result-body { flex:1 1 auto; height:auto; } .zpdf-drop-desktop-title { display:none; } .zpdf-drop-mobile-title { display:inline; } .zpdf-app:has([data-zpdf-task]:not([hidden])) .zpdf-drop { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:0 12px; text-align:left; } .zpdf-app:has([data-zpdf-task]:not([hidden])) .zpdf-button { margin:0; padding:0 14px; gap:7px; } .zpdf-app:has([data-zpdf-task]:not([hidden])) .zpdf-drop small { grid-column:1/-1; text-align:left; margin-top:8px; } }
@media(pointer:coarse) { .zpdf-app .zpdf-actions button,.zpdf-app .zpdf-tabs button,.zpdf-result>footer a { min-height:44px; } }
@media(prefers-reduced-motion:reduce) { .zpdf-app * { scroll-behavior:auto!important; animation:none!important; transition:none!important; } }
/* Keep mobile utility entry points available without covering document content. */
@media (max-width:760px), (pointer:coarse) and (max-width:950px) {
  body.zmt-pdf-to-md-page { position:relative; padding-bottom:76px!important; }
  .zmt-pdf-to-md-page .guide-shell[data-guide-shadow-mount]>.guide-shell__launcher { position:absolute!important; inset-block-start:auto!important; inset-block-end:16px!important; inset-inline-start:auto!important; inset-inline-end:12px!important; transform:none!important; }
  .zmt-pdf-to-md-page .zmt-contact-floating { position:absolute!important; inset: auto auto 16px 12px!important; transform:none!important; }
  .zpdf-result>footer { padding-right:14px; }
}
/* The host search overlay includes scrollbar compensation on touch landscape. */
@media (max-width:760px), (pointer:coarse) and (max-width:950px) {
  html:has(>body.zmt-pdf-to-md-page), body.zmt-pdf-to-md-page { overflow-x:clip; }
  .zmt-pdf-to-md-page .main-search { max-width:100vw; }
}
/* The global footer collision guard is unnecessary for these in-flow entries. */
@media (max-width:760px), (pointer:coarse) and (max-width:950px) {
  .zmt-pdf-to-md-page .guide-shell[data-guide-shadow-mount]>.guide-shell__launcher:not([aria-expanded="true"]) { visibility:visible!important; pointer-events:auto!important; }
}

/* Detail pass: clear hierarchy, quiet surfaces and intentional input states. */
.zmt-pdf-to-md-page .zpdf-app { --zpdf-bg:#f5f6f2; --zpdf-paper:#fffefb; --zpdf-muted:#626c61; --zpdf-line:#e1e5dc; --zpdf-brand:#914a38; --zpdf-brand-hover:#7d3e2e; }
.zpdf-hero h1 { text-wrap:balance; }
.zpdf-hero p,.zpdf-empty p,.zpdf-facts p { text-wrap:pretty; }
.zpdf-layout { box-shadow:0 1px 3px rgba(34,45,29,.03),0 10px 32px rgba(34,45,29,.045); }
.zpdf-left { background:#fafbf7; }
.zpdf-drop { min-height:232px; border-color:#bdc8b6; background:#fffefb; border-radius:10px; }
.zpdf-drop:hover,.zpdf-drop.is-dragging { background:#f1f5eb; border-color:#7e9870; }
.zpdf-upload-icon { width:44px; height:44px; justify-content:center; align-items:center; margin-bottom:13px; border:1px solid #e3e9dc; border-radius:12px; background:#f2f5ed; color:#627854; }
.zpdf-upload-icon .zpdf-icon { width:23px; height:23px; }
.zpdf-drop strong { font-size:15px; font-weight:600; }
.zpdf-drop-hint { margin-top:6px; font-size:12px; color:#687361; }
.zpdf-button { min-height:44px; min-width:150px; gap:14px; margin-top:19px; border-radius:8px; box-shadow:0 1px 2px rgba(72,35,23,.12),inset 0 1px 0 rgba(255,255,255,.12); transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease; }
.zpdf-drop:active .zpdf-button { box-shadow:inset 0 1px 2px rgba(50,25,18,.15); }
.zmt-pdf-to-md-page .zpdf-app.is-keyboard-nav .zpdf-drop:focus-within { outline:2px solid #718664!important; outline-offset:3px!important; }
.zpdf-drop small { margin-top:16px; font-size:11px; font-variant-numeric:tabular-nums; }
.zpdf-app .zpdf-facts { gap:16px; margin-top:24px; }
.zpdf-app .zpdf-facts b { color:#4d5946; font-weight:600; }
.zpdf-app .zpdf-facts p>span { color:#687260; }
.zpdf-result>header { padding-top:24px; padding-bottom:23px; }
.zpdf-result>header>span { gap:6px; min-height:27px; padding:4px 9px; border:1px solid #e6ebdf; background:#f1f4ec; border-radius:6px; white-space:nowrap; }
.zpdf-result>header>span::before { content:""; width:5px; height:5px; border-radius:50%; background:currentColor; opacity:.6; }
.zpdf-result>header>span.is-success { border-color:#dfe9db; }
.zpdf-empty-art { gap:17px; margin-bottom:23px; }
.zpdf-paper { width:54px; height:70px; gap:10px; border-color:#dce3d4; background:#fffefb; box-shadow:0 2px 3px rgba(31,48,24,.025); }
.zpdf-paper-md { background:#eef3e8; color:#506845; }
.zpdf-empty strong { color:#3d4c34; font-size:16px; font-weight:600; letter-spacing:-.01em; }
.zpdf-app .zpdf-empty p { max-width:320px; margin-top:9px; font-size:12px; line-height:1.9; color:#6a7562; }
.zpdf-message { display:flex; align-items:flex-start; gap:8px; padding:12px; border:1px solid #dfe7d7; background:#f0f5ea; color:#536649; font-size:12px; line-height:1.75; border-radius:8px; }
.zpdf-message::before { content:""; display:inline-flex; align-items:center; justify-content:center; flex:none; width:15px; height:15px; margin-top:3px; background:currentColor; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6' fill='none' stroke='black' stroke-width='1.3'/%3E%3Cpath d='M8 7v4M8 4.5v.5' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E") center/contain no-repeat; opacity:.8; }
.zpdf-message.is-error::before { transform:rotate(180deg); }
.zpdf-message.is-error { border-color:#ebd6cd; background:#fff3ee; color:#994e38; }
.zpdf-result-help { background:#f8faf4; font-size:11px; color:#697460; }
@media(max-width:1100px) { .zpdf-button { min-width:140px; } }
@media(max-width:760px) { .zpdf-drop { min-height:195px; } .zpdf-button { min-width:145px; } .zpdf-app .zpdf-facts { gap:14px 18px; margin-top:20px; } .zpdf-result>header { padding:20px; } .zpdf-app:has([data-zpdf-task]:not([hidden])) .zpdf-button { min-width:0; } .zpdf-result>header>span { white-space:normal; } }
@media(max-width:420px) { .zpdf-result>header { padding:18px; } .zpdf-app .zpdf-facts { gap:12px 14px; } .zpdf-drop { padding:20px 13px; } }
/* Keep helper text readable and desktop controls comfortably usable. */
.zpdf-drop small { font-size:12px; }
.zpdf-app .zpdf-facts b { font-size:13px; }
.zpdf-app .zpdf-facts p>span { font-size:12px; }
.zpdf-app .zpdf-result header p,.zpdf-app .zpdf-empty p { font-size:13px; }
.zpdf-result>header>span { min-height:28px; font-size:12px; }
.zpdf-app .zpdf-actions button { min-height:40px; }
.zpdf-app .zpdf-tabs button { min-height:40px; padding:8px 12px; }
.zpdf-result>footer a { min-height:44px; }
@media(max-width:760px), (pointer:coarse) { .zpdf-app .zpdf-actions button,.zpdf-app .zpdf-tabs button { min-height:44px; } }
/* Keep page utilities in the footer at every desktop size as well. */
@media(min-width:761px) {
  html:has(>body.zmt-pdf-to-md-page), body.zmt-pdf-to-md-page { overflow-x:clip; }
  .zmt-pdf-to-md-page .main-search { max-width:100vw; }
  body.zmt-pdf-to-md-page { position:relative; padding-bottom:76px!important; }
  .zmt-pdf-to-md-page .guide-shell[data-guide-shadow-mount]>.guide-shell__launcher { position:absolute!important; inset-block-start:auto!important; inset-block-end:16px!important; inset-inline-start:auto!important; inset-inline-end:12px!important; transform:none!important; }
  .zmt-pdf-to-md-page .guide-shell[data-guide-shadow-mount]>.guide-shell__launcher:not([aria-expanded="true"]) { visibility:visible!important; pointer-events:auto!important; }
  .zmt-pdf-to-md-page .zmt-contact-floating { position:absolute!important; inset:auto auto 16px 12px!important; transform:none!important; }
  .zpdf-result>footer { padding-right:18px; }
}
