/* ===== Export / Share action bar ===== */
.result-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.ra-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  color: var(--muted);
  font: 500 .8125rem/1 var(--font-body);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.ra-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}
.ra-btn:disabled {
  opacity: .55;
  cursor: wait;
}

/* ===== Share modal (desktop fallback) ===== */
#sm-share-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}
.sm-modal-box {
  position: relative;
  background: var(--card, #fff);
  border-radius: 12px;
  padding: 24px;
  width: min(500px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sm-modal-title {
  font: 600 1rem/1.2 var(--font-body, system-ui);
  color: var(--fg, #111);
}
/* Image preview (replaces the old textarea) */
.sm-modal-preview-img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line, #e5e7eb);
  display: block;
}
.sm-modal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sm-close-btn {
  margin-left: auto;
  color: var(--muted, #6b7280) !important;
}
.sm-modal-hint {
  font-size: .75rem;
  color: var(--muted, #6b7280);
  margin: 0;
}
