/* The assistant's status line on simple CARE's case page (Care::Simple::AssistantStatusComponent: first in the Assistant card, and again under the next step; the module care_simple).
   One quiet sentence with the assistant's mark before it, and "Ask again" after it when the last run failed. No box of its own: it sits in the card or the panel it is drawn in. The mark is
   decoration beside words, so no state is told by color alone, and the failed line takes the warning tone for its mark and its words together.

   Tokens only and logical properties only, both enforced (test/styles/tokens_test.rb, test/styles/components_test.rb), so it reads in light and dark and mirrors in a right-to-left language.
   Nothing is pinned, and the words may shrink and break, so a language 40% longer never widens the page (WCAG 1.4.10). */

.care-simple-status {
  display: grid;
  gap: var(--space-2);
  min-inline-size: 0;
}

.care-simple-status__line {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-block: 0;
  min-inline-size: 0;
  color: var(--fg2);
  font-size: var(--text-sm);
}

.care-simple-status__icon {
  flex: none;
  inline-size: 1.125em;
  block-size: 1.125em;
  margin-block-start: 0.1em;
  color: var(--accent-text);
}

.care-simple-status__words {
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

.care-simple-status__line--failed {
  color: var(--warn);
}

/* A frame the assistant writes in (AssistantStatusComponent::AREA): the card inside it is the box, so the frame is none, and an empty one leaves no gap in the grid it sits in. */
.care-simple-area {
  display: contents;
}

.care-simple-status__line--failed .care-simple-status__icon {
  color: inherit;
}

.care-simple-status__ask {
  display: flex;
  flex-wrap: wrap;
  min-inline-size: 0;
}
