.wl-open{display:inline-flex;align-items:center;justify-content:center;gap:.5em;min-height:42px;border:1px solid #a3834e6b;border-radius:24px;background:var(--ad-paper,#292325);color:var(--ad-ink,#fff6e9);padding:7px 15px;cursor:pointer;font:600 13px/1.5 Interface,sans-serif;white-space:nowrap}
.wl-open::before{content:"";width:.75em;height:.75em;border:1.6px solid currentColor;border-radius:50%;box-shadow:-.30em .30em 0 -.25em currentColor;transform:rotate(-10deg)}
.wl-open:hover,.wl-open:focus-visible{border-color:#a67b42}
#viewer .wl-gallery-open{position:absolute;z-index:5;top:12px;inset-inline-end:12px;background:#281f24ef;color:#fff6e9;box-shadow:0 1px 6px #0003}
.ad-pair-heading .wl-dialogue-open{flex-shrink:0}
@media(max-width:620px){.ad-pair-heading:has(.wl-dialogue-open){flex-wrap:wrap;gap:8px 12px}.ad-pair-heading .wl-dialogue-open{margin-inline-start:auto}}
#watar-art-lens{--wl-edge:#6d5b50;--wl-text:#fff6e9;--wl-gold:#e5bc7a;--wl-dark:#211e21;box-sizing:border-box;width:min(1480px,calc(100% - 28px));height:min(1000px,calc(100dvh - 28px));max-width:100%;max-height:100dvh;margin:auto;padding:0;overflow:hidden;border:1px solid var(--wl-edge);border-radius:16px;background:var(--wl-dark);color:var(--wl-text);font:14px/1.55 Interface,sans-serif;box-shadow:0 24px 100px #0008;text-align:start}
#watar-art-lens:not([open]),#watar-art-lens [hidden]{display:none!important}
#watar-art-lens[open]{display:flex;flex-direction:column}
#watar-art-lens::backdrop{background:#121014d9}
#watar-art-lens button,#watar-art-lens input{font:inherit}
#watar-art-lens button{min-height:42px;padding:6px 13px;border:1px solid var(--wl-edge);border-radius:8px;background:#29252a;color:var(--wl-text);cursor:pointer;line-height:1.4}
#watar-art-lens button:disabled{opacity:.45;cursor:default}
#watar-art-lens button:enabled:hover{background:#3c3332;border-color:var(--wl-gold)}
#watar-art-lens :focus-visible,.wl-open:focus-visible{outline:2px solid #e9b967;outline-offset:2px}
.wl-head,.wl-picker-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px clamp(12px,3vw,34px)}
.wl-head h2,.wl-picker-head h3{color:var(--wl-text);font:700 clamp(20px,2.7vw,32px)/1.4 Book,serif;margin:0}
.wl-modes{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:0 clamp(12px,3vw,34px) 10px}
.wl-modes .wl-share{margin-inline-start:auto}
#watar-art-lens button[aria-pressed=true]{background:#eed4a9;color:#292126;border-color:#eed4a9}
.wl-stage{position:relative;isolation:isolate;min-height:0;min-width:0;flex:1;display:grid;grid-template-columns:minmax(0,1fr);background:#161518;overflow:hidden;touch-action:none;user-select:none}
.wl-stage:focus-visible{outline-offset:-3px!important}
.wl-stage.wl-magnified{cursor:grab}.wl-stage.wl-magnified:active{cursor:grabbing}
.wl-stage[data-mode=split]{grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:#61554d}
.wl-pane{position:relative;isolation:isolate;min-height:0;min-width:0;overflow:hidden;background:#161518}
.wl-image-wrap{position:absolute;inset:0}
.wl-image-wrap img{position:absolute;display:block;inset:0;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;transform-origin:center;pointer-events:none;user-select:none}
.wl-caption{position:absolute;bottom:10px;inset-inline-start:10px;padding:5px 10px;max-width:calc(100% - 20px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#211c21ed;border-radius:5px;color:var(--wl-text);font:12px/1.7 Interface,sans-serif;pointer-events:none}
.wl-stage[data-mode=wipe] .wl-pane{position:absolute;inset:0}
.wl-stage[data-mode=wipe] .wl-pane:nth-child(2){clip-path:inset(0 calc(100% - var(--wl-cut,50%)) 0 0)}
.wl-stage[data-mode=wipe] .wl-pane:nth-child(2) .wl-caption{inset-inline-start:auto;inset-inline-end:10px}
.wl-seam{display:none;z-index:3;pointer-events:none;position:absolute;top:0;bottom:0;left:var(--wl-cut,50%);width:2px;background:#f2d6a6;box-shadow:0 0 6px #211c20}
.wl-stage[data-mode=wipe]>.wl-seam{display:block;left:calc(var(--wl-cut,50%) - 17px);width:34px;background:transparent;box-shadow:none;pointer-events:auto;cursor:ew-resize;touch-action:none}
.wl-seam::before{content:"";position:absolute;top:0;bottom:0;left:50%;width:2px;background:#f2d6a6;box-shadow:0 0 5px #211c20}
.wl-seam::after{content:"↔";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:29px;height:29px;display:grid;place-items:center;color:#231c23;background:#eed4a9;border-radius:50%;font:18px/1 sans-serif;box-shadow:0 2px 12px #130f1499}
.wl-wipe-label{display:flex;align-items:center;justify-content:center;gap:12px;padding:5px 14px 0;color:#edcf9d;font:12px/1.4 Interface,sans-serif}
.wl-wipe{accent-color:var(--wl-gold);width:min(520px,65%);height:30px;margin:0;cursor:ew-resize;touch-action:pan-y}
.wl-bottom{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:9px clamp(12px,3vw,34px)}
.wl-tools{display:flex;align-items:center;gap:5px;white-space:nowrap}
.wl-scale{min-width:48px;text-align:center;color:var(--wl-gold);font-weight:700}
#watar-art-lens .wl-tools button:not(.wl-fit){font-size:24px;line-height:1;width:42px}
.wl-bottom p{margin:0;color:#d7cabc;font-size:12px}
.wl-status{margin:0;padding:0 16px;color:var(--wl-gold);text-align:center;flex:none}
.wl-status:not(:empty){padding-block:5px}.wl-status input{margin-inline:8px;background:#fcf8f1;color:#201b22;border:1px solid #85755e;border-radius:4px;padding:5px;max-width:80%}
#watar-art-lens .wl-error{position:absolute;top:45%;left:50%;transform:translateX(-50%);z-index:2;width:max-content;max-width:90%}
.wl-picker{flex:1;min-height:0;overflow-y:auto;padding:4px clamp(12px,4vw,58px) 22px}
.wl-picker-head{padding:3px 0 15px}.wl-picker label{display:grid;gap:5px;color:var(--wl-text)}
.wl-query{width:100%;padding:10px 14px;border:1px solid var(--wl-edge);border-radius:7px;background:#f6efe5;color:#201b22;min-height:44px}
.wl-count{margin:8px 0;color:#e2cda9}.wl-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(230px,100%),1fr));gap:8px}
#watar-art-lens .wl-choice{display:flex;align-items:center;gap:10px;text-align:start;padding:6px;white-space:normal;overflow:hidden}
.wl-choice img{width:52px;height:60px;object-fit:cover;border-radius:4px;flex-shrink:0}.wl-choice small{display:block;margin-top:3px;color:#d4c19f;font-size:12px}
.wl-more{margin-top:10px}.wl-picking>.wl-modes,.wl-picking>.wl-stage,.wl-picking>.wl-wipe-label,.wl-picking>.wl-bottom{display:none!important}
@media(max-width:640px){#watar-art-lens{width:100%;height:100dvh;border:0;border-radius:0}.wl-head{padding-block:7px}.wl-head h2{font-size:22px}.wl-modes{gap:5px;padding-bottom:7px}#watar-art-lens .wl-modes button{font-size:12px;min-height:38px;padding:5px 9px}.wl-modes .wl-share{margin-inline-start:0}.wl-stage[data-mode=split]{grid-template-columns:1fr;grid-template-rows:repeat(2,minmax(0,1fr))}.wl-bottom{display:block;padding:7px 12px max(7px,env(safe-area-inset-bottom))}.wl-tools{justify-content:center}.wl-bottom p{text-align:center;margin:5px 0 0;font-size:11px}.wl-caption{font-size:11px}}
@media(max-height:480px) and (orientation:landscape){.wl-head,.wl-modes,.wl-bottom{padding-block:3px}.wl-head h2{font-size:18px}.wl-bottom p{display:none}#watar-art-lens button{min-height:32px}.wl-wipe{height:22px}}
