def generate_flow_html(active_phase="idle"): """ Generates animated SVG for the MVM² Architecture Flow. Phases: 'idle', 'enhance', 'ocr', 'reasoning', 'heuristics', 'verification', 'consensus', 'success' """ # Define colors bg_color = "#1e293b" accent = "#e63946" # Red to match local dashboard theme success = "#16a34a" text = "#94a3b8" # Pulse animation logic def get_pulse(phase): return 'active-pulse' if active_phase == phase else '' def get_node_style(phase): if active_phase == 'success': return f'stroke: {success}; filter: drop-shadow(0 0 8px {success});' if active_phase == phase: return f'stroke: {accent}; filter: drop-shadow(0 0 8px {accent});' return 'stroke: rgba(255,255,255,0.1);' html = f"""
""" return html