/* All artwork captions share the SVG preview's ink, scale and rhythm. */
html body :is(.design-conversation-actions, .cr-vector-output > nav, .mobile-result-actions),
html body.workspace-readable #resultsView.result-gallery #resultGrid#resultGrid#resultGrid .result-action-toolbar {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: flex-start;
  column-gap: min(12px, 2.2vw) !important;
  row-gap: 0 !important;
  text-align: left;
}
html body :is(.design-conversation-actions, .cr-vector-output > nav, .mobile-result-actions) > :is(button,a),
html body.workspace-readable #resultsView.result-gallery #resultGrid#resultGrid#resultGrid .result-action-toolbar > :is(button,a) {
  flex: 0 0 auto !important;
  width: auto !important;
  flex-direction: row !important;
  gap: 4px !important;
  padding: 3px 0 !important;
  color: #16181b !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  letter-spacing: normal !important;
  white-space: nowrap;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
html body :is(.design-conversation-actions, .cr-vector-output > nav, .mobile-result-actions, .result-action-toolbar) > :is(a,button):focus-visible {
  outline: 2px solid #2461d5;
  outline-offset: 2px;
}

/* Five actions fit the 336px artwork, instead of leaving regenerate on another row. */
html body :is(.design-conversation-actions, .cr-vector-output > nav, .mobile-result-actions),
html body.workspace-readable #resultsView.result-gallery #resultGrid#resultGrid#resultGrid .result-action-toolbar {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding-inline: 0 !important;
  margin-inline: 0 !important;
  container: artwork-actions / inline-size;
}
html body :is(.design-conversation-actions, .cr-vector-output > nav, .mobile-result-actions) > :is(button,a),
html body.workspace-readable #resultsView.result-gallery #resultGrid#resultGrid#resultGrid .result-action-toolbar > :is(button,a) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-width: 0 !important;
  margin: 0 !important;
  min-height: 28px !important;
  height: auto !important;
}
@container artwork-actions (max-width: 320px) {
  html body :is(.design-conversation-actions, .cr-vector-output > nav, .mobile-result-actions) > :is(button,a),
  html body.workspace-readable #resultsView.result-gallery #resultGrid#resultGrid#resultGrid .result-action-toolbar > :is(button,a) {
    font-size: 12px !important;
    flex: 1 1 auto !important;
    gap: 3px !important;
  }
}
