@font-face{font-family:Inter;src:url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2');font-weight:100 900;font-display:swap}@font-face{font-family:NotoDocument;src:url('/assets/fonts/NotoSans-Regular.ttf') format('truetype');font-display:swap}
:root{font-family:Inter,system-ui,sans-serif;font-size:14px;color:#203640;background:#f4f6f7;--ink:#203640;--muted:#526571;--line:#d8e0e5;--lime:#d9f96b;--brand-paper:#d9f96b;--ease:cubic-bezier(.22,1,.36,1)}*{box-sizing:border-box}body{margin:0;min-width:300px}button,input,textarea,select{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;color:#62747c;background:#e9eef0;border-color:#d3dde2}button,input,select,textarea{border:1px solid var(--line);border-radius:7px;min-height:39px;color:var(--ink);background:#fff}button{padding:8px 12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:550;line-height:1.2;transition:background-color .36s var(--ease),border-color .36s var(--ease),box-shadow .36s var(--ease)}button:hover:not(:disabled){border-color:#859b9a;background:#f5f8f0}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #376aa4;outline-offset:3px}input,textarea,select{padding:8px 10px;width:100%}input[type=checkbox]{min-height:18px;width:18px;height:18px;accent-color:#4d681f;flex:none}select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23526571' stroke-width='1.5'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat;padding-right:35px}textarea{resize:vertical;min-height:70px;line-height:1.5}input[type=color]{padding:4px;width:45px;min-height:37px}label{display:block;font-size:13px;font-weight:550}label>input,label>select,label>textarea{margin-top:6px}h1,h2,h3,p{margin-top:0}.icon{height:19px;width:19px;flex:none;vertical-align:middle}.primary{background:var(--lime);border-color:var(--lime);color:var(--ink)}.primary:hover:not(:disabled){background:#cceb56;border-color:#cceb56}.dark{background:var(--ink);border-color:var(--ink);color:#fff}.dark:hover:not(:disabled){background:#355563;color:#fff}.danger{color:#963b38}.subtle{background:transparent;border-color:transparent}.small{font-size:12px;padding:6px 9px;min-height:34px}.icon-button{padding:8px;min-width:38px}.muted{color:var(--muted)}.hint{font-size:12px;color:var(--muted);line-height:1.6}.button-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.field-row{display:flex;gap:10px;align-items:flex-end}.field-row>label{flex:1}.checkbox-label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:450}.checkbox-label>input{margin:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}[hidden]{display:none!important}
.workspace{min-height:800px;display:flex;flex-direction:column}.workspace-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 19px;background:#fff;border-bottom:1px solid var(--line)}.workspace-title{display:flex;align-items:center;gap:10px;min-width:0}.mini-brand{background:var(--lime);border-radius:8px;width:35px;height:35px;display:flex;align-items:center;justify-content:center;flex:none}.workspace-title strong{font-size:14px;font-weight:650;display:block}.workspace-title span:not(.mini-brand){display:block;font-size:11px;color:var(--muted);margin-top:3px}.workspace-top .tool-select{width:205px;min-width:150px;font-size:13px}.workspace-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.workspace-toolbar{background:#fff;display:flex;gap:6px;align-items:center;padding:11px 17px;border-bottom:1px solid var(--line);flex-wrap:wrap;min-height:61px}.workspace-toolbar button{font-size:13px;min-height:36px;padding:8px 10px}.toolbar-divider{height:25px;width:1px;background:var(--line);margin:0 5px}.toolbar-end{margin-left:auto}.workspace-status{padding:10px 18px;display:flex;align-items:flex-start;gap:8px;min-height:42px;background:#f7faf2;color:#415730;font-size:12px;line-height:1.6;border-bottom:1px solid #e1e9d6}.workspace-status[data-kind=error]{background:#fff2f0;color:#923d37;border-color:#f0d5d0}.workspace-status[data-kind=busy]{background:#eef4fb;color:#355b7d;border-color:#d5e2f2}.workspace-status .icon{width:16px;height:16px;margin-top:2px}.workspace-status:focus{outline:none;box-shadow:inset 0 0 0 2px #799f42}.workspace-main{display:grid;grid-template-columns:162px minmax(0,1fr) 245px;flex:1;min-height:580px}.page-sidebar{border-right:1px solid var(--line);padding:15px 11px;background:#f7f9fa;display:flex;flex-direction:column;gap:10px}.side-title{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:650}.side-title button{font-size:11px;min-height:28px;padding:4px 7px}.page-list{display:flex;flex-direction:column;gap:13px;max-height:600px;overflow:auto;padding:4px 3px 15px}.page-card{position:relative;border:1px solid #cfd9df;border-radius:7px;padding:9px 8px 7px;background:white;flex:none}.page-card.active{border-color:#547231;box-shadow:0 0 0 2px #bfdc9b}.page-card.is-selected{background:#f0f5e9}.page-card .thumb-button{width:100%;padding:0;border:0;display:block;border-radius:2px;min-height:90px;background:#f9fafb}.page-card canvas{display:block;max-width:100%;height:auto;margin:auto}.page-card .page-label{font-size:11px;display:flex;justify-content:space-between;gap:5px;margin-top:7px;align-items:center}.page-card .page-label span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:75px}.page-card .page-label label{display:flex;align-items:center;gap:4px;font-size:11px;font-weight:450}.page-card input[type=checkbox]{width:15px;height:15px;min-height:15px}.page-controls{display:flex;gap:3px;justify-content:center;margin-top:7px}.page-controls button{padding:3px;min-height:27px;min-width:27px;border-color:#e4eaee}.page-controls .icon{width:13px;height:13px}.canvas-area{padding:26px;min-width:0;display:flex;flex-direction:column;align-items:center;overflow:hidden;position:relative}.preview-controls{display:flex;justify-content:space-between;width:100%;align-items:center;gap:15px;margin-bottom:20px;color:var(--muted);font-size:12px}.preview-controls .button-row{flex-wrap:nowrap;gap:5px}.preview-controls button{min-height:30px;padding:5px 8px}.preview-controls .icon{width:15px;height:15px}.document-preview{width:100%;max-height:780px;overflow:auto;padding:4px 4px 16px;min-height:200px;display:flex;justify-content:center;align-items:flex-start}.page-stage{position:relative;background:#fff;box-shadow:0 3px 18px #2639441a;flex:none;touch-action:pan-y}.page-stage>canvas{display:block;width:100%;height:100%}.overlay-layer{position:absolute;inset:0}.overlay{position:absolute;outline:1px dashed transparent;min-width:12px;min-height:12px;touch-action:none;cursor:move;user-select:none;display:flex;align-items:flex-start;box-sizing:border-box;color:#203640;z-index:1;overflow:visible;font-family:NotoDocument,Arial,sans-serif;line-height:1.2;white-space:pre-wrap;overflow-wrap:anywhere}.overlay:hover{outline-color:#9db3d7}.overlay.selected{outline:1.5px solid #526fa8;background:#547db509;z-index:2}.overlay img{width:100%;height:100%;object-fit:contain;pointer-events:none}.overlay .resize-handle{position:absolute;right:-5px;bottom:-5px;width:11px;height:11px;background:#fff;border:1.5px solid #526fa8;border-radius:2px;cursor:nwse-resize;touch-action:none}.overlay-placeholder{border:1px dashed #55718b;color:#45647e;background:#edf5ffb0;font-size:12px;align-items:center;justify-content:center;padding:4px;min-height:22px;white-space:normal}.property-sidebar{border-left:1px solid var(--line);background:#fff;padding:18px 16px;max-height:870px;overflow:auto}.panel-title{font-size:14px;font-weight:650;margin-bottom:16px;display:flex;gap:8px;align-items:center}.property-sidebar label{margin-bottom:14px}.property-sidebar .checkbox-label{margin-bottom:11px}.property-sidebar h3{font-size:13px;margin:20px 0 11px}.panel-divider{border:0;border-top:1px solid var(--line);margin:22px 0}.profile-status{font-size:11px;color:#4c6a34;margin:10px 0}.storage-chip{display:flex;align-items:center;gap:6px;font-size:11px;color:#526a4c;background:#f3f8ec;padding:9px 10px;border-radius:6px;margin-bottom:16px}.storage-chip .icon{width:14px;height:14px}.side-empty{font-size:13px;color:var(--muted);line-height:1.65}.side-empty .icon{width:31px;height:31px;color:#7c936a;margin-bottom:13px}.form-field{margin-bottom:15px}.form-field label{font-size:12px;overflow-wrap:anywhere}.form-field.read-only{background:#f4f5f5;padding:9px;border-radius:6px}.form-field select[multiple]{min-height:100px}.workspace-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#fff;border-top:1px solid var(--line);padding:16px 19px}.workspace-bottom>div{display:flex;align-items:center;gap:13px;flex-wrap:wrap}.workspace-bottom .export-filename{width:210px;font-size:12px}.workspace-bottom .export-info{font-size:11px;color:var(--muted);max-width:330px}.export-range{font-size:12px!important}.dropzone{max-width:540px;width:100%;border:2px dashed #bbc9c0;border-radius:14px;min-height:350px;background:#fcfdfb;margin:55px auto 30px;padding:40px 25px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;transition:border-color .36s,background-color .36s}.dropzone.drag-over{border-color:#58782e;background:#edf7da}.drop-icon{width:67px;height:67px;background:#e8f0df;border-radius:18px;display:flex;align-items:center;justify-content:center;margin-bottom:22px}.drop-icon .icon{width:33px;height:33px;color:#49612f}.dropzone h1{font-size:22px;line-height:1.3;font-weight:650;letter-spacing:-.6px;margin-bottom:11px}.dropzone p{font-size:13px;color:var(--muted);max-width:310px;line-height:1.6;margin-bottom:19px}.dropzone .hint{font-size:11px;margin-top:14px;margin-bottom:9px}.dropzone .sample-button{font-size:12px;background:transparent;border:0;text-decoration:underline;text-underline-offset:3px;padding:7px;color:#426238}.workspace[data-empty=true] .workspace-main{grid-template-columns:minmax(0,1fr) 245px}.workspace[data-empty=true] .page-sidebar{display:none}.workspace[data-empty=true] .canvas-area{padding:20px}.workspace[data-empty=true] .preview-controls,.workspace[data-empty=true] .document-preview{display:none}.workspace[data-tool=compare-pdf] .page-sidebar{display:none}.workspace[data-tool=compare-pdf] .workspace-main{grid-template-columns:minmax(0,1fr) 245px}.workspace[data-tool=compare-pdf] .document-preview{display:none}.compare-view{width:100%;display:flex;flex-direction:column;gap:15px}.compare-panels{display:grid;grid-template-columns:1fr 1fr;gap:16px;width:100%;align-items:start}.compare-page{position:relative;background:#fff;box-shadow:0 2px 13px #24394918;min-width:0}.compare-page canvas{width:100%;height:auto;display:block}.compare-panels[data-mode=overlay]{position:relative;display:block}.compare-panels[data-mode=overlay] .compare-page:nth-child(2){position:absolute;inset:0;opacity:.5;box-shadow:none}.compare-labels{display:flex;justify-content:space-between;gap:20px;color:var(--muted);font-size:12px}.compare-labels span{overflow-wrap:anywhere;max-width:45%}.export-result{margin:14px 18px;background:#eaf4db;border:1px solid #bfd79b;border-radius:8px;padding:15px 17px;font-size:13px;color:#354f24;display:flex;align-items:center;justify-content:space-between;gap:15px}.export-result:focus{outline:2px solid #5b8133}.export-result a{font-weight:650;color:#354f24;text-underline-offset:3px}
dialog{position:fixed;left:0;right:0;bottom:auto;top:calc(var(--dialog-viewport-top,0px) + 16px);margin:0 auto;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:15px;box-shadow:0 25px 85px #13273755;width:min(580px,calc(100% - 28px));max-height:max(0px,calc(var(--dialog-viewport-height,100dvh) - 32px));color:var(--ink);background:#fff}dialog::backdrop{background:#152a3955}dialog[open]{display:flex;flex-direction:column;animation:dialog-enter .35s var(--ease)}@keyframes dialog-enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}.dialog-head{flex:none;display:flex;align-items:center;justify-content:space-between;padding:20px 23px 15px;border-bottom:1px solid var(--line);gap:20px}.dialog-head h2{font-size:19px;margin:0;letter-spacing:-.4px}.dialog-body{padding:22px 23px;overflow:auto;min-height:0;flex:1 1 auto;overscroll-behavior:contain}.dialog-body label{margin-bottom:17px}.dialog-footer{display:flex;justify-content:flex-end;align-items:center;gap:10px;flex-wrap:wrap;margin-top:22px}.signature-tabs{display:flex;gap:7px;margin-bottom:18px}.signature-tabs button[aria-selected=true]{background:#edf5e0;border-color:#b7cf8a}.signature-canvas{width:100%;height:180px;border:1px solid var(--line);border-radius:8px;background:linear-gradient(transparent 73%,#d8e0e5 73%,#d8e0e5 74%,transparent 74%);touch-action:none;display:block}.signature-type{font-family:cursive;font-size:28px;min-height:75px}.signature-image-preview{max-height:150px;max-width:100%;display:block;margin:10px auto}.saved-list{display:flex;flex-direction:column;gap:10px;max-height:340px;overflow:auto;margin-top:16px}.saved-card{border:1px solid var(--line);border-radius:8px;padding:13px 15px;display:flex;align-items:center;justify-content:space-between;gap:15px}.saved-card strong{font-size:14px;display:block;overflow-wrap:anywhere}.saved-card small{font-size:11px;color:var(--muted)}.saved-card .button-row{flex-wrap:nowrap}.dialog-body .section-title{font-size:14px;font-weight:650;margin:22px 0 12px}.dialog-error{color:#9a3630;font-size:13px;background:#fff0ee;padding:11px 13px;border-radius:6px;margin:10px 0}.busy-indicator{width:14px;height:14px;border:2px solid #a5b8cc;border-top-color:#315b84;border-radius:50%;animation:spin 1s linear infinite;flex:none}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:1000px){.workspace-main{grid-template-columns:127px minmax(0,1fr) 215px}.workspace-title .subtitle{display:none}.workspace-top{gap:10px;padding:14px}.workspace-title strong{font-size:13px}.workspace-top .tool-select{width:180px}.workspace-actions button{font-size:12px;padding:8px}.workspace-actions button span{display:none}.canvas-area{padding:19px 15px}.property-sidebar{padding:16px 13px}.workspace-toolbar{padding:10px 12px}.workspace-toolbar button{font-size:12px}.page-sidebar{padding:12px 8px}.page-controls{gap:2px}.page-controls button{min-width:24px}.page-controls .icon{width:12px}.workspace-bottom .export-filename{width:155px}.workspace[data-empty=true] .workspace-main{grid-template-columns:minmax(0,1fr) 215px}}
@media(max-width:680px){:root{font-size:14px}.workspace{min-height:900px}.workspace-top{flex-wrap:wrap;padding:13px;gap:10px}.workspace-title{flex:1}.workspace-title strong{font-size:13px}.workspace-top .tool-select{order:3;width:100%;font-size:13px;min-height:41px}.workspace-actions button span{display:none}.workspace-toolbar{padding:10px;gap:5px}.workspace-toolbar button{padding:9px 8px;min-height:38px;font-size:12px}.workspace-toolbar .toolbar-end{margin-left:0}.toolbar-divider{margin:0 2px}.workspace-main,.workspace[data-empty=true] .workspace-main,.workspace[data-tool=compare-pdf] .workspace-main{display:flex;flex-direction:column;min-height:0}.page-sidebar{order:2;border-right:0;border-top:1px solid var(--line);padding:12px}.side-title{justify-content:flex-start;gap:20px}.page-list{flex-direction:row;max-height:none;overflow-x:auto;overflow-y:hidden;gap:11px;padding:5px 2px 10px}.page-card{width:102px;padding:7px}.page-card .thumb-button{min-height:70px}.page-controls button{min-width:24px}.canvas-area{order:1;padding:16px 13px 8px;min-height:300px}.property-sidebar{order:3;border-left:0;border-top:1px solid var(--line);max-height:none;padding:19px 16px}.property-sidebar .profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 13px}.property-sidebar .profile-grid .full{grid-column:1/-1}.workspace-bottom{padding:14px;align-items:stretch;gap:13px;flex-direction:column}.workspace-bottom>div{justify-content:space-between;gap:8px}.workspace-bottom .export-filename{width:100%;font-size:13px}.workspace-bottom .export-info{display:none}.workspace-bottom #export-button{flex:1;min-height:45px}.workspace-status{font-size:12px;padding:10px 13px}.document-preview{max-height:620px;min-height:0;padding:3px 3px 12px}.dropzone{min-height:290px;padding:27px 15px;margin:14px 0 24px}.dropzone h1{font-size:20px}.workspace[data-empty=true] .canvas-area{padding:14px}.preview-controls{margin-bottom:12px}.export-result{margin:12px;font-size:12px;align-items:flex-start;flex-direction:column}.compare-panels{gap:9px}.compare-labels{font-size:11px}.dialog-body{padding:18px}.dialog-head{padding:17px 18px}.dialog-head h2{font-size:18px}.saved-card{flex-direction:column;align-items:flex-start;gap:9px}.saved-card .button-row{width:100%;justify-content:flex-end}.profile-collapse .hint{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}html{scroll-behavior:auto}}
/* Page ranges, scan collation and reviewed multi-file exports. */
.page-selection-tools{border-top:1px solid var(--line);padding-top:10px;min-width:0}.page-selection-tools summary{cursor:pointer;font-size:11px;font-weight:650;line-height:1.5;list-style-position:inside}.page-selection-tools[open] summary{margin-bottom:12px}.page-selection-tools label{font-size:11px;margin:0 0 6px;line-height:1.4}.page-selection-tools input{min-width:0;width:100%;padding:8px;font-size:12px}.page-selection-tools>button{width:100%;margin-top:8px;min-height:34px;font-size:11px;padding:6px}.page-selection-tools .hint{font-size:10px;line-height:1.5;margin:10px 0}.selection-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:8px}.selection-shortcuts button{min-width:0;padding:5px;font-size:11px;min-height:32px}.selection-count{font-size:11px;color:var(--muted);margin:0}.batch-summary{padding:12px;border-radius:8px;background:#f0f6f5;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.batch-summary[data-invalid=true]{background:#fff8e9;color:#6c4910}.batch-warning{padding:12px 14px;background:#fff8e9;color:#68460d;border:1px solid #ead9ac;border-radius:9px;font-size:13px;line-height:1.6}.batch-file-list,.page-order-preview{max-height:340px;overflow:auto;padding-left:32px;margin:18px 0}.batch-file-list li{padding:8px 8px 12px;border-bottom:1px solid var(--line);line-height:1.5}.batch-file-list strong{display:block;font-size:13px;overflow-wrap:anywhere}.batch-file-list li>span{display:block;font-size:12px;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}.page-order-preview li{padding:7px 6px;line-height:1.7;border-bottom:1px solid var(--line);font-size:12px;overflow-wrap:anywhere}.scan-side{display:inline-block;min-width:48px;padding:1px 6px;border-radius:4px;margin-right:8px;font-size:10px;font-weight:700;text-align:center;background:#e1eeed;color:#1c514a}.scan-side.back{background:#e9e6f4;color:#514078}.property-sidebar textarea#split-ranges{width:100%;min-height:85px;resize:vertical}#preview-split,#preview-interleave{width:100%}
@media(max-width:680px){.page-selection-tools summary{font-size:13px}.page-selection-tools[open]{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px}.page-selection-tools summary,.page-selection-tools label,.page-selection-tools .hint{grid-column:1/-1}.page-selection-tools input,.page-selection-tools>button{margin:0;min-height:40px}.page-selection-tools .selection-shortcuts{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,1fr);margin:0}.selection-shortcuts button{min-height:38px}.page-selection-tools .hint{margin:0}.page-selection-tools>button#reverse-page-order{grid-column:1/-1}.batch-file-list,.page-order-preview{max-height:38dvh}.page-order-preview li{font-size:12px}.batch-warning{font-size:12px}}
.blank-review-list{list-style:none;padding:0;margin:14px 0;display:grid;gap:12px}.blank-review-list li{display:grid;grid-template-columns:minmax(74px,110px) minmax(0,1fr);gap:12px;padding:12px;border:1px solid var(--line);border-radius:8px;align-items:start}.blank-review-list img{width:100%;max-height:155px;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:4px}.blank-review-list strong,.blank-review-list span{display:block;overflow-wrap:anywhere;line-height:1.45}.blank-review-list span{font-size:12px;color:var(--muted);margin:3px 0}.blank-review-list label.checkbox-label{margin:8px 0}.blank-review-list button{max-width:100%;white-space:normal}.blank-review-list button.small{min-height:40px}.blank-review-list .checkbox-label input{flex:none}@media(max-width:420px){.blank-review-list li{grid-template-columns:74px minmax(0,1fr);padding:8px;gap:8px}.blank-review-list button.small{min-height:44px}}
.duplicate-group{min-width:0;margin:16px 0;padding:12px;border:1px solid var(--line);border-radius:8px}.duplicate-group legend{padding:0 6px;font-weight:650;font-size:13px}.duplicate-choices{display:flex;flex-wrap:wrap;gap:6px}.duplicate-choices .small{min-height:44px;white-space:normal}.duplicate-group .blank-review-list{margin-bottom:0}.duplicate-group .blank-review-list li{padding:8px}
