/* share-modal.css — self-contained share modal, themed entirely by the host
   app's design tokens (aaoo's navy palette + system font here). No hard-coded
   brand colors, so dropping this into another app re-themes it automatically.
   Seed of @samizdatonline/share. */
.sm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gap, 16px);
  z-index: 50;
}
.sm-backdrop[hidden] { display: none; }

.sm-dialog {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px 20px;
  font-family: var(--font-sans);
  color: var(--text);
}

.sm-close {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: 10px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius-pill, 999px);
}
.sm-close:hover { color: var(--text); background: var(--surface); }

.sm-title {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  margin-block-end: 16px;
}

.sm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.sm-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius, 6px);
  color: var(--text);
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}
.sm-tile:hover { border-color: var(--accent-strong, var(--accent)); }
.sm-icon { color: var(--accent); }
.sm-icon svg { width: 26px; height: 26px; display: block; }

.sm-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-block-start: 16px;
  padding: 11px;
  background: var(--btn-primary-bg);
  border: none;
  border-radius: var(--radius, 6px);
  color: var(--btn-primary-text);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.sm-copy svg { width: 18px; height: 18px; }
.sm-copy:hover { filter: brightness(1.06); }
