dialog.spotnine-share {
  width: min(calc(100% - 28px), 440px);
  max-width: 100%;
  max-height: calc(100% - 28px);
  max-height: calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  margin: auto;
  padding: clamp(16px, 4vw, 26px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 20px 64px rgb(0 0 0 / 45%);
}
.spotnine-share::backdrop { background: rgb(7 12 9 / 78%); }
.share-heading, .share-actions { display: flex; align-items: center; gap: 8px; }
.share-heading { justify-content: space-between; margin-bottom: 12px; }
.share-heading h2 { margin: 0; font-size: 1.3rem; line-height: 1.25; }
.spotnine-share button, .share-actions a {
  min-height: 44px;
  margin: 0;
  border: 1px solid var(--stroke);
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font: 650 .88rem/1.3 system-ui, sans-serif;
  cursor: pointer;
}
.spotnine-share .share-close { min-width: 44px; padding: 0; font-size: 1.5rem; }
.share-caption { margin: 8px 0 14px; overflow-wrap: anywhere; }
.share-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.share-story .share-actions {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.share-actions > * { display: grid; align-content: center; padding: 10px; text-align: center; }
.spotnine-share .share-instagram { grid-column: 1 / -1; border-color: var(--lime); }
.share-story .share-system,
.share-story .share-story-send {
  background: var(--lime);
  border-color: var(--lime);
  color: #11160b;
}
.share-url-label { margin-top: 16px; }
.spotnine-share .share-copy { margin-top: 8px; color: var(--lime); }
.spotnine-share .share-back { padding-inline: 10px; }
.share-instructions, .share-status { color: var(--muted); font-size: .87rem; }
.share-instructions:not(:empty) { margin: 12px 0; }
.share-status:not(:empty) { margin: 10px 0 0; }
.share-story img {
  display: block;
  max-width: 100%;
  max-height: 38vh;
  width: auto;
  height: auto;
  margin: 12px auto 0;
  border: 1px solid var(--stroke);
  border-radius: 6px;
  -webkit-touch-callout: default;
  user-select: auto;
}
.share-photo-label { margin-top: 12px; }
