body {
  margin: 0;
  background-color: #000;
  color: #eee;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

code {
  color: inherit;
}

.card {
  margin-top: 20px;
}

.title-bar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.title-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.title-copy p {
  margin-bottom: 0;
}

.synth-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.synth-choice {
  min-width: 150px;
  text-align: left;
}

.synth-choice.is-selected {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}

.choice-name {
  display: block;
  font-weight: 700;
}

.choice-version {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.82;
}

.kup-info {
  display: flex;
  min-height: 24px;
  align-items: center;
}

.control-row,
.status-row,
.MIDI-label {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.MIDI-label {
  margin-bottom: 0;
}

.MIDI-select {
  min-width: 260px;
}

.status-pill {
  pointer-events: none;
}

#progressBar {
  width: min(460px, 100%);
}

#output {
  background-color: #111;
  color: #0f0;
  font-family: monospace;
  font-size: 12px;
  height: 260px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #333;
  margin-top: 12px;
}

.log-line {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.metadata-list {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px 12px;
  margin-bottom: 16px;
}

.metadata-list dt {
  color: #8ab4f8;
}

.metadata-list dd {
  margin: 0;
  color: #fff;
  word-break: break-word;
}

.modal-notes {
  min-height: 120px;
  padding: 12px;
  border: 1px solid #333;
  border-radius: 4px;
  background-color: #000;
  color: #0f0;
}

.modal-notes p:last-child {
  margin-bottom: 0;
}

#capabilityMessage:empty,
#queryStatus:empty,
#selectionStatus:empty {
  display: none;
}

.btn:disabled {
  opacity: 0.55;
}

@media (max-width: 720px) {
  .title-bar,
  .control-row,
  .status-row,
  .MIDI-label {
    align-items: flex-start;
    flex-direction: column;
  }

  .MIDI-select,
  #progressBar {
    width: 100%;
    min-width: 0;
  }
}
