#demo .candidates:is([data-pending], [data-idle]) > * { visibility: hidden; }
#demo .sim-keyrow i.is-pressed {
  background: #87bef6;
  color: #102f5c;
  box-shadow: inset 0 -2px 0 #5b9cdc;
  transform: translateY(1px);
  font-weight: 750;
}
#demo .candidate.is-suggested {
  background: #d7eaff;
  color: #154777;
}
#demo .result.is-committed {
  background: #edf9f4;
  box-shadow: inset 3px 0 0 #68bba4;
}
#demo .result.is-committed output { color: #195d50; }
#demo .result.is-committed output::after { background: #398b74; }
@media (prefers-reduced-motion: no-preference) {
  #demo .demo-panel[data-phase="candidates"] .candidates:not([data-pending]) .candidate {
    animation: td-candidate-reveal 185ms ease-out;
  }
  #demo .demo-panel[data-phase="choosing"] .candidate.is-suggested {
    animation: td-candidate-press 270ms ease-out;
  }
  #demo .demo-panel[data-phase="committed"] .result.is-committed output {
    animation: td-insert 290ms ease-out;
  }
  @keyframes td-candidate-reveal {
    from { opacity: .4; transform: translateY(2px); }
  }
  @keyframes td-candidate-press {
    45% { transform: translateY(1px); background: #bcdcff; }
  }
  @keyframes td-insert {
    from { opacity: .4; transform: translateY(3px); }
  }
}
@media (prefers-reduced-motion: reduce) {
  #demo .sim-keyrow i.is-pressed { transform: none; }
  #demo .demo-panel .candidate, #demo .demo-panel .result output { animation: none; }
}
