.status-ok,
.status-pending,
.status-failed {
  padding: .3rem .5rem;
  font-size: .6rem;
  white-space: nowrap;
}

.status-pending {
  color: #5b5683;
  background: #e9e7f4;
}

.status-failed {
  color: var(--red);
  background: #f4dfdb;
}

.view-3d {
  display: block;
  margin-top: .45rem;
  padding: .25rem .45rem;
  border: 1px solid var(--blue);
  background: transparent;
  color: var(--blue);
  font-size: .6rem;
  font-weight: 800;
  cursor: pointer;
}

.candidate-identity { min-width: 250px; max-width: 340px; }
.candidate-identity code,
.comparison-smiles { display: block; margin-top: .4rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .64rem; color: var(--muted); }
.copy-smiles { margin-top: .4rem; padding: 0; border: 0; background: transparent; color: var(--blue); font-size: .6rem; font-weight: 800; cursor: pointer; }
.comparison-smiles { max-width: 100%; }

.state-section { padding: 64px 5vw; background: #e9eee8; border-block: 1px solid var(--line); }
.state-controls { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; margin: 28px 0 18px; }
.state-controls label { display: grid; gap: 7px; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.state-controls input { width: 120px; padding: 11px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.state-warning { max-width: 850px; }
.state-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 22px; }
.state-card { background: var(--paper); border: 1px solid var(--line); border-radius: 5px; padding: 18px; display: grid; gap: 8px; }
.state-card header { display: flex; justify-content: space-between; align-items: center; }
.state-card code { font-size: .72rem; overflow-wrap: anywhere; }
.state-card small { color: var(--muted); }
.state-card .state-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: .75rem; }
.state-card button { justify-self: start; }

@media (max-width: 720px) {
  .state-section { padding: 3.5rem 1.2rem; }
}
