* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: #0f1115;
  color: #e6e7ea;
}

#app {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: 100vh;
}

.panel {
  background: #171a21;
  padding: 16px;
  overflow-y: auto;
  border-right: 1px solid #2a2f3a;
}

.panel h1 {
  font-size: 20px;
  margin: 0 0 12px;
}

.panel h2 {
  font-size: 14px;
  margin: 16px 0 8px;
  color: #b4b8c6;
}

.panel .row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.panel label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  gap: 4px;
  flex: 1;
}

.panel .checkbox {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin-top: 8px;
}

.panel .checkbox select {
  flex: 1;
}


.panel input,
.panel select,
.panel button,
.panel textarea {
  border-radius: 6px;
  border: 1px solid #2a2f3a;
  background: #0f1115;
  color: #e6e7ea;
  padding: 6px 8px;
  font-size: 12px;
}

.panel button {
  cursor: pointer;
  background: #2b6cb0;
  border: none;
}

.panel button:hover {
  background: #2f79c5;
}

#openSimulation {
  background: #16a34a;
}

#openSimulation:hover {
  background: #15803d;
}

.panel textarea {
  width: 100%;
  margin-top: 8px;
  resize: vertical;
}

.voxel-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.voxel-button {
  border: 1px solid #2a2f3a;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12px;
  color: #e6e7ea;
  text-align: left;
  cursor: pointer;
  background: #0f1115;
  position: relative;
}

.voxel-button::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 6px;
  background: var(--voxel-color, #888);
  vertical-align: middle;
}

.voxel-button.selected {
  outline: 2px solid #63b3ed;
  border-color: transparent;
}

.hint {
  font-size: 12px;
  color: #8890a6;
}

.viewport {
  position: relative;
}

#scene {
  width: 100%;
  height: 100%;
  display: block;
}

ul {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  color: #9aa3b8;
}
