/* The incident's Next steps: the parts its panel shares with the referral sheet it opens (app/views/incidents/referrals/new.html.erb). Number 34, not the brief's 75: 75 is the threat
   assessment pack's, every number from 35 up is taken, and the numbers are unique (test/styles/stylesheet_test.rb). The panel itself is drawn as the incident workspace's "What you owe" rail
   (OwedRailComponent, WS2), whose layout is in 21-incident-workspace.css; what stays here is the frame, the quiet lines (a status, why the check raised a duty, an answer, the caveat), the forms that
   answer a duty or withdraw a referral, a referred person's chip, and the referral sheet's sentence about what sending shares.

   Tokens only and logical properties only, both enforced (test/styles/tokens_test.rb, test/styles/components_test.rb), so it reads on the light shell
   and the console, in light and in dark, and mirrors in a right-to-left language. Nothing pinned to an edge, no height in vh, and everything that holds
   words may shrink and wrap, so a language 40% longer never widens the page (WCAG 1.4.10). */

/* The frame takes no room until it has something (as the obligation check's frame: 69-obligation-hints.css). */
.next-steps-frame {
  display: block;
  min-inline-size: 0;
}

.next-steps-frame:not(:has(*)) {
  display: none;
}

.next-steps-status,
.next-steps-empty,
.next-steps-why,
.next-steps-aside,
.next-steps-caveat {
  margin-block: 0;
  color: var(--fg2);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

.next-steps-status,
.next-steps-check {
  margin-block-end: var(--density-gap);
}

.next-steps-answer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  min-inline-size: 0;
  margin: 0;
}

.next-steps-chip {
  padding: 0.125rem var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--tone-accent-bg);
  color: var(--tone-accent-fg);
  font-size: 0.8125rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.next-steps-withdraw {
  margin: 0;
}

/* THE SHEET: the sentence that says what sending shares, set apart before the button. */
.next-steps-access {
  margin-block: 0;
  padding: var(--space-2) var(--space-3);
  border-inline-start: 3px solid var(--tone-warn-line);
  border-radius: var(--radius-sm);
  background: var(--tone-warn-bg);
  color: var(--tone-warn-fg);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}

/* THE SHEET: when and where, said in a line because the incident already gave them; the fields are behind a button for the sender who knows better. */
.referral-when-where {
  margin: 0;
  color: var(--fg1);
  font-size: var(--text-sm);
  font-weight: 600;
  overflow-wrap: anywhere;
}
