.bl-credits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}
.bl-ai {
  --tone: #c9c9d6;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 25px;
  padding: 0 11px 0 8px;
  border: 1px solid color-mix(in oklab, var(--tone) 42%, transparent);
  border-radius: 999px;
  background: color-mix(in oklab, var(--tone) 9%, #0b0b12);
  color: var(--soft);
  font: 500 11.5px/1 var(--sans);
  white-space: nowrap;
  text-decoration: none;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.bl-ai:hover,
.bl-ai:focus-visible {
  border-color: var(--tone);
  box-shadow: 0 0 18px -6px var(--tone);
  outline: none;
}
.ai-checked {
  border-style: dashed;
}
.ai-written {
  background: color-mix(in oklab, var(--tone) 22%, #0b0b12);
  box-shadow: inset 0 0 12px -4px var(--tone);
}
.ai-glyph {
  flex: none;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--tone);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ai-glyph .ai-spark {
  fill: var(--tone);
  stroke: none;
}
.ai-kind {
  font: 600 9px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tone);
}
.ai-name {
  padding-left: 7px;
  border-left: 1px solid color-mix(in oklab, var(--tone) 35%, transparent);
  color: #fff;
}
.ai-name b {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--tone);
}
.ai-tip {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  z-index: 3;
  width: max-content;
  max-width: min(300px, 80vw);
  padding: 10px 13px 11px;
  border: 1px solid color-mix(in oklab, var(--tone) 38%, transparent);
  border-radius: 12px;
  background: #0f0f17;
  box-shadow: 0 14px 34px -12px rgb(0 0 0 / 0.8);
  color: var(--soft);
  font: 400 12.5px/1.5 var(--sans);
  white-space: normal;
  opacity: 0;
  translate: 0 -4px;
  pointer-events: none;
  transition:
    opacity 0.2s,
    translate 0.2s var(--ease);
}
.ai-tip-k {
  display: block;
  margin-bottom: 4px;
  font: 600 9px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tone);
}
.bl-ai:hover .ai-tip,
.bl-ai:focus-visible .ai-tip {
  opacity: 1;
  translate: 0 0;
}
@media (max-width: 360px) {
  .bl-ai {
    display: inline-grid;
    grid-template-columns: auto 1fr;
    row-gap: 4px;
    height: auto;
    padding: 6px 12px 7px 9px;
    border-radius: 14px;
  }
  .ai-name {
    grid-column: 2;
    padding-left: 0;
    border-left: 0;
  }
}
.ai-claude {
  --tone: #e9926b;
}
.ai-openai {
  --tone: #4fd1a5;
}
.ai-gemini {
  --tone: #8ab4ff;
}
.ai-llama {
  --tone: #5b9dff;
}
.ai-mistral {
  --tone: #ff9f2e;
}
.ai-deepseek {
  --tone: #6f8dff;
}
.ai-grok {
  --tone: #e4e4ea;
}
.ai-qwen {
  --tone: #9c8cff;
}
.ai-copilot {
  --tone: #56c4ff;
}
.ai-kimi {
  --tone: #d6d9e2;
}
.ai-cohere {
  --tone: #ff8a6b;
}
.ai-nova {
  --tone: #ffb347;
}
.ai-glm {
  --tone: #5f8bff;
}
.ai-perplexity {
  --tone: #3cc9d6;
}
