/* Animated information flow over the unchanged paper architecture. */
.method-flow {
  --mf-ink: #34445b;
  --mf-blue: #4b71cd;
  --mf-teal: #208d82;
  --mf-amber: #b87829;
  --mf-rose: #bb476e;
  overflow: hidden;
  border: 1px solid #dce4ea;
  border-radius: 12px;
  background: #fff;
  text-align: left;
}
.method-flow .mf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid #e9edf1;
  background: #fbfcfd;
}
.method-flow .mf-tabs,
.method-flow .mf-playback {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .3rem;
}
.method-flow button,
.method-flow .mf-original {
  padding: .42rem .65rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #526174;
  font: inherit;
  font-size: 1rem;
  line-height: 1.3;
  cursor: pointer;
  white-space: nowrap;
}
.method-flow button:hover,
.method-flow .mf-original:hover {
  color: #233a53;
  background: #edf1f6;
}
.method-flow button[aria-pressed="true"] {
  color: #28635e;
  background: #e7f3ef;
  border-color: #cee4dc;
}
.method-flow .mf-playback button {
  border-color: #dde4eb;
  background: #fff;
  min-width: 4.2rem;
}
.method-flow button:focus-visible,
.method-flow a:focus-visible {
  outline: 2px solid #4b71cd;
  outline-offset: 3px;
}
.method-flow .mf-canvas {
  position: relative;
  padding: 8px;
  background: #fff;
  overflow-x: auto;
}
.method-flow .mf-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
}
.method-flow .mf-svg image { pointer-events: none; }
.method-flow .mf-signal {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.method-flow .mf-halo { fill: #fff; opacity: .94; }
.method-flow .mf-particle { stroke: #fff; stroke-width: 2; }
.method-flow .mf-tone-blue { stroke: var(--mf-blue); }
.method-flow .mf-tone-teal { stroke: var(--mf-teal); }
.method-flow .mf-tone-amber { stroke: var(--mf-amber); }
.method-flow .mf-tone-rose { stroke: var(--mf-rose); }
.method-flow .mf-tone-purple { stroke: #7a6198; }
.method-flow .mf-particle.mf-tone-blue { fill: var(--mf-blue); }
.method-flow .mf-particle.mf-tone-teal { fill: var(--mf-teal); }
.method-flow .mf-particle.mf-tone-amber { fill: var(--mf-amber); }
.method-flow .mf-particle.mf-tone-rose { fill: var(--mf-rose); }
.method-flow .mf-particle.mf-tone-purple { fill: #7a6198; }
.method-flow .mf-progress {
  height: 3px;
  width: 100%;
  display: block;
  background: #edf1f4;
}
.method-flow .mf-progress rect { fill: #81bdb1; }
.method-flow[data-scene="1"] .mf-progress rect { fill: #b49acb; }
.method-flow[data-scene="2"] .mf-progress rect { fill: #d18aa1; }
.method-flow .mf-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem;
  border-top: 1px solid #edf0f3;
}
.method-flow .mf-status {
  margin: 0;
  color: #566577;
  font-size: 1rem;
  line-height: 1.5;
  min-height: 3em;
}
.method-flow .mf-status strong { color: #34445b; }
.method-flow .mf-original {
  padding-right: 0;
  color: #47728d;
  font-size: .9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.method-flow .mf-module-outline {
  fill: none;
  stroke-width: 2;
  stroke-dasharray: 9 9;
  opacity: .4;
}
.method-flow [hidden] { display: none !important; }
@media (max-width: 650px) {
  .method-flow .mf-toolbar { padding: .65rem; }
  .method-flow .mf-tabs { gap: .15rem; }
  .method-flow button { font-size: .9rem; padding: .4rem .48rem; }
  .method-flow .mf-playback { margin-left: auto; }
  .method-flow .mf-footer { align-items: flex-start; flex-direction: column; gap: .25rem; padding: .65rem .8rem; }
  .method-flow .mf-status { font-size: .95rem; min-height: 4.5em; }
  .method-flow .mf-canvas { padding: 4px; }
  .method-flow[data-view="2"] .mf-svg { min-width: 760px; }
}
@media (prefers-reduced-motion: reduce) {
  .method-flow * { scroll-behavior: auto; transition: none !important; }
}
