/* Share dialog (card + download/copy) and the short "copied" message. */
.share-open { overflow: hidden; }
.share-sheet {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: auto;
}
.share-sheet[open] { display: flex; align-items: center; justify-content: center; }
.share-sheet::backdrop { background: rgba(12, 12, 16, 0.92); }
.share-sheet__inner {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 64px 16px 28px;
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #FFFFFF;
  text-align: center;
}
.share-sheet__img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(540px, 100%);
  max-height: calc(100vh - 190px);
  max-height: calc(100dvh - 190px);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}
.share-sheet__note { margin: 0; max-width: 34em; opacity: 0.85; }
.share-sheet__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.share-sheet__download,
.share-sheet__copy {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.share-sheet__download { border: 0; background: #FFFFFF; color: #111114; }
.share-sheet__download:hover { background: #EDEDF0; color: #111114; }
.share-sheet__copy { border: 1.5px solid rgba(255, 255, 255, 0.7); background: transparent; color: #FFFFFF; }
.share-sheet__copy:hover { background: rgba(255, 255, 255, 0.12); }
.share-sheet__copy[hidden] { display: none; }
.share-sheet__close {
  position: fixed;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  cursor: pointer;
}
.share-sheet__close:hover { background: rgba(255, 255, 255, 0.28); }
.share-sheet :focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }
.share-toast {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 2147483647;
  box-sizing: border-box;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 14px;
  background: #0E0F1A;
  color: #FFFFFF;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  font: 600 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-align: center;
  overflow-wrap: anywhere;
  transform: translateX(-50%);
  animation: share-toast-in 0.18s ease-out;
}
@keyframes share-toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }
@media (prefers-reduced-motion: reduce) { .share-toast { animation: none; } }
