.am-map {
  --am-muted: #a0a0a0;
  --am-border: #343434;
  position: relative;
  container-type: inline-size;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  margin: auto;
  color: #eee;
  font-family: inherit;
}
#workflow-agents > .aspect-square { padding: 24px; align-items: center; }
.am-map-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 500; }
.am-preview { padding: 4px 8px; border: 1px solid var(--am-border); border-radius: 5px; color: var(--am-muted); font-size: 10px; font-weight: 400; }
.am-map-labels { display: flex; justify-content: space-between; margin: 27px 0 8px; color: var(--am-muted); font-size: 9px; letter-spacing: .09em; }
.am-map-labels > span { width: 30%; }
.am-network { position: relative; display: grid; grid-template-columns: 30% 24% 30%; column-gap: 8%; height: 294px; }
.am-connections { position: absolute; z-index: -1; width: 100%; height: 100%; overflow: visible; }
.am-wire, .am-signal { fill: none; stroke: #3c3c3c; stroke-width: 1; vector-effect: non-scaling-stroke; }
.am-signal { stroke: #e5e5e5; stroke-dasharray: 8 92; stroke-linecap: round; animation: am-data-flow 5s linear infinite; }
.am-signal-out { animation-delay: 2.5s; }
.am-platforms { display: grid; grid-template-rows: repeat(6, minmax(0, 1fr)); }
.am-node-row { display: flex; align-items: center; min-width: 0; }
.am-platform { display: flex; align-items: center; width: 100%; min-height: 38px; gap: 9px; padding: 9px 10px; background: linear-gradient(135deg, #202020, #131313); border: 1px solid var(--am-border); border-radius: 8px; font-size: 12px; line-height: 1.15; box-shadow: 0 3px 12px #0002; }
.am-platform img { flex: none; width: 18px; height: 18px; object-fit: contain; filter: invert(1); opacity: .88; }
.am-platform span { min-width: 0; }
.am-hub { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; }
.am-hub-core { z-index: 1; display: grid; place-items: center; width: 70px; height: 70px; max-width: 100%; aspect-ratio: 1; border: 1px solid #626262; border-radius: 20px; background: linear-gradient(145deg, #333, #121212 70%); box-shadow: 0 0 0 6px #ffffff03, 0 0 50px #ffffff0a, inset 0 1px 0 #ffffff16; }
.am-hub-core img { width: 34px; height: 34px; }
.am-hub-orbit { position: absolute; width: 106px; height: 106px; max-width: 132%; border: 1px solid #ffffff08; border-radius: 50%; }
.am-hub-name { position: absolute; top: calc(50% + 47px); text-align: center; font-size: 12px; line-height: 1.45; }
.am-hub-name span { display: block; }
.am-hub-name span + span { color: var(--am-muted); font-size: 10px; letter-spacing: .08em; }
.am-destinations { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); }
.am-destination { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding: 10px; border: 1px solid var(--am-border); border-radius: 9px; background: linear-gradient(135deg, #202020, #131313); box-shadow: 0 3px 12px #0002; }
.am-destination svg { width: 17px; height: 17px; color: #d4d4d4; }
.am-destination-name { font-size: 11px; line-height: 1.2; }
.am-destination-detail { color: var(--am-muted); font-size: 9px; line-height: 1.25; }
.am-map-footer { display: flex; align-items: center; gap: 7px; margin-top: 21px; padding-top: 13px; border-top: 1px solid #292929; color: var(--am-muted); font-size: 10px; }
.am-footer-dot { display: block; width: 4px; height: 4px; flex: none; border-radius: 50%; background: #8c8c8c; }
.am-detail-frame { padding: 34px; border: 1px solid #2b2b2b; border-radius: 16px; background: radial-gradient(ellipse at center, #ffffff04, transparent 65%), #0d0d0d; }
#media-connections .ap-section-head h2 { white-space: pre-line; }
.am-detail-frame .am-map { max-width: 760px; }
.am-detail-frame .am-network { height: 360px; }
.am-detail-frame .am-platform { min-height: 46px; font-size: 14px; padding: 12px 16px; gap: 13px; }
.am-detail-frame .am-platform img { width: 23px; height: 23px; }
.am-detail-frame .am-destination { padding: 16px; }
.am-detail-frame .am-destination-name { font-size: 14px; }
.am-detail-frame .am-destination-detail { font-size: 11px; }
.am-detail-frame .am-destination svg { width: 20px; height: 20px; }
.am-detail-frame .am-hub-core { width: 92px; height: 92px; border-radius: 25px; }
.am-detail-frame .am-hub-core img { width: 45px; height: 45px; }
.am-detail-frame .am-hub-orbit { width: 136px; height: 136px; }
.am-detail-frame .am-hub-name { top: calc(50% + 62px); font-size: 15px; }
.am-detail-frame .am-hub-name span + span { font-size: 11px; }
@container (max-width: 380px) {
  .am-map-caption { font-size: 12px; }
  .am-map-labels { margin-top: 22px; font-size: 8px; letter-spacing: .05em; }
  .am-network, .am-detail-frame .am-network { height: 252px; }
  .am-platform, .am-detail-frame .am-platform { min-height: 34px; font-size: 10px; padding: 7px; gap: 6px; }
  .am-platform img, .am-detail-frame .am-platform img { width: 16px; height: 16px; }
  .am-destination, .am-detail-frame .am-destination { padding: 8px; gap: 5px; }
  .am-destination-name, .am-detail-frame .am-destination-name { font-size: 10px; }
  .am-destination-detail { display: none; }
  .am-destination svg, .am-detail-frame .am-destination svg { width: 16px; height: 16px; }
  .am-hub-core, .am-detail-frame .am-hub-core { width: 54px; height: 54px; border-radius: 16px; }
  .am-hub-core img, .am-detail-frame .am-hub-core img { width: 27px; height: 27px; }
  .am-hub-orbit, .am-detail-frame .am-hub-orbit { width: 78px; height: 78px; }
  .am-hub-name, .am-detail-frame .am-hub-name { top: calc(50% + 39px); font-size: 11px; }
  .am-hub-name span + span, .am-detail-frame .am-hub-name span + span { font-size: 9px; }
  .am-map-footer { margin-top: 18px; font-size: 9px; }
}
@media (max-width: 639px) {
  #workflow-agents > .aspect-square { aspect-ratio: auto; padding: 20px 16px; }
  .am-detail-frame { padding: 22px 14px; }
}
@keyframes am-data-flow { from { stroke-dashoffset: 100; opacity: 0; } 12%, 82% { opacity: .85; } to { stroke-dashoffset: 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .am-signal { animation: none; stroke-dasharray: none; opacity: .3; } }
