/* The Share dialog, built by js/site/share.js on every page that has one */
.share-dialog {
  width: min(480px, calc(100vw - 24px)); padding: 0; margin: auto; border: 1px solid var(--border); border-radius: 22px;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow);
}
.share-dialog::backdrop { background: rgba(0, 0, 0, .5); }
.share-dialog[open] { display: flex; flex-direction: column; }
.share-dialog__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 6px 20px; }
.share-dialog__head h2 { font-size: 17px; font-weight: 600; }
.share-dialog__body { display: flex; flex-direction: column; gap: 12px; padding: 4px 20px 18px; font-size: 14px; line-height: 1.7; }
.share-dialog__body p { margin: 0; }
.share-dialog__link { display: flex; gap: 8px; }
.share-dialog__link input { flex: 1; min-width: 0; direction: ltr; text-align: left; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; font-size: 13px; }
.share-dialog__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.share-dialog__status { min-height: 1.4em; color: var(--muted); font-size: 13px; }
.share-dialog__status.is-error { color: var(--bad); }
.btn--danger { color: var(--bad); }
.icon-btn[hidden] { display: none; }
.share-dialog__actions a.btn { color: inherit; text-decoration: none; }
