*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:#172033;background:#f7f9fc}a{text-decoration:none;color:inherit}.top{height:68px;background:#fff;border-bottom:1px solid #e8edf5;display:flex;align-items:center;justify-content:space-between;padding:0 max(20px,calc((100% - 1180px)/2));position:sticky;top:0;z-index:10}.brand{font-weight:850;font-size:22px;color:var(--accent,#2563eb)}nav{display:flex;gap:22px;font-weight:650}.hero{padding:70px 20px 44px;text-align:center;background:linear-gradient(180deg,#fff,#f7f9fc)}.hero h1,.tool-head h1{font-size:clamp(34px,5vw,58px);line-height:1.02;margin:14px 0}.hero p,.tool-head p{font-size:18px;color:#667085}.pill{display:inline-block;background:#eaf1ff;color:var(--accent,#2563eb);padding:7px 12px;border-radius:999px;font-size:13px;font-weight:800}.search{max-width:620px;margin:28px auto 0}.search input,.login input,.panel input,.panel textarea,.options input,.options textarea,.options select{width:100%;padding:13px 14px;border:1px solid #d8deea;border-radius:11px;background:#fff;font:inherit}.wrap{max-width:1180px;margin:auto;padding:24px 20px 70px}.group{margin:28px 0 46px}.group h2{font-size:20px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.card{display:flex;gap:14px;background:#fff;border:1px solid #e5eaf2;padding:18px;border-radius:16px;transition:.18s}.card:hover{transform:translateY(-2px);box-shadow:0 12px 30px #17203312;border-color:#cbd7ea}.card h3{margin:0 0 6px;font-size:16px}.card p{margin:0;color:#6b7280;font-size:13px;line-height:1.45}.icon{min-width:40px;height:40px;border-radius:12px;background:#eef4ff;color:var(--accent,#2563eb);display:grid;place-items:center;font-weight:900}.tool-wrap{max-width:900px;margin:auto;padding:54px 20px 70px}.tool-head{text-align:center;margin-bottom:30px}.tool-head h1{font-size:42px}.tool-panel{background:#fff;border:1px solid #e4e9f2;border-radius:20px;padding:24px;box-shadow:0 15px 45px #1720330a}.dropzone{position:relative;border:2px dashed #cbd5e1;background:#f8fbff;border-radius:16px;padding:44px 20px;text-align:center;display:flex;flex-direction:column;gap:7px;cursor:pointer}.dropzone.drag{border-color:var(--accent,#2563eb);background:#eff6ff}.dropzone input{position:absolute;inset:0;opacity:0;cursor:pointer}.file-list{margin:14px 0}.file-item{display:flex;justify-content:space-between;padding:9px 11px;background:#f7f9fc;border-radius:9px;margin:5px 0;font-size:13px}.options{display:grid;gap:12px;margin:18px 0}.options label{font-weight:700;font-size:13px}.row{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.primary{border:0;border-radius:11px;background:var(--accent,#2563eb);color:#fff;font-weight:800;padding:13px 20px;cursor:pointer}.primary:disabled{opacity:.55;cursor:not-allowed}.progress{height:8px;background:#e8edf5;border-radius:999px;overflow:hidden;margin-top:18px}.progress div{height:100%;width:0;background:var(--accent,#2563eb);transition:.2s}.status{margin-top:14px;color:#475467}.result{margin-top:14px}.download{display:inline-block;margin:6px 8px 0 0;padding:10px 14px;border-radius:10px;background:#0f172a;color:#fff;font-weight:700;font-size:13px}.error{color:#b42318}.ok{color:#067647}.login{max-width:420px;margin:100px auto;background:#fff;padding:28px;border-radius:18px}.login input{margin:7px 0}.admin-wrap{max-width:1180px;margin:auto;padding:34px 20px}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.panel{background:#fff;padding:20px;border:1px solid #e5eaf2;border-radius:16px;margin-bottom:18px}.panel label{display:block;margin:10px 0 5px;font-weight:700}.panel table{width:100%;border-collapse:collapse}.panel th,.panel td{padding:9px;border-bottom:1px solid #edf0f5;text-align:left;font-size:13px}.table-scroll{overflow:auto}footer{border-top:1px solid #e6eaf0;background:#fff;color:#667085;text-align:center;padding:25px 20px;font-size:13px}@media(max-width:820px){.grid{grid-template-columns:1fr 1fr}.admin-grid{grid-template-columns:1fr}}@media(max-width:560px){.grid{grid-template-columns:1fr}.top{padding:0 15px}.top nav{gap:12px;font-size:13px}.row{grid-template-columns:1fr}.tool-panel{padding:16px}.hero{padding-top:50px}}

/* Enhanced PDF editor + photo tools */
.hint{display:block;color:#667085;line-height:1.5;margin-top:4px}.calc-info{padding:10px 12px;background:#f5f8ff;border:1px solid #dbe7ff;border-radius:10px;color:#344054;font-size:13px}.editor-ui{display:grid;gap:12px}.editor-toolbar{display:flex;gap:7px;flex-wrap:wrap}.mini{border:1px solid #d0d5dd;background:#fff;color:#344054;border-radius:9px;padding:8px 10px;font-weight:700;cursor:pointer}.mini:hover,.mini.active{border-color:var(--accent,#2563eb);color:var(--accent,#2563eb);background:#eff6ff}.editor-controls{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px}.editor-controls label{display:grid;gap:5px}.page-controls{display:flex;align-items:center;justify-content:center;gap:12px}.editor-stage{position:relative;max-width:100%;min-height:220px;background:#e9edf3;border:1px solid #d6dce6;border-radius:12px;overflow:auto;padding:12px;text-align:center}.editor-stage canvas{display:block;max-width:none;margin:0 auto;box-shadow:0 4px 18px #0002;background:#fff}.editor-overlay{position:absolute;left:50%;top:12px;transform:translateX(-50%);cursor:crosshair}.pdf-annotation{position:absolute;box-sizing:border-box;pointer-events:auto;user-select:none;text-align:left}.pdf-annotation.text{white-space:nowrap;line-height:1.05;text-shadow:0 0 1px #fff}.pdf-annotation.whiteout{background:#fff;border:1px dashed #cbd5e1}.pdf-annotation.highlight{background:rgba(255,225,0,.38);border:1px dashed rgba(170,140,0,.5)}.pdf-annotation.rectangle{border:2px solid #e11d48}.pdf-annotation.image img{width:100%;height:100%;object-fit:contain;display:block}.pdf-annotation:hover{outline:1px dashed var(--accent,#2563eb)}
@media(max-width:650px){.editor-controls{grid-template-columns:1fr}.editor-toolbar{gap:5px}.mini{padding:7px 8px;font-size:12px}.editor-stage{padding:8px}.editor-overlay{top:8px}}

/* PDFMaster v3 full visual PDF editor */
.pdf-editor-app{display:grid;gap:12px}.editor-toolbar-main{padding:10px;background:#f8fafc;border:1px solid #e4e7ec;border-radius:12px}.danger-mini{color:#b42318!important}.editor-controls-pro{grid-template-columns:2fr 1fr 1fr 1fr;background:#fff;border:1px solid #eaecf0;padding:10px;border-radius:12px}.editor-pagebar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.zoom-controls{display:flex;align-items:center;gap:7px}.zoom-controls span{min-width:48px;text-align:center;font-size:13px;font-weight:800;color:#475467}.editor-workspace{display:grid;grid-template-columns:118px minmax(0,1fr);gap:12px;min-height:560px}.editor-thumbs{background:#f3f5f8;border:1px solid #dfe4ec;border-radius:12px;padding:8px;max-height:720px;overflow:auto}.thumb-empty{font-size:12px;font-weight:800;color:#667085;text-align:center;padding:8px}.thumb{width:100%;border:2px solid transparent;background:#fff;border-radius:9px;margin:0 0 8px;padding:5px;cursor:pointer;box-shadow:0 1px 3px #10182812}.thumb:hover,.thumb.active{border-color:var(--accent,#2563eb)}.thumb canvas{display:block;max-width:100%;height:auto;margin:auto;background:#fff}.thumb span{display:block;font-size:11px;font-weight:800;margin-top:4px;color:#475467}.editor-stage-wrap{min-width:0}.editor-stage{position:relative;max-width:100%;min-height:540px;max-height:760px;background:#dfe3e9;border:1px solid #d0d5dd;border-radius:12px;overflow:auto;padding:14px;text-align:center}.page-surface{position:relative;display:block;margin:0 auto;background:#fff;box-shadow:0 6px 22px #1018282b;touch-action:none}.page-surface canvas{position:absolute;inset:0;display:block;margin:0;max-width:none;box-shadow:none}.editor-ink,.editor-text-layer,.editor-overlay{position:absolute!important;inset:0!important;left:0!important;top:0!important;transform:none!important;margin:0!important}.editor-ink{z-index:2;pointer-events:none;overflow:visible}.editor-text-layer{z-index:3;pointer-events:none;text-align:left;overflow:hidden}.editor-overlay{z-index:4;cursor:crosshair;touch-action:none}.page-surface.replace-mode .editor-overlay{pointer-events:none}.pdf-source-text{position:absolute;display:block;color:transparent;line-height:1;white-space:nowrap;overflow:hidden;border:1px solid transparent;box-sizing:border-box;pointer-events:none;cursor:text}.page-surface.replace-mode .pdf-source-text{pointer-events:auto}.page-surface.replace-mode .pdf-source-text:hover{border-color:#2563eb;background:#2563eb18;color:#34405433}.page-surface.draw-mode .editor-overlay{cursor:crosshair}.pdf-annotation{position:absolute;box-sizing:border-box;pointer-events:auto;user-select:none;text-align:left;cursor:move}.pdf-annotation.selected{outline:2px solid #2563eb!important;outline-offset:1px}.pdf-annotation.text{white-space:pre;line-height:1.25;text-shadow:0 0 1px #fff;max-width:95%;overflow:visible}.pdf-annotation.whiteout{background:#fff;border:1px dashed #98a2b3}.pdf-annotation.highlight{border:1px dashed #c59c00}.pdf-annotation.rectangle{background:transparent}.pdf-annotation.image img{width:100%;height:100%;object-fit:contain;display:block;pointer-events:none}.resize-handle{position:absolute;width:13px;height:13px;right:-7px;bottom:-7px;border:2px solid #fff;border-radius:50%;background:#2563eb;box-shadow:0 0 0 1px #2563eb;cursor:nwse-resize}.editor-help{font-size:12px;line-height:1.55;color:#475467;background:#f8fafc;border:1px solid #eaecf0;border-radius:10px;padding:10px 12px}.replace-dialog{position:fixed;inset:0;background:#10182866;z-index:999999;display:grid;place-items:center;padding:20px}.replace-dialog[hidden]{display:none}.replace-card{width:min(520px,100%);background:#fff;border-radius:16px;padding:20px;box-shadow:0 24px 70px #10182855;text-align:left}.replace-card h3{margin:0 0 14px}.replace-card label{font-size:13px;font-weight:800}.replace-card textarea{width:100%;margin-top:6px;padding:11px;border:1px solid #d0d5dd;border-radius:10px;font:inherit;resize:vertical}.replace-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px;flex-wrap:wrap}
@media(max-width:760px){.editor-workspace{grid-template-columns:1fr}.editor-thumbs{display:flex;gap:8px;max-height:none;overflow-x:auto}.thumb{min-width:76px;width:76px;margin:0}.editor-controls-pro{grid-template-columns:1fr 1fr}.editor-stage{min-height:430px;padding:8px}.editor-pagebar{align-items:stretch}.page-controls,.zoom-controls{width:100%;justify-content:center}}
@media(max-width:480px){.editor-controls-pro{grid-template-columns:1fr}.editor-toolbar-main .mini{font-size:11px;padding:7px}.editor-stage{min-height:380px}}
.tool-wrap.editor-wide{max-width:1180px}

/* PDFMaster v4 — professional live PDF editor + photo studio */
.tool-wrap.pro-wide{max-width:1460px}.pdf-pro-app,.photo-pro-app{display:grid;gap:12px}.pdf-pro-toolbar{position:sticky;top:74px;z-index:8;background:#fff;border:1px solid #dfe5ee;border-radius:14px;padding:9px;box-shadow:0 4px 18px #1018280d}.tool-group{display:flex;gap:7px;flex-wrap:wrap}.pro-tool,.format-toggle{border:1px solid #cfd8e6;background:#fff;color:#0b65c2;border-radius:8px;padding:9px 12px;font:700 13px/1.1 inherit;cursor:pointer}.pro-tool:hover,.pro-tool.active,.format-toggle.active{background:#eaf4ff;border-color:#1580ee;color:#0764bd}.pdf-formatbar{display:grid;grid-template-columns:minmax(220px,2fr) minmax(150px,1fr) 85px 90px 44px 44px 80px;gap:8px;align-items:end;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:10px}.pdf-formatbar label{font-size:11px;font-weight:800;color:#475467;display:grid;gap:4px}.pdf-formatbar input,.pdf-formatbar select{width:100%;padding:8px 9px;border:1px solid #d0d5dd;border-radius:8px;background:#fff;font:inherit}.pdf-formatbar input[type=color]{height:37px;padding:4px}.pdf-pro-pagebar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.page-edit-controls{display:flex;align-items:center;gap:7px}.pdf-pro-workspace{display:grid;grid-template-columns:112px minmax(0,1fr) 270px;gap:12px;min-height:650px}.pdf-pro-thumbs{background:#edf1f5;border:1px solid #d7dee8;border-radius:12px;padding:8px;overflow:auto;max-height:800px}.pdf-pro-stage{min-width:0;min-height:650px;max-height:830px;overflow:auto;background:#dfe3e8;border:1px solid #cfd7e2;border-radius:12px;padding:16px}.pdf-pro-surface{position:relative;margin:0 auto;background:#fff;box-shadow:0 8px 30px #1118272e;touch-action:none}.pdf-pro-surface canvas{position:absolute;inset:0}.pdf-pro-ink,.pdf-pro-textlayer,.pdf-pro-overlay{position:absolute;inset:0}.pdf-pro-ink{z-index:2;pointer-events:none}.pdf-pro-textlayer{z-index:3;pointer-events:none;overflow:hidden}.pdf-pro-overlay{z-index:4;touch-action:none}.pdf-pro-source-text{position:absolute;color:transparent;border:1px solid transparent;white-space:nowrap;overflow:hidden;box-sizing:border-box;pointer-events:none;cursor:text}.pdf-pro-surface.replace-mode .pdf-pro-overlay{pointer-events:none}.pdf-pro-surface.replace-mode .pdf-pro-source-text{pointer-events:auto}.pdf-pro-surface.replace-mode .pdf-pro-source-text:hover{color:#1d293933;background:#1689ff17;border-color:#1689ff}.pdf-pro-ann{position:absolute;box-sizing:border-box;cursor:move;user-select:none}.pdf-pro-ann.selected{outline:2px solid #1580ee;outline-offset:2px}.pdf-pro-ann.text{white-space:pre-wrap;text-align:left}.pdf-pro-ann.whiteout{background:#fff;border:1px dashed #98a2b3}.pdf-pro-ann.highlight{border:1px dashed #d2a900}.pdf-pro-ann.rectangle{background:transparent;border-style:solid}.pdf-pro-ann.image img{width:100%;height:100%;object-fit:contain;display:block;pointer-events:none}.pdf-pro-side{background:#fff;border:1px solid #dfe5ee;border-radius:12px;padding:14px;align-self:start;position:sticky;top:132px}.pdf-pro-side h3{margin:0 0 8px}.selection-card{background:#f8fafc;border:1px solid #e4e7ec;border-radius:10px;padding:10px;margin:12px 0;font-size:12px;line-height:1.5}.replace-live{display:grid;gap:10px}.replace-live label{display:grid;gap:5px;font-size:12px;font-weight:800}.replace-live textarea{width:100%;border:1px solid #d0d5dd;border-radius:9px;padding:10px;font:inherit}.original-text{padding:9px;background:#fff5dc;border-radius:8px;word-break:break-word}.full{width:100%}

.photo-workspace{display:grid;grid-template-columns:310px minmax(0,1fr);gap:14px}.photo-tabs{display:flex;gap:7px;flex-wrap:wrap;background:#f8fafc;border:1px solid #e4e7ec;border-radius:12px;padding:8px}.photo-tab{border:1px solid #d0d5dd;background:#fff;padding:9px 13px;border-radius:9px;font-weight:800;color:#475467;cursor:pointer}.photo-tab.active{background:#0b74de;color:#fff;border-color:#0b74de}.photo-controls{background:#fff;border:1px solid #dfe5ee;border-radius:14px;padding:14px;max-height:830px;overflow:auto}.photo-panel{display:none;gap:12px}.photo-panel.active{display:grid}.photo-panel h3{margin:0 0 2px}.photo-panel label{display:grid;gap:6px;font-size:12px;font-weight:800;color:#344054}.photo-panel input,.photo-panel select{width:100%;padding:9px;border:1px solid #d0d5dd;border-radius:8px;background:#fff}.photo-panel input[type=range]{padding:0}.control-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.photo-preview-area{min-width:0;background:#f0f3f7;border:1px solid #d9e0e8;border-radius:14px;padding:14px}.preview-head{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:10px;color:#475467;font-size:13px}.photo-canvas-shell{position:relative;display:grid;place-items:center;min-height:500px;max-height:700px;overflow:auto;border-radius:12px;background:repeating-conic-gradient(#e4e7ec 0 25%,#fff 0 50%) 50%/22px 22px}.photo-canvas-shell canvas{display:block;max-width:100%;max-height:680px;box-shadow:0 10px 30px #10182822;background:transparent}.before-badge{position:absolute;left:12px;top:12px;background:#0b74de;color:#fff;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:900}.photo-quick-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.passport-preview-box{margin-top:16px;background:#fff;border:1px solid #e4e7ec;border-radius:12px;padding:12px}.passport-preview-box h4{margin:0 0 8px}.passport-preview-box canvas{display:block;max-width:100%;max-height:420px;margin:auto;border:1px solid #d0d5dd;background:#fff}.secondary-download{border:0;cursor:pointer}.photo-panel span[id^="v"]{float:right;color:#0b74de}

@media(max-width:1120px){.pdf-pro-workspace{grid-template-columns:90px minmax(0,1fr)}.pdf-pro-side{grid-column:1/-1;position:static}.pdf-formatbar{grid-template-columns:2fr 1fr 90px 80px 44px 44px 70px}.photo-workspace{grid-template-columns:270px minmax(0,1fr)}}
@media(max-width:820px){.pdf-pro-workspace{grid-template-columns:1fr}.pdf-pro-thumbs{display:flex;gap:7px;max-height:none;overflow-x:auto}.pdf-pro-thumbs .thumb{min-width:74px;width:74px}.pdf-formatbar{grid-template-columns:1fr 1fr 1fr}.pdf-pro-stage{min-height:480px;padding:8px}.photo-workspace{grid-template-columns:1fr}.photo-controls{max-height:none}.photo-canvas-shell{min-height:360px}.tool-wrap.pro-wide{padding-left:8px;padding-right:8px}}
@media(max-width:520px){.pdf-formatbar{grid-template-columns:1fr 1fr}.tool-group{gap:5px}.pro-tool{padding:8px 9px;font-size:11px}.photo-tabs{overflow-x:auto;flex-wrap:nowrap}.photo-tab{white-space:nowrap}.control-row{grid-template-columns:1fr}.photo-canvas-shell{min-height:300px}.pdf-pro-stage{min-height:380px}}

/* ================= V5 SCREENSHOT-STYLE LIVE PDF EDITOR ================= */
.pdf-editor-v5-live{background:#e7e7e7;overflow:hidden}
.pdf-editor-v5-live .top,.pdf-editor-v5-live footer,.pdf-editor-v5-live .tool-head,.pdf-editor-v5-live #dropzone,.pdf-editor-v5-live #fileList,.pdf-editor-v5-live #processBtn{display:none!important}
.pdf-editor-v5-live .tool-wrap.pro-wide{max-width:none!important;margin:0!important;padding:0!important}
.pdf-editor-v5-live .tool-panel{padding:0!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
.pdf-editor-v5-live #dynamicOptions{margin:0!important;padding:0!important}
.pdf-editor-v5-live .progress,.pdf-editor-v5-live .status,.pdf-editor-v5-live .result{position:fixed;z-index:10020;left:20px;bottom:18px;max-width:min(700px,calc(100vw - 40px))}
.pdf-editor-v5-live .progress{bottom:62px;width:320px;background:#dce6ef}
.pdf-editor-v5-live .result{left:auto;right:20px;display:flex;gap:8px;flex-wrap:wrap}
.pdf-editor-v5-live .status:empty,.pdf-editor-v5-live .result:empty{display:none}

.v5-editor{height:100vh;display:grid;grid-template-rows:auto auto 1fr;background:#e7e7e7;font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#111827}
.v5-editor[hidden]{display:none!important}
.v5-toolbar-wrap{position:relative;z-index:100;background:#f3f3f3;border-bottom:1px solid #d3d3d3;box-shadow:0 1px 0 #fff inset}
.v5-toolbar{min-height:66px;display:flex;align-items:center;justify-content:center;gap:0;padding:10px 18px;overflow:visible;white-space:nowrap}
.v5-toolbar-spacer{flex:1;min-width:20px}
.v5-nav,.v5-open,.v5-download,.v5-tool,.v5-caret,.v5-page-btn,.v5-insert,.v5-format{font:500 17px/1.1 inherit;cursor:pointer}
.v5-nav{margin-right:14px;width:42px;height:42px;border:1px solid #8abce9;background:#fff;color:#0875dc;border-radius:7px}
.v5-tool,.v5-caret{height:48px;border:1px solid #0785ee;background:#fff;color:#0074da;padding:0 18px;border-radius:0;margin-left:-1px;display:inline-flex;align-items:center;gap:9px}
.v5-toolbar>.v5-tool:first-of-type{border-radius:7px 0 0 7px}.v5-tool:hover,.v5-tool.active,.v5-caret:hover{background:#eaf6ff}.v5-tool.active{box-shadow:inset 0 0 0 1px #78c5ff}
.v5-ico{font-size:24px;font-weight:400}.v5-small-caret{font-size:12px;margin-left:2px}.v5-caret{width:38px;padding:0;justify-content:center;border-radius:0 7px 7px 0}
.v5-split-tool,.v5-dropdown{position:relative;display:flex;align-items:center}.v5-dropdown .v5-tool{border-radius:0}
.v5-menu{display:none;position:absolute;left:0;top:54px;min-width:190px;background:#fff;border:1px solid #cfd9e3;border-radius:9px;box-shadow:0 14px 38px rgba(16,24,40,.2);padding:6px;z-index:1000}
.v5-menu.open{display:grid}.v5-menu button{border:0;background:#fff;text-align:left;padding:10px 12px;border-radius:6px;font:500 14px/1.2 inherit;cursor:pointer;color:#1f2937}.v5-menu button:hover{background:#eef7ff;color:#0875dc}
.v5-open,.v5-download{height:42px;border-radius:7px;padding:0 15px;margin-left:8px}.v5-open{background:#fff;border:1px solid #0d82e8;color:#0875dc}.v5-download{background:#087ee0;border:1px solid #087ee0;color:#fff;font-weight:700}.v5-download:hover{background:#006dc5}

.v5-formatbar{min-height:44px;padding:6px 20px;display:flex;align-items:center;justify-content:center;gap:8px;background:#fff;border-top:1px solid #dedede;border-bottom:1px solid #d8d8d8;overflow-x:auto}
.v5-formatbar label{display:flex;align-items:center;gap:5px;font-size:12px;color:#637083;font-weight:700}.v5-formatbar select,.v5-formatbar input[type=number]{height:31px;border:1px solid #cbd5df;border-radius:5px;background:#fff;padding:0 7px;font:500 13px inherit;color:#253143}.v5-formatbar input[type=color]{width:34px;height:31px;border:1px solid #cbd5df;padding:2px;border-radius:5px;background:#fff}.v5-format{height:31px;min-width:34px;border:1px solid #cbd5df;background:#fff;border-radius:5px;color:#253143;font-size:13px}.v5-format.active{background:#e4f2ff;border-color:#1688ee;color:#0875dc}.v5-danger-text{padding:0 10px;color:#b42318}.v5-format-hint{font-size:12px;color:#667085;min-width:230px;white-space:normal}

.v5-pagebar{height:82px;background:#e7e7e7;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 52px;border-bottom:1px solid #d2d2d2}
.v5-page-center{display:flex;align-items:center;gap:0}.v5-page-center>strong{font-size:28px;color:#5ba8eb;font-weight:500;margin-right:30px}.v5-page-btn,.v5-insert{height:42px;background:#f8fbff;color:#0875dc;border:1px solid #168af1;margin-left:-1px;padding:0 15px}.v5-page-btn:first-of-type{border-radius:7px 0 0 7px}.v5-page-btn:nth-of-type(5){border-radius:0 7px 7px 0}.v5-insert{border-radius:7px;margin-left:28px;font-size:17px;padding:0 18px}.v5-page-right{justify-self:end;display:flex;align-items:center;gap:8px;color:#6b7280;font-size:12px}.v5-page-right .v5-page-btn{border-radius:7px;margin:0;font-size:20px}

.v5-workspace{position:relative;min-height:0;background:#e7e7e7;display:grid;grid-template-columns:minmax(0,1fr) auto;overflow:hidden}
.v5-stage{position:relative;overflow:auto;padding:8px 60px 70px;min-height:0;text-align:center;scrollbar-gutter:stable}
.v5-surface{position:relative;display:block;margin:0 auto;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.28);touch-action:none;transform-origin:top center}
.v5-surface:before{content:"";position:absolute;z-index:12;left:0;right:0;top:0;height:10px;background:#000;pointer-events:none}
.v5-surface canvas{position:absolute;inset:0;display:block;z-index:1}.v5-layer{position:absolute;inset:0}.v5-ink{z-index:2;pointer-events:none;overflow:visible}.v5-text-layer{z-index:3;pointer-events:none;text-align:left;overflow:hidden}.v5-overlay{z-index:4;touch-action:none;text-align:left;cursor:default}.v5-surface.crosshair-mode .v5-overlay{cursor:crosshair}
.v5-source-text{position:absolute;display:block;color:transparent;line-height:1;white-space:nowrap;overflow:hidden;border:1px solid transparent;box-sizing:border-box;pointer-events:none;cursor:text}.v5-surface.source-edit-mode .v5-text-layer{z-index:6}.v5-surface.source-edit-mode .v5-source-text{pointer-events:auto}.v5-surface.source-edit-mode .v5-source-text:hover{border:1px dashed #1289ed;background:rgba(23,143,241,.08);color:rgba(30,41,59,.16)}
.v5-ann{position:absolute;box-sizing:border-box;cursor:move;user-select:none;min-width:8px;min-height:8px;z-index:5}.v5-ann.selected{outline:2px solid #1688ee;outline-offset:2px}.v5-text{min-width:20px;min-height:18px}.v5-image img,.v5-signature img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}.v5-whiteout{background:#fff}.v5-highlight{mix-blend-mode:multiply}.v5-link{border:1px dashed #087ee0;background:rgba(8,126,224,.08);display:grid;place-items:center;color:#087ee0;font-size:10px;font-weight:800}.v5-form-text{border:1px solid #4b8bc7;background:#fff;display:flex;align-items:center;padding:2px 5px;color:#6b7280;font-size:10px}.v5-form-check{border:1px solid #4b8bc7;background:#fff;display:grid;place-items:center;color:#087ee0}.v5-shape-svg{display:block;width:100%;height:100%;overflow:visible}.v5-resize{position:absolute;right:-7px;bottom:-7px;width:13px;height:13px;border:2px solid #fff;border-radius:50%;background:#1688ee;box-shadow:0 0 0 1px #1688ee;cursor:nwse-resize}

.v5-thumbs{width:150px;background:#f4f5f6;border-left:1px solid #ccd2d8;padding:10px 8px;overflow:auto}.v5-thumbs[hidden]{display:none}.v5-thumb{display:block;width:100%;background:#fff;border:2px solid transparent;border-radius:6px;padding:5px;margin-bottom:8px;cursor:pointer}.v5-thumb.active{border-color:#1688ee}.v5-thumb canvas{display:block;max-width:100%;height:auto;margin:auto}.v5-thumb span{font-size:11px;color:#667085}

.v5-text-bubble{position:absolute;z-index:80;width:min(360px,calc(100vw - 30px));background:#fff7de;border:1px solid #f1dca0;border-radius:12px;padding:14px 14px 12px;box-shadow:0 14px 35px rgba(16,24,40,.23);display:grid;grid-template-columns:1fr auto;gap:9px;text-align:left}.v5-text-bubble[hidden]{display:none}.v5-text-bubble textarea{grid-column:1/-1;resize:vertical;min-height:52px;width:100%;border:1px solid #e5d3a1;background:#fff;border-radius:7px;padding:9px;font:500 18px/1.35 Arial,"Nirmala UI","Mangal",sans-serif;outline:none}.v5-text-bubble textarea:focus{border-color:#13a77c;box-shadow:0 0 0 2px rgba(19,167,124,.13)}.v5-text-bubble #v5ApplyText{height:54px;border:0;border-radius:7px;background:#08b98c;color:#fff;font:800 20px/1 inherit;padding:0 18px;cursor:pointer}.v5-text-bubble #v5ApplyText span{font-size:32px;vertical-align:-3px;margin-left:7px}.v5-bubble-x{position:absolute;right:5px;top:-30px;border:0;background:#fff;width:26px;height:26px;border-radius:50%;box-shadow:0 1px 5px #0002;cursor:pointer;color:#6b7280}

.v5-link-pop{position:fixed;z-index:10040;left:50%;top:105px;transform:translateX(-50%);background:#fff;border:1px solid #d1d9e2;border-radius:10px;padding:10px;box-shadow:0 10px 30px #0002;display:flex;align-items:end;gap:8px}.v5-link-pop[hidden]{display:none}.v5-link-pop label{display:grid;gap:4px;font-size:11px;font-weight:700;color:#475467}.v5-link-pop input{width:320px;max-width:55vw;padding:9px;border:1px solid #cbd5df;border-radius:6px}.v5-link-pop button{padding:9px 13px;border:0;border-radius:6px;background:#087ee0;color:#fff;font-weight:700;cursor:pointer}
.v5-sign-modal{position:fixed;inset:0;background:rgba(17,24,39,.55);z-index:10050;display:grid;place-items:center;padding:20px}.v5-sign-modal[hidden]{display:none}.v5-sign-card{width:min(820px,100%);background:#fff;border-radius:14px;padding:14px;box-shadow:0 24px 70px #0005}.v5-sign-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.v5-sign-head button{border:0;background:#f1f5f9;width:34px;height:34px;border-radius:50%;font-size:22px;cursor:pointer}.v5-sign-card canvas{display:block;width:100%;height:auto;border:1px dashed #aab5c1;border-radius:8px;touch-action:none}.v5-sign-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}.v5-sign-actions>button{padding:10px 15px;border:1px solid #cbd5df;background:#fff;border-radius:7px;cursor:pointer}.v5-sign-actions>.v5-download{margin:0;border-color:#087ee0;background:#087ee0;color:#fff}

@media(max-width:1100px){.v5-toolbar{justify-content:flex-start;overflow-x:auto}.v5-formatbar{justify-content:flex-start}.v5-toolbar-spacer{display:none}.v5-pagebar{padding:0 14px}.v5-stage{padding-left:18px;padding-right:18px}.v5-page-right span{display:none}}
@media(max-width:760px){.v5-editor{grid-template-rows:auto auto 1fr}.v5-toolbar{min-height:58px;padding:6px 8px}.v5-tool{height:42px;padding:0 12px;font-size:14px}.v5-ico{font-size:19px}.v5-caret{height:42px}.v5-open,.v5-download{height:38px;font-size:13px}.v5-format-hint{display:none}.v5-pagebar{height:64px;grid-template-columns:1fr auto}.v5-pagebar>div:first-child{display:none}.v5-page-center{justify-self:start;overflow-x:auto;max-width:calc(100vw - 55px)}.v5-page-center>strong{font-size:22px;margin-right:8px}.v5-page-btn,.v5-insert{height:36px;padding:0 10px;font-size:14px}.v5-insert{margin-left:10px}.v5-stage{padding:8px 8px 55px}.v5-thumbs{position:absolute;right:0;top:0;bottom:0;z-index:30;width:115px;box-shadow:-5px 0 18px #0002}.v5-text-bubble{width:310px}.pdf-editor-v5-live .result{right:8px;bottom:8px}.pdf-editor-v5-live .status{left:8px;bottom:8px}}

/* V6 — screenshot-faithful PDF editor layout */
.pdf-editor-v5-live{background:#ececec!important}
.pdf-editor-v5-live .v6-editor{height:100vh;background:#ececec;grid-template-rows:108px 84px 1fr;overflow:hidden}
.pdf-editor-v5-live .v6-editor .v5-toolbar-wrap{height:108px;background:#f1f1f1;border:0;box-shadow:none;display:flex;align-items:center;justify-content:center;padding:0}
.pdf-editor-v5-live .v6-editor .v5-toolbar{width:auto;max-width:calc(100vw - 220px);min-height:48px;padding:0;justify-content:center;overflow:visible;border-radius:7px;filter:drop-shadow(0 0 0 rgba(0,0,0,0));}
.pdf-editor-v5-live .v6-editor .v5-nav,.pdf-editor-v5-live .v6-editor .v5-open,.pdf-editor-v5-live .v6-editor .v5-download,.pdf-editor-v5-live .v6-editor .v5-toolbar-spacer{display:none!important}
.pdf-editor-v5-live .v6-editor .v5-tool,.pdf-editor-v5-live .v6-editor .v5-caret{height:48px;background:#fff;border-color:#0787ef;color:#0574d8;font-size:17px;padding:0 18px;box-shadow:none}
.pdf-editor-v5-live .v6-editor .v5-tool:hover,.pdf-editor-v5-live .v6-editor .v5-tool.active,.pdf-editor-v5-live .v6-editor .v5-caret:hover{background:#edf7ff}
.pdf-editor-v5-live .v6-editor .v5-split-tool:first-of-type .v5-tool-main{border-radius:7px 0 0 7px}
.pdf-editor-v5-live .v6-editor .v5-toolbar>.v5-tool:last-of-type{border-radius:0 7px 7px 0}
.pdf-editor-v5-live .v6-editor .v5-ico{font-size:22px}
.pdf-editor-v5-live .v6-editor .v5-formatbar{display:none!important}
.pdf-editor-v5-live .v6-editor .v5-menu{top:52px;border-radius:6px;border-color:#c8d8e7;box-shadow:0 12px 26px rgba(30,54,77,.16);padding:7px}
.pdf-editor-v5-live .v6-editor .v6-text-menu{min-width:230px}
.pdf-editor-v5-live .v6-editor .v6-text-controls{border-top:1px solid #e8eef4;margin-top:5px;padding:9px 7px 4px;display:grid;gap:8px}
.pdf-editor-v5-live .v6-editor .v6-text-controls label{font-size:12px;color:#5e6c7a;display:flex;align-items:center;justify-content:space-between;gap:12px}
.pdf-editor-v5-live .v6-editor .v6-text-controls input[type=number]{width:72px;height:30px;border:1px solid #c8d8e7;border-radius:5px;padding:0 6px}
.pdf-editor-v5-live .v6-editor .v6-text-controls input[type=color]{width:48px;height:30px;border:1px solid #c8d8e7;border-radius:5px;background:#fff;padding:2px}
.pdf-editor-v5-live .v6-editor .v6-mini-format{width:34px;height:30px;border:1px solid #c8d8e7;background:#fff;color:#1e4e78;margin-right:5px;border-radius:4px;cursor:pointer}
.pdf-editor-v5-live .v6-editor .v6-mini-format.active{background:#e9f4ff;border-color:#1688ee;color:#0875dc}

.pdf-editor-v5-live .v6-editor .v5-pagebar{height:84px;background:#ececec;border:0;padding:0 56px;grid-template-columns:1fr auto 1fr}
.pdf-editor-v5-live .v6-editor .v5-page-center{height:48px;align-items:center}
.pdf-editor-v5-live .v6-editor .v5-page-center>strong{font-size:28px;line-height:1;color:#5ba9ec;margin-right:34px;font-weight:400}
.pdf-editor-v5-live .v6-editor .v5-page-btn,.pdf-editor-v5-live .v6-editor .v5-insert{height:42px;background:#fff;border-color:#168af1;color:#0875dc;font-size:19px}
.pdf-editor-v5-live .v6-editor .v5-insert{margin-left:28px;font-size:17px;padding:0 18px;border-radius:7px}
.pdf-editor-v5-live .v6-editor .v5-page-right{display:none!important}

.pdf-editor-v5-live .v6-editor .v5-workspace{background:#ececec;grid-template-columns:minmax(0,1fr) auto}
.pdf-editor-v5-live .v6-editor .v5-stage{padding:8px 96px 76px;overflow:auto;text-align:center}
.pdf-editor-v5-live .v6-editor .v5-surface{margin:0 auto;background:#fff;box-shadow:0 0 2px rgba(0,0,0,.16);border-radius:0}
.pdf-editor-v5-live .v6-editor .v5-surface:before{height:10px;background:#000;z-index:13}
.pdf-editor-v5-live .v6-editor .v5-source-text:hover{border-color:#198ae8;background:rgba(22,136,238,.07)}

.pdf-editor-v5-live .v6-editor .v5-text-bubble{width:365px;background:rgba(255,248,224,.80);border:0;border-radius:14px;padding:14px 14px 13px;box-shadow:0 8px 24px rgba(44,57,70,.12);grid-template-columns:minmax(0,1fr) auto;gap:10px;backdrop-filter:blur(2px)}
.pdf-editor-v5-live .v6-editor .v5-text-bubble textarea{min-height:46px;background:transparent;border:0;border-bottom:1px solid transparent;border-radius:0;padding:8px 2px;font-size:20px;line-height:1.2;color:#202020;box-shadow:none;resize:none;overflow:hidden}
.pdf-editor-v5-live .v6-editor .v5-text-bubble textarea:focus{border:0;border-bottom:1px solid #12b886;box-shadow:none}
.pdf-editor-v5-live .v6-editor .v5-text-bubble #v5ApplyText{height:56px;min-width:162px;border-radius:6px;background:#05b98b;font-size:20px;padding:0 16px}
.pdf-editor-v5-live .v6-editor .v5-text-bubble #v5ApplyText:hover{background:#04a97f}
.pdf-editor-v5-live .v6-editor .v5-bubble-x{display:none}

.pdf-editor-v5-live .v6-editor .v6-side-tools{position:fixed;z-index:10030;right:48px;top:46px;display:grid;width:62px;border:1px solid #168af1;border-radius:7px;overflow:hidden;background:#fff}
.pdf-editor-v5-live .v6-editor .v6-side-tools button{height:45px;border:0;border-bottom:1px solid #168af1;background:#fff;color:#0875dc;font-size:22px;cursor:pointer}
.pdf-editor-v5-live .v6-editor .v6-side-tools button:last-child{border-bottom:0}
.pdf-editor-v5-live .v6-editor .v6-side-tools button:hover{background:#eef7ff}
.pdf-editor-v5-live .v6-editor .v6-side-tools .v6-side-download{font-weight:700}

.pdf-editor-v5-live .v6-editor .v5-thumbs{width:148px;background:#f2f2f2;border-left:1px solid #cfd5da}
.pdf-editor-v5-live .v6-editor .v5-thumb{border-radius:3px}

@media(max-width:1200px){
 .pdf-editor-v5-live .v6-editor .v5-toolbar{max-width:calc(100vw - 96px);justify-content:flex-start;overflow-x:auto;border-radius:0}
 .pdf-editor-v5-live .v6-editor .v6-side-tools{right:10px;top:116px;width:46px}.pdf-editor-v5-live .v6-editor .v6-side-tools button{height:40px;font-size:18px}
 .pdf-editor-v5-live .v6-editor .v5-stage{padding-left:26px;padding-right:26px}
}
@media(max-width:760px){
 .pdf-editor-v5-live .v6-editor{grid-template-rows:64px 62px 1fr}
 .pdf-editor-v5-live .v6-editor .v5-toolbar-wrap{height:64px;justify-content:flex-start}
 .pdf-editor-v5-live .v6-editor .v5-toolbar{max-width:100vw;padding:0 7px}
 .pdf-editor-v5-live .v6-editor .v5-tool,.pdf-editor-v5-live .v6-editor .v5-caret{height:42px;font-size:14px;padding:0 12px}
 .pdf-editor-v5-live .v6-editor .v5-pagebar{height:62px;padding:0 8px;display:flex;justify-content:flex-start;overflow-x:auto}
 .pdf-editor-v5-live .v6-editor .v5-page-center>strong{font-size:22px;margin-right:10px}
 .pdf-editor-v5-live .v6-editor .v5-page-btn,.pdf-editor-v5-live .v6-editor .v5-insert{height:36px;font-size:14px;padding:0 10px}.pdf-editor-v5-live .v6-editor .v5-insert{margin-left:10px}
 .pdf-editor-v5-live .v6-editor .v5-stage{padding:7px 8px 64px}
 .pdf-editor-v5-live .v6-editor .v6-side-tools{right:7px;top:auto;bottom:12px;width:auto;display:flex;border-radius:8px}.pdf-editor-v5-live .v6-editor .v6-side-tools button{width:46px;border-bottom:0;border-right:1px solid #168af1}.pdf-editor-v5-live .v6-editor .v6-side-tools button:last-child{border-right:0}
 .pdf-editor-v5-live .v6-editor .v5-text-bubble{width:min(330px,calc(100vw - 24px))}.pdf-editor-v5-live .v6-editor .v5-text-bubble #v5ApplyText{min-width:135px;font-size:17px}
}
