#overview-operations {
  display: block;
}
.flow-intro {
  margin: 0 auto clamp(22px, 3.2vw, 42px);
  text-align: center;
}
.flow-intro h2 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 65px);
  line-height: 1.1;
  letter-spacing: -.06em;
}
.flow-summary {
  margin: 18px auto 0;
  color: #565361;
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.7;
}
.flow-summary span { display: block; }
.automation-flow {
  border: 1px solid #ded9ed;
  border-radius: clamp(20px, 2.6vw, 32px);
  background: #fff;
  overflow: clip;
}
.flow-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 9px;
  border-bottom: 1px solid #e3dfee;
  background: #f7f6fa;
}
.flow-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 8px;
  border-radius: 14px;
  color: #55515e;
  text-decoration: none;
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 700;
}
.flow-index {
  font-size: .76em;
  font-variant-numeric: tabular-nums;
  color: #746b87;
}
.flow-tab:hover { background: #efecf6; }
.flow-tab[aria-selected=true] { background: #35295b; color: #fff; }
.flow-tab[aria-selected=true] .flow-index { color: #d6cbfa; }
.flow-tab:focus-visible { outline-offset: -3px; outline-color: #a487ff; }
.flow-panel {
  padding: clamp(20px, 3vw, 40px) clamp(18px, 3.3vw, 48px) 0;
}
.flow-panel h3 { margin: 0 0 14px; font-size: clamp(21px, 2.15vw, 31px); line-height: 1.3; letter-spacing: -.04em; }
.flow-canvas {
  position: relative;
  isolation: isolate;
  border: 1px solid #e7e2f2;
  border-radius: 18px;
  background: radial-gradient(circle at 1px 1px, #d9d2eb 1px, transparent 1.1px) 0 0/16px 16px,
    linear-gradient(115deg, #fbfaff, #f3f0fb);
}
.flow-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.flow-wire { fill: none; stroke: #a493ca; stroke-width: 1.6; }
.flow-arrow { fill: #917fb7; }
.flow-nodes {
  display: grid;
  position: relative;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  gap: 16px clamp(20px, 2.2vw, 36px);
  margin: 0;
  padding: clamp(30px, 3.5vw, 55px) clamp(18px, 2.2vw, 34px);
  list-style: none;
}
.flow-node {
  grid-column: var(--col);
  grid-row: var(--row);
  align-self: center;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
  padding: clamp(12px, 1.5vw, 20px);
  min-width: 0;
  background: #fff;
  border: 1px solid #dcd5e9;
  border-radius: 14px;
  box-shadow: 0 3px 9px #42305208;
}
.flow-symbol {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  flex: none;
  border-radius: 11px;
  color: #6349aa;
  background: #eee9fa;
}
.flow-symbol svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flow-words { display: grid; gap: 3px; min-width: 0; }
.flow-node small { font-size: 14px; line-height: 1.4; color: #655f73; }
.flow-node b { font-size: clamp(16px, 1.6vw, 21px); line-height: 1.3; letter-spacing: -.045em; color: #30283f; }
.flow-node.accent { background: #504080; border-color: #504080; }
.flow-node.accent b { color: white; }
.flow-node.accent small { color: #e3daf6; }
.flow-node.accent .flow-symbol { background: #695894; color: white; }
.flow-node.good .flow-symbol { background: #e3f1e9; color: #287052; }
.flow-node.hold .flow-symbol { background: #fff0d9; color: #885a1d; }
.branching .flow-node { flex-direction: row; align-items: center; }
.flow-note { margin: 16px 0 0; color: #585260; font-size: 16px; line-height: 1.65; }
.flow-links { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 10px clamp(18px, 3.3vw, 48px) 17px; }
.flow-links a { display: inline-flex; align-items: center; min-height: 40px; color: #534098; font-size: 15px; font-weight: 680; text-underline-offset: 4px; }
#overview-operations .performance-proof { margin-top: clamp(22px, 3vw, 40px); padding: clamp(20px, 2.7vw, 36px); }
#overview-operations .performance-proof article { padding-top: 10px; }
@media (min-width: 760px) {
  #overview-operations .performance-proof { display: grid; grid-template-columns: minmax(145px, .5fr) 2fr; align-items: start; gap: 24px; }
  #overview-operations .performance-proof article { padding: 0; }
}
@media (min-width: 761px) and (max-width: 970px) {
  .branching .flow-node { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .flow-intro { text-align: left; }
  .flow-summary { max-width: 38em; margin-left: 0; }
  .flow-summary span + span { margin-top: 4px; }
  .flow-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-tab { justify-content: flex-start; padding-inline: 12px; }
  .flow-canvas .flow-nodes { display: flex; flex-direction: column; gap: 17px; padding: 18px 12px; }
  .flow-canvas .flow-node { align-self: stretch; flex-direction: row; align-items: center; padding: 10px 12px; gap: 10px; margin-left: calc(var(--depth) * 14px); }
  .flow-panel h3 { font-size: 21px; }
  .flow-words { gap: 2px; }
}
@media (prefers-reduced-motion: no-preference) {
  .flow-signal { fill: none; stroke: #7151c1; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 20 120; stroke-dashoffset: 20; opacity: 0; }
  .flow-signal.running { animation: flow-signal 540ms ease-out var(--delay, 0ms) both; }
  @keyframes flow-signal { 0% { opacity: 0; stroke-dashoffset: 20; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; stroke-dashoffset: -100; } }
}
@media (prefers-reduced-motion: reduce) { .flow-signal { display: none; } }
@media print {
  .flow-tabs, .flow-links { display: none; }
  .automation-flow .flow-panel[hidden] { display: block !important; }
  .flow-panel { break-inside: avoid; }
}
