:root{font-family:Segoe UI,system-ui,sans-serif;color:#dbe7ef;background:#101b28;font-synthesis:none;--line:#304251;--muted:#a4b6c6;--accent:#81e0c4}*{box-sizing:border-box}body{margin:0}header,main,footer{max-width:1600px;margin:auto}header{display:flex;align-items:center;gap:32px;padding:25px 32px;border-bottom:1px solid var(--line)}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}.brand{font-size:26px;font-weight:800;color:white}.brand span{color:var(--accent)}.version{margin-left:auto;font:11px monospace;letter-spacing:2px;color:var(--muted)}main{padding:32px}.intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--accent);font-weight:700}h1{font-size:clamp(30px,4vw,52px);letter-spacing:-2px;margin:10px 0}h1 em{font-style:normal;color:var(--accent)}.intro p:last-child{color:var(--muted);margin-bottom:0}.privacy{border:1px solid #35564f;border-radius:30px;padding:12px 16px;color:var(--accent);font-size:12px;white-space:nowrap}button,.button{font:inherit;font-size:12px;color:#e1edf4;border:1px solid #3b5062;background:#213142;padding:10px 12px;border-radius:7px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px}button:hover,.button:hover{background:#30475b}button:disabled{opacity:.38;cursor:default}.primary{background:var(--accent);color:#102c28;border-color:var(--accent);font-weight:700}.primary:hover{background:#a0edd7}input[type=file]{position:absolute;width:1px;height:1px;opacity:0}.button:focus-within,button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,canvas:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.filebar{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.filebar #filename{font-size:12px;color:var(--muted);margin-left:10px;flex:1;overflow-wrap:anywhere}#status{font-size:12px;color:var(--muted);min-height:20px;margin:15px 0}.workspace{display:grid;grid-template-columns:175px minmax(0,1fr) 235px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#152332}.pages,.inspector{padding:18px}.pages{border-right:1px solid var(--line)}.panel-title{display:flex;align-items:center;justify-content:space-between}h2{font-size:16px;margin:0 0 12px}.panel-title span{font-size:12px;color:var(--accent)}.hint{font-size:11px;line-height:1.65;color:var(--muted)}#pages{max-height:620px;overflow:auto}.page-item{border:1px solid var(--line);border-radius:8px;margin:12px 0;padding:8px;background:#1b2b3b}.page-item.active{border-color:var(--accent)}.page-item button{display:block;width:100%;padding:0;background:transparent;border:0}.page-item canvas{width:100%;display:block;background:white}.page-item label{font-size:11px;display:flex;align-items:center;margin-top:7px;gap:5px}.page-item input{accent-color:var(--accent)}#selection{width:100%;font-size:11px}.toolbar,.options{display:flex;gap:5px;align-items:center;flex-wrap:wrap;padding:12px;border-bottom:1px solid var(--line)}.toolbar button[aria-pressed=true]{background:var(--accent);color:#102c28}.options{font-size:10px;color:var(--muted);gap:15px;padding:8px 12px}.options label{display:flex;align-items:center;gap:6px}.options input[type=number]{width:45px}.options input[type=color]{width:28px;height:25px;padding:0;border:0}.zoom{display:flex;align-items:center;gap:8px;margin-left:auto}.zoom button{padding:2px 7px}.stage{height:650px;overflow:auto;display:flex;align-items:flex-start;justify-content:flex-start;padding:28px;background:#253442;background-image:radial-gradient(#526271 0.65px,transparent .65px);background-size:14px 14px}.stage.dragover{outline:3px dashed var(--accent);outline-offset:-8px}#empty{margin:auto;text-align:center;color:var(--muted);line-height:1.8}#empty h2{font-size:22px;color:#e5eff5;margin:20px 0 5px}.paper-icon{display:inline-block;padding:23px 17px;border:1px solid #78909f;border-radius:8px;font:bold 17px monospace;color:var(--accent);transform:rotate(-7deg)}#empty small{font-size:11px}#sheet{position:relative;margin:auto;flex:none;box-shadow:0 7px 32px #0005;line-height:0;background:white}#pdf-canvas{display:block}#overlay{position:absolute;inset:0;width:100%;height:100%;touch-action:none}.pagebar{padding:12px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted);flex-wrap:wrap}.pagebar button{font-size:10px;padding:7px}.inspector{border-left:1px solid var(--line)}.inspector>p{font-size:12px;line-height:1.7;color:var(--muted)}.inspector label{font-size:11px;display:block;margin:20px 0 8px}textarea,input[type=number]{background:#101d2a;border:1px solid #3d5262;color:#e5edf4;border-radius:5px;padding:7px;font:inherit}textarea{width:100%;resize:vertical;font-size:13px}.inspector button{width:100%;margin-top:8px;font-size:11px}.inspector input[type=range]{width:100%;accent-color:var(--accent)}.note{margin-top:25px;padding-top:20px;border-top:1px solid var(--line);font-size:12px}.note strong{color:var(--accent)}.note p{color:var(--muted);line-height:1.6}.notes{display:grid;grid-template-columns:repeat(3,1fr);gap:35px;padding-top:30px}.notes h3{font-size:14px}.notes p{font-size:12px;line-height:1.8;color:var(--muted)}footer{border-top:1px solid var(--line);padding:24px 32px;font-size:11px;color:var(--muted);display:flex;justify-content:space-between}[hidden]{display:none!important}@media(max-width:1100px){.workspace{grid-template-columns:140px minmax(0,1fr)}.inspector{grid-column:1/-1;border-left:0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:8px 20px}.inspector>*{margin:0}.inspector textarea{grid-row:3/6;grid-column:1}.inspector .note{margin-top:10px}.stage{height:550px}}@media(max-width:650px){header{padding:18px;gap:18px}.version{display:none}header>a:nth-child(2){font-size:12px;margin-left:auto}main{padding:22px 12px}.intro{display:block}.privacy{display:inline-block;margin-top:18px}.workspace{grid-template-columns:95px minmax(0,1fr)}.pages{padding:10px}.stage{padding:12px;height:470px}.toolbar button,.toolbar .button{font-size:10px;padding:8px}.options{gap:7px}.inspector{display:block}.inspector label{margin-top:12px}.notes{grid-template-columns:1fr;gap:5px}.filebar #filename{flex-basis:100%;order:4}.filebar button,.filebar .button{font-size:11px}.pagebar div{display:flex;flex-wrap:wrap;gap:4px}footer{padding:20px 12px;gap:20px}}

.select-pages{display:flex;gap:5px}.select-pages button{padding:5px 10px;font-size:11px}
#form-section{margin-top:25px;border-top:1px solid var(--line);padding-top:20px}#form-fields input:not([type=checkbox]),#form-fields select{width:100%;background:#101d2a;color:#e5edf4;border:1px solid #3d5262;border-radius:5px;padding:8px;font:inherit;font-size:12px}#form-fields input[type=checkbox]{width:20px;height:20px;accent-color:var(--accent)}#form-fields select[multiple]{min-height:85px}#form-fields label{overflow-wrap:anywhere}dialog{max-width:480px;background:#152332;color:#dbe7ef;border:1px solid #567080;border-radius:12px;padding:28px}dialog::backdrop{background:#0009}dialog p{font-size:14px;line-height:1.7}dialog>div{display:flex;gap:10px;flex-wrap:wrap}#form-section h2{margin-top:8px}.editor{min-width:0}#saved-file{color:var(--accent)}

@media(min-width:1101px){.inspector{max-height:830px;overflow:auto}}#form-section{margin-top:0;border-top:0;padding-top:0;margin-bottom:24px}


@media(min-width:651px) and (max-width:1100px){.inspector{display:block}.inspector label{margin-top:14px}}

.mask-panel{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:18px;padding:15px 18px;background:#1c2d3b;border:1px solid #557367;border-radius:9px}.mask-panel strong{color:var(--accent);font-size:13px}.mask-panel p{color:var(--muted);font-size:12px;line-height:1.6;margin:6px 0 0}.mask-panel button{flex:none;border-color:var(--accent)}#mask-dialog{max-width:600px}#mask-summary{padding-left:20px;max-height:200px;overflow:auto}#mask-summary li{margin:7px 0}@media(max-width:650px){.mask-panel{display:block}.mask-panel button{margin-top:12px;width:100%}}

body[data-active-tool=redact] .options>label,body[data-active-tool=redact] .inspector>label,body[data-active-tool=redact] #text,body[data-active-tool=redact] #update,body[data-active-tool=redact] #image-width,body[data-active-tool=redact] #resize-object,body[data-active-tool=redact] .inspector>p.hint{display:none}

.export-label{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}#export-name{width:170px;min-width:0;background:#101d2a;color:#dbe7ef;border:1px solid #3d5262;border-radius:6px;padding:9px;font:inherit;font-size:12px}.pdf-search-panel{margin:12px 0 20px;padding:14px 18px;border:1px solid var(--line);border-radius:9px;background:#152332}#pdf-search{display:flex;align-items:center;gap:7px;flex-wrap:wrap}#pdf-search label{font-size:12px;font-weight:600}#pdf-query{flex:1;min-width:160px;background:#101d2a;color:#dbe7ef;border:1px solid #3d5262;border-radius:6px;padding:9px;font:inherit;font-size:12px}#pdf-search-status{font-size:11px;color:var(--muted);line-height:1.6;margin:9px 0 0}#pdf-hits{list-style:none;padding:0;margin:0;max-height:150px;overflow:auto}#pdf-hits li{margin-top:7px}#pdf-hits button{text-align:left;width:100%;justify-content:flex-start;overflow-wrap:anywhere}#pdf-hits button[aria-current=true]{border-color:var(--accent)}.page-item.dragging{opacity:.45}.page-item.drop-before{box-shadow:0 -4px var(--accent)}.page-item.drop-after{box-shadow:0 4px var(--accent)}.page-item{cursor:grab}.mobile-panels,.return-document{display:none}.workspace{scroll-margin-top:12px}
@media(max-width:900px){
 main{padding:18px 10px}.intro{margin-bottom:20px}.intro h1{font-size:36px}.intro .eyebrow{letter-spacing:1px}.privacy{white-space:normal}.filebar{gap:7px}.filebar #filename{margin-left:0}.export-label{flex:1;min-width:180px}#export-name{width:100%}.mobile-panels{display:flex;gap:8px;margin:12px 0}.mobile-panels button[aria-expanded=true]{border-color:var(--accent);color:var(--accent)}.workspace{display:flex;flex-direction:column}.pages,.inspector{display:none;padding:14px;border:0;max-height:none}.editor{width:100%;order:1}.pages{order:0;border-bottom:1px solid var(--line)}.inspector{order:2;border-top:1px solid var(--line)}body[data-panel=pages] .pages,body[data-panel=inspector] .inspector{display:block}.return-document{display:inline-flex;margin-bottom:12px!important;width:auto!important}#pages{display:flex;gap:10px;overflow-x:auto;max-height:230px}.page-item{flex:none;width:95px;margin:7px 0}.page-item.drop-before{box-shadow:-4px 0 var(--accent)}.page-item.drop-after{box-shadow:4px 0 var(--accent)}#selection{width:auto;margin-top:8px}.stage{height:65vh;min-height:390px;max-height:700px;padding:12px}.toolbar{padding:9px;gap:6px}.toolbar button,.toolbar .button{padding:10px;font-size:12px}.options{gap:9px}.pagebar button{padding:9px;font-size:11px}.pagebar div{display:flex;flex-wrap:wrap;gap:5px}.notes{grid-template-columns:1fr;gap:8px}.pdf-search-panel{padding:12px}#pdf-search label{width:100%}#pdf-search button{padding:8px;font-size:11px}.mask-panel{padding:13px}.inspector label{margin-top:12px}.inspector textarea{width:100%}
}

.filebar #filename{flex:1 0 140px}.filebar .export-label{flex-shrink:0}

.resize-handle{position:absolute;width:30px;height:30px;padding:0;transform:translate(-50%,-50%);border:0;background:transparent;z-index:4;touch-action:none}.resize-handle::after{content:'';display:block;width:10px;height:10px;background:white;border:1px solid #178367}.resize-handle:hover{background:#81e0c433}.resize-handle[data-corner=nw],.resize-handle[data-corner=se]{cursor:nwse-resize}.resize-handle[data-corner=ne],.resize-handle[data-corner=sw]{cursor:nesw-resize}

.stage{scrollbar-gutter:stable}

#office-dialog{width:min(1080px,96vw);max-width:1080px;max-height:94vh;overflow:auto;padding:22px}.office-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.office-heading h2{font-size:24px}.office-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.office-actions label{display:flex;gap:7px;align-items:center;font-size:12px}.office-actions select,.office-actions input{background:#101d2a;color:#dbe7ef;border:1px solid #3d5262;border-radius:6px;padding:8px;font:inherit}.office-actions input{width:180px}.office-limits{padding:13px;background:#20303b;border-left:3px solid #81e0c4;color:#b6c9d5;font-size:12px!important;line-height:1.7}#office-progress{color:var(--accent);font-size:13px}#office-error{color:#ffb7a6;font-size:13px}#office-error:empty{display:none}#office-notices{color:#ffdb9c;font-size:12px;line-height:1.7}#office-preview{background:#33414e;padding:20px;max-height:65vh;overflow:auto;text-align:center;border-radius:8px}#office-canvas{width:min(100%,760px);height:auto;display:block;margin:auto;background:white;box-shadow:0 5px 20px #0005}#office-position{font-size:12px}#office-dialog>div{display:block}.office-heading{display:flex!important}.office-actions{display:flex!important}@media(max-width:650px){#office-dialog{padding:14px}.office-heading h2{font-size:19px}.office-actions{gap:7px}.office-actions button,.office-actions .button{font-size:11px}#office-preview{padding:8px}.office-actions input{width:155px}}
