body {
  font-family: sans-serif;
  padding: 20px;
  max-width: 600px;
  margin: auto;
  background-color: #f8f8f8;
}

section {
  margin-bottom: 40px;
  max-width: 480px;
  background: white;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

h2 {
  font: sans-serif;
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.form-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 8px 4px;
  margin-bottom: 8px;
}

.button-row {
  display: flex;
  justify-content: flex-start;
  gap: 0;
}

input,
select {
  padding: 6px 8px;
  font-size: 1em;
  width: 100%;
  max-width: 200px;
  box-sizing: border-box;
  margin-top: 8px;
  margin-bottom: 8px;
  margin-right: 0;
}

button {
  padding: 6px 10px;
  font-size: 1em;
  cursor: pointer;
  margin-top: 8px;
  margin-bottom: 8px;
  margin-left: 0;
}

.result {
  margin-top: 15px;
  font-weight: bold;
  min-height: 1.2em;
}

footer {
  font-size: 0.6em;
  color: #888;
  text-align: center;
  margin-top: 2em;
  opacity: 0.8;
}
