#aivista-intelligent-results {
  width: 100%;
  max-width: 920px;
  margin: 22px auto 8px;
}

.aivista-intel-panel {
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 14px 40px rgba(15,23,42,.08);
}

.aivista-intel-heading {
  margin-bottom: 22px;
}

.aivista-intel-eyebrow {
  color: #4B5CFF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.aivista-intel-heading h2 {
  margin: 0 0 6px;
  font-size: 27px;
  line-height: 1.15;
  color: #10182d;
}

.aivista-intel-heading p {
  margin: 0;
  font-size: 14px;
  color: #697386;
}

.aivista-intel-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aivista-intel-row {
  position: relative;
  display: grid;
  grid-template-columns: 34px 64px minmax(0,1fr) 150px;
  align-items: center;
  gap: 16px;
  padding: 17px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 14px;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

.aivista-intel-row:hover {
  transform: translateY(-1px);
  border-color: rgba(75,92,255,.30);
  box-shadow: 0 10px 25px rgba(15,23,42,.07);
}

.aivista-intel-rank {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #4B5CFF;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.aivista-intel-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.aivista-intel-logo,
.aivista-intel-logo-fallback {
  width: 58px;
  height: 58px;
  border-radius: 13px;
  object-fit: contain;
  background: #f6f7fb;
}

.aivista-intel-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4B5CFF;
  font-size: 24px;
  font-weight: 700;
}

.aivista-intel-content {
  min-width: 0;
}

.aivista-intel-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.aivista-intel-title-line h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
  color: #10182d;
}

.aivista-intel-fit {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef1ff;
  color: #4B5CFF;
  font-size: 11px;
  font-weight: 600;
}

.aivista-intel-content p {
  margin: 0;
  color: #566174;
  font-size: 13px;
  line-height: 1.5;
  max-width: 540px;
}

.aivista-intel-action {
  text-align: right;
}

.aivista-intel-score {
  margin-bottom: 10px;
}

.aivista-intel-score strong {
  display: block;
  color: #4B5CFF;
  font-size: 27px;
  line-height: 1;
  font-weight: 700;
}

.aivista-intel-score span {
  display: block;
  margin-top: 4px;
  color: #697386;
  font-size: 10px;
}

.aivista-intel-action a {
  color: #4B5CFF;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.aivista-intel-action a:hover {
  text-decoration: underline;
}

.aivista-intel-status {
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 12px;
  padding: 17px 20px;
  color: #566174;
  text-align: center;
}

.aivista-intel-error {
  color: #9f3131;
}

@media (max-width: 767px) {

  #aivista-intelligent-results {
    margin-top: 16px;
  }

  .aivista-intel-panel {
    padding: 18px;
  }

  .aivista-intel-heading h2 {
    font-size: 23px;
  }

  .aivista-intel-row {
    grid-template-columns: 28px 52px minmax(0,1fr);
    gap: 11px;
    padding: 14px;
  }

  .aivista-intel-rank {
    width: 27px;
    height: 27px;
  }

  .aivista-intel-logo,
  .aivista-intel-logo-fallback {
    width: 48px;
    height: 48px;
  }

  .aivista-intel-action {
    grid-column: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    margin-top: 5px;
  }

  .aivista-intel-score {
    margin: 0;
  }

  .aivista-intel-score strong {
    font-size: 21px;
  }
}

/* =========================================================
   AI VISTA SEARCH RESULTS — COMPACT REFINEMENT
   19 AUG 2026
   ========================================================= */

/* Tighter overall recommendation area */
.aivista-search-results,
.aivista-results,
.ai-vista-results {
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}

/* Compact horizontal result rows */
.aivista-result,
.aivista-result-card,
.ai-vista-result,
.ai-vista-match {
  min-height: 0 !important;
  padding-top: 16px !important;
  padding-bottom: 16px !important;
  margin-bottom: 10px !important;
}

/* Keep tool descriptions deliberately short */
.aivista-result p,
.aivista-result-card p,
.ai-vista-result p,
.ai-vista-match p {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  line-height: 1.45 !important;
  margin-top: 5px !important;
  margin-bottom: 5px !important;
}

/* Tool title remains dominant */
.aivista-result h3,
.aivista-result-card h3,
.ai-vista-result h3,
.ai-vista-match h3 {
  margin-top: 0 !important;
  margin-bottom: 4px !important;
  line-height: 1.2 !important;
}

/* Small restrained ranking marker */
.aivista-rank,
.ai-vista-rank,
.match-rank {
  flex: 0 0 auto !important;
}

/* Give the proprietary AI Vista Score more presence */
.aivista-score,
.ai-vista-score,
.match-score {
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

/* Don't let the final result create unnecessary empty space */
.aivista-result:last-child,
.aivista-result-card:last-child,
.ai-vista-result:last-child,
.ai-vista-match:last-child {
  margin-bottom: 0 !important;
}

/* Keep review CTA compact */
.aivista-result a,
.aivista-result-card a,
.ai-vista-result a,
.ai-vista-match a {
  white-space: nowrap;
}

/* Mobile: retain rows but avoid cramped content */
@media (max-width: 767px) {
  .aivista-result,
  .aivista-result-card,
  .ai-vista-result,
  .ai-vista-match {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }

  .aivista-result p,
  .aivista-result-card p,
  .ai-vista-result p,
  .ai-vista-match p {
    -webkit-line-clamp: 2 !important;
  }
}


.aivista-intel-content p {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  max-width: 420px !important;
  line-height: 1.4 !important;
  font-size: 13px !important;
}

