#messages .message {
  margin: 15px 1em; /* note: vertical margin is also hard-coded in layout.js */
  padding: .5em .4em .5em 1em;
  z-index: 15;
}

#messages .regular {
  background-color: #def;
  border: 1px solid #28e;
}

#messages .important {
  background-color: #fea;
  border: 1px solid #951;
}

#messages .buttons {
  text-align: right;
  vertical-align: bottom;
}

#messages button {
  margin-right: .3em;
  background-color: white;
}

#messages .important input[type=text], #messages .important input[type=password], #messages .important button {
  border: 1px solid #A51;
}
#messages .regular input[type=text], #messages .regular input[type=password], #messages .regular button {
  border: 1px solid #28e;
}

#messages label {
  display: -moz-inline-box;
  display: inline-block;
  min-width: 5em;
}

.messagebody {
  white-space: pre-wrap;
}
