body, html {
  margin: 0;
  padding: 0;
  height: 100%; 
  font-family: sans-serif; 
  background: #f0f0f0; 
} 
#app { 
  position: relative;
  width: 100%;
  height: 100%; 
} 
canvas { 
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block; 
  touch-action: none;
  background: #fff;
}
#loadInput { display: none; }
.file-label { 
  font-size: 16px; 
  padding: 6px 10px;
  margin: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
} 
button { 
  font-size: 16px; 
  padding: 6px 10px;
  margin: 4px; 
  border: 1px solid #ccc;
  border-radius: 4px; 
  background: #fff; 
  cursor: pointer; 
} 
aside { 
  position: absolute; 
  top: 0; 
  right: 0; 
  width: 300px;
  height: 100%; 
  background: #fff; 
  border-left: 2px solid #ccc;
  overflow: auto;
  padding: 10px; 
  display: none;
} 
aside.open { 
  z-index: 50;
  display: block;
} 
input {
  border: 1px solid #ccc;
  border-radius: 4px; 
  padding: 4px;
} 
select {
  width : 100%;
  border: 1px solid #ccc;
  border-radius: 4px; 
  padding: 4px;
} 
textarea{
  border: 1px solid #ccc;
  border-radius: 4px; 
  padding: 4px;
  width: 100%; 
} 
.rule-row, .symbol-row, .new-symbol-row { 
  display: flex;
  align-items: center;
  gap: 4px; 
  margin-bottom: 4px; 
} 
.notice { 
  position: fixed; 
  left: 50%; 
  transform: translateX(-50%); 
  bottom: 16px; 
  background: rgba(0,0,0,0.8);
  color: white; 
  padding: 8px 12px; 
  border-radius: 8px;
  z-index: 9999; 
  display: none; 
}
#guideBox { 
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%; 
  max-width: 600px; 
  background: white;
  border: 2px solid black;
  padding: 20px; 
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  z-index: 1000; 
}
#guideBox h2 { margin-top: 0; }
