

.tle-layout {
  --tle-engine-width: 420px;
  --tle-layout-gap: 48px;
  --tle-rail-width: 30px;
  --tle-focus-color: var(--accent);
  display: grid;
  grid-template-columns: minmax(380px, var(--tle-engine-width)) minmax(0, 1fr);
  gap: var(--tle-layout-gap);
  width: min(100%, var(--measure-page));
  margin-inline: auto;
  align-items: start;
}

.tle-trace-index {
  min-width: 0;
  margin: 0 0 12px;
  border: 1px solid var(--tle-rule, #d8d8d8);
  background: #fff;
}

.tle-trace-index-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 14px;
  cursor: pointer;
  font-family: var(--tle-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.tle-trace-index-summary::after {
  content: "+";
  font-size: 16px;
  font-weight: 500;
}

.tle-trace-index[open] > .tle-trace-index-summary::after {
  content: "−";
}

.tle-trace-index-body {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 0 14px 14px;
  border-top: 1px solid var(--tle-rule, #d8d8d8);
}

.tle-trace-index:not([open]) > .tle-trace-index-body {
  display: none;
}

.tle-trace-index-intro {
  margin: 12px 0 0;
  color: #5b5b5b;
  font-size: 13px;
  line-height: 1.45;
}

.tle-investor-route {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 11px;
  border: 1px solid #b9c9e8;
  border-left: 4px solid #0b6cff;
  background: #f6f9ff;
}

.tle-investor-route-title,
.tle-investor-route-intro {
  margin: 0;
}

.tle-investor-route-title {
  color: #111;
  font: 700 14px/1.35 var(--tle-sans, Arial, sans-serif);
}

.tle-investor-route-intro {
  color: #4f5f73;
  font-size: 12px;
  line-height: 1.45;
}

.tle-investor-route-list {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.tle-investor-route-item {
  min-width: 0;
  margin: 0;
}

.tle-investor-route-link {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 2px 8px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid #d8e1f2;
  background: #fff;
  color: #111;
  text-decoration: none;
}

.tle-investor-route-link:hover,
.tle-investor-route-link:focus-visible {
  border-color: #0b6cff;
  background: #eef4ff;
}

.tle-investor-route-step {
  grid-row: 1 / span 2;
  color: #0b6cff;
  font: 700 11px/1.4 var(--tle-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
}

.tle-investor-route-question,
.tle-investor-route-decision {
  grid-column: 2;
  min-width: 0;
  overflow-wrap: anywhere;
}

.tle-investor-route-question {
  font-size: 12px;
  line-height: 1.35;
}

.tle-investor-route-decision {
  color: #55657a;
  font-size: 11px;
  line-height: 1.4;
}

.tle-chapter-map {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 11px;
  border: 1px solid #d5d9df;
  background: #fbfbfb;
}

.tle-chapter-map-title,
.tle-chapter-map-intro {
  margin: 0;
}

.tle-chapter-map-title {
  color: #111;
  font: 700 14px/1.35 var(--tle-sans, Arial, sans-serif);
}

.tle-chapter-map-intro {
  color: #5b626d;
  font-size: 12px;
  line-height: 1.45;
}

.tle-chapter-map-list {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.tle-chapter-map-card {
  min-width: 0;
  border: 1px solid #d9dce1;
  background: #fff;
}

.tle-chapter-map-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 8px 9px;
  cursor: pointer;
}

.tle-chapter-map-name,
.tle-chapter-map-count {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tle-chapter-map-name {
  font-size: 12px;
  line-height: 1.35;
}

.tle-chapter-map-count {
  color: #687181;
  font: 10px/1.35 var(--tle-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  white-space: nowrap;
}

.tle-chapter-map-description {
  margin: 0;
  padding: 0 9px 8px;
  color: #555f6c;
  font-size: 11px;
  line-height: 1.45;
}

.tle-chapter-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  padding: 0 9px 9px;
}

.tle-chapter-map-button {
  min-width: 0;
  border: 1px solid #c9d1dc;
  border-radius: 0;
  background: #fff;
  padding: 6px 8px;
  color: #172033;
  font: 700 10px/1.35 var(--tle-sans, Arial, sans-serif);
  text-align: left;
  overflow-wrap: anywhere;
}

.tle-chapter-map-section {
  font-weight: 500;
}

.tle-chapter-map-button:hover,
.tle-chapter-map-button:focus-visible,
.tle-chapter-map-button[aria-current="true"] {
  border-color: #0b6cff;
  background: #eef4ff;
}

.tle-trace-search,
.tle-trace-filter {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  background: #fff;
  color: #111;
  padding: 8px 10px;
  font: 13px/1.35 var(--tle-sans, Arial, sans-serif);
}

.tle-trace-search:focus-visible,
.tle-trace-filter:focus-visible,
.tle-investor-route-link:focus-visible,
.tle-trace-result-link:focus-visible,
.tle-trace-clear:focus-visible {
  outline: 2px solid #0b6cff;
  outline-offset: 2px;
}

.tle-trace-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 142px), 1fr));
  gap: 8px;
  min-width: 0;
}

.tle-trace-filter-label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.tle-trace-filter-name {
  color: #777;
  font-family: var(--tle-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tle-trace-index-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.tle-trace-result-count {
  min-width: 0;
  color: #555;
  font-family: var(--tle-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.tle-trace-clear {
  flex: 0 0 auto;
  border: 1px solid #aaa;
  border-radius: 0;
  background: #fff;
  padding: 6px 10px;
  color: #111;
  font: 700 12px/1 var(--tle-sans, Arial, sans-serif);
}

.tle-trace-results {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tle-trace-result,
.tle-trace-empty {
  min-width: 0;
  margin: 0;
}

.tle-trace-section-divider {
  display: grid;
  gap: 2px;
  min-width: 0;
  margin: 8px 0 0;
  padding: 9px 10px 7px;
  border-top: 2px solid #1b4f9c;
  background: #f5f8fd;
  list-style: none;
}

.tle-trace-section-chapter,
.tle-trace-section-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tle-trace-section-chapter {
  color: #5f6f85;
  font: 700 10px/1.35 var(--tle-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
}

.tle-trace-section-name {
  color: #163d76;
  font-size: 12px;
  line-height: 1.35;
}

.tle-trace-result-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 10px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e0e0e0;
  color: #111;
  text-decoration: none;
}

.tle-trace-result-link:hover {
  border-color: #0b6cff;
  background: #f6f9ff;
}

.tle-trace-result-index {
  grid-row: 1 / span 3;
  color: #777;
  font: 700 11px/1.4 var(--tle-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
}

.tle-trace-result-title,
.tle-trace-result-meta,
.tle-trace-result-summary,
.tle-trace-result-code,
.tle-trace-result-evidence {
  grid-column: 2;
  min-width: 0;
  overflow-wrap: anywhere;
}

.tle-trace-result-title {
  font-size: 13px;
  line-height: 1.35;
}

.tle-trace-result-meta,
.tle-trace-result-summary,
.tle-trace-result-code,
.tle-trace-result-evidence {
  color: #666;
  font: 11px/1.4 var(--tle-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
}

.tle-trace-result-summary {
  display: -webkit-box;
  color: #4d5560;
  font-family: var(--tle-sans, Arial, sans-serif);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.tle-trace-result-evidence {
  color: #8a4f00;
}

.tle-trace-empty {
  padding: 12px;
  border: 1px dashed #aaa;
  color: #555;
  font-size: 13px;
  line-height: 1.45;
}

.tle-no-js-index {
  margin-top: 16px;
  border-top: 1px solid #bbb;
  padding-top: 12px;
}

.tle-no-js-investor-route {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid #b9c9e8;
  border-left: 4px solid #0b6cff;
  background: #f6f9ff;
}

.tle-no-js-investor-route h2,
.tle-no-js-investor-route p {
  margin-top: 0;
}

.tle-no-js-investor-route ol {
  display: grid;
  gap: 7px;
  margin-bottom: 0;
  padding-left: 24px;
}

.tle-no-js-investor-route a {
  display: grid;
  gap: 2px;
  color: #111;
  overflow-wrap: anywhere;
}

.tle-no-js-investor-route a span {
  color: #55657a;
  font-size: 0.86em;
  line-height: 1.4;
}

.tle-no-js-investor-route .tle-no-js-investor-question {
  color: #111;
  font-weight: 700;
}

.tle-no-js-index-group ol {
  margin: 8px 0 12px;
  padding-left: 24px;
}

.tle-no-js-index-group a {
  overflow-wrap: anywhere;
}

.tle-no-js-index-divider {
  margin-top: 14px;
  padding-top: 9px;
  border-top: 1px solid #d4d9e2;
  color: #315b9d;
  font-size: 0.82em;
  list-style: none;
}

@media (max-width: 767px) {
  .tle-trace-index-summary,
  .tle-trace-index-body {
    padding-left: 10px;
    padding-right: 10px;
  }

  .tle-trace-filters {
    grid-template-columns: 1fr;
  }

  .tle-trace-result-link {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .tle-chapter-map-summary {
    grid-template-columns: 1fr;
  }

  .tle-chapter-map-count {
    white-space: normal;
  }

  .tle-chapter-map-actions {
    display: grid;
  }
}

.tle-engine[data-tle-focus-component="workload"],
.tle-engine [data-focus-component="workload"] { --tle-focus-color: #7c3aed; }
.tle-engine[data-tle-focus-component="cell"],
.tle-engine [data-focus-component="cell"] { --tle-focus-color: #be123c; }
.tle-engine[data-tle-focus-component="hbm"],
.tle-engine [data-focus-component="hbm"] { --tle-focus-color: #b45309; }
.tle-engine[data-tle-focus-component="gpu"],
.tle-engine [data-focus-component="gpu"] { --tle-focus-color: #005cc5; }
.tle-engine[data-tle-focus-component="runtime"],
.tle-engine [data-focus-component="runtime"] { --tle-focus-color: #6b3fa0; }
.tle-engine[data-tle-focus-component="fabric"],
.tle-engine [data-focus-component="fabric"] { --tle-focus-color: #047857; }
.tle-engine[data-tle-focus-component="tier"],
.tle-engine [data-focus-component="tier"] { --tle-focus-color: #475569; }
.tle-engine[data-tle-focus-component="power"],
.tle-engine [data-focus-component="power"] { --tle-focus-color: #b42318; }
.tle-engine[data-tle-focus-component="thermal"],
.tle-engine [data-focus-component="thermal"] { --tle-focus-color: #9a3412; }
.tle-engine[data-tle-focus-component="water"],
.tle-engine [data-focus-component="water"] { --tle-focus-color: #0369a1; }
.tle-engine[data-tle-focus-component="cost"],
.tle-engine [data-focus-component="cost"] { --tle-focus-color: #3f6212; }
.tle-engine[data-tle-focus-component="evidence"],
.tle-engine [data-focus-component="evidence"] { --tle-focus-color: #4b5563; }

.tle-layout > .article-shell {
  width: 100%;
  min-width: 0;
  container-name: tle-article;
  container-type: inline-size;
}

.tle-engine {
  position: sticky;
  z-index: 10;
  top: 84px;
  display: grid;
  grid-template-columns: var(--tle-rail-width) minmax(0, 1fr);
  align-self: start;
  max-height: calc(100vh - 104px);
  max-height: calc(100dvh - 104px);
  min-width: 0;
  overflow: hidden;
  border-top: var(--hairline);
  border-bottom: var(--hairline);
  color: var(--ink);
  background: var(--paper);
  contain: layout style;
  container-name: tle-engine;
  container-type: inline-size;
}

.tle-engine * {
  box-sizing: border-box;
}

.tle-engine a,
.tle-engine button,
.tle-engine input,
.tle-engine select {
  font-family: var(--font-sans);
}

.tle-engine button:focus-visible,
.tle-engine a:focus-visible,
.tle-engine input:focus-visible,
.tle-engine select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.tle-stage {
  max-height: inherit;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px 10px 12px 18px;
  border-left: var(--hairline);
  scrollbar-color: var(--ink-400) var(--ink-100);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.tle-stage-header {
  display: grid;
  gap: 7px;
  padding: 0 0 14px;
  border-bottom: var(--rule-heavy);
}

.tle-follow-guide {
  position: sticky;
  top: 0;
  z-index: 18;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px;
  margin: 10px 0 12px;
  padding: 9px 10px;
  border: 1px solid var(--ink-300);
  border-left: 3px solid var(--accent);
  background: var(--paper);
}

.tle-follow-path,
.tle-follow-current,
.tle-follow-instruction {
  grid-column: 1;
}

.tle-follow-actions {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: grid;
  gap: 5px;
  align-self: center;
  margin-left: 8px;
}

.tle-follow-actions .tle-inspect-toggle {
  justify-self: stretch;
}

.tle-index-return {
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid var(--ink-400);
  color: var(--ink-600);
  background: var(--paper);
  cursor: pointer;
  font: 0.6875rem/1 var(--font-mono) !important;
}

.tle-index-return:hover,
.tle-index-return:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.tle-follow-guide[data-tle-follow-mode="inspect"] {
  border-left-color: var(--ink-500);
  background: var(--ink-100);
}

.tle-follow-path {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--ink-500);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.tle-follow-step {
  white-space: nowrap;
}

.tle-follow-step[aria-current="step"] {
  color: var(--accent);
}

.tle-follow-arrow {
  color: var(--accent);
  font-size: 0.8rem;
  line-height: 1;
}

.tle-follow-current,
.tle-follow-instruction {
  margin: 0;
}

.tle-follow-current {
  color: var(--ink);
  font-size: 0.72rem;
  line-height: 1.3;
}

.tle-follow-instruction {
  color: var(--ink-600);
  font-size: 0.66rem;
  line-height: 1.4;
}

.tle-eyebrow,
.tle-scene-count,
.tle-state-label,
.tle-evidence-mark,
.tle-visual-label,
.tle-step-count,
.tle-machine-lane-label,
.tle-money-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tle-stage-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-400);
}

.tle-scene-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.3vw, 1.65rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.tle-scene-summary {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.83rem;
  line-height: 1.55;
}

.tle-current-state {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 12px;
  background: var(--ink-200);
  border: var(--hairline);
}

.tle-state-item {
  min-width: 0;
  padding: 8px 9px;
  background: var(--paper);
}

.tle-state-label {
  display: block;
  margin-bottom: 3px;
  color: var(--ink-400);
}

.tle-state-value {
  display: block;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
}



.tle-teaching {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: var(--hairline);
}

.tle-teaching[data-tle-teaching-status="unknown"] {
  border-top-color: var(--ink-400);
}

.tle-teaching-header,
.tle-teaching-lens-header,
.tle-teaching-comparison-header {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.tle-teaching-header {
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--tle-focus-color);
}

.tle-teaching-title,
.tle-teaching-lens-title {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
}

.tle-teaching-title {
  font-size: 0.76rem;
}

.tle-teaching-lens-title {
  margin-right: auto;
  font-size: 0.68rem;
}

.tle-focus-cue {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  color: var(--ink-600);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 600;
  line-height: 1.25;
}

.tle-focus-cue::before {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border: 1px solid var(--paper);
  outline: 1px solid var(--tle-focus-color);
  background: var(--tle-focus-color);
  content: "";
}

.tle-focus-code {
  color: var(--ink);
}

.tle-focus-label {
  overflow-wrap: anywhere;
  white-space: normal;
}

.tle-teaching-lenses {
  display: grid;
  gap: 5px;
}

.tle-teaching-lens {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 6px 7px 6px 9px;
  border-left: 3px solid var(--tle-focus-color);
  background: var(--ink-100);
}

.tle-teaching-lens-text,
.tle-teaching-axis,
.tle-teaching-gate,
.tle-teaching-unknown {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.65rem;
  line-height: 1.42;
}

.tle-teaching-comparison {
  display: grid;
  gap: 6px;
  padding-top: 7px;
  border-top: var(--hairline);
}

.tle-teaching-comparison-header {
  justify-content: space-between;
}

.tle-teaching-kicker,
.tle-teaching-case-role {
  color: var(--ink-400);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tle-teaching-cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.tle-teaching-case {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 6px 7px;
  border: var(--hairline);
  background: var(--paper);
}

.tle-teaching-case[data-case-status="active"] {
  border-left: 3px solid var(--accent);
}

.tle-teaching-case-name {
  color: var(--ink);
  font-size: 0.63rem;
  font-weight: 600;
  line-height: 1.35;
}

.tle-teaching-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tle-teaching-platform-slot {
  padding: 3px 5px;
  border: 1px dashed var(--ink-400);
  color: var(--ink-600);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  line-height: 1.25;
}

.tle-teaching-gate,
.tle-teaching-unknown {
  padding: 6px 7px;
  border-left: 2px solid var(--ink-400);
  background: var(--ink-100);
}

.tle-scene-frame {
  min-width: 0;
  padding: 14px 0 12px;
}

.tle-renderer {
  min-width: 0;
}

.tle-renderer[aria-busy="true"] {
  opacity: 0.55;
}

.tle-render-error,
.tle-no-js {
  padding: 12px;
  border-left: 2px solid var(--ink-400);
  color: var(--ink-600);
  background: var(--ink-100);
  font-size: 0.78rem;
  line-height: 1.55;
}

.tle-engine[data-tle-ready="true"] .tle-no-js {
  display: none;
}

.tle-engine:not([data-tle-ready="true"]) .tle-rail,
.tle-engine:not([data-tle-ready="true"]) .tle-stage > :not(.tle-no-js) {
  display: none;
}

.tle-no-js-code-to-silicon {
  margin-top: 10px;
  padding-top: 9px;
  border-top: var(--hairline);
}

.tle-no-js-code-to-silicon h2,
.tle-no-js-code-to-silicon p {
  margin: 0 0 7px;
}

.tle-no-js-code-to-silicon h2 {
  font-size: 0.82rem;
}

.tle-no-js-code-to-silicon ol {
  margin: 0;
  padding-left: 20px;
}

.tle-js-only {
  display: none;
}

.tle-engine[data-tle-ready="true"] .tle-js-only {
  display: initial;
}



.tle-rail {
  position: relative;
  min-height: 0;
  padding: 2px 0;
}

.tle-rail-track,
.tle-rail-progress {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
}

.tle-rail-track {
  background: var(--ink-200);
}

.tle-rail-progress {
  bottom: auto;
  height: var(--tle-progress, 0%);
  background: var(--accent);
  transition: height 220ms ease-out;
}

.tle-rail-link {
  position: absolute;
  z-index: 2;
  top: var(--tle-position, 0%);
  left: 50%;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--ink-400);
  text-decoration: none;
  transform: translate(-50%, -50%);
}

.tle-rail-link::before {
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--paper);
  content: "";
}

.tle-rail-link:hover,
.tle-rail-link[aria-current="true"] {
  color: var(--accent);
}

.tle-rail-link[aria-current="true"]::before {
  width: 11px;
  height: 11px;
  border: 3px solid var(--paper);
  outline: 1px solid var(--accent);
  background: var(--accent);
}



[data-tle-rail][data-tle-rail-mode="chapters"] {
  display: grid;
  grid-template-rows: repeat(var(--tle-chapter-count, 10), minmax(32px, 1fr));
  align-items: stretch;
  isolation: isolate;
}

.tle-rail[data-tle-rail-mode="chapters"]
  .tle-rail-link:not([data-tle-rail-chapter]):not(.tle-rail-chapter-link) {
  display: none;
}

.tle-rail[data-tle-rail-mode="chapters"] .tle-rail-link[data-tle-rail-chapter],
.tle-rail[data-tle-rail-mode="chapters"] .tle-rail-chapter-link {
  position: relative;
  top: auto;
  left: auto;
  display: grid;
  width: 100%;
  height: auto;
  min-height: 32px;
  place-items: center;
  transform: none;
}

.tle-rail[data-tle-rail-mode="chapters"] .tle-rail-chapter-link::before {
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--paper);
  content: "";
}

.tle-rail[data-tle-rail-mode="chapters"]
  :is(.tle-rail-link[data-tle-rail-chapter], .tle-rail-chapter-link)::after {
  position: absolute;
  z-index: 4;
  left: calc(100% + 7px);
  display: none;
  width: max-content;
  max-width: min(240px, 70vw);
  padding: 5px 7px;
  border: var(--hairline);
  color: var(--ink);
  background: var(--paper);
  content: attr(aria-label);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
}

.tle-rail[data-tle-rail-mode="chapters"]
  :is(.tle-rail-link[data-tle-rail-chapter], .tle-rail-chapter-link):is(:hover, :focus-visible)::after {
  display: block;
}

.tle-rail[data-tle-rail-mode="chapters"]
  :is(.tle-rail-link[data-tle-rail-chapter], .tle-rail-chapter-link)[aria-current="true"] {
  color: var(--accent);
}

.tle-rail[data-tle-rail-mode="chapters"]
  .tle-rail-chapter-link[aria-current="true"]::before {
  width: 11px;
  height: 11px;
  border: 3px solid var(--paper);
  outline: 1px solid var(--accent);
  background: var(--accent);
}

.tle-rail-scene-list {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 5px;
  border: var(--hairline);
  background: var(--paper);
  list-style: none;
}

.tle-rail-scene-link {
  display: grid;
  min-width: 28px;
  min-height: 28px;
  place-items: center;
  border: var(--hairline);
  color: var(--ink-600);
  background: var(--paper);
  font: 600 0.6875rem/1 var(--font-mono);
  text-decoration: none;
}

.tle-rail-scene-link[aria-current="true"] {
  border-color: var(--accent);
  color: var(--paper);
  background: var(--accent);
}

.tle-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}



.tle-evidence-mark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  color: var(--ink-600);
}

.tle-evidence-mark::before {
  display: inline-grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid var(--ink-400);
  color: var(--ink);
  background: var(--paper);
  content: attr(data-evidence-symbol);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1;
}

.tle-evidence-label {
  min-width: 0;
  color: currentColor;
  font-size: 0.625rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.tle-evidence-mark[data-compact="true"] .tle-evidence-label {
  font-size: 0.58rem;
}

[data-evidence="measured"] .tle-evidence-mark::before,
.tle-evidence-mark[data-evidence="measured"]::before {
  border-color: var(--accent);
  color: var(--paper);
  background: var(--accent);
}

[data-evidence="allocated"] .tle-evidence-mark::before,
.tle-evidence-mark[data-evidence="allocated"]::before {
  border-color: var(--accent);
  border-style: double;
  background: var(--accent-soft);
}

[data-evidence="modelled"] .tle-evidence-mark::before,
.tle-evidence-mark[data-evidence="modelled"]::before,
[data-evidence="derived"] .tle-evidence-mark::before,
.tle-evidence-mark[data-evidence="derived"]::before {
  border-style: dashed;
}

[data-evidence="unknown"] .tle-evidence-mark::before,
.tle-evidence-mark[data-evidence="unknown"]::before {
  color: var(--ink-500);
  background: var(--ink-100);
}

[data-evidence="invalid"] .tle-evidence-mark::before,
.tle-evidence-mark[data-evidence="invalid"]::before {
  border-width: 2px;
  border-color: var(--ink);
}

.tle-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 10px 0 0;
}

.tle-legend .tle-evidence-mark {
  color: var(--ink-500);
  font-size: 0.58rem;
}



.tle-diagram {
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.tle-diagram-caption {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.72rem;
  line-height: 1.45;
}

.tle-node {
  position: relative;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 9px;
  border: var(--hairline);
  color: var(--ink);
  background: var(--paper);
}

.tle-node[data-active="true"] {
  border-color: var(--tle-focus-color);
  border-left-width: 3px;
}

.tle-node-name {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
}

.tle-node-detail {
  color: var(--ink-500);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  line-height: 1.4;
}

.tle-flow-arrow {
  display: grid;
  height: 16px;
  place-items: center;
  color: var(--ink-400);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1;
}

.tle-flow-arrow::before {
  content: "↓";
}

.tle-svg {
  display: block;
  width: 100%;
  height: auto;
  color: var(--ink);
  background: var(--paper);
}

.tle-svg .tle-svg-structure {
  fill: var(--paper);
  stroke: var(--ink-400);
  stroke-width: 1;
}

.tle-svg .tle-svg-active {
  fill: var(--accent-soft);
  stroke: var(--tle-focus-color);
  stroke-width: 1.5;
}

.tle-svg .tle-svg-muted {
  fill: var(--ink-100);
  stroke: var(--ink-200);
  stroke-width: 1;
}

.tle-svg .tle-svg-path {
  fill: none;
  stroke: var(--ink-400);
  stroke-width: 1.5;
}

.tle-svg .tle-svg-path-active {
  fill: none;
  stroke: var(--tle-focus-color);
  stroke-width: 2;
}

.tle-svg text {
  fill: var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
}

.tle-svg .tle-svg-secondary {
  fill: var(--ink-500);
  font-size: 8px;
}



.tle-hbm-key {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 12px;
}

.tle-hbm-key-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-600);
  font-size: 0.66rem;
  line-height: 1.3;
}

.tle-hbm-key-item::before {
  width: 11px;
  height: 11px;
  border: var(--hairline);
  background: var(--ink-100);
  content: "";
}

.tle-hbm-key-item[data-active="true"]::before {
  border-color: var(--tle-focus-color);
  background: var(--accent-soft);
}



.tle-memory-stack {
  display: grid;
  gap: 9px;
}

.tle-memory-bar {
  display: flex;
  min-height: 48px;
  overflow: hidden;
  border: 1px solid var(--ink-400);
  background: var(--ink-100);
}

.tle-memory-segment {
  display: grid;
  min-width: 4px;
  place-items: center;
  border-right: 1px solid var(--paper);
  color: var(--ink);
  background: var(--ink-100);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1;
}

.tle-memory-segment:last-child {
  border-right: 0;
}

.tle-memory-segment[data-kind="weights"],
.tle-memory-segment[data-kind="experts"] {
  background-color: var(--ink-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M-2 2l4-4M0 8L8 0M6 10l4-4' stroke='%23e5e5e5' stroke-width='3'/%3E%3C/svg%3E");
}

.tle-memory-segment[data-kind="kv"] {
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M10 2L6 -2M8 8L0 0M2 10l-4-4' stroke='%23e8f0fe' stroke-width='3'/%3E%3C/svg%3E");
}

.tle-memory-segment[data-kind="reserve"] {
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M1.5 0v6' stroke='%23f5f5f5' stroke-width='3'/%3E%3C/svg%3E");
  outline: 1px dashed var(--ink-300);
  outline-offset: -3px;
}

.tle-memory-segment[data-kind="activation"],
.tle-memory-segment[data-kind="workspace"],
.tle-memory-segment[data-kind="communication"] {
  background: var(--ink-100);
}

.tle-memory-segment[data-kind="fragmentation"],
.tle-memory-segment[data-kind="unknown"] {
  background: var(--paper);
  outline: 1px dashed var(--ink-400);
  outline-offset: -3px;
}

.tle-memory-segment[data-active="true"] {
  border-bottom: 3px solid var(--tle-focus-color);
}

.tle-memory-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.tle-memory-legend-item {
  color: var(--ink-600);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  line-height: 1.35;
}

.tle-tier-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
}

.tle-tier-path .tle-node:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -11px;
  color: var(--ink-400);
  content: "→";
  font-family: var(--font-mono);
  transform: translateY(-50%);
}



.tle-code-path {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
  gap: 5px;
  align-items: center;
}

.tle-code-path .tle-flow-arrow {
  width: 18px;
  height: auto;
  transform: rotate(-90deg);
}

.tle-code-line {
  max-width: 100%;
  margin: 0;
  padding: 8px 9px;
  overflow-x: auto;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  line-height: 1.5;
  white-space: pre;
}

.tle-code-line[data-active="true"] {
  border-left: 3px solid var(--tle-focus-color);
}



.tle-code-to-silicon {
  gap: 8px;
}

.tle-cts-source,
.tle-cts-common-stage,
.tle-cts-lane,
.tle-cts-gate {
  min-width: 0;
  border: var(--hairline);
  background: var(--paper);
}

.tle-cts-source {
  display: grid;
  gap: 6px;
  padding: 8px;
}

.tle-cts-source[data-active="true"],
.tle-cts-common-stage[data-active="true"] {
  border-color: var(--tle-focus-color);
  border-left-width: 3px;
}

.tle-cts-stage-header,
.tle-cts-lane-header,
.tle-cts-branch,
.tle-cts-gate {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.tle-cts-focus-code {
  flex: 0 0 auto;
  color: var(--tle-focus-color);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 700;
  line-height: 1.2;
}

.tle-cts-stage-label {
  min-width: 0;
  margin-right: auto;
  color: var(--ink);
  font-size: 0.64rem;
  line-height: 1.25;
}

.tle-cts-status,
.tle-cts-branch-status,
.tle-cts-gate {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.58rem;
  line-height: 1.35;
}

.tle-cts-common {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tle-cts-common-stage {
  padding: 6px;
}

.tle-cts-branch {
  justify-content: center;
  padding: 5px 7px;
  border-top: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-200);
  text-align: center;
}

.tle-cts-branch-line {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.57rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tle-cts-lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.tle-cts-lane {
  display: grid;
  gap: 5px;
  padding: 6px;
}

.tle-cts-lane-header {
  justify-content: space-between;
}

.tle-cts-lane-title {
  margin: 0;
  color: var(--ink);
  font-size: 0.62rem;
  line-height: 1.25;
}

.tle-cts-handoff {
  display: grid;
  gap: 6px;
  padding: 7px;
  border: var(--hairline);
  background: var(--paper);
}

.tle-cts-handoff-title {
  margin: 0;
  color: var(--ink);
  font-size: 0.63rem;
  line-height: 1.25;
}

.tle-cts-handoff-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tle-cts-handoff-stage {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px dashed var(--ink-400);
  background: var(--ink-100);
}

.tle-cts-gate {
  padding: 7px;
  border-left: 3px solid var(--ink-400);
  background: var(--ink-100);
}



.tle-cts-five-pane {
  gap: 10px;
}

.tle-cts-pane {
  display: grid;
  min-width: 0;
  gap: 7px;
  padding: 8px;
  border: var(--hairline);
  border-left: 3px solid var(--ink-300);
  background: var(--paper);
}

.tle-cts-pane[data-active="true"] {
  border-left-color: var(--tle-focus-color);
}

.tle-cts-pane-header {
  display: flex;
  align-items: baseline;
  gap: 7px;
  border-bottom: 1px solid var(--ink-200);
  padding-bottom: 5px;
}

.tle-cts-pane-number {
  color: var(--tle-focus-color);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
}

.tle-cts-pane-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.tle-cts-fact {
  display: grid;
  grid-template-columns: minmax(88px, 0.38fr) minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  padding-bottom: 4px;
  border-bottom: 1px dotted var(--ink-200);
}

.tle-cts-fact-label,
.tle-cts-fact-value {
  min-width: 0;
  color: var(--ink-600);
  font-size: 0.57rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.tle-cts-fact-value {
  color: var(--ink);
}

code.tle-cts-fact-value {
  font-family: var(--font-mono);
}

.tle-cts-code-join,
.tle-cts-flow-list,
.tle-cts-launch-hierarchy,
.tle-cts-state-ladder {
  display: grid;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tle-cts-code-node {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) auto auto;
  gap: 5px;
  align-items: center;
  padding: 5px;
  border: 1px dashed var(--ink-300);
  background: var(--ink-100);
}

.tle-cts-code-node[data-active="true"] {
  border: 2px solid var(--tle-focus-color);
  background: var(--paper);
}

.tle-cts-code-id,
.tle-cts-code-label,
.tle-cts-code-state,
.tle-cts-flow-relation,
.tle-cts-flow-endpoints {
  min-width: 0;
  color: var(--ink-600);
  font-size: 0.54rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.tle-cts-code-id,
.tle-cts-flow-endpoints {
  font-family: var(--font-mono);
}

.tle-cts-code-label {
  color: var(--ink);
}

.tle-cts-code-state {
  text-transform: uppercase;
}

.tle-cts-flow-item {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) auto;
  gap: 5px;
  align-items: start;
  padding: 4px 5px;
  border-left: 2px dotted var(--ink-300);
}

.tle-cts-flow-item[data-active="true"] {
  border-left: 3px solid var(--tle-focus-color);
}

.tle-cts-flow-relation {
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
}

.tle-cts-execution-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tle-cts-execution-key,
.tle-cts-tensor-cell,
.tle-cts-launch-stage {
  color: var(--ink-600);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  line-height: 1.2;
}

.tle-cts-execution-key {
  padding: 3px 5px;
  border: 1px solid var(--ink-300);
}

[data-execution-state="active"] {
  border-style: solid;
  border-color: var(--tle-focus-color);
}

[data-execution-state="waiting"] {
  border-style: dashed;
}

[data-execution-state="stalled"] {
  border-style: double;
  border-color: var(--ink-600);
}

.tle-cts-tensor-grid {
  display: grid;
  grid-template-columns: repeat(var(--tle-cts-grid-columns, 4), minmax(0, 1fr));
  gap: 3px;
  padding: 5px;
  border: 1px solid var(--ink-300);
  background: var(--ink-100);
}

.tle-cts-tensor-cell {
  min-width: 0;
  padding: 6px 2px;
  border-width: 1px;
  text-align: center;
}

.tle-cts-tensor-cell[data-owner="q"]::before {
  content: "Q ";
}

.tle-cts-tensor-cell[data-owner="k"]::before {
  content: "K ";
}

.tle-cts-tensor-cell[data-owner="v"]::before {
  content: "V ";
}

.tle-cts-tensor-cell[data-owner="out"]::before {
  content: "O ";
}

.tle-cts-launch-hierarchy {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tle-cts-launch-stage {
  position: relative;
  padding: 5px;
  border-width: 1px;
  text-align: center;
}

.tle-cts-launch-stage:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -5px;
  content: ">";
  color: var(--ink-400);
  transform: translateY(-50%);
}

.tle-cts-resource-slots {
  display: grid;
  gap: 5px;
}

.tle-cts-resource-slot {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(76px, auto) auto;
  gap: 3px 6px;
  align-items: baseline;
  padding: 6px;
  border: 1px dashed var(--ink-400);
  background: var(--ink-100);
}

.tle-cts-resource-slot[data-active="true"] {
  border: 2px solid var(--tle-focus-color);
  background: var(--paper);
}

.tle-cts-resource-label,
.tle-cts-resource-value,
.tle-cts-resource-unit,
.tle-cts-resource-boundary,
.tle-cts-resource-denominator,
.tle-cts-resource-needed {
  min-width: 0;
  color: var(--ink-600);
  font-size: 0.54rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.tle-cts-resource-label,
.tle-cts-resource-value {
  color: var(--ink);
}

.tle-cts-resource-value {
  font-family: var(--font-mono);
}

.tle-cts-resource-boundary,
.tle-cts-resource-denominator,
.tle-cts-resource-needed {
  grid-column: 1 / -1;
}

.tle-cts-state-ladder {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.tle-cts-state-rung {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 5px 3px;
  border: 1px dashed var(--ink-300);
  background: var(--ink-100);
  text-align: center;
}

.tle-cts-state-rung[data-active="true"] {
  border: 2px solid var(--tle-focus-color);
  background: var(--paper);
}

.tle-cts-state-order,
.tle-cts-state-label,
.tle-cts-state-status {
  min-width: 0;
  color: var(--ink-500);
  font-family: var(--font-mono);
  font-size: 0.48rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.tle-cts-state-label {
  color: var(--ink);
}

.tle-cts-receipt-facts {
  display: grid;
  gap: 3px;
}



.tle-fabric-layers {
  display: grid;
  gap: 7px;
}

.tle-fabric-layer {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.tle-fabric-scope {
  color: var(--ink-400);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
}

.tle-fabric-path {
  position: relative;
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.tle-fabric-path::before {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 5px;
  left: 5px;
  height: 1px;
  background: var(--ink-200);
  content: "";
}

.tle-fabric-chip {
  display: grid;
  min-width: 28px;
  min-height: 28px;
  place-items: center;
  border: var(--hairline);
  color: var(--ink-600);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.58rem;
}

.tle-fabric-chip[data-active="true"] {
  border-color: var(--tle-focus-color);
  color: var(--ink);
  background: var(--accent-soft);
}

.tle-fabric-chip[data-role="protocol"] {
  border-style: dashed;
}

.tle-fabric-chip[data-role="wire"] {
  border-style: dotted;
}

.tle-fabric-chip[data-role="tier"],
.tle-fabric-chip[data-role="orchestration"] {
  border-width: 3px;
}

.tle-fabric-chip[data-role="tier"] {
  border-style: double;
}

.tle-fabric-chip[data-role="orchestration"] {
  border-style: groove;
}



.tle-machine {
  display: grid;
  gap: 11px;
}

.tle-machine-lane {
  position: relative;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 8px;
}

.tle-machine-lane-label {
  padding-top: 7px;
  color: var(--ink-400);
}

.tle-machine-flow {
  position: relative;
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 12px;
}

.tle-machine-flow::before {
  position: absolute;
  top: 17px;
  right: 4px;
  left: 4px;
  height: 1px;
  background: var(--ink-200);
  content: "";
}

.tle-machine-stage {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 48px;
  max-width: 84px;
  flex: 1 1 56px;
  gap: 3px;
  padding-top: 26px;
  color: var(--ink-600);
  font-size: 0.61rem;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

.tle-machine-stage::before {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 11px;
  height: 11px;
  border: 1px solid var(--ink-400);
  border-radius: 50%;
  background: var(--paper);
  content: "";
  transform: translateX(-50%);
}

.tle-machine-stage[data-active="true"]::before {
  border-color: var(--tle-focus-color);
  background: var(--tle-focus-color);
  outline: 2px solid var(--paper);
  outline-offset: -4px;
}

.tle-machine-stage[data-evidence="unknown"]::before {
  border-style: dashed;
  background: var(--ink-100);
}

.tle-machine-stage-value {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
}

.tle-machine-join {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 8px;
  color: var(--ink-500);
  font-size: 0.65rem;
  line-height: 1.4;
}

.tle-machine-join::after {
  height: 14px;
  margin-left: 5px;
  border-left: 1px solid var(--ink-400);
  content: "";
}

.tle-water-boundary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 4px;
}

.tle-water-boundary .tle-node {
  background: var(--ink-100);
}

.tle-boundary-warning {
  padding: 7px 9px;
  border-left: 2px solid var(--ink);
  color: var(--ink-600);
  background: var(--ink-100);
  font-size: 0.65rem;
  line-height: 1.45;
}



.tle-money-lane {
  display: none;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: var(--hairline);
}

.tle-money-lane[data-has-money="true"] {
  display: grid;
}

.tle-money-header {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.tle-money-label {
  color: var(--ink-400);
}

.tle-money-total {
  min-width: 0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.tle-money-items {
  display: grid;
  gap: 1px;
  background: var(--ink-200);
  border: var(--hairline);
}

.tle-money-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  background: var(--paper);
}

.tle-money-item-name {
  min-width: 0;
  color: var(--ink-600);
  font-size: 0.67rem;
  line-height: 1.3;
}

.tle-money-item-value,
.tle-money-delta-value {
  min-width: 0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  white-space: normal;
}

.tle-money-delta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--ink-200);
  border: var(--hairline);
}

.tle-money-delta-cell {
  min-width: 0;
  padding: 7px 8px;
  background: var(--paper);
}

.tle-money-delta-cell span:first-child {
  display: block;
  color: var(--ink-400);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  line-height: 1.3;
  text-transform: uppercase;
}



.tle-step-controls {
  display: none;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 10px 0 2px;
}

.tle-step-controls[data-enabled="true"] {
  display: grid;
}

.tle-step-button {
  min-width: 44px;
  min-height: 44px;
  padding: 6px 9px;
  border: 1px solid var(--ink-400);
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
}

.tle-step-button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.tle-step-button:disabled {
  color: var(--ink-400);
  background: var(--ink-100);
  cursor: not-allowed;
}

.tle-step-status {
  min-width: 0;
  color: var(--ink-600);
  font-size: 0.66rem;
  line-height: 1.35;
  text-align: center;
}



.tle-eyebrow,
.tle-scene-count,
.tle-state-label,
.tle-evidence-mark,
.tle-visual-label,
.tle-step-count,
.tle-machine-lane-label,
.tle-money-label,
.tle-focus-cue,
.tle-teaching-kicker,
.tle-teaching-case-role,
.tle-teaching-platform-slot,
.tle-legend .tle-evidence-mark,
.tle-hbm-key-item,
.tle-memory-segment,
.tle-memory-legend-item,
.tle-cts-focus-code,
.tle-cts-stage-label,
.tle-cts-status,
.tle-cts-branch-status,
.tle-cts-gate,
.tle-cts-branch-line,
.tle-cts-lane-title,
.tle-cts-handoff-title,
.tle-cts-pane-number,
.tle-cts-pane-title,
.tle-cts-fact-label,
.tle-cts-fact-value,
.tle-cts-code-id,
.tle-cts-code-label,
.tle-cts-code-state,
.tle-cts-flow-relation,
.tle-cts-flow-endpoints,
.tle-cts-execution-key,
.tle-cts-tensor-cell,
.tle-cts-launch-stage,
.tle-cts-resource-label,
.tle-cts-resource-value,
.tle-cts-resource-unit,
.tle-cts-resource-boundary,
.tle-cts-resource-denominator,
.tle-cts-resource-needed,
.tle-cts-state-order,
.tle-cts-state-label,
.tle-cts-state-status,
.tle-fabric-scope,
.tle-fabric-chip,
.tle-machine-stage,
.tle-machine-stage-value,
.tle-money-item-value,
.tle-money-delta-value,
.tle-money-delta-cell span:first-child {
  font-size: 0.6875rem;
}

.tle-diagram-caption,
.tle-node-detail,
.tle-teaching-lens-title,
.tle-teaching-case-name,
.tle-teaching-lens-text,
.tle-teaching-axis,
.tle-teaching-gate,
.tle-teaching-unknown,
.tle-machine-join,
.tle-boundary-warning,
.tle-money-item-name,
.tle-step-status {
  font-size: 0.75rem;
}

.tle-svg text {
  font-size: 11px;
}

.tle-svg .tle-svg-secondary {
  font-size: 10px;
}

.tle-code-line {
  font-size: 0.75rem;
}



@media (max-width: 1180px) {
  .tle-layout {
    --tle-engine-width: 320px;
    --tle-layout-gap: 32px;
    grid-template-columns: minmax(280px, var(--tle-engine-width)) minmax(0, 1fr);
  }

  .tle-current-state {
    grid-template-columns: 1fr;
  }

  .tle-tier-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tle-tier-path .tle-node::after {
    display: none;
  }

  .tle-machine-lane,
  .tle-machine-join {
    grid-template-columns: 1fr;
  }

  .tle-machine-lane-label {
    padding-top: 0;
  }
}

@media (max-width: 1048px) {
  .tle-layout {
    --tle-engine-width: clamp(248px, 31vw, 300px);
    --tle-layout-gap: clamp(20px, 2.8vw, 28px);
    display: grid;
    grid-template-columns: minmax(248px, var(--tle-engine-width)) minmax(0, 1fr);
    width: min(100%, var(--measure-page));
  }

  .tle-engine {
    position: sticky;
    z-index: 10;
    top: 68px;
    grid-template-columns: 34px minmax(0, 1fr);
    max-height: calc(100vh - 88px);
    max-height: calc(100dvh - 88px);
    margin: 0;
  }

  .tle-rail {
    min-height: 0;
    align-self: stretch;
  }

  .tle-stage {
    overscroll-behavior-y: auto;
    padding: 9px 9px 11px 14px;
  }

  .tle-current-state {
    display: flex;
    gap: 1px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .tle-state-item {
    flex: 0 0 min(190px, 72vw);
    scroll-snap-align: start;
  }

  .tle-teaching-lenses {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .tle-teaching-lens {
    flex: 0 0 min(420px, 82%);
    scroll-snap-align: start;
  }

  .tle-machine-lane,
  .tle-machine-join {
    grid-template-columns: 74px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .tle-layout {
    --tle-engine-width: clamp(228px, 30vw, 268px);
    --tle-layout-gap: clamp(16px, 2.5vw, 22px);
    grid-template-columns: minmax(228px, var(--tle-engine-width)) minmax(0, 1fr);
  }

  .tle-engine {
    max-height: calc(100vh - 84px);
    max-height: calc(100dvh - 84px);
  }
}

@media (max-width: 640px) {
  .tle-layout {
    --tle-engine-width: clamp(204px, 36vw, 228px);
    --tle-layout-gap: 14px;
    grid-template-columns: minmax(204px, var(--tle-engine-width)) minmax(0, 1fr);
  }

  .tle-engine {
    top: 60px;
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    margin: 0;
  }

  .tle-stage {
    padding-right: 6px;
    padding-left: 10px;
  }

  .tle-stage-meta {
    flex-wrap: wrap;
  }

  .tle-scene-title {
    font-size: 1.15rem;
  }

  .tle-scene-summary {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .tle-current-state,
  .tle-water-boundary,
  .tle-money-delta {
    grid-template-columns: 1fr;
  }

  .tle-tier-path,
  .tle-code-path {
    grid-template-columns: 1fr;
  }

  .tle-code-path .tle-flow-arrow {
    width: auto;
    height: 16px;
    transform: none;
  }

  .tle-fabric-layer {
    grid-template-columns: 1fr;
  }

  .tle-machine-lane,
  .tle-machine-join {
    grid-template-columns: 1fr;
  }

  .tle-money-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tle-money-item .tle-evidence-mark {
    grid-column: 1 / -1;
  }

  .tle-teaching-cases {
    grid-template-columns: 1fr;
  }

  .tle-focus-label {
    white-space: normal;
  }

  .tle-cts-handoff-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tle-cts-code-node,
  .tle-cts-flow-item,
  .tle-cts-resource-slot {
    grid-template-columns: 1fr;
  }

  .tle-cts-launch-hierarchy,
  .tle-cts-state-ladder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tle-cts-launch-stage:not(:last-child)::after {
    display: none;
  }
}


@media (max-width: 560px) {
  .tle-layout {
    display: block;
    width: 100%;
  }

  .tle-engine {
    position: relative;
    z-index: auto;
    top: auto;
    max-height: none;
    margin: 0 0 36px;
    overflow: visible;
  }

  .tle-stage {
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
  }
}

@container tle-engine (max-width: 430px) {
  .tle-current-state,
  .tle-teaching-cases,
  .tle-cts-common,
  .tle-cts-lanes,
  .tle-water-boundary,
  .tle-money-delta,
  .tle-fabric-layer,
  .tle-machine-lane,
  .tle-machine-join,
  .tle-cts-code-node,
  .tle-cts-flow-item,
  .tle-cts-resource-slot,
  .tle-cts-fact {
    grid-template-columns: 1fr;
  }

  .tle-tier-path,
  .tle-cts-handoff-list,
  .tle-cts-launch-hierarchy,
  .tle-cts-state-ladder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tle-code-path {
    grid-template-columns: 1fr;
  }

  .tle-code-path .tle-flow-arrow {
    width: auto;
    height: 16px;
    transform: none;
  }

  .tle-tier-path .tle-node::after,
  .tle-cts-launch-stage:not(:last-child)::after {
    display: none;
  }

  .tle-cts-lane .tle-svg {
    min-height: 0;
  }

  .tle-money-item {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .tle-money-item-name,
  .tle-money-item-value {
    grid-column: 1;
  }

  .tle-money-item .tle-evidence-mark {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@container tle-engine (max-width: 330px) {
  .tle-hbm-key,
  .tle-tier-path,
  .tle-cts-handoff-list,
  .tle-cts-launch-hierarchy,
  .tle-cts-state-ladder {
    grid-template-columns: 1fr;
  }

  .tle-teaching-lens {
    flex-basis: 92%;
  }

}

@container tle-renderer (max-width: 300px) {
  .tle-machine-lane {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 6px;
  }

  .tle-water-boundary {
    gap: 5px;
  }
}

@container tle-article (max-width: 900px) {
  .article-header h1 {
    font-size: clamp(2.6rem, 8cqi, 4rem);
    letter-spacing: -2px;
  }
}

@container tle-article (max-width: 560px) {
  .article-header h1 {
    font-size: clamp(2.35rem, 10cqi, 3.2rem);
    letter-spacing: -1.5px;
  }
}

@media (max-height: 760px) and (min-width: 1049px) {
  .tle-engine {
    top: 72px;
    max-height: calc(100vh - 88px);
    max-height: calc(100dvh - 88px);
  }
}



.tle-layout {
  --tle-layout-gap: 32px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--tle-layout-gap);
}

.tle-engine {
  max-height: none;
  overflow: visible;
}

.tle-engine[data-tle-detail-open="true"] {
  position: relative;
  top: auto;
}

.tle-stage {
  max-height: none;
  overflow: visible;
  overscroll-behavior: auto;
  scrollbar-gutter: auto;
}

.tle-layout-presets {
  position: fixed;
  z-index: 45;
  right: 16px;
  bottom: 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  width: min(180px, calc(100vw - 32px));
  min-height: 44px;
  padding: 5px 7px;
  border: 1px solid var(--ink-400);
  background: var(--paper);
  font: 700 0.6875rem/1.35 var(--font-mono);
}

.tle-layout-preset-select {
  min-height: 44px;
  min-width: 0;
  border: var(--hairline);
  color: var(--ink);
  background: var(--paper);
}

.tle-code-jump-wrap {
  position: fixed;
  z-index: 45;
  right: 16px;
  bottom: 78px;
  display: grid;
  justify-items: end;
}

.tle-code-jump {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--accent);
  color: var(--paper);
  background: var(--accent);
  font: 700 0.6875rem/1.35 var(--font-mono);
}

.tle-code-jump-menu {
  order: -1;
  width: min(320px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.tle-code-jump-option {
  display: flex;
  width: 100%;
  min-height: 46px;
  margin-top: 7px;
  padding: 9px 11px;
  border: 1px solid var(--ink-400);
  color: var(--ink);
  background: var(--paper);
  font: 700 0.75rem/1.35 var(--font-mono);
  text-align: left;
  text-decoration: none;
}

.tle-code-jump-option:hover,
.tle-code-jump-option:focus-visible {
  border-color: var(--accent);
  color: var(--paper);
  background: var(--accent);
}

.tle-receipt-banner {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  margin-top: 10px;
  padding: 7px 9px;
  border: 1px solid var(--ink-400);
  background: var(--ink-100);
}

.tle-receipt-banner[data-receipt-mode="accepted"] {
  border-left: 3px solid var(--accent);
}

.tle-receipt-banner[data-receipt-mode="captured"] {
  border-left: 3px solid var(--ink-600);
}

.tle-receipt-mode,
.tle-receipt-detail,
.tle-perspective-label,
.tle-perspective-resolved,
.tle-phase-active,
.tle-phase-table,
.tle-detail-summary,
.tle-code-tab,
.tle-code-meta,
.tle-code-gate {
  font-family: var(--font-mono);
}

.tle-receipt-mode {
  color: var(--ink);
  font-size: 0.6875rem;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.tle-receipt-detail {
  min-width: 0;
  color: var(--ink-600);
  font-size: 0.6875rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.tle-toolbar {
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr) auto;
  gap: 7px 9px;
  align-items: center;
  margin-top: 8px;
}

.tle-perspective-label,
.tle-perspective-resolved {
  color: var(--ink-600);
  font-size: 0.6875rem;
  line-height: 1.3;
}

.tle-perspective-select {
  width: 100%;
  min-height: 36px;
  padding: 5px 28px 5px 8px;
  border: var(--hairline);
  color: var(--ink);
  background: var(--paper);
  font-size: 0.75rem;
}

.tle-reading-guide {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  border: var(--hairline);
  border-left: 4px solid var(--accent);
  background: var(--ink-100);
}

.tle-reading-guide-title,
.tle-reading-guide-invariant,
.tle-reading-guide-label,
.tle-reading-guide-value {
  margin: 0;
}

.tle-reading-guide-title {
  font-size: 0.875rem;
  line-height: 1.35;
}

.tle-reading-guide-invariant {
  color: var(--ink-600);
  font-size: 0.6875rem;
  line-height: 1.45;
}

.tle-reading-guide-connections {
  display: grid;
  gap: 5px;
}

.tle-reading-guide-connection {
  display: grid;
  grid-template-columns: minmax(120px, .7fr) minmax(0, 1.3fr);
  gap: 8px;
  padding: 6px 8px;
  border-left: 2px solid var(--accent);
  background: var(--paper);
  font-size: 0.75rem;
  line-height: 1.4;
}

.tle-reading-guide-connection strong {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
}

.tle-reading-guide-details > summary {
  min-height: 44px;
  padding: 7px 9px;
  border: var(--hairline);
  cursor: pointer;
  font: 700 0.6875rem/1.4 var(--font-mono);
}

.tle-reading-guide-details:not([open]) > .tle-reading-guide-grid {
  display: none;
}

.tle-reading-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tle-reading-guide-item {
  padding: 8px;
  border: var(--hairline);
  background: var(--paper);
}

.tle-reading-guide-label {
  margin-bottom: 4px;
  color: var(--ink-600);
  font: 700 0.625rem/1.3 var(--font-mono);
}

.tle-reading-guide-value,
.tle-reading-guide-order-list {
  font-size: 0.75rem;
  line-height: 1.45;
}

.tle-reading-guide-order-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tle-reading-guide-order-item {
  display: grid;
  gap: 1px;
}

.tle-reading-guide-order-item span,
.tle-phase-detail-focus {
  color: var(--ink-600);
}

.tle-reading-guide-action {
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--accent);
  color: var(--paper);
  background: var(--accent);
  font-weight: 700;
  text-align: left;
}

.tle-reading-guide-action:hover,
.tle-reading-guide-action:focus-visible {
  outline: 2px solid var(--ink);
}

.tle-phase-detail-focus {
  margin: 6px 0 0;
  padding-top: 6px;
  border-top: var(--hairline);
  font-size: 0.6875rem;
  line-height: 1.4;
}

.tle-phase-lanes {
  min-width: 0;
  margin-top: 10px;
  border-top: var(--rule-heavy);
}

.tle-phase-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  align-items: baseline;
  padding: 8px 0 6px;
}

.tle-phase-title,
.tle-phase-detail-title {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.tle-phase-title {
  font-size: 0.8125rem;
  line-height: 1.3;
}

.tle-phase-active {
  color: var(--ink-600);
  font-size: 0.6875rem;
  line-height: 1.3;
}

.tle-phase-table {
  display: block;
  width: 100%;
  border: var(--hairline);
  color: var(--ink);
  background: var(--paper);
  font-size: 0.6875rem;
  line-height: 1.25;
}

.tle-phase-table thead {
  display: none;
}

.tle-phase-table tbody {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--ink-200);
}

.tle-phase-row,
.tle-phase-name {
  display: block;
  width: 100%;
}

.tle-phase-table th,
.tle-phase-table td {
  min-width: 0;
  padding: 4px 5px;
  border-right: var(--hairline);
  border-bottom: var(--hairline);
  overflow-wrap: anywhere;
  text-align: left;
  vertical-align: middle;
}

.tle-phase-table thead th {
  color: var(--ink-600);
  background: var(--ink-100);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tle-phase-row[data-active="true"] > * {
  background: var(--accent-soft);
}

.tle-phase-row[data-active="true"] .tle-phase-name {
  border-left: 3px solid var(--accent);
}

.tle-phase-name {
  padding: 0 !important;
  border: 0 !important;
  font-weight: 600;
}

.tle-phase-cell {
  display: none;
}

.tle-phase-button {
  display: flex;
  width: 100%;
  min-height: 30px;
  gap: 6px;
  align-items: center;
  padding: 4px 5px;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.tle-phase-button:hover,
.tle-phase-button[aria-pressed="true"] {
  color: var(--accent);
}

.tle-phase-number {
  flex: 0 0 auto;
  color: var(--ink-400);
}

.tle-phase-name-text,
.tle-phase-lane-value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tle-phase-lane-label {
  display: none;
}

.tle-phase-detail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 7px;
  border: var(--hairline);
  background: var(--ink-200);
}

.tle-phase-detail-lane {
  min-width: 0;
  padding: 7px 8px;
  background: var(--paper);
}

.tle-phase-detail-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.tle-phase-detail-text {
  margin: 4px 0 0;
  color: var(--ink-600);
  font-size: 0.6875rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.tle-detail {
  margin-top: 10px;
  border: var(--hairline);
  background: var(--paper);
}

.tle-detail-summary {
  padding: 9px 10px;
  color: var(--ink);
  background: var(--ink-100);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
}

.tle-detail[open] > .tle-detail-summary {
  border-bottom: var(--hairline);
}

.tle-detail > :not(summary) {
  margin-right: 10px;
  margin-left: 10px;
}

.tle-current-state {
  margin-top: 10px;
}

.tle-code-inspector {
  min-width: 0;
  margin-top: 10px;
  padding-top: 10px;
  border-top: var(--hairline);
}

.tle-code-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: var(--hairline);
  background: var(--ink-200);
}

.tle-code-tab {
  min-width: 0;
  min-height: 36px;
  padding: 5px 4px;
  border: 0;
  color: var(--ink-600);
  background: var(--paper);
  cursor: pointer;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.tle-code-tab[aria-selected="true"] {
  color: var(--paper);
  background: var(--accent);
}

.tle-code-tab:not([aria-selected="true"])[data-tle-code-availability="not_bound"],
.tle-code-tab:not([aria-selected="true"])[data-tle-code-availability="not_applicable"],
.tle-code-tab:not([aria-selected="true"])[data-tle-code-availability="not_captured"],
.tle-code-tab:not([aria-selected="true"])[data-tle-code-availability="unsupported"],
.tle-code-tab:not([aria-selected="true"])[data-tle-code-availability="invalid"] {
  color: var(--ink-500);
  background: var(--ink-100);
  text-decoration: underline dotted;
}

.tle-code-panel {
  min-width: 0;
  padding-top: 7px;
}

.tle-code-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 5px 8px;
  align-items: center;
  color: var(--ink-600);
  font-size: 0.6875rem;
  line-height: 1.35;
}

.tle-code-example-name {
  color: var(--ink);
}

.tle-code-example-path {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tle-code-example {
  margin: 7px 0 0;
  padding: 9px;
  border: var(--hairline);
  color: var(--paper);
  background: var(--ink);
  font: 0.75rem/1.5 var(--font-mono);
  overflow: visible;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.tle-source-reader {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 8px 0;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.tle-source-reader-header {
  display: flex;
  gap: 10px;
  align-items: start;
  justify-content: space-between;
  padding: 10px 11px 0;
}

.tle-source-reader-heading {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.tle-source-reader-kicker,
.tle-source-reader-title,
.tle-source-reader-intro {
  margin: 0;
}

.tle-source-reader-kicker,
.tle-source-reader-language,
.tle-source-detail-kicker {
  color: var(--ink-500);
  font: 700 0.58rem/1.3 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tle-source-reader-title {
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.25;
}

.tle-source-reader-language {
  flex: 0 0 auto;
  padding: 3px 5px;
  border: 1px solid var(--ink-300);
  background: var(--ink-100);
}

.tle-source-reader-intro {
  padding: 0 11px 9px;
  color: var(--ink-600);
  font-size: 0.69rem;
  line-height: 1.45;
}

.tle-source-code {
  min-width: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: #07111f;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.tle-engine button.tle-source-line {
  display: grid;
  grid-template-columns: 48px minmax(max-content, 1fr);
  width: max-content;
  min-width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #1e3a5f;
  color: #bfdbfe;
  background: transparent;
  cursor: pointer;
  font: 0.75rem/1.65 var(--font-mono);
  text-align: left;
}

.tle-source-line:last-child {
  border-bottom: 0;
}

.tle-engine button.tle-source-line:hover {
  background: #0f2138;
}

.tle-engine button.tle-source-line[aria-selected="true"] {
  color: #f8fafc;
  background: #0b3a82;
  border-left: 3px solid var(--accent);
}

.tle-engine button.tle-source-line:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid #ffffff;
  outline-offset: -3px;
}

.tle-source-line-number {
  position: relative;
  min-height: 100%;
  padding: 3px 8px 3px 4px;
  border-right: 1px solid #313131;
  color: #8d96a5;
  text-align: right;
  user-select: none;
}

.tle-source-line[aria-selected="true"] .tle-source-line-number::before {
  position: absolute;
  left: 4px;
  content: "▶";
  color: #ffffff;
  font-size: 0.58rem;
}

.tle-source-line[aria-selected="true"] .tle-source-line-number {
  color: #dce9ff;
}

.tle-source-line-code {
  display: block;
  min-width: max-content;
  padding: 3px 12px;
  white-space: pre;
}

.tle-engine button.tle-source-line > code.tle-source-line-code {
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  overflow-wrap: normal;
}

.tle-syntax-keyword { color: #c4b5fd; }
.tle-syntax-string { color: #a7f3d0; }
.tle-syntax-number { color: #fbbf24; }
.tle-syntax-comment { color: #a8b3c7; font-style: italic; }
.tle-syntax-name { color: #bfdbfe; }
.tle-syntax-operator { color: #67e8f9; }
.tle-syntax-punctuation { color: #e2e8f0; }

.tle-source-line-detail {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 10px 11px 11px;
}

.tle-source-detail-kicker,
.tle-source-detail-title,
.tle-source-detail-copy,
.tle-source-phase-map p,
.tle-source-proof-boundary {
  margin: 0;
}

.tle-source-detail-title {
  color: var(--ink);
  font-size: 0.72rem;
  line-height: 1.3;
}

.tle-source-detail-copy,
.tle-source-phase-map,
.tle-source-proof-boundary {
  color: var(--ink-600);
  font-size: 0.68rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.tle-source-token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.tle-source-token-chip {
  display: inline-grid;
  grid-template-columns: minmax(0, auto) auto;
  gap: 5px;
  align-items: center;
  min-width: 0;
  padding: 3px 5px;
  border: 1px solid var(--ink-300);
  background: var(--ink-100);
  color: var(--ink-600);
  font: 0.55rem/1.2 var(--font-mono);
}

.tle-source-token-chip code {
  min-width: 0;
  color: var(--ink);
  font-size: 0.63rem;
  overflow-wrap: anywhere;
}

.tle-source-token-empty {
  color: var(--ink-500);
  font-size: 0.64rem;
}

.tle-source-phase-map {
  display: grid;
  gap: 3px;
  padding: 8px;
  border-left: 3px solid var(--accent);
  background: var(--ink-100);
}

.tle-source-phase-map strong {
  color: var(--ink);
  font: 700 0.6rem/1.35 var(--font-mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tle-source-io {
  display: grid;
  gap: 1px;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--ink-200);
  background: var(--ink-200);
}

.tle-source-io-row {
  display: grid;
  grid-template-columns: minmax(92px, 0.35fr) minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  padding: 6px 7px;
  background: var(--paper);
}

.tle-source-io dt,
.tle-source-io dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.tle-source-io dt {
  color: var(--ink-500);
  font: 700 0.56rem/1.35 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tle-source-io dd {
  color: var(--ink);
  font-size: 0.64rem;
  line-height: 1.4;
}

.tle-source-proof-boundary {
  padding: 7px 8px;
  border: 1px dashed var(--ink-500);
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-mono);
}

.tle-code-gate {
  margin: 6px 0 0;
  color: var(--ink-600);
  font-size: 0.6875rem;
  line-height: 1.4;
}

.tle-engine [hidden] {
  display: none !important;
}

@media (max-width: 1199px) and (min-width: 1024px) {
  .tle-layout {
    --tle-layout-gap: 24px;
    grid-template-columns: minmax(360px, 5fr) minmax(0, 7fr);
  }

  .tle-engine {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .tle-stage {
    padding-right: 8px;
    padding-left: 12px;
  }

  .tle-phase-table {
    font-size: 0.6875rem;
  }

  .tle-phase-table tbody {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tle-phase-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1023px) {
  .tle-layout {
    display: block;
    width: 100%;
  }

  .tle-engine {
    position: relative;
    z-index: auto;
    top: auto;
    width: 100%;
    max-height: none;
    margin: 0 0 32px;
    overflow: visible;
  }

  .tle-stage {
    max-height: none;
    overflow: visible;
  }

  .tle-current-state {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
  }

  .tle-teaching-lenses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .tle-teaching-lens {
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .tle-engine {
    display: block;
    margin-bottom: 24px;
    border: var(--hairline);
  }

  .tle-rail {
    display: none !important;
  }

  .tle-stage {
    padding: 0;
    border-left: 0;
  }

  .tle-stage-header {
    position: relative;
    min-height: 60px;
    gap: 3px;
    padding: 9px 10px;
    border-bottom: 0;
  }

  .tle-stage-meta {
    justify-content: flex-start;
  }

  .tle-eyebrow {
    display: none;
  }

  .tle-scene-title {
    font-size: 0.875rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
  }

  .tle-scene-summary {
    display: none;
  }

  .tle-index-return,
  .tle-inspect-toggle,
  .tle-perspective-select,
  .tle-chapter-map-button,
  .tle-reading-guide-action,
  .tle-layout-preset-select,
  .tle-step-button,
  .tle-phase-button,
  .tle-detail-tab,
  .tle-code-tab,
  .tle-trace-index-summary,
  .tle-phase-summary,
  .tle-detail-summary {
    min-height: 44px;
  }

  .tle-rail-scene-link {
    min-width: 44px;
    min-height: 44px;
  }

  .tle-step-scrubber {
    min-height: 44px;
  }

  .tle-engine[data-tle-expanded="false"] .tle-stage > :not(.tle-stage-header):not(.tle-no-js):not(.tle-sr-only) {
    display: none !important;
  }

  .tle-engine[data-tle-expanded="false"] .tle-context-strip {
    display: none !important;
  }

  .tle-receipt-banner,
  .tle-toolbar,
  .tle-reading-guide,
  .tle-rail-scene-list,
  .tle-phase-lanes,
  .tle-detail {
    margin-right: 10px;
    margin-left: 10px;
  }

  .tle-receipt-banner {
    grid-template-columns: 1fr;
  }

  .tle-toolbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .tle-perspective-resolved {
    grid-column: 1 / -1;
  }

  .tle-reading-guide-grid {
    grid-template-columns: 1fr;
  }

  .tle-phase-table tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tle-phase-detail {
    grid-template-columns: 1fr;
  }

  .tle-current-state {
    grid-template-columns: 1fr;
  }

  .tle-teaching-lenses {
    grid-template-columns: 1fr;
  }

  .tle-code-meta {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tle-code-example-path {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 520px) {
  .tle-stage-header {
    padding-right: 10px;
  }

  .tle-mobile-toggle {
    max-width: 132px;
  }

  .tle-code-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-height: 760px) and (min-width: 1024px) {
  .tle-engine {
    position: relative;
    top: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tle-stage {
    scroll-behavior: auto;
  }

  .tle-rail-progress {
    transition: none;
  }

  .tle-engine *,
  .tle-engine *::before,
  .tle-engine *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}



.tle-layout {
  --tle-visual-percent: 34%;
  --tle-split-control-width: 18px;
  --tle-layout-gap: 16px;
  grid-template-columns:
    minmax(300px, var(--tle-visual-percent))
    var(--tle-split-control-width)
    minmax(360px, 1fr);
  gap: var(--tle-layout-gap);
  align-items: stretch;
}

.tle-engine {
  min-height: 0;
  align-self: start;
}

.tle-engine[data-tle-sticky-eligible="true"] {
  position: sticky;
  top: 84px;
}

.tle-engine[data-tle-sticky-eligible="false"] {
  position: relative;
  top: auto;
}

.tle-engine[data-tle-compact="true"] {
  min-height: 0;
}

.tle-engine[data-tle-compact="true"] .tle-stage {
  min-height: 0;
  padding-top: 6px;
  padding-bottom: 6px;
}

.tle-engine[data-tle-compact="true"] .tle-stage-header {
  gap: 4px;
  padding-bottom: 7px;
}

.tle-engine[data-tle-compact="true"] .tle-scene-summary,
.tle-engine[data-tle-compact="true"] .tle-receipt-detail,
.tle-engine[data-tle-compact="true"] .tle-phase-summary-lanes {
  display: none;
}

.tle-engine[data-tle-compact="true"] .tle-receipt-banner,
.tle-engine[data-tle-compact="true"] .tle-toolbar,
.tle-engine[data-tle-compact="true"] .tle-phase-disclosure {
  margin-top: 5px;
}

.tle-engine[data-tle-compact="true"] .tle-rail-scene-list {
  display: flex;
  flex-wrap: nowrap;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.tle-engine[data-tle-compact="true"] .tle-rail-scene-list > li {
  flex: 0 0 auto;
}

.tle-receipt-banner {
  grid-template-columns: minmax(0, 1fr);
}

.tle-stage {
  min-height: 0;
}

.tle-split-control {
  position: relative;
  z-index: 11;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  align-self: stretch;
  pointer-events: none;
}

.tle-resize-handle {
  grid-area: 1 / 1;
  position: sticky;
  top: calc(50vh - 32px);
  width: 100%;
  height: 64px;
  min-height: 64px;
  cursor: col-resize;
  touch-action: none;
  pointer-events: auto;
}

.tle-resize-handle::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--ink-200);
  content: "";
  transform: translateX(-50%);
}

.tle-resize-handle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 30px;
  border: 1px solid var(--ink-400);
  border-radius: 8px;
  background: var(--paper);
  content: "";
  transform: translate(-50%, -50%);
}

.tle-resize-handle:hover::after,
.tle-resize-handle:focus-visible::after,
.tle-resize-handle[data-dragging="true"]::after {
  border-color: var(--accent);
  background-color: var(--accent-soft);
}

.tle-resize-handle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tle-collapse-visual {
  grid-area: 1 / 1;
  position: sticky;
  z-index: 2;
  top: 92px;
  display: grid;
  width: 30px;
  height: 30px;
  min-height: 30px;
  margin: 8px 0 0 -6px;
  align-self: start;
  justify-self: start;
  place-items: center;
  padding: 0;
  border: 1px solid var(--ink-400);
  color: var(--ink-600);
  background: var(--ink-100);
  cursor: pointer;
  font-family: var(--font-mono) !important;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1;
  pointer-events: auto;
}

.tle-inspect-toggle {
  justify-self: end;
  align-self: start;
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid var(--ink-400);
  color: var(--ink-600);
  background: var(--paper);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tle-inspect-toggle[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

@media (max-width: 1023px) {
  .tle-inspect-toggle {
    display: none;
  }
}

.tle-collapse-visual::before {
  content: "‹";
}

.tle-layout[data-tle-visual-collapsed="true"] .tle-collapse-visual::before {
  content: "›";
}

.tle-collapse-visual:hover,
.tle-collapse-visual:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.tle-layout[data-tle-visual-collapsed="true"] {
  grid-template-columns:
    30px
    var(--tle-split-control-width)
    minmax(0, 1fr);
}

.tle-layout[data-tle-visual-collapsed="true"] .tle-engine {
  grid-template-columns: 30px;
}

.tle-layout[data-tle-visual-collapsed="true"] .tle-stage {
  display: none;
}

.tle-layout[data-tle-visual-collapsed="true"] .tle-rail {
  width: 30px;
  min-width: 30px;
  background: var(--ink-100);
}


@media (min-width: 1024px) {
  .tle-layout[data-tle-shell="split"] {
    display: grid;
    grid-template-columns:
      minmax(300px, var(--tle-visual-percent))
      var(--tle-split-control-width)
      minmax(0, 1fr);
  }

  .tle-layout[data-tle-shell="rail"] {
    display: grid;
    grid-template-columns:
      30px
      var(--tle-split-control-width)
      minmax(0, 1fr);
  }

  .tle-layout[data-tle-shell="rail"] .tle-engine {
    grid-template-columns: 30px;
  }

  .tle-layout[data-tle-shell="rail"] .tle-stage {
    display: none;
  }

  .tle-layout[data-tle-shell="rail"] .tle-rail {
    width: 30px;
    min-width: 30px;
  }

  .tle-layout[data-tle-shell="stacked"] {
    display: block;
  }

  .tle-layout[data-tle-shell="stacked"] .tle-split-control {
    display: none;
  }

  .tle-engine[data-tle-sticky-eligible="true"] {
    position: sticky;
    top: var(--tle-sticky-top, 84px);
  }

  .tle-engine[data-tle-sticky-eligible="false"] {
    position: relative;
    top: auto;
  }
}

.tle-phase-disclosure {
  margin-top: 10px;
  border-top: var(--rule-heavy);
  border-bottom: var(--hairline);
  background: var(--paper);
}

.tle-phase-summary {
  display: grid;
  gap: 7px;
  padding: 9px 8px;
  cursor: pointer;
  list-style-position: inside;
}

.tle-phase-summary::marker {
  color: var(--accent);
}

.tle-phase-summary-heading {
  display: inline-flex;
  min-width: 0;
  gap: 8px;
  align-items: baseline;
  font-family: var(--font-mono);
}

.tle-phase-summary-count {
  flex: 0 0 auto;
  color: var(--ink-400);
  font-size: 0.625rem;
}

.tle-phase-summary-title {
  min-width: 0;
  color: var(--ink);
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.tle-phase-summary-lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: var(--hairline);
  background: var(--ink-200);
}

.tle-phase-summary-lane {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 6px;
  background: var(--paper);
}

.tle-phase-summary-label,
.tle-phase-summary-value {
  min-width: 0;
  font-family: var(--font-mono);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.tle-phase-summary-label {
  color: var(--ink-400);
  font-size: 0.5625rem;
  letter-spacing: 0.05em;
}

.tle-phase-summary-value {
  color: var(--ink-600);
  font-size: 0.625rem;
}

.tle-phase-disclosure[open] > .tle-phase-summary {
  border-bottom: var(--hairline);
  background: var(--ink-100);
}

.tle-phase-disclosure[open] .tle-phase-summary-lanes {
  display: none;
}

.tle-phase-disclosure .tle-phase-lanes {
  margin: 0;
  padding: 0 8px 9px;
  border-top: 0;
}

.tle-system-path {
  display: grid;
  gap: 9px;
}

.tle-system-path-header {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-left: 34px;
  border: var(--hairline);
  background: var(--ink-200);
}

.tle-system-path-lane-title {
  min-width: 0;
  padding: 6px;
  color: var(--ink-600);
  background: var(--ink-100);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.tle-system-path-timeline {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tle-system-path-phase {
  position: relative;
  min-width: 0;
}

.tle-system-path-phase:not(:last-child)::after {
  position: absolute;
  top: calc(100% - 1px);
  bottom: -3px;
  left: 15px;
  width: 1px;
  background: var(--ink-300);
  content: "";
}

.tle-system-path-phase-button {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: 32px repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  border: var(--hairline);
  color: var(--ink);
  background: var(--ink-200);
  cursor: pointer;
  text-align: left;
}

.tle-system-path-number,
.tle-system-path-cell {
  min-width: 0;
  padding: 7px 6px;
  background: var(--paper);
  font-size: 0.625rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.tle-system-path-number {
  color: var(--ink-400);
  font-family: var(--font-mono);
  text-align: center;
}

.tle-system-path-phase[data-active="true"] .tle-system-path-phase-button {
  border-left: 3px solid var(--accent);
}

.tle-system-path-phase[data-active="true"] .tle-system-path-number,
.tle-system-path-phase[data-active="true"] .tle-system-path-cell {
  color: var(--ink);
  background: var(--accent-soft);
}

.tle-system-topology {
  padding-top: 8px;
  border-top: var(--hairline);
}

.tle-system-topology-title {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 0.75rem;
}

.tle-system-topology-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: var(--hairline);
  background: var(--ink-200);
}

.tle-system-topology-card {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 7px;
  padding: 7px;
  background: var(--paper);
}

.tle-system-topology-label {
  min-width: 0;
  font-size: 0.6875rem;
  overflow-wrap: anywhere;
}

.tle-system-topology-racks,
.tle-system-topology-gpus {
  grid-column: 1;
  color: var(--ink-600);
  font-family: var(--font-mono);
  font-size: 0.625rem;
}

.tle-system-topology-card .tle-evidence-mark {
  grid-column: 2;
  grid-row: 1 / span 6;
}

@media (max-width: 1199px) and (min-width: 1024px) {
  .tle-layout {
    --tle-layout-gap: 12px;
    grid-template-columns:
      minmax(300px, var(--tle-visual-percent))
      16px
      minmax(0, 1fr);
  }

  .tle-layout[data-tle-visual-collapsed="true"] {
    grid-template-columns:
      30px
      16px
      minmax(0, 1fr);
  }

  .tle-collapse-visual {
    margin-left: -6px;
  }

  .tle-phase-summary-lanes,
  .tle-system-path-header,
  .tle-system-path-phase-button {
    font-size: 0.625rem;
  }
}

@media (max-width: 1023px) {
  .tle-layout,
  .tle-layout[data-tle-visual-collapsed="true"] {
    display: block;
  }

  .tle-split-control {
    display: none;
  }

  .tle-layout[data-tle-visual-collapsed="true"] .tle-stage {
    display: block;
  }

  .tle-engine {
    position: relative;
    top: auto;
    min-height: 0;
  }

  .tle-stage {
    min-height: 0;
  }

}

@media (max-width: 520px) {
  .tle-phase-summary-lanes,
  .tle-system-path-header,
  .tle-system-topology-cards {
    grid-template-columns: 1fr;
  }

  .tle-system-path-header {
    margin-left: 0;
  }

  .tle-system-path-phase-button {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .tle-system-path-cell {
    grid-column: 2;
  }
}


.tle-rail-scene-list,
.tle-engine[data-tle-compact="true"] .tle-rail-scene-list {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.tle-layout {
  scroll-margin-top: 84px;
}

.tle-rail-scene-list > li {
  flex: 0 0 auto;
}

.tle-current-state > .tle-state-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.tle-phase-table tbody > .tle-phase-row {
  width: auto;
  min-width: 0;
}

.tle-phase-table {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  table-layout: fixed;
}

.tle-phase-table tbody {
  background: var(--paper);
}

.tle-step-controls[data-enabled="true"] {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px 10px;
}

.tle-step-controls [data-tle-previous-step] {
  grid-column: 1;
  grid-row: 1;
}

.tle-step-controls .tle-step-status {
  grid-column: 2;
  grid-row: 1;
}

.tle-step-controls [data-tle-next-step] {
  grid-column: 3;
  grid-row: 1;
}

.tle-step-controls .tle-step-scrubber {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  margin: 0;
}

.tle-detail[open] {
  padding-bottom: 14px;
}

.tle-detail[open] > summary,
.tle-phase-disclosure[open] > summary {
  border-left: 3px solid var(--accent);
}

.tle-detail[open] > :not(summary) {
  margin-right: 12px;
  margin-left: 12px;
}

.tle-detail-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 10px;
  border: var(--hairline);
  background: var(--ink-200);
}

.tle-detail-tab {
  min-width: 0;
  min-height: 34px;
  padding: 6px 7px;
  border: 0;
  color: var(--ink-600);
  background: var(--paper);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.tle-detail-tab[aria-selected="true"] {
  color: var(--paper);
  background: var(--accent);
}

.tle-detail-tab:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tle-detail .tle-current-state,
.tle-detail .tle-code-inspector,
.tle-detail .tle-teaching,
.tle-detail .tle-money-lane {
  scroll-margin-top: 54px;
}

.tle-detail .tle-code-inspector,
.tle-detail .tle-teaching,
.tle-detail .tle-money-lane {
  margin-top: 12px;
  padding-top: 12px;
  border-top: var(--hairline);
}

@container tle-engine (max-width: 360px) {
  .tle-toolbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .tle-perspective-resolved {
    grid-column: 1 / -1;
  }

  .tle-receipt-banner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@container tle-engine (max-width: 520px) {
  .tle-current-state,
  .tle-phase-detail,
  .tle-teaching-cases,
  .tle-teaching-lenses,
  .tle-cts-common,
  .tle-cts-lanes,
  .tle-water-boundary,
  .tle-money-delta,
  .tle-fabric-layer,
  .tle-machine-lane,
  .tle-machine-join,
  .tle-cts-code-node,
  .tle-cts-flow-item,
  .tle-cts-resource-slot,
  .tle-cts-fact {
    grid-template-columns: minmax(0, 1fr);
  }

  .tle-current-state,
  .tle-teaching-lenses {
    display: grid;
    overflow: visible;
    scroll-snap-type: none;
  }

  .tle-state-item,
  .tle-teaching-lens {
    min-width: 0;
    flex: none;
  }

  .tle-tier-path,
  .tle-cts-handoff-list,
  .tle-cts-launch-hierarchy,
  .tle-cts-state-ladder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tle-code-path {
    grid-template-columns: minmax(0, 1fr);
  }

  .tle-code-path .tle-flow-arrow {
    width: auto;
    height: 16px;
    transform: none;
  }

  .tle-tier-path .tle-node::after,
  .tle-cts-launch-stage:not(:last-child)::after {
    display: none;
  }

  .tle-cts-lane .tle-svg {
    min-height: 0;
  }

  .tle-code-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tle-phase-table tbody {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tle-code-meta {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tle-code-example-path {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .tle-money-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tle-money-item .tle-evidence-mark {
    grid-column: 1 / -1;
  }

  .tle-system-path-header,
  .tle-system-topology-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .tle-system-path-header {
    margin-left: 0;
  }

  .tle-system-path-phase-button {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .tle-system-path-cell {
    grid-column: 2;
  }
}

@container tle-engine (max-width: 300px) {
  .tle-hbm-key,
  .tle-tier-path,
  .tle-cts-handoff-list,
  .tle-cts-launch-hierarchy,
  .tle-cts-state-ladder {
    grid-template-columns: minmax(0, 1fr);
  }
}



.tle-context-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-top: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-200);
  color: var(--ink-600);
  font-size: 0.68rem;
  line-height: 1.35;
}

.tle-context-label {
  flex: 1 0 100%;
  color: var(--ink-500);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tle-context-chip {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tle-context-term {
  color: var(--ink);
}

.tle-definitions {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink-300);
}

.tle-definitions-title,
.tle-model-memory-title {
  margin: 0;
  font-size: 0.94rem;
}

.tle-definitions-intro,
.tle-model-memory-intro {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.72rem;
  line-height: 1.45;
}

.tle-definition-list {
  display: grid;
  gap: 5px;
}

.tle-definition {
  border: 1px solid var(--ink-300);
  background: var(--paper);
}

.tle-definition-summary {
  display: grid;
  grid-template-columns: minmax(92px, 0.45fr) minmax(0, 1fr);
  gap: 8px;
  padding: 9px 10px;
  cursor: pointer;
}

.tle-definition-term {
  color: var(--ink);
  font-size: 0.74rem;
}

.tle-definition-plain {
  color: var(--ink-600);
  font-size: 0.7rem;
  line-height: 1.35;
}

.tle-definition-body {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--ink-200);
  background: var(--ink-050, #fafafa);
}

.tle-definition-block {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 8px;
}

.tle-definition-label {
  color: var(--ink-500);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tle-definition-text {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.7rem;
  line-height: 1.45;
}

.tle-code-unsupported {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--ink-400);
  color: var(--ink-700);
  background: var(--ink-100);
  font: 0.72rem/1.5 var(--font-mono);
}

.tle-code-example-path {
  overflow-wrap: anywhere;
}

.tle-wan-diffusion,
.tle-platform-compare,
.tle-hbm-generation-compare {
  display: grid;
  gap: 12px;
}

.tle-wan-distinction,
.tle-compare-boundary {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  color: var(--ink-700);
  background: var(--accent-soft);
  font-size: 0.7rem;
  line-height: 1.4;
}

.tle-wan-phase-rail,
.tle-compare-view-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 4px;
}

.tle-wan-phase-button,
.tle-compare-view-button {
  min-height: 42px;
  padding: 7px;
  border: 1px solid var(--ink-300);
  color: var(--ink-700);
  background: var(--paper);
  cursor: pointer;
  font: 0.62rem/1.25 var(--font-mono) !important;
  text-align: left;
}

.tle-wan-phase-button[data-active="true"],
.tle-compare-view-button[data-active="true"] {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.tle-wan-phase-number {
  display: block;
  margin-bottom: 3px;
  color: var(--ink-400);
}

.tle-wan-active-phase {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--ink-300);
}

.tle-wan-active-header,
.tle-platform-card-header,
.tle-hbm-generation-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.tle-wan-active-index,
.tle-platform-vendor {
  color: var(--ink-500);
  font: 0.58rem/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tle-wan-active-title,
.tle-platform-name {
  margin: 0;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.tle-wan-summary,
.tle-platform-state,
.tle-platform-fabric {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.7rem;
  line-height: 1.45;
}

.tle-wan-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--ink-200);
}

.tle-wan-flow-part {
  min-width: 0;
  padding: 9px;
  border-right: 1px solid var(--ink-200);
}

.tle-wan-flow-part:last-child {
  border-right: 0;
}

.tle-wan-flow-title {
  margin: 0 0 6px;
  font: 0.58rem/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tle-wan-values,
.tle-wan-state-objects,
.tle-platform-software,
.tle-platform-unknowns ul,
.tle-model-memory-unknowns ul {
  margin: 0;
  padding-left: 16px;
  color: var(--ink-600);
  font-size: 0.66rem;
  line-height: 1.4;
}

.tle-wan-physical-home {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  font-size: 0.68rem;
}

.tle-wan-physical-label {
  color: var(--ink-500);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.tle-wan-figure {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ink-200);
  background: var(--paper);
}

.tle-wan-contrast {
  display: grid;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--ink-400);
  background: var(--ink-100);
}

.tle-wan-contrast-header {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  justify-content: space-between;
}

.tle-wan-contrast-title {
  margin: 0;
  color: var(--ink);
  font-size: 0.75rem;
}

.tle-wan-contrast-badge {
  padding: 2px 7px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
}

.tle-wan-contrast-claim {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.6875rem;
  line-height: 1.45;
}

.tle-wan-contrast-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: var(--hairline);
  background: var(--ink-200);
}

.tle-wan-contrast-column {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 7px;
  background: var(--paper);
  align-content: start;
}

.tle-wan-contrast-column-title {
  margin: 0;
  color: var(--ink);
  font-size: 0.6875rem;
}

.tle-wan-contrast-rows {
  display: grid;
  gap: 5px;
  margin: 0;
}

.tle-wan-contrast-row {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.tle-wan-contrast-row-label {
  color: var(--ink-400);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tle-wan-contrast-row-value {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.625rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.tle-wan-contrast-caption {
  margin: 0;
  padding: 6px 8px;
  border-left: 2px solid var(--ink);
  color: var(--ink-600);
  background: var(--paper);
  font-size: 0.625rem;
  line-height: 1.45;
}

.tle-wan-contrast-proof {
  margin: 0;
  color: var(--ink-500);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.tle-wan-contrast-note {
  margin: 0;
  padding: 6px 8px;
  border-left: 2px solid var(--ink-400);
  color: var(--ink-600);
  background: var(--ink-100);
  font-size: 0.625rem;
  line-height: 1.45;
}

@container tle-renderer (max-width: 360px) {
  .tle-wan-contrast-columns {
    grid-template-columns: 1fr;
  }
}

.tle-platform-cards,
.tle-hbm-generation-cards,
.tle-model-memory-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.tle-platform-figure {
  display: grid;
  gap: 6px;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.tle-platform-figure-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ink-200);
  background: var(--paper);
}

.tle-platform-figure-caption {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.64rem;
  line-height: 1.4;
}

.tle-platform-card,
.tle-hbm-generation-card,
.tle-model-memory-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--ink-300);
  background: var(--paper);
}

.tle-platform-card[data-vendor="nvidia"] {
  border-top: 3px solid #2f7d32;
}

.tle-platform-card[data-vendor="amd"] {
  border-top: 3px solid #1868b7;
}

.tle-platform-card[data-commercial-state="official_preliminary"],
.tle-hbm-generation-card[data-commercial-state="official_preliminary"] {
  border-style: dashed;
  background: var(--ink-100);
}

.tle-platform-facts {
  display: grid;
  grid-template-columns: minmax(78px, 0.48fr) minmax(0, 1fr);
  gap: 5px 8px;
  margin: 0;
  font-size: 0.67rem;
}

.tle-platform-facts dt {
  color: var(--ink-500);
  font-family: var(--font-mono);
}

.tle-platform-facts dd {
  margin: 0;
  color: var(--ink-700);
  overflow-wrap: anywhere;
}

.tle-platform-software {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0;
  list-style: none;
}

.tle-platform-software li {
  padding: 3px 5px;
  border: 1px solid var(--ink-200);
  background: var(--ink-100);
}

.tle-platform-unknowns,
.tle-model-memory-unknowns {
  font-size: 0.67rem;
}

.tle-mini-hbm-stack {
  display: grid;
  gap: 2px;
  max-width: 140px;
  margin: 2px auto;
}

.tle-mini-hbm-die,
.tle-mini-hbm-base {
  display: grid;
  min-height: 7px;
  place-items: center;
  border: 1px solid var(--ink-400);
  background: var(--ink-100);
  font: 0.48rem/1 var(--font-mono);
}

.tle-mini-hbm-base {
  min-height: 20px;
  border-color: var(--accent);
  background: var(--accent-soft);
}

.tle-hbm-generation-card,
.tle-mini-hbm-stack,
.tle-hbm-generation-fact,
.tle-hbm-base-die-note,
.tle-hbm-comparison-row,
.tle-hbm-unknown-warning {
  transition: opacity 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.tle-hbm-generation-card[data-focus-state="context"] {
  border-color: var(--ink-200);
}

.tle-hbm-generation-card[data-focus-state="active"] {
  border-color: var(--accent);
}

.tle-mini-hbm-stack[data-focus-state="context"],
.tle-hbm-generation-fact[data-focus-state="context"],
.tle-hbm-base-die-note[data-focus-state="context"],
.tle-hbm-comparison-row[data-focus-state="context"],
.tle-hbm-unknown-warning[data-focus-state="context"] {
  opacity: 0.62;
}

.tle-mini-hbm-stack[data-focus-state="active"],
.tle-hbm-generation-fact[data-focus-state="active"],
.tle-hbm-base-die-note[data-focus-state="active"],
.tle-hbm-comparison-row[data-focus-state="active"],
.tle-hbm-unknown-warning[data-focus-state="active"] {
  opacity: 1;
}

.tle-mini-hbm-stack[data-focus-state="active"] {
  padding: 5px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
}

.tle-hbm-generation-fact {
  display: grid;
  grid-template-columns: minmax(78px, 0.48fr) minmax(0, 1fr);
  grid-column: 1 / -1;
  gap: 8px;
  padding: 4px 5px;
  border-left: 2px solid transparent;
}

.tle-hbm-generation-fact[data-focus-state="active"],
.tle-hbm-base-die-note[data-focus-state="active"],
.tle-hbm-comparison-row[data-focus-state="active"],
.tle-hbm-unknown-warning[data-focus-state="active"] {
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

.tle-hbm-comparison-rows {
  display: grid;
  border: 1px solid var(--ink-300);
}

.tle-hbm-comparison-rows > h4 {
  margin: 0;
  padding: 9px;
  border-bottom: 1px solid var(--ink-300);
  font-size: 0.75rem;
}

.tle-hbm-comparison-row {
  display: grid;
  grid-template-columns: minmax(100px, 1.1fr) repeat(2, minmax(70px, 0.8fr)) auto;
  gap: 7px;
  align-items: center;
  padding: 7px 9px;
  border-bottom: 1px solid var(--ink-200);
  font-size: 0.65rem;
}

.tle-hbm-comparison-row:last-child {
  border-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .tle-hbm-generation-card,
  .tle-mini-hbm-stack,
  .tle-hbm-generation-fact,
  .tle-hbm-base-die-note,
  .tle-hbm-comparison-row,
  .tle-hbm-unknown-warning {
    transition: none;
  }
}

.tle-model-memory-profiles {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ink-300);
}

.tle-model-memory-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.tle-model-memory-format {
  color: var(--accent);
}

.tle-model-memory-total {
  font: 0.7rem/1.3 var(--font-mono);
}

.tle-model-memory-formula {
  grid-column: 1 / -1;
  padding: 5px;
  color: var(--ink-700);
  background: var(--ink-100);
  font-size: 0.62rem;
  overflow-wrap: anywhere;
}

.tle-model-memory-active {
  margin: 0;
  padding: 8px;
  border-left: 2px solid var(--accent);
  color: var(--ink-600);
  font-size: 0.68rem;
  line-height: 1.45;
}

@media (max-width: 560px) {
  .tle-wan-flow {
    grid-template-columns: 1fr;
  }

  .tle-wan-flow-part {
    border-right: 0;
    border-bottom: 1px solid var(--ink-200);
  }

  .tle-definition-summary,
  .tle-definition-block,
  .tle-wan-physical-home,
  .tle-hbm-comparison-row {
    grid-template-columns: 1fr;
  }
}


.tle-height-control {
  display: none;
}

.tle-height-resize-handle {
  display: none;
}

.tle-collapse-visual {
  font-size: 0;
}

.tle-collapse-visual::before {
  font-size: 1.125rem;
}

.tle-code-example code {
  color: inherit;
  background: transparent;
}

@media (min-width: 1024px) {
  .tle-layout {
    --tle-split-control-width: 18px;
    --tle-layout-gap: 12px;
  }

  .tle-resize-handle {
    top: calc(50dvh - 44px);
    height: 88px;
    min-height: 88px;
  }

  .tle-resize-handle::after {
    width: 8px;
    height: 30px;
  }

  .tle-layout[data-tle-shell="split"][data-tle-interaction-mode="follow"]
    .tle-engine[data-tle-height-enabled="true"] .tle-stage {
    overflow-y: hidden;
    scrollbar-gutter: auto;
  }

  .tle-layout[data-tle-shell="split"][data-tle-interaction-mode="inspect"]
    .tle-engine[data-tle-height-enabled="true"] .tle-stage {
    overflow-y: auto;
    scrollbar-gutter: stable;
  }

  .tle-layout[data-tle-shell="split"] .tle-engine[data-tle-height-enabled="true"] {
    position: sticky;
    top: var(--tle-sticky-top, 84px);
    height: var(--tle-panel-height, 680px);
    min-height: 360px;
    max-height: calc(100vh - 104px);
    max-height: calc(100dvh - 104px);
    overflow: hidden;
  }

  .tle-layout[data-tle-shell="split"] .tle-engine[data-tle-height-enabled="true"][data-tle-detail-open="true"] {
    position: sticky;
    top: var(--tle-sticky-top, 84px);
  }

  .tle-layout[data-tle-shell="split"] .tle-engine[data-tle-height-enabled="true"] .tle-rail {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
  }

  .tle-layout[data-tle-shell="split"] .tle-engine[data-tle-height-enabled="true"] .tle-stage {
    grid-column: 2;
    grid-row: 1;
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    padding-bottom: 48px;
    scrollbar-gutter: stable;
  }

  .tle-engine[data-tle-height-enabled="true"] .tle-height-control {
    grid-column: 2;
    grid-row: 1;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(44px, 1fr);
    height: 34px;
    min-width: 0;
    align-self: end;
    border-top: 1px solid var(--ink-300);
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    pointer-events: none;
  }

  .tle-height-resize-handle {
    position: relative;
    display: block;
    min-width: 44px;
    height: 34px;
    border: 0;
    background: transparent;
    cursor: row-resize;
    touch-action: none;
    pointer-events: auto;
  }

  .tle-height-resize-handle::before {
    position: absolute;
    top: 50%;
    right: 12px;
    left: 12px;
    height: 1px;
    background: var(--ink-300);
    content: "";
    transform: translateY(-50%);
  }

  .tle-height-resize-handle::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 8px;
    border: 1px solid var(--ink-400);
    border-radius: 8px;
    background: var(--paper);
    content: "";
    transform: translate(-50%, -50%);
  }

  .tle-height-resize-handle:hover::after,
  .tle-height-resize-handle:focus-visible::after,
  .tle-height-resize-handle[data-dragging="true"]::after {
    border-color: var(--accent);
    background: var(--accent-soft);
  }

  .tle-height-resize-handle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
  }

}

@media (max-width: 1023px), (max-height: 463px) {
  .tle-height-control {
    display: none !important;
  }

  .tle-resize-handle,
  .tle-height-resize-handle {
    display: none !important;
  }

  .tle-engine,
  .tle-stage {
    height: auto;
    max-height: none;
    overflow: visible;
  }
}

.tle-renderer {
  container: tle-renderer / inline-size;
  min-width: 0;
}

.tle-cts-lane {
  container: tle-cts-lane / inline-size;
  min-width: 0;
}

.tle-cts-lane-header,
.tle-cts-stage-header,
.tle-wan-active-header,
.tle-platform-card-header,
.tle-hbm-generation-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: start;
}

.tle-cts-lane-header > *,
.tle-cts-stage-header > *,
.tle-wan-active-header > *,
.tle-platform-card-header > *,
.tle-hbm-generation-header > * {
  min-width: 0;
}

.tle-cts-stage-list {
  display: grid;
  gap: 17px;
  min-width: 0;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.tle-cts-stage-row {
  position: relative;
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px dashed var(--ink-400);
  background: var(--ink-100);
}

.tle-cts-stage-row[data-active="true"] {
  border: 2px solid var(--tle-focus-color);
  padding: 9px 10px;
  background: var(--accent-soft);
}

.tle-cts-stage-row[data-active="true"]::before {
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: -2px;
  width: 4px;
  background: var(--tle-focus-color);
  content: "";
}

.tle-cts-stage-row[data-has-connector="true"]::after {
  position: absolute;
  bottom: -17px;
  left: 50%;
  width: 10px;
  height: 16px;
  border-left: 1px solid var(--ink-500);
  border-bottom: 1px solid var(--ink-500);
  content: "";
  transform: translateX(-50%) rotate(-45deg);
  transform-origin: bottom left;
}

.tle-cts-stage-row-head {
  display: grid;
  grid-template-columns: minmax(4.75rem, max-content) minmax(0, 1fr);
  gap: 8px 12px;
  align-items: start;
  min-width: 0;
}

.tle-cts-stage-code {
  min-width: 0;
  color: var(--tle-focus-color);
  font: 700 0.69rem/1.25 var(--font-mono);
  overflow-wrap: anywhere;
}

.tle-cts-stage-name {
  min-width: 0;
  color: var(--ink);
  font-size: 0.74rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.tle-cts-stage-state {
  display: block;
  min-width: 0;
  padding-top: 6px;
  border-top: 1px dotted var(--ink-300);
  color: var(--ink-600);
  font: 0.64rem/1.35 var(--font-mono);
  overflow-wrap: anywhere;
}

.tle-cts-stage-row[data-active="true"] .tle-cts-stage-state {
  color: var(--ink);
  font-weight: 700;
}

.tle-code-panel {
  min-width: 0;
}

.tle-code-status {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin: 0 0 10px;
  padding: 10px 11px;
  border: 1px solid var(--ink-300);
  border-left: 4px solid var(--ink-500);
  background: var(--ink-100);
}

.tle-code-status[data-tone="verified"] {
  border-left-color: #267326;
  background: #f1f7f1;
}

.tle-code-status[data-tone="source"],
.tle-code-status[data-tone="fixture"] {
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

.tle-code-status[data-tone="warning"] {
  border-left-color: #a35f00;
  background: #fff8eb;
}

.tle-code-status[data-tone="error"] {
  border-left-color: #a12222;
  background: #fff2f2;
}

.tle-code-status-label {
  min-width: 0;
  color: var(--ink);
  font: 700 0.7rem/1.35 var(--font-mono);
  letter-spacing: 0.035em;
  overflow-wrap: anywhere;
}

.tle-code-status-summary,
.tle-code-status-action {
  min-width: 0;
  margin: 0;
  color: var(--ink-700);
  font-size: 0.7rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.tle-code-status-action {
  color: var(--ink);
  font-weight: 600;
}

.tle-code-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  min-width: 0;
  padding: 8px 0;
}

.tle-code-identity {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.tle-code-example-name,
.tle-code-example-path,
.tle-code-source-link {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tle-code-source-link {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.tle-code-axes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 1px;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--ink-200);
  background: var(--ink-200);
}

.tle-code-axis {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 7px 8px;
  background: var(--paper);
}

.tle-code-axis-label,
.tle-code-axis-value {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.tle-code-axis-label {
  color: var(--ink-500);
  font: 0.58rem/1.25 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tle-code-axis-value {
  color: var(--ink);
  font: 600 0.65rem/1.35 var(--font-mono);
}

.tle-code-example {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  white-space: pre;
  overflow-wrap: normal;
}

.tle-code-empty {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin-top: 8px;
  padding: 11px;
  border: 1px dashed var(--ink-400);
  background: var(--paper);
}

.tle-code-empty-title,
.tle-code-empty-copy {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.tle-code-empty-title {
  color: var(--ink);
  font-size: 0.72rem;
}

.tle-code-empty-copy {
  color: var(--ink-600);
  font-size: 0.69rem;
  line-height: 1.45;
}

.tle-code-walkthrough {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin-top: 12px;
  margin-bottom: 0;
  padding: 9px;
  border: 1px solid var(--ink-400);
  background: var(--ink-100);
}

.tle-walkthrough-title {
  margin: 0;
  color: var(--ink);
  font-size: 0.75rem;
}

.tle-walkthrough-list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  border: var(--hairline);
  background: var(--ink-200);
  list-style: none;
  counter-reset: tle-walkthrough;
}

.tle-walkthrough-item {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 7px 8px;
  background: var(--paper);
  counter-increment: tle-walkthrough;
}

.tle-walkthrough-label {
  color: var(--ink-400);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tle-walkthrough-label::before {
  margin-right: 6px;
  color: var(--ink-300);
  content: counter(tle-walkthrough, decimal-leading-zero);
}

.tle-walkthrough-value {
  min-width: 0;
}

.tle-walkthrough-copy {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.65rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.tle-walkthrough-status {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--ink-400);
  color: var(--ink-600);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.tle-walkthrough-status[data-status="run-captured"] {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.tle-walkthrough-status[data-status="pinned-source"] {
  border-color: var(--ink-600);
  color: var(--ink);
}

.tle-walkthrough-status[data-status="not-applicable"] {
  border-color: var(--ink-300);
  color: var(--ink-500);
}

.tle-walkthrough-status[data-status="no-verified-example"],
.tle-walkthrough-status[data-status="unknown"],
.tle-walkthrough-status[data-status="invalid"] {
  border-style: dashed;
  border-color: var(--ink);
  color: var(--ink);
  background: var(--ink-100);
}

.tle-walkthrough-status[data-status="unsupported"] {
  border-style: dashed;
  border-color: var(--ink-400);
  color: var(--ink-500);
}

.tle-walkthrough-pins {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.tle-walkthrough-pin {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 6px 7px;
  border: var(--hairline);
  background: var(--ink-100);
}

.tle-walkthrough-pin-name {
  color: var(--ink);
  font-size: 0.65rem;
}

.tle-walkthrough-pin-link {
  color: var(--ink-600);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  overflow-wrap: anywhere;
}

.tle-walkthrough-pin-detail {
  color: var(--ink-500);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  overflow-wrap: anywhere;
}

.tle-walkthrough-pin-open {
  min-height: 44px;
  margin-top: 5px;
  padding: 7px 9px;
  border: 1px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
  cursor: pointer;
  font: 700 0.625rem/1.25 var(--font-mono);
  text-align: left;
}

.tle-walkthrough-pin-open:hover,
.tle-walkthrough-pin-open:focus-visible {
  color: var(--paper);
  background: var(--accent);
}

.tle-walkthrough-pin-note {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.625rem;
  line-height: 1.45;
}

.tle-chain-artifacts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tle-walkthrough-dtypes {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.tle-walkthrough-dtypes-caption {
  padding-bottom: 4px;
  color: var(--ink-400);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
}

.tle-walkthrough-dtypes th,
.tle-walkthrough-dtypes td {
  padding: 5px 7px;
  border: var(--hairline);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.tle-walkthrough-dtypes-key {
  width: 32%;
  color: var(--ink);
  background: var(--ink-100);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  text-align: left;
}

.tle-walkthrough-dtypes-value {
  color: var(--ink-600);
  background: var(--paper);
  font-size: 0.625rem;
  line-height: 1.45;
}

.tle-walkthrough-naming-note {
  margin: 0;
  padding: 6px 8px;
  border-left: 2px solid var(--ink);
  color: var(--ink-600);
  background: var(--paper);
  font-size: 0.625rem;
  line-height: 1.45;
}

@container tle-renderer (max-width: 599px) {
  .tle-cts-lanes,
  .tle-phase-summary-lanes,
  .tle-wan-flow,
  .tle-wan-physical-home,
  .tle-platform-facts,
  .tle-hbm-generation-fact,
  .tle-model-memory-card,
  .tle-hbm-comparison-row,
  .tle-definition-summary,
  .tle-definition-block {
    grid-template-columns: minmax(0, 1fr);
  }

  .tle-cts-code-node,
  .tle-cts-flow-item,
  .tle-cts-resource-slot {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tle-cts-code-node > :nth-child(2),
  .tle-cts-flow-item > :nth-child(2),
  .tle-cts-resource-slot > :nth-child(2) {
    grid-column: 1 / -1;
  }
}

@container tle-renderer (max-width: 359px) {
  .tle-code-tabs,
  .tle-detail-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tle-code-meta,
  .tle-code-axes,
  .tle-cts-lane-header,
  .tle-cts-stage-header,
  .tle-wan-active-header,
  .tle-platform-card-header,
  .tle-hbm-generation-header {
    grid-template-columns: minmax(0, 1fr);
  }

  .tle-code-meta > .tle-evidence-mark,
  .tle-cts-lane-header > .tle-evidence-mark,
  .tle-cts-stage-header > .tle-evidence-mark {
    justify-self: start;
  }

  .tle-cts-stage-row-head {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1023px) {
  .tle-follow-guide {
    position: relative;
    top: auto;
  }
}

@media print {
  .tle-layout {
    display: block;
  }

  .tle-engine {
    position: static !important;
    top: auto !important;
    display: block;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    margin-bottom: 36px;
    border: 0;
    break-inside: auto;
    contain: none;
    container-type: normal;
  }

  .tle-layout > .article-shell {
    container-type: normal;
  }

  .article-header h1 {
    font-size: 30pt;
    line-height: 1.05;
    letter-spacing: -1pt;
  }

  .tle-rail,
  .tle-split-control,
  .tle-step-controls {
    display: none !important;
  }

  .tle-stage {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0;
    padding-left: 0;
    border-left: 0;
    scrollbar-gutter: auto;
  }

  .tle-engine .tle-no-js {
    display: block !important;
    color: var(--ink);
    background: var(--paper);
    font-size: 9pt;
    line-height: 1.45;
  }

  .tle-engine .tle-stage > :not(.tle-no-js) {
    display: none !important;
  }

  .tle-cts-pane {
    break-inside: avoid;
  }
}
