/* Share button row and the full-screen share sheet (js/share-card.js). Uses home.css / site-app.css tokens. */
.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 18px; }
.share-row span { font-size: 13px; color: var(--muted); }

html.share-open, html.share-open body { overflow: hidden; }
.share-sheet { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(12, 10, 20, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: share-fade .25s ease both; }
.share-sheet[hidden] { display: none !important; }
@keyframes share-fade { from { opacity: 0; } }
.share-panel { display: flex; flex-direction: column; width: min(460px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); overflow: hidden; animation: share-up .35s cubic-bezier(.2, .9, .25, 1) both; }
@keyframes share-up { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.share-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 8px 20px; }
.share-head b { font-size: 16px; }
.share-x { appearance: none; border: 0; background: var(--tile); color: var(--ink); width: 36px; height: 36px; border-radius: 50%; font: 400 24px/1 var(--sans); cursor: pointer; }
.share-body { flex: 1 1 auto; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 16px; }
/* Long press on this image is how WeChat users save it, forward it, or scan its QR code. */
.share-img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); -webkit-touch-callout: default; -webkit-user-select: auto; user-select: auto; }
.share-wait { margin: 40px 0; text-align: center; color: var(--muted); font-size: 15px; }
.share-wait.err { color: var(--bad, #d64545); }
.share-tip { margin: 12px 20px 0; text-align: center; font-weight: 600; font-size: 15px; color: var(--you); }
.share-tip:empty { display: none; }
.share-actions { display: flex; justify-content: center; gap: 10px; padding: 12px 16px 0; }
.share-actions:not(:has(:not([hidden]))) { display: none; }
.share-actions .btn { flex: 1 1 0; max-width: 200px; }
.share-note { margin: 10px 20px 16px; text-align: center; font-size: 12px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .share-sheet, .share-panel { animation: none; } }
