html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: Inter, system-ui, Arial;
  background: #f8fafc;
  overflow: hidden;
  display: flex;
}

#canvasWrap {
  flex: 4;
  height: 100vh;
  display: flex;
  /* align-items: center;
  justify-content: center; */
  background: #dbdedf;
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: default;
  touch-action: none;
}

#controls {
  flex: 1;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
  gap: 16px;
  overflow-y: auto
}


@media (max-width: 768px) {
  #canvasWrap { flex: 7; }
  #controls { flex: 3; }
}

h2 {
  font-size: 16px;
  margin: 0 0 8px;
}

label {
  font-size: 14px;
  color: #0f172a;
  display: block;
  margin-bottom: 4px;
}

select,
input[type="number"] {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

.field {
  display: flex;
  flex-direction: column;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}