html, h1, pre {
  margin: 0;
}

body {
  font-family: Helvetica, Arial, sans-serif;
  margin: 1rem;
}

.column {
  display: contents;
}

h1 {
  margin-top: 1rem;
  margin-bottom: .5rem;
}

@media (min-width: 1100px) and (min-height: 600px) and (orientation: landscape) {
  body {
    height: calc(100vh - 2rem);
    display: flex;
    flex-direction: row;
    gap: 1rem;
  }

  .column {
    height: 100%;
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;

    &:first-child {
      order: 1;
    }

    > *:last-child {
      flex: 1;
      /* Flex items interpret the default min-height as min-content which can
       * expand beyond the parent. */
      min-height: 0;
    }
  }

  #plan {
    max-height: 45vh;
  }

  section {
    overflow: auto;
  }

  h1:first-child {
    margin-top: 0;
  }
}

pre {
  min-width: fit-content;
}

svg {
  max-width: 100%;
  height: auto;
}

[data-oid] {
  cursor: pointer;
  outline: 1px dotted gray;
}

#objects .details polygon {
  fill: lightgray;
}
#plan .details {
  background: lightgray;
}

#objects .hover polygon {
  fill: lightblue;
}
#plan .hover {
  background: lightblue;
}
