:root{--primary:#E63946;--primary-strong:#C92D3B;--ink:#14213D;--muted:#596579;--line:#E2E6ED;--white:#fff;--radius:5px}
*{box-sizing:border-box}
body{margin:0;background:#fff;color:var(--ink);font:15px/1.55 Inter,Arial,"Noto Sans Tamil",sans-serif}
button,input,select,textarea{font:inherit}
button,a,input,select{outline-offset:4px}
a{color:inherit;text-decoration:none}
button{cursor:pointer}
header{border-bottom:1px solid var(--line);background:white;position:sticky;top:0;z-index:5}
.wrap{max-width:1280px;margin:auto;padding:0 36px}
.nav{height:76px;display:flex;align-items:center;gap:30px;position:relative}
.logo{display:flex;align-items:center;gap:10px;font-size:25px;font-weight:800;letter-spacing:-1.2px;white-space:nowrap}
.logo em{font-style:normal;color:var(--primary)}
.mark{background:var(--primary);width:38px;height:38px;display:grid;place-items:center;border-radius:6px}
.navlinks{display:flex;gap:22px;font-weight:600;font-size:14px;flex:1}
.navlinks a:hover{color:var(--primary)}
.actions{display:flex;gap:12px;align-items:center}
.btn{border:1px solid var(--primary-strong);background:var(--primary-strong);color:white;padding:11px 18px;border-radius:5px;font-weight:700}
.btn:hover{background:#B32533}
.outline{background:white;color:var(--ink);border:1px solid var(--line)}
.outline:hover{background:white;border-color:var(--primary)}
.hero{text-align:center;padding:63px 0 35px}
.eyebrow{font-size:12px;letter-spacing:2px;text-transform:uppercase;font-weight:800;color:var(--primary-strong)}
h1{font-size:clamp(35px,5vw,58px);letter-spacing:-2.5px;line-height:1.12;margin:13px 0 17px}
h1 span{color:var(--primary)}
.hero p{color:var(--muted);font-size:17px;margin:0 auto 25px;max-width:650px}
.search{display:flex;align-items:center;border:1px solid #C8D0DC;border-radius:5px;max-width:650px;margin:auto;padding:5px 5px 5px 16px;gap:12px}
.search input{border:0;outline:none;flex:1;min-width:0;padding:10px;background:white;color:var(--ink)}
.search:focus-within{border-color:var(--primary)}
.quick{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:15px;font-size:13px;color:var(--muted)}
.quick a{border:0;background:white;color:var(--primary-strong);padding:0;font-weight:600}
.section{padding:30px 0 38px}
.sectionhead{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:20px}
h2{font-size:27px;letter-spacing:-.7px;margin:0 0 4px}
p{margin:0;color:var(--muted)}
.tabs{display:flex;gap:8px;overflow:auto;margin-bottom:22px;padding-bottom:4px}
.tabs a{white-space:nowrap;border:1px solid var(--line);border-radius:4px;background:#fff;padding:8px 15px;font-weight:600;color:var(--muted)}
.tabs a.active{border-color:var(--ink);background:var(--ink);color:white}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.tool{background:white;border:1px solid var(--line);border-radius:5px;padding:18px;text-align:left;display:flex;flex-direction:column;align-items:start;color:var(--ink);transition:border-color .15s,transform .15s}
.tool:hover{border-color:var(--primary);transform:translateY(-2px)}
.icon{width:48px;height:48px;display:grid;place-items:center;border-radius:6px;color:white;margin-bottom:14px;flex:none}
.tool .icon{width:42px;height:42px;margin-bottom:10px}
.icon svg,.mark svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mark svg{color:white}
.tool strong{font-size:16px;margin-bottom:5px}
.tool p{font-size:13px;line-height:1.5}
.arrow{margin-top:auto;padding-top:10px;color:var(--primary-strong);font-size:13px;font-weight:700}
.rule{border-top:1px solid var(--line)}
.govgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.gov{border:1px solid var(--line);border-radius:5px;background:white;padding:16px;text-align:left;color:var(--ink)}
.gov b{display:block}
.gov small{color:var(--muted)}
.gov:hover{border-color:var(--primary)}
.sizes{display:flex;gap:9px;flex-wrap:wrap;margin-top:15px}
.sizes a{background:white;border:1px solid var(--line);border-radius:4px;padding:10px 15px;color:var(--ink);font-weight:650}
.sizes a:hover{border-color:var(--primary);color:var(--primary-strong)}
.plans{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.plan{border:1px solid var(--line);border-radius:5px;padding:26px;background:white}
.plan.featured{border:1px solid var(--primary)}
.price{font-size:35px;font-weight:800;letter-spacing:-1px;margin:12px 0}
.price small{font-size:13px;font-weight:400;color:var(--muted)}
.plan ul{padding-left:20px;color:var(--muted);min-height:110px;font-size:14px}
.plan .btn{width:100%}
.trust{display:flex;justify-content:center;gap:40px;flex-wrap:wrap;padding:23px 0;color:var(--muted);font-size:13px}
footer{border-top:1px solid var(--line);padding:30px 0;color:var(--muted);font-size:13px}
.empty{grid-column:1/-1;padding:30px;text-align:center;color:var(--muted)}
@media(max-width:1000px){.navlinks{display:none}
.actions{margin-left:auto}
.grid,.govgrid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:650px){.wrap{padding:0 16px}
.nav{height:62px;gap:8px}
.logo{font-size:21px}
.actions .outline{display:none}
.actions .btn{padding:8px 12px}
.hero{padding:42px 0 24px}
h1{letter-spacing:-1.4px}
.grid,.govgrid{grid-template-columns:repeat(2,1fr);gap:9px}
.tool{padding:14px}
.tool .icon{width:36px;height:36px;margin-bottom:8px}
.plans{grid-template-columns:1fr}
.sectionhead{align-items:start;flex-direction:column}
.search .btn{padding:9px}
.trust{gap:14px}
.section{padding:24px 0}
}

@font-face{font-family:Inter;src:url("/assets/vendor/fonts/Inter.woff2") format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"Noto Sans Tamil";src:url("/assets/vendor/fonts/NotoSansTamil.woff2") format("woff2");font-weight:100 900;font-display:swap;unicode-range:U+0B80-0BFF}
html{scroll-padding-top:94px}
body{min-height:100vh;display:flex;flex-direction:column}
main{width:100%;flex:1}
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--primary-strong);outline-offset:4px}
.skip{position:fixed;left:12px;top:8px;transform:translateY(-160%);z-index:10;background:white;color:var(--ink);padding:8px 14px;border:1px solid var(--ink);border-radius:5px}
.skip:focus{transform:none}
.btn{display:inline-block;text-align:center}
.btn:disabled{opacity:.65;cursor:wait}
.navlinks a[aria-current],.plan.featured>b{color:var(--primary-strong)}
.mobile-menu{display:none;position:relative}
.mobile-menu summary{list-style:none;cursor:pointer;display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--line);border-radius:5px}
.mobile-menu summary::-webkit-details-marker{display:none}
.mobile-menu svg{width:22px;height:22px;stroke:var(--ink);stroke-width:1.8;fill:none}
.mobile-menu nav{position:absolute;right:0;top:calc(100% + 8px);width:190px;padding:5px;display:grid;background:white;border:1px solid var(--line);border-radius:5px}
.mobile-menu nav a{padding:8px;border-radius:5px}
.mobile-menu nav a:hover{color:var(--primary-strong)}
.icon-pdf{background:#D92D40}
.icon-image{background:#087E63}
.icon-document{background:#2457B8}
.icon-ocr{background:#7543C4}
.icon-government{background:#A65D10}
.icon-utility{background:#475569}
.icon-sheet{background:#16804A}
.gov,.tool{overflow-wrap:anywhere}
.footer-row,.links{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.footer-row{justify-content:space-between}
footer nav{display:flex;gap:14px;flex-wrap:wrap}
footer a:hover,.links>a:not(.btn):hover,.source>a:not(.btn):hover,.crumb a:hover{text-decoration:underline}
.page{padding-top:44px;padding-bottom:55px}
.page h1{font-size:clamp(29px,4.5vw,44px);letter-spacing:-1.2px}
.crumb{display:flex;flex-wrap:wrap;gap:8px;color:var(--muted);font-size:14px;margin-bottom:22px}
.source,.portal-presets{margin-top:16px}
.source>a:not(.btn),.links>a:not(.btn){color:var(--primary-strong);text-decoration:underline;text-underline-offset:3px}
.subheading{margin-top:26px;margin-bottom:14px}
.preset{padding-top:16px;margin-top:12px;border-top:1px solid var(--line)}
.preset h3{margin:0 0 5px}
.preset .links{margin-top:10px}
.small,.caption{font-size:13px}
.caption{margin-top:12px}
.muted{color:var(--muted)}
.panel{border:1px solid var(--line);border-radius:5px;background:white;padding:24px;min-width:0}
.stack{display:grid;gap:14px}
.field{display:grid;gap:6px;min-width:0}
.fields,.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
label{font-weight:650}
input:not([type=hidden]),select,textarea{min-width:0}
.field input,.field select,textarea{display:block;width:100%;border:1px solid #C8D0DC;border-radius:5px;padding:9px 11px;color:var(--ink);background:white}
textarea{resize:vertical}
.tool-intro{text-align:center;margin-bottom:24px}
.tool-intro .icon{margin-inline:auto}
.converter,.converter-note,.account-form{max-width:680px;margin-inline:auto;width:100%}
.account-form{max-width:470px}
.converter-note{text-align:center}
.account-form h1{margin-top:0}
.file-area{display:grid;gap:8px;border:1px dashed #C8D0DC;border-radius:5px;padding:18px}
input::file-selector-button{font:inherit;color:var(--ink);background:white;border:1px solid var(--line);border-radius:5px;padding:6px 10px;margin-right:10px;cursor:pointer}
.file-order{margin:0;padding-left:26px}
.file-order li{padding:6px 0}
.file-order li>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.file-order .filename{flex:1;overflow-wrap:anywhere;min-width:110px}
.file-order button{padding:3px 6px;font-size:13px}
#tool-status:empty{position:absolute}
#result img{max-width:min(100%,380px);max-height:300px;object-fit:contain}
#result pre{white-space:pre-wrap;overflow:auto;overflow-wrap:anywhere;max-height:24rem;border:1px solid var(--line);padding:12px;margin:0;border-radius:5px}
.error,.status{border:1px solid var(--line);border-radius:5px;padding:9px 12px;color:var(--ink)}
.error{border-color:var(--primary);color:var(--primary-strong)}
.request-list{margin:0;padding-left:22px}
.table-scroll{overflow-x:auto}
table{width:100%;border-collapse:collapse;text-align:left}
th,td{padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere}
th{white-space:nowrap}
@media(max-width:1000px){.mobile-menu{display:block}}
@media(max-width:650px){
    html{scroll-padding-top:76px}
    .mobile-menu summary{width:34px;height:36px}
    .search{padding-left:10px;gap:6px}
    .search input{padding:8px 2px}
    .panel{padding:16px}
    .dashboard-grid{grid-template-columns:1fr}
    .page{padding-block:28px 36px}
}
@media(max-width:360px){.nav .logo{gap:6px;font-size:19px}.mark{width:34px;height:34px}.actions .btn{font-size:13px}.tool{padding:12px}}
@media(prefers-reduced-motion:reduce){.tool{transition:none}.tool:hover{transform:none}}

.navlinks{align-items:center;align-self:stretch;gap:18px}
.navlinks a,.navlinks summary{white-space:nowrap}
.tool-menu{align-self:stretch}
.tool-menu summary{display:flex;align-items:center;height:100%;cursor:pointer;color:var(--ink);list-style:none}
.tool-menu summary::-webkit-details-marker{display:none}
.tool-menu summary::after{content:"";display:inline-block;margin:0 0 3px 6px;width:6px;height:6px;border-right:1px solid;border-bottom:1px solid;transform:rotate(45deg)}
.tool-menu[open] summary{color:var(--primary-strong)}
.menu-panel{
    position:absolute;top:100%;left:36px;right:36px;z-index:2;
    display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:start;gap:16px;
    padding:20px;background:var(--white);border:1px solid var(--line);border-radius:8px;
    box-shadow:0 16px 32px rgba(20,33,61,.12);
    max-height:calc(100dvh - 84px);overflow:auto;
}
.menu-panel-image{left:50%;right:auto;width:min(620px,calc(100% - 72px));transform:translateX(-50%);grid-template-columns:repeat(2,minmax(0,1fr))}
.menu-panel section{display:grid;align-content:start;gap:2px;min-width:0}
.menu-group-title{margin:0 0 3px;padding:0 0 8px;border-bottom:1px solid var(--line);font-size:14px;line-height:1.3;letter-spacing:normal}
.menu-panel a{border-radius:4px;padding:4px 6px;font-size:14px;line-height:1.3;font-weight:500;white-space:normal}
.menu-panel a:hover,.menu-panel a:focus-visible{background:#fff1f2;color:var(--primary-strong)}
.menu-panel .menu-all{grid-column:1/-1;justify-self:start;font-weight:700;color:var(--primary-strong)}
@media(max-height:500px){
    .menu-panel{gap:8px;padding:10px 12px}
    .menu-panel section{gap:1px}
    .menu-group-title{margin-bottom:2px;padding-bottom:5px}
    .menu-panel a{padding-block:1px}
}
.workflow-tabs{margin-top:-12px;margin-bottom:16px}
.workspace-layout{display:grid;grid-template-columns:200px minmax(0,1fr);gap:22px}
.workspace-sidebar{border:1px solid var(--line);border-radius:5px;padding:10px;display:grid;gap:4px;align-content:start;align-self:start}
.workspace-sidebar a{display:block;padding:8px 10px;border-radius:5px;color:var(--muted);font-weight:600}
.workspace-sidebar a:hover,.workspace-sidebar a[aria-current]{color:var(--ink);outline:1px solid var(--line)}
.workspace-sidebar a[aria-current]{border-inline-start:3px solid var(--primary);padding-inline-start:7px}
.workspace-content{min-width:0}
.workspace-search{max-width:none;margin:0}
.workspace-quick{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.quick-tool{display:flex;align-items:center;gap:8px;min-width:0;min-height:62px;padding:7px;border:1px solid var(--line);border-radius:5px;font-size:13px;line-height:1.3}
.quick-tool:hover{border-color:var(--primary)}
.quick-tool .icon{width:30px;height:30px;margin:0}
.quick-tool .icon svg{width:17px;height:17px}
.library-tabs{margin-bottom:0}
.library-tabs button{white-space:nowrap;border:1px solid var(--line);border-radius:5px;background:white;padding:6px 10px;font-weight:650;color:var(--ink)}
.library-tabs button.active{background:var(--ink);color:white;border-color:var(--ink)}
.library-actions{gap:5px;min-width:210px}
.library-actions .btn{padding:4px 7px;font-size:13px}
.section-detail{border:1px solid var(--line);border-radius:5px;padding:12px}
.section-detail summary{cursor:pointer;font-weight:650;overflow-wrap:anywhere}
.detail-content{padding-top:12px}
.detail-content h3{margin:0}
.check{display:flex;align-items:center;gap:9px;font-weight:500}
input[type=checkbox]{accent-color:var(--primary-strong)}
.preserve-lines{white-space:pre-wrap;overflow-wrap:anywhere}
.form-cards,.template-form{margin-top:20px}
.template-form{max-width:700px}
.editor-layout{display:grid;grid-template-columns: minmax(235px,300px) minmax(0,1fr);gap:14px;margin-top:16px}
.editor-layout .panel{padding:14px}
.edit-controls,.editor-document{align-self:start}
.editor-toolbar{gap:8px}
.editor-toolbar .btn{padding:6px 9px}
.editor-toolbar select,.editor-toolbar input{width:auto;max-width:85px;padding:5px;border:1px solid var(--line);border-radius:5px;background:white;color:var(--ink)}
.pdf-scroll{max-height:75vh;overflow:auto;border:1px solid var(--line);border-radius:5px;padding:8px}
.pdf-stage{position:relative;margin-inline:auto}
.pdf-stage canvas{width:100%;display:block}
#mark-layer{position:absolute;inset:0;cursor:crosshair}
#mark-layer.draw-active,#signature-pad{touch-action:none}
#signature-pad{width:100%;height:auto;border:1px solid var(--line);border-radius:5px}
.signature-transform{min-width:0;margin:0;padding:10px;border:1px solid var(--line);border-radius:5px}
.signature-transform legend{padding-inline:5px;font-weight:700}
.signature-transform input[type=number]{min-width:0}
.signature-selection{position:absolute;z-index:1;border:1px solid #2457B8;cursor:move;touch-action:none}
.signature-selection:focus-visible{outline:2px solid #2457B8;outline-offset:4px}
.signature-resize,.signature-rotate{position:absolute;width:24px;height:24px;border:0;background:transparent}
.signature-resize::before,.signature-rotate::before{content:"";position:absolute;inset:6px;border:2px solid #2457B8;background:white}
.signature-resize{right:-12px;bottom:-12px;cursor:nwse-resize}
.signature-rotate{top:-34px;left:calc(50% - 12px);cursor:grab}
.signature-rotate::before{border-radius:50%}
.signature-rotate::after{content:"";position:absolute;left:11px;top:18px;height:16px;border-left:1px solid #2457B8}
.editor-fields{border-top:1px solid var(--line);padding-top:10px}
.editor-fields summary{cursor:pointer;font-weight:700}
#field-list{padding-block:8px}
.field-check{display:flex;align-items:center;justify-content:space-between}
#editor-status{margin-top:8px}
#editor-status:empty,#template-status:empty{display:none}
.upload-status:empty{display:none}
.redaction-preview,.comparison-image{display:block;width:100%;height:auto;border:1px solid var(--line)}
.redaction-preview{max-width:740px;cursor:crosshair;touch-action:none}
@media(max-width:1000px){.workspace-quick{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:780px){
    .workspace-layout,.editor-layout{grid-template-columns:minmax(0,1fr);gap:14px}
    .workspace-sidebar{display:flex;overflow:auto}
    .workspace-sidebar a{white-space:nowrap}
}
@media(max-width:450px){.workspace-quick{grid-template-columns:repeat(2,minmax(0,1fr))}.library-tabs button{font-size:13px}}

/* Visual conversion tools */
.file-area.is-dragover{background:#f1f6ff;border-color:#2457b8}
.file-area .add-files{width:fit-content;margin-top:8px;cursor:pointer}
.file-order{list-style:none;padding:0}
.file-order li{padding:5px 0;position:relative}
.file-order li>div{padding:7px 10px;background:#f7f9fc;border:1px solid var(--line);border-radius:8px}
.file-order img{width:48px;height:44px;object-fit:contain;border-radius:4px;background:#fff}
.file-grip{padding:5px;color:#4e607c;font-size:22px;line-height:1;cursor:grab;touch-action:none;user-select:none}
#pdf-board,#image-workbench{background:#f3f6fb;border:1px solid var(--line);border-radius:14px;padding:clamp(10px,2vw,20px);min-width:0}
.pdf-board-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}
.pdf-board-toolbar h2,.pdf-dialog h2{margin:0;font-size:1.1rem}
.pdf-board-toolbar .small{margin:0;flex:1 1 145px}
.pdf-controls{display:flex;gap:7px;flex-wrap:wrap;align-items:center}
.pdf-controls .btn,.pdf-dialog .btn,.pdf-card .btn{min-height:36px;padding:6px 10px;font-size:.875rem;line-height:1.25;background:#fff}
.pdf-controls .btn:disabled,.pdf-card .btn:disabled,.pdf-dialog .btn:disabled{opacity:.45}
.pdf-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,145px),1fr));gap:12px;margin:14px 0 0;list-style:none;padding:0}
.pdf-grid:empty{margin:0}
.pdf-card{display:flex;position:relative;min-width:0;flex-direction:column;gap:4px;padding:8px;background:#fff;border:1px solid #d4deed;border-radius:11px}
.pdf-card.is-marked{box-shadow:0 0 0 2px #2457b8 inset;background:#f1f6ff}
.pdf-tile{height:clamp(108px,17vw,162px);overflow:hidden;position:relative;display:grid;place-items:center;width:100%;padding:8px;border:0;border-radius:6px;background:#e8edf6;color:#344763;font:inherit;font-size:.875rem;cursor:zoom-in}
.pdf-tile[data-drag]{cursor:grab;touch-action:none;user-select:none}
.pdf-tile img{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;transform:rotate(var(--page-turn,0deg));box-shadow:0 2px 7px #16243c30}
.pdf-tile.is-sideways img{max-width:75%;max-height:75%}
.pdf-card-title,.pdf-card-source{padding-inline:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pdf-card-title{font-size:.9rem}
.pdf-card-source{color:#526582;font-size:.8rem}
.pdf-card-menu{position:relative}
.pdf-card-menu summary{font-size:.875rem;font-weight:650;cursor:pointer;padding:5px 3px}
.pdf-card-menu>div{position:absolute;inset-inline-start:0;z-index:3;display:grid;gap:4px;width:min(175px,80vw);padding:7px;background:#fff;border:1px solid var(--line);border-radius:7px;box-shadow:0 6px 20px #16243c26}
.pdf-card-menu .btn{text-align:start;justify-content:flex-start}
.pdf-toggle{margin-top:auto}
.is-dragging{opacity:.45}
.pdf-card.drop-before{box-shadow:-4px 0 #2457b8}
.pdf-card.drop-after{box-shadow:4px 0 #2457b8}
.file-order .drop-before{box-shadow:0 -3px #2457b8}
.file-order .drop-after{box-shadow:0 3px #2457b8}
.pdf-dialog{max-width:min(880px,96vw);width:100%;max-height:94dvh;padding:14px;border:1px solid var(--line);border-radius:14px;color:inherit;background:#fff;overflow:auto}
.pdf-dialog::backdrop{background:#15243abe}
.pdf-dialog-bar{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.pdf-dialog-bar h2{flex:1 1 140px}
.pdf-dialog .small{margin:8px 0}
.pdf-dialog-viewport{overflow:auto;max-height:73dvh;background:#edf1f7;border-radius:8px;text-align:center}
.pdf-dialog-surface{position:relative;display:inline-block;max-width:100%;width:fit-content;vertical-align:top;container-type:inline-size}
.pdf-dialog-viewport.is-zoomed .pdf-dialog-surface{max-width:none}
.pdf-dialog-picture canvas{display:block;width:100%;height:auto}
.pdf-dialog-overlay{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.pdf-dialog-surface:has(.pdf-blank-preview){width:min(420px,100%)!important}
.pdf-blank-preview{aspect-ratio:210/297;background:#fff}
.pdf-crop-surface,.image-crop-stage{cursor:crosshair;touch-action:none;user-select:none}
.pdf-number-surface{cursor:crosshair}
.pdf-crop-box{position:absolute;pointer-events:none;outline:2px solid #2457b8;box-shadow:0 0 0 1000px #13244265}
.pdf-number-sample{position:absolute;background:#fff;color:#000;outline:1px dashed #2457b8;font-family:Arial,sans-serif;line-height:1}
.pdf-number-sample.is-centered{transform:translateX(-50%)}
#image-workbench summary{cursor:pointer;font-weight:650}
.image-workbench-body{margin-top:10px}
.image-crop-stage{position:relative;display:table;max-width:100%;margin-inline:auto;overflow:hidden;background:#fff}
.image-crop-stage canvas{display:block;max-width:100%;height:auto;max-height:62vh;object-fit:contain;width:auto}
@media(max-width:430px){
    .pdf-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
    .pdf-card:nth-child(even) .pdf-card-menu>div{inset-inline-start:auto;inset-inline-end:0}
    .pdf-dialog .btn{padding-inline:7px}
}

.editor-filmstrip{display:flex;gap:7px;margin:0;overflow:auto;list-style:none;padding:6px;background:#edf1f7;border:1px solid var(--line);border-radius:8px}
.editor-filmstrip li{flex:0 0 86px}
.editor-filmstrip button{position:relative;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;gap:4px;width:100%;height:110px;padding:5px;border-radius:6px;border:1px solid var(--line);background:#fff;color:#14213d;font-size:.8rem;cursor:grab;touch-action:pan-x;user-select:none}
.editor-filmstrip canvas{max-width:100%;max-height:77px;width:auto;height:auto;pointer-events:none;box-shadow:0 1px 4px #16243c26}
.editor-filmstrip button[aria-current]{border-color:#2457b8;box-shadow:inset 0 0 0 1px #2457b8;background:#f1f6ff}
.editor-filmstrip .drop-before{box-shadow:-4px 0 #2457b8}
.editor-filmstrip .drop-after{box-shadow:4px 0 #2457b8}
#mark-layer.move-active{cursor:move}

.redaction-preview{scroll-margin-top:76px}
.editor-filmstrip button{touch-action:none}

/* Conversion workspace */
main.wrap:has(>.tool-page){max-width:1540px}
.tool-page.section{padding-top:clamp(18px,3vw,38px)}
.tool-page .crumb{margin-bottom:15px}
.tool-page .tool-intro{display:flex;align-items:center;gap:14px;text-align:left;margin-bottom:18px;padding:20px 22px;border:1px solid #dce4ef;border-radius:16px;background:#f6f8fc}
.tool-page .tool-intro>.icon{flex:none;margin:0;width:50px;height:50px;border-radius:13px}
.tool-page .tool-intro h1{margin:0;line-height:1.13;font-size:clamp(26px,4vw,40px)}
.tool-page .tool-intro p{margin:5px 0 0;color:#485c76;font-size:1rem}
.tool-privacy{display:inline-flex;align-items:center;gap:8px;margin-inline-start:auto;white-space:nowrap;color:#28554f;font-size:.875rem;font-weight:650;background:#e9f4ef;border:1px solid #cfe6db;border-radius:99px;padding:6px 11px}
.tool-privacy>span{width:8px;height:8px;border-radius:50%;background:#167450}
.tool-page .converter{display:grid;grid-template-columns:minmax(262px,305px) minmax(0,1fr);grid-template-areas:"settings workspace" "settings result";gap:16px;align-items:start;max-width:none;font-size:1rem}
.tool-workspace{grid-area:workspace;min-width:0;min-height:360px;align-content:start;padding:16px;border:1px solid #dce4ef;border-radius:16px;background:#edf2f8}
.tool-settings{grid-area:settings;position:sticky;top:88px;min-width:0;max-height:calc(100dvh - 106px);grid-template-rows:minmax(0,1fr) auto;padding:15px;border:1px solid #dce4ef;border-radius:16px;background:#fff;box-shadow:0 5px 18px #1a2f4f0a}
.tool-options{min-height:0;overflow:auto;padding:3px;scrollbar-width:thin}
.tool-convert-actions{gap:7px}
.tool-settings h2{font-size:1.1rem;margin:0;padding-bottom:10px;border-bottom:1px solid #e5ebf4;letter-spacing:-.2px}
.tool-settings .field,.tool-settings .check{font-size:.875rem}
.tool-settings .small,.dropzone-copy .small,.pdf-board-toolbar .small,#pdf-board>p{color:#49607b;line-height:1.45}
.tool-settings input:not([type=checkbox]):not([type=radio]),.tool-settings select{padding:8px 9px}
.tool-settings #convert{width:100%;min-height:46px;border-radius:9px}
.tool-settings #cancel{width:100%}
.tool-settings #tool-status{margin:0;font-size:.875rem;overflow-wrap:anywhere}
.tool-result{grid-area:result;border:1px solid #dce4ef;background:#fff;padding:18px;border-radius:16px;scroll-margin-top:90px}
.tool-dropzone{position:relative;display:grid;justify-items:center;align-content:center;gap:8px;padding:24px 16px;min-height:328px;border:1px dashed #a6b7cf;border-radius:12px;background:#f9fbff;text-align:center}
.tool-dropzone:focus-within{border-color:#2457b8}
.upload-symbol{position:relative;display:grid;place-items:center;width:56px;height:56px;border-radius:15px;background:#e6edf8;margin-bottom:3px}
.upload-symbol::before{content:"";display:block;width:21px;height:28px;border:2px solid #335578;border-radius:4px;background:repeating-linear-gradient(to bottom,#6783a1 0 1.5px,transparent 1.5px 5px) center 11px/11px 12px no-repeat}
.dropzone-copy label{font-size:1.15rem;color:#14213d;cursor:pointer}
.dropzone-copy .small{margin:3px 0 0}
.tool-dropzone .choose-files{margin-top:3px;border-radius:9px;min-height:44px}
.upload-hint{margin:0;color:#526781;font-size:.875rem}
.tool-page .converter.has-custom-upload #files{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;overflow:hidden}
.tool-page .converter.has-custom-upload #files:focus+.choose-files{outline:2px solid var(--primary-strong);outline-offset:3px}
.has-input .tool-dropzone{min-height:auto;padding:11px 13px;grid-template-columns:34px minmax(0,1fr) auto auto;grid-template-areas:"symbol file replace add";gap:6px 10px;align-items:center;justify-items:start;text-align:left;background:#fff;border-style:solid;border-color:#d3dfee}
.has-input .upload-symbol{grid-area:symbol;width:32px;height:34px;margin:0;border-radius:6px}
.has-input .upload-symbol::before{height:20px;width:15px;background-size:8px 8px;background-position:center 7px}
.has-input .dropzone-copy,.has-input .upload-hint{display:none}
.has-input .selected-file-name{grid-area:file;margin:0;font-size:.9rem;font-weight:650;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.has-input .tool-dropzone .choose-files,.has-input .tool-dropzone .add-files{margin:0;padding:6px 9px;font-size:.875rem;min-height:36px}
.has-input .tool-dropzone .choose-files{grid-area:replace}
.has-input .tool-dropzone .add-files{grid-area:add}
#pdf-board,#image-workbench{background:transparent;border:0;border-radius:0;padding:0}
.pdf-board-toolbar{padding:2px 0}
.pdf-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,150px),1fr));gap:13px}
.pdf-card{box-shadow:0 1px 3px #172a4610}
.pdf-card .pdf-tile{height:clamp(124px,14vw,190px);background:#e6edf6}
.pdf-card .pdf-tile img{max-width:90%;max-height:calc(clamp(124px,14vw,190px) - 16px)}
.pdf-card .pdf-tile.is-sideways img{max-width:72%;max-height:calc(clamp(124px,14vw,190px) * .72)}
.pdf-card.part-start{border-top:3px solid #2457b8;padding-top:6px}
.pdf-card.part-alternate{background:#f1f8f6;border-color:#a8cbbf}
.pdf-card.part-start.part-alternate{border-top-color:#19785d}
.split-part-label{float:inline-end;color:#2457b8;font-size:.75rem}
.part-alternate .split-part-label{color:#176851}
.split-modes{border:0;padding:0;margin:0;min-width:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.split-modes legend{font-size:.875rem;font-weight:650;padding:0;margin-bottom:7px}
.split-modes label{position:relative;min-width:0;cursor:pointer;font-size:.8125rem;line-height:1.2}
.split-modes input{position:absolute;opacity:0;width:1px;height:1px}
.split-modes span{display:grid;place-items:center;height:100%;min-height:40px;padding:6px 2px;border:1px solid #dce4ef;border-radius:7px;background:#f6f8fc;text-align:center}
.split-modes input:checked+span{border-color:#2457b8;background:#ebf3ff;color:#17458a}
.split-modes input:focus-visible+span{outline:2px solid var(--primary-strong);outline-offset:2px}
.split-result-count{margin:0;font-weight:650}
.split-result-count:empty{display:none}
#converter[data-tool="qr-code-maker"] .tool-workspace label{font-size:.9rem}
#converter[data-tool="qr-code-maker"] .tool-workspace{min-height:0}
@media(max-width:820px){
    .tool-page .converter{grid-template-columns:minmax(0,1fr);grid-template-areas:"workspace" "settings" "result"}
    .tool-settings{position:static;max-height:none}
    .tool-options{overflow:visible}
    .tool-workspace{min-height:0}
    .tool-page .tool-intro{flex-wrap:wrap}
    .tool-privacy{margin-inline-start:0}
    .tool-dropzone{min-height:240px}
}
@media(max-width:430px){
    .tool-page .tool-intro{gap:10px;padding:13px}
    .tool-page .tool-intro>div{flex:1 1 190px}
    .tool-page .tool-intro>.icon{width:40px;height:40px}
    .tool-workspace,.tool-settings{padding:10px}
    .pdf-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
    .has-input .tool-dropzone{grid-template-columns:26px minmax(0,1fr) minmax(0,1fr);grid-template-areas:"symbol file file" "replace replace add"}
    .has-input .tool-dropzone .choose-files,.has-input .tool-dropzone .add-files{width:100%;font-size:.75rem}
}

.pdf-page-grip{position:absolute;top:13px;left:13px;display:grid;place-items:center;width:29px;height:29px;color:#354d6b;background:#fff;border:1px solid #d1deee;border-radius:6px;cursor:grab;touch-action:none;user-select:none}
@media(pointer:coarse){.pdf-card .pdf-tile[data-drag]{touch-action:pan-y}}

.pdf-dialog-surface{width:min(100%,var(--page-natural-width,420px),calc(68dvh * var(--page-ratio,.707)))}
.pdf-dialog-viewport.is-zoomed .pdf-dialog-surface{width:var(--page-natural-width,420px)}
.split-modes input{inset:0;width:100%;height:100%;margin:0;cursor:pointer;z-index:1}

main.wrap:has(>.editor-page){max-width:1540px}
.editor-page.section{padding-top:clamp(18px,3vw,38px)}
.editor-page .crumb{margin-bottom:15px}
.editor-page .editor-intro{display:flex;gap:14px;align-items:center;text-align:left;margin-bottom:14px;padding:17px 21px;border:1px solid #dce4ef;border-radius:16px;background:#f6f8fc}
.editor-intro>.icon{flex:none;margin:0!important;border-radius:13px}
.editor-intro h1{margin:0;font-size:clamp(26px,4vw,39px)}
.editor-intro p{margin:5px 0 0;color:#485c76;font-size:1rem}
.editor-upload{min-height:250px}
.editor-page.has-custom-upload #editor-file{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.editor-page.has-custom-upload #editor-file:focus+.choose-files{outline:2px solid var(--primary-strong);outline-offset:3px}
.editor-page.has-input .editor-upload{grid-template-columns:34px minmax(0,1fr) auto;grid-template-areas:"symbol file replace"}
.editor-page #editor-status{margin:9px 0;color:#465c77}
.editor-page #editor-status:empty{display:none}
.editor-page #editor-status.error{color:var(--primary-strong)}
.editor-page .editor-layout{grid-template-columns:minmax(255px,299px) minmax(0,1fr);align-items:start;gap:13px;margin-top:10px}
.editor-actionbar{grid-column:1/-1;position:sticky;top:66px;z-index:4;gap:6px;padding:9px;border:1px solid #dce4ef;border-radius:12px;background:#fff;box-shadow:0 3px 14px #1a2f4f12}
.editor-actionbar .btn{padding:7px 10px;min-height:36px;font-size:.875rem}
.editor-actionbar [aria-pressed="true"]{background:#eaf2ff;border-color:#93b1df;color:#1b4682}
.editor-actionbar #save-edited{margin-inline-start:auto}
.editor-layout .edit-controls,.editor-layout .editor-document{border:1px solid #dce4ef;border-radius:13px}
.editor-layout .edit-controls{box-shadow:0 4px 17px #1a2f4f0c}
.editor-layout .editor-document{background:#edf2f8}
.editor-document .editor-toolbar{gap:6px}
.editor-page-actions{font-size:.875rem;background:#fff;border:1px solid #dce4ef;border-radius:7px;padding:6px 9px}
.editor-page-actions summary{cursor:pointer;font-weight:650}
.editor-page-actions[open] summary{margin-bottom:8px}
.editor-page-actions .links{margin-top:6px}
.editor-document .pdf-scroll{background:#dae4f1;border:0;border-radius:10px;max-height:73dvh;padding:16px;scrollbar-gutter:stable both-edges}
.pdf-stage{box-shadow:0 2px 15px #16243c30}
.mark-selection{position:absolute;border:1px solid #0d57b2;outline:1px dashed #fff;outline-offset:-2px;pointer-events:none}
.mark-selection:focus-visible{outline:2px solid #2457b8;outline-offset:3px}
#mark-style input[type=color]{height:40px;padding:4px}
.layer-panel{border-top:1px solid #dce4ef;padding-top:11px;gap:7px}
.layer-panel h2{font-size:1rem;margin:0;letter-spacing:0}
.layer-panel p{margin:0}
.layer-header{display:flex;gap:6px;align-items:center;justify-content:space-between}
.layer-list{margin:0;padding:0;list-style:none;display:grid;gap:6px}
.layer-list li{display:grid;grid-template-columns:21px minmax(0,1fr) auto auto;gap:3px;align-items:center;padding:4px;background:#f4f7fb;border:1px solid #dce4ef;border-radius:7px}
.layer-list li [data-layer-action=select]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;text-align:left;grid-column:2/-1}
.layer-list li [data-layer-action=back]{grid-column:2}
.layer-list .drop-before{box-shadow:0 -3px #2457b8}
.layer-list .drop-after{box-shadow:0 3px #2457b8}
.layer-panel .btn{padding:4px 6px;font-size:.8rem}
.layer-list .btn[aria-pressed=true]{background:#e4efff;color:#184689;border-color:#a1b9de}
.layer-list .file-grip{padding:2px}
#editor-filmstrip{background:#e6edf7}
@media(max-width:820px){
    .editor-page .editor-layout{grid-template-columns:minmax(0,1fr);grid-template-areas:"tools" "document" "options"}
    .editor-actionbar{grid-area:tools;position:static}
    .editor-document{grid-area:document}
    .edit-controls{grid-area:options}
    .editor-page .editor-intro{flex-wrap:wrap}
    .editor-document .pdf-scroll{max-height:65dvh;padding:8px}
}
@media(max-width:430px){
    .editor-page .editor-intro{padding:12px}
    .editor-intro>div{flex:1 1 180px}
    .editor-layout .panel{padding:10px}
    .editor-actionbar #save-edited{margin-inline-start:0}
}

.number-layout{grid-template-columns:repeat(2,minmax(0,1fr))}
.number-position-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;width:min(100%,150px);padding:4px;background:#edf3fb;border:1px solid #dce4ef;border-radius:9px}
.number-position-grid button{display:grid;place-items:center;aspect-ratio:1.35;border:1px solid transparent;border-radius:5px;background:#fff;cursor:pointer}
.number-position-grid button span{width:8px;height:8px;background:#a8b8cc;border-radius:50%}
.number-position-grid button[aria-pressed=true]{background:#e3efff;border-color:#2457b8}
.number-position-grid button[aria-pressed=true] span{background:#2457b8;box-shadow:0 0 0 3px #bad5f8}
.number-typography{border:1px solid #dce4ef;border-radius:8px;padding:8px 10px;font-size:.875rem}
.number-typography summary{font-weight:650;cursor:pointer}
.number-typography[open] summary{margin-bottom:10px}
.number-typography input[type=color]{width:100%;height:36px;padding:2px 4px!important}
.number-toggles{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.pdf-number-frame{position:relative;width:min(100%,calc((clamp(124px,14vw,190px) - 16px) * var(--thumbnail-aspect, .707)));aspect-ratio:var(--thumbnail-aspect, .707);container-type:inline-size;box-shadow:0 2px 7px #16243c30}
.pdf-card .pdf-tile .pdf-number-frame img{display:block;width:100%;height:100%;max-width:none;max-height:none;box-shadow:none}
.pdf-number-chip{border-radius:2px;padding:1px 2px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums}
.pdf-number-sample.is-middle{translate:0 -50%}

.editor-page.has-input.section{padding-top:14px}
.editor-page.has-input .crumb{display:none}
.editor-page.has-input .editor-intro{padding:10px 14px;margin-bottom:9px}
.editor-page.has-input .editor-intro>.icon{width:38px;height:38px}
.editor-page.has-input .editor-intro h1{font-size:clamp(23px,3vw,30px)}
.editor-page.has-input .editor-intro p{display:none}
.editor-actionbar{top:76px}
.editor-document{--editor-stage-height:73dvh}
.editor-document .pdf-scroll{max-height:var(--editor-stage-height)}
@media(min-width:821px){
    .editor-document{grid-template-columns:96px minmax(0,1fr);gap:9px}
    .editor-document>.editor-toolbar,.editor-document>.editor-page-actions,.editor-document>p{grid-column:1/-1}
    .editor-document>.editor-filmstrip{grid-column:1;flex-direction:column;max-height:var(--editor-stage-height)}
    .editor-document>.editor-filmstrip li{flex:0 0 auto}
    .editor-document>.pdf-scroll{grid-column:2}
    .editor-filmstrip .drop-before{box-shadow:0 -3px #2457b8}
    .editor-filmstrip .drop-after{box-shadow:0 3px #2457b8}
}
@media(max-width:820px){.editor-document{--editor-stage-height:65dvh}}

.file-preview{min-width:0;background:#fff;border:1px solid #dce4ef;border-radius:10px;padding:10px 13px}
.file-preview>summary{cursor:pointer;font-weight:650}
.file-preview[open]>summary{margin-bottom:10px}
.file-preview [role=status]{margin:0}
.file-preview [role=status]:empty,.file-preview .links:empty{display:none}
.preview-viewer-body{min-width:0;max-height:65dvh;overflow:auto}
.preview-viewer-body:has(canvas){background:#edf2f8;padding:8px;border-radius:8px}
.preview-viewer-body canvas{display:block;width:auto;height:auto;max-height:60dvh;max-width:100%;margin:auto;box-shadow:0 2px 8px #172a4620}
.preview-viewer-body img{display:block;max-width:min(100%,560px);max-height:60dvh;object-fit:contain}
.preview-viewer-body pre{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.875rem}
.preview-viewer-body table{width:max-content;min-width:100%;font-size:.875rem}
.preview-viewer-body td{min-width:70px;max-width:220px;border:1px solid #e0e7f1}
.file-preview select{max-width:100%;padding:6px 8px;border:1px solid #dce4ef;border-radius:6px;color:var(--ink);background:#fff}
