:root {
  --ink: #172027;
  --copy: #33434d;
  --muted: #63727b;
  --paper: #ffffff;
  --page: #f3f5f4;
  --subtle: #f8faf9;
  --line: #d5ddda;
  --line-strong: #aebbb6;
  --header: #111a20;
  --header-ink: #f5f8f7;
  --red: #b63d34;
  --red-soft: #f9e8e5;
  --green: #237654;
  --green-soft: #e4f3eb;
  --blue: #286f98;
  --blue-soft: #e5f1f7;
  --amber: #8a5200;
  --amber-soft: #f8eedb;
  --violet: #765090;
  --violet-soft: #f0e8f5;
  --control: #ffffff;
  --control-hover: #eef3f1;
  --focus: rgba(40, 111, 152, 0.24);
  --shadow: 0 8px 20px rgba(19, 32, 39, 0.07);
  --max: 1180px;
  --wide: 1420px;
}

:root[data-theme="dark"] {
  --ink: #edf3f1;
  --copy: #c7d1cd;
  --muted: #9eada7;
  --paper: #172027;
  --page: #0f161b;
  --subtle: #1c282f;
  --line: #34434a;
  --line-strong: #5d6c71;
  --header: #0a1014;
  --header-ink: #f5f8f7;
  --red: #e4776e;
  --red-soft: #3c2525;
  --green: #72c69f;
  --green-soft: #1c382f;
  --blue: #74b9df;
  --blue-soft: #1e3441;
  --amber: #e2ad58;
  --amber-soft: #3a3121;
  --violet: #c39cda;
  --violet-soft: #342b3c;
  --control: #1d2930;
  --control-hover: #28363d;
  --focus: rgba(116, 185, 223, 0.28);
  --shadow: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

a {
  color: var(--blue);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.18;
}

h1 {
  max-width: 850px;
  margin-bottom: 18px;
  font-size: 56px;
  font-weight: 790;
}

h2 {
  margin-bottom: 0;
  font-size: 38px;
}

h3 {
  font-size: 18px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.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;
}

.system-inner {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.system-inner.system-wide {
  width: min(calc(100% - 48px), var(--wide));
}

.system-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 66px;
  border-bottom: 1px solid #2e3a40;
  background: var(--header);
  color: var(--header-ink);
}

.system-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(calc(100% - 36px), var(--wide));
  min-height: 66px;
  margin: 0 auto;
}

.system-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  color: var(--header-ink);
  text-decoration: none;
}

.system-brand > span:last-child {
  display: grid;
  line-height: 1.15;
}

.system-brand strong {
  font-size: 14px;
}

.system-brand small {
  color: #aebbc0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.system-brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 8px);
  grid-template-rows: repeat(2, 8px);
  gap: 2px;
  width: 22px;
  height: 22px;
}

.system-brand-mark span {
  background: #6bc597;
}

.system-brand-mark span:nth-child(2),
.system-brand-mark span:nth-child(3) {
  background: #f0c15a;
}

.system-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  min-width: 0;
}

.system-nav a {
  color: #d6dfe1;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.system-nav a:hover,
.system-nav a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.system-theme select {
  width: 96px;
  min-height: 36px;
  padding: 6px 28px 6px 9px;
  border: 1px solid #46555d;
  border-radius: 4px;
  background: #172228;
  color: #eef4f3;
  font-size: 11px;
}

.system-hero {
  padding: 66px 0 50px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.system-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.8fr);
  align-items: end;
  gap: 64px;
}

.system-eyebrow {
  margin-bottom: 8px;
  color: var(--red);
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.system-lede {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--copy);
  font-size: 20px;
  line-height: 1.45;
}

.system-baseline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}

.system-baseline div {
  min-width: 0;
  min-height: 88px;
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.system-baseline dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.system-baseline dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 720;
}

.system-boundary {
  padding: 20px 0;
  background: var(--red-soft);
  border-bottom: 1px solid color-mix(in srgb, var(--red) 40%, var(--line));
}

.system-boundary-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.55fr);
  align-items: center;
  gap: 40px;
}

.system-boundary strong {
  color: var(--red);
  font-size: 15px;
}

.system-boundary p {
  margin-bottom: 0;
  color: var(--copy);
  font-size: 13px;
}

.system-sources,
.system-status,
.system-target,
.system-architecture,
.system-catalog,
.system-cleaning,
.system-hardware {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.system-status,
.system-catalog,
.system-hardware {
  background: var(--subtle);
}

.system-sources,
.system-target,
.system-architecture,
.system-cleaning {
  background: var(--paper);
}

.system-source-rule {
  max-width: 980px;
  margin: -6px 0 24px;
  color: var(--copy);
  font-size: 14px;
}

.system-source-levels,
.system-source-profiles {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.system-source-levels {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 34px;
}

.system-source-profiles {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.system-source-level,
.system-source-profile {
  min-width: 0;
  padding: 15px;
  background: var(--subtle);
}

.system-source-level {
  min-height: 134px;
  border-top: 4px solid var(--line-strong);
}

.source-level-verified_current { border-top-color: var(--green); }
.source-level-documented_current { border-top-color: var(--blue); }
.source-level-merged_upstream { border-top-color: var(--violet); }
.source-level-candidate { border-top-color: var(--amber); }
.source-level-signal_only { border-top-color: var(--red); }

.system-source-level span,
.system-source-profile > span,
.system-signal-watch span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 820;
  text-transform: uppercase;
}

.system-source-level strong,
.system-source-profile strong {
  display: block;
  margin: 6px 0;
  font-size: 12px;
}

.system-source-level p,
.system-source-profile p,
.system-signal-watch p {
  margin-bottom: 0;
  color: var(--copy);
  font-size: 10px;
}

.system-source-profile {
  min-height: 205px;
}

.system-source-profile small {
  display: block;
  margin: 9px 0;
  color: var(--muted);
  font-size: 10px;
}

.system-source-profile a {
  display: inline-block;
  margin: 3px 10px 0 0;
  font-size: 10px;
  font-weight: 750;
}

.system-signal-watch {
  display: grid;
  grid-template-columns: minmax(190px, 0.4fr) minmax(0, 1.6fr);
  gap: 28px;
  margin-top: 20px;
  padding: 16px;
  border-left: 4px solid var(--red);
  background: var(--red-soft);
}

.system-signal-watch strong {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.system-signal-watch ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.system-signal-watch li a {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 750;
}

.system-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.system-section-heading > p,
.system-result-count {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.system-safety-label,
.system-candidate-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--red);
  border-radius: 4px;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.system-candidate-label {
  border-color: var(--amber);
  color: var(--amber);
}

.system-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  background: var(--line);
}

.system-metric {
  min-width: 0;
  min-height: 132px;
  padding: 18px;
  background: var(--paper);
}

.system-metric strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}

.system-metric span {
  display: block;
  font-size: 12px;
  font-weight: 800;
}

.system-metric small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.system-metric.metric-verified { border-top: 4px solid var(--green); }
.system-metric.metric-implemented { border-top: 4px solid var(--blue); }
.system-metric.metric-analysis { border-top: 4px solid var(--violet); }
.system-metric.metric-open { border-top: 4px solid var(--amber); }
.system-metric.metric-catalog { border-top: 4px solid var(--red); }

.system-skeleton {
  opacity: 0.55;
}

.system-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.system-status-copy h3,
.system-next-gate strong {
  margin-bottom: 8px;
}

.system-status-copy p,
.system-next-gate p {
  margin-bottom: 0;
  color: var(--copy);
  font-size: 13px;
}

.system-next-gate {
  padding-left: 20px;
  border-left: 4px solid var(--red);
}

.system-next-gate > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.system-next-gate strong {
  display: block;
  font-size: 17px;
}

.system-target-summary {
  display: grid;
  grid-template-columns: 0.8fr 1.35fr 0.85fr;
  gap: 1px;
  margin-bottom: 34px;
  border: 1px solid var(--line);
  background: var(--line);
}

.system-target-summary > div {
  min-width: 0;
  min-height: 150px;
  padding: 18px;
  background: var(--subtle);
}

.system-target-summary span,
.system-target-selection > span,
.system-target-inputs span,
.system-target-gate > span,
.system-target-actions span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 820;
  text-transform: uppercase;
}

.system-target-summary strong,
.system-target-selection strong,
.system-target-inputs strong,
.system-target-gate strong,
.system-target-actions strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.system-target-summary p,
.system-target-selection p,
.system-target-gate p {
  margin: 8px 0 0;
  color: var(--copy);
  font-size: 11px;
}

.system-target-summary .system-capability-links {
  margin-top: 12px;
}

.system-target-summary progress {
  display: block;
  width: 100%;
  height: 8px;
  margin-top: 12px;
  accent-color: var(--green);
}

.system-target-selections {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 36px;
}

.system-target-selection {
  min-width: 0;
  min-height: 178px;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--amber);
  border-radius: 6px;
  background: var(--subtle);
}

.system-target-selection:nth-child(2),
.system-target-selection:nth-child(4) {
  border-top-color: var(--red);
}

.system-target-selection small {
  display: block;
  margin-top: 8px;
  color: var(--amber);
  font-size: 10px;
  font-weight: 800;
}

.system-target-selection:nth-child(2) small,
.system-target-selection:nth-child(4) small {
  color: var(--red);
}

.system-target-work {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  margin-bottom: 38px;
}

.system-subsection-heading.system-subsection-stacked {
  display: block;
}

.system-subsection-heading.system-subsection-stacked p {
  margin-top: 5px;
}

.system-target-inputs,
.system-target-actions ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

.system-target-inputs {
  border-top: 1px solid var(--line);
}

.system-target-inputs li {
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--subtle);
}

.system-target-input-package > summary {
  position: relative;
  display: grid;
  min-height: 78px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 18px;
  align-items: center;
  padding: 13px 46px 13px 16px;
  cursor: pointer;
  list-style: none;
}

.system-target-input-package > summary::-webkit-details-marker {
  display: none;
}

.system-target-input-package > summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}

.system-target-input-package > summary::after {
  position: absolute;
  top: 50%;
  right: 14px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--control);
  color: var(--ink);
  content: "+";
  font-size: 17px;
  line-height: 1;
  transform: translateY(-50%);
}

.system-target-input-package[open] > summary::after {
  content: "-";
}

.system-target-input-package > summary > span,
.system-target-input-package > summary > strong {
  grid-column: 1;
}

.system-target-input-package > summary > small {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--red);
  font-size: 9px;
  font-weight: 820;
  text-align: right;
  text-transform: uppercase;
}

.system-target-field-list {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.system-target-field {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(150px, 1fr) minmax(100px, 0.55fr) minmax(190px, 1.4fr) minmax(88px, 0.45fr);
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.system-target-field:last-child {
  border-bottom: 0;
}

.system-target-field > div {
  min-width: 0;
}

.system-target-field span {
  margin-bottom: 4px;
}

.system-target-field strong,
.system-target-field p {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--copy);
  font-size: 10px;
  line-height: 1.45;
}

.system-target-field-values {
  grid-column: 1 / -1;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.system-input-state.input-missing,
.system-input-state.input-rejected {
  color: var(--red);
}

.system-input-state.input-provided,
.system-input-state.input-in_review {
  color: var(--amber);
}

.system-input-state.input-accepted {
  color: var(--green);
}

.system-target-gates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.system-target-gate {
  min-width: 0;
  min-height: 138px;
  padding: 15px;
  background: var(--subtle);
}

.system-target-gate.is-closed {
  border-top: 4px solid var(--red);
}

.system-target-gate.is-open {
  border-top: 4px solid var(--green);
}

.system-target-gate.is-closed > span {
  color: var(--red);
}

.system-target-gate.is-open > span {
  color: var(--green);
}

.system-target-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  font-size: 11px;
}

.system-target-table th,
.system-target-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.system-target-table th {
  background: var(--subtle);
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.system-target-table th:nth-child(1) { width: 15%; }
.system-target-table th:nth-child(2) { width: 39%; }
.system-target-table th:nth-child(3) { width: 34%; }
.system-target-table th:nth-child(4) { width: 12%; }

.system-target-table td strong,
.system-target-table td span {
  display: block;
}

.system-target-table td span:not(.system-badge) {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.system-target-actions {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  gap: 30px;
  margin-top: 24px;
  padding: 18px;
  border-left: 4px solid var(--blue);
  background: var(--blue-soft);
}

.system-target-actions ol {
  counter-reset: target-action;
}

.system-target-actions li {
  position: relative;
  padding: 7px 0 7px 34px;
  color: var(--copy);
  font-size: 11px;
  counter-increment: target-action;
}

.system-target-actions li::before {
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 850;
  content: counter(target-action, decimal-leading-zero);
}

.system-layer-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 36px;
}

.system-layer-node {
  position: relative;
  min-width: 0;
  min-height: 178px;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 6px;
  background: var(--subtle);
}

.system-layer-node:nth-child(3) { border-top-color: var(--violet); }
.system-layer-node:nth-child(4) { border-top-color: var(--green); }
.system-layer-node:nth-child(5) { border-top-color: var(--amber); }

.system-layer-node:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -18px;
  width: 12px;
  border-top: 2px solid var(--line-strong);
  content: "";
}

.system-layer-node span {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.system-layer-node strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.system-layer-node p,
.system-layer-node small {
  display: block;
  margin-bottom: 8px;
  color: var(--copy);
  font-size: 11px;
  line-height: 1.45;
}

.system-layer-node small {
  margin-bottom: 0;
  color: var(--muted);
}

.system-control-callout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.system-control-callout > div {
  position: relative;
  min-width: 0;
  padding: 24px 24px 22px 48px;
  border-right: 1px solid var(--line);
}

.system-control-callout > div:last-child {
  border-right: 0;
}

.system-callout-index {
  position: absolute;
  top: 27px;
  left: 16px;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
}

.system-control-callout h3 {
  margin-bottom: 7px;
  font-size: 15px;
}

.system-control-callout p {
  margin-bottom: 0;
  color: var(--copy);
  font-size: 12px;
}

.system-segments {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  margin-bottom: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  overflow: hidden;
}

.system-segments button {
  min-height: 38px;
  padding: 7px 14px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--control);
  color: var(--copy);
  font-size: 12px;
  font-weight: 750;
}

.system-segments button:last-child {
  border-right: 0;
}

.system-segments button:hover {
  background: var(--control-hover);
}

.system-segments button.is-active {
  background: var(--ink);
  color: var(--paper);
}

.system-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1.25fr) minmax(170px, 0.8fr) minmax(190px, 0.85fr) minmax(170px, 0.75fr) auto;
  gap: 12px;
  padding: 15px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.system-filters label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.system-filters label > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.system-filters input,
.system-filters select,
.system-reset {
  width: 100%;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--control);
  color: var(--ink);
  font-size: 12px;
}

.system-reset {
  align-self: end;
  width: auto;
  padding-inline: 16px;
  background: var(--control-hover);
  font-weight: 750;
}

.system-filters input:focus,
.system-filters select:focus,
.system-reset:focus-visible,
.system-segments button:focus-visible,
.system-theme select:focus-visible,
.system-table-shell:focus-visible {
  border-color: var(--blue);
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}

.system-filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 28px;
  margin-bottom: 18px;
}

.system-filter-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.system-feature-groups {
  display: grid;
  gap: 34px;
}

.system-feature-group > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--line-strong);
}

.system-feature-group > header h3 {
  margin-bottom: 0;
  font-size: 19px;
}

.system-feature-group > header span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.system-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.system-feature-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.system-feature-card > summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  min-height: 132px;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}

.system-feature-card > summary::-webkit-details-marker {
  display: none;
}

.system-feature-card > summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}

.system-feature-title {
  min-width: 0;
}

.system-feature-title > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.system-feature-title h4 {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.28;
}

.system-feature-title p {
  margin-bottom: 0;
  color: var(--copy);
  font-size: 12px;
}

.system-feature-badges {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 6px;
  min-width: 136px;
}

.system-expand-indicator {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--control);
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
}

.system-expand-indicator::before {
  content: "+";
}

.system-feature-card[open] .system-expand-indicator::before {
  content: "-";
}

.system-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  max-width: 180px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--subtle);
  color: var(--copy);
  font-size: 9px;
  font-weight: 820;
  text-align: center;
  text-transform: uppercase;
}

.availability-native,
.status-verifiziert { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.availability-native_config,
.status-umgesetzt { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.availability-partial,
.status-in_analyse { border-color: var(--violet); background: var(--violet-soft); color: var(--violet); }
.availability-custom_required,
.status-offen { border-color: var(--amber); background: var(--amber-soft); color: var(--amber); }
.availability-target_incompatible,
.status-wartet_auf_quellstand,
.status-datenfehler { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.availability-hardware_required { border-color: var(--amber); background: var(--amber-soft); color: var(--amber); }
.source-verified_current { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.source-documented_current { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.source-merged_upstream { border-color: var(--violet); background: var(--violet-soft); color: var(--violet); }
.source-candidate { border-color: var(--amber); background: var(--amber-soft); color: var(--amber); }
.source-signal_only { border-color: var(--red); background: var(--red-soft); color: var(--red); }

.system-feature-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 18px;
  border-top: 1px solid var(--line);
  background: var(--subtle);
}

.system-detail-block h5 {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.system-detail-block p,
.system-detail-block ul {
  margin-bottom: 0;
  color: var(--copy);
  font-size: 11px;
}

.system-detail-block ul {
  padding-left: 18px;
}

.system-capability-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.system-capability-link {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--copy);
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}

.system-capability-link:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.system-empty,
.system-loading,
.system-error {
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
}

.system-error {
  border-color: var(--red);
  color: var(--red);
}

.system-route-visuals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.system-route-figure {
  min-width: 0;
  margin-bottom: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--subtle);
}

.system-route-figure svg {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 170px;
  color: var(--copy);
}

.surface-shape {
  fill: var(--paper);
  stroke: var(--line-strong);
  stroke-width: 2;
}

.route-path {
  fill: none;
  stroke: var(--red);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.normal-line {
  stroke: var(--blue);
  stroke-width: 3;
}

.system-route-figure text {
  fill: currentColor;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
}

.system-route-figure figcaption {
  display: grid;
  min-height: 62px;
  padding: 11px 13px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.system-route-figure figcaption strong {
  font-size: 12px;
}

.system-route-figure figcaption span {
  color: var(--muted);
  font-size: 10px;
}

.system-geometry-rule {
  padding: 15px 18px;
  margin-bottom: 24px;
  border-left: 4px solid var(--blue);
  background: var(--blue-soft);
  color: var(--copy);
  font-size: 13px;
  font-weight: 650;
}

.system-use-cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.system-use-case {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 5px;
  background: var(--subtle);
}

.system-use-case header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.system-use-case header span:first-child {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.system-use-case h3 {
  margin-bottom: 9px;
  font-size: 17px;
}

.system-use-case > p {
  margin-bottom: 14px;
  color: var(--copy);
  font-size: 12px;
}

.system-case-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.system-case-facts div {
  min-width: 0;
}

.system-case-facts dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.system-case-facts dd {
  margin: 0;
  color: var(--copy);
  font-size: 10px;
}

.system-case-capabilities {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.system-case-capabilities > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.system-signal-path {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 48px;
  border: 1px solid var(--line);
  background: var(--line);
}

.system-signal-stage {
  position: relative;
  min-width: 0;
  min-height: 184px;
  padding: 15px;
  background: var(--paper);
}

.system-signal-stage span {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.system-signal-stage strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.system-signal-stage p,
.system-signal-stage small {
  display: block;
  margin-bottom: 7px;
  color: var(--copy);
  font-size: 10px;
}

.system-signal-stage small {
  margin-bottom: 0;
  color: var(--red);
}

.system-subsection-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  align-items: baseline;
  gap: 24px;
  padding-top: 10px;
  margin: 42px 0 16px;
  border-top: 1px solid var(--line-strong);
}

.system-subsection-heading h3 {
  margin-bottom: 0;
  font-size: 18px;
}

.system-subsection-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

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

.system-measurement {
  min-width: 0;
  padding: 15px;
  border-top: 4px solid var(--green);
  background: var(--paper);
}

.system-measurement > header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.system-measurement > header > span {
  margin-right: auto;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}

.system-measurement h4 {
  margin: 5px 0 7px;
  font-size: 14px;
}

.system-measurement p {
  margin-bottom: 7px;
  color: var(--copy);
  font-size: 10px;
}

.system-measurement dl {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.system-measurement dl div {
  padding-top: 7px;
  border-top: 1px solid var(--line);
}

.system-measurement dt,
.system-measurement-open strong {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.system-measurement dd {
  margin: 3px 0 0;
  color: var(--copy);
  font-size: 10px;
}

.system-measurement-open {
  padding: 9px;
  border-left: 3px solid var(--amber);
  background: var(--amber-soft);
}

.system-measurement-open ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0;
  margin: 6px 0 0;
  list-style: none;
}

.system-measurement-open li {
  padding: 2px 5px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--copy);
  font-size: 9px;
}

.system-table-shell {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.system-hardware-table {
  width: 100%;
  min-width: 1050px;
  border-collapse: collapse;
  table-layout: fixed;
}

.system-hardware-table th,
.system-hardware-table td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
}

.system-hardware-table th {
  background: var(--subtle);
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.system-hardware-table td {
  color: var(--copy);
  font-size: 10px;
}

.system-hardware-table th:nth-child(1) { width: 13%; }
.system-hardware-table th:nth-child(2) { width: 18%; }
.system-hardware-table th:nth-child(3) { width: 29%; }
.system-hardware-table th:nth-child(4) { width: 29%; }
.system-hardware-table th:nth-child(5) { width: 11%; }

.system-hardware-table td strong,
.system-hardware-table td span {
  display: block;
}

.system-hardware-table td span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.system-hardware-table tr:last-child td {
  border-bottom: 0;
}

.system-telemetry-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.system-telemetry-option {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--line-strong);
  border-radius: 5px;
  background: var(--paper);
}

.system-telemetry-option.is-recommended {
  border-top-color: var(--green);
}

.system-telemetry-option > span {
  color: var(--green);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.system-telemetry-option h4 {
  margin: 5px 0 8px;
  font-size: 15px;
}

.system-telemetry-option p {
  margin-bottom: 9px;
  color: var(--copy);
  font-size: 11px;
}

.system-telemetry-option small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.system-gates {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--line);
  list-style: none;
}

.system-gates li {
  min-width: 0;
  min-height: 158px;
  padding: 14px;
  background: var(--paper);
}

.system-gates span {
  display: block;
  margin-bottom: 6px;
  color: var(--red);
  font-size: 10px;
  font-weight: 850;
}

.system-gates strong {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
}

.system-gates p {
  margin-bottom: 0;
  color: var(--copy);
  font-size: 10px;
}

.system-closing {
  padding: 48px 0;
  background: var(--header);
  color: var(--header-ink);
}

.system-closing-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.2fr) auto;
  align-items: center;
  gap: 38px;
}

.system-closing h2 {
  font-size: 26px;
}

.system-closing p {
  margin-bottom: 0;
  color: #c6d0d2;
  font-size: 13px;
}

.system-primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid #84c9a7;
  border-radius: 4px;
  color: #e9fff4;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.system-primary-link:hover,
.system-primary-link:focus-visible {
  background: #e9fff4;
  color: #13231b;
}

.system-footer {
  padding: 22px 0;
  background: #080e12;
  color: #9eabad;
}

.system-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 10px;
}

@media (min-width: 1001px) {
  .system-filters {
    position: sticky;
    top: 76px;
    z-index: 20;
  }
}

@media (max-width: 1180px) {
  .system-nav {
    justify-content: start;
    overflow-x: auto;
    padding-block: 12px;
  }

  .system-layer-flow,
  .system-signal-path,
  .system-source-levels,
  .system-source-profiles,
  .system-target-selections {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .system-layer-node:not(:last-child)::after {
    display: none;
  }

  .system-measurements {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .system-gates {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .system-header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .system-brand {
    min-width: 0;
  }

  .system-brand > span:last-child {
    display: none;
  }

  .system-nav {
    gap: 16px;
  }

  .system-hero-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .system-metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .system-feature-list,
  .system-use-cases {
    grid-template-columns: 1fr;
  }

  .system-route-visuals {
    grid-template-columns: 1fr 1fr;
  }

  .system-route-figure:last-child {
    grid-column: span 2;
  }

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

  .system-source-profiles,
  .system-telemetry-options,
  .system-target-summary {
    grid-template-columns: 1fr;
  }

  .system-closing-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .system-primary-link {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .system-inner,
  .system-inner.system-wide {
    width: min(calc(100% - 28px), var(--wide));
  }

  .system-header-inner {
    width: calc(100% - 20px);
  }

  .system-nav .nav-architecture,
  .system-nav .nav-hardware {
    display: none;
  }

  .system-theme select {
    width: 72px;
  }

  .system-hero {
    padding: 42px 0 34px;
  }

  h1 {
    font-size: 38px;
    overflow-wrap: anywhere;
  }

  .system-lede {
    font-size: 17px;
  }

  .system-baseline {
    grid-template-columns: 1fr;
  }

  .system-baseline div {
    min-height: 68px;
  }

  .system-boundary-layout,
  .system-status-grid,
  .system-subsection-heading,
  .system-target-work,
  .system-target-actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .system-status,
  .system-sources,
  .system-target,
  .system-architecture,
  .system-catalog,
  .system-cleaning,
  .system-hardware {
    padding: 46px 0;
  }

  .system-section-heading {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .system-metrics,
  .system-source-levels,
  .system-layer-flow,
  .system-signal-path,
  .system-measurements,
  .system-gates,
  .system-target-selections {
    grid-template-columns: 1fr 1fr;
  }

  .system-signal-watch {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .system-control-callout {
    grid-template-columns: 1fr;
  }

  .system-control-callout > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .system-control-callout > div:last-child {
    border-bottom: 0;
  }

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

  .system-reset {
    width: 100%;
  }

  .system-feature-card > summary {
    grid-template-columns: 1fr;
  }

  .system-feature-badges {
    align-items: start;
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
  }

  .system-feature-detail,
  .system-case-facts {
    grid-template-columns: 1fr;
  }

  .system-target-input-package > summary {
    grid-template-columns: 1fr;
  }

  .system-target-input-package > summary > small {
    grid-column: 1;
    grid-row: auto;
    text-align: left;
  }

  .system-target-field {
    grid-template-columns: 1fr;
  }

  .system-target-field-values {
    grid-column: auto;
  }

  .system-route-visuals {
    grid-template-columns: 1fr;
  }

  .system-route-figure:last-child {
    grid-column: auto;
  }

  .system-footer-inner {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 430px) {
  .system-nav .nav-sources,
  .system-nav .nav-catalog {
    display: none;
  }

  .system-segments {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .system-segments button {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .system-segments button:last-child {
    border-bottom: 0;
  }

  .system-metrics,
  .system-source-levels,
  .system-layer-flow,
  .system-signal-path,
  .system-measurements,
  .system-gates,
  .system-target-selections,
  .system-target-gates {
    grid-template-columns: 1fr;
  }
}

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

@media (forced-colors: active) {
  .system-badge,
  .system-layer-node,
  .system-feature-card,
  .system-use-case,
  .system-route-figure,
  .system-telemetry-option {
    border: 1px solid CanvasText;
  }
}

/* Vertragskette. Abgeleitet aus contracts/, siehe scripts/generate-contract-chain.py. */
.system-contracts {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.system-contract-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.system-contract-metric {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: 5px;
  background: var(--paper);
}

.system-contract-metric strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1.1;
}

.system-contract-metric span {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  opacity: 0.75;
}

.system-contract-rule {
  margin: 0 0 20px;
  font-size: 0.9rem;
  opacity: 0.85;
}

.system-contract-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.system-contract-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--line-strong);
  border-radius: 5px;
  background: var(--paper);
}

.system-contract-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.system-contract-card h4 {
  margin: 0;
  font-size: 1rem;
}

.system-contract-card p {
  margin: 0 0 12px;
  font-size: 0.85rem;
  opacity: 0.85;
}

.system-contract-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 0;
  font-size: 0.8rem;
}

.system-contract-card dt {
  opacity: 0.7;
}

.system-contract-card dd {
  margin: 0;
  overflow-wrap: anywhere;
}
