:root {
  color-scheme: light dark;
  font-family: system-ui, sans-serif;
}

html,
body,
#app {
  height: 100%;
  margin: 0;
}

.workspace {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  height: 100%;
  padding: 1rem;
}

.pane {
  display: flex;
  min-height: 0;
  flex-direction: column;
}

.pane-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  user-select: none;
}

.editor,
.output {
  min-height: 0;
  flex: 1;
  margin: 0;
  overflow: auto;
  white-space: pre;
}

.editor {
  resize: none;
}

.empty {
  opacity: 0.65;
}

.error {
  color: #c62828;
}

@media (max-width: 700px) {
  .workspace {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  }
}
