.plot-wrapper {
  width: 95%;
  max-width: 1000px;
  margin: 0 auto;
}

.plot-container {
  position: relative;
  width: 100%;
  aspect-ratio: 800 / 350;
  background: #fff;
  overflow: hidden;
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
}

#eegCanvas{
  opacity: 50%;
}

.legend {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  background: rgba(255,255,255,0.9);
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  box-shadow: 0 0 5px rgba(0,0,0,0.08);
  opacity: 50%;
}

.legend button {
  border: none;
  background: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.15s;
}
.legend button:hover { background: #eee; }

#btnFace{
  color: red;
}

#btnPlant{
  color: green;
}