.remove-watermark-dialog{width:980px;max-width:calc(100% - 28px);max-height:94dvh;padding:24px}
.remove-watermark-body{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px;margin-top:20px}
.remove-watermark-preview{min-width:0}
.remove-watermark-preview-wrap{height:clamp(240px,calc(94dvh - 285px),560px);display:flex;align-items:center;justify-content:center;padding:16px;overflow:hidden;background:#edf1f5;border:1px solid #e2e8ef;border-radius:9px}
.remove-watermark-paper{position:relative;flex:none;background:#fff;box-shadow:0 3px 16px #20324320;overflow:hidden}
.remove-watermark-paper canvas{display:block;width:100%;height:100%}
.remove-watermark-preview-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:45px;color:#758496;font-size:12px}
.remove-watermark-compare{display:flex;gap:3px;padding:3px;border-radius:7px;background:#eaf0f5}
.remove-watermark-compare button{border:0;background:transparent;color:#5c6d7c;padding:7px 12px;border-radius:5px;font-size:13px}
.remove-watermark-compare button[aria-pressed=true]{background:white;color:var(--green);box-shadow:0 1px 3px #132d3d20}
.remove-watermark-controls{min-width:0}.remove-watermark-controls .field-label{display:block;margin:0 0 8px;font-size:14px}
.remove-watermark-controls select,.remove-watermark-controls input[type=text]{width:100%;min-height:40px;padding:8px 10px;font-size:14px}
.remove-watermark-controls #remove-watermark-range-field{margin-top:12px}
.remove-watermark-choices{margin-top:22px;padding-top:18px;border-top:1px solid #e8eef2}
.remove-watermark-choices>strong{display:block;font-size:14px;font-weight:600;margin-bottom:10px}
.remove-watermark-choices label{display:flex;align-items:flex-start;gap:10px;padding:12px 10px;margin-bottom:8px;border:1px solid #e3e9ee;border-radius:8px;cursor:pointer;font-size:14px;line-height:1.4}
.remove-watermark-choices label:has(input:checked){border-color:#8bc7cc;background:#f0fbfc}
.remove-watermark-choices label:has(input:disabled){opacity:.58;cursor:default}
.remove-watermark-choices input{margin-top:2px;accent-color:var(--green)}
.remove-watermark-choices small{display:block;margin-top:4px;color:#768694;font-size:12px}
.remove-watermark-note{font-size:13px;line-height:1.7;color:#728290;margin-top:16px}
.remove-watermark-dialog .dialog-actions{position:sticky;bottom:-24px;background:#fff;padding:12px 0 10px;margin-top:14px;z-index:2}
.has-document .toolbar-group:first-child{min-width:0;flex-wrap:wrap}
.has-document .toolbar .history-button{white-space:nowrap}
@media(max-width:850px){.remove-watermark-body{grid-template-columns:minmax(0,1fr) 235px;gap:16px}}
@media(max-width:600px){.remove-watermark-dialog{max-width:calc(100% - 16px);padding:18px}.remove-watermark-dialog .dialog-heading h2{font-size:20px}.remove-watermark-body{grid-template-columns:1fr;gap:12px}.remove-watermark-preview-wrap{height:30dvh;min-height:210px}.remove-watermark-choices{margin-top:14px;padding-top:13px}.remove-watermark-choices label{padding:9px}.remove-watermark-dialog .dialog-actions{bottom:-18px}.remove-watermark-dialog .image-save-hint{display:none}.has-document .toolbar-group:first-child{grid-template-columns:repeat(3,minmax(0,1fr))}.has-document .toolbar-group:first-child #delete-pages{grid-column:auto}.has-document .toolbar-group:first-child .button{font-size:12px;padding:7px 3px;gap:3px}.has-document .toolbar{min-height:143px}.has-document .toolbar-group:last-child{width:100%;justify-content:flex-end}.has-document .toolbar .history-button{font-size:12px;padding:7px 8px}.has-document .toolbar .history-button svg{width:14px;height:14px}}
