/* PDFCloudy Visual PDF Editor */
:root{--pc-blue:#1677B8;--pc-blue-dark:#105f94;--pc-red:#e74848;--pc-ink:#202735;--pc-muted:#667085;--pc-line:#d9e0e7;--pc-bg:#eef2f5;--pc-green:#2a9d66;--pc-white:#fff;--shadow:0 10px 30px rgba(35,54,73,.12)}
*{box-sizing:border-box}.is-hidden{display:none!important}.pc-btn,.icon-btn,.tool,.small-action,.bottom-controls button{font:inherit;cursor:pointer;border:0}.pc-btn{border-radius:8px;padding:10px 17px;font-weight:700}.pc-btn-primary{background:var(--pc-blue);color:white;box-shadow:0 3px 8px rgba(22,119,184,.24)}.pc-btn-primary:hover{background:var(--pc-blue-dark)}.pc-btn-primary:disabled{opacity:.45;cursor:not-allowed}.pc-btn-light{background:#fff;color:#44515f;border:1px solid #cfd7df}.pc-btn-big{padding:14px 30px;font-size:16px}.icon-btn{width:40px;height:40px;border:1px solid #d7dee5;background:white;border-radius:8px;font-size:20px;color:#5a6673}.editor-app{min-height:650px;background:var(--pc-bg)}.editor-welcome{min-height:650px;display:grid;place-items:center;padding:44px 20px;background:radial-gradient(circle at 50% 20%,#fff 0,#f8fbfd 36%,#edf2f5 100%)}.welcome-card{text-align:center;max-width:760px}.cloud-mark{display:grid;place-items:center;margin-bottom:6px;filter:drop-shadow(0 8px 14px rgba(22,119,184,.16))}.cloud-mark img{display:block;width:114px;height:auto}.welcome-card h1{font-size:44px;line-height:1.12;margin:14px 0}.welcome-card>p{font-size:17px;line-height:1.7;color:#606e7c;margin:0 auto 24px;max-width:690px}.drop-note{font-size:13px!important;margin:10px 0 18px!important}.privacy-chip{display:inline-block;padding:9px 13px;border-radius:999px;background:#e7f5ee;color:#237a53;font-size:12px;font-weight:600}.workspace{display:grid;grid-template-columns:195px minmax(0,1fr);height:calc(100vh - 72px);min-height:650px}.pages-panel{background:#fff;border-right:1px solid var(--pc-line);display:flex;flex-direction:column;min-width:0}.pages-head{height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;border-bottom:1px solid var(--pc-line);font-size:13px}.pages-head span{background:#edf3f7;border-radius:999px;padding:2px 8px}.thumbs{flex:1;overflow:auto;padding:12px}.thumb-card{position:relative;background:#f7f9fb;border:2px solid transparent;border-radius:7px;padding:7px;margin-bottom:12px;cursor:pointer;transition:.15s}.thumb-card.active{border-color:var(--pc-blue);background:#eef7fd}.thumb-card canvas{display:block;max-width:100%;margin:auto;background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.12)}.thumb-number{font-size:11px;text-align:center;color:#66717e;margin-top:5px}.page-actions{border-top:1px solid var(--pc-line);padding:8px;display:grid;grid-template-columns:1fr 1fr;gap:6px;background:#fafbfc}.small-action{font-size:10px;min-height:32px;border:1px solid #d6dde4;border-radius:6px;background:#fff;color:#425160}.small-action:hover{border-color:var(--pc-blue);color:var(--pc-blue)}.small-action.danger:hover{border-color:#d64545;color:#d64545}.main-stage{min-width:0;display:grid;grid-template-rows:auto auto 1fr auto;overflow:hidden}.tool-ribbon{height:64px;background:white;border-bottom:1px solid var(--pc-line);display:flex;align-items:stretch;justify-content:center;overflow-x:auto;padding:0 8px}.tool{min-width:73px;padding:6px 8px;background:white;color:#56616d;font-size:9px;border-bottom:3px solid transparent}.tool span{display:block;font-size:22px;height:29px;color:#536a7b}.tool:hover,.tool.active{color:var(--pc-blue);background:#f7fbfe;border-bottom-color:var(--pc-blue)}.tool.active span{color:var(--pc-blue)}.context-bar{min-height:43px;background:#fbfcfd;border-bottom:1px solid var(--pc-line);display:flex;align-items:center;justify-content:center;gap:14px;padding:5px 12px;font-size:12px;color:#687480}.context-controls{display:flex;align-items:center;gap:7px}.context-controls input,.context-controls select{height:29px;border:1px solid #ccd5de;border-radius:5px;background:white;padding:3px 7px}.context-controls input[type=color]{width:34px;padding:2px}.context-controls input[type=number]{width:65px}.canvas-scroller{overflow:auto;padding:34px;background:#e8edf1;display:flex;align-items:flex-start;justify-content:center}.page-wrap{position:relative;box-shadow:0 3px 13px rgba(0,0,0,.18);background:#fff;transform-origin:top center}.page-wrap>canvas{display:block;background:#fff}.overlay-layer{position:absolute;inset:0;overflow:hidden;touch-action:none}.overlay-item{position:absolute;min-width:24px;min-height:18px;border:1px dashed transparent;user-select:none;cursor:move}.overlay-item.selected{border-color:var(--pc-blue)}.overlay-item.text-item{padding:2px 4px;white-space:pre-wrap;line-height:1.15;background:transparent}.overlay-item.whiteout-item{background:#fff;border:1px solid transparent}.overlay-item.whiteout-item.selected{border-color:var(--pc-blue)}.overlay-item.highlight-item{background:rgba(255,221,55,.42);border-color:rgba(200,160,0,.28)}.overlay-item.shape-item{background:transparent;border:2px solid var(--shape-color,#1677B8)}.overlay-item.circle-item{border-radius:50%}.overlay-item.line-item{height:2px!important;min-height:2px;border:0;background:var(--shape-color,#1677B8);transform-origin:left center}.overlay-item.image-item img,.overlay-item.signature-item img{width:100%;height:100%;object-fit:contain;pointer-events:none}.overlay-item.signature-item{font-family:cursive;font-size:28px}.overlay-item.link-item{color:#1267ad;text-decoration:underline;background:rgba(230,245,255,.4);padding:2px}.overlay-item.form-item{border:1px solid #8492a0;background:#fff;padding:5px 7px;color:#8995a0}.resize-handle{position:absolute;right:-5px;bottom:-5px;width:10px;height:10px;border-radius:2px;background:var(--pc-blue);cursor:nwse-resize}.delete-handle{position:absolute;right:-10px;top:-11px;width:20px;height:20px;border-radius:50%;background:#cf3e3e;color:#fff;border:0;font-size:12px;line-height:20px;text-align:center;cursor:pointer;display:none}.overlay-item.selected .delete-handle{display:block}.freehand-svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.bottom-controls{height:40px;background:#fff;border-top:1px solid var(--pc-line);display:flex;align-items:center;justify-content:center;gap:7px;font-size:11px;color:#687480}.bottom-controls button{width:26px;height:26px;border:1px solid #d3dae1;border-radius:5px;background:#fff}.save-note{position:absolute;right:22px}.editor-guide{padding:70px 20px 30px}.eyebrow{font-size:12px;font-weight:800;letter-spacing:1.2px;color:var(--pc-blue)}.guide-intro h2,.more-tools h2{font-size:34px;margin:8px 0 10px}.guide-intro p{font-size:16px;color:#65717e;max-width:760px;line-height:1.7}.guide-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:30px 0}.guide-grid article{padding:22px;border:1px solid #e0e6eb;border-radius:14px;background:#fff}.guide-grid strong{width:35px;height:35px;display:grid;place-items:center;background:#eaf4fb;color:var(--pc-blue);border-radius:50%}.guide-grid h3{font-size:16px;margin:14px 0 7px}.guide-grid p{font-size:13px;line-height:1.6;color:#687480}.feature-table{background:#f8fafb;border-radius:14px;padding:24px;margin-top:20px}.feature-table h2{font-size:22px;margin:0 0 14px}.feature-list{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.feature-list span{font-size:13px;color:#45525e}.accuracy-note{margin:18px 0;border-left:4px solid #e3aa25;background:#fff8e6;padding:14px 16px;font-size:13px;line-height:1.6}.more-tools{padding:40px 20px 75px}.section-head{display:flex;justify-content:space-between;align-items:end}.section-head a{color:var(--pc-blue)}.quick-tools{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.quick-tools a{display:flex;flex-direction:column;gap:5px;padding:18px;border:1px solid #e0e6eb;border-radius:12px;text-decoration:none;color:#28323c}.quick-tools a:hover{border-color:#8fc2e3;box-shadow:var(--shadow)}.quick-tools span{font-size:12px;color:#74808b}.pc-dialog{width:min(560px,calc(100% - 30px));border:0;border-radius:14px;padding:24px;box-shadow:0 24px 80px rgba(0,0,0,.28)}.pc-dialog::backdrop{background:rgba(25,35,45,.48)}.pc-dialog h2{margin:0 0 20px}.dialog-close{position:absolute;right:15px;top:12px;border:0;background:none;font-size:25px;cursor:pointer}.pc-dialog label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;margin:12px 0}.pc-dialog input{height:42px;border:1px solid #cfd8e0;border-radius:7px;padding:0 11px;font:inherit}.tabs{display:flex;border-bottom:1px solid #dde3e8;margin-bottom:16px}.tab{padding:9px 16px;border:0;background:#fff;cursor:pointer;border-bottom:3px solid transparent}.tab.active{color:var(--pc-blue);border-bottom-color:var(--pc-blue)}.signature-preview{height:100px;display:grid;place-items:center;border:1px dashed #b9c5ce;border-radius:8px;font-family:cursive;font-size:36px;color:#223}.sign-pane canvas{width:100%;height:auto;border:1px solid #cfd8e0;border-radius:8px;background:#fff}.upload-box{height:100px!important;display:grid!important;place-items:center;border:2px dashed #b9c5ce;border-radius:8px;color:var(--pc-blue);cursor:pointer}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.dialog-help{font-size:12px;color:#6f7b87;line-height:1.6}.toast{position:fixed;left:50%;bottom:28px;z-index:3000;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#253340;color:#fff;border-radius:8px;padding:10px 16px;font-size:12px;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}.drop-active::after{content:'Drop PDF to open';position:fixed;inset:12px;z-index:5000;display:grid;place-items:center;border:4px dashed var(--pc-blue);border-radius:18px;background:rgba(235,247,255,.94);font-size:30px;font-weight:800;color:var(--pc-blue)}
@media(max-width:900px){.save-note{display:none}.workspace{grid-template-columns:125px 1fr}.pages-panel{font-size:10px}.page-actions{grid-template-columns:1fr}.tool{min-width:63px}.guide-grid{grid-template-columns:1fr 1fr}.feature-list,.quick-tools{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.editor-topbar .top-actions .icon-btn{display:none}.top-actions .pc-btn{padding:8px 10px;font-size:11px}.workspace{grid-template-columns:1fr;height:auto}.pages-panel{display:none}.main-stage{height:calc(100vh - 118px)}.canvas-scroller{padding:18px 8px}.welcome-card h1{font-size:34px}.guide-grid,.feature-list,.quick-tools{grid-template-columns:1fr}.guide-intro h2,.more-tools h2{font-size:28px}.tool-ribbon{justify-content:flex-start}.context-bar{justify-content:flex-start;overflow:auto}.section-head{align-items:flex-start;gap:10px;flex-direction:column}}

/* Integrated homepage mode: preserves the original PDFCloudy header and colorful tool grid. */
.editor-local-toolbar{background:#fff;border-bottom:1px solid #e6eaf0;position:relative;z-index:10}
.editor-local-toolbar-inner{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:8px;padding-bottom:8px}
.editor-local-toolbar-inner>div:first-child{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.editor-local-toolbar-inner strong{font-size:16px;color:#1b2430}.editor-local-toolbar-inner span{font-size:12px;color:#667085}
.editor-local-actions{display:flex;align-items:center;gap:8px}
.pdfcloudy-editor-shell{border-bottom:1px solid #e6eaf0}
.pdfcloudy-editor-shell.editor-app{min-height:560px}
.pdfcloudy-editor-shell .editor-welcome{min-height:560px}
.pdfcloudy-editor-shell .workspace{height:calc(100vh - 162px);min-height:620px}
.editor-guide{background:transparent}
@media(max-width:760px){.editor-local-toolbar-inner{align-items:flex-start;flex-direction:column}.editor-local-actions{width:100%;overflow-x:auto;padding-bottom:2px}.pdfcloudy-editor-shell .workspace{height:auto}.pdfcloudy-editor-shell .main-stage{height:calc(100vh - 150px)}}

/* Editor reliability update v3 */
.overlay-item.editing-text{cursor:text!important;outline:2px solid rgba(22,119,184,.25);overflow:visible;white-space:pre-wrap;user-select:text}
.overlay-item.text-item{overflow:hidden;word-break:break-word}
.drawing-preview{pointer-events:none!important}
.freehand-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
#annotateControls select{min-width:92px}
.overlay-layer[data-tool="text"]{cursor:text}

.engine-status{min-height:20px;margin-top:10px;font-size:12px;color:#28794f;font-weight:700}.engine-status.error{color:#b42318}.pc-btn:disabled{opacity:.62;cursor:not-allowed}

/* PDFCloudy editor interaction upgrade v6 */
.main-stage{position:relative}
.overlay-item{overflow:visible}
.overlay-content{width:100%;height:100%;box-sizing:border-box;position:relative;z-index:1}
.overlay-item.text-item .overlay-content{padding:2px 4px;white-space:pre-wrap;line-height:1.15;background:transparent;overflow:hidden;word-break:break-word;cursor:text}
.overlay-item.text-item{padding:0;background:transparent}
.overlay-item.link-item{background:transparent!important;border-color:transparent;color:#1267ad;text-decoration:underline;padding:0}
.overlay-item.link-item .overlay-content{padding:2px 4px;background:transparent}
.overlay-item.link-item.selected{border-color:var(--pc-blue)}
.overlay-item.image-item .overlay-content,.overlay-item.signature-item .overlay-content{width:100%;height:100%}
.overlay-item.image-item img,.overlay-item.signature-item img{width:100%;height:100%;object-fit:contain;pointer-events:none;display:block}
.overlay-item.form-item{background:#fff;border:1px solid #8492a0;padding:0;display:flex;align-items:center}
.overlay-item.form-item .overlay-content{padding:5px 7px;color:#4c5965;display:flex;align-items:center;font-size:12px;overflow:hidden}
.overlay-item.form-checkbox,.overlay-item.form-radio{background:transparent;border-color:transparent}
.overlay-item.form-signature .overlay-content{font-family:cursive;color:#5a6570}
.overlay-item.shape-item,.overlay-item.annotation-line-item{border:1px dashed transparent;background:transparent!important}
.overlay-item.shape-item.selected,.overlay-item.annotation-line-item.selected{border-color:var(--pc-blue)}
.shape-svg,.annotation-svg{width:100%;height:100%;display:block;overflow:visible;pointer-events:none}
.resize-handle,.delete-handle{display:none}
.overlay-item.selected .resize-handle{display:block}
.overlay-item.selected .delete-handle{display:block}
.resize-handle{right:-6px;bottom:-6px;width:12px;height:12px;border:2px solid #fff;box-shadow:0 0 0 1px var(--pc-blue);border-radius:2px;background:var(--pc-blue)}
.delete-handle{right:-11px;top:-12px;width:22px;height:22px;font-size:16px;line-height:19px;box-shadow:0 1px 5px rgba(0,0,0,.18)}
.overlay-item.selected:before,.overlay-item.selected:after{content:"";position:absolute;width:8px;height:8px;background:#fff;border:2px solid var(--pc-blue);z-index:6;pointer-events:none}
.overlay-item.selected:before{left:-5px;top:-5px}.overlay-item.selected:after{right:-5px;bottom:-5px}
.overlay-item.editing-text:before,.overlay-item.editing-text:after{display:none}
.overlay-item.editing-text .resize-handle,.overlay-item.editing-text .delete-handle{display:none}

.object-toolbar{position:absolute;z-index:80;min-height:44px;display:flex;align-items:center;gap:0;background:#fff;border:1px solid #1787e8;border-radius:7px;box-shadow:0 6px 22px rgba(15,50,80,.18);overflow:hidden;white-space:nowrap}
.object-toolbar.is-hidden{display:none!important}
.object-toolbar button,.object-toolbar select,.object-toolbar input{height:42px;border:0;border-right:1px solid #1787e8;background:#fff;color:#087de0;font:inherit;box-sizing:border-box}
.object-toolbar button{min-width:46px;padding:0 12px;font-size:21px;cursor:pointer}
.object-toolbar button:hover,.object-toolbar button.active{background:#eaf5ff}
.object-toolbar .obj-size{width:62px;padding:0 8px;color:#1e2b37;font-size:14px}
.object-toolbar .obj-font{width:78px;padding:0 8px;color:#1e2b37;font-size:14px}
.object-toolbar .obj-color{width:50px;padding:8px;background:#fff}
.object-toolbar>*:last-child{border-right:0}

.tool-popup{position:absolute;z-index:120;top:62px;left:225px;width:min(470px,calc(100% - 20px));background:#fff;border:1px solid #d5dde5;border-radius:7px;box-shadow:0 14px 34px rgba(23,42,58,.2);overflow:hidden}
.tool-popup.is-hidden{display:none!important}
.tool-popup-title{padding:11px 16px;background:#f4f4f4;font-size:12px;letter-spacing:.3px;color:#303943}
.symbol-row{display:grid;grid-template-columns:repeat(3,1fr);padding:8px 14px}
.symbol-row button{height:52px;border:0;background:#fff;font-size:30px;cursor:pointer}
.symbol-row button:hover{background:#eef7fd;color:var(--pc-blue)}
.form-options-grid{display:grid;grid-template-columns:1fr 1fr;gap:0;padding:8px 10px 14px}
.form-options-grid button{display:flex;align-items:center;gap:10px;min-height:48px;border:0;background:#fff;text-align:left;padding:8px 10px;font-size:21px;cursor:pointer}
.form-options-grid button span{font-size:14px;color:#1e2b37}
.form-options-grid button:hover{background:#eef7fd;color:var(--pc-blue)}

.brush-size-control{display:flex!important;flex-direction:row!important;align-items:center;gap:6px;margin:0!important;font-size:11px!important;font-weight:700!important;color:#53616e}
.brush-size-control input[type=range]{width:90px;height:auto;padding:0;border:0;accent-color:var(--pc-blue)}
.brush-size-control span{min-width:18px;text-align:center;color:#24313e}
#shapeControls select{min-width:112px}
#annotateControls select{min-width:125px}

.overlay-item.underline-item,.overlay-item.strikeout-item,.overlay-item.squiggly-item{min-height:18px}
.overlay-item.highlight-item{background:rgba(255,221,55,.34);border-color:transparent}
.overlay-item.highlight-item.selected{border-color:var(--pc-blue)}
.drawing-preview{pointer-events:none!important;z-index:15}
.freehand-svg{z-index:2}

@media(max-width:760px){
  .tool-popup{left:8px;right:8px;width:auto;top:62px}
  .object-toolbar{max-width:calc(100% - 8px);overflow-x:auto}
  .object-toolbar button{min-width:40px;padding:0 9px}
  .context-controls{min-width:max-content}
}


/* PDFCloudy editor interaction upgrade v7: editable text + real move/resize controls */
.overlay-item.selected:before,.overlay-item.selected:after{display:none!important}
.resize-handle{position:absolute;display:none!important;width:12px;height:12px;background:#fff;border:2px solid var(--pc-blue);box-shadow:0 1px 3px rgba(0,0,0,.16);border-radius:2px;z-index:10}
.overlay-item.selected .resize-handle{display:block!important}
.overlay-item.editing-text .resize-handle{display:none!important}
.resize-nw{left:-7px;top:-7px;right:auto;bottom:auto;cursor:nwse-resize}
.resize-ne{right:-7px;top:-7px;left:auto;bottom:auto;cursor:nesw-resize}
.resize-sw{left:-7px;bottom:-7px;right:auto;top:auto;cursor:nesw-resize}
.resize-se{right:-7px;bottom:-7px;left:auto;top:auto;cursor:nwse-resize;background:var(--pc-blue)}
.overlay-item.text-item .overlay-content[contenteditable="true"]{outline:0;cursor:text;user-select:text;min-width:100%;min-height:100%;overflow:auto}
.object-toolbar [data-obj="move"]{cursor:move;touch-action:none}
.object-toolbar [data-obj="move"].dragging{background:#dcefff;color:#075f9d}
.overlay-item.selected{touch-action:none}

/* v8 form editor */
.overlay-item.form-item{padding:0;background:rgba(255,255,255,.96);color:#334155;border:1px solid #7f8c99;overflow:visible}
.overlay-item.form-item .overlay-content{width:100%;height:100%;display:flex;align-items:center;position:relative;overflow:hidden}
.form-preview{width:100%;height:100%;display:flex;align-items:center;gap:8px;padding:4px 8px;background:#fff;color:#475569;font-size:13px;line-height:1.2;pointer-events:none}
.form-preview .form-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.form-preview-text,.form-preview-multiline,.form-preview-dropdown,.form-preview-signature{border:1px solid #97a6b4;background:#fff}
.form-preview-multiline{align-items:flex-start;padding-top:7px}
.form-preview-dropdown::after{content:'▾';margin-left:auto;color:#475569}
.form-preview-checkbox,.form-preview-radio{border:0;background:transparent;padding-left:4px}
.form-control-glyph{display:inline-grid;place-items:center;flex:0 0 auto;width:18px;height:18px;border:1.5px solid #52606d;background:#fff;color:#1677b8;font-weight:800}
.form-preview-radio .form-control-glyph{border-radius:50%}
.form-preview-radio .form-control-glyph::after{content:'';width:8px;height:8px;border-radius:50%;background:#1677b8;opacity:0}
.form-preview-radio.is-checked .form-control-glyph::after{opacity:1}
.form-preview-checkbox.is-checked .form-control-glyph::after{content:'✓';font-size:14px;line-height:1}
.form-preview-signature{font-style:italic;color:#64748b}
.form-preview-signature::before{content:'✍';margin-right:5px}
.object-toolbar [data-obj="formedit"]{font-size:16px;font-weight:700}
.pc-dialog textarea{width:100%;border:1px solid #cfd8e0;border-radius:7px;padding:9px 11px;font:inherit;resize:vertical;min-height:92px}
.form-check-row{flex-direction:row!important;align-items:center!important;gap:9px!important;font-weight:600!important}
.form-check-row input{width:18px!important;height:18px!important;margin:0!important}
.form-type-label{margin-top:-10px;margin-bottom:6px;color:#1677b8;font-weight:700}

/* v9 form labels: visible in editor, while field names remain internal PDF identifiers */
.overlay-item.form-item,.overlay-item.form-item .overlay-content{overflow:visible!important}
.form-visible-label{position:absolute;left:0;bottom:calc(100% + 4px);max-width:100%;font-size:12px;font-weight:700;line-height:1.15;color:#263746;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
.form-visible-label::first-letter{color:inherit}


/* v11 handwritten/type/upload signatures inside Form > Signature box */
.form-preview-signature{overflow:hidden;justify-content:center}
.form-preview-signature::before{content:''}
.form-signature-image{display:block;max-width:100%;max-height:100%;object-fit:contain;pointer-events:none}
.form-signature-text{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:cursive;font-size:24px;line-height:1;text-align:center;color:#111}
.object-toolbar [data-obj="signfield"]{font-size:14px;font-weight:700;white-space:nowrap}


/* v12 continuous page scrolling */
.canvas-scroller{display:block!important;overflow:auto!important;padding:28px 24px 60px!important;scroll-behavior:smooth;overscroll-behavior:contain}
.pages-stack{width:100%;min-height:100%;display:flex;flex-direction:column;align-items:center;gap:30px}
.continuous-page-slot{position:relative;width:100%;display:flex;flex-direction:column;align-items:center;padding:10px 16px 28px;border-radius:12px;transition:background .15s ease,box-shadow .15s ease;scroll-margin:80px 0}
.continuous-page-slot.active{background:rgba(22,119,184,.055);box-shadow:inset 0 0 0 1px rgba(22,119,184,.18)}
.continuous-page-slot:not(.active){cursor:pointer}
.continuous-page-slot:not(.active):hover{background:rgba(255,255,255,.42)}
.static-page-wrap{position:relative;background:#fff;box-shadow:0 3px 13px rgba(0,0,0,.18);flex:none}
.static-page-canvas{display:block;width:100%;height:100%;background:#fff}
.continuous-page-label{margin-top:8px;padding:4px 10px;border-radius:999px;background:#fff;color:#667085;font-size:11px;font-weight:700;box-shadow:0 1px 4px rgba(0,0,0,.08);user-select:none}
.continuous-page-slot.active .continuous-page-label{color:var(--pc-blue);background:#eef7fd}
.page-wrap{flex:none}
.form-preview-signature:not(:has(.form-signature-image)):not(:has(.form-signature-text)){color:#1677b8;font-weight:700;background:#f7fbfe}
@media(max-width:650px){.canvas-scroller{padding:16px 4px 44px!important}.continuous-page-slot{padding-left:4px;padding-right:4px;gap:8px}}


/* v13: keep navigation inside the PDF workspace + larger accessible editor toolbar */
.tool-ribbon{
  height:82px!important;
  min-height:82px!important;
  flex:0 0 82px;
  background:#fff!important;
  border-top:1px solid #e4eaf0;
  border-bottom:2px solid #dbe4ec!important;
  box-shadow:0 2px 8px rgba(27,36,48,.06);
  position:relative;
  z-index:45;
  padding:0 10px!important;
  overflow-x:auto;
  overflow-y:hidden;
}
.tool{
  min-width:94px!important;
  min-height:80px!important;
  padding:9px 12px 8px!important;
  color:#334155!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:1.18!important;
  border-bottom-width:4px!important;
  background:#fff!important;
}
.tool span{
  display:block!important;
  height:38px!important;
  line-height:36px!important;
  font-size:28px!important;
  color:#36566d!important;
  font-weight:700!important;
}
.tool:hover{
  color:#0b6cae!important;
  background:#f1f8fd!important;
}
.tool.active{
  color:#0b6cae!important;
  background:#eaf5fc!important;
  border-bottom-color:#1677B8!important;
}
.tool.active span{color:#1677B8!important;}
.context-bar{
  min-height:50px!important;
  font-size:13px!important;
  line-height:1.35!important;
  color:#52606d!important;
  background:#fbfdff!important;
  position:relative;
  z-index:42;
}
.context-controls input,.context-controls select{
  min-height:34px!important;
  font-size:13px!important;
}
.canvas-scroller{scroll-behavior:auto;overscroll-behavior:contain;}

@media(max-width:900px){
  .tool-ribbon{height:78px!important;min-height:78px!important;flex-basis:78px;justify-content:flex-start!important;}
  .tool{min-width:86px!important;min-height:76px!important;font-size:11px!important;padding:8px 9px!important;}
  .tool span{font-size:26px!important;height:35px!important;line-height:33px!important;}
}
@media(max-width:650px){
  .tool-ribbon{height:76px!important;min-height:76px!important;flex-basis:76px;}
  .tool{min-width:82px!important;min-height:74px!important;font-size:11px!important;}
  .tool span{font-size:25px!important;}
  .context-bar{min-height:46px!important;font-size:12px!important;}
}

/* v14: true editor mode — keep all controls visible while only the PDF pages scroll */
html.pdf-editor-active,
body.pdf-editor-active{
  height:100%!important;
  overflow:hidden!important;
}
body.pdf-editor-active{
  overscroll-behavior:none;
}
body.pdf-editor-active .editor-local-toolbar{
  position:relative!important;
  top:auto!important;
  z-index:90!important;
  background:#fff!important;
  box-shadow:0 1px 6px rgba(27,36,48,.06);
}
body.pdf-editor-active .pdfcloudy-editor-shell{
  min-height:0!important;
}
body.pdf-editor-active .pdfcloudy-editor-shell .workspace{
  height:calc(100vh - 136px)!important;
  min-height:0!important;
  overflow:hidden!important;
}
body.pdf-editor-active .main-stage{
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  grid-template-rows:94px 54px minmax(0,1fr) 42px!important;
}
body.pdf-editor-active .pages-panel{
  min-height:0!important;
  overflow:hidden!important;
}
body.pdf-editor-active .thumbs{
  min-height:0!important;
}
body.pdf-editor-active .canvas-scroller{
  min-height:0!important;
  height:auto!important;
  overflow:auto!important;
}

/* larger, clearer controls for easier use */
.tool-ribbon{
  height:94px!important;
  min-height:94px!important;
  flex:0 0 94px!important;
  align-items:stretch!important;
  justify-content:center!important;
  background:#fff!important;
  padding:0 12px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
}
.tool{
  min-width:102px!important;
  min-height:92px!important;
  padding:10px 13px 9px!important;
  font-size:13px!important;
  font-weight:750!important;
  line-height:1.15!important;
  color:#2f4354!important;
}
.tool span{
  height:43px!important;
  line-height:41px!important;
  font-size:31px!important;
  color:#36566d!important;
}
.context-bar{
  min-height:54px!important;
  height:54px!important;
  padding:7px 14px!important;
  font-size:14px!important;
  font-weight:600!important;
  color:#52606d!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  white-space:nowrap;
}
.context-controls input,.context-controls select{
  min-height:36px!important;
  font-size:14px!important;
}

@media(max-width:900px){
  body.pdf-editor-active .pdfcloudy-editor-shell .workspace{height:calc(100vh - 132px)!important;}
  body.pdf-editor-active .main-stage{grid-template-rows:88px 52px minmax(0,1fr) 40px!important;}
  .tool-ribbon{height:88px!important;min-height:88px!important;flex-basis:88px!important;justify-content:flex-start!important;}
  .tool{min-width:94px!important;min-height:86px!important;font-size:12px!important;}
  .tool span{font-size:29px!important;height:40px!important;line-height:38px!important;}
  .context-bar{height:52px!important;min-height:52px!important;font-size:13px!important;}
}
@media(max-width:650px){
  html.pdf-editor-active,body.pdf-editor-active{overflow:auto!important;height:auto!important;}
  body.pdf-editor-active .pdfcloudy-editor-shell .workspace{height:auto!important;min-height:620px!important;}
  body.pdf-editor-active .main-stage{height:calc(100vh - 120px)!important;grid-template-rows:84px 50px minmax(0,1fr) 40px!important;}
  .tool-ribbon{height:84px!important;min-height:84px!important;flex-basis:84px!important;}
  .tool{min-width:90px!important;min-height:82px!important;font-size:12px!important;}
  .tool span{font-size:28px!important;height:38px!important;line-height:36px!important;}
  .context-bar{height:50px!important;min-height:50px!important;}
}


/* v15: prepared signature fields become one-click signing targets when reopened */
.overlay-item.form-item.imported-signature-field{
  background:rgba(22,119,184,.035)!important;
  border:1px dashed rgba(22,119,184,.50)!important;
  cursor:pointer!important;
}
.overlay-item.form-item.imported-signature-field .overlay-content{
  background:transparent!important;
  cursor:pointer!important;
}
.overlay-item.form-item.imported-signature-field .form-preview-signature{
  background:rgba(255,255,255,.18)!important;
  border:0!important;
  color:#1677b8!important;
  font-weight:800!important;
  justify-content:center!important;
  pointer-events:auto!important;
}
.overlay-item.form-item.imported-signature-field:hover{
  background:rgba(22,119,184,.08)!important;
  box-shadow:0 0 0 2px rgba(22,119,184,.15)!important;
}


/* v16: signature upload cleanup + correctly sized typed signatures */
.signature-upload-preview{margin-top:10px;min-height:92px;border:1px solid #d7e0e7;border-radius:8px;background-color:#f8fafc;background-image:linear-gradient(45deg,#e9eef3 25%,transparent 25%),linear-gradient(-45deg,#e9eef3 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e9eef3 75%),linear-gradient(-45deg,transparent 75%,#e9eef3 75%);background-size:18px 18px;background-position:0 0,0 9px,9px -9px,-9px 0;display:flex;align-items:center;justify-content:center;padding:10px}
.signature-upload-preview img{display:block;max-width:100%;max-height:110px;object-fit:contain}
.signature-upload-help{margin:7px 0 0;font-size:11px;color:#687480}
#signatureUploadName{margin-top:8px;font-size:12px;color:#52616e;overflow-wrap:anywhere}
.signature-preview{font-size:28px}


/* v27: signed Form > Signature boxes should look like signatures, not filled form panels */
.overlay-item.form-item:has(.form-signature-image),
.overlay-item.form-item:has(.form-signature-text){
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
}
.overlay-item.form-item:has(.form-signature-image) .overlay-content,
.overlay-item.form-item:has(.form-signature-text) .overlay-content,
.overlay-item.form-item:has(.form-signature-image) .form-preview-signature,
.overlay-item.form-item:has(.form-signature-text) .form-preview-signature{
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
}
.overlay-item.form-item.selected:has(.form-signature-image),
.overlay-item.form-item.selected:has(.form-signature-text){
  border-color:var(--pc-blue)!important;
}
.overlay-item.form-item.selected:has(.form-signature-image) .form-preview-signature,
.overlay-item.form-item.selected:has(.form-signature-text) .form-preview-signature{
  border-color:transparent!important;
}

/* v30 annotation editing improvements */
.overlay-item.annotation-item{cursor:pointer}
.overlay-item.annotation-line-item{min-height:24px}
.overlay-item.annotation-line-item .overlay-content,.overlay-item.annotation-highlight-item .overlay-content{position:absolute;inset:0;pointer-events:none}
.overlay-item.annotation-highlight-item{border-color:transparent}
.overlay-item.annotation-highlight-item.selected{border-color:var(--pc-blue)}
.object-toolbar .obj-anno-mode{width:118px;padding:0 8px;color:#1e2b37;font-size:13px}


/* v33: immediate, reliable shape selection */
.overlay-item.shape-item{
  pointer-events:auto!important;
  cursor:pointer!important;
  z-index:4;
}
.overlay-item.shape-item .overlay-content{
  pointer-events:none!important;
}
/* Give very thin line/arrow boxes a comfortable invisible click target without
   changing their visible geometry. */
.overlay-item.shape-item[data-shape="line"],
.overlay-item.shape-item[data-shape="arrow"]{
  min-height:20px!important;
}

/* V36: SEO-friendly how-to cards directly below the PDF editor hero */
#welcome.editor-welcome{display:block;padding:54px 20px 64px}
#welcome .welcome-card{margin:0 auto}
.welcome-howto{width:min(1180px,100%);margin:64px auto 0;text-align:left}
.welcome-howto-intro{text-align:center;max-width:820px;margin:0 auto 28px}
.welcome-howto-intro h2{font-size:32px;line-height:1.2;margin:8px 0 10px;color:#1d2733}
.welcome-howto-intro p{margin:0 auto;color:#65717e;font-size:15px;line-height:1.7;max-width:760px}
.welcome-howto-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.howto-card{background:#fff;border:1px solid #dfe7ed;border-radius:16px;padding:24px;box-shadow:0 8px 24px rgba(31,58,78,.06);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.howto-card:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(31,58,78,.10);border-color:#b9d7ea}
.howto-step{display:inline-flex;align-items:center;justify-content:center;min-width:68px;height:30px;padding:0 11px;border-radius:999px;background:#eaf5fc;color:var(--pc-blue);font-size:12px;font-weight:800;letter-spacing:.2px}
.howto-card h3{font-size:18px;margin:15px 0 8px;color:#202b36}
.howto-card p{font-size:13.5px;line-height:1.65;color:#63707c;margin:0}
.howto-card strong{color:#33424f}
@media(max-width:900px){.welcome-howto-grid{grid-template-columns:1fr 1fr}}
@media(max-width:650px){#welcome.editor-welcome{padding:38px 14px 48px}.welcome-howto{margin-top:46px}.welcome-howto-intro h2{font-size:27px}.welcome-howto-grid{grid-template-columns:1fr}.howto-card{padding:20px}}

/* v37 SEO content + FAQ */
.seo-faq{padding:54px 20px 68px}
.seo-faq-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:26px}
.seo-faq-grid article{background:#fff;border:1px solid #dfe7ed;border-radius:14px;padding:20px 22px;box-shadow:0 7px 20px rgba(31,58,78,.05)}
.seo-faq-grid h3{font-size:17px;line-height:1.35;margin:0 0 8px;color:#202b36}
.seo-faq-grid p{font-size:13.5px;line-height:1.68;color:#63707c;margin:0}
@media(max-width:720px){.seo-faq-grid{grid-template-columns:1fr}.seo-faq{padding:42px 14px 52px}}

/* Keep the all-tools hero visually prominent while preserving a single page H1 */
.hero .tools-hero-heading{font-size:clamp(38px,5vw,64px);line-height:1.05;letter-spacing:-1.5px;margin:0 auto 18px;max-width:950px;color:#1d2733;font-weight:800}

/* v39: always-visible zoom controls in the main editor toolbar */
.toolbar-zoom{display:flex;align-items:center;align-self:stretch;margin-left:8px;padding:7px 3px;gap:0;flex:0 0 auto}
.toolbar-zoom-btn,.toolbar-zoom-value{border:1px solid #d7dee5;background:#fff;color:#35566b;font:inherit;font-weight:800;cursor:pointer;min-height:46px}
.toolbar-zoom-btn{width:46px;font-size:25px;line-height:1}
.toolbar-zoom-value{min-width:62px;padding:0 9px;font-size:12px;border-left:0;border-right:0}
.toolbar-zoom-btn:first-child{border-radius:9px 0 0 9px}
.toolbar-zoom-btn:last-child{border-radius:0 9px 9px 0}
.toolbar-zoom-btn:hover,.toolbar-zoom-value:hover{background:#eef7fd;color:var(--pc-blue);border-color:#8fc2e3}
.toolbar-zoom-btn:focus-visible,.toolbar-zoom-value:focus-visible{outline:3px solid rgba(22,119,184,.22);outline-offset:2px}
@media (max-width:900px){.toolbar-zoom{margin-left:4px}.toolbar-zoom-btn{width:42px}.toolbar-zoom-value{min-width:56px}}


/* v40 scanned-PDF OCR + editable recognized text */
.ocr-notice{display:flex;align-items:center;gap:10px;margin-left:auto;padding:6px 8px 6px 12px;border:1px solid #b9dff5;border-radius:999px;background:#edf8ff;color:#24516e;font-size:12px;font-weight:700;white-space:nowrap}
.ocr-notice.is-hidden{display:none!important}
.ocr-notice button{border:0;border-radius:999px;background:#1677B8;color:#fff;font-weight:800;padding:7px 12px;cursor:pointer}
.ocr-notice button:hover{background:#0e689f}
.ocr-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}
.ocr-progress{margin:14px 0;padding:12px;border:1px solid #d8e3eb;border-radius:10px;background:#f8fbfd}
.ocr-progress-track{height:10px;border-radius:999px;background:#e3edf3;overflow:hidden}
.ocr-progress-track span{display:block;width:0;height:100%;background:#1677B8;transition:width .15s ease}
.ocr-progress p{margin:8px 0 0;color:#52606d;font-size:13px}
.find-ocr-help{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0;padding:10px 12px;border-radius:9px;background:#fff8e6;border:1px solid #f0d995;color:#654f13;font-size:13px}
.find-ocr-help.is-hidden{display:none!important}
.find-ocr-help button{margin-left:auto}
.ocr-hitbox{position:absolute;z-index:18;border:1.5px dashed rgba(22,119,184,.64);background:rgba(22,119,184,.055);border-radius:3px;cursor:text;padding:0;min-width:8px;min-height:8px;color:transparent;box-sizing:border-box}
.ocr-hitbox:hover,.ocr-hitbox:focus{background:rgba(22,119,184,.14);border-style:solid;outline:none;box-shadow:0 0 0 2px rgba(22,119,184,.10)}
#ocrEditText{min-height:110px}
.tool[data-tool="ocr"] span{font-family:Arial,sans-serif;font-size:24px!important;font-weight:800!important;letter-spacing:-2px}
@media(max-width:900px){.ocr-notice{border-radius:8px;white-space:normal}.ocr-choice-grid{grid-template-columns:1fr}}

/* v42: invisible direct-text hit areas; visible only on hover/focus */
.native-text-hitbox{
  position:absolute;
  z-index:2;
  display:block;
  border:0!important;
  background:transparent!important;
  padding:0!important;
  margin:0!important;
  border-radius:2px;
  cursor:text;
  min-width:4px;
  min-height:6px;
  color:transparent!important;
  box-shadow:none!important;
  outline:0!important;
  opacity:1;
}
.native-text-hitbox:hover,
.native-text-hitbox:focus-visible{
  outline:1px solid rgba(22,119,184,.72)!important;
  outline-offset:-1px;
  background:rgba(22,119,184,.045)!important;
  box-shadow:0 0 0 2px rgba(22,119,184,.06)!important;
}
.overlay-item{z-index:8}
.overlay-item.whiteout-item{z-index:7}
#overlayLayer[data-tool="select"] .native-text-hitbox{pointer-events:auto}
#overlayLayer:not([data-tool="select"]) .native-text-hitbox{pointer-events:none}

/* v43: font library + Sejda-style find/replace + grouped top page/zoom/history controls */
.editor-local-actions{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
.editor-quick-group{display:flex;align-items:center;gap:0;border:1px solid #d7dee5;border-radius:9px;background:#fff;overflow:hidden;flex:0 0 auto}
.editor-quick-group .icon-btn,.editor-quick-group .quick-zoom-value{border:0!important;border-right:1px solid #d7dee5!important;border-radius:0!important;background:#fff!important;height:42px!important;min-width:42px!important;color:#35566b!important;box-shadow:none!important}
.editor-quick-group>*:last-child{border-right:0!important}
.editor-quick-group .icon-btn:hover,.editor-quick-group .quick-zoom-value:hover{background:#eef7fd!important;color:var(--pc-blue)!important}
.quick-zoom-btn{font-size:21px!important;font-weight:800!important}
.quick-zoom-value{min-width:58px!important;padding:0 9px!important;font-size:12px!important;font-weight:800!important;cursor:pointer}
.top-insert-page{white-space:nowrap;font-weight:800!important}
.top-insert-page:disabled{opacity:.5;cursor:not-allowed}

.font-family-select{min-width:176px!important;max-width:220px}
.obj-font{min-width:122px;max-width:180px}

.find-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.find-fields label{margin:4px 0!important}
.find-options{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin:13px 0 4px}
.find-options label{display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;margin:0!important;font-size:13px!important;font-weight:700!important;cursor:pointer}
.find-options input[type=checkbox]{width:18px!important;height:18px!important;margin:0!important;accent-color:var(--pc-blue)}
.find-scope{margin-left:auto;border-radius:999px;background:#eef7fd;color:#35647f;padding:5px 9px;font-size:11px;font-weight:800}
.find-actions{align-items:center;flex-wrap:wrap}
.find-actions .pc-btn{min-width:96px}
.find-action-primary{border-color:#8fc2e3!important;color:#0b6cae!important}
.find-match-highlight{position:absolute;z-index:80;pointer-events:none;border:1px solid rgba(206,163,0,.78);background:rgba(255,229,0,.58);border-radius:2px;box-shadow:0 0 0 1px rgba(255,255,255,.22) inset}

.save-note-centered{position:static!important;margin:auto}

@media(max-width:1100px){
  .editor-local-actions{width:100%;overflow-x:auto;padding-bottom:3px}
  .editor-local-toolbar-inner{gap:8px;align-items:flex-start;flex-direction:column}
}
@media(max-width:700px){
  .find-fields{grid-template-columns:1fr}
  .find-options{gap:12px}
  .find-scope{margin-left:0}
  .find-actions{justify-content:stretch}
  .find-actions .pc-btn{flex:1 1 44%;min-width:0}
  .font-family-select{min-width:150px!important}
}

/* v44: client-friendly top Insert Page menu; bottom page controls remain unchanged */
.top-insert-wrap{position:relative;flex:0 0 auto}
.top-insert-page{display:inline-flex;align-items:center;gap:7px;justify-content:center}
.top-insert-page>span{font-size:11px!important;color:inherit!important}
.top-insert-menu{position:absolute;top:calc(100% + 9px);left:0;z-index:2400;width:290px;padding:8px;background:#fff;border:1px solid #d7e0e7;border-radius:12px;box-shadow:0 16px 42px rgba(31,58,78,.18)}
.top-insert-menu button{width:100%;display:grid;grid-template-columns:38px 1fr;grid-template-rows:auto auto;column-gap:10px;text-align:left;border:0;background:#fff;border-radius:9px;padding:10px 11px;cursor:pointer;color:#263746}
.top-insert-menu button:hover,.top-insert-menu button:focus-visible{background:#eef7fd;outline:none}
.top-insert-menu button>span{grid-row:1/3;display:grid;place-items:center;width:34px;height:34px;border-radius:8px;background:#e9f4fb;color:var(--pc-blue)!important;font-size:15px!important;font-weight:800}
.top-insert-menu button>strong{font-size:13px;line-height:1.25;color:#263746}
.top-insert-menu button>small{font-size:11px;line-height:1.35;color:#6a7783;margin-top:2px}
.top-insert-divider{height:1px;background:#e5ebef;margin:6px 4px}
@media(max-width:1100px){.top-insert-menu{position:fixed;top:118px;left:auto;right:18px;width:min(310px,calc(100vw - 36px))}}

/* v45: movable Find & Replace dialog so the user can keep the PDF text visible while searching */
.draggable-find-dialog .dialog-drag-handle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:-8px 42px 18px -4px;
  padding:8px 4px 10px;
  cursor:grab;
  user-select:none;
  -webkit-user-select:none;
  touch-action:none;
}
.draggable-find-dialog .dialog-drag-handle:active{cursor:grabbing}
.draggable-find-dialog .dialog-drag-handle h2{margin:0;pointer-events:none}
.draggable-find-dialog .dialog-drag-note{
  flex:0 0 auto;
  font-size:11px;
  font-weight:700;
  color:#7a8793;
  background:#f3f7fa;
  border:1px solid #dce5ec;
  border-radius:999px;
  padding:5px 9px;
  pointer-events:none;
}
.draggable-find-dialog.is-dragging{user-select:none;-webkit-user-select:none}
@media (max-width:640px){
  .draggable-find-dialog .dialog-drag-note{display:none}
  .draggable-find-dialog .dialog-drag-handle{margin-right:36px}
}

/* v46: Word-style precise Find highlight — yellow only over the matching word/phrase */

/* V49: priority SEO navigation without hamburger; clean horizontal quick links on small screens */
.priority-desktop-nav{display:flex;align-items:center;justify-content:flex-end;gap:16px;flex-wrap:wrap;font-size:14px;font-weight:700}.priority-desktop-nav a{white-space:nowrap}.mobile-priority-nav,.mobile-priority-panel{display:none!important}@media(max-width:1180px){.priority-desktop-nav{gap:10px;font-size:12.5px}.priority-desktop-nav a{padding-left:0;padding-right:0}}@media(max-width:900px){.nav{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:8px!important}.pdfcloudy-brand{min-width:0;margin:0 auto!important}.brand-name{font-size:clamp(23px,6vw,30px)!important}.brand-cloud{width:50px!important;height:45px!important}.brand-tagline{font-size:11px!important}.priority-desktop-nav{display:flex!important;width:100%;max-width:100%;justify-content:flex-start!important;align-items:center;gap:6px!important;flex-wrap:nowrap!important;overflow-x:auto;padding:5px 2px 9px!important;scrollbar-width:none;-webkit-overflow-scrolling:touch}.priority-desktop-nav::-webkit-scrollbar{display:none}.priority-desktop-nav a{flex:0 0 auto;display:inline-flex;align-items:center;min-height:34px;padding:7px 10px!important;border:1px solid #dce5ec;border-radius:999px;background:#fff;font-size:12px!important;line-height:1.1;color:#243b53}.priority-desktop-nav a:hover,.priority-desktop-nav a:focus-visible{background:#eef7fc;color:#15659B;border-color:#bcd7e8}}@media(max-width:420px){.priority-desktop-nav a{padding:7px 9px!important;font-size:11.5px!important}}
/* V50: wide, clean one-line priority header */
.site-header .wrap.nav{
  width:100%!important;
  max-width:none!important;
  min-height:92px;
  margin:0!important;
  padding:14px clamp(24px,3vw,64px)!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:clamp(28px,3vw,56px)!important;
  flex-wrap:nowrap!important;
}
.site-header .pdfcloudy-brand,
.site-header .brand.pdfcloudy-brand{
  flex:0 0 auto!important;
  min-width:max-content!important;
  margin:0!important;
  white-space:nowrap!important;
}
.site-header .priority-desktop-nav{
  flex:1 1 auto!important;
  min-width:0!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:clamp(14px,1.45vw,28px)!important;
  flex-wrap:nowrap!important;
  white-space:nowrap!important;
  font-size:14px!important;
  font-weight:700!important;
  line-height:1!important;
  padding:0!important;
  margin:0!important;
}
.site-header .priority-desktop-nav a{
  flex:0 0 auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  padding:10px 0!important;
  margin:0!important;
  white-space:nowrap!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  line-height:1.15!important;
  text-align:center!important;
}
@media(max-width:1280px){
  .site-header .wrap.nav{padding-left:22px!important;padding-right:22px!important;gap:22px!important}
  .site-header .priority-desktop-nav{gap:12px!important;font-size:12.5px!important;overflow-x:auto!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch}
  .site-header .priority-desktop-nav::-webkit-scrollbar{display:none}
  .site-header .priority-desktop-nav a{padding:10px 2px!important}
  .site-header .brand-name{font-size:30px!important}
  .site-header .brand-cloud{width:54px!important;height:auto!important}
}
@media(max-width:900px){
  .site-header .wrap.nav{min-height:76px!important;padding:10px 14px!important;gap:14px!important;overflow:hidden!important}
  .site-header .pdfcloudy-brand{margin:0!important;min-width:max-content!important}
  .site-header .brand-name{font-size:24px!important}
  .site-header .brand-cloud{width:44px!important;height:auto!important}
  .site-header .brand-tagline{font-size:10px!important}
  .site-header .priority-desktop-nav{width:auto!important;max-width:none!important;justify-content:flex-start!important;gap:7px!important;overflow-x:auto!important;padding:0!important}
  .site-header .priority-desktop-nav a{min-height:32px!important;padding:7px 9px!important;border:1px solid #dce5ec!important;border-radius:999px!important;background:#fff!important;font-size:11.5px!important;line-height:1!important}
}
@media(max-width:560px){
  .site-header .brand-tagline{display:none!important}
  .site-header .brand-cloud{width:38px!important}
  .site-header .brand-name{font-size:21px!important}
  .site-header .wrap.nav{padding-left:10px!important;padding-right:10px!important;gap:10px!important}
}


/* V51: centered desktop navigation + logo moved inward from the far-left edge */
@media (min-width:1281px){
  .site-header .wrap.nav{
    width:100%!important;
    max-width:1360px!important;
    min-height:92px!important;
    margin:0 auto!important;
    padding:14px 28px!important;
    position:relative!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:0!important;
    flex-wrap:nowrap!important;
    overflow:visible!important;
  }
  .site-header .pdfcloudy-brand,
  .site-header .brand.pdfcloudy-brand{
    flex:0 0 auto!important;
    min-width:max-content!important;
    margin:0!important;
    transform:translateX(10px)!important;
    white-space:nowrap!important;
    position:relative!important;
    z-index:2!important;
  }
  .site-header .priority-desktop-nav{
    position:absolute!important;
    left:50%!important;
    top:50%!important;
    transform:translate(-50%,-50%)!important;
    width:max-content!important;
    max-width:calc(100% - 470px)!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:center!important;
    gap:22px!important;
    flex-wrap:nowrap!important;
    white-space:nowrap!important;
    overflow:visible!important;
    padding:0!important;
    margin:0!important;
    font-size:13.5px!important;
    font-weight:700!important;
    line-height:1!important;
    z-index:1!important;
  }
  .site-header .priority-desktop-nav a{
    flex:0 0 auto!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:10px 0!important;
    margin:0!important;
    white-space:nowrap!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
    line-height:1.15!important;
    text-align:center!important;
  }
}
@media (min-width:1281px) and (max-width:1480px){
  .site-header .wrap.nav{max-width:1280px!important;padding-left:24px!important;padding-right:24px!important}
  .site-header .priority-desktop-nav{gap:15px!important;font-size:12.5px!important;max-width:calc(100% - 410px)!important}
  .site-header .pdfcloudy-brand,.site-header .brand.pdfcloudy-brand{transform:translateX(4px)!important}
  .site-header .brand-name{font-size:30px!important}
  .site-header .brand-cloud{width:54px!important;height:auto!important}
}

/* V52: balanced centered site navigation above editor controls + logo slightly inset */
@media (min-width:1281px){
  .site-header .wrap.nav{
    width:100%!important;
    max-width:1520px!important;
    min-height:92px!important;
    margin:0 auto!important;
    padding:14px 42px!important;
    display:grid!important;
    grid-template-columns:300px minmax(0,1fr) 300px!important;
    align-items:center!important;
    gap:0!important;
    position:relative!important;
    overflow:visible!important;
  }
  .site-header .pdfcloudy-brand,
  .site-header .brand.pdfcloudy-brand{
    grid-column:1!important;
    justify-self:start!important;
    margin:0!important;
    transform:translateX(24px)!important;
    min-width:max-content!important;
    white-space:nowrap!important;
    position:relative!important;
    z-index:2!important;
  }
  .site-header .priority-desktop-nav{
    grid-column:2!important;
    position:static!important;
    transform:none!important;
    left:auto!important;
    top:auto!important;
    justify-self:center!important;
    width:max-content!important;
    max-width:100%!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:center!important;
    gap:20px!important;
    flex-wrap:nowrap!important;
    white-space:nowrap!important;
    overflow:visible!important;
    padding:0!important;
    margin:0!important;
    font-size:13.5px!important;
    font-weight:700!important;
    line-height:1!important;
    z-index:1!important;
  }
  .site-header .priority-desktop-nav a{
    flex:0 0 auto!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:10px 0!important;
    margin:0!important;
    white-space:nowrap!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
    line-height:1.15!important;
    text-align:center!important;
  }
}
@media (min-width:1281px) and (max-width:1500px){
  .site-header .wrap.nav{
    max-width:1360px!important;
    grid-template-columns:260px minmax(0,1fr) 260px!important;
    padding-left:26px!important;
    padding-right:26px!important;
  }
  .site-header .pdfcloudy-brand,
  .site-header .brand.pdfcloudy-brand{transform:translateX(14px)!important}
  .site-header .priority-desktop-nav{gap:14px!important;font-size:12.5px!important}
  .site-header .brand-name{font-size:30px!important}
  .site-header .brand-cloud{width:54px!important;height:auto!important}
}

/* V53: clean responsive mobile header + editor action rows (no clipped navigation) */
@media (max-width:900px){
  .site-header .wrap.nav{
    width:100%!important;
    max-width:none!important;
    min-height:0!important;
    padding:12px 14px 14px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:center!important;
    gap:10px!important;
    overflow:visible!important;
  }
  .site-header .pdfcloudy-brand,
  .site-header .brand.pdfcloudy-brand{
    align-self:center!important;
    margin:0!important;
    transform:none!important;
    min-width:0!important;
  }
  .site-header .priority-desktop-nav{
    width:100%!important;
    max-width:820px!important;
    align-self:center!important;
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:7px!important;
    overflow:visible!important;
    white-space:normal!important;
    padding:0!important;
    margin:0!important;
  }
  .site-header .priority-desktop-nav a{
    width:100%!important;
    min-width:0!important;
    min-height:36px!important;
    padding:8px 6px!important;
    border:1px solid #dce5ec!important;
    border-radius:999px!important;
    background:#fff!important;
    font-size:12px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    text-align:center!important;
  }
  .site-header .priority-desktop-nav a:hover,
  .site-header .priority-desktop-nav a:focus-visible{
    background:#eef7fc!important;
    color:#15659B!important;
    border-color:#bcd7e8!important;
  }

  .editor-local-toolbar-inner{
    width:100%!important;
    max-width:none!important;
    padding:10px 14px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:9px!important;
  }
  .editor-local-toolbar-inner>div:first-child{
    width:100%!important;
    display:flex!important;
    align-items:baseline!important;
    justify-content:center!important;
    gap:8px!important;
  }
  .editor-local-actions{
    width:100%!important;
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    overflow:visible!important;
    padding:0!important;
  }
  .editor-local-actions #openPdfBtn{
    order:1!important;
    flex:1 1 135px!important;
    min-width:120px!important;
    white-space:nowrap!important;
  }
  .editor-local-actions .top-insert-wrap{
    order:2!important;
    flex:1 1 160px!important;
    min-width:145px!important;
  }
  .editor-local-actions .top-insert-page{
    width:100%!important;
    white-space:nowrap!important;
  }
  .editor-local-actions #exportBtn{
    order:3!important;
    flex:1 1 145px!important;
    min-width:130px!important;
    white-space:nowrap!important;
  }
  .editor-local-actions #moreMenuBtn{
    order:4!important;
    flex:0 0 42px!important;
  }
  .editor-local-actions .editor-quick-group{
    order:5!important;
    flex:0 0 auto!important;
    margin:0 auto!important;
  }
  .top-insert-menu{
    position:fixed!important;
    top:auto!important;
    left:50%!important;
    right:auto!important;
    bottom:18px!important;
    transform:translateX(-50%)!important;
    width:min(330px,calc(100vw - 28px))!important;
    max-height:70vh!important;
    overflow:auto!important;
  }
}

@media (max-width:620px){
  .site-header .wrap.nav{padding:10px 10px 12px!important;gap:8px!important}
  .site-header .brand-cloud{width:42px!important;height:auto!important}
  .site-header .brand-name{font-size:23px!important}
  .site-header .brand-tagline{display:block!important;font-size:9.5px!important}
  .site-header .priority-desktop-nav{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
  }
  .site-header .priority-desktop-nav a{
    min-height:34px!important;
    padding:7px 5px!important;
    font-size:11.5px!important;
  }

  .editor-local-toolbar-inner{padding:9px 10px!important}
  .editor-local-toolbar-inner>div:first-child{
    justify-content:flex-start!important;
    flex-wrap:wrap!important;
  }
  .editor-local-toolbar-inner>div:first-child strong{font-size:15px!important}
  .editor-local-toolbar-inner>div:first-child span{font-size:11px!important}
  .editor-local-actions #openPdfBtn,
  .editor-local-actions .top-insert-wrap{
    flex:1 1 calc(50% - 4px)!important;
    min-width:0!important;
  }
  .editor-local-actions #exportBtn{
    order:4!important;
    flex:1 1 calc(100% - 50px)!important;
    min-width:0!important;
  }
  .editor-local-actions #moreMenuBtn{
    order:3!important;
    flex:0 0 42px!important;
  }
  .editor-local-actions .editor-quick-group{
    order:5!important;
    width:auto!important;
    max-width:100%!important;
  }
  .editor-quick-group .icon-btn,
  .editor-quick-group .quick-zoom-value{
    min-width:39px!important;
    height:40px!important;
  }
  .editor-quick-group .quick-zoom-value{min-width:54px!important}
}

@media (max-width:390px){
  .site-header .brand-tagline{display:none!important}
  .site-header .brand-name{font-size:21px!important}
  .site-header .brand-cloud{width:38px!important}
  .site-header .priority-desktop-nav a{font-size:11px!important;padding:7px 4px!important}
  .editor-local-actions #openPdfBtn,
  .editor-local-actions .top-insert-wrap,
  .editor-local-actions #exportBtn{
    font-size:12px!important;
  }
}

/* V54: final mobile polish — compact navigation, controls, and hero typography */
@media (max-width:620px){
  .site-header .wrap.nav{
    padding:8px 8px 10px!important;
    gap:6px!important;
  }
  .site-header .pdfcloudy-brand,
  .site-header .brand.pdfcloudy-brand{margin-bottom:1px!important}
  .site-header .brand-cloud{width:36px!important;height:auto!important}
  .site-header .brand-name{font-size:21px!important;line-height:1!important}
  .site-header .brand-tagline{font-size:8.5px!important;line-height:1.05!important}
  .site-header .priority-desktop-nav{
    gap:5px!important;
  }
  .site-header .priority-desktop-nav a{
    min-height:30px!important;
    padding:5px 4px!important;
    font-size:10.5px!important;
    line-height:1.05!important;
  }

  .editor-local-toolbar-inner{
    padding:7px 8px!important;
    gap:6px!important;
  }
  .editor-local-toolbar-inner>div:first-child{
    gap:5px!important;
    min-height:28px!important;
  }
  .editor-local-toolbar-inner>div:first-child strong{font-size:14px!important}
  .editor-local-toolbar-inner>div:first-child span{font-size:10.5px!important}
  .editor-local-actions{gap:5px!important}
  .editor-local-actions #openPdfBtn,
  .editor-local-actions .top-insert-page,
  .editor-local-actions #exportBtn{
    min-height:42px!important;
    padding:7px 9px!important;
    font-size:12.5px!important;
    line-height:1.15!important;
  }
  .editor-local-actions #moreMenuBtn{
    flex-basis:40px!important;
    width:40px!important;
    height:40px!important;
  }
  .editor-quick-group .icon-btn,
  .editor-quick-group .quick-zoom-value{
    min-width:36px!important;
    height:38px!important;
  }
  .editor-quick-group .quick-zoom-value{min-width:50px!important;font-size:11px!important}

  #welcome.editor-welcome{padding:30px 12px 40px!important}
  #welcome .cloud-mark img{width:88px!important}
  #welcome .welcome-card h1{
    font-size:32px!important;
    line-height:1.12!important;
    letter-spacing:-.5px!important;
    margin:10px auto 12px!important;
    max-width:560px!important;
  }
  #welcome .welcome-card>p{
    font-size:15px!important;
    line-height:1.55!important;
    margin-bottom:18px!important;
  }
  #welcome .pc-btn-big{padding:12px 24px!important;font-size:14px!important}
  #welcome .drop-note{margin:9px 0 14px!important;font-size:12px!important}
  #welcome .privacy-chip{padding:8px 11px!important;font-size:11px!important}
  .welcome-howto{margin-top:38px!important}
  .welcome-howto-intro h2{font-size:24px!important;line-height:1.16!important}
  .welcome-howto-intro p{font-size:14px!important;line-height:1.55!important}
  .howto-card{padding:18px!important}
}

@media (max-width:390px){
  .site-header .wrap.nav{padding:7px 7px 9px!important}
  .site-header .brand-cloud{width:34px!important}
  .site-header .brand-name{font-size:20px!important}
  .site-header .brand-tagline{font-size:8px!important}
  .site-header .priority-desktop-nav{gap:4px!important}
  .site-header .priority-desktop-nav a{
    min-height:29px!important;
    padding:5px 3px!important;
    font-size:10px!important;
  }
  .editor-local-toolbar-inner{padding:6px 7px!important}
  .editor-local-toolbar-inner>div:first-child strong{font-size:13.5px!important}
  .editor-local-toolbar-inner>div:first-child span{font-size:10px!important}
  .editor-local-actions #openPdfBtn,
  .editor-local-actions .top-insert-page,
  .editor-local-actions #exportBtn{font-size:12px!important;min-height:40px!important}
  #welcome.editor-welcome{padding:26px 10px 36px!important}
  #welcome .cloud-mark img{width:80px!important}
  #welcome .welcome-card h1{font-size:29px!important;line-height:1.12!important}
  #welcome .welcome-card>p{font-size:14px!important}
  .welcome-howto-intro h2{font-size:22px!important}
}

@media (max-width:340px){
  .site-header .brand-tagline{display:none!important}
  .site-header .priority-desktop-nav a{font-size:9.5px!important}
  #welcome .welcome-card h1{font-size:27px!important}
}

/* Editor fixes: leave document scrolling available for All Tools and size the editor to its actual top edge. */
html.pdf-editor-active,body.pdf-editor-active{height:auto!important;overflow-x:hidden!important;overflow-y:auto!important}
body.pdf-editor-active .pdfcloudy-editor-shell .workspace{height:calc(100dvh - var(--editor-workspace-top, 180px) - 8px)!important;min-height:420px!important}
body.pdf-editor-active .pages-panel{display:flex;flex-direction:column;min-height:0}
body.pdf-editor-active .thumbs{flex:1 1 auto;min-height:0;overflow-y:auto}
body.pdf-editor-active .page-actions{flex:0 0 auto;position:relative;z-index:1}
/* Drawing tools receive the first pointer press even over previously added objects. */
#overlayLayer[data-tool="whiteout"] .overlay-item:not(.drawing-preview),
#overlayLayer[data-tool="shape"] .overlay-item:not(.drawing-preview),
#overlayLayer[data-tool="annotate"] .overlay-item:not(.drawing-preview){pointer-events:none!important}
.pc-dialog{max-height:calc(100dvh - 20px);overflow-y:auto;overscroll-behavior:contain}
.pc-dialog .dialog-drag-handle{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-8px 42px 18px -4px;padding:8px 4px 10px;cursor:grab;user-select:none;touch-action:none}
.pc-dialog .dialog-drag-handle:active{cursor:grabbing}
.pc-dialog .dialog-drag-handle h2{margin:0;pointer-events:none}
.pc-dialog .dialog-drag-note{flex:0 0 auto;font-size:11px;font-weight:700;color:#7a8793;background:#f3f7fa;border:1px solid #dce5ec;border-radius:999px;padding:5px 9px;pointer-events:none}
.pc-dialog.is-dragging{user-select:none}
@media(max-width:650px){body.pdf-editor-active .pdfcloudy-editor-shell .workspace{height:auto!important;min-height:620px!important}.pc-dialog .dialog-drag-note{display:none}}
