.menu-share {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 20;
}
.share-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  margin-left: auto;
  padding: 12px 20px;
  border: 1px solid #ffffff40;
  border-radius: 28px;
  background: var(--red);
  color: #fff;
  box-shadow: 0 5px 20px #4b181d30;
  font-size: 14px;
  font-weight: 700;
}
.share-toggle:hover, .share-toggle[aria-expanded="true"] { background: #b9211b; }
.share-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(310px, calc(100vw - 32px));
  max-height: calc(100dvh - 110px);
  overflow-y: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 12px 45px #19191629;
}
.share-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.share-heading h2 { font-size: 25px; letter-spacing: -.5px; }
.share-close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin: -10px -10px -6px 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 26px;
}
.share-close:hover { background: #eeece6; }
.share-panel > p { margin: 8px 0 16px; color: var(--muted); font-size: 13px; }
.share-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  font-size: 14px;
  font-weight: 600;
}
.share-option:hover { border-color: var(--red); color: var(--red); }
.share-option svg { width: 18px; height: 18px; }
.share-panel .share-status { margin: 12px 0 0; color: var(--red); }
.share-status:empty { display: none; }
#share-manual label { display: block; margin-top: 12px; font-size: 12px; }
#share-url { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 6px; font: 14px var(--sans); }
footer { padding-bottom: 88px; }
@media (max-width: 700px) {
  .menu-share { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
  .share-toggle { width: 50px; padding: 12px; }
  .share-toggle > span { display: none; }
}
@media print { .menu-share { display: none; } }
