.tool-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(398px, 100%);
  height: 164px;
  min-height: 164px;
  gap: 9px;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.02);
  transition: box-shadow 0.16s ease, transform 0.16s ease;
}

.tool-card:hover {
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.tool-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  text-decoration: none;
}

.tool-card-link:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 3px;
}

.tool-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 16px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #10b981;
  box-shadow: none;
  font-family: Assistant, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10.5px;
  line-height: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.tool-card-top {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-width: 0;
}

.tool-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  overflow: hidden;
  border: 0.5px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
}

.tool-logo {
  display: block;
  width: 39px;
  height: 39px;
  border: 0;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}

.tool-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  font-size: 17px;
  font-weight: 800;
}

.tool-logo-fallback svg {
  width: 29px;
  height: 29px;
}

.tool-logo-fallback.claude {
  background: #d79a70;
}

.tool-logo-fallback.hubspot {
  background: #ff4f17;
}

.tool-logo-fallback.perplexity {
  background: #101010;
}

.claude-mark {
  color: #181818;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -2px;
}

.tool-card-copy {
  min-width: 0;
}

.tool-title {
  display: -webkit-box;
  margin: 0 0 4px;
  padding-right: 96px;
  overflow: hidden;
  color: #111827;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tool-category {
  display: flex;
  align-items: center;
  min-width: 0;
  margin-top: 0;
  overflow: hidden;
  color: #6b7280;
  font-family: Assistant, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tool-category-sep {
  flex: 0 0 auto;
  margin: 0 7px;
  color: #a6adba;
}

.tool-powered {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 20px;
  margin-top: 5px;
  padding: 0 8px;
  border: 1px solid #7dd3fc;
  border-radius: 999px;
  color: #0f4f8f;
  background: #f0fbff;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

.tool-powered-mark {
  color: #0ea5e9;
  font-size: 13px;
  line-height: 1;
}

.tool-desc {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #4b5563;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--tool-desc-lines, 2);
}

.tool-tags {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
  margin-top: 5px;
  overflow: hidden;
  white-space: nowrap;
}

.tool-tags-label {
  flex: 0 0 auto;
  color: #6b7280;
  font-size: 11px;
  line-height: 20px;
  font-weight: 500;
}

.tool-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  max-width: none;
  height: 20px;
  padding: 0 8px;
  overflow: hidden;
  border: 1px solid #7dd3fc;
  border-radius: 999px;
  color: #0f4f8f;
  background: #f0fbff;
  font-size: 11px;
  line-height: 20px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateY(-0.5px);
}

.tool-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  margin-top: auto;
}

.tool-rating {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 500;
}

.tool-rating-star {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  color: #f59e0b;
  fill: currentColor;
}

.tool-rating-score {
  color: #111827;
  font-weight: 700;
}

.tool-rating-count,
.tool-rating-dot {
  color: #6b7280;
}

.tool-rating-maker {
  min-width: 0;
  overflow: hidden;
  color: #6b7280;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-rank {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
}

.tool-trust-badges {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 6px;
}

.tool-trust-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 5px;
  color: #fff;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.16);
}

.tool-trust-badge svg {
  display: block;
  width: 12px;
  height: 12px;
}

.tool-trust-badge--shield {
  background: #0f6b55;
}

.tool-trust-badge--spark {
  background: #3730a3;
}

.tool-trust-badge--target {
  background: #8a5517;
}

.tool-trust-badge--user {
  background: #1d5d9f;
}

.tool-trust-badge--lock {
  background: #6b3030;
}

.empty-state {
  width: min(398px, 100%);
  padding: 44px 24px;
  border: 0.5px solid #e5e7eb;
  border-radius: 22px;
  color: #6b7280;
  background: #fff;
  font-size: 16px;
  text-align: center;
}
