*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:#fff;color:#252b35}.hidden{display:none!important}
.topbar{height:74px;border-bottom:1px solid #eee;display:flex;align-items:center;gap:34px;padding:0 6%;background:#fff;position:sticky;top:0;z-index:100}.brand-mark{font-size:25px;font-weight:900;color:#1d2b3f}.brand-mark span{color:#2864e8}.tagline{font-size:12px;color:#8792a2;margin-top:3px}.topbar nav{display:flex;align-items:center;gap:25px;margin-left:15px}.topbar nav a,.topbar nav button{border:0;background:none;text-decoration:none;color:#242a34;font-weight:700;font-size:14px;cursor:pointer}.search{margin-left:auto;border:1px solid #e2e6eb;border-radius:25px;padding:11px 17px;width:250px;color:#9aa3af;font-size:13px}.search b{float:right;color:#475569;font-size:19px}.theme{border:1px solid #e3e7ec;border-radius:50%;width:42px;height:42px;background:#fff;font-size:20px}
.editor-page{min-height:calc(100vh - 74px)}.hero{text-align:center;padding:32px 20px 24px}.hero h1{font-size:34px;margin:0;font-weight:900}.hero p{margin:8px 0 0;color:#9aa3ad;font-size:20px}
.upload-panel{width:min(620px,92%);margin:40px auto 90px;border:2px dashed #b8cce7;border-radius:12px;padding:55px 30px;text-align:center;background:#f8fbff}.upload-icon{width:70px;height:70px;border-radius:18px;background:#e7f0ff;color:#2864e8;display:grid;place-items:center;font-weight:900;margin:auto;font-size:20px}.upload-panel h2{margin:18px 0 8px}.upload-panel p{color:#8b96a6}.upload-panel small{display:block;margin-top:18px;color:#9ba4b0}.choose-btn{display:inline-block;background:#2864e8;color:#fff;border-radius:8px;padding:13px 28px;font-weight:800;cursor:pointer}.choose-btn input{display:none}

.editor-shell{background:#e9e9e9;min-height:720px;padding-bottom:80px}.toolbar{background:#fff;padding:13px 0;border-bottom:1px solid #d8d8d8;display:flex;justify-content:center;position:sticky;top:74px;z-index:40}.tool-group{display:flex;border:1px solid #b9d0e8;border-radius:5px;overflow:hidden;background:#fff}.tool{height:34px;padding:0 13px;border:0;border-right:1px solid #b9d0e8;background:#fff;color:#1768a8;font-size:13px;cursor:pointer}.tool:hover,.tool.active{background:#edf7ff}.pagebar{height:54px;display:flex;justify-content:center;align-items:center;gap:20px}.page-number{font-size:18px;color:#2380bd;font-weight:800}.page-actions{display:flex;gap:1px}.page-actions button{height:30px;border:1px solid #7db2d7;background:#fff;color:#1768a8;padding:0 10px;cursor:pointer}.page-actions button:hover{background:#f1f8fd}
.document-area{min-height:620px;overflow:auto;padding:25px 30px 130px}.pdf-page{position:relative;width:max-content;margin:0 auto 28px;background:#fff;box-shadow:0 3px 15px rgba(0,0,0,.18)}.pdf-page canvas{display:block}.text-layer{position:absolute;inset:0;overflow:hidden;line-height:1;pointer-events:none}.text-layer span{position:absolute;white-space:pre;transform-origin:0 0;color:transparent;cursor:text;pointer-events:auto}.text-layer span:hover{background:rgba(0,123,255,.12);outline:1px solid rgba(0,123,255,.35)}.overlay{position:absolute;inset:0;z-index:8}.edit-input{position:absolute;z-index:20;border:1px solid #2380bd;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.18);padding:3px 5px;font:inherit;outline:none;min-width:80px}.object{position:absolute;z-index:10;border:1px dashed transparent}.object.selected{border-color:#2380bd}.statusbar{display:none}.editor-status{position:fixed;left:0;right:0;bottom:56px;height:30px;background:#fff1db;border-top:1px solid #efd4a4;display:flex;justify-content:center;gap:30px;align-items:center;font-size:12px;color:#8b6a2e;z-index:50}.apply-wrap{position:fixed;bottom:0;left:0;right:0;height:58px;background:#fff;display:flex;justify-content:center;align-items:center;box-shadow:0 -3px 12px rgba(0,0,0,.12);z-index:60}.apply-btn{border:0;background:#39b86b;color:#fff;border-radius:7px;padding:12px 25px;font-size:15px;font-weight:900;cursor:pointer}.apply-btn:hover{background:#2ea85f}.apply-btn:disabled{opacity:.6}
.result-panel{margin:45px auto;width:min(900px,92%);padding:25px;border:1px solid #dfe5eb;border-radius:12px;background:#fff;display:flex;align-items:center;gap:15px}.result-panel>div{flex:1}.download-btn{background:#28ad61;color:#fff;border:0;border-radius:7px;padding:12px 20px;font-weight:800;cursor:pointer}.secondary-btn{background:#fff;border:1px solid #ccd5df;border-radius:7px;padding:11px 18px;cursor:pointer}.info-grid{width:min(1100px,92%);margin:60px auto;display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.info-grid>div{border:1px solid #e4e8ed;border-radius:12px;padding:22px;background:#fff}.info-grid h2{margin-top:0;font-size:19px}.info-grid p{color:#687386;line-height:1.6;font-size:14px}footer{border-top:1px solid #eee;padding:28px 6%;display:flex;justify-content:space-between;color:#8a94a3;font-size:13px}
@media(max-width:900px){.topbar{gap:12px;padding:0 3%}.topbar nav a,.topbar nav button{display:none}.search{width:180px}.tool-group{flex-wrap:wrap;justify-content:center}.toolbar{top:62px}.document-area{padding:15px}.info-grid{grid-template-columns:1fr}}
@media(max-width:600px){.topbar{height:62px}.brand-mark{font-size:20px}.tagline{display:none}.search{display:none}.hero h1{font-size:27px}.hero p{font-size:16px}.page-actions button{padding:0 7px}.info-grid{margin:30px auto}.result-panel{flex-wrap:wrap}}

/* v10: PDF editor must not behave like a normal selectable webpage */
.document-area,.pdf-page,.text-layer,.text-layer span,.overlay{
  -webkit-user-select:none!important;
  user-select:none!important;
}
.text-layer span{
  cursor:default!important;
}
.text-layer.edit-mode span{
  cursor:text!important;
  background:transparent;
}
.text-layer.edit-mode span:hover{
  background:rgba(35,128,189,.12)!important;
  outline:1px solid rgba(35,128,189,.45);
}

.edit-input{
  z-index:100!important;
  border:2px solid #2380bd!important;
  border-radius:3px!important;
  font-family:Arial,sans-serif!important;
  color:#111!important;
  background:#fff!important;
  user-select:text!important;
  -webkit-user-select:text!important;
}

.document-area,.pdf-page,.text-layer,.text-layer span,.overlay{
  -webkit-user-select:none!important;user-select:none!important;
}
.text-layer{pointer-events:none!important}
.text-layer.edit-mode{pointer-events:auto!important}
.text-layer span{pointer-events:none!important;cursor:default!important}
.text-layer.edit-mode span{pointer-events:auto!important;cursor:text!important}
.edit-input{
  position:absolute!important;z-index:9999!important;
  border:2px solid #2380bd!important;border-radius:4px!important;
  background:#fff!important;color:#111!important;padding:4px 6px!important;
  outline:none!important;box-shadow:0 3px 12px rgba(0,0,0,.22)!important;
  user-select:text!important;-webkit-user-select:text!important;
}

.nav-page{height:30px;min-width:34px;border:1px solid #7db2d7;background:#fff;color:#1768a8;font-size:20px;line-height:1;cursor:pointer}
.nav-page:disabled{opacity:.4;cursor:not-allowed}
#pageTotal{font-size:13px;color:#7b8795}
.document-area{min-height:620px}
.pdf-page{user-select:none;-webkit-user-select:none}
.text-layer{pointer-events:none!important;user-select:none!important;-webkit-user-select:none!important}
.text-layer.edit-mode{pointer-events:auto!important}
.text-layer span{pointer-events:none!important;user-select:none!important;-webkit-user-select:none!important}
.text-layer.edit-mode span{pointer-events:auto!important;cursor:text!important}
.overlay{pointer-events:none}
.edit-input{pointer-events:auto!important;user-select:text!important;-webkit-user-select:text!important;z-index:99999!important}
