/* PDF Watermark & Logo Remover */
.wm-tabs{margin:0 0 14px}
.wm-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px;margin-top:12px}
.wm-item{display:flex;gap:12px;align-items:center;border:1.5px solid var(--line);border-radius:14px;padding:10px;background:var(--surface);cursor:pointer;min-width:0}
.wm-item:hover{border-color:var(--brand)}
.wm-item:has(input:checked){border-color:var(--brand);background:color-mix(in srgb,var(--brand) 7%,var(--surface))}
.wm-item input{width:20px;height:20px;accent-color:var(--brand);flex:none;margin:0}
.wm-th{width:92px;height:56px;border-radius:8px;display:grid;place-items:center;flex:none;overflow:hidden;border:1px solid var(--line);color:var(--muted)}
.wm-th img{max-width:100%;max-height:100%;display:block}
.wm-tx{display:flex;flex-direction:column;min-width:0;gap:2px}
.wm-tx b{font-size:.95rem;overflow-wrap:anywhere;line-height:1.3}
.wm-tx small{color:var(--muted);font-size:.8rem;line-height:1.35}
.wm-note{margin-top:12px}
.wm-chk{display:flex;gap:12px;align-items:flex-start;margin-top:14px;cursor:pointer}
.wm-chk input{width:20px;height:20px;accent-color:var(--brand);flex:none;margin:2px 0 0}
.wm-chk small{display:block;color:var(--muted);font-size:.84rem;margin-top:2px}
.wm-bar{flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:8px}
.wm-r1{display:flex;gap:8px;align-items:center}
.wm-r2{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.wm-r2 label{display:flex;gap:8px;align-items:center;font-size:.85rem;font-weight:600;color:var(--muted)}
.wm-r2 select,.wm-r2 input[type=text]{width:auto;padding:6px 10px;min-height:36px;font-size:.88rem}
.wm-r2 input[type=text]{width:130px}
.wm-r2 input[type=color]{width:40px;height:36px;padding:2px;border-radius:10px;border:1.5px solid var(--line);background:var(--bg);cursor:pointer}
.wm-out{display:flex;gap:6px 14px;align-items:center;flex-wrap:wrap;margin:12px 2px 0;font-size:.88rem}
.wm-out label{display:flex;gap:8px;align-items:center;font-weight:600;color:var(--muted)}
.wm-out select{width:auto;padding:6px 10px;min-height:36px;font-size:.88rem}
.pdf-pages.cover .pg{cursor:crosshair}
.wm-box,.wm-ghost{position:absolute;box-sizing:border-box}
.wm-box{background:var(--f,#fff);outline:2px dashed var(--brand);touch-action:none;cursor:move;user-select:none;-webkit-user-select:none}
.wm-box.sel{background:color-mix(in srgb,var(--brand) 16%,transparent);outline-style:solid}
.wm-ghost{background:var(--f,#fff);outline:1.5px dashed color-mix(in srgb,var(--brand) 55%,transparent);pointer-events:none}
.wm-h{display:none;position:absolute;width:24px;height:24px;border-radius:50%;background:#fff;border:3px solid var(--brand);touch-action:none;cursor:nwse-resize}
.wm-h.tl{left:-12px;top:-12px}.wm-h.br{right:-12px;bottom:-12px}
.wm-x{display:none;position:absolute;right:-12px;top:-30px;width:26px;height:26px;border-radius:50%;background:var(--err);color:#fff;border:2px solid #fff;font:700 16px/1 var(--font);cursor:pointer;padding:0;line-height:22px}
.wm-box.sel .wm-h,.wm-box.sel .wm-x{display:block}
@media (max-width:640px){.wm-r2{gap:8px;flex-wrap:nowrap}.wm-r2 label{flex:1 1 0;min-width:0}.wm-r2 .lb{display:none}.wm-r2 select{flex:1;min-width:0;width:100%}.wm-r2 input[type=text]{flex:1;width:auto;min-width:0}.wm-r1 .btn{flex:1 1 0}.wm-th{width:72px;height:50px}.wm-list{grid-template-columns:1fr}}
