/* Share layer; geometry and composition live in polish.css / photo-framing.js. */
.site-share-trigger{width:36px;height:36px;display:grid;place-items:center;border:1px solid #b4bba8;border-radius:50%;background:#f7f6edc9;color:#42573e;padding:8px}
.site-share-trigger svg{width:18px;height:18px}
.site-share-trigger:hover{background:#fffdf5;color:#314b3d}
.site-share-dialog{box-sizing:border-box;width:min(620px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #d5dacb;border-radius:14px;padding:30px;background:#fcfbf5;color:#314b3d;box-shadow:0 24px 100px #18281c40;font:14px/1.7 'Segoe UI','Microsoft YaHei',sans-serif}
.site-share-dialog::backdrop{background:#20342566;backdrop-filter:blur(8px)}
.site-share-close{position:absolute;right:14px;top:14px;width:44px;height:44px;border:0;border-radius:50%;background:transparent;font:28px Georgia;color:#5f715b}
.share-eyebrow{font-size:10px;letter-spacing:2.5px;color:#66715f;margin:6px 0 16px}
.site-share-dialog h2{font:500 28px/1.6 'Songti SC',STSong,SimSun,serif;margin:0 24px 10px 0}
.site-share-intro{color:#66715f;font-size:13px;margin:0 0 18px}
.site-invitation{display:block;width:100%;height:auto;border-radius:0;box-shadow:0 6px 18px #314b3d0c}
.share-home-url{display:block;width:fit-content;max-width:100%;overflow-wrap:anywhere;text-align:center;margin:18px auto;color:#314b3d;font-size:16px;letter-spacing:.4px;text-underline-offset:4px}
.site-share-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.site-share-actions button{min-height:44px;padding:9px 13px;border:1px solid #bec9b5;border-radius:5px;background:#f6f7ef;color:#314b3d;font:13px 'Segoe UI','Microsoft YaHei',sans-serif}
.site-share-actions .site-share-native{background:#47604f;color:#fffdf2;border-color:#47604f}
.site-share-status{min-height:1.7em;color:#66715f;text-align:center;font-size:12px;margin:16px 0 0;overflow-wrap:anywhere}
.share-manual-url{box-sizing:border-box;width:100%;padding:10px;margin-top:10px;border:1px solid #a4b399;border-radius:4px;background:white;color:#314b3d;font:14px 'Segoe UI',sans-serif;min-width:0;user-select:text}
.share-manual-url[hidden]{display:none!important}
.site-share-dialog button:focus-visible,.site-share-dialog a:focus-visible,.share-manual-url:focus-visible,.photo-share-controls button:focus-visible{outline:2px solid #9c583a;outline-offset:3px}
.instant-actions>.photo-share-controls{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;max-width:min(440px,calc(100vw - 28px));white-space:normal}
.instant-actions>.photo-share-controls button{min-height:40px;padding:8px 12px;border:1px solid #bbc8b1;border-radius:5px;background:#fafbf4;color:#42583d;font-size:12px;letter-spacing:.3px}
.instant-actions>.photo-share-controls input{flex-basis:100%}
.instant-camera:not([data-phase=ready]) .photo-share-controls{display:none}
.instant-camera[data-phase=ready] .instant-print img{user-select:auto;-webkit-touch-callout:default}
@media(max-width:650px){.header-right{gap:10px}.site-share-dialog{padding:25px 19px}.site-share-dialog h2{font-size:23px}.instant-actions{bottom:max(16px,env(safe-area-inset-bottom))}.instant-status{letter-spacing:.3px}}
@media(max-width:380px){.header-right{gap:6px}.site-share-dialog h2{font-size:21px}.site-share-actions{gap:6px}.site-share-actions button{padding:8px 11px}.instant-status{max-width:calc(100% - 105px);left:16px;transform:none;text-align:left}}
@media(max-height:550px) and (min-width:650px){.instant-actions>.photo-share-controls{gap:6px}.instant-actions>.photo-share-controls button{padding:6px 10px}.instant-camera .instant-status{top:13px}.site-share-dialog{padding:22px;max-height:calc(100dvh - 20px)}}
@media(prefers-reduced-motion:reduce){.site-share-dialog,.site-share-trigger{transition:none}}
