.tool-button.is-active,
.starter.is-active {
  border-color: rgba(31, 41, 55, 0.42);
  background: rgba(31, 41, 55, 0.07);
}

.tool-button[aria-pressed="true"] {
  font-weight: 700;
}

.research-summary {
  margin: 14px 0 0;
  padding: 9px 11px;
  border: 1px solid rgba(31, 41, 55, 0.1);
  border-radius: 9px;
  background: rgba(31, 41, 55, 0.035);
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(31, 41, 55, 0.66);
}

.answer-sources {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(31, 41, 55, 0.11);
}

.answer-sources-title {
  margin: 0 0 9px;
  font-size: 0.84rem;
  line-height: 1.4;
  font-weight: 700;
  color: rgba(31, 41, 55, 0.72);
}

.answer-sources-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.answer-source-item {
  min-width: 0;
}

.answer-source-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid rgba(31, 41, 55, 0.1);
  border-radius: 9px;
  background: rgba(31, 41, 55, 0.025);
  color: inherit;
  text-decoration: none;
}

.answer-source-link:hover {
  background: rgba(31, 41, 55, 0.055);
}

.answer-source-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.answer-source-number {
  min-width: 30px;
  font-size: 0.78rem;
  line-height: 1.45;
  font-weight: 700;
  color: rgba(31, 41, 55, 0.62);
}

.answer-source-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.answer-source-copy strong {
  overflow: hidden;
  font-size: 0.86rem;
  line-height: 1.45;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.answer-source-copy small {
  overflow: hidden;
  font-size: 0.74rem;
  line-height: 1.4;
  color: rgba(31, 41, 55, 0.58);
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .research-summary {
    margin-top: 12px;
  }

  .answer-sources {
    margin-top: 15px;
    padding-top: 12px;
  }

  .answer-source-link {
    padding: 9px;
  }
}
