.mayhub-app-share-bar {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 2900;
}

.mayhub-app-share-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  background: linear-gradient(165deg, rgba(85,204,255,.94), rgba(0,126,244,.9) 48%, rgba(0,80,203,.94));
  color: #fff;
  box-shadow: inset 0 1px 1px #ffffffb3, 0 5px 18px #006bca55;
  font: 700 .9rem/1.2 "Segoe UI", sans-serif;
  text-shadow: 0 1px 3px #003d79;
  cursor: pointer;
}

.mayhub-app-share-launch:hover {
  background: linear-gradient(165deg, #73dbff, #008fff 48%, #005bdc);
}

.mayhub-app-share-dialog {
  box-sizing: border-box;
  width: min(94vw, 560px);
  max-height: 90vh;
  max-height: 90dvh;
  overflow: auto;
  margin: auto;
  padding: 24px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #1f2d3d;
  box-shadow: 0 20px 60px #00193755;
  font: 400 1rem/1.5 "Segoe UI", sans-serif;
}

.mayhub-app-share-dialog::backdrop { background: #001937bb; }
.mayhub-app-share-dialog.is-fallback { position: fixed; top: 5vh; left: 0; right: 0; z-index: 3001; }
.mayhub-app-share-dialog h2 { margin: 0; color: #002b5e; font-size: 1.45rem; }
.mayhub-app-share-dialog p { margin: .65rem 0; }
.mayhub-app-share-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0 10px; }
.mayhub-app-share-options button {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #a9c5df;
  border-radius: 10px;
  background: #f5f9fd;
  color: #21496f;
  font: 700 .92rem/1.3 "Segoe UI", sans-serif;
  cursor: pointer;
}
.mayhub-app-share-options button[aria-pressed="true"] { border-color: #0057a8; background: #e3f1ff; color: #003e79; box-shadow: inset 0 0 0 1px #0057a8; }
.mayhub-app-share-introduction { color: #526579; font-size: .9rem; }
.mayhub-app-share-preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 14px 0;
  padding: 14px;
  border-radius: 8px;
  background: #f1f6fb;
  font: inherit;
}

.mayhub-app-share-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mayhub-app-share-actions button,
.mayhub-app-share-actions a,
.mayhub-app-share-close {
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #9bbde0;
  border-radius: 8px;
  background: #fff;
  color: #0057a8;
  font: 600 .94rem/1.3 "Segoe UI", sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.mayhub-app-share-actions [data-action="share"] { background: #002b5e; color: #fff; }
.mayhub-app-share-qr { margin-top: 18px; text-align: center; }
.mayhub-app-share-qr img { display: block; width: 100%; max-width: 328px; height: auto; margin: auto; background: #fff; }
.mayhub-app-share-note { color: #526579; font-size: .85rem; }
.mayhub-app-share-manual { box-sizing: border-box; width: 100%; min-height: 90px; font: inherit; }
.mayhub-app-share-dialog [hidden] { display: none !important; }
.mayhub-app-share-dialog [role="status"] { min-height: 1.5em; color: #07518d; font-size: .88rem; }
.mayhub-app-share-dialog :focus-visible,
.mayhub-app-share-launch:focus-visible { outline: 3px solid #e8a600; outline-offset: 3px; }

@media (max-width: 600px) {
  .mayhub-app-share-bar {
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(12px + env(safe-area-inset-bottom));
  }
  .mayhub-app-share-launch { width: 48px; height: 48px; min-height: 48px; padding: 0; }
  .mayhub-app-share-launch span { display: none; }
}

@media (max-width: 360px) {
  .mayhub-app-share-dialog { padding: 16px; }
  .mayhub-app-share-actions { grid-template-columns: 1fr; }
}
