/* Shared article components use the site's typography and theme tokens. */
.article-screenshot .screenshot-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #1f1f1f;
}
.article-screenshot .screenshot-scroll img {
  display: block;
  width: 100%;
  min-width: 560px;
  height: auto;
}
.article-screenshot.screenshot-wide .screenshot-scroll img {
  min-width: 620px;
}
.article-screenshot.screenshot-overview .screenshot-scroll img {
  min-width: 0;
}
.article-screenshot .screenshot-scroll:focus-visible {
  outline: 2px solid var(--muted);
  outline-offset: 4px;
}
/* Keep the supplied image intact; show its listening controls at phone widths. */
.voice-session-detail {
  display: none;
}
@media (max-width: 560px) {
  .voice-session-shot .screenshot-scroll {
    display: none;
  }
  .voice-session-detail {
    display: block;
    position: relative;
    aspect-ratio: 780 / 550;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #181818;
  }
  .voice-session-detail img {
    position: absolute;
    bottom: 0;
    left: -92.3077%;
    width: 221.2821%;
    max-width: none;
    height: auto;
  }
  .voice-session-detail:focus-visible {
    outline: 2px solid var(--muted);
    outline-offset: 4px;
  }
}
/* Mods: detail windows into the supplied, unaltered terminal captures. */
.mods-capture {
  position: relative;
  min-width: 700px;
  overflow: hidden;
  background: #171717;
}
.mods-screenshot .mods-capture img {
  position: absolute;
  width: 113.908%;
  max-width: none;
  min-width: 0;
  left: -6.609%;
}
.mods-capture-context {
  aspect-ratio: 1740 / 340;
}
.mods-capture-context img {
  top: -350%;
}
.mods-capture-preview {
  aspect-ratio: 1740 / 680;
}
.mods-capture-preview img {
  top: -27.941%;
}
.mods-capture-mermaid {
  aspect-ratio: 1740 / 1160;
}
.mods-capture-mermaid img {
  top: -30.172%;
}
.mods-hook-figure {
  --mods-added: #176d51;
  --mods-kept: #355cba;
}
:root[data-theme='dark'] .mods-hook-figure {
  --mods-added: #81d7ae;
  --mods-kept: #a3b8ff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .mods-hook-figure {
    --mods-added: #81d7ae;
    --mods-kept: #a3b8ff;
  }
}
.mods-hook-code {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.prose .mods-hook-code pre {
  margin: 0;
  border: 0;
  border-radius: 0;
}
.mods-hook-code mark {
  color: var(--mods-kept);
  background: color-mix(in srgb, var(--mods-kept) 10%, transparent);
}
.mods-render-result {
  padding: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.prose .mods-render-result p {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin: 12px 0 0;
  padding-left: 12px;
  border-left: 3px solid currentColor;
}
.mods-render-result p span {
  color: var(--muted);
  font-size: 11px;
}
.mods-render-own {
  color: var(--mods-added);
}
.mods-render-kept {
  color: var(--mods-kept);
}
/* Remote microphone: two loopback addresses joined by one SSH connection. */
.remote-audio-figure {
  --audio-route-accent: #355cba;
  --audio-input-accent: #176d51;
}
:root[data-theme='dark'] .remote-audio-figure {
  --audio-route-accent: #a3b8ff;
  --audio-input-accent: #81d7ae;
}
.remote-audio-figure .audio-route-label {
  margin: 0 0 22px;
  font-size: 12px;
  color: var(--muted);
}
.audio-address-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.audio-address-pair > div {
  min-width: 0;
}
.audio-machine {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.audio-address-pair code {
  display: block;
  padding: 0;
  color: var(--audio-route-accent);
  background: transparent;
  font-size: clamp(15px, 2.5vw, 21px);
  white-space: nowrap;
}
.audio-address-pair > div:last-child code {
  color: var(--audio-input-accent);
}
.audio-address-pair p {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.audio-tunnel-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 11px;
}
.audio-tunnel-rule::before,
.audio-tunnel-rule::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--audio-route-accent), var(--audio-input-accent));
}
.remote-audio-figure .audio-route-directions {
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.7;
}
.audio-route-directions > div {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 8px 0;
}
.audio-route-directions dt {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
}
.audio-route-directions dd {
  margin: 0;
  color: var(--text);
}
@media (max-width: 480px) {
  .audio-address-pair {
    gap: 16px;
  }
  .audio-route-directions > div {
    grid-template-columns: 1fr;
  }
}
/* OMP: observed snapshots, symbol identity, and intercepted source generation. */
.omp-figure {
  --omp-anchor: #355cba;
  --omp-change: #176d51;
  --omp-caution: #9b4b2e;
  margin-block: 2.5em;
}
:root[data-theme='dark'] .omp-figure {
  --omp-anchor: #a3b8ff;
  --omp-change: #81d7ae;
  --omp-caution: #edb098;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .omp-figure {
    --omp-anchor: #a3b8ff;
    --omp-change: #81d7ae;
    --omp-caution: #edb098;
  }
}
.omp-edit-desk,
.omp-symbol-sheet {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 38%, var(--bg));
  font-size: 13px;
  line-height: 1.65;
}
.omp-file-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 7px 14px;
  padding: 13px 18px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.omp-snapshot {
  color: var(--omp-anchor);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
}
.omp-edit-desk pre {
  margin: 0;
  padding: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  line-height: 1.9;
}
.omp-target {
  background: color-mix(in srgb, var(--omp-anchor) 10%, transparent);
  box-shadow: -3px 0 var(--omp-anchor);
}
.omp-patch {
  border-left: 3px solid var(--omp-change);
}
.omp-source + .omp-patch {
  border-top: 1px solid var(--line);
}
.omp-operation,
.omp-patch strong {
  color: var(--omp-change);
  font-weight: 600;
}
.omp-edit-desk .omp-annotation {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 12px;
}
.omp-freshness {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 15px 18px;
  border-top: 1px solid var(--line);
}
.omp-freshness .omp-snapshot {
  color: var(--omp-caution);
  text-decoration: line-through;
}
.omp-freshness p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.omp-symbol-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 3px 14px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
}
.omp-path {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}
.omp-symbol-row code {
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  padding: 0;
  background: transparent;
  font-size: 12px;
}
.omp-symbol-row mark {
  padding: 2px 3px;
  border-bottom: 2px solid var(--omp-anchor);
  background: color-mix(in srgb, var(--omp-anchor) 12%, transparent);
  color: var(--ink);
}
.omp-symbol-status {
  grid-column: 2;
  color: var(--omp-anchor);
  font-size: 11px;
}
.omp-unrelated .omp-symbol-status {
  color: var(--muted);
}
.omp-other-symbol {
  border-bottom: 1px dashed var(--muted);
}
.omp-symbol-result {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px 12px;
  padding: 17px 18px;
  color: var(--muted);
  background: color-mix(in srgb, var(--omp-change) 5%, transparent);
}
.omp-symbol-result code {
  padding: 0;
  color: var(--omp-change);
  background: transparent;
  font-size: 15px;
}
.omp-stream-ledger {
  margin: 0;
  padding: 0;
  list-style: none;
  border-block: 1px solid var(--line);
}
.omp-stream-ledger > li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding: 21px 0;
}
.omp-stream-ledger > li + li {
  border-top: 1px solid var(--line);
}
.omp-stream-phase {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.omp-stream-ledger > li > div {
  min-width: 0;
}
.omp-stream-ledger code {
  display: block;
  overflow-x: auto;
  padding: 2px 0 8px;
  background: transparent;
  white-space: nowrap;
  font-size: 12px;
}
.omp-stream-ledger mark {
  background: color-mix(in srgb, var(--omp-caution) 14%, transparent);
  color: var(--omp-caution);
  border-bottom: 2px solid var(--omp-caution);
  padding: 2px 3px;
}
.omp-stream-ledger p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.omp-stream-rejected .omp-stream-phase {
  color: var(--omp-caution);
}
.omp-stream-guidance strong {
  color: var(--omp-anchor);
  font-size: 14px;
  font-weight: 550;
}
.omp-stream-retry code,
.omp-stream-retry .omp-stream-phase {
  color: var(--omp-change);
}
@media (max-width: 520px) {
  .omp-stream-ledger > li {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    padding-block: 18px;
  }
  .omp-symbol-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .omp-symbol-status {
    grid-column: 1;
  }
  .omp-freshness {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }
}
.article-explainer {
  margin-block: 1.5em;
  padding: 16px 20px;
  border-left: 2px solid var(--muted);
  background: var(--surface);
  font-size: var(--text-small);
  line-height: 1.75;
}
.article-explainer > :first-child {
  margin-top: 0;
}
.article-explainer > :last-child {
  margin-bottom: 0;
}
.explainer-label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 500;
}
.article-diagram {
  margin: 2em 0;
}
.diagram-eyebrow {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.article-diagram figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.draft-status {
  color: var(--muted);
  font-size: var(--text-small);
}
.article-meta time {
  font-size: inherit;
}
.article-anchor {
  display: block;
  height: 0;
  scroll-margin-top: 28px;
}

/* Figures use the site's type and surfaces; colour encodes specific examples. */
.mechanism-figure {
  --figure-blue: #4263db;
  --figure-green: #168361;
  --figure-rust: #b45b3a;
  margin-block: 2.5em;
}
:root[data-theme='dark'] .mechanism-figure {
  --figure-blue: #91a6ff;
  --figure-green: #6ecaa5;
  --figure-rust: #e39d7f;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .mechanism-figure {
    --figure-blue: #91a6ff;
    --figure-green: #6ecaa5;
    --figure-rust: #e39d7f;
  }
}
.mechanism-heading {
  margin-bottom: 24px;
}
.mechanism-heading p {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: clamp(21px, 3vw, 27px);
  line-height: 1.35;
  letter-spacing: -0.035em;
}
.mechanism {
  padding: clamp(14px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 45%, var(--bg));
  font-size: 14px;
  line-height: 1.6;
  overflow: hidden;
}
.mechanism p,
.mechanism pre,
.mechanism blockquote {
  margin: 0;
}
.mechanism code,
.mechanism :not(pre) > code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: 0.92em;
}
.mechanism pre {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: none;
  font-size: 13px;
}
.mechanism-figure figcaption {
  max-width: 68ch;
  margin-top: 14px;
}
.mechanism-art {
  display: block;
  width: 100%;
  max-width: 650px;
  height: auto;
  margin-inline: auto;
  font-family: inherit;
  overflow: visible;
}
.mechanism-art text {
  fill: var(--ink);
  stroke: none;
}
.mechanism-art :is(path, line, rect, circle) {
  vector-effect: non-scaling-stroke;
}
.mechanism-art .plot-label {
  font-size: 22px;
  letter-spacing: -0.025em;
}
.mechanism-art .plot-tick {
  fill: var(--muted);
  font-size: 21px;
}
.plot-grid {
  stroke: var(--line);
  stroke-width: 1;
}
.plot-axis {
  stroke: var(--muted);
  stroke-width: 1;
}
.plot-original {
  stroke: var(--muted);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
  opacity: 0.7;
}
.plot-quantized {
  fill: none;
  stroke: var(--figure-blue);
  stroke-width: 3;
}
.plot-blue-dot {
  fill: var(--figure-blue);
}
.plot-open-dot {
  fill: var(--bg);
  stroke: var(--figure-blue);
  stroke-width: 1.5;
}
.plot-guide {
  stroke: var(--figure-green);
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
}
.plot-green-dot {
  fill: var(--figure-green);
  stroke: var(--bg);
  stroke-width: 2;
}
.plot-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
}
.plot-summary > span:not(.summary-symbol, .plot-badge) {
  display: grid;
  gap: 2px;
}
.plot-summary strong,
.storage-headline strong {
  font-size: clamp(25px, 4vw, 35px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.plot-summary strong.result-number {
  color: var(--figure-green);
}
.plot-summary small,
.query-limit small {
  color: var(--muted);
  font-size: 11px;
}
.summary-symbol {
  color: var(--muted);
  font-size: 23px;
}
.plot-badge {
  margin-left: auto;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}
.plot-badge strong {
  color: var(--figure-blue);
  font-size: 16px;
  letter-spacing: 0;
}
.plot-key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.plot-key > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.key-line {
  width: 21px;
  border-top: 2px solid var(--figure-blue);
}
.original-key {
  border-color: var(--muted);
  border-top-style: dashed;
}
.key-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--figure-green);
}
.matrix-positive,
.matrix-negative {
  opacity: 0.55;
}
.matrix-negative {
  fill: var(--figure-rust);
}
.matrix-positive {
  fill: var(--figure-blue);
}
.matrix-focus {
  fill: none;
  stroke: var(--figure-blue);
  stroke-width: 2;
}
.mechanism-art .matrix-value {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-size: 30px;
  letter-spacing: -0.045em;
}
.matrix-scale {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 24px;
  max-width: 360px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.matrix-scale i {
  height: 8px;
  flex: 1;
  background: linear-gradient(90deg, var(--figure-rust), var(--bg));
}
.matrix-scale i:last-of-type {
  background: linear-gradient(90deg, var(--bg), var(--figure-blue));
}
.matrix-note,
.storage-formula {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.matrix-note > code {
  color: var(--figure-blue);
  font-weight: 500;
}
.matrix-note > span,
.storage-formula > span {
  color: var(--muted);
  font-size: 12px;
}
.storage-headline {
  display: grid;
  gap: 5px;
  padding: 6px 4px 0;
}
.storage-headline > span {
  color: var(--muted);
  font-size: 12px;
}
.storage-bar {
  fill: var(--figure-blue);
}
.memory-additions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}
.memory-additions b {
  margin-right: 4px;
  color: var(--figure-green);
  font-size: 16px;
  font-weight: 400;
}
.request-line {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}
.request-line > span,
.exchange-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.request-line > p {
  color: var(--ink);
  font-size: 15px;
}
.code-window {
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: var(--bg);
}
.code-window-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-size: 12px;
}
.code-window-status {
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 11px;
}
.diff-code {
  padding-block: 16px;
  overflow-x: auto;
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-size: 13px;
  line-height: 2;
  overflow-wrap: normal;
}
.diff-code > div {
  display: grid;
  grid-template-columns: 40px 1fr;
  min-width: max-content;
  padding-right: 20px;
}
.diff-code > div > span {
  text-align: center;
}
.mechanism .diff-code code {
  white-space: pre;
  font-size: 1em;
}
.diff-code b {
  color: var(--figure-blue);
  font-weight: 400;
}
.code-number {
  color: var(--muted);
  font-size: 11px;
}
.removed-code {
  background: color-mix(in srgb, var(--figure-rust) 9%, var(--bg));
  color: var(--figure-rust);
}
.added-code {
  background: color-mix(in srgb, var(--figure-green) 9%, var(--bg));
  color: var(--figure-green);
}
.initial-value {
  padding: 3px 2px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--figure-green) 22%, var(--bg));
  font-weight: 600;
}
.test-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-top: 20px;
}
.test-comparison > div {
  display: grid;
  gap: 6px;
}
.test-comparison > div > code {
  font-size: 13px;
}
.test-before {
  color: var(--muted);
  font-size: 12px;
}
.test-comparison strong {
  color: var(--figure-green);
  font-size: 14px;
}
.tool-question {
  padding: 3px 0 24px;
  color: var(--ink);
  font-size: clamp(19px, 3vw, 24px);
  line-height: 1.5;
  letter-spacing: -0.035em;
}
.tool-exchange {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-block: 1px solid var(--line);
}
.tool-request,
.tool-result {
  padding: 24px 0;
  min-width: 0;
}
.tool-request {
  padding-right: 24px;
  border-right: 1px solid var(--line);
}
.tool-result {
  padding-left: 24px;
}
.tool-request pre {
  margin-block: 17px;
  overflow-x: auto;
}
.tool-request p {
  color: var(--muted);
  font-size: 12px;
}
.json-key {
  color: var(--figure-blue);
}
.json-string {
  color: var(--figure-green);
}
.source-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 17px;
  font-size: 12px;
}
.source-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--figure-green);
  flex: 0 0 auto;
}
.tool-result blockquote {
  margin-block: 14px;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}
.evidence-tag {
  color: var(--figure-green);
  font-size: 11px;
}
.tool-reading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-top: 20px;
}
.reading-index {
  flex: 0 0 auto;
  white-space: nowrap;
  color: var(--figure-blue);
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-size: 12px;
}
.query-limit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.query-limit > span {
  display: grid;
  gap: 5px;
}
.query-limit > strong {
  color: var(--ink);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.query-limit > strong > span {
  color: var(--figure-rust);
}
.result-table table {
  width: 100%;
  min-width: 0;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.result-table caption {
  padding: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  text-align: left;
}
.result-table :is(th, td) {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}
.result-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
.result-table th:first-child,
.result-table td:first-child {
  padding-left: 0;
}
.result-table :is(th, td):last-child {
  text-align: right;
  padding-right: 0;
}
.row-index {
  display: inline-block;
  width: 30px;
  color: var(--muted);
  font-size: 10px;
}
.returned-record {
  color: var(--figure-green);
  font-size: 11px;
}
.extra-record {
  background: color-mix(in srgb, var(--figure-rust) 8%, var(--bg));
}
.result-table .extra-record td {
  border-top: 2px solid var(--figure-rust);
}
.boundary-note {
  color: var(--figure-rust);
  font-size: 11px;
}
.truncation-result {
  display: grid;
  gap: 8px;
  padding-top: 20px;
}
.truncation-result code {
  color: var(--figure-rust);
}
.truncation-result p {
  color: var(--muted);
  font-size: 12px;
}
.agent-investigations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.agent-investigation {
  min-width: 0;
  padding-block: 24px;
}
.explore-investigation {
  padding-right: 24px;
  border-right: 1px solid var(--line);
}
.review-investigation {
  padding-left: 24px;
}
.agent-investigation .exchange-label b {
  margin-right: 8px;
  color: var(--figure-blue);
  font-weight: 400;
}
.review-investigation .exchange-label b {
  color: var(--figure-green);
}
.evidence-file {
  margin-top: 20px;
  color: var(--muted);
  font-size: 11px;
}
.agent-investigation pre {
  margin-block: 12px 20px;
  font-size: 16px;
  line-height: 1.6;
}
.agent-investigation pre code {
  color: var(--figure-blue);
}
.review-investigation pre code {
  color: var(--figure-green);
}
.unsafe-index {
  padding: 3px 2px;
  background: color-mix(in srgb, var(--figure-rust) 14%, var(--bg));
  color: var(--figure-rust);
}
.agent-investigation p {
  font-size: 13px;
}
.returned-findings {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.returned-findings p {
  margin-top: 8px;
  font-size: 13px;
}
.git-base,
.git-branch-a,
.git-branch-b {
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
}
.git-branch-a {
  stroke: var(--figure-blue);
}
.git-branch-b {
  stroke: var(--figure-green);
}
.git-base-node {
  fill: var(--bg);
  stroke: var(--muted);
  stroke-width: 2;
}
.git-a-node {
  fill: var(--figure-blue);
  stroke: var(--bg);
  stroke-width: 2;
}
.git-b-node {
  fill: var(--figure-green);
  stroke: var(--bg);
  stroke-width: 2;
}
.worktree-files {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.worktree-files > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.branch-chip {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 11px;
  flex: 0 0 auto;
}
.branch-a {
  color: var(--figure-blue);
  background: color-mix(in srgb, var(--figure-blue) 12%, var(--bg));
}
.branch-b {
  color: var(--figure-green);
  background: color-mix(in srgb, var(--figure-green) 12%, var(--bg));
}
.integration-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}
.context-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.broad-context,
.focused-context {
  min-width: 0;
}
.broad-context pre {
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 2;
}
.broad-context pre code {
  color: var(--muted);
}
.log-failure {
  background: color-mix(in srgb, var(--figure-rust) 12%, var(--bg));
  color: var(--figure-rust);
}
.focused-context {
  padding-left: 26px;
  border-left: 1px solid var(--line);
}
.context-fact {
  display: grid;
  gap: 5px;
  margin-top: 22px;
}
.context-fact > span {
  color: var(--figure-blue);
  font-size: 11px;
}
.context-fact > strong {
  font-size: 16px;
  line-height: 1.4;
}
.context-source {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 23px;
  color: var(--muted);
  font-size: 11px;
}
.mechanism p.context-selection-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 560px) {
  .mechanism-heading {
    margin-bottom: 17px;
  }
  .mechanism {
    font-size: 13px;
  }
  .mechanism-art .plot-label {
    font-size: 26px;
  }
  .mechanism-art .plot-tick {
    font-size: 25px;
  }
  .plot-summary {
    gap: 11px;
  }
  .plot-summary small {
    max-width: 9ch;
    font-size: 10px;
    line-height: 1.35;
  }
  .plot-badge {
    padding: 6px 8px;
    font-size: 10px;
  }
  .plot-key {
    font-size: 11px;
    gap: 8px 16px;
  }
  .request-line {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .request-line > p {
    font-size: 14px;
  }
  .test-comparison {
    gap: 14px;
  }
  .tool-exchange,
  .agent-investigations,
  .context-comparison {
    grid-template-columns: 1fr;
  }
  .tool-request {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
  }
  .tool-result {
    padding-left: 0;
  }
  .explore-investigation {
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .review-investigation {
    padding-left: 0;
  }
  .context-comparison {
    gap: 24px;
  }
  .focused-context {
    padding: 22px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .query-limit {
    justify-content: flex-start;
  }
  .query-limit > strong {
    margin-left: auto;
  }
}
@media print {
  .mechanism-figure {
    break-inside: avoid;
  }
  .mechanism {
    overflow: visible;
  }
}

/* Voice coordination: a shared requirement scored across three task histories. */
.voice-project-figure {
  --voice-build: #4263db;
  --voice-tests: #177253;
  --voice-review: #985021;
}
:root[data-theme='dark'] .voice-project-figure {
  --voice-build: #a1b4ff;
  --voice-tests: #82d4af;
  --voice-review: #efb17f;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .voice-project-figure {
    --voice-build: #a1b4ff;
    --voice-tests: #82d4af;
    --voice-review: #efb17f;
  }
}
.voice-project-score {
  padding: 25px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.voice-project-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
}
.voice-project-label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.025em;
}
.prose .voice-project-utterance {
  padding: 20px 0 24px;
  margin: 0;
  border: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.55;
  font-style: normal;
}
.prose .voice-project-utterance p {
  margin: 0;
}
.voice-project-utterance mark {
  padding: 1px 3px;
  color: inherit;
  background: color-mix(in srgb, var(--voice-build) 16%, transparent);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.voice-project-thread {
  --voice-thread: var(--voice-build);
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  column-gap: 24px;
  row-gap: 9px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.voice-project-tests {
  --voice-thread: var(--voice-tests);
}
.voice-project-review {
  --voice-thread: var(--voice-review);
}
.voice-project-thread-name {
  display: grid;
  align-content: start;
  gap: 4px;
  grid-row: span 2;
}
.voice-project-number {
  color: var(--voice-thread);
  font-family: ui-monospace, monospace;
  font-size: 11px;
}
.voice-project-thread-name strong {
  color: var(--ink);
  font-size: 13px;
}
.voice-project-thread-name > span:last-child {
  color: var(--muted);
  font-size: 11px;
}
.voice-project-change {
  display: grid;
  grid-template-columns: 1fr;
  border-left: 3px solid var(--voice-thread);
  padding-left: 12px;
  gap: 5px;
  font-size: 12px;
  line-height: 1.55;
}
.voice-project-old {
  color: var(--muted);
}
.voice-project-new {
  color: var(--voice-thread);
  font-weight: 650;
}
.prose .voice-project-thread > p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text);
}
.prose .voice-project-return {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-top: 19px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
}
.voice-project-return > strong {
  color: var(--ink);
  font-size: 13px;
}
.voice-project-return > span {
  color: var(--muted);
}
@media (max-width: 560px) {
  .voice-project-score {
    padding: 19px;
  }
  .prose .voice-project-utterance {
    font-size: 17px;
  }
  .voice-project-thread {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .voice-project-thread-name {
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: baseline;
    grid-row: auto;
  }
  .voice-project-thread-name > span:last-child {
    grid-column: 2;
  }
  .voice-project-change,
  .prose .voice-project-thread > p {
    font-size: 13px;
  }
}

/* Preserve the official demo's aspect ratio as it loops inline. */
.article-video video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #1f1f1f;
}

.cmux-layout-shot > a,
.cmux-layout-shot img {
  display: block;
}
.cmux-layout-shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.cmux-layout-key {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr;
  gap: 16px;
  margin: 0 0 12px;
}
.cmux-layout-key > div {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.cmux-layout-key dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}
.cmux-layout-key dd {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}
@media (max-width: 560px) {
  .cmux-layout-key {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}
