#workflow-story { background: var(--tint); }
.story-shell { padding-block: var(--section-space); }
.story-intro { max-width: 56rem; margin-bottom: 1.35rem; }
.story-intro h2, .story-intro > p { margin-bottom: .65rem; }
.story-intro > .text-link { font-size: 1rem; }
.story-layout, .story-panel { min-width: 0; }
.story-narratives { display: none; margin: 0; padding: 0; list-style: none; }
.story-panel { max-width: 38rem; background: var(--white); border: 1px solid var(--line); }
.story-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 1.25rem; background: var(--navy); color: white; }
.story-panel-head h3 { font-size: 1.22rem; color: inherit; }
.story-count, .story-label, .story-ref { font: 600 .79rem/1.5 var(--font-mono); }
.story-count { white-space: nowrap; }
.story-track { display: flex; gap: 2px; background: white; }
.story-track span { height: 4px; flex: 1; background: var(--line); }
.story-track span.filled { background: var(--slate); }
.story-compact { padding: 1rem 1.25rem 0; }
.story-compact h4 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 .5rem; color: var(--navy); }
.story-compact p { font-size: 1rem; line-height: 1.5; }
.story-sheet { padding: 1.15rem 1.25rem .55rem; }
.story-ref { margin-bottom: .4rem; color: var(--muted); }
.story-fields { margin: 0; }
.story-row { margin: 0; padding: .65rem .6rem; display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: .7rem; border-bottom: 1px solid var(--line); border-inline-start: 3px solid transparent; font-size: .98rem; line-height: 1.4; }
.story-row dt { color: var(--muted); }
.story-row dd { font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.story-row.changed { border-inline-start-color: var(--slate); background: var(--surface-muted); }
.story-row.needs-review, .story-outcome.needs-review { background: var(--warning-surface); color: var(--warning-ink); border-inline-start-color: var(--warning-ink); }
.story-outcome { font-size: .96rem; font-weight: 600; padding: .6rem .7rem; margin: .85rem 0 0; border-inline-start: 3px solid var(--navy); background: var(--tint); }
.story-controls { padding: .65rem 1.25rem 1.25rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.story-controls .ui-action, .story-controls .button { min-height: 2.8rem; }
.story-controls .button[hidden] { display: none; }
.story-announcement { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
@media (min-width: 54rem) and (min-height: 42rem) {
  .story-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 7vw, 6rem); align-items: start; }
  .story-narratives { display: block; }
  .story-chapter { display: grid; gap: .55rem; align-content: center; min-height: clamp(14rem, 39vh, 25rem); border-block: 1px solid transparent; padding: 1.2rem 1rem 1.2rem 1.2rem; border-inline-start: 3px solid var(--line); }
  .story-chapter[aria-current="step"] { border-inline-start-color: var(--navy); background: white; }
  .story-chapter p { margin: 0; }
  .story-chapter h3 { font-size: clamp(1.15rem, 2vw, 1.55rem); }
  .story-chapter p:last-child { max-width: 44ch; color: var(--muted); }
  .story-panel { position: sticky; top: 1.25rem; width: 100%; justify-self: end; }
  .story-compact { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .story-chapter, .story-track span { transition: background-color .18s ease, border-color .18s ease; }
}
@media print {
  .story-controls, .story-intro .text-link { display: none; }
  .story-narratives { display: block; }
  .story-chapter { min-height: auto; padding-block: .4rem; }
  .story-panel { position: static; }
}
