#phase8d-live-impact-panel {
  margin: 0 24px 24px;
}

.phase8d-impact-shell {
  border: 1px solid #d9e2dc;
  border-radius: 18px;
  background: #fbfaf6;
  padding: 22px;
}

.phase8d-impact-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.phase8d-impact-header h3 {
  margin: 2px 0 4px;
  font-size: 22px;
  color: #102d48;
}

.phase8d-impact-header p {
  margin: 0;
  color: #657386;
}

.phase8d-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  color: #087261 !important;
}

.phase8d-impact-state span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.phase8d-updating {
  background: #fff3d9;
  color: #805b08;
}

.phase8d-ready {
  background: #edf7f3;
  color: #0b6d5f;
}

.phase8d-matched {
  background: #eef2f4;
  color: #526275;
}

.phase8d-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.phase8d-impact-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid #dde4e1;
  border-radius: 14px;
  background: #fff;
}

.phase8d-impact-card header {
  min-height: 40px;
  color: #16324d;
  font-size: 14px;
}

.phase8d-impact-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 9px;
}

.phase8d-impact-values > div {
  min-width: 0;
}

.phase8d-impact-values span,
.phase8d-delta span {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #7b8793;
}

.phase8d-impact-values b {
  display: block;
  white-space: nowrap;
  overflow-wrap: normal;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  color: #172f48;
}

.phase8d-metric-status {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: #8b7451;
}

.phase8d-delta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid #edf0ee;
}

.phase8d-delta span {
  margin: 0;
}

.phase8d-delta strong {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: #526579;
}

.phase8d-clean-state {
  padding: 18px;
  border: 1px dashed #cfd8d3;
  border-radius: 14px;
  background: #fff;
}

.phase8d-clean-state strong {
  color: #16324d;
}

.phase8d-clean-state p {
  margin: 4px 0 0;
  color: #68778a;
}

.phase8d-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff0ed;
  color: #8a4137;
}

.phase8d-footnote {
  margin: 14px 0 0;
  font-size: 12px;
  color: #74808d;
}

@media (max-width: 1100px) {
  .phase8d-impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  #phase8d-live-impact-panel {
    margin: 0 14px 18px;
  }

  .phase8d-impact-header {
    flex-direction: column;
  }

  .phase8d-impact-grid {
    grid-template-columns: 1fr;
  }
}
