.atlas-chain-section {
  scroll-margin-top: 76px;
  background: #f4f7fb;
}

.atlas-chain-principle {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 22px;
  padding: 18px 20px;
  border-left: 4px solid var(--atlas-blue);
  background: #eaf2ff;
  line-height: 1.55;
}

.atlas-chain-principle strong {
  color: var(--atlas-blue);
}

.atlas-chain-country-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  scroll-margin-top: 88px;
  margin: 0 0 10px;
  border: 1px solid var(--atlas-ink);
  background: var(--atlas-ink);
}

.atlas-chain-country-switch button {
  display: grid;
  gap: 6px;
  min-width: 0;
  min-height: 132px;
  padding: 17px 18px;
  border: 0;
  background: #fff;
  color: var(--atlas-ink);
  cursor: pointer;
  text-align: left;
}

.atlas-chain-country-switch button[aria-pressed="true"] {
  background: var(--atlas-ink);
  color: #fff;
  box-shadow: inset 0 -4px 0 #fff;
}

.atlas-chain-country-switch span {
  color: var(--atlas-blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.atlas-chain-country-switch button[aria-pressed="true"] span,
.atlas-chain-country-switch button[aria-pressed="true"] small {
  color: #c9d3e1;
}

.atlas-chain-country-switch strong {
  font-size: 21px;
  line-height: 1.15;
}

.atlas-chain-country-switch small {
  color: var(--atlas-muted);
  font-size: 12px;
  line-height: 1.45;
}

.atlas-chain-country-status {
  margin: 0 0 22px;
  padding: 10px 12px;
  border-left: 3px solid var(--atlas-ink);
  background: #fff;
  color: var(--atlas-muted);
  font-size: 13px;
  line-height: 1.5;
}

.atlas-chain-section[data-country-focus="china"] .atlas-product-path-summary,
.atlas-chain-section[data-country-focus="us"] .atlas-product-path-summary {
  grid-template-columns: 1fr;
}

.atlas-selected-path {
  min-width: 0;
  margin: 22px 0 30px;
  padding: 22px;
  border: 1px solid var(--atlas-ink);
  background: #fff;
}

.atlas-selected-path__head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.atlas-selected-path__head h3,
.atlas-chain-browser-intro h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.025em;
}

.atlas-selected-path__head > p,
.atlas-chain-browser-intro > p:last-child {
  margin: 0;
  color: var(--atlas-muted);
  line-height: 1.55;
}

.atlas-chain-product-pickers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 18px;
  padding: 18px;
  border: 1px solid var(--atlas-line);
  background: #f8fafc;
}

.atlas-chain-product-pickers label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.atlas-chain-product-pickers label > span {
  color: var(--atlas-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.atlas-chain-product-pickers select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 38px 11px 13px;
  border: 1px solid #aeb7c7;
  border-radius: 0;
  background: #fff;
  color: var(--atlas-ink);
  font: inherit;
  font-weight: 700;
}

.atlas-chain-section[data-country-focus="china"] [data-chain-picker-country="us"],
.atlas-chain-section[data-country-focus="us"] [data-chain-picker-country="china"] {
  display: none;
}

.atlas-chain-section[data-country-focus="china"] .atlas-chain-product-pickers,
.atlas-chain-section[data-country-focus="us"] .atlas-chain-product-pickers {
  grid-template-columns: 1fr;
}

.atlas-product-path-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.atlas-product-path-legend span,
.atlas-product-path-detail header > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid #606977;
  background: #fff;
  color: var(--atlas-ink);
  font-size: 11px;
  line-height: 1.2;
}

.atlas-product-path-legend i,
.atlas-product-path-detail header > span i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-style: normal;
  font-weight: 900;
}

.atlas-product-path-legend [data-path-state="partial"],
.atlas-product-path-detail header > [data-path-state="partial"] { border-style: double; }
.atlas-product-path-legend [data-path-state="unknown"],
.atlas-product-path-detail header > [data-path-state="unknown"] { border-style: dotted; }
.atlas-product-path-legend [data-path-state="not_applicable"],
.atlas-product-path-detail header > [data-path-state="not_applicable"] { border-style: dashed; color: var(--atlas-muted); }

.atlas-product-path-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 12px;
  border: 1px solid var(--atlas-line);
  background: var(--atlas-line);
}

.atlas-product-path-summary > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  min-width: 0;
  padding: 13px 14px;
  background: #f8fafc;
}

.atlas-product-path-summary span {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--atlas-ink);
  font-size: 10px;
  font-weight: 900;
}

.atlas-product-path-summary strong {
  overflow-wrap: anywhere;
}

.atlas-product-path-summary p {
  margin: 0;
  color: var(--atlas-muted);
  font-size: 12px;
}

.atlas-product-path-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.atlas-product-path-phase {
  min-width: 0;
  border-top: 3px solid var(--atlas-ink);
}

.atlas-product-path-phase > header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-height: 86px;
  padding: 10px 8px;
  background: #f8fafc;
}

.atlas-product-path-phase > header > span {
  color: var(--atlas-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
}

.atlas-product-path-phase > header div { display: grid; gap: 4px; }
.atlas-product-path-phase > header strong { font-size: 14px; line-height: 1.25; }
.atlas-product-path-phase > header small { color: var(--atlas-muted); font-size: 11px; line-height: 1.35; }

.atlas-product-path-phase > ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.atlas-product-path-stage {
  min-width: 0;
  border: 1px solid var(--atlas-line);
  background: #fff;
}

.atlas-product-path-stage > header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  min-height: 50px;
  padding: 8px;
  border-bottom: 1px solid var(--atlas-line);
  background: #f8fafc;
}

.atlas-product-path-stage > header span { color: var(--atlas-muted); font-size: 11px; font-weight: 900; letter-spacing: .06em; }
.atlas-product-path-stage > header strong {
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.atlas-product-path-stage > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 7px;
}

.atlas-product-path-grid button {
  display: grid;
  gap: 5px;
  align-content: start;
  min-width: 0;
  min-height: 82px;
  padding: 8px;
  border: 1px solid #7d8795;
  background: #fff;
  color: var(--atlas-ink);
  cursor: pointer;
  text-align: left;
}

.atlas-product-path-grid button[data-path-state="partial"] { border-style: double; }
.atlas-product-path-grid button[data-path-state="unknown"] { border-style: dotted; }
.atlas-product-path-grid button[data-path-state="not_applicable"] { border-style: dashed; color: var(--atlas-muted); }
.atlas-product-path-grid button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--atlas-ink); outline: 2px solid #fff; outline-offset: -4px; }
.atlas-product-path-grid button:focus-visible { outline: 3px solid var(--atlas-ink); outline-offset: 2px; }

.atlas-product-path-fact {
  display: flex;
  align-items: center;
  gap: 6px;
}

.atlas-product-path-fact i {
  display: grid;
  place-items: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-style: normal;
  font-weight: 900;
}

.atlas-product-path-country {
  color: var(--atlas-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.atlas-product-path-fact strong {
  min-width: 0;
  font-size: 11px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.atlas-product-path-grid button small { color: var(--atlas-muted); font-size: 11px; line-height: 1.3; }

.atlas-product-path-detail {
  min-width: 0;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--atlas-line);
  background: #f8fafc;
}

.atlas-product-path-detail > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.atlas-product-path-detail header p {
  margin: 0 0 3px;
  color: var(--atlas-muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.atlas-product-path-detail h4 {
  margin: 0;
  font-size: 22px;
}

.atlas-product-path-detail__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 13px;
}

.atlas-product-path-detail__body p,
.atlas-product-path-boundary p {
  margin: 0;
  color: var(--atlas-muted);
  font-size: 13px;
  line-height: 1.5;
}

.atlas-product-path-boundary {
  display: grid;
  gap: 6px;
  margin: 13px 0;
  padding: 12px;
  border-left: 3px dotted #6c7480;
  background: #fff;
}

.atlas-chain-browser-intro {
  margin: 34px 0 16px;
  padding-top: 26px;
  border-top: 2px solid var(--atlas-ink);
}

.atlas-chain-browser-intro > p:last-child {
  max-width: 760px;
  margin-top: 8px;
}


.atlas-chain-asymmetry {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  margin: 12px 0 22px;
  padding: 18px 20px;
  border: 1px solid #d9c79e;
  background: #fff9eb;
}

.atlas-chain-asymmetry strong {
  color: var(--atlas-amber);
}

.atlas-chain-asymmetry p {
  margin: 0;
  color: var(--atlas-muted);
  line-height: 1.55;
}

.atlas-chain-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
  border: 1px solid var(--atlas-line);
  background: var(--atlas-line);
  gap: 1px;
}

.atlas-chain-summary div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 18px;
  background: #fff;
}

.atlas-chain-summary strong {
  font-size: 30px;
  letter-spacing: -.04em;
}

.atlas-chain-summary span {
  color: var(--atlas-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.atlas-chain-view-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
  border: 1px solid var(--atlas-ink);
}

.atlas-chain-view-switch button {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 16px 18px;
  border: 0;
  background: #fff;
  color: var(--atlas-ink);
  cursor: pointer;
  text-align: left;
}

.atlas-chain-view-switch button + button {
  border-left: 1px solid var(--atlas-ink);
}

.atlas-chain-view-switch button[aria-pressed="true"] {
  background: var(--atlas-ink);
  color: #fff;
}

.atlas-chain-view-switch strong {
  font-size: 20px;
}

.atlas-chain-view-switch span {
  color: var(--atlas-muted);
  line-height: 1.4;
}

.atlas-chain-view-switch button[aria-pressed="true"] span {
  color: #c9d3e1;
}

.atlas-conceptual-note {
  margin: 0 0 14px;
  color: var(--atlas-muted);
  font-size: 13px;
  line-height: 1.55;
}

.atlas-conceptual-note strong {
  color: var(--atlas-ink);
}

.atlas-chain-legend {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 14px;
  border: 1px solid var(--atlas-line);
  background: var(--atlas-line);
}

.atlas-chain-legend span {
  padding: 10px;
  background: #fff;
  color: var(--atlas-muted);
  font-size: 11px;
  line-height: 1.4;
}

.atlas-chain-legend strong {
  display: block;
  margin-bottom: 4px;
  color: var(--atlas-ink);
}

.atlas-chain-graph {
  border: 1px solid var(--atlas-line);
  background: #fff;
}

.atlas-chain-stages {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--atlas-line);
  list-style: none;
}

.atlas-chain-stages li {
  position: relative;
  min-width: 0;
}

.atlas-chain-stages li + li {
  border-left: 1px solid var(--atlas-line);
}

.atlas-chain-stages li:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 29px;
  right: -6px;
  width: 11px;
  height: 11px;
  border-top: 1px solid #8e99aa;
  border-right: 1px solid #8e99aa;
  background: #fff;
  content: "";
  transform: rotate(45deg);
}

.atlas-chain-stages button {
  display: grid;
  align-content: start;
  gap: 5px;
  width: 100%;
  min-height: 142px;
  padding: 14px;
  border: 0;
  background: #fff;
  color: var(--atlas-ink);
  cursor: pointer;
  text-align: left;
}

.atlas-chain-stages button[aria-pressed="true"] {
  background: #edf4ff;
  box-shadow: inset 0 -4px 0 var(--atlas-blue);
}

.atlas-chain-stages button > span {
  color: var(--atlas-blue);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
}

.atlas-chain-stages strong {
  line-height: 1.25;
}

.atlas-chain-stages small {
  color: var(--atlas-muted);
  line-height: 1.35;
}

.atlas-chain-stages em {
  margin-top: auto;
  color: var(--atlas-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.atlas-chain-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(240px, .85fr);
  gap: 16px 20px;
  align-items: end;
  padding: 20px;
  border-bottom: 1px solid var(--atlas-line);
  background: #f8fafc;
}

.atlas-chain-toolbar label {
  display: grid;
  gap: 7px;
  color: var(--atlas-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.atlas-chain-toolbar input,
.atlas-chain-toolbar select {
  width: 100%;
  min-height: 48px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #aeb7c7;
  background: #fff;
  color: var(--atlas-ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
}

.atlas-chain-toolbar p {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--atlas-line);
  color: var(--atlas-muted);
  font-size: 13px;
  line-height: 1.45;
}

.atlas-chain-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 32%);
  align-items: start;
  min-width: 0;
}

.atlas-chain-lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  min-width: 0;
  background: var(--atlas-line);
  border-right: 1px solid var(--atlas-line);
}

.atlas-chain-section[data-country-focus="china"] .atlas-chain-lanes,
.atlas-chain-section[data-country-focus="us"] .atlas-chain-lanes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.atlas-chain-section[data-country-focus="compare"] .atlas-chain-lanes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.atlas-chain-lane {
  min-width: 0;
  padding: 20px;
  background: #fff;
}

.atlas-chain-lane + .atlas-chain-lane {
  border-left: 0;
}

.atlas-chain-lane > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  gap: 12px;
  min-height: 88px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--atlas-ink);
}

.atlas-chain-lane > header > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.atlas-chain-lane > header span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  font-size: 10px;
  font-weight: 900;
}

.atlas-chain-lane > header h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.atlas-chain-lane > header small {
  display: block;
  margin-top: 2px;
  color: var(--atlas-muted);
  font-size: 10px;
  line-height: 1.35;
}

.atlas-chain-lane > header > .atlas-chain-lane-total {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 4px;
  padding-left: 0;
}

.atlas-chain-lane > header > .atlas-chain-lane-total strong {
  font-size: 21px;
  line-height: 1;
}

.atlas-chain-lane > header > .atlas-chain-lane-total small {
  margin: 0;
  max-width: 62px;
  text-align: right;
}

.atlas-chain-lane--china > header,
.atlas-chain-lane--us > header,
.atlas-chain-lane--global > header { border-bottom-color: #747e8e; }
.atlas-chain-lane--china > header span,
.atlas-chain-lane--us > header span,
.atlas-chain-lane--global > header span { color: #596273; }
.atlas-chain-lane--unresolved > header { border-bottom-style: dotted; border-bottom-color: #747e8e; }
.atlas-chain-lane--unresolved > header span { color: #596273; border-style: dotted; }

.atlas-chain-nodes {
  display: grid;
  gap: 10px;
  max-height: min(720px, 70vh);
  min-width: 0;
  padding-right: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.atlas-chain-node {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: start;
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid #c4ccd8;
  background: #fff;
  color: var(--atlas-ink);
  cursor: pointer;
  text-align: left;
}

.atlas-chain-node:hover,
.atlas-chain-node.is-selected {
  border-color: var(--atlas-blue);
  box-shadow: inset 4px 0 0 var(--atlas-blue);
  outline: none;
}

.atlas-chain-node:focus-visible {
  border-color: var(--atlas-blue);
  outline: 3px solid rgba(7, 94, 232, .28);
  outline-offset: 2px;
}

.atlas-chain-node > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.atlas-chain-node strong {
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.3;
}

.atlas-chain-node small {
  color: var(--atlas-muted);
  line-height: 1.35;
}

.atlas-chain-evidence {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: max-content;
  max-width: 100%;
  padding: 3px 5px;
  border: 1px solid currentColor;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .04em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.atlas-chain-evidence--official { color: var(--atlas-blue); }
.atlas-chain-evidence--independent { color: var(--atlas-green); }
.atlas-chain-evidence--corroborated { color: #336b78; border-style: double; }
.atlas-chain-evidence--reported { color: var(--atlas-amber); border-style: dashed; }
.atlas-chain-evidence--derived { color: #6e42a1; border-style: dash-dot; }
.atlas-chain-evidence--unknown { color: #6c7480; border-style: dotted; }

.atlas-chain-empty {
  margin: 0;
  padding: 12px;
  border: 1px dotted #9099a8;
  color: var(--atlas-muted);
  font-size: 13px;
  line-height: 1.45;
}

.atlas-chain-detail {
  position: sticky;
  top: 16px;
  align-self: start;
  max-height: calc(100vh - 32px);
  min-width: 0;
  padding: 24px;
  background: #f8fafc;
  overflow: auto;
}

.atlas-chain-detail h3 {
  margin: 0 0 10px;
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

.atlas-chain-detail > p {
  color: var(--atlas-muted);
  line-height: 1.55;
}

.atlas-chain-detail-list {
  display: grid;
  margin: 18px 0;
  border-top: 1px solid var(--atlas-line);
}

.atlas-chain-detail-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--atlas-line);
}

.atlas-chain-detail-list dt {
  color: var(--atlas-muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.atlas-chain-detail-list dd {
  min-width: 0;
  margin: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.atlas-chain-detail a { overflow-wrap: anywhere; }

.atlas-chain-detail-boundary,
.atlas-chain-no-relations {
  padding: 12px;
  border-left: 3px solid var(--atlas-amber);
  background: #fff7e8;
  font-size: 13px;
  line-height: 1.5;
}

.atlas-chain-detail-boundary p,
.atlas-chain-no-relations {
  margin: 5px 0 0;
}

.atlas-chain-detail h4 {
  margin: 20px 0 10px;
}

.atlas-chain-relations {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.atlas-chain-relation {
  padding: 11px;
  border: 1px solid var(--atlas-line);
  border-left: 3px solid var(--atlas-blue);
  background: #fff;
}

.atlas-chain-relation--reported { border-left-style: dashed; border-left-color: var(--atlas-amber); }
.atlas-chain-relation--derived { border-left-style: dashed; border-left-color: #6e42a1; }
.atlas-chain-relation--unknown { border-left-style: dotted; border-left-color: #6c7480; }
.atlas-chain-relation--independent { border-left-color: var(--atlas-green); }
.atlas-chain-relation--corroborated { border-left-style: double; border-left-color: #336b78; }

.atlas-chain-relation > div:first-child {
  display: grid;
  gap: 3px;
  margin-bottom: 7px;
}

.atlas-chain-relation > div:first-child span {
  color: var(--atlas-muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.atlas-chain-relation p {
  margin: 7px 0 0;
  color: var(--atlas-muted);
  font-size: 12px;
  line-height: 1.45;
}

.atlas-chain-source-links,
.atlas-chain-entity-sources {
  display: grid;
  gap: 5px;
  margin-top: 9px;
}

.atlas-chain-source-card {
  display: grid;
  gap: 5px;
  padding: 9px 0;
  border-bottom: 1px solid var(--atlas-line);
}

.atlas-chain-source-card:last-child {
  border-bottom: 0;
}

.atlas-chain-source-card p {
  margin: 0;
  color: var(--atlas-muted);
  font-size: 12px;
  line-height: 1.45;
}

.atlas-chain-source-links a,
.atlas-chain-entity-sources a {
  color: var(--atlas-blue);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.atlas-chain-entity-sources {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--atlas-line);
}

.atlas-chain-boundary {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid var(--atlas-line);
  background: #fff;
}

.atlas-chain-boundary strong {
  color: var(--atlas-blue);
}

.atlas-chain-boundary p {
  margin: 0;
  color: var(--atlas-muted);
  line-height: 1.55;
}

@media (max-width: 1150px) {
  .atlas-chain-workspace { grid-template-columns: minmax(0, 1fr); }
  .atlas-chain-lanes { grid-row: 1; border-right: 0; }
  .atlas-chain-detail {
    position: static;
    grid-row: 2;
    max-height: none;
    border-top: 1px solid var(--atlas-line);
    overflow: visible;
  }
}

@media (max-width: 1050px) {
  .atlas-product-path-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .atlas-chain-stages { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .atlas-chain-stages li { border-bottom: 1px solid var(--atlas-line); }
  .atlas-chain-stages li::after { display: none; }
  .atlas-chain-workspace { grid-template-columns: 1fr; }
  .atlas-chain-lanes,
  .atlas-chain-section[data-country-focus="china"] .atlas-chain-lanes,
  .atlas-chain-section[data-country-focus="us"] .atlas-chain-lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); border-right: 0; border-bottom: 1px solid var(--atlas-line); }
}

@media (max-width: 760px) {
  .atlas-selected-path__head,
  .atlas-product-path-detail__body,
  .atlas-chain-product-pickers { grid-template-columns: 1fr; }
  .atlas-product-path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atlas-chain-summary,
  .atlas-chain-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atlas-chain-view-switch,
  .atlas-chain-country-switch,
  .atlas-chain-toolbar,
  .atlas-chain-lanes,
  .atlas-chain-principle,
  .atlas-chain-boundary,
  .atlas-chain-asymmetry { grid-template-columns: 1fr; }
  .atlas-chain-section[data-country-focus="china"] .atlas-chain-lanes,
  .atlas-chain-section[data-country-focus="compare"] .atlas-chain-lanes,
  .atlas-chain-section[data-country-focus="us"] .atlas-chain-lanes {
    grid-template-columns: minmax(0, 1fr);
  }
  .atlas-chain-view-switch button + button,
  .atlas-chain-lane + .atlas-chain-lane { border-left: 0; }
  .atlas-chain-toolbar { align-items: start; }
  .atlas-chain-toolbar p { grid-column: auto; }
  .atlas-chain-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atlas-chain-stages button { min-height: 122px; }
  .atlas-chain-lane { padding: 14px; }
  .atlas-chain-lane > header { min-height: 0; }
  .atlas-chain-nodes {
    max-height: min(560px, 65vh);
    padding-right: 6px;
    overflow-y: auto;
  }
  .atlas-chain-detail { padding: 18px; }
}

@media (max-width: 460px) {
  .atlas-selected-path { padding: 14px; }
  .atlas-product-path-summary,
  .atlas-product-path-grid { grid-template-columns: 1fr; }
  .atlas-chain-summary,
  .atlas-chain-stages,
  .atlas-chain-legend { grid-template-columns: 1fr; }
  .atlas-chain-stages button { min-height: 0; }
  .atlas-chain-detail-list div { grid-template-columns: 1fr; gap: 4px; }
  .atlas-chain-node { grid-template-columns: 1fr; }
}
