:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:#f8fafc;color:#1e293b}#root{min-height:100vh}*{box-sizing:border-box;margin:0;padding:0}#root{min-height:100vh;background:#f8fafc}.app{min-height:100vh;color:#1e293b;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;zoom:.7}.app-header{background:#fff;padding:2rem 1rem;text-align:center;box-shadow:0 1px 3px #0000001a;border-bottom:1px solid #e2e8f0}.app-header h1{font-size:2.5rem;font-weight:800;color:#1e293b;margin:0 0 .5rem;letter-spacing:-.025em}.attribution{margin:0;font-size:.9rem;color:#64748b;font-weight:400}.attribution a{color:#3b82f6;text-decoration:none;font-weight:500;transition:color .2s ease}.attribution a:hover{color:#2563eb;text-decoration:underline}.app-main{padding:2rem;max-width:1400px;margin:0 auto}.algorithm-selection{background:#fff;padding:2rem;border-radius:12px;box-shadow:0 1px 3px #0000001a;margin-bottom:2rem;border:1px solid #e2e8f0}.select-label{display:block;font-size:1.1rem;font-weight:600;margin-bottom:1rem;color:#374151}.algorithm-select{width:100%;max-width:400px;padding:.75rem 1rem;font-size:1rem;border:1px solid #d1d5db;border-radius:8px;background:#fff;transition:all .2s ease;cursor:pointer}.algorithm-select:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.algorithm-select:hover{border-color:#9ca3af}.algorithm-config{background:#fff;padding:2rem;border-radius:12px;box-shadow:0 1px 3px #0000001a;border:1px solid #e2e8f0}.node-input-section{margin-bottom:2rem}.input-label{display:block;font-size:1rem;font-weight:600;margin-bottom:1rem;color:#374151}.input-group{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}.node-input{flex:1;min-width:200px;padding:.75rem 1rem;font-size:1rem;border:1px solid #d1d5db;border-radius:8px;transition:all .2s ease}.node-input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.node-input:hover{border-color:#9ca3af}.generate-btn,.regenerate-btn,.begin-btn,.reset-btn{padding:.75rem 1.5rem;font-size:.95rem;font-weight:600;border:none;border-radius:8px;cursor:pointer;transition:all .2s ease;text-transform:none;letter-spacing:0;display:inline-flex;align-items:center;justify-content:center;min-height:44px}.generate-btn{background:#10b981;color:#fff}.generate-btn:hover:not(:disabled){background:#059669;transform:translateY(-1px);box-shadow:0 4px 12px #10b98140}.regenerate-btn{background:#f59e0b;color:#fff}.regenerate-btn:hover:not(:disabled){background:#d97706;transform:translateY(-1px);box-shadow:0 4px 12px #f59e0b40}.begin-btn{background:#3b82f6;color:#fff}.begin-btn:hover:not(:disabled){background:#2563eb;transform:translateY(-1px);box-shadow:0 4px 12px #3b82f640}.reset-btn{background:#6b7280;color:#fff}.reset-btn:hover:not(:disabled){background:#4b5563;transform:translateY(-1px);box-shadow:0 4px 12px #6b728040}.generate-btn:disabled,.regenerate-btn:disabled,.begin-btn:disabled,.reset-btn:disabled{background:#d1d5db;color:#9ca3af;cursor:not-allowed;transform:none;box-shadow:none}.tree-controls,.echo-controls{display:flex;gap:1rem;margin-bottom:2rem;justify-content:center;flex-wrap:wrap;align-items:end}.visualization-section{margin-top:2rem}.algorithm-container{display:flex;gap:2rem;align-items:flex-start}.tree-visualization{flex:1;display:flex;justify-content:center;background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 1px 3px #0000001a;border:1px solid #e2e8f0;overflow:auto}.results-panel{flex:0 0 380px;background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 1px 3px #0000001a;border:1px solid #e2e8f0;max-height:600px;display:flex;flex-direction:column}.legend{margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:1px solid #e2e8f0}.legend-item{display:flex;align-items:center;margin-bottom:.75rem;font-size:.875rem;color:#6b7280;line-height:1.4}.legend-color{width:16px;height:16px;border-radius:50%;margin-right:.75rem;flex-shrink:0}.legend-color.red{background-color:#ef4444}.legend-color.green{background-color:#10b981}.results-header{margin-bottom:1rem}.results-header h3{margin:0;color:#1e293b;font-size:1.25rem;font-weight:700;padding-bottom:.5rem;border-bottom:2px solid #3b82f6}.results-list{flex:1;overflow-y:auto;max-height:400px;padding-right:.25rem}.results-list::-webkit-scrollbar{width:6px}.results-list::-webkit-scrollbar-track{background:#f1f5f9;border-radius:3px}.results-list::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}.results-list::-webkit-scrollbar-thumb:hover{background:#94a3b8}.result-item{padding:.75rem;margin-bottom:.5rem;background:#f8fafc;border-radius:8px;font-family:SF Mono,Monaco,Inconsolata,Roboto Mono,monospace;font-size:.875rem;color:#374151;border-left:3px solid #3b82f6;line-height:1.4}.tree-svg{max-width:100%;height:auto;border-radius:8px;background:#fafafa}.tree-edge{transition:stroke-width .2s ease}.tree-edge:hover{stroke-width:3;stroke:#374151}.tree-node{cursor:pointer}.node-circle{filter:drop-shadow(0 2px 4px rgba(0,0,0,.1));transition:filter .2s ease}.tree-node:hover .node-circle{filter:drop-shadow(0 4px 8px rgba(0,0,0,.15))}.node-text{pointer-events:none;-webkit-user-select:none;user-select:none;font-weight:600}.echo-container{width:100%}.single-graph{text-align:center}.single-graph h3{margin-bottom:1rem;color:#374151;font-size:1.2rem;font-weight:600}.dual-graph{display:flex;gap:2rem;justify-content:center}.graph-section{flex:1;text-align:center}.graph-section h3{margin-bottom:1rem;color:#374151;font-size:1.1rem;font-weight:600}.initiator-selection{display:flex;flex-direction:column;gap:.5rem;margin-right:1rem}.initiator-selection label{font-size:.9rem;font-weight:600;color:#374151}.initiator-selection select{padding:.75rem 1rem;font-size:.95rem;font-weight:600;border:1px solid #d1d5db;border-radius:8px;background:#fff;cursor:pointer;min-height:44px}.usage-instructions{margin-bottom:1.5rem}.instruction-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:1.5rem;box-shadow:0 1px 3px #0000000d}.instruction-card h4{margin:0 0 1rem;color:#1e293b;font-size:1.1rem;font-weight:600}.instruction-card ol{margin:0;padding-left:1.2rem;color:#475569;line-height:1.6}.instruction-card li{margin-bottom:.5rem}.instruction-card strong{color:#1e293b;font-weight:600}@media (max-width: 1024px){.algorithm-container{flex-direction:column}.results-panel{flex:none;order:-1;max-width:100%}}@media (max-width: 768px){.app-header{padding:1.5rem 1rem}.app-header h1{font-size:2rem}.app-main{padding:1rem}.algorithm-selection,.algorithm-config{padding:1.5rem}.input-group{flex-direction:column;align-items:stretch}.node-input{min-width:unset}.tree-controls,.echo-controls{flex-direction:column}.tree-svg{width:100%;max-width:100%}.results-panel{flex:none;order:-1}.dual-graph{flex-direction:column}}@media (max-width: 480px){.app-header h1{font-size:1.75rem;line-height:1.3}.algorithm-selection,.algorithm-config,.tree-visualization,.results-panel{padding:1rem}}.algorithm-config,.visualization-section{animation:slideIn .3s ease-out}@keyframes slideIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
