.share-dialog {
  width: min(400px, calc(100% - 28px));
  max-block-size: calc(100dvh - 28px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 12px 36px #0004;
}
.share-dialog::backdrop { background: #0008; }
.share-content { padding: 19px 22px 17px; }
.share-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.share-heading h2 { font-size: 1.35rem; letter-spacing: -.026em; }
.share-heading form { margin: 0; }
.share-close {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
}
.share-close:hover { background: var(--muted); }
.share-content > p { font-size: .9rem; max-width: 34ch; }
.share-qr { display: grid; min-height: 224px; place-items: center; margin-block: 16px; text-align: center; }
.share-qr canvas { display: block; max-width: 100%; height: auto; border-radius: 7px; background: white; }
.share-status { display: block; min-height: 1.25em; margin-top: 9px; font-size: .8125rem; color: var(--secondary); }

.share-actions { display: flex; flex-wrap: wrap; gap: 9px; }
@media (max-width: 480px) {
  .share-actions .button { min-height: 44px; }
}
