html, body {
  margin: 0;
  height: 100%;
  font-family: system-ui, sans-serif;
}

#map {
  position: absolute;
  inset: 0;
}

#panel {
  position: absolute;
  z-index: 1000;
  top: 12px;
  left: 12px;
  background: #fff;
  padding: 14px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  width: 260px;
}

#panel h1 {
  font-size: 16px;
  margin: 0 0 10px;
}

#panel label {
  font-size: 12px;
  color: #555;
  display: block;
  margin-bottom: 2px;
}

#panel input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  padding: 4px 6px;
  margin-bottom: 10px;
}

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

.row button {
  flex: 1;
  padding: 6px 4px;
  font-size: 12px;
  cursor: pointer;
}

#stats {
  margin-top: 10px;
  font-size: 13px;
}

.hint {
  font-size: 11px;
  color: #666;
  margin-top: 10px;
  line-height: 1.4;
}

.error {
  color: #c0392b;
  font-size: 12px;
  white-space: pre-wrap;
}
