body[data-page=pdf-editor] main{max-width:1220px;padding:0 24px;min-height:calc(100vh - 80px)}.pe-root{--pe-global-header:80px;color:#0b1230;font-size:12px}.pe-root button,.pe-root input,.pe-root select{font-family:var(--font-sans)}.pe-root button{cursor:pointer}.pe-root button:disabled{opacity:.38;cursor:default}.pe-root button:focus-visible,.pe-root select:focus-visible,.pe-root input:focus-visible{outline:2px solid #8aaeff;outline-offset:2px}.pe-root button img{display:block;object-fit:contain;flex-shrink:0}.pe-landing{text-align:center;padding:24px 0 40px}.pe-landing h1{font-size:42px;line-height:1.25;letter-spacing:-1.8px;font-weight:800;margin:0 0 4px;color:#0b1230}.pe-landing em{font-style:normal;color:#165dff}.pe-landing>p{font-size:14px;line-height:1.8;color:#627ca9;margin:0 0 17px}.pe-upload{width:289px;max-width:100%;margin:0 auto;padding:24px 26px 6px;background:transparent;transition:background .2s,box-shadow .2s}.pe-upload>button{width:100%;min-height:62px;padding:14px 8px;border:0;border-radius:10px;background:#3564f2;box-shadow:0 2px 5px #132c6b28;color:#fff;font-size:20px;font-weight:600;letter-spacing:-.4px}.pe-upload>small{display:block;font-size:11px;color:#4f6ab2;margin:8px 0 0;line-height:1.6}.pe-upload.drag{background:#e7efff;box-shadow:0 0 0 2px #165dff}.pe-upload.loading>button{animation:pe-opening 1.2s ease-in-out infinite}.pe-landing .pe-upload-status{font-size:12px;max-width:650px;margin:15px auto;color:#6d7e9c}
.pe-shell{height:clamp(560px,calc(100dvh - var(--pe-global-header) - 36px),880px);margin:18px auto 24px;border:1px solid #e2eaf6;border-radius:13px;background:#fff;box-shadow:0 7px 28px #5779af05;position:relative;overflow:hidden}.pe-topbar{height:62px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e7edf6;position:relative}.pe-location{font-size:11px;color:#7f93b2;white-space:nowrap}.pe-document-title{position:absolute;left:50%;transform:translateX(-50%);top:14px;text-align:left;max-width:260px}.pe-document-title b{font-size:12px;line-height:1.4;font-weight:700;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pe-document-title small{font-size:8px;color:#7c8da7;display:block;margin-top:4px;line-height:1.4}.pe-document-title small:before{content:'';display:inline-block;background:#8ca9b9;width:4px;height:4px;border-radius:50%;margin-right:5px;vertical-align:2px}.pe-document-title small.dirty:before{background:#e8a22e}.pe-top-actions{display:flex;align-items:center;gap:7px;margin-left:auto}.pe-top-actions button{border:1px solid #dfe7f2;border-radius:7px;height:34px;display:inline-flex;gap:7px;align-items:center;justify-content:center;padding:8px 12px;background:#fff;color:#253958;font-size:10px;font-weight:700;white-space:nowrap}.pe-top-actions .pe-icon-button{width:30px;padding:3px;border:0}.pe-top-actions .pe-icon-button img{width:25px;height:25px}.pe-top-actions button:hover{background:#f3f7ff}.pe-top-actions button img{width:22px;height:22px}.pe-top-actions .pe-export-button{background:#165dff;color:white;border-color:#165dff;min-width:120px}.pe-top-actions .pe-export-button:hover{background:#104cdb}.pe-top-actions .pe-open-button{margin-left:7px}
.pe-workspace{height:calc(100% - 62px);display:grid;grid-template-columns:150px minmax(0,1fr) 220px}.pe-sidebar{min-height:0;background:#fbfcff;display:flex;flex-direction:column;padding:16px 12px 0}.pe-pages-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 2px}.pe-pages-heading b{font-size:12px;line-height:1.5}.pe-pages-heading b span{font-size:10px;color:#667da5;font-weight:400;margin-left:4px}.pe-pages-heading button{width:24px;height:24px;border:0;border-radius:6px;background:#edf3ff;display:grid;place-items:center;padding:0}.pe-pages-heading button img{width:25px;height:25px}.pe-sidebar>p{font-size:8px;color:#8395b2;margin:10px 2px 13px}.pe-thumbnails{flex:1;min-height:0;overflow-y:auto;padding:3px 3px 0;scrollbar-width:thin;scrollbar-color:#c6d4e9 transparent}.pe-thumb{display:block;width:100%;border:0;background:transparent;padding:2px 0;margin:0 0 8px;text-align:center;cursor:grab!important;border-radius:5px;color:#8296b6}.pe-thumb>img{display:block;width:78px;max-width:100%;height:auto;aspect-ratio:612/792;object-fit:contain;background:white;border:1px solid #dce5f2;border-radius:3px;margin:auto}.pe-thumb.active>img{outline:2px solid #7da1ff;outline-offset:3px;border-color:#80a3ff}.pe-thumb>span{font-size:9px;line-height:1.2;display:block;margin-top:5px}.pe-thumb.active>span{color:#165dff;font-weight:700}.pe-thumb.drag-over{background:#e5edff}.pe-page-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;border-top:1px solid #e6edf8;margin-top:10px;padding:15px 0 17px}.pe-page-actions button{display:flex;flex-direction:column;align-items:center;gap:6px;padding:0;border:0;background:transparent;color:#7b91b1;font-size:8px;min-width:0}.pe-page-actions img{width:25px;height:25px}.pe-page-actions small{font-size:8px}.pe-danger{color:#e94f71!important}
.pe-center{display:grid;grid-template-rows:70px 29px minmax(0,1fr) 42px;min-width:0;min-height:0;background:white;position:relative}.pe-toolbar{display:flex;gap:4px;align-items:center;padding:7px 12px;position:relative;border-bottom:1px solid #edf2f8;background:white;min-width:0}.pe-toolbar>button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-width:49px;width:55px;height:55px;padding:5px;border:0;border-radius:8px;background:white;color:#667d9f}.pe-toolbar>button>img{width:28px;height:28px}.pe-toolbar>button>small{font-size:8px;line-height:1.25;white-space:nowrap}.pe-toolbar>button:hover{background:#f2f6ff}.pe-toolbar>button.active{background:#eaf2ff;color:#165dff;font-weight:700}.pe-toolbar>button[data-pe-mode=text]:not(.active)>img{filter:grayscale(1);opacity:.7}.pe-more-menu{position:fixed;z-index:200;width:190px;padding:6px;background:#fff;border:1px solid #dfe8f8;border-radius:9px;box-shadow:0 8px 25px #233e7026}.pe-more-menu button{display:block;width:100%;padding:10px 8px;text-align:left;border:0;border-radius:5px;background:white;color:#425d87;font-size:10px}.pe-more-menu button:hover{background:#edf4ff}.pe-hint{display:flex;gap:12px;align-items:center;padding:0 20px;background:#e9eef6;color:#7a8eac;font-size:8px;min-width:0;white-space:nowrap;overflow:hidden}.pe-hint b{font-size:8px;color:#5b749a}.pe-hint span{overflow:hidden;text-overflow:ellipsis}.pe-viewport{overflow:auto;min-width:0;min-height:0;padding:12px 22px 20px;background:#e9eef6;scrollbar-width:thin;scrollbar-color:#c0cee1 #e9eef6}.pe-paper{position:relative;margin:0 auto;background:white;border-radius:2px;box-shadow:3px 3px 0 #cbd5e4;flex-shrink:0}.pe-paper>img{width:100%;height:100%;display:block;pointer-events:none;user-select:none}.pe-paper>svg{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair;z-index:1}.pe-paper[data-mode=text]>svg,.pe-paper[data-mode=select]>svg{cursor:text}.pe-paper svg rect[data-pe-text]:hover{fill:#165dff08;stroke:#b7caff;stroke-width:.5}.pe-paper svg rect[data-pe-image]:hover{fill:#165dff08;stroke:#8dafff;stroke-width:1}.pe-text-cover{position:absolute;z-index:2;background:white;pointer-events:none}.pe-inline-wrap{position:absolute;z-index:4;outline:1px solid #7294ff;background:white;min-width:0}.pe-inline{width:100%;height:100%;margin:0;padding:0;white-space:pre-wrap;overflow-wrap:break-word;outline:0;border:0;background:white;min-width:0}.pe-inline:empty:before{content:'Type here';color:#9bb1da;pointer-events:none}.pe-resize-handle{position:absolute;width:6px;height:6px;border:1px solid #7294ff;background:white;z-index:5}.pe-nw{left:-3px;top:-3px;cursor:nwse-resize}.pe-ne{right:-3px;top:-3px;cursor:nesw-resize}.pe-sw{left:-3px;bottom:-3px;cursor:nesw-resize}.pe-se{right:-3px;bottom:-3px;cursor:nwse-resize}.pe-image-selection{position:absolute;outline:1px solid #7294ff;z-index:3;pointer-events:none}
.pe-bottom{display:flex;align-items:center;gap:12px;padding:6px 16px;background:white;min-width:0;color:#7a8fae;font-size:9px}.pe-bottom>span:first-child{white-space:nowrap}.pe-status{font-size:8px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1;color:#7188a9}.pe-status.error{color:#d74a66}.pe-zoom{display:flex;gap:6px;align-items:center;margin-left:auto;white-space:nowrap}.pe-zoom button{height:25px;min-width:22px;display:inline-flex;align-items:center;justify-content:center;gap:2px;border:0;background:white;padding:0;color:#667fa6;font-size:8px}.pe-zoom img{width:25px;height:25px}.pe-zoom select{height:26px;width:66px;border:1px solid #dfe8f6;border-radius:6px;background:white;color:#627ca5;font-size:9px;padding:3px 6px}.pe-zoom #pe-fit{margin-left:8px;gap:3px}.pe-zoom #pe-fit>img{width:23px;height:23px}#pe-properties-toggle{display:none}
.pe-properties{display:flex;flex-direction:column;min-width:0;min-height:0;padding:19px 17px 0;background:white}.pe-properties-heading{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid #e6edf7;padding:0 0 17px}.pe-properties-heading h2{font-size:12px;line-height:1.4;margin:0;font-weight:700;color:#18213c}.pe-properties-heading p{font-size:8px;color:#8093b0;margin:11px 0 0}.pe-properties-heading button{display:none}.pe-properties-scroll{min-height:0;overflow-y:auto;flex:1;padding:0 0 10px;scrollbar-width:thin}.pe-property{display:block;margin:19px 0 0;font-size:9px;font-weight:700;line-height:1.5;color:#3b5177}.pe-property>select,.pe-property>input:not([type=color]){display:block;width:100%;min-height:34px;background:white;border:1px solid #dce5f3;border-radius:7px;font-size:10px;color:#647da6;padding:8px 9px;margin:7px 0 0}.pe-type-row{display:grid;grid-template-columns:minmax(0,1fr) repeat(3,30px);gap:5px;margin-top:7px}.pe-type-row>input{min-width:0;width:100%;border:1px solid #dce5f3;border-radius:6px;padding:7px;font-size:10px;color:#647da6;background:white}.pe-type-row button,.pe-align-row button{height:34px;border:1px solid #dce5f3;border-radius:6px;background:white;display:grid;place-items:center;padding:3px;color:#647da6}.pe-type-row button img,.pe-align-row button img{width:25px;height:25px}.pe-type-row button.active,.pe-align-row button.active{background:#eaf2ff;border-color:#dce8ff}.pe-color-field{display:flex;align-items:center;gap:5px;border:1px solid #dce5f3;border-radius:7px;min-height:34px;margin-top:7px;padding:3px 6px;background:white}.pe-color-field input[type=color]{width:24px;height:25px;padding:0;background:transparent;border:0;flex-shrink:0}.pe-color-field input[type=text],.pe-color-field input:not([type]){width:100%;min-width:0;border:0;padding:4px 1px;background:white;font-size:9px;color:#647da6;font-weight:500;outline:0}.pe-align-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:7px}.pe-property>input[type=color]{display:block;margin-top:7px;width:100%;height:35px;background:white;border:1px solid #dce5f3;border-radius:6px;padding:4px}.pe-confidence{margin-top:27px;border-radius:8px;background:#f5f8fd;padding:12px;color:#6e86a8;font-size:8px;line-height:1.8}.pe-confidence b{color:#435b81;font-size:9px}.pe-confidence p{margin:5px 0 0}.pe-document-tools{border-top:1px solid #e6edf7;margin-top:14px;padding-bottom:16px}.pe-document-tools summary{list-style:none;display:flex;justify-content:space-between;align-items:flex-start;gap:6px;padding:17px 0 0;cursor:pointer}.pe-document-tools summary::-webkit-details-marker{display:none}.pe-document-tools b{font-size:11px;display:block;line-height:1.4}.pe-document-tools small{display:block;font-size:8px;color:#788eaf;margin-top:6px}.pe-document-tools summary>img{width:17px;height:17px}.pe-document-tools[open] summary>img{transform:rotate(90deg)}.pe-document-tools>div{display:grid;gap:4px;padding-top:12px}.pe-document-tools button,#pe-image-actions button{display:block;width:100%;border:1px solid #e1e9f5;border-radius:6px;background:#f9fbff;color:#536e97;padding:8px;font-size:10px;text-align:left}#pe-image-actions{display:grid;gap:7px;margin-top:20px}
.pe-sign-dialog{max-width:520px;width:calc(100% - 32px);border:1px solid #dce7f7;border-radius:14px;padding:24px;background:white;color:#253958;box-shadow:0 20px 70px #1b345a2e}.pe-sign-dialog::backdrop{background:#0c23464a}.pe-sign-dialog form{margin:0}.pe-dialog-title{display:flex;align-items:center;justify-content:space-between}.pe-dialog-title h2{font-size:20px;margin:0;letter-spacing:-.5px}.pe-dialog-title button{border:0;background:none;font-size:26px;color:#6c81a1}.pe-sign-dialog p{font-size:12px;color:#6b7fa3;line-height:1.7}.pe-sign-dialog canvas{display:block;width:100%;height:160px;touch-action:none;border:1px dashed #b9cef3;border-radius:8px;background:#fbfdff}.pe-sign-dialog input{width:100%;margin-top:14px;border:1px solid #dce5f4;border-radius:7px;padding:11px;font-size:13px}.pe-dialog-actions{display:flex;justify-content:space-between;margin-top:18px;gap:15px}.pe-dialog-actions button{border:1px solid #dce5f4;background:white;color:#60799f;padding:10px 16px;border-radius:7px;font-size:12px}.pe-dialog-actions #pe-sign-insert{background:#165dff;color:white;border-color:#165dff}
@media(max-width:1100px){body[data-page=pdf-editor] main{padding:0 16px}.pe-workspace{grid-template-columns:120px minmax(0,1fr) 200px}.pe-sidebar{padding:13px 8px 0}.pe-properties{padding:17px 13px 0}.pe-toolbar{gap:2px;padding:6px}.pe-toolbar>button{width:49px;min-width:46px}.pe-document-title{left:43%;max-width:200px}.pe-toolbar>button>small{font-size:7px}.pe-hint{padding:0 13px;font-size:7px}.pe-page-actions small{font-size:7px}.pe-type-row{grid-template-columns:minmax(0,1fr) repeat(3,27px);gap:4px}.pe-type-row button img{width:23px;height:23px}}
@media(max-width:900px){.pe-workspace{grid-template-columns:100px minmax(0,1fr)}.pe-properties{display:none;position:absolute;top:62px;bottom:42px;right:0;width:235px;z-index:12;box-shadow:-10px 0 30px #28466b1a;border-left:1px solid #e1e9f6}.pe-properties.mobile-open{display:flex}.pe-properties-heading button{display:block;border:0;background:none;color:#5e779c;font-size:22px;padding:0 3px;height:25px}.pe-zoom #pe-properties-toggle{display:block;font-size:9px;border:1px solid #dfe8f6;border-radius:5px;padding:4px 7px}.pe-thumb>img{width:65px}.pe-sidebar>p{font-size:7px}.pe-document-title{left:37%;max-width:165px}.pe-page-actions{gap:0}.pe-page-actions small{font-size:6px}}
@media(max-width:600px){body[data-page=pdf-editor] main{padding:0 12px}.pe-shell{margin-top:14px;min-height:560px;border-radius:10px}.pe-topbar{height:91px;padding:0 11px}.pe-location{display:none}.pe-document-title{left:13px;top:11px;transform:none;max-width:calc(100% - 26px)}.pe-document-title b{font-size:11px}.pe-document-title small{font-size:8px;margin-top:3px}.pe-top-actions{position:absolute;bottom:8px;left:10px;right:10px;justify-content:flex-end;gap:5px}.pe-top-actions .pe-icon-button{width:27px}.pe-top-actions button{font-size:9px;height:31px;padding:6px 9px;gap:4px}.pe-top-actions button img{width:20px;height:20px}.pe-top-actions .pe-export-button{min-width:100px}.pe-top-actions .pe-open-button{margin-left:6px}.pe-workspace{height:calc(100% - 91px);grid-template-columns:72px minmax(0,1fr)}.pe-sidebar{padding:12px 5px 0}.pe-pages-heading{gap:3px;padding:0}.pe-pages-heading b{font-size:10px}.pe-pages-heading b span{font-size:8px;margin-left:2px}.pe-pages-heading button{width:19px;height:19px}.pe-pages-heading button img{width:22px;height:22px}.pe-sidebar>p{font-size:6px;line-height:1.5;margin:8px 0 11px}.pe-thumb>img{width:43px}.pe-thumb>span{font-size:8px;margin-top:6px}.pe-page-actions{padding:11px 0 13px;grid-template-columns:repeat(3,minmax(0,1fr))}.pe-page-actions img{width:22px;height:22px}.pe-page-actions small{font-size:5px}.pe-center{grid-template-rows:62px 29px minmax(0,1fr) 59px}.pe-toolbar{overflow-x:auto;overflow-y:hidden;padding:5px;scrollbar-width:none;gap:2px}.pe-toolbar::-webkit-scrollbar{display:none}.pe-toolbar>button{height:51px;width:45px;min-width:45px}.pe-toolbar>button>img{width:26px;height:26px}.pe-toolbar>button>small{font-size:7px}.pe-hint{gap:7px;padding:0 10px;font-size:6px}.pe-hint b{font-size:6px}.pe-viewport{padding:10px 13px 14px}.pe-bottom{padding:5px 8px;flex-wrap:wrap;gap:2px;font-size:8px}.pe-status{display:none}.pe-zoom{flex-basis:100%;width:100%;gap:3px;justify-content:flex-end}.pe-zoom button{min-width:20px;font-size:7px}.pe-zoom img{width:22px;height:22px}.pe-zoom select{width:53px;height:23px;font-size:8px;padding:2px 4px}.pe-zoom #pe-fit{margin-left:2px}.pe-zoom #pe-fit>span{display:none}.pe-zoom #pe-fit>img{width:21px;height:21px}.pe-zoom #pe-properties-toggle{font-size:8px;padding:3px 4px}.pe-properties{top:91px;bottom:59px;width:225px;max-width:calc(100% - 35px)}.pe-landing{padding-top:26px}.pe-landing h1{font-size:37px}.pe-landing>p{font-size:13px;line-height:1.7}.pe-upload{width:270px}.pe-upload>button{font-size:18px;min-height:58px}.pe-sign-dialog{padding:18px}.pe-sign-dialog canvas{height:140px}}
@keyframes pe-opening{0%,100%{opacity:1}50%{opacity:.6}}@media(prefers-reduced-motion:reduce){.pe-upload.loading>button{animation:none}.pe-upload{transition:none}}

/* --- Added objects: drawings, shapes, highlights, images, signatures and notes ---------------
   These live on the client until they are written into the PDF, so each one can still be moved,
   resized and removed. The layer itself never takes pointer events; hit testing happens against
   the object rectangles in the pointer handler, which keeps drawing over them working. */
.pe-objects{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2}
.pe-object.selected{outline:none}
.pe-object-selection{position:absolute;z-index:6;outline:1.5px solid #165dff;background:#165dff0a;cursor:move;touch-action:none}
.pe-object-delete{position:absolute;bottom:100%;right:-6px;margin-bottom:10px;width:26px;height:26px;display:grid;place-items:center;padding:0;border:1px solid #d9e3f5;border-radius:50%;background:white;color:#c0392b;line-height:0;cursor:pointer;box-shadow:0 2px 7px #16254a24;z-index:9;touch-action:manipulation}
.pe-object-delete::before{content:'';width:11px;height:11px;background:currentColor;-webkit-mask:var(--pe-cross) center/11px 11px no-repeat;mask:var(--pe-cross) center/11px 11px no-repeat}
.pe-object-delete:hover{background:#fff1ef;border-color:#f0b8ae}
.pe-object-delete:focus-visible{outline:2px solid #165dff;outline-offset:2px}
.pe-move-handle{position:absolute;left:50%;top:-15px;transform:translateX(-50%);width:42px;height:15px;border:1px solid #7294ff;border-bottom:0;border-radius:5px 5px 0 0;background:white;cursor:move;touch-action:none;z-index:7}
.pe-move-handle::after{content:'';position:absolute;inset:5px 10px;border-top:1px solid #9db4ff;border-bottom:1px solid #9db4ff}

/* 6px corners are unusable with a finger: keep the dot small but give it a real hit area. */
.pe-resize-handle{touch-action:none}
.pe-resize-handle::before{content:'';position:absolute;inset:-9px}
/* A small object can be narrower than the button itself, and right-aligning it then leaves the
   button hanging off both edges. Centring over the box reads correctly at every size. The text
   box keeps its × to the side, because its move bar already occupies the centre. */
.pe-object-selection .pe-object-delete{right:auto;left:50%;transform:translateX(-50%)}
.pe-object-selection .pe-resize-handle{position:absolute;width:10px;height:10px;border:1.5px solid #165dff;border-radius:2px;background:white;z-index:7}
.pe-object-selection .pe-nw{left:-6px;top:-6px;cursor:nwse-resize}
.pe-object-selection .pe-ne{right:-6px;top:-6px;cursor:nesw-resize}
.pe-object-selection .pe-sw{left:-6px;bottom:-6px;cursor:nesw-resize}
.pe-object-selection .pe-se{right:-6px;bottom:-6px;cursor:nwse-resize}

.pe-comment-dialog textarea{width:100%;box-sizing:border-box;padding:11px 13px;border:1px solid #dbe5f5;border-radius:9px;font:inherit;font-size:15px;line-height:1.6;color:#17213c;resize:vertical}
.pe-comment-dialog textarea:focus-visible{outline:2px solid #165dff;outline-offset:1px;border-color:#165dff}

@media (max-width:780px),(pointer:coarse){
  .pe-resize-handle{width:14px;height:14px}
  .pe-object-selection .pe-resize-handle{width:16px;height:16px}
  .pe-object-selection .pe-nw,.pe-object-selection .pe-ne{top:-9px}
  .pe-object-selection .pe-sw,.pe-object-selection .pe-se{bottom:-9px}
  .pe-object-selection .pe-nw,.pe-object-selection .pe-sw{left:-9px}
  .pe-object-selection .pe-ne,.pe-object-selection .pe-se{right:-9px}
  .pe-resize-handle::before{inset:-13px}
  .pe-move-handle{height:20px;width:52px;top:-20px}
}


/* The cross is drawn from a mask rather than a text glyph: a '×' character sits on the text
   baseline, which is what pushed it off centre inside the round button. It also sits above the
   box instead of on its corner, so it stays clear of small boxes. */
:root{--pe-cross:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.5 1.5l9 9M10.5 1.5l-9 9' stroke='black' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E")}

/* Properties for whatever is selected on the page. The surrounding panel is a compact design
   built at 9-10px, so these match that scale instead of introducing a second, larger one. */
#pe-selected-properties{display:block}
.pe-size-row{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:19px}
.pe-size-row .pe-property{margin:0}
.pe-checkbox{display:flex;align-items:center;gap:8px;margin-top:17px;cursor:pointer;font-size:9px;font-weight:700;line-height:1.4;color:#3b5177}
/* .pe-property>input stretches every field to full width and 34px tall, which turned this
   checkbox into a large blue square. Outrank it rather than loosening the generic rule. */
.pe-property.pe-checkbox>input[type=checkbox]{display:inline-block;width:13px;height:13px;min-height:0;margin:0;padding:0;flex:none;accent-color:#165dff}
#pe-obj-note{display:block;width:100%;min-height:62px;margin-top:7px;padding:8px 9px;border:1px solid #dce5f3;border-radius:7px;background:white;font-family:inherit;font-size:10px;line-height:1.6;color:#647da6;resize:vertical}
.pe-obj-align-row{display:block;margin-top:19px}
.pe-obj-align-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:7px}
.pe-obj-align-buttons button{height:31px;padding:0;border:1px solid #dce5f3;border-radius:6px;background:white;font-family:inherit;font-size:9px;font-weight:600;color:#647da6;cursor:pointer}
.pe-obj-align-buttons button:hover{background:#eaf2ff;border-color:#dce8ff;color:#165dff}
.pe-panel-button{display:block;width:100%;margin-top:9px;padding:8px;border:1px solid #e1e9f5;border-radius:6px;background:#f9fbff;font-family:inherit;font-size:10px;color:#536e97;text-align:left;cursor:pointer}
.pe-panel-button:hover{background:#eef4ff;border-color:#cfdef5}
.pe-panel-button.pe-danger{color:#c0392b;border-color:#f2d8d2;background:#fff8f7}
.pe-panel-button.pe-danger:hover{background:#fff0ed;border-color:#e8bcb2}
.pe-panel-note{margin:7px 0 0;font-size:8px;line-height:1.7;color:#8093b0}
#pe-obj-image-actions{display:block}

/* The page buttons act on the current page, which "Rotate / Duplicate / Delete" never said. */
.pe-page-actions-title{display:block;border-top:1px solid #e6edf8;margin-top:10px;padding-top:14px;font-size:9px;font-weight:700;line-height:1.4;color:#5b749a}
.pe-page-actions{border-top:0;margin-top:0;padding-top:9px}
.pe-page-actions button small{text-align:center}

/* Select is a pointing tool; the text I-beam belonged only to the text tool. */
.pe-paper[data-mode=select]>svg{cursor:default}

@media (max-width:780px),(pointer:coarse){
  .pe-object-delete{width:32px;height:32px;right:-8px;margin-bottom:12px}
  .pe-object-delete::before{width:13px;height:13px;-webkit-mask-size:13px 13px;mask-size:13px 13px}
  .pe-obj-align-buttons button{height:38px}
  .pe-panel-button{padding:11px 8px}
}
