/* Leo demo.
   Structure: .leo > .leo__bar + .leo__body (campaign, context, stages).
   The selected account's accent is set on .leo with data-accent and read
   through --acc / --acc-soft / --acc-ink everywhere inside the demo. */

.leo-section {
  margin-inline: var(--edge);
  border-radius: var(--radius-xl);
  background: var(--lavender);
  position: relative; isolation: isolate;
}
.leo-section .section-title { color: var(--plum); }
.wrap--wide { max-width: 1420px; padding-inline: clamp(12px, 2.2vw, 32px); }
.wrap--wide > .section-head { padding-inline: clamp(8px, 2.2vw, 24px); }
.leo-section .section-lede { color: #3A2A4A; }

.leo {
  --acc: var(--lavender-200);
  --acc-soft: var(--lavender-100);
  --acc-ink: var(--plum);
  position: relative;
  background: var(--paper);
  border-radius: 32px;
  box-shadow: 0 40px 80px -50px rgba(47, 1, 31, 0.55), 0 0 0 1px rgba(70, 2, 47, 0.06);
}
.leo[data-accent="tide"] { --acc: var(--tide); --acc-soft: var(--tide-100); --acc-ink: var(--tide-ink); }
.leo[data-accent="rose"] { --acc: var(--rose); --acc-soft: var(--rose-100); --acc-ink: var(--rose-ink); }

/* ---------- Window bar ---------- */
.leo__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
  padding: 14px 22px; border-bottom: 1px solid var(--line);
}
.leo__id { display: inline-flex; align-items: center; gap: 10px; }
.leo__face { width: 38px; height: 38px; }
.leo__name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--plum); }
.leo__demo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.875rem; color: var(--text-muted); }
.leo__noscript { padding: 24px; font-weight: 500; }

/* ---------- Body layout ---------- */
.leo__body {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "context campaign" "context stages";
}
.leo__rail-line { grid-column: 1; grid-row: 1 / -1; border-right: 1px solid var(--line); }
/* The account and its signal stay in view while the visitor reads a long view */
.leo__context { grid-area: context; align-self: start; position: sticky; top: 16px; padding: 22px; }
.leo__campaign {
  grid-area: campaign;
  display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 6px 22px; align-items: start;
  margin: 20px 20px 0; padding: 14px 18px;
  border-radius: var(--radius-m); background: var(--mist);
}
.leo__campaign .leo__label { margin: 0; padding-top: 1px; }
.leo__stages { grid-area: stages; }

.leo__label {
  display: block; margin-bottom: 10px;
  font-family: var(--font-text); font-size: 0.8125rem; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* Campaign brief */
.leo__campaign { font-size: 0.9063rem; line-height: 1.45; }
.leo__campaign-text { font-weight: 500; }
.leo__campaign dl { display: contents; }
.leo__campaign dl > div { min-width: 0; }
.leo__campaign dt { font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); }
.leo__campaign dd { color: var(--ink); }

/* Account chooser */
.leo__accounts { border: 0; padding: 0; margin: 0; min-width: 0; }
.leo__account-list { display: grid; gap: 10px; }
.account {
  --a: var(--lavender-200); --a-soft: var(--lavender-100);
  position: relative; cursor: pointer;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px 14px 12px 12px;
  border-radius: var(--radius-m);
  border: 2px solid var(--line);
  background: var(--paper);
  transition: background-color var(--dur-m) var(--ease-out), border-color var(--dur-m) var(--ease-out), transform var(--dur-s) var(--ease-out);
}
.account[data-accent="tide"] { --a: var(--tide); --a-soft: var(--tide-100); --a-ink: var(--tide-ink); }
.account[data-accent="rose"] { --a: var(--rose); --a-soft: var(--rose-100); --a-ink: var(--rose-ink); }
.account:hover { border-color: var(--line-strong); }
.account:active { transform: scale(0.985); }
.account input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.account:has(input:focus-visible) { box-shadow: var(--focus); }
.account .mono-pebble { background: var(--a); transition: transform var(--dur-m) var(--ease-spring); }
.account__name { display: block; font-weight: 650; font-size: 1rem; line-height: 1.25; }
.account__name-short { display: none; }
.account__signal { display: block; font-size: 0.875rem; color: var(--text-muted); line-height: 1.3; margin-top: 2px; }
.account__check {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--line-strong); display: grid; place-items: center;
  transition: background-color var(--dur-m), border-color var(--dur-m);
}
.account__check svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(0.4); transition: opacity var(--dur-s), transform var(--dur-m) var(--ease-spring); }
.account:has(input:checked) { background: var(--a-soft); border-color: var(--a); }
.account:has(input:checked) .mono-pebble { transform: rotate(-8deg) scale(1.06); }
.account:has(input:checked) .account__check { background: var(--plum); border-color: var(--plum); }
.account:has(input:checked) .account__check svg { opacity: 1; transform: scale(1); }

/* Pinned signal: the selected account and why it was chosen, visible at every step */
.signal-pin {
  margin-top: 16px; padding: 16px 16px 14px;
  border-radius: var(--radius-m);
  background: var(--acc-soft);
  border: 1px solid color-mix(in srgb, var(--acc) 70%, transparent);
  transition: background-color var(--dur-m) var(--ease-out), border-color var(--dur-m);
}
.signal-pin__full { display: grid; justify-items: start; gap: 8px; }
.signal-pin__label { font-size: 0.8125rem; font-weight: 600; color: var(--acc-ink); }
.signal-pin__account { display: block; margin-top: 6px; font-weight: 700; font-size: 1rem; color: var(--ink); }
.signal-pin__text { font-size: 0.9688rem; line-height: 1.45; }
.signal-pin__short { display: none; }
.signal-pin__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 600; line-height: 1.35; white-space: nowrap;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
}
.chip--source::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12); }

/* ---------- Stages (horizontal accordion on wide screens) ---------- */
.leo__stages {
  container-type: inline-size;
  display: flex; gap: 10px; align-items: stretch;
  min-height: 640px; padding: 20px;
}
.leo-start {
  flex: 1 1 0; min-width: 0; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px;
  padding: 32px; border-radius: 24px;
  background:
    radial-gradient(closest-side, var(--lavender-100), transparent) 50% 40% / 70% 70% no-repeat,
    var(--paper);
  border: 2px dashed var(--line-strong);
  transition: flex-grow var(--dur-l) var(--ease-out), opacity var(--dur-m) var(--ease-out), padding var(--dur-l) var(--ease-out);
}
.leo-start__leo { width: 96px; height: 96px; }
.only-narrow { display: none; }
.leo-start__title { font-family: var(--font-display); font-weight: 450; font-size: 1.75rem; color: var(--plum); line-height: 1.1; }
.leo-start__text { max-width: 26em; color: var(--text-muted); }
.leo.has-account .leo-start { flex-grow: 0; opacity: 0; padding-inline: 0; border-width: 0; }

.stage {
  --spine: 86px;
  position: relative; min-width: 0;
  flex: 0 0 var(--spine);
  display: flex; flex-direction: column;
  border-radius: 24px;
  background: var(--mist);
  overflow: hidden;
  transition: flex-grow var(--dur-l) var(--ease-out), background-color var(--dur-m);
}
.stage.is-active { flex-grow: 1; background: var(--paper); box-shadow: inset 0 0 0 2px var(--acc); }
.stage:not(.is-active):not(.is-locked):hover { background: var(--lavender-100); }

.stage__head { margin: 0; }
.stage__toggle {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 16px 10px 16px 12px; text-align: left;
  background: none; border: 0; cursor: pointer; border-radius: 24px;
}
.stage:not(.is-active) { cursor: pointer; }
.stage:not(.is-active) .stage__head { flex: 1; }
.stage__toggle:disabled { cursor: not-allowed; }
.stage.is-locked { opacity: 0.6; }
.stage__num {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 44% 56% 52% 48% / 52% 46% 54% 48%;
  background: var(--paper); color: var(--plum);
  font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: background-color var(--dur-m), box-shadow var(--dur-m), transform var(--dur-m) var(--ease-spring);
}
.stage.is-done .stage__num { background: var(--acc); box-shadow: none; }
.stage.is-active .stage__num { background: var(--plum); color: #fff; box-shadow: none; transform: rotate(-6deg); }
.stage__title { font-family: var(--font-display); font-weight: 500; font-size: 0.9375rem; line-height: 1.15; color: var(--plum); }
.stage__prompt { display: none; }
.stage__peek { margin-top: auto; font-size: 0.8125rem; line-height: 1.35; color: var(--text-muted); overflow-wrap: break-word; }

/* Active header becomes a single row */
.stage.is-active .stage__toggle {
  height: auto; flex-direction: row; align-items: center; gap: 14px;
  padding: 22px 26px 6px; cursor: default; white-space: nowrap;
}
.stage.is-active .stage__title { font-size: 1.5rem; letter-spacing: -0.01em; }
.stage.is-active .stage__prompt { display: block; font-size: 0.9375rem; color: var(--text-muted); font-family: var(--font-text); }
.stage.is-active .stage__peek { display: none; }

.stage__panel { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.stage__inner {
  flex: 1; display: flex; flex-direction: column; gap: 20px;
  /* Lay content out at the final open width so nothing reflows while the panel widens */
  min-width: calc(100cqw - 3 * var(--spine) - 30px);
  padding: 14px 26px 24px;
}
.stage__content { display: flex; flex-direction: column; gap: 18px; }

/* Entrance: content rises in as a panel opens or the account changes */
@media (prefers-reduced-motion: no-preference) {
  .stage.is-active .stage__content > *,
  .stage.is-active .stage__nav { animation: leo-rise var(--dur-l) var(--ease-out) both; }
  .stage.is-active .stage__content > :nth-child(1) { animation-delay: 140ms; }
  .stage.is-active .stage__content > :nth-child(2) { animation-delay: 220ms; }
  .stage.is-active .stage__content > :nth-child(3) { animation-delay: 300ms; }
  .stage.is-active .stage__content > :nth-child(4) { animation-delay: 380ms; }
  .stage.is-active .stage__nav { animation-delay: 420ms; }
  .leo.is-switching .stage.is-active .stage__content > * { animation-name: leo-swap; animation-duration: var(--dur-m); }
  .signal-pin.is-fresh > * { animation: leo-swap var(--dur-m) var(--ease-out) both; }
  .stage.is-active .mark-research,
  .signal-pin.is-fresh .mark-research { animation: mark-sweep 700ms 420ms var(--ease-out) both; background-size: 100% 100%; background-repeat: no-repeat; }
}
@keyframes leo-rise { from { opacity: 0; translate: 0 14px; } }
@keyframes leo-swap { from { opacity: 0; translate: 10px 0; } }
@keyframes mark-sweep { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }

/* Stage navigation */
.stage__nav { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 8px; }
.stage__nav .btn { min-height: 46px; }
.stage__nav-end { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.btn--back { --btn-bg: transparent; --btn-fg: var(--plum); --btn-border: var(--line-strong); }
.btn--back:hover { --btn-border: var(--plum); }
.btn .arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Shared bits inside stages ---------- */
.k { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.quote { font-size: 1.125rem; line-height: 1.5; font-weight: 500; }

/* Signal: an illustrated source card plus Leo's notes */
.evidence { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.source-stack { position: relative; isolation: isolate; padding: 0 14px 14px 0; }
.source-stack::before {
  content: ''; position: absolute; z-index: -1; width: 62%; height: 70%; right: 0; bottom: 0;
  background: var(--acc); border-radius: 58% 42% 46% 54% / 50% 58% 42% 50%;
  transition: background-color var(--dur-m);
}
.source-card {
  position: relative;
  padding: 22px 22px 20px; border-radius: var(--radius-m);
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 20px 40px -32px rgba(47, 1, 31, 0.45);
}
.source-card__top { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.source-card__company { font-size: 0.875rem; font-weight: 600; color: var(--text-muted); }
.source-card__lines { display: grid; gap: 8px; margin-block: 16px; }
.source-card__lines i { display: block; height: 8px; border-radius: 8px; width: var(--w); background: var(--mist); }
.source-card__text { font-size: 1.3125rem; line-height: 1.45; font-weight: 500; letter-spacing: -0.005em; }
.notes { display: grid; gap: 10px; }
.note { padding: 14px 16px; border-radius: var(--radius-s); background: var(--mist); }
.note p { font-size: 1rem; line-height: 1.45; }
.note--leo { background: var(--orange-100); }
.note--leo .k { color: #7A2E00; display: flex; align-items: center; gap: 8px; }
.note--leo .k svg { width: 22px; height: 22px; }
.note--who { display: flex; gap: 12px; align-items: center; }
.note--who p { font-weight: 600; }

/* Opening: the email Leo sent */
.email { border-radius: var(--radius-m); border: 1px solid var(--line); overflow: hidden; background: var(--paper); }
.email__head { display: grid; gap: 4px; padding: 14px 20px; background: var(--mist); font-size: 0.9375rem; }
.email__row { display: grid; grid-template-columns: 56px 1fr; gap: 8px; }
.email__row .k { margin: 0; line-height: 1.55; }
.email__body { padding: 22px 22px 24px; font-size: 1.3125rem; line-height: 1.55; font-weight: 450; max-width: 34em; }
.trace { font-size: 0.9375rem; color: var(--text-muted); }
.trace .mark-research { color: var(--ink); font-weight: 600; }

/* Conversation bubbles */
.thread { display: grid; gap: 14px; }
.msg { max-width: 92%; }
.msg__who { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 0.875rem; font-weight: 600; color: var(--text-muted); }
.msg__who svg { width: 26px; height: 26px; }
.msg__who .avatar { width: 30px; height: 30px; }
.msg__bubble { padding: 14px 18px; border-radius: 22px; line-height: 1.5; }
.msg--leo { justify-self: end; }
.msg--leo .msg__who { justify-content: flex-end; }
.msg--leo .msg__bubble { background: var(--lavender-100); border-bottom-right-radius: 8px; font-size: 1rem; color: #3B3341; }
.msg--buyer .msg__bubble {
  background: var(--paper); border: 2px solid var(--acc); border-bottom-left-radius: 8px;
  font-size: 1.3125rem; font-weight: 500; color: var(--ink);
}
.msg__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip--interested { background: var(--acc-soft); border-color: var(--acc); color: var(--acc-ink); }
.chip--illustrative { color: var(--text-muted); }

/* Marks inside the buyer's own words */
.mark-confirmed { background: none; text-decoration: underline; text-decoration-color: var(--acc-ink); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.mark-ask { background: none; text-decoration: underline wavy; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Said vs next: what the buyer said (their words) vs what the rep does (an action) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.said { padding: 16px 18px; border-radius: var(--radius-m); background: var(--acc-soft); display: grid; gap: 12px; align-content: start; }
.said__item .quote { font-size: 1.0625rem; }
.said__key { display: flex; align-items: center; gap: 8px; }
.said__key::before { content: ''; flex: none; width: 22px; height: 0; }
.said__key--confirmed::before { border-top: 3px solid var(--acc-ink); }
.said__key--ask::before { height: 6px; background: radial-gradient(circle at 3px 3px, var(--orange) 2.4px, transparent 2.6px) 0 0 / 7px 6px repeat-x; }
.said .k { color: var(--acc-ink); margin: 0; }
.next {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 16px 18px 18px; border-radius: var(--radius-m);
  background: var(--plum); color: #fff;
  display: grid; gap: 10px; align-content: start;
}
.next::after {
  content: ''; position: absolute; z-index: -1; width: 120px; height: 110px; right: -34px; top: -36px;
  border-radius: 46% 54% 60% 40%; background: var(--plum-soft);
}
.next__who, .next__what { display: grid; gap: 10px; align-content: start; justify-items: start; }
.next .k { color: var(--lime); margin: 0; display: flex; align-items: center; gap: 8px; }
.next--wide { grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 16px 24px; padding: 18px 20px; }
.next--wide::after { right: auto; left: -40px; top: auto; bottom: -50px; }
.next .k svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.next__action { font-size: 1.0625rem; line-height: 1.45; font-weight: 500; }
.next__owner { display: inline-flex; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); font-size: 0.8125rem; font-weight: 600; }
.next__status { font-size: 0.9375rem; color: var(--text-on-plum-muted); padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.18); }

/* Handoff card */
.handoff { display: grid; gap: 14px; }
.handoff__head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: var(--radius-m); background: var(--acc-soft);
}
.handoff__head .mono-pebble { background: var(--acc); width: 46px; height: 46px; }
.handoff__account { font-weight: 700; font-size: 1.125rem; line-height: 1.25; }
.handoff__buyer { font-size: 0.9375rem; color: var(--text-muted); }
.status-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--plum); color: #fff; font-size: 0.8125rem; font-weight: 600; white-space: nowrap;
}
.status-chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.handoff__summary { font-size: 1.0625rem; line-height: 1.5; padding: 0 4px; }
.handoff__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 14px; align-items: stretch; }
.handoff__col { display: grid; gap: 14px; align-content: start; }
.block { padding: 16px 18px; border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--paper); }
.block p { font-size: 1rem; line-height: 1.5; }
.block--thread { background: var(--mist); border-color: transparent; }
.block--thread .msg { max-width: 100%; }
.block--thread .msg__bubble { font-size: 1rem; }
.block--thread .msg--buyer .msg__bubble { font-size: 1.0625rem; }

/* ---------- Narrow screens: same story, stacked; context stays pinned ---------- */
@media (max-width: 960px) {
  .leo { border-radius: 26px; }
  .leo__bar { padding: 12px 16px; }
  .leo__demo-note { display: none; }
  .leo__body { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "campaign" "context" "stages"; }
  .leo__rail-line { display: none; }
  .leo__campaign { display: block; margin: 0; border-radius: 0; background: none; padding: 14px 16px 2px; font-size: 0.875rem; }
  .leo__campaign .leo__label { margin-bottom: 6px; }
  .leo__campaign dl { display: grid; margin-top: 8px; gap: 6px; }
  .leo__campaign dl > div { display: block; }
  .leo__campaign dt { display: inline; font-size: 0.875rem; color: var(--text-muted); }
  .leo__campaign dt::after { content: ': '; }
  .leo__campaign dd { display: inline; }

  .leo__context {
    position: sticky; top: 0; z-index: 5; align-self: auto;
    border-right: 0; padding: 10px 12px 10px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 18px -16px rgba(47, 1, 31, 0.5);
  }
  .leo__context .leo__label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .leo__account-list { grid-template-columns: 1fr 1fr; gap: 8px; }
  .account { grid-template-columns: auto minmax(0, 1fr); gap: 8px; padding: 8px 10px 8px 8px; border-radius: 16px; }
  .account .mono-pebble { width: 32px; height: 32px; font-size: 0.8125rem; }
  .account__check { display: none; }
  .account__name { font-size: 0.9375rem; }
  .account__signal { display: none; }
  .account__name-long { display: none; }
  .account__name-short { display: inline; }
  .signal-pin { margin-top: 8px; padding: 8px 12px; border-radius: 14px; }
  .signal-pin__full { display: none; }
  .signal-pin__short { display: block; font-size: 0.875rem; line-height: 1.4; }
  .signal-pin__short strong { font-weight: 650; }

  .leo__stages { flex-direction: column; min-height: 0; padding: 12px; gap: 8px; }
  .leo-start { flex: none; padding: 24px 18px; gap: 6px; }
  .only-wide { display: none; }
  .only-narrow { display: inline; }
  .leo-start__leo { width: 64px; height: 64px; }
  .leo-start__title { font-size: 1.375rem; }
  .leo.has-account .leo-start { display: none; }

  .stage { flex: none; border-radius: 20px; scroll-margin-top: calc(var(--context-h, 140px) + 12px); }
  .stage__toggle { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; }
  .stage__label-group { display: flex; flex-direction: column; min-width: 0; }
  .stage__peek { margin-top: 2px; }
  .stage__num { width: 36px; height: 36px; font-size: 1rem; }
  .stage.is-active .stage__toggle { padding: 16px 16px 4px; white-space: normal; align-items: center; }
  .stage.is-active .stage__title { font-size: 1.25rem; }
  .stage.is-active .stage__prompt { font-size: 0.875rem; }
  .stage__inner { min-width: 0; padding: 10px 14px 16px; gap: 16px; }

  .evidence, .split, .handoff__grid { grid-template-columns: minmax(0, 1fr); }
  .source-card { padding: 18px 16px; }
  .source-card__text, .email__body { font-size: 1.1875rem; }
  .email__body { padding: 18px 16px 20px; }
  .email__head { padding: 12px 16px; }
  .msg { max-width: 100%; }
  .msg--buyer .msg__bubble { font-size: 1.1875rem; }
  .handoff__head { grid-template-columns: auto minmax(0, 1fr); }
  .handoff__head .status-chip { grid-column: 1 / -1; justify-self: start; }
  .stage__nav { gap: 8px; flex-wrap: nowrap; align-items: stretch; }
  .stage__nav .btn { padding: 0 16px; white-space: normal; text-align: center; line-height: 1.2; }
  .stage__nav-end { flex: 1; margin-left: 0; }
  .stage__nav-end .btn { width: 100%; }
  .next--wide { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 961px) {
  .stage__label-group { display: contents; }
}
