body {
  margin: 0;
  font-family: Arial, sans-serif;
}

.wrap {
  display: flex;
  height: 100vh;
}

.sidebar {
  width: 320px;
  padding: 20px;
  border-right: 1px solid #ddd;
  box-sizing: border-box;
}

.main {
  flex: 1;
  padding: 10px;
  box-sizing: border-box;
}

#plot {
  width: 100%;
  height: 95vh;
}

input, button {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  box-sizing: border-box;
}

#autocomplete-wrapper {
  position: relative;
  margin-top: 10px;
}

#autocomplete-wrapper input {
  margin-top: 0;
}

#suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  max-height: 220px;
  overflow-y: auto;
  z-index: 999;
  display: none;
}

#suggestions div {
  padding: 8px 10px;
  cursor: pointer;
  font-size: 13px;
}

#suggestions div:hover, #suggestions div.active {
  background: #e8f0fe;
}

.control-group {
  margin-top: 18px;
}

.control-group label {
  display: block;
  font-size: 12px;
  color: #555;
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.toggle {
  display: flex;
  gap: 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
}

.mode-btn {
  flex: 1;
  margin-top: 0;
  padding: 8px 6px;
  border: none;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  width: auto;
}

.mode-btn.active {
  background: #1f6feb;
  color: #fff;
}

.mode-btn + .mode-btn {
  border-left: 1px solid #ccc;
}

#cellTypeSelect {
  width: 100%;
  padding: 8px;
  margin-top: 0;
  font-size: 13px;
  box-sizing: border-box;
}