[hidden]{display:none!important}.spatial-editor{margin:16px 0;border:1px solid var(--line);border-radius:14px;background:var(--canvas);overflow:hidden}.editor-toolbar{position:sticky;top:0;z-index:3}.spatial-editor{scroll-margin-top:80px}.editor-toolbar{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;padding:8px 12px;border-bottom:1px solid var(--line);background:var(--surface-soft)}.editor-toolbar>div{display:flex;align-items:center;gap:8px}.editor-tools,.editor-object-actions{flex:1 0 100%}.editor-history,.editor-navigation,.editor-zoom{order:1}.editor-history,.editor-zoom{flex:1 1 0}.editor-zoom{justify-content:flex-end}.editor-object-actions{order:3}.editor-object-actions:before{content:"Selected item";margin-inline-end:4px;color:var(--ink-faint);font-size:.8rem}.editor-object-actions button:first-child{min-width:94px}.editor-find{display:contents}.editor-toolbar button{min-width:44px;min-height:44px;padding:0 8px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font-weight:750;cursor:pointer}.editor-toolbar button:disabled{opacity:.42;cursor:not-allowed}.editor-toolbar strong,.editor-toolbar span{min-width:56px;text-align:center;font-size:.8rem}.editor-body{display:grid;grid-template-columns:112px minmax(0,1fr);height:min(82vh,860px);min-height:520px}.editor-thumbnails[hidden]{display:none}.editor-body:has(>[data-editor-thumbnails][hidden]){grid-template-columns:minmax(0,1fr)}.editor-thumbnails{display:flex;flex-direction:column;gap:8px;padding:8px;overflow:auto;border-right:1px solid var(--line);background:var(--surface-soft)}.editor-thumbnails button{display:grid;place-items:center;gap:4px;min-height:44px;padding:8px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--ink-faint);cursor:pointer}.editor-thumbnails button[aria-current=page]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-ink)}.editor-thumbnails canvas{max-width:min(86px,100%);height:auto;border:1px solid var(--line);box-shadow:var(--shadow-sm)}.editor-thumbnails button:not([data-rendered=true]) canvas{background:linear-gradient(110deg,var(--surface) 35%,var(--surface-soft) 50%,var(--surface) 65%);background-size:220% 100%;animation:editor-placeholder 1.3s linear infinite}.editor-performance-note{margin:0;padding:8px 12px;border-bottom:1px solid var(--line);background:var(--accent-soft);color:var(--accent-ink);font-size:.8rem;font-weight:700}.editor-context{position:fixed;z-index:80;display:grid;min-width:174px;padding:8px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:var(--shadow-lg)}.editor-context[hidden]{display:none}.editor-context button{min-height:44px;padding:8px 12px;border:0;border-radius:10px;background:transparent;color:var(--ink);text-align:left;font-weight:750;cursor:pointer}.editor-context button:hover,.editor-context button:focus-visible{background:var(--accent-soft);color:var(--accent-ink)}@keyframes editor-placeholder{to{background-position:-220% 0}}.editor-stage{position:relative;display:grid;align-items:start;justify-items:center;min-width:0;padding:16px;overflow:auto;overscroll-behavior:contain;background:color-mix(in srgb,var(--canvas) 82%,var(--ink) 6%);touch-action:none}.editor-stage:focus-visible{outline-offset:-3px}.editor-surface{position:relative;flex:none;background:#fff;box-shadow:var(--shadow-sm)}.editor-surface>canvas{width:100%;height:100%}.editor-objects{position:absolute;inset:0}.editor-object{position:absolute;display:grid;place-items:center;min-width:44px;min-height:44px;padding:0;border:2px solid var(--accent);background:color-mix(in srgb,var(--accent-soft) 68%,transparent);color:var(--accent-ink);font-weight:750;cursor:move;touch-action:none;transform-origin:center}.editor-object[aria-pressed=true]{outline:3px solid var(--accent);outline-offset:2px}.editor-object-content{max-width:100%;overflow:hidden;padding:4px;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}.editor-resize-handle{position:absolute;width:14px;height:14px;border:2px solid var(--surface);border-radius:3px;background:var(--accent);opacity:0;pointer-events:none;transition:opacity .12s ease}.editor-object[aria-pressed=true] .editor-resize-handle,.editor-object:hover .editor-resize-handle{opacity:1;pointer-events:auto}.editor-resize-handle:after{content:"";position:absolute;inset:-8px}.handle-nw{left:-7px;top:-7px}.handle-n{left:50%;top:-7px;transform:translate(-50%)}.handle-ne{right:-7px;top:-7px}.handle-e{right:-7px;top:50%;transform:translateY(-50%)}.handle-se{right:-7px;bottom:-7px}.handle-s{left:50%;bottom:-7px;transform:translate(-50%)}.handle-sw{left:-7px;bottom:-7px}.handle-w{left:-7px;top:50%;transform:translateY(-50%)}@media(pointer:coarse){.editor-resize-handle{width:18px;height:18px;opacity:1;pointer-events:auto}.editor-resize-handle:after{inset:-12px}.handle-nw,.handle-sw,.handle-w{left:-9px}.handle-ne,.handle-se,.handle-e{right:-9px}.handle-nw,.handle-n,.handle-ne{top:-9px}.handle-se,.handle-s,.handle-sw{bottom:-9px}}.editor-guide{position:absolute;z-index:4;pointer-events:none;background:var(--accent)}.editor-guide.vertical{top:0;bottom:0;left:50%;width:1px}.editor-guide.horizontal{left:0;right:0;top:50%;height:1px}.editor-help{display:flex;justify-content:space-between;gap:16px;padding:8px 12px;border-top:1px solid var(--line);color:var(--ink-faint);font-size:.8rem}.editor-help strong{color:var(--accent-ink)}.editor-object[data-kind=redaction]{background:#14191e73;color:#fff}.editor-object[data-kind=redaction][data-shape=ellipse]{border-radius:50%}.editor-object[data-kind=crop]{background:transparent;color:#fff;box-shadow:0 0 0 9999px #050c127a}.editor-object[data-kind=crop] .editor-object-content{padding:2px 8px;border-radius:6px;background:#050c12d1}.editor-object[data-kind=crop][data-rules=true]:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 33.1%,rgb(255 255 255/.7) 33.3% 33.7%,transparent 33.9% 66.1%,rgb(255 255 255/.7) 66.3% 66.7%,transparent 66.9%),linear-gradient(0deg,transparent 33.1%,rgb(255 255 255/.7) 33.3% 33.7%,transparent 33.9% 66.1%,rgb(255 255 255/.7) 66.3% 66.7%,transparent 66.9%);pointer-events:none}.editor-object[data-kind=page-number]{min-width:0;min-height:0;border:0;border-radius:6px;background:color-mix(in srgb,var(--accent) 90%,#000);color:var(--surface);box-shadow:var(--shadow-sm);cursor:default;pointer-events:none}.editor-object[data-kind=page-number] .editor-resize-handle{display:none}.editor-object[data-kind=page-number] .editor-object-content{font-size:clamp(.65rem,2vw,.9rem);font-variant-numeric:tabular-nums}.placement-tools{margin-top:16px;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft)}.placement-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.placement-actions .button{min-height:44px}.editor-fallback-status{margin:8px 0 0;color:var(--ink-faint);font-size:.84rem}.simple-fallback{margin-top:16px;padding:12px;border:1px solid var(--line);border-radius:14px}.simple-fallback summary{min-height:44px;cursor:pointer;color:var(--ink-soft);font-weight:750}.editor-object[data-kind=text]{background:#ffffffd1;color:#142033;text-align:left}.editor-object[data-kind=text] .editor-object-content{width:100%;height:100%;white-space:pre-wrap;overflow-wrap:anywhere;text-overflow:clip}.editor-object[data-kind=shape]{background:#2563eb14}.editor-object[data-kind=shape][data-shape=ellipse]{border-radius:50%}.editor-object[data-kind=highlight]{border-color:#d9b600;background:#fff1767a;color:#5b4b00}.editor-object[data-kind=underline]{border-width:0 0 3px;background:transparent;color:#9f2424}.editor-object[data-kind=strikethrough]{border-width:0;background:linear-gradient(transparent 46%,#d12f2f 47% 53%,transparent 54%);color:#9f2424}.editor-object[data-kind=cover]{border-color:#aab2b0;background:#fff;color:#59615f}.editor-object[data-kind=cover] .editor-object-content{visibility:hidden}.editor-object[data-kind=link]{border-style:dashed;border-color:#2563eb;background:#2563eb14;color:#174eae}.editor-object:is([data-kind=image],[data-kind=freehand]){background:#ffffffb8}.editor-object[data-kind=form-field]{min-width:24px;min-height:24px;padding:2px;border:1px solid #2563eb;background:#ffffffe0;cursor:default}.editor-object[data-kind=form-field] .editor-object-content{width:100%;height:100%;padding:0;pointer-events:auto}.editor-object[data-kind=form-field] :is(input,select,textarea):focus-visible{outline:3px solid #08745b;outline-offset:-3px}@media(pointer:coarse){.editor-help span{display:none}}.editor-object[data-kind=form-field] :is(input,select,textarea){width:100%;height:100%;min-height:0;padding:0 2px;border:0;background:#fff;color:#142033;font:inherit}.editor-object[data-kind=form-field] textarea{resize:none;line-height:1.2}.editor-object[data-kind=form-field] input[type=checkbox]{width:24px}.editor-object[data-kind=form-field] .editor-resize-handle{display:none}.number-controls{display:grid;grid-template-columns:minmax(180px,240px) minmax(0,1fr);gap:16px;align-items:center}.number-controls legend{grid-column:1/-1}.number-zone-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:8px;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft)}.number-zone-picker button{display:grid;place-items:center;min-height:48px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink-faint);cursor:pointer}.number-zone-picker button[aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-ink);box-shadow:var(--ring)}.number-zone-picker span{font-size:.8rem;font-weight:850}.number-controls output{justify-self:end;color:var(--accent-ink)}.number-controls .check-label{display:grid;grid-template-columns:44px 1fr;align-items:center;align-self:end;min-height:48px}.number-controls .check-label input{width:24px;min-height:24px;margin:0}@media(max-width:760px){.editor-toolbar{position:static;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:8px}.editor-toolbar>div{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.editor-toolbar>div,.editor-tools{grid-column:1/-1}.editor-toolbar>.editor-history{grid-column:1/3;grid-template-columns:repeat(2,minmax(0,1fr))}.editor-toolbar>.editor-zoom{grid-column:3/-1;grid-template-columns:repeat(3,minmax(0,1fr))}.editor-toolbar>.editor-navigation{order:2}.editor-navigation strong,.editor-object-actions button:first-child{grid-column:span 3}.editor-object-actions:before{content:none}.editor-toolbar button,.editor-toolbar strong,.editor-toolbar span{min-width:0}.editor-toolbar button{padding-inline:0;font-size:.92rem}.editor-body{grid-template-columns:minmax(0,1fr);height:auto;min-height:470px}.editor-thumbnails{flex-direction:row;max-width:100%;border-right:0;border-bottom:1px solid var(--line)}.editor-thumbnails button{flex:0 0 82px}.editor-thumbnails canvas{max-width:min(68px,100%);max-height:84px}.editor-stage{min-height:360px;padding:8px}.editor-help{flex-direction:column;gap:2px}.editor-object{min-width:44px;min-height:44px}.placement-actions .button{width:100%}.number-controls{grid-template-columns:1fr}.number-controls legend{grid-column:auto}.number-zone-picker{max-width:280px}}[data-edit-pdf] [hidden]{display:none!important}[data-edit-pdf].workspace{min-height:460px;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-lg)}[data-edit-pdf] .options,[data-edit-pdf] .progress,[data-edit-pdf] .result{min-height:420px;padding:24px}[data-edit-pdf] .summary{display:grid;gap:4px;padding:16px;background:var(--surface-soft)}[data-edit-pdf] .summary small,[data-edit-pdf] .note,[data-edit-pdf] .editor-status,[data-edit-pdf] fieldset small{color:var(--ink-faint)}[data-edit-pdf] .edit-layout{display:grid;grid-template-columns:minmax(250px,320px) minmax(0,1fr);gap:16px;margin-top:16px}[data-edit-pdf] .edit-tools{display:grid;max-height:720px;gap:8px;overflow:auto}[data-edit-pdf] .edit-tools fieldset{display:grid;gap:8px;margin:0;padding:12px;border:1px solid var(--line);border-radius:10px}[data-edit-pdf] .edit-tools legend{font-weight:800}[data-edit-pdf] .edit-tools input,[data-edit-pdf] .edit-tools select,[data-edit-pdf] .edit-tools textarea{min-width:0;min-height:42px;padding:8px;border:1px solid var(--control-line);border-radius:10px;background:var(--surface);color:var(--ink)}[data-edit-pdf] .grid{display:grid;grid-template-columns:1fr 4rem 4rem;gap:8px}[data-edit-pdf] .inline{display:flex;flex-wrap:wrap;gap:8px;align-items:center}[data-edit-pdf] .inline label{display:flex;gap:4px;align-items:center;min-height:24px;font-size:.8rem}[data-edit-pdf] .inline label input{min-height:0}[data-edit-pdf] .edit-tools input[type=checkbox]{width:20px;height:20px;min-height:0;margin:0;padding:0}[data-edit-pdf] .edit-tools fieldset>label{display:flex;gap:8px;align-items:center;min-height:24px}[data-edit-pdf] .mark-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}[data-edit-pdf] .mark-grid button,[data-edit-pdf] .clear-pen{min-height:42px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font-weight:700}[data-edit-pdf] .pen-pad{width:100%;height:auto;border:1px solid var(--line);border-radius:10px;background:#fff;touch-action:none}[data-edit-pdf] .process,[data-edit-pdf] .reset{width:100%;margin-top:8px}[data-edit-pdf] .progress,[data-edit-pdf] .result{display:grid;place-items:center;align-content:center;text-align:center}[data-edit-pdf] .spinner{width:46px;height:46px;border:4px solid var(--accent-soft);border-top-color:var(--accent);border-radius:50%;animation:edit-spin .8s linear infinite}@keyframes edit-spin{to{transform:rotate(360deg)}}[data-edit-pdf] .result .button{margin:4px}[data-edit-pdf] .error{margin:12px;padding:12px;color:var(--danger)}@media(max-width:1100px){[data-edit-pdf] .edit-layout{grid-template-columns:minmax(0,1fr)}[data-edit-pdf] .edit-layout>:not(.edit-tools){order:-1}[data-edit-pdf] .edit-tools{max-height:none}}@media(max-width:560px){[data-edit-pdf].workspace{padding:8px}[data-edit-pdf] .options,[data-edit-pdf] .progress,[data-edit-pdf] .result{padding:16px}[data-edit-pdf] .grid{grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr)}[data-edit-pdf] .result .button{width:100%}}.editor-tools{display:flex;flex-wrap:wrap;gap:8px}.editor-tools button{display:flex;align-items:center;gap:8px;min-width:44px;min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font-weight:750;cursor:pointer}.editor-tools button[aria-pressed=true],.editor-tools button[aria-expanded=true]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-ink)}.editor-tools button:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.editor-tool-glyph{display:flex;line-height:1}.editor-tool-label{font-size:.8rem}.editor-tools :is(.editor-tool-glyph,.editor-tool-label){min-width:0;text-align:left}@media(max-width:720px){[data-edit-pdf] .options:has(.spatial-editor),[data-redact-pdf] .options:has(.spatial-editor),[data-sign-pdf] .options:has(.spatial-editor),[data-fill-pdf-form] .options:has(.spatial-editor){padding-inline:0}.edit-layout>.spatial-editor,.edit-layout>div>.spatial-editor{margin-inline:-2px}}@media(max-width:760px){.editor-tools{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.editor-tools button{flex-direction:column;justify-content:center;gap:4px;min-height:52px;padding:4px 0}.editor-tools :is(.editor-tool-glyph,.editor-tool-label){text-align:center}.editor-tool-label{line-height:1.1;white-space:nowrap}}.editor-properties{display:grid;gap:8px;padding:12px;border-top:1px solid var(--line);background:var(--surface-soft)}.editor-properties[hidden]{display:none}.editor-properties-title{font-size:.84rem;color:var(--ink-faint)}.editor-properties-rows{display:flex;flex-wrap:wrap;gap:8px 16px}.editor-property{display:flex;align-items:center;gap:8px;font-size:.8rem;font-weight:700;color:var(--ink)}.editor-property input,.editor-property select{min-height:34px;padding:2px 8px;border:1px solid var(--control-line);border-radius:10px;background:var(--surface);color:var(--ink);font:inherit}.editor-property input[type=color]{width:44px;min-height:34px;padding:2px;cursor:pointer}.editor-property input[type=checkbox]{width:24px;height:24px;min-height:24px;accent-color:var(--accent);cursor:pointer}.editor-property input[type=number]{width:72px}.editor-property input[type=range]{width:104px;accent-color:var(--accent)}@media(max-width:720px){.editor-properties-rows{gap:8px 8px}.editor-property input[type=range]{width:84px}}.editor-find-panel{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px;padding:8px 16px;border-block-end:1px solid var(--editor-border,#d8dee6);background:var(--editor-chrome,#f7f9fb)}.editor-find-panel[hidden]{display:none}.editor-find-panel label{display:flex;flex-direction:column;gap:4px;font-size:.84rem;font-weight:600}.editor-find-panel input[type=text]{min-width:150px;padding:8px;border:1px solid var(--editor-border,#d8dee6);border-radius:6px;font:inherit}.editor-find-panel .editor-find-case{flex-direction:row;align-items:center;gap:8px;font-weight:500;padding-block-end:8px}.editor-find-panel output{flex:1 1 100%;font-size:.84rem;min-height:1.2em}@media(max-width:560px){.editor-find-panel{flex-direction:column;align-items:stretch}.editor-find-panel input[type=text]{min-width:0;width:100%}}.editor-cover-warning{margin:0;padding:12px 16px;border-block-end:1px solid #e0b44a;background:#fdf6e3;color:#4a3a10;font-size:.84rem;line-height:1.45}.editor-cover-warning[hidden]{display:none}.editor-cover-warning>p{margin:0 0 8px}.editor-cover-warning strong{font-weight:650}.editor-flatten{display:flex;gap:8px;align-items:flex-start;cursor:pointer;padding:8px;border:1px solid #e0b44a;border-radius:10px;background:#fffdf6}.editor-flatten input{margin:2px 0 0;flex:none;width:16px;height:16px;accent-color:#8a6a12}.editor-flatten span{display:block;min-width:0}.editor-flatten strong{display:block;margin-block-end:2px}@media(prefers-color-scheme:dark){.editor-cover-warning{background:#33280c;border-block-end-color:#7a5f1c;color:#f2e2b6}.editor-flatten{background:#3d3010;border-color:#7a5f1c}}.spatial-editor input[type=file],.workspace input[type=file]{max-width:100%;font:inherit;font-size:.84rem;color:var(--ink-faint)}.spatial-editor input[type=file]::file-selector-button,.workspace input[type=file]::file-selector-button{margin-inline-end:8px;padding:8px 12px;border:1px solid var(--control-line);border-radius:10px;background:var(--surface);color:var(--ink);font:inherit;font-size:.84rem;font-weight:600;cursor:pointer}.spatial-editor input[type=file]:focus-visible::file-selector-button,.workspace input[type=file]:focus-visible::file-selector-button{outline:2px solid currentColor;outline-offset:2px}.workspace select{max-width:100%;min-width:9rem}@media(min-width:900px){[data-sign-pdf] .options:not([hidden]){display:grid;grid-template-columns:clamp(260px,26vw,340px) minmax(0,1fr);gap:16px;align-items:start}[data-sign-pdf] .options>#sign-spatial-editor{grid-column:2;grid-row:1/-1;min-width:0}[data-sign-pdf] .options>*:not(#sign-spatial-editor){grid-column:1;min-width:0}}@media(max-width:899px){[data-sign-pdf] .options:not([hidden]){display:flex;flex-direction:column}[data-sign-pdf] .options>#sign-spatial-editor{order:-1}}.editor-marquee{position:absolute;z-index:5;border:1px dashed #fff;background:#14191e59;box-shadow:0 0 0 1px #14191ecc;pointer-events:none}[data-redact-pdf].workspace{min-height:460px;padding:16px}[data-redact-pdf] .options,[data-redact-pdf] .progress,[data-redact-pdf] .result{min-height:420px;padding:24px}[data-redact-pdf] .summary{display:grid;gap:4px;padding:16px;border-radius:14px;background:var(--surface-soft)}[data-redact-pdf] .summary small,[data-redact-pdf] .redact-status{color:var(--ink-faint)}[data-redact-pdf] .redact-status{margin:16px 0 8px;font-size:.84rem}[data-redact-pdf] .note{margin-top:16px;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft);color:var(--ink-soft);font-size:.84rem;line-height:1.55}[data-redact-pdf] .note strong{color:var(--ink)}[data-redact-pdf] .flatten-all{display:flex;gap:8px;align-items:flex-start;margin-top:16px;color:var(--ink-soft);font-size:.84rem;font-weight:400;line-height:1.5}[data-redact-pdf] .flatten-all input{flex:none;width:24px;height:24px;margin-top:1px;padding:0}[data-redact-pdf] .reset{width:100%;margin-top:8px}[data-redact-pdf] .progress,[data-redact-pdf] .result{display:grid;margin-top:0;padding-top:24px;border-top:0;place-items:center;align-content:center;text-align:center}[data-redact-pdf] .spinner{width:46px;height:46px;border:4px solid var(--accent-soft);border-top-color:var(--accent);border-radius:50%;animation:redact-spin .8s linear infinite}@keyframes redact-spin{to{transform:rotate(360deg)}}[data-redact-pdf] .result-verdict{max-width:58ch;margin:0 auto 8px;color:var(--ink-soft);font-size:.84rem;line-height:1.55}[data-redact-pdf] .result .button{margin:4px}[data-redact-pdf] .error{margin:12px 0 0;padding:12px;color:var(--danger)}@media(max-width:560px){[data-redact-pdf].workspace{padding:8px}[data-redact-pdf] .options,[data-redact-pdf] .progress,[data-redact-pdf] .result{padding:16px}[data-redact-pdf] .result .button{width:100%}}[data-reserve][hidden]:not([data-editor-off]){display:grid!important;place-items:center;min-height:940px;background:var(--surface-soft);color:var(--ink-soft)}[data-reserve][hidden]:not([data-editor-off]):before{content:"Preparing the page preview\2026"}[data-reserve][hidden]:not([data-editor-off])>*{display:none!important}input.image-file{width:100%;min-height:44px;padding:4px;border:1px dashed var(--control-line);border-radius:10px;color:var(--ink-soft);font-size:.8rem}input.image-file::file-selector-button{min-height:36px;margin-right:8px;padding:0 12px;border:1px solid var(--control-line);border-radius:6px;background:var(--surface);color:var(--ink);font:inherit;font-weight:700;cursor:pointer}
