#hdshare-button{display:inline-flex;align-items:center;justify-content:center;flex:none;box-sizing:border-box;width:38px;height:38px;min-width:38px;min-height:38px;padding:0;margin:0;border:1px solid #dedede;border-radius:50%;background:#fff;color:#333;box-shadow:0 1px 3px #0001;cursor:pointer;pointer-events:auto;touch-action:manipulation}
#hdshare-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#hdshare-button:hover{color:#187749;border-color:#b7d7c6} #hdshare-button:focus-visible,#hdshare-dialog button:focus-visible,#hdshare-dialog a:focus-visible{outline:2px solid #187749;outline-offset:2px}
#hdshare-origin{display:flex;justify-content:flex-end;margin:4px 0;clear:both}
#hdshare-origin:empty{display:none}
#hdwa-gallery-favorite #hdshare-button{pointer-events:auto}
#hdwa-gallery-favorite #hdshare-button{display:flex;margin:6px 0 0 auto}
#hdshare-dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:calc(100% - 32px);max-width:390px;max-height:85vh;overflow:auto;padding:18px;border:1px solid #e0e0e0;border-radius:14px;background:#fff;color:#262626;font:14px/1.45 Arial,sans-serif;z-index:2147483000;box-shadow:0 8px 36px #0003}
#hdshare-dialog:not([open]){display:none} #hdshare-dialog::backdrop{background:#0006}
#hdshare-dialog .hdshare-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;font-size:18px;font-weight:700}
#hdshare-dialog .hdshare-close{border:0;background:transparent;color:#333;font-size:24px;line-height:1;cursor:pointer;padding:5px 8px}
#hdshare-dialog .hdshare-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#hdshare-dialog .hdshare-item{display:flex;align-items:center;justify-content:center;min-height:42px;padding:7px;box-sizing:border-box;border:1px solid #ddd;border-radius:8px;text-align:center;text-decoration:none;background:#fff;color:#252525;font:600 13px/1.3 Arial,sans-serif;cursor:pointer;overflow-wrap:anywhere}
#hdshare-dialog .hdshare-item:hover{background:#f4f8f5} #hdshare-dialog [hidden]{display:none!important}
#hdshare-dialog .hdshare-wide{grid-column:1/-1} #hdshare-dialog .hdshare-note{color:#666;font-size:12px;margin:12px 0 0} #hdshare-dialog input{width:100%;box-sizing:border-box;margin-top:10px;padding:7px;border:1px solid #ddd;border-radius:4px;color:#333;background:#fff}
@media(max-width:600px){#hdshare-dialog{inset:auto 0 0;margin:0 auto;width:100%;max-width:100%;border-radius:16px 16px 0 0;padding-bottom:calc(18px + env(safe-area-inset-bottom,0px))}}
