.share-menu-trigger {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(57, 95, 123, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  color: #183f68;
  box-shadow: 0 10px 24px rgba(24, 63, 104, 0.14);
  cursor: pointer;
  font: inherit;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.share-menu-trigger:hover,
.share-menu-trigger:focus-visible {
  border-color: rgba(45, 111, 159, 0.48);
  background: #fff;
  outline: none;
  transform: translateY(-1px);
}

.share-menu-trigger__bars {
  display: grid;
  width: 18px;
  gap: 4px;
}

.share-menu-trigger__bars i {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.app-header-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.share-menu-shell[hidden] {
  display: none !important;
}

.share-menu-shell {
  position: fixed;
  z-index: 2400;
  inset: 0;
}

.share-menu-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(12, 28, 43, 0.34);
  opacity: 0;
  cursor: default;
  backdrop-filter: blur(4px);
  transition: opacity 180ms ease;
}

.share-menu-panel {
  --share-blue: #183f68;
  --share-cyan: #2d6f9f;
  --share-gold: #d9aa4e;
  --share-ink: #20313f;
  --share-muted: #697b88;
  position: absolute;
  top: 82px;
  right: 24px;
  width: min(380px, calc(100vw - 32px));
  max-height: calc(100vh - 106px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(57, 95, 123, 0.18);
  border-radius: 18px;
  background: rgba(249, 252, 253, 0.97);
  color: var(--share-ink);
  box-shadow: 0 28px 80px rgba(20, 43, 59, 0.28);
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

.share-menu-shell.is-open .share-menu-backdrop,
.share-menu-shell.is-open .share-menu-panel {
  opacity: 1;
}

.share-menu-shell.is-open .share-menu-panel {
  transform: translateY(0) scale(1);
}

.share-menu-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.share-menu-head p,
.share-menu-contact-label {
  margin: 0 0 4px;
  color: var(--share-cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.share-menu-head h2 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.share-menu-close {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(57, 95, 123, 0.18);
  border-radius: 50%;
  background: #fff;
  color: var(--share-blue);
  font-size: 1.25rem;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
}

.share-menu-preview {
  display: grid;
  gap: 5px;
  margin: -2px 0 13px;
  padding: 13px 14px;
  border: 1px solid rgba(57, 95, 123, 0.13);
  border-radius: 12px;
  background: rgba(229, 240, 245, 0.6);
}

.share-menu-preview > span {
  color: var(--share-cyan);
  font-size: 0.65rem;
  font-weight: 800;
}

.share-menu-preview > strong {
  color: var(--share-blue);
  font-size: 0.88rem;
  line-height: 1.4;
}

.share-menu-preview > p {
  margin: 0;
  color: var(--share-muted);
  font-size: 0.72rem;
  line-height: 1.48;
}

.share-menu-preview > code {
  display: block;
  overflow: hidden;
  color: #557484;
  font-family: var(--font-mono, "SFMono-Regular", Consolas, monospace);
  font-size: 0.61rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-menu-action,
.share-menu-contact-link {
  display: grid;
  width: 100%;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(57, 95, 123, 0.16);
  border-radius: 12px;
  background: #fff;
  color: var(--share-ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.share-menu-action:hover,
.share-menu-action:focus-visible,
.share-menu-contact-link:hover,
.share-menu-contact-link:focus-visible {
  border-color: rgba(45, 111, 159, 0.46);
  outline: none;
  box-shadow: 0 12px 28px rgba(45, 111, 159, 0.12);
  transform: translateY(-1px);
}

.share-menu-action--primary {
  border-color: transparent;
  background: var(--share-blue);
  color: #fff;
}

.share-menu-action--primary:hover,
.share-menu-action--primary:focus-visible {
  border-color: transparent;
  box-shadow: 0 14px 32px rgba(24, 63, 104, 0.26);
}

.share-menu-action--copy {
  margin-top: 9px;
}

.share-menu-action--copy .share-menu-action-icon {
  background: rgba(45, 111, 159, 0.1);
  color: var(--share-blue);
}

.share-menu-action-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  grid-row: 1 / 3;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: inherit;
  font-size: 1.15rem;
  font-weight: 800;
}

.share-menu-contact-link .share-menu-action-icon {
  background: rgba(45, 111, 159, 0.1);
  color: var(--share-blue);
}

.share-menu-action strong,
.share-menu-contact-link strong {
  grid-column: 2;
  align-self: end;
  font-size: 0.98rem;
  line-height: 1.35;
}

.share-menu-action small,
.share-menu-contact-link small {
  grid-column: 2;
  align-self: start;
  margin-top: 2px;
  color: currentColor;
  font-size: 0.77rem;
  line-height: 1.4;
  opacity: 0.72;
  overflow-wrap: anywhere;
}

.share-menu-contact {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid rgba(57, 95, 123, 0.14);
}

.share-menu-contact-label {
  margin-bottom: 2px;
}

.share-menu-feedback {
  min-height: 20px;
  margin: 12px 2px 0;
  color: var(--share-muted);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}

body.share-menu-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .share-menu-panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: min(84vh, 620px);
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
    transform: translateY(24px);
  }

  .share-menu-shell.is-open .share-menu-panel {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .share-menu-trigger,
  .share-menu-backdrop,
  .share-menu-panel,
  .share-menu-action,
  .share-menu-contact-link {
    transition: none;
  }
}
