/* AI descriptions: what the viewer shows for a slide or graphic, and the AI
   search card in Settings. */

/* --------------------------------------------------------------- viewer */

.viewer__ai {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 0;
  padding: 12px 14px 14px;
  border-radius: 16px;
  background: var(--soft-1);
}

.viewer__ai-head {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 510;
}

.viewer__ai-head svg {
  width: 14px;
  height: 14px;
}

.viewer__ai-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-wrap: pretty;
}

.viewer__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.viewer__tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--soft-2);
  color: var(--ink);
  font-size: 12.5px;
  text-decoration: none;
  transition: background 0.15s;
}

.viewer__tag:hover,
.viewer__tag:focus-visible {
  background: var(--soft-3);
}

/* ------------------------------------------------------------ settings */

.ai-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-card__progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 560px;
}

.ai-card__count {
  color: var(--muted);
  font-size: 14px;
}

.ai-card__count b {
  color: var(--ink);
  font-weight: 500;
}

.ai-card__failed {
  color: var(--danger);
}

.ai-card__status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.ai-card__status--error {
  color: var(--danger);
}

.ai-card__status svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.ai-card__key {
  max-width: 560px;
}
