.pe-wrap{max-width:1100px;margin:0 auto}
.pe-toolbar{position:sticky;top:0;z-index:30;background:#1e3c72;color:#fff;border-radius:10px;padding:8px;display:flex;flex-wrap:wrap;gap:6px;align-items:center;box-shadow:0 2px 8px rgba(0,0,0,.25)}
.pe-toolbar button,.pe-toolbar label.btn{background:#2d5aa8;color:#fff;border:0;border-radius:8px;padding:8px 11px;cursor:pointer;font-size:14px;white-space:nowrap}
.pe-toolbar button:disabled{opacity:.45;cursor:not-allowed}
.pe-toolbar button.active{background:#00aaff;outline:2px solid #fff}
.pe-toolbar .sep{width:1px;height:26px;background:rgba(255,255,255,.3);margin:0 4px}
.pe-toolbar input[type=number]{width:58px;padding:6px;border-radius:6px;border:0}
.pe-toolbar input[type=color]{width:34px;height:32px;border:0;padding:0;border-radius:6px;background:none}
.pe-toolbar select{padding:6px;border-radius:6px;border:0}
.pe-hint{font-size:13px;color:#456;margin:8px 2px}
#pePages{margin-top:14px;display:flex;flex-direction:column;align-items:center;gap:18px}
.pe-page{position:relative;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.3);max-width:100%}
.pe-page canvas{display:block}
.pe-head{width:100%;display:flex;gap:6px;align-items:center;justify-content:space-between;font-size:13px;margin-bottom:4px}
.pe-head button{border:0;background:#eef6ff;color:#1e3c72;border-radius:6px;padding:4px 8px;cursor:pointer}
.pe-overlay{position:absolute;left:0;top:0;right:0;bottom:0}
.pe-obj{position:absolute;box-sizing:border-box}
.pe-obj.sel{outline:2px dashed #00aaff}
.pe-text{white-space:pre;line-height:1.2;font-family:Helvetica,Arial,sans-serif;min-width:20px;padding:0;outline:none;cursor:text}
.pe-drag{position:absolute;left:-12px;top:-12px;width:20px;height:20px;border-radius:50%;background:#00aaff;color:#fff;font-size:12px;line-height:20px;text-align:center;cursor:move;touch-action:none;display:none;z-index:5}
.pe-rs{position:absolute;right:-9px;bottom:-9px;width:16px;height:16px;border-radius:3px;background:#00aaff;cursor:nwse-resize;touch-action:none;display:none;z-index:5}
.pe-obj.sel .pe-drag,.pe-obj.sel .pe-rs{display:block}
.pe-obj.nors .pe-rs{display:none!important}
.pe-ink{position:absolute;left:0;top:0;pointer-events:none;overflow:visible}
.pe-status{margin:10px 0;font-size:14px;color:#1a5276;min-height:20px}
.pe-drop{border:2px dashed #00aaff;border-radius:14px;padding:40px 16px;text-align:center;background:rgba(0,170,255,.06);cursor:pointer}
.pe-drop.drag{background:rgba(0,170,255,.18)}
.pe-drop input{display:none}
.pe-obj[data-type="text"]{min-width:20px}
.pe-obj[data-type="text"] .pe-text{display:block}
/* undo the site-wide full-width form controls inside the editor */
.pe-toolbar button,.pe-toolbar select,.pe-toolbar input,.pe-toolbar label,.pe-head button{width:auto;margin:0;transform:none}
.pe-toolbar label{display:inline-flex;align-items:center;gap:5px;font-size:14px;color:#fff;margin:0}
.pe-toolbar input[type=number]{width:62px;padding:6px}
.pe-toolbar input[type=color]{width:38px;height:34px;padding:0}
.pe-toolbar input[type=checkbox]{width:auto;padding:0}
.pe-toolbar button:hover,.pe-head button:hover{transform:none}
.pe-head button{padding:4px 8px}
@media (max-width:700px){.pe-toolbar{overflow-x:auto;flex-wrap:nowrap}.pe-toolbar>*{flex-shrink:0}}
