html,
body {
  margin: 0;
  height: 100%;
  font-family: system-ui, Arial, sans-serif;
  background: #111;
  color: #eee;
}
#app {
  height: 100%;
  display: grid;
  grid-template-columns: 300px 1fr;
}
#ui {
  padding: 18px;
  background: #1b1b1b;
  overflow: auto;
  box-sizing: border-box;
}
#view {
  min-width: 0;
  position: relative;
  overflow: hidden;
  touch-action: none;
}
#view canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
h2 {
  margin: 0 0 14px;
  font-size: 20px;
}
label {
  display: block;
  margin-top: 15px;
  font-size: 13px;
}
input[type="range"] {
  width: 100%;
}
.value {
  float: right;
  font-variant-numeric: tabular-nums;
}
button {
  width: 100%;
  padding: 10px;
  margin-top: 12px;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}
.primary {
  background: #eee;
  color: #111;
}
.secondary {
  background: #333;
  color: #eee;
}
.row {
  margin-top: 15px;
  font-size: 13px;
}
.hint {
  font-size: 12px;
  line-height: 1.45;
  color: #aaa;
  margin-top: 18px;
}
#status {
  margin-top: 14px;
  padding: 10px;
  background: #252525;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.45;
}
@media (max-width: 700px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow: auto;
  }
  #app {
    height: auto;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }
  #ui {
    padding: 12px;
  }
  #view {
    height: 62dvh;
    min-height: 420px;
    width: 100%;
  }
  h2 {
    font-size: 18px;
  }
  .hint {
    display: none;
  }
}
