@import "base.V9+=R.css";

.cm-editor .cm-gutters,
.cm-editor .cm-lineNumbers,
.cm-editor .cm-content {
  font-family: JetBrainsMono;
  outline: none;
  border: none;
  background: none;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.cm-editor,
.cm-editor .cm-scroller {
  flex-grow: 1;
  font-size: 1.0625rem;
  line-height: 1.5rem;
}

.cm-editor.cm-focused {
  outline: none;
}

.cm-editor .cm-lineNumbers .cm-gutterElement {
  padding: 0 0 0 0.5rem;
  min-width: 0;
  color: rgba(0, 32, 64, 0.3);
}

.cm-editor .cm-lineNumbers .cm-activeLineGutter {
  color: rgba(0, 32, 64, 0.7);
  background-color: rgba(0, 32, 64, 0.07);
}

.cm-editor .cm-content .cm-activeLine {
  background-color: rgba(0, 32, 64, 0.07);
}

.cm-editor .cm-content .cm-line {
  padding: 0 1rem;
}

.cm-editor .cm-content {
  align-self: stretch;
  padding: 1rem 0 50vh 0;
}

body.pending {
  background-color: hsla(var(--hue), 100%, 50%, 0.2);
  transition: background-color 3s cubic-bezier(0.8, 0, 0.8, 0);
}

body.posting {
  background-color: hsla(var(--hue), 100%, 50%, 0.2);
  transition: none;
}

body.posted {
  transition: background-color 0.3s;
}

body.error {
  background-color: rgba(255, 0, 0, 0.3);
}

body.error::after {
  content: attr(data-error);
  position: fixed;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  text-align: center;
  color: rgba(255, 0, 0, 0.3);
  font-size: 1.0625rem;
  font-weight: bold;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  pointer-events: none;
}