.ai-setting-group.agent-key-card {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  min-width: 0;
}
.agent-key-card h3,
.agent-key-card .ai-caption {
  margin: 0;
}
.agent-key-card h3 {
  gap: 8px;
}
.agent-key-card h3 small {
  flex: none;
  font-size: 11px;
}
.agent-key-card .ai-caption {
  font-size: 12px;
  line-height: 1.5;
}
.agent-key-row {
  min-height: 48px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 4px 4px 10px;
}
.agent-key-row .primary {
  flex: none;
  width: auto;
}
.agent-key-row span {
  flex: none;
  font-size: 12px;
  color: var(--muted);
}
.agent-key-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.agent-key-actions button,
.agent-key-row button,
.agent-key-links :is(a,button) {
  display: grid;
  place-items: center;
  min-height: 38px;
  padding: 5px 7px;
  font-size: 12px;
  text-align: center;
  white-space: normal;
}
.agent-key-card :is(.agent-key-actions,.agent-key-row) .primary {
  margin: 0;
  min-height: 38px;
  padding-inline: 12px;
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 18%, var(--panel));
  border: 1px solid var(--blue);
  font-weight: 650;
}
.agent-key-actions button:not(.primary) {
  background: var(--panel);
  color: var(--blue);
  border: 1px solid var(--line);
}
.agent-key-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
}
.agent-key-links :is(a,button) {
  color: var(--blue);
  min-height: 33px;
  padding-inline: 3px;
}
.agent-key-links button.danger {
  color: var(--danger, #ee9b91);
  margin-inline-start: auto;
}
.agent-key-message:empty,
.agent-key-extra:empty {
  display: none;
}
.agent-key-extra label {
  margin: 0 0 5px;
}
.agent-key-extra .agent-key-actions {
  margin-top: 8px;
}
.agent-key-card [data-key-feedback] {
  min-width: 0;
}
