/* Shared controls stay in document order and never cover profile content. */
body .sharediv {
  position: absolute;
  z-index: 3;
  top: 20px;
  right: max(20px, calc((100% - 580px) / 2));
  padding: 0;
}
.sharebutton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #52637b;
  border-radius: 3px;
  background: #151e2b;
  color: #f4f2eb;
  font: 600 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}
body .sharebutton .share-icon { color: #8fcbff !important; font-size: 16px; }
.sharebutton:hover { background: #203047; border-color: #8fcbff; }
/* LinkStack renders an empty .copy-icon span that has no behaviour (only .share-button has a click handler: native share sheet, or copy + alert).
   Never show a control that does nothing. */
body .copy-icon { display: none !important; }
.toastdiv { display: flex; justify-content: center; }
.toastbox {
  position: fixed;
  z-index: 10;
  bottom: 24px;
  left: 50%;
  width: min(320px, calc(100% - 40px));
  padding: 16px;
  transform: translate(-50%, 160px);
  background: #f4f2eb;
  color: #080d14;
  border: 1px solid #8fcbff;
  text-align: center;
  pointer-events: none;
}
.toastbox.toast-tox--active { transform: translate(-50%, 0); }
@media (min-width: 768px) {
  body .sharediv { top: 24px; }
}
