.watermark-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}
.watermark-layout fieldset{min-width:0;margin:0;padding:24px}
.watermark-layout fieldset>*{min-width:0;max-width:100%}
.watermark-layout label,.watermark-layout select{min-width:0;width:100%;max-width:100%}
.watermark-layout select{overflow:hidden;text-overflow:ellipsis}
.watermark-preview{min-width:0;width:100%}
.watermark-layout input[type=range]{width:100%;padding:0;accent-color:var(--accent)}
.watermark-layout output{float:right;font-weight:700;color:var(--accent)}
.watermark-preview{position:relative;min-height:260px;display:grid;place-items:center;padding:16px;border:1px solid var(--border);border-radius:12px;background:var(--surface-alt);overflow:hidden}
.watermark-preview img{max-width:100%;width:auto;height:auto;max-height:520px;object-fit:contain;display:block}
.watermark-preview [hidden]{display:none}
.watermark-preview[aria-busy=true]::after{content:'';position:absolute;width:36px;height:36px;border:3px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:watermark-spin .8s linear infinite;background:var(--surface)}
.watermark-preview[aria-busy=true] img{opacity:.45}
.watermark-status{font-size:14px;line-height:1.6;color:var(--muted)}
.watermark-status.is-error{color:var(--danger,#bd2840)}
.watermark-form .admin-check{display:flex;align-items:flex-start;gap:10px}
.watermark-form .admin-check input{flex:0 0 auto;margin-top:3px}
[data-gallery-protected="1"] .gallery-image-link,#gallery-modal[data-gallery-protected="1"] .lightbox-viewport{-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}
[data-gallery-protected="1"] .gallery-image-link img,#gallery-modal[data-gallery-protected="1"] img{-webkit-user-drag:none;user-select:none;-webkit-user-select:none}
@keyframes watermark-spin{to{transform:rotate(360deg)}}
@media(max-width:850px){.watermark-layout{grid-template-columns:1fr}.watermark-layout fieldset{padding:18px}.watermark-preview img{max-height:420px}}
@media(prefers-reduced-motion:reduce){.watermark-preview[aria-busy=true]::after{animation-duration:2s}}
