@keyframes flash {
  0% {
    background: #1d1e22;
    box-shadow: 0 0 0 rgba(47, 47, 59, 0);
  }
  100% {
    background: #25252e;
    box-shadow: 0 0 5px 2px #25252e;
  }
}
.sandbox body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #1d1e22;
}
.sandbox #nav {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
  padding: 4px;
  background-color: #000;
  border-bottom: 2px solid #2f2f2f;
}
.sandbox #nav .spaceUsed {
  margin-left: auto;
  padding-right: 4px;
  color: #fff;
  font: 14px "JetBrains Mono", Serif;
}
.sandbox .editorAlertJs {
  position: absolute;
  top: 40px;
  left: 4px;
  z-index: 2;
  padding: 4px 8px;
  color: #fff;
  font: 14px "JetBrains Mono", Serif;
  background: #1d1e22;
  border: 2px solid #2f2f2f;
  border-radius: 4px;
  opacity: 0;
  animation: flash 500ms infinite linear alternate;
}
.sandbox .editorContent {
  display: flex;
  flex: 1 1 auto;
  height: 100%;
  overflow: hidden;
}
.sandbox .editorContent .editor {
  display: flex;
  flex: 0 0;
  flex-basis: 0;
  flex-direction: column;
  overflow: hidden;
}
.sandbox .editorContent .editor .editorItemWrapper {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
  transition: flex 150ms ease-in-out;
}
.sandbox .editorContent .editor .editorItemWrapper .editorItemHeader {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 8px 4px;
  color: #fff;
  font-family: sans-serif;
  background: #000;
  border-top: 2px solid #000;
  border-bottom: 2px solid #2f2f2f;
}
.sandbox .editorContent .editor .editorItemWrapper .editorItemHeader label {
  font-family: sans-serif;
}
.sandbox .editorContent .editor .editorItemWrapper .editorItemHeader button::after {
  display: block;
  content: "x";
}
.sandbox .editorContent .editor .editorItemWrapper:not(:first-of-type) .editorItemHeader {
  border-top: 2px solid #2f2f2f;
}
.sandbox .editorContent .editor .editorItemWrapper.collapsed {
  flex: 0 1 44px;
  min-height: 0;
}
.sandbox .editorContent .editor .editorItemWrapper.collapsed button::after {
  display: block;
  content: "o";
}
.sandbox .editorContent .editor .editorItemWrapper .syntax {
  position: relative;
  flex: 1 1 auto;
  min-width: 100%;
  max-width: 100%;
  height: 100%;
}
.sandbox .editorContent .editor .editorItemWrapper .syntax pre,
.sandbox .editorContent .editor .editorItemWrapper .syntax textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0.5em;
  color: #fff;
  border: unset;
  border-radius: 0;
  box-shadow: unset;
}
.sandbox .editorContent .editor .editorItemWrapper .syntax pre::-webkit-scrollbar,
.sandbox .editorContent .editor .editorItemWrapper .syntax textarea::-webkit-scrollbar {
  display: none;
}
.sandbox .editorContent .editor .editorItemWrapper .syntax code,
.sandbox .editorContent .editor .editorItemWrapper .syntax pre,
.sandbox .editorContent .editor .editorItemWrapper .syntax textarea {
  font: 14px "JetBrains Mono", Serif;
  line-height: 1.25;
  tab-size: 2;
}
.sandbox .editorContent .editor .editorItemWrapper .syntax pre {
  position: absolute;
  top: 0;
  left: 0;
  white-space: pre-line;
  background: transparent;
  pointer-events: none;
}
.sandbox .editorContent .editor .editorItemWrapper .syntax textarea {
  position: relative;
  color: transparent;
  white-space: pre;
  background: transparent;
  caret-color: #fff;
  scrollbar-width: none;
}
.sandbox .editorContent .renderWrapper {
  flex: 1 1 auto;
  overflow: hidden;
  background: #fff;
  border: unset;
}
.sandbox .editorContent .renderWrapper #renderArea {
  height: 100%;
  overflow: auto;
}
.sandbox #handle {
  box-sizing: border-box;
  width: 10px;
  height: 100%;
  background: #000;
  border-right: 2px solid #2f2f2f;
  border-left: 2px solid #2f2f2f;
  cursor: move;
  user-select: none;
}
.sandbox button {
  padding: 4px 8px;
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  background: #2f2f2f;
  border: unset;
  border-radius: 4px;
}