*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#f7f9fc;min-height:100vh;color:#1a1a1a}.app{min-height:100vh;display:flex;flex-direction:column}.app-header{background:linear-gradient(135deg,#1a1a2e,#16213e,#0f3460);color:#fff;padding:2rem;box-shadow:0 2px 20px #0000001a;border-bottom:1px solid rgba(255,255,255,.1)}.header-content{max-width:1200px;margin:0 auto}.app-header h1{font-size:2.5rem;font-weight:700;margin-bottom:.5rem}.subtitle{font-size:1.1rem;opacity:.95;font-weight:300}.app-main{flex:1;padding:2rem;max-width:1400px;margin:0 auto;width:100%;background:transparent}.route-selector-header{text-align:center;margin-bottom:3rem}.route-selector-header h2{font-size:2rem;color:#1f2937;margin-bottom:.5rem}.route-selector-header p{color:#6b7280;font-size:1.1rem}.route-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:1.5rem;margin-top:2rem}.route-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:2rem;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);text-align:left;box-shadow:0 1px 3px #0000000d;position:relative;overflow:hidden}.route-card:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:var(--route-color);transform:scaleX(0);transition:transform .3s ease}.route-card:hover{transform:translateY(-6px);box-shadow:0 12px 24px #0000001a;border-color:var(--route-color)}.route-card:hover:before{transform:scaleX(1)}.route-icon{width:60px;height:60px;border-radius:12px;display:flex;align-items:center;justify-content:center;margin-bottom:1rem}.route-card h3{font-size:1.25rem;color:#1f2937;margin-bottom:.75rem}.route-card p{color:#6b7280;line-height:1.5}.workflow-container{background:#fff;border-radius:16px;padding:2.5rem;box-shadow:0 4px 24px #0000000f;border:1px solid #e5e7eb}.back-button{background:#f3f4f6;border:none;padding:.75rem 1.5rem;border-radius:8px;cursor:pointer;font-size:1rem;color:#4b5563;margin-bottom:2rem;transition:background .2s}.back-button:hover{background:#e5e7eb}.selected-route-header{margin-bottom:2rem;padding-bottom:1.5rem;border-bottom:2px solid #e5e7eb}.selected-route-header h2{font-size:1.75rem;color:#1f2937;margin-bottom:.5rem}.selected-route-header p{color:#6b7280;font-size:1rem}.input-form{margin-bottom:2rem}.form-grid{display:grid;gap:1.5rem;margin-bottom:2rem}.form-field{display:flex;flex-direction:column}.form-field label{font-weight:600;color:#374151;margin-bottom:.5rem;font-size:.95rem}.required{color:#ef4444;margin-left:.25rem}.form-input,.form-textarea,.form-select{padding:.75rem;border:2px solid #e5e7eb;border-radius:8px;font-size:1rem;transition:border-color .2s;font-family:inherit}.form-input:focus,.form-textarea:focus,.form-select:focus{outline:none;border-color:#667eea}.form-textarea{resize:vertical;min-height:100px}.checkbox-label{display:flex;align-items:center;gap:.5rem;cursor:pointer;margin-top:.5rem}.form-checkbox{width:20px;height:20px;cursor:pointer}.submit-button{width:100%;padding:1rem 2rem;background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff;border:none;border-radius:12px;font-size:1.1rem;font-weight:600;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);box-shadow:0 4px 12px #6366f14d;position:relative;overflow:hidden}.submit-button:before{content:"";position:absolute;top:50%;left:50%;width:0;height:0;border-radius:50%;background:#fff3;transform:translate(-50%,-50%);transition:width .6s,height .6s}.submit-button:hover:not(:disabled):before{width:300px;height:300px}.submit-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 20px #6366f166}.submit-button:active:not(:disabled){transform:translateY(0)}.submit-button:disabled{opacity:.6;cursor:not-allowed;transform:none}.loading-container{text-align:center;padding:3rem}.spinner{width:50px;height:50px;border:4px solid #e5e7eb;border-top-color:#667eea;border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 1rem}@keyframes spin{to{transform:rotate(360deg)}}.loading-container p{color:#6b7280;font-size:1.1rem}.error-container{background:#fef2f2;border:2px solid #fecaca;border-radius:8px;padding:1.5rem;margin-top:1.5rem}.error-container h3{color:#dc2626;margin-bottom:.5rem}.error-container p{color:#991b1b}.result-display{margin-top:2rem;background:#f9fafb;border-radius:12px;padding:2rem;border:2px solid #e5e7eb}.result-header h3{font-size:1.5rem;color:#1f2937}.result-content{display:flex;flex-direction:column;gap:1.5rem}.result-section{background:#fff;padding:1.5rem;border-radius:8px;box-shadow:0 1px 3px #0000001a}.result-section h4{font-size:1.25rem;color:#1f2937;margin-bottom:1rem}.indications-list{list-style:none;display:flex;flex-direction:column;gap:1rem}.indication-item{padding:1rem;background:#f3f4f6;border-radius:8px;border-left:4px solid #667eea}.indication-item strong{display:block;color:#1f2937;margin-bottom:.5rem;font-size:1.1rem}.confidence-badge{display:inline-block;background:#10b981;color:#fff;padding:.25rem .75rem;border-radius:12px;font-size:.85rem;font-weight:600;margin-left:.5rem}.indication-item p{color:#6b7280;margin-top:.5rem;line-height:1.5}.json-display{background:#1f2937;color:#10b981;padding:1rem;border-radius:6px;overflow-x:auto;font-family:Courier New,monospace;font-size:.9rem}.result-actions{display:flex;gap:1rem;margin-top:1.5rem;padding-top:1.5rem;border-top:2px solid #e5e7eb}.action-button{flex:1;padding:.75rem 1.5rem;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:.5rem;transition:transform .2s}.action-button:hover{transform:translateY(-2px)}.action-button.primary{background:#667eea;color:#fff}.action-button.secondary{background:#f3f4f6;color:#4b5563}.app-footer{background:#1f2937;color:#fff;text-align:center;padding:1.5rem;margin-top:auto}.app-footer p{opacity:.8}.advanced-settings{background:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;padding:1.5rem;margin-bottom:2rem}.settings-header{display:flex;align-items:center;gap:.75rem;margin-bottom:1.5rem;color:#374151}.settings-header h3{font-size:1.25rem;font-weight:600;margin:0}.settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem;margin-bottom:1.5rem}.form-divider{height:1px;background:linear-gradient(to right,transparent,#e5e7eb,transparent);margin:2rem 0}.form-section-header{margin-bottom:1.5rem}.form-section-header h3{font-size:1.25rem;font-weight:600;color:#1f2937;margin:0}.datasets-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem;margin-top:1rem}.dataset-checkbox{display:flex;align-items:flex-start;gap:.75rem;padding:1rem;background:#fff;border:2px solid #e5e7eb;border-radius:8px;cursor:pointer;transition:all .2s ease}.dataset-checkbox:hover,.dataset-checkbox.checked{border-color:#6366f1;background:#f5f7ff}.dataset-checkbox.checked .dataset-label{color:#6366f1}.dataset-info{display:flex;flex-direction:column;gap:.25rem;flex:1}.dataset-label{font-weight:600;color:#1f2937;font-size:.95rem}.dataset-description{font-size:.85rem;color:#6b7280}.file-upload-container{position:relative}.file-input{position:absolute;opacity:0;width:0;height:0}.file-upload-label{display:flex;align-items:center;gap:.75rem;padding:1rem 1.5rem;background:#f9fafb;border:2px dashed #d1d5db;border-radius:8px;cursor:pointer;transition:all .2s ease;min-height:60px}.file-upload-label:hover{border-color:#6366f1;background:#f5f7ff}.file-upload-icon{font-size:1.5rem}.file-list{margin-top:1rem;display:flex;flex-direction:column;gap:.5rem}.file-item{display:flex;justify-content:space-between;align-items:center;padding:.75rem;background:#f3f4f6;border-radius:6px;font-size:.9rem}.file-name{color:#1f2937;font-weight:500;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-size{color:#6b7280;font-size:.85rem;margin-left:1rem}.reasoning-steps{margin:2rem 0;background:#f9fafb;border-radius:12px;padding:1.5rem;border:1px solid #e5e7eb}.reasoning-header{margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:2px solid #e5e7eb}.reasoning-header h3{font-size:1.5rem;font-weight:600;color:#1f2937;margin:0 0 .25rem}.reasoning-subtitle{color:#6b7280;font-size:.9rem;margin:0}.steps-container{display:flex;flex-direction:column;gap:1rem}.reasoning-step{display:flex;gap:1rem;padding:1.25rem;background:#fff;border-radius:10px;border-left:4px solid #e5e7eb;transition:all .3s ease}.reasoning-step.completed{border-left-color:#10b981;background:#f0fdf4}.reasoning-step.processing{border-left-color:#6366f1;background:#f5f7ff;animation:pulse-border 2s ease-in-out infinite}.reasoning-step.pending{border-left-color:#d1d5db;opacity:.7}.reasoning-step.error{border-left-color:#ef4444;background:#fef2f2}@keyframes pulse-border{0%,to{border-left-color:#6366f1}50%{border-left-color:#8b5cf6}}.step-indicator{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:32px;height:32px}.step-icon{transition:all .3s ease}.completed-icon{color:#10b981}.processing-icon{color:#6366f1}.processing-icon.spinning{animation:spin 1s linear infinite}.pending-icon{color:#d1d5db}.step-content{flex:1;min-width:0}.step-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.step-header h4{font-size:1.1rem;font-weight:600;color:#1f2937;margin:0}.step-timestamp{font-size:.85rem;color:#6b7280}.step-description{color:#4b5563;margin:.5rem 0;line-height:1.6}.step-details,.step-result{margin-top:1rem;padding:1rem;background:#ffffffb3;border-radius:6px;border:1px solid #e5e7eb}.step-details-json,.step-result-json{background:#1f2937;color:#10b981;padding:1rem;border-radius:6px;overflow-x:auto;font-family:Courier New,monospace;font-size:.85rem;margin:.5rem 0 0}.step-result strong{color:#1f2937;display:block;margin-bottom:.5rem}.step-error{margin-top:1rem;padding:.75rem;background:#fef2f2;border:1px solid #fecaca;border-radius:6px;color:#dc2626}.step-error strong{display:block;margin-bottom:.25rem}.action-button.primary{background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff;box-shadow:0 4px 12px #6366f14d}.action-button.primary:hover{box-shadow:0 6px 16px #6366f166}.action-button.secondary{background:#fff;color:#4b5563;border:2px solid #e5e7eb}.action-button.secondary:hover{border-color:#d1d5db;background:#f9fafb}.result-display{margin-top:2rem;background:#fff;border-radius:16px;padding:2rem;border:1px solid #e5e7eb;box-shadow:0 4px 24px #0000000f}.result-header{display:flex;align-items:center;gap:.75rem;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:2px solid #e5e7eb}.result-header h3{font-size:1.5rem;color:#1f2937;margin:0}@media(max-width:768px){.app-header h1{font-size:1.75rem}.route-grid{grid-template-columns:1fr}.result-actions{flex-direction:column}.settings-grid,.datasets-grid{grid-template-columns:1fr}.workflow-container{padding:1.5rem}.reasoning-step{flex-direction:column;gap:.75rem}.step-header{flex-direction:column;align-items:flex-start;gap:.25rem}}:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}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}}
