.terminal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #000;
  font-family: monaco, sans-serif;
  font-size: 12px;
}
.terminal .content {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 2px 8px 2px 5px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-content: flex-start;
}
/* Each prompt row or command output must stack vertically (float layout breaks inside flex windows). */
.terminal .content > div {
  position: relative;
  display: block;
  width: 100%;
  flex: 0 0 auto;
  clear: both;
}
.terminal .content .ps1 {
  display: inline-block;
  color: #fff;
  margin-right: 5px;
}
.terminal .content .ps1 .who {
  color: #94a0f8;
}
.terminal .content .ps1 .where {
  color: #00b82e;
}
.terminal .content .ps1 .branch {
  color: #a0a0a0;
}
.terminal .content .code {
  color: #fff;
  white-space: pre-wrap;
}
.terminal .content .code.stderr::before {
  content: '✖';
  float: left;
  color: #ff6c65;
  margin-right: 7px;
}
.terminal .content .caret {
  display: inline-block;
  width: 8px;
  height: 15px;
  margin-bottom: -4px;
  background: #fff;
  color: #000;
}
.terminal .content .valid {
  color: #00b82e;
}
.terminal .content .valid .caret {
  background: #00b82e;
  color: #000;
}
.terminal .content .invalid {
  color: #ff6c65;
}
.terminal .content .invalid .caret {
  background: #ff6c65;
  color: #000;
}
.terminal .content .string {
  color: #c4c33e;
}
.fake-input {
  width: 1px;
  height: 1px;
  border: 0;
  background: none;
}
*:focus {
  outline: 0;
}
