/* Visual document workspace */
.editor-overlay{position:fixed;inset:0;z-index:40;background:#eef1f8;display:none;flex-direction:column;color:#17213a}.editor-overlay.on{display:flex}.editor-head{height:66px;background:#fff;border-bottom:1px solid #e4e8f1;display:flex;align-items:center;gap:13px;padding:0 22px}.editor-head h2{font:800 17px 'Plus Jakarta Sans',sans-serif;margin:0;white-space:nowrap}.editor-head small{color:#8390a3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:260px}.editor-spacer{flex:1}.editor-button{border:1px solid #dee3ee;border-radius:10px;background:#fff;color:#33415d;padding:10px 13px;font-weight:800;font-size:12px;cursor:pointer}.editor-button.active{border-color:#6959ec;color:#6453e5;background:#f0edff}.editor-button.save{background:#6459ed;color:white;border-color:#6459ed}.editor-button:disabled{opacity:.4;cursor:not-allowed}.editor-main{display:flex;min-height:0;flex:1}.editor-sidebar{width:186px;flex-shrink:0;background:#fff;border-right:1px solid #e2e6ef;overflow:auto;padding:16px 12px}.editor-sidebar strong{display:block;color:#657188;font-size:11px;letter-spacing:.08em;margin:4px 6px 14px}.editor-thumb{display:block;margin:0 auto 15px;border:2px solid transparent;padding:9px;border-radius:12px;background:transparent;width:100%;font-size:12px;color:#53617b;cursor:pointer}.editor-thumb.active{background:#f0edff;border-color:#6558ed}.editor-thumb canvas{width:auto;max-width:100%;height:auto;display:block;margin:0 auto 8px;box-shadow:0 3px 10px #19244a1c;background:#fff}.editor-center{flex:1;min-width:0;display:flex;flex-direction:column}.editor-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:13px 19px;background:white;border-bottom:1px solid #e2e6ef}.editor-toolbar input[type=text]{min-width:135px;max-width:180px;padding:9px;border:1px solid #dce2ee;border-radius:9px}.editor-toolbar input[type=number]{width:62px;padding:9px;border:1px solid #dce2ee;border-radius:9px}.editor-toolbar input[type=color]{width:33px;height:36px;border:0;padding:0;background:transparent;cursor:pointer}.editor-toolbar label{font-size:12px;color:#68758a;font-weight:700}.editor-toolbar .separator{width:1px;height:27px;background:#e1e5ed;margin:0 3px}.editor-stage{position:relative;overflow:auto;flex:1;padding:34px 26px;display:flex;flex-direction:column;align-items:center;gap:15px}.editor-page{background:#fff;box-shadow:0 16px 40px #1724462b;position:relative;flex-shrink:0;user-select:none}.editor-page>canvas{display:block;width:100%;height:100%}.editor-layer{position:absolute;inset:0;touch-action:none}.editor-object{position:absolute;border:1px solid transparent;cursor:move;white-space:pre-wrap;overflow:visible;touch-action:none;transform:translate(-1px,-1px)}.editor-object.selected{border:1px dashed #6558ed;outline:3px solid #6558ed23;background:#6558ed0a}.editor-object img{display:block;width:100%;height:100%;object-fit:fill;pointer-events:none}.editor-status{background:#fff;border-top:1px solid #e2e6ef;padding:9px 16px;color:#61708a;font-size:12px;display:flex;justify-content:space-between;gap:8px}.editor-empty{margin:auto;text-align:center;max-width:420px;padding:35px;background:#fff;border:2px dashed #c6c8ed;border-radius:20px;cursor:pointer}.editor-empty h3{font-size:21px;margin:10px}.editor-empty p{font-size:13px;color:#758196}.editor-empty input{display:none}.editor-overlay .editor-notice{font-size:11px;color:#768298}.editor-ink{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.editor-sign-dialog{position:absolute;inset:0;background:#17213baa;display:none;z-index:5;align-items:center;justify-content:center;padding:20px}.editor-sign-dialog.on{display:flex}.editor-sign-panel{background:#fff;padding:22px;border-radius:15px;width:min(430px,100%)}.editor-sign-panel canvas{border:1px solid #cdd5e2;width:100%;height:145px;touch-action:none}.editor-sign-panel .actions{display:flex;gap:8px;margin-top:10px;justify-content:flex-end}.editor-page-count{min-width:88px;text-align:center;color:#6d7790;font-size:12px}@media(max-width:700px){.editor-head{height:auto;min-height:62px;padding:12px}.editor-head h2{font-size:14px}.editor-head small{display:none}.editor-sidebar{width:92px;padding:10px 4px}.editor-toolbar{padding:9px;gap:5px}.editor-button{padding:9px 8px}.editor-stage{padding:18px 9px}.editor-toolbar input[type=text]{max-width:110px}.editor-toolbar label{display:none}}

/* MagicGlowPDF Studio workspace v1.5 */
.editor-sidebar{width:300px;padding:0;background:#fff;box-shadow:2px 0 18px #1b2b5110;overflow-y:auto}.editor-sidebrand{display:flex;align-items:center;gap:10px;padding:21px 20px 16px;border-bottom:1px solid #edf0f6}.editor-sidebrand b{font-size:15px;display:block}.editor-sidebrand small{display:block;color:#8490a5;font-size:11px;margin-top:3px}.editor-sideicon{display:grid;place-items:center;background:#efeaff;color:#6857ea;width:38px;height:38px;border-radius:12px;font-size:22px}.editor-side-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:14px 12px;border-bottom:1px solid #e9edf5}.editor-side-tabs button{border:0;background:transparent;color:#78839a;padding:10px 1px;border-radius:9px;font-size:11px;font-weight:800;cursor:pointer}.editor-side-tabs button.active{background:#f0edff;color:#6255e9}.editor-side-panel{display:none;padding:19px 18px 26px}.editor-side-panel.active{display:block}.editor-panel-label{font-size:11px;font-weight:900;letter-spacing:.09em;color:#97a0b1;margin:0 0 20px}.editor-side-panel label{font-size:12px;font-weight:700;color:#46536b;display:block;margin-bottom:9px}.editor-side-panel textarea,.editor-side-panel input[type=number]{width:100%;border:1px solid #dee4ef;padding:11px;box-sizing:border-box;border-radius:10px;font:inherit;resize:vertical;color:#17213a}.editor-fieldrow{display:flex;gap:12px;margin-top:15px}.editor-fieldrow label:first-child{flex:1}.editor-fieldrow label:last-child{width:74px}.editor-fieldrow input[type=color]{width:100%;height:39px;padding:2px;border:1px solid #dee4ef;border-radius:10px;background:#fff}.editor-side-action{display:block;width:100%;text-align:left;background:#fff;border:1px solid #e0e5ef;padding:13px 14px;margin-top:9px;border-radius:11px;font-weight:800;color:#35425c;cursor:pointer}.editor-side-action:hover{border-color:#8d81f1;background:#f9f8ff}.editor-side-action.primary{background:#6658eb;color:#fff;text-align:center;border-color:#6658eb}.editor-side-action.danger{color:#c24758}.editor-helper{font-size:11px;color:#8994a9;line-height:1.7;margin-top:20px}.editor-thumb{width:100%;text-align:center}.editor-page-actions{padding-top:6px;border-top:1px solid #e9edf5}.editor-side-panel input[type=range]{width:100%;accent-color:#6658eb}.editor-side-panel #editorProperties label{margin-bottom:18px}.editor-resize-handle{position:absolute;right:-7px;bottom:-7px;background:#6558ed;width:13px;height:13px;border:2px solid white;border-radius:4px;box-shadow:0 1px 5px #16204444;cursor:nwse-resize;display:none}.editor-object.selected .editor-resize-handle{display:block}.editor-stage{background:radial-gradient(circle at 50% 0,#f7f7ff,#e9ecf4 75%)}.editor-page{box-shadow:0 14px 45px #1724462c}.editor-head{background:#fff}.editor-toolbar{background:#fcfdff}@media(max-width:800px){.editor-sidebar{width:220px}.editor-side-panel{padding:14px}.editor-side-tabs{padding:9px 5px}.editor-side-tabs button{font-size:10px}}@media(max-width:540px){.editor-main{flex-direction:column}.editor-sidebar{width:auto;max-height:230px;border-right:0;border-bottom:1px solid #e6eaf1;overflow:auto}.editor-sidebrand{display:none}.editor-side-panel{padding:12px}.editor-side-tabs{padding:6px}.editor-center{min-height:0;flex:1}.editor-toolbar{max-height:78px;overflow-y:auto}.editor-stage{min-height:120px}}

/* MagicGlowPDF Editor 2.0 */
.studio-separator{border:0;border-top:1px solid #e1e6f2;margin:18px 0}.studio-results{max-height:210px;overflow:auto;padding:9px;border:1px solid #dfe5f2;background:#f8faff;border-radius:10px;color:#41506b;font-size:12px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.studio-text-overlay{position:absolute;inset:0;pointer-events:none;z-index:12}.studio-text-hit{position:absolute;pointer-events:auto;border:1px dashed #695be9;background:rgba(100,85,236,.11);border-radius:2px;cursor:pointer;overflow:hidden;white-space:nowrap;font-size:10px;color:#312598}.studio-text-hit:hover{background:rgba(100,85,236,.25)}#studioEditTextWrap textarea{width:100%;margin-top:5px;min-height:70px}.editor-object.studio-cover{background:#fff;border:1px dashed #b6bcca}.studio-pill{display:inline-block;padding:3px 7px;margin:4px 0;border-radius:6px;background:#eceafb;color:#4b3ac6;font-weight:700}.studio-result-item{display:block;width:100%;text-align:left;border:1px solid #dfe5f2;background:white;color:#344366;border-radius:7px;padding:7px;margin-top:5px;cursor:pointer;white-space:normal}.studio-result-item:hover{border-color:#7568e9;background:#f3f0ff}

/* Studio 2.2 usability */
.editor-object{touch-action:none}.editor-object.selected{outline:2px solid #4465e9;outline-offset:2px}.editor-resize-handle{touch-action:none}.editor-side-action:focus-visible,.editor-button:focus-visible{outline:3px solid #5d80ef;outline-offset:2px}#studioRotationWrap,#studioOpacityWrap{display:block;margin:12px 0}#studioRotationWrap[hidden],#studioOpacityWrap[hidden]{display:none}#studioRotationWrap input,#studioOpacityWrap input{width:100%}
