:root{
    --bg:#fafafa;
    --surface:#fff;
    --ink:#090909;
    --muted:#666;
    --line:#dedede;
    --soft:#f5f5f5;
    --shadow:0 12px 34px rgba(0,0,0,.035);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
    margin:0;
    color:var(--ink);
    background:var(--bg);
    font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}
button,input,select{font:inherit}
a{color:inherit}
button{cursor:pointer}
.site-header{
    height:72px;
    padding:0 max(34px,calc((100vw - 1420px)/2));
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:#fff;
    border-bottom:1px solid #e7e7e7;
}
.brand{
    display:flex;
    align-items:center;
    gap:11px;
    text-decoration:none;
    font-size:22px;
    font-weight:900;
}
.brand-mark{
    width:34px;
    height:34px;
    display:grid;
    place-items:center;
    color:#fff;
    background:#000;
    border-radius:8px;
    font-weight:900;
}
.main-nav{display:flex;align-items:center;gap:34px}
.main-nav a{text-decoration:none;font-size:13px;font-weight:600}
.theme-icon{font-size:20px}
.hero{
    width:min(980px,calc(100% - 32px));
    margin:28px auto 24px;
    text-align:center;
}
.trust-pill{
    width:max-content;
    max-width:100%;
    margin:0 auto 17px;
    padding:7px 13px;
    border:1px solid #dedede;
    border-radius:999px;
    background:#fff;
    font-size:11px;
}
.hero h1{
    margin:0;
    font-size:clamp(42px,4.7vw,64px);
    line-height:1.02;
    letter-spacing:-.055em;
}
.hero p{
    margin:12px auto 0;
    max-width:760px;
    color:#555;
    font-size:16px;
    line-height:1.55;
}
.workspace{
    width:min(1420px,calc(100% - 34px));
    margin:0 auto;
}
.workspace-columns{
    display:grid;
    grid-template-columns:minmax(390px,.66fr) minmax(620px,1.34fr);
    gap:20px;
    align-items:start;
}
.tools-pane,.pdf-pane,.how-card,.feature-strip,.seo-content{
    background:#fff;
    border:1px solid var(--line);
    box-shadow:var(--shadow);
}
.tools-pane{
    border-radius:14px;
    padding:17px;
}
.pane-title{margin-bottom:14px}
.pane-title strong,.pane-title span{display:block}
.pane-title strong{font-size:18px}
.pane-title span{margin-top:4px;color:#555;font-size:11px}
.actions{display:grid;grid-template-columns:1fr;gap:0}
.tool-card{
    width:100%;
    min-height:59px;
    display:grid;
    grid-template-columns:42px 1fr 18px;
    align-items:center;
    gap:10px;
    margin-top:-1px;
    padding:8px 11px;
    text-align:left;
    border:1px solid #e0e0e0;
    border-radius:10px;
    background:#fff;
    color:#000;
}
.tool-card:first-child{margin-top:0}
.tool-card:disabled{
    opacity:1;
    color:#000;
    cursor:not-allowed;
}
.tool-card:not(:disabled):hover{background:#f7f7f7}
.tool-icon{
    width:36px;
    height:36px;
    display:grid;
    place-items:center;
    border-radius:9px;
    background:#f3f3f3;
    border:1px solid #ededed;
    font-size:18px;
    font-weight:800;
}
.word-icon{font-family:Georgia,serif;font-size:14px}
.tool-copy b,.tool-copy small{display:block}
.tool-copy b{font-size:12px}
.tool-copy small{margin-top:3px;color:#555;font-size:10px}
.arrow{font-size:22px}
.right-column{display:grid;gap:18px}
.pdf-pane{border-radius:14px;padding:18px;min-height:390px}
.upload-drop{
    min-height:350px;
    border:1px dashed #bdbdbd;
    border-radius:12px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:30px;
}
.upload-doc-icon{
    width:56px;
    height:56px;
    display:grid;
    place-items:center;
    margin-bottom:10px;
    border:2px solid #111;
    border-radius:11px;
    font-size:26px;
}
.upload-drop h2{margin:0;font-size:22px}
.upload-drop p{margin:8px 0 16px;color:#555;font-size:13px}
.primary-btn{
    border:1px solid #000!important;
    background:#000!important;
    color:#fff!important;
    border-radius:8px!important;
    padding:11px 21px!important;
    font-weight:800;
}
.primary-btn.small{padding:8px 15px!important}
.secure-line{margin-top:26px;color:#555;font-size:11px}
.manager{width:100%}
.file-strip{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:11px;
    border:1px solid #dedede;
    border-radius:10px;
}
.file-left{display:flex;align-items:center;gap:10px}
.mini-file-icon{
    width:34px;height:34px;
    display:grid;place-items:center;
    background:#f1f1f1;border-radius:7px
}
.file-left strong,.file-left span{display:block}
.file-left strong{font-size:12px}
.file-left span{margin-top:3px;color:#666;font-size:10px}
.file-strip-actions{display:flex;gap:8px}
button{
    border:1px solid #d5d5d5;
    border-radius:7px;
    background:#fff;
    color:#000;
    padding:8px 12px;
}
.hidden-duplicate-control{display:none!important}
.preview-header{
    margin:16px 0 7px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}
.preview-header strong{font-size:12px}
.preview-header button{font-size:10px;padding:6px 9px}
.selection-status{margin-bottom:7px;color:#666;font-size:10px}
.page-grid{display:flex;gap:10px;overflow-x:auto;padding:3px 2px 12px}
.page-card{
    position:relative;
    flex:0 0 112px;
    padding:5px;
    border:1px solid #ddd;
    border-radius:7px;
    background:#fff;
}
.page-card.selected{border:2px solid #000}
.page-card img{width:100%;display:block;border-radius:3px}
.page-number{text-align:center;font-size:9px;margin-top:5px}
.check{
    position:absolute;
    top:5px;right:5px;
    width:17px;height:17px;
    display:grid;place-items:center;
    border:1px solid #bbb;
    border-radius:50%;
    background:#fff;
    font-size:9px;
}
.page-card.selected .check{background:#000;color:#fff;border-color:#000}
.how-card{border-radius:14px;padding:18px 22px}
.how-card h2{margin:0 0 20px;font-size:17px}
.how-grid{display:grid;grid-template-columns:repeat(3,1fr)}
.how-step{
    display:flex;
    gap:14px;
    align-items:flex-start;
    padding:2px 24px;
    border-right:1px solid #e5e5e5;
}
.how-step:first-child{padding-left:0}
.how-step:last-child{border-right:0}
.round-icon{
    flex:0 0 48px;
    width:48px;height:48px;
    display:grid;place-items:center;
    border-radius:50%;
    background:#f3f3f3;
    font-size:24px;
}
.how-step b,.how-step small{display:block}
.how-step b{font-size:12px}
.how-step small{margin-top:7px;color:#555;font-size:10px;line-height:1.5}
.feature-strip{
    width:min(1420px,calc(100% - 34px));
    margin:18px auto 0;
    border-radius:14px;
    padding:20px 28px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
}
.feature{
    display:flex;
    align-items:flex-start;
    gap:14px;
    padding:2px 28px;
    border-right:1px solid #e5e5e5;
}
.feature:first-child{padding-left:0}
.feature:last-child{border-right:0}
.feature-icon{
    flex:0 0 47px;
    width:47px;height:47px;
    display:grid;place-items:center;
    border-radius:50%;
    background:#f3f3f3;
    font-size:22px;
}
.feature b,.feature small{display:block}
.feature b{font-size:12px}
.feature small{margin-top:6px;color:#555;font-size:10px;line-height:1.5}
.seo-content{
    width:min(1200px,calc(100% - 34px));
    margin:30px auto 50px;
    border-radius:14px;
    padding:32px;
    display:grid;
    grid-template-columns:minmax(0,1.35fr) minmax(290px,.65fr);
    gap:42px;
}
.section-kicker{
    margin:0 0 6px!important;
    color:#666!important;
    font-size:10px!important;
    text-transform:uppercase;
    letter-spacing:.12em;
    font-weight:800;
}
.seo-article h2{margin:0 0 12px;font-size:28px;letter-spacing:-.025em}
.seo-article h3{margin:26px 0 10px;font-size:17px}
.seo-article p,.seo-steps{color:#4f4f4f;font-size:13px;line-height:1.75}
.seo-steps{padding-left:19px}
.seo-steps li{padding:4px 0}
.faq-block{margin-top:30px;border-top:1px solid #e5e5e5}
.faq-block details{padding:14px 0;border-bottom:1px solid #e5e5e5}
.faq-block summary{cursor:pointer;font-size:13px;font-weight:750}
.faq-block details p{margin:8px 0 0;font-size:12px}
.related-tools h2{margin:0 0 10px;font-size:18px}
.related-tools a{
    display:block;
    padding:13px 0;
    border-bottom:1px solid #e5e5e5;
    text-decoration:none;
}
.related-tools b,.related-tools span{display:block}
.related-tools b{font-size:12px}
.related-tools span{margin-top:4px;color:#666;font-size:10px;line-height:1.45}
footer{
    width:min(1420px,calc(100% - 34px));
    margin:0 auto;
    padding:22px 0 35px;
    border-top:1px solid #e0e0e0;
    display:flex;
    align-items:center;
    gap:24px;
    color:#555;
    font-size:11px;
}
footer>a{font-weight:900;color:#000;text-decoration:none}
footer nav{margin-left:auto;display:flex;gap:20px}
footer nav a{text-decoration:none}
.modal{
    position:fixed;inset:0;z-index:2000;
    display:grid;place-items:center;padding:20px;
    background:rgba(0,0,0,.42);
}
.modal-card{
    width:min(430px,96vw);
    padding:22px;
    border-radius:14px;
    background:#fff;
    box-shadow:0 24px 80px rgba(0,0,0,.22);
}
.modal-card h3{margin:0 0 8px}
.modal-card p{color:#555;font-size:12px}
.modal-card input,.modal-card select{
    width:100%;margin:6px 0 10px;padding:10px;
    border:1px solid #ccc;border-radius:7px
}
.modal-card label{display:block;margin-top:6px;font-size:11px;font-weight:700}
.full{width:100%;margin-top:7px}
.ghost{background:#fff}
.loading-overlay{
    position:fixed;inset:0;z-index:5000;
    display:grid;place-items:center;padding:20px;
    background:rgba(255,255,255,.82);
    backdrop-filter:blur(5px);
}
.loading-card{
    width:min(410px,92vw);
    padding:28px;
    text-align:center;
    background:#fff;
    border:1px solid #ccc;
    border-radius:14px;
    box-shadow:0 22px 70px rgba(0,0,0,.15);
}
.loading-spinner{
    width:42px;height:42px;margin:0 auto 14px;
    border:4px solid #eee;border-top-color:#000;border-radius:50%;
    animation:spin .8s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}
.loading-card h3{margin:0 0 7px}
.loading-card p{margin:0 0 17px;color:#555;font-size:12px}
.loading-track{height:9px;overflow:hidden;border-radius:999px;background:#ececec}
.loading-bar{width:0;height:100%;background:#000;transition:width .25s ease}
.loading-percent{display:block;margin-top:8px;color:#555;font-size:10px;font-weight:800}
.status{
    position:fixed;right:18px;bottom:18px;z-index:6000;
    max-width:420px;padding:12px 15px;border-radius:9px;
    background:#000;color:#fff;font-size:12px
}
.status.error{background:#333}
.hidden{display:none!important}

@media(max-width:1080px){
    .main-nav{gap:20px}.main-nav a:nth-child(2),.main-nav a:nth-child(3){display:none}
    .workspace-columns{grid-template-columns:1fr}
    .how-grid{grid-template-columns:1fr}
    .how-step{border-right:0;border-bottom:1px solid #e5e5e5;padding:15px 0}
    .how-step:last-child{border-bottom:0}
    .feature-strip{grid-template-columns:repeat(2,1fr)}
    .feature:nth-child(2){border-right:0}
    .feature:nth-child(-n+2){margin-bottom:18px}
}
@media(max-width:720px){
    .site-header{padding:0 15px}.main-nav a{display:none!important}
    .hero{margin-top:22px}.hero h1{font-size:40px}
    .workspace,.feature-strip,.seo-content,footer{width:calc(100% - 24px)}
    .tools-pane,.pdf-pane,.how-card{border-radius:11px}
    .upload-drop{min-height:300px}
    .feature-strip{grid-template-columns:1fr;padding:16px}
    .feature{border-right:0;border-bottom:1px solid #e5e5e5;padding:14px 0!important}
    .feature:last-child{border-bottom:0}
    .seo-content{grid-template-columns:1fr;padding:24px;gap:28px}
    footer{align-items:flex-start;flex-wrap:wrap}footer nav{width:100%;margin-left:0;flex-wrap:wrap}
}


/* ---------------------------------------------------------
   PDF85 horizontal overflow fix
   Keep page thumbnails scrollable INSIDE the PDF panel only.
   --------------------------------------------------------- */

html,
body{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
}

main,
.workspace,
.workspace-columns,
.right-column,
.pdf-pane,
.manager,
.file-strip,
.preview-header,
.selection-status{
    min-width:0;
    max-width:100%;
}

.workspace-columns{
    width:100%;
}

.tools-pane{
    min-width:0;
    max-width:100%;
}

.right-column{
    min-width:0;
    width:100%;
    overflow:hidden;
}

.pdf-pane{
    min-width:0;
    width:100%;
    overflow:hidden;
}

.manager{
    min-width:0;
    width:100%;
    overflow:hidden;
}

.file-strip{
    width:100%;
    min-width:0;
}

.file-left{
    min-width:0;
    overflow:hidden;
}

.file-left > div{
    min-width:0;
}

#fileName{
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.file-strip-actions{
    flex:0 0 auto;
}

.preview-header{
    width:100%;
}

.page-grid{
    width:100%;
    max-width:100%;
    min-width:0;
    overflow-x:auto;
    overflow-y:hidden;
    overscroll-behavior-inline:contain;
    -webkit-overflow-scrolling:touch;
    padding-bottom:12px;
}

.page-card{
    flex:0 0 112px;
    min-width:112px;
    max-width:112px;
}

/* Grid children must be allowed to shrink below intrinsic content width. */
.workspace-columns > *,
.right-column > *{
    min-width:0;
}

/* Extra protection against generated images forcing viewport width. */
.page-card img{
    display:block;
    width:100%;
    max-width:100%;
    height:auto;
}

/* Keep the entire page within viewport even on very wide PDFs. */
@media(min-width:1081px){
    .workspace-columns{
        grid-template-columns:minmax(360px, 0.66fr) minmax(0, 1.34fr);
    }
}

@media(max-width:1080px){
    .workspace-columns{
        grid-template-columns:minmax(0,1fr);
    }
}


/* SEO content architecture */
.long-content .content-section{
    padding:4px 0 12px;
}

.long-content .content-section h3,
.how-to-section h2,
.faq-block h2{
    margin:22px 0 8px;
    font-size:19px;
    letter-spacing:-.015em;
}

.long-content .content-section p,
.guide-article p,
.static-article p{
    color:#4b4b4b;
    font-size:13px;
    line-height:1.8;
}

.how-to-section{
    margin-top:26px;
    padding-top:6px;
    border-top:1px solid #e6e6e6;
}

.guide-promo{
    margin-top:24px;
    padding:17px;
    border:1px solid #ddd;
    border-radius:11px;
    background:#fafafa;
}
.guide-promo h3{margin:0 0 6px;font-size:15px}
.guide-promo p{margin:0 0 10px;color:#555;font-size:11px;line-height:1.55}
.guide-promo .text-link{border:0;padding:0;font-size:11px;font-weight:800}

.home-tool-directory{
    width:min(1200px,calc(100% - 34px));
    margin:0 auto 50px;
}
.directory-block{
    padding:28px 0;
    border-top:1px solid #ddd;
}
.directory-block h2{margin:0 0 14px;font-size:25px}
.directory-grid{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:10px;
}
.directory-grid a{
    min-width:0;
    padding:15px;
    background:#fff;
    border:1px solid #ddd;
    border-radius:10px;
    text-decoration:none;
}
.directory-grid b,.directory-grid span{display:block}
.directory-grid b{font-size:12px}
.directory-grid span{margin-top:5px;color:#666;font-size:9px;line-height:1.45}
.all-directory{grid-template-columns:repeat(3,minmax(0,1fr))}

/* Guides */
.guide-main{
    width:min(1120px,calc(100% - 34px));
    margin:34px auto 60px;
    display:grid;
    grid-template-columns:minmax(0,1fr) 300px;
    gap:48px;
}
.breadcrumbs{
    grid-column:1/-1;
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    color:#666;
    font-size:10px;
}
.breadcrumbs a{text-decoration:none}
.guide-article{
    min-width:0;
    background:#fff;
    border:1px solid #ddd;
    border-radius:14px;
    padding:36px;
}
.guide-article h1{
    margin:0;
    font-size:42px;
    letter-spacing:-.045em;
    line-height:1.05;
}
.guide-lead{
    margin:12px 0 30px!important;
    font-size:16px!important;
    line-height:1.65!important;
}
.guide-article section{
    padding:18px 0;
    border-top:1px solid #e5e5e5;
}
.guide-article section h2{margin:0 0 8px;font-size:21px}
.guide-cta{
    margin-top:28px;
    padding:18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    background:#000;
    color:#fff;
    border-radius:11px;
}
.guide-cta span,.guide-cta strong{display:block}
.guide-cta span{font-size:10px;color:#ccc}
.guide-cta strong{margin-top:4px;font-size:17px}
.guide-cta a{
    padding:10px 14px;
    background:#fff;
    color:#000;
    border-radius:7px;
    text-decoration:none;
    font-size:11px;
    font-weight:800;
}
.related-guides h2{font-size:18px}
.related-guides a{
    display:block;
    padding:13px 0;
    border-bottom:1px solid #ddd;
    text-decoration:none;
}
.related-guides small,.related-guides b{display:block}
.related-guides small{color:#777;font-size:9px;text-transform:uppercase;letter-spacing:.08em}
.related-guides b{margin-top:4px;font-size:12px}

.guide-index-hero{margin-top:42px;margin-bottom:36px}
.guides-directory{
    width:min(1120px,calc(100% - 34px));
    margin:0 auto 60px;
}
.guide-category{
    padding:25px 0;
    border-top:1px solid #ddd;
}
.guide-category h2{margin:0 0 15px;font-size:25px}
.guide-list{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
}
.guide-list a{
    min-width:0;
    padding:18px;
    background:#fff;
    border:1px solid #ddd;
    border-radius:11px;
    text-decoration:none;
}
.guide-list b,.guide-list span,.guide-list em{display:block}
.guide-list b{font-size:13px}
.guide-list span{margin-top:7px;color:#666;font-size:10px;line-height:1.55}
.guide-list em{margin-top:13px;font-style:normal;font-size:10px;font-weight:800}

/* Trust/static pages */
.static-main{
    width:min(900px,calc(100% - 34px));
    margin:34px auto 60px;
}
.static-article{
    margin-top:18px;
    padding:38px;
    background:#fff;
    border:1px solid #ddd;
    border-radius:14px;
}
.static-article h1{
    margin:0 0 26px;
    font-size:42px;
    letter-spacing:-.04em;
}
.static-article h2{font-size:20px}
.static-article p{margin:13px 0}

@media(max-width:1050px){
    .directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .all-directory{grid-template-columns:repeat(2,minmax(0,1fr))}
    .guide-main{grid-template-columns:1fr}
    .guide-main .breadcrumbs{grid-column:auto}
    .guide-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
    .directory-grid,.all-directory,.guide-list{grid-template-columns:1fr}
    .guide-article,.static-article{padding:24px}
    .guide-article h1,.static-article h1{font-size:34px}
    .guide-cta{align-items:flex-start;flex-direction:column}
}

.shortcut-btn{
    display:inline-flex;
    align-items:center;
    gap:9px;
    margin-top:16px;
    padding:10px 16px;
    border:1px solid #d8d8d8;
    border-radius:9px;
    background:#fff;
    color:#111;
    text-decoration:none;
    font-size:12px;
    font-weight:750;
    transition:.15s ease;
}

.shortcut-btn:hover{
    background:#f4f4f4;
    border-color:#bcbcbc;
    transform:translateY(-1px);
}

.shortcut-icon{
    width:24px;
    height:24px;
    display:grid;
    place-items:center;
    border-radius:6px;
    background:#000;
    color:#fff;
    font-weight:900;
    font-size:13px;
}
