/* The explanation and the diagram occupy separate areas of each story beat. */
.scroll-story {
  --evidence: #177b78;
  --evidence-tint: #dcece5;
  --brief-tint: #e6e3f5;
  --review-tint: #f5e1d8;
  --coral-ink: #a74934;
  --story-copy-width: 340px;
  --narration-tone: #7140d8;
  --concept-highlight: #eee5fc;
  --example-tone: #007579;
  --example-highlight: #d9efea;
  position: relative;
  overflow-anchor: none;
  height: 1170svh;
  border-top: 1px solid var(--line);
}


.scroll-story [hidden] {
  display: none !important;
}

.scroll-story ::selection {
  background: var(--brief-tint);
  color: var(--ink);
}

.story-stage {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, var(--story-copy-width)) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  column-gap: 40px;
  row-gap: 24px;
  width: 100%;
  max-width: 1280px;
  height: 100svh;
  min-height: 620px;
  margin: 0 auto;
  padding: 40px 40px 20px;
  background: var(--paper);
}

.story-copy {
  align-self: start;
  min-width: 0;
  padding-top: 4px;
}

.beat-title {
  position: relative;
  width: 100%;
  margin: 0;
  font-size: clamp(28px, 2.65vw, 36px);
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: -0.035em;
  text-align: left;
  text-wrap: balance;
}

.headline-animated {
  --headline-ink: #49346b;
  --headline-muted: #827c89;
}

.headline-word {
  color: color-mix(in srgb, var(--headline-ink) calc(var(--headline-word-reveal, 0) * 100%), var(--headline-muted));
}

.headline-animated::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -11px;
  width: min(52%, 160px);
  height: 7px;
  background: var(--headline-ink);
  clip-path: inset(0 var(--headline-uncovered, 100%) 0 0);
  -webkit-mask: var(--pen-underline) center / 100% 100% no-repeat;
  mask: var(--pen-underline) center / 100% 100% no-repeat;
}

.story-caption {
  position: relative;
  width: 100%;
  margin: 24px 0 0;
}

.narration {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.01em;
  text-align: left;
  overflow-wrap: break-word;
}

.narration-accessible {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.word-stream .stream-word {
  color: var(--muted);
  transition: color 120ms linear;
}

.word-stream .stream-word.revealed {
  color: var(--narration-tone);
}

.word-stream .stream-word.is-emphasis {
  font-weight: 750;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.word-stream .stream-word.is-emphasis.revealed {
  background-color: var(--concept-highlight);
}

.narration-link {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.narration-link:hover {
  text-decoration-thickness: 2px;
}

.example-scene {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 24px;
  min-width: 0;
  min-height: 0;
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.running-example {
  margin: 0;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
}

.example-copy {
  max-width: 58ch;
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.example-stream .stream-word {
  color: var(--muted);
  transition: color 120ms linear, background-color 120ms linear;
}

.example-stream .stream-word.revealed {
  color: var(--example-tone);
}

.example-stream .stream-word.is-emphasis {
  font-weight: 750;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.example-stream .stream-word.is-emphasis.revealed {
  background-color: var(--example-highlight);
}

.scene-detail {
  position: relative;
  margin-top: 16px;
}

.running-example .flow-controls {
  gap: 16px;
  margin-top: 8px;
}

.running-example .flow-stage-label,
.running-example .note-content {
  color: var(--muted);
}


.observation-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 4px;
  margin: 0 0 16px;
}

.observation-controls button {
  min-height: 44px;
  padding: 10px 7px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.observation-controls button[aria-pressed="true"] {
  border-bottom-color: var(--evidence);
  color: var(--evidence);
  font-weight: 750;
}

.conversation {
  position: static;
  width: 100%;
  text-align: left;
}

.ask-line {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
}

.reply-line {
  margin-top: 12px;
  color: var(--evidence);
  font-size: 16px;
  line-height: 1.45;
}

.brief-changes {
  position: static;
  display: grid;
  width: 100%;
  gap: 24px;
}

.brief-change {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.brief-origin {
  padding-top: 2px;
  color: var(--evidence);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.brief-rewrite {
  position: relative;
  display: grid;
  min-width: 0;
  padding-bottom: 10px;
}

.brief-rewrite p {
  grid-area: 1 / 1;
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.brief-before {
  color: var(--evidence);
}

.brief-after {
  color: var(--ink);
  font-weight: 650;
}

.brief-rewrite::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--indigo);
  transform: scaleX(var(--rule-reveal, 0));
  transform-origin: left;
}

.work-note {
  position: static;
  width: 100%;
}

.note-title {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
}

.note-content {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.note-item {
  position: relative;
  display: block;
  padding-left: 20px;
}

.note-item::before {
  content: "↳";
  position: absolute;
  left: 0;
  color: var(--indigo);
}

.note-item.is-concern {
  color: var(--coral-ink);
}

.note-item.is-concern::before {
  content: "!";
  color: currentColor;
  font-weight: 750;
}

.event-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.event-flow span {
  font-size: 13px;
  line-height: 1.45;
}

.event-flow b {
  color: var(--coral-ink);
  font-size: 17px;
  font-weight: 500;
}

.flow-controls {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.flow-stage-label {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.flow-replay {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* JavaScript positions the actors and the paths inside this bounded area. */
.visual-world {
  position: relative;
  align-self: stretch;
  min-width: 0;
  min-height: 320px;
}

.work-map {
  position: absolute;
  inset: 0;
  isolation: isolate;
}

.task,
.role-core,
.agent-core,
.person {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110px;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3;
}

.task .art {
  width: 48px;
  height: 48px;
  margin: 0 auto 8px;
}

.task img,
.role-core img,
.agent-core img,
.person img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.task-label {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}

.task.is-primary .art {
  position: relative;
  isolation: isolate;
}

.task.is-primary .art::before {
  content: '';
  position: absolute;
  inset: -4px;
  z-index: -1;
  border: 1px solid var(--indigo);
  border-radius: 12px;
  background: var(--brief-tint);
  opacity: var(--coding-emphasis, 0);
  transform: scale(calc(.90 + .10 * var(--coding-emphasis, 0)));
}

.task.is-primary .task-label {
  color: color-mix(in srgb, var(--indigo) calc(var(--coding-emphasis, 0) * 100%), var(--ink));
  font-weight: calc(650 + 100 * var(--coding-emphasis, 0));
}

.task.is-secondary .task-label {
  color: var(--muted);
  font-weight: 550;
}

.subject {
  display: none;
  margin-top: 6px;
  color: var(--coral-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.scroll-story[data-beat="mba"] .task:is(
  [data-task="users"],
  [data-task="observe"],
  [data-task="capacity"],
  [data-task="staff"],
  [data-task="priorities"]
) .subject {
  display: block;
}

.role-core {
  width: 110px;
  z-index: 5;
}

.role-core img {
  height: 90px;
  padding: 8px;
  border-radius: 35%;
  background: transparent;
}

.role-core > span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.3;
}

.agent-core {
  width: 82px;
}

.agent-core img {
  height: 58px;
  padding: 5px;
  border-radius: 35%;
  background: transparent;
}

.agent-core > span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}

.person {
  width: 100px;
}

.person img {
  height: 70px;
  padding: 5px;
  border-radius: 35%;
  background: transparent;
}

.person > span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}

.person img,
.role-core img,
.agent-core img {
  outline: 2px solid transparent;
  outline-offset: 3px;
  transition: background-color 180ms ease, outline-color 180ms ease;
}

.person.is-speaking img,
.role-core.is-listening img {
  outline-color: var(--evidence);
  background: var(--evidence-tint);
}

.person.is-speaking > span {
  color: var(--evidence);
  font-weight: 750;
}

.role-core.is-directing img,
.agent-core.is-receiving img {
  outline-color: var(--indigo);
  background: var(--brief-tint);
}

.role-core.is-reviewing img,
.agent-core.is-returning img {
  outline-color: var(--coral);
  background: var(--review-tint);
}

/* These artifacts share the actors' coordinates and reserved label space. */
.pipeline-artifacts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.pipeline-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  min-height: 90px;
  transform: translate(-50%, -50%);
  text-align: center;
}

.pipeline-node .art {
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
  padding: 4px;
  border-radius: 12px;
  background: var(--paper);
  outline: 2px solid transparent;
  outline-offset: 3px;
  transition: background-color 180ms ease, outline-color 180ms ease;
}

.pipeline-node img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pipeline-node > span {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}

.transcript-node {
  width: 136px;
}

.transcript-credit {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.transcript-credit a {
  display: inline-block;
  color: var(--indigo);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
  pointer-events: auto;
}

.transcript-credit a:hover {
  text-decoration-thickness: 2px;
}

.pipeline-node.is-active .art {
  background: var(--brief-tint);
  outline-color: var(--indigo);
}

.pipeline-node.is-active > span {
  color: var(--indigo);
  font-weight: 750;
}

.group-outline {
  position: absolute;
  top: 5%;
  bottom: -8px;
  left: 1%;
  width: 37%;
  border: 1px solid #d7d2ed;
  border-radius: 16px;
  background: var(--agent);
  z-index: 0;
}

.human-group {
  left: 42%;
  width: 57%;
  border-color: #e5d2bd;
  background: var(--human);
}

.group-outline > span,
.review-link,
.handoff-token {
  display: none;
}

.connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

.connections > path {
  fill: none;
  stroke-width: 2px;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.connections > .person-connection {
  stroke: var(--evidence);
  stroke-dasharray: 2 6;
  marker-end: url(#evidence-arrow);
}

.connections > .agent-connection {
  stroke: var(--indigo);
  stroke-dasharray: 5 6;
  marker-end: url(#brief-arrow);
}

.connections > .return-connection {
  stroke: var(--coral);
  stroke-dasharray: 2 7;
  marker-end: url(#review-arrow);
}

.connections > .pipeline-connection {
  stroke: var(--indigo);
  stroke-dasharray: 5 6;
  marker-end: url(#brief-arrow);
}

.connections > .pipeline-connection[data-kind="capture"] {
  stroke: var(--evidence);
  stroke-dasharray: 2 6;
  marker-end: url(#evidence-arrow);
}

.connections > .management-connection {
  stroke: var(--coral-ink);
  stroke-width: 1.8px;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  opacity: 0;
}

.connections > path.is-active {
  stroke-width: 2.7px;
}

.flow-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--evidence);
  opacity: 0;
  pointer-events: none;
  z-index: 7;
}

.flow-label,
.route-label {
  position: absolute;
  width: max-content;
  max-width: 120px;
  padding: 3px 6px;
  transform: translate(-50%, -50%);
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
  z-index: 7;
}

.flow-label {
  display: none;
  opacity: 0;
}

.brief-route-label {
  color: var(--indigo);
}

.review-route-label {
  color: var(--coral-ink);
}

.story-navigation {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-width: 0;
  min-height: 57px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
}

.scroll-cue svg {
  width: 20px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reading-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 32%;
  max-width: 260px;
  min-width: 0;
}

.progress-track {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--line);
}

.progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--coral);
}

.progress-count {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* The complete transcript is reserved for print; narration remains accessible. */
.reading-version {
  display: none;
}

.transcript {
  padding: 20px 0;
}

.transcript section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.transcript h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.transcript p {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

.transcript a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  font-size: 13px;
}

.plain-story {
  max-width: 810px;
  margin: 0 auto;
  padding: 40px 25px;
}

.plain-story h2 {
  margin-bottom: 24px;
  font-size: 29px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.plain-story p + p {
  margin-top: 20px;
}

.enhanced .plain-story,
body:not(.enhanced) .scroll-story,
body:not(.enhanced) .reading-version {
  display: none;
}

@media (hover: hover) {
  .observation-controls button:hover {
    color: var(--evidence);
    border-bottom-color: var(--evidence);
  }

  .flow-replay:hover {
    color: var(--indigo);
    text-decoration: underline;
    text-underline-offset: 5px;
  }
}

@media (min-width: 901px) {
  .conversation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
  }

  .conversation .reply-line {
    margin-top: 0;
  }

  .brief-changes {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .brief-change {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .note-content {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}


@media (max-width: 1100px) and (min-width: 901px) {
  .scroll-story {
    --story-copy-width: 300px;
  }

  .story-stage {
    padding-right: 32px;
    padding-left: 32px;
  }
}

@media (max-width: 900px) {
  .story-stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    row-gap: 20px;
    min-height: 100svh;
    padding: 24px 20px 16px;
  }

  .story-copy {
    align-self: start;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
  }

  .beat-title {
    font-size: 26px;
    line-height: 1.18;
    letter-spacing: -0.03em;
  }

  .story-caption {
    margin-top: 20px;
  }

  .narration {
    font-size: 15px;
    line-height: 1.55;
  }

  .example-scene {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: 20px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    gap: 16px;
  }

  .running-example {
    padding: 0;
    border-bottom: 0;
  }

  .example-copy {
    font-size: 17px;
    line-height: 1.45;
  }

  .scene-detail {
    margin-top: 12px;
  }

  .scroll-story:is([data-beat="observe"], [data-beat="brief"]) .example-copy {
    display: none;
  }

  .scroll-story:is([data-beat="observe"], [data-beat="brief"]) .scene-detail {
    margin-top: 0;
  }

  .observation-controls {
    gap: 6px;
    margin-bottom: 12px;
  }

  .observation-controls button {
    padding-right: 8px;
    padding-left: 8px;
  }

  .ask-line,
  .reply-line,
  .note-title {
    font-size: 15px;
  }

  .brief-changes {
    gap: 20px;
  }

  .brief-rewrite p {
    font-size: 14px;
  }

  .visual-world {
    width: 100%;
    max-width: 620px;
    min-height: 300px;
    margin: 0 auto;
  }

  .task {
    width: 82px;
  }

  .task .art {
    width: 34px;
    height: 34px;
    margin-bottom: 6px;
  }

  .task-label,
  .subject {
    font-size: 11px;
    line-height: 1.25;
  }

  .subject {
    margin-top: 5px;
  }

  .role-core {
    width: 90px;
  }

  .role-core img {
    height: 64px;
    padding: 6px;
  }

  .role-core > span {
    margin-top: 6px;
    font-size: 12px;
  }

  .agent-core {
    width: 64px;
  }

  .agent-core img {
    height: 44px;
    padding: 4px;
  }

  .agent-core > span {
    margin-top: 6px;
    font-size: 11px;
  }

  .pipeline-node {
    width: 82px;
    min-height: 75px;
  }

  .transcript-node {
    width: 112px;
  }

  .pipeline-node .art {
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
    padding: 3px;
    outline-offset: 2px;
  }

  .pipeline-node > span {
    font-size: 11px;
    line-height: 1.3;
  }

  .person {
    width: 76px;
  }

  .person img {
    height: 48px;
    padding: 4px;
  }

  .person > span {
    margin-top: 6px;
    font-size: 11px;
  }

  .person img,
  .role-core img,
  .agent-core img {
    outline-offset: 2px;
  }

  .story-navigation {
    gap: 12px;
    padding-top: 12px;
  }

  .scroll-cue {
    font-size: 12px;
  }

  .reading-progress {
    gap: 8px;
    width: 28%;
  }

}

/* One diagram rectangle for the whole story at the current viewport size. */
.geometry-ready .story-stage {
  height: var(--stage-height);
  min-height: var(--stage-height);
  grid-template-rows: minmax(0, 1fr) auto;
}

.geometry-ready .example-scene {
  grid-template-rows: minmax(0, 1fr) var(--diagram-height);
}

.geometry-ready .visual-world {
  min-height: 0;
}

.story-measurement {
  position: fixed;
  inset: 0 auto auto -20000px;
  width: max-content;
  height: auto;
  visibility: hidden;
  pointer-events: none;
  contain: layout style;
}

@media (max-width: 900px) {
  .geometry-ready .story-stage { grid-template-rows: auto minmax(0, 1fr) auto; }
}

/* Keep normal phone scrolling and the existing type sizes when space is tight. */
.tight-story .story-stage { padding-top: 12px; row-gap: 8px; }
.tight-story .example-scene { padding-top: 12px; gap: 8px; }

/* Preserve readable text and a useful diagram on short portrait phones. */
.dense-story .story-stage { padding: 10px 16px 6px; row-gap: 8px; }
.dense-story .story-copy { padding-top: 0; }
.dense-story .beat-title { font-size: 24px; line-height: 1.15; }
.dense-story .story-caption { margin-top: 14px; }
.dense-story .narration { font-size: 15px; line-height: 1.4; }
.dense-story .example-scene { padding-top: 8px; gap: 8px; }
.dense-story .example-copy { font-size: 16px; line-height: 1.35; }
.dense-story .scene-detail { margin-top: 6px; }
.dense-story .observation-controls { margin-bottom: 6px; }
.dense-story .conversation .reply-line { margin-top: 6px; line-height: 1.4; }
.dense-story .ask-line { line-height: 1.35; }
.dense-story .brief-changes { gap: 8px; }
.dense-story .brief-rewrite p { font-size: 15px; line-height: 1.35; }
.dense-story .flow-controls { min-height: 0; }
.dense-story .running-example .flow-controls { margin-top: 4px; }
.dense-story .story-navigation { min-height: 49px; padding-top: 4px; }
.dense-story .scroll-story[data-beat="mba"] [data-task="capacity"] { width: 112px; }

@media (prefers-reduced-motion: reduce) {
  .headline-word { color: var(--headline-ink); }
  .headline-animated::after { clip-path: none; }
  .scroll-story *,
  .scroll-story *::before,
  .scroll-story *::after {
    animation: none !important;
    transition: none !important;
  }

  .word-stream .stream-word {
    color: var(--narration-tone) !important;
  }

  .example-stream .stream-word {
    color: var(--example-tone) !important;
  }

  .connections > path {
    stroke-dashoffset: 0 !important;
  }

  .flow-dot {
    display: none !important;
  }
}

@media print {
  .scroll-story {
    display: none !important;
  }

  .reading-version {
    display: block !important;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .reading-version > .transcript {
    display: block !important;
  }

  .transcript section {
    break-inside: avoid;
  }
}

/* The incoming requests keep their identity as the developer sorts them. */
.priority-board { position:absolute; inset:0; z-index:4; pointer-events:none; }
.priority-grid { position:absolute; left:31%; top:12%; width:66%; height:75%; display:grid; grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; gap:1px; background:var(--line); }
.matrix-cell { background:var(--paper); }
.cell-first { background:#f4e7e0; }
.cell-next { background:#e3ece7; }
.cell-delegate { background:#eae7f2; }
.cell-defer { background:#eeede7; }
.matrix-column { position:absolute; bottom:calc(100% + 10px); width:50%; text-align:center; font-size:12px; font-weight:650; }
.column-urgent { left:0; } .column-later { left:50%; }
.matrix-row { position:absolute; right:calc(100% + 8px); font-size:11px; font-weight:650; white-space:nowrap; writing-mode:vertical-rl; transform:rotate(180deg); }
.row-important { top:12%; } .row-less { top:62%; }
.priority-item { position:absolute; left:64%; top:50%; width:54%; text-align:left; min-width:0; padding:8px; }
.priority-action { display:flex; align-items:center; gap:7px; margin-bottom:7px; color:var(--coral-ink); font-size:12px; font-weight:700; line-height:1.25; }
.priority-action b { font-size:20px; font-variant-numeric:tabular-nums; }
.priority-item[data-priority="1"] .priority-action { color:var(--evidence); }
.priority-item[data-priority="2"] .priority-action { color:var(--indigo); }
.priority-item[data-priority="3"] .priority-action { color:var(--muted); }
.priority-issue { display:block; color:var(--ink); font-size:16px; font-weight:600; line-height:1.35; }
.priority-source { position:absolute; bottom:0; left:31%; right:0; text-align:left; margin:0; font-size:11px; line-height:1.4; }
.priority-source a { display:inline-flex; min-height:28px; align-items:center; color:var(--muted); text-underline-offset:3px; }
@media(max-width:900px) {
  .priority-item { padding:5px; }
  .priority-issue { font-size:12px; line-height:1.35; }
  .priority-action { font-size:10px; gap:4px; margin-bottom:5px; }
  .priority-action b { font-size:17px; }
  .matrix-column { font-size:11px; bottom:calc(100% + 8px); }
  .matrix-row { font-size:10px; right:calc(100% + 5px); }
  .priority-source { font-size:10px; }
}
