.species-results {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  display: grid;
  gap: 7px;
}

.species-result {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  background: white;
}

.species-result:hover,
.species-result:focus-visible {
  background: #eff6ef;
  border-color: #245d44;
}

.species-result-name {
  font-weight: 700;
}

.species-result-scientific {
  font-style: italic;
  font-weight: 400;
  font-size: .9em;
}

.species-result-action {
  color: #53695d;
  font-size: .8em;
  font-weight: 400;
}

#speciesSearch {
  width: 100%;
  min-width: 0;
  font-size: 16px;
}

#manualSpecies summary {
  min-height: 44px;
  padding-block: 10px;
}

#speciesSearchStatus:empty {
  display: none;
}

#speciesDialog {
  position: fixed;
  inset: max(12px, env(safe-area-inset-top)) 0 auto;
  margin: 0 auto;
  width: min(560px, calc(100% - 24px));
  max-height: calc(100dvh - 24px - env(safe-area-inset-top));
  box-sizing: border-box;
  overflow-y: auto;
  padding: 18px;
  border: 1px solid #b8c9bd;
  border-radius: 16px;
  background: #f8faf7;
  color: #203e32;
}
#speciesDialog::backdrop { background: rgb(12 32 24 / 55%); }
#speciesDialog .new-tree-form { margin: 0; padding: 0; border: 0; }
.species-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.species-dialog-heading h2 { margin: 0; font-size: 1.25rem; }
#cancelNewTree { min-width: 44px; min-height: 44px; font-size: 1.5rem; }
#speciesResults { max-height: 36dvh; overflow-y: auto; overscroll-behavior: contain; }
#speciesDialog input, #speciesDialog select { box-sizing: border-box; width: 100%; font-size: 16px; }
