.connected-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}
.connected-primary, .connected-secondary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid #1a1b1a;
  border-radius: 7px;
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}
.connected-primary { background: #181919; color: #fff; }
.connected-primary:hover { background: #353535; color: #fff; }
.connected-secondary { background: #fff; color: #181919; }
.connected-secondary:hover { background: #ecece9; color: #181919; }
.finish-label { display: block; font-size: .875rem; margin-top: 8px; }
.finish-label input { width: 100%; margin-top: 4px; min-height: 42px; }
.possible-heading { margin: 12px 0 8px; font-size: 1rem; }
.confirm-match { padding: 6px 8px; background: #f0efe8; border-left: 3px solid #777467; }
#prepared-email {
  width: min(650px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 20px;
  overflow: auto;
  color: #181919;
  border: 1px solid #aaa;
  border-radius: 8px;
  background: #fff;
}
#prepared-email::backdrop { background: #18191980; }
#prepared-email .panel-head { align-items: start; }
#prepared-email textarea { display: block; width: 100%; margin: 6px 0 12px; font-size: 1rem; }
#explore-by-space .space-links { grid-template-columns: repeat(5,minmax(0,1fr)); }
@media (max-width: 900px) {
  #explore-by-space .space-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .hero .connected-actions { flex-direction: column; align-items: stretch; }
  .family-stories + .hero { gap: 24px; }
  .hero .portrait-stage { width: min(64vw, 240px); height: 295px; margin-inline: auto; }
  .hero .portrait-stage .fine-ring { top: 0; }
  .hero .portrait-stage .arch { top: 12px; }
  #explore-by-space .space-links { grid-template-columns: 1fr; }
  body:has(.family-stories) .hero .connected-actions,
  body:has(.family-stories) #explore-by-space .space-links { margin-inline: clamp(12px, 6vw, 24px); }
  body:has(.family-stories) a.afs-whatsapp-chat {
    position: relative;
    inset: auto;
    margin: 0 24px 20px;
  }
}
