body[data-tool="edit-pdf"] .tool-main{max-width:1390px}
#pdf-studio{--st-line:#d6dfe9;--st-blue:#204ed4;--st-ink:#1d2d44;color:var(--st-ink);border:1px solid var(--st-line);border-radius:16px;overflow:hidden;background:white;box-shadow:0 8px 28px #192f5410}
#pdf-studio [hidden]{display:none!important}
#pdf-studio button,#pdf-studio select,#pdf-studio input,#pdf-studio textarea{font:inherit}
#pdf-studio button{appearance:none;cursor:pointer;border:1px solid var(--st-line);background:white;color:#21354f;border-radius:8px;padding:8px 11px;font-size:.9rem;line-height:1.35;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:7px}
#pdf-studio button:hover{background:#eef3ff;border-color:#aabce5}
#pdf-studio button:focus-visible,#pdf-studio :is(input,textarea,select,canvas,div):focus-visible{outline:3px solid #6596ff;outline-offset:2px}
#pdf-studio button:disabled{opacity:.44;cursor:default}
#pdf-studio .st-primary{background:var(--st-blue);color:white;border-color:var(--st-blue)}
#pdf-studio button svg{width:16px;height:16px}
#pdf-studio .studio-start{min-height:270px;display:flex;align-items:center;justify-content:space-between;padding:32px clamp(24px,6vw,88px);gap:30px;background:linear-gradient(104deg,#f8faff,#f2f6fe 75%,#e5edfc)}
.studio-start h2{font-size:clamp(1.7rem,3vw,2.6rem);letter-spacing:-.045em;margin:0 0 8px}.studio-start p{color:#53627b;margin:0 0 22px}.studio-start small{color:#57647b}.studio-start-buttons{display:flex;gap:8px;margin:0 0 12px}.studio-sheet-demo{position:relative;margin-right:5%}.demo-page{background:white;width:150px;height:175px;border:1px solid #d4dfec;border-radius:3px;box-shadow:6px 8px 0 #cbd8f1;transform:rotate(5deg);padding:20px 15px}.demo-page i,.demo-page b{display:block;width:50%;height:3px;background:#d5deea;margin:7px 0}.demo-page b{width:92%}.demo-page b+b{width:70%}.demo-page strong{font-size:16px}.demo-page span{display:inline-block;font-size:10px;background:#fff2a6;color:#263750;margin:15px 0 3px}.demo-pen{position:absolute;right:-12px;bottom:19px;width:31px;height:31px;background:#2553d5;color:white;display:grid;place-items:center;border-radius:8px;transform:rotate(-6deg)}.demo-pen svg{width:17px}
.studio-bar,.studio-tools,.studio-navigation,.studio-file-actions,.studio-file-title{display:flex;align-items:center;gap:7px}.studio-bar{justify-content:space-between;flex-wrap:wrap;padding:12px 15px}.studio-file-title{min-width:0}.studio-file-title svg{width:20px;color:var(--st-blue)}.studio-file-title strong{max-width:min(330px,70vw);text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.studio-tools{gap:4px;flex-wrap:wrap;border-block:1px solid var(--st-line);padding:8px 12px;background:#f7f9fd}#pdf-studio .studio-tools button{border-color:transparent;background:transparent;font-size:.84rem;padding:6px 9px}#pdf-studio .studio-tools button[aria-pressed="true"]{background:#e4ecff;border-color:#b7cafa;color:#1b45b1}
.studio-desk{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,280px)}.studio-view{min-width:0;background:#e9edf4}.studio-navigation{padding:8px 12px;font-size:.85rem;border-bottom:1px solid var(--st-line);background:#f4f6fa}.studio-navigation label{display:flex;align-items:center;gap:6px}.studio-navigation .studio-zoom{margin-left:auto}#pdf-studio .studio-navigation button{padding:3px 10px;font-size:1.1rem}#pdf-studio .studio-navigation input{width:56px}#pdf-studio .studio-navigation :is(input,select){padding:3px 5px}
.studio-scroll{padding:18px;overflow:auto;max-height:76vh;min-height:280px;background:radial-gradient(#cbd4e3 .75px,transparent .8px),#eaf0f6;background-size:12px 12px}#studio-paper{position:relative;width:100%;max-width:770px;margin:auto;background:white;box-shadow:0 3px 14px #1b315c29;line-height:0;cursor:crosshair}#studio-canvas canvas{display:block;width:100%;height:auto}#studio-marker{pointer-events:none;box-sizing:border-box;position:absolute;outline:1.5px dashed #285fd7;background:#638adc18;min-height:10px;min-width:10px}#studio-marker:before{content:'';position:absolute;left:-4px;top:-4px;width:7px;height:7px;background:#2760dc;box-shadow:0 0 0 1px white}
.studio-inspector{border-left:1px solid var(--st-line);padding:16px;min-width:0}.studio-inspector h2{margin:0 0 14px;font-size:1.12rem}.studio-inspector label{display:block;font-size:.82rem;font-weight:600;margin:8px 0;color:#334563}.studio-inspector :is(input,select,textarea),.studio-navigation :is(input,select){min-width:0;display:block;width:100%;box-sizing:border-box;border:1px solid #bcc9dc;border-radius:6px;background:#fff;color:#172a43;padding:6px 8px;margin-top:3px;font-size:.88rem!important}
.studio-inspector :is(input[type=checkbox],input[type=color]){width:auto}.studio-inspector textarea{resize:vertical;min-height:54px}.studio-inspector p{font-size:.8rem;color:#55647c;line-height:1.45;margin:9px 0}.studio-pair{display:grid;grid-template-columns:1fr 1fr;gap:9px}.studio-inspector #studio-apply{width:100%;margin-top:9px}#studio-ink{width:100%;height:92px;border:1px dashed #9bb0ce;border-radius:7px;touch-action:none;background:#fff}#studio-status{font-size:.86rem;color:#435672;padding:8px 15px;border-top:1px solid var(--st-line)}#studio-status:empty{display:none}#studio-status[data-error=true]{color:#9e2732;background:#fff3f2}.studio-file-actions{flex-wrap:wrap}.studio-recipe{padding-left:1.35em;font-size:.8rem}.studio-start.dragging{outline:3px dashed #4269d3;outline-offset:-5px}
@media(max-width:720px){.studio-desk{grid-template-columns:1fr}.studio-inspector{border-left:0;border-top:1px solid var(--st-line)}.studio-scroll{max-height:49vh;min-height:160px}.studio-bar{padding:8px 10px}.studio-sheet-demo{display:none}#pdf-studio .studio-start{min-height:235px}.studio-file-actions{gap:4px}#pdf-studio .studio-file-actions button{font-size:.76rem;padding:6px}.studio-tools{padding:5px}.studio-navigation{padding:6px}.studio-navigation .studio-zoom{font-size:.8rem}.studio-inspector{padding:12px}#studio-work .studio-tools button{font-size:.78rem;padding:5px 7px}}
#studio-runs{position:absolute;inset:0;pointer-events:none}#pdf-studio #studio-runs button{position:absolute;pointer-events:auto;border:1px dashed #7193cf;background:#4175d50a;border-radius:1px;padding:0;min-height:2px;min-width:2px;cursor:text}#pdf-studio #studio-runs button:hover,#pdf-studio #studio-runs button.selected{border-color:#1648b5;background:#4270df24}#studio-marker.text-preview{white-space:pre;line-height:1.2;max-width:100%;overflow:hidden;background:#fff5}
#studio-layer-hit{position:absolute;inset:0;pointer-events:none}
#pdf-studio .layer-hit{position:absolute;pointer-events:auto;touch-action:none;background:transparent;border:1px solid transparent;border-radius:1px;min-width:5px;min-height:5px;padding:0;box-sizing:border-box;cursor:pointer}
#pdf-studio .layer-hit:hover{background:#3456be0c;border:1px dashed #6a83bc}
#pdf-studio .layer-hit.picked{background:#527be915;border:1.5px solid #365bc6;cursor:move}
#pdf-studio .layer-grip{position:absolute;width:12px;height:12px;right:-5px;bottom:-5px;background:#fff;border:2px solid #365bc6;cursor:nwse-resize;border-radius:2px}
#pdf-studio .layer-count{font-size:.82rem;color:#51637c;margin:0 0 10px}
#pdf-studio .layer-font{font-family:monospace;overflow-wrap:anywhere}
#pdf-studio #layer-remove{color:#9e3442;font-size:.8rem}
#pdf-studio:not(:has(#studio-layer-hit[hidden])) #studio-paper{cursor:default}
