:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#root{width:100%;min-height:100vh}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media(prefers-color-scheme:light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.App{min-height:100vh;display:flex;flex-direction:column;background:linear-gradient(135deg,#667eea,#764ba2)}.app-header{text-align:center;padding:2rem;color:#fff;background:#0003;box-shadow:0 2px 10px #0000001a}.app-header h1{margin:0;font-size:2.5rem;font-weight:700;text-shadow:2px 2px 4px rgba(0,0,0,.3)}.app-header p{margin:.5rem 0 0;font-size:1.1rem;opacity:.9}.app-content{display:flex;flex:1;gap:1.5rem;padding:1.5rem;max-width:1800px;margin:0 auto;width:100%}.left-panel,.right-panel{flex:1;display:flex;flex-direction:column;gap:1.5rem}.control-panel{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 4px 6px #0000001a}.control-panel h2{margin:0 0 1.5rem;color:#333;font-size:1.5rem;border-bottom:2px solid #667eea;padding-bottom:.5rem}.control-section{margin-bottom:1.5rem}.control-section h3{margin:0 0 1rem;color:#555;font-size:1.1rem}.phrase-selection{margin-bottom:1rem}.phrase-selection label{display:block;margin-bottom:.5rem;color:#666;font-weight:500}.phrase-selection input[type=radio]{margin-right:.5rem}.phrase-selection select,.phrase-selection input[type=text]{width:100%;padding:.75rem;border:2px solid #e0e0e0;border-radius:6px;font-size:1rem;margin-top:.5rem;transition:border-color .3s}.phrase-selection select:focus,.phrase-selection input[type=text]:focus{outline:none;border-color:#667eea}.phrase-selection select:disabled,.phrase-selection input[type=text]:disabled{background:#f5f5f5;cursor:not-allowed}.parameter{margin-bottom:1rem}.parameter label{display:block;color:#666;font-weight:500;margin-bottom:.5rem}.parameter input[type=range]{width:100%;margin-top:.5rem;height:6px;border-radius:3px;background:#e0e0e0;outline:none;-webkit-appearance:none}.parameter input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:18px;height:18px;border-radius:50%;background:#667eea;cursor:pointer;transition:background .3s}.parameter input[type=range]::-webkit-slider-thumb:hover{background:#764ba2}.parameter input[type=range]::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:#667eea;cursor:pointer;border:none}.control-buttons{display:flex;gap:1rem;margin-top:1.5rem}.control-buttons button{flex:1;padding:1rem;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s;text-transform:uppercase;letter-spacing:.5px}.btn-start{background:#4caf50;color:#fff}.btn-start:hover:not(:disabled){background:#45a049;transform:translateY(-2px);box-shadow:0 4px 8px #4caf504d}.btn-stop{background:#f44336;color:#fff}.btn-stop:hover{background:#da190b;transform:translateY(-2px);box-shadow:0 4px 8px #f443364d}.btn-reset{background:#ff9800;color:#fff}.btn-reset:hover{background:#e68900;transform:translateY(-2px);box-shadow:0 4px 8px #ff98004d}.control-buttons button:disabled{opacity:.5;cursor:not-allowed;transform:none}.completion-message{margin-top:1rem;padding:1rem;background:#4caf50;color:#fff;border-radius:8px;font-weight:600;text-align:center;animation:slideIn .5s ease-out}.population-display{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 4px 6px #0000001a}.stats-header h2{margin:0 0 1rem;color:#333;font-size:1.5rem;border-bottom:2px solid #764ba2;padding-bottom:.5rem}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-bottom:1.5rem}.stat{background:linear-gradient(135deg,#667eea,#764ba2);padding:1rem;border-radius:8px;text-align:center;color:#fff}.stat-label{display:block;font-size:.9rem;opacity:.9;margin-bottom:.5rem}.stat-value{display:block;font-size:1.5rem;font-weight:700}.target-display{margin-bottom:1.5rem;padding:1rem;background:#f5f5f5;border-radius:8px}.target-display h3{margin:0 0 .5rem;color:#555;font-size:1rem}.target-phrase{font-family:Courier New,monospace;font-size:1.2rem;color:#333;font-weight:600}.success-message{background:linear-gradient(135deg,#4caf50,#45a049);color:#fff;padding:1.5rem;border-radius:8px;margin-bottom:1.5rem;text-align:center;animation:pulse 1s ease-in-out infinite}.success-message h2{margin:0 0 .5rem;font-size:1.8rem}.success-message p{margin:0;font-size:1rem}.best-individual{background:#fffbea;padding:1rem;border-radius:8px;margin-bottom:1.5rem;border:2px solid #ffd700}.best-individual h3{margin:0 0 .75rem;color:#555;font-size:1rem}.population-list h3{margin:0 0 1rem;color:#555;font-size:1rem}.individual-row{display:flex;align-items:center;gap:1rem;padding:.75rem;margin-bottom:.5rem;background:#f9f9f9;border-radius:6px;transition:background .2s}.individual-row:hover{background:#f0f0f0}.individual-rank{font-weight:700;color:#667eea;min-width:40px}.individual-genes{flex:1;font-family:Courier New,monospace;font-size:1rem;letter-spacing:1px}.char-match{color:#4caf50;font-weight:700}.char-no-match{color:#f44336;opacity:.6}.individual-fitness{font-weight:600;color:#764ba2;min-width:80px;text-align:right}.empty-state{text-align:center;padding:3rem;color:#999}.fitness-chart{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 4px 6px #0000001a}.fitness-chart h3{margin:0 0 1rem;color:#333;font-size:1.2rem;text-align:center}.fitness-chart canvas{display:block;margin:0 auto;border-radius:8px}@keyframes slideIn{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.02)}}@media(max-width:1200px){.app-content{flex-direction:column}.stats-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:768px){.app-header h1{font-size:1.8rem}.stats-grid{grid-template-columns:1fr}.control-buttons{flex-direction:column}.fitness-chart canvas{width:100%;height:auto}}
