.ai-insight {
  margin: 38px 0 0;
  padding: 28px 30px 20px;
  background: #11131a;
  color: #f8f8fa;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.ai-insight::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -130px;
  top: -160px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255, 255, 255, .025), 0 0 0 84px rgba(255, 255, 255, .018);
  pointer-events: none;
}

.ai-insight > header,
.ai-heading,
.ai-actions,
.ai-insight > footer {
  display: flex;
  align-items: center;
}

.ai-insight > header {
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.ai-heading {
  gap: 13px;
}

.ai-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--red);
  font-weight: 800;
  letter-spacing: -.5px;
}

.ai-heading small {
  color: #8e93a3;
  font-size: 10px;
  letter-spacing: .13em;
  font-weight: 700;
}

.ai-heading h2 {
  margin: 2px 0 0;
  font-size: 20px;
}

.ai-actions {
  gap: 14px;
}

.ai-actions time {
  color: #8e93a3;
  font-size: 11px;
}

.ai-actions button,
.ai-tabs button,
.evidence-wrap > button {
  font: inherit;
  cursor: pointer;
}

.ai-actions button {
  border: 1px solid #343743;
  border-radius: 6px;
  color: #d8dbe4;
  background: #1b1e27;
  padding: 7px 11px;
  font-size: 11px;
}

.ai-actions button.loading span {
  display: inline-block;
  animation: ai-spin .7s linear infinite;
}

.ai-tabs {
  display: flex;
  gap: 20px;
  margin: 26px 0 20px;
  border-bottom: 1px solid #2b2e38;
  position: relative;
  z-index: 1;
}

.ai-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #8e93a3;
  padding: 0 0 10px;
  font-size: 12px;
}

.ai-tabs button.active {
  color: #fff;
  border-color: var(--red);
}

.ai-body {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .85fr);
  gap: 36px;
  position: relative;
  z-index: 1;
  transition: opacity .18s, transform .18s;
}

.ai-body.changing {
  opacity: .35;
  transform: translateY(3px);
}

#insightText {
  margin: 0;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .01em;
}

.evidence-wrap {
  border-left: 1px solid #2b2e38;
  padding-left: 24px;
}

.evidence-wrap > button {
  width: 100%;
  border: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  color: #8e93a3;
  background: transparent;
  font-size: 11px;
}

#insightEvidence {
  list-style: none;
  margin: 11px 0 0;
  padding: 0;
}

#insightEvidence[hidden] {
  display: none;
}

#insightEvidence li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid #242731;
  color: #aeb2bf;
  font-size: 11px;
}

#insightEvidence a {
  color: #fff;
  font-weight: 650;
}

#insightEvidence em {
  color: #737888;
  font-style: normal;
}

.ai-insight > footer {
  justify-content: space-between;
  border-top: 1px solid #2b2e38;
  margin-top: 22px;
  padding-top: 14px;
  color: #727786;
  font-size: 10px;
  position: relative;
  z-index: 1;
}

@keyframes ai-spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .ai-insight {
    margin-top: 26px;
    padding: 22px 18px 17px;
    border-radius: 9px;
  }

  .ai-insight > header {
    align-items: flex-start;
  }

  .ai-actions time,
  .ai-actions button:not(.loading) span {
    display: none;
  }

  .ai-tabs {
    gap: 18px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .ai-body {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  #insightText {
    font-size: 14px;
    line-height: 1.75;
  }

  .evidence-wrap {
    border-left: 0;
    border-top: 1px solid #2b2e38;
    padding: 16px 0 0;
  }
}
