/* Shared public sharing dialog. */
.psy-share-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  box-sizing: border-box;
  width: min(520px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid #cfd8e6;
  border-radius: 18px;
  background: #fff;
  color: var(--mp-ink, #12233f);
  box-shadow: 0 20px 60px rgba(18, 35, 63, .2);
  font-family: inherit;
}
.psy-share-dialog::backdrop { background: rgba(18, 35, 63, .45); }
.psy-share-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.psy-share-heading h2 { margin: 0; font-size: 1.2rem; }
.psy-share-close { flex: 0 0 40px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #edf3fe; color: #194685; cursor: pointer; }
.psy-share-article-title { color: #6b7a90; font-size: .88rem; line-height: 1.6; }
.psy-share-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 20px 0; }
.psy-share-choices a, .psy-share-choices button { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 10px 12px; border: 1px solid #cfd8e6; border-radius: 10px; background: #f8faff; color: #194685; text-decoration: none; font: inherit; font-size: .88rem; cursor: pointer; }
.psy-share-choices [hidden] { display: none; }
.psy-share-choices a:hover, .psy-share-choices button:hover { background: #edf3fe; }
.psy-share-url-label { display: block; margin-bottom: 8px; font-size: .85rem; font-weight: 600; }
.psy-share-copy-row { display: flex; flex-wrap: wrap; gap: 8px; }
.psy-share-copy-row input { flex: 1 1 180px; width: 0; min-width: 0; padding: 10px; border: 1px solid #cfd8e6; border-radius: 8px; font: inherit; font-size: .8rem; }
.psy-share-copy-row button { flex: 0 0 auto; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 8px; background: var(--mp-primary, #2b59c3); color: white; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.psy-share-status { min-height: 1.5em; margin: 10px 0 0; color: #194685; font-size: .85rem; }
.psy-share-dialog :is(a, button, input):focus-visible { outline: 2px solid #2b59c3; outline-offset: 2px; }
@media (max-width: 640px) {
  .psy-share-dialog { padding: 18px; }
}
