/* M5H Watermark PDF — scoped to this workspace, preserve shared theme and other tools. */
#pdfWatermarkWorkspace{min-width:0}
#pdfWatermarkWorkspace [hidden]{display:none!important}
#pdfWatermarkWorkspace .wm-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#pdfWatermarkWorkspace .wm-drop{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:265px;padding:32px 15px;border:2px dashed #9187ff;border-radius:15px;background:#f8f6ff;text-align:center;cursor:pointer}
#pdfWatermarkWorkspace .wm-drop:hover,#pdfWatermarkWorkspace .wm-drop.drag-active,#pdfWatermarkWorkspace .wm-drop:focus-visible{border-color:#5043d9;background:#f2efff}
#pdfWatermarkWorkspace .wm-drop input[type=file]{position:absolute!important;left:0!important;bottom:0!important;width:1px!important;height:1px!important;padding:0!important;border:0!important;opacity:0!important;clip-path:inset(50%)!important;pointer-events:none!important}
#pdfWatermarkWorkspace .wm-drop .file-pick-visual{pointer-events:none}
#pdfWatermarkWorkspace .wm-file-row{display:flex;gap:12px;align-items:center;min-width:0;padding:13px;border:1px solid #dfe5f0;border-radius:12px;background:#f9faff;margin:23px 0 26px}
#pdfWatermarkWorkspace .wm-pdf-icon{width:43px;height:43px;flex:0 0 43px;display:grid;place-items:center;border-radius:10px;background:#eae8ff;color:#5445d7;font-size:12px;font-weight:800}
#pdfWatermarkWorkspace .wm-file-info{flex:1;min-width:0}#pdfWatermarkWorkspace .wm-file-info strong{display:block;font-size:13px;color:#1c2c4a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#pdfWatermarkWorkspace .wm-file-info small{display:block;font-size:11px;color:#7b8799;margin-top:4px}#pdfWatermarkWorkspace .wm-file-row button{flex-shrink:0}
#pdfWatermarkWorkspace .wm-section-heading,#pdfWatermarkWorkspace .wm-preview-heading h2{font-size:17px;margin:0 0 12px;color:#1b2b48}
#pdfWatermarkWorkspace fieldset{margin:0;padding:0;min-width:0;border:0}
#pdfWatermarkWorkspace .wm-type-options,#pdfWatermarkWorkspace .wm-pages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 20px}
#pdfWatermarkWorkspace .wm-type{display:flex;align-items:start;gap:10px;min-width:0;padding:13px;border:1px solid #dce3f2;border-radius:11px;background:#fbfcff;cursor:pointer}
#pdfWatermarkWorkspace .wm-type:has(input:checked){background:#f1efff;border-color:#877afb}#pdfWatermarkWorkspace .wm-type input{flex-shrink:0;width:17px;height:17px;accent-color:#4f46e5;margin:3px 0 0}#pdfWatermarkWorkspace .wm-type span{display:block;min-width:0}#pdfWatermarkWorkspace .wm-type strong{display:block;font-size:12px;color:#1c2b47}#pdfWatermarkWorkspace .wm-type small{display:block;font-size:11px;line-height:1.55;color:#69778e;margin-top:5px}
#pdfWatermarkWorkspace .wm-settings{min-width:0;padding:17px;border-radius:13px;border:1px solid #e1e6f0;background:#fcfdff;margin-bottom:18px}
#pdfWatermarkWorkspace .wm-field{min-width:0;margin:0 0 17px}#pdfWatermarkWorkspace .wm-field:last-child{margin-bottom:0}#pdfWatermarkWorkspace .wm-field label,#pdfWatermarkWorkspace .wm-pages legend{display:block;font-size:13px;font-weight:780;color:#1e2f4d;margin-bottom:7px}#pdfWatermarkWorkspace .wm-pages legend{margin-bottom:12px}
#pdfWatermarkWorkspace .wm-field input:not([type=range]):not([type=color]),#pdfWatermarkWorkspace .wm-field select{display:block;width:100%;min-width:0;border:1px solid #cbd6e8;border-radius:9px;background:#fff;color:#22324d;font:inherit;font-size:13px;padding:11px 12px}#pdfWatermarkWorkspace .wm-field input[type=color]{width:100%;height:44px;border:1px solid #cbd6e8;border-radius:9px;background:#fff;padding:5px;cursor:pointer}#pdfWatermarkWorkspace .wm-field input[type=range]{width:100%;accent-color:#4f46e5;cursor:pointer;margin:7px 0}#pdfWatermarkWorkspace .wm-field output{display:block;text-align:right;color:#5543d2;font-size:12px;font-weight:800}#pdfWatermarkWorkspace .wm-field small{display:block;color:#77859b;font-size:11px;line-height:1.5;margin:6px 0 0}
#pdfWatermarkWorkspace .wm-two{display:grid;grid-template-columns:1fr 1fr;gap:14px}#pdfWatermarkWorkspace .wm-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
#pdfWatermarkWorkspace .wm-logo-info{font-size:11px;color:#6556ac;margin:-6px 0 15px;overflow-wrap:anywhere}
#pdfWatermarkWorkspace .wm-preview-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-top:26px}#pdfWatermarkWorkspace .wm-preview-heading span{font-size:11px;color:#8490a6}
#pdfWatermarkWorkspace .wm-preview{position:relative;display:grid;place-items:center;min-height:200px;max-height:360px;overflow:hidden;padding:13px;border:1px solid #e2e6f1;border-radius:12px;background:repeating-conic-gradient(#f1f3f8 0% 25%,#fff 0 50%) 50%/12px 12px}
#pdfWatermarkWorkspace .wm-preview canvas{display:block;max-width:100%;max-height:320px;object-fit:contain;box-shadow:0 2px 12px #1e2b4930}
#pdfWatermarkWorkspace .wm-preview-fallback{color:#8b97a9;font-size:12px;text-align:center}
#pdfWatermarkWorkspace .wm-disclaimer{border:1px solid #eadbb1;background:#fff9ed;color:#846327;border-radius:11px;padding:13px 14px;font-size:11px;line-height:1.8;margin:20px 0 23px}
#pdfWatermarkWorkspace .wm-actions{display:flex;gap:12px;margin-top:20px}#pdfWatermarkWorkspace .wm-actions>.btn{min-width:0;flex:1;white-space:normal}#pdfWatermarkWorkspace .wm-actions .btn-primary{background:#4f46e5;color:white}#pdfWatermarkWorkspace .wm-actions .btn-primary:hover:not(:disabled){background:#4338ca;color:white}#pdfWatermarkWorkspace .wm-actions .btn-primary:disabled{background:#dce2ee;color:#58657b;opacity:1;cursor:not-allowed;box-shadow:none}
#pdfWatermarkWorkspace .wm-result{margin-top:14px;border-radius:11px;border:1px solid #bee8d5;background:#effcf5;padding:13px;font-size:12px;color:#136d4a;overflow-wrap:anywhere}
@media(max-width:760px){#pdfWatermarkWorkspace .wm-three{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){#pdfWatermarkWorkspace .wm-drop{min-height:215px}#pdfWatermarkWorkspace .wm-type-options,#pdfWatermarkWorkspace .wm-pages,#pdfWatermarkWorkspace .wm-two,#pdfWatermarkWorkspace .wm-three{grid-template-columns:1fr}#pdfWatermarkWorkspace .wm-file-row{flex-wrap:wrap}#pdfWatermarkWorkspace .wm-file-info{min-width:120px}#pdfWatermarkWorkspace .wm-file-row button{margin-left:auto}#pdfWatermarkWorkspace .wm-actions{flex-direction:column}#pdfWatermarkWorkspace .wm-actions>.btn{width:100%}#pdfWatermarkWorkspace .wm-preview{min-height:155px}}
