.container {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  color: var(--text-primary);
  max-width: 100%;
}

.container h1 {
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.tuning-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
}

.tuning-controls > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tuning-controls label {
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.tuning-controls input,
.tuning-controls select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-primary);
  font: inherit;
  font-size: 0.8125rem;
  outline: none;
  transition: all var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.tuning-controls select {
  padding-right: 1.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238e918f'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.625rem center;
}

.tuning-controls input:focus,
.tuning-controls select:focus {
  border-color: var(--text-secondary);
}

.string-button {
  padding: 0.75rem 1.5rem;
  margin: 0.375rem;
  font-size: 1.1em;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition);
}

.string-button:hover {
  background: var(--bg-overlay);
  border-color: var(--text-subtle);
}

#play-all {
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  color: var(--accent);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

#play-all:hover {
  background: rgba(138, 180, 248, 0.2);
}

#strings {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#output {
  margin-top: 1.25rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.instrument-select {
  margin: 1rem;
}

label[for=instrument] {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.8125rem;
}

#instrument {
  padding: 0.5rem 1.75rem 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238e918f'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.625rem center;
  outline: none;
  transition: all var(--transition);
  font-family: inherit;
}

#instrument:focus {
  border-color: var(--text-secondary);
}

.a440-control,
.transpose-control,
.tuning-mode-select,
.tuning-select {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--border-light);
  background: var(--bg-base);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
}

#tuning, #tuning-mode, #transpose, #a440 {
  background: var(--bg-input);
  color: var(--text-primary);
  -webkit-appearance: none;
  appearance: none;
}

#tuning, #tuning-mode {
  padding-right: 1.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238e918f'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.625rem center;
}
