.kj-has-impact .fc-meta { display: none; }

.kj-has-impact .fc-body,
.kj-has-impact .ch-body { flex: 1; min-width: 0; }
.kj-has-impact.choice { align-items: flex-start; }
.kj-has-impact.choice .idx { margin-top: 2px; }

.kj-has-impact .fc-name { padding-inline-end: 2rem; }

.kj-has-impact:focus-visible {
  outline: 2px solid #8c1d3c;
  outline-offset: 2px;
}

.kj-impact-detail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin-block-start: 8px;
}

.kj-impact-bias {
  color: #573245;
  font-weight: 680;
  font-size: .81rem;
}

.kj-impact-changes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  min-width: 0;
}

.kj-impact-chip {
  padding: 2px 5px;
  border-radius: 4px;
  background: #edf2ef;
  color: #314641;
  font-size: .76rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.kj-impact-chip.kj-gain { background: #e3efe8; color: #225439; }
.kj-impact-chip.kj-loss { background: #f6e9e6; color: #793324; }
.kj-impact-chip.kj-mixed { background: #f2ecdf; color: #65461c; }
.kj-impact-pressure-change { border: 1px solid currentColor; }

.kj-impact-note, .kj-impact-event-hint {
  margin: 0;
  color: #435851;
  font-size: .76rem;
  line-height: 1.55;
}

.kj-impact-event-hint { margin-top: 12px; }
.kj-impact-event-hint + .choice-list { margin-top: 9px; }

.kj-impact-summary {
  padding: 9px 12px;
  margin-top: 12px;
  background: #eaf0ed;
  border-radius: 8px;
  color: #283e36;
  font-size: .84rem;
}

.kj-impact-summary .kj-impact-note { margin-top: 4px; }

.kj-impact-panel {
  padding: 11px 14px;
  border-top: 1px solid var(--line-soft);
  background: #f1f5f2;
}

.kj-impact-panel h3, .kj-impact-status-title {
  margin: 0;
  color: #253b35;
  font-size: .8rem;
  font-weight: 680;
  overflow-wrap: anywhere;
}

.kj-impact-status:empty { display: none; }
.kj-impact-status + h3 { margin-top: 9px; }
.kj-impact-status:empty + h3 { margin-top: 0; }
.kj-impact-status .kj-impact-changes { margin-top: 4px; }
.kj-impact-previewing .kj-impact-status-title { color: #73334c; }

.kj-impact-balance-mode {
  margin-left: 8px;
  color: #573245;
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: normal;
}

.kj-impact-tracks {
  padding: 0;
  margin: 4px 0;
  list-style: none;
  color: #344b43;
  font-size: .77rem;
}

.kj-impact-tracks li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
}

.kj-impact-tracks .kj-pressure-ready { color: #793324; font-weight: 680; }

.kj-stat-impact {
  display: inline-block;
  color: #314641;
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  font-weight: 650;
}

.kj-stat-impact.kj-gain { color: #225439; }
.kj-stat-impact.kj-loss { color: #793324; }
.kj-stat-impact.kj-mixed { color: #65461c; }
.stat-top:has(.kj-stat-impact) { flex-wrap: wrap; column-gap: 6px; row-gap: 1px; }
.stat-top:has(.kj-stat-impact) .stat-name { margin-right: auto; }
.kj-impact-previewing .kj-stat-impact { background: #f1eee4; border-radius: 4px; padding: 1px 4px; }

.kj-impact-ending {
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
  margin: 12px 0;
  color: #314641;
  font-size: .84rem;
}

.kj-impact-ending h3 { margin-bottom: 6px; font-size: .95rem; }
.kj-impact-ending p, .kj-impact-ending li { margin: 4px 0; }
.kj-impact-ending-emphasis { color: #573245; font-weight: 650; }
.kj-impact-ending ol { padding-inline-start: 1.2em; }

@media (hover: none) {
  .kj-impact-hover-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .kj-has-impact { transition: none; }
}
