body {
  background: #eef3f7;
  color: #1b2636;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  overflow-x: hidden;
}

.dashboard {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  margin: 0 auto;
  max-width: 1600px;
  padding: 12px;
  width: 100%;
}

.dashboard.sim-full {
  grid-template-columns: minmax(0, 1fr);
}

.theCanvas {
  min-width: 0;
  width: 100%;
}

#myCanvas {
  box-sizing: border-box;
  display: block;
  height: auto;
  max-width: none;
  width: 100%;
}

.control-panel,
.grid-container,
#spectraButtons,
#valueButton {
  background: #ffffff;
  border: 1px solid #d8e2ef;
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(20, 38, 64, 0.12);
  color: #334155;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
}

.grid-container {
  align-items: center;
  grid-template-columns: max-content minmax(140px, 1fr) max-content max-content;
}

.control-panel-title,
#spectraButtons b,
#valueButton {
  font-size: 15px;
  font-weight: 900;
}

.simulation-buttons,
.control-buttons,
#spectraButtons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.simulation-buttons {
  margin: 0 0 14px;
}

.icon-control {
  align-items: center;
  background: #f2f4f8;
  border: 1px solid #777;
  border-radius: 4px;
  color: #000;
  cursor: pointer;
  display: inline-flex;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 900;
  height: 50px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 50px;
}

.icon-control:hover {
  background: #e3e8f1;
}

input[type=button],
button.choice-button {
  background: #f5f7fb;
  border: 1px solid #b8c4d6;
  border-radius: 6px;
  box-shadow: none;
  color: #243244;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  margin: 0;
  padding: 8px 10px;
}

input[type=button]:hover,
button.choice-button:hover {
  background: #e7edf7;
}

input[type=button].selected {
  box-shadow: 0 0 0 3px rgba(18, 109, 255, 0.28), 0 10px 18px rgba(20, 38, 64, 0.16);
  opacity: 1 !important;
  transform: translateY(-1px);
}

input[type=range] {
  width: 100%;
}

.attribution {
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin: 14px auto 0;
  max-width: 1600px;
  padding: 0 12px 14px;
  text-align: center;
}

.attribution img {
  height: 22px;
  margin-right: 6px;
  vertical-align: middle;
}

.attribution a {
  color: #1457c8;
}

@media (max-width: 900px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .grid-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .control-panel {
    width: 100%;
  }
}
