/* Reserve press-and-hold on member labels for the contact popup. */
.schedule-entry,
.schedule-entry *,
[data-contact-name],
[data-contact-name] * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* The dialog belongs to the outer page, so both page shells load this file. */
#member-contact-dialog {
  box-sizing: border-box;
  width: 360px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  color: #333;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
#member-contact-dialog::backdrop { background: rgba(0, 0, 0, .35); }
#member-contact-dialog .member-contact-header {
  padding: 20px;
  border-bottom: 1px solid #ddd;
  background: #f5f5f5;
}
#member-contact-dialog h3 { margin: 0; font-size: 24px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
#member-contact-dialog .member-contact-header p { margin: 8px 0 0; color: #666; font-size: 17px; }
#member-contact-dialog .member-contact-actions { display: grid; gap: 10px; padding: 16px; }
#member-contact-dialog .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  margin: 0;
  border-radius: 4px;
  font-size: 18px;
  line-height: 1.4;
  white-space: normal;
}
#member-contact-dialog .glyphicon { width: 20px; }
#member-contact-dialog .member-contact-close { width: calc(100% - 32px); margin: 0 16px 16px; }
