.tool-hero .tool-art img { aspect-ratio: 2 / 1; object-fit: cover; }
.watermark-editor { display: grid; gap: 1rem; }
.watermark-editor label { display: block; font-weight: 700; }
.watermark-editor small { display: block; color: #40584b; }
.watermark-file, .watermark-field, .watermark-batch { display: grid; gap: .5rem; min-width: 0; }
.watermark-file { background: #f3f8f4; border: 1px dashed #8da99a; border-radius: 12px; padding: clamp(14px, 4vw, 24px); }
.watermark-editor input { width: 100%; min-width: 0; font: inherit; }
.watermark-editor input[type=text] { min-height: 44px; padding: 8px 12px; border: 1px solid #8da99a; border-radius: 8px; }
.watermark-editor input::file-selector-button { font: inherit; border: 1px solid #8da99a; color: #173a2c; background: #fff; border-radius: 8px; padding: 8px 12px; margin-inline-end: 8px; cursor: pointer; }
.watermark-batch { border: 1px solid #d3e0d7; border-radius: 10px; padding: 12px; }
.watermark-batch summary { cursor: pointer; font-weight: 700; }
.watermark-batch summary small { display: inline; font-weight: 400; margin-inline-start: .4rem; }
.watermark-batch > :not(summary) { margin-top: .5rem; }
.watermark-editor #share-export { justify-self: start; min-height: 44px; }
.watermark-editor #share-status { margin: 0; }
.watermark-editor #share-status:empty { display: none; }
@media (max-width: 480px) { .watermark-editor #share-export { width: 100%; } }
.watermark-design { display:grid; grid-template-columns:minmax(0,1fr) minmax(120px, 190px); align-items:start; gap:1.25rem; }
.watermark-settings { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; }
.watermark-settings input:not([type=range]), .watermark-settings select { width:100%; min-height:44px; font:inherit; }
.watermark-opacity { grid-column:1/-1; }
.watermark-example { margin:0; color:#40584b; text-align:center; font-size:.8rem; }
#watermark-preview { display:flex; width:100%; aspect-ratio: 4 / 5; padding:9%; background:repeating-linear-gradient(white 0 15px,#e9f0eb 16px,white 17px 22px); border:1px solid #d3e0d7; border-radius:7px; overflow:hidden; align-items:center; justify-content:center; }
#watermark-preview span { max-width:100%; text-align:center; overflow-wrap:anywhere; color:#384752; opacity:.35; font-weight:800; }
#watermark-preview[data-position^=top] { align-items:flex-start; }
#watermark-preview[data-position^=bottom] { align-items:flex-end; }
#watermark-preview[data-position$=left] { justify-content:flex-start; }
#watermark-preview[data-position$=right] { justify-content:flex-end; }
@media(max-width:580px) { .watermark-design { grid-template-columns:1fr; } .watermark-example { width:min(100%,160px); } }
