
:root {
  color-scheme: light;
  --ink: #1c2421;
  --muted: #65716c;
  --faint: #f5f7f6;
  --line: #dfe4e1;
  --line-strong: #aeb9b3;
  --paper: #ffffff;
  --green: #126451;
  --green-soft: #e2efe9;
  --blue-soft: #eaf1f5;
  --gold: #8a6415;
  --gold-soft: #f7f0dc;
  --nav-width: 232px;
  --page-width: 1460px;
  --header-height: 106px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 22px);
}
body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
}
a { color: var(--green); text-underline-offset: 3px; }
button, input { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(18, 100, 81, 0.25);
  outline-offset: 2px;
}
code, pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: 0;
}
code { overflow-wrap: anywhere; }
h1, h2, h3, h4, p { overflow-wrap: anywhere; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  border-radius: 4px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
}
.skip-link:focus { transform: none; }

.app-header {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.98);
}
.app-header__topline,
.app-header__controls {
  width: min(var(--page-width), calc(100% - 40px));
  margin: 0 auto;
}
.app-header__topline {
  min-height: 52px;
  display: grid;
  grid-template-columns: var(--nav-width) minmax(240px, 1fr) auto;
  align-items: center;
  gap: 28px;
}
.brand {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}
.header-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.1;
}
.header-version {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.header-version span + span {
  position: relative;
  padding-left: 15px;
}
.header-version span + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 12px;
  transform: translateY(-50%);
  background: var(--line-strong);
}
.status-label {
  color: var(--green);
  font-weight: 750;
  text-transform: uppercase;
}
.app-header__controls {
  min-height: 53px;
  display: grid;
  grid-template-columns: var(--nav-width) minmax(320px, 680px) auto 1fr;
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--line);
}
.search-control {
  grid-column: 2;
  height: 34px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: white;
}
.search-control:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(18, 100, 81, 0.1);
}
.search-control__label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-align: center;
  text-transform: uppercase;
}
.search-control input {
  min-width: 0;
  height: 100%;
  border: 0;
  border-left: 1px solid var(--line);
  outline: 0;
  padding: 0 10px;
  color: var(--ink);
  background: transparent;
}
.search-control input::placeholder { color: #88928e; }
.result-count {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.disclosure-controls {
  justify-self: end;
  display: flex;
  gap: 6px;
}
.disclosure-controls button,
.sections-toggle {
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.disclosure-controls button:hover,
.sections-toggle:hover { border-color: var(--green); color: var(--green); }
.disclosure-controls button span {
  display: inline-block;
  width: 13px;
  color: var(--green);
  font-size: 16px;
  line-height: 1;
}
.sections-toggle { display: none; }

.page-shell {
  width: min(var(--page-width), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--nav-width) minmax(0, 1fr);
  column-gap: 28px;
  align-items: start;
}
.model-nav {
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  border-right: 1px solid var(--line);
}
.model-nav__inner {
  position: relative;
  height: 100%;
  padding: 28px 22px 30px 0;
  overflow-y: auto;
  scrollbar-width: thin;
}
.model-nav__close { display: none; }
.model-nav__label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.model-nav nav { display: grid; }
.model-nav nav a {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 6px 8px 6px 13px;
  border-radius: 4px;
  color: #4e5a55;
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
}
.model-nav nav a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 2px;
  width: 4px;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--green);
  opacity: 0;
}
.model-nav nav a:hover,
.model-nav nav a[aria-current="true"] { background: var(--faint); color: var(--ink); }
.model-nav nav a[aria-current="true"]::before { opacity: 1; }
.model-nav nav a span { color: var(--muted); font-size: 11px; }
.model-nav nav .nav-link--child {
  padding-left: 25px;
  color: var(--muted);
}
.model-nav nav .nav-link--child::before { left: 14px; }
.model-nav__coverage {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  color: var(--muted);
  font-size: 10px;
}
.model-nav__coverage span { grid-column: 1 / 3; text-transform: uppercase; }
.model-nav__coverage strong { color: var(--ink); font-size: 11px; font-weight: 650; }
.model-nav__coverage strong + strong { text-align: right; }

main { min-width: 0; }
.search-no-results {
  margin-top: 30px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 18px 12px;
  color: var(--muted);
  font-size: 12px;
}
.search-no-results strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 14px; }
.model-section {
  padding: 44px 0 52px;
  border-bottom: 1px solid var(--line-strong);
}
.model-section--overview { padding-top: 36px; }
.section-kicker {
  margin-bottom: 8px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: 0; }
h1 { max-width: 920px; font-size: 38px; line-height: 1.1; }
h2 { font-size: 28px; line-height: 1.15; }
h3 { font-size: 22px; line-height: 1.2; }
h4 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.lead {
  max-width: 970px;
  margin: 15px 0 24px;
  color: #3f4b46;
  font-size: 16px;
  line-height: 1.65;
}
.stats-band {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(92px, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.stats-band > div {
  min-width: 0;
  padding: 12px 11px 11px;
  border-left: 1px solid var(--line);
}
.stats-band > div:first-child { border-left: 0; }
.stats-band dt {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
  text-transform: uppercase;
}
.stats-band dd {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 680;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.model-flow {
  margin-top: 26px;
}
.flow-lane {
  display: grid;
  grid-template-columns: minmax(140px, 1.1fr) 24px minmax(130px, 1fr) 24px minmax(130px, 1fr) 24px minmax(120px, .9fr) 24px minmax(160px, 1.2fr);
  align-items: stretch;
}
.flow-node {
  min-height: 78px;
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--green);
  background: white;
  padding: 13px 12px 11px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.flow-node--aggregate { background: var(--green-soft); }
.flow-node strong { font-size: 12px; }
.flow-node code { color: var(--muted); font-size: 10px; }
.flow-arrow { align-self: center; color: var(--green); font-size: 18px; text-align: center; }
.flow-branches {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.flow-branches > div {
  border-top: 1px solid var(--green);
  padding: 8px 8px 0;
  color: var(--ink);
  font-size: 11px;
}
.flow-branches span { display: block; color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.flow-branches strong { display: block; margin-top: 2px; font-size: 11px; }
.flow-branches code { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.authority-strip {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 11px;
}
.authority-strip code {
  border-radius: 3px;
  background: var(--faint);
  color: var(--ink);
  padding: 3px 6px;
}

.section-heading {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 48px minmax(0, 780px);
  gap: 14px;
}
.section-heading--compact { margin-bottom: 18px; }
.section-index {
  padding-top: 7px;
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
}
.section-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.aggregate-definition,
.model-definition { border-top: 1px solid var(--line-strong); }
.aggregate-definition { border-bottom: 1px solid var(--line-strong); }
.aggregate-definition > summary {
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(210px, auto) auto 20px;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  padding: 9px 12px;
}
.aggregate-definition > summary > span:first-child { font-weight: 700; }
.aggregate-definition > summary code { color: var(--green); font-size: 12px; }
.summary-version { color: var(--muted); font-size: 11px; }
.definition-summary__chevron {
  width: 8px;
  height: 8px;
  justify-self: end;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 120ms ease;
}
details[open] > summary .definition-summary__chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}
.aggregate-body { border-top: 1px solid var(--line); padding: 16px 12px 20px; }
.scope-callout {
  margin-top: 14px;
  border-left: 3px solid var(--green);
  background: var(--faint);
  padding: 11px 13px;
  display: grid;
  grid-template-columns: 130px minmax(220px, 1fr) minmax(320px, 2fr);
  gap: 14px;
  align-items: start;
  color: #48534f;
  font-size: 12px;
}
.scope-callout strong { color: var(--ink); }
.submodel-heading {
  margin: 26px 0 12px;
  display: grid;
  grid-template-columns: 210px minmax(0, 620px);
  gap: 18px;
  align-items: baseline;
}
.submodel-heading h3 { font-size: 18px; }
.submodel-heading p { margin: 0; color: var(--muted); font-size: 11px; }

.record-group { padding-top: 38px; }
.definition-list { border-bottom: 1px solid var(--line-strong); }
.model-definition[hidden] { display: none; }
.model-definition > summary {
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(240px, 1.25fr) minmax(210px, 1fr) 105px 20px;
  grid-template-rows: auto auto;
  column-gap: 18px;
  row-gap: 4px;
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
}
.model-definition > summary:hover { background: var(--faint); }
.definition-summary__primary {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.definition-summary__name { font-weight: 720; }
.definition-summary__primary code,
.definition-summary__path code {
  color: var(--green);
  font-size: 10px;
}
.definition-summary__path { min-width: 0; color: var(--muted); }
.definition-summary__count {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  overflow-wrap: anywhere;
  text-align: right;
}
.definition-summary__description {
  grid-column: 1 / 4;
  color: var(--muted);
  font-size: 11px;
}
.definition-body {
  border-top: 1px solid var(--line);
  background: #fcfdfc;
  padding: 12px 12px 20px;
}
.definition-body__meta {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}
.mode-label {
  border-left: 2px solid var(--green);
  padding-left: 7px;
  color: var(--green);
  font-weight: 750;
}
.permalink {
  margin-left: auto;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
  text-decoration: none;
}
.permalink:hover { color: var(--green); }

.field-table-wrap { width: 100%; overflow: hidden; }
.field-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}
.field-table__name { width: 22%; }
.field-table__type { width: 19%; }
.field-table__required { width: 8%; }
.field-table__meaning { width: 38%; }
.field-table__reference { width: 13%; }
.field-table th {
  border-bottom: 1px solid var(--line-strong);
  padding: 7px 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
}
.field-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px 9px;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.field-table tbody tr:last-child td { border-bottom: 0; }
.field-table td:first-child code { color: var(--ink); font-size: 11px; font-weight: 650; }
.type-code { color: var(--green); font-size: 11px; }
.required-marker {
  display: inline-block;
  min-width: 25px;
  border-left: 2px solid var(--line-strong);
  padding-left: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.required-marker--yes { border-color: var(--green); color: var(--ink); }
.empty-value { color: var(--muted); }
.type-reference { font-weight: 650; text-decoration-thickness: 1px; }
.definition-notes {
  margin-top: 15px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.definition-notes ul { margin: 0; padding: 0; list-style: none; }
.definition-notes li {
  position: relative;
  margin-top: 5px;
  padding-left: 12px;
  color: #4c5752;
  font-size: 11px;
}
.definition-notes li::before {
  content: "";
  position: absolute;
  top: .65em;
  left: 0;
  width: 4px;
  height: 4px;
  background: var(--green);
}

.evidence-chain {
  display: grid;
  grid-template-columns: repeat(4, minmax(115px, 1fr) 22px) minmax(130px, 1fr);
  align-items: center;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 14px 0;
}
.evidence-chain > span { min-width: 0; }
.evidence-chain code { display: block; color: var(--ink); font-size: 10px; font-weight: 650; }
.evidence-chain small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.evidence-chain b { color: var(--green); font-weight: 500; text-align: center; }
.storage-split {
  margin: 12px 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  color: var(--muted);
  font-size: 11px;
}
.storage-split strong { color: var(--ink); font-variant-numeric: tabular-nums; }

.output-comparison {
  margin-bottom: 24px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  font-size: 11px;
}
.output-comparison > div {
  display: grid;
  grid-template-columns: 150px 1fr 1fr;
}
.output-comparison > div + div { border-top: 1px solid var(--line); }
.output-comparison span,
.output-comparison strong { padding: 9px 11px; border-left: 1px solid var(--line); }
.output-comparison span:first-child,
.output-comparison strong:first-child { border-left: 0; }
.output-comparison > div:first-child {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.output-comparison strong { font-weight: 700; }

.storage-layout {
  display: grid;
  grid-template-columns: minmax(430px, .95fr) minmax(420px, 1.05fr);
  gap: 34px;
  align-items: start;
}
.storage-layout pre {
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--faint);
  padding: 16px;
  overflow-x: auto;
  color: #36413c;
  font-size: 11px;
  line-height: 1.65;
}
.promotion-flow { margin: 0; padding: 0; list-style: none; }
.promotion-flow li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.promotion-flow li:first-child { border-top-color: var(--line-strong); }
.promotion-flow li > span {
  width: 22px;
  height: 22px;
  border: 1px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}
.promotion-flow strong { font-size: 12px; }
.promotion-flow p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }

.validation-list { border-top: 1px solid var(--line-strong); }
.validation-list > div {
  display: grid;
  grid-template-columns: 160px minmax(0, 720px);
  gap: 24px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}
.validation-list strong { font-size: 12px; }
.validation-list p { margin: 0; color: #4c5752; font-size: 12px; }

.page-footer {
  width: min(var(--page-width), calc(100% - 40px));
  min-height: 70px;
  margin: 0 auto;
  padding-left: calc(var(--nav-width) + 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 1180px) {
  :root { --nav-width: 205px; }
  .app-header__topline,
  .app-header__controls,
  .page-shell,
  .page-footer { width: min(var(--page-width), calc(100% - 28px)); }
  .app-header__topline,
  .app-header__controls,
  .page-shell { gap: 20px; }
  .app-header__controls { grid-template-columns: var(--nav-width) minmax(280px, 1fr) auto auto; }
  .stats-band { grid-template-columns: repeat(4, 1fr); }
  .stats-band > div:nth-child(5) { border-left: 0; }
  .stats-band > div:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .flow-lane {
    grid-template-columns: minmax(115px, 1.1fr) 18px minmax(110px, 1fr) 18px minmax(110px, 1fr) 18px minmax(105px, .9fr) 18px minmax(130px, 1.2fr);
  }
  .field-table__name { width: 21%; }
  .field-table__type { width: 19%; }
  .field-table__required { width: 9%; }
  .field-table__meaning { width: 37%; }
  .field-table__reference { width: 14%; }
  .storage-layout { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-height: 114px; }
  .app-header__topline,
  .app-header__controls,
  .page-shell,
  .page-footer { width: calc(100% - 24px); }
  .app-header__topline {
    min-height: 55px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
  }
  .header-title { font-size: 19px; }
  .header-version { display: none; }
  .sections-toggle {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 7px;
  }
  .app-header__controls {
    min-height: 58px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }
  .search-control { grid-column: 1; height: 44px; }
  .result-count {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .disclosure-controls { grid-column: 2; }
  .disclosure-controls button { width: 44px; min-height: 44px; overflow: hidden; white-space: nowrap; color: transparent; padding: 0; }
  .disclosure-controls button span { width: 42px; color: var(--green); text-align: center; }
  .page-shell { display: block; }
  .model-nav {
    position: fixed;
    z-index: 25;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    width: 100%;
    height: auto;
    border-right: 0;
    background: rgba(28, 36, 33, .22);
  }
  .model-nav[data-open="true"] { display: block; }
  .model-nav__inner {
    width: min(340px, calc(100% - 36px));
    padding: 22px;
    border-right: 1px solid var(--line-strong);
    background: white;
  }
  .model-nav__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--ink);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
  }
  .model-nav__label { padding-right: 48px; }
  .model-nav nav a { min-height: 44px; align-items: center; }
  body.nav-open { overflow: hidden; }
  .model-section { padding: 36px 0 42px; }
  .model-section--overview { padding-top: 30px; }
  h1 { font-size: 32px; }
  .lead { font-size: 15px; }
  .scope-callout { grid-template-columns: 1fr 1fr; }
  .scope-callout span:last-child { grid-column: 1 / 3; }
  .model-definition > summary {
    grid-template-columns: minmax(220px, 1fr) minmax(170px, .8fr) 92px 20px;
  }
  .storage-layout { grid-template-columns: 1fr; }
  .page-footer { padding-left: 0; }
}

@media (max-width: 640px) {
  :root { --header-height: 114px; }
  .app-header__topline,
  .app-header__controls,
  .page-shell,
  .page-footer { width: calc(100% - 20px); }
  .header-title { font-size: 17px; }
  .sections-toggle { width: 44px; padding: 0; justify-content: center; }
  .sections-toggle span:last-child { display: none; }
  .search-control { grid-template-columns: 38px 1fr; }
  .search-control input { font-size: 13px; }
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  .lead { line-height: 1.55; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .stats-band > div:nth-child(odd) { border-left: 0; }
  .stats-band > div:nth-child(even) { border-left: 1px solid var(--line); }
  .stats-band > div { border-bottom: 1px solid var(--line); }
  .stats-band > div:nth-last-child(-n+2) { border-bottom: 0; }
  .flow-lane {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .flow-lane > .flow-node,
  .flow-lane > .flow-arrow {
    grid-column: 1;
    grid-row: auto;
  }
  .flow-lane > .flow-arrow { transform: rotate(90deg); height: 24px; line-height: 24px; }
  .flow-branches { grid-template-columns: 1fr; gap: 14px; margin-top: 22px; }
  .section-heading { grid-template-columns: 36px minmax(0, 1fr); gap: 7px; }
  .aggregate-definition > summary {
    min-height: 70px;
    grid-template-columns: 1fr 20px;
    gap: 3px 10px;
  }
  .aggregate-definition > summary code,
  .summary-version { grid-column: 1; }
  .aggregate-definition > summary .definition-summary__chevron { grid-column: 2; grid-row: 1 / 4; }
  .scope-callout { grid-template-columns: 1fr; }
  .scope-callout span:last-child { grid-column: auto; }
  .submodel-heading { grid-template-columns: 1fr; gap: 4px; }
  .model-definition > summary {
    min-height: 94px;
    grid-template-columns: minmax(0, 1fr) auto 18px;
    grid-template-rows: auto auto auto;
    gap: 4px 10px;
  }
  .definition-summary__primary { grid-column: 1 / 3; flex-wrap: wrap; gap: 3px 8px; }
  .definition-summary__count { grid-column: 2; grid-row: 2; }
  .definition-summary__path { grid-column: 1; grid-row: 2; }
  .model-definition > summary .definition-summary__chevron { grid-column: 3; grid-row: 1 / 4; }
  .definition-summary__description { grid-column: 1 / 3; grid-row: 3; }
  .definition-body { padding: 10px 8px 18px; }
  .field-table-wrap { overflow: visible; }
  .field-table, .field-table tbody, .field-table tr, .field-table td { display: block; width: 100%; }
  .field-table colgroup, .field-table thead { display: none; }
  .field-table tr { border-top: 1px solid var(--line-strong); padding: 7px 0; }
  .field-table td {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 10px;
    border: 0;
    padding: 4px 6px;
  }
  .field-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
  }
  .definition-notes { grid-template-columns: 1fr; gap: 16px; }
  .evidence-chain { grid-template-columns: 1fr; gap: 0; }
  .evidence-chain > span { padding: 8px 0; }
  .evidence-chain b { height: 20px; transform: rotate(90deg); line-height: 20px; }
  .output-comparison { border-bottom: 0; }
  .output-comparison > div {
    grid-template-columns: 96px 1fr;
    border-bottom: 1px solid var(--line-strong);
  }
  .output-comparison > div:first-child { display: none; }
  .output-comparison span:last-child::before {
    content: "Deep Dive";
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
  }
  .output-comparison span:nth-child(2)::before {
    content: "Snapshot";
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
  }
  .output-comparison > div strong { grid-row: 1 / 3; }
  .output-comparison > div span:nth-child(2) { grid-column: 2; }
  .output-comparison > div span:nth-child(3) { grid-column: 2; border-top: 1px solid var(--line); }
  .storage-layout pre { padding: 12px; font-size: 10px; }
  .validation-list > div { grid-template-columns: 1fr; gap: 3px; padding: 10px 6px; }
  .page-footer { min-height: 82px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .definition-summary__chevron { transition: none; }
}
