/* One logical panel; only this parent adapts/scales its poster and actions. */
.share-dialog {
  position: fixed;
  z-index: 260;
  inset: calc(var(--header-occupied-h) + 12px) 0 12px;
  margin: auto;
  max-width: none;
  max-height: calc(100dvh - var(--header-occupied-h) - 24px);
  padding: 0;
  border: 0;
  overflow: auto;
  background: transparent;
  color: var(--cream, #edd5bf);
  box-shadow: none;
}
.share-shade {
  position: fixed;
  inset: var(--header-occupied-h) 0 0;
  z-index: 259;
  background: rgb(0 0 0 / 76%);
  pointer-events: auto;
}
.share-dialog__body {
  width: var(--share-width);
  zoom: var(--share-scale);
}
.share-poster { display: block; width: 100%; height: auto; border-radius: 28px; }
.share-actions {
  box-sizing: border-box;
  width: 100%;
  height: var(--share-actions-height);
  margin-top: var(--share-actions-gap);
  padding-inline: var(--page-margin);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--cream, #edd5bf);
}
.share-actions button {
  appearance: none;
  padding: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: inherit;
  font: 600 14px/18px var(--ui-font);
  white-space: nowrap;
  cursor: pointer;
}
.share-actions button svg { width: 20px; height: 20px; flex: 0 0 20px; }
.share-actions button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.share-status { margin: 8px 0 0; font: 12px/16px var(--body-font); text-align: center; }
.share-status:empty { display: none; }
