/* Image watermark controls, preview and batch downloads; all languages. */
.wm-app {display:flex;flex-direction:column;gap:16px;min-width:0;}
.info-block ol {margin:8px 0 0;padding-left:22px;font-size:14px;line-height:1.75;color:#465365;}
.wm-drop { border:2px dashed #9ebbd2;border-radius:10px;background:#f8fbff;padding:24px 18px;text-align:center;cursor:pointer; }
.wm-drop:hover,.wm-drop.dragging {border-color:#0078d4;background:#edf5fc;}
.wm-drop[aria-disabled="true"] {cursor:wait;opacity:.65;}
.wm-drop strong {display:block;color:#145b94;font-size:16px;line-height:1.5;}
.wm-drop p,.wm-help {font-size:13px;line-height:1.65;color:#526174;margin-top:8px;}
.wm-files,.wm-results {list-style:none;padding:0;margin:12px 0 0;}
.wm-files li,.wm-results li {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #e5eaf0;font-size:14px;}
.wm-files li span,.wm-results li span {min-width:0;overflow-wrap:anywhere;}
.wm-files button {flex:0 0 40px;width:40px;height:40px;padding:0;border:1px solid #ccd7e3;border-radius:7px;background:white;color:#8c2420;font-size:22px;cursor:pointer;}
.wm-settings {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;}
.wm-field {min-width:0;}
.wm-field label {display:block;font-size:14px;color:#465365;font-weight:600;margin-bottom:8px;}
.wm-field select,.wm-field input[type=text],.wm-field input[type=file] {width:100%;min-width:0;font-size:15px;padding:10px 12px;border:1px solid #a5b7c9;border-radius:7px;background:white;color:#273c52;}
.wm-field input[type=file] {font-size:14px;padding:8px;}
.wm-field input[type=color] {width:64px;height:42px;padding:3px;border:1px solid #a5b7c9;border-radius:7px;background:white;}
.wm-field input[type=range] {width:100%;accent-color:#0078d4;}
.wm-field output {display:inline-block;float:right;font-size:13px;font-weight:700;color:#145b94;}
.wm-field label.wm-check {display:flex;align-items:center;gap:8px;min-height:40px;margin:4px 0 0;}
.wm-check input {width:18px;height:18px;accent-color:#0078d4;}
.wm-full {grid-column:1/-1;}
.wm-preview-wrap {margin:16px 0 0;overflow:hidden;border:1px solid #ccd7e3;border-radius:8px;background-color:white;background-image:linear-gradient(45deg,#e5eaf0 25%,transparent 25%),linear-gradient(-45deg,#e5eaf0 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e5eaf0 75%),linear-gradient(-45deg,transparent 75%,#e5eaf0 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0;}
#wm-preview {display:block;max-width:100%;height:auto;margin:0 auto;}
.wm-actions {display:flex;flex-wrap:wrap;gap:10px;margin-top:16px;}
.wm-primary,.wm-secondary,.wm-results a,#zip-download {display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 16px;border:1px solid #0078d4;border-radius:7px;background:#0078d4;color:white;font-size:14px;font-weight:600;font-family:inherit;line-height:1.5;text-decoration:none;cursor:pointer;overflow-wrap:anywhere;}
.wm-primary:hover {background:#005fa3;}
.wm-secondary {background:white;color:#145b94;border-color:#a5b7c9;}
.wm-primary:disabled,.wm-secondary:disabled {opacity:.55;cursor:default;}
.wm-results a {flex-shrink:0;}
.wm-status {margin-top:14px;padding:12px;background:#edf5fc;border:1px solid #a6cbea;border-radius:8px;font-size:14px;color:#273c52;line-height:1.65;overflow-wrap:anywhere;}
.wm-status.error {background:#fff2f0;border-color:#cf908b;color:#8c2420;}
#preview-meta {overflow-wrap:anywhere;}
@container tool-workspace (min-width:900px){
 .wm-app:has(#preview-card:not([hidden])) {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;}
 .wm-app>section {grid-column:1/-1;min-width:0;}
 .wm-app:has(#preview-card:not([hidden]))>section[aria-labelledby="wm-settings-title"] {grid-column:1;grid-row:2;}
 .wm-app #preview-card {grid-column:2;grid-row:2;position:sticky;top:16px;}
}
@media(max-width:560px){.wm-settings{grid-template-columns:minmax(0,1fr);gap:16px}.wm-results li{align-items:flex-start;flex-direction:column}.wm-actions>*{flex:1 1 auto}.wm-results a{align-self:stretch}}
