:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --panel: #ffffff;
  --panel-soft: #f9fbfd;
  --ink: #14202b;
  --muted: #5c6978;
  --subtle: #8190a2;
  --line: #dbe2ea;
  --line-strong: #c5cfdb;
  --green: #147a5b;
  --green-soft: #e5f5ee;
  --blue: #2457c5;
  --blue-soft: #e9f0ff;
  --amber: #9a5b00;
  --amber-soft: #fff2d6;
  --rose: #b7314a;
  --rose-soft: #ffebef;
  --violet: #6750a4;
  --violet-soft: #f0edff;
  --shadow: 0 16px 44px rgba(20, 32, 43, 0.09);
  --radius: 8px;
  --sidebar-width: 306px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
}

code {
  padding: 1px 4px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel-soft);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
  background: #ffffff;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  background: #1c2b3a;
  border-radius: var(--radius);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 14px;
  letter-spacing: 0;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 18px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.search-box svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-group-label {
  margin: 16px 4px 3px;
  color: var(--subtle);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-group-label:first-child {
  margin-top: 0;
}

.nav-item,
.category-button {
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  color: var(--muted);
  background: transparent;
  text-align: left;
}

.nav-item {
  padding: 10px 11px;
  font-size: 14px;
  font-weight: 650;
}

.nav-item:hover,
.category-button:hover,
.nav-item.is-active,
.category-button.is-active {
  color: var(--ink);
  background: #edf2f7;
}

.sidebar-section {
  margin-top: 24px;
}

.section-label {
  margin: 0 0 8px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-list {
  display: grid;
  gap: 4px;
}

.category-button {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  font-size: 13px;
}

.category-button span:last-child {
  color: var(--subtle);
}

.toggle-row {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--panel-soft);
  font-size: 13px;
}

.toggle-row input {
  margin-top: 3px;
  accent-color: var(--blue);
}

.legend {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot.yes {
  background: var(--green);
}

.dot.partial {
  background: var(--blue);
}

.dot.gated {
  background: var(--amber);
}

.dot.no {
  background: var(--rose);
}

.content {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.kicker {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid #1c2b3a;
  border-radius: var(--radius);
  color: #ffffff;
  background: #1c2b3a;
  font-size: 13px;
  font-weight: 720;
  text-decoration: none;
  white-space: nowrap;
}

.button.secondary {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line-strong);
}

.button:hover,
.detail-button:hover,
.row-button:hover .feature-title,
.source-card a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(36, 87, 197, 0.28);
  outline-offset: 2px;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.product-card,
.panel,
.insight-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(20, 32, 43, 0.03);
}

.product-card {
  display: grid;
  gap: 14px;
  min-height: 220px;
  padding: 17px;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent);
}

.product-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.product-card .logo {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--radius);
  color: var(--accent);
  background: var(--accent-soft);
}

.product-card svg,
.mini-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.metric {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.metric strong {
  display: block;
  font-size: 20px;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-size: 11px;
}

.coverage-bar {
  display: grid;
  height: 8px;
  overflow: hidden;
  grid-template-columns: var(--yes, 1fr) var(--partial, 1fr) var(--no, 1fr);
  border-radius: 999px;
  background: #edf2f7;
}

.coverage-bar span:nth-child(1) {
  background: var(--green);
}

.coverage-bar span:nth-child(2) {
  background: var(--blue);
}

.coverage-bar span:nth-child(3) {
  background: var(--rose);
}

.insight-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 22px;
  margin-top: 16px;
  padding: 20px;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.answer-tile {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.answer-tile strong,
.answer-tile span {
  display: block;
}

.answer-tile span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.view-root {
  margin-top: 16px;
}

.panel {
  padding: 18px;
}

.intro-band,
.metric-band,
.learning-rail,
.evidence-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 28px;
  align-items: start;
}

.intro-band h2 {
  max-width: 860px;
  font-size: 34px;
  line-height: 1.08;
}

.intro-band p {
  max-width: 860px;
  color: var(--muted);
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.route-card {
  display: grid;
  min-height: 178px;
  gap: 10px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.route-card:hover {
  border-color: rgba(36, 87, 197, 0.42);
  box-shadow: 0 10px 24px rgba(20, 32, 43, 0.08);
  transform: translateY(-1px);
}

.route-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
}

.route-card strong,
.route-card em,
.route-card small {
  display: block;
}

.route-card strong {
  font-size: 16px;
}

.route-card em {
  color: var(--ink);
  font-style: normal;
  font-weight: 720;
}

.route-card small {
  color: var(--muted);
  font-size: 12px;
}

.learning-rail {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(300px, 0.5fr);
  gap: 26px;
  margin-top: 22px;
}

.learning-rail p,
.learning-rail li,
.side-note p,
.plain-list li {
  color: var(--muted);
}

.learning-rail ol,
.plain-list {
  margin: 0;
  padding-left: 20px;
}

.chapter-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.38fr);
  gap: 28px;
  align-items: start;
  margin-top: 18px;
}

.side-note {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border-left: 3px solid var(--blue);
  background: #ffffff;
}

.panel-header.unframed {
  margin: 0 0 14px;
}

.stat-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.call-path {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.call-path li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.call-path li:not(:last-child)::after {
  content: "→";
  color: var(--subtle);
}

.call-path code {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: var(--radius);
  background: #ffffff;
}

.call-path.compact code {
  min-height: 26px;
  padding: 3px 7px;
  font-size: 12px;
}

.loop-chapter-stack {
  display: grid;
  gap: 22px;
}

.loop-chapter {
  display: grid;
  gap: 16px;
  padding: 20px 0 22px;
  border-top: 1px solid var(--line);
}

.loop-chapter:first-child {
  border-top: 0;
  padding-top: 0;
}

.loop-chapter-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 18px;
  align-items: start;
}

.loop-chapter-header h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.loop-chapter-header p {
  max-width: 76ch;
  color: var(--muted);
}

.stage-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stage-proof-grid > div {
  min-width: 0;
  padding: 14px;
  border-left: 3px solid var(--blue);
  background: #f7fafc;
}

.stage-proof-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-proof-grid p {
  margin: 0;
  color: var(--ink);
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.branch-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.branch-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
}

.branch-card p {
  margin: 6px 0;
  color: var(--muted);
}

.branch-card strong {
  color: var(--ink);
}

.evidence-drawer.compact {
  margin-top: 10px;
  padding: 8px 10px;
}

.chapter-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 2px;
}

.chapter-footer a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.chapter-footer a:hover {
  text-decoration: underline;
}

.semantic-stack {
  display: grid;
  gap: 12px;
}

.semantic-stack.compact {
  gap: 8px;
}

.semantic-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 18px;
  min-width: 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.semantic-card:first-child {
  border-top: 0;
}

.semantic-copy {
  min-width: 0;
}

.semantic-copy p {
  color: var(--muted);
}

.evidence-drawer {
  min-width: 0;
  align-self: start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.evidence-drawer summary {
  color: var(--blue);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.evidence-drawer[open] {
  max-height: 420px;
  overflow: auto;
}

.section-drawer {
  margin-top: 16px;
  padding: 0;
  border-top: 1px solid var(--line);
}

.section-drawer > summary {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 0;
  cursor: pointer;
  color: var(--ink);
}

.section-drawer > summary strong,
.section-drawer > summary span {
  display: block;
}

.section-drawer > summary strong {
  font-size: 17px;
}

.section-drawer > summary span {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.section-drawer[open] {
  padding-bottom: 14px;
}

.prompt-xray-section,
.prompt-fast-routes,
.request-blueprint-section,
.reader-spine-section,
.context-cache-algorithm-section,
.source-map-bridge-section,
.swimlane-section,
.reimplementation-section,
.operating-model-section,
.value-ledger-section,
.implementation-vector-section,
.clone-kernel-section,
.builder-guide-section,
.turn-trace-section,
.reconstruction-guide-section,
.clean-room-workbook-section,
.source-call-graph-section,
.request-trace-section,
.logic-diagrams-section,
.implementation-skeleton-section,
.decision-tables-section,
.acceptance-suite-section,
.object-snapshots-section,
.context-assembly-section,
.prompt-stack-section,
.request-packet-section,
.cache-accounting-section,
.walkthrough-section,
.recipe-section,
.context-mechanics-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.prompt-fast-routes {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid #d8e2ec;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f9fbfc 0%, #eef6f8 100%);
}

.prompt-fast-routes-copy {
  display: grid;
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  gap: 7px;
  align-content: start;
}

.prompt-fast-routes-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.prompt-fast-routes-copy p {
  display: none;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.prompt-context-question-route {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 1;
  min-width: 0;
  gap: 7px;
  align-content: start;
  padding: 10px;
  border: 1px solid #cbd9e4;
  border-left: 4px solid #2f6f9f;
  border-radius: var(--radius);
  background: #ffffff;
}

.prompt-context-question-hero {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(260px, 0.82fr) minmax(420px, 1.18fr);
  gap: 12px;
  align-items: start;
}

.prompt-context-question-route-header {
  display: grid;
  grid-template-columns: 1fr;
  min-width: 0;
  align-self: start;
  gap: 10px;
  align-items: start;
  align-content: start;
  padding: 10px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #fbfdff;
}

.prompt-context-question-route-header span {
  color: #5e6e80;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.prompt-context-question-route-header > div > strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.prompt-context-question-route-header p {
  max-width: 560px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.prompt-context-question-actions {
  display: grid;
  min-width: 0;
  gap: 7px;
  justify-items: start;
}

.prompt-context-question-actions small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.prompt-context-question-proof-strip {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.prompt-context-question-proof-strip > div {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 6px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.prompt-context-question-proof-strip > div:nth-child(2n) {
  background: #f6fbf8;
}

.prompt-context-question-proof-strip span {
  color: #315f86;
  font-size: 8.5px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.prompt-context-question-proof-strip strong {
  color: var(--ink);
  font-size: 10px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.prompt-context-question-proof-strip code {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  color: #152033;
  font-size: 9px;
  line-height: 1.18;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.prompt-context-question-open-path {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.prompt-context-question-open-path > div {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 6px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #fbfdff;
}

.prompt-context-question-open-path > div:nth-child(2n) {
  background: #f6fbf8;
}

.prompt-context-question-open-path span {
  color: #315f86;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.prompt-context-question-open-path strong {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.prompt-context-question-open-path code {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  color: #152033;
  font-size: 9.5px;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.prompt-context-question-mini-diagram {
  display: grid;
  min-width: 0;
  align-self: start;
  gap: 7px;
  padding: 9px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.prompt-context-question-mini-header {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
}

.prompt-context-question-mini-header span {
  color: #315f86;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.prompt-context-question-mini-header strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
  text-align: right;
  overflow-wrap: anywhere;
}

.prompt-context-question-flow {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prompt-context-question-flow li {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 4px 7px;
  align-items: start;
  align-content: start;
  padding: 7px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.prompt-context-question-flow li:nth-child(2n) {
  background: #f6fbf8;
}

.prompt-context-question-flow li:nth-child(3n) {
  background: #fffaf0;
}

.prompt-context-question-flow li:not(:last-child)::after {
  display: none;
}

.prompt-context-question-flow li > span {
  display: grid;
  width: 20px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #2f6f9f;
  font-size: 10px;
  font-weight: 850;
}

.prompt-context-question-flow strong,
.prompt-context-question-flow code,
.prompt-context-question-flow small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.prompt-context-question-flow strong {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.2;
  overflow-wrap: normal;
}

.prompt-context-question-flow code {
  grid-column: 2 / -1;
  color: #315f86;
  font-size: 10px;
  line-height: 1.22;
  white-space: normal;
}

.prompt-context-question-flow small {
  grid-column: 2 / -1;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.28;
}

.prompt-context-question-contract {
  display: grid;
  min-width: 0;
  border: 1px solid #d2dde8;
  border-radius: var(--radius);
  background: #f8fbfd;
  overflow: hidden;
}

.prompt-context-question-contract > summary {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  cursor: pointer;
  list-style: none;
}

.prompt-context-question-contract > summary::-webkit-details-marker {
  display: none;
}

.prompt-context-question-contract > summary strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.prompt-context-question-contract > summary span {
  flex: 0 0 auto;
  color: #5e6e80;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.prompt-context-question-contract-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border-top: 1px solid #d2dde8;
}

.prompt-context-question-contract-grid > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 9px;
  border: 1px solid #d2dde8;
  border-radius: var(--radius);
  background: #f8fbfd;
}

.prompt-context-question-contract-grid > div:nth-child(2) {
  background: #f6fbf8;
}

.prompt-context-question-contract-grid > div:nth-child(3) {
  background: #fffaf0;
}

.prompt-context-question-contract-grid span {
  color: #5e6e80;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.prompt-context-question-contract-grid strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.prompt-context-question-contract-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.prompt-context-question-path {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prompt-context-question-path li {
  display: grid;
  min-width: 0;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
}

.prompt-context-question-path li > span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #2f6f9f;
  font-size: 11px;
  font-weight: 850;
}

.prompt-context-question-path strong,
.prompt-context-question-path small,
.prompt-context-question-path code {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.prompt-context-question-path strong {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.25;
}

.prompt-context-question-path small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.prompt-context-question-path code {
  margin-top: 2px;
  color: #315f86;
  font-size: 10px;
  line-height: 1.25;
  white-space: normal;
}

.prompt-context-question-signals {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.prompt-context-question-signals > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 8px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.prompt-context-question-signals > div:nth-child(2) {
  background: #f6fbf8;
}

.prompt-context-question-signals > div:nth-child(3) {
  background: #fffaf0;
}

.prompt-context-question-signals strong,
.prompt-context-question-signals span {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 780;
}

.prompt-context-question-signals code {
  color: #315f86;
  font-size: 10px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.prompt-context-question-signals p {
  display: none;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.prompt-fast-route-grid {
  display: grid;
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.prompt-fast-route-card {
  display: grid;
  min-width: 0;
  gap: 4px;
  align-content: start;
  padding: 7px;
  border: 1px solid #c6d3df;
  border-left: 3px solid #2f6f9f;
  border-radius: var(--radius);
  color: inherit;
  background: #ffffff;
  text-align: left;
}

.prompt-fast-route-card:hover,
.prompt-fast-route-card:focus-visible {
  border-color: #2f6f9f;
  outline: none;
  background: #edf8f8;
}

.prompt-fast-route-card.is-primary {
  border-color: #94b9d8;
  background: #edf7fc;
  box-shadow: inset 0 0 0 1px #d2e6f2;
}

.prompt-fast-route-card span {
  color: #5e6e80;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.prompt-fast-route-card strong {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.prompt-fast-route-card small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

@media (max-width: 920px) {
  .prompt-fast-routes {
    grid-template-columns: 1fr;
  }

  .prompt-fast-routes-copy,
  .prompt-context-question-route,
  .prompt-fast-route-grid {
    grid-column: auto;
    grid-row: auto;
  }

  .prompt-fast-routes {
    gap: 10px;
    padding: 12px;
  }

  .prompt-fast-routes-copy h2 {
    font-size: 20px;
  }

  .prompt-context-question-hero {
    grid-template-columns: 1fr;
  }

  .prompt-context-question-route-header {
    padding: 9px;
  }

  .prompt-context-question-route-header p {
    display: none;
  }

  .prompt-context-question-proof-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .prompt-context-question-proof-strip > div {
    padding: 6px;
  }

  .prompt-context-question-proof-strip code {
    font-size: 8.5px;
    -webkit-line-clamp: 1;
  }

  .prompt-context-question-route {
    gap: 7px;
    padding: 11px;
  }

  .prompt-context-question-open-path {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .prompt-context-question-open-path > div {
    padding: 6px;
  }

  .prompt-context-question-open-path code {
    font-size: 9px;
    -webkit-line-clamp: 1;
  }

  .prompt-context-question-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .prompt-context-question-flow li {
    gap: 5px;
    align-items: center;
    padding: 5px 6px;
  }

  .prompt-context-question-flow code,
  .prompt-context-question-flow small {
    grid-column: 2 / -1;
  }

  .prompt-context-question-flow li:not(:last-child)::after {
    display: none;
  }

  .prompt-context-question-flow small {
    display: block;
  }

  .prompt-context-question-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prompt-context-question-contract-grid,
  .prompt-context-question-signals {
    grid-template-columns: 1fr;
  }

  .prompt-fast-route-card {
    padding: 8px 9px;
  }
}

@media (min-width: 701px) and (max-width: 920px) {
  .prompt-fast-routes {
    gap: 8px;
    padding: 10px;
  }

  .prompt-fast-routes-copy {
    display: none;
  }

  .prompt-context-question-route {
    gap: 8px;
    padding: 10px;
  }

  .prompt-context-question-route-header > div > strong {
    font-size: 17px;
    line-height: 1.2;
  }

  .prompt-context-question-route-header p {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.35;
  }

  .prompt-context-question-actions {
    justify-content: start;
  }

  .prompt-context-question-mini-diagram {
    gap: 6px;
    padding: 8px;
  }

  .prompt-context-question-mini-header strong {
    font-size: 11px;
  }

  .prompt-context-question-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .prompt-context-question-flow li {
    gap: 5px;
    padding: 5px 6px;
  }

  .prompt-context-question-flow strong {
    font-size: 10px;
  }

  .prompt-context-question-flow code,
  .prompt-context-question-flow small {
    font-size: 9px;
    line-height: 1.18;
  }

  .prompt-context-question-path {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .prompt-context-question-contract-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .prompt-context-question-contract-grid > div {
    padding: 7px;
  }

  .prompt-context-question-contract-grid strong {
    font-size: 12px;
  }

  .prompt-context-question-contract-grid p {
    font-size: 10px;
    line-height: 1.28;
  }

  .prompt-context-question-path li {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 5px;
  }

  .prompt-context-question-path li > span {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .prompt-context-question-path strong {
    font-size: 10px;
  }

  .prompt-context-question-path small {
    font-size: 9px;
    line-height: 1.2;
  }

  .prompt-context-question-path code {
    font-size: 9px;
    line-height: 1.18;
  }

  .prompt-context-question-signals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .prompt-context-question-signals > div {
    padding: 6px;
  }

  .prompt-context-question-signals strong {
    font-size: 11px;
  }

  .prompt-context-question-signals span {
    font-size: 10px;
  }

  .prompt-context-question-signals code {
    font-size: 9px;
    line-height: 1.18;
  }

  .prompt-context-question-signals p {
    display: none;
  }
}

@media (max-width: 700px) {
  .prompt-context-question-proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .prompt-context-question-proof-strip > div {
    padding: 5px;
  }

  .prompt-context-question-proof-strip strong {
    font-size: 9.5px;
  }

  .prompt-context-question-proof-strip code {
    display: none;
  }

  .prompt-context-question-open-path {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  .prompt-context-question-open-path strong {
    font-size: 8.5px;
  }

  .prompt-context-question-open-path code {
    display: none;
  }

  .prompt-context-question-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .prompt-context-question-flow li {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 5px;
    align-items: center;
    padding: 5px 6px;
  }

  .prompt-context-question-flow code,
  .prompt-context-question-flow small {
    grid-column: 2 / -1;
  }

  .prompt-context-question-flow li:not(:last-child)::after {
    display: none;
  }

  .prompt-context-question-flow li > span {
    width: 20px;
    height: 18px;
  }

  .prompt-context-question-flow small {
    display: block;
  }

  .prompt-context-question-flow strong {
    font-size: 9.5px;
    line-height: 1.15;
  }

  .prompt-context-question-flow code {
    display: none;
  }

  .prompt-context-question-flow small {
    font-size: 9px;
    line-height: 1.18;
  }

  .prompt-context-question-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .prompt-context-question-path li {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 4px;
  }

  .prompt-context-question-path code {
    display: none;
  }

  .prompt-context-question-signals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .prompt-context-question-signals > div {
    padding: 6px;
  }

  .prompt-context-question-signals code {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .prompt-fast-route-grid {
    display: none;
  }

  .prompt-fast-route-card small {
    display: none;
  }
}

@media (max-width: 360px) {
  .prompt-context-question-flow {
    grid-template-columns: 1fr;
  }

  .prompt-context-question-flow li:not(:last-child)::after {
    display: none;
  }

  .prompt-context-question-path {
    grid-template-columns: 1fr;
  }

  .prompt-context-question-signals {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 701px) and (max-width: 920px) {
  .prompt-context-question-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prompt-context-question-signals p {
    font-size: 10px;
    line-height: 1.25;
  }

  .prompt-fast-route-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .prompt-fast-route-card {
    gap: 4px;
    padding: 7px;
    border-left-width: 3px;
  }

  .prompt-fast-route-card span {
    font-size: 9px;
  }

  .prompt-fast-route-card strong {
    font-size: 11px;
  }

  .prompt-fast-route-card small {
    font-size: 9px;
    line-height: 1.25;
  }
}

.request-blueprint {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.prompt-xray-section {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.prompt-xray-scenario {
  display: grid;
  min-width: 0;
  grid-template-columns: 1.1fr 1.3fr 1fr;
  gap: 10px;
}

.prompt-xray-scenario > div {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.prompt-xray-scenario > div:nth-child(2) {
  background: #f6fbf8;
}

.prompt-xray-scenario > div:nth-child(3) {
  background: #fffaf0;
}

.prompt-xray-scenario span,
.prompt-xray-card header span,
.prompt-xray-rule-grid span,
.prompt-xray-math-strip span {
  color: #28415f;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prompt-xray-scenario strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.prompt-xray-flow {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prompt-xray-flow li {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 116px;
  gap: 7px;
  align-content: start;
  padding: 13px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.prompt-xray-flow li:nth-child(3n + 1) {
  background: #f8fafc;
}

.prompt-xray-flow li:nth-child(3n + 2) {
  background: #f6fbf8;
}

.prompt-xray-flow li:nth-child(3n) {
  background: #fffaf0;
}

.prompt-xray-flow li > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #2f6f9f;
  font-size: 12px;
  font-weight: 850;
}

.prompt-xray-flow strong,
.prompt-xray-flow small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.prompt-xray-flow strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.prompt-xray-flow small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.prompt-xray-simulator {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.prompt-xray-simulator article {
  display: grid;
  min-width: 0;
  gap: 6px;
  align-content: start;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-left: 4px solid #2f6f9f;
  border-radius: var(--radius);
  background: #ffffff;
}

.prompt-xray-simulator article:nth-child(2n) {
  border-left-color: #2b8a63;
  background: #f6fbf8;
}

.prompt-xray-simulator article:nth-child(3n) {
  border-left-color: #9a6b12;
  background: #fffaf0;
}

.prompt-xray-simulator span,
.context-cache-answer-map span,
.builder-answer-flow span {
  color: #28415f;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prompt-xray-simulator strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.prompt-xray-simulator p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.prompt-xray-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(500px, 100%), 1fr));
  gap: 10px;
}

.prompt-xray-card {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.prompt-xray-card:nth-child(2n) {
  background: #f8fafc;
}

.prompt-xray-card header {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.prompt-xray-card h3,
.prompt-xray-code-grid h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.prompt-xray-rule-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.prompt-xray-rule-grid > div,
.prompt-xray-code-grid > article,
.prompt-xray-math-strip > div {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 10px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.prompt-xray-rule-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.prompt-xray-rule-grid span {
  overflow-wrap: anywhere;
}

.prompt-xray-code-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  gap: 10px;
}

.prompt-xray-code-grid > article {
  background: #f8fafc;
}

.prompt-xray-code-grid > article:nth-child(2) {
  background: #f6fbf8;
}

.prompt-xray-code-grid .pseudo-code {
  min-width: 0;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.prompt-xray-debugger {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.prompt-xray-debugger-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.prompt-xray-debugger-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.prompt-xray-debugger-header > span {
  flex: 0 0 auto;
  width: fit-content;
  max-width: 190px;
  padding: 5px 8px;
  border: 1px solid #d7dde6;
  border-radius: 999px;
  color: #28415f;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

.prompt-xray-debugger-table {
  display: grid;
  min-width: 0;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
}

.prompt-xray-debugger-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(100px, 0.72fr) minmax(105px, 0.78fr) minmax(0, 1.45fr) minmax(0, 1.1fr) minmax(0, 1.1fr);
  border-top: 1px solid #dbe2ea;
}

.prompt-xray-debugger-row:first-child {
  border-top: 0;
}

.prompt-xray-debugger-row.is-header {
  color: #28415f;
  background: #eef7fb;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.prompt-xray-debugger-row > * {
  min-width: 0;
  padding: 9px 10px;
  border-left: 1px solid #dbe2ea;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.prompt-xray-debugger-row > *:first-child {
  border-left: 0;
}

.prompt-xray-debugger-row strong {
  color: var(--ink);
}

.prompt-xray-debugger-row code {
  display: block;
  color: #152033;
  font-size: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.prompt-xray-detail,
.context-cache-detail {
  display: grid;
  min-width: 0;
  gap: 12px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.prompt-xray-detail > summary,
.context-cache-detail > summary,
.builder-path-card > summary,
.builder-question-group > summary {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  cursor: pointer;
  list-style: none;
}

.prompt-xray-detail > summary::-webkit-details-marker,
.context-cache-detail > summary::-webkit-details-marker,
.builder-path-card > summary::-webkit-details-marker,
.builder-question-group > summary::-webkit-details-marker {
  display: none;
}

.prompt-xray-detail > summary::after,
.context-cache-detail > summary::after,
.builder-path-card > summary::after,
.builder-question-group > summary::after {
  flex: 0 0 auto;
  content: "+";
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #c8d2de;
  border-radius: 50%;
  color: #28415f;
  background: #f8fafc;
  font-size: 15px;
  font-weight: 850;
}

.prompt-xray-detail[open] > summary::after,
.context-cache-detail[open] > summary::after,
.builder-path-card[open] > summary::after,
.builder-question-group[open] > summary::after {
  content: "-";
}

.prompt-xray-detail > summary strong,
.context-cache-detail > summary strong,
.builder-path-card > summary strong,
.builder-question-group > summary h4 {
  color: var(--ink);
  line-height: 1.25;
}

.prompt-xray-detail > summary strong,
.context-cache-detail > summary strong,
.builder-path-card > summary strong {
  display: block;
  font-size: 16px;
}

.prompt-xray-detail > summary > span,
.context-cache-detail > summary > span,
.builder-path-card > summary > span,
.builder-question-group > summary > strong {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid #c8d2de;
  border-radius: 999px;
  color: #28415f;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
}

.prompt-xray-detail > div,
.context-cache-detail > div {
  padding: 0 14px 14px;
}

.prompt-xray-snapshot-board {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.prompt-xray-snapshot-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 10px;
}

.prompt-xray-snapshot-card {
  display: grid;
  min-width: 0;
  gap: 9px;
  align-content: start;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.prompt-xray-snapshot-card:nth-child(2n) {
  background: #f8fafc;
}

.prompt-xray-snapshot-card:nth-child(3n) {
  background: #fffaf0;
}

.prompt-xray-snapshot-card header {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.prompt-xray-snapshot-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.prompt-xray-snapshot-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.prompt-xray-snapshot-card .pseudo-code {
  min-width: 0;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.prompt-xray-branch-board {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.prompt-xray-branch-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 10px;
}

.prompt-xray-branch-card {
  display: grid;
  min-width: 0;
  gap: 8px;
  align-content: start;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.prompt-xray-branch-card:nth-child(2n) {
  background: #f6fbf8;
}

.prompt-xray-branch-card:nth-child(3n) {
  background: #fffaf0;
}

.prompt-xray-branch-card header,
.prompt-xray-branch-card > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.prompt-xray-branch-card span {
  color: #28415f;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.prompt-xray-branch-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.prompt-xray-branch-card p,
.prompt-xray-branch-card code {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}

.prompt-xray-branch-card code {
  color: #152033;
}

.prompt-xray-math-strip {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 10px;
}

.prompt-xray-math-strip > div {
  background: #fffaf0;
}

.prompt-xray-math-strip code {
  display: block;
  min-width: 0;
  color: #152033;
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .prompt-xray-scenario,
  .prompt-xray-debugger-row {
    grid-template-columns: 1fr;
  }

  .prompt-xray-debugger-row > * {
    border-left: 0;
    border-top: 1px solid #dbe2ea;
  }

  .prompt-xray-debugger-row > *:first-child {
    border-top: 0;
  }
}

@media (max-width: 700px) {
  .prompt-xray-flow,
  .prompt-xray-simulator,
  .prompt-xray-grid,
  .prompt-xray-rule-grid,
  .prompt-xray-code-grid,
  .prompt-xray-snapshot-grid,
  .prompt-xray-branch-grid,
  .prompt-xray-math-strip {
    grid-template-columns: 1fr;
  }

  .prompt-xray-debugger-header {
    display: grid;
  }

  .prompt-xray-detail > summary,
  .context-cache-detail > summary,
  .builder-path-card > summary,
  .builder-question-group > summary {
    align-items: start;
  }
}

.tool-blueprint {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.tool-loop-diagram {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.tool-loop-node {
  position: relative;
  min-width: 0;
  min-height: 150px;
  padding: 14px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.tool-loop-node:nth-child(2n) {
  background: #f1fbf4;
}

.tool-loop-node:not(:last-child)::after {
  content: ">";
  position: absolute;
  top: 50%;
  right: -10px;
  z-index: 1;
  display: grid;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: #ffffff;
  font-size: 11px;
  font-weight: 850;
}

.tool-loop-node span {
  display: grid;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #2f6f9f;
  font-size: 12px;
  font-weight: 850;
}

.tool-loop-node h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.tool-loop-node p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.blueprint-lane {
  min-width: 0;
  min-height: 190px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.blueprint-lane:nth-child(2n) {
  background: #f7fafc;
}

.blueprint-lane h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.blueprint-lane ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

.blueprint-lane li {
  overflow-wrap: anywhere;
}

.turn-trace-scenario {
  border-left-color: #2f6f9f;
  background: #f8fafc;
}

.turn-fixture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.turn-fixture-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.turn-fixture-item:nth-child(2n) {
  background: #f7fafc;
}

.turn-fixture-item span,
.turn-phase-grid span,
.turn-checks span,
.turn-calculation-card span {
  display: block;
  color: #28415f;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.turn-fixture-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.turn-contract-board,
.turn-state-board,
.turn-sequence-board,
.turn-algorithm-stack {
  display: grid;
  min-width: 0;
  gap: 12px;
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.turn-algorithm-stack {
  margin: 16px 0 0;
  background: #f8fafc;
}

.turn-contract-board,
.turn-state-board {
  margin-bottom: 16px;
}

.turn-contract-board {
  background: #f6fbf8;
}

.turn-state-board {
  background: #fffaf0;
}

.turn-sequence-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.turn-sequence-header h3 {
  margin: 0;
  font-size: 20px;
}

.turn-sequence-header > span {
  width: fit-content;
  max-width: 190px;
  padding: 6px 10px;
  border: 1px solid #d7dde6;
  border-radius: 999px;
  color: #28415f;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.turn-sequence-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.turn-contract-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(430px, 100%), 1fr));
  gap: 12px;
}

.turn-contract-card {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.turn-contract-card:nth-child(2n) {
  background: #f8fafc;
}

.turn-contract-card header {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.turn-contract-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.turn-contract-card header .token {
  width: fit-content;
  max-width: 230px;
  overflow-wrap: anywhere;
}

.contract-shape {
  min-width: 0;
  margin: 0;
  padding: 11px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
  overflow-x: auto;
}

.contract-shape code {
  color: #152033;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.contract-rule-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 8px;
}

.contract-rule-grid > div {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 9px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.contract-rule-grid span,
.turn-state-fields span {
  color: #28415f;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contract-rule-grid p,
.turn-state-fields p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.turn-state-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.turn-state-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(150px, 0.45fr) minmax(0, 1.55fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.turn-state-row:nth-child(2n) {
  background: #f8fafc;
}

.turn-state-route {
  display: grid;
  min-width: 0;
  gap: 8px;
  align-content: start;
}

.turn-state-route span {
  min-width: 0;
  padding: 8px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  color: #152033;
  background: #ffffff;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.turn-state-route strong {
  color: #657286;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.turn-state-fields {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 8px;
}

.turn-state-fields > div {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 9px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.turn-state-row .evidence-drawer {
  grid-column: 1 / -1;
}

.turn-sequence-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(150px, 0.52fr) minmax(210px, 0.9fr) minmax(0, 1.45fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.turn-sequence-row:nth-child(2n) {
  background: #f6fbf8;
}

.turn-sequence-route {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 8px;
  align-content: start;
  padding-right: 12px;
}

.turn-sequence-route::after {
  content: ">";
  position: absolute;
  top: 31px;
  right: 0;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid #cbd6e2;
  border-radius: 50%;
  color: var(--muted);
  background: #ffffff;
  font-size: 11px;
  font-weight: 850;
}

.turn-sequence-route span {
  min-width: 0;
  padding: 8px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  color: #152033;
  background: #ffffff;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.turn-sequence-route strong {
  color: #657286;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.turn-sequence-payload,
.turn-sequence-logic {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.turn-sequence-payload h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.turn-sequence-payload code,
.turn-algorithm-signature code {
  display: block;
  min-width: 0;
  padding: 9px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  color: #152033;
  background: #ffffff;
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
}

.turn-sequence-logic {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.turn-sequence-logic > div {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 9px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.turn-sequence-logic span,
.turn-algorithm-signature span,
.turn-algorithm-grid span {
  color: #28415f;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.turn-sequence-logic p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.turn-sequence-row .evidence-drawer {
  grid-column: 1 / -1;
}

.turn-trace-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.turn-trace-flow li {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 126px;
  gap: 7px;
  align-content: start;
  padding: 13px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.turn-trace-flow li:nth-child(3n + 1) {
  background: #f8fafc;
}

.turn-trace-flow li:nth-child(3n + 2) {
  background: #f1fbf4;
}

.turn-trace-flow li:nth-child(3n) {
  background: #fffaf0;
}

.turn-trace-flow li:not(:last-child)::after {
  content: ">";
  position: absolute;
  top: 50%;
  right: -10px;
  z-index: 1;
  display: grid;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: #ffffff;
  font-size: 11px;
  font-weight: 850;
}

.turn-trace-flow li:nth-child(4n)::after {
  display: none;
}

.turn-trace-flow span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #2f6f9f;
  font-size: 12px;
  font-weight: 850;
}

.turn-trace-flow strong,
.turn-trace-flow small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.turn-trace-flow strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.turn-trace-flow small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.turn-phase-stack {
  display: grid;
  gap: 14px;
}

.turn-phase-card {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 18px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.turn-phase-card:nth-child(2n) {
  background: #f8fafc;
}

.turn-phase-card header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.turn-phase-card h3 {
  margin: 0;
  font-size: 21px;
}

.turn-phase-card header .token {
  width: fit-content;
  max-width: 220px;
  overflow-wrap: anywhere;
}

.turn-phase-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.turn-phase-grid > div,
.turn-worked-value,
.turn-checks {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 11px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.turn-phase-grid p,
.turn-worked-value p,
.turn-calculation-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.turn-worked-value {
  border-left: 3px solid #2f6f9f;
  background: #f8fafc;
}

.turn-worked-value strong {
  color: #28415f;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.turn-checks ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.turn-checks li {
  overflow-wrap: anywhere;
}

.turn-calculation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 12px;
  margin-top: 16px;
}

.turn-calculation-card {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f6fbf8;
}

.turn-calculation-card:nth-child(2n) {
  background: #fffaf0;
}

.turn-calculation-card h3 {
  margin: 0;
  font-size: 17px;
}

.turn-calculation-card code {
  display: block;
  min-width: 0;
  padding: 10px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
  color: #152033;
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
}

.turn-algorithm-card {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.turn-algorithm-card:nth-child(2n) {
  background: #fffaf0;
}

.turn-algorithm-card header {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.turn-algorithm-card h3 {
  margin: 0;
  font-size: 20px;
}

.turn-algorithm-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.turn-algorithm-signature {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.turn-algorithm-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.turn-algorithm-grid > div {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 10px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.turn-algorithm-grid ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.turn-algorithm-grid li {
  overflow-wrap: anywhere;
}

.reader-spine-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.reader-spine-card {
  display: grid;
  min-width: 0;
  gap: 12px;
  align-content: start;
  padding: 14px;
  border: 1px solid #d7dde6;
  border-left: 4px solid #2f6f9f;
  border-radius: var(--radius);
  background: #ffffff;
}

.reader-spine-card header {
  display: grid;
  min-width: 0;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.reader-spine-index {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #bfd0de;
  border-radius: 999px;
  color: #28415f;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 850;
}

.reader-spine-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.reader-spine-card p,
.reader-spine-fields p,
.reader-spine-rule p {
  margin: 0;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.reader-spine-question {
  color: var(--ink) !important;
  font-weight: 760;
}

.reader-spine-fields {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.reader-spine-fields > div,
.reader-spine-rule {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 10px;
  border: 1px solid #e0e7ef;
  border-radius: var(--radius);
  background: #f8fafc;
}

.reader-spine-fields span,
.reader-spine-rule span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.reader-spine-fields strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.reader-spine-actions {
  display: flex;
  min-width: 0;
}

.context-cache-algorithm-section {
  display: grid;
  gap: 16px;
}

.context-cache-scenario-grid,
.context-cache-tracks,
.context-cache-reducer-grid,
.context-cache-rule-grid,
.context-cache-formula-strip {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.context-cache-scenario-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.context-cache-scenario-grid > div,
.context-cache-formula-strip > div {
  display: grid;
  min-width: 0;
  gap: 7px;
  padding: 13px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.context-cache-scenario-grid > div:nth-child(2),
.context-cache-formula-strip > div:nth-child(2n) {
  background: #fffaf0;
}

.context-cache-focused-setup {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 10px;
  align-items: stretch;
  padding: 10px 12px;
  border: 1px solid #cfd8e3;
  border-left: 4px solid #2f6f9f;
  border-radius: var(--radius);
  background: #f8fafc;
}

.context-cache-focused-setup > div:first-child {
  display: grid;
  min-width: 0;
  gap: 5px;
  align-content: center;
}

.context-cache-focused-setup strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.context-cache-focused-setup p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.context-cache-focused-fixtures {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.context-cache-focused-fixtures > div {
  display: grid;
  min-width: 0;
  gap: 5px;
  align-content: start;
  padding: 8px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-focused-fixtures > div:nth-child(2) {
  background: #fffaf0;
}

.context-cache-focused-fixtures span {
  color: #28415f;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-focused-fixtures small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .prompt-fast-routes-copy {
    display: none;
  }

  .prompt-context-question-route {
    gap: 7px;
    padding: 10px;
  }

  .prompt-context-question-route-header > div > strong {
    font-size: 17px;
    line-height: 1.2;
  }

  .prompt-context-question-route-header p {
    display: none;
  }

  .prompt-context-question-contract > summary {
    padding: 7px 8px;
  }

  .prompt-context-question-contract > summary strong {
    font-size: 11px;
  }

  .prompt-context-question-contract-grid {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 6px;
  }

  .prompt-context-question-contract-grid > div {
    gap: 2px;
    padding: 6px;
  }

  .prompt-context-question-contract-grid strong {
    font-size: 11px;
    line-height: 1.18;
  }

  .prompt-context-question-contract-grid p,
  .prompt-context-question-signals p {
    display: none;
  }

  .prompt-context-question-signals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .prompt-context-question-signals > div {
    gap: 3px;
    padding: 6px;
  }

  .prompt-context-question-signals span {
    font-size: 9px;
    line-height: 1.15;
  }

  .prompt-context-question-signals code {
    font-size: 9px;
    line-height: 1.12;
  }

  .prompt-context-question-signals p {
    display: none;
  }

  .context-cache-focused-setup,
  .context-cache-focused-fixtures {
    grid-template-columns: 1fr;
  }

  .context-cache-focused-setup {
    padding: 9px;
  }
}

.context-cache-answer-map {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.context-cache-answer-map article {
  display: grid;
  min-width: 0;
  gap: 7px;
  align-content: start;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-top: 4px solid #2f6f9f;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-answer-map article:nth-child(2n) {
  border-top-color: #2b8a63;
  background: #f6fbf8;
}

.context-cache-answer-map article:nth-child(3n) {
  border-top-color: #9a6b12;
  background: #fffaf0;
}

.context-cache-answer-map strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.context-cache-answer-map p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.context-cache-circuit-diagram {
  display: grid;
  min-width: 0;
  gap: 9px;
  padding: 10px;
  border: 1px solid #cbd9e4;
  border-left: 4px solid #2f6f9f;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-circuit-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-circuit-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.22;
}

.context-cache-circuit-header p {
  max-width: 760px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.context-cache-circuit-flow {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.context-cache-circuit-flow li {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 4px;
  align-content: start;
  padding: 9px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #fbfdff;
}

.context-cache-circuit-flow li:nth-child(2n) {
  background: #f6fbf8;
}

.context-cache-circuit-flow li:nth-child(3n) {
  background: #fffaf0;
}

.context-cache-circuit-flow li:not(:last-child)::after {
  content: "->";
  position: absolute;
  top: 8px;
  right: 6px;
  z-index: 1;
  width: 16px;
  height: 16px;
  border: 1px solid #cbd9e4;
  border-radius: 999px;
  color: #315f86;
  background: #ffffff;
  font-size: 10px;
  font-weight: 850;
  line-height: 14px;
  text-align: center;
}

.context-cache-circuit-flow span,
.context-cache-circuit-rules span {
  color: #315f86;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-circuit-flow strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.context-cache-circuit-flow code,
.context-cache-circuit-flow small,
.context-cache-circuit-flow p {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.context-cache-circuit-flow code {
  color: #315f86;
  font-size: 10px;
  line-height: 1.22;
  white-space: normal;
}

.context-cache-circuit-flow small {
  color: #152033;
  font-size: 10px;
  line-height: 1.24;
}

.context-cache-circuit-flow p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.context-cache-circuit-rules {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.context-cache-circuit-rules > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 8px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.context-cache-circuit-rules p {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.context-cache-reducer-transaction {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 10px;
  border: 1px solid #d9d2c2;
  border-left: 4px solid #8a5a11;
  border-radius: var(--radius);
  background: #fffaf0;
}

.context-cache-reducer-transaction-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-reducer-transaction-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.context-cache-reducer-transaction-header p {
  max-width: 960px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
}

.context-cache-reducer-transaction-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.context-cache-reducer-transaction-grid article {
  display: grid;
  min-width: 0;
  grid-template-columns: 26px minmax(128px, 0.28fr) minmax(0, 0.72fr);
  gap: 4px 6px;
  align-items: start;
  padding: 6px;
  border: 1px solid #ded5c3;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-reducer-transaction-grid article:nth-child(2n) {
  background: #f7fbfd;
}

.context-cache-reducer-transaction-grid article:nth-child(3n) {
  background: #f6fbf8;
}

.context-cache-reducer-transaction-grid article > span {
  display: grid;
  grid-row: 1 / 4;
  width: 23px;
  height: 21px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #8a5a11;
  font-size: 10px;
  font-weight: 850;
}

.context-cache-reducer-transaction-grid strong {
  color: var(--ink);
  font-size: 11.5px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.context-cache-reducer-transaction-grid p {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.18;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.context-cache-reducer-transaction-grid article > div {
  display: grid;
  min-width: 0;
  grid-column: 2 / -1;
  grid-template-columns: minmax(72px, 0.2fr) minmax(0, 0.8fr);
  gap: 3px;
  align-items: start;
}

.context-cache-reducer-transaction-grid small,
.context-cache-reducer-formulas span {
  color: #8a5a11;
  font-size: 8.5px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-reducer-transaction-grid code,
.context-cache-reducer-formulas code {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  color: #152033;
  font-size: 9px;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.context-cache-reducer-formulas {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.context-cache-reducer-formulas div {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 6px;
  border: 1px solid #ded5c3;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-context-resolver {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 11px;
  border: 1px solid #cbd8e4;
  border-left: 4px solid #315f86;
  border-radius: var(--radius);
  background: #f7fbfd;
}

.context-cache-context-resolver-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-context-resolver-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.context-cache-context-resolver-header p {
  max-width: 960px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
}

.context-cache-context-resolver-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.context-cache-context-resolver-grid article {
  display: grid;
  min-width: 0;
  grid-template-columns: 24px minmax(116px, 0.26fr) minmax(150px, 0.32fr) minmax(0, 0.42fr);
  gap: 5px 7px;
  align-items: start;
  padding: 8px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-context-resolver-grid article:nth-child(2n),
.context-cache-context-ownership article:nth-child(2n) {
  background: #f6fbf8;
}

.context-cache-context-resolver-grid article:nth-child(3n),
.context-cache-context-ownership article:nth-child(3n) {
  background: #fffaf0;
}

.context-cache-context-resolver-grid article > span {
  display: grid;
  grid-row: 1 / 3;
  width: 22px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #315f86;
  font-size: 10px;
  font-weight: 850;
}

.context-cache-context-resolver-grid strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.context-cache-context-resolver-grid > article > code {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  color: #315f86;
  font-size: 10px;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.context-cache-context-resolver-grid p {
  display: -webkit-box;
  grid-column: 2 / -1;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.28;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.context-cache-context-resolver-grid article > div {
  display: grid;
  min-width: 0;
  grid-column: 2 / -1;
  grid-template-columns: minmax(54px, 0.16fr) minmax(0, 0.84fr);
  gap: 3px;
  align-items: start;
}

.context-cache-context-resolver-grid small,
.context-cache-context-ownership span {
  color: #315f86;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-context-resolver-grid div code,
.context-cache-context-ownership code {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  color: #152033;
  font-size: 9.5px;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.context-cache-context-ownership {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.context-cache-context-ownership article {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 7px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-context-ownership p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.context-cache-state-register {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 12px;
  border: 1px solid #cbd8e4;
  border-left: 4px solid #2b8a63;
  border-radius: var(--radius);
  background: #f8fbfd;
}

.context-cache-state-register-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-state-register-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.context-cache-state-register-header p {
  max-width: 930px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
}

.context-cache-state-register-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: 1fr;
  gap: 5px;
}

.context-cache-state-register-grid article {
  display: grid;
  min-width: 0;
  grid-template-columns: 26px minmax(116px, 0.22fr) minmax(158px, 0.28fr) minmax(0, 0.5fr);
  gap: 6px 8px;
  align-items: start;
  align-content: start;
  padding: 7px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-state-register-grid article:nth-child(2n),
.context-cache-state-boundary-diff article:nth-child(2n) {
  background: #f6fbf8;
}

.context-cache-state-register-grid article:nth-child(3n),
.context-cache-state-boundary-diff article:nth-child(3n) {
  background: #fffaf0;
}

.context-cache-state-register-grid article > span {
  display: grid;
  width: 22px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #2b8a63;
  font-size: 10px;
  font-weight: 850;
}

.context-cache-state-register-grid strong {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.context-cache-state-register-grid code,
.context-cache-state-boundary-diff code,
.context-cache-state-tests code {
  min-width: 0;
  color: #152033;
  font-size: 10px;
  line-height: 1.22;
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-cache-state-register-call {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.context-cache-state-register-call code,
.context-cache-state-register-call small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.context-cache-state-register-call code {
  -webkit-line-clamp: 2;
}

.context-cache-state-register-call small {
  min-width: 0;
  color: #5e6e80;
  font-size: 9px;
  line-height: 1.16;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 1;
}

.context-cache-state-register-call small:first-of-type {
  color: #2b6748;
  font-weight: 760;
}

.context-cache-state-register-grid dl {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.context-cache-state-register-grid dl div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.context-cache-state-register-grid dt,
.context-cache-state-boundary-diff span,
.context-cache-state-tests span {
  color: #2b6748;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-state-register-grid dd {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.24;
  overflow-wrap: anywhere;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.context-cache-state-register-bottom {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 0.46fr);
  gap: 8px;
  align-items: start;
}

.context-cache-state-boundary-diff {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.context-cache-state-boundary-diff article,
.context-cache-state-tests {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 8px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-state-tests {
  overflow: hidden;
}

.context-cache-state-tests > summary {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
}

.context-cache-state-tests > summary::-webkit-details-marker {
  display: none;
}

.context-cache-state-tests > summary strong {
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.context-cache-state-tests > summary span {
  flex: 0 0 auto;
}

.context-cache-state-tests ul {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
}

.context-cache-state-tests li {
  min-width: 0;
  padding: 5px;
  border: 1px solid #e0e7ef;
  border-radius: calc(var(--radius) - 2px);
  background: #f8fafc;
}

.context-cache-mechanics-map {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 12px;
  border: 1px solid #cbd8e4;
  border-left: 4px solid #7561b6;
  border-radius: var(--radius);
  background: #fbfbff;
}

.context-cache-mechanics-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-mechanics-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.context-cache-mechanics-header p {
  max-width: 980px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
}

.context-cache-mechanics-lanes {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.context-cache-mechanics-lanes article {
  display: grid;
  min-width: 0;
  gap: 8px;
  align-content: start;
  padding: 10px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-mechanics-lanes article:nth-child(2) {
  background: #f6fbf8;
}

.context-cache-mechanics-lanes article:nth-child(3) {
  background: #fffaf0;
}

.context-cache-mechanics-lanes header {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.context-cache-mechanics-lanes strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.context-cache-mechanics-lanes code {
  color: #4d4382;
  font-size: 10px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-cache-mechanics-lanes ol {
  display: grid;
  min-width: 0;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.context-cache-mechanics-lanes li {
  display: grid;
  min-width: 0;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  padding: 7px;
  border: 1px solid #e0e7ef;
  border-radius: calc(var(--radius) - 2px);
  background: rgba(255, 255, 255, 0.72);
}

.context-cache-mechanics-lanes li span,
.context-cache-mechanics-coupling span {
  color: #5b4a92;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-mechanics-lanes li p,
.context-cache-mechanics-coupling p {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.context-cache-mechanics-coupling {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.context-cache-mechanics-coupling > div {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 8px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-logic-trace {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 12px;
  border: 1px solid #cbd8e4;
  border-left: 4px solid #2b8a63;
  border-radius: var(--radius);
  background: #f8fbfa;
}

.context-cache-logic-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-logic-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.context-cache-logic-header p {
  max-width: 980px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
}

.context-cache-logic-fixture {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.context-cache-logic-fixture > div,
.context-cache-logic-branches > div {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 8px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-logic-flow {
  display: grid;
  min-width: 0;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.context-cache-logic-flow li {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 28px minmax(190px, 0.42fr) repeat(3, minmax(0, 1fr));
  gap: 7px;
  align-items: stretch;
  padding: 7px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-logic-flow li:nth-child(2n) {
  background: #f6fbf8;
}

.context-cache-logic-flow li:nth-child(3n) {
  background: #fffaf0;
}

.context-cache-logic-flow li > span {
  display: grid;
  width: 24px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #2b8a63;
  font-size: 10px;
  font-weight: 850;
}

.context-cache-logic-flow strong {
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.context-cache-logic-flow div {
  display: grid;
  min-width: 0;
  gap: 4px;
  align-content: start;
}

.context-cache-logic-fixture span,
.context-cache-logic-flow small,
.context-cache-logic-branches span {
  color: #2b6f53;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-logic-fixture code,
.context-cache-logic-flow code {
  min-width: 0;
  color: #152033;
  font-size: 10px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-cache-logic-flow p,
.context-cache-logic-branches p {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.context-cache-logic-branches {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.context-cache-execution-ledger {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-left: 4px solid #8a6b22;
  border-radius: var(--radius);
  background: #fffdf8;
}

.context-cache-execution-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-execution-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.context-cache-execution-header p {
  max-width: 980px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
}

.context-cache-execution-formulas {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.context-cache-execution-formulas > div {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 8px;
  border: 1px solid #e2d8be;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-execution-formulas span,
.context-cache-execution-row.is-header span,
.context-cache-execution-row > span:first-child {
  color: #8a6b22;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-execution-formulas code,
.context-cache-execution-row code {
  min-width: 0;
  color: #152033;
  font-size: 10px;
  line-height: 1.24;
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-cache-execution-table {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.context-cache-execution-row {
  display: grid;
  min-width: 0;
  grid-template-columns: 34px minmax(118px, 0.48fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 0.78fr);
  gap: 7px;
  align-items: start;
  padding: 7px;
  border: 1px solid #e2d8be;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-execution-row:nth-child(2n + 1):not(.is-header) {
  background: #fbfdff;
}

.context-cache-execution-row.is-header {
  padding-block: 6px;
  background: #f7efe0;
}

.context-cache-execution-row > span:first-child {
  display: grid;
  width: 26px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #8a6b22;
}

.context-cache-execution-row.is-header > span:first-child {
  display: block;
  width: auto;
  height: auto;
  color: #8a6b22;
  background: transparent;
}

.context-cache-execution-row p,
.context-cache-execution-row small {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.context-cache-execution-row > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.context-cache-execution-row small {
  color: #6e5c34;
}

.context-cache-watch-turn {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 12px;
  border: 1px solid #cbd8e4;
  border-left: 4px solid #2f6f9f;
  border-radius: var(--radius);
  background: #fbfdff;
}

.context-cache-watch-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-watch-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.context-cache-watch-header p {
  max-width: 980px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
}

.context-cache-watch-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.context-cache-watch-stage-list {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.context-cache-watch-stage-list label {
  display: grid;
  min-width: 0;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  padding: 7px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
  cursor: pointer;
}

.context-cache-watch-stage-list label span {
  display: grid;
  width: 22px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #2f6f9f;
  font-size: 10px;
  font-weight: 850;
}

.context-cache-watch-stage-list label strong {
  min-width: 0;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.context-cache-watch-panels {
  min-width: 0;
}

.context-cache-watch-panel {
  display: none;
  min-width: 0;
  gap: 10px;
  padding: 11px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-watch-panel header {
  display: grid;
  min-width: 0;
  grid-template-columns: 52px minmax(220px, 0.48fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.context-cache-watch-panel header span,
.context-cache-watch-grid span {
  color: #315f86;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-watch-panel h4 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.context-cache-watch-panel code,
.context-cache-watch-grid code {
  min-width: 0;
  color: #152033;
  font-size: 11px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-cache-watch-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.context-cache-watch-grid > div {
  display: grid;
  min-width: 0;
  gap: 5px;
  align-content: start;
  padding: 8px;
  border: 1px solid #e0e7ef;
  border-radius: var(--radius);
  background: #f8fafc;
}

.context-cache-watch-grid > div:nth-child(2) {
  background: #f6fbf8;
}

.context-cache-watch-grid > div:nth-child(4) {
  background: #fffaf0;
}

.context-cache-watch-grid p {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

#context-cache-watch-stage-01:checked ~ .context-cache-watch-stage-list label[for="context-cache-watch-stage-01"],
#context-cache-watch-stage-02:checked ~ .context-cache-watch-stage-list label[for="context-cache-watch-stage-02"],
#context-cache-watch-stage-03:checked ~ .context-cache-watch-stage-list label[for="context-cache-watch-stage-03"],
#context-cache-watch-stage-04:checked ~ .context-cache-watch-stage-list label[for="context-cache-watch-stage-04"],
#context-cache-watch-stage-05:checked ~ .context-cache-watch-stage-list label[for="context-cache-watch-stage-05"],
#context-cache-watch-stage-06:checked ~ .context-cache-watch-stage-list label[for="context-cache-watch-stage-06"],
#context-cache-watch-stage-07:checked ~ .context-cache-watch-stage-list label[for="context-cache-watch-stage-07"] {
  border-color: #8fb6d3;
  background: #eef6fc;
  box-shadow: inset 0 0 0 1px #8fb6d3;
}

#context-cache-watch-stage-01:checked ~ .context-cache-watch-panels [data-stage="01"],
#context-cache-watch-stage-02:checked ~ .context-cache-watch-panels [data-stage="02"],
#context-cache-watch-stage-03:checked ~ .context-cache-watch-panels [data-stage="03"],
#context-cache-watch-stage-04:checked ~ .context-cache-watch-panels [data-stage="04"],
#context-cache-watch-stage-05:checked ~ .context-cache-watch-panels [data-stage="05"],
#context-cache-watch-stage-06:checked ~ .context-cache-watch-panels [data-stage="06"],
#context-cache-watch-stage-07:checked ~ .context-cache-watch-panels [data-stage="07"] {
  display: grid;
}

.context-cache-rebuild-recipe {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 12px;
  border: 1px solid #cbd8e4;
  border-left: 4px solid #2b8a63;
  border-radius: var(--radius);
  background: #f8fbfd;
}

.context-cache-recipe-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-recipe-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.context-cache-recipe-header p {
  max-width: 980px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
}

.context-cache-recipe-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 8px;
}

.context-cache-recipe-state-rail {
  display: grid;
  min-width: 0;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.context-cache-recipe-state-rail li {
  display: grid;
  min-width: 0;
  grid-template-columns: 26px minmax(124px, 0.34fr) minmax(150px, 0.46fr) minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  padding: 7px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-recipe-state-rail li:nth-child(2n),
.context-cache-recipe-rules article:nth-child(2n) {
  background: #f6fbf8;
}

.context-cache-recipe-state-rail li:nth-child(3n),
.context-cache-recipe-rules article:nth-child(3n) {
  background: #fffaf0;
}

.context-cache-recipe-state-rail li > span {
  display: grid;
  width: 24px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #2f6f9f;
  font-size: 10px;
  font-weight: 850;
}

.context-cache-recipe-state-rail strong,
.context-cache-recipe-rules span,
.context-cache-recipe-code-grid > div > span {
  color: #28415f;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-recipe-state-rail code,
.context-cache-recipe-rules code,
.context-cache-recipe-code-grid code {
  min-width: 0;
  color: #152033;
  font-size: 10px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-cache-recipe-state-rail p,
.context-cache-recipe-rules p {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.context-cache-recipe-rules {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  align-content: start;
}

.context-cache-recipe-rules article {
  display: grid;
  min-width: 0;
  gap: 5px;
  align-content: start;
  padding: 7px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-recipe-code-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 8px;
}

.context-cache-recipe-code-grid > div {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 9px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-recipe-code-grid .pseudo-code {
  max-height: 292px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
}

.context-cache-recipe-code-grid ul {
  display: grid;
  min-width: 0;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.context-cache-recipe-code-grid li {
  min-width: 0;
  padding: 7px;
  border: 1px solid #e0e7ef;
  border-radius: calc(var(--radius) - 2px);
  background: #f8fafc;
}

@media (max-width: 1100px) {
  .context-cache-logic-fixture,
  .context-cache-logic-branches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .context-cache-logic-flow li {
    grid-template-columns: 28px minmax(170px, 0.42fr) repeat(2, minmax(0, 1fr));
  }

  .context-cache-logic-flow li > div:last-child {
    grid-column: 3 / -1;
  }
}

@media (max-width: 760px) {
  .context-cache-logic-header {
    display: grid;
  }

  .context-cache-logic-fixture,
  .context-cache-logic-branches,
  .context-cache-logic-flow li {
    grid-template-columns: 1fr;
  }

  .context-cache-logic-flow li > span {
    width: 26px;
  }

  .context-cache-logic-flow li > div:last-child {
    grid-column: auto;
  }
}

.context-cache-transaction {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 12px;
  border: 1px solid #cbd8e4;
  border-left: 4px solid #2f6f9f;
  border-radius: var(--radius);
  background: #fbfdff;
}

.context-cache-transaction-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-transaction-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.context-cache-transaction-header p {
  max-width: 900px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
}

.context-cache-transaction-fixture {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.context-cache-transaction-fixture > div {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 6px;
  border: 1px solid #d7dde6;
  border-radius: calc(var(--radius) - 2px);
  background: #ffffff;
}

.context-cache-transaction-fixture span,
.context-cache-transaction-steps li > span,
.context-cache-transaction-ledger span,
.context-cache-transaction-boundary span,
.context-cache-transaction-rules span {
  color: #315f86;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.context-cache-transaction-fixture code,
.context-cache-transaction-steps code,
.context-cache-transaction-steps small,
.context-cache-transaction-steps em,
.context-cache-transaction-ledger code,
.context-cache-transaction-boundary code,
.context-cache-transaction-rules code {
  min-width: 0;
  color: #152033;
  font-size: 10px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-cache-transaction-board {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 8px;
}

.context-cache-transaction-steps {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.context-cache-transaction-steps li {
  display: grid;
  min-width: 0;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 7px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-transaction-steps li > span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #2f6f9f;
}

.context-cache-transaction-steps strong,
.context-cache-transaction-steps p,
.context-cache-transaction-steps em {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.context-cache-transaction-steps strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
}

.context-cache-transaction-steps p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.32;
}

.context-cache-transaction-steps small {
  display: -webkit-box;
  overflow: hidden;
  color: #5b4a92;
  font-weight: 740;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.context-cache-transaction-steps em {
  color: #2b6748;
  font-style: normal;
  font-weight: 780;
}

.context-cache-transaction-ledger {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  align-content: start;
}

.context-cache-transaction-ledger article,
.context-cache-transaction-rules > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 7px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-transaction-ledger article:nth-child(2n),
.context-cache-transaction-rules > div:nth-child(2n) {
  background: #f6fbf8;
}

.context-cache-transaction-ledger p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.context-cache-transaction-boundary {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.context-cache-transaction-boundary article {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 7px;
  border: 1px solid #cbd8e4;
  border-radius: var(--radius);
  background: #eef6fc;
}

.context-cache-transaction-boundary article:nth-child(2) {
  background: #f8fafc;
}

.context-cache-transaction-boundary p {
  display: none;
}

.context-cache-transaction-boundary code {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.context-cache-transaction-rules {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.context-cache-transaction-code {
  display: grid;
  min-width: 0;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
  overflow: hidden;
}

.context-cache-transaction-code > summary {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  cursor: pointer;
  list-style: none;
}

.context-cache-transaction-code > summary::-webkit-details-marker {
  display: none;
}

.context-cache-transaction-code > summary strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.context-cache-transaction-code > summary span,
.context-cache-transaction-code-grid span {
  color: #315f86;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-transaction-code > summary span {
  flex: 0 0 auto;
}

.context-cache-transaction-code:not([open]) .context-cache-transaction-code-grid {
  display: none;
}

.context-cache-transaction-code-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 8px;
  padding: 8px;
  border-top: 1px solid #d7dde6;
  background: #fbfdff;
}

.context-cache-transaction-code-grid > div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.context-cache-transaction-code-grid .pseudo-code {
  margin: 0;
  border-color: #d7dde6;
  background: #ffffff;
  font-size: 10px;
  line-height: 1.34;
}

.context-cache-first-branches {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 12px;
  border: 1px solid #ded2ba;
  border-left: 4px solid #9a6b12;
  border-radius: var(--radius);
  background: #fffaf0;
}

.context-cache-first-branches-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-first-branches-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.context-cache-first-branches-header p {
  max-width: 860px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.36;
}

.context-cache-branch-chip-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.context-cache-branch-chip-grid article {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 7px;
  border: 1px solid #ded2ba;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-branch-chip-grid article:nth-child(2n) {
  background: #f8fafc;
}

.context-cache-branch-chip-grid span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #9a6b12;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
}

.context-cache-branch-chip-grid strong {
  min-width: 0;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.context-cache-branch-chip-grid code {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  color: #5b4a92;
  font-size: 10px;
  line-height: 1.22;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.context-cache-first-branch-detail {
  display: grid;
  min-width: 0;
  border: 1px solid #ded2ba;
  border-radius: var(--radius);
  background: #ffffff;
  overflow: hidden;
}

.context-cache-first-branch-detail > summary {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  cursor: pointer;
  list-style: none;
}

.context-cache-first-branch-detail > summary::-webkit-details-marker {
  display: none;
}

.context-cache-first-branch-detail > summary strong {
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.context-cache-first-branch-detail > summary span {
  flex: 0 0 auto;
  color: #9a6b12;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-first-branch-detail:not([open]) .context-cache-first-branch-table {
  display: none;
}

.context-cache-first-branch-table {
  display: grid;
  min-width: 0;
  border-top: 1px solid #ded2ba;
}

.context-cache-first-branch-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(100px, 0.75fr) minmax(120px, 1fr) minmax(160px, 1.35fr) minmax(100px, 0.9fr) minmax(150px, 1.25fr);
  border-top: 1px solid #edf0f4;
}

.context-cache-first-branch-row:first-child {
  border-top: 0;
}

.context-cache-first-branch-row.is-header {
  background: #f8fafc;
}

.context-cache-first-branch-row > * {
  min-width: 0;
  margin: 0;
  padding: 7px;
  border-left: 1px solid #edf0f4;
  overflow-wrap: anywhere;
}

.context-cache-first-branch-row > *:first-child {
  border-left: 0;
}

.context-cache-first-branch-row span,
.context-cache-first-branch-row strong {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.25;
}

.context-cache-first-branch-row span {
  color: #315f86;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-first-branch-row p,
.context-cache-first-branch-row code {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.28;
  white-space: normal;
}

.context-cache-first-branch-row code {
  color: #152033;
}

.context-cache-dataflow {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 14px;
  border: 1px solid #cbd8e4;
  border-left: 4px solid #2b8a63;
  border-radius: var(--radius);
  background: #f6fbf8;
}

.context-cache-dataflow-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-dataflow-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.context-cache-dataflow-header p {
  max-width: 900px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
}

.context-cache-dataflow-board {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 8px;
}

.context-cache-dataflow-lane {
  display: grid;
  min-width: 0;
  gap: 8px;
  align-content: start;
  padding: 10px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-dataflow-lane:nth-child(2) {
  background: #f8fafc;
}

.context-cache-dataflow-lane:nth-child(3) {
  background: #fffaf0;
}

.context-cache-dataflow-lane header {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.context-cache-dataflow-lane header strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.context-cache-dataflow-lane header p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.context-cache-dataflow-lane ol {
  display: grid;
  min-width: 0;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.context-cache-dataflow-lane li {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 8px;
  border: 1px solid #dbe2ea;
  border-radius: calc(var(--radius) - 2px);
  background: #ffffff;
}

.context-cache-dataflow-lane li:not(:last-child)::after {
  content: "v";
  position: absolute;
  right: 8px;
  bottom: -12px;
  color: #2b8a63;
  font-size: 10px;
  font-weight: 900;
}

.context-cache-dataflow-lane span,
.context-cache-dataflow-contracts span,
.context-cache-dataflow-math span {
  color: #315f86;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.context-cache-dataflow-lane code,
.context-cache-dataflow-lane small,
.context-cache-dataflow-lane em,
.context-cache-dataflow-math code {
  min-width: 0;
  font-size: 10px;
  line-height: 1.22;
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-cache-dataflow-lane code {
  color: #152033;
  font-weight: 760;
}

.context-cache-dataflow-lane small {
  color: var(--muted);
}

.context-cache-dataflow-lane em {
  color: #2b6748;
  font-style: normal;
  font-weight: 760;
}

.context-cache-dataflow-bottom {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  gap: 8px;
}

.context-cache-dataflow-contracts,
.context-cache-dataflow-math {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.context-cache-dataflow-contracts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.context-cache-dataflow-contracts > div,
.context-cache-dataflow-math > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 8px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-dataflow-contracts p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.context-cache-dataflow-math code {
  color: #76530f;
  font-weight: 760;
}

.context-cache-dataflow-state-contracts {
  display: grid;
  min-width: 0;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
  overflow: hidden;
}

.context-cache-dataflow-state-contracts > summary {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.context-cache-dataflow-state-contracts > summary::-webkit-details-marker {
  display: none;
}

.context-cache-dataflow-state-contracts > summary strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.context-cache-dataflow-state-contracts > summary span,
.context-cache-dataflow-test-pack > span {
  flex: 0 0 auto;
  color: #315f86;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-dataflow-contract-body {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #d7dde6;
  background: #fbfdff;
}

.context-cache-dataflow-state-contracts:not([open]) > .context-cache-dataflow-contract-body {
  display: none;
}

.context-cache-dataflow-contract-table {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.context-cache-dataflow-contract-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(118px, 0.55fr) minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  padding: 7px;
  border: 1px solid #dbe2ea;
  border-radius: calc(var(--radius) - 2px);
  background: #ffffff;
}

.context-cache-dataflow-contract-row.is-header {
  padding: 5px 7px;
  border-color: #c9d8e7;
  background: #edf6fb;
}

.context-cache-dataflow-contract-row strong,
.context-cache-dataflow-contract-row span,
.context-cache-dataflow-contract-row p,
.context-cache-dataflow-contract-row code {
  min-width: 0;
  margin: 0;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-cache-dataflow-contract-row strong {
  color: #152033;
  font-size: 11px;
  font-weight: 850;
}

.context-cache-dataflow-contract-row span {
  color: #315f86;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-dataflow-contract-row p,
.context-cache-dataflow-contract-row code {
  font-size: 10px;
}

.context-cache-dataflow-contract-row p {
  color: var(--muted);
}

.context-cache-dataflow-contract-row code {
  color: #76530f;
  font-weight: 760;
}

.context-cache-dataflow-test-pack {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.context-cache-dataflow-test-pack .pseudo-code {
  margin: 0;
  border-color: #d7dde6;
  background: #ffffff;
  font-size: 11px;
  line-height: 1.35;
}

.context-cache-implementation-schematic {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 14px;
  border: 1px solid #cbd8e4;
  border-left: 4px solid #315f86;
  border-radius: var(--radius);
  background: #f7fbfd;
}

.context-cache-schematic-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-schematic-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.context-cache-schematic-header p {
  max-width: 900px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
}

.context-cache-schematic-fixture {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.context-cache-schematic-fixture > div {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 7px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-schematic-fixture > div:nth-child(2n) {
  background: #f6fbf8;
}

.context-cache-schematic-fixture span,
.context-cache-schematic-code span,
.context-cache-schematic-rules span {
  color: #315f86;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.context-cache-schematic-fixture code {
  color: #152033;
  font-size: 10px;
  line-height: 1.24;
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-cache-schematic-flow {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.context-cache-schematic-flow li {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 5px;
  align-content: start;
  padding: 8px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-schematic-flow li:nth-child(2n) {
  background: #f6fbf8;
}

.context-cache-schematic-flow li:nth-child(3n) {
  background: #fffaf0;
}

.context-cache-schematic-flow li:not(:last-child)::after {
  content: ">";
  position: absolute;
  top: 8px;
  right: 8px;
  color: #315f86;
  font-size: 11px;
  font-weight: 900;
}

.context-cache-schematic-flow strong {
  padding-right: 16px;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.context-cache-schematic-flow small,
.context-cache-schematic-flow mark,
.context-cache-schematic-flow p,
.context-cache-schematic-flow code,
.context-cache-schematic-flow em {
  min-width: 0;
  margin: 0;
  font-size: 10px;
  line-height: 1.22;
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-cache-schematic-flow small {
  color: #315f86;
  font-weight: 720;
}

.context-cache-schematic-flow mark {
  padding: 3px 4px;
  border: 1px solid #d7dde6;
  border-radius: calc(var(--radius) - 2px);
  color: #152033;
  background: #f8fafc;
  font-family: var(--mono);
}

.context-cache-schematic-flow p {
  color: var(--muted);
}

.context-cache-schematic-flow code {
  color: #2b6748;
  font-weight: 760;
}

.context-cache-schematic-flow em {
  color: #76530f;
  font-style: normal;
  font-weight: 720;
}

.context-cache-schematic-bottom {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: 8px;
  align-items: start;
}

.context-cache-schematic-code,
.context-cache-schematic-rules article {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 9px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-schematic-code {
  overflow: hidden;
}

.context-cache-schematic-code > summary {
  display: flex;
  min-width: 0;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
}

.context-cache-schematic-code > summary::-webkit-details-marker {
  display: none;
}

.context-cache-schematic-code > summary strong {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.context-cache-schematic-code:not([open]) .pseudo-code {
  display: none;
}

.context-cache-schematic-code .pseudo-code {
  min-width: 0;
  margin: 7px 0 0;
  padding: 8px;
  border-top: 1px solid #d7dde6;
  border-radius: var(--radius);
  color: #152033;
  background: #f8fafc;
  font-size: 10px;
  line-height: 1.22;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.context-cache-schematic-rules {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.context-cache-schematic-rules article:nth-child(2n) {
  background: #f6fbf8;
}

.context-cache-schematic-rules article:nth-child(3n) {
  background: #fffaf0;
}

.context-cache-schematic-rules p {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.context-cache-flight-recorder {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 14px;
  border: 1px solid #cad8e4;
  border-left: 4px solid #2b8a63;
  border-radius: var(--radius);
  background: #f6fbf8;
}

.context-cache-flight-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-flight-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.context-cache-flight-header p {
  max-width: 900px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
}

.context-cache-flight-rows {
  display: grid;
  min-width: 0;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.context-cache-flight-rows li {
  display: grid;
  min-width: 0;
  grid-template-columns: 28px minmax(150px, 0.35fr) minmax(0, 0.65fr) minmax(0, 0.9fr) minmax(160px, 0.45fr);
  gap: 7px;
  align-items: start;
  padding: 8px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-flight-rows li:nth-child(2n) {
  background: #f8fafc;
}

.context-cache-flight-rows li > span {
  display: grid;
  width: 24px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #2b8a63;
  font-size: 10px;
  font-weight: 850;
}

.context-cache-flight-rows strong {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.context-cache-flight-rows code,
.context-cache-flight-rows p,
.context-cache-flight-rows small {
  min-width: 0;
  margin: 0;
  font-size: 10px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-cache-flight-rows code {
  color: #152033;
}

.context-cache-flight-rows p {
  color: var(--muted);
}

.context-cache-flight-rows small {
  color: #2b6748;
  font-weight: 720;
}

.context-cache-flight-equations {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.context-cache-flight-equations > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 8px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-flight-equations > div:nth-child(2n) {
  background: #fffaf0;
}

.context-cache-flight-equations span {
  color: #2b6748;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-flight-equations code {
  color: #152033;
  font-size: 10px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-cache-flight-code {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.context-cache-flight-code article {
  display: grid;
  min-width: 0;
  gap: 5px;
  align-content: start;
  padding: 8px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-flight-code article:nth-child(2n) {
  background: #f8fafc;
}

.context-cache-flight-code span {
  color: #2b6748;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.context-cache-flight-code .pseudo-code {
  min-width: 0;
  margin: 0;
  padding: 7px;
  border-radius: var(--radius);
  color: #152033;
  background: #f8fafc;
  font-size: 10px;
  line-height: 1.28;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.context-cache-flight-boundary {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.context-cache-flight-boundary > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 8px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-flight-boundary > div:nth-child(2n) {
  background: #fffaf0;
}

.context-cache-flight-boundary span {
  color: #2b6748;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.context-cache-flight-boundary code {
  color: #152033;
  font-size: 10px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-cache-flight-fixture {
  display: grid;
  min-width: 0;
  border: 1px solid #d7dde6;
  border-left: 4px solid #2b8a63;
  border-radius: var(--radius);
  background: #ffffff;
  overflow: hidden;
}

.context-cache-flight-fixture > summary {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  cursor: pointer;
  list-style: none;
}

.context-cache-flight-fixture > summary::-webkit-details-marker {
  display: none;
}

.context-cache-flight-fixture > summary strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.context-cache-flight-fixture > summary span {
  flex: 0 0 auto;
  color: #2b6748;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-flight-fixture .pseudo-code {
  margin: 0;
  padding: 10px;
  border-top: 1px solid #d7dde6;
  color: #152033;
  background: #f8fafc;
  font-size: 10px;
  line-height: 1.28;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.context-cache-turn-diagram {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 15px;
  border: 1px solid #cbd8e4;
  border-left: 4px solid #315f86;
  border-radius: var(--radius);
  background: #f7fbfd;
}

.context-cache-turn-diagram-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-turn-diagram-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}

.context-cache-turn-diagram-header p {
  max-width: 920px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.context-cache-business-flow {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.context-cache-business-flow li {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 5px;
  align-content: start;
  padding: 9px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-business-flow li:nth-child(2n) {
  background: #f6fbf8;
}

.context-cache-business-flow li:not(:last-child)::after {
  content: ">";
  position: absolute;
  top: 10px;
  right: 8px;
  color: #315f86;
  font-size: 12px;
  font-weight: 900;
}

.context-cache-business-flow span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #315f86;
  font-size: 10px;
  font-weight: 850;
}

.context-cache-business-flow strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.context-cache-business-flow small,
.context-cache-business-flow p,
.context-cache-business-flow code {
  min-width: 0;
  margin: 0;
  font-size: 10px;
  line-height: 1.28;
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-cache-business-flow small {
  color: var(--muted);
}

.context-cache-business-flow p {
  color: #465568;
}

.context-cache-business-flow code {
  color: #2b6748;
  font-weight: 760;
}

.context-cache-object-rail {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.context-cache-object-rail article {
  display: grid;
  min-width: 0;
  gap: 6px;
  align-content: start;
  padding: 9px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-object-rail article:nth-child(2n) {
  background: #f6fbf8;
}

.context-cache-object-rail article:nth-child(3n) {
  background: #fffaf0;
}

.context-cache-object-rail span {
  color: #315f86;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-object-rail strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.context-cache-object-rail .pseudo-code {
  min-width: 0;
  margin: 0;
  padding: 8px;
  border-radius: var(--radius);
  color: #152033;
  background: #f8fafc;
  font-size: 10px;
  line-height: 1.28;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.context-cache-formula-rail {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.context-cache-formula-rail article {
  display: grid;
  min-width: 0;
  gap: 5px;
  align-content: start;
  padding: 9px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-formula-rail article:nth-child(2n) {
  background: #f6fbf8;
}

.context-cache-formula-rail article:nth-child(3n) {
  background: #fffaf0;
}

.context-cache-formula-rail span {
  color: #315f86;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-formula-rail code {
  color: #152033;
  font-size: 10px;
  line-height: 1.28;
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-cache-formula-rail p {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.context-cache-turn-details {
  display: grid;
  min-width: 0;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
  overflow: hidden;
}

.context-cache-turn-details > summary {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.context-cache-turn-details > summary::-webkit-details-marker {
  display: none;
}

.context-cache-turn-details > summary strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.context-cache-turn-details > summary span {
  flex: 0 0 auto;
  color: #315f86;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-turn-diagram-bottom {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-top: 1px solid #d7dde6;
}

.context-cache-turn-ledger,
.context-cache-turn-contract {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-turn-ledger h4,
.context-cache-turn-contract h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.context-cache-turn-ledger > div {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 7px;
  border: 1px solid #e0e7ef;
  border-radius: var(--radius);
  background: #f8fafc;
}

.context-cache-turn-ledger span,
.context-cache-turn-rule-grid span {
  color: #315f86;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.context-cache-turn-ledger p,
.context-cache-turn-rule-grid p {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.context-cache-turn-rule-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.context-cache-turn-rule-grid article {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 8px;
  border: 1px solid #e0e7ef;
  border-radius: var(--radius);
  background: #f8fafc;
}

.context-cache-turn-rule-grid article:nth-child(2n) {
  background: #f6fbf8;
}

.context-cache-turn-assertions {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.context-cache-turn-assertions li {
  min-width: 0;
  padding: 7px;
  border: 1px solid #e0e7ef;
  border-radius: var(--radius);
  background: #fffaf0;
}

.context-cache-turn-assertions code {
  color: #152033;
  font-size: 10px;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-cache-rebuild-workbench {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 16px;
  border: 1px solid #cad8e4;
  border-left: 4px solid #2b8a63;
  border-radius: var(--radius);
  background: #f6fbf8;
}

.context-cache-workbench-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-workbench-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}

.context-cache-workbench-header p {
  max-width: 900px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.context-cache-workbench-fixture {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.context-cache-workbench-fixture > div,
.context-cache-workbench-packet > div {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 9px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-workbench-fixture > div:nth-child(3n),
.context-cache-workbench-packet > div:nth-child(2n) {
  background: #fffaf0;
}

.context-cache-workbench-fixture span,
.context-cache-workbench-packet span {
  color: #2b6748;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-workbench-fixture code,
.context-cache-workbench-packet code {
  color: #152033;
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-cache-workbench-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 10px;
  align-items: start;
}

.context-cache-workbench-pipeline {
  display: grid;
  min-width: 0;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.context-cache-workbench-pipeline li {
  display: grid;
  min-width: 0;
  grid-template-columns: 32px minmax(120px, 0.45fr) minmax(0, 1fr) minmax(120px, 0.42fr);
  gap: 8px;
  align-items: start;
  padding: 9px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-workbench-pipeline li:nth-child(2n) {
  background: #f8fafc;
}

.context-cache-workbench-pipeline span {
  display: grid;
  width: 28px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #2b8a63;
  font-size: 10px;
  font-weight: 850;
}

.context-cache-workbench-pipeline code {
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-cache-workbench-pipeline p,
.context-cache-workbench-pipeline strong {
  min-width: 0;
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.context-cache-workbench-pipeline p {
  color: var(--muted);
}

.context-cache-workbench-pipeline strong {
  color: #2b6748;
  font-weight: 760;
}

.context-cache-workbench-packet {
  display: grid;
  min-width: 0;
  gap: 7px;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.context-cache-workbench-packet h4,
.context-cache-workbench-assertions h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.context-cache-workbench-bottom {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 10px;
  align-items: start;
}

.context-cache-workbench-code {
  display: grid;
  min-width: 0;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
  overflow: hidden;
}

.context-cache-workbench-code > summary {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.context-cache-workbench-code > summary::-webkit-details-marker {
  display: none;
}

.context-cache-workbench-code > summary strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.context-cache-workbench-code > summary span {
  flex: 0 0 auto;
  color: #2b6748;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-workbench-code .pseudo-code {
  margin: 0;
  border-top: 1px solid #d7dde6;
  border-radius: 0;
  background: #fbfffc;
  font-size: 11px;
  line-height: 1.35;
}

.context-cache-workbench-assertions {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-workbench-assertions ul {
  display: grid;
  min-width: 0;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.context-cache-workbench-assertions li {
  min-width: 0;
  padding: 7px;
  border: 1px solid #e0e7ef;
  border-radius: var(--radius);
  background: #f8fafc;
}

.context-cache-workbench-assertions code {
  color: #152033;
  font-size: 11px;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-cache-transformer {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 16px;
  border: 1px solid #cbd8e4;
  border-left: 4px solid #2f6f9f;
  border-radius: var(--radius);
  background: #f7fbfd;
}

.context-cache-transformer-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-transformer-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}

.context-cache-transformer-header p {
  max-width: 900px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.context-cache-transformer-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.context-cache-transformer-grid article {
  display: grid;
  min-width: 0;
  gap: 9px;
  align-content: start;
  padding: 10px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-transformer-grid article:nth-child(2n) {
  background: #f6fbf8;
}

.context-cache-transformer-grid header {
  display: grid;
  min-width: 0;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
}

.context-cache-transformer-grid header span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #2f6f9f;
  font-size: 11px;
  font-weight: 850;
}

.context-cache-transformer-grid header strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.context-cache-transformer-grid dl,
.context-cache-transformer-grid div {
  display: grid;
  min-width: 0;
  gap: 5px;
  margin: 0;
}

.context-cache-transformer-grid dt {
  color: #5e6e80;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-transformer-grid dd {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.context-cache-transformer-grid code,
.context-cache-transformer-diff code {
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-cache-transformer-grid code {
  color: #28415f;
  font-weight: 760;
}

.context-cache-transformer-diff {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.context-cache-transformer-diff > div {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 9px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-transformer-diff > div:nth-child(3) {
  background: #fffaf0;
}

.context-cache-transformer-diff span {
  color: #315f86;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-transformer-diff code {
  color: #28415f;
  font-size: 11px;
  line-height: 1.35;
}

.context-cache-transformer-code {
  display: grid;
  min-width: 0;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
  overflow: hidden;
}

.context-cache-transformer-code > summary {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.context-cache-transformer-code > summary::-webkit-details-marker {
  display: none;
}

.context-cache-transformer-code > summary strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.context-cache-transformer-code > summary span {
  flex: 0 0 auto;
  color: #315f86;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-transformer-code .pseudo-code {
  margin: 0;
  border-top: 1px solid #d7dde6;
  border-radius: 0;
  background: #fbfdff;
  font-size: 11px;
  line-height: 1.35;
}

.context-cache-prompt-authority {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 16px;
  border: 1px solid #cfd8d7;
  border-left: 4px solid #2f9e44;
  border-radius: var(--radius);
  background: #f7fbf8;
}

.context-cache-prompt-authority-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-prompt-authority-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}

.context-cache-prompt-authority-header p {
  max-width: 900px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.context-cache-prompt-authority-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 10px;
}

.context-cache-prompt-branches {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.context-cache-prompt-branches article {
  display: grid;
  min-width: 0;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 9px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-prompt-branches article:nth-child(2n) {
  background: #fbfdf7;
}

.context-cache-prompt-branches article > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #2f9e44;
  font-size: 11px;
  font-weight: 850;
}

.context-cache-prompt-branches article > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.context-cache-prompt-branches strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.context-cache-prompt-branches p,
.context-cache-prompt-branches small {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.context-cache-prompt-branches code {
  min-width: 0;
  color: #152033;
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-cache-prompt-section-map {
  display: grid;
  min-width: 0;
  gap: 7px;
  align-content: start;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-prompt-section-map h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.context-cache-prompt-section-map > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 8px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.context-cache-prompt-section-map > div:nth-child(2n) {
  background: #fffaf0;
}

.context-cache-prompt-section-map span {
  color: #2f6f9f;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-prompt-section-map strong,
.context-cache-prompt-section-map p {
  min-width: 0;
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.context-cache-prompt-section-map strong {
  color: var(--ink);
}

.context-cache-prompt-section-map p {
  color: var(--muted);
}

.context-cache-prompt-authority-code {
  display: grid;
  min-width: 0;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
  overflow: hidden;
}

.context-cache-prompt-authority-code > summary {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.context-cache-prompt-authority-code > summary::-webkit-details-marker {
  display: none;
}

.context-cache-prompt-authority-code > summary strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.context-cache-prompt-authority-code > summary span {
  flex: 0 0 auto;
  color: #2f6f9f;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-prompt-authority-code .pseudo-code {
  margin: 0;
  border-top: 1px solid #d7dde6;
  border-radius: 0;
  background: #fbfdff;
  font-size: 11px;
  line-height: 1.35;
}

.context-cache-stream-ledger {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d9d1c2;
  border-left: 4px solid #a26a16;
  border-radius: var(--radius);
  background: #fffaf0;
}

.context-cache-stream-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-stream-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}

.context-cache-stream-header p {
  max-width: 920px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.context-cache-stream-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.32fr);
  gap: 10px;
}

.context-cache-stream-table {
  display: grid;
  min-width: 0;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
  overflow: hidden;
}

.context-cache-stream-row {
  display: grid;
  min-width: 0;
  grid-template-columns: 42px minmax(90px, 0.55fr) minmax(0, 1.2fr) minmax(0, 1.3fr) minmax(0, 1fr);
  border-top: 1px solid #edf2f7;
}

.context-cache-stream-row:first-child {
  border-top: 0;
}

.context-cache-stream-row.is-header {
  background: #f7fbfd;
}

.context-cache-stream-row > * {
  min-width: 0;
  padding: 8px;
  border-left: 1px solid #edf2f7;
  overflow-wrap: anywhere;
}

.context-cache-stream-row > *:first-child {
  border-left: 0;
}

.context-cache-stream-row.is-header span {
  color: #80530e;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-stream-row strong {
  color: #80530e;
  font-size: 12px;
  line-height: 1.25;
}

.context-cache-stream-row code {
  color: var(--ink);
  font-size: 10px;
  line-height: 1.28;
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-cache-stream-row span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.32;
}

.context-cache-stream-invariants {
  display: grid;
  min-width: 0;
  gap: 7px;
  align-content: start;
}

.context-cache-stream-invariants > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 9px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-stream-invariants > div:nth-child(2n) {
  background: #f7fbfd;
}

.context-cache-stream-invariants span {
  color: #80530e;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-stream-invariants p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.context-cache-stream-code {
  display: grid;
  min-width: 0;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
  overflow: hidden;
}

.context-cache-stream-code > summary {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.context-cache-stream-code > summary::-webkit-details-marker {
  display: none;
}

.context-cache-stream-code > summary strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.context-cache-stream-code > summary span {
  flex: 0 0 auto;
  color: #80530e;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-stream-code .pseudo-code {
  margin: 0;
  border-top: 1px solid #d7dde6;
  border-radius: 0;
  background: #fbfdff;
  font-size: 11px;
  line-height: 1.35;
}

.context-cache-runtime-contracts {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 14px;
  border: 1px solid #cfd8e3;
  border-left: 4px solid #2f6f9f;
  border-radius: var(--radius);
  background: #eef7fb;
}

.context-cache-runtime-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-runtime-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.2;
}

.context-cache-runtime-header p {
  max-width: 900px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.context-cache-runtime-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.context-cache-runtime-grid article {
  display: grid;
  min-width: 0;
  gap: 5px;
  align-content: start;
  padding: 8px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-runtime-grid article:nth-child(2n) {
  background: #f6fbf8;
}

.context-cache-runtime-grid span {
  color: #28415f;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-runtime-grid code {
  color: #152033;
  font-size: 10px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-cache-runtime-grid strong {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.context-cache-runtime-grid small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .context-cache-runtime-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .context-cache-runtime-contracts {
    padding: 10px;
  }

  .context-cache-runtime-header {
    display: grid;
    gap: 5px;
  }

  .context-cache-runtime-header h3 {
    font-size: 17px;
  }

  .context-cache-runtime-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .context-cache-runtime-grid article {
    gap: 3px;
    padding: 6px;
  }

  .context-cache-runtime-grid code,
  .context-cache-runtime-grid small {
    font-size: 9px;
    line-height: 1.2;
  }
}

.context-cache-implementation-spine {
  display: grid;
  min-width: 0;
  gap: 14px;
  padding: 16px;
  border: 1px solid #cfd8e3;
  border-left: 4px solid #28415f;
  border-radius: var(--radius);
  background: #f8fafc;
}

.context-cache-spine-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-spine-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.context-cache-spine-header p {
  max-width: 900px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.context-cache-spine-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 12px;
  align-items: start;
}

.context-cache-spine-steps {
  display: grid;
  min-width: 0;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.context-cache-spine-steps li {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(170px, 0.8fr) minmax(0, 1.1fr) minmax(160px, 0.85fr) minmax(170px, 0.9fr);
  gap: 8px;
  align-items: start;
  padding: 9px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-spine-steps li:nth-child(2n) {
  background: #f6fbf8;
}

.context-cache-spine-steps strong,
.context-cache-spine-steps p,
.context-cache-spine-steps div,
.context-cache-spine-steps code {
  min-width: 0;
  overflow-wrap: anywhere;
}

.context-cache-spine-steps strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.3;
}

.context-cache-spine-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.context-cache-spine-steps div {
  display: grid;
  gap: 3px;
}

.context-cache-spine-steps span {
  color: #28415f;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-spine-steps small {
  color: #5e6e80;
  font-size: 11px;
  line-height: 1.35;
}

.context-cache-spine-steps code {
  color: #152033;
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
}

.context-cache-spine-code-card {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #fffaf0;
}

.context-cache-spine-code-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.context-cache-spine-code-card .pseudo-code {
  font-size: 11px;
  line-height: 1.35;
}

.context-cache-spine-source-strip,
.context-cache-spine-object-strip {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.context-cache-spine-source-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.context-cache-spine-object-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.context-cache-spine-source-strip > div,
.context-cache-spine-object-strip > div {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 9px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-spine-source-strip > div {
  background: #eef7fb;
}

.context-cache-spine-source-strip span,
.context-cache-spine-object-strip span {
  color: #28415f;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-spine-source-strip code,
.context-cache-spine-object-strip code {
  color: #152033;
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .context-cache-spine-layout {
    grid-template-columns: 1fr;
  }

  .context-cache-spine-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .context-cache-spine-source-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .context-cache-spine-steps li {
    grid-template-columns: 1fr;
  }
}

.context-cache-ownership-map {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 16px;
  border: 1px solid #cfd8e3;
  border-left: 4px solid #2b8a63;
  border-radius: var(--radius);
  background: #f6fbf8;
}

.context-cache-ownership-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-ownership-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}

.context-cache-ownership-header p {
  max-width: 900px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.context-cache-ownership-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.context-cache-ownership-card {
  display: grid;
  min-width: 0;
  gap: 6px;
  align-content: start;
  padding: 10px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-ownership-card:nth-child(4) {
  background: #fffaf0;
}

.context-cache-ownership-card span {
  color: #2b6748;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-ownership-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.context-cache-ownership-card p,
.context-cache-ownership-card small {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.context-cache-ownership-card small {
  color: #5e6e80;
  font-weight: 760;
}

@media (max-width: 980px) {
  .context-cache-ownership-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.context-cache-state-ledger {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 16px;
  border: 1px solid #cfd8e3;
  border-left: 4px solid #9a6b12;
  border-radius: var(--radius);
  background: #fffaf0;
}

.context-cache-ledger-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-ledger-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}

.context-cache-ledger-header p {
  max-width: 900px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.context-cache-ledger-table {
  display: grid;
  min-width: 0;
}

.context-cache-ledger-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 0.9fr) minmax(0, 1.45fr) minmax(0, 1.25fr) minmax(0, 0.9fr);
  border: 1px solid #dbe2ea;
  border-top: 0;
  background: #ffffff;
}

.context-cache-ledger-row:first-child {
  border-top: 1px solid #dbe2ea;
  border-radius: var(--radius) var(--radius) 0 0;
}

.context-cache-ledger-row:last-child {
  border-radius: 0 0 var(--radius) var(--radius);
}

.context-cache-ledger-row:nth-child(2n + 1):not(.is-header) {
  background: #f8fafc;
}

.context-cache-ledger-row.is-header {
  color: #28415f;
  background: #eef7fb;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-ledger-row > * {
  min-width: 0;
  padding: 8px;
  border-left: 1px solid #dbe2ea;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.context-cache-ledger-row > *:first-child {
  border-left: 0;
}

.context-cache-ledger-row strong,
.context-cache-ledger-row code {
  color: #152033;
}

.context-cache-ledger-row code {
  white-space: normal;
}

@media (max-width: 700px) {
  .context-cache-state-ledger {
    gap: 8px;
    padding: 12px;
  }

  .context-cache-ledger-header {
    flex-direction: column;
    align-items: stretch;
  }

  .context-cache-ledger-header h3 {
    font-size: 18px;
  }

  .context-cache-ledger-header p {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.35;
  }

  .context-cache-ledger-row.is-header {
    display: none;
  }

  .context-cache-ledger-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 6px;
    border-top: 1px solid #dbe2ea;
    border-radius: var(--radius);
  }

  .context-cache-ledger-row > * {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 5px;
    border-left: 0;
    border-top: 1px solid #edf2f7;
    font-size: 10px;
    line-height: 1.25;
  }

  .context-cache-ledger-row > *:first-child {
    border-top: 0;
  }

  .context-cache-ledger-row:not(.is-header) > :first-child {
    grid-column: 1;
  }

  .context-cache-ledger-row:not(.is-header) > :nth-child(2) {
    grid-column: 1;
  }

  .context-cache-ledger-row:not(.is-header) > :nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .context-cache-ledger-row:not(.is-header) > :nth-child(4) {
    grid-column: 1 / -1;
  }

  .context-cache-ledger-row:not(.is-header) > :nth-child(5) {
    grid-column: 2;
    grid-row: 1;
    border-top: 0;
  }

  .context-cache-ledger-row:not(.is-header) > *::before {
    content: attr(data-label);
    color: #5e6e80;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
  }
}

.context-cache-sequence {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 16px;
  border: 1px solid #cbd8e4;
  border-left: 4px solid #315f86;
  border-radius: var(--radius);
  background: #f7fbfd;
}

.context-cache-sequence-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-sequence-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}

.context-cache-sequence-header p {
  max-width: 940px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.context-cache-sequence-rail {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.context-cache-sequence-rail li {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 5px;
  align-content: start;
  padding: 10px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-sequence-rail li:nth-child(2n) {
  background: #f6fbf8;
}

.context-cache-sequence-rail li:not(:last-child)::after {
  content: ">";
  position: absolute;
  top: 12px;
  right: 8px;
  color: #315f86;
  font-size: 12px;
  font-weight: 900;
}

.context-cache-sequence-rail span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #315f86;
  font-size: 11px;
  font-weight: 850;
}

.context-cache-sequence-rail strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.context-cache-sequence-rail code,
.context-cache-sequence-rail small,
.context-cache-sequence-rail em,
.context-cache-sequence-rail p {
  min-width: 0;
  margin: 0;
  font-size: 10px;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-cache-sequence-rail code {
  color: #28415f;
  font-weight: 760;
}

.context-cache-sequence-rail small {
  color: var(--muted);
}

.context-cache-sequence-rail em {
  color: #2b6748;
  font-style: normal;
  font-weight: 760;
}

.context-cache-sequence-rail p {
  color: #465568;
}

.context-cache-sequence-rules {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.context-cache-sequence-rules div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 9px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-sequence-rules span {
  color: #315f86;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-sequence-rules p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.context-cache-sequence-code {
  display: grid;
  min-width: 0;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
  overflow: hidden;
}

.context-cache-sequence-code > summary {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.context-cache-sequence-code > summary::-webkit-details-marker {
  display: none;
}

.context-cache-sequence-code > summary strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.context-cache-sequence-code > summary span {
  flex: 0 0 auto;
  color: #315f86;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-sequence-code .pseudo-code {
  margin: 0;
  border-top: 1px solid #d7dde6;
  border-radius: 0;
  background: #fbfdff;
  font-size: 11px;
  line-height: 1.35;
}

.context-cache-blackboard {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dccfbf;
  border-left: 4px solid #8f5b2d;
  border-radius: var(--radius);
  background: #fffaf3;
}

.context-cache-blackboard-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-blackboard-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}

.context-cache-blackboard-header p {
  max-width: 940px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.context-cache-blackboard-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.context-cache-blackboard-panel {
  display: grid;
  min-width: 0;
  gap: 9px;
  align-content: start;
  padding: 11px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-blackboard-panel:nth-child(2n) {
  background: #fbfdff;
}

.context-cache-blackboard-panel header {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.context-cache-blackboard-panel header span {
  color: #8f5b2d;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-blackboard-panel header strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.context-cache-blackboard-state,
.context-cache-blackboard-gates,
.context-cache-blackboard-assertions {
  display: grid;
  min-width: 0;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.context-cache-blackboard-state li,
.context-cache-blackboard-gates li,
.context-cache-blackboard-assertions li {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 7px;
  border: 1px solid #e0e7ef;
  border-radius: var(--radius);
  background: #f8fafc;
}

.context-cache-blackboard-state strong,
.context-cache-blackboard-gates strong {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.25;
}

.context-cache-blackboard-state span,
.context-cache-blackboard-state em,
.context-cache-blackboard-gates span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.context-cache-blackboard-state em {
  color: #2b6748;
  font-style: normal;
  font-weight: 760;
}

.context-cache-blackboard-formulas {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.context-cache-blackboard-formulas > div {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 7px;
  border: 1px solid #e0e7ef;
  border-radius: var(--radius);
  background: #f8fafc;
}

.context-cache-blackboard-formulas span {
  color: #8f5b2d;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-blackboard-formulas code,
.context-cache-blackboard-assertions code {
  color: #152033;
  font-size: 10px;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-cache-coupling {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 16px;
  border: 1px solid #cad7df;
  border-left: 4px solid #2b8a63;
  border-radius: var(--radius);
  background: #f6fbf8;
}

.context-cache-coupling-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-coupling-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}

.context-cache-coupling-header p {
  max-width: 940px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.context-cache-coupling-detail {
  display: grid;
  min-width: 0;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
  overflow: hidden;
}

.context-cache-coupling-detail > summary {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.context-cache-coupling-detail > summary::-webkit-details-marker {
  display: none;
}

.context-cache-coupling-detail > summary strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.context-cache-coupling-detail > summary span {
  flex: 0 0 auto;
  color: #2b6748;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-coupling-detail:not([open]) .context-cache-coupling-table {
  display: none;
}

.context-cache-coupling-table {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border-top: 1px solid #d7dde6;
  background: #ffffff;
}

.context-cache-coupling-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(125px, 0.55fr) minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1fr);
  border-top: 1px solid #d7dde6;
}

.context-cache-coupling-row:first-child {
  border-top: 0;
}

.context-cache-coupling-row.is-header {
  color: #2b6748;
  background: #eef7fb;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-coupling-row:nth-child(2n + 1):not(.is-header) {
  background: #fbfdff;
}

.context-cache-coupling-row > * {
  min-width: 0;
  padding: 9px;
  border-left: 1px solid #d7dde6;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.context-cache-coupling-row > *:first-child {
  border-left: 0;
}

.context-cache-coupling-row strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.3;
}

.context-cache-coupling-row em {
  color: #2b6748;
  font-style: normal;
  font-weight: 760;
}

.context-cache-coupling-math {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.context-cache-coupling-math > div {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 9px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-coupling-math span {
  color: #2b6748;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-coupling-math code {
  color: #152033;
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-cache-source-bridge {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 16px;
  border: 1px solid #cfd8e3;
  border-left: 4px solid #7561b6;
  border-radius: var(--radius);
  background: #f8f6ff;
}

.context-cache-source-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-source-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}

.context-cache-source-header p {
  max-width: 940px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.context-cache-source-flow {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.context-cache-source-flow li {
  display: grid;
  min-width: 0;
  gap: 5px;
  align-content: start;
  padding: 9px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-source-flow li:nth-child(2n) {
  background: #f6fbf8;
}

.context-cache-source-flow span {
  display: grid;
  width: 28px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #7561b6;
  font-size: 10px;
  font-weight: 850;
}

.context-cache-source-flow strong,
.context-cache-source-flow small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.context-cache-source-flow strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
}

.context-cache-source-flow small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.context-cache-source-detail {
  display: grid;
  min-width: 0;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
  overflow: hidden;
}

.context-cache-source-detail > summary {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.context-cache-source-detail > summary::-webkit-details-marker {
  display: none;
}

.context-cache-source-detail > summary strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.context-cache-source-detail > summary span {
  flex: 0 0 auto;
  color: #5b4a92;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-source-detail:not([open]) .context-cache-source-grid {
  display: none;
}

.context-cache-source-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #d7dde6;
}

.context-cache-source-grid article {
  display: grid;
  min-width: 0;
  gap: 8px;
  align-content: start;
  padding: 11px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-source-grid article:nth-child(2n) {
  background: #fbfdff;
}

.context-cache-source-grid header {
  display: flex;
  min-width: 0;
  gap: 8px;
  align-items: center;
}

.context-cache-source-grid header span {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #7561b6;
  font-size: 10px;
  font-weight: 850;
}

.context-cache-source-grid header strong {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.context-cache-source-route {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.context-cache-source-route > div,
.context-cache-source-output {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 8px;
  border: 1px solid #e0e7ef;
  border-radius: var(--radius);
  background: #f8fafc;
}

.context-cache-source-route span,
.context-cache-source-output span {
  color: #5b4a92;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-source-route code,
.context-cache-source-output p {
  margin: 0;
  color: #152033;
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .context-cache-reducer-formulas {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .context-cache-context-resolver-grid {
    grid-template-columns: 1fr;
  }

  .context-cache-context-ownership {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .context-cache-state-register-grid {
    grid-template-columns: 1fr;
  }

  .context-cache-state-register-grid article {
    grid-template-columns: 26px minmax(120px, 0.26fr) minmax(0, 0.74fr);
  }

  .context-cache-state-register-grid dl {
    grid-column: 3 / -1;
  }

  .context-cache-state-register-bottom {
    grid-template-columns: 1fr;
  }

  .context-cache-state-boundary-diff {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .context-cache-mechanics-lanes {
    grid-template-columns: 1fr;
  }

  .context-cache-mechanics-coupling {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .context-cache-execution-formulas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .context-cache-execution-row {
    grid-template-columns: 34px minmax(120px, 0.52fr) minmax(0, 1fr);
  }

  .context-cache-execution-row.is-header {
    display: none;
  }

  .context-cache-execution-row > p,
  .context-cache-execution-row > div {
    grid-column: 3 / -1;
  }

  .context-cache-watch-stage-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .context-cache-watch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .context-cache-recipe-layout,
  .context-cache-recipe-code-grid {
    grid-template-columns: 1fr;
  }

  .context-cache-recipe-state-rail li {
    grid-template-columns: 26px minmax(128px, 0.36fr) minmax(150px, 0.46fr) minmax(0, 1fr);
  }

  .context-cache-transaction-board {
    grid-template-columns: 1fr;
  }

  .context-cache-transaction-fixture {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .context-cache-transaction-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .context-cache-transaction-rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .context-cache-transaction-boundary {
    grid-template-columns: 1fr;
  }

  .context-cache-branch-chip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .context-cache-dataflow-board,
  .context-cache-dataflow-bottom {
    grid-template-columns: 1fr;
  }

  .context-cache-dataflow-contracts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .context-cache-dataflow-contract-row {
    grid-template-columns: minmax(120px, 0.6fr) minmax(0, 1fr);
  }

  .context-cache-workbench-layout,
  .context-cache-workbench-bottom {
    grid-template-columns: 1fr;
  }

  .context-cache-transformer-grid,
  .context-cache-transformer-diff {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .context-cache-stream-layout {
    grid-template-columns: 1fr;
  }

  .context-cache-stream-invariants {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .context-cache-blackboard-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .context-cache-coupling-math {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .context-cache-source-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .context-cache-transaction-header {
    display: grid;
    gap: 5px;
  }

  .context-cache-transaction-code-grid {
    grid-template-columns: 1fr;
  }

  .context-cache-first-branches-header {
    display: grid;
    gap: 5px;
  }

  .context-cache-first-branch-detail > summary {
    align-items: start;
  }

  .context-cache-first-branch-row {
    grid-template-columns: 1fr;
    border-top: 1px solid #ded2ba;
  }

  .context-cache-first-branch-row.is-header {
    display: none;
  }

  .context-cache-first-branch-row > * {
    display: grid;
    gap: 2px;
    border-left: 0;
    border-top: 1px solid #edf0f4;
  }

  .context-cache-first-branch-row > *:first-child {
    border-top: 0;
  }

  .context-cache-first-branch-row > *::before {
    content: attr(data-label);
    color: #9a6b12;
    font-family: var(--sans);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .context-cache-dataflow-header {
    display: grid;
    gap: 5px;
  }

  .context-cache-dataflow-state-contracts > summary {
    align-items: start;
  }

  .context-cache-dataflow-contracts {
    grid-template-columns: 1fr;
  }

  .context-cache-turn-diagram-header {
    display: grid;
    gap: 5px;
  }

  .context-cache-workbench-header {
    display: grid;
    gap: 5px;
  }

  .context-cache-workbench-fixture {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .context-cache-workbench-pipeline li {
    grid-template-columns: 32px minmax(130px, 0.55fr) minmax(0, 1fr);
  }

  .context-cache-workbench-pipeline strong {
    grid-column: 2 / -1;
  }

  .context-cache-transformer-header {
    display: grid;
    gap: 5px;
  }

  .context-cache-prompt-authority-header {
    display: grid;
    gap: 5px;
  }

  .context-cache-stream-header {
    display: grid;
    gap: 5px;
  }

  .context-cache-blackboard-header {
    display: grid;
    gap: 5px;
  }

  .context-cache-coupling-header {
    display: grid;
    gap: 5px;
  }

  .context-cache-coupling-row.is-header {
    display: none;
  }

  .context-cache-coupling-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #d7dde6;
  }

  .context-cache-coupling-row > * {
    display: grid;
    gap: 2px;
    border-left: 0;
    border-top: 1px solid #edf2f7;
  }

  .context-cache-coupling-row > *:first-child,
  .context-cache-coupling-row > *:nth-child(2) {
    border-top: 0;
  }

  .context-cache-coupling-row:not(.is-header) > *::before {
    content: attr(data-label);
    color: #5e6e80;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .context-cache-coupling-math {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .context-cache-source-header {
    display: grid;
    gap: 5px;
  }

  .context-cache-source-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .context-cache-schematic-header h3 {
    font-size: 18px;
  }

  .context-cache-schematic-header p {
    display: none;
  }

  .context-cache-schematic-fixture {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .context-cache-schematic-fixture > div {
    padding: 6px;
  }

  .context-cache-schematic-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .context-cache-schematic-flow li {
    padding: 6px;
  }

  .context-cache-schematic-flow strong {
    font-size: 10px;
    line-height: 1.16;
  }

  .context-cache-schematic-flow small,
  .context-cache-schematic-flow mark,
  .context-cache-schematic-flow p,
  .context-cache-schematic-flow code,
  .context-cache-schematic-flow em,
  .context-cache-schematic-fixture code,
  .context-cache-schematic-code .pseudo-code,
  .context-cache-schematic-rules p {
    font-size: 9px;
    line-height: 1.16;
  }

  .context-cache-schematic-bottom {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .context-cache-schematic-rules {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .context-cache-schematic-code,
  .context-cache-schematic-rules article {
    padding: 6px;
  }

  .context-cache-flight-header h3 {
    font-size: 18px;
  }

  .context-cache-flight-header p {
    display: none;
  }

  .context-cache-flight-rows li {
    grid-template-columns: 24px minmax(125px, 0.36fr) minmax(0, 0.82fr) minmax(0, 0.5fr);
    gap: 5px;
    padding: 6px;
  }

  .context-cache-flight-rows small {
    grid-column: 2 / -1;
    font-size: 9px;
    line-height: 1.16;
  }

  .context-cache-flight-rows strong,
  .context-cache-flight-rows code,
  .context-cache-flight-rows p {
    font-size: 9px;
    line-height: 1.16;
  }

  .context-cache-flight-equations {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .context-cache-flight-equations > div {
    padding: 6px;
  }

  .context-cache-flight-equations code {
    font-size: 9px;
    line-height: 1.16;
  }

  .context-cache-flight-code {
    gap: 5px;
  }

  .context-cache-flight-code article {
    padding: 6px;
  }

  .context-cache-flight-code span,
  .context-cache-flight-code .pseudo-code {
    font-size: 9px;
    line-height: 1.16;
  }

  .context-cache-flight-boundary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .context-cache-flight-boundary > div {
    padding: 6px;
  }

  .context-cache-flight-boundary span,
  .context-cache-flight-boundary code {
    font-size: 9px;
    line-height: 1.16;
  }

  .context-cache-sequence-rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .context-cache-mechanics-map {
    gap: 8px;
    padding: 11px;
  }

  .context-cache-mechanics-header {
    display: grid;
    gap: 5px;
  }

  .context-cache-mechanics-header h3 {
    font-size: 17px;
  }

  .context-cache-mechanics-header p {
    display: none;
  }

  .context-cache-mechanics-lanes {
    gap: 6px;
  }

  .context-cache-mechanics-lanes article {
    gap: 6px;
    padding: 8px;
  }

  .context-cache-mechanics-lanes li {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 5px;
    padding: 6px;
  }

  .context-cache-mechanics-coupling {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .context-cache-mechanics-coupling > div {
    padding: 7px;
  }

  .context-cache-mechanics-lanes code,
  .context-cache-mechanics-lanes li p,
  .context-cache-mechanics-coupling p {
    font-size: 9px;
    line-height: 1.18;
  }

  .context-cache-execution-ledger {
    gap: 8px;
    padding: 11px;
  }

  .context-cache-execution-header {
    display: grid;
    gap: 5px;
  }

  .context-cache-execution-header h3 {
    font-size: 17px;
  }

  .context-cache-execution-header p {
    display: none;
  }

  .context-cache-execution-formulas {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .context-cache-execution-formulas > div {
    padding: 7px;
  }

  .context-cache-execution-row {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 5px;
    padding: 7px;
  }

  .context-cache-execution-row > p,
  .context-cache-execution-row > div {
    grid-column: 1 / -1;
  }

  .context-cache-execution-row > p::before,
  .context-cache-execution-row > div::before,
  .context-cache-execution-row > code::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: #8a6b22;
    font-family: var(--sans);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .context-cache-execution-formulas code,
  .context-cache-execution-row code,
  .context-cache-execution-row p,
  .context-cache-execution-row small {
    font-size: 9px;
    line-height: 1.18;
  }

  .context-cache-watch-turn {
    gap: 8px;
    padding: 11px;
  }

  .context-cache-watch-header {
    display: grid;
    gap: 5px;
  }

  .context-cache-watch-header h3 {
    font-size: 17px;
  }

  .context-cache-watch-header p {
    display: none;
  }

  .context-cache-watch-stage-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .context-cache-watch-stage-list label {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 5px;
    padding: 6px;
  }

  .context-cache-watch-stage-list label strong {
    font-size: 10px;
    line-height: 1.15;
  }

  .context-cache-watch-panel {
    gap: 7px;
    padding: 8px;
  }

  .context-cache-watch-panel header {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 5px;
  }

  .context-cache-watch-panel header code {
    grid-column: 1 / -1;
  }

  .context-cache-watch-panel h4 {
    font-size: 15px;
  }

  .context-cache-watch-grid {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .context-cache-watch-grid > div {
    padding: 7px;
  }

  .context-cache-watch-grid p {
    font-size: 11px;
    line-height: 1.3;
  }

  .context-cache-watch-panel code,
  .context-cache-watch-grid code {
    font-size: 9px;
    line-height: 1.16;
  }

  .context-cache-rebuild-recipe {
    gap: 8px;
    padding: 11px;
  }

  .context-cache-recipe-header {
    display: grid;
    gap: 5px;
  }

  .context-cache-recipe-header h3 {
    font-size: 17px;
  }

  .context-cache-recipe-header p {
    display: none;
  }

  .context-cache-recipe-state-rail li {
    grid-template-columns: 22px minmax(108px, 0.48fr) minmax(0, 1fr);
    gap: 5px;
    padding: 6px;
  }

  .context-cache-recipe-state-rail code {
    grid-column: 2 / -1;
  }

  .context-cache-recipe-state-rail p {
    grid-column: 2 / -1;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .context-cache-recipe-rules {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .context-cache-recipe-code-grid > div {
    padding: 7px;
  }

  .context-cache-recipe-code-grid .pseudo-code {
    max-height: 260px;
  }

  .context-cache-recipe-code-grid li {
    padding: 6px;
  }

  .context-cache-recipe-state-rail strong,
  .context-cache-recipe-state-rail code,
  .context-cache-recipe-rules code,
  .context-cache-recipe-code-grid code {
    font-size: 9px;
    line-height: 1.16;
  }

  .context-cache-transaction {
    gap: 8px;
    padding: 11px;
  }

  .context-cache-transaction-header {
    display: grid;
    gap: 5px;
  }

  .context-cache-transaction-header h3 {
    font-size: 17px;
  }

  .context-cache-transaction-header p {
    display: none;
  }

  .context-cache-transaction-fixture {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .context-cache-transaction-fixture > div {
    padding: 6px;
  }

  .context-cache-transaction-board {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .context-cache-transaction-steps {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .context-cache-transaction-steps li {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 6px;
    padding: 6px;
  }

  .context-cache-transaction-steps p {
    display: none;
  }

  .context-cache-transaction-steps strong,
  .context-cache-transaction-steps code,
  .context-cache-transaction-steps small,
  .context-cache-transaction-steps em,
  .context-cache-transaction-ledger code,
  .context-cache-transaction-boundary code,
  .context-cache-transaction-rules code {
    font-size: 9px;
    line-height: 1.16;
  }

  .context-cache-transaction-steps code,
  .context-cache-transaction-steps small,
  .context-cache-transaction-steps em,
  .context-cache-transaction-ledger code,
  .context-cache-transaction-boundary code,
  .context-cache-transaction-rules code {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .context-cache-transaction-ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .context-cache-transaction-ledger article,
  .context-cache-transaction-rules > div {
    padding: 6px;
  }

  .context-cache-transaction-ledger p {
    display: none;
  }

  .context-cache-transaction-boundary {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .context-cache-transaction-boundary article {
    padding: 6px;
  }

  .context-cache-transaction-boundary p {
    display: none;
  }

  .context-cache-transaction-rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .context-cache-first-branches {
    gap: 8px;
    padding: 11px;
  }

  .context-cache-first-branches-header h3 {
    font-size: 17px;
  }

  .context-cache-first-branches-header p {
    display: none;
  }

  .context-cache-branch-chip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .context-cache-branch-chip-grid article {
    padding: 6px;
  }

  .context-cache-branch-chip-grid strong,
  .context-cache-branch-chip-grid code,
  .context-cache-first-branch-row p,
  .context-cache-first-branch-row code {
    font-size: 10px;
    line-height: 1.2;
  }

  .context-cache-first-branch-detail > summary {
    display: grid;
    gap: 3px;
    padding: 8px 9px;
  }

  .context-cache-first-branch-detail > summary span {
    white-space: normal;
  }

  .context-cache-dataflow {
    gap: 8px;
    padding: 11px;
  }

  .context-cache-dataflow-header {
    display: grid;
    gap: 5px;
  }

  .context-cache-dataflow-header h3 {
    font-size: 17px;
  }

  .context-cache-dataflow-header p {
    display: none;
  }

  .context-cache-dataflow-lane {
    gap: 6px;
    padding: 8px;
  }

  .context-cache-dataflow-lane header p,
  .context-cache-dataflow-lane small,
  .context-cache-dataflow-contracts p {
    display: none;
  }

  .context-cache-dataflow-lane ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .context-cache-dataflow-lane li {
    gap: 3px;
    padding: 7px;
  }

  .context-cache-dataflow-lane li:not(:last-child)::after {
    display: none;
  }

  .context-cache-dataflow-lane code,
  .context-cache-dataflow-lane em,
  .context-cache-dataflow-math code {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
  }

  .context-cache-dataflow-lane code {
    -webkit-line-clamp: 1;
  }

  .context-cache-dataflow-lane em,
  .context-cache-dataflow-math code {
    -webkit-line-clamp: 2;
  }

  .context-cache-dataflow-math {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .context-cache-dataflow-contracts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .context-cache-dataflow-contracts > div,
  .context-cache-dataflow-math > div {
    padding: 7px;
  }

  .context-cache-dataflow-state-contracts > summary {
    padding: 8px 9px;
  }

  .context-cache-dataflow-state-contracts > summary strong {
    font-size: 12px;
  }

  .context-cache-dataflow-contract-body {
    gap: 6px;
    padding: 8px;
  }

  .context-cache-dataflow-contract-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 7px;
  }

  .context-cache-dataflow-contract-row.is-header {
    display: none;
  }

  .context-cache-dataflow-contract-row > * {
    display: grid;
    min-width: 0;
    gap: 2px;
  }

  .context-cache-dataflow-contract-row > *::before {
    content: attr(data-label);
    color: #315f86;
    font-family: var(--sans);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .context-cache-dataflow-test-pack .pseudo-code {
    font-size: 10px;
    line-height: 1.3;
  }

  .context-cache-implementation-schematic {
    gap: 8px;
    padding: 11px;
  }

  .context-cache-schematic-header {
    display: grid;
    gap: 5px;
  }

  .context-cache-schematic-header h3 {
    font-size: 17px;
  }

  .context-cache-schematic-header p {
    display: none;
  }

  .context-cache-schematic-fixture {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .context-cache-schematic-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .context-cache-schematic-flow li {
    gap: 3px;
    padding: 6px;
  }

  .context-cache-schematic-flow li:not(:last-child)::after {
    display: none;
  }

  .context-cache-schematic-flow small {
    display: none;
  }

  .context-cache-schematic-flow mark,
  .context-cache-schematic-flow code {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
  }

  .context-cache-schematic-flow mark {
    -webkit-line-clamp: 2;
  }

  .context-cache-schematic-flow code {
    -webkit-line-clamp: 1;
  }

  .context-cache-schematic-flow p {
    display: none;
  }

  .context-cache-schematic-flow em {
    display: none;
  }

  .context-cache-schematic-rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .context-cache-schematic-code .pseudo-code {
    font-size: 9px;
    line-height: 1.16;
  }

  .context-cache-flight-recorder {
    gap: 8px;
    padding: 11px;
  }

  .context-cache-flight-header {
    display: grid;
    gap: 5px;
  }

  .context-cache-flight-header h3 {
    font-size: 17px;
  }

  .context-cache-flight-header p {
    display: none;
  }

  .context-cache-flight-rows {
    gap: 5px;
  }

  .context-cache-flight-rows li {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 3px 6px;
    padding: 6px;
  }

  .context-cache-flight-rows li > span {
    grid-row: 1 / span 2;
    width: 22px;
    height: 20px;
  }

  .context-cache-flight-rows strong {
    font-size: 10px;
  }

  .context-cache-flight-rows code {
    font-size: 9px;
    line-height: 1.16;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .context-cache-flight-rows p,
  .context-cache-flight-rows small {
    grid-column: 2;
    font-size: 9px;
    line-height: 1.16;
  }

  .context-cache-flight-rows p {
    display: none;
  }

  .context-cache-flight-equations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .context-cache-flight-equations > div {
    padding: 6px;
  }

  .context-cache-flight-equations code {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .context-cache-flight-code {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .context-cache-flight-code article {
    gap: 3px;
    padding: 6px;
  }

  .context-cache-flight-code .pseudo-code {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 9px;
    line-height: 1.16;
  }

  .context-cache-flight-boundary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .context-cache-flight-boundary > div {
    padding: 6px;
  }

  .context-cache-flight-boundary code {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .context-cache-flight-fixture > summary {
    align-items: start;
    padding: 8px;
  }

  .context-cache-flight-fixture > summary strong {
    font-size: 11px;
  }

  .context-cache-flight-fixture > summary span {
    font-size: 9px;
  }

  .context-cache-turn-diagram {
    gap: 9px;
    padding: 12px;
  }

  .context-cache-turn-diagram-header h3 {
    font-size: 18px;
  }

  .context-cache-business-flow {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .context-cache-object-rail {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .context-cache-formula-rail {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .context-cache-business-flow li:not(:last-child)::after {
    display: none;
  }

  .context-cache-turn-details > summary {
    align-items: start;
    padding: 9px;
  }

  .context-cache-turn-diagram-bottom,
  .context-cache-turn-ledger > div,
  .context-cache-turn-rule-grid,
  .context-cache-turn-assertions {
    grid-template-columns: 1fr;
  }

  .context-cache-turn-ledger,
  .context-cache-turn-contract {
    padding: 9px;
  }

  .context-cache-rebuild-workbench {
    gap: 9px;
    padding: 12px;
  }

  .context-cache-workbench-header h3 {
    font-size: 18px;
  }

  .context-cache-workbench-fixture {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .context-cache-workbench-pipeline li {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 6px;
    padding: 8px;
  }

  .context-cache-workbench-pipeline p,
  .context-cache-workbench-pipeline strong {
    grid-column: 2;
  }

  .context-cache-workbench-packet,
  .context-cache-workbench-assertions {
    padding: 9px;
  }

  .context-cache-workbench-code > summary {
    align-items: start;
    padding: 9px;
  }

  .context-cache-workbench-code .pseudo-code {
    font-size: 10px;
  }

  .context-cache-transformer {
    gap: 9px;
    padding: 12px;
  }

  .context-cache-prompt-authority {
    gap: 9px;
    padding: 12px;
  }

  .context-cache-stream-ledger {
    gap: 9px;
    padding: 12px;
  }

  .context-cache-transformer-header h3 {
    font-size: 18px;
  }

  .context-cache-prompt-authority-header h3 {
    font-size: 18px;
  }

  .context-cache-stream-header h3 {
    font-size: 18px;
  }

  .context-cache-prompt-authority-layout {
    grid-template-columns: 1fr;
  }

  .context-cache-stream-invariants {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .context-cache-stream-row.is-header {
    display: none;
  }

  .context-cache-stream-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #d7dde6;
  }

  .context-cache-stream-row > * {
    display: grid;
    gap: 2px;
    border-left: 0;
    border-top: 1px solid #edf2f7;
  }

  .context-cache-stream-row > *:first-child,
  .context-cache-stream-row > *:nth-child(2) {
    border-top: 0;
  }

  .context-cache-stream-row:not(.is-header) > *::before {
    content: attr(data-label);
    color: #80530e;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .context-cache-stream-row > *:nth-child(2) {
    border-top: 1px solid #edf2f7;
  }

  .context-cache-prompt-branches {
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  }

  .context-cache-prompt-section-map {
    grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  }

  .context-cache-prompt-section-map h4 {
    grid-column: 1 / -1;
  }

  .context-cache-transformer-grid,
  .context-cache-transformer-diff {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .context-cache-transformer-grid article {
    padding: 8px;
  }

  .context-cache-prompt-branches article {
    padding: 8px;
  }

  .context-cache-transformer-code > summary {
    align-items: start;
    padding: 9px;
  }

  .context-cache-prompt-authority-code > summary {
    align-items: start;
    padding: 9px;
  }

  .context-cache-stream-code > summary {
    align-items: start;
    padding: 9px;
  }

  .context-cache-transformer-code .pseudo-code {
    font-size: 10px;
  }

  .context-cache-prompt-authority-code .pseudo-code {
    font-size: 10px;
  }

  .context-cache-stream-code .pseudo-code {
    font-size: 10px;
  }

  .context-cache-blackboard {
    gap: 9px;
    padding: 12px;
  }

  .context-cache-blackboard-header h3 {
    font-size: 18px;
  }

  .context-cache-blackboard-layout {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .context-cache-blackboard-panel {
    padding: 9px;
  }

  .context-cache-sequence {
    gap: 9px;
    padding: 12px;
  }

  .context-cache-sequence-header {
    display: grid;
    gap: 5px;
  }

  .context-cache-sequence-header h3 {
    font-size: 18px;
  }

  .context-cache-sequence-rail {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .context-cache-sequence-rail li {
    padding: 8px;
  }

  .context-cache-sequence-rail li:not(:last-child)::after {
    top: auto;
    right: 12px;
    bottom: -5px;
    transform: rotate(90deg);
  }

  .context-cache-sequence-rules {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .context-cache-sequence-code > summary {
    align-items: start;
    padding: 9px;
  }

  .context-cache-sequence-code .pseudo-code {
    font-size: 10px;
  }

  .context-cache-coupling {
    gap: 9px;
    padding: 12px;
  }

  .context-cache-coupling-header {
    display: grid;
    gap: 5px;
  }

  .context-cache-coupling-header h3 {
    font-size: 18px;
  }

  .context-cache-coupling-row.is-header {
    display: none;
  }

  .context-cache-coupling-row {
    grid-template-columns: 1fr;
    border-top: 1px solid #d7dde6;
  }

  .context-cache-coupling-row > * {
    display: grid;
    gap: 2px;
    padding: 7px;
    border-left: 0;
    border-top: 1px solid #edf2f7;
    font-size: 10px;
    line-height: 1.3;
  }

  .context-cache-coupling-row > *:first-child {
    border-top: 0;
  }

  .context-cache-coupling-row > *:nth-child(2) {
    border-top: 1px solid #edf2f7;
  }

  .context-cache-coupling-row:not(.is-header) > *::before {
    content: attr(data-label);
    color: #5e6e80;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .context-cache-coupling-math {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .context-cache-source-bridge {
    gap: 9px;
    padding: 12px;
  }

  .context-cache-source-header h3 {
    font-size: 18px;
  }

  .context-cache-source-flow {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .context-cache-source-grid article {
    padding: 9px;
  }

  .context-cache-source-route {
    grid-template-columns: 1fr;
  }

  .context-cache-source-detail > summary {
    align-items: start;
    padding: 9px;
  }
}

@media (min-width: 701px) and (max-width: 1180px) {
  .prompt-route-focus-answer-first .prompt-route-mechanism ol {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .prompt-route-focus-answer-first .prompt-route-mechanism li:not(:last-child)::after {
    display: none;
  }

  .prompt-route-focus-answer-first .prompt-route-mechanism code,
  .prompt-route-focus-answer-first .prompt-route-mechanism small {
    font-size: 9px;
    line-height: 1.18;
  }

  .context-cache-workbench-fixture {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .context-cache-rebuild-workbench {
    gap: 9px;
    padding: 12px;
  }

  .context-cache-workbench-header h3 {
    font-size: 18px;
  }

  .context-cache-workbench-header p {
    font-size: 12px;
    line-height: 1.35;
  }

  .context-cache-workbench-fixture > div,
  .context-cache-workbench-packet > div {
    gap: 4px;
    padding: 7px;
  }

  .context-cache-workbench-fixture code,
  .context-cache-workbench-packet code {
    font-size: 10px;
    line-height: 1.25;
  }

  .context-cache-workbench-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  }

  .context-cache-workbench-pipeline {
    gap: 5px;
  }

  .context-cache-workbench-pipeline li {
    gap: 6px;
    padding: 7px;
  }

  .context-cache-workbench-pipeline code {
    font-size: 11px;
  }

  .context-cache-workbench-pipeline p,
  .context-cache-workbench-pipeline strong {
    font-size: 10px;
    line-height: 1.25;
  }

  .context-cache-workbench-packet,
  .context-cache-workbench-assertions {
    padding: 9px;
  }

  .context-cache-workbench-bottom {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  }

  .context-cache-workbench-assertions ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .context-cache-workbench-assertions li {
    padding: 6px;
  }

  .context-cache-workbench-assertions code {
    font-size: 10px;
    line-height: 1.22;
  }
}

.context-cache-object-snapshots {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 16px;
  border: 1px solid #cfd8e3;
  border-left: 4px solid #28415f;
  border-radius: var(--radius);
  background: #f8fafc;
}

.context-cache-object-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-object-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}

.context-cache-object-header p {
  max-width: 900px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.context-cache-snapshot-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.context-cache-snapshot-grid article {
  display: grid;
  min-width: 0;
  gap: 5px;
  align-content: start;
  padding: 9px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-snapshot-grid article:nth-child(2n) {
  background: #f6fbf8;
}

.context-cache-snapshot-grid span {
  color: #28415f;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-snapshot-grid strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.context-cache-snapshot-grid code,
.context-cache-snapshot-grid small {
  color: #152033;
  font-size: 10px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-cache-snapshot-grid small {
  color: var(--muted);
}

.context-cache-object-fixture {
  display: grid;
  min-width: 0;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
  overflow: hidden;
}

.context-cache-object-fixture > summary {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.context-cache-object-fixture > summary::-webkit-details-marker {
  display: none;
}

.context-cache-object-fixture > summary strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.context-cache-object-fixture > summary span {
  flex: 0 0 auto;
  color: #28415f;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-object-fixture .pseudo-code {
  margin: 0;
  border-top: 1px solid #d7dde6;
  border-radius: 0;
  font-size: 11px;
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .context-cache-snapshot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .context-cache-object-snapshots {
    gap: 9px;
    padding: 12px;
  }

  .context-cache-object-header {
    display: grid;
    gap: 5px;
  }

  .context-cache-object-header h3 {
    font-size: 18px;
  }

  .context-cache-snapshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .context-cache-snapshot-grid article {
    padding: 7px;
  }

  .context-cache-object-fixture > summary {
    align-items: start;
    padding: 9px;
  }

  .context-cache-object-fixture .pseudo-code {
    font-size: 10px;
  }
}

.context-cache-branch-semantics {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 16px;
  border: 1px solid #cfd8e3;
  border-left: 4px solid #2b8a63;
  border-radius: var(--radius);
  background: #f6fbf8;
}

.context-cache-branch-semantics-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-branch-semantics-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}

.context-cache-branch-semantics-header p {
  max-width: 900px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.context-cache-branch-semantics-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.context-cache-branch-semantics-grid article {
  display: grid;
  min-width: 0;
  gap: 5px;
  align-content: start;
  padding: 9px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-branch-semantics-grid article:nth-child(2n) {
  background: #fffaf0;
}

.context-cache-branch-semantics-grid span {
  color: #2b6748;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-branch-semantics-grid code,
.context-cache-branch-semantics-grid p,
.context-cache-branch-semantics-grid small {
  min-width: 0;
  margin: 0;
  color: #152033;
  font-size: 10px;
  line-height: 1.28;
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-cache-branch-semantics-grid p,
.context-cache-branch-semantics-grid small {
  color: var(--muted);
}

.context-cache-branch-semantics-grid small {
  font-weight: 760;
}

.context-cache-branch-fixture {
  display: grid;
  min-width: 0;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
  overflow: hidden;
}

.context-cache-branch-fixture > summary {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.context-cache-branch-fixture > summary::-webkit-details-marker {
  display: none;
}

.context-cache-branch-fixture > summary strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.context-cache-branch-fixture > summary span {
  flex: 0 0 auto;
  color: #2b6748;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-branch-fixture .pseudo-code {
  margin: 0;
  border-top: 1px solid #d7dde6;
  border-radius: 0;
  font-size: 11px;
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .context-cache-branch-semantics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .context-cache-branch-semantics {
    gap: 9px;
    padding: 12px;
  }

  .context-cache-branch-semantics-header {
    display: grid;
    gap: 5px;
  }

  .context-cache-branch-semantics-header h3 {
    font-size: 18px;
  }

  .context-cache-branch-semantics-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .context-cache-branch-semantics-grid article {
    padding: 7px;
  }

  .context-cache-branch-fixture > summary {
    align-items: start;
    padding: 9px;
  }

  .context-cache-branch-fixture .pseudo-code {
    font-size: 10px;
  }
}

.context-cache-golden-tests {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d7dde6;
  border-left: 4px solid #a15c24;
  border-radius: var(--radius);
  background: #fffaf3;
}

.context-cache-golden-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-golden-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}

.context-cache-golden-header p {
  max-width: 900px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.context-cache-golden-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.context-cache-golden-grid article {
  display: grid;
  min-width: 0;
  gap: 6px;
  align-content: start;
  padding: 10px;
  border: 1px solid #e0d5c5;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-golden-grid article:nth-child(3n + 2) {
  background: #f8fbff;
}

.context-cache-golden-grid strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.context-cache-golden-grid span,
.context-cache-golden-grid code {
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-cache-golden-grid code {
  color: #4f3217;
  font-weight: 760;
}

.context-cache-golden-fixture {
  display: grid;
  min-width: 0;
  border: 1px solid #e0d5c5;
  border-radius: var(--radius);
  background: #ffffff;
  overflow: hidden;
}

.context-cache-golden-fixture > summary {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.context-cache-golden-fixture > summary::-webkit-details-marker {
  display: none;
}

.context-cache-golden-fixture > summary strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.context-cache-golden-fixture > summary span {
  flex: 0 0 auto;
  color: #7c4519;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-golden-fixture .pseudo-code {
  margin: 0;
  border-top: 1px solid #e0d5c5;
  border-radius: 0;
  background: #fffdf8;
  font-size: 11px;
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .context-cache-golden-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .context-cache-golden-tests {
    gap: 9px;
    padding: 12px;
  }

  .context-cache-golden-header {
    display: grid;
    gap: 5px;
  }

  .context-cache-golden-header h3 {
    font-size: 18px;
  }

  .context-cache-golden-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .context-cache-golden-grid article {
    padding: 8px;
  }

  .context-cache-golden-fixture > summary {
    align-items: start;
    padding: 9px;
  }

  .context-cache-golden-fixture .pseudo-code {
    font-size: 10px;
  }
}

.context-cache-packet-diagram {
  display: grid;
  min-width: 0;
  gap: 14px;
  padding: 16px;
  border: 1px solid #cfd8e3;
  border-left: 4px solid #2b8a63;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.context-cache-packet-diagram-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-packet-diagram-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.context-cache-packet-diagram-header p {
  max-width: 900px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.context-cache-packet-rail {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.context-cache-packet-rail li {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 6px;
  align-content: start;
  padding: 11px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-packet-rail li:nth-child(2n) {
  background: #f6fbf8;
}

.context-cache-packet-rail li:not(:last-child)::after {
  content: ">";
  position: absolute;
  top: 16px;
  right: 6px;
  z-index: 1;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid #bfd0de;
  border-radius: 999px;
  color: #28415f;
  background: #ffffff;
  font-size: 11px;
  font-weight: 850;
}

.context-cache-packet-rail span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #2b8a63;
  font-size: 11px;
  font-weight: 850;
}

.context-cache-packet-rail strong,
.context-cache-packet-rail code,
.context-cache-packet-rail p,
.context-cache-packet-rail small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.context-cache-packet-rail strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.context-cache-packet-rail code {
  color: #152033;
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
}

.context-cache-packet-rail p,
.context-cache-packet-rail small {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.context-cache-packet-rail small {
  color: #5e6e80;
  font-weight: 760;
}

.context-cache-lane-diagram {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 12px;
}

.context-cache-lane-table,
.context-cache-packet-shape {
  display: grid;
  min-width: 0;
  gap: 10px;
  align-content: start;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-packet-shape {
  background: #fffaf0;
}

.context-cache-lane-table h4,
.context-cache-packet-shape h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.context-cache-lane-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr);
  border: 1px solid #dbe2ea;
  border-top: 0;
  background: #ffffff;
}

.context-cache-lane-row:first-of-type {
  border-top: 1px solid #dbe2ea;
  border-radius: var(--radius) var(--radius) 0 0;
}

.context-cache-lane-row:last-child {
  border-radius: 0 0 var(--radius) var(--radius);
}

.context-cache-lane-row:nth-child(2n + 1):not(.is-header) {
  background: #f6fbf8;
}

.context-cache-lane-row.is-header {
  color: #28415f;
  background: #eef7fb;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-lane-row > * {
  min-width: 0;
  padding: 8px;
  border-left: 1px solid #dbe2ea;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.context-cache-lane-row > *:first-child {
  border-left: 0;
}

.context-cache-lane-row strong,
.context-cache-lane-row code {
  color: #152033;
}

.context-cache-packet-shape .pseudo-code {
  min-width: 0;
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.context-cache-equation-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.context-cache-equation-grid > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 8px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-equation-grid span {
  color: #28415f;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-equation-grid code {
  color: #152033;
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-cache-module-blueprint-visible {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 16px;
  border: 1px solid #cfd8e3;
  border-left: 4px solid #9a6b12;
  border-radius: var(--radius);
  background: #fffaf0;
}

.context-cache-module-blueprint-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-module-blueprint-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}

.context-cache-module-blueprint-header p {
  max-width: 900px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.context-cache-module-blueprint-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.context-cache-module-blueprint-grid li {
  display: grid;
  min-width: 0;
  gap: 6px;
  align-content: start;
  padding: 11px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-module-blueprint-grid li:nth-child(2n) {
  background: #f6fbf8;
}

.context-cache-module-blueprint-grid span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #9a6b12;
  font-size: 11px;
  font-weight: 850;
}

.context-cache-module-blueprint-grid code,
.context-cache-module-blueprint-grid strong,
.context-cache-module-blueprint-grid p,
.context-cache-module-blueprint-grid small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.context-cache-module-blueprint-grid code {
  width: fit-content;
  max-width: 100%;
  color: #152033;
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
}

.context-cache-module-blueprint-grid strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.3;
}

.context-cache-module-blueprint-grid p,
.context-cache-module-blueprint-grid small {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.context-cache-module-blueprint-grid small {
  color: #5e6e80;
  font-weight: 760;
}

.context-cache-branch-matrix-visible {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 16px;
  border: 1px solid #cfd8e3;
  border-left: 4px solid #2f6f9f;
  border-radius: var(--radius);
  background: #f8fafc;
}

.context-cache-branch-matrix-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-branch-matrix-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}

.context-cache-branch-matrix-header p {
  max-width: 900px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.context-cache-branch-table {
  display: grid;
  min-width: 0;
}

.context-cache-branch-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.75fr) minmax(0, 1.35fr) minmax(0, 1.15fr);
  border: 1px solid #dbe2ea;
  border-top: 0;
  background: #ffffff;
}

.context-cache-branch-row:first-child {
  border-top: 1px solid #dbe2ea;
  border-radius: var(--radius) var(--radius) 0 0;
}

.context-cache-branch-row:last-child {
  border-radius: 0 0 var(--radius) var(--radius);
}

.context-cache-branch-row:nth-child(2n + 1):not(.is-header) {
  background: #f6fbf8;
}

.context-cache-branch-row.is-header {
  color: #28415f;
  background: #eef7fb;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-branch-row > * {
  min-width: 0;
  padding: 8px;
  border-left: 1px solid #dbe2ea;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.context-cache-branch-row > *:first-child {
  border-left: 0;
}

.context-cache-branch-row strong,
.context-cache-branch-row code {
  color: #152033;
}

.context-cache-turn-board {
  display: grid;
  min-width: 0;
  gap: 14px;
  padding: 16px;
  border: 1px solid #cfd8e3;
  border-left: 4px solid #2f6f9f;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-turn-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-turn-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.context-cache-turn-header p {
  max-width: 900px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.context-cache-turn-fixture-grid,
.context-cache-packet-split {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 10px;
}

.context-cache-turn-fixture-grid > div,
.context-cache-packet-card {
  display: grid;
  min-width: 0;
  gap: 7px;
  align-content: start;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.context-cache-turn-fixture-grid > div:nth-child(2),
.context-cache-packet-card:nth-child(2) {
  background: #f6fbf8;
}

.context-cache-turn-fixture-grid > div:nth-child(3),
.context-cache-packet-card:nth-child(3) {
  background: #fffaf0;
}

.context-cache-turn-flow {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.context-cache-turn-step {
  display: grid;
  min-width: 0;
  gap: 8px;
  align-content: start;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-top: 4px solid #2f6f9f;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-turn-step:nth-child(2n) {
  border-top-color: #2b8a63;
  background: #f6fbf8;
}

.context-cache-turn-step:nth-child(3n) {
  border-top-color: #9a6b12;
  background: #fffaf0;
}

.context-cache-turn-step > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #2f6f9f;
  font-size: 11px;
  font-weight: 850;
}

.context-cache-turn-step h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.context-cache-turn-step dl {
  display: grid;
  min-width: 0;
  gap: 7px;
  margin: 0;
}

.context-cache-turn-step dl > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.context-cache-turn-step dt,
.context-cache-turn-fixture-grid span,
.context-cache-packet-card > span {
  color: #5e6e80;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-turn-step dd,
.context-cache-turn-fixture-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.context-cache-executable-trace {
  display: grid;
  min-width: 0;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.context-cache-executable-trace > summary {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.context-cache-executable-trace > summary::-webkit-details-marker {
  display: none;
}

.context-cache-executable-trace > summary::after {
  flex: 0 0 auto;
  content: "+";
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #c8d2de;
  border-radius: 50%;
  color: #28415f;
  background: #ffffff;
  font-size: 15px;
  font-weight: 850;
}

.context-cache-executable-trace[open] > summary::after {
  content: "-";
}

.context-cache-executable-trace > summary strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.context-cache-executable-trace > summary > span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid #c8d2de;
  border-radius: 999px;
  color: #28415f;
  background: #ffffff;
  font-size: 11px;
  font-weight: 850;
}

.context-cache-trace-table {
  display: grid;
  min-width: 0;
  padding: 0 12px 12px;
}

.context-cache-trace-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(92px, 0.7fr) minmax(160px, 1.1fr) minmax(0, 1.25fr) minmax(0, 1.35fr) minmax(0, 1.35fr);
  border: 1px solid #dbe2ea;
  border-top: 0;
  background: #ffffff;
}

.context-cache-trace-row:first-child {
  border-top: 1px solid #dbe2ea;
  border-radius: var(--radius) var(--radius) 0 0;
}

.context-cache-trace-row:last-child {
  border-radius: 0 0 var(--radius) var(--radius);
}

.context-cache-trace-row:nth-child(2n + 1):not(.is-header) {
  background: #f6fbf8;
}

.context-cache-trace-row.is-header {
  color: #28415f;
  background: #eef7fb;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-trace-row > * {
  min-width: 0;
  padding: 9px;
  border-left: 1px solid #dbe2ea;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-cache-trace-row > *:first-child {
  border-left: 0;
}

.context-cache-trace-row strong,
.context-cache-trace-row code {
  color: #152033;
}

@media (max-width: 900px) {
  .context-cache-trace-row {
    grid-template-columns: 1fr;
  }

  .context-cache-trace-row.is-header {
    display: none;
  }

  .context-cache-trace-row > * {
    border-left: 0;
    border-top: 1px solid #dbe2ea;
  }

  .context-cache-trace-row > *:first-child {
    border-top: 0;
  }

  .context-cache-trace-row:not(.is-header) > *::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: #5e6e80;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
  }
}

.context-cache-mechanics-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 12px 12px;
}

.context-cache-mechanics-detail {
  display: grid;
  min-width: 0;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.context-cache-mechanics-detail > summary {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.context-cache-mechanics-detail > summary::-webkit-details-marker {
  display: none;
}

.context-cache-mechanics-detail > summary::after {
  flex: 0 0 auto;
  content: "+";
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #c8d2de;
  border-radius: 50%;
  color: #28415f;
  background: #ffffff;
  font-size: 15px;
  font-weight: 850;
}

.context-cache-mechanics-detail[open] > summary::after {
  content: "-";
}

.context-cache-mechanics-detail > summary strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.context-cache-mechanics-detail > summary > span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid #c8d2de;
  border-radius: 999px;
  color: #28415f;
  background: #ffffff;
  font-size: 11px;
  font-weight: 850;
}

.prompt-authority-detail {
  display: grid;
  min-width: 0;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.prompt-authority-detail > summary {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.prompt-authority-detail > summary::-webkit-details-marker {
  display: none;
}

.prompt-authority-detail > summary::after {
  flex: 0 0 auto;
  content: "+";
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #c8d2de;
  border-radius: 50%;
  color: #28415f;
  background: #ffffff;
  font-size: 15px;
  font-weight: 850;
}

.prompt-authority-detail[open] > summary::after {
  content: "-";
}

.prompt-authority-detail > summary strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.prompt-authority-detail > summary > span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid #c8d2de;
  border-radius: 999px;
  color: #28415f;
  background: #ffffff;
  font-size: 11px;
  font-weight: 850;
}

.prompt-authority-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 10px;
  padding: 0 12px 12px;
}

.prompt-authority-card {
  display: grid;
  min-width: 0;
  gap: 10px;
  align-content: start;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.prompt-authority-card:nth-child(2) {
  background: #f6fbf8;
}

.prompt-authority-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.prompt-authority-table,
.prompt-authority-section-grid {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.prompt-authority-table > div,
.prompt-authority-section-grid > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 8px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.prompt-authority-table > div:nth-child(2n),
.prompt-authority-section-grid > div:nth-child(2n) {
  background: #fffaf0;
}

.prompt-authority-table span,
.prompt-authority-section-grid span {
  display: inline-grid;
  width: fit-content;
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #2f9e44;
  font-size: 10px;
  font-weight: 850;
}

.prompt-authority-section-grid span {
  width: auto;
  color: #28415f;
  background: #eef7fb;
  text-transform: uppercase;
}

.prompt-authority-table strong,
.prompt-authority-section-grid strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.prompt-authority-table p,
.prompt-authority-section-grid p,
.prompt-authority-table code,
.prompt-authority-card .pseudo-code {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.prompt-authority-table code {
  color: #152033;
}

.context-lane-detail {
  display: grid;
  min-width: 0;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.context-lane-detail > summary {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.context-lane-detail > summary::-webkit-details-marker {
  display: none;
}

.context-lane-detail > summary::after {
  flex: 0 0 auto;
  content: "+";
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #c8d2de;
  border-radius: 50%;
  color: #28415f;
  background: #ffffff;
  font-size: 15px;
  font-weight: 850;
}

.context-lane-detail[open] > summary::after {
  content: "-";
}

.context-lane-detail > summary strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.context-lane-detail > summary > span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid #c8d2de;
  border-radius: 999px;
  color: #28415f;
  background: #ffffff;
  font-size: 11px;
  font-weight: 850;
}

.context-lane-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 10px;
  padding: 0 12px 12px;
}

.context-lane-card {
  display: grid;
  min-width: 0;
  gap: 10px;
  align-content: start;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-lane-card:nth-child(2) {
  background: #f6fbf8;
}

.context-lane-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.context-lane-table {
  display: grid;
  min-width: 0;
}

.context-lane-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(90px, 0.85fr) minmax(92px, 0.8fr) minmax(120px, 1fr) minmax(150px, 1.2fr) minmax(130px, 1.05fr);
  border: 1px solid #dbe2ea;
  border-top: 0;
  background: #ffffff;
}

.context-lane-row:first-child {
  border-top: 1px solid #dbe2ea;
  border-radius: var(--radius) var(--radius) 0 0;
}

.context-lane-row:last-child {
  border-radius: 0 0 var(--radius) var(--radius);
}

.context-lane-row:nth-child(2n + 1):not(.is-header) {
  background: #f6fbf8;
}

.context-lane-row.is-header {
  color: #28415f;
  background: #eef7fb;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-lane-row > * {
  min-width: 0;
  padding: 8px;
  border-left: 1px solid #dbe2ea;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-lane-row > *:first-child {
  border-left: 0;
}

.context-lane-row strong,
.context-lane-row code {
  color: #152033;
}

.context-lane-rule-grid {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.context-lane-rule-grid > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 8px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-lane-rule-grid span {
  color: #28415f;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-lane-rule-grid strong,
.context-lane-rule-grid p,
.context-lane-card .pseudo-code {
  min-width: 0;
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.context-lane-rule-grid strong {
  color: var(--ink);
}

.context-lane-rule-grid p {
  color: var(--muted);
}

@media (max-width: 900px) {
  .context-lane-grid {
    grid-template-columns: 1fr;
  }

  .context-lane-row {
    grid-template-columns: 1fr;
  }

  .context-lane-row.is-header {
    display: none;
  }

  .context-lane-row > * {
    border-left: 0;
    border-top: 1px solid #dbe2ea;
  }

  .context-lane-row > *:first-child {
    border-top: 0;
  }

  .context-lane-row:not(.is-header) > *::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: #5e6e80;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
  }
}

.context-cache-mechanic-card {
  display: grid;
  min-width: 0;
  gap: 10px;
  align-content: start;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.context-cache-mechanic-card:nth-child(2) {
  background: #f6fbf8;
}

.context-cache-mechanic-card header {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.context-cache-mechanic-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.context-cache-message-strip {
  display: grid;
  min-width: 0;
  grid-template-columns: 0.9fr 1.2fr 0.9fr;
  gap: 8px;
}

.context-cache-message-strip > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 9px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-message-strip > div.is-marker {
  border-color: #9a6b12;
  border-top: 4px solid #9a6b12;
  background: #fffaf0;
}

.context-cache-message-strip span {
  display: inline-grid;
  width: fit-content;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #2f6f9f;
  font-size: 10px;
  font-weight: 850;
}

.context-cache-message-strip strong,
.context-cache-message-strip small,
.context-cache-message-strip em {
  display: block;
  min-width: 0;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.context-cache-message-strip strong {
  color: var(--ink);
  font-size: 12px;
}

.context-cache-message-strip small,
.context-cache-message-strip em {
  color: var(--muted);
  font-size: 11px;
}

.context-cache-message-strip em {
  font-style: normal;
  font-weight: 760;
}

.context-cache-usage-merge {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.context-cache-usage-merge > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 8px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-usage-merge span {
  color: #28415f;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-usage-merge code,
.context-cache-usage-merge p,
.context-cache-mechanic-card .pseudo-code {
  min-width: 0;
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.context-cache-usage-merge code {
  color: #152033;
}

.context-cache-usage-merge p {
  color: var(--muted);
}

@media (max-width: 900px) {
  .prompt-authority-grid,
  .context-cache-mechanics-grid,
  .context-cache-message-strip {
    grid-template-columns: 1fr;
  }
}

.context-cache-packet-card .pseudo-code {
  min-width: 0;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.context-cache-rule-strip {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: 10px;
}

.context-cache-rule-strip p {
  min-width: 0;
  margin: 0;
  padding: 11px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  color: var(--muted);
  background: #f8fafc;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.context-cache-clone-sheet {
  display: grid;
  min-width: 0;
  gap: 13px;
  border: 1px solid #cfd8e3;
  border-left: 4px solid #2b8a63;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-clone-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
  padding: 15px;
  cursor: pointer;
  list-style: none;
}

.context-cache-clone-header::-webkit-details-marker {
  display: none;
}

.context-cache-clone-header::after {
  flex: 0 0 auto;
  content: "+";
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #c8d2de;
  border-radius: 50%;
  color: #28415f;
  background: #f8fafc;
  font-size: 15px;
  font-weight: 850;
}

.context-cache-clone-sheet[open] .context-cache-clone-header::after {
  content: "-";
}

.context-cache-clone-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}

.context-cache-clone-header p {
  max-width: 900px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.context-cache-clone-flow {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0 15px;
  list-style: none;
}

.context-cache-clone-step {
  display: grid;
  min-width: 0;
  gap: 7px;
  align-content: start;
  padding: 11px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.context-cache-clone-step:nth-child(2n) {
  background: #f6fbf8;
}

.context-cache-clone-step:nth-child(3n) {
  background: #fffaf0;
}

.context-cache-clone-step h4 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.context-cache-clone-step code {
  display: block;
  color: #28415f;
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-cache-clone-step p,
.context-cache-clone-step strong {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.context-cache-clone-step strong {
  color: #152033;
  font-weight: 760;
}

.context-cache-clone-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 15px 15px;
}

.context-cache-clone-card {
  display: grid;
  min-width: 0;
  gap: 8px;
  align-content: start;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.context-cache-clone-card:nth-child(2) {
  background: #f6fbf8;
}

.context-cache-clone-card:nth-child(3) {
  background: #fffaf0;
}

.context-cache-clone-card > span {
  color: #28415f;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.context-cache-clone-card .pseudo-code {
  min-width: 0;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.context-cache-clone-checks {
  display: grid;
  min-width: 0;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.context-cache-clone-checks li {
  overflow-wrap: anywhere;
}

.context-cache-code-skeleton {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 10px;
  padding: 0 15px 15px;
}

.context-cache-code-skeleton article {
  display: grid;
  min-width: 0;
  gap: 8px;
  align-content: start;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.context-cache-code-skeleton article:nth-child(2) {
  background: #f6fbf8;
}

.context-cache-code-skeleton span {
  color: #28415f;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-code-skeleton .pseudo-code {
  min-width: 0;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.context-cache-scenario-grid span,
.context-cache-track .section-label,
.context-cache-rule-grid span,
.context-cache-formula-strip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-scenario-grid p,
.context-cache-track p,
.context-cache-rule-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.context-cache-lab {
  display: grid;
  min-width: 0;
  gap: 14px;
  padding: 16px;
  border: 1px solid #cfd8e3;
  border-left: 4px solid #2f6f9f;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-lab-header {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.context-cache-lab-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.context-cache-lab-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.context-cache-lab-fixture,
.context-cache-lab-flow,
.context-cache-object-grid,
.context-cache-contract-board,
.context-cache-contract-grid,
.context-cache-business-rules {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.context-cache-diagram-board {
  display: grid;
  min-width: 0;
  gap: 13px;
  padding: 15px;
  border: 1px solid #cfd8e3;
  border-radius: var(--radius);
  background: #f8fafc;
}

.context-cache-diagram-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-diagram-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}

.context-cache-diagram-header p {
  max-width: 880px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.context-cache-implementation-flow {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.context-cache-implementation-flow li {
  display: grid;
  min-width: 0;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-content: start;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-implementation-flow li:nth-child(3n + 2) {
  background: #f6fbf8;
}

.context-cache-implementation-flow li:nth-child(3n) {
  background: #fffaf0;
}

.context-cache-node-index {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #2f6f9f;
  font-size: 12px;
  font-weight: 850;
}

.context-cache-implementation-flow small,
.context-cache-implementation-flow h4,
.context-cache-implementation-flow p,
.context-cache-implementation-flow code {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.context-cache-implementation-flow small {
  color: #5e6e80;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-implementation-flow h4 {
  margin: 3px 0 6px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.context-cache-implementation-flow p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.context-cache-implementation-flow p strong {
  color: #28415f;
}

.context-cache-implementation-flow code {
  width: fit-content;
  max-width: 100%;
  color: #28415f;
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
}

.context-cache-decision-matrix {
  display: grid;
  min-width: 0;
  gap: 0;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
}

.context-cache-decision-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(130px, 0.72fr) minmax(120px, 0.65fr) minmax(0, 1.2fr) minmax(0, 1.2fr);
  gap: 0;
  border-top: 1px solid #dbe2ea;
}

.context-cache-decision-row:first-child {
  border-top: 0;
}

.context-cache-decision-row.is-header {
  color: #28415f;
  background: #eef7fb;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-decision-row > * {
  min-width: 0;
  padding: 9px 10px;
  border-left: 1px solid #dbe2ea;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.context-cache-decision-row > *:first-child {
  border-left: 0;
}

.context-cache-decision-row strong {
  color: var(--ink);
}

.context-cache-recipe-board {
  display: grid;
  min-width: 0;
  gap: 13px;
  background: #ffffff;
}

.context-cache-recipe-board > summary {
  background: #ffffff;
}

.context-cache-recipe-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.context-cache-recipe-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}

.context-cache-recipe-header p {
  max-width: 860px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.context-cache-recipe-intro {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.context-cache-recipe-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 10px;
}

.context-cache-pseudocode-card,
.context-cache-invariant-card,
.context-cache-bug-card {
  display: grid;
  min-width: 0;
  gap: 9px;
  align-content: start;
  padding: 13px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.context-cache-invariant-card {
  background: #f6fbf8;
}

.context-cache-pseudocode-card h4,
.context-cache-invariant-card h4,
.context-cache-bug-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.context-cache-pseudocode-card .pseudo-code {
  min-width: 0;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.context-cache-invariant-card ul {
  display: grid;
  min-width: 0;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.context-cache-invariant-card li {
  overflow-wrap: anywhere;
}

.context-cache-type-board,
.context-cache-accounting-board,
.context-cache-module-board,
.context-cache-acceptance-board {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.context-cache-recipe-subheader {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.context-cache-recipe-subheader h4 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.context-cache-type-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 10px;
}

.context-cache-type-card {
  display: grid;
  min-width: 0;
  gap: 8px;
  align-content: start;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.context-cache-type-card:nth-child(2n) {
  background: #f6fbf8;
}

.context-cache-type-card > span {
  color: #5e6e80;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-type-card h5 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.context-cache-type-card .pseudo-code {
  min-width: 0;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.context-cache-accounting-table {
  display: grid;
  min-width: 0;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
}

.context-cache-accounting-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(130px, 0.72fr) minmax(0, 1.18fr) minmax(0, 1.25fr) minmax(0, 1fr);
  border-top: 1px solid #dbe2ea;
}

.context-cache-accounting-row:first-child {
  border-top: 0;
}

.context-cache-accounting-row.is-header {
  color: #28415f;
  background: #eef7fb;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-accounting-row > * {
  min-width: 0;
  padding: 9px 10px;
  border-left: 1px solid #dbe2ea;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.context-cache-accounting-row > *:first-child {
  border-left: 0;
}

.context-cache-accounting-row strong {
  color: var(--ink);
}

.context-cache-module-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 10px;
}

.context-cache-module-card {
  display: grid;
  min-width: 0;
  gap: 8px;
  align-content: start;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.context-cache-module-card:nth-child(2n) {
  background: #fffaf0;
}

.context-cache-module-card > span {
  color: #5e6e80;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-module-card h5 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.context-cache-module-card .pseudo-code {
  min-width: 0;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.context-cache-acceptance-table {
  display: grid;
  min-width: 0;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
}

.context-cache-acceptance-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.1fr) minmax(0, 1.25fr);
  border-top: 1px solid #dbe2ea;
}

.context-cache-acceptance-row:first-child {
  border-top: 0;
}

.context-cache-acceptance-row.is-header {
  color: #28415f;
  background: #eef7fb;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-acceptance-row > * {
  min-width: 0;
  padding: 9px 10px;
  border-left: 1px solid #dbe2ea;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.context-cache-acceptance-row > *:first-child {
  border-left: 0;
}

.context-cache-acceptance-row strong {
  color: var(--ink);
}

.context-cache-phase-table {
  display: grid;
  min-width: 0;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
}

.context-cache-phase-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(86px, 0.55fr) minmax(150px, 1fr) minmax(0, 1.15fr) minmax(150px, 1fr) minmax(0, 1.1fr);
  border-top: 1px solid #dbe2ea;
}

.context-cache-phase-row:first-child {
  border-top: 0;
}

.context-cache-phase-row.is-header {
  color: #28415f;
  background: #eef7fb;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-phase-row > * {
  min-width: 0;
  padding: 9px 10px;
  border-left: 1px solid #dbe2ea;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.context-cache-phase-row > *:first-child {
  border-left: 0;
}

.context-cache-phase-row strong {
  color: var(--ink);
}

.context-cache-bug-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 10px;
}

.context-cache-bug-card {
  background: #fffaf0;
}

.context-cache-bug-card:nth-child(2n) {
  background: #f8fafc;
}

.context-cache-bug-card > span {
  color: #5e6e80;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-bug-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.context-cache-bug-card p strong {
  color: #28415f;
}

.context-cache-lab-fixture {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.context-cache-lab-fixture > div {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 12px;
  border: 1px solid #e0e7ef;
  border-radius: var(--radius);
  background: #f8fafc;
}

.context-cache-lab-fixture > div:nth-child(2) {
  background: #fffaf0;
}

.context-cache-lab-fixture span,
.context-cache-rule-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-lab-fixture p,
.context-cache-rule-card p,
.context-cache-lab-object p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.context-cache-lab-flow {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.context-cache-lab-flow li {
  display: grid;
  min-width: 0;
  min-height: 156px;
  gap: 7px;
  align-content: start;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.context-cache-lab-flow li:nth-child(2n) {
  background: #f6fbf8;
}

.context-cache-lab-flow span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #2f6f9f;
  font-size: 12px;
  font-weight: 850;
}

.context-cache-lab-flow strong,
.context-cache-lab-flow p,
.context-cache-lab-flow small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.context-cache-lab-flow strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.context-cache-lab-flow p {
  margin: 0;
  color: #28415f;
  font-size: 12px;
  line-height: 1.35;
}

.context-cache-lab-flow small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.context-cache-object-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.context-cache-lab-object {
  display: grid;
  min-width: 0;
  gap: 9px;
  align-content: start;
  padding: 13px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-lab-object:nth-child(2n) {
  background: #f8fafc;
}

.context-cache-lab-object h4 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.context-cache-lab-object .pseudo-code {
  min-width: 0;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.context-cache-contract-board {
  padding: 13px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.context-cache-test-board {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 13px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-contract-intro {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.context-cache-contract-intro h4 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.context-cache-contract-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.context-cache-contract-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.context-cache-test-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  gap: 10px;
}

.context-cache-contract-card {
  display: grid;
  min-width: 0;
  gap: 9px;
  align-content: start;
  padding: 13px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-contract-card:nth-child(2n) {
  background: #fffaf0;
}

.context-cache-test-card {
  display: grid;
  min-width: 0;
  gap: 10px;
  align-content: start;
  padding: 13px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.context-cache-test-card:nth-child(2n) {
  background: #f6fbf8;
}

.context-cache-test-card header {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.context-cache-contract-card > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.context-cache-test-card header span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.context-cache-test-card h5 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.context-cache-contract-signature {
  display: block;
  min-width: 0;
  padding: 9px;
  border: 1px solid #dbe2ea;
  border-radius: var(--radius);
  color: #28415f;
  background: #f8fafc;
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}

.context-cache-contract-card strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 12px;
}

.context-cache-contract-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.context-cache-contract-assertions {
  display: grid;
  min-width: 0;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.context-cache-contract-assertions li {
  overflow-wrap: anywhere;
}

.context-cache-test-code {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.context-cache-test-code strong {
  color: var(--ink);
  font-size: 12px;
}

.context-cache-test-code .pseudo-code {
  min-width: 0;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.context-cache-test-assertions {
  display: grid;
  min-width: 0;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.context-cache-test-assertions li {
  overflow-wrap: anywhere;
}

.context-cache-business-rules {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.context-cache-rule-card {
  display: grid;
  min-width: 0;
  gap: 6px;
  align-content: start;
  padding: 12px;
  border: 1px solid #e0e7ef;
  border-radius: var(--radius);
  background: #f8fafc;
}

.context-cache-rule-card strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.context-cache-tracks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.context-cache-track {
  display: grid;
  min-width: 0;
  gap: 12px;
  align-content: start;
  padding: 15px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-track:nth-child(2) {
  border-top: 4px solid #75583d;
}

.context-cache-track:first-child {
  border-top: 4px solid #2f6f9f;
}

.context-cache-track h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
}

.context-cache-track ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.context-cache-track li {
  display: grid;
  min-width: 0;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid #e0e7ef;
  border-radius: var(--radius);
  background: #f8fafc;
}

.context-cache-track li > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #2f6f9f;
  font-size: 11px;
  font-weight: 850;
}

.context-cache-track:nth-child(2) li > span {
  background: #75583d;
}

.context-cache-track strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.context-cache-reducer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.context-cache-reducer-card {
  display: grid;
  min-width: 0;
  gap: 12px;
  align-content: start;
  padding: 16px;
  border: 1px solid #d7dde6;
  border-left: 4px solid #498f6f;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-cache-reducer-card:nth-child(2) {
  border-left-color: #7561b6;
}

.context-cache-reducer-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.context-cache-rule-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.context-cache-rule-grid > div {
  display: grid;
  min-width: 0;
  gap: 7px;
  align-content: start;
  padding: 11px;
  border: 1px solid #e0e7ef;
  border-radius: var(--radius);
  background: #f8fafc;
}

.context-cache-formula-strip {
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.context-cache-formula-strip code {
  color: #28415f;
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}

.source-map-bridge-section {
  display: grid;
  gap: 16px;
}

.source-map-bridge-flow {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-map-bridge-flow li {
  display: grid;
  min-width: 0;
  min-height: 118px;
  gap: 7px;
  align-content: start;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.source-map-bridge-flow li:nth-child(2n) {
  background: #f6fbf8;
}

.source-map-bridge-flow li:nth-child(3n) {
  background: #fffaf0;
}

.source-map-bridge-flow span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #7561b6;
  font-size: 12px;
  font-weight: 850;
}

.source-map-bridge-flow strong,
.source-map-bridge-flow small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.source-map-bridge-flow strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
}

.source-map-bridge-flow small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.source-map-bridge-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 12px;
}

.source-map-bridge-card {
  display: grid;
  min-width: 0;
  gap: 12px;
  align-content: start;
  padding: 15px;
  border: 1px solid #d7dde6;
  border-left: 4px solid #7561b6;
  border-radius: var(--radius);
  background: #ffffff;
}

.source-map-bridge-card:nth-child(2n) {
  border-left-color: #2f6f9f;
}

.source-map-bridge-card header {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(130px, auto);
  gap: 10px;
  align-items: start;
}

.source-map-bridge-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
}

.source-map-bridge-card header .token {
  min-width: 0;
  max-width: 180px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.source-map-route,
.source-map-rule-grid {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.source-map-route {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.source-map-rule-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.source-map-route > div,
.source-map-rule-grid > div {
  display: grid;
  min-width: 0;
  gap: 6px;
  align-content: start;
  padding: 11px;
  border: 1px solid #e0e7ef;
  border-radius: var(--radius);
  background: #f8fafc;
}

.source-map-route span,
.source-map-rule-grid span,
.source-map-bridge-rule strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.source-map-route strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.source-map-route code,
.source-map-rule-grid p,
.source-map-bridge-rule p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
}

.source-map-bridge-rule {
  display: grid;
  min-width: 0;
  gap: 7px;
  padding: 13px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.swimlane-section {
  display: grid;
  gap: 16px;
}

.swimlane-lane-strip {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.swimlane-lane-card {
  display: grid;
  min-width: 0;
  gap: 7px;
  align-content: start;
  padding: 13px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.swimlane-lane-card strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.swimlane-lane-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.swimlane-flow {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.swimlane-flow li {
  display: grid;
  min-width: 0;
  min-height: 124px;
  gap: 7px;
  align-content: start;
  padding: 13px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.swimlane-flow li:nth-child(2n) {
  background: #f1fbf4;
}

.swimlane-flow li:nth-child(3n) {
  background: #fffaf0;
}

.swimlane-flow span,
.swimlane-handoff-card header > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #2f6f9f;
  font-size: 12px;
  font-weight: 850;
}

.swimlane-flow strong,
.swimlane-flow small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.swimlane-flow strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.swimlane-flow small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.swimlane-handoff-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(560px, 100%), 1fr));
  gap: 14px;
}

.swimlane-handoff-card {
  display: grid;
  min-width: 0;
  gap: 13px;
  align-content: start;
  padding: 16px;
  border: 1px solid #d7dde6;
  border-left: 4px solid #2f6f9f;
  border-radius: var(--radius);
  background: #ffffff;
}

.swimlane-handoff-card:nth-child(2n) {
  border-left-color: #498f6f;
}

.swimlane-handoff-card header {
  display: grid;
  min-width: 0;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.swimlane-handoff-card header > strong {
  max-width: 180px;
  padding: 5px 8px;
  border: 1px solid #d7dde6;
  border-radius: 999px;
  color: #28415f;
  background: #f8fafc;
  font-size: 11px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.swimlane-handoff-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.swimlane-state-grid,
.swimlane-branch-grid {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.swimlane-state-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.swimlane-branch-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.swimlane-state-grid > div,
.swimlane-branch-grid > div {
  display: grid;
  min-width: 0;
  gap: 7px;
  align-content: start;
  padding: 11px;
  border: 1px solid #e0e7ef;
  border-radius: var(--radius);
  background: #f8fafc;
}

.swimlane-state-grid span,
.swimlane-branch-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.swimlane-state-grid p,
.swimlane-branch-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.reimplementation-section {
  display: grid;
  gap: 16px;
}

.recipe-scenario,
.recipe-state-shape {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 14px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
}

.recipe-scenario {
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: start;
  background: #f8fafc;
}

.recipe-state-shape {
  background: #fffaf0;
}

.recipe-scenario strong,
.recipe-state-shape span,
.recipe-logic-grid span,
.recipe-assertions strong,
.recipe-test-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.recipe-scenario span,
.recipe-state-shape code {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.recipe-state-shape code {
  white-space: normal;
}

.recipe-reducer-flow {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recipe-reducer-flow li {
  display: grid;
  min-width: 0;
  min-height: 132px;
  gap: 7px;
  align-content: start;
  padding: 13px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.recipe-reducer-flow li:nth-child(2n) {
  background: #f1fbf4;
}

.recipe-reducer-flow li:nth-child(3n) {
  background: #eef7fb;
}

.recipe-reducer-flow span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #75583d;
  font-size: 12px;
  font-weight: 850;
}

.recipe-reducer-flow strong,
.recipe-reducer-flow small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.recipe-reducer-flow strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
}

.recipe-reducer-flow small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.recipe-reducer-stack {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.recipe-reducer-card {
  display: grid;
  min-width: 0;
  gap: 13px;
  padding: 16px;
  border: 1px solid #d7dde6;
  border-left: 4px solid #75583d;
  border-radius: var(--radius);
  background: #ffffff;
}

.recipe-reducer-card:nth-child(2n) {
  border-left-color: #2f6f9f;
}

.recipe-reducer-card header {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.72fr);
  gap: 12px;
  align-items: start;
}

.recipe-reducer-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
}

.recipe-reducer-card header code {
  min-width: 0;
  padding: 10px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  color: #28415f;
  background: #f8fafc;
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.recipe-logic-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.recipe-logic-grid > div,
.recipe-assertions,
.recipe-test-card > div {
  display: grid;
  min-width: 0;
  gap: 7px;
  align-content: start;
  padding: 11px;
  border: 1px solid #e0e7ef;
  border-radius: var(--radius);
  background: #f8fafc;
}

.recipe-logic-grid p,
.recipe-assertions li,
.recipe-test-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.recipe-assertions ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.recipe-test-board {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 15px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.recipe-test-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 10px;
}

.recipe-test-card {
  display: grid;
  min-width: 0;
  gap: 10px;
  align-content: start;
  padding: 13px;
  border: 1px solid #d7dde6;
  border-top: 4px solid #498f6f;
  border-radius: var(--radius);
  background: #ffffff;
}

.recipe-test-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.operating-model-section {
  display: grid;
  gap: 14px;
}

.operating-scenario {
  display: grid;
  min-width: 0;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.operating-scenario strong,
.operating-input-item span,
.operating-state-grid span,
.operating-operation span,
.operating-branch-grid span,
.operating-formula span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.operating-scenario p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.operating-input-strip {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.operating-input-item {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.operating-input-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.operating-simulator {
  display: grid;
  min-width: 0;
  gap: 14px;
  padding: 16px;
  border: 1px solid #cdd8e4;
  border-radius: var(--radius);
  background: #f8fafc;
}

.operating-simulator-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.operating-simulator-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
}

.operating-simulator-header > span {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid #bfd0de;
  border-radius: 999px;
  color: #28415f;
  background: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.simulator-lane-list {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.simulator-lane-node {
  position: relative;
  display: grid;
  min-width: 0;
}

.simulator-node-main {
  display: grid;
  min-width: 0;
  min-height: 170px;
  gap: 8px;
  align-content: start;
  padding: 13px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.simulator-node-main span,
.simulator-board-title span,
.simulator-branch-grid span,
.simulator-math-grid span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.simulator-node-main strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.simulator-node-main p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.simulator-lane-node i {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 2;
  display: grid;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  place-items: center;
  border: 1px solid #c8d2de;
  border-radius: 999px;
  color: #28415f;
  background: #ffffff;
  font-style: normal;
  font-size: 12px;
  font-weight: 850;
}

.simulator-branch-board,
.simulator-cache-math {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.simulator-board-title {
  display: flex;
  min-width: 0;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 2px;
}

.simulator-board-title strong {
  color: var(--ink);
  font-size: 13px;
}

.simulator-branch-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.simulator-branch-grid > div,
.simulator-math-grid > div {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 10px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.simulator-branch-grid p,
.simulator-branch-grid strong,
.simulator-math-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.simulator-branch-grid strong {
  color: #28415f;
  font-weight: 760;
}

.simulator-math-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.simulator-math-grid code {
  display: block;
  min-width: 0;
  padding: 8px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  color: #28415f;
  background: #f8fafc;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

.operating-flow {
  display: grid;
  min-width: 0;
  gap: 0;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.operating-step-card {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 0 0 18px;
}

.operating-step-card:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 36px;
  bottom: 0;
  left: 18px;
  width: 2px;
  background: #c8d2de;
}

.operating-step-index {
  position: relative;
  z-index: 1;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #bfd0de;
  border-radius: 999px;
  color: #ffffff;
  background: #2f6f9f;
  font-size: 13px;
  font-weight: 850;
}

.operating-step-card > article {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.operating-step-card header,
.operating-calculation-card header {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: start;
  justify-content: space-between;
}

.operating-step-card h3,
.operating-calculation-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.operating-state-grid,
.operating-branch-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.operating-branch-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.operating-state-grid > div,
.operating-branch-grid > div,
.operating-operation,
.operating-rule {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 10px;
  border: 1px solid #e0e7ef;
  border-radius: var(--radius);
  background: #f8fafc;
}

.operating-state-grid p,
.operating-branch-grid p,
.operating-operation p,
.operating-rule p,
.operating-calculation-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.operating-code {
  min-width: 0;
  margin: 0;
  padding: 12px;
  overflow-x: auto;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #0f172a;
  color: #e5edf7;
  font-size: 12px;
  line-height: 1.5;
}

.operating-code code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.operating-calculation-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.operating-calculation-card {
  display: grid;
  min-width: 0;
  gap: 10px;
  align-content: start;
  padding: 14px;
  border: 1px solid #d7dde6;
  border-top: 4px solid #498f6f;
  border-radius: var(--radius);
  background: #ffffff;
}

.operating-calculation-card h3 {
  font-size: 15px;
}

.operating-formula {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.operating-formula code {
  display: block;
  min-width: 0;
  padding: 9px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
  color: #28415f;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  white-space: normal;
}

.operating-rule strong {
  color: var(--ink);
  font-size: 12px;
}

.value-ledger-section {
  display: grid;
  gap: 16px;
}

.value-ledger-scenario {
  display: grid;
  min-width: 0;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.value-ledger-scenario strong,
.value-code-grid span,
.value-rule-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.value-ledger-scenario p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.value-ledger-flow {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.value-ledger-flow li {
  display: grid;
  min-width: 0;
  min-height: 126px;
  gap: 7px;
  align-content: start;
  padding: 13px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.value-ledger-flow li:nth-child(2n) {
  background: #f8fafc;
}

.value-ledger-flow li:nth-child(3n) {
  background: #fffaf0;
}

.value-ledger-flow span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #7561b6;
  font-size: 12px;
  font-weight: 850;
}

.value-ledger-flow strong,
.value-ledger-flow small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.value-ledger-flow strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.value-ledger-flow small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.value-ledger-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(640px, 100%), 1fr));
  gap: 14px;
}

.value-ledger-card {
  display: grid;
  min-width: 0;
  gap: 13px;
  align-content: start;
  padding: 16px;
  border: 1px solid #d7dde6;
  border-left: 4px solid #7561b6;
  border-radius: var(--radius);
  background: #ffffff;
}

.value-ledger-card:nth-child(2n) {
  border-left-color: #2f6f9f;
}

.value-ledger-card header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.value-ledger-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.25;
}

.value-code-grid,
.value-rule-grid {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.value-code-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.value-rule-grid {
  grid-template-columns: 1.05fr 0.95fr;
}

.value-code-grid > div,
.value-rule-grid > div {
  display: grid;
  min-width: 0;
  gap: 7px;
  align-content: start;
  padding: 11px;
  border: 1px solid #e0e7ef;
  border-radius: var(--radius);
  background: #f8fafc;
}

.value-code-grid pre {
  min-width: 0;
  margin: 0;
  padding: 10px;
  overflow-x: auto;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  color: #e5edf7;
  background: #0f172a;
  font-size: 12px;
  line-height: 1.45;
}

.value-code-grid code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.value-rule-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.implementation-vector-section {
  display: grid;
  gap: 16px;
}

.vector-flow-diagram {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vector-flow-diagram li {
  display: grid;
  min-width: 0;
  min-height: 128px;
  gap: 7px;
  align-content: start;
  padding: 13px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.vector-flow-diagram li:nth-child(2n) {
  background: #f1fbf4;
}

.vector-flow-diagram li:nth-child(3n) {
  background: #fffaf0;
}

.vector-flow-diagram span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #2f6f9f;
  font-size: 12px;
  font-weight: 850;
}

.vector-flow-diagram strong,
.vector-flow-diagram small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.vector-flow-diagram strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.vector-flow-diagram small {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  line-height: 1.4;
}

.implementation-vector-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(620px, 100%), 1fr));
  gap: 14px;
}

.implementation-vector-card {
  display: grid;
  min-width: 0;
  gap: 13px;
  align-content: start;
  padding: 16px;
  border: 1px solid #d7dde6;
  border-left: 4px solid #7561b6;
  border-radius: var(--radius);
  background: #ffffff;
}

.implementation-vector-card:nth-child(2n) {
  border-left-color: #498f6f;
}

.implementation-vector-card header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.implementation-vector-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.25;
}

.implementation-vector-card > p,
.vector-fixture p,
.vector-business-rule p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.vector-signature,
.vector-fixture,
.vector-business-rule,
.vector-assertions {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.vector-signature code {
  display: block;
  min-width: 0;
  padding: 10px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  color: #28415f;
  background: #f8fafc;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  white-space: normal;
}

.vector-fixture {
  padding: 11px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.vector-fixture span,
.vector-test-grid span,
.vector-assertions strong,
.vector-business-rule strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.vector-test-grid,
.vector-rule-grid {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.vector-test-grid {
  grid-template-columns: 1.15fr 0.85fr 1.15fr;
}

.vector-rule-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.vector-test-grid > div,
.vector-assertions,
.vector-business-rule {
  display: grid;
  min-width: 0;
  gap: 7px;
  align-content: start;
  padding: 11px;
  border: 1px solid #e0e7ef;
  border-radius: var(--radius);
  background: #ffffff;
}

.vector-test-grid code {
  display: block;
  min-width: 0;
  color: #28415f;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
}

.vector-test-grid ul,
.vector-assertions ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.vector-test-grid li,
.vector-assertions li {
  overflow-wrap: anywhere;
}

.vector-code {
  min-width: 0;
  margin: 0;
  padding: 12px;
  overflow-x: auto;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #0f172a;
  color: #e5edf7;
  font-size: 12px;
  line-height: 1.5;
}

.vector-code code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.clone-kernel-section {
  display: grid;
  gap: 16px;
}

.clone-kernel-flow {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clone-kernel-flow li {
  display: grid;
  min-width: 0;
  min-height: 132px;
  gap: 7px;
  align-content: start;
  padding: 13px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.clone-kernel-flow li:nth-child(2n) {
  background: #f8fafc;
}

.clone-kernel-flow li:nth-child(3n) {
  background: #f1fbf4;
}

.clone-kernel-flow span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #28415f;
  font-size: 12px;
  font-weight: 850;
}

.clone-kernel-flow strong,
.clone-kernel-flow small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.clone-kernel-flow strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.clone-kernel-flow small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.clone-kernel-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(560px, 100%), 1fr));
  gap: 14px;
}

.clone-kernel-card {
  display: grid;
  min-width: 0;
  gap: 13px;
  align-content: start;
  padding: 16px;
  border: 1px solid #d7dde6;
  border-left: 4px solid #28415f;
  border-radius: var(--radius);
  background: #ffffff;
}

.clone-kernel-card:nth-child(2n) {
  border-left-color: #498f6f;
}

.clone-kernel-card header,
.clone-gate-card header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.clone-kernel-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.25;
}

.clone-signature code,
.clone-observable code {
  display: block;
  min-width: 0;
  padding: 10px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  color: #28415f;
  background: #f8fafc;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  white-space: normal;
}

.clone-io-grid,
.clone-rule-grid,
.clone-gate-strip {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.clone-io-grid,
.clone-gate-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.clone-rule-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.clone-io-grid > div,
.clone-rule-grid > div,
.clone-gate-strip > div,
.clone-source-map,
.clone-gate-card > div {
  display: grid;
  min-width: 0;
  gap: 7px;
  align-content: start;
  padding: 11px;
  border: 1px solid #e0e7ef;
  border-radius: var(--radius);
  background: #f8fafc;
}

.clone-io-grid span,
.clone-rule-grid span,
.clone-source-map span,
.clone-gate-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.clone-io-grid p,
.clone-rule-grid p,
.clone-gate-strip p,
.clone-source-map li,
.clone-gate-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.clone-gate-strip strong,
.clone-observable strong {
  color: var(--ink);
  font-size: 12px;
}

.clone-source-map ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.clone-gate-board {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 15px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.clone-gate-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
}

.clone-gate-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.clone-gate-card {
  display: grid;
  min-width: 0;
  gap: 10px;
  align-content: start;
  padding: 13px;
  border: 1px solid #d7dde6;
  border-top: 4px solid #7561b6;
  border-radius: var(--radius);
  background: #ffffff;
}

.clone-gate-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.clone-observable {
  background: #ffffff !important;
}

.builder-guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.26fr) minmax(300px, 0.74fr);
  gap: 18px;
  align-items: start;
}

.builder-answer-lane {
  display: grid;
  min-width: 0;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid #cfd8e3;
  border-left: 4px solid #2f6f9f;
  border-radius: var(--radius);
  background: #f8fafc;
}

.builder-answer-card {
  display: grid;
  min-width: 0;
  gap: 12px;
  align-content: start;
}

.builder-answer-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.builder-answer-card p {
  max-width: 760px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.builder-answer-actions {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.builder-answer-route-card {
  display: grid;
  min-width: 0;
  gap: 5px;
  align-content: start;
  padding: 10px;
  border: 1px solid #c8d2de;
  border-radius: var(--radius);
  color: inherit;
  background: #ffffff;
  text-align: left;
}

.builder-answer-route-card:hover,
.builder-answer-route-card:focus-visible {
  border-color: #2f6f9f;
  outline: none;
  background: #eef7fb;
}

.builder-answer-route-card.is-primary {
  border-color: #94b9d8;
  background: #edf7fc;
  box-shadow: inset 0 0 0 1px #d2e6f2;
}

.builder-answer-route-card span {
  color: #5e6e80;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.builder-answer-route-card strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.builder-answer-route-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.builder-answer-flow {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.builder-answer-flow li {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 5px;
  align-content: start;
  padding: 10px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.builder-answer-flow li:nth-child(2n) {
  background: #f6fbf8;
}

.builder-answer-flow li:not(:last-child)::after {
  content: ">";
  position: absolute;
  top: 12px;
  right: 8px;
  color: #2f6f9f;
  font-size: 12px;
  font-weight: 900;
}

.builder-answer-flow span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #2f6f9f;
}

.builder-answer-flow strong,
.builder-answer-flow small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.builder-answer-flow strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.builder-answer-flow small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.builder-question-board {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.builder-question-board-header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #dbe2ea;
}

.builder-question-board-header h3 {
  max-width: 660px;
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.builder-guide-stats {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.builder-guide-stats span {
  padding: 5px 8px;
  border: 1px solid #c8d2de;
  border-radius: 999px;
  color: #28415f;
  background: #ffffff;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.1;
}

.builder-question-group-grid {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.builder-question-group {
  min-width: 0;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.builder-question-group {
  display: grid;
}

.builder-question-group + .builder-question-group {
  margin-top: 0;
}

.builder-question-group-header {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: start;
  justify-content: space-between;
  border-left: 4px solid #2f6f9f;
}

.builder-question-group-header div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.builder-question-group-header span {
  color: #5e6e80;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.builder-question-group-header h4 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
}

.builder-question-group-header p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.builder-question-group > .builder-question-stack {
  padding: 0 14px 14px;
}

.builder-question-stack {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: 10px;
}

.builder-path-card {
  display: grid;
  min-width: 0;
  gap: 12px;
  align-content: start;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.builder-path-card > summary {
  background: #f8fafc;
}

.builder-path-card h3,
.builder-question-card h3 {
  margin: 0;
  font-size: 18px;
}

.builder-path-list {
  display: grid;
  gap: 0;
  margin: 0;
  max-height: 920px;
  overflow: auto;
  padding: 0 16px 16px;
  list-style: none;
}

.builder-path-step {
  display: grid;
  min-width: 0;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid #dbe2ea;
}

.builder-path-step > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #bfd0de;
  border-radius: 999px;
  color: #28415f;
  background: #ffffff;
  font-size: 11px;
  font-weight: 850;
}

.builder-path-step strong,
.builder-path-step p {
  display: block;
}

.builder-path-step strong {
  color: var(--ink);
  font-size: 13px;
}

.builder-path-step p,
.builder-question-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.builder-question-card {
  display: grid;
  min-width: 0;
  gap: 10px;
  align-content: start;
  padding: 14px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.builder-question-card:nth-child(3n) {
  background: #f6fbf8;
}

.builder-question-card.is-primary {
  grid-column: 1 / -1;
  border-color: #a9c4dc;
  border-left: 5px solid #2f6f9f;
  background: #f2f8fc;
}

.builder-question-top {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.builder-question-priority {
  padding: 4px 7px;
  border: 1px solid #b8d2c4;
  border-radius: 999px;
  color: #147a5b;
  background: #e5f5ee;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.1;
  text-transform: uppercase;
}

.builder-question-route {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.builder-question-route span,
.builder-question-route strong {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.builder-question-route span {
  color: #5e6e80;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.builder-question-route strong {
  padding: 3px 7px;
  border: 1px solid #d7dde6;
  border-radius: 999px;
  color: #28415f;
  background: #f8fafc;
  font-size: 11px;
  line-height: 1.2;
}

.builder-question-card h3 {
  font-size: 15px;
  line-height: 1.25;
}

.builder-question-artifact {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 8px 9px;
  border: 1px solid #dbe2ea;
  border-radius: var(--radius);
  background: #f8fafc;
}

.builder-question-artifact span {
  color: #5e6e80;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.builder-question-artifact strong {
  color: #28415f;
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.guide-jump-button {
  width: fit-content;
  max-width: 100%;
  min-width: 74px;
  padding: 7px 10px;
  border: 1px solid #c8d2de;
  border-radius: 999px;
  color: #28415f;
  background: #ffffff;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.15;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.guide-jump-button:hover,
.guide-jump-button:focus-visible {
  border-color: #2f6f9f;
  outline: none;
  background: #eef7fb;
}

.prompt-flow-diagram {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.prompt-flow-diagram li {
  min-width: 0;
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.prompt-flow-diagram span,
.prompt-flow-diagram strong {
  display: block;
}

.prompt-flow-diagram span {
  width: 26px;
  height: 26px;
  margin-bottom: 8px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 850;
  line-height: 26px;
  text-align: center;
}

.prompt-flow-diagram strong {
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.packet-scenario {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  margin-bottom: 14px;
  padding: 12px;
  border-left: 4px solid #2f6f9f;
  background: #f8fafc;
}

.packet-scenario strong {
  color: #28415f;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.packet-scenario span {
  color: var(--ink);
  font-weight: 760;
}

.request-packet-flow {
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
}

.packet-final-shape {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.packet-final-shape h3 {
  margin: 0;
  font-size: 17px;
}

.packet-final-shape ul,
.packet-pitfalls ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.request-packet-stack {
  display: grid;
  gap: 16px;
}

.request-packet-card {
  display: grid;
  min-width: 0;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.request-packet-card:first-child {
  border-top: 0;
  padding-top: 0;
}

.request-packet-card header {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(160px, auto);
  gap: 12px;
  align-items: flex-start;
}

.request-packet-card h3 {
  margin: 0;
  font-size: 20px;
}

.request-packet-card header .token {
  min-width: 0;
  max-width: 220px;
  white-space: normal;
  text-align: right;
  overflow-wrap: anywhere;
}

.request-packet-card > p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.packet-example {
  min-width: 0;
  padding: 12px;
  border-left: 3px solid #2f9e44;
  background: #f1fbf4;
}

.packet-example span,
.packet-pitfalls strong {
  display: block;
  margin-bottom: 6px;
  color: #2b6748;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.packet-example p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.packet-pitfalls {
  min-width: 0;
  padding: 12px;
  border: 1px solid #f2d9a7;
  border-radius: var(--radius);
  background: #fffaf0;
}

.rebuild-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.rebuild-flow li {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 124px;
  gap: 7px;
  align-content: start;
  padding: 13px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.rebuild-flow li:nth-child(3n + 2) {
  background: #f1fbf4;
}

.rebuild-flow li:nth-child(3n) {
  background: #fffaf0;
}

.rebuild-flow li:not(:last-child)::after {
  content: ">";
  position: absolute;
  top: 50%;
  right: -10px;
  z-index: 1;
  display: grid;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: #ffffff;
  font-size: 11px;
  font-weight: 850;
}

.rebuild-flow li:nth-child(4n)::after {
  display: none;
}

.rebuild-flow span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #28415f;
  font-size: 12px;
  font-weight: 850;
}

.rebuild-flow strong,
.rebuild-flow small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.rebuild-flow strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.rebuild-flow small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.rebuild-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 12px;
}

.rebuild-step-card {
  display: grid;
  min-width: 0;
  gap: 12px;
  align-content: start;
  padding: 15px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.rebuild-step-card:nth-child(2n) {
  background: #f8fafc;
}

.rebuild-step-card header {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.rebuild-step-card h3 {
  margin: 0;
  font-size: 18px;
}

.rebuild-step-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.rebuild-io-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rebuild-io-grid > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.rebuild-io-grid span {
  display: block;
  margin-bottom: 6px;
  color: #28415f;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rebuild-io-grid p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.trace-scenario {
  border-left-color: #7561b6;
  background: #f8f7ff;
}

.trace-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.trace-flow li {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 116px;
  gap: 7px;
  align-content: start;
  padding: 13px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.trace-flow li:nth-child(3n + 1) {
  background: #f8fafc;
}

.trace-flow li:nth-child(3n + 2) {
  background: #f8f7ff;
}

.trace-flow li:nth-child(3n) {
  background: #f1fbf4;
}

.trace-flow li:not(:last-child)::after {
  content: ">";
  position: absolute;
  top: 50%;
  right: -10px;
  z-index: 1;
  display: grid;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: #ffffff;
  font-size: 11px;
  font-weight: 850;
}

.trace-flow li:nth-child(4n)::after {
  display: none;
}

.trace-flow span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #3a3268;
  font-size: 12px;
  font-weight: 850;
}

.trace-flow strong,
.trace-flow small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.trace-flow strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.trace-flow small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.trace-state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 14px;
}

.trace-state-card {
  display: grid;
  min-width: 0;
  gap: 12px;
  align-content: start;
  padding: 16px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.trace-state-card:nth-child(2n) {
  background: #f8fafc;
}

.trace-state-card header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.trace-state-card h3 {
  margin: 0;
  font-size: 19px;
}

.trace-state-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.trace-object {
  display: grid;
  min-width: 0;
  gap: 7px;
  padding: 12px;
  border-left: 3px solid #7561b6;
  background: #f8f7ff;
}

.trace-object span,
.trace-branch-rules span {
  color: #3a3268;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trace-object pre {
  min-width: 0;
  margin: 0;
  overflow-x: auto;
  white-space: pre-wrap;
}

.trace-object code {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.trace-branch-rules {
  display: grid;
  min-width: 0;
  gap: 7px;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.trace-branch-rules ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.logic-diagram-stack {
  display: grid;
  gap: 18px;
}

.logic-diagram-card {
  display: grid;
  min-width: 0;
  gap: 14px;
  padding: 18px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.logic-diagram-card:nth-child(2n) {
  background: #f8fafc;
}

.logic-diagram-card header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.logic-diagram-card h3 {
  margin: 0;
  font-size: 21px;
}

.logic-diagram-card header .token {
  width: fit-content;
  justify-self: start;
  white-space: nowrap;
}

.logic-diagram-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.logic-diagram-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logic-diagram-flow li {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 116px;
  gap: 7px;
  align-content: start;
  padding: 13px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.logic-diagram-flow li:nth-child(3n + 2) {
  background: #f1fbf4;
}

.logic-diagram-flow li:nth-child(3n) {
  background: #fffaf0;
}

.logic-diagram-flow li:not(:last-child)::after {
  content: ">";
  position: absolute;
  top: 50%;
  right: -10px;
  z-index: 1;
  display: grid;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: #ffffff;
  font-size: 11px;
  font-weight: 850;
}

.logic-diagram-flow span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #28415f;
  font-size: 12px;
  font-weight: 850;
}

.logic-diagram-flow strong,
.logic-diagram-flow small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.logic-diagram-flow strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.logic-diagram-flow small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.logic-node-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 10px;
}

.logic-node-card {
  display: grid;
  min-width: 0;
  gap: 9px;
  align-content: start;
  padding: 13px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.logic-node-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.logic-node-card > span {
  display: inline-flex;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid #d7dde6;
  border-radius: 999px;
  color: #28415f;
  background: #f8fafc;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.logic-node-card > p,
.logic-branch p,
.logic-rebuild-rule p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.logic-branch,
.logic-output {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 9px;
  border-radius: var(--radius);
  background: #f8fafc;
}

.logic-branch strong,
.logic-output strong,
.logic-rebuild-rule strong {
  color: #28415f;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logic-output code {
  color: var(--ink);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.logic-rebuild-rule {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-left: 3px solid #2f6f9f;
  background: #f8fafc;
}

.workbook-module-stack {
  display: grid;
  gap: 14px;
}

.workbook-module-card {
  display: grid;
  min-width: 0;
  gap: 13px;
  padding: 18px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.workbook-module-card:nth-child(2n) {
  background: #f8fafc;
}

.workbook-module-card header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.workbook-module-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
}

.workbook-module-card header .token {
  width: fit-content;
  max-width: 280px;
  overflow-wrap: anywhere;
}

.workbook-module-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.workbook-grid,
.workbook-rule-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.workbook-code-panel,
.workbook-rule-grid > div,
.workbook-trap {
  display: grid;
  min-width: 0;
  gap: 7px;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.workbook-code-panel > span,
.workbook-rule-grid span,
.workbook-trap span {
  color: #28415f;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.workbook-code {
  min-width: 0;
  margin: 0;
  padding: 11px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
  overflow-x: auto;
}

.workbook-code code {
  color: #152033;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.workbook-rule-grid ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.workbook-rule-grid li {
  overflow-wrap: anywhere;
}

.workbook-trap {
  border-left: 3px solid #8a5a00;
  background: #fffaf0;
}

.workbook-trap p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.source-call-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.source-call-flow li {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 118px;
  gap: 7px;
  align-content: start;
  padding: 13px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.source-call-flow li:nth-child(3n + 1) {
  background: #f8fafc;
}

.source-call-flow li:nth-child(3n + 2) {
  background: #f6fbf8;
}

.source-call-flow li:nth-child(3n) {
  background: #fffaf0;
}

.source-call-flow li:not(:last-child)::after {
  content: ">";
  position: absolute;
  top: 50%;
  right: -10px;
  z-index: 1;
  display: grid;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: #ffffff;
  font-size: 11px;
  font-weight: 850;
}

.source-call-flow li:nth-child(3n)::after {
  display: none;
}

.source-call-flow span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #2f6f9f;
  font-size: 12px;
  font-weight: 850;
}

.source-call-flow strong,
.source-call-flow small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.source-call-flow strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
}

.source-call-flow small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.source-call-node-stack {
  display: grid;
  gap: 14px;
}

.source-call-node-card {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.source-call-node-card:nth-child(2n) {
  background: #f8fafc;
}

.source-call-node-card header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.source-call-node-card h3 {
  margin: 0;
  font-size: 20px;
}

.source-call-node-card header .token {
  width: fit-content;
  max-width: 240px;
  overflow-wrap: anywhere;
}

.source-call-route,
.source-call-grid,
.source-call-rule-grid {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.source-call-route {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.source-call-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.source-call-rule-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.source-call-route > div,
.source-call-grid > div,
.source-call-rule-grid > div {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 11px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.source-call-route span,
.source-call-grid span,
.source-call-rule-grid span {
  color: #28415f;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.source-call-route strong {
  color: var(--ink);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.source-call-route code {
  color: #152033;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.source-call-grid p,
.source-call-rule-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.source-call-rule-grid > div {
  border-left: 3px solid #2f6f9f;
}

.skeleton-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(430px, 100%), 1fr));
  gap: 14px;
}

.skeleton-module-card {
  display: grid;
  min-width: 0;
  gap: 12px;
  align-content: start;
  padding: 16px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.skeleton-module-card:nth-child(2n) {
  background: #f8fafc;
}

.skeleton-module-card header {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.skeleton-module-card h3 {
  margin: 0;
  font-size: 19px;
}

.skeleton-module-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.skeleton-signature {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 12px;
  border-left: 3px solid #28415f;
  background: #f8fafc;
}

.skeleton-signature span,
.skeleton-io-grid span,
.skeleton-list-grid span {
  color: #28415f;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.skeleton-signature code {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.skeleton-io-grid,
.skeleton-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.skeleton-io-grid > div,
.skeleton-list-grid > div {
  display: grid;
  min-width: 0;
  gap: 7px;
  align-content: start;
  padding: 10px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.skeleton-io-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.skeleton-list-grid ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.skeleton-list-grid li,
.skeleton-io-grid p,
.skeleton-signature code {
  min-width: 0;
  overflow-wrap: anywhere;
}

.decision-table-stack {
  display: grid;
  gap: 16px;
}

.decision-table-card {
  display: grid;
  min-width: 0;
  gap: 14px;
  padding: 18px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.decision-table-card:nth-child(2n) {
  background: #f8fafc;
}

.decision-table-card header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.decision-table-card h3 {
  margin: 0;
  font-size: 20px;
}

.decision-table-card header .token {
  width: fit-content;
  max-width: 290px;
  justify-self: start;
  overflow-wrap: anywhere;
}

.decision-why {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 12px;
  border-left: 3px solid #2f6f9f;
  background: #f8fafc;
}

.decision-why strong,
.decision-row-fields span {
  color: #28415f;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.decision-why p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.decision-row-grid {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.decision-row-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.decision-row-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #c8d2de;
  border-radius: 999px;
  color: #28415f;
  font-size: 12px;
  font-weight: 850;
}

.decision-row-fields {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.decision-row-fields div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.decision-row-fields p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.acceptance-test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(430px, 100%), 1fr));
  gap: 14px;
}

.acceptance-test-card {
  display: grid;
  min-width: 0;
  gap: 12px;
  align-content: start;
  padding: 16px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.acceptance-test-card:nth-child(3n) {
  background: #f6fbf8;
}

.acceptance-test-card header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.acceptance-test-card h3 {
  margin: 0;
  font-size: 19px;
}

.acceptance-test-card header .token {
  width: fit-content;
  max-width: 170px;
  justify-self: start;
  overflow-wrap: anywhere;
}

.acceptance-flow-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.acceptance-flow-grid > div,
.acceptance-assertions,
.acceptance-failure {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 10px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.acceptance-flow-grid span,
.acceptance-assertions span,
.acceptance-failure strong {
  color: #28415f;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.acceptance-flow-grid p,
.acceptance-failure p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.acceptance-assertions ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.acceptance-assertions li {
  overflow-wrap: anywhere;
}

.acceptance-failure {
  border-left: 3px solid #9f6f2f;
  background: #fffaf1;
}

.snapshot-scenario {
  border-left-color: #2f6f9f;
  background: #f8fafc;
}

.snapshot-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 14px;
}

.snapshot-card {
  display: grid;
  min-width: 0;
  gap: 12px;
  align-content: start;
  padding: 16px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.snapshot-card:nth-child(2n) {
  background: #f8fafc;
}

.snapshot-card header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.snapshot-card h3 {
  margin: 0;
  font-size: 19px;
}

.snapshot-card header .token {
  width: fit-content;
  max-width: 210px;
  justify-self: start;
  overflow-wrap: anywhere;
}

.snapshot-code {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 12px;
  border-left: 3px solid #28415f;
  background: #f8fafc;
  overflow-x: auto;
  white-space: pre-wrap;
}

.snapshot-code code {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.snapshot-card > p,
.snapshot-rule p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.snapshot-rule {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.snapshot-rule strong {
  color: #28415f;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.context-scenario {
  border-left-color: #2f6f9f;
  background: #f8fafc;
}

.context-assembly-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.context-assembly-flow li {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 124px;
  gap: 7px;
  align-content: start;
  padding: 13px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.context-assembly-flow li:nth-child(3n + 2) {
  background: #f1fbf4;
}

.context-assembly-flow li:nth-child(3n) {
  background: #fffaf0;
}

.context-assembly-flow li:not(:last-child)::after {
  content: ">";
  position: absolute;
  top: 50%;
  right: -10px;
  z-index: 1;
  display: grid;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: #ffffff;
  font-size: 11px;
  font-weight: 850;
}

.context-assembly-flow span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #2f6f9f;
  font-size: 12px;
  font-weight: 850;
}

.context-assembly-flow strong,
.context-assembly-flow small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.context-assembly-flow strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.context-assembly-flow small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.context-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.context-source-card {
  display: grid;
  min-width: 0;
  gap: 12px;
  align-content: start;
  padding: 14px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.context-source-card:nth-child(2n) {
  background: #f8fafc;
}

.context-source-card header {
  display: grid;
  min-width: 0;
  gap: 8px;
  align-items: flex-start;
  justify-content: stretch;
}

.context-source-card h3 {
  margin: 0;
  font-size: 17px;
}

.context-source-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.context-ledger-stack {
  display: grid;
  gap: 16px;
}

.context-ledger-card {
  display: grid;
  min-width: 0;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.context-ledger-card:first-child {
  border-top: 0;
  padding-top: 0;
}

.context-ledger-card header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.context-ledger-card h3 {
  margin: 0;
  font-size: 20px;
}

.context-ledger-card > p {
  margin: 0;
  color: var(--muted);
}

.context-example {
  min-width: 0;
  padding: 12px;
  border-left: 3px solid #2f6f9f;
  background: #f8fafc;
}

.context-example span {
  display: block;
  margin-bottom: 6px;
  color: #28415f;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.context-example p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.context-invariant-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.context-invariant-card {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf0;
}

.context-invariant-card h3 {
  margin: 0;
  font-size: 16px;
}

.context-invariant-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.prompt-stack-scenario {
  border-left-color: #2f9e44;
  background: #f1fbf4;
}

.prompt-branch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.prompt-branch-card {
  display: grid;
  min-width: 0;
  gap: 12px;
  align-content: start;
  padding: 14px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.prompt-branch-card:nth-child(2n) {
  background: #f8fafc;
}

.prompt-branch-card header {
  display: grid;
  gap: 4px;
}

.prompt-branch-card h3 {
  margin: 0;
  font-size: 17px;
}

.prompt-branch-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.branch-rule,
.branch-result {
  min-width: 0;
  padding: 10px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.branch-rule span,
.branch-result span {
  display: block;
  margin-bottom: 6px;
  color: #28415f;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.branch-rule p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.branch-result code {
  display: block;
  min-width: 0;
  color: #172033;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.prompt-stack-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.prompt-stack-flow li {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 126px;
  gap: 7px;
  align-content: start;
  padding: 13px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.prompt-stack-flow li:nth-child(3n + 2) {
  background: #f1fbf4;
}

.prompt-stack-flow li:nth-child(3n) {
  background: #fffaf0;
}

.prompt-stack-flow li:not(:last-child)::after {
  content: ">";
  position: absolute;
  top: 50%;
  right: -10px;
  z-index: 1;
  display: grid;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: #ffffff;
  font-size: 11px;
  font-weight: 850;
}

.prompt-stack-flow span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #2f9e44;
  font-size: 12px;
  font-weight: 850;
}

.prompt-stack-flow strong,
.prompt-stack-flow small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.prompt-stack-flow strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.prompt-stack-flow small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.prompt-stack-ledger {
  display: grid;
  gap: 16px;
}

.prompt-stack-card {
  display: grid;
  min-width: 0;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.prompt-stack-card:first-child {
  border-top: 0;
  padding-top: 0;
}

.prompt-stack-card header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.prompt-stack-card h3 {
  margin: 0;
  font-size: 20px;
}

.prompt-stack-card > p {
  margin: 0;
  color: var(--muted);
}

.prompt-stack-example {
  min-width: 0;
  padding: 12px;
  border-left: 3px solid #2f9e44;
  background: #f1fbf4;
}

.prompt-stack-example span {
  display: block;
  margin-bottom: 6px;
  color: #2b6748;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prompt-stack-example p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.prompt-stack-invariant-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.prompt-stack-invariant-card {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.prompt-stack-invariant-card h3 {
  margin: 0;
  font-size: 16px;
}

.prompt-stack-invariant-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.cache-scenario {
  border-left-color: #7c5c1c;
  background: #fffaf0;
}

.cache-accounting-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(146px, 1fr));
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.cache-accounting-flow li {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 126px;
  gap: 7px;
  align-content: start;
  padding: 13px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.cache-accounting-flow li:nth-child(2n) {
  background: #f1fbf4;
}

.cache-accounting-flow li:not(:last-child)::after {
  content: ">";
  position: absolute;
  top: 50%;
  right: -10px;
  z-index: 1;
  display: grid;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: #ffffff;
  font-size: 11px;
  font-weight: 850;
}

.cache-accounting-flow span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #7c5c1c;
  font-size: 12px;
  font-weight: 850;
}

.cache-accounting-flow strong,
.cache-accounting-flow small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.cache-accounting-flow strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.cache-accounting-flow small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.cache-formula-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.cache-formula-card {
  display: grid;
  min-width: 0;
  gap: 11px;
  align-content: start;
  padding: 14px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.cache-formula-card:nth-child(2n) {
  background: #f8fafc;
}

.cache-formula-card h3 {
  margin: 0;
  font-size: 17px;
}

.cache-formula-card code {
  display: block;
  min-width: 0;
  max-width: 100%;
  padding: 10px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  color: #172033;
  background: #f8fafc;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.cache-formula-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.cache-ledger-stack {
  display: grid;
  gap: 16px;
}

.cache-ledger-card {
  display: grid;
  min-width: 0;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.cache-ledger-card:first-child {
  border-top: 0;
  padding-top: 0;
}

.cache-ledger-card header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.cache-ledger-card h3 {
  margin: 0;
  font-size: 20px;
}

.cache-ledger-card > p {
  margin: 0;
  color: var(--muted);
}

.cache-example {
  min-width: 0;
  padding: 12px;
  border-left: 3px solid #7c5c1c;
  background: #fffaf0;
}

.cache-example span {
  display: block;
  margin-bottom: 6px;
  color: #76531a;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cache-example p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.cache-invariant-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.cache-invariant-card {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f1fbf4;
}

.cache-invariant-card h3 {
  margin: 0;
  font-size: 16px;
}

.cache-invariant-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.worked-stage-stack {
  display: grid;
  gap: 16px;
}

.worked-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.worked-stage:first-child {
  border-top: 0;
  padding-top: 0;
}

.worked-stage header,
.worked-stage > p,
.worked-stage .io-grid,
.worked-stage .pseudo-code,
.worked-stage .evidence-drawer {
  grid-column: 1;
}

.worked-stage h3,
.recipe-card h3,
.mechanic-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.worked-stage > p,
.recipe-card p,
.mechanic-card p {
  margin: 0;
  color: var(--muted);
}

.io-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.io-grid > div {
  min-width: 0;
  padding: 12px;
  border-left: 3px solid #2f9e44;
  background: #f1fbf4;
}

.io-grid span {
  display: block;
  margin-bottom: 5px;
  color: #2b6748;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.io-grid p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
}

.pseudo-code {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  margin: 0;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  color: #172033;
  background: #f8fafc;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.pseudo-code code {
  display: block;
  min-width: 0;
  max-width: 100%;
}

.recipe-grid,
.mechanic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 12px;
}

.recipe-card,
.mechanic-card {
  display: grid;
  min-width: 0;
  gap: 12px;
  align-content: start;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.recipe-card:nth-child(3n + 2),
.mechanic-card:nth-child(2n) {
  background: #fffaf0;
}

.tool-dossier-grid {
  display: grid;
  gap: 16px;
}

.tool-dossier-card {
  display: grid;
  min-width: 0;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid #2f6f9f;
  border-radius: var(--radius);
  background: #ffffff;
}

.tool-dossier-card:nth-child(2n) {
  border-left-color: #2f9e44;
  background: #fbfdf9;
}

.tool-dossier-card header {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.tool-dossier-card h3 {
  margin: 0;
  font-size: 21px;
}

.tool-dossier-card > p {
  margin: 0;
  color: var(--muted);
}

.dossier-question {
  color: var(--ink) !important;
  font-weight: 760;
}

.dossier-logic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dossier-logic-grid > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.dossier-logic-grid span,
.dossier-list strong {
  display: block;
  margin-bottom: 6px;
  color: #28415f;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dossier-logic-grid p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.dossier-list {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.dossier-list ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.dossier-list li {
  overflow-wrap: anywhere;
}

.context-mechanics-section .semantic-stack {
  margin-top: 14px;
}

.evidence-drawer.compact .evidence-row {
  grid-template-columns: 1fr;
}

.harness-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: stretch;
}

.harness-hero p,
.harness-definition span {
  color: var(--muted);
}

.harness-definition {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.harness-definition strong {
  font-size: 17px;
  line-height: 1.35;
}

.loop-diagram {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.loop-node {
  min-height: 116px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.loop-node strong,
.loop-node span {
  display: block;
}

.loop-node strong {
  font-size: 14px;
  line-height: 1.25;
}

.loop-node span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.loop-node:hover,
.loop-node.is-active,
.clickable-card:hover {
  border-color: rgba(36, 87, 197, 0.42);
  box-shadow: 0 8px 22px rgba(20, 32, 43, 0.08);
  transform: translateY(-1px);
}

.loop-node.is-active {
  background: var(--blue-soft);
}

.loop-arrow {
  display: none;
}

.stage-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
  gap: 18px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.stage-detail p {
  color: var(--muted);
}

.flow-variant-grid,
.checklist-grid,
.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.check-item {
  display: flex;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.check-item span {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--blue-soft);
  border: 5px solid var(--blue);
}

.check-item p,
.example-card p {
  margin: 0;
  color: var(--muted);
}

.clickable-card {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.example-card {
  display: grid;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.panel + .panel {
  margin-top: 14px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.panel-header p {
  max-width: 780px;
  margin: 6px 0 0;
  color: var(--muted);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.segment {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.segment.is-active {
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(20, 32, 43, 0.08);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.stat-card strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.table-shell {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  background: #ffffff;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  background: #f8fafc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.row-button {
  display: block;
  width: 100%;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.feature-title {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-weight: 760;
}

.category-tag {
  display: inline-flex;
  margin-top: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--muted);
  background: #eef3f8;
  font-size: 11px;
  font-weight: 700;
}

.status-chip {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
}

.status-chip.yes {
  color: var(--green);
  background: var(--green-soft);
}

.status-chip.partial,
.status-chip.related {
  color: var(--blue);
  background: var(--blue-soft);
}

.status-chip.gated,
.status-chip.internal,
.status-chip.refMissing,
.status-chip.older {
  color: var(--amber);
  background: var(--amber-soft);
}

.status-chip.no,
.status-chip.missing {
  color: var(--rose);
  background: var(--rose-soft);
}

.cell-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.detail-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 12px;
  font-weight: 760;
}

.detail-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.command-card {
  min-height: 118px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.command-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.command-name {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  font-weight: 760;
}

.coverage-mini {
  display: grid;
  grid-template-columns: repeat(4, 12px);
  gap: 4px;
  align-items: center;
  margin-top: 13px;
}

.coverage-mini i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: #d8e0ea;
}

.coverage-mini i.yes {
  background: var(--green);
}

.coverage-mini i.partial {
  background: var(--blue);
}

.coverage-mini i.gated,
.coverage-mini i.internal,
.coverage-mini i.older,
.coverage-mini i.refMissing {
  background: var(--amber);
}

.coverage-mini i.no,
.coverage-mini i.missing {
  background: var(--rose);
}

.tool-grid,
.source-grid,
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.module-grid,
.prompt-file-grid,
.gated-list,
.flow-stack,
.evidence-list,
.parity-loop-grid,
.source-tree-grid,
.taxonomy-grid,
.hidden-feature-grid {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.module-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.parity-loop-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.source-tree-grid,
.taxonomy-grid,
.hidden-feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.tool-card,
.source-card,
.note-card,
.module-card,
.prompt-file-card,
.gated-row,
.flow-card,
.flow-file,
.parity-stage-card,
.taxonomy-card,
.hidden-feature-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.parity-stage-card {
  display: grid;
  align-content: start;
  gap: 10px;
  border-left: 4px solid var(--blue);
}

.parity-stage-card p,
.taxonomy-card p,
.hidden-feature-card p {
  margin: 0;
  color: var(--muted);
}

.taxonomy-card,
.hidden-feature-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.taxonomy-card header,
.hidden-feature-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.module-pill-list {
  display: grid;
  gap: 7px;
}

.module-pill {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.module-pill strong {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.module-pill small {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.module-pill.is-missing {
  opacity: 0.58;
}

.token.is-muted {
  border-style: dashed;
  color: var(--amber);
  background: var(--amber-soft);
}

.confidence {
  display: block;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--panel-soft);
  font-size: 12px;
}

.prompt-route-focus {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid #cfd8e3;
  border-left: 4px solid #2f6f9f;
  border-radius: var(--radius);
  background: #ffffff;
}

.prompt-route-focus-copy {
  display: grid;
  min-width: 0;
  gap: 12px;
  align-content: start;
}

.prompt-route-focus h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.18;
}

.prompt-route-focus p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.prompt-route-focus-actions {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px;
}

.prompt-route-focus-flow {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prompt-route-focus-flow li {
  display: grid;
  min-width: 0;
  gap: 6px;
  align-content: start;
  padding: 11px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.prompt-route-focus-flow li:nth-child(2n) {
  background: #f6fbf8;
}

.prompt-route-focus-flow span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #2f6f9f;
  font-size: 11px;
  font-weight: 850;
}

.prompt-route-focus-flow strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.prompt-route-focus-flow p {
  font-size: 11px;
  line-height: 1.35;
}

.prompt-route-focus-answer-first {
  gap: 10px;
  padding: 12px;
}

.prompt-route-focus-answer-first .prompt-route-focus-copy {
  gap: 8px;
}

.prompt-route-focus-answer-first h2 {
  font-size: 22px;
  line-height: 1.14;
}

.prompt-route-focus-answer-first p {
  font-size: 12px;
  line-height: 1.35;
}

.prompt-route-focus-answer-first .prompt-route-focus-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.prompt-route-focus-answer-first .prompt-route-focus-flow li {
  gap: 5px;
  padding: 8px;
}

.prompt-route-focus-answer-first .prompt-route-focus-flow span {
  width: 22px;
  height: 22px;
  font-size: 10px;
}

.prompt-route-focus-answer-first .prompt-route-focus-flow strong {
  font-size: 11px;
}

.prompt-route-focus-answer-first .prompt-route-focus-flow p {
  font-size: 9px;
  line-height: 1.2;
}

.prompt-route-primer {
  display: grid;
  min-width: 0;
  gap: 8px;
  align-content: start;
  padding: 10px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.prompt-route-primer strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.prompt-route-primer ul {
  display: grid;
  min-width: 0;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prompt-route-primer li {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(82px, 0.32fr) minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  padding: 7px;
  border: 1px solid #e0e7ef;
  border-radius: var(--radius);
  background: #ffffff;
}

.prompt-route-primer li:nth-child(2n) {
  background: #f6fbf8;
}

.prompt-route-primer li span {
  color: #315f86;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.prompt-route-primer li p {
  min-width: 0;
  font-size: 10px;
  line-height: 1.25;
}

.prompt-route-next-steps {
  display: grid;
  grid-column: 1 / -1;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prompt-route-next-steps li {
  display: grid;
  min-width: 0;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 4px 7px;
  align-content: start;
  padding: 8px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.prompt-route-next-steps li:nth-child(2n) {
  background: #f6fbf8;
}

.prompt-route-next-steps li:nth-child(3n) {
  background: #fffaf0;
}

.prompt-route-next-steps span {
  display: grid;
  grid-row: 1 / 3;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #2f6f9f;
  font-size: 10px;
  font-weight: 850;
}

.prompt-route-next-steps strong,
.prompt-route-next-steps small,
.prompt-route-next-steps code {
  min-width: 0;
  overflow-wrap: anywhere;
}

.prompt-route-next-steps strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.2;
}

.prompt-route-next-steps small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.22;
}

.prompt-route-next-steps code {
  grid-column: 2 / -1;
  color: #315f86;
  font-size: 10px;
  line-height: 1.22;
  white-space: normal;
}

.prompt-route-focus-answer-first .prompt-route-mechanism {
  gap: 7px;
  padding: 10px;
}

.prompt-route-focus-answer-first .prompt-route-mechanism li {
  gap: 4px;
  padding: 7px 18px 7px 7px;
}

.prompt-route-mechanism {
  display: grid;
  min-width: 0;
  grid-column: 1 / -1;
  gap: 8px;
  padding: 11px;
  border: 1px solid #d7c393;
  border-radius: var(--radius);
  background: #fffaf0;
}

.prompt-route-mechanism-header {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
}

.prompt-route-mechanism-header strong {
  color: #6f4e00;
  font-size: 13px;
  line-height: 1.3;
  text-align: right;
  overflow-wrap: anywhere;
}

.prompt-route-mechanism ol {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prompt-route-mechanism li {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 5px;
  align-content: start;
  padding: 8px 18px 8px 8px;
  border: 1px solid #decf9f;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.prompt-route-mechanism li:not(:last-child)::after {
  content: ">";
  position: absolute;
  top: 50%;
  right: 3px;
  z-index: 1;
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 999px;
  color: #ffffff;
  background: #9a6b12;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
}

.prompt-route-mechanism li > span {
  color: #7b560b;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.prompt-route-mechanism strong {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.prompt-route-mechanism code {
  color: #172033;
  font-size: 10px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.prompt-route-mechanism small {
  color: #6f4e00;
  font-size: 10px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.prompt-route-spine-detail {
  display: grid;
  min-width: 0;
  grid-column: 1 / -1;
  border: 1px solid #cfd8e3;
  border-radius: var(--radius);
  background: #f7fbfd;
  overflow: hidden;
}

.prompt-route-spine-detail > summary {
  list-style: none;
  cursor: pointer;
}

.prompt-route-spine-detail > summary::-webkit-details-marker {
  display: none;
}

.prompt-route-spine-summary {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  padding: 9px 11px;
}

.prompt-route-spine-summary::after {
  content: "Open";
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid #bfd0de;
  border-radius: 999px;
  color: #28415f;
  background: #ffffff;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.prompt-route-spine-detail[open] .prompt-route-spine-summary::after {
  content: "Close";
}

.prompt-route-spine-summary strong {
  color: #28415f;
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.prompt-route-spine {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 0 11px 11px;
  border-top: 1px solid #dbe5ef;
  background: #f7fbfd;
}

.prompt-route-spine-header {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
}

.prompt-route-spine-header strong {
  color: #28415f;
  font-size: 13px;
  line-height: 1.3;
  text-align: right;
  overflow-wrap: anywhere;
}

.prompt-route-spine ol {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prompt-route-spine li {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 4px;
  align-content: start;
  padding: 8px 18px 8px 8px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #ffffff;
}

.prompt-route-spine li:not(:last-child)::after {
  content: ">";
  position: absolute;
  top: 50%;
  right: 3px;
  z-index: 1;
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 999px;
  color: #ffffff;
  background: #2f6f9f;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
}

.prompt-route-spine li > span {
  display: grid;
  width: 24px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #2f6f9f;
  font-size: 10px;
  font-weight: 850;
}

.prompt-route-spine code {
  color: var(--ink);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.prompt-route-spine small,
.prompt-route-spine p {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.prompt-route-spine small {
  color: #28415f;
}

.prompt-route-rebuild-spine ol {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.prompt-route-contract {
  display: grid;
  min-width: 0;
  grid-column: 1 / -1;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid #d7dde6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.prompt-route-contract > summary {
  list-style: none;
  cursor: pointer;
}

.prompt-route-contract > summary::-webkit-details-marker {
  display: none;
}

.prompt-route-contract-header {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
}

.prompt-route-contract-header::after {
  content: "Open";
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid #bfd0de;
  border-radius: 999px;
  color: #28415f;
  background: #ffffff;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.prompt-route-contract[open] .prompt-route-contract-header::after {
  content: "Close";
}

.prompt-route-contract-header strong {
  color: #28415f;
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.prompt-route-contract-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.prompt-route-contract-grid > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  align-content: start;
  padding: 8px;
  border: 1px solid #dbe2ea;
  border-radius: var(--radius);
  background: #ffffff;
}

.prompt-route-contract-grid span {
  color: #2f6f9f;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.prompt-route-contract-grid code {
  color: #152033;
  font-size: 10px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.prompt-route-contract-grid strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.prompt-route-contract-grid small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .prompt-route-next-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prompt-route-mechanism ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .prompt-route-mechanism li:nth-child(3n)::after,
  .prompt-route-mechanism li:last-child::after {
    display: none;
  }

  .prompt-route-contract-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .prompt-route-spine li:last-child::after {
    display: none;
  }

  .prompt-route-rebuild-spine ol {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .prompt-route-rebuild-spine li:nth-child(4n)::after {
    display: none;
  }
}

@media (min-width: 701px) and (max-width: 1180px) {
  .prompt-route-rebuild-spine ol {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .prompt-route-rebuild-spine li {
    gap: 3px;
    padding: 6px 15px 6px 6px;
  }

  .prompt-route-rebuild-spine li:nth-child(4n)::after {
    display: grid;
  }

  .prompt-route-rebuild-spine li:last-child::after {
    display: none;
  }

  .prompt-route-rebuild-spine code,
  .prompt-route-rebuild-spine small,
  .prompt-route-rebuild-spine p {
    font-size: 9px;
    line-height: 1.16;
  }
}

@media (max-width: 760px) {
  .prompt-route-focus {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .prompt-route-focus {
    gap: 10px;
    padding: 12px;
  }

  .prompt-route-focus.prompt-route-focus-answer-first {
    gap: 8px;
    padding: 10px;
  }

  .prompt-route-focus h2 {
    font-size: 20px;
  }

  .prompt-route-focus-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .prompt-route-focus-flow li {
    gap: 4px;
    padding: 8px;
  }

  .prompt-route-focus-flow p {
    font-size: 10px;
    line-height: 1.25;
  }

  .prompt-route-primer {
    gap: 6px;
    padding: 9px;
  }

  .prompt-route-primer strong {
    font-size: 13px;
  }

  .prompt-route-primer ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .prompt-route-primer li {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 6px;
  }

  .prompt-route-primer li span {
    font-size: 9px;
    line-height: 1.15;
  }

  .prompt-route-primer li p {
    font-size: 9px;
    line-height: 1.16;
  }

  .prompt-route-next-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  .prompt-route-next-steps li {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 3px 5px;
    padding: 5px;
  }

  .prompt-route-next-steps span {
    width: 18px;
    height: 18px;
    font-size: 8px;
  }

  .prompt-route-next-steps strong,
  .prompt-route-next-steps small {
    font-size: 9px;
    line-height: 1.16;
  }

  .prompt-route-next-steps code {
    display: none;
  }

  .prompt-route-mechanism {
    padding: 9px;
  }

  .prompt-route-mechanism-header {
    display: grid;
    gap: 3px;
  }

  .prompt-route-mechanism-header strong {
    text-align: left;
  }

  .prompt-route-mechanism ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prompt-route-mechanism li {
    padding: 7px;
  }

  .prompt-route-mechanism li:not(:last-child)::after {
    display: none;
  }

  .prompt-route-mechanism strong,
  .prompt-route-mechanism code,
  .prompt-route-mechanism small {
    font-size: 9px;
    line-height: 1.2;
  }

  .prompt-route-spine {
    padding: 0 9px 9px;
  }

  .prompt-route-spine-summary {
    display: grid;
    gap: 3px;
    padding: 8px 9px;
  }

  .prompt-route-spine-summary::after {
    width: fit-content;
  }

  .prompt-route-spine-header {
    display: grid;
    gap: 3px;
  }

  .prompt-route-spine-header strong {
    text-align: left;
  }

  .prompt-route-spine ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prompt-route-rebuild-spine ol {
    grid-template-columns: 1fr;
  }

  .prompt-route-spine li {
    padding: 7px;
  }

  .prompt-route-rebuild-spine li {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 2px 6px;
    align-items: center;
    padding: 5px 6px;
  }

  .prompt-route-rebuild-spine li > span {
    grid-row: auto;
    width: 22px;
    height: 20px;
  }

  .prompt-route-rebuild-spine li code:first-of-type {
    grid-column: 2;
    font-size: 10px;
    line-height: 1.16;
  }

  .prompt-route-rebuild-spine li code:nth-of-type(2) {
    display: none;
  }

  .prompt-route-rebuild-spine li p {
    display: none;
  }

  .prompt-route-spine li:not(:last-child)::after {
    display: none;
  }

  .prompt-route-spine code {
    font-size: 10px;
  }

  .prompt-route-spine small,
  .prompt-route-spine p {
    font-size: 9px;
    line-height: 1.2;
  }

  .prompt-route-focus-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  .prompt-route-focus-actions .guide-jump-button {
    width: 100%;
    min-width: 0;
    padding: 5px 3px;
    font-size: 10px;
    text-align: center;
  }

  .prompt-route-contract {
    padding: 9px;
  }

  .prompt-route-contract-header {
    display: grid;
    gap: 3px;
  }

  .prompt-route-contract-header::after {
    width: fit-content;
  }

  .prompt-route-contract-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prompt-route-contract-grid > div {
    gap: 3px;
    padding: 6px;
  }

  .prompt-route-contract-grid code,
  .prompt-route-contract-grid small {
    font-size: 9px;
    line-height: 1.2;
  }

  .prompt-route-contract-grid strong {
    font-size: 11px;
  }
}

.module-card {
  display: grid;
  gap: 12px;
}

.module-card h3,
.prompt-file-card h3,
.gated-row h3,
.flow-file strong {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.module-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf4;
}

.module-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.flow-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
}

.flow-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #1c2b3a;
  font-weight: 800;
}

.flow-card p {
  margin: 6px 0 14px;
  color: var(--muted);
}

.flow-files {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.flow-file {
  padding: 12px;
  background: var(--panel-soft);
}

.evidence-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.source-ref {
  display: inline-block;
  max-width: 100%;
  color: var(--blue);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.evidence-row code {
  display: block;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.evidence-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.prompt-file-grid {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.token {
  display: inline-flex;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #263544;
  background: var(--panel-soft);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
}

.source-card a {
  display: block;
  margin-top: 8px;
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--panel-soft);
  text-align: center;
}

.detail-dialog {
  width: min(760px, calc(100vw - 32px));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-dialog::backdrop {
  background: rgba(20, 32, 43, 0.42);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #ffffff;
}

.dialog-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

#dialog-content {
  padding: 20px 42px 20px 20px;
}

#dialog-content p {
  color: var(--muted);
}

@media (max-width: 1180px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-list,
  .category-list {
    display: flex;
    flex-wrap: wrap;
  }

  .nav-item,
  .category-button {
    width: auto;
  }

  .summary-strip,
  .answer-grid,
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insight-panel,
  .harness-hero,
  .intro-band,
  .chapter-layout,
  .learning-rail,
  .loop-chapter-header,
  .stage-proof-grid,
  .semantic-card,
  .worked-stage,
  .request-packet-card,
  .context-ledger-card,
  .prompt-stack-card,
  .cache-ledger-card,
  .stage-detail,
  .topbar {
    grid-template-columns: 1fr;
    display: grid;
  }

	  .request-blueprint,
	  .reader-spine-grid,
	  .context-cache-answer-map,
	  .context-cache-circuit-flow,
	  .context-cache-circuit-rules,
	  .context-cache-packet-rail,
	  .context-cache-module-blueprint-grid,
	  .context-cache-branch-row,
	  .context-cache-clone-grid,
	  .context-cache-scenario-grid,
	  .context-cache-lab-fixture,
	  .context-cache-lab-flow,
	  .context-cache-implementation-flow,
	  .context-cache-recipe-layout,
	  .context-cache-lane-diagram,
	  .context-cache-type-grid,
	  .context-cache-accounting-row,
	  .context-cache-module-grid,
	  .context-cache-acceptance-row,
	  .context-cache-bug-grid,
	  .context-cache-object-grid,
	  .context-cache-contract-grid,
	  .context-cache-business-rules,
	  .context-cache-tracks,
	  .context-cache-reducer-grid,
	  .context-cache-rule-grid,
	  .context-cache-equation-grid,
	  .source-map-bridge-flow,
	  .source-map-route,
	  .source-map-rule-grid,
	  .swimlane-lane-strip,
	  .swimlane-flow,
	  .recipe-reducer-flow,
	  .recipe-logic-grid,
	  .recipe-test-grid,
	  .operating-input-strip,
  .simulator-lane-list,
  .simulator-branch-grid,
  .operating-calculation-grid,
  .simulator-math-grid,
  .value-ledger-flow,
  .vector-flow-diagram,
	  .clone-kernel-flow,
	  .clone-gate-grid,
	  .builder-question-grid,
	  .builder-answer-flow,
	  .builder-question-stack {
	    grid-template-columns: repeat(2, minmax(0, 1fr));
	  }

	  .context-cache-packet-rail li:not(:last-child)::after {
	    display: none;
	  }

	  .builder-answer-lane,
	  .builder-guide-grid {
	    grid-template-columns: 1fr;
	  }

	  .builder-question-grid,
	  .builder-question-stack {
	    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	  }

  .builder-question-board-header {
    align-items: start;
  }

	  .recipe-scenario,
	  .recipe-reducer-card header {
	    grid-template-columns: 1fr;
	  }

  .vector-test-grid,
  .vector-rule-grid,
  .swimlane-state-grid,
  .swimlane-branch-grid,
  .value-code-grid,
  .value-rule-grid,
  .clone-io-grid,
  .clone-rule-grid,
  .clone-gate-strip {
    grid-template-columns: 1fr;
  }

  .tool-blueprint,
  .tool-loop-diagram {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-loop-node:not(:last-child)::after {
    display: none;
  }

  .simulator-lane-node i {
    display: none;
  }

  .rebuild-flow li:not(:last-child)::after {
    display: none;
  }

  .rebuild-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .turn-trace-flow li:not(:last-child)::after {
    display: none;
  }

  .source-call-flow li:not(:last-child)::after {
    display: none;
  }

  .turn-trace-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-call-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .turn-sequence-row {
    grid-template-columns: 1fr;
  }

  .turn-state-row {
    grid-template-columns: 1fr;
  }

  .turn-state-route {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
  }

  .turn-state-route strong {
    text-align: center;
  }

  .turn-sequence-route {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    padding-right: 0;
  }

  .turn-sequence-route::after {
    display: none;
  }

  .turn-sequence-route strong {
    text-align: center;
  }

  .turn-sequence-logic {
    grid-template-columns: 1fr;
  }

  .trace-flow li:not(:last-child)::after {
    display: none;
  }

  .trace-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .logic-diagram-flow li:not(:last-child)::after {
    display: none;
  }

  .context-assembly-flow li:not(:last-child)::after {
    display: none;
  }

  .prompt-stack-flow li:not(:last-child)::after {
    display: none;
  }

  .cache-accounting-flow li:not(:last-child)::after {
    display: none;
  }

  .worked-stage header,
  .worked-stage > p,
  .worked-stage .io-grid,
  .worked-stage .pseudo-code,
  .worked-stage .evidence-drawer {
    grid-column: 1;
    grid-row: auto;
  }

  .side-note {
    position: static;
  }

  .loop-diagram {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .content,
  .sidebar {
    padding: 16px;
  }

  .sidebar {
    display: grid;
    gap: 10px;
  }

  .brand {
    gap: 9px;
  }

  .brand small,
  .sidebar-section,
  .toggle-row,
  .legend,
  .nav-group-label {
    display: none;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .search-box {
    margin: 0;
    padding: 8px 10px;
  }

  .nav-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin-right: -16px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-item {
    flex: 0 0 auto;
    width: auto;
    padding: 8px 10px;
    white-space: nowrap;
  }

  h1 {
    font-size: 31px;
  }

  .summary-strip,
  .answer-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .intro-band h2 {
    font-size: 27px;
  }

  .builder-question-grid {
    order: -1;
  }

  .route-card {
    min-height: 0;
  }

  .semantic-card {
    padding: 14px 0;
  }

  .loop-chapter {
    padding: 16px 0;
  }

  .panel-header {
    display: grid;
  }

  .toolbar {
    justify-content: flex-start;
  }

  table {
    min-width: 760px;
  }

  .loop-diagram {
    grid-template-columns: 1fr;
  }

	  .request-blueprint,
	  .reader-spine-grid,
	  .reader-spine-card header,
	  .context-cache-answer-map,
	  .context-cache-packet-diagram-header,
	  .context-cache-packet-rail,
	  .context-cache-module-blueprint-header,
	  .context-cache-module-blueprint-grid,
	  .context-cache-branch-matrix-header,
	  .context-cache-branch-row,
	  .context-cache-lane-diagram,
	  .context-cache-equation-grid,
	  .context-cache-clone-header,
	  .context-cache-scenario-grid,
	  .context-cache-lab-header,
	  .context-cache-lab-fixture,
	  .context-cache-lab-flow,
	  .context-cache-diagram-header,
	  .context-cache-implementation-flow,
	  .context-cache-decision-row,
	  .context-cache-recipe-header,
	  .context-cache-recipe-layout,
	  .context-cache-type-grid,
	  .context-cache-accounting-row,
	  .context-cache-module-grid,
	  .context-cache-acceptance-row,
	  .context-cache-phase-row,
	  .context-cache-bug-grid,
	  .context-cache-object-grid,
	  .context-cache-contract-grid,
	  .context-cache-business-rules,
	  .context-cache-tracks,
	  .context-cache-reducer-grid,
	  .context-cache-rule-grid,
	  .context-cache-track li,
	  .source-map-bridge-flow,
	  .source-map-route,
	  .source-map-rule-grid,
	  .source-map-bridge-card header,
	  .swimlane-lane-strip,
	  .swimlane-flow,
	  .swimlane-handoff-card header,
	  .swimlane-state-grid,
	  .swimlane-branch-grid,
	  .recipe-scenario,
	  .recipe-reducer-flow,
	  .recipe-reducer-card header,
	  .recipe-logic-grid,
	  .recipe-test-grid,
	  .operating-scenario,
  .operating-input-strip,
  .operating-simulator-header,
  .value-ledger-scenario,
  .value-ledger-card header,
  .implementation-vector-card header,
  .clone-kernel-card header,
  .clone-gate-card header,
  .simulator-lane-list,
  .simulator-branch-grid,
  .simulator-math-grid,
  .simulator-board-title,
  .operating-state-grid,
  .operating-branch-grid,
  .operating-calculation-grid,
  .value-ledger-flow,
  .value-code-grid,
  .value-rule-grid,
  .vector-flow-diagram,
  .vector-test-grid,
  .vector-rule-grid,
  .clone-kernel-flow,
  .clone-io-grid,
  .clone-rule-grid,
  .clone-gate-strip,
  .clone-gate-grid,
  .builder-answer-lane,
  .builder-answer-actions,
  .builder-answer-flow,
  .builder-question-board-header,
  .builder-guide-grid,
	  .builder-question-grid,
  .builder-question-stack,
  .tool-blueprint,
  .tool-loop-diagram,
  .turn-trace-flow,
  .turn-phase-grid,
  .turn-contract-grid,
  .contract-rule-grid,
  .turn-state-row,
  .turn-state-route,
  .turn-state-fields,
  .turn-sequence-route,
  .turn-sequence-logic,
  .turn-algorithm-grid,
  .workbook-grid,
  .workbook-rule-grid,
  .source-call-flow,
  .source-call-route,
  .source-call-grid,
  .source-call-rule-grid,
  .rebuild-flow,
  .trace-flow,
  .logic-diagram-flow,
  .rebuild-io-grid,
  .skeleton-io-grid,
  .skeleton-list-grid,
  .decision-row-fields,
  .acceptance-flow-grid,
  .io-grid,
	  .dossier-logic-grid {
	    grid-template-columns: 1fr;
	  }

  .builder-question-board-header,
  .context-cache-clone-header,
  .context-cache-diagram-header,
  .context-cache-recipe-header {
    display: grid;
  }

  .context-cache-decision-row > *,
  .context-cache-lane-row > *,
  .context-cache-branch-row > *,
  .context-cache-accounting-row > *,
  .context-cache-acceptance-row > *,
  .context-cache-phase-row > * {
    border-left: 0;
    border-top: 1px solid #dbe2ea;
  }

  .context-cache-decision-row > *:first-child,
  .context-cache-lane-row > *:first-child,
  .context-cache-branch-row > *:first-child,
  .context-cache-accounting-row > *:first-child,
  .context-cache-acceptance-row > *:first-child,
  .context-cache-phase-row > *:first-child {
    border-top: 0;
  }

  .context-cache-lane-row,
  .context-cache-branch-row {
    grid-template-columns: 1fr;
  }

  .context-cache-lane-row.is-header,
  .context-cache-branch-row.is-header {
    display: none;
  }

  .context-cache-lane-row:not(.is-header) > *::before,
  .context-cache-branch-row:not(.is-header) > *::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: #5e6e80;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .context-cache-branch-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .context-cache-branch-row > * {
    padding: 7px;
  }

  .context-cache-clone-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .context-cache-clone-step {
    gap: 5px;
    padding: 9px;
  }

  .context-cache-clone-step h4 {
    font-size: 13px;
  }

  .context-cache-clone-step code,
  .context-cache-clone-step p,
  .context-cache-clone-step strong {
    font-size: 11px;
    line-height: 1.32;
  }

  .context-cache-answer-map,
  .context-cache-circuit-flow,
  .context-cache-spine-object-strip,
  .context-cache-packet-rail,
  .context-cache-module-blueprint-grid,
  .context-cache-equation-grid,
  .context-cache-formula-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .context-cache-circuit-diagram {
    gap: 8px;
    padding: 10px;
  }

  .context-cache-circuit-header {
    display: grid;
    gap: 5px;
  }

  .context-cache-circuit-header h3 {
    font-size: 17px;
  }

  .context-cache-circuit-header p {
    display: none;
  }

  .context-cache-circuit-flow li:not(:last-child)::after {
    display: none;
  }

  .context-cache-circuit-flow li {
    gap: 3px;
    padding: 7px;
  }

  .context-cache-circuit-flow strong {
    font-size: 11px;
  }

  .context-cache-circuit-flow code,
  .context-cache-circuit-flow small {
    font-size: 9px;
    line-height: 1.18;
  }

  .context-cache-circuit-flow p {
    display: none;
  }

  .context-cache-circuit-rules {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .context-cache-circuit-rules > div {
    padding: 7px;
  }

  .context-cache-circuit-rules p {
    font-size: 9.5px;
    line-height: 1.28;
  }

  .context-cache-context-resolver {
    gap: 8px;
    padding: 11px;
  }

  .context-cache-reducer-transaction {
    gap: 8px;
    padding: 10px;
  }

  .context-cache-reducer-transaction-header {
    display: grid;
    gap: 5px;
  }

  .context-cache-reducer-transaction-header h3 {
    font-size: 17px;
  }

  .context-cache-reducer-transaction-header p {
    display: none;
  }

  .context-cache-reducer-transaction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .context-cache-reducer-transaction-grid article {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 3px 5px;
    padding: 6px;
  }

  .context-cache-reducer-transaction-grid p {
    display: none;
  }

  .context-cache-reducer-transaction-grid article > div {
    grid-column: 2 / -1;
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .context-cache-reducer-transaction-grid code {
    font-size: 8.5px;
    line-height: 1.1;
    -webkit-line-clamp: 1;
  }

  .context-cache-reducer-formulas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .context-cache-reducer-formulas div {
    padding: 6px;
  }

  .context-cache-context-resolver-header {
    display: grid;
    gap: 5px;
  }

  .context-cache-context-resolver-header h3 {
    font-size: 17px;
  }

  .context-cache-context-resolver-header p {
    display: none;
  }

  .context-cache-context-resolver-grid {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .context-cache-context-resolver-grid article {
    grid-template-columns: 24px minmax(94px, 0.34fr) minmax(0, 0.66fr);
    gap: 4px 6px;
    padding: 6px;
  }

  .context-cache-context-resolver-grid p {
    display: none;
  }

  .context-cache-context-resolver-grid article > div {
    grid-column: 2 / -1;
    grid-template-columns: minmax(48px, 0.22fr) minmax(0, 0.78fr);
    gap: 4px;
    align-items: start;
  }

  .context-cache-context-resolver-grid div code {
    -webkit-line-clamp: 1;
  }

  .context-cache-context-ownership {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .context-cache-context-ownership article {
    gap: 3px;
    padding: 6px;
  }

  .context-cache-context-ownership p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 9.5px;
    line-height: 1.18;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .context-cache-state-register {
    gap: 8px;
    padding: 11px;
  }

  .context-cache-state-register-header {
    display: grid;
    gap: 5px;
  }

  .context-cache-state-register-header h3 {
    font-size: 17px;
  }

  .context-cache-state-register-header p {
    display: none;
  }

  .context-cache-state-register-grid,
  .context-cache-state-boundary-diff {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .context-cache-state-register-grid article {
    grid-template-columns: 24px minmax(96px, 0.36fr) minmax(0, 0.64fr);
    gap: 5px 7px;
    padding: 6px;
  }

  .context-cache-state-register-grid article > span {
    grid-row: 1 / 3;
  }

  .context-cache-state-register-grid dl {
    grid-column: 2 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  .context-cache-state-register-grid dd {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .context-cache-state-register-call small {
    -webkit-line-clamp: 2;
  }

  .context-cache-state-boundary-diff article,
  .context-cache-state-tests {
    padding: 6px;
  }

  .context-cache-state-tests li {
    padding: 5px;
  }

  .context-cache-implementation-spine,
  .context-cache-packet-diagram,
  .context-cache-module-blueprint-visible {
    gap: 10px;
    padding: 12px;
  }

  .context-cache-spine-layout {
    grid-template-columns: 1fr;
  }

  .context-cache-spine-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .context-cache-spine-steps li {
    grid-template-columns: 1fr;
  }

  .context-cache-packet-diagram-header h3,
  .context-cache-spine-header h3,
  .context-cache-module-blueprint-header h3 {
    font-size: 18px;
  }

  .context-cache-spine-steps li,
  .context-cache-spine-code-card,
  .context-cache-spine-object-strip > div,
  .context-cache-packet-rail li,
  .context-cache-module-blueprint-grid li,
  .context-cache-equation-grid > div,
  .context-cache-formula-strip > div {
    padding: 8px;
  }

  .context-cache-packet-rail li:last-child {
    grid-column: 1 / -1;
  }

  .context-cache-packet-rail strong {
    font-size: 12px;
  }

  .context-cache-module-blueprint-grid strong {
    font-size: 11px;
  }

  .context-cache-packet-rail p {
    display: none;
  }

  .context-cache-packet-rail small,
  .context-cache-packet-rail code,
  .context-cache-module-blueprint-grid code,
  .context-cache-module-blueprint-grid p,
  .context-cache-module-blueprint-grid small,
  .context-cache-equation-grid code,
  .context-cache-formula-strip code {
    font-size: 10px;
    line-height: 1.3;
  }

	  .request-packet-card header .token {
	    max-width: none;
	    text-align: left;
	  }

  .decision-row-card {
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .decision-row-number {
    width: 24px;
    height: 24px;
  }

  .builder-path-step {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .builder-path-step .guide-jump-button {
    grid-column: 2;
  }

  .operating-simulator {
    padding: 12px;
  }

  .simulator-lane-node i {
    display: none;
  }

  .simulator-node-main {
    min-height: 0;
  }

  .flow-card,
  .evidence-row {
    grid-template-columns: 1fr;
  }

  .flow-card,
  .flow-file,
  .prompt-file-card,
  .gated-row,
  .turn-contract-board,
  .turn-state-board,
  .turn-contract-card,
  .turn-state-row,
  .turn-sequence-board,
  .turn-sequence-row,
  .turn-algorithm-stack,
  .workbook-module-card,
  .source-call-node-card,
  .turn-phase-card,
  .turn-calculation-card,
  .request-packet-card,
  .trace-state-card,
  .logic-diagram-card,
  .skeleton-module-card,
  .decision-table-card,
  .acceptance-test-card,
  .snapshot-card,
  .context-ledger-card,
  .prompt-stack-card,
  .cache-ledger-card {
    padding: 12px;
  }

  .request-packet-card header,
  .workbook-module-card header,
  .source-call-node-card header,
  .turn-phase-card header,
  .trace-state-card header,
  .logic-diagram-card header,
  .skeleton-module-card header,
  .decision-table-card header,
  .acceptance-test-card header,
  .snapshot-card header,
  .context-source-card header,
  .context-ledger-card header,
  .prompt-stack-card header,
  .cache-ledger-card header,
  .tool-dossier-card header {
    display: grid;
  }

  .flow-file strong,
  .module-card h3,
  .prompt-file-card h3,
  .gated-row h3,
  .turn-phase-card h3,
  .rebuild-step-card h3,
  .trace-state-card h3,
  .logic-diagram-card h3,
  .skeleton-module-card h3,
  .decision-table-card h3,
  .acceptance-test-card h3,
  .snapshot-card h3,
  .request-packet-card h3,
  .context-source-card h3,
  .context-ledger-card h3,
  .prompt-branch-card h3,
  .prompt-stack-card h3,
  .cache-ledger-card h3 {
    overflow-wrap: anywhere;
  }

  .prompt-file-grid {
    grid-template-columns: 1fr;
  }

  .parity-loop-grid,
  .source-tree-grid,
  .taxonomy-grid,
  .hidden-feature-grid {
    grid-template-columns: 1fr;
  }

  .module-pill {
    align-items: flex-start;
    flex-direction: column;
  }

  .module-pill small {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .builder-answer-actions,
  .builder-answer-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
