/* Share a stats card as an image (scripts/bc-statshare.js). Tokens from styles/modern.css. */
.bc-stats .bc-board, .bc-spotlight { position: relative; }
.bc-statshare-btn {
  position: absolute; top: 12px; right: 12px; z-index: 4;
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0;
  border: 1px solid var(--bc-line, #e4e4ea);
  border-radius: 99px;
  background: var(--bc-surface, #fff);
  color: var(--bc-muted, #6b6b76);
  font-size: 13px;
  cursor: pointer;
  transition: color .15s ease, transform .15s ease;
}
.bc-statshare-btn:hover { color: var(--bc-ink, #0b0b10); transform: scale(1.06); }
.bc-statshare-btn.is-busy { pointer-events: none; color: transparent; }
.bc-statshare-btn.is-busy::after {
  content: ''; position: absolute; width: 14px; height: 14px;
  border: 2px solid var(--bc-line, #e4e4ea); border-top-color: var(--bc-ink, #0b0b10);
  border-radius: 50%; animation: bcStatShareSpin .7s linear infinite;
}
.bc-statshare-btn.is-error { color: #c62f3a; border-color: #f0c2c6; }
@keyframes bcStatShareSpin { to { transform: rotate(360deg); } }
/* Keep card titles clear of the button */
.bc-stats .bc-board > h1:first-of-type, .bc-spotlight .bc-chart-caption { padding-right: 40px; }
.bc-share-actions button.bc-share-dl { border: 0; cursor: pointer; }
.bc-statshare-copy { appearance: none; border: 0; background: none; margin: 12px auto 0; padding: 6px 10px; font: inherit; font-size: 13px; font-weight: 600; color: var(--bc-muted, #6b6b76); cursor: pointer; display: block; }
.bc-statshare-copy:hover { color: var(--bc-ink, #0b0b10); }
