.router-flow {
  max-width: 1200px;
  margin: 0 auto 90px;
  padding: 48px;
  background: #f3f5ee;
  border: 1px solid #e2e7db;
  border-radius: 18px;
  color: #24392b;
}
.router-section-heading {
  max-width: 620px;
}
.router-flow small {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #74846b;
}
.router-flow h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: -0.045em;
  margin: 18px 0;
}
.router-flow p {
  font-size: 14px;
  line-height: 1.7;
  color: #68775f;
}
.router-drawing {
  display: grid;
  grid-template-columns: 1fr 40px 1.5fr 40px 1fr;
  align-items: center;
  margin: 60px 0 30px;
  gap: 16px;
}
.router-drawing h3 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin: 14px 0;
}
.router-input-node,
.router-output-node {
  padding: 20px 10px;
}
.router-symbol {
  display: block;
  font-size: 36px;
  color: #799769;
  margin-bottom: 18px;
}
.router-connector {
  text-align: center;
  color: #9aaa8e;
  font-size: 30px;
}
.router-core {
  background: #fff9;
  border: 1px solid #cbd8c1;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 12px 35px #30482a08;
}
.router-core img {
  width: 68px;
}
.router-core h3 {
  font-size: 31px;
  margin: 12px 0 24px;
}
.router-core div {
  display: grid;
  gap: 0;
}
.router-core div span {
  font-size: 12px;
  line-height: 1.6;
  padding: 12px 0;
  border-top: 1px solid #e3e9dc;
}
.router-policy {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid #dbe3d2;
  max-width: 750px;
}
.router-policy svg {
  width: 27px;
  min-width: 27px;
  height: 32px;
  fill: none;
  stroke: #829574;
  stroke-width: 1.5;
}
.router-policy b {
  font-size: 14px;
  font-weight: 500;
}
.router-policy p {
  font-size: 12px;
  margin: 5px 0;
}
.router-example-heading {
  margin-top: 65px;
}
.router-example-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 28px 0;
}
.router-example-tabs button {
  font: inherit;
  font-size: 12px;
  color: #506348;
  background: transparent;
  border: 1px solid #d1dbc7;
  border-radius: 6px;
  padding: 12px 16px;
  cursor: pointer;
}
.router-example-tabs [aria-pressed="true"] {
  background: #e0e8d8;
  border-color: #9fb28c;
}
.router-example-tabs button:focus-visible {
  outline: 2px solid #327952;
  outline-offset: 3px;
}
.router-example {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #d1dbc7;
  border-bottom: 1px solid #d1dbc7;
  gap: 50px;
  padding: 34px 0;
  min-height: 240px;
}
.router-example h3 {
  font-size: 25px;
  line-height: 1.25;
  font-weight: 400;
  margin: 14px 0;
}
.router-depth-lines {
  display: flex;
  gap: 6px;
  height: 35px;
  align-items: end;
  margin-bottom: 17px;
}
.router-depth-lines i {
  width: 34px;
  height: 9px;
  border: 1px solid #b8c8ac;
  border-radius: 2px;
  background: #dce5d4;
  transition: height 0.4s;
}
.router-depth-lines i:first-child {
  height: 16px;
  background: #8fa87d;
}
.router-flow[data-depth="1"] .router-depth-lines i:nth-child(2) {
  height: 24px;
  background: #8fa87d;
}
.router-flow[data-depth="2"] .router-depth-lines i:nth-child(2) {
  height: 24px;
  background: #8fa87d;
}
.router-flow[data-depth="2"] .router-depth-lines i:nth-child(3) {
  height: 33px;
  background: #8fa87d;
}
.router-example-note {
  font-size: 11px !important;
  margin-top: 18px;
}
@media (max-width: 700px) {
  .router-flow {
    margin: 0 14px 60px;
    padding: 25px 22px;
  }
  .router-drawing {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    margin-top: 30px;
  }
  .router-input-node,
  .router-output-node {
    padding: 12px;
    text-align: center;
  }
  .router-connector {
    transform: rotate(90deg);
    padding: 6px;
  }
  .router-core {
    padding: 24px;
  }
  .router-example {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .router-example-tabs button {
    flex: 1 1 100%;
    text-align: left;
  }
  .router-example-heading {
    margin-top: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .router-depth-lines i {
    transition: none;
  }
}
.routing-canvas {
  margin: 40px -10px 12px;
  background-color: #eef2e9;
  background-image: radial-gradient(#bbc7b0 1px, transparent 1px);
  background-size: 24px 24px;
  border-radius: 14px;
  overflow: auto;
  scrollbar-color: #718563 #eef2e9;
}
.routing-canvas > .routing-stage > svg {
  display: block;
  width: 100%;
  height: auto;
}
.routing-node rect {
  fill: #fff;
  stroke: #b2c0a8;
  stroke-width: 1.3;
}
.routing-classifier rect {
  fill: #e0eada;
  stroke: #668158;
}
.routing-label {
  font-size: 12px;
  letter-spacing: 1.3px;
  fill: #4a6341;
}
.routing-title {
  font-size: 21px;
  fill: #233f2b;
  font-weight: 500;
}
.routing-detail {
  font-size: 14px;
  fill: #4f6249;
}
.routing-paths path {
  fill: none;
  stroke: #75856c;
  stroke-width: 2;
  marker-end: url(#route-arrow);
}
.routing-fallback-paths path {
  fill: none;
  stroke: #9c6b2e;
  stroke-width: 2;
  stroke-dasharray: 5 4;
  marker-end: url(#route-arrow);
}
.routing-branch rect {
  fill: #eef2e9;
  stroke: #b7c4ad;
}
.routing-branch text {
  font-size: 13px;
  fill: #38512e;
  text-anchor: middle;
}
.routing-fallback-label text {
  font-size: 11px;
  letter-spacing: 1px;
  text-anchor: middle;
  fill: #81551e;
}
.routing-fallback rect {
  fill: #fbf8f0;
  stroke: #bea479;
}
.router-model-note {
  font-size: 12px !important;
}
.router-flow[data-depth="0"] .routing-light rect {
  stroke: #235e3d;
  stroke-width: 2.5;
}
.router-flow[data-depth="1"] .routing-classifier rect,
.router-flow[data-depth="2"] .routing-deep rect {
  stroke: #235e3d;
  stroke-width: 2.5;
}
.router-example-tabs button {
  background: #fff;
  border-color: #718566;
  color: #29432e;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  transition:
    background 0.15s,
    color 0.15s;
}
.router-example-tabs button:hover {
  background: #e3ebdc;
  border-color: #305b3d;
}
.router-example-tabs [aria-pressed="true"] {
  background: #214f37;
  border-color: #214f37;
  color: #fff;
  box-shadow: inset 0 -3px #102e20;
}
.router-example-tabs button:focus-visible {
  outline: 3px solid #214f37;
  outline-offset: 4px;
}
.router-flow small {
  color: #526548;
}
.router-example-note {
  color: #526548 !important;
}
@media (max-width: 700px) {
  .routing-canvas {
    margin-inline: -10px;
  }
  .routing-title {
    font-size: 22px;
  }
  .router-example-tabs button {
    min-height: 48px;
  }
}
.routing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 35px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #415938;
}
.routing-toolbar div {
  display: flex;
  gap: 5px;
}
.routing-toolbar button {
  font: inherit;
  font-size: 15px;
  letter-spacing: 0;
  min-width: 44px;
  min-height: 44px;
  background: white;
  color: #214f37;
  border: 1px solid #718566;
  border-radius: 6px;
  cursor: pointer;
}
.routing-toolbar button:hover {
  background: #dce8d3;
}
.routing-toolbar button:focus-visible,
.routing-canvas:focus-visible {
  outline: 3px solid #214f37;
  outline-offset: 3px;
}
.routing-canvas {
  margin-top: 12px;
}
.routing-canvas > .routing-stage > svg {
}
.routing-title {
  font-size: 20px;
}
.routing-detail {
  font-size: 13px;
}
@media (max-width: 700px) {
  .routing-toolbar {
    font-size: 9px;
    letter-spacing: 0.03em;
  }
  .routing-title {
    font-size: 20px;
  }
}
.routing-brain rect {
  fill: #e0eee4;
  stroke: #48745c;
  stroke-width: 1.7;
}
.routing-context-path path {
  fill: none;
  stroke: #48745c;
  stroke-width: 2;
  stroke-dasharray: 7 5;
  marker-end: url(#route-arrow);
}
.routing-context-caption {
  font-size: 13px;
  fill: #356146;
}
.router-trust-explainer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 50px;
  margin-top: 45px;
  padding-top: 35px;
  border-top: 1px solid #bac9b0;
}
.router-trust-explainer span {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #4e6841;
}
.router-trust-explainer h3 {
  font-size: 23px;
  font-weight: 400;
  line-height: 1.25;
  margin: 12px 0;
}
.router-trust-explainer p {
  font-size: 14px;
  color: #4e6146;
}
@media (max-width: 700px) {
  .router-trust-explainer {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.routing-interface rect {
  fill: #e0eee5;
  stroke: #4d7b60;
  stroke-width: 1.5;
}
.routing-twin rect {
  fill: #214f37;
  stroke: #214f37;
}
.routing-twin .routing-title {
  fill: #fff;
}
.routing-twin .routing-label,
.routing-twin .routing-detail {
  fill: #e2eee0;
}
.routing-policy-node rect {
  fill: #f5f1e5;
  stroke: #ae9762;
}
.route-device-icon rect,
.route-device-icon path {
  fill: none;
  stroke: #315d42;
  stroke-width: 1.8;
}
.route-step-labels text {
  font-size: 13px;
  fill: #425d38;
}
.routing-canvas .routing-detail {
  font-size: 14px;
}
.routing-canvas .routing-label {
  font-size: 12px;
}
.routing-canvas .routing-title {
  font-size: 21px;
}
.routing-canvas > .routing-stage > svg {
}
.routing-canvas {
  max-height: 1120px;
  scroll-padding: 20px;
}
.routing-toolbar {
  position: relative;
  z-index: 1;
}
/* Architecture layers follow the supplied AiAx target-architecture drawing. */
.route-agent-title {
  font-size: 18px;
  font-weight: 500;
  fill: #2a432f;
}
.routing-canvas .routing-twin .routing-title,
.route-agent-title {
  letter-spacing: 0;
}
.route-agent-detail {
  font-size: 14px;
  fill: #e0ebdc;
}
.routing-twin ~ text.route-agent-title {
  fill: #fff;
}
.route-connector-label {
  font-size: 14px;
  fill: #3f6548;
}
.route-side-label {
  font-size: 13px;
  fill: #45693f;
  writing-mode: vertical-rl;
}
.route-systems {
  font-size: 18px;
  fill: #34503b;
}
.route-brain-edge {
  stroke: #8cb296;
  fill: none;
  stroke-width: 1.5;
}
.route-brain-node {
  fill: #83b898;
  stroke: #458564;
}
.route-brain-hub {
  fill: #235b40;
}
.route-brain-title {
  font-size: 12px;
  fill: #fff;
}
.routing-canvas > .routing-stage > svg {
}
.routing-canvas {
  max-height: none;
}
.routing-canvas .routing-title {
  font-size: 23px;
}
.routing-canvas .routing-detail {
  font-size: 15px;
}
.routing-canvas .routing-label {
  font-size: 13px;
}

.routing-canvas {
  position: relative;
  height: clamp(380px, 72vh, 860px);
  max-height: none;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-behavior: auto;
}
.routing-stage {
  position: relative;
  display: grid;
  place-items: center;
}
.routing-canvas .routing-stage > svg {
  display: block;
  min-width: 0;
  max-width: none;
  flex: none;
}
.routing-toolbar > div {
  align-items: center;
}
.routing-zoom-status {
  min-width: 48px;
  text-align: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  color: #29432e;
}
.routing-toolbar button:disabled {
  opacity: 0.4;
  cursor: default;
}
.routing-toolbar button[aria-pressed="true"] {
  background: #214f37;
  color: #fff;
  border-color: #214f37;
}
.routing-node .route-type-badge rect {
  fill: #fbfcf8;
  stroke: #9eaf94;
  stroke-width: 1;
}
.route-type-label {
  font-size: 11px;
  letter-spacing: 0.8px;
  fill: #48633f;
}
.routing-twin .route-type-badge rect {
  fill: #214f37;
  stroke: #8aa98c;
}
.routing-twin .route-type-label {
  fill: #e0ebdc;
}
.routing-node .route-semantic-icon rect {
  fill: none;
  stroke: inherit;
  stroke-width: inherit;
}
.routing-canvas .routing-twin ~ text.route-agent-title {
  fill: #fff;
}

.route-model-name {
  font-size: 19px;
  font-weight: 500;
  fill: #223d2b;
  letter-spacing: 0;
}
.route-model-list image {
  color: #203629;
}

.router-prerequisite {
  max-width: 850px;
  font-size: 15px;
  line-height: 1.7;
  color: #4a6044;
  border-left: 2px solid #819873;
  padding-left: 18px;
  margin: 24px 0;
}
.routing-toolbar > span {
  max-width: 55%;
  line-height: 1.5;
}
