/* Share sheet (X / device share / copy) and the daily share button on Home.
   Paper language, same tokens as home-paper.css and lesson-chain.css. */

.share-sheet-dialog .confirm-dialog-panel {
  gap: 12px;
  border: 2px solid #15171b;
  border-radius: 6px;
  background: #fffdf8;
  box-shadow: 6px 6px 0 #15171b;
}

.share-sheet-dialog .confirm-dialog-panel h2 {
  color: #15171b;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.share-sheet-preview {
  margin: 0;
  padding: 12px 14px;
  border: 1.5px solid rgba(21, 23, 27, 0.22);
  border-radius: 4px;
  background: #f3efe5;
  color: #15171b;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  -webkit-user-select: text;
  user-select: text;
}

.share-sheet-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}

.share-sheet-actions button {
  min-height: 48px;
  margin: 0;
  padding: 0 16px;
  border: 1.5px solid #15171b;
  border-radius: 6px;
  background: #fffdf8;
  color: #15171b;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 900;
  cursor: pointer;
}

.share-sheet-actions button[hidden] {
  display: none;
}

.share-sheet-actions .share-sheet-x {
  background: #15171b;
  color: #fffdf8;
  box-shadow: 3px 3px 0 #ff654a;
}

.share-sheet-actions .share-sheet-native {
  background: #dbff65;
}

.share-sheet-actions .share-sheet-close {
  min-height: 40px;
  border-color: transparent;
  background: transparent;
  color: #5e625f;
  font-weight: 800;
}

.share-sheet-dialog .share-sheet-note {
  margin: 0;
  color: #5e625f;
  font-size: 0.76rem;
  font-weight: 700;
}

/* Daily share on Home: inside the streak card, after the week of smiles. */
body.view-home .home-share-button {
  width: 100%;
  min-height: 44px;
  margin: 12px 0 0;
  padding: 0 14px;
  border: 1.5px solid var(--lp-ink, #15171b);
  border-radius: 6px;
  background: var(--lp-white, #fffdf8);
  color: var(--lp-ink, #15171b);
  box-shadow: 3px 3px 0 var(--lp-coral, #ff654a);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
}

body.view-home .home-share-button[hidden] {
  display: none;
}
