c-segment {
  display: grid;
  grid-template-columns: calc(50% - 5px) calc(50% - 5px);
  column-gap: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
  position: relative;
}
c-segment.working > span.working, c-segment.working-quietly > span.working {
  background-image: url(/home/preloader.gif);
  height: 7px;
  width: 200px;
  background-size: auto 7px;
  background-repeat: no-repeat;
  background-position: bottom right;
  position: absolute;
  bottom: 17px;
  right: 10px;
}
c-segment > div {
  padding: 10px;
  line-height: 1.5em;
  box-sizing: border-box;
  border: 1px solid #cccccc;
  border-radius: 4px;
}
c-segment > div.source {
  text-align: right;
  text-wrap: balance;
}
c-segment > div.target {
  box-shadow: inset 1px 1px 0px #aaaaaa;
  background-color: #ffffff;
}
c-segment > div > div.text {
    line-height: 1.75em;
}
c-segment.working > div > div.text {
  color: #666666;
}
c-segment > div > div.text > span.word {
  cursor: pointer;
  padding-bottom: 1px;
}
c-segment > div > div.text > span.word.has_suggestions {
  border-bottom: 1px dotted #000000;
}
c-segment > div > div.text > span.word:hover {
  color: #333333;
}
c-segment > div > div.text > span.word.hilited {
  background-color: #fff6cc;
  color: #000000;
}
c-segment > div.target > div.suggestions {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: auto;
  background-color: #eeeeee;
  margin: 10px -9px -9px -9px;
  font-size: 0.9em;
  height: calc(1.5em + 10px)
}
c-segment > div.target > div.suggestions > button {
  display: inline-block;
  min-width: auto;
  width: auto;
  padding: 5px 0px;
  font: inherit;
  line-height: 1.5em;
  border: 0px;
  white-space: nowrap;
  cursor: pointer;
  background-color: #eeeeee;
  outline-offset: -2px;
}
c-segment > div.target > div.suggestions > button:hover {
  background-color: #d9d9d9;
}
