#agents .maf-body { grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr); }
#agents .maf-flow { min-height: 476px; }
#agents .maf-flow {
  --maf-nw: 206px; --maf-hw: 226px; --maf-l: 22px; --maf-rr: 254px;
  --maf-r: calc(100% - var(--maf-rr)); --maf-m: calc((var(--maf-l) + var(--maf-nw) + 100% - var(--maf-rr)) / 2);
}
@media (max-width: 1320px) { #agents .maf-flow { --maf-nw: 196px; --maf-hw: 206px; --maf-rr: 234px; } }
@media (min-width: 768px) and (max-width: 900px) {
  #agents .maf-flow { --maf-nw: 180px; --maf-hw: 188px; --maf-rr: 204px; }
  #agents .maf-node, #agents .maf-end { padding: 9px 13px 9px 10px; column-gap: 10px; }
  #agents .maf-av, #agents .maf-end-i { width: 22px; height: 22px; }
  #agents .maf-av::after { inset: 7.5px; }
  #agents .maf-name, #agents .maf-hub .maf-name { font-size: 13.5px; }
  #agents .maf-role { font-size: 12px; }
}
#agents .maf-node, #agents .maf-end { width: var(--maf-nw); min-width: 0; }
#agents .maf-hub { width: var(--maf-hw); }
#agents .maf-name, #agents .maf-role { overflow: hidden; text-overflow: ellipsis; }
#agents .maf-links path { stroke-width: 1.2; }
#agents .maf-links path.is-on { stroke-width: 1.75; }
#agents .maf.has-sel .maf-links path:not(.is-on) { opacity: .26; }
#agents .maf.has-sel .maf-node:not(.is-rel), #agents .maf.has-sel .maf-end:not(.is-rel) { opacity: .42; box-shadow: inset 0 0 0 1px var(--cs-edge-1); }
#agents .maf.has-sel .maf-node.is-rel:not([aria-selected="true"]) { box-shadow: var(--cs-hi-1), inset 0 0 0 1px var(--cs-edge-3), var(--cs-sh-1); }

#agents .maf-panel { justify-content: flex-start; padding: 26px 28px 24px; }
#agents .maf-h { margin: 0 0 22px; }
#agents .maf-k { margin: 0 0 9px; }
#agents .maf-d { margin: 0 0 24px; font-size: 15px; color: var(--cs-ink); }
#agents .maf-with { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; }
#agents .maf-with .maf-chip { padding: 0 11px 0 8px; height: 28px; }
#agents .maf-with .maf-chip::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%; flex: none;
  background: var(--cs-well); box-shadow: inset 0 0 0 1px var(--cs-edge-4);
}
#agents .maf-with .maf-end-chip::before { background: transparent; box-shadow: none; border: 1px dashed var(--cs-edge-4); width: 10px; height: 10px; }
#agents .maf-steps { margin: 0; }
#agents .maf-steps li { padding: 7px 0 7px 24px; font-size: 14.5px; }
#agents .maf-steps li::before { top: 13px; }
#agents .maf-steps::before { top: 16px; bottom: 16px; }

#agents .maf.maf-motion:not(.is-in) .maf-win { opacity: 0; transform: translateY(12px); }
#agents .maf.maf-motion.is-in .maf-win { transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1); }
#agents .maf.maf-motion.is-in .maf-node, #agents .maf.maf-motion.is-in .maf-end {
  transition: opacity .5s cubic-bezier(.22,1,.36,1) calc(.25s + var(--i, 0) * 60ms), transform .5s cubic-bezier(.22,1,.36,1) calc(.25s + var(--i, 0) * 60ms), box-shadow .3s, background-color .3s;
}
#agents .maf.maf-motion.is-in .maf-links path { transition: stroke-dashoffset .75s cubic-bezier(.22,1,.36,1) .7s, stroke .4s, stroke-width .4s, opacity .4s; }
#agents .maf.maf-motion.is-in.is-done .maf-node, #agents .maf.maf-motion.is-in.is-done .maf-end { transition: opacity .4s cubic-bezier(.22,1,.36,1), box-shadow .3s, background-color .3s; }

@media (max-width: 1180px) {
  #agents .maf-body { grid-template-columns: minmax(0, 1fr); }
  #agents .maf-flow { min-height: 440px; }
}
@media (max-width: 767px) {
  #agents .maf-flow { min-height: 0; }
  #agents .maf-node, #agents .maf-hub { width: auto; }
  #agents .maf-panel { padding: 22px 18px 20px; }
  #agents .maf-h { margin-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { #agents .maf-win { transition: none !important; } }

@keyframes cs491-step {
  0%   { opacity: 0;   transform: translate3d(var(--x, 0px), calc(var(--fy, 0px) + 6px), 0); }
  24%  { opacity: .82; transform: translate3d(var(--x, 0px), var(--fy, 0px), 0); }
  58%  { opacity: .82; transform: translate3d(var(--x, 0px), var(--fy, 0px), 0); }
  100% { opacity: 1;   transform: none; }
}
@keyframes cs491-src  { 0% { opacity: 0; } 22% { opacity: 1; } 56% { opacity: 1; } 76%, 100% { opacity: 0; } }
@keyframes cs491-chip { 0%, 64% { opacity: 0; } 100% { opacity: 1; } }
html.cs-motion #the-problem .cs-record.is-in .cs-step.cs-mo { animation: cs491-step 1.3s cubic-bezier(.22,1,.36,1) var(--d) both; }
html.cs-motion #the-problem .cs-record.is-in .cs-step .cs-agent { animation: cs491-chip 1.3s ease var(--d) both; }
html.cs-motion #the-problem .cs-record.is-in .cs-step .cs-src { animation: cs491-src 1.3s ease var(--d) both; }
html.cs-motion #the-problem .cs-record.is-in .cs-seq::before { transition: transform .5s cubic-bezier(.22,1,.36,1) 1.55s; }
html.cs-motion #the-problem .cs-record.is-in .cs-rec-out .cs-mo { transition: opacity .5s cubic-bezier(.22,1,.36,1) var(--d, 0s), transform .5s cubic-bezier(.22,1,.36,1) var(--d, 0s); }
html.cs-motion #the-problem .cs-record:not(.is-in) .cs-rec-out h3.cs-mo { transform: translateY(8px); }

#capabilities .scu {
  --scu-warn: #E2A65E; --scu-warn-bg: rgba(226, 166, 94, .1); --scu-warn-edge: rgba(226, 166, 94, .32);
  display: flex; align-items: center; justify-content: center; box-sizing: border-box; padding: 24px 24px 6px;
  font-family: var(--sans, "Inter", system-ui, sans-serif); color: var(--cs-ink);
}
html[data-hero-theme="light"] #capabilities .scu { --scu-warn: #8A5313; --scu-warn-bg: #FBF1E4; --scu-warn-edge: rgba(138, 83, 19, .26); }
#capabilities .sc-wide .scu { padding: 28px 28px 28px 26px; }
#capabilities .scu p { margin: 0; }
.scu-win {
  position: relative; min-width: 0; padding: 12px 14px 13px; border-radius: 11px; font-size: 12.5px; line-height: 1.3;
  background: var(--cs-hero); box-shadow: var(--cs-hi-1), inset 0 0 0 1px var(--cs-edge-3), var(--cs-sh-2);
}
#capabilities .scu .scu-k { margin: 0 0 9px; font: 500 9.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cs-muted); }
.scu-bar { display: block; width: var(--w); height: 6px; margin: 8px 0; border-radius: 3px; background: var(--cs-edge-2); }
.scu-quiet { background: transparent; box-shadow: inset 0 0 0 1px var(--cs-edge-2); }
.scu-quiet .scu-bar { background: var(--cs-edge-1); box-shadow: inset 0 0 0 1px var(--cs-edge-1); }
.scu-pair { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 12px; align-items: center; width: 100%; max-width: 400px; }
.scu-steps { position: relative; margin: 0; padding: 0; list-style: none; }
.scu-steps::before { content: ""; position: absolute; left: 3.5px; top: 11px; bottom: 11px; width: 1px; background: var(--cs-edge-3); }
.scu-steps li { position: relative; padding: 5px 0 5px 18px; white-space: nowrap; }
.scu-steps li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 2.5px;
  background: var(--cs-well); box-shadow: inset 0 0 0 1.25px var(--cs-edge-4);
}
.scu-steps li:last-child::before { background: var(--cs-accent); box-shadow: none; }
.scu-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; margin-top: 11px; padding: 0 8px; border-radius: 6px;
  font-size: 11.5px; color: var(--cs-ink-2); box-shadow: inset 0 0 0 1px var(--cs-edge-2); white-space: nowrap;
}
.scu-chip svg, .scu-ok svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.scu-good { color: var(--cs-proof-ink); background: var(--cs-proof-bg); box-shadow: inset 0 0 0 1px var(--cs-proof-edge); }
.scu-warn { color: var(--scu-warn); background: var(--scu-warn-bg); box-shadow: inset 0 0 0 1px var(--scu-warn-edge); }

.scu-wide { width: 100%; max-width: 330px; }
.scu-tl li { display: flex; align-items: center; gap: 10px; padding-top: 6px; padding-bottom: 6px; }
.scu-src {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 54px; height: 19px; border-radius: 5px;
  font: 500 9px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cs-muted); box-shadow: inset 0 0 0 1px var(--cs-edge-2);
}

.scu-flow { display: grid; grid-template-columns: minmax(0, .85fr) auto minmax(0, 1.25fr); align-items: center; gap: 12px; width: 100%; max-width: 372px; }
.scu-raw { padding: 4px 0; }
.scu-raw .scu-bar { height: 4px; margin: 7px 0; background: var(--cs-edge-3); }
.scu-arrow svg { display: block; width: 16px; height: 16px; fill: none; stroke: var(--cs-muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.scu-by li { padding-top: 4px; padding-bottom: 4px; }
.scu-by li::before { top: 10px; margin-top: 0; }
.scu-by::before { top: 12px; bottom: 26px; }
.scu-by em { display: block; margin-top: 2px; font-style: normal; font-size: 11px; color: var(--cs-muted); }

.scu-chain { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 360px; }
.scu-links { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.scu-links li {
  position: relative; display: inline-flex; align-items: center; height: 27px; padding: 0 11px; border-radius: 7px; white-space: nowrap;
  font-size: 12px; color: var(--cs-ink-2); background: var(--cs-hero); box-shadow: var(--cs-hi-1), inset 0 0 0 1px var(--cs-edge-3);
}
.scu-links li + li::before { content: ""; position: absolute; right: 100%; top: 50%; width: 20px; height: 1px; background: var(--cs-edge-4); }
.scu-drop { width: 1px; height: 20px; background: var(--cs-edge-4); }
.scu-outcome { padding: 11px 18px 12px; text-align: center; box-shadow: var(--cs-hi-1), inset 0 0 0 1px var(--cs-proof-edge), var(--cs-sh-2); }
#capabilities .scu .scu-outcome .scu-k { margin-bottom: 7px; }
.scu-res { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.scu-ok { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: var(--cs-proof-ink); background: var(--cs-proof-bg); box-shadow: inset 0 0 0 1px var(--cs-proof-edge); }

.scu-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 372px; }
.scu-dl { margin: 0; }
.scu-dl div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 12px; }
.scu-dl dt { color: var(--cs-muted); }
.scu-dl dd { margin: 0; color: var(--cs-ink); font-weight: 500; }
.scu-dl .scu-changed { margin: 0 -6px; padding: 4px 6px; border-radius: 5px; background: var(--scu-warn-bg); }
.scu-dl .scu-changed dd { color: var(--scu-warn); }

@media (max-width: 1100px) {
  #capabilities .sc-wide .scu { padding: 24px 24px 6px; }
}
@media (max-width: 420px) {
  .scu-two { gap: 8px; }
  .scu-two .scu-win { padding: 10px 10px 11px; }
  .scu-dl div { font-size: 11.5px; }
  .scu-dl dt { white-space: nowrap; }
  .scu-links { gap: 14px; }
  .scu-links li + li::before { width: 14px; }
  .scu-links li { padding: 0 8px; font-size: 11.5px; }
}

html[data-hero-theme="light"] #agents .maf.has-sel .maf-node:not(.is-rel), html[data-hero-theme="light"] #agents .maf.has-sel .maf-end:not(.is-rel) { opacity: .58; box-shadow: inset 0 0 0 1px var(--cs-edge-2); }
html[data-hero-theme="light"] #agents .maf.has-sel .maf-links path:not(.is-on) { opacity: .42; }
