* { box-sizing: border-box; }

body {
  margin: 0;
  display: flex;
  height: 100vh;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #14171c;
  color: #dde3ea;
  overflow: hidden;
}

#sidebar {
  width: 300px;
  min-width: 300px;
  padding: 16px;
  overflow-y: auto;
  background: #1b1f26;
  border-right: 1px solid #2c323c;
}

#viewport {
  flex: 1;
  position: relative;
}

#viewport canvas { display: block; }

h1 {
  font-size: 19px;
  margin: 0 0 4px;
}

.subtitle {
  font-size: 12px;
  color: #8b95a3;
  margin: 0 0 14px;
  line-height: 1.4;
}

.section {
  margin-bottom: 14px;
  padding: 10px 12px;
  background: #21262f;
  border-radius: 8px;
}

.section h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7fb2ff;
  margin: 0 0 8px;
}

label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  margin: 6px 0;
}

label.check { justify-content: flex-start; }

input[type="number"], select {
  width: 100px;
  padding: 4px 6px;
  background: #14171c;
  color: #dde3ea;
  border: 1px solid #3a4250;
  border-radius: 5px;
  font-size: 13px;
}

input:disabled { opacity: 0.5; }

.info {
  font-size: 12.5px;
  line-height: 1.7;
  color: #b8c2cf;
}

.info b { color: #dde3ea; }

#warnings { margin-bottom: 14px; }

.warn {
  background: #3a2b1a;
  border: 1px solid #8a6420;
  color: #f0c674;
  font-size: 12.5px;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.buttons { display: flex; gap: 8px; }

button {
  flex: 1;
  padding: 10px 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: #2d6cdf;
  border: none;
  border-radius: 7px;
  cursor: pointer;
}

button:hover { background: #3d7cf0; }

.hint {
  font-size: 11.5px;
  color: #7c8695;
  line-height: 1.5;
}
