.clue-integrity-law {
  margin-top: 0;
}

.clue-status-tracker {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .5rem;
}

.clue-status-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-width: 0;
  padding: .34rem .48rem;
  border: 1px solid rgba(137, 255, 218, .18);
  background: rgba(0, 0, 0, .24);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.clue-status-chip.is-active {
  border-color: rgba(185, 84, 255, .58);
  box-shadow: inset 0 0 14px rgba(185, 84, 255, .08);
}

.clue-chip-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  min-height: 1.35rem;
  border: 1px solid rgba(137, 255, 218, .24);
  color: var(--cyan);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.clue-integrity-summary {
  margin-top: .4rem;
}

.clue-integrity-counts {
  margin: 0;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.35;
}

.clue-integrity-active {
  display: grid;
  gap: .45rem;
  margin-top: .5rem;
  padding: .55rem .58rem;
  border: 1px solid rgba(137, 255, 218, .16);
  background: rgba(0, 0, 0, .18);
}

.clue-workbench-title {
  margin: 0;
  font-size: .72rem;
  line-height: 1.35;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: pretty;
}

.clue-integrity-detail {
  display: grid;
  gap: .32rem;
}

.clue-state-badge {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: .12rem .36rem;
  border: 1px solid rgba(137, 255, 218, .2);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.clue-state-unknown {
  color: var(--muted);
}

.clue-state-discovered {
  color: #9ef7ff;
  border-color: rgba(102, 255, 220, .34);
}

.clue-state-secured {
  color: #b8ffd8;
  border-color: rgba(102, 255, 180, .34);
}

.clue-state-archived {
  color: #e2c8ff;
  border-color: rgba(185, 84, 255, .34);
}

.clue-state-contaminated {
  color: #ffd0b8;
  border-color: rgba(255, 120, 92, .34);
}

.clue-state-rerouted {
  color: #ffe7a8;
  border-color: rgba(255, 196, 92, .34);
}

.clue-integrity-line {
  display: grid;
  gap: .14rem;
  margin: 0;
  font-size: .68rem;
  line-height: 1.3;
}

.clue-integrity-line strong {
  color: var(--cyan);
  font-size: .58rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.clue-integrity-line span {
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: pretty;
}

.clue-integrity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .38rem;
}

.clue-integrity-actions .button {
  min-height: 1.95rem;
  font-size: .64rem;
}

.clue-integrity-actions .button.is-active {
  border-color: rgba(185, 84, 255, .58);
  box-shadow: inset 0 0 18px rgba(185, 84, 255, .08);
}

.clue-preview-panel {
  margin-top: 0;
}

.clue-integrity-status {
  margin-top: .45rem;
}

.clue-integrity-empty,
.clue-integrity-status {
  display: block;
  min-height: 1.65rem;
  padding: .42rem .52rem;
  border: 1px solid rgba(137, 255, 218, .14);
  background: rgba(0, 0, 0, .18);
  color: var(--muted);
  font-size: .66rem;
  line-height: 1.35;
}

@media (max-width: 680px) {
  .clue-integrity-actions .button {
    flex: 1 1 100%;
  }
}