/* Editable reconstruction of the reference, with readable site-sized type. */
.model-ecosystem { container: model-ecosystem / inline-size; width: 100%; padding: 18px; margin: 0; border: 0; background: #ebf3f8; color: #193c4b; }
.ecosystem-caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ecosystem-families { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.ecosystem-family { min-width: 0; overflow: hidden; padding: 14px 16px 12px; border: 1px solid #cee1ed; border-radius: 18px; background: #f9fbfd; }
.ecosystem-family header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ecosystem-family h3 { margin: 0; font-size: 16px; line-height: 1.4; font-weight: 700; white-space: nowrap; letter-spacing: 0; }
.ecosystem-badge { padding: 5px 8px; border-radius: 99px; background: #e9f2f7; color: #5b8ba1; font-size: 12px; line-height: 1.4; white-space: nowrap; }
.ecosystem-family .ecosystem-type { margin: 8px 0 12px; color: #7f9bac; font-size: 12px; line-height: 1.4; letter-spacing: 1px; }
.ecosystem-models { margin-right: -16px; overflow: hidden; mask-image: linear-gradient(to right,#000 0%,#000 84%,transparent 100%); }
.ecosystem-models ul { display: flex; align-items: stretch; gap: 10px; list-style: none; margin: 0; padding: 0; }
.ecosystem-models ul + ul { margin-top: 8px; }
.ecosystem-models li { display: flex; flex: none; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 9px; background: #eef4f7; color: #345969; font-size: 14px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.model-ecosystem .ecosystem-models img { display: block; flex: none; width: 24px; height: 24px; object-fit: contain; border: 0; border-radius: 0; }
.ecosystem-models--general ul:first-child li:nth-child(1) { width: 96px; }
.ecosystem-models--general ul:first-child li:nth-child(2) { width: 114px; }
.ecosystem-models--general ul:first-child li:nth-child(3) { width: 114px; }
.ecosystem-models--general ul:last-child li:nth-child(1) { width: 132px; }
.ecosystem-models--general ul:last-child li:nth-child(2) { width: 108px; }
.ecosystem-models--general ul:last-child li:nth-child(3) { width: 114px; }
.ecosystem-family .ecosystem-summary { margin: 12px 0 0; text-align: center; font-size: 12px; color: #809cad; line-height: 1.5; }
.ecosystem-connection { position: relative; display: flex; align-items: center; justify-content: center; min-height: 32px; color: #87aabd; font-size: 12px; line-height: 1.4; letter-spacing: .5px; }
.ecosystem-connection > span:first-child, .ecosystem-connection > span:last-child { position: absolute; font-size: 24px; }
.ecosystem-connection > span:first-child { left: 25%; }
.ecosystem-connection > span:last-child { right: 25%; }
.ecosystem-platform { padding: 16px 12px; display: flex; flex-direction: column; justify-content: center; align-items: center; border: 1px solid #b6d4e3; border-radius: 14px; background: linear-gradient(105deg,#dcecf3 0%,#f2f8fc 50%,#e0ebf2 100%); text-align: center; }
.ecosystem-platform > div { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.ecosystem-platform strong { font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -1px; }
.ecosystem-platform > div > span { font-size: 14px; color: #557f95; font-weight: 600; }
.ecosystem-platform p { margin: 10px 0 0; color: #7295a8; font-size: 14px; line-height: 1.6; }
.ecosystem-platform i { margin: 0 8px; font-style: normal; }
.ecosystem-scenarios { padding: 20px 18px 18px; border: 1px solid #d0dff0; border-radius: 18px; background: radial-gradient(ellipse at 50% 40%,#e9eff9 0%,#f5f9fd 72%); }
.ecosystem-scene-grid { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 180px minmax(0,1fr); grid-template-rows: repeat(2,minmax(68px,1fr)); align-items: center; gap: 14px 12px; }
.ecosystem-scene-grid::before { content: ''; position: absolute; left: 30%; right: 30%; top: 50%; border-top: 1px solid #bdd0e9; }
.ecosystem-scene { position: relative; min-width: 0; min-height: 68px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; border: 1px solid #d3e1f2; border-radius: 10px; background: #fcfdfe; text-align: center; }
.ecosystem-unmanned-retail { grid-column: 1; grid-row: 1; }
.ecosystem-manufacturing { grid-column: 3; grid-row: 1; }
.ecosystem-commercial { grid-column: 1; grid-row: 2; }
.ecosystem-homecare { grid-column: 3; grid-row: 2; }
.ecosystem-scene strong { font-size: 16px; line-height: 1.4; font-weight: 700; white-space: nowrap; }
.ecosystem-scene small { color: #8298b6; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.ecosystem-core { position: relative; grid-column: 2; grid-row: 1 / 3; width: 180px; aspect-ratio: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; border: 1px solid #bdd0ee; border-radius: 50%; background: #f8faff; box-shadow: 0 0 0 9px #e7edf760; color: #5973a3; text-align: center; }
.ecosystem-core > span { font-size: 12px; line-height: 1.4; color: #7c93bb; }
.ecosystem-core > strong { font-size: 39px; line-height: 1.1; font-weight: 600; letter-spacing: -2px; }
.ecosystem-core > b { font-size: 14px; line-height: 1.4; font-weight: 600; }
.ecosystem-core > small { font-size: 12px; line-height: 1.4; }
.ecosystem-scenarios .ecosystem-coverage { margin: 16px 0 12px; text-align: center; color: #4f728f; font-size: 14px; font-weight: 600; line-height: 1.4; }
.ecosystem-cycle { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 0; color: #879dbb; font-size: 12px; line-height: 1.5; }
.ecosystem-cycle i { font-style: normal; color: #9cb1cf; }
@container model-ecosystem (max-width: 540px) {
  .ecosystem-families { grid-template-columns: minmax(0,1fr); }
  .ecosystem-scene-grid { grid-template-columns: minmax(0,1fr) 160px minmax(0,1fr); gap: 16px 10px; }
  .ecosystem-core { width: 160px; gap: 5px; }
  .ecosystem-core > strong { font-size: 34px; }
  .ecosystem-scene small { display: none; }
}
@container model-ecosystem (max-width: 380px) {
  .ecosystem-scene-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: auto auto auto; gap: 12px 12px; }
  .ecosystem-scene-grid::before { left: 50%; right: auto; top: 16%; bottom: 16%; border-top: 0; border-left: 1px solid #bdd0e9; }
  .ecosystem-unmanned-retail { grid-column: 1; grid-row: 1; }
  .ecosystem-manufacturing { grid-column: 2; grid-row: 1; }
  .ecosystem-core { grid-column: 1 / -1; grid-row: 2; justify-self: center; width: 180px; }
  .ecosystem-commercial { grid-column: 1; grid-row: 3; }
  .ecosystem-homecare { grid-column: 2; grid-row: 3; }
  .ecosystem-scene { min-height: 58px; }
  .ecosystem-connection > span:first-child { left: 15%; }
  .ecosystem-connection > span:last-child { right: 15%; }
  .ecosystem-platform p { font-size: 14px; }
  .ecosystem-platform i { margin: 0 3px; }
}
@media (max-width:767px) { .model-ecosystem { padding: 16px; } .ecosystem-scenarios { padding: 18px 12px; } }


/* Keep model families content-led after adding the action-model row. */
.ecosystem-families { align-items: start; }

/* Action models use two columns; added models remain appended after the original six. */
.ecosystem-models--action {
  margin-right: 0;
  overflow: visible;
  mask-image: none;
}
.ecosystem-models--action ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.ecosystem-models--action ul + ul { margin-top: 0; }
.ecosystem-models--action li {
  width: auto;
  min-width: 0;
  padding: 0 8px;
  font-size: 13px;
  justify-content: center;
  text-align: center;
}


/* Keep the action card from growing for every appended model. */
.ecosystem-models--action {
  max-height: 208px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 0%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 88%, transparent 100%);
}
.ecosystem-families { align-items: start; }

/* Keep both model cards at the same compact height; overflow is faded at the bottom. */
.ecosystem-families { align-items: stretch; }
.ecosystem-models--action {
  max-height: 96px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 0%, #000 70%, rgba(0,0,0,.35) 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, rgba(0,0,0,.35) 88%, transparent 100%);
}

/* Final model-label behavior: natural text widths, right edge fade, no bottom clipping. */
.ecosystem-families { align-items: start; }
.ecosystem-models li { width: auto; }
.ecosystem-models--general li,
.ecosystem-models--general ul:first-child li:nth-child(1),
.ecosystem-models--general ul:first-child li:nth-child(2),
.ecosystem-models--general ul:first-child li:nth-child(3),
.ecosystem-models--general ul:last-child li:nth-child(1),
.ecosystem-models--general ul:last-child li:nth-child(2),
.ecosystem-models--general ul:last-child li:nth-child(3) {
  width: auto;
}
.ecosystem-models--action {
  max-height: none;
  overflow: hidden;
  mask-image: linear-gradient(to right, #000 0%, #000 90%, rgba(0,0,0,.38) 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 90%, rgba(0,0,0,.38) 97%, transparent 100%);
}
.ecosystem-models--action ul {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.ecosystem-models--action ul + ul { margin-top: 8px; }
.ecosystem-models--action li {
  flex: none;
  width: auto;
  min-width: 0;
  padding: 0 12px;
  font-size: 13px;
  justify-content: center;
  text-align: center;
}

/* Two-row action models with natural widths and right-side overflow fade. */
.ecosystem-families { align-items: stretch; }
.ecosystem-models--action {
  max-height: none;
  overflow: hidden;
  mask-image: linear-gradient(to right, #000 0%, #000 78%, rgba(0,0,0,.58) 91%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 78%, rgba(0,0,0,.58) 91%, transparent 100%);
}
.ecosystem-models--action ul {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 8px;
}
.ecosystem-models--action ul + ul { margin-top: 8px; }
.ecosystem-models--action li {
  flex: none;
  width: auto;
  min-width: 0;
  padding: 0 12px;
  font-size: 13px;
  justify-content: center;
  text-align: center;
}

/* Wider model chips: fewer than three fully visible per row, right-edge fade remains. */
.ecosystem-models {
  mask-image: linear-gradient(to right, #000 0%, #000 72%, rgba(0,0,0,.5) 89%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 72%, rgba(0,0,0,.5) 89%, transparent 100%);
}
.ecosystem-models ul { gap: 10px; }
.ecosystem-models li {
  height: 44px;
  padding: 0 16px;
  font-size: 14px;
  gap: 8px;
}
.model-ecosystem .ecosystem-models img {
  width: 23px;
  height: 23px;
}
.ecosystem-models--action li {
  padding: 0 16px;
  font-size: 14px;
}

/* Keep fewer than three complete model chips visible on every responsive width. */
.ecosystem-models li {
  min-width: max(112px, 34%);
}


/* VWA core links to the model introduction. */
a.ecosystem-core { text-decoration: none; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
a.ecosystem-core:hover { border-color: #8fb0d7; box-shadow: 0 0 0 9px #e7edf760, 0 12px 30px rgba(49, 79, 128, .10); transform: translateY(-2px); }
a.ecosystem-core:focus-visible { outline: 2px solid #2f6c85; outline-offset: 5px; }
