.share-widget { display: inline-block; max-width: 100%; }
.share-trigger { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; }
.share-options { min-width: 44px; padding: .25rem; margin-left: .3rem; }
.share-dialog { box-sizing: border-box; width: min(28rem, calc(100% - 2rem));
    max-height: calc(100dvh - 3rem); margin: auto; padding: 1.25rem; overflow: auto;
    border: 1px solid #c8d7f4; border-radius: 1.15rem; color: #172033;
    background: #fff; box-shadow: 0 12px 45px #17203324; font: inherit; }
.share-dialog::backdrop { background: #17203355; }
.share-dialog__heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.share-dialog__heading h2 { font-size: 1.2rem; margin: 0; }
.share-dialog__resource { font-weight: 650; overflow-wrap: anywhere; }
.share-dialog__primary, .share-dialog__destinations { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-bottom: .75rem; }
.share-dialog__primary { grid-template-columns: 1fr; }
.share-choice, .share-close { box-sizing: border-box; font: inherit; color: #173f8f;
    background: #f5f8ff; border: 1px solid #d2def6; border-radius: .7rem;
    min-height: 44px; padding: .65rem .8rem; cursor: pointer; text-decoration: none;
    text-align: center; display: inline-flex; align-items: center; justify-content: center; }
.share-choice--primary { background: #2554b5; color: #fff; border-color: #2554b5; font-weight: 700; }
.share-close { background: transparent; border: none; font-size: 1.65rem; width: 44px; flex: 0 0 44px; padding: 0; }
.share-choice:hover { filter: brightness(.96); }
.share-widget :focus-visible { outline: 3px solid #2554b5; outline-offset: 3px; }
.share-status { min-height: 1.4em; font-weight: 650; color: #246a2e; margin-bottom: 0; }
.share-dialog__note { font-size: .82rem; color: #57657a; }
.share-manual { display: grid; gap: .5rem; }
.share-manual textarea { box-sizing: border-box; width: 100%; font: inherit; resize: vertical; }
.share-qr { margin-top: .8rem; text-align: center; }
.share-qr img { max-width: 100%; height: auto; }
.share-widget [hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) { .share-choice { transition: background-color .12s ease; } }
@media print { .share-widget { display: none; } }
